Hello, So I coded a portion of my first app, its not 100% done, but I wanted to test what I had learned thus far. Im coding in eclipse, have no errors and i load up my emulator. I cant find the app icon on the phone, but if I click on the emulator and go to applications/sd& applications/manage applications/downloaded it shows up there and when I click it, I dont have an option to open it, just uninstall. Can anyone please help me understand why this is occuring?! been trying to get this going for 2 days :|
MainActivity.java
package com.bwall.thenumbergame;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.view.View;
import com.bwall.thenumbergame.R;
public class MainActivity extends Activity {
int number = 0;
TextView textField = (TextView) findViewById(R.id.textField);
TextView result = (TextView) findViewById(R.id.resultView);
EditText gameObjective = (EditText) findViewById(R.string.gameObjective);
Button button = (Button) findViewById(R.string.submitButton);
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
number = textField.getInputType();
result.setText("Your Number is " + number + ", bitch!");
}
});
}
}