June 29, 2014

 

WP8 Lumia device USB not detected in VirtualBox W8 guest

Turn on USB2.0 in virtual machine settings

Labels: , , , ,

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.

Labels: , , , , , , , , , ,

January 21, 2010

 

Battery level in J2ME

NOKIA:
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)

Labels: , , , , ,

This page is powered by Blogger. Isn't yours?