On Wed, Mar 9, 2011 at 9:41 AM, andrew_esh <andrew.c....@gmail.com> wrote:
> Is there a way to gain CALL_PHONE permission when the program runs?

No, but you can still ask for the CALL_PHONE permission. You just need
to adjust your manifest to include the proper <uses-feature> element
to say that you can work without a phone. Please read the blog post I
linked to.

> Weather is usually the determining factor for when you file a
> flight plan, and you can a lot get a lot of extra weather information
> by calling the weather office. The app could dial from a list of
> station phone numbers along the route you're looking at.

Which does not require CALL_PHONE. Use ACTION_DIAL to place the call
by putting the number in the dialer. There may be value in simplifying
placing the call, but IMHO there is no need for an aviation weather
app to have to place phone calls directly. CALL_PHONE is a scary
permission (compared to, say, VIBRATE), and developers should be
avoiding scary permissions wherever possible.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training Worldwide: http://commonsware.com/training

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to