Maps API and legacy

by arnouf » Wed, 29 Sep 2010 23:27:56 GMT


Sponsored Links
 Hi all,

I found this post

This posting 
 http://stackoverflow.com/questions/2023669/j2me-android-blackberry-driving-directions-route-between-two-locations 
suggests that "you must not use the Map Service with any applications
for route guidance, including but not limited to turn-by-turn route
guidance that is synchronized to the position of a user's sensor-
enabled device"

so if I understand we can use maps API to retrieve a route between two
points (and kml file provided by the URL) and draw on a mapview the
way. Is it right ?

Thanks for your answer

--



Maps API and legacy

by arnouf » Thu, 30 Sep 2010 00:27:32 GMT


 I found a solution calling Intent. Is it legal ?
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://
maps.google.com/maps?
f=d&hl=en&saddr=43.593051,43.593051&daddr=43.593052,7.004667&ie=UTF8&0&om=0"));





--


Sponsored Links


Maps API and legacy

by Morrison Chang » Thu, 30 Sep 2010 12:36:39 GMT


 I think that the code for the Intent is legal, its just a URI.
And you don't need a Google Maps API key to use it.
All the code does is either launches the Google Maps App or the
Browser which go to the Google Maps site. As either would launch new
apps I would think its okay with the realization that at any point
Google can change its mind about the URI format or disable it.






--



Other Threads

1. can you tell if you're in the debugger?

programmatically?

i.e. I'd like to do something like --

if (de{*filter*}IsAttached()) {
    // do something
} else {
    // do something else
}

tia.
--~--~---------~--~----~------------~-------~--~----~

2. MapActivity in android 1.5

Hello,

I want to display my two point on maps. I saw many example but they
are using MapActivity when i used MapActivity in my sdk which is 1.5.
it seems it is not available in it. So is it true that it is not
available in 1.5 API. So is there any other alternative for it. can i
do it using the following code sniiipt. I can do it for one code
snippt but i do not know how can i display two point.


String uriString = "geo:" + lat
                + "," + longi;
            Intent intent = new Intent
(android.content.Intent.ACTION_VIEW,
                Uri.parse(uriString));
--~--~---------~--~----~------------~-------~--~----~

3. Ini Dia Smartphone Paling Laris

4. Android phones hope to take a bite out of Apple dominance

5. <Android-Beginners> Query : How to get the full path of the files under "res" folder of an Android App?

6. can I use EditText in AppWidget?

7. How to submit to ADC 2