Android Webview - After Changing Scale To 1.5 It Reverting Back?

Apr 26, 2014

I wrote a sample application which displays some test message using webview .The Application has two activities, one activity simply contains a button, when user click on this button , it launch another activity which display the test message on a webview .

I have set setInitialScale() of webview as 150, Now the issue is like, Normally webvbiew displays the content with the scale size 150 (as I set ) but some times it displays the contents with a scale greater than 150.

I overrided the onScaleChanged() function in webViewClient.

In normal case before drawing the content on webview I am getting onScaleChanged() callback ,with the value oldscale as 2 and new scale as 1.5. When issue occurs , I am getting two onScaleChanged() callbacks before drawing the content!!! ,at first I get the onScalechange() callback with oldscale as 2 and new scale as 1.5 , after that getting another onScaleChanged() callback with oldscale as 1.5 and new scale as 2.0 and hence it draws the webview with the scale 2.0 irrespective of setInitialScale() I have given in my application.

This issue happens only in the case if I set setInitialScale() to a value less than device's default webview scale. As per my understanding ,Every device has its own default Scale for webview based on their display property like .075 for ldpi and 1.5 for hdpi etc )

In my device defaultScale for webview is 2, and I set the setInitialScale() as 1.5(150)

normaly webview reset the scale from 2 to 1.5 before draw ( That is from defult to new value ) and it works fine
But some time after changing the scale to 1.5 it reverting back to 2. and issue occurs

public class webActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
[Code].....

android webview - after changing scale to 1.5 it reverting back?


Android :: Set Fix Zoom Level / Scale Back In Webview?

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

Android :: Tell A (droid) WebView To Start Off At Custom Scale?

Jun 18, 2010

I'm trying to tell a WebView to scale the page down to a certain percent. I've tried using setInitialScale() as that seems to be exactly what I want, but it seemed to have no effect.

Am I just missing something obvious?

View 1 Replies View Related

General :: Reverting Back To Android 2.3.1 From 4.1.2

Nov 21, 2013

A couple of days back I updated the OS of my Samsung Galaxy S2 to the latest version but now it is lagging like crazy and the apps are starting to crash a lot. So I have decided to change back to the Gingerbread OS and I loved it in my S2.

Here are the details of my phone.

Model no: GT- 19100
Baseband version: I9100BULS1

View 2 Replies View Related

KitKat 4.4 :: Nexus 4 - Reverting Back To 4.3?

Dec 2, 2013

Some issues are correctable through doing a factory wipe. Other issues can be corrected through reloading the image from Google's own factory image repository. However, some things (in particular the battery drain issue) seems to be an issue within 4.4 itself, and the only solution I've found has been to revert from 4.4 to 4.3.

So I'm posting this thread and asking the more knowledgeable users here on AndroidForums to post clear, concise directions for acquiring and flashing these devices back to the Google "factory image".

The reason I'm asking for the community to pitch in is that the instructions I've seen are kind of scattered, are not necessarily up to date, and they can and do vary depending on whether you're doing this with Windows XP, Windows 7, Windows 8, or with Mac OS X, or with Linux.

I was able to re-flash my Nexus 4 in Lion back to 4.3, but I had to do editing of bash shell scripts and even then had to issue the execution of the appropriate shell script from the exact right spot or else it couldn't find the command, or couldn't execute the command. The directions on Google's site were incomplete, and the ones I found on various message boards seemed more like an author's "best guess" than authoritative "you can trust that this will work" workflows.

View 24 Replies View Related

Motorola Droid :: Reverting Back To Stock

Apr 30, 2010

So I just purchased an incredible (couldn't resist lol).. And now I am trying to sell my droid on ebay (if anyone is interested let me know!), but whenever I used RomManager to revert back to stock image. I get an error and it fails. I have already ported my number over to my incredible, so I can only use wifi. So what other way is there to go back to stock so I can wipe the device and sell it. Or is there some other way that I am not thinking of? Something on the phone, like stock image I can flash through clockwork recovery and be done? (if so anyone have a link?)

View 1 Replies View Related

HTC EVO 4G :: Rooted By Reverting Back To 2.1 / Camera Not Working Now

Nov 10, 2010

I used the method of rooting by reverting back to 2.1 then use unrevoked now my camera won't work any tips? I love my root but also my camera is a very nice feature.

View 11 Replies View Related

HTC Magic :: How To Reverting Back To 1.5 From 2.1 And To Factory Settings

Jun 9, 2010

i have a htc magic which i rooted and installed the 2.1 rom. played around for a few weeks and i miss the features i had before and it was making my phone really sluggish. i tried just flashing the factory ROM, Version 3.03.990.6, back into my phone. i ran the program on the computer, followed everything and waiting. half way through the process it tells me theres an error and cant continue. it whipped out my OS and i had to put 2.1 back on my phone. how can i revert back to 1.5? how can i revert it back to factory settings?

View 4 Replies View Related

Nexus :: OTA Updates - Reverting Back And Apps After Rooting

Mar 17, 2010

I'm contemplating if I should root my Nexus One mainly because I really want that extra performance boost. However I have a few questions. First will I still receive the OTA updates Google pushes out? And secondly, will I be able to revert back to stock android OS after rooting. And lastly, do all the Google apps work (mainly the Google GPS Navigation) without problems?

View 9 Replies View Related

Motorola Droid :: Text Keeps Reverting Back An Old Number / Fix It

Nov 20, 2009

For most contacts I have *82 in front of the number which will unblock my number because I have my caller ID blocked by default through Verizon. Because text messages will not work with *82 in front of the number I store the same contact without it and use that for texting.

My Droid when texting will sometimes replace the current number I am using with the *82 version even if I have deleted the *82 number for that contact. The only way I know this has happened is when the person I am texting says they did not received it or if I am texting someone who is also on Verizon network and the text delivery status will stay at pending.

View 1 Replies View Related

General :: Reverting Back To Stock After Factory Reset

Jun 26, 2013

I think I done something wrong with my rooted htc one X. I wanted to sell it and didn't think of doing harm when I deleted all the files off the phone and factory reset it. Lost my backups and I can't even boot it now anymore.

Found this [URL] .... and I'm wondering if it would be alright to follow that guide and hopefully get the phone to boot again?

View 1 Replies View Related

General :: Reverting Back Handset To Default Font

Sep 27, 2013

I installed "Root tools" by "JRummy Apps" on my Samsung Galaxy Y Duos Lite GT S5302 (Android 2.3.6) and then installed a font. But now i want to revert back my device to the default font.

But, I'm unable to do so. Does factory reset will work? Or what else should I try ??

View 8 Replies View Related

Motorola Droid X :: Re-installing Leaked 2.2 After Reverting Back To 2.1 And Rooting

Sep 22, 2010

I loaded the leaked 2.2 when it first became available and then deleted update.zip from the SDCard Directory. 2.2 worked fine.I reverted back to 2.1 in order to be able to get the OTA version of 2.2. Reverting worked fine.I rooted 2.1 using Universal Androot.I installed the following apps: Titanium Backup, Root Explorer, DroidXBootstrap,I did a nandroid backup using Bootstrap.Based on the reports I read today of the OTA 2.2, I decided to re-install the leaked 2.2 Using Root Explorer, I moved su from Bin to Xbin directory in order to preserve root status.I connected the Droid X to my laptop and copied Update.zip to the SDCard. Note that my SD card if almost full - only 25MB left after copying update.zip.I then booted, cleared cache and proceeded to run the update.

View 4 Replies View Related

Motorola Droid :: Reverting Back To Stock - Can Save Apps

Aug 2, 2010

Is it possible to revert from a ROM back to stock and save my apps (non-root ones of course). I have titanium backup, but once I am back to stock I won't be able to use it.

View 2 Replies View Related

HTC EVO 4G :: Screen Timeout Setting - Keeps Reverting Back To The Default 30 Secs

Jul 8, 2010

I have my Screen Timeout setting set to 2 mins. Menu>Settings>Sound&Display>Screen Timeout. but it keeps reverting back to the default 30 secs. Any ideas on how to keep it set at 2 mins?

View 6 Replies View Related

Sprint HTC Hero :: Bookmarks In Stock Browser Reverting Back To Default Ones?

Mar 20, 2010

Anyone else have the problem of their bookmarks in the stock browser reverting back to the default ones? Twice in the last week I have lost all of my bookmarks on a phone power off and back on - I did not go in and clear any data or cache in the browser.

View 2 Replies View Related

Android :: WebView.clearHistory() - Don't Want Back Button To Allow User To Go Back Further Than Current Session

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

Android :: Changing Text Color In WebView?

Aug 10, 2009

There's a method for altering background color but not font.

View 1 Replies View Related

Android :: WebView Changing Backcolor And Font Color

Aug 2, 2010

I want to change my webview's background color and font size.How i can for it?

View 2 Replies View Related

General :: Always Scale To Max Frequency Or Scale It Based On CPU

Jun 30, 2012

the cpu scaling of Android.. First, do the system use the lowest frequency when not in use? Aka screem off..After i unlock the phone do it always scale to max frequency or scale it based on the cpu needed? For example write a text makes the phone use thr same freq as playing a game?

View 1 Replies View Related

Android :: Back To Activity After WebView?

Nov 14, 2009

I've been searching and looking for this answer for quite some time now. I want to display a little HTML in a webView.

When the User read the HTML, he's supposed to use the back button to go back to the previous activity. However, it closes the App.

How can I make it go back to the last Activity? It would also be ok to display a soft back button or something. Here my code...

View 2 Replies View Related

Android :: From WebView In Droid Back To A ListView?

Jul 29, 2010

After a successful web view is loaded, now after some processing on the HTML page, I would like to return the control to the main screen. Is this possible in Android?

The control after the webview is launched, is in the browser, so after I make some ajax calls and then get a positive server side message. I would like the control goback to my Webview Activity.

View 2 Replies View Related

Android :: Pass A Username And Password Back Into A Webview Securely?

Jul 1, 2010

I have a user's name and password stored in their preferences.

How do I go about passing it back into the webview in a secure way?
I know if I do this it will work, but it just seems bad. There has to be a better way to post the variables.

webview.loadUrl("http://mysite.com?name="+username+"&password="+somepassword);

I've been looking for days and can't find anything, which make me think I'm missing something obvious.

View 3 Replies View Related

Android : WebView - Not Able To Go Back To My Activity Screen Once The Content Is Displayed

Apr 9, 2009

Step 1: I am subclassing WebView and rendering html content properly. The intial content is very small with a div and image /link This is displayed in a LInear Layout along with a TextView and ListView. That is my first screen/activity of the application.

Step 2: When I click on a link on this webview, it goes through the webViewclient and expands to full screen to fit the content of the requested page.

After Step 2, I am not able to go back to my activity screen once the content is displayed. When I click on the back button to getback to my activity screen close my activity and goes to the phone's applications desktop. (i.e goes out of my application).

Step 3: In order to fix this issue, I stopped setting my own subclasssed WebViewClient. After doing this, the it seems to render the clicked page in a webView as subactivity. Now When I click on backbutton, it goes back to the activity screen. But, the issue now is, I am not catch event when a link is clicked. How can I catch click events in this case.

View 2 Replies View Related

HTC Incredible :: Ringtone Keeps Changing Back To Default

Jul 15, 2010

Hey guys, my ringtone keeps changing back to the default ringtone and its really annoying. It happens everyday, and I haven't hooked up my phone to my computer at all. I'm using a song from "my music" as a ringtone.

View 2 Replies View Related

General :: Screen Timeout Changing Itself Back To 10 Minutes

Jan 31, 2013

I have a galaxy note 2 which I have found excellent up to now.....

Since yesterday my screen timeout it's not working correctly. Whatever I set it to, usually 30 seconds, whenever I go back to my home screen and back into the settings it is changing itself back to 10 minutes.

I've tried disabling tasker, lux and widgetlocker but I cannot get the timeout to stick on 30 seconds.

View 4 Replies View Related

HTC Hero :: Why Does My Screen Timeout Setting Keep Changing Back To Default?

Sep 25, 2010

This just started happening lately. Every time I set my screen timeout to anything other than the default 30 seconds, it will just change itself back in a couple of minutes. I can't think of any apps I've installed recently that could possibly be causing this. Any ideas on how to fix this?

View 2 Replies View Related

Motorola Droid X :: Launcher Pro Custom Icons Keep Changing Back

Aug 7, 2010

I change the launcher icons and they revert back after a day or so for some reason. Its only the phone, text and web launch icons though.

View 2 Replies View Related

HTC Incredible :: Changing Back To Swype With Froyo After Factory Reset

Sep 2, 2010

okay, this is really frustrating. i got my 2.2 today, and then i did a factory reset. everything is great except i can't seem to get my keyboard to change to swype. i have it installed, and i select it as my keyboard, but i cannot get it to come up. i have the official beta, and i also have a modified version with microphone, and i've tried both, neither is being recognized. does anyone know how to get my phone to use the swype keyboard when i have selected the damn thing? is there an additional setting i have to find? it's not app specific, either, i've checked several things, handcent, internet, mail, whatever. stock keyboard is all i get.

View 2 Replies View Related

Android :: Cant Go Back To Previous Page From Webview Page

Feb 2, 2009

I am developing simple RSS Reader kind of application.In my applicaion i cant go back from Webview page to previous page.i can go back from all pages except the page where i have used Webview.What could be the reason?why i cant go back?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved