×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    2

    Lightbulb write the gps coordinates to text file

    Hello,
    I hope you're all doing well ,,

    I have already implemented j2me tracking application, that:
    gets the GPS Coordinates every two minutes and and check whether the previous coordinates are equal to the new one, if so it will save it to text file with the current time. When it's going to write to the file, it must check whether it's new day or not, if so then it must write the date to the file before start writing the coordinates.

    Sample Output file:

    DATE

    TIME
    COORDINATE

    TIME
    COORDINATE

    ,and so on..

    Now I'm facing some problems that prevent the application from working appropriately. Such as:
    1- The application works as its should be at the first time,, but in the next time it couldn't get the coordinate,, it's display "unknown" in the mobile screen.

    2- Each time when its going to write to the file,, it keep asking for the Security Permission,, is there is away to make the application trusted so the user wouldn't be consulted for all permissions.

    I really appreciate it if u can help.

    Advance Thanks,
    Regards,
    Deema.

  2. #2
    Registered User
    Join Date
    Mar 2011
    Posts
    2

    Re: write the gps coordinates to text file

    Last edited by Deema; 2011-03-26 at 12:04.

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

    Re: write the gps coordinates to text file

    1- The application works as its should be at the first time,, but in the next time it couldn't get the coordinate,, it's display "unknown" in the mobile screen.

    2- Each time when its going to write to the file,, it keep asking for the Security Permission,, is there is away to make the application trusted so the user wouldn't be consulted for all permissions.
    for 1st --> try using LocationListener, to give you co-ordinates on every change in location - rather then asking every 2 min's this will be most optimized way to do it.

    for 2nd --> you can go for signing the application using any 3rd party code signing tool, which will allow the end user to grant permission to the app to "ask only once" for write permission on some devices which you need to educate the end user for.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

Similar Threads

  1. Send GPS coordinates to the website
    By mzahid09 in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2010-08-19, 11:25
  2. Replies: 3
    Last Post: 2010-07-20, 15:24
  3. How to write some text in to the file??
    By rohanwaugh in forum Symbian User Interface
    Replies: 25
    Last Post: 2008-09-22, 06:50
  4. very simple middlet class to write to write a text file
    By a_sina_a in forum Mobile Java General
    Replies: 10
    Last Post: 2008-03-07, 16:35
  5. How to write the Text from HBufC to a File?
    By jennie in forum Symbian User Interface
    Replies: 2
    Last Post: 2007-10-08, 07: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
  •  
×