[Android] Reopening app after navigator.app.exitApp();

370 views
Skip to first unread message

Thibault Durand

unread,
Jun 1, 2012, 11:35:48 AM6/1/12
to phon...@googlegroups.com
Hi, 

I'm facing a weird bug : i've bound the physical return button to navigator.app.exitApp() in order to exit the app.

It works fine, but when i'm returning in the app, the display is not fully displayed, the app seems to works fine, but only 2/3 of the page is displayed, the other 1/3 displays only the background color.

Is it possible that when returning the index.html is not fully loaded ?

Thanks!




Kerri Shotts

unread,
Jun 1, 2012, 5:24:43 PM6/1/12
to phon...@googlegroups.com
Just curious: does this space equal the size of the soft keyboard? Also, does it occur on device or on emulator or both? Is it consistently 1/3rd at the bottom on all different kinds of resolutions?

Thibault Durand

unread,
Jun 1, 2012, 5:38:55 PM6/1/12
to phon...@googlegroups.com
Some precisions:

I noticed that this space is not always the same, i can navigate to other page of my app and some have a bigger space (equivalent to the keyboard), some pages are totally fine (no space at all), and some have a smaller space than the keyboard. And some page doesn't work at all. I use JQTouch if it can helps.

It's really weird. I checked the adb log i'm not finding anything usefull.

This is the same behaviour in the emulator and in my two devices.

2012/6/1 Kerri Shotts <kerri...@gmail.com>
Just curious: does this space equal the size of the soft keyboard? Also, does it occur on device or on emulator or both? Is it consistently 1/3rd at the bottom on all different kinds of resolutions?

--
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

Kerri Shotts

unread,
Jun 2, 2012, 12:36:49 AM6/2/12
to phon...@googlegroups.com
If you attach weinre to it and then force a page reload in weinre's console, does that take care of the empty space?

Also, if you do an orientation change (assuming your app supports it), does that take care of it?


On Friday, June 1, 2012 4:38:55 PM UTC-5, Thibault Durand wrote:
Some precisions:

I noticed that this space is not always the same, i can navigate to other page of my app and some have a bigger space (equivalent to the keyboard), some pages are totally fine (no space at all), and some have a smaller space than the keyboard. And some page doesn't work at all. I use JQTouch if it can helps.

It's really weird. I checked the adb log i'm not finding anything usefull.

This is the same behaviour in the emulator and in my two devices.

2012/6/1 Kerri Shotts <kerri...@gmail.com>
Just curious: does this space equal the size of the soft keyboard? Also, does it occur on device or on emulator or both? Is it consistently 1/3rd at the bottom on all different kinds of resolutions?

--
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

Thibault Durand

unread,
Jun 2, 2012, 9:30:04 AM6/2/12
to phon...@googlegroups.com
  • Wow, that's weird. When i attach weinre the bug disappear, the app works like a charm. I can resume it and come back without any problem.... No display bug..

  • My app use only portrait mode

2012/6/2 Kerri Shotts <kerri...@gmail.com>

Thibault Durand

unread,
Jun 2, 2012, 9:50:44 AM6/2/12
to phon...@googlegroups.com
Actually, putting a <script src="thisdoesntexist.js"></script> cause the app block a little bit the loading, and resolve the problem...

But i want to find a better workaround ;-) 

Thibault Durand

unread,
Jun 2, 2012, 1:30:50 PM6/2/12
to phon...@googlegroups.com
And if i put this hack on the bottom of the page, it doesn't make the app slower, and it resolve the problem..

But still want to find a better workaround ;-)

filmaj

unread,
Jun 4, 2012, 3:10:21 PM6/4/12
to phonegap
Hey Thibault,

Can you provide details as to what device you are seeing this problem
on, such as model, Android OS, version, phonegap version, etc.

I would like to file this in our issue tracker so we can try to track
down the root of the issue and solve it properly.

Thanks,
Fil

On Jun 2, 10:30 am, Thibault Durand <tibo.dur...@gmail.com> wrote:
> And if i put this hack on the bottom of the page, it doesn't make the app
> slower, and it resolve the problem..
>
> But still want to find a better workaround ;-)
>
> El sábado, 2 de junio de 2012 10:50:44 UTC-3, Thibault Durand escribió:
>
>
>
>
>
>
>
>
>
> > Actually, putting a <script src="thisdoesntexist.js"></script> cause the
> > app block a little bit the loading, and resolve the problem...
>
> > But i want to find a better workaround ;-)
>
> > El sábado, 2 de junio de 2012 10:30:04 UTC-3, Thibault Durand escribió:
>
> >>    - Wow, that's weird. When i attach weinre the bug disappear, the app
> >>    works like a charm. I can resume it and come back without any problem....
> >>    No display bug..
>
> >>    - My app use only portrait mode
>
> >> 2012/6/2 Kerri Shotts <kerrisho...@gmail.com>
>
> >>> If you attach weinre to it and then force a page reload in weinre's
> >>> console, does that take care of the empty space?
>
> >>> Also, if you do an orientation change (assuming your app supports it),
> >>> does that take care of it?
>
> >>> On Friday, June 1, 2012 4:38:55 PM UTC-5, Thibault Durand wrote:
>
> >>>> Some precisions:
>
> >>>> I noticed that this space is not always the same, i can navigate to
> >>>> other page of my app and some have a bigger space (equivalent to the
> >>>> keyboard), some pages are totally fine (no space at all), and some have a
> >>>> smaller space than the keyboard. And some page doesn't work at all. I use
> >>>> JQTouch if it can helps.
>
> >>>> It's really weird. I checked the adb log i'm not finding anything
> >>>> usefull.
>
> >>>> This is the same behaviour in the emulator and in my two devices.
>
> >>>> 2012/6/1 Kerri Shotts <kerrisho...@gmail.com>
>
> >>>>> Just curious: does this space equal the size of the soft keyboard?
> >>>>> Also, does it occur on device or on emulator or both? Is it consistently
> >>>>> 1/3rd at the bottom on all different kinds of resolutions?
>
> >>>>> --
> >>>>> 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+unsubscribe@**googlegroups.com<phonegap%2Bunsubscribe@googlegroups .com>
> >>>>> For more options, visit this group at
> >>>>>http://groups.google.com/**group/phonegap?hl=en?hl=en<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 phon...@googlegroups.com
> >>> To unsubscribe from this group, send email to
> >>> phonegap+u...@googlegroups.com

Thibault Durand

unread,
Jun 4, 2012, 10:21:04 PM6/4/12
to phon...@googlegroups.com
I have this problem with:
  • Android 2.3
  • Phonegap 1.6  (i'm working with 1.6, but i've this problem since i started with 1.3)
  • Emulator Android 2.3
  • Samsung galaxy SII, Nexus S.
I would like to give you more information, but it's a closed source software, infortunately i can't give you a peace of code to try to reproduce this issue. But i'll try to make a sample app to with has this issue.

filmaj

unread,
Jun 5, 2012, 1:12:28 PM6/5/12
to phonegap
Hey Thibault,

I have filed the issue here: https://issues.apache.org/jira/browse/CB-865

If you get to putting together sample code to reproduce, please post
it to the above issue thread. Providing the sample code would
definitely help in having our developers take a look at it earlier,
and potentially fixing faster.

Cheers!
Fil

On Jun 4, 7:21 pm, Thibault Durand <tibo.dur...@gmail.com> wrote:
> I have this problem with:
>
>    - Android 2.3
>    - Phonegap 1.6  (i'm working with 1.6, but i've this problem since i
>    started with 1.3)
>    - Emulator Android 2.3
>    - Samsung galaxy SII, Nexus S.
> > > >>> phonegap+u...@googlegroups.com

Thibault Durand

unread,
Jun 5, 2012, 4:18:53 PM6/5/12
to phon...@googlegroups.com
Okay, i've succeed to make a sample.

It is there: 


I notice it cut the display on the last static positioned html in the flow.

I let you put the informations into the issue tracker.

Cheers, 

Thibault
Reply all
Reply to author
Forward
0 new messages