私は初心者のプログラマーであり、自分自身より先に進んでいるかもしれませんが、これまでに書いたコードはうまくいかず、私はそれを理解しようとしています時間のためにテキストファイルからテキストを表示するためのTextViewを取得できません
問題は、私がこのアプリケーションを実行すると、TextViewがまだ空になることです。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="top|center"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title"
android:textStyle="normal"
android:gravity="center"
android:layout_marginTop="10dp"
android:textSize="20sp"
android:textColor="#FFFFFF"/>
<TextView
android:layout_width="242dp"
android:layout_height="227dp"
android:id="@+id/logTextView"
android:background="#ffffff" />
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="bottom|center">
<Button
android:layout_height="80dp"
android:text="New Log"
android:layout_width="match_parent"
android:layout_weight="1.0"
android:textSize="25sp"
android:onClick="onNewLogButtonClick"/>
</LinearLayout>
あなたは 'GetPhoneAddress()'メソッドを呼び出していません。 –
あなたのonCreateの** GetPhoneAddress()**メソッドを呼び出す –