Question

I have made an android app using codename one

I tried the following with codename one:

1) Display.getInstance().flashBacklight(10);

2)Display.getInstance().vibrate(100);

3)Display.getInstance().sendsms();

All these API worked properly for the J2me build.

However, for android none of them worked. Why could this be happening? I tried it on motorolla atrix 2.

Was it helpful?

Solution

flashBacklight isn't supported on Android, if I remember correctly that functionality wasn't available on older Android versions it might be available now. You can file an issue on that and we can look into it again.

Vibrate should work its possible vibration was disabled on that specific device but I haven't tried it. You can file an issue on that as well and we can have a look.

Send SMS works for me, it opens up the SMS intent on Android and passes the text/number to which the SMS should be sent. This is different behavior than the J2ME version of sending SMS.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top