You can write an application with just a broadcast receiver..but u
need to register them in ur mainfest file as
<receiver android:name="YOUR_RECEICER_FILE NAME">

</receiver>

 you can pass the intent filters in this itself like this
<receiver android:name="YOUR_RECEICER_FILE NAME">
<intent-filter>
<action android:name="android.provider.Telephony.SMS_RECEIVED" />
</intent-filter>
</receiver>
 the above receiver will be called whenever you receive an sms in your
phone

On Dec 31 2009, 12:05 am, nightstriker <gregpeter...@gmail.com> wrote:
> Is it possible to use just a broadcast receiver without any
> activities? I just want to run some sample code only when the phone
> receives a call and nothing more. I use Log.d to write out but I don't
> see anything in the log. Am I missing something here? I also have
> permissions set in the androidmanifest.xml to allow for these type of
> intents.
>
> Please advise.

-- 
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