こんにちは私はブラックベリーに不慣れです私はこのアプリケーションでブラックベリーアプリを作成します私は問題に直面していますデータベースにいくつかのデータを保存しようとしていますそしてシミュレーターでアプリケーションを実行するとデータは完全にデータベースに保存されますがこのアプリを実行するとデバイス何もデータベースに保存されていません。私はこのコードを調べています。
String url="http://68.20.66.178:8080/locationProvider/location.json";
GPRSCellInfo cellInfo = GPRSInfo.getCellInfo();
String event="";
//String requestString = "lat="+ parameters.lat + "&lon=" + parameters.lon;
String temp="cellid=" + GPRSInfo.getCellInfo().getCellId() + "&lac="
+ GPRSInfo.getCellInfo().getLAC() + "&mcc=" + cellInfo.getMCC()+ "&mnc="
+ cellInfo.getMNC() + "&imei=" + GPRSInfo.imeiToString(GPRSInfo.getIMEI(), false).trim() + "&lat="
+ parameters.lat + "&lon=" + parameters.lon
+ "&type=WORKFORCE&event" + event;
temp="imei="+imei1+"&cellid"+cellid+"&lac="+lac+"&mcc=" +mcc+"&mnc="+mnc+ "&lat="+ parameters.lat+"&lon=" + parameters.lon+"&type=WORKFORCE&event=" + event;
HttpConnectionUtil objConnectionUtil=new HttpConnectionUtil();
strRes1=objConnectionUtil.responseForGetRequest(url, temp);
System.out.println("Response1====="+strRes1);
Thread.sleep(delay);
ApplicationDescriptor current=ApplicationDescriptor.currentApplicationDescriptor();
current.setPowerOnBehavior(ApplicationDescriptor.DO_NOT_POWER_ON);
私はシミュレーターからこの値を取得しています
URL==http://68.20.66.178:8080/locationProvider/location.json
[0.0] parameters==cellid=0&lac=0&mcc=0&mnc=0&imei=123456783648138&lat=0.0&lon=0.0&type=WORKFORCE&event
[0.0] response=={"lat":"0", "lon":"0", "provider":""}
[0.0] Response1====={"lat":"0", "lon":"0", "provider":""}
だから私が間違えたところは私に提案してください
ありがとう