I'm very new to android development. I'm simply trying to grab text from a website (let's say it's called http://foo.com/meg_message
) and use this text to fill a TextView. What is the best way to do this?
I have the following XML element:
<LinearLayout android:layout_weight="1" android:layout_height="fill_parent" android:layout_width="0dp">
<TextView
android:id="@+id/meg_message"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:textColor="@color/white"
android:textSize="50dp"
tools:text=""/>
</LinearLayout>