I have been trying with starting an activity after a pre determined time set by the user. I have two activities, one is sending some strings to another activity by means of:
Intent go = new Intent(MainActivity.this, CallComeActivity.class);
go.putExtra("sub", name);
go.putExtra("photo_path", fname);
go.putExtra("text", number);
startActivity(go);
I am receiving these strings using:
String sub = intent.getStringExtra("sub");
String photo_path=intent.getStringExtra("photo_path");
String text = intent.getStringExtra("text");
Now I need to start this second activity after some time. I have tried with BroadCast Receiver but I am not able to send these strings to the second class using Broadcast Receiver. I am only able to trigger the second class without passing these strings. Please Help.
Aucun commentaire:
Enregistrer un commentaire