On 29 nov, 19:53, sreekanth nambu <[email protected]> wrote:
> Hi all
>
>    I am developing a android project named " Smart Google Maps ".For
> my App, I need to use Google Maps Application which is built in with
> Android SDK 1.6.I need to call google Maps from my App. How could I do
> that?
>
> I am able to use call Phone dialer using intents from my
> Application.But I am unable to do it for Google Maps.
> I did'nt find any intents for google maps to call GoogleMaps from my
> application.
> Can anyone suggest me solution for this? Its is my term project and
> dead stuck with it?
>
> Regards
> Sreekanth Nambu

Hello !

I'm currently working on an Apps which use google Maps Apps.

There is two way :
Call a Mapview on your App,
Or juste Launch Google maps.


                Intent intent_map= new Intent(this, map.class);
                Bundle extras = new Bundle();
                extras.putSerializable("TheStore", this.TheStore);
                intent_map.putExtras(extras);
                startActivity(intent_map);

And your Map.Class :

maMap = (MapView)findViewById(R.id.MygMap);
                //On installe la fonction de zoom
                maMap.setBuiltInZoomControls(true);

                //On créé un point
                GeoPoint point = new 
GeoPoint(microdegrees(latitude),microdegrees
(longitude));

                //On utilise l'object MonOverlay qui permettra de faire une 
liste de
point...
                MonOverlay object = new MonOverlay(getResources().getDrawable
(R.drawable.icon2));
                object.addPoint(point);

                //On envoi les points à la map.
                maMap.getOverlays().add(object);

                //Mode Satelite
                //maMap.setSatellite(true);

                monControler=maMap.getController();
                monControler.setZoom(16);
                monControler.setCenter(point);


OR : for launch Google Maps:

                String requete;

                        requete="geo:lat,long";
                        Intent intent=new 
Intent(Intent.ACTION_VIEW,Uri.parse(requete));
                        startActivity(intent);


If someone knows on to create an itinerary... I've posted on this
Group, but my message is not displayed :s


Regards,

Geoffrey Monté



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