私のアプリは情報アプリのようなものなので、定期的に更新する必要があります。しかし、私がこれをするならば、ユーザーがそれを定期的にダウンロードまたは更新するのは便利ではないでしょう。ユーザーの許可なく毎日更新するには?毎日ダウンロードして更新するように求めることなく、アプリでコンテンツを毎日更新するには?
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="1.LUNCH- Rajma Chawl,Beans,Halwa,Raita,Roti."//want to update this section
android:textSize="25dp"
android:id="@+id/textView2"
android:textColor="#ffffff"
android:layout_below="@+id/textView"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginTop="58dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="2.Dinner- Rajma Chawl,Beans,Halwa,Raita,Roti."//want to update this section
android:textSize="25dp"
android:id="@+id/textView3"
android:textColor="#ffffff"
android:layout_below="@+id/textView2"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_marginTop="58dp" />
このXMLファイルは定期的に更新する必要があります。
この質問は広すぎますが、本当に必要なのは、UIとデータを分離することです。あなたの情報をデータベースに入れ、その上にWebサービス/ APIレイヤーを作成し、インターネット上でアクセス可能などこかにホストし、UIをサービスにフックします。データベース内のデータを更新すると、すべてのユーザーが新しいアプリケーションをダウンロードせずに変更内容を確認できます。データが小さくてもシンプルであれば、必要な情報をインターネット上のどこかでホストされているXML/JSON /テキストファイルに置き、アプリケーションを更新してそのファイルから読み込むことができます。 –
sry bt私は理解していません –
SyncAdapterと呼ばれるものがあります。あなたはそれを使用しようとする必要があります。詳細については、 –