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. Bls: Need Help..DHD kerendam air

Tidak bisa klaim garansi boss..
Kerendam air merupakan kesalahan pemakai..
Kalo sudah kerendam sebaiknya jgn digunakan, matikan handheld trus cabut 
baterainya..
Kalo perlu taruh di atas receiver yg permukaannya panas, biar air dalam 
handheld berkurang..
Sebaiknya bawa segera aja ke tempat service, biar nanti mesinnya dikeringkan 
sebelum komponen dalam hape pada berkarat..
Powered by Telkomsel BlackBerry

-----Original Message-----
From: hendra santoso <hendra...@gmail.com>
Sender: id-android@googlegroups.com
Date: Sun, 10 Apr 2011 00:33:44 
To: <id-android@googlegroups.com>
Reply-To: id-android@googlegroups.com
Subject: [id-android] Need Help..DHD kerendam air

Dear friends id-android... Hari ini saya lg kurang beruntung, td pagi
rumah kebanjiran krn ada saluran yg tersumbat akibatnya air hujan
tertampung di halaman belakang dan masuk hingga ke kamar  tau2 DHD
kesayangan yg lagi ditaruh di lantai udah kerendam banjir. Namun DHD
masih dalam kondisi nyala ,kemudian saya matikan . Hingga beberapa jam
kemudian saya hidupkan lagi, fungsi telpon dan lain2 berjalan normal.
Namun ada tanda semacam layar berwarna terang di bagian tepi. Saya
tidak tau ini apakah karena korsleting atau ada air di bagian
permukaan lcd nya.

Yang ingin saya tanyakan,apakah ada rekan2 yg pernah mengalami nasib
yg sama. Dan bagaimanakah saya menanganinya. Untuk saat ini yg bs saya
lakukan hanya mematikan dhd tsb kemudian dipendam di dalam beras.  Oh
ya dhd ini bergaransi resmi, kira2 kalau memang rusak lcdnya apakah
bisa diklaim garansi? Bila tidak bisa kira2 berapa biaya penggantian
lcd tersebut.

Please, mohon bantuannya..padahal saya baru beberapa hari memakainya
dan DhD ini sungguh..hiks:(

Regards,
Hendra Santoso

-- 
Sent from my mobile device

Regards,
Hendra Santoso

-- 
===============


-- 
===============

2. Access Androidify avatar from another app

I had fun using the Androidify app to create avatars for myself and
family.  I am currently writing a multiplayer card game and was
wondering if it is possible to access the saved "My Androids" and
offer my users a way to use one of their androidify icons to represent
them in my game.  This would be similar to Avatar games available in
the XBOX 360 arcade market.

Thanks,
-Robert

-- 

3. converting Java jar to Android App

4. Force Close on Click in Calendar after i delete all information set in it

5. how to decode bytes from mp3 to pcm ?

6. inflate popup menu items programatically

7. Android 2.3.4 on Nexus One