url - Send my current location via SMS - Android -


im new android developer. want send sms contains current location. know how location coordinates. want send url, , user open , see am(for example: waze can share location , think google maps app). tried google maps api didnt find option generate url.

can give ideas?or api?

thanks everyone!!!

i guess need.

public void sendlocationsms(string phonenumber, location currentlocation) {     smsmanager smsmanager = smsmanager.getdefault();     stringbuffer smsbody = new stringbuffer();     smsbody.append("http://maps.google.com?q=");      smsbody.append(currentlocation.getlatitude());     smsbody.append(",");     smsbody.append(currentlocation.getlongitude());     smsmanager.sendtextmessage(phonenumber, null, smsbody.tostring(), null, null); } 

i use map overlay instead of default maps.

i have developed app uses location feature , shows in map. see on google play.

"wherez u" https://play.google.com/store/apps/details?id=com.kabhos.android.apps.knowmylocation


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -