×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    5

    Wake up a j2me application

    Hi all,

    How can i wake up a j2me application by click on file (for example: test.png).
    Similar when i click on music file and my mobile will be automatic turn on Music player.

    Who can help me, please !

  2. #2
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: Wake up a j2me application

    Hi phucpd,

    I like your idea, But In J2ME it is not possible . It is same as like open with functionality in the windows . I am also interested if any one have any suggestions on this.

  3. #3
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Wake up a j2me application

    Actually you might want to have a look at the JSR-211...
    Specifically in the Mokia Library you can find quite some info on that :
    http://library.forum.nokia.com/topic...w-1-9-1-9.html

    Library->Java developer's library 3.x->Developer's guides->Invoking Applications

  4. #4
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: Wake up a j2me application

    Hi Tiger,

    Thanks for your valuable information. I will go through that .

  5. #5
    Registered User
    Join Date
    Jun 2010
    Posts
    5

    Re: Wake up a j2me application

    Hi Tiger,

    I understand that you are talking about Push Registry (JSR-211).
    But i saw about Pust Registry for many days, it can not support for me resolved that problem.

    The format of the MIDlet-Push attribute is...
    MIDlet-Push-<n>: <ConnectionURL>, <MIDletClassName>, <AllowedSender>

    But i dont need <ConnectionURL> if i wake up from a exist file on my phone.

    Who can help me, please !

  6. #6
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Wake up a j2me application

    Actually Push Registry is JSR-118...
    I am talking about the Content Handler API JSR-211.
    You did have a look at the Nokia Library, and specifically the chapters I linked in my previous post ?

  7. #7
    Registered User
    Join Date
    Jun 2010
    Posts
    5

    Re: Wake up a j2me application

    Hi Tiger,

    I understand. But in Push Registry (and in your post link) can wake up a j2me app from a other j2me.
    For example: in specifically of that chapter, it call (Wake up) AudioHandler midlet from TextHandler miblet.
    My idea is: from my phone -> select a file from folder -> and select that file -> open my j2me application.

    I'm not sure that you can understand my idea, but thank you so much!
    Hope that who can hel me!

  8. #8
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Wake up a j2me application

    The only thing I saw was the following :
    Java Developer's Library 3.5 > Developer's Guides > Invoking applications > Content Handler > Using the Content Handler API

    In which there are two method's, static registration adn dinamic registration...
    Those will register your app to be started when a specific file extension is opened (for example .jpeg)...
    Or at least, thats what I think it does, I only skimmed through the documentation, the specific reading and how-to's I leave up to you, after all you are the one needing it to work

  9. #9
    Registered User
    Join Date
    Jun 2010
    Posts
    5

    Re: Wake up a j2me application

    uhm...
    I configurated midlet jad file following:

    MicroEdition-Handler-1-ID: example.imageviewer.ImageViewer
    MIDlet-1: Image Viewer,,example.imageviewer.ImageViewer
    MIDlet-Jar-URL: ChapiDemo.jar
    MicroEdition-Handler-1: example.imageviewer.ImageViewer, image/png, .png , open
    MicroEdition-Configuration: CLDC-1.1
    MIDlet-Version: 1.0.0
    MIDlet-Name: CHAPIDemo
    MIDlet-Vendor: Midlet Suite Vendor
    MIDlet-Permissions: javax.microedition.io.Connector.http,javax.microedition.content.ContentHandler
    MicroEdition-Profile: MIDP-2.0

    But when i click on a file (for example abc.png) is nothing happend.
    I was registed my midlet by Dinamic Registry.

  10. #10
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Wake up a j2me application

    you tried this on a device which actually supports the API ?
    also have you read anything about if its needed to sign the app or not ?

    actually placing those extra fields in the JAD is static registration, not dynamic...
    If you are also using dynamic (in your code) then it's kinda double (static in your JAD AND dynamic in your code), I have no idea what the effects are of such an implementation...

  11. #11
    Registered User
    Join Date
    Jun 2010
    Posts
    5

    Re: Wake up a j2me application

    OK, i will come back after i review again spec of document about JSR-221.
    Hope to resolved this problem.

    ^Think everything, do anything^

Similar Threads

  1. Re: Updating the application (version) by J2ME. URGENT!!!
    By abhsax1978@hotmail.com in forum Mobile Java General
    Replies: 2
    Last Post: 2010-04-26, 07:43
  2. MMS application using J2ME on Nokia Phone
    By andik6 in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2010-01-17, 00:19
  3. MMS application using J2ME
    By andik6 in forum Mobile Java General
    Replies: 1
    Last Post: 2010-01-15, 13:44
  4. Advice For J2ME Application and Question
    By localarea in forum Mobile Java General
    Replies: 2
    Last Post: 2008-06-30, 01:36
  5. Replies: 0
    Last Post: 2004-08-25, 11:42

Posting Permissions

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