BroadcastReceiver is not a Context. Use the Context supplied to onReceive() for your Intent constructor.
On Mon, Apr 25, 2011 at 1:44 PM, Alaeddine Ghribi <[email protected]> wrote: > > constructor Intent(IncomingCallReceiver, Class<dialog>) is not defined > > > Method startActivity(Intent) is undefined for the type IncomingCallReceiver > > Thank you for your help. > 2011/4/25 TreKing <[email protected]> >> >> On Mon, Apr 25, 2011 at 12:24 PM, Alaeddine Ghribi >> <[email protected]> wrote: >>> >>> How can i solve this problem? >> >> Explain what "But it ends with an error in each line!" means. >> >> >> ------------------------------------------------------------------------------------------------- >> TreKing - Chicago transit tracking app for Android-powered devices >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> 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 > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] 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

