Info

/I: Eclipse 't'fí Jf- ex09 BroadcastReceiver Jfi\], RfttSMt^ËÂiai

% 9 ffc* T 8T f^W -Intent ft Broadcast ffitfift

(2) ft$rIjS 11 iifr;«!1. Create project from existing source JjJi o

(3) 'ftifeaiifc. iJc$'Jex09 BroadcastReceiverJgpI» ^/S^.MS&o 2.

frftftffJftif - K AndroidManifest.xml ft Win K

<?xml version»"1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"

package - "corn. eoeandrdid. broadcast Receiver" >

Application android: i con="@drawable/icor.">

<act, i vi t y a ndr o i d: name - " . Act i v i t yMa in"

android: label = "C!string/app name">

<interit-lilter>

<action android:name- "android.intent.action.MAIN" /> <category android:name~"android.intent.category.LAUNCHER" /> </intent-filter> </activity>

<recei ver android:name^'EoeAndroidReceiver1">

<intent-filter>

<action android:name "com.eoeandrdid.act ion.NEW_BR0ADCAST_1"/> </intent-filter> </recei ver>

< recei ve r android:name = "EoeAnd ro idRece i ver 2"> <intent-filter> <act ion android:name "com.eoeandroid.action.NEW_BR0ADCAST_2"/>

</receiver>

</application>

ft J& t A' ill ft if J ft flft T ffl ^ Broadcast Recei ver , EoeAndroidReceiverl, 5} '^Ji

EoeAndroidReceiver2c #\ # wf Et $ action % "com.eoeandroid.action.NEW BROADCAST 1" fft Intent» action *j"com.eoeandroid.action.NEW BROADCAST_2"tfj Intent.

Was this article helpful?

0 0

Post a comment