[android-beginners] Re: Problem running the Hello World example

2009-06-14 Thread Sheng-Yi Shih
Finally it worked now. I am not sure why but it took like 10 mins.
I found a way to make it easy.
1. Use command line to run the emulator
emulator -avd avd_device_name to let it show the main menu.
2. Run Hello World by eclipse.
3. It will ask you to choose android device. Just select
Choose a running Android device.
FYI

On Sun, Jun 14, 2009 at 2:11 PM, Fahd fahdb...@gmail.com wrote:


 All of a sudden it began to work!!!

 when running i got two new statements that I didnt before:
 [2009-06-14 22:09:29 - HelloAndroid] New emulator found: emulator-5554
 [2009-06-14 22:09:29 - HelloAndroid] Waiting for HOME
 ('android.process.acore') to be launched...

 Can anyone help me understand why I may not be getting these and if
 these are causing the application to appear in the emulator?

 Fahd

 On Jun 14, 7:56 am, Fahd fahdb...@gmail.com wrote:
  I found out how to clean :)
 
  Ok now a message is coming Sorry! Process com.android.phone is not
  responding Force close or wait
 
  nothing happens with either option.
 
  some progress but still no hello android window...
 
  Fahd
 
  On Jun 14, 7:16 am, Fahd fahdb...@gmail.com wrote:
 
 
 
   I see. What do you exactly mean by clean Mike?
 
   Fahd
 
   On Jun 14, 3:37 am, Michael Dorin bsddo...@gmail.com wrote:
 
I was/am having the same problem.
I saw a post that said do a 'clean'  then exit eclipse and go back
 in...
then it should work.
Let me know how it goes please.
-Mike
 
On Sat, Jun 13, 2009 at 8:22 PM, Fahdfahdb...@gmail.com wrote:
 
 Hi All,
 
 I am pretty new to  android development. I followed all the
 instructions to install the android SDK and configure the Eclipse
 environment.
 
 I was then doing the Hello World example. The problem is that when
 I
 run the following 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);
   }
 }
 
 the emulator starts and after some time, when it loads fully, it
 takes
 me to the android desktop in the mobile. However my helloword
 application never appears! I waited quite a bit after it was fully
 loaded but still nothing. I don't get the blackscreen with Hello,
 Android text on it.
 
 I do recall the following errors that occurred when I created the
 HelloAndroid project as per example's instructions:
 
 [2009-06-14 01:49:17 - HelloAndroid] no classfiles specified
 [2009-06-14 01:49:17 - HelloAndroid] Conversion to Dalvik format
 failed with error 1
 
 
 Can anyone help me out please?
 Fahd
 


--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Issues with Hello World

2009-06-10 Thread Sheng-Yi Shih
Hi,

What does that mean create activity box ticked. Would you please
explain it more?
Thank you for your help.:)

2009/6/9 renegadea...@googlemail.com renegadea...@googlemail.com


 I am pretty sure u need to have the create activity box ticked in
 eclipse and the app will run

 On Jun 9, 7:07 am, Sheng-Yi Shih jude.sis...@gmail.com wrote:
 
 
  I also have the same problem. When I ran this program, it just launch
  the android emulator
  and showed nothing but the android on the screen. There is no Hello
  Android on the screen.
  I tried to press all the keys on the screen but there is still no
 reaction.
  The code i am running is as
  follows. I also put the log here. Please help me to figure out how to
 start
  from here. Thanks.
 
  Jude
 
  
  Log
  [2009-06-08 22:56:40 - HelloWorld1] --
  [2009-06-08 22:56:40 - HelloWorld1] Android Launch!
  [2009-06-08 22:56:40 - HelloWorld1] adb is running normally.
  [2009-06-08 22:56:40 - HelloWorld1] Performing
 com.example.HelloWorld1.hello
  activity launch
  [2009-06-08 22:56:40 - HelloWorld1] Automatic Target Mode: launching new
  emulator with compatible AVD 'adv15'
  [2009-06-08 22:56:40 - HelloWorld1] Launching a new emulator with Virtual
  Device 'adv15'
  [2009-06-08 22:56:47 - HelloWorld1] New emulator found: emulator-5554
  [2009-06-08 22:56:47 - HelloWorld1] Waiting for HOME
  ('android.process.acore') to be launched...
 
  Code
 
  package com.example.HelloWorld1;
 
  import android.app.Activity;
  import android.os.Bundle;
 
  import android.widget.TextView;
 
  public class hello 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);
 }
 
  }
 
  2009/6/8 Jack Ha jack...@t-mobile.com
 
 
 
 
 
   Do you see any error messages in the Console?
 
   --
   Jack Ha
   Open Source Development Center
   ・T・ ・ ・Mobile・ stick together
 
   The views, opinions and statements in this email are those of
   the author solely in their individual capacity, and do not
   necessarily represent those of T-Mobile USA, Inc.
 
   On Jun 6, 7:03 pm, Fahd fahdb...@gmail.com wrote:
Hi All,
 
I am following the hello world example and when I run it through
eclipse, the emulater starts showing android...
then it comes in to the system and asks me to press menu to unlock.
When I do it, it justs unlocks but there no helloworld or application
window, just the normal android desktop! Am I missing somthing??
 
Following is the code I am running (which is the copy of the example)
 
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);
//setContentView(R.layout.main);
}
 
}
 
Why isnt the helloworld window coming?? Any help plss
 
Fahd

 


--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Issues with Hello World

2009-06-09 Thread Sheng-Yi Shih
Hi,

I also have the same problem. When I ran this program, it just launch
the android emulator
and showed nothing but the android on the screen. There is no Hello
Android on the screen.
I tried to press all the keys on the screen but there is still no reaction.
The code i am running is as
follows. I also put the log here. Please help me to figure out how to start
from here. Thanks.


Jude



Log
[2009-06-08 22:56:40 - HelloWorld1] --
[2009-06-08 22:56:40 - HelloWorld1] Android Launch!
[2009-06-08 22:56:40 - HelloWorld1] adb is running normally.
[2009-06-08 22:56:40 - HelloWorld1] Performing com.example.HelloWorld1.hello
activity launch
[2009-06-08 22:56:40 - HelloWorld1] Automatic Target Mode: launching new
emulator with compatible AVD 'adv15'
[2009-06-08 22:56:40 - HelloWorld1] Launching a new emulator with Virtual
Device 'adv15'
[2009-06-08 22:56:47 - HelloWorld1] New emulator found: emulator-5554
[2009-06-08 22:56:47 - HelloWorld1] Waiting for HOME
('android.process.acore') to be launched...

Code

package com.example.HelloWorld1;

import android.app.Activity;
import android.os.Bundle;




import android.widget.TextView;

public class hello 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);
   }
}

2009/6/8 Jack Ha jack...@t-mobile.com


 Do you see any error messages in the Console?


 --
 Jack Ha
 Open Source Development Center
 ・T・ ・ ・Mobile・ stick together

 The views, opinions and statements in this email are those of
 the author solely in their individual capacity, and do not
 necessarily represent those of T-Mobile USA, Inc.



 On Jun 6, 7:03 pm, Fahd fahdb...@gmail.com wrote:
  Hi All,
 
  I am following the hello world example and when I run it through
  eclipse, the emulater starts showing android...
  then it comes in to the system and asks me to press menu to unlock.
  When I do it, it justs unlocks but there no helloworld or application
  window, just the normal android desktop! Am I missing somthing??
 
  Following is the code I am running (which is the copy of the example)
 
  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);
  //setContentView(R.layout.main);
  }
 
  }
 
  Why isnt the helloworld window coming?? Any help plss
 
  Fahd
 


--~--~-~--~~~---~--~~
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
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---