×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    29

    Unhappy My application works on Symbian^3 emulator , but not on Device - C7.

    Hi,
    I have developed one Java application, which I have developed using S-60 simulator and have tested on E-71.
    It also works on Symbian^3. But It does not works on Nokia-C7?

    After installation when we start the application : alert comes as : "Application failed to start."
    And in details : Java.lang.NullPointerException is shown.


    Why?
    Plz help...

    -Rupaa

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: My application works on Symbian^3 emulator , but not on Device - C7.

    Quote Originally Posted by Rupa View Post
    Hi,
    I have developed one Java application, which I have developed using S-60 simulator and have tested on E-71.
    It also works on Symbian^3. But It does not works on Nokia-C7?

    After installation when we start the application : alert comes as : "Application failed to start."
    And in details : Java.lang.NullPointerException is shown.


    Why?
    Plz help...

    -Rupaa
    Hi Rupaa,

    Please check the filename of resource files you might be trying to load in your app at the startup, they are case sensitive on device but not on simulator.
    Try to put a try/catch block around sensitive code-lets and find the issue - what goes null on device.... if you still fail to fix.
    Give more details of your app or paste the code-lets that are giving null pointer on device - try putting some loggers in your code.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  3. #3
    Registered User
    Join Date
    Jul 2010
    Posts
    29

    Re: My application works on Symbian^3 emulator , but not on Device - C7.

    Thanks Amitabh,

    I have put try catch block every where but still it gives such error as soon as I click on "open" button after installation complete.

    But today I am able to track where the actual problem lies.

    In my application I have created folder to put application log file on memory card. And this was causing problem.

    When I commented this code worked successfully. But I need logs for my application.

    So then I tried to create a log folder inside "PhoneMemory / images". It worked.

    But now I do have new issue again.

    My application gets access to media folders on PhoneMemory and MemoryCard and transfers this files to the server.
    And now my application is failing to transfer the files from Memory Card.
    Its able to access and transfer the files from "PhoneMemory" to the Server.

    Means it proves that memory card is not accessible on C7. Why?


    Following are the lines that was causing problem :-
    fullPath = System.getProperty("fileconn.dir.memorycard")+ "myLogDirectoryName";

    I changed this to following then it worked:-
    fullPath = System.getProperty("fileconn.dir.photos")+ "myLogDirectoryName";

    And to access the memory card files, I am using the same : System.getProperty("fileconn.dir.memorycard").

    Plz help me to resolve this.






    -Rupaa.
    Last edited by Rupa; 2010-11-23 at 12:09. Reason: Code causing problem.

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: My application works on Symbian^3 emulator , but not on Device - C7.

    Quote Originally Posted by Rupa View Post
    Thanks Amitabh,

    I have put try catch block every where but still it gives such error as soon as I click on "open" button after installation complete.

    But today I am able to track where the actual problem lies.

    In my application I have created folder to put application log file on memory card. And this was causing problem.

    When I commented this code worked successfully. But I need logs for my application.

    So then I tried to create a log folder inside "PhoneMemory / images". It worked.

    But now I do have new issue again.

    My application gets access to media folders on PhoneMemory and MemoryCard and transfers this files to the server.
    And now my application is failing to transfer the files from Memory Card.
    Its able to access and transfer the files from "PhoneMemory" to the Server.

    Means it proves that memory card is not accessible on C7. Why?

    -Rupaa.
    Please check the full path that you are trying to use to access the memory card on C7, try out some filemanager or browser to cross check the path.
    Or try PDAPDemo app of WTK on this device and see if you can access the file system on this device on the memory card.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  5. #5
    Registered User
    Join Date
    Jul 2010
    Posts
    29

    Re: My application works on Symbian^3 emulator , but not on Device - C7.

    Quote Originally Posted by im2amit View Post
    Please check the full path that you are trying to use to access the memory card on C7, try out some filemanager or browser to cross check the path.
    Or try PDAPDemo app of WTK on this device and see if you can access the file system on this device on the memory card.
    Ok. Thanks

  6. #6
    Registered User
    Join Date
    Jul 2010
    Posts
    29

    Re: My application works on Symbian^3 emulator , but not on Device - C7.

    Hi Amit,

    There are three drives on Nokia C-7.
    C : Phone Memory
    E : Mass Memory
    F : Memory Card

    With the System.getProperty("fileconn.dir.memorycard") call I have got path as "file:///F:/" .
    But how to access then mass memory?
    Is there any API function?

    -Rupa

Similar Threads

  1. Error -34 on real device..application works fine on emulator
    By zlixa in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2009-11-18, 19:29
  2. Connection works on Emulator but not on a device.
    By kamuflage661 in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2009-08-06, 19:23
  3. J2ME application works on emulator, doesn't work on device
    By badzio in forum Bluetooth Technology
    Replies: 0
    Last Post: 2008-07-28, 13:32
  4. Listboxn works in emulator but not in device
    By arachidyl in forum Symbian
    Replies: 4
    Last Post: 2007-03-02, 20:06
  5. Application works on device, but not emulator
    By vodkaloon in forum Symbian
    Replies: 0
    Last Post: 2005-06-14, 11:15

Posting Permissions

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