嗨,我是黑莓新手,我在此应用程序中创建了一个黑莓应用程序,我遇到了一个问题,我尝试将一些数据存储在数据库中,当我在模拟器中运行我的应用程序时,数据完全存储在数据库中,但是当我运行此应用程序时设备没有存储在数据库中。我正在浏览这段代码。
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":""}
所以我在哪里犯错请建议我
谢谢