[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]mailto:[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] 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
-~--~~~~--~~--~--~---