Skip to content

Commit

Permalink
test in device, a device must be in the same network
Browse files Browse the repository at this point in the history
  • Loading branch information
Weiwei Chen committed Mar 23, 2015
1 parent 86ac9ab commit 90b61c1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"

defaultConfig {
applicationId "com.laioffer.intern_project.internproject"
minSdkVersion 11
Expand All @@ -21,6 +20,9 @@ android {
versionName "1.0"
}
buildTypes {
debug {
debuggable true
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class RestaurantApiClient {

// If tested in android simulator, this must be the actual ip address of the server, not localhost
// or 127.0.0.1
private static final String BASE_HOSTNAME = "172.17.193.69";
private static final String BASE_HOSTNAME = "192.168.43.14";
private static final String BASE_PORT = "8080";
private static final String BASE_URL = "http://" + BASE_HOSTNAME + ":" + BASE_PORT + "/Rest/";

Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/src/main/res/menu/menu_restaurant_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@

<item android:id="@+id/action_recommend"
android:title="Recommend"
android:icon="@drawable/ic_action_question"
android:icon="@drawable/ic_action_questionmark"
android:showAsAction="ifRoom" />
</menu>

0 comments on commit 90b61c1

Please sign in to comment.