Childbrowser plugin for Android, implementation related question

35 views
Skip to first unread message

pearl.bjc

unread,
Mar 31, 2012, 4:35:55 PM3/31/12
to phon...@googlegroups.com
Hello Phongap developers and all seniors,

I have made simple iPhone application using  Phonegap (1.5- cordova) successfully. In that i am able to load www.mywebsite.com and able to navigate website fine.

Now i am making same sort of application for android. So far i am able to display www.mywebsite.com successfullly, not fully tested yet.

As I have worked in past with JAVA and android, i looked into the source of ChildBrowser.JAVA file.. and found that webview is loaded dynamically as title less, cancel-able dialog box 
   dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
   dialog.setCancelable(true); 

So if user presses BACK button on android device (this button is not available in iPhone)... it will simply dismiss the dialog box, which i think not right ?

Another point, it is actually not loading remote webpage into same window (as it seem to be in iPhone), right? 


What i want to implement is first page should be loaded is www.mywebsite.com from local empty index.html (onLoad and cb.showWebPage). IF back button is pressed to my first page then it should terminate the application, right now it is showing blank local web page.

Thanks in advance,

pbjc

Simon MacDonald

unread,
Apr 2, 2012, 12:17:16 PM4/2/12
to phon...@googlegroups.com
That is the way the ChildBrowser is designed on Android. 

I think what you want to do is a super.loadUrl("http://www.mysite.com"); from your main Android class.

Simon Mac Donald
http://hi.im/simonmacdonald


--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com

Reply all
Reply to author
Forward
0 new messages