Using Android Radar in map application

by Georgy » Tue, 09 Jun 2009 03:40:14 GMT


Sponsored Links
 Greetings,

I am trying to embed the Android Radar package in my map application.

I already installed RADAR from the Market on my G-1 and added the
following code to my application:

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

where I am passing the lat and long of the point I am trying to show
on the radar. I checked on logcat that the long/lat provided are
accurate.  The issue is that the RADAR apears but is stuck on distance
= 8794km and the point that appears on the radar is completely
incorrect.

I also tried shaking the device and tried several other locations with
the same issue.  Is there anything I need to provide to the radar
package more than I already did?

PS: I am capable to identify the location targeted and my current
'device' location and the distance in between accurately (using other
functions) from my device.

I could use some help here.

thanks guys
--~--~---------~--~----~------------~-------~--~----~



Using Android Radar in map application

by Fuzzycat » Wed, 10 Jun 2009 03:38:00 GMT


 



I'm using this for mine which works fine for me...

            Intent radarIntent = new Intent
("com.google.android.radar.SHOW_RADAR");
            radarIntent.putExtra("latitude", items.get(i).getPoint
().getLatitudeE6());
            radarIntent.putExtra("longitude", items.get(i).getPoint
().getLongitudeE6());
            startActivity(radarIntent);





hth

FuzzyCat

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Using Android Radar in map application

by Georgy » Wed, 10 Jun 2009 04:17:36 GMT


 Is that all you provided?

 in yuor code:

 radarIntent.putExtra("latitude", items.get(i).getPoint
().getLatitudeE6());
            radarIntent.putExtra("longitude", items.get(i).getPoint
().getLongitudeE6());


is "items.get(i).getPoint().getLongitudeE6())"   is just the
longitude?  how about : radarIntent.putExtra("longitude", -78.45353);
shouldn't it work??/
Thnaks





--~--~---------~--~----~------------~-------~--~----~



Using Android Radar in map application

by Georgy » Wed, 10 Jun 2009 21:13:36 GMT


 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);


                  }





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Search context with type-to-search?

When implementing search in my application, I'm including some search
context info depending on the activity where search is invoked.  In
one of those, I'd like to implement type-to-search as well, but the
standard method of adding search context info doesn't work in that
case... the onSearchRequested() method in the activity is never
called.

Is there any way to include search context info in a type-to-search
invocation, or am I stuck with only the Search key and menu option?
--~--~---------~--~----~------------~-------~--~----~

2. HTC magic static ip not working

Hello all,

i juz bought HTC magic yesterday.
and i want to join my wifi network using linksys router.
i want to use the static IP setting.
but why it always obtaining IP from the router ???


anyone can help me plz??


--~--~---------~--~----~------------~-------~--~----~

3. EAP Tunneled TLS (TTLS) Authentication Protocol for Android?

4. Android and Data Call

5. Integrating libupnp to Android

6. Widget home screen position

7. cupcake and Bluetooth status