Communicate from Service to Activity

view story

http://stackoverflow.com – I start a service in my Activity following way. After the Service started I close the Activity. If I start the Activity again, I want to receive some informations from the service. How can I do that? // Activity @Override public void onCreate(Bundle savedInstanceState) { // here I want to receive data from Service } Intent i=new Intent(this, AppService.class); i.putExtra(AppService.TIME, spinner_time.getSelectedItemPosition()); startService(i); // Service public class AppService extends Service { public static final String TIME="TIME"; int time_loud; Notification note; I (HowTos)