Android: set android:process for a receiver -


my app has 2 processes , b. have receiver belongs process b , specify through android:process in manifest below:

        <receiver             android:name=".myapp.receiver.receiverb"              android:process=":processb" >             <intent-filter>                 <action android:name="something" />             </intent-filter>         </receiver> 

but register receiverb in processa when receive intent process can in processb. when debugging in receiverb, find out android.os.process.mypid() returns processa's id.

i'm wondering how i'm able processb's id within receiver? thought setting android:process=":processb" can guarantee code running within receiverb must reside in processb.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -