diff --git a/app/src/main/java/org/communiquons/android/comunic/client/MainActivity.java b/app/src/main/java/org/communiquons/android/comunic/client/MainActivity.java index 4380b36..da02911 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/MainActivity.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/MainActivity.java @@ -44,15 +44,16 @@ public class MainActivity extends AppCompatActivity { //DEVELOPMENT : Try to get information about a user over the network GetUsersInfos uInfos = new GetUsersInfos(this, null); - //Get infos... about me! - int uID = 1; + //Get infos... about me! :) + final int uID = 1; uInfos.get(uID, new GetUsersInfos.getUserInfosCallback() { @Override public void callback(UserInfo info) { if(info == null) Toast.makeText(MainActivity.this, "Failure !", Toast.LENGTH_SHORT).show(); - else - Toast.makeText(MainActivity.this, "Success !", Toast.LENGTH_SHORT).show(); + else { + Toast.makeText(MainActivity.this, uID + " is " + info.getFullName() + "!", Toast.LENGTH_SHORT).show(); + } } }); } diff --git a/app/src/main/java/org/communiquons/android/comunic/client/api/APIRequestTask.java b/app/src/main/java/org/communiquons/android/comunic/client/api/APIRequestTask.java index 5fdcfeb..84f86a6 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/api/APIRequestTask.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/api/APIRequestTask.java @@ -148,6 +148,8 @@ public abstract class APIRequestTask extends AsyncTask