Join Today
+ Reply to Thread
Results 1 to 9 of 9
  1. #1

    Default Java GPS/Routing access ?

    I have to questions, maybe one of you knows an answer:

    1.) Is it possible to access the GPS coordinates from a J2ME programm ?
    2.) Is it possible to start the navigation software from J2ME ?

  2. #2

    Default Re: Java GPS/Routing access ?

    I believe the JSR-179 APIs are restricted to unsigned midlets -- you'd need to get Motorola to sign your .jar in order to use them on the actual phone.

    Also, it seems possible that you shouldn't need a "GPS-enabled" phone with the firmware discussed in the other forum in order to use JSR-179. The "strings" output of the JVM application on my A780 with older firmware suggests that JSR-179 is present. There is also a libezxlocation.so somewhere in /usr.

  3. #3

    Default Re: Java GPS/Routing access ?

    Is there a way to replace the Motorola Keyring with one that contains my own key ? I'm thinking about buying an A780 but if I cannot write some software for the phone myself I think there will be better alternatives.

  4. #4
    Join Date
    Feb 2005
    Location
    The Netherlands
    Cell: E680 flashed to E680i
    Posts
    1,368

    Default Re: Java GPS/Routing access ?

    you can write native sw's for it...
    Yes, but does it run Linux?

  5. #5

    Default Re: Java GPS/Routing access ?

    Quote Originally Posted by maxx_730
    you can write native sw's for it...
    There were references to an EZX SDK discussed on CCMOVE a few months ago. Anybody know where it might be found now? That would be really cool to get on xorphan's file server...

  6. #6

    Default Re: Java GPS/Routing access ?

    Quote Originally Posted by maxx_730
    you can write native sw's for it...
    C++ and QT-Embedded, right ? Maybe it would be really time to learn something about QT.

    Does Motorola provide APIs for accessing the phone/pim/gps from native code ?

  7. #7
    Join Date
    Feb 2005
    Location
    The Netherlands
    Cell: E680 flashed to E680i
    Posts
    1,368

    Default Re: Java GPS/Routing access ?

    Moto doesnt provide fuck...
    Yes, but does it run Linux?

  8. #8

    Default Re: Java GPS/Routing access ?

    Quote Originally Posted by maxx_730
    Moto doesnt provide fuck...
    Hmpf...

    okay, let me rephrase it... does someone already know how the "not provided" APIs for the A780 work ? What's the use of a programm running on a phone if it cannot access the phones goodies ?

  9. #9

    Default Re: Java GPS/Routing access ?

    I take it back that you *need* to get midlets signed by Motorola. If you only want to run your own JSR-179 midlets on your phone, and don't mind minor hacking, you can alter the midlet's security domain after installation. Just put the phone in mass storage mode and look for:

    .system/java/DownloadApps/MIDletXXXXX/registry.txt

    (replace XXXXX with some number, usually 00500 and up)

    It will look something like (as an example):

    Jar-Path: /diska/.system/java/DownloadApps/MIDlet00502/Files/midpssh-full.jar
    Jad-Path:
    Perm-Path: /diska/.system/java/DownloadApps/MIDlet00502/permfile.txt
    Suite-Icon: /diska/.system/java/DownloadApps/MIDlet00502/Files/MIDlet-1.png
    DRM-Mode: Forbidden
    Is-Trusted: 0
    Jar-URL:
    Description:
    Domain: untrusted
    Signer-Name:
    Mot-JavaVM-Heapsize: 822098176
    Delete-Notify:
    Num-MIDlets: 1
    MIDlet-1: MidpSSH, /diska/.system/java/DownloadApps/MIDlet00502/Files/MIDlet-1.png,app.Main

    Just change the Domain and Is-Trusted values, and it'll let you do whatever you want.

    In the "setup" cramfs image, there is a file called .policy/_devdomain.txt that describes the different security domains and which APIs they have access to. Very interesting.

    Writing native apps would still be a lot more fun, where's that SDK?!?


 
+ Reply to Thread

Similar Threads

  1. Access to GPS on a780
    By akmits in forum Development Stickys
    Replies: 53
    Last Post: 02-04-2008, 08:45 AM
  2. Help: JAVA apps cannot access internet (solved)
    By arjunr in forum A1200 General Chat
    Replies: 8
    Last Post: 08-29-2007, 10:05 AM
  3. JFYI: GPS access
    By Floe in forum A780 General Chat
    Replies: 0
    Last Post: 03-10-2006, 11:20 PM
  4. Java GPS access
    By koma in forum A780 General Chat
    Replies: 2
    Last Post: 10-30-2005, 02:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1