In my program I have a dialogue-themed activity that pops up with an edittext and submit button that sends an sms message.
After the message is sent I want the phone to go back to whatever activity it was doing before (the dialogue is started by a broadcast receiver)
however SMSManager's sendTextMessage(...) method takes a pending intent where(as far as I know) I have to specify an activity to the intent. What parameters should I use if i do not want the user to be sent to an activity i specify.
Intent i = new Intent(context, ???? );
PendingIntent pi = PendingIntent.getActivity(context, 0,
i, 0);
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, message, pi, null);