In Android, how do I get the application's id programatically (or by some other method), and how can I communicate with other applications using that id?
A:
i'm not sure what "application id" you are referring to, but for a unique identifier of your application you can use:
getApplication().getPackageName() method from your current activity
Reflog
2009-08-12 07:29:50
each installed application have an unique id...is it possible to get an application's unique id from other application
arams
2009-08-12 09:27:51
A:
The PackageInfo.sharedUserId
field will show the user Id assigned in the manifest.
If you want two applications to have the same userId, so they can see each other's data and run in the same process, then assign them the same userId in the manifest:
android:sharedUserId="string"
The two packages with the same sharedUserId need to have the same signature too.
I would also recommend reading here for a nudge in the right direction.
Will
2009-08-12 23:45:19
A:
How do I sign my two application with the same signature.? Can any 1 help please.? Thanks in advance.. :)
Vishal
2010-05-27 16:10:20