Can j2me trigger a browser opening

Forum for J2ME mobile games related topics including programming doubts, books and other resources for J2ME game development

Can j2me trigger a browser opening

Postby koey » Sat Jul 28, 2007 5:29 am

I want to play a video clip in my j2me application, but the phone doesn't support jsr 135, so I wonder whether I can put a link in my application and let the user click the link there and open a browser to play the video clip instead. Thanks!
koey
 
Posts: 44
Joined: Fri Jan 19, 2007 5:07 pm

Postby DevelopmentTeam » Sat Jul 28, 2007 9:02 am

platformRequest(String url) function can be used on your MIDlet class for M!DP2 models which wll open the url you specify on the device browser. But it will ask for user confirmation before opening the url. Meanwhile the midlet will be taken to the background. And there is no much control over the browser... just can open it.
User avatar
DevelopmentTeam
Site Admin
 
Posts: 661
Joined: Tue Aug 15, 2006 8:39 am
Location: India

Postby koey » Sat Jul 28, 2007 8:29 pm

Great. I have tested using the function and it works. However, if I can control the opening time for the browser, it will be much better.

Thanks a lot!
koey
 
Posts: 44
Joined: Fri Jan 19, 2007 5:07 pm

Postby koey » Sun Jul 29, 2007 2:20 pm

Another problem occurs......When I want to make the URL direct to a webpage of embedded movies in .3gp, I discover that for browser in computer, all the movies have sound and screen. But, when I browse it on mobile, only sound but nothing to see. Do you know why?

Code: Select all
<html>
<body>

<embed style="width:100px; height:100px;" type="video/3gp" src="http://xxxxxx.3gp">
</embed>


    <p>object only</p>
    <object data="http://xxxxxx.3gp"
            width="100" height="100"
            type="video/3gpp">
      object not supported
    </object>


    <p>object and embed</p>
    <object
       width="100"
       height="100"

       
      <param name="type" value="video/3gpp">
      <embed src="http://xxxxxx.3gp"
        width="100"
        height="100">
      </embed>
    </object>



</body>
</html>
koey
 
Posts: 44
Joined: Fri Jan 19, 2007 5:07 pm


Return to J2ME Games

Who is online

Users browsing this forum: No registered users and 1 guest

cron