You have absolutely reason Mark Murphy, i made what you tell me to do and it works. However, i don't know how to start the activity. I have always an error in *startActivity(i);! * Treking said: B) You're trying to use a function that does not exist for your type. Don't do that. So , what is the function that launches an activity in *IncomingCallReceiver * class ? Thank you very much.
2011/4/25 Mark Murphy <[email protected]> > 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 > -- 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

