![](/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.