Android :: WebView : Preserve User's Zoom Settings Across Sessions?
Jun 2, 2010
My app uses a WebView, and users sometimes adjust the zoom level to make the text larger. However the zoom level setting is lost when the Activity is closed and another one started.
I can't see how to get and set the zoom level programatically on WebView, can anyone suggest a way this could be done?
View 2 Replies
May 12, 2014
I'm currently (trying) to make a app that simply displays a webpage.. However, I want to be able in the settings for the user to select the URL & port.. But finding it hard to do! Basically, If the user presses the options button all I need is a box with two options..
IP:
Port:
So it'll look something like:
IP Address:
[ INPUT BOX HERE FOR IP ADDRESS (@IP_ID) ][code]....
have previously done PHP, C++ & MySQL ect..
View 2 Replies
View Related
Jun 29, 2009
How to set 1x zoom manually in WebView?
View 2 Replies
View Related
Sep 27, 2010
I am trying to get the WebView to have similar behavior as the android browser. The browser opens all pages in a way that tries to fit their width to the screen. However, the default behavior of the WebView is to start at a 100% pixel scale so it starts zoomed in on the top left corner.
I have spent the last couple hours trying to find a way to get the WebView to scale the page to the screen like it does in the browser but I'm not having any luck. Has anyone found a way to accomplish this?
I see is a setting called setLoadWithOverviewMode, but that didn't appear to do anything at all. I also experimented with setInitialScale but on different screen sizes and web page sizes that won't be as graceful as the browsers scaling.
Any one have any leads?
View 1 Replies
View Related
Aug 30, 2010
I'm using the following code which only zooms the loadData. How is it possible to zoom the image inside? code...
View 1 Replies
View Related
Sep 1, 2010
Zoom works without any problem, but if I select any input field the webview zooms in automatically.
How do I can prevent this zoom behavior?
set fix zoom level?
scale back to previous zoom level?
View 1 Replies
View Related
Jul 16, 2010
Basically, we want to control the default visible part in a webview control after a new web page is loaded. We tried the javascript "window.scrollBy(...)", it works. However, "window.moveTo(...)" does not work. Is there any trick here?
View 5 Replies
View Related
Sep 13, 2010
When a user clicks in an input field or textarea, the application zooms in.Is there a simple way to disable it?Everything looks great till I look at it on a device with Android 2.2. Specifically HTC Evo 4G.
View 2 Replies
View Related
May 19, 2010
I want to make an image appear in webview to utilize the zoom functions.
View 1 Replies
View Related
Mar 3, 2010
Zoomin in my webview will not work on a double tab. I am using Motorola Droid A855.
View 2 Replies
View Related
Sep 2, 2010
Is there a way to retrieve Browser's user-agent without having a WebView in activity?
I know it is possible to get it via WebView:
WebView view = (WebView) findViewById(R.id.someview);
String ua = view.getSettings().getUserAgentString() ;
But in my case I don't have/need a webview object and I don't want to create it just for retrieving user-agent string.
View 1 Replies
View Related
Nov 1, 2010
When I load the touch Facebook login page in the webview, I want that the email field to be set to a value and it can't be modified and to accomplish that I have inserted a JavaScript code in the webview disabling that element. All works fine until I want to click the login button because the page refreshes instead of submit the login info. I've noticed that if I don't disable the item, the login button works fine but I don't know why occurs that.
What can be the problem? I've thought another way to make it works: Whenever the user try to modify the email field ignore whatever he do, but I think this is a less professional way to fix that.
View 2 Replies
View Related
Nov 5, 2010
I want to use the default user agent for the phone in a HttpClient connection and would like to know if there is a way to obtain the user agent without having to have a WebView to query.
View 1 Replies
View Related
Apr 24, 2009
I am creating an application which connects to the server using username/password and I would like to enable the option "Save password" so the user wouldn't have to type the password each time the application starts. I was trying to do it with Shared Preferences but am not sure if this is the best solution. I would appreciate any suggestion on how to store user values/settings in Android application.
View 4 Replies
View Related
May 8, 2010
1)Can you zoom in while taking a pic with the optical pad?
2)can you take pics in portrait view?
3)best flashlight app?
4)is there a way to change the settings of like the touch screen and the optical pad?
View 3 Replies
View Related
May 6, 2010
I'm trying to write an app that consists of an activity that manages a background service. However, I want to implement a user setting for automatically starting the service up at boot time. I have user settings implemented with SharedPreferences and I have the services starting up at boot by using a BroadcastReceiver and listening for BOOT_COMPLETED. However, I can't figure out a good way to implement a setting so that the service is only started at boot if said setting is enabled. I can think of a few cheap ways to do this (such as messing with onCreate() in the service, or creating/checking for a file on SD card) but I want to follow good practice. There must be a good way to do this because there's tons of apps out there that do it, I just can't find anything online about how to do it.
View 3 Replies
View Related
Jan 14, 2010
Im pretty new to SSL, however in making an SSL request, how would i prevent the "handshake" happening each time i call an HTTPS url in Android. Is it possible to just store the SSL session?
View 1 Replies
View Related
Mar 31, 2009
I call WebView.clearHistory(), but I am still able to go back after doing so. I want to reuse a WebView, but I don't want the back button to allow the user to go back further than the current "session" of using the WebView. Anybody know what is the best way to handle this? I thought for sure that clearHistory() would do it.
View 3 Replies
View Related
Jul 29, 2010
I am implementing Localytics.com useage statistics in my Android app.
I am still just testing.
I note that just starting my app and then immediately exiting will register two sessions (as they are called by Localytics) in the live statistics.
I have followed the guidelines in Android Integration.
My app consists of a main Class of the TabActivity type. This TabActivity holds two tabs in which I display two other activities.
Like this:
CODE:..............
I instantiate the Localytics object in all three Activities like this:
CODE:............
So, the above code lines are repeated in each of the three Activities. In the TabHost Activity (only in this Activity) I then follow the instantiation with a this.localyticsSession.upload();
And then (only in the TabHost Activity) I have these to finish things off:
CODE:.......
How to make my code generate just one session per app-launch?
View 1 Replies
View Related
Aug 4, 2010
I'm developing an app that logs into a web site. To do this I use the HttpClient object.
I noticed I could get all the cookies from the post requests with the HttClient.getCookieStore method, the question is however how I save these cookies so the next time the app is started, the user don't have to log in.
I should also mention that while the login was post request, rest of the site is mostly get requests, does this effect how the cookies are managed at all?
View 1 Replies
View Related
Sep 9, 2010
Is it possible to preserve file-persisted data when upgrading an app? For example my app stores data under /data/data/mypkg/store. I would like the store directory to be preserved when user upgrades my app.
View 3 Replies
View Related
Aug 3, 2010
I'm using the SAX xml parser to parse some xml data which contains newlines. When using Attributes#getValue, the newline data is lost. How can keep the newlines?
View 1 Replies
View Related
Dec 2, 2009
I noticed a huge drop in sessions for all of my apps (using Flurry). I don't think the problem is reporting, since ad revenue and sales were also affected. Sessions for my most popular game plunged yesterday to a level of a month ago, and all my apps saw a similar drop (about 25-30%). I didn't see anything about outages or issues on any of the blogs I follow...anyone here know anything?
View 4 Replies
View Related
Nov 23, 2009
How can i create cookies or sessions in android platform?
i am using one application like preferences settings. when ever i change the theme of android application need to store somwhere(?) the last updated theme name.
is there any way to store values cookies in android platform?
View 1 Replies
View Related
Jan 28, 2012
i need login page using session concepts,..how is creating session variable in android..what is the best link for learning above concepts...
View 3 Replies
View Related
Feb 9, 2009
1) Does Google think there will only be one screen size on Android phones? The reason I ask is because I haven't been able to find anything on "variable" layouts in Android? I would like to create a layout with 2 webviews, one 80% of screen height and the other 20%. Is this even possible, or do I need to assign the height of each as a static "px" value?
2) How do I preserve the data in my views when someone switches between landscape and portrait? I doubt it's hard, but I've not been able to find it. Can someone post an example?
View 6 Replies
View Related
May 23, 2010
What are ways I can preserve my battery? And how can I turn off widgets that are making my battery life eat up fast. I use face, tumblr, myspace, tunewiki, seesmic, and handcent most.
View 8 Replies
View Related
Jul 24, 2010
On my Nexus One, I had installed (the free version of) Shazam a while back, and it its running fine.
Since I am an old user of Shazam, I have been "grandfathered" and enjoy unlimited tagging.
I intend to RESET my phone clean and then root it.
Question -- does anybody know if Shazam will remember my "grandfathered" status and let me enjoy the unlimited tags?
I never registered with Shazam on their website, so I don't even have a registered account with Shazam.com
View 22 Replies
View Related
Jul 14, 2009
Is Zooming is possible to do in android for Image view.I have a images in full screen view, i need to zoom in and zoom out for that images present in image view.Can any body give me suggestions regarding this.
View 19 Replies
View Related
Jul 28, 2010
I want to know how we can zoom a image that is in ImageView.
View 3 Replies
View Related