[android-developers] Re: What happens when a phone call comes in?

2011-05-04 Thread Streets Of Boston
Implement the onPause (or onStop) of your Activity. Pause your thread there (i.e. have your thread check for a value/semaphore that indicates when to pause a thread). In the onResume (or onStart), resume your thread. Implement the onDestroy of your Acivity. Stop your thread there (i.e. exit the

[android-developers] Re: What happens when a phone call comes in?

2011-05-04 Thread kiros88
Actually sorry I do have a plan for the home bug um so thats y i needed only a solution for the call bug and the home bug is something that i can test later but yea I had a different scenario for that one On May 4, 1:47 pm, kiros88 wrote: > Um well the bug i know is that i have a thread going aft

[android-developers] Re: What happens when a phone call comes in?

2011-05-04 Thread kiros88
Um well the bug i know is that i have a thread going after i like back of my app so normally i close the thread when i do the back button but i dont know how else to close the thread when im not on my app and like on the home screen On May 4, 1:41 pm, Kostya Vasilyev wrote: > 05.05.2011 0:38, kir

Re: [android-developers] Re: What happens when a phone call comes in?

2011-05-04 Thread Kostya Vasilyev
05.05.2011 0:38, kiros88 пишет: Yea it freezes too That should be easier / faster / cheaper to debug than incoming phone calls. so i have to figure that out but i think what were really trying to do is a get a demo working version up so when we present i just know if a phone call comes in it

[android-developers] Re: What happens when a phone call comes in?

2011-05-04 Thread kiros88
Yea it freezes too so i have to figure that out but i think what were really trying to do is a get a demo working version up so when we present i just know if a phone call comes in it freezes the phone. On May 4, 1:20 pm, Kostya Vasilyev wrote: > Probably not, but your code should not really care

Re: [android-developers] Re: What happens when a phone call comes in?

2011-05-04 Thread Kostya Vasilyev
Probably not, but your code should not really care. What happens when you press the home key in your application? -- Kostya 04.05.2011 23:46, kiros88 пишет: Is there anyway to figure out if the the new intent is going to be the incoming call? On May 4, 12:31 pm, Kostya Vasilyev wrote: > I

[android-developers] Re: What happens when a phone call comes in?

2011-05-04 Thread kiros88
Is there anyway to figure out if the the new intent is going to be the incoming call? On May 4, 12:31 pm, Kostya Vasilyev wrote: > I would guess that the most important callback in this case is your > activity's onPause and onStop. > > -- Kostya > > 04.05.2011 22:06, kiros88 пишет: > > > Hi I'm t