dataURI is a content provider URI (content://com.funkyandroid.provider.test/) which is created using Uri.parse.
I can't see a way to specify a MIME type in Uri.parse or in the resulting Uri object, so am I still missing something? Al. Peli wrote: > Your intent has a deceptively looking dataURI. Your intent filter > should therefore contain the <type ...> tag with the corresponding > MIME type of the dataURI in order to match. > > Peli > www.openintents.org > > On Feb 4, 2:36 pm, Al Sutton <a...@funkyandroid.com> wrote: > >> I have a service in an APK which starts a Thread which has the following >> in it's run method; >> >> Intent intent = new Intent("com.funkyandroid.TEST", dataURI); >> MyService.this.sendOrderedBroadcast(intent, null); >> >> In a different APK I have the following in the application section manifest; >> >> <receiver android:name=".Receiver" android:exported="true"> >> <intent-filter> >> <action android:name="com.funkyandroid.TEST /> >> </intent-filter> >> </receiver> >> >> And in the onRecieve(Context,Intent) method has; >> >> Log.i("Receiver", "Hello Momma!!!!!"); >> >> But the receiver doesn't receive the broadcast when I run it in the >> emulator (or at least the log message doesn't get received). >> >> Any hints? >> >> Al. >> >> -- >> ====== >> Funky Android Limited is registered in England & Wales with the >> company number 6741909. The registered head office is Kemp House, >> 152-160 City Road, London, EC1V 2NX, UK. >> >> The views expressed in this email are those of the author and not >> necessarily those of Funky Android Limited, it's associates, or it's >> subsidiaries. >> > > > -- ====== Funky Android Limited is registered in England & Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---