public class YourIntentService extends IntentService {
@Override
protected void onHandleIntent(Intent arg0) {
Intent intent = new Intent(this, YourNewActivity.class);
intent.putExtra("YourStringKey", "yourString");
startActivity(intent);
}
public YourIntentService() {
super("YourIntentService");
}
}
Try it. Sorry for misunderstanding.
source
share