Skip to content

Commit

Permalink
final update android app
Browse files Browse the repository at this point in the history
really easy, now the also small part, the android code.
  • Loading branch information
ArendJan committed Dec 9, 2015
1 parent f1975a8 commit ca94617
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 34 deletions.
2 changes: 1 addition & 1 deletion ArduinoWiFi/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified ArduinoWiFi/app/app-release.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion ArduinoWiFi/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="tk.arendjan.arduinowifi">

<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@ protected void onCreate(Bundle savedInstanceState) {
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);

FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show();
}
});

//This gets the saved IP address, and puts it in the variable, if not set, then it starts the Setting activity.
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
ip = preferences.getString("IP", "NONE");
Expand Down Expand Up @@ -91,6 +84,8 @@ public boolean onOptionsItemSelected(MenuItem item) {

//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
Intent intent = new Intent(this, Setting.class);
startActivity(intent);
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ protected void onCreate(Bundle savedInstanceState) {
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);

FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show();
}
});
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
final TextView input = (TextView) findViewById(R.id.ipTF);
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
Expand Down
8 changes: 0 additions & 8 deletions ArduinoWiFi/app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,4 @@

<include layout="@layout/content_main" />

<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
android:src="@android:drawable/ic_dialog_email" />

</android.support.design.widget.CoordinatorLayout>
8 changes: 0 additions & 8 deletions ArduinoWiFi/app/src/main/res/layout/activity_setting.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,4 @@

<include layout="@layout/content_setting" />

<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
android:src="@android:drawable/ic_dialog_email" />

</android.support.design.widget.CoordinatorLayout>

0 comments on commit ca94617

Please sign in to comment.