Re: Re: Android page transition/switching/loading
We are aware of the issue:
https://github.com/phonegap/phonegap-android/issues/194
The reason you see the black flash is that each page in your
application now loads a new DroidGap instance in order to display the
pages. This needed to be done for a number of technical reasons chief
among them is the main page of your app would be reloaded if you go
from page1.html to page2.html and then back to page1.html. All of the
state you had in page1.html would be lost.
So, in summary we are looking into ways to fix the issue.
Simon Mac Donald
http://hi.im/simonmacdonald
On Tue, Aug 9, 2011 at 12:05 PM, Dimanche <dimanchec3@...> wrote:
> I can go through pages now, but I'm having the same black screen flash
> problem when switching between pages.
>
> I
>
> On Aug 8, 11:31 pm, DJF <david.j.fl...@...> wrote:
>> Im running into the same problem with 1.0.0 for Android, except I have
>> a white screen between pages and I have black backgrounds. I am
>> running Android 2.3.3 on my phone and for the library. I've tried
>> various libraries ranging from 2.1 update 1 all the way to 3.2 and
>> that did not make a difference.
>>
>> I've tried using href="home.html" and the window.location javascript.
>> Both succesfully take me to the home page (or the respective page),
>> but no matter what I get the white "flash" between pages. Here is my
>> script order on my html page:
>>
>> <script type="text/javascript" charset="utf-8" src="javascript/
>> phonegap-1.0.0.js"></script>
>> <script type="text/javascript" charset="utf-8" src="javascript/
>> childbrowser.js"></script>
>> <script type="text/javascript" charset="utf-8">
>>
>> var childBrowser;
>>
>> function onLoad() { // Initialiation Start
>>
>> document.addEventListener("deviceready", onDeviceReady, false);
>> }
>>
>> function onDeviceReady() { // Required for initialization
>> document.addEventListener("menubutton", onMenuKeyDown, false);
>> document.addEventListener("pause", onPause, false);
>> document.addEventListener("resume", onResume, false);
>> }
>>
>> function onMenuKeyDown() { // Required for menu button changes
>> }
>>
>> function onPause(){ // Required for changes while leaving proram
>> }
>>
>> function onResume(){ // Required for on return to program
>> }
>>
>> function openChildBrowser(){
>> window.plugins.childBrowser.showWebPage('http://testlink.com');
>> }
>>
>> </script>
>>
>> Any ideas? If anything, if I could get that screen to be black
>> instead of white, that would be fine with me.
>>
>> On Aug 5, 10:11 am, Dusty <iond...@...> wrote:
>>
>>
>>
>>
>>
>>
>>
>> > > You can assign window.location as ur HTML file.not sure if this is what u r looking for
>>
>> > I am assigning the window.location with the file and the page loads,
>> > but before it loads the screen goes black.
>
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phonegap@...
> To unsubscribe from this group, send email to
> phonegap+unsubscribe@...
> 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
>
--
--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phonegap@...
To unsubscribe from this group, send email to
phonegap+unsubscribe@...
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