×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    4

    Hi need some help =/

    Hi, umm im a newbie to java and i was thinking of making an application so that will turn on my phone's LED flash.i found this: http://library.forum.nokia.com/index...shControl.html but got no idea where to start =/ can anyone help me start off ><?

    P.S.my phone is Nokia 6600 slide. Platform S40, 5th series?

  2. #2
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: Hi need some help =/

    u can try following guidelines:
    1. create the player.
    2. Instantiate the FlashControl as like other controls.
    3. Use the functions of FlashControl.

    Use this method for control the activities of Flash : void setMode(FlashControl.FORCE) to open the flash.
    Before opening the flash check that whether flash is already opened or not by the use of getMode() .


    check and reply.
    thanks,
    jitu_goldie..

    KEEP TRYING..

  3. #3
    Registered User
    Join Date
    Aug 2009
    Posts
    4

    Re: Hi need some help =/

    alrite.. sorry about the umm "short" delay. i got something together(from looking at other code and yes i really don't know what im doing)but when i try compiling it, it says
    Code:
    VideoCanvas.java:169: <identifier> expected
    	public void setMode(FORCE) {
    	                         ^
    1 error
    com.sun.kvem.ktools.ExecutionException

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Hi need some help =/

    When declaring a method parameter, you need a type and a name, like:

    Code:
    public void setMode(int force) {
    Don't use all capital letters, except for "static final" class members.

    Graham.

Posting Permissions

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