Hi,

I'm afraid long time has passed and you might have found it by
yourself, I'd like to write to make sure, and for other searchers. Now
that SDK is M5.

You can get the account (own) username and password from
android.provider.Im.Account.

Snippet is here:

Cursor c = managedQuery(Im.Account.CONTENT_URI, null, null, null);
c.moveTo(0);
accountname.setText(c.getString(c.getColumnIndex(Im.Account.USERNAME)));

On the other hand, you can get contacts list from
android.provider.Im.Contacts .

Thank you,
 // Tatsu
http://www.tatsu.com


On Feb 13, 9:45 pm, "Prashant Kalkar" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I am using XMPP to communicate between two emulators. Since XMPP
> communication is not part of my project I am using two fixed gmail Ids to do
> this communication, say [EMAIL PROTECTED] and [EMAIL PROTECTED]
>
> User is suppose to setup XMPP settings under dev tools with these gmail Ids
> on each emulator instace (one Id for one emulator instance.)
>
> But since the application is one and installed on both the emulator's, while
> communication I need to know the id of the current emulator instance so that
> I can send messages to other Id that will reach the other emulator instance.
>
> I am currently asking the user of the application about which Id is used for
> this emulator instance. But that is not a very good solution.
>
> So I want to access the xmpp settings in my program to figure out the
> currently used gmail Id of that emulator instance, or I need some better way
> to tell the application which id is used for that instance, like from
> emulator command line or something.
>
> Please help.
>
> Regards,
> Prashant
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to