×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    10

    MFStandardConnection.getApplicationDirectory returns null

    I'm using Nokia 6212 emulator and omnikey cardman 5321 and I want to connect to Mifare 4k.
    Establishing connection is ok but getApplicationDirectory allways returns null.
    I tried to read data using read function and it reads correct data.
    This code snippet is part of targetDetected function.
    HTML Code:
    String uri = properties[0].getUrl(properties[0].getConnectionNames()[0]);
    MFStandard connection = (MFStandardConnection) Connector.open(uri);
    MFApplicationDirectory dir = connection.getApplicationDirectory(); //dir = null
    int res = connection.read(new MFKey.KeyA(key), buffer, 0, 0, 64); //ok, res = 64
    I can't find where is a problem.
    Thanks for replies.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: MFStandardConnection.getApplicationDirectory returns null

    Quote Originally Posted by valenj4 View Post
    I'm using Nokia 6212 emulator and omnikey cardman 5321 and I want to connect to Mifare 4k.
    Establishing connection is ok but getApplicationDirectory allways returns null.
    I tried to read data using read function and it reads correct data.
    This code snippet is part of targetDetected function.
    HTML Code:
    String uri = properties[0].getUrl(properties[0].getConnectionNames()[0]);
    MFStandard connection = (MFStandardConnection) Connector.open(uri);
    MFApplicationDirectory dir = connection.getApplicationDirectory(); //dir = null
    int res = connection.read(new MFKey.KeyA(key), buffer, 0, 0, 64); //ok, res = 64
    I can't find where is a problem.
    Thanks for replies.
    Did you check this, the original poster seems to have got it working.

    Cheers,
    Mayank

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    10

    Re: MFStandardConnection.getApplicationDirectory returns null

    Conditions are set to 0 1 0 (read with key A|B, write never) for block 0 and 1 0 0 (read with key A|B, write with key B) for blocks 1 and 2. Conditions for sector trailer are set to 0 1 1 (both keys may be only written with key B, conditions can be read with both keys and written with key B).
    I think that is not a problem.

Similar Threads

  1. Client exit when new sms(general sms, not related with APP) comes,
    By sanjeevmehtaubi in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2009-04-22, 16:06
  2. Please its veru urgent on nokia 3250
    By siva_guduru in forum Mobile Java General
    Replies: 8
    Last Post: 2008-05-01, 10:24
  3. Video playback with sound but nothing on Screen
    By abdullah829 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2007-11-30, 14:04
  4. conn = (MessageConnection)Connector.open(smsc); returns null
    By JWtheCoolOne in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2005-01-11, 09:30
  5. Personal
    By JSmith77 in forum PersonalJava
    Replies: 4
    Last Post: 2003-07-30, 12:52

Posting Permissions

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