Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Feb 2009

    6212 - how to store data from midlet into internal mifare

    hello all.

    I have been using the 6212 emulator (i am waiting on a data cable to arrive to try the real phone) and have developed a few test MIDlets to read tags etc...

    I wish to store data in either the secure element or the internal mifare area. Am i right in saying i can either develop a Java Card Applet to live on the SE (and no such apps come with it by default?) which my MIDlet can talk to, or the alternative is to store data directly via my MIDlet to the mifare? What are the advantages/disadvantages of storing data in either SE or midfare?

    I am fairly new to NFC and the SE part of this, and i have spent a good few days solid reading documentation and SDKs and basically everything i can get my hands on, but i am struggling to even store a simple amount of data.

    I have tried the code below, which on the emulator, throws an exception saying "java.io.IOException: Connection error: secure element off".

        String internalUrl = System.getProperty("internal.mf.url"); // this returns nfc:rf;type=mf;mode=internal
    	  MFStandardConnection conn = (MFStandardConnection) Connector.open(internalUrl); // this throws the IOException
    How do i access the internal mifare tag and read/write data?

    Thanks in advance!!

  2. #2
    Registered User
    Join Date
    Sep 2008

    Re: 6212 - how to store data from midlet into internal mifare

    I am getting the exact same exception when I try to open a connection to "internal.mf.url". What needs to be changed to open this connection? Is it a phone setting? I couldn't find any settings that worked.


  3. #3
    Regular Contributor
    Join Date
    Jul 2007

    Re: 6212 - how to store data from midlet into internal mifare

    I see two possible ways to solve this problem:

    1. Activate the card on the phone: in the main menu, go to NFC>NFC Settings and check that NFC is on and cards are always avilable.

    2. Change the security domain. In the emulator preferences, go to MIDP, overrule default handset behavior and choose the "Maximum" security domain.

  4. #4
    Registered User
    Join Date
    Jun 2010

    Re: 6212 - how to store data from midlet into internal mifare

    am new in this topic, and am not an expérimented developer....now am working on a project to créate an application for the nokia 6212 that use the NFC...i think i am on the wrong way...so may be my questions will apppear to you pointless but i have no other solution...
    how must i proceed in the first step?? wich packages i have to use?? plateforms??
    now i am using netbeans the s40 and the emulator of the N 6212...it works...but ...i have no idea about the initial steps
    so if any one can help...
    thank you verry much

  5. #5
    Registered User
    Join Date
    Feb 2009
    Hagenberg, Austria

    Re: 6212 - how to store data from midlet into internal mifare

    Hallo usfstudent,

    first of all, you posted your question as a reply to an exisiting thread (especially an existing thread that is not related to your question). Please start a new thread if you have a new question.

    Regarding Java ME development for NFC I would suggest you start with the WIKI page on NFC (although I have to admit that many links are broken :-( . You might also want to take a look at the FAQ page fo the Nokia 6131. There is also a section with code examples for programming the NFC functionality (here).


Similar Threads

  1. image full screen
    By Morbidick in forum Mobile Java General
    Replies: 8
    Last Post: 2008-12-04, 04:16
  2. suckho, i have encontered the same problems. Could you tell me how you resolved it?
    By dicson_hu in forum Symbian Networking & Messaging (Closed)
    Replies: 4
    Last Post: 2005-12-09, 10:56
  3. Need help: Access to MIDLet's data store?!
    By pikalov78 in forum Mobile Java General
    Replies: 2
    Last Post: 2003-09-14, 13:19
  4. sending data from computer to midlet
    By Strunker in forum Mobile Java General
    Replies: 4
    Last Post: 2003-08-26, 00:27
  5. RMS and midlet data size in 7650, ngage and 3650
    By gs1284 in forum Mobile Java General
    Replies: 0
    Last Post: 2003-04-29, 14:39

Posting Permissions

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