Use html parsers which will give you the html code and then you use thiese tags in paint of your canvas to paint according to those tags
e.g. html tag is
paint your string onto the next line like that
I mean you have to create the web browser for your own and define the implementation for tags thats it
thus you can see the web site in your phone
but majorly you will face memory and processing(connection) problems for that use high configuration phones
..........and many more...........
@rjun
Yeah sure, I aggree but only for wap(.wml) pages and for html pages your request should pass through WAP gateway(which converts html pges to wap pages till some extent) and J2ME tries to connect to server directly not through the gateway(not just like wap browser).
so if you are reading html pages through your j2me application will get html tags which cannot be viewed in WAP browser.
am I right?
@rjun
> so if you are reading html pages through your j2me
> application will get html tags which cannot be
> viewed in WAP browser.
Who cares. There is no WAP brower in J2me, and neither a HTML browser. A platformrequest just starts the browser on the phone, and will not use any j2me stuff when it is started.
>There is no WAP brower in J2me, and neither a HTML browser.
Yes thats true, but we are discussing about opening website in j2me application so that there will be controll over the application. After calling platformRequest the respected application(JAM/WAP browser etc) is responsible for further controll and you cannot return back to originating j2me application but if you want full controll over j2me application you have to use customized web browser ie by using html/xml parser and render by j2me low apis thats only the solution.
@rjun
> but if you want full controll over
> j2me application you have to use customized web
> browser ie by using html/xml parser and render by
> j2me low apis thats only the solution.
Then forget WAP and HTML and use your own custom XML format to create form form and controls from web content. much simpler to do, and far more efficient.
But at first, check if you really need all that. In most cases, you don't
>But at first, check if you really need all that. In most cases, you don't
Actually I have my clients requirement that after some downloads/surfing he(user) should again come to his(clients) home page there is no way to do this in j2me i.e. after calling platformRequest() wap page will open but after exiting wap browsing your application is not launched automatically that you have to do manually. even resumeRequest() too.
ie
platformRequest(url);
resumeRequest();
will not take the midlet in active state
@rjun
No, I cannot determine how much time the exernal application(like WAP browser) will take, and when u call platformRequest() the midlet is destroyed not enters in paused state. I tried platformRequest() on nokia series where midlet is destroyed after calling the platformRequest() even I tried with running the platformRequest in another thread but after calling platformRequest JAM calls the destroyApp *** destroyApp(true) so the thread in which platformRequest is running is also killed and no WAP browser is opening is there any other remedy for this?
@rjun
You initially said: "Actually I have my clients requirement that after some downloads/surfing he(user) should again come to his(clients) home page there is no way to do this in j2me", thus my last post.
What you want can't be done with J2ME as far as I know, because the AMS has no control over what you do in your browser. Maybe some OS specific functions can help you with this, but you would have to search a little about it, and it would certainly not be a universal solution.
Mihai