If your target is 13 or higher you need to add screenSize too.
You didn't even needed Google on this one. It's on the docs.
http://developer.android.com/guide/topics/manifest/activity-element.html#config


Marina
On Sep 26, 2012 3:52 AM, "Joseph Visuvasam" <josep...@roamsoft.in> wrote:

> Hi I am also have the same problem. Here i show you the code.
> public class YemegimyoldaActivity extends Activity {
>
>     @Override
>     protected void onCreate(Bundle savedInstanceState) {
>
>         final ProgressDialog progressDialog = new ProgressDialog(this);
>         progressDialog.setIcon(R.drawable.ic_launcher);
>         progressDialog.setTitle("Yemegimyolda");
>         progressDialog.setMessage("Loading ...");
>         progressDialog.setIndeterminate(true);
>         progressDialog.setCancelable(true);
>         progressDialog.show();
>
>         WebView yemeWebView = new WebView(this);
>         yemeWebView.setLayoutParams(new
> LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
>         WebSettings webSettings = yemeWebView.getSettings();
>         webSettings.setJavaScriptEnabled(true);
>         webSettings.setSupportZoom(true);
>         webSettings.setLoadsImagesAutomatically(true);
>         webSettings.setLightTouchEnabled(true);
>
>         yemeWebView.setWebViewClient(new WebViewClient() {
>             public boolean shouldOverrideUrlLoading(WebView view, String
> url) {
>                 Log.i("URL Load", "Processing webview url click...");
>                 view.loadUrl(url);
>                 return true;
>             }
>
>             public void onPageFinished(WebView view, String url) {
>                 if (progressDialog.isShowing()) {
>                     progressDialog.dismiss();
>                 }
>                 Log.i("On Finish", "Finished loading URL: " + url);
>             }
>         });
>         yemeWebView.loadUrl("http://mobile.yemegimyolda.com/index.html";);
>
>
>         setContentView(yemeWebView);
>
>         super.onCreate(savedInstanceState);
>     }
>
>     public void onConfigurationChanged(Configuration newConfig) {
>             super.onConfigurationChanged(newConfig);
>     }
>
> }
>
> <manifest xmlns:android="http://schemas.android.com/apk/res/android";
>     package="com.yeme.yemegimyolda"
>     android:versionCode="1"
>     android:versionName="1.0" >
>
>     <uses-sdk
>         android:minSdkVersion="4"
>         android:targetSdkVersion="15" />
>     <uses-permission android:name="android.permission.INTERNET" />
>
>     <application
>         android:icon="@drawable/ic_launcher"
>         android:label="@string/app_name"
>         android:theme="@style/AppTheme" >
>         <activity
>             android:name=".YemegimyoldaActivity"
>             android:label="@string/app_name"
>             android:configChanges="orientation|keyboardHidden">
>             <intent-filter>
>                 <action android:name="android.intent.action.MAIN" />
>
>                 <category android:name="android.intent.category.LAUNCHER"
> />
>             </intent-filter>
>         </activity>
>     </application>
>
> </manifest>
>
>
>
> On Monday, August 16, 2010 10:42:16 AM UTC+5:30, pramod.deore wrote:
>>
>> Hi everybody, I know on screen orientation changes activity restarted,
>> but suppose i don't want to restart the activity then what should I
>> do? I had tried it by adding in manifest.xml.
>> android:configChanges="**keyboardHidden|orientation"
>>
>> and override   public void onConfigurationChanged(**Configuration
>> newConfig) {
>>         super.onConfigurationChanged(**newConfig);
>>     }
>>
>> But still activity restarted each time when I change screen
>> orientation. How to resolve this issue?
>>
>> Thanks in advance.
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to