Re: [android-developers] unable to respond to intent in an activity
On Sun, Mar 4, 2012 at 4:33 PM, Tom Ratajczak <tom.ratajczak@gmail.com> wrote:
> Wait with the beer for a moment:)
Beer delayed is beer denied.
> This is what I am already doing and the
> activity is selected as one of many, but how do i process the geo:45.0,34.0
> that the originating activity sends with startActivity(). This is the
> missing part here. Activity is selected based on filters but how does it
> know what number to dial.
Call getIntent() to get the Intent that was used with startActivity().
You get your Uri from there by calling getData(). For a geo: Uri, I'm
not completely certain what Uri getter would return the latitude and
longitude, though getAuthority() would be my guess.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training in NYC: http://marakana.com/training/android/
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home