using direct call from a widget in version 2.1 and 2.2
I wrote a widget that can call numbers directly with one click. It works on the emulator, and it used to work on my nexus one when it had Android 2.1. Now I got the update, and the widget stopped working. I am using Intent.ACTION_CALL, and android.p开发者_C百科ermission.CALL_PHONE. If I change to Intent.ACTION_DIAL it works, and the same code works from an activity. It is the combination of an app widget and the call action. I don't see any error. Does anyone know if it is not possible, and if so, how? Are there many cases the emulator is different than the cell phones, concerning the permission aspects?
The numbers are all regular, not 911 or something.
I guess it is not possible. The docs did mention changes might happen to this intent.
精彩评论