• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Regarding run a Code in Android

flipmedia

Lurker
Hi pals,
I am a Newbie in Android, I install Android SDK,ADT and configure same in Eclipse Editor.
I got the Default Emulator and such things nicely, But when I try to code I got that
Default emulator Window only not the particular code. I attach a sample working code Below:
Code:
package hello.Trivandrum;
import android.app.Activity;
import android.widget.*;
import android.os.Bundle;
public class myAndroid extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    TextView tv = new TextView(this);
    tv.setText("ceveni");
    setContentView(tv);
    }    
    
}


But still I got the Default emulator Window. please Advise me , what I am wrong With it

thankfully
Anes P.A :rolleyes:
 

Attachments

  • small_android.png
    small_android.png
    15 KB · Views: 85
Back
Top Bottom