0
クリックすると、その中のテキストが変更されるボタンがあります。アプリケーションを次回実行するためのボタンの中にテキストを残す
<Button android:id="@+id/timelinebtn"
android:text="Button1"
android:background="@android:color/transparent"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:padding="5dp" />
私は私のアプリで他のユーザーのクリック可能なボタンがあり、そして、彼らがクリックした内容に応じて、(最初の「ボタン1」で)このボタン内のテキストは、コードといくつかの他のテキストに変更します。
button1.setText("Changed the text to something other.");
私の質問は、プログラムの次回の実行でボタンが表示していた最後のテキストを保持する方法です。 もう一度これをもう少し明確にする - プログラムを閉じると、アプリケーションの次の実行までボタンがその中にテキストを保存する方法。
http://developer.android.com/guide/topics/data/data-storage.html#pref – hovanessyan