[android-beginners] Re: Using google Maps

2008-10-01 Thread Friso Kluit
What is the reason for removing the driving / walking directions from the 1.0 
SDK? Is there an alternative we can use?

From: android-beginners@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Megha Joshi
Sent: Saturday, 13 September, 2008 7:38 AM
To: android-beginners@googlegroups.com
Subject: [android-beginners] Re: Using google Maps

You can use MapView APIs for android:
http://code.google.com/android/reference/com/google/android/maps/MapView.html

Check out MapView sample code at ApiDemps/Views/MapViewDemo.
Unfortunately, the directions API  is not included for 1.0 release.
2008/9/12 Hans <[EMAIL PROTECTED]>

Anyone has some sample code which i can look at for me to start off
interfacing with Maps. In my app i will need to get from place A to B
showing me with the use of an arrow the direction i should take. (i.e
similar to a GPS system). I am very new to android :(.
Thanks to all that can help me.






Republic Polytechnic, 9 Woodlands Avenue 9, Singapore 738964 (Near Woodlands 
MRT/Interchange).
www.rp.sg . Fax: +65 6415-1310 .

Republic Polytechnic, the first Institute of Higher Learning to fully adopt the 
Problem-Based Learning approach in Singapore, continues to strive towards best 
practices and maintain excellence in service standards with the following 
certifications: Singapore Innovation Class (SIC), Singapore Quality Class 
(SQC), People Developer Standards and QEHS (ISO 9001, 14001 and OHSAS 18001)

CONFIDENTIALITY CAUTION: This message is intended only for the use of the 
individual or entity to whom it is addressed and contains information that is 
privileged and confidential. If you, the reader of this message, are not the 
intended recipient, you should not disseminate, distribute or copy this 
communication. If you have received this communication in error, please notify 
us immediately by return email and delete the original message. Thank you.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: LocationManager.getCurrentLocation

2008-08-20 Thread Friso Kluit

Thanks, that helped. But now I am facing another problem entering a simulated 
route in the emulator. I am using the DDMS, downloaded some GPX files, but none 
of them work in the Location Controls. Same for KML files created with Google. 
Where can I find some sample GPX or KML files that are compatible with the 
emulator?

Thanks again,
Friso

-Original Message-
From: android-beginners@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Brett Chabot
Sent: Wednesday, 20 August, 2008 12:27 PM
To: Android Beginners
Subject: [android-beginners] Re: LocationManager.getCurrentLocation


There is also more details on using the location API here:
http://code.google.com/android/toolbox/apis/lbs.html

I also placed sample source code that illustrates use of a
LocationListener here:
http://groups.google.com/group/android-developers/files
(see LocationSample.zip):

I hope that helps. Please let us know if you have any additional
questions.

Regards,
Brett (from Google)

On Aug 19, 6:44 am, "Justin (Google Employee)" <[EMAIL PROTECTED]>
wrote:
> Please take a look at the documentation for 
> LocationManager,http://code.google.com/android/reference/android/location/LocationMan...
> .
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Aug 19, 12:27 am, Friso Kluit <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I just installed the beta 0.9 this morning and facing some trouble with the 
> > GPS service. The below code fragment worked in m5, but the 
> > getCurrentProvider property is not available in beta 0.9 anymore.
>
> > What is the new way of getting current location?
>
> > Cheers,
> > Friso
>
> > this.myLocationManager = 
> > (LocationManager)getSystemService(Context.LOCATION_SERVICE);
>
> > LocationProvider provider = this.myLocationManager.getProvider("gps");
> > this.myLocation = myLocationManager.getCurrentLocation(provider.getName());
>
> > // Create a new textview to display longitude / latitude
> > TextView tv = new TextView(this);
>
> > String lat = "Lat: " + myLocation.getLatitude();
> > String lon = "Lon: " + myLocation.getLongitude();
> > tv.setText(lat + "\n" + lon);
>
> > setContentView(tv);
>
> > 
>
> > Republic Polytechnic, 9 Woodlands Avenue 9, Singapore 738964 (Near 
> > Woodlands MRT/Interchange).www.rp.sg. Fax: +65 6415-1310 .
>
> > Republic Polytechnic, the first Institute of Higher Learning to fully adopt 
> > the Problem-Based Learning approach in Singapore, continues to strive 
> > towards best practices and maintain excellence in service standards with 
> > the following certifications: Singapore Innovation Class (SIC), Singapore 
> > Quality Class (SQC), People Developer Standards and QEHS (ISO 9001, 14001 
> > and OHSAS 18001)
> > 
> > CONFIDENTIALITY CAUTION: This message is intended only for the use of the 
> > individual or entity to whom it is addressed and contains information that 
> > is privileged and confidential. If you, the reader of this message, are not 
> > the intended recipient, you should not disseminate, distribute or copy this 
> > communication. If you have received this communication in error, please 
> > notify us immediately by return email and delete the original message. 
> > Thank you.




Republic Polytechnic, 9 Woodlands Avenue 9, Singapore 738964 (Near Woodlands 
MRT/Interchange).
www.rp.sg . Fax: +65 6415-1310 .

Republic Polytechnic, the first Institute of Higher Learning to fully adopt the 
Problem-Based Learning approach in Singapore, continues to strive towards best 
practices and maintain excellence in service standards with the following 
certifications: Singapore Innovation Class (SIC), Singapore Quality Class 
(SQC), People Developer Standards and QEHS (ISO 9001, 14001 and OHSAS 18001)

CONFIDENTIALITY CAUTION: This message is intended only for the use of the 
individual or entity to whom it is addressed and contains information that is 
privileged and confidential. If you, the reader of this message, are not the 
intended recipient, you should not disseminate, distribute or copy this 
communication. If you have received this communication in error, please notify 
us immediately by return email and delete the original message. Thank you.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] LocationManager.getCurrentLocation

2008-08-19 Thread Friso Kluit
Hi,

I just installed the beta 0.9 this morning and facing some trouble with the GPS 
service. The below code fragment worked in m5, but the getCurrentProvider 
property is not available in beta 0.9 anymore.

What is the new way of getting current location?

Cheers,
Friso

this.myLocationManager = 
(LocationManager)getSystemService(Context.LOCATION_SERVICE);

LocationProvider provider = this.myLocationManager.getProvider("gps");
this.myLocation = myLocationManager.getCurrentLocation(provider.getName());

// Create a new textview to display longitude / latitude
TextView tv = new TextView(this);

String lat = "Lat: " + myLocation.getLatitude();
String lon = "Lon: " + myLocation.getLongitude();
tv.setText(lat + "\n" + lon);

setContentView(tv);



Republic Polytechnic, 9 Woodlands Avenue 9, Singapore 738964 (Near Woodlands 
MRT/Interchange).
www.rp.sg . Fax: +65 6415-1310 .

Republic Polytechnic, the first Institute of Higher Learning to fully adopt the 
Problem-Based Learning approach in Singapore, continues to strive towards best 
practices and maintain excellence in service standards with the following 
certifications: Singapore Innovation Class (SIC), Singapore Quality Class 
(SQC), People Developer Standards and QEHS (ISO 9001, 14001 and OHSAS 18001)

CONFIDENTIALITY CAUTION: This message is intended only for the use of the 
individual or entity to whom it is addressed and contains information that is 
privileged and confidential. If you, the reader of this message, are not the 
intended recipient, you should not disseminate, distribute or copy this 
communication. If you have received this communication in error, please notify 
us immediately by return email and delete the original message. Thank you.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---