×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    48

    Question FileConnection API not working in nokia 6275

    Hi

    I am developing a general j2me application to read/write a file or create a folder in phone/memory card.

    code is as follows not working in nokia 6275 while working in other devices, this device support releated JSR, but not working...

    String filepath = System.getProperty("fileconn.dir.photos");
    String filename = "testtest.txt";
    FileConnection fileConnection = (FileConnection)Connector.open(filepath+filename, Connector.READ_WRITE);

    if(!fileConnection.exists() )
    {
    fileConnection.create();
    }


    http://www.forum.nokia.com/Devices/D...ications/6275/
    http://leerobertson.com/unlocking-a-nokia-6275i/

    Please help if possible....

    Thanks in advance
    mohit28garg

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

    Re: FileConnection API not working in nokia 6275

    Quote Originally Posted by mohit28garg View Post
    Hi

    I am developing a general j2me application to read/write a file or create a folder in phone/memory card.

    not working in nokia 6275 while working in other devices, this device support releated JSR, but not working...


    Hey,

    On this device what is not actually working?
    was there any exception/error/message/alerts displayed to the user?

    On which other devices this is working?
    Did you check the PDAP demo is it working on the same?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Registered User
    Join Date
    Jun 2009
    Posts
    48

    Re: FileConnection API not working in nokia 6275

    1) I want to simple create a file/folder in phone/memory card using FileConnection
    and
    2) browse file from C/E drive

    in 1) case it is not showing any error but not creating any file/folder too....
    in 2) case there is an error java/lang/NullPointerException

    I have tested PDAP demo on this CDMA handset..
    PDAP demo Start->
    FileBrowser -> select -> C:/E: select -> java/lang/SecurityException Access Denied
    jsr75 PIM APIs -> select -> (contact lists) select -> (phone) select -> Error


    what i am doing wrong, Please help, is there any other way for file connection in CDMA.........

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

    Re: FileConnection API not working in nokia 6275

    Quote Originally Posted by mohit28garg View Post
    1) I want to simple create a file/folder in phone/memory card using FileConnection
    and
    2) browse file from C/E drive

    in 1) case it is not showing any error but not creating any file/folder too....
    in 2) case there is an error java/lang/NullPointerException
    .

    I have tested PDAP demo on this CDMA handset..
    PDAP demo Start->
    FileBrowser -> select -> C:/E: select -> java/lang/SecurityException Access Denied
    jsr75 PIM APIs -> select -> (contact lists) select -> (phone) select -> Error


    what i am doing wrong, Please help, is there any other way for file connection in CDMA.........
    1. You have go to the settings and have to edit the permission of the read/write/edit the user data?
    2. Are you sure that the file conenction reference or the path string are not null?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Registered User
    Join Date
    Jun 2009
    Posts
    48

    Re: FileConnection API not working in nokia 6275

    thanks for reply..


    where i have to change in settings...

    there is another problem with this handset....
    when i install unsigned jar file on other mobile and start application then it ask "read user data" and "write user data" and it can be set allways allowed to read/write user data with change settings and when application is signed......
    but in this mobile behavior is changed, this phone does not support signed jar file with verisigned(invalid application). and
    when using unsigned jar file then application is not asking for "read user data and write user data".

    file connection ref or path string is not null as it is working in E-63, E-71, Sony W705 and so on but not in this CDMA device its working.

    Please help.......

    Thanks and Regards
    mohit28garg

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

    Re: FileConnection API not working in nokia 6275

    Hello,
    Who is the vendor of the device?


    when using unsigned jar file then application is not asking for "read user data and write user data".
    Try to run any other demo like the web or PIM or any other which ask for the permssion from the user and check the result?
    Was the PDAP demo successfully run?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  7. #7
    Registered User
    Join Date
    Jun 2009
    Posts
    48

    Re: FileConnection API not working in nokia 6275

    Hi,


    PDMA demo dint successfully run.....and also it dint ask for read/write user data permission

    I have tested PDAP demo on this CDMA handset..
    PDAP demo Start->
    FileBrowser -> select -> C:/E: select -> java/lang/SecurityException Access Denied
    jsr75 PIM APIs -> select -> (contact lists) select -> (phone) select -> Error

    Thanks and Regards
    mohit28garg

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

    Re: FileConnection API not working in nokia 6275

    Quote Originally Posted by mohit28garg View Post
    Hi,


    PDMA demo dint successfully run.....and also it dint ask for read/write user data permission

    I have tested PDAP demo on this CDMA handset..
    PDAP demo Start->
    FileBrowser -> select -> C:/E: select -> java/lang/SecurityException Access Denied
    jsr75 PIM APIs -> select -> (contact lists) select -> (phone) select -> Error

    Thanks and Regards
    mohit28garg
    Who is the vendor of the device?
    Did you try to find the settings of the pdap demo, sign this and try to change the settings for the same..
    This time dont forget to mention the device vendor.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  9. #9
    Registered User
    Join Date
    Jun 2009
    Posts
    48

    Re: FileConnection API not working in nokia 6275

    hello,

    Thanks for your help, there was not a issue in code, there is an option "Application access", i was to change the permission to "add and edit data" there as you was saying to change settings....it is possible only in unsigned it is not supporting signed(verisign) application..

    I got the solution, Thanks again


    Thanks and Regards
    mohit28garg

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

    Re: FileConnection API not working in nokia 6275

    I will appriceate if you could share the solution, irespect to whether it was my suggestion or not.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  11. #11
    Registered User
    Join Date
    Jun 2009
    Posts
    48

    Re: FileConnection API not working in nokia 6275

    In nokia-6275, I was unable to install signed jad/jar file .
    In this mobile when i transfer jad/jar in a folder(say test folder) using data transfer mode from pc to mobile then,
    when we open test folder in mobile then there will be installed application not jad and jar file.
    as compare to other mobile there is auto installed of j2me application no need to install.

    Problem
    I want to use FileConnection api to create a file/folder in phone/memory using my application but i was unable cause

    Solution
    To use FileConnection api using j2me in Nokia-6275, we have to set permission.
    before open application go to application icon then click on option->application access-> data access -> add and edit data -> edit this option change it to ask every time .
    then aplication will work...

    Hope this will help

    Thanks and Regards
    mohit28garg

Similar Threads

  1. Nokia 6275 MMAPI JSR 135 - Not working
    By badrinath.bahadur in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2007-10-10, 23:13
  2. Nokia N70, Nokia 9500 + FileConnection API
    By mark.ramos222 in forum Mobile Java General
    Replies: 2
    Last Post: 2007-04-10, 21:29
  3. Replies: 1
    Last Post: 2006-12-06, 11:03
  4. MIDlet signing for Nokia 6682(on Cingular ) to access the JSR-75(FileConnection API)
    By rmontrose in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2006-01-31, 02:59
  5. Replies: 2
    Last Post: 2005-06-10, 19:31

Posting Permissions

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