Skip to content

Commit a17426d

Browse files
committed
Fixed sample
1 parent 23db9dc commit a17426d

File tree

4 files changed

+6
-23
lines changed

4 files changed

+6
-23
lines changed

sample/AndroidManifest.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

sample/src/main/java/com/loopj/android/http/sample/MainActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import android.widget.Toast;
1212

1313
import com.loopj.android.http.AsyncHttpClient;
14-
import com.loopj.android.http.AsyncHttpResponseHandler;
1514
import com.loopj.android.http.TextHttpResponseHandler;
1615

1716
import org.apache.http.Header;

sample/src/main/res/layout/activity_main.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
android:layout_weight="1"
2626
android:inputType="textUri"
2727
android:saveEnabled="true"
28-
android:text="https://raw.github.com/loopj/android-async-http/master/README.md" />
28+
android:text="@string/default_url" />
2929

3030
<Button
3131
android:id="@+id/request_get"
3232
android:layout_width="wrap_content"
3333
android:layout_height="wrap_content"
34-
android:text="GET" />
34+
android:text="@string/action_get" />
3535

3636
</LinearLayout>
3737

@@ -41,7 +41,7 @@
4141
android:layout_height="wrap_content"
4242
android:background="#33000000"
4343
android:padding="5dip"
44-
android:text="Not Yet Started" />
44+
android:text="@string/status_n_a" />
4545

4646
<TextView
4747
android:id="@+id/return_code"

sample/src/main/res/values/strings.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
<string name="app_name">Android Async Http Sample</string>
55
<string name="action_settings">Settings</string>
6-
<string name="hello_world">Hello world!</string>
6+
<string name="default_url">https://raw.github.com/loopj/android-async-http/master/README.md</string>
7+
<string name="action_get">GET</string>
8+
<string name="status_n_a">Not Yet Started</string>
79

810
</resources>

0 commit comments

Comments
 (0)