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
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
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:
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
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
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
6 matches
Mail list logo