This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Author

How to transfer user to a clip?

Casper Maxwell
Ranch Hand

Joined: Aug 04, 2005
Posts: 88
Hello,

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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
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 J2MECertificate.com - 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. (http://forum.java.sun.com/thread.jspa?messageID=3861797)

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

I will try this way. Thanks again.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to transfer user to a clip?
 
Similar Threads
[struts 2] Use Javascript confirm() dialog
AJUG: Use Cases for Concept App
Accessing indexed property with JSTL
jstl populating a menu via iteration
XMLType in oracle procedure