I want to create an android app which will do the following
Traps/listens to an incoming call event ( im aware this step may have duplicates on SO but for the sake of completeness, im asking)
Takes over the control and hits a web service ( HTTP POST ) to get some info from the internet
And display the same as an "alert widget" on top of a "call receive/reject buttons", usually a place where we get "face" of the contact.
basic question is , is it feasible to develop such an app on stock android ? if yes , how ? What are the consequences , if any ?
The solution should work on latest Android releases as well ( 2.3 onwards, 2.3 had a controversial patch which broke may apps relying on private telephony api of android )
http://developer.android.com/reference/android/content/BroadcastReceiver.html states that,
In particular, you may not show a dialog or bind to a service from within a BroadcastReceiver. For the former, you should instead use the NotificationManager API. For the latter, you can use Context.startService() to send a command to the service.