You Are Here:

Community: Developer Discussion Boards

#1 Old Question Backlight and vibration on N70 / S60 - 2006-07-29, 14:04

Join Date: Jul 2006
Posts: 2
Location: Austria
klemensz
Offline
Registered User
Hi,

We're developing a game with CLDC 1.1 and MIDP 2.0 and came across the following "roadblocks":

Backlight:
When calling the javax.microedition.lcdui.Display.flashBacklight() method the backlight flashes a few times BUT the the phone immediately closes the J2ME application (!?).
When calling the com.nokia.mid.ui.DeviceControl.setLights(0, 100) method the backlight flashes once and the same happens (exits the application).

What we basically need for our J2ME game is to keep the backlight on during the game (if the user wants to and selects this option).

Vibration:
I know how it should work in theory (com.nokia.mid.ui.DeviceControl.startVibra() or Display.vibrate()), but is there a way to make it work in practice as well?

On the emulator both backlight and vibration works... but on the real phone.. you know.. :-/ In the document "2nd Edition Platforms: Known Issues" (http://www.forum.nokia.com/info/sw.n..._9_en.pdf.html) they write about known issues in the 6600 - does the same apply to the N70? Has anybody managed to make it work?

Thanks in advance for any helpful comments!
Reply With Quote

#2 Old Re: Backlight and vibration on N70 / S60 - 2006-07-29, 17:09

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
Hi klemensz,

I've tested on S60 6680 phone (2nd Ed FP2) and both works fine:
I've used only MIDP 2.0 implementation because all recent nokia docs states to not use Nokia UI api for that,
Code:
boolean success = getDisplay().flashBacklight(500);
txtBacklight.setText("status: "+success);
Code:
boolean success = getDisplay().vibrate(500);
txtVibra.setText("status: "+success);
Iv'e got different results on Nokia SDK emulators (as you mentioned them) compared to real device: Nokia Prototype SDK 4 (S60 version) supports only backlight but no vibra, SDK S60 FP3 doesn't support any of above, SDK S60 FP2 seems to support both but no visible feedback in emulator can be observed,

maybe that could be issue with phone firmware (N70), do you have a chance to test on different device from S60 family or different device of that kind?

regards,
Peter
Last edited by peterblazejewicz : 2006-07-29 at 17:29.
Reply With Quote

#3 Old Cool Re: Backlight and vibration on N70 / S60 - 2006-07-30, 19:18

Join Date: Jul 2006
Posts: 2
Location: Austria
klemensz
Offline
Registered User
Thank you Peter!
Finally I managed to make it work with the two MIDP methods.

The problem that remains: How to keep the backlight on during the game? There is no method for this in MIDP 2.0 and Nokia UI's method DeviceControl.setLights() doesn't seem to work.
There's another (older) thread that deals with this issue and where people came up with some strange workarounds: backlight on the 7650

Actually, I'm not using the Nokia SDK emulators but Sun's J2ME Wireless Toolkit. In the end the game should run on all mobiles that support CLDC 1.1 and MIDP 2.0 (+ other necessary APIs) - not only Nokia's.

The firmware version of my N70 is "V 2.0539.1.2, 19-10-05, RM-84". Guess I'll have to contact my "nearest Nokia authorized repair/service center" to get information about available firmware updates...

Klemens
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Vibration implementation on NOKIA 3650 s01200994 Mobile Java General 5 2004-06-13 21:35
backlight on the 7650 shmoove Mobile Java General 16 2004-04-03 01:12

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d184934X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZgamesQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ