Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to transfer user to a clip?

 
Casper Maxwell
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Casper Maxwell
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Casper Maxwell
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic