Note that there are some explanatory texts on larger screens.

plurals
  1. POAlert dialog dismissed while rotating phone in android
    primarykey
    data
    text
    <p>I had give all the permission in my manifest for all the activities in my app but my activity re-starting while rotating my phone. That restart dismissing my alert box, again calling web server for fetching data and activity does maintain the previous state. I had tried with all the possibilities but can not get solution. How can i fix this issue?</p> <pre><code>@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.station_list_layout); ConstantValues.CURRENT_ACTIVITY=StationListActivity.this; ConstantValues.NEAREST_PLACE_MENU_SLIDER_FLAG=false; ConstantValues.MESSAGE_MENU_SLIDER_FLAG=false; ConstantValues.STATION_LIST_MENU_SLIDER_FLAG=true; orientation=getResources().getConfiguration().orientation; userAndMessageCount=new UserAndMessageCount(); ((TextView)findViewById(R.id.stationlist_route_name)).setText(ConstantValues.ROUTE_NAME); list = (ListView) findViewById(R.id.myListView); Cursor cursor=new UpdateLocalDatabase().getStationNameByRoute(); adapter=new StationListAdapter(StationListActivity.this, cursor); adapter.notifyDataSetChanged(); if(!ConstantValues.STATION_LIST_LOATED) userAndMessageCount.execute(); else { Footer.setMsgCount(ConstantValues.MSG_COUNT); Footer.setUserCount(ConstantValues.FAVORITE_STATION_LIST.size()); list.setAdapter(adapter); } } &lt;activity android:configChanges="orientation|keyboardHidden" android:screenOrientation="unspecified" android:name=".LaunchingPageActivity" android:label="@string/app_name"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt;` </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload