![](/img/trans.png)
[英]How can i plot the longitudes and latitudes sent from my android app to tomcat server and plot on the google maps there?
[英]How can i plot the lat ,lng sent from my android app to tomcat server and plot on the google maps there?
请支持,我已将从我的 android 获得的 lat/lngs 发送到 apache tomcat 服务器,使用 servlet 和 jsps 为 web 运行 java。 我不会在谷歌地图上绘制那些获得的纬度/经度。 任何机构都可以告诉我应该怎么做,我可以这样做。 *使用servlets 和jsps 提前感谢吨。
尝试这个。 但出于某种原因,所有移动提供商都没有提供手机号码。
手机号码
public String getPhoneNO() {
String phoneno = "";
TelephonyManager tMgr = (TelephonyManager) context
.getSystemService(Context.TELEPHONY_SERVICE);
phoneno = tMgr.getLine1Number();
if (phoneno != null) {
return phoneno;
}
return "";
}
// 模拟
public String getSim() {
String phoneno = "";
TelephonyManager tMgr = (TelephonyManager) context
.getSystemService(Context.TELEPHONY_SERVICE);
phoneno = tMgr.getSimOperatorName();
if (phoneno != null) {
return phoneno;
}
return "";
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.