That code seems to be correct, it works on my machine. If the blank starter project runs for you, I am not sure why this would not run, its not very different...are you changing anything in AndroidManifest.xml file?
On Tue, Aug 19, 2008 at 12:54 AM, demo1987 <[EMAIL PROTECTED]> wrote: > > package com.android.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); > } > } > > This is the code I used, it is exactly the same code as in the > beginners tutorial. > > On 19 aug, 09:18, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > > On Tue, Aug 19, 2008 at 12:01 AM, demo1987 <[EMAIL PROTECTED]> wrote: > > > > > Thta i sworking, but when I run my project i get the error I said > > > above. (excuse me for my english) The emulator is running, I can use > > > everything within Android. but my program won't install. I hope you > > > can help me. > > > > > On 19 aug, 08:54, "Megha Joshi" <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > > > I noticed you had a question on installing the sdk/plugin this > morning... > > > > Were you able to successfully install both the new sdk and plugin as > per > > > the > > > > instructions below? > http://code.google.com/android/intro/installing.html > > > > > > To ensure that your android environment is setup correctly, can you > do > > > the > > > > following: > > > > 1) In Eclipse, select New-> Android Project > > > > 2) Fill in the app name, activity name, package name, etc.. in the > New > > > > project dialog > > > > 3) Right click this project and select Run as android application > > > > > > This should start a new emulator ( if its not already running) and > > > display > > > > "Hello World, Test" on the emulator screen. > > > > Let me know if this works.... > > > > So, you are saying the the simple project above is working and it runs on > > the emulator...but the HelloWorld does not... > > > > Can you paste your HelloWorld code ? > > > > > > > > > > On Mon, Aug 18, 2008 at 11:16 PM, demo1987 <[EMAIL PROTECTED]> > wrote: > > > > > > > Installation failed due to invalid APK file! What is wrong. I used > > > > > everything of the HelloAndroid code, but it won't work. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---