I have 2 android apps. Both are installed on the phone. Lets say the package name for the two are com.android.test1 and com.android.test2. How can i call the method M
If you want to send callbacks from app1 to app2:
Intent with data from app1. (take look at PendingIntent).BroadcastReceiver which will handle your app1's Intents.onReceive method (in app2) will be called each time when your Intent will be thrown by app1 and catched by app2. (put your logics there)