Intent Play: Android: Reciever | Techbirds
Hi Folks, TOday i will explain some common tasks that might be helpful while making android apps: Call An Activity form Reciever Intent i = new Intent(); i.setClassName(“com.example.gamedoc”, “com.example.gamedoc.OpenAppDialogActivity”); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK |Intent.FLAG_ACTIVITY_NEW_TASK ); context.startActivity(i) Intent i = new Intent(); i.setClassName(“com.example.gamedoc”, “com.example.gamedoc.OpenAppDialogActivity”); i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK |Intent.FLAG_ACTIVITY_NEW_TASK ); context.startActivity(i) On Boot Completing, Starting a service: public void startService() { try