Passing data from intent service to activity

user3790145

I have a broadcast receiver from which am calling intentservice.I want to send the data received in the intentservice to a activity.String s=extras.getString("Notice").I want to send this received string to a new activity

George
@Override
protected void onHandleIntent(Intent arg0) {
   Intent dialogIntent = new Intent(getBaseContext(), myActivity.class);
    dialogIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
     dialogIntent.putExtra("value", extras.getString("Notice"));
     getApplication().startActivity(dialogIntent);
}   

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Passing Intent data from Activity to Class

Creating an Intent from a Fragment and passing data back to that Fragment from the Intent activity (Tabbed App)

Passing Intent from Service to FragmentActivity

Activity not receiving the data from intent

Updating Activity UI from Intent Service?

Activity not passing intent to onActivityResult()

Passing data to activity from widget

Passing data from second activity to first activity

Pass data from Activity to Broadcast Receiver with Intent

Unable to get data from Intent in Activity

sending data from clicklistener to an activity using intent

Opening/starting a specific Android activity passing an intent parameter from the browser

Receiving data in activity from a service

Sending data from service to activity

Passing Data from Service to Component

Passing data from Angular service

android.content.ActivityNotFoundException: No Activity found to handle Intent - From Service

Send "share intent" (ACTION_SEND) from activity to service

Passing `SharedPreferences` data from Fragment to Activity

Passing data from one activity to another and then printing

Xamarin Android passing data from class to activity

Passing data from listView to another Activity EditText

Passing data from list fragment to new activity

Android - passing data from AsyncTask to Activity

Passing Data from Dialog box to activity

passing data from activity to tabs fragment

Passing data from Activity to Fragment shows nothing

Passing Data from Fragment to Activity using listview

Passing a data from Activity to Tabbed Layout Fragment?