On Sun, Mar 4, 2012 at 8:18 PM, Mark Murphy <mmur...@commonsware.com> wrote:
> On Sun, Mar 4, 2012 at 10:45 AM, Tom Ratajczak <tom.ratajc...@gmail.com> > wrote: > > My application is to respond to the following intent > > > > Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("geo: > > 45.0,34.0")); > > > > Filtering in the manifest is setup correctly and user is presented > > with choice, but once the choice is made the activity does not respond > > in > > > > receiver = new BroadcastReceiver() { > > public void onReceive(Context context, Intent intent) { > > Log.d("intent", "Received intent " + intent); > > } > > }; > > > > even though it was presumably set up correctly > > > > IntentFilter intentFilter = new IntentFilter(); > > intentFilter.addDataScheme("geo"); > > intentFilter.addAction(Intent.ACTION_VIEW); > > registerReceiver(receiver, intentFilter); > > > > The same setup does respond to battery power change but for some > > reason fails here. Any help is greatly appreciated. > > ACTION_VIEW is an activity action. It is used with startActivity(). It > is not used with sendBroadcast(). I see the difference now, so this explains why the battery power intent was received. But I still don't know how to receive the intent that was sent with startActivity. Thanks for your help. -- 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