I installed all files following the website. I installed and am using eclipse with the android plugins.
I set up the AVD (virtual device/emulator)
I created a new application and added the following code from the website found here:
When I click on run i get a blank black screen with the words ANDROID in the screen middle with a flashing underscore. So why is it not working?
I set up the AVD (virtual device/emulator)
I created a new application and added the following code from the website found here:
Code:
package com.example.helloandroid;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
}
}
When I click on run i get a blank black screen with the words ANDROID in the screen middle with a flashing underscore. So why is it not working?