Click here to Skip to main content
15,888,320 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have created an android app using phone-gap[Android].

Here i am able to zoom my first .html page of application, but when ever i moving/redirecting to a page by clicking the anchortag/button of my first .html page there i am unable to zoom the second .html page

i have added below things in my .java

WebSettings settings = appView.getSettings();
settings.setBuiltInZoomControls(true);
settings.setSupportZoom(true);
settings.setDefaultZoom(ZoomDensity.FAR);


and i have also added the following in all my .html pages.

<meta name="viewport" content="user-scalable=yes, width=device-width, initial-scale=1,minimum-scale=1, maximum-scale=6, target-densityDpi=device-dpi" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">

so here my question is: how to enable the zooming effect

any help will be appriciated.......
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900