开发者

getting error while changing the orientation of the mobile when page is loading its components in android?

开发者 https://www.devze.com 2023-02-26 10:14 出处:网络
i have one page opened in which i have taken information from the user... but if i change the orientation of the mobile all the information filled in the textview disappears... how would i make inform

i have one page opened in which i have taken information from the user... but if i change the orientation of the mobile all the information filled in the textview disappears... how would i make information saved 开发者_Python百科in the textview no matter how many times user changes orientation... by the away i am using android:theme="@android:style/Theme.Dialog" in all activities... please some body suggest something...

Thanx


better try out this way iam not sure in my application this was working....

protected void onSaveInstanceState(Bundle outState) {

super.onSaveInstanceState(outState);

Toast.makeText(MainActivity.this, "Saveinstance invoked", Toast.LENGTH_SHORT).show();

}

0

精彩评论

暂无评论...
验证码 换一张
取 消