Solved. As Locode was my GeoPoint:

// RADAR CODE
            Intent i = new Intent
("com.google.android.radar.SHOW_RADAR");
            i.putExtra("latitude",  (float)(locode.getLatitudeE6() /
1000000f));
            i.putExtra("longitude", (float)(locode.getLongitudeE6() /
1000000f));
            startActivity(i);


                  }

I still wonder what kind of unit does the intent RADAR takes, I
thought it was Long/latitude.



On Jun 8, 2:58 pm, Georgy <[email protected]> wrote:
> Does anyone have any idea why the distance could be wrong? actually
> it's not changing...
>
> if my code is this:
>
>  Intent i = new Intent("com.google.android.radar.SHOW_RADAR");
>             i.putExtra("latitude", locode.getLatitudeE6()/1E6);
>             i.putExtra("longitude", locode.getLongitudeE6()/1E6);
>             startActivity(i);
>
> is that enough for the radar to pickup my own location and compare it
> to the one I attached to the putExtra???
>
> If so, why is the distance not changing?
>
> On Jun 8, 11:45 am, Georgy <[email protected]> wrote:
>
> > Oh sorry I was jsut in an area without reception.
>
> > thanks guys
>
> > On Jun 7, 1:33 pm, Georgy <[email protected]> wrote:
>
> > > You are right... for some reason I thought that I could simply point
> > > to an external package without installing it. So now, I got Radar from
> > > the market and pointed to it.
>
> > > the issue now is that I am getting a black screen..
>
> > > After looking at LogCat the activity ran without any problems... just
> > > a black screen..
>
> > > thanks
>
> > > On Jun 7, 1:05 pm, Mark Murphy <[email protected]> wrote:
>
> > > > Georgy wrote:
> > > > > "Unable to start activity ... no activity found to handle intent
> > > > > { action: com.google.android.radar.SHOW_RADAR (has extras) } "
>
> > > > That would suggest that either you do not have the Radar application
> > > > installed, or the one you have installed does not match the
> > > > AndroidManifest.xml from the open source tree.
>
> > > > If you think you have it installed, did you compile from source, or
> > > > install it off the Market, or get it via some other means?
>
> > > > --
> > > > Mark Murphy (a Commons 
> > > > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > > > Looking for Android opportunties?http://wiki.andmob.org/hado
--~--~---------~--~----~------------~-------~--~----~
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