[android-developers] Re: How to stop service getting latest updates from twitter ??

2012-02-11 Thread Jonathan S
I see you are using intent but you are not using https://developer.android.com/reference/android/app/IntentService.html -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

[android-developers] Re: How to stop service getting latest updates from twitter ??

2012-02-09 Thread Chris Mawata
Take a look at http://developer.android.com/reference/android/app/Service.html It depends on how you are starting the service. On Feb 9, 5:25 am, AndroidGirl8 walaamahmou...@gmail.com wrote: Hi all, i'm  trying to  make service getting twitter update by a thread every 5secs start service just

Re: [android-developers] Re: How to stop service getting latest updates from twitter ??

2012-02-09 Thread Walaa Mahmoud
i saw this link before i asked but no result ,i start service via intent here is the code : public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.prefs: startActivity(new Intent(MarkanaActivity.this, Prefs.class)); break; case R.id.startservices:

Re: [android-developers] Re: How to stop service getting latest updates from twitter ??

2012-02-09 Thread Walaa Mahmoud
Thanks for replaying i saw this link before i asked but no result ,i start service via intent here is the code : public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.prefs: startActivity(new Intent(MarkanaActivity.this, Prefs.class)); break; case

[android-developers] Re: How to stop service getting latest updates from twitter ??

2012-02-09 Thread Chris Mawata
That is what you need to read. Take a look at the part that talks about the lifecycle. You are starting it by calling startService. A few words later the documentation says qoute: The service will at this point continue running until Context.stopService() or stopSelf() is called. :endquote (When

[android-developers] Re: How to stop service getting latest updates from twitter ??

2012-02-09 Thread Chris Mawata
BTW Why are you calling startService in the stopservices part of the switch statement in your code? On Feb 9, 10:30 am, Walaa Mahmoud walaamahmou...@gmail.com wrote: Thanks for replaying i saw this link before i asked but no result ,i start service via intent here is the code : public boolean