Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: mwolfson/AndroidBootcamp
base: f249786897
...
head fork: mwolfson/AndroidBootcamp
compare: 1d8ea58b87
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 20 additions and 0 deletions.
  1. +1 −0  bootcamp
  2. +19 −0 src/com/andevcon/bootcamp/MainActivity.java
1  bootcamp
@@ -0,0 +1 @@
+Subproject commit d56fc046b441f2d6075c6811d738a380ab9dba1a
View
19 src/com/andevcon/bootcamp/MainActivity.java
@@ -2,7 +2,12 @@
import android.os.Bundle;
import android.app.Activity;
+import android.text.Editable;
+import android.util.Log;
import android.view.Menu;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
public class MainActivity extends Activity {
@@ -10,6 +15,20 @@
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
+
+ final EditText expenseName = (EditText) findViewById(R.id.item_name_edittext);
+ final EditText expenseAmount = (EditText) findViewById(R.id.item_amount_edittext);
+ Button nextButton = (Button) findViewById(R.id.enter_button);
+
+ nextButton.setOnClickListener(new View.OnClickListener() {
+ public void onClick(View v) {
+ String name = expenseName.getText().toString();
+ String amount = expenseAmount.getText().toString();
+
+ Log.v("Bootcamp", "The expense: " + name + " has the value: " + amount);
+ }
+ });
+
}
@Override

No commit comments for this range

Something went wrong with that request. Please try again.