down vote favorite
Hi,
I create Service class in Android for getting updates od GPS
coordinates in all my application.
public class ServiceClass extends Service {
@Override
public IBinder onBind(Intent arg0) {
return null;
}
@Override
public void onCreate() {
super.onCreate();
Toast.makeText(this, "Service created...",
Toast.LENGTH_LONG).show();
}
@Override
public void onDestroy() {
super.onDestroy();
Toast.makeText(this, "Service destroyed...",
Toast.LENGTH_LONG).show();
}
}
Now and don't know who is the best method to communicate with service
from my Activity.
Is correct way to use BroadcastReceiver ?
Can some one give me idea and code for this?
Thanks
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en