diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2b75303
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,13 @@
+*.iml
+.gradle
+/local.properties
+/.idea/caches
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+/.idea/navEditor.xml
+/.idea/assetWizardSettings.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
new file mode 100644
index 0000000..681f41a
--- /dev/null
+++ b/.idea/codeStyles/Project.xml
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ xmlns:android
+
+ ^$
+
+
+
+
+
+
+
+
+ xmlns:.*
+
+ ^$
+
+
+ BY_NAME
+
+
+
+
+
+
+ .*:id
+
+ http://schemas.android.com/apk/res/android
+
+
+
+
+
+
+
+
+ .*:name
+
+ http://schemas.android.com/apk/res/android
+
+
+
+
+
+
+
+
+ name
+
+ ^$
+
+
+
+
+
+
+
+
+ style
+
+ ^$
+
+
+
+
+
+
+
+
+ .*
+
+ ^$
+
+
+ BY_NAME
+
+
+
+
+
+
+ .*
+
+ http://schemas.android.com/apk/res/android
+
+
+ ANDROID_ATTRIBUTE_ORDER
+
+
+
+
+
+
+ .*
+
+ .*
+
+
+ BY_NAME
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/encodings.xml b/.idea/encodings.xml
new file mode 100644
index 0000000..15a15b2
--- /dev/null
+++ b/.idea/encodings.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
new file mode 100644
index 0000000..2996d53
--- /dev/null
+++ b/.idea/gradle.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..37a7509
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml
new file mode 100644
index 0000000..7f68460
--- /dev/null
+++ b/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 10a4491..7242676 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,2 @@
-# IntegratedMicroApps-AndroidSample
-
+# IntegratedMicroApps-Android [![minSdk](https://img.shields.io/badge/minSdk-21-green.svg)](#)
+
diff --git a/app/.gitignore b/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/app/build.gradle b/app/build.gradle
new file mode 100644
index 0000000..6b942a9
--- /dev/null
+++ b/app/build.gradle
@@ -0,0 +1,28 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 28
+ defaultConfig {
+ applicationId "com.example.final_project"
+ minSdkVersion 21
+ targetSdkVersion 28
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
+ implementation 'com.android.support:appcompat-v7:28.0.0'
+ implementation 'com.android.support.constraint:constraint-layout:1.1.3'
+ testImplementation 'junit:junit:4.12'
+ androidTestImplementation 'com.android.support.test:runner:1.0.2'
+ androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
+}
diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro
new file mode 100644
index 0000000..f1b4245
--- /dev/null
+++ b/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# 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 *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/app/src/androidTest/java/com/example/final_project/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/example/final_project/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..87f5888
--- /dev/null
+++ b/app/src/androidTest/java/com/example/final_project/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.example.final_project;
+
+import android.content.Context;
+import android.support.test.InstrumentationRegistry;
+import android.support.test.runner.AndroidJUnit4;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import static org.junit.Assert.*;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getTargetContext();
+
+ assertEquals("com.example.final_project", appContext.getPackageName());
+ }
+}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..f8267b1
--- /dev/null
+++ b/app/src/main/AndroidManifest.xml
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/java/com/example/final_project/AlbumActivity.java b/app/src/main/java/com/example/final_project/AlbumActivity.java
new file mode 100644
index 0000000..9e8624d
--- /dev/null
+++ b/app/src/main/java/com/example/final_project/AlbumActivity.java
@@ -0,0 +1,34 @@
+package com.example.final_project;
+
+import android.support.v4.view.ViewPager;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.MenuItem;
+
+public class AlbumActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_album);
+
+ //BackButton
+ getSupportActionBar().setDisplayShowHomeEnabled(true);
+ getSupportActionBar().setDisplayHomeAsUpEnabled(true);
+
+ ViewPager viewPager=(ViewPager)findViewById(R.id.viewPager);
+ ImageAdapter adapter=new ImageAdapter(this);
+ viewPager.setAdapter(adapter);
+ }
+
+ //BackButton
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ int id = item.getItemId();
+ if (id == android.R.id.home) {
+ this.finish();
+ }
+ return super.onOptionsItemSelected(item);
+ }
+}
+
diff --git a/app/src/main/java/com/example/final_project/CalcActivity.java b/app/src/main/java/com/example/final_project/CalcActivity.java
new file mode 100644
index 0000000..0b7039a
--- /dev/null
+++ b/app/src/main/java/com/example/final_project/CalcActivity.java
@@ -0,0 +1,108 @@
+package com.example.final_project;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.*;
+
+public class CalcActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_calc);
+
+ //BackButton
+ getSupportActionBar().setDisplayShowHomeEnabled(true);
+ getSupportActionBar().setDisplayHomeAsUpEnabled(true);
+
+ Button AddBtn=(Button)findViewById(R.id.AddBtn);
+ AddBtn.setOnClickListener(new View.OnClickListener()
+ {
+ @Override
+ public void onClick(View v) {
+
+ EditText FirstEditText = (EditText) findViewById(R.id.FirstEditText);
+ EditText SecondEditText = (EditText) findViewById(R.id.SecondEditText);
+ TextView ResultTextView = (TextView) findViewById(R.id.ResultTextView);
+
+ int num1 = Integer.parseInt(FirstEditText.getText().toString());
+ int num2 = Integer.parseInt(SecondEditText.getText().toString());
+ int result = num1 + num2;
+
+ ResultTextView.setText(result + ""); //Output results
+
+
+ }
+ });
+
+ Button SubBtn=(Button)findViewById(R.id.SubBtn);
+ SubBtn.setOnClickListener(new View.OnClickListener()
+ {
+ @Override
+ public void onClick(View v) {
+
+ EditText FirstEditText = (EditText) findViewById(R.id.FirstEditText);
+ EditText SecondEditText = (EditText) findViewById(R.id.SecondEditText);
+ TextView ResultTextView = (TextView) findViewById(R.id.ResultTextView);
+
+ int num1 = Integer.parseInt(FirstEditText.getText().toString());
+ int num2 = Integer.parseInt(SecondEditText.getText().toString());
+ int result = num1 - num2;
+
+ ResultTextView.setText(result + ""); //Output results
+
+ }
+ });
+
+ Button MultBtn=(Button)findViewById(R.id.MultBtn);
+ MultBtn.setOnClickListener(new View.OnClickListener()
+ {
+ @Override
+ public void onClick(View v) {
+
+ EditText FirstEditText = (EditText) findViewById(R.id.FirstEditText);
+ EditText SecondEditText = (EditText) findViewById(R.id.SecondEditText);
+ TextView ResultTextView = (TextView) findViewById(R.id.ResultTextView);
+
+ int num1 = Integer.parseInt(FirstEditText.getText().toString());
+ int num2 = Integer.parseInt(SecondEditText.getText().toString());
+ int result = num1 * num2;
+
+ ResultTextView.setText(result + ""); //Output results
+
+ }
+ });
+
+ Button DivBtn=(Button)findViewById(R.id.DivBtn);
+ DivBtn.setOnClickListener(new View.OnClickListener()
+ {
+ @Override
+ public void onClick(View v) {
+
+ EditText FirstEditText = (EditText) findViewById(R.id.FirstEditText);
+ EditText SecondEditText = (EditText) findViewById(R.id.SecondEditText);
+ TextView ResultTextView = (TextView) findViewById(R.id.ResultTextView);
+
+ int num1 = Integer.parseInt(FirstEditText.getText().toString());
+ int num2 = Integer.parseInt(SecondEditText.getText().toString());
+ int result = num1 / num2;
+
+ ResultTextView.setText(result + ""); //Output results
+
+ }
+ });
+ }
+
+ //BackButton
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ int id = item.getItemId();
+ if (id == android.R.id.home) {
+ this.finish();
+ }
+ return super.onOptionsItemSelected(item);
+ }
+}
+
diff --git a/app/src/main/java/com/example/final_project/ImageAdapter.java b/app/src/main/java/com/example/final_project/ImageAdapter.java
new file mode 100644
index 0000000..d64e4cd
--- /dev/null
+++ b/app/src/main/java/com/example/final_project/ImageAdapter.java
@@ -0,0 +1,42 @@
+package com.example.final_project;
+
+import android.content.Context;
+import android.support.v4.view.PagerAdapter;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ImageView;
+
+public class ImageAdapter extends PagerAdapter {
+
+ private Context mContext;
+ private int[] mImageIds=new int[] {R.drawable.redvalley1,R.drawable.redvalley2,R.drawable.redvalley3,R.drawable.redvalley4,R.drawable.redvalley5};
+
+ ImageAdapter(Context context){
+ mContext=context;
+ }
+
+ @Override
+ public int getCount() {
+ return mImageIds.length;
+ }
+
+ @Override
+ public boolean isViewFromObject(View view, Object object) {
+ return view==object;
+ }
+
+ @Override
+ public Object instantiateItem(ViewGroup container, int position) {
+ ImageView imageView=new ImageView(mContext);
+ imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
+ imageView.setImageResource(mImageIds[position]);
+ container.addView(imageView,0);
+ return imageView;
+
+ }
+
+ @Override
+ public void destroyItem(ViewGroup container,int position,Object object) {
+ container.removeView((ImageView) object);
+ }
+}
diff --git a/app/src/main/java/com/example/final_project/ItemAdapter.java b/app/src/main/java/com/example/final_project/ItemAdapter.java
new file mode 100644
index 0000000..3b11140
--- /dev/null
+++ b/app/src/main/java/com/example/final_project/ItemAdapter.java
@@ -0,0 +1,59 @@
+package com.example.final_project;
+
+import android.content.Context;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.BaseAdapter;
+import android.widget.TextView;
+
+public class ItemAdapter extends BaseAdapter{
+
+ LayoutInflater mInflater;
+ String[] items;
+ String[] prices;
+ String[] descriptions;
+
+ public ItemAdapter(Context c, String[] i, String[] p, String[] d) {
+
+ items=i;
+ prices=p;
+ descriptions=d;
+ mInflater=(LayoutInflater)c.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
+ }
+
+ @Override
+ public int getCount() {
+ return items.length;
+ }
+
+ @Override
+ public Object getItem(int i) {
+ return items[i];
+ }
+
+ @Override
+ public long getItemId(int i) {
+ return i;
+ }
+
+ @Override
+ public View getView(int i, View convertView, ViewGroup parent) {
+
+ View v=mInflater.inflate(R.layout.my_listview_detail,null);
+ TextView nameTextView=(TextView)v.findViewById(R.id.nameTextView);
+ TextView descriptionTextView=(TextView)v.findViewById(R.id.descriptionTextView);
+ TextView priceTextView=(TextView)v.findViewById(R.id.priceTextView);
+
+ String name=items[i];
+ String desc=descriptions[i];
+ String cost=prices[i];
+
+ nameTextView.setText(name);
+ descriptionTextView.setText(desc);
+ priceTextView.setText(cost);
+
+ return v;
+ }
+}
+
diff --git a/app/src/main/java/com/example/final_project/LoginActivity.java b/app/src/main/java/com/example/final_project/LoginActivity.java
new file mode 100644
index 0000000..1364e92
--- /dev/null
+++ b/app/src/main/java/com/example/final_project/LoginActivity.java
@@ -0,0 +1,60 @@
+package com.example.final_project;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.*;
+import android.content.Intent;
+import android.view.MenuItem;
+
+public class LoginActivity extends AppCompatActivity {
+
+ TextView text1;
+ TextView text2;
+ Button login2;
+ RadioButton radio1;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_login);
+
+ //BackButton
+ getSupportActionBar().setDisplayShowHomeEnabled(true);
+ getSupportActionBar().setDisplayHomeAsUpEnabled(true);
+
+ text1=(TextView)findViewById(R.id.txt1);
+ text2=(TextView)findViewById(R.id.txt2);
+ login2=(Button)findViewById(R.id.button2);
+ radio1=(RadioButton)findViewById(R.id.radio1);
+
+ Bundle bundle=getIntent().getExtras();
+ String data1=bundle.getString("user");
+ String data2=bundle.getString("number");
+
+ text1.setText(data1);
+ text2.setText(data2);
+
+ }
+
+ //BackButton
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ int id = item.getItemId();
+ if (id == android.R.id.home) {
+ this.finish();
+ }
+ return super.onOptionsItemSelected(item);
+ }
+
+ public void movepage(View v) {
+ if (radio1.isChecked()) {
+ Intent next = new Intent(LoginActivity.this, MenuActivity.class);
+ startActivity(next);
+ }
+ else {
+ Toast.makeText(getBaseContext(), "Please click the circular button", Toast.LENGTH_SHORT).show();
+ }
+ }
+}
+
diff --git a/app/src/main/java/com/example/final_project/MainActivity.java b/app/src/main/java/com/example/final_project/MainActivity.java
new file mode 100644
index 0000000..ad80fcd
--- /dev/null
+++ b/app/src/main/java/com/example/final_project/MainActivity.java
@@ -0,0 +1,46 @@
+package com.example.final_project;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.*;
+import android.content.Intent;
+
+public class MainActivity extends AppCompatActivity {
+
+ EditText username, password;
+ Button login;
+ ImageView image;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_main);
+
+ username=(EditText)findViewById(R.id.name);
+ password=(EditText)findViewById(R.id.pass);
+ login=(Button)findViewById(R.id.button);
+ image=(ImageView)findViewById(R.id.imageView1);
+ }
+
+ public void movepage(View v) {
+ String stname = username.getText().toString();
+ String stpassword = password.getText().toString();
+
+ if (stname.equals("ryantkerr") && stpassword.equals("123456")) {
+ Intent next = new Intent(MainActivity.this, LoginActivity.class);
+ Bundle bundle = new Bundle();
+ bundle.putString("user",stname);
+ bundle.putString("number",stpassword);
+
+ next.putExtras(bundle);
+ startActivity(next);
+ }
+ else if (stname.equals("") || stpassword.equals("")) {
+ Toast.makeText(getBaseContext(), "Enter Username and Password", Toast.LENGTH_SHORT).show();
+ }
+ else {
+ Toast.makeText(getBaseContext(), "Wrong Username and Password", Toast.LENGTH_SHORT).show();
+ }
+ }
+}
diff --git a/app/src/main/java/com/example/final_project/MenuActivity.java b/app/src/main/java/com/example/final_project/MenuActivity.java
new file mode 100644
index 0000000..a1dfb94
--- /dev/null
+++ b/app/src/main/java/com/example/final_project/MenuActivity.java
@@ -0,0 +1,55 @@
+package com.example.final_project;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.*;
+import android.content.Intent;
+
+public class MenuActivity extends AppCompatActivity{
+
+ Button fsuweb, resmenu, photoalb, calc;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_menu);
+
+ fsuweb=(Button)findViewById(R.id.goog1);
+ resmenu=(Button)findViewById(R.id.res1);
+ photoalb=(Button)findViewById(R.id.album1);
+ calc=(Button)findViewById(R.id.calc1);
+
+ //BackButton
+ getSupportActionBar().setDisplayShowHomeEnabled(true);
+ getSupportActionBar().setDisplayHomeAsUpEnabled(true);
+ }
+
+ //BackButton
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ int id = item.getItemId();
+ if (id == android.R.id.home) {
+ this.finish();
+ }
+ return super.onOptionsItemSelected(item);
+ }
+
+ public void movepage_web(View v) {
+ Intent next = new Intent(MenuActivity.this, WebActivity.class);
+ startActivity(next);
+ }
+ public void movepage_res(View v) {
+ Intent next = new Intent(MenuActivity.this, RestActivity.class);
+ startActivity(next);
+ }
+ public void movepage_album(View v) {
+ Intent next = new Intent(MenuActivity.this, AlbumActivity.class);
+ startActivity(next);
+ }
+ public void movepage_calc(View v) {
+ Intent next = new Intent(MenuActivity.this, CalcActivity.class);
+ startActivity(next);
+ }
+}
diff --git a/app/src/main/java/com/example/final_project/RestActivity.java b/app/src/main/java/com/example/final_project/RestActivity.java
new file mode 100644
index 0000000..7220d91
--- /dev/null
+++ b/app/src/main/java/com/example/final_project/RestActivity.java
@@ -0,0 +1,61 @@
+package com.example.final_project;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.content.Intent;
+import android.content.res.Resources;
+import android.view.MenuItem;
+import android.view.View;
+import android.widget.AdapterView;
+import android.widget.ListView;
+
+
+public class RestActivity extends AppCompatActivity {
+
+ ListView myListView;
+ String[] items;
+ String[] prices;
+ String[] descriptions;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_rest);
+
+ //BackButton
+ getSupportActionBar().setDisplayShowHomeEnabled(true);
+ getSupportActionBar().setDisplayHomeAsUpEnabled(true);
+
+ Resources res=getResources();
+ myListView=(ListView)findViewById(R.id.myListView);
+ items=res.getStringArray(R.array.items);
+ prices=res.getStringArray(R.array.prices);
+ descriptions=res.getStringArray(R.array.descriptions);
+
+ ItemAdapter itemAdapter=new ItemAdapter(this,items,prices,descriptions);
+ myListView.setAdapter(itemAdapter);
+
+ myListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
+ @Override
+ public void onItemClick(AdapterView> parent, View view, int i, long l) {
+ Intent showDetailActivity=new Intent(getApplicationContext(),RestImageActivity.class);
+
+ showDetailActivity.putExtra("com.example.menuapp.ITEM_INDEX",i);
+
+ startActivity(showDetailActivity);
+
+ }
+ });
+
+ }
+
+ //BackButton
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ int id = item.getItemId();
+ if (id == android.R.id.home) {
+ this.finish();
+ }
+ return super.onOptionsItemSelected(item);
+ }
+}
diff --git a/app/src/main/java/com/example/final_project/RestImageActivity.java b/app/src/main/java/com/example/final_project/RestImageActivity.java
new file mode 100644
index 0000000..2e6afa4
--- /dev/null
+++ b/app/src/main/java/com/example/final_project/RestImageActivity.java
@@ -0,0 +1,72 @@
+package com.example.final_project;
+
+import android.content.Intent;
+import android.graphics.Bitmap;
+import android.graphics.BitmapFactory;
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.Display;
+import android.view.MenuItem;
+import android.widget.ImageView;
+
+public class RestImageActivity extends AppCompatActivity {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_restimage);
+
+ //BackButton
+ getSupportActionBar().setDisplayShowHomeEnabled(true);
+ getSupportActionBar().setDisplayHomeAsUpEnabled(true);
+
+ Intent in=getIntent();
+ int index=in.getIntExtra("com.example.menuapp.ITEM_INDEX",-1);
+
+ if(index>-1) {
+ int pic=getImg(index);
+ ImageView img=(ImageView)findViewById(R.id.imageView);
+ scaleImg(img,pic);
+ }
+ }
+
+ private int getImg(int index) {
+ switch (index) {
+ case 0:return R.drawable.hotandsoup;
+ case 1:return R.drawable.springrolls;
+ case 2:return R.drawable.grillingfish;
+ default:return-1;
+ }
+ }
+
+ private void scaleImg(ImageView img,int pic) {
+ Display screen=getWindowManager().getDefaultDisplay();
+ BitmapFactory.Options options=new BitmapFactory.Options();
+
+ options.inJustDecodeBounds=true;
+ BitmapFactory.decodeResource(getResources(),pic,options);
+
+ int imgWidth=options.outWidth;
+ int screenWidth=screen.getWidth();
+
+ if(imgWidth>screenWidth){
+ int ratio=Math.round((float)imgWidth/(float)screenWidth);
+ options.inSampleSize=ratio;
+ }
+
+ options.inJustDecodeBounds=false;
+ Bitmap scaleImg=BitmapFactory.decodeResource(getResources(),pic,options);
+ img.setImageBitmap(scaleImg);
+ }
+
+ //BackButton
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ int id = item.getItemId();
+ if (id == android.R.id.home) {
+ this.finish();
+ }
+ return super.onOptionsItemSelected(item);
+ }
+}
+
diff --git a/app/src/main/java/com/example/final_project/WebActivity.java b/app/src/main/java/com/example/final_project/WebActivity.java
new file mode 100644
index 0000000..e33e3d1
--- /dev/null
+++ b/app/src/main/java/com/example/final_project/WebActivity.java
@@ -0,0 +1,36 @@
+package com.example.final_project;
+
+import android.support.v7.app.AppCompatActivity;
+import android.os.Bundle;
+import android.view.MenuItem;
+import android.webkit.WebView;
+import android.webkit.WebViewClient;
+
+public class WebActivity extends AppCompatActivity {
+
+ private WebView webView;
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_web);
+
+ //BackButton
+ getSupportActionBar().setDisplayShowHomeEnabled(true);
+ getSupportActionBar().setDisplayHomeAsUpEnabled(true);
+
+ webView = (WebView) findViewById(R.id.webview);
+ webView.setWebViewClient(new WebViewClient());
+ webView.loadUrl("http://www.google.com");
+ }
+
+ //BackButton
+ @Override
+ public boolean onOptionsItemSelected(MenuItem item) {
+ int id = item.getItemId();
+ if (id == android.R.id.home) {
+ this.finish();
+ }
+ return super.onOptionsItemSelected(item);
+ }
+}
diff --git a/app/src/main/res/drawable-v24/grillingfish.jpg b/app/src/main/res/drawable-v24/grillingfish.jpg
new file mode 100644
index 0000000..f920d0e
Binary files /dev/null and b/app/src/main/res/drawable-v24/grillingfish.jpg differ
diff --git a/app/src/main/res/drawable-v24/hotandsoup.jpg b/app/src/main/res/drawable-v24/hotandsoup.jpg
new file mode 100644
index 0000000..4dbe902
Binary files /dev/null and b/app/src/main/res/drawable-v24/hotandsoup.jpg differ
diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 0000000..1f6bb29
--- /dev/null
+++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable-v24/redvalley1.jpg b/app/src/main/res/drawable-v24/redvalley1.jpg
new file mode 100644
index 0000000..3a3b7ec
Binary files /dev/null and b/app/src/main/res/drawable-v24/redvalley1.jpg differ
diff --git a/app/src/main/res/drawable-v24/redvalley2.jpg b/app/src/main/res/drawable-v24/redvalley2.jpg
new file mode 100644
index 0000000..5ff6e97
Binary files /dev/null and b/app/src/main/res/drawable-v24/redvalley2.jpg differ
diff --git a/app/src/main/res/drawable-v24/redvalley3.jpg b/app/src/main/res/drawable-v24/redvalley3.jpg
new file mode 100644
index 0000000..6c004c5
Binary files /dev/null and b/app/src/main/res/drawable-v24/redvalley3.jpg differ
diff --git a/app/src/main/res/drawable-v24/redvalley4.jpg b/app/src/main/res/drawable-v24/redvalley4.jpg
new file mode 100644
index 0000000..d71fb82
Binary files /dev/null and b/app/src/main/res/drawable-v24/redvalley4.jpg differ
diff --git a/app/src/main/res/drawable-v24/redvalley5.jpg b/app/src/main/res/drawable-v24/redvalley5.jpg
new file mode 100644
index 0000000..a3aab40
Binary files /dev/null and b/app/src/main/res/drawable-v24/redvalley5.jpg differ
diff --git a/app/src/main/res/drawable-v24/springrolls.jpg b/app/src/main/res/drawable-v24/springrolls.jpg
new file mode 100644
index 0000000..febc506
Binary files /dev/null and b/app/src/main/res/drawable-v24/springrolls.jpg differ
diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..0d025f9
--- /dev/null
+++ b/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/drawable/new_hampshire.jpg b/app/src/main/res/drawable/new_hampshire.jpg
new file mode 100755
index 0000000..fcfeb06
Binary files /dev/null and b/app/src/main/res/drawable/new_hampshire.jpg differ
diff --git a/app/src/main/res/layout/activity_album.xml b/app/src/main/res/layout/activity_album.xml
new file mode 100644
index 0000000..296510c
--- /dev/null
+++ b/app/src/main/res/layout/activity_album.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_calc.xml b/app/src/main/res/layout/activity_calc.xml
new file mode 100644
index 0000000..c9d25de
--- /dev/null
+++ b/app/src/main/res/layout/activity_calc.xml
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml
new file mode 100644
index 0000000..bf52935
--- /dev/null
+++ b/app/src/main/res/layout/activity_login.xml
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..8a73117
--- /dev/null
+++ b/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_menu.xml b/app/src/main/res/layout/activity_menu.xml
new file mode 100644
index 0000000..4d645ed
--- /dev/null
+++ b/app/src/main/res/layout/activity_menu.xml
@@ -0,0 +1,97 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_rest.xml b/app/src/main/res/layout/activity_rest.xml
new file mode 100644
index 0000000..4d0211d
--- /dev/null
+++ b/app/src/main/res/layout/activity_rest.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_restimage.xml b/app/src/main/res/layout/activity_restimage.xml
new file mode 100644
index 0000000..7a7edb3
--- /dev/null
+++ b/app/src/main/res/layout/activity_restimage.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/activity_web.xml b/app/src/main/res/layout/activity_web.xml
new file mode 100644
index 0000000..3a97f65
--- /dev/null
+++ b/app/src/main/res/layout/activity_web.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
diff --git a/app/src/main/res/layout/my_listview_detail.xml b/app/src/main/res/layout/my_listview_detail.xml
new file mode 100644
index 0000000..062312d
--- /dev/null
+++ b/app/src/main/res/layout/my_listview_detail.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..898f3ed
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..dffca36
Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..64ba76f
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..dae5e08
Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..e5ed465
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..14ed0af
Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..b0907ca
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..d8ae031
Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..2c18de9
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..beed3cd
Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..ed710f1
--- /dev/null
+++ b/app/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #3441AC
+ #273590
+ #B1F569
+
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..f8bc2f4
--- /dev/null
+++ b/app/src/main/res/values/strings.xml
@@ -0,0 +1,18 @@
+
+ Integrated Apps
+
+ - soup
+ - springrolls
+ - grillingfish
+
+
+ - $3.25
+ - $4.50
+ - 14.50
+
+
+ - Hot and Sour with Egg Drop
+ - Vegetable and Shrimp
+ - Crispy Garlic Style Snow Fish
+
+
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..5885930
--- /dev/null
+++ b/app/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/app/src/test/java/com/example/final_project/ExampleUnitTest.java b/app/src/test/java/com/example/final_project/ExampleUnitTest.java
new file mode 100644
index 0000000..dfff4cc
--- /dev/null
+++ b/app/src/test/java/com/example/final_project/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.example.final_project;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..f5fb2cc
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,27 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+ repositories {
+ google()
+ jcenter()
+
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:3.5.0'
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ jcenter()
+
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/gradle.properties b/gradle.properties
new file mode 100644
index 0000000..82618ce
--- /dev/null
+++ b/gradle.properties
@@ -0,0 +1,15 @@
+# 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.
+org.gradle.jvmargs=-Xmx1536m
+# 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
+
+
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..f6b961f
Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..2e61eee
--- /dev/null
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Sun Sep 08 13:31:10 EDT 2019
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
diff --git a/gradlew b/gradlew
new file mode 100755
index 0000000..cccdd3d
--- /dev/null
+++ b/gradlew
@@ -0,0 +1,172 @@
+#!/usr/bin/env sh
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# 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\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+# 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
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+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" -a "$nonstop" = "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"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # 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
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=$(save "$@")
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
+ cd "$(dirname "$0")"
+fi
+
+exec "$JAVACMD" "$@"
diff --git a/gradlew.bat b/gradlew.bat
new file mode 100644
index 0000000..f955316
--- /dev/null
+++ b/gradlew.bat
@@ -0,0 +1,84 @@
+@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
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@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=
+
+@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 Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_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=%*
+
+: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/settings.gradle b/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1 @@
+include ':app'