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 !
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 !
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.
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
Hi Tiger,
Thanks for your valuable information. I will go through that .
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 !
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 ?
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!
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![]()
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.
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...
OK, i will come back after i review again spec of document about JSR-221.
Hope to resolved this problem.
^Think everything, do anything^