Phone Status

by csyperski » Mon, 09 Mar 2009 04:30:44 GMT

Sponsored Links
 I have a service that plays an audio file, but the problem is I need
it to stop when an incoming phone call in detected, it it possible for
me to do with PhoneStateListener?

If so does anyone have an example of how this is done?


Other Threads

1. Need guidance for my first Android application



A MapActivity is required to use MapView, so you need at least that. You
almost definitely want to break apart your app in separate, logical units
represented by activities, where each is something your app does. Your
search and results list could probably go in one activity, the details could
be another, and the map a third.


You can't, again, the MapView requires MapActivity. Though you can probably
put a ListView in a MapActivity with it's MapView, but that would probably
look weird.

You're welcome. =)

TreKing - Chicago transit tracking app for Android-powered devices


2. ViewFlipper bug in APILevels<7

Symptom: the ViewFlipper starts flipping views in an irregular
pattern, much faster than the flipinterval set.

Cause: calling stopFlipping() / startFlipping() successively in
intervals less than the flipInterval results in the FLIP_MSG message
being submitted in the ViewFlipper's handler repeatedly, putting the
flipper in a totally FUBAR state, switching to the next child earlier
than it should.

I am mad at whoever wrote the code found in SDK1.5,
1.6 (merged into AOSP under the anonymous initial-contribution email),
since ITS  BUGGY and it cost me an awful lot of time debugging my own
code, thinking I am doing something wrong!

I would also like to THANK Jeff Sharkey for fixing this code in his
1162fd77a8ff8467c96204c00bcaf941aef6aa85 patch.

Too bad we cant rely on the fixed code if we want to support devices
with android 1.5/1.6 as well.



3. IM2 bisa pake Spica

4. creating new processes insternals

5. Stopping other Activity from my Service..

6. This is killing me

7. Newbie Android