[android-developers] Re: Intercept incoming call

2008-10-01 Thread Trey Ethridge

I'd like to expand the logic of when to send a call directly to
voicemail.  I believe that there would need to be a hook somewhere to
intercept the incoming call and determine whether or not to accept
it.

An example use case would be to prevent drunk dialing.  There could
be a setting in Android that would allow the user to set the device to
send all calls to voicemail if the the caller is not in the family
contact list and it is between 11:00 PM and 7:00 AM.

We have a checkbox to allow users to send all calls to voicemail from
a given contact, so I don't see why this should be a problem.  Is this
going to be possible?

-- Trey

On Sep 27, 4:27 pm, Eric B [EMAIL PROTECTED] wrote:
 One of the best apps I've every bought for my Treo 600/650 is an app
 that lets you assign specific ring tones (really mp3 files) to
 specific contacts or groups of contacts.  I especially like the
 ability to turn off the ringer and vibrator for calls with no caller
 id.

 I don't think this kind of app would be possible without being able 
 tointerceptacall.

 Thanks,
 Eric
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Alternative for intent.getExtra()?

2008-05-11 Thread Trey Ethridge

I'm using the LocationManager to receive location updates via an
IntentReceiver.  The intent receiver looks something like this:

public class handleLocationUpdate extends IntentReceiver {
  public void onReceiveIntent(Context context, Intent intent) {
  Location loc = (Location) intent.getExtra(location);

  Double lat = loc.getLatitude()*1E6;
  Double lng = loc.getLongitude()*1E6;
  Point point = new Point(lat.intValue(), lng.intValue());
  mapController.centerMapTo(point, false);

  setContentView(mapView);
  }
}


I see that the getExtra() method is now deprecated.  The docs state to
use the type safe methods now, but there isn't a type safe method for
receiving Location objects, so what is the preferred way to retrieve
the Location object from the intent now?  I'm using sdk-m5-rc15.

Thanks
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Prevent phone from ringing?

2008-05-07 Thread Trey Ethridge

Let's say that I want to send a caller straight to voicemail if I'm
watching my favorite movie.  Is it possible to have a service that
grabs that Intent and doesn't let any other application have it?


--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---