You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, May 12th 2011, 11:17am

How to hide on address bar on Android browser?

Hi,

I wish to hide address bar on Android web browser after the pano is
fully loaded (like krpanoJS hides address bar on Iphone's Safari).

I found out that the common solution is to call the following javascript
function but it doesn't work for me:

<body onload="setTimeout(function(){window.scrollTo(0,1)},2000);">


It works for normal html pages (that don't have krpano panorama inside)
but doesn't work for html with krpano panoramas inside.

Anybody have an idea?

Thank you in advance.

hyung

HansNyb

Professional

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

2

Thursday, May 12th 2011, 11:20am

Just ad a standard Flash fullscreen button.

Hans

3

Friday, May 13th 2011, 9:56am

Hi Hans,

I don't know why but on my Galaxy S2, flash fullscreen is not
actually FULLSCREEN. In fullscreen mode, the top menu bar
is still showing. (Please refer to the image below)




On Galaxy S the fullscreen works as expected..
Can anybody please check if this also happens on android phones?
http://www.panosis.com/biz/donghwa/mobile/android.html


thank you in advance!

Best Regards,
hyung

HansNyb

Professional

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

4

Friday, May 13th 2011, 10:10am

You do not have a fullscreen button so I can not go fullscreen.

On my Desire Z I see the address bar at top.
I can use the fullscreen option built in Android flash by pressing anywhere in the pano and then click the button that appears at top but that will not give you real fullscreen.
You will get black at top and bottom but the address bar disappears.

For real fullscreen you need the standard fullscreen button just like desktops.

Hans

5

Monday, May 16th 2011, 10:07am

Hi,
I have added fullscreen button. Can anyone please test this

link again on android phone?

http://www.panosis.com/biz/donghwa/mobile/android.html



Still the task bar at the top of the screen is showing in fullscreen
mode on the galaxy s2, whereas on the galaxy s the fullscreen
mode works as expected.


I am curious whether this problem happens only on galaxy s2
(android os2.3 - gingerbread).


Best Regards,
hyung.

HansNyb

Professional

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

6

Monday, May 16th 2011, 10:57am

Yes this works perfect on my Desire Z. Android 2.2 No bar at top.
I can see you included the fullscreen option on the map button also.
Clever trick.

I tried it on my iPad also but you have an error with the paths.
It does load but gives loading error for plugin(map_bg) gui/map_bg.png

Hans

7

Monday, May 16th 2011, 1:42pm

Hi Hans,

thank you for your test :) I believe it's the problem of galaxy s2
or android 2.3(gingerbread). For iphone/ipad version please
refer the this link below
http://www.panosis.com/biz/donghwa/mobile/html5.html


The loading error you have mentioned is because the resolution of
"gui/map_bg.png" image is 2,000x2,000 pixel. The mobile Safari
browser gives error when dealing with large images. Below is what
mentioned in the krpano documentation:

"But due to the limited memory resources of the mobile devices, it's not possible to use the same large images as in the Flash viewer - e.g. several 2000x2000 pixel images will let the Safari Browser simply crash, no error throw or something..."


I realized that this error occurs not only for panorama images but it
occurs also for plugin/hotspot images. One confusing thing is that
krpano gives me "path error" message instead of memory error
message.

Anyway, I will post again when this problem is fixed on Galaxy S2.

Best Regards,
hyung

HansNyb

Professional

Posts: 936

Location: Denmark

Occupation: Photographer

  • Send private message

8

Monday, May 16th 2011, 3:55pm

You can easy fix the problem by just using 2 different backgrounds with 2 plugins and use the devices settings for them.

Hans