please be a support, i have sent the lat/lngs obtained from my android to an apache tomcat server,running java for web using servlets and jsps. I wont to plot those obtained lat/lngs on the Google maps. can any body please tell me how should and can i do that. *Using servlets and jsps Thanks tons in advance.
try this. but some reason all mobile provider not give mobile number.
mobile no
public String getPhoneNO() {
String phoneno = "";
TelephonyManager tMgr = (TelephonyManager) context
.getSystemService(Context.TELEPHONY_SERVICE);
phoneno = tMgr.getLine1Number();
if (phoneno != null) {
return phoneno;
}
return "";
}
// Sim
public String getSim() {
String phoneno = "";
TelephonyManager tMgr = (TelephonyManager) context
.getSystemService(Context.TELEPHONY_SERVICE);
phoneno = tMgr.getSimOperatorName();
if (phoneno != null) {
return phoneno;
}
return "";
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.