×

Discussion Board

Results 1 to 13 of 13

Thread: login in j2me

  1. #1
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    193

    login in j2me

    hi ,
    i want to put a login and log out
    options in menu.
    which one will be the good way to get that.
    should i implement rms to store password.
    or is there any other way as well.

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

    Re: login in j2me

    TextBox and TextField both support a constraint option PASSWORD, which doesn't echo the input.

    RMS would be the place to store the password. Keep in mind that, on some devices, it may be possible to retrieve and read the RMS files. If you need security you should encrypt the password.

    Cheers,
    Graham.

  3. #3
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: login in j2me

    Quote Originally Posted by jackofall View Post
    hi ,
    i want to put a login and log out
    options in menu.
    which one will be the good way to get that.
    should i implement rms to store password.
    or is there any other way as well.
    If you want to make your application as standalone and dont want to connect to the web then you can save the user account information in RMS itself...

    else you can hit the server and can confirm for the validation.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  4. #4
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    193

    Re: login in j2me

    Quote Originally Posted by raj_J2ME View Post
    If you want to make your application as standalone and dont want to connect to the web then you can save the user account information in RMS itself...

    else you can hit the server and can confirm for the validation.
    server would be a good option for me.
    thanks Graham

  5. #5
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Thumbs up Re: login in j2me

    Hi,
    Yup,that is totally depends upon the requirement....and the security level you wana implement in the application....

    I think server concept is far better..
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

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

    Thumbs up Re: login in j2me

    ya u can hit the server and get response from server. If server response is unauthorised person then denied his access to application. But what in the case when server is down or there is no network or user has no balance in his mobile and he has to access the application. Think also from the view of user too. So both the options ie RMS and SERVER are good but maintain only that one which is more user friendly and protective in nature.
    thanks,
    jitu_goldie..

    KEEP TRYING..

  7. #7
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    193

    Re: login in j2me

    thanks jitu_goldie,
    At the moment, i am working with record store .

    i want to write two record
    login and
    password
    in a Record Store
    easy way to retrieve these two strings.
    first time working with record store.

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

    Thumbs up Re: login in j2me

    when first time application runs create a RMS for password and check whether it is empty or not. If empty the take input from user on a form with three textfields, one for login name,second for password and third for confirm password. check that password in both the fields are same or not. If same then save the login name and password to RMS. From next time when user starts the application then he face a login form with two textfields asking for login name and password. Compare the login name and password enter here by the user with the saved one in RMS. U can also give the functionality of change login information to user. here user has to enter the old information as well as new login name and password. If the old information match with the saved information then update the information saved in RMS with the new one.

    But take care of the suggestion gives by graham to protect the RMS from illegal access.
    So encrypt the login information before save it in RMS.
    Please check the link for encryption and decryption..

    http://www.codemiles.com/java/j2me-encryption-t703.html

    Hope this makes some sense to u.
    Last edited by jitu_goldie; 2009-04-08 at 12:11.
    thanks,
    jitu_goldie..

    KEEP TRYING..

  9. #9
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    193

    Re: login in j2me

    Thanks jitu_goldie,
    you help is appreciable!

    Cheers

  10. #10
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    193

    Re: login in j2me

    public static RecordStore openRecordStore(String recordStoreName,
    boolean createIfNecessary)
    where is this data base stored on hard drive.
    or how can i see this data "recordStoreName".
    Is it like filing in c++?
    I just need to know where midlet is storing the data.

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

    Thumbs up Re: login in j2me

    Quote Originally Posted by jackofall View Post
    public static RecordStore openRecordStore(String recordStoreName,
    boolean createIfNecessary)
    where is this data base stored on hard drive.
    or how can i see this data "recordStoreName".
    Is it like filing in c++?
    I just need to know where midlet is storing the data.
    if u r using wtk2.5 then go to the folder where it is installed.
    then open appdb folder -> defaultcolorphone->here is ur Recordstore..
    thanks,
    jitu_goldie..

    KEEP TRYING..

  12. #12
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    193

    Re: login in j2me

    Quote Originally Posted by jitu_goldie View Post
    if u r using wtk2.5 then go to the folder where it is installed.
    then open appdb folder -> defaultcolorphone->here is ur Recordstore..
    hello jitu,

    i didn't find this recordStoreName in defaultcolorphone.
    i am using netbeans as well.
    i am not sure this method creates a rs or not.

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

    Thumbs up Re: login in j2me

    I think u have to first learn about recordstore..
    Please check out this link it helps u alot..

    http://www.java2s.com/Tutorial/Java/...ecordStore.htm

    in netbeans at which emulator platform do u work?
    is it wtk2.5.2 or wtk 2.5?
    Please check out the same.
    thanks,
    jitu_goldie..

    KEEP TRYING..

Similar Threads

  1. Parsing xml data from the server using kxml2 in J2ME
    By dninsiima in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2010-03-26, 08:08
  2. J2ME or C++ for VoIP on Mobile
    By sandeepkumar03 in forum VoIP
    Replies: 4
    Last Post: 2009-02-02, 10:28
  3. J2ME or C++ for VoIP on Mobile Phone
    By sandeepkumar03 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2008-11-13, 20:14
  4. Acessing voice channel using J2ME
    By diegomello in forum VoIP
    Replies: 1
    Last Post: 2008-10-21, 15:57
  5. Can J2ME be used for sending MMS Message ?
    By seno_ap in forum Mobile Java General
    Replies: 1
    Last Post: 2006-11-24, 14:36

Posting Permissions

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