June 29, 2014
WP8 Lumia device USB not detected in VirtualBox W8 guest
Turn on USB2.0 in virtual machine settings
Labels: lumia, nokia, virtualbox, windows 8, wp8
November 3, 2010
Pointer events bounce on clicks
Yesterday made simple experiment: recorded in log coordinates (x,y) of pointer press, drags and release events at real devices. During experiment I only clicked (not scroll!) at screen using finger. Devices are: Nokia 5230 and Samsung S5230.
Results impressed me a lot: bounce is up to 23 pixels (for y up to 15, possibly because of finger shape)!
This mean that if you need to differentiate scroll from click, you have to implement some kind of filter that takes into account time and type of movements of pointer.
Results impressed me a lot: bounce is up to 23 pixels (for y up to 15, possibly because of finger shape)!
This mean that if you need to differentiate scroll from click, you have to implement some kind of filter that takes into account time and type of movements of pointer.
Labels: click, events, j2me, java, mobile, nokia, pointer, programming, research, samsung, scroll
January 21, 2010
Battery level in J2ME
NOKIA:
System.getProperty("com.nokia.mid.batterylevel");
SONYERICSSON (via Sensor API, starting from JP-8.3):
(from http://developer.sonyericsson.com/community/docs/DOC-2956)
System.getProperty("com.nokia.mid.batterylevel");
SONYERICSSON (via Sensor API, starting from JP-8.3):
SensorInfo[] batteryInfo = SensorManager.findSensors("battery_charge", null);
SensorConnection sensor = (SensorConnection)Connector.open(batteryInfo[0].getUrl());
Data data[] = sensor.getData(1);
String batteryLevel = "Current charge level: "+data[0].getIntValues()[0];
(from http://developer.sonyericsson.com/community/docs/DOC-2956)