Hi Peacemoon

    You will add both broadcast receiver and activity in menifest.
    but on broadcast receiver you will register an action. For out
goings call i have register action like this


                <receiver
                        android:name="OutGoingCallReceiverIntent"
                        android:enabled="true">
                                 <intent-filter>
                                 <action
        
android:name="android.intent.action.NEW_OUTGOING_CALL" />
                                 <category
                                        
android:name="android.intent.category.DEFAULT" />
                         </intent-filter>
                        </receiver>
Regards,
Gulfam Hassan
On Aug 7, 6:08 pm, "nEx.Software" <[email protected]>
wrote:
> Just include them both and define them both in the Manifest. You can
> have as many Activities and BroadcastReceivers as you need in one APK.
>
> On Aug 6, 8:38 am, Peacemoon <[email protected]> wrote:
>
> > I want to start a project which contains a BroadcastReceiver and an
> > Activity. The BroadcastReceiver doesn't communicate with the activity.
> > But they share a same resource. Can i do it in only one Project (that
> > means, i use only 1 apk to install both BroadcastReceiver and the
> > Activity on my phone), or i have to develope them seperately in 2
> > projects.
> > Thanks.
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to