File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes How to transfer user to a clip? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "How to transfer user to a clip?" Watch "How to transfer user to a clip?" New topic

How to transfer user to a clip?

Casper Maxwell
Ranch Hand

Joined: Aug 04, 2005
Posts: 88

I have an application which displays some summary info about some clips. An example data is as follows:

Currently all items in the above list is shown as a Label. I want to make them (bottom two items) links. And when the user selectes them and press OK, s/he will be transfered to the clips and the clips are viewed automatically.

So what should i write in my CommandListener to implement this behavior.
I dont want to get the code directly. I mean i can get url of the video easily.

The main problem is opening the clips automatically. Are there any calls doing this? Isn't there a mime type in phones so that i can transfer the url to the os as in the case of "Opening browser windows in J2SE"?

Or should i choose the difficult way and implement a viewer based on MMAPI(Mobile Media API)?

Thanks for the answers.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Not sure how to answer this one, but have you looked into J2ME Polish. It has some nice UI stuff, that I would think might help solve your issue.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Casper Maxwell
Ranch Hand

Joined: Aug 04, 2005
Posts: 88
I doubt that i express my problem wrongly. I will try to explain it more. So i am sorry if i misunderstood sth.

I am looking for a functinality similar to this in J2SE (this one is J2ME of course):

When you want to open an url (after the user clicking a link) in a J2SE application, you need to call Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler index.html")

So I want sth similar to the above command in J2ME not for html files, for movie files. (So my problem is not related to GUI!) Cant we open movie files in system movie player using Java?

Thanks again. Regards.
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
Look up the MIDlet.platformRequest() API in MIDP 2.0. Check the javadoc for this.

It may work ... theoretically this will allow you to launch a native application for handling an URL. The application launched depends on the URL�s content type.

But ... this will be different from device to device.

Also, why not use MMAPI 1.1 for video rendering in MMAPI 1.1 ...
I never tried it but you should be able to do it...
[ August 26, 2005: Message edited by: Eduardo Marques ]

Eduardo Marques
Get ready for your SCMAD certification at - See what all the buzz is about ...
Casper Maxwell
Ranch Hand

Joined: Aug 04, 2005
Posts: 88
Thanks Eduardo,

I noticed it today somewhere else too. (

The owner of the application do not want me to use MMAPI. (Probably because of phone requirements.)

I will try this way. Thanks again.
I agree. Here's the link:
subject: How to transfer user to a clip?
It's not a secret anymore!