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. G1 Matot

gan, ada yg tau ga cara hidupin lagi T-Mobile G1 yg matot.

intinya logo T-Mobile pada awal booting ga muncul. tp kl di tekan
tombol power, lampu tombol menyala semua termasuk tombol keyboard. ada
yg tau solusinya ga? -trims

-- 
===============
"

2. [WTA] kirim file lewat bluetooth selalu gagal

Maaf suhu-suhi,
numpang nanya, kenapa saya ngga bisa kirim file lewat bluetooth ya?hh
ane spica .
uda nyoba pake astro bluetooth module sama bt file transfer tapi gagal
terus, kirain karna belum di-root, tapi setelah di-root sama aja tuh,
mohon pencerahannya, thx

-- 
===============
"

3. sedikit curhat soal signal evdo

4. kira-kira sampai ke indonesia ga?

5. Strange Problem with releasing bitmaps and 'back' button

6. Anybody else getting "document.body is null" JS error when loading Market Dashboard?

7. Button placement problems