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?

Thanks
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Help with google uploader application

Hi everyone,
               i'm trying to build an application that captures an image &
shares it...
 'm calling the inbuilt camera application with the following code
<code>
  Intent i = new Intent("android.media.action.IMAGE_CAPTURE");
  startActivityForResult(i, 0);
 </code>
N my on activity result is
<code>
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent
data) {
  super.onActivityResult(requestCode, resultCode, data);
  if (requestCode == 0 && resultCode == Activity.RESULT_OK) {

  Intent i = new Intent(Intent.ACTION_SEND);
  i.setType("image/jpeg");
  i.putExtras(data);
  startActivity(i);
  }
  finish();
}
</code>
whenever i select the upload button i get a toast sayin
 couldn't send photo data not available...
anyone can temme wats goin wrong??
i'm using SDK 1.0 r2
-- 
Regards,
Sujay
<http://www.brainyquote.com/quotes/authors/b/bette_davis.html>

--~--~---------~--~----~------------~-------~--~----~

2. Is it possible to start my service automaticaly after phone boots up.

change in the manifest file:

insert the category of the activity as
android : name="android.intent.category.HOME"

visit :
http://developer.android.com/reference/android/content/Intent.html#CATEGORY_HOMEfor
more information!





--~--~---------~--~----~------------~-------~--~----~

3. Error when build android-1.5r2

4. Copyright enforcement outside of the US

5. Is it possible to start my service automaticaly after phone boots up.

6. Fwd: ADC 2 Partners

7. How to set TrueType to a TextView from remote View