blackberry-widgets

BlackBerry Widget application - GPS location is always 0,0

时光怂恿深爱的人放手 提交于 2020-01-25 08:25:06
问题 I am trying to get the GPS location in a widget application on a blackberry, but the API always returns a latitude and longitude of 0,0. Simulator: storm 2 (9550)/ bold(9700) and OS: 5.0/5.0 IDE:Eclipse the html page code as below: var modeCellsite = 0; var modeAssisted = 1; var modeAutonomous = 2; function locationChanged() { alert("Lat " + blackberry.location.latitude + " Lon " + blackberry.location.longitude + " Time " + blackberry.location.timestamp ); return true; } if ( window

Blackberry.location API not working correctly

守給你的承諾、 提交于 2020-01-06 08:50:33
问题 I am experimenting with making Blackberry widgets but having a little trouble. My first trial involves displaying a button which, when clicked, calls a JavaScript function that should alert the phones latitude and longitude. The function looks: function whereAmI() { var latitude = blackberry.location.latitude; var longitude = blackberry.location.longitude; alert("Lat: "+latitude+", Long: "+longitude); } But it only ever alerts "Lat: 0, Long: 0". I've checked and my GPS seems to be working ok.

Session management in Blackberry Webworks

让人想犯罪 __ 提交于 2019-12-09 22:56:56
问题 I want to be develop a blackberry application.That used an external DB through webservice call.I am choosing blackberry web works for developing this.I want to store a userid in phone like session after logged in a user.How use session management in BB webworks? help is highly appreciated. Thanks, Comp 回答1: You can use either SQLlite or Cookies. Cookies are extremly useful and easy to implement for non critical data: function setCookie(c_name,value,exdays){ var exdate=new Date(); exdate

Session management in Blackberry Webworks

时光怂恿深爱的人放手 提交于 2019-12-04 18:04:52
I want to be develop a blackberry application.That used an external DB through webservice call.I am choosing blackberry web works for developing this.I want to store a userid in phone like session after logged in a user.How use session management in BB webworks? help is highly appreciated. Thanks, Comp You can use either SQLlite or Cookies. Cookies are extremly useful and easy to implement for non critical data: function setCookie(c_name,value,exdays){ var exdate=new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate