• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hyperlink control in MIDP?

 
Shuai Liu
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
If it's possible, how can I insert a hyperlink in my form? I want the browser to be invoked when user clicks on the link.
Thank you!
[ April 01, 2004: Message edited by: Shuai Liu ]
 
Ritesh Agrawal
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
MIDP as such doesn't provides any way to insert a hyperlink in your form. You can use textfield to enter URL and then open browser to browse that page. Or else, you can use the "Command" object in your midlet to create a hyperlink in a form. I think it wont be a hyperlink in true sense but more or less a work around the limitation. You can set the action for this command and invoke the browser when this command is selected by the user in your form.
Ritesh Agrawal
 
Shuai Liu
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ritesh,
Thank you for your suggestion. 2 questions
1. How do I invoke a browser in a MIDP app?
2. I guess if I use command to "simulate" hyperlink, I won't be able to list multiple of those "pseudo-hyperlinks" in my form since only a limited number of them will show up as buttons?
Thnx again.
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For calling external browser applications, check out this link
http://www.coderanch.com/t/227927/JME/Mobile/Call-Native-Application
 
Shuai Liu
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Michael Yuan:
For calling external browser applications, check out this link
http://www.coderanch.com/t/227927/JME/Mobile/Call-Native-Application

Thank you Michael, so I guess the final answer is that invoking browser from a MIDP app is not possible...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic