How to start an IM session with a specific user
We are regularly asked how to start an IM session with a specific user, it's actually very easy.
The key is using the "Intent.ACTION_SENDTO" action and the the correct URI
which for Cius has the format:
imto://jabber/<JabberID@domain.com>
For example:
2// Create URI imto://jabber/lmichale@ciusdev.com
3Uri jabberUri = new Uri.Builder().scheme("imto").authority("jabber")
.appendPath("lmichale@ciusdev.com").build();
4Intent intent = new Intent(Intent.ACTION_SENDTO,jabberUri );
5startActivity(intent);
Enjoy!