diff --git a/ShowCaseApplication/.gitignore b/ShowCaseApplication/.gitignore
new file mode 100644
index 0000000..9c4de58
--- /dev/null
+++ b/ShowCaseApplication/.gitignore
@@ -0,0 +1,7 @@
+.gradle
+/local.properties
+/.idea/workspace.xml
+/.idea/libraries
+.DS_Store
+/build
+/captures
diff --git a/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/cache.properties b/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/cache.properties
new file mode 100644
index 0000000..ab7a1b2
--- /dev/null
+++ b/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/cache.properties
@@ -0,0 +1 @@
+#Fri Jan 22 14:08:31 PKT 2016
diff --git a/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/cache.properties.lock b/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/cache.properties.lock
new file mode 100644
index 0000000..e172087
Binary files /dev/null and b/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/cache.properties.lock differ
diff --git a/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/fileHashes.bin b/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/fileHashes.bin
new file mode 100644
index 0000000..73f4203
Binary files /dev/null and b/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/fileHashes.bin differ
diff --git a/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin b/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin
new file mode 100644
index 0000000..e8dbc1f
Binary files /dev/null and b/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin differ
diff --git a/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/outputFileStates.bin b/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/outputFileStates.bin
new file mode 100644
index 0000000..f27484f
Binary files /dev/null and b/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/outputFileStates.bin differ
diff --git a/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin b/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin
new file mode 100644
index 0000000..2dbf68e
Binary files /dev/null and b/ShowCaseApplication/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin differ
diff --git a/ShowCaseApplication/.idea/.name b/ShowCaseApplication/.idea/.name
new file mode 100644
index 0000000..5de5895
--- /dev/null
+++ b/ShowCaseApplication/.idea/.name
@@ -0,0 +1 @@
+ShowCaseApplication
\ No newline at end of file
diff --git a/ShowCaseApplication/.idea/compiler.xml b/ShowCaseApplication/.idea/compiler.xml
new file mode 100644
index 0000000..96cc43e
--- /dev/null
+++ b/ShowCaseApplication/.idea/compiler.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ShowCaseApplication/.idea/copyright/profiles_settings.xml b/ShowCaseApplication/.idea/copyright/profiles_settings.xml
new file mode 100644
index 0000000..e7bedf3
--- /dev/null
+++ b/ShowCaseApplication/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/ShowCaseApplication/.idea/gradle.xml b/ShowCaseApplication/.idea/gradle.xml
new file mode 100644
index 0000000..8d2df47
--- /dev/null
+++ b/ShowCaseApplication/.idea/gradle.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ShowCaseApplication/.idea/libraries/appcompat_v7_22_1_1.xml b/ShowCaseApplication/.idea/libraries/appcompat_v7_22_1_1.xml
new file mode 100644
index 0000000..e7e38b5
--- /dev/null
+++ b/ShowCaseApplication/.idea/libraries/appcompat_v7_22_1_1.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ShowCaseApplication/.idea/libraries/library_aar_1_0_0.xml b/ShowCaseApplication/.idea/libraries/library_aar_1_0_0.xml
new file mode 100644
index 0000000..4d2d286
--- /dev/null
+++ b/ShowCaseApplication/.idea/libraries/library_aar_1_0_0.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ShowCaseApplication/.idea/libraries/support_annotations_22_1_1.xml b/ShowCaseApplication/.idea/libraries/support_annotations_22_1_1.xml
new file mode 100644
index 0000000..729886b
--- /dev/null
+++ b/ShowCaseApplication/.idea/libraries/support_annotations_22_1_1.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ShowCaseApplication/.idea/libraries/support_v4_22_1_1.xml b/ShowCaseApplication/.idea/libraries/support_v4_22_1_1.xml
new file mode 100644
index 0000000..1288311
--- /dev/null
+++ b/ShowCaseApplication/.idea/libraries/support_v4_22_1_1.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ShowCaseApplication/.idea/misc.xml b/ShowCaseApplication/.idea/misc.xml
new file mode 100644
index 0000000..e284b1d
--- /dev/null
+++ b/ShowCaseApplication/.idea/misc.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ShowCaseApplication/.idea/modules.xml b/ShowCaseApplication/.idea/modules.xml
new file mode 100644
index 0000000..98938cb
--- /dev/null
+++ b/ShowCaseApplication/.idea/modules.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ShowCaseApplication/.idea/vcs.xml b/ShowCaseApplication/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/ShowCaseApplication/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ShowCaseApplication/.idea/workspace.xml b/ShowCaseApplication/.idea/workspace.xml
new file mode 100644
index 0000000..80de07e
--- /dev/null
+++ b/ShowCaseApplication/.idea/workspace.xml
@@ -0,0 +1,2164 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ C:\Users\Afzaal\AppData\Roaming\Subversion
+
+
+
+
+ 1453453635828
+
+ 1453453635828
+
+
+ 1453462814105
+
+
+ 1453462814105
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ShowCaseApplication/ShowCaseApplication.iml b/ShowCaseApplication/ShowCaseApplication.iml
new file mode 100644
index 0000000..7575ae6
--- /dev/null
+++ b/ShowCaseApplication/ShowCaseApplication.iml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ShowCaseApplication/app/.gitignore b/ShowCaseApplication/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/ShowCaseApplication/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/ShowCaseApplication/app/app.iml b/ShowCaseApplication/app/app.iml
new file mode 100644
index 0000000..7322b44
--- /dev/null
+++ b/ShowCaseApplication/app/app.iml
@@ -0,0 +1,97 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ShowCaseApplication/app/build.gradle b/ShowCaseApplication/app/build.gradle
new file mode 100644
index 0000000..ed608da
--- /dev/null
+++ b/ShowCaseApplication/app/build.gradle
@@ -0,0 +1,26 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 22
+ buildToolsVersion "22.0.1"
+
+ defaultConfig {
+ applicationId "com.mi.afzaal.showcaseapplication"
+ minSdkVersion 15
+ targetSdkVersion 22
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ compile 'com.android.support:appcompat-v7:22.1.1'
+ compile 'com.mcxiaoke.volley:library-aar:1.0.0'
+}
diff --git a/ShowCaseApplication/app/proguard-rules.pro b/ShowCaseApplication/app/proguard-rules.pro
new file mode 100644
index 0000000..89d1b20
--- /dev/null
+++ b/ShowCaseApplication/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in C:\Users\Afzaal\AppData\Local\Android\sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/ShowCaseApplication/app/src/androidTest/java/com/mi/afzaal/showcaseapplication/ApplicationTest.java b/ShowCaseApplication/app/src/androidTest/java/com/mi/afzaal/showcaseapplication/ApplicationTest.java
new file mode 100644
index 0000000..006bf7a
--- /dev/null
+++ b/ShowCaseApplication/app/src/androidTest/java/com/mi/afzaal/showcaseapplication/ApplicationTest.java
@@ -0,0 +1,13 @@
+package com.mi.afzaal.showcaseapplication;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * Testing Fundamentals
+ */
+public class ApplicationTest extends ApplicationTestCase {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+}
\ No newline at end of file
diff --git a/ShowCaseApplication/app/src/main/AndroidManifest.xml b/ShowCaseApplication/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..6e74dcc
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/AndroidManifest.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adapters/DeviceListAdapter.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adapters/DeviceListAdapter.java
new file mode 100644
index 0000000..9e25f69
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adapters/DeviceListAdapter.java
@@ -0,0 +1,44 @@
+package com.mi.afzaal.adapters;
+
+import android.app.Activity;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ArrayAdapter;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import com.mi.afzaal.models.DeviceData;
+import com.mi.afzaal.showcaseapplication.R;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+
+/**
+ * Created by F ABBASI on 1/21/2016.
+ */
+public class DeviceListAdapter extends ArrayAdapter {
+
+ private final Activity context;
+ private final ArrayList devicelist;
+
+ public DeviceListAdapter(Activity context,ArrayList list)
+ {
+ super(context, R.layout.device_view,list);
+ this.context = context;
+ this.devicelist = list;
+ }
+ @Override
+ public View getView(int position, View view, ViewGroup parent) {
+ LayoutInflater inflater = context.getLayoutInflater();
+ DeviceData devicedata = devicelist.get(position);
+ View rowView= inflater.inflate(R.layout.device_view, null, true);
+ ImageView image = (ImageView)rowView.findViewById(R.id.image);
+ TextView text = (TextView) rowView.findViewById(R.id.text);
+ if(devicedata.toString() != null)
+ text.setText(devicedata.toString());
+ return rowView;
+ }
+}
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/AddDevicePresenterImpl.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/AddDevicePresenterImpl.java
new file mode 100644
index 0000000..d73707b
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/AddDevicePresenterImpl.java
@@ -0,0 +1,54 @@
+package com.mi.afzaal.adddevicedetails;
+
+
+import com.mi.afzaal.models.DeviceData;
+import com.mi.afzaal.utility.UtilityClass;
+
+public class AddDevicePresenterImpl implements IAddDevicePresenter,IAddDeviceListener{
+
+ IAddDeviceView addDeviceView;
+ IAddDeviceIntractor addDeviceIntractor;
+
+
+ public AddDevicePresenterImpl(IAddDeviceView deviceView) {
+ this.addDeviceView = deviceView;
+ this.addDeviceIntractor = new IAddDeviceIntractorImpl();
+ }
+
+
+ @Override
+ public void AddData(DeviceData d) {
+ if(addDeviceView!=null){
+ addDeviceView.showProgress();
+ }
+ addDeviceIntractor.addDevice(UtilityClass.URL_ADDDEVICE,d, this);
+ }
+
+ @Override
+ public void setNetworkError() {
+ if(addDeviceView!=null)
+ addDeviceView.setonError();
+
+ }
+
+ @Override
+ public void onsuccess() {
+ // TODO Auto-generated method stub
+ if(addDeviceView!=null)
+ addDeviceView.setonSuccess();
+ }
+
+ @Override
+ public void onError() {
+ if(addDeviceView!=null)
+ addDeviceView.setonError();
+ }
+
+
+ @Override
+ public void onDestroy() {
+ addDeviceView = null;
+ }
+
+
+}
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/AddNewDevice.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/AddNewDevice.java
new file mode 100644
index 0000000..fd9cb78
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/AddNewDevice.java
@@ -0,0 +1,106 @@
+package com.mi.afzaal.adddevicedetails;
+
+
+
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+import android.text.TextUtils;
+import android.view.View;
+import android.view.View.OnClickListener;
+import android.widget.Button;
+import android.widget.EditText;
+import android.widget.ProgressBar;
+import android.widget.Toast;
+
+import com.mi.afzaal.models.DeviceData;
+import com.mi.afzaal.showcaseapplication.DevicesListActivity;
+import com.mi.afzaal.showcaseapplication.R;
+
+public class AddNewDevice extends Activity implements IAddDeviceView,OnClickListener{
+
+ EditText name,version,codename,target,distribution;
+ Button submit;
+ ProgressBar progressBar;
+ AddDevicePresenterImpl devicePresentor;
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.addnewdevice_view);
+ name = (EditText) findViewById(R.id.name);
+ version = (EditText) findViewById(R.id.version);
+ codename = (EditText) findViewById(R.id.codename);
+ target = (EditText) findViewById(R.id.target);
+ distribution = (EditText) findViewById(R.id.distribution);
+ progressBar = (ProgressBar) findViewById(R.id.progressBar);
+ submit = (Button) findViewById(R.id.submit);
+ submit.setOnClickListener(this);
+ devicePresentor = new AddDevicePresenterImpl(this);
+
+ }
+ @Override
+ public void showProgress() {
+ progressBar.setVisibility(View.VISIBLE);
+ }
+ @Override
+ public void hideProgress() {
+ progressBar.setVisibility(View.GONE);
+
+ }
+ @Override
+ public void setonSuccess() {
+ progressBar.setVisibility(View.GONE);
+ Toast.makeText(getApplicationContext(), "Data Saved Successfully",Toast.LENGTH_SHORT).show();
+ this.navigateToHome();
+ }
+ @Override
+ public void setonError() {
+ progressBar.setVisibility(View.GONE);
+ Toast.makeText(getApplicationContext(), "Error in Saving Data",Toast.LENGTH_SHORT).show();
+ this.navigateToHome();
+ }
+ @Override
+ public void onClick(View v) {
+
+ if(v == submit){
+ if(Validation()){
+ progressBar.setVisibility(View.VISIBLE);
+ DeviceData data = new DeviceData();
+ data.setName(name.getText().toString());
+ data.setVersion(version.getText().toString());
+ data.setCodename(codename.getText().toString());
+ data.setTarget(target.getText().toString());
+
+ data.setDistribution(distribution.getText().toString());
+ devicePresentor.AddData(data);
+ }
+ }
+ }
+ private boolean Validation(){
+ if(TextUtils.isEmpty(name.getText().toString().trim())) {
+ name.setError("Enter the Name");
+ return false;
+ } else if(TextUtils.isEmpty(version.getText().toString().trim())) {
+ version.setError("Enter the Version");
+ return false;
+ } else if(TextUtils.isEmpty(codename.getText().toString().trim())) {
+ codename.setError("Enter the Code name");
+ return false;
+ } else if(TextUtils.isEmpty(target.getText().toString().trim())) {
+ target.setError("Enter the Target");
+ return false;
+ } else if(TextUtils.isEmpty(distribution.getText().toString().trim())) {
+ distribution.setError("Enter the Distribution");
+ return false;
+ }
+ return true;
+ }
+ @Override
+ public void navigateToHome() {
+ Intent i =new Intent(AddNewDevice.this,DevicesListActivity.class);
+ i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP|Intent.FLAG_ACTIVITY_CLEAR_TASK);
+ finish();
+ startActivity(i);
+ }
+
+}
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/IAddDeviceIntractor.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/IAddDeviceIntractor.java
new file mode 100644
index 0000000..a03421a
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/IAddDeviceIntractor.java
@@ -0,0 +1,10 @@
+package com.mi.afzaal.adddevicedetails;
+
+
+import com.mi.afzaal.models.DeviceData;
+
+public interface IAddDeviceIntractor {
+
+ void addDevice(String url, DeviceData data, IAddDeviceListener listener);
+
+}
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/IAddDeviceIntractorImpl.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/IAddDeviceIntractorImpl.java
new file mode 100644
index 0000000..2342eca
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/IAddDeviceIntractorImpl.java
@@ -0,0 +1,54 @@
+package com.mi.afzaal.adddevicedetails;
+
+import org.json.JSONException;
+import org.json.JSONObject;
+
+import com.android.volley.Request;
+import com.android.volley.Response;
+import com.android.volley.VolleyError;
+import com.android.volley.toolbox.JsonObjectRequest;
+import com.mi.afzaal.models.DeviceData;
+import com.mi.afzaal.showcaseapplication.AppController;
+
+public class IAddDeviceIntractorImpl implements IAddDeviceIntractor{
+
+ @Override
+ public void addDevice(String url, DeviceData data,
+ final IAddDeviceListener listener) {
+
+ JSONObject dataobj = createJsonObject(data);
+ JsonObjectRequest jsObjRequest = new JsonObjectRequest(Request.Method.POST, url,dataobj ,
+ new Response.Listener() {
+ @Override
+ public void onResponse(JSONObject response) {
+ if(response !=null){
+ listener.onsuccess();
+
+ }
+ }
+ }, new Response.ErrorListener() {
+ @Override
+ public void onErrorResponse(VolleyError error) {
+ listener.onError();
+ listener.setNetworkError();
+ }
+ });
+
+ AppController.getInstance().addToRequestQueue(jsObjRequest);
+ }
+
+ JSONObject createJsonObject(DeviceData data){
+ JSONObject jObj = new JSONObject();
+ try{
+ jObj.put("name", data.getName());
+ jObj.put("version", data.getVersion());
+ jObj.put("codename", data.getCodename());
+ jObj.put("target", data.getTarget());
+ jObj.put("distribution", data.getDistribution());
+ }catch(JSONException ex){
+
+ }
+ return jObj;
+ }
+
+}
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/IAddDeviceListener.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/IAddDeviceListener.java
new file mode 100644
index 0000000..4fa422c
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/IAddDeviceListener.java
@@ -0,0 +1,7 @@
+package com.mi.afzaal.adddevicedetails;
+
+public interface IAddDeviceListener {
+ void setNetworkError();
+ void onsuccess();
+ void onError();
+}
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/IAddDevicePresenter.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/IAddDevicePresenter.java
new file mode 100644
index 0000000..67686d2
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/IAddDevicePresenter.java
@@ -0,0 +1,10 @@
+package com.mi.afzaal.adddevicedetails;
+
+
+import com.mi.afzaal.models.DeviceData;
+
+public interface IAddDevicePresenter {
+
+ void AddData(DeviceData d);
+ void onDestroy();
+}
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/IAddDeviceView.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/IAddDeviceView.java
new file mode 100644
index 0000000..79ddba8
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/adddevicedetails/IAddDeviceView.java
@@ -0,0 +1,11 @@
+package com.mi.afzaal.adddevicedetails;
+
+public interface IAddDeviceView {
+
+ void showProgress();
+ void hideProgress();
+ void setonSuccess();
+ void setonError();
+ void navigateToHome();
+
+}
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/databasehelper/DatabaseHandler.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/databasehelper/DatabaseHandler.java
new file mode 100644
index 0000000..f68447d
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/databasehelper/DatabaseHandler.java
@@ -0,0 +1,91 @@
+package com.mi.afzaal.databasehelper;
+
+
+import java.util.ArrayList;
+
+import android.content.ContentValues;
+import android.content.Context;
+import android.database.sqlite.SQLiteDatabase;
+import android.database.sqlite.SQLiteOpenHelper;
+
+import com.mi.afzaal.models.DeviceData;
+
+
+public class DatabaseHandler extends SQLiteOpenHelper {
+
+ // All Static variables
+ // Database Version
+ private static final int DATABASE_VERSION = 1;
+
+ // Database Name
+ private static final String DATABASE_NAME = "deviceinfo";
+
+ // Contacts table name
+ private static final String TABLE_DEVICE = "devices";
+
+ // Contacts Table Columns names
+ private static final String KEY_ID = "id";
+ private static final String KEY_NAME = "name";
+ private static final String KEY_VERSION = "version";
+ private static final String KEY_CODENAME = "codename";
+ private static final String KEY_TARGET = "target";
+ private static final String KEY_DISTRIBUTION="distribution";
+
+
+
+
+ public DatabaseHandler(Context context) {
+ super(context, DATABASE_NAME, null, DATABASE_VERSION);
+ }
+
+ // Creating Tables
+ @Override
+ public void onCreate(SQLiteDatabase db) {
+ String CREATE_DEVICE_TABLE = "CREATE TABLE IF NOT EXISTS " + TABLE_DEVICE + "("
+ + KEY_ID + " INTEGER PRIMARY KEY AUTOINCREMENT," + KEY_NAME + " TEXT," + KEY_VERSION + " TEXT,"
+ + KEY_CODENAME + " TEXT," + KEY_TARGET + " TEXT,"+ KEY_DISTRIBUTION +" TEXT"
+ + ")";
+
+
+
+ db.execSQL(CREATE_DEVICE_TABLE);
+
+ }
+
+ // Upgrading database
+ @Override
+ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
+ // Drop older table if existed
+ db.execSQL("DROP TABLE IF EXISTS " + TABLE_DEVICE);
+ // Create tables again
+ onCreate(db);
+ }
+
+
+ // Adding new contact
+ public void addContact(ArrayList devicedata) {
+
+ SQLiteDatabase db = this.getWritableDatabase();
+
+ for(int i =0;i void addToRequestQueue(Request req, String tag) {
+ // set the default tag if tag is empty
+ req.setTag(TextUtils.isEmpty(tag) ? TAG : tag);
+ getRequestQueue().add(req);
+ }
+
+ public void addToRequestQueue(Request req) {
+ req.setTag(TAG);
+ getRequestQueue().add(req);
+ }
+
+ public void cancelPendingRequests(Object tag) {
+ if (mRequestQueue != null) {
+ mRequestQueue.cancelAll(tag);
+ }
+ }
+}
\ No newline at end of file
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/DeviceListPresenterImpl.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/DeviceListPresenterImpl.java
new file mode 100644
index 0000000..5f9767c
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/DeviceListPresenterImpl.java
@@ -0,0 +1,64 @@
+package com.mi.afzaal.showcaseapplication;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import android.content.Context;
+
+import com.mi.afzaal.models.DeviceData;
+import com.mi.afzaal.utility.UtilityClass;
+
+
+/**
+ * Created by F ABBASI on 1/21/2016.
+ */
+public class DeviceListPresenterImpl implements iDeviceListPresenter,OnDataReceivedListener {
+ iDeviceListView deviceView;
+ IDeviceListIntractor deviceInteractor;
+
+ public DeviceListPresenterImpl(iDeviceListView deviceView) {
+ this.deviceView = deviceView;
+ this.deviceInteractor = new IDeviceListInteractorImpl();
+ }
+
+
+ @Override
+ public ArrayList getData() {
+ if(deviceView!=null){
+ deviceView.showProgress();
+ }
+ return deviceInteractor.getDeviceList(UtilityClass.URL_DEVICELIST,this);
+ }
+
+ @Override
+ public void onDestroy() {
+ deviceView = null;
+ }
+
+ @Override
+ public void setNetworkError() {
+ if(deviceView!=null)
+ deviceView.setonError();
+ }
+
+ @Override
+ public void onsuccess() {
+
+ }
+
+ @Override
+ public void setData(ArrayList devicedata) {
+ if(deviceView != null)
+ deviceView.setData(devicedata);
+ }
+
+
+ @Override
+ public void saveDataToDB(Context c,ArrayList data) {
+ if(deviceView !=null){
+ deviceInteractor.saveToDb(c,data);
+ }
+ }
+
+
+}
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/DevicesListActivity.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/DevicesListActivity.java
new file mode 100644
index 0000000..3c28d3e
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/DevicesListActivity.java
@@ -0,0 +1,88 @@
+package com.mi.afzaal.showcaseapplication;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.os.Bundle;
+import android.view.View;
+import android.view.View.OnClickListener;
+import android.widget.ImageView;
+import android.widget.ListView;
+import android.widget.ProgressBar;
+import android.widget.RelativeLayout;
+
+import com.mi.afzaal.adapters.DeviceListAdapter;
+import com.mi.afzaal.adddevicedetails.AddNewDevice;
+import com.mi.afzaal.models.DeviceData;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class DevicesListActivity extends Activity implements iDeviceListView,OnClickListener {
+
+ ListView devicesList;
+ DeviceListPresenterImpl deviceListPresenter;
+ RelativeLayout progressview;
+ ProgressBar progressbar;
+ ImageView AddDevice;
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_devices_list);
+ devicesList = (ListView)findViewById(R.id.devicesList);
+ progressview = (RelativeLayout)findViewById(R.id.progressview);
+ progressbar = (ProgressBar)findViewById(R.id.progressbar);
+ AddDevice = (ImageView) findViewById(R.id.AddDevice);
+ AddDevice.setOnClickListener(this);
+ deviceListPresenter = new DeviceListPresenterImpl(this);
+ deviceListPresenter.getData();
+ }
+
+
+ @Override
+ public void showProgress() {
+ progressbar.setVisibility(View.VISIBLE);
+ }
+
+ @Override
+ public void hideProgress() {
+ progressbar.setVisibility(View.GONE);
+ progressview.setVisibility(View.GONE);
+ }
+
+ @Override
+ public void setData(ArrayList dataList) {
+ if(dataList!=null) {
+ progressbar.setVisibility(View.GONE);
+ progressview.setVisibility(View.GONE);
+ deviceListPresenter.saveDataToDB(getApplicationContext(), dataList);
+ DeviceListAdapter adapter = new DeviceListAdapter(DevicesListActivity.this, dataList);
+ devicesList.setAdapter(adapter);
+ }
+ }
+
+ @Override
+ public void setonError() {
+ progressbar.setVisibility(View.GONE);
+ progressview.setVisibility(View.GONE);
+ }
+
+ @Override
+ public void setonSuccess() {
+ progressbar.setVisibility(View.GONE);
+ progressview.setVisibility(View.GONE);
+ }
+
+ @Override
+ public void savetoDB(ArrayList list) {
+
+ }
+
+
+ @Override
+ public void onClick(View v) {
+ if(v==AddDevice){
+ startActivity(new Intent(DevicesListActivity.this,AddNewDevice.class));
+ }
+ }
+}
+
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/IDeviceListInteractorImpl.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/IDeviceListInteractorImpl.java
new file mode 100644
index 0000000..a38a429
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/IDeviceListInteractorImpl.java
@@ -0,0 +1,148 @@
+package com.mi.afzaal.showcaseapplication;
+
+import android.content.Context;
+import android.util.Log;
+
+import com.android.volley.Request;
+import com.android.volley.Response;
+import com.android.volley.VolleyError;
+import com.android.volley.VolleyLog;
+import com.android.volley.toolbox.JsonArrayRequest;
+import com.android.volley.toolbox.JsonObjectRequest;
+import com.android.volley.toolbox.StringRequest;
+import com.mi.afzaal.databasehelper.DatabaseHandler;
+import com.mi.afzaal.models.DeviceData;
+
+
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+/**
+ * Created by F ABBASI on 1/21/2016.
+ */
+public class IDeviceListInteractorImpl implements IDeviceListIntractor {
+
+ ArrayList deviceData;
+
+ @Override
+ public ArrayList getDeviceList(String url, final OnDataReceivedListener listener) {
+
+ StringRequest jsObjRequest = new StringRequest(Request.Method.GET,
+ url, new Response.Listener() {
+
+ @Override
+ public void onResponse(String response) {
+ Log.d("VOLLEY", response.toString());
+ deviceData= getResponse(response);
+
+ listener.onsuccess();
+ listener.setData(deviceData);
+
+ }
+ }, new Response.ErrorListener() {
+
+ @Override
+ public void onErrorResponse(VolleyError error) {
+ VolleyLog.d("VOLLEY", "Error: " + error.getMessage());
+ deviceData = null;
+ listener.setNetworkError();
+ }
+ });
+
+
+ AppController.getInstance().addToRequestQueue(jsObjRequest);
+ return deviceData;
+
+ }
+
+ @Override
+ public void saveToDb(Context c,ArrayList devicelist) {
+ DatabaseHandler dbHandler = new DatabaseHandler(c);
+ dbHandler.addContact(devicelist);
+
+ }
+
+ ArrayList getResponse(String response){
+ ArrayList data = new ArrayList();
+ JSONArray CatjArray = null;
+ try {
+ CatjArray = new JSONArray(response);
+ } catch (JSONException e) {
+ e.printStackTrace();
+ }
+ JSONObject cat_json_data=null;
+ for(int i=0;i getDeviceList(String url, OnDataReceivedListener listener);
+ void saveToDb(Context c, ArrayList devicelist);
+}
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/OnDataReceivedListener.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/OnDataReceivedListener.java
new file mode 100644
index 0000000..878470f
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/OnDataReceivedListener.java
@@ -0,0 +1,19 @@
+package com.mi.afzaal.showcaseapplication;
+
+
+import com.mi.afzaal.models.DeviceData;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+
+/**
+ * Created by F ABBASI on 1/21/2016.
+ */
+public interface OnDataReceivedListener {
+
+ void setNetworkError();
+ void onsuccess();
+ void setData(ArrayList devicedata);
+}
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/iDeviceListPresenter.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/iDeviceListPresenter.java
new file mode 100644
index 0000000..f931fec
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/iDeviceListPresenter.java
@@ -0,0 +1,19 @@
+package com.mi.afzaal.showcaseapplication;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import android.content.Context;
+
+import com.mi.afzaal.models.DeviceData;
+
+
+/**
+ * Created by F ABBASI on 1/21/2016.
+ */
+public interface iDeviceListPresenter {
+ ArrayList getData();
+ void saveDataToDB(Context c, ArrayList data);
+ void onDestroy();
+
+}
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/iDeviceListView.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/iDeviceListView.java
new file mode 100644
index 0000000..81dec46
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/showcaseapplication/iDeviceListView.java
@@ -0,0 +1,22 @@
+package com.mi.afzaal.showcaseapplication;
+
+import com.mi.afzaal.models.DeviceData;
+
+import java.util.ArrayList;
+import java.util.List;
+
+
+
+/**
+ * Created by F ABBASI on 1/21/2016.
+ */
+public interface iDeviceListView {
+
+ void showProgress();
+ void hideProgress();
+ void setData(ArrayList dataList);
+ void setonError();
+ void setonSuccess();
+ void savetoDB(ArrayList list);
+
+}
diff --git a/ShowCaseApplication/app/src/main/java/com/mi/afzaal/utility/UtilityClass.java b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/utility/UtilityClass.java
new file mode 100644
index 0000000..0f6b79a
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/java/com/mi/afzaal/utility/UtilityClass.java
@@ -0,0 +1,9 @@
+package com.mi.afzaal.utility;
+
+/**
+ * Created by F ABBASI on 1/21/2016.
+ */
+public class UtilityClass {
+ public static String URL_DEVICELIST = "http://mobilesandboxdev.azurewebsites.net/android/";
+ public static String URL_ADDDEVICE = "http://mobilesandboxdev.azurewebsites.net/android";
+}
diff --git a/ShowCaseApplication/app/src/main/res/drawable/ic_launcher.png b/ShowCaseApplication/app/src/main/res/drawable/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/ShowCaseApplication/app/src/main/res/drawable/ic_launcher.png differ
diff --git a/ShowCaseApplication/app/src/main/res/drawable/plussign.png b/ShowCaseApplication/app/src/main/res/drawable/plussign.png
new file mode 100644
index 0000000..6aa5bd8
Binary files /dev/null and b/ShowCaseApplication/app/src/main/res/drawable/plussign.png differ
diff --git a/ShowCaseApplication/app/src/main/res/drawable/textfield_shape.xml b/ShowCaseApplication/app/src/main/res/drawable/textfield_shape.xml
new file mode 100644
index 0000000..6f86572
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/res/drawable/textfield_shape.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ShowCaseApplication/app/src/main/res/layout/activity_devices_list.xml b/ShowCaseApplication/app/src/main/res/layout/activity_devices_list.xml
new file mode 100644
index 0000000..571b2a3
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/res/layout/activity_devices_list.xml
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ShowCaseApplication/app/src/main/res/layout/addnewdevice_view.xml b/ShowCaseApplication/app/src/main/res/layout/addnewdevice_view.xml
new file mode 100644
index 0000000..b3555c9
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/res/layout/addnewdevice_view.xml
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ShowCaseApplication/app/src/main/res/layout/device_view.xml b/ShowCaseApplication/app/src/main/res/layout/device_view.xml
new file mode 100644
index 0000000..6a051bf
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/res/layout/device_view.xml
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ShowCaseApplication/app/src/main/res/menu/menu_devices_list.xml b/ShowCaseApplication/app/src/main/res/menu/menu_devices_list.xml
new file mode 100644
index 0000000..f662119
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/res/menu/menu_devices_list.xml
@@ -0,0 +1,6 @@
+
diff --git a/ShowCaseApplication/app/src/main/res/mipmap-hdpi/ic_launcher.png b/ShowCaseApplication/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..cde69bc
Binary files /dev/null and b/ShowCaseApplication/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/ShowCaseApplication/app/src/main/res/mipmap-mdpi/ic_launcher.png b/ShowCaseApplication/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..c133a0c
Binary files /dev/null and b/ShowCaseApplication/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/ShowCaseApplication/app/src/main/res/mipmap-mdpi/plussign.png b/ShowCaseApplication/app/src/main/res/mipmap-mdpi/plussign.png
new file mode 100644
index 0000000..6aa5bd8
Binary files /dev/null and b/ShowCaseApplication/app/src/main/res/mipmap-mdpi/plussign.png differ
diff --git a/ShowCaseApplication/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/ShowCaseApplication/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..bfa42f0
Binary files /dev/null and b/ShowCaseApplication/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/ShowCaseApplication/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/ShowCaseApplication/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..324e72c
Binary files /dev/null and b/ShowCaseApplication/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/ShowCaseApplication/app/src/main/res/values-w820dp/dimens.xml b/ShowCaseApplication/app/src/main/res/values-w820dp/dimens.xml
new file mode 100644
index 0000000..63fc816
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+
+
+ 64dp
+
diff --git a/ShowCaseApplication/app/src/main/res/values/dimens.xml b/ShowCaseApplication/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..47c8224
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 16dp
+ 16dp
+
diff --git a/ShowCaseApplication/app/src/main/res/values/strings.xml b/ShowCaseApplication/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..bcdbbc9
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/res/values/strings.xml
@@ -0,0 +1,6 @@
+
+ ShowCaseApplication
+
+ Hello world!
+ Settings
+
diff --git a/ShowCaseApplication/app/src/main/res/values/styles.xml b/ShowCaseApplication/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..766ab99
--- /dev/null
+++ b/ShowCaseApplication/app/src/main/res/values/styles.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
diff --git a/ShowCaseApplication/build.gradle b/ShowCaseApplication/build.gradle
new file mode 100644
index 0000000..9405f3f
--- /dev/null
+++ b/ShowCaseApplication/build.gradle
@@ -0,0 +1,19 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:1.2.3'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ jcenter()
+ }
+}
diff --git a/ShowCaseApplication/gradle.properties b/ShowCaseApplication/gradle.properties
new file mode 100644
index 0000000..1d3591c
--- /dev/null
+++ b/ShowCaseApplication/gradle.properties
@@ -0,0 +1,18 @@
+# Project-wide Gradle settings.
+
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+# Default value: -Xmx10248m -XX:MaxPermSize=256m
+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
+
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
\ No newline at end of file
diff --git a/ShowCaseApplication/gradle/wrapper/gradle-wrapper.jar b/ShowCaseApplication/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..8c0fb64
Binary files /dev/null and b/ShowCaseApplication/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/ShowCaseApplication/gradle/wrapper/gradle-wrapper.properties b/ShowCaseApplication/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..0c71e76
--- /dev/null
+++ b/ShowCaseApplication/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Apr 10 15:27:10 PDT 2013
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
diff --git a/ShowCaseApplication/gradlew b/ShowCaseApplication/gradlew
new file mode 100644
index 0000000..91a7e26
--- /dev/null
+++ b/ShowCaseApplication/gradlew
@@ -0,0 +1,164 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+ echo "$*"
+}
+
+die ( ) {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+esac
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched.
+if $cygwin ; then
+ [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+fi
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >&-
+APP_HOME="`pwd -P`"
+cd "$SAVED" >&-
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+ JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/ShowCaseApplication/gradlew.bat b/ShowCaseApplication/gradlew.bat
new file mode 100644
index 0000000..8a0b282
--- /dev/null
+++ b/ShowCaseApplication/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/ShowCaseApplication/local.properties b/ShowCaseApplication/local.properties
new file mode 100644
index 0000000..4adf661
--- /dev/null
+++ b/ShowCaseApplication/local.properties
@@ -0,0 +1,10 @@
+## This file is automatically generated by Android Studio.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file should *NOT* be checked into Version Control Systems,
+# as it contains information specific to your local configuration.
+#
+# Location of the SDK. This is only used by Gradle.
+# For customization when using a Version Control System, please read the
+# header note.
+sdk.dir=C\:\\Users\\Afzaal\\AppData\\Local\\Android\\sdk
\ No newline at end of file
diff --git a/ShowCaseApplication/mi-dev-test/README.md b/ShowCaseApplication/mi-dev-test/README.md
new file mode 100644
index 0000000..b2a581d
--- /dev/null
+++ b/ShowCaseApplication/mi-dev-test/README.md
@@ -0,0 +1,28 @@
+# MI Developer Test
+
+You have just been hired as a mobile developer in a new company.
+
+On your first day, the CTO wants you to spend some time on a project.
+The objective is very simple: you need to create a showcase application that can download and parse AT THE SAME TIME the history of the versions of Android and some device informations. Creating a database and storing the data is a plus. Once the download is finished, you need to display both information in a listview on the main screen.
+
+Once you open the app, you can select a device by tapping on it, which will show the related android version information (name, version code).
+
+You also need to add a Plus (+) button to add a new field directly from the application. The server is a basic restFull server, so you can easily POST new info.
+
+## How to GET and POST the data?
+We deployed on our side the "JSON Server" from Typicode [Github]
+Server access: http://mobilesandboxdev.azurewebsites.net/. There is no landing page.
+DataBase : database
+Check out the Json Server documentation to see how to get the related informations.
+
+## We want to know if you can
+- Create an scalable app
+- Use a RestFul server (GET / POST). Create the PUT and DELETE will be a plus
+- Use GIT
+- Apply User-friendly/Intuitive UI
+
+Multithreading is a plus.
+
+## How to submit your work?
+Fork this repository. This exercise should take about 2 days. However, you are not timed and you can send us a pull request whenever you are ready to show us your work.
+And if you have something live going on, even better!
diff --git a/ShowCaseApplication/mi-dev-test/database.json b/ShowCaseApplication/mi-dev-test/database.json
new file mode 100644
index 0000000..633506b
--- /dev/null
+++ b/ShowCaseApplication/mi-dev-test/database.json
@@ -0,0 +1,249 @@
+{
+ "android": [
+ {
+ "id": 1,
+ "name": "Android beta",
+ "version": "0",
+ "codename": "beta",
+ "target": "0",
+ "distribution": "0.0%"
+ },
+ {
+ "id": 2,
+ "name": "Android 1.0",
+ "version": "1.0",
+ "codename": "",
+ "target": "1",
+ "distribution": "0.0%"
+ },
+ {
+ "id": 3,
+ "name": "Android 1.1",
+ "version": "1.1",
+ "codename": "",
+ "target": "2",
+ "distribution": "0.0%"
+ },
+ {
+ "id": 4,
+ "name": "Android 1.5 Cupcake",
+ "version": "1.5",
+ "codename": "Cupcake",
+ "target": "3",
+ "distribution": "0.2%"
+ },
+ {
+ "id": 5,
+ "name": "Android 1.6 Donut",
+ "version": "1.6",
+ "codename": "Donut",
+ "target": "4",
+ "distribution": "0.4%"
+ },
+ {
+ "id": 6,
+ "name": "Android 2.1 Eclair",
+ "version": "2.1",
+ "codename": "Eclair",
+ "target": "7",
+ "distribution": "3.7%"
+ },
+ {
+ "id": 7,
+ "name": "Android 2.2.x Froyo",
+ "version": "2.2.x",
+ "codename": "Froyo",
+ "target": "8",
+ "distribution": "14%"
+ },
+ {
+ "id": 8,
+ "name": "Android 2.3 - 2.3.2 Gingerbread",
+ "version": "2.3.x",
+ "codename": "Gingerbread",
+ "target": "9",
+ "distribution": "0.3%"
+ },
+ {
+ "id": 9,
+ "name": "Android 2.3.3 - 2.3.7 Gingerbread",
+ "version": "2.3.x",
+ "codename": "Gingerbread",
+ "target": "10",
+ "distribution": "57.2%"
+ },
+ {
+ "id": 10,
+ "name": "Android 3.1 Honeycomb",
+ "version": "3.1",
+ "codename": "Honeycomb",
+ "target": "12",
+ "distribution": "0.5%"
+ },
+ {
+ "id": 11,
+ "name": "Android 3.2 Honeycomb",
+ "version": "3.2",
+ "codename": "Honeycomb",
+ "target": "13",
+ "distribution": "1.6%"
+ },
+ {
+ "id": 12,
+ "name": "Android 4.0 - 4.0.2 Ice Cream Sandwich",
+ "version": "4.0.x",
+ "codename": "Ice Cream Sandwich",
+ "target": "14",
+ "distribution": "0.1%"
+ },
+ {
+ "id": 13,
+ "name": "Android 4.0.3 - 4.0.4 Ice Cream Sandwich",
+ "version": "4.0.x",
+ "codename": "Ice Cream Sandwich",
+ "target": "15",
+ "distribution": "20.8%"
+ },
+ {
+ "id": 14,
+ "name": "Android 4.1 Jelly Bean",
+ "version": "4.1.x",
+ "codename": "Jelly Bean",
+ "target": "16",
+ "distribution": "1.2%"
+ }
+ ],
+ "devices": [
+ {
+ "id": 1,
+ "androidId": 5,
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/motorola-xoom.0.jpg",
+ "name": "MOTOROLA XOOM™",
+ "snippet": "The Next, Next Generation\n\nExperience the future with MOTOROLA XOOM, the world's first tablet powered by Android 3.0 (Honeycomb)."
+ },
+ {
+ "id": 2,
+ "androidId": 10,
+ "carrier": "AT&T",
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/motorola-atrix-4g.0.jpg",
+ "name": "MOTOROLA ATRIX™ 4G",
+ "snippet": "MOTOROLA ATRIX 4G the world's most powerful smartphone."
+ },
+ {
+ "id": 5,
+ "androidId": 11,
+ "carrier": "Dell",
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/dell-venue.0.jpg",
+ "name": "Dell Venue",
+ "snippet": "The Dell Venue; Your Personal Express Lane to Everything"
+ },
+ {
+ "id": 6,
+ "androidId": 12,
+ "carrier": "Best Buy",
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/nexus-s.0.jpg",
+ "name": "Nexus S",
+ "snippet": "Fast just got faster with Nexus S. A pure Google experience, Nexus S is the first phone to run Gingerbread (Android 2.3), the fastest version of Android yet."
+ },
+ {
+ "id": 7,
+ "androidId": 8,
+ "carrier": "Cellular South",
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/lg-axis.0.jpg",
+ "name": "LG Axis",
+ "snippet": "Android Powered, Google Maps Navigation, 5 Customizable Home Screens"
+ },
+ {
+ "id": 8,
+ "androidId": 6,
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/samsung-galaxy-tab.0.jpg",
+ "name": "Samsung Galaxy Tab™",
+ "snippet": "Feel Free to Tab™. The Samsung Galaxy Tab™ brings you an ultra-mobile entertainment experience through its 7” display, high-power processor and Adobe® Flash® Player compatibility."
+ },
+ {
+ "id": 9,
+ "androidId": 8,
+ "carrier": "Cellular South",
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/samsung-showcase-a-galaxy-s-phone.0.jpg",
+ "name": "Samsung Showcase™ a Galaxy S™ phone",
+ "snippet": "The Samsung Showcase™ delivers a cinema quality experience like you’ve never seen before. Its innovative 4” touch display technology provides rich picture brilliance, even outdoors"
+ },
+ {
+ "id": 10,
+ "androidId": 8,
+ "carrier": "Verizon",
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/droid-2-global-by-motorola.0.jpg",
+ "name": "DROID™ 2 Global by Motorola",
+ "snippet": "The first smartphone with a 1.2 GHz processor and global capabilities."
+ },
+ {
+ "id": 11,
+ "androidId": 8,
+ "carrier": "Verizon",
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/droid-pro-by-motorola.0.jpg",
+ "name": "DROID™ Pro by Motorola",
+ "snippet": "The next generation of DOES."
+ },
+ {
+ "id": 12,
+ "androidId": 8,
+ "carrier": "AT&T",
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/motorola-bravo-with-motoblur.0.jpg",
+ "name": "MOTOROLA BRAVO™ with MOTOBLUR™",
+ "snippet": "An experience to cheer about."
+ },
+ {
+ "id": 13,
+ "androidId": 8,
+ "carrier": "T-Mobile",
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/motorola-defy-with-motoblur.0.jpg",
+ "name": "Motorola DEFY™ with MOTOBLUR™",
+ "snippet": "Are you ready for everything life throws your way?"
+ },
+ {
+ "id": 14,
+ "androidId": 11,
+ "carrier": "T-Mobile",
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/t-mobile-mytouch-4g.0.jpg",
+ "name": "T-Mobile myTouch 4G",
+ "snippet": "The T-Mobile myTouch 4G is a premium smartphone designed to deliver blazing fast 4G speeds so that you can video chat from practically anywhere, with or without Wi-Fi."
+ },
+ {
+ "id": 15,
+ "androidId": 11,
+ "carrier": "US Cellular",
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/samsung-mesmerize-a-galaxy-s-phone.0.jpg",
+ "name": "Samsung Mesmerize™ a Galaxy S™ phone",
+ "snippet": "The Samsung Mesmerize™ delivers a cinema quality experience like you’ve never seen before. Its innovative 4” touch display technology provides rich picture brilliance,even outdoors"
+ },
+ {
+ "id": 16,
+ "androidId": 11,
+ "carrier": "Sprint",
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/sanyo-zio.0.jpg",
+ "name": "SANYO ZIO",
+ "snippet": "The Sanyo Zio by Kyocera is an Android smartphone with a combination of ultra-sleek styling, strong performance and unprecedented value."
+ },
+ {
+ "id": 17,
+ "androidId": 11,
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/samsung-transform.0.jpg",
+ "name": "Samsung Transform™",
+ "snippet": "The Samsung Transform™ brings you a fun way to customize your Android powered touch screen phone to just the way you like it through your favorite themed “Sprint ID Service Pack”."
+ },
+ {
+ "id": 18,
+ "androidId": 11,
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/t-mobile-g2.0.jpg",
+ "name": "T-Mobile G2",
+ "snippet": "The T-Mobile G2 with Google is the first smartphone built for 4G speeds on T-Mobile's new network. Get the information you need, faster than you ever thought possible."
+ },
+ {
+ "id": 19,
+ "androidId": 11,
+ "imageUrl": "https://raw.githubusercontent.com/IgorMinar/angular-phonecat-tutorial/master/app/img/phones/motorola-charm-with-motoblur.0.jpg",
+ "name": "Motorola CHARM™ with MOTOBLUR™",
+ "snippet": "Motorola CHARM fits easily in your pocket or palm. Includes MOTOBLUR service."
+ }
+ ]
+}
\ No newline at end of file
diff --git a/ShowCaseApplication/settings.gradle b/ShowCaseApplication/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/ShowCaseApplication/settings.gradle
@@ -0,0 +1 @@
+include ':app'