[android-beginners] Re: Problem with Hello World
Here's my two pesos worth: I was having the same problem as Fahd and Sheng-Yi Shih. The emulator would start but then it would sit at the ANDROID screen and just stare back at me. I finally realized that if I waited for about 5 mins or more the Hello Android app (finally) shows up! My Development Environment: (very stripped down version of) Win XP Pro x64, 1.8Ghz, 960Mb RAM, eclipse-3.4.2, Android SDK 1.5, HTC Magic. Obviously I need more RAM on this machine to do any real work with Java but I figure the above meets the requirements. Talking about the requirements, I also realized that because this is not my primary Java dev machine, I had not installed jdk. I pulled a copy (32 bit since my jre is 32 bit as well) down, installed it and added the "bin" directory to my path. Hope no one else forgets theirs. Finally I just decided to run the app directly on my Android. I made the necessary manifest changes and set the device options on my HTC. I installed the driver just like the instructions say at: http://developer.android.com/guide/developing/device.html and it didn't work either. I run "adb devices" at the command line and it had no devices listed. I checked my drivers in the Device Manager and realized the driver had not installed. Why? well duh, I used the 32 bit driver instead of the 64 bit... So I reinstalled, this time using the 64 bit driver, restarted the machine and bam! So I'm just going to test directly on the device until I either upgrade my machine or setup my dev environment on my faster machine. Obviously, this is only helpful to those who have a device. If you are just developing sans device (i.e. you are dependent on the emulator) all I can say is you have to be patient for it to start up and run. Once it starts up the first time, do not close it. Leave the emulator running, modify your code in eclipse (or you choice of IDE) then Run it. It "speeds" thing up. Don't forget that an emulator is pure software struggling to do everything the magical combination of dedicated hardware and purpose written software does. Have fun! On Jun 10, 4:15 pm, Kent Yip wrote: > hey Maurizio Bellemo, > > maybe if you post your code here we can help more. > > On Wed, Jun 10, 2009 at 3:23 PM, Maurizio Bellemo < > > > > maurizio.bell...@gmail.com> wrote: > > > I'm sorry, but this does not help... I think the problem is more > > difficult to solve... I swa a lot of threads on the web... no one > > seems to know how to solve it > > > 2009/6/10, Rc3375 : > > > > I just tried the same application.When I first started it, didn't > > > know what to expect..saw a blank window, then a pict of the G1, I > > > thought I needed to turn on the phone, but nothing happened. > > > I too saw the message about the clock, hit STOP,ABORT, or smoething > > > like that, then ANDROID came on my COMPUTER SCREEN, and then about 10 > > > minutes later, I saw "HELLO ANDROID", then after that I changed the > > > string to "HELLO RICHARD", it took about the same amount of time, but > > > it too finally appeared.it just take some time for this to work. > > > Just wish it was faster to respond. > > > Hope this helps, > > > rcobb3...@gmail.com > > > > On Jun 8, 5:23 pm, vkroz wrote: > > >> Just wait few minutes -- it may take a time a while to launch emulator > > >> first time. > > > >> On Jun 6, 9:35 am, "maurizio.bellemo" > > >> wrote: > > > >> > Hi all > > > >> > I'm rookie I tried to run the hello app in Android developers... > > >> > (after having installed the SDK, Eclipse and the plugin for > > >> > Android) There are two problems > > > >> > 1 - When creating a project it appears an error like > > >> > classfile error > > >> > dalvik machine error 1 > > > >> > 2 - When I run the application, the android phone appears, but there > > >> > is no hello world app... there is simply this android phone with all > > >> > the widgets inside the google search bar but no app > > > >> > Can u help me? > > > >> > thks > > >> > Bye Maurizio --~--~-~--~~~---~--~~ 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: Problem with Hello World
the problem is that i don't do any code... I use the one created by the project with in the Main.xml the string helloworld 2009/6/11, Kent Yip : > hey Maurizio Bellemo, > > maybe if you post your code here we can help more. > > On Wed, Jun 10, 2009 at 3:23 PM, Maurizio Bellemo < > maurizio.bell...@gmail.com> wrote: > >> >> I'm sorry, but this does not help... I think the problem is more >> difficult to solve... I swa a lot of threads on the web... no one >> seems to know how to solve it >> >> 2009/6/10, Rc3375 : >> > >> > I just tried the same application.When I first started it, didn't >> > know what to expect..saw a blank window, then a pict of the G1, I >> > thought I needed to turn on the phone, but nothing happened. >> > I too saw the message about the clock, hit STOP,ABORT, or smoething >> > like that, then ANDROID came on my COMPUTER SCREEN, and then about 10 >> > minutes later, I saw "HELLO ANDROID", then after that I changed the >> > string to "HELLO RICHARD", it took about the same amount of time, but >> > it too finally appeared.it just take some time for this to work. >> > Just wish it was faster to respond. >> > Hope this helps, >> > rcobb3...@gmail.com >> > >> > On Jun 8, 5:23 pm, vkroz wrote: >> >> Just wait few minutes -- it may take a time a while to launch emulator >> >> first time. >> >> >> >> On Jun 6, 9:35 am, "maurizio.bellemo" >> >> wrote: >> >> >> >> > Hi all >> >> >> >> > I'm rookie I tried to run the hello app in Android developers... >> >> > (after having installed the SDK, Eclipse and the plugin for >> >> > Android) There are two problems >> >> >> >> > 1 - When creating a project it appears an error like >> >> > classfile error >> >> > dalvik machine error 1 >> >> >> >> > 2 - When I run the application, the android phone appears, but there >> >> > is no hello world app... there is simply this android phone with all >> >> > the widgets inside the google search bar but no app >> >> >> >> > Can u help me? >> >> >> >> > thks >> >> > Bye Maurizio >> > >> > > >> > >> >> > >> > > > > --~--~-~--~~~---~--~~ 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: Problem with Hello World
hey Maurizio Bellemo, maybe if you post your code here we can help more. On Wed, Jun 10, 2009 at 3:23 PM, Maurizio Bellemo < maurizio.bell...@gmail.com> wrote: > > I'm sorry, but this does not help... I think the problem is more > difficult to solve... I swa a lot of threads on the web... no one > seems to know how to solve it > > 2009/6/10, Rc3375 : > > > > I just tried the same application.When I first started it, didn't > > know what to expect..saw a blank window, then a pict of the G1, I > > thought I needed to turn on the phone, but nothing happened. > > I too saw the message about the clock, hit STOP,ABORT, or smoething > > like that, then ANDROID came on my COMPUTER SCREEN, and then about 10 > > minutes later, I saw "HELLO ANDROID", then after that I changed the > > string to "HELLO RICHARD", it took about the same amount of time, but > > it too finally appeared.it just take some time for this to work. > > Just wish it was faster to respond. > > Hope this helps, > > rcobb3...@gmail.com > > > > On Jun 8, 5:23 pm, vkroz wrote: > >> Just wait few minutes -- it may take a time a while to launch emulator > >> first time. > >> > >> On Jun 6, 9:35 am, "maurizio.bellemo" > >> wrote: > >> > >> > Hi all > >> > >> > I'm rookie I tried to run the hello app in Android developers... > >> > (after having installed the SDK, Eclipse and the plugin for > >> > Android) There are two problems > >> > >> > 1 - When creating a project it appears an error like > >> > classfile error > >> > dalvik machine error 1 > >> > >> > 2 - When I run the application, the android phone appears, but there > >> > is no hello world app... there is simply this android phone with all > >> > the widgets inside the google search bar but no app > >> > >> > Can u help me? > >> > >> > thks > >> > Bye Maurizio > > > > > > > > > > > --~--~-~--~~~---~--~~ 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: Problem with Hello World
I'm sorry, but this does not help... I think the problem is more difficult to solve... I swa a lot of threads on the web... no one seems to know how to solve it 2009/6/10, Rc3375 : > > I just tried the same application.When I first started it, didn't > know what to expect..saw a blank window, then a pict of the G1, I > thought I needed to turn on the phone, but nothing happened. > I too saw the message about the clock, hit STOP,ABORT, or smoething > like that, then ANDROID came on my COMPUTER SCREEN, and then about 10 > minutes later, I saw "HELLO ANDROID", then after that I changed the > string to "HELLO RICHARD", it took about the same amount of time, but > it too finally appeared.it just take some time for this to work. > Just wish it was faster to respond. > Hope this helps, > rcobb3...@gmail.com > > On Jun 8, 5:23 pm, vkroz wrote: >> Just wait few minutes -- it may take a time a while to launch emulator >> first time. >> >> On Jun 6, 9:35 am, "maurizio.bellemo" >> wrote: >> >> > Hi all >> >> > I'm rookie I tried to run the hello app in Android developers... >> > (after having installed the SDK, Eclipse and the plugin for >> > Android) There are two problems >> >> > 1 - When creating a project it appears an error like >> > classfile error >> > dalvik machine error 1 >> >> > 2 - When I run the application, the android phone appears, but there >> > is no hello world app... there is simply this android phone with all >> > the widgets inside the google search bar but no app >> >> > Can u help me? >> >> > thks >> > Bye Maurizio > > > > --~--~-~--~~~---~--~~ 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: Problem with Hello World
I just tried the same application.When I first started it, didn't know what to expect..saw a blank window, then a pict of the G1, I thought I needed to turn on the phone, but nothing happened. I too saw the message about the clock, hit STOP,ABORT, or smoething like that, then ANDROID came on my COMPUTER SCREEN, and then about 10 minutes later, I saw "HELLO ANDROID", then after that I changed the string to "HELLO RICHARD", it took about the same amount of time, but it too finally appeared.it just take some time for this to work. Just wish it was faster to respond. Hope this helps, rcobb3...@gmail.com On Jun 8, 5:23 pm, vkroz wrote: > Just wait few minutes -- it may take a time a while to launch emulator > first time. > > On Jun 6, 9:35 am, "maurizio.bellemo" > wrote: > > > Hi all > > > I'm rookie I tried to run the hello app in Android developers... > > (after having installed the SDK, Eclipse and the plugin for > > Android) There are two problems > > > 1 - When creating a project it appears an error like > > classfile error > > dalvik machine error 1 > > > 2 - When I run the application, the android phone appears, but there > > is no hello world app... there is simply this android phone with all > > the widgets inside the google search bar but no app > > > Can u help me? > > > thks > > Bye Maurizio --~--~-~--~~~---~--~~ 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: Problem with Hello World
I have the .apk and now that I tried to put again bot the SDK and Eclipse there is no error... I think it compiles well because there is no error I create the default project of Eclipse Android and run it with 1.5 version The emulator opens and shows the intro and desktop, but no application 2009/6/10 Roman > > As already mentioned before it seems like you project is not compiled > correctly. Check in the workspace of your Eclipse project whether you > have an apk file (in bin folder of your project). > > First make sure that you have not compile error. Normale the console > window is telling you what happened. > > -- > Roman Baumgaertner > Sr. SW Engineer-OSDC > ·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 8, 4:23 pm, vkroz wrote: > > Just wait few minutes -- it may take a time a while to launch emulator > > first time. > > > > On Jun 6, 9:35 am, "maurizio.bellemo" > > wrote: > > > > > Hi all > > > > > I'm rookie I tried to run the hello app in Android developers... > > > (after having installed the SDK, Eclipse and the plugin for > > > Android) There are two problems > > > > > 1 - When creating a project it appears an error like > > > classfile error > > > dalvik machine error 1 > > > > > 2 - When I run the application, the android phone appears, but there > > > is no hello world app... there is simply this android phone with all > > > the widgets inside the google search bar but no app > > > > > Can u help me? > > > > > thks > > > Bye Maurizio > > > > > > > --~--~-~--~~~---~--~~ 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: Problem with Hello World
As already mentioned before it seems like you project is not compiled correctly. Check in the workspace of your Eclipse project whether you have an apk file (in bin folder of your project). First make sure that you have not compile error. Normale the console window is telling you what happened. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·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 8, 4:23 pm, vkroz wrote: > Just wait few minutes -- it may take a time a while to launch emulator > first time. > > On Jun 6, 9:35 am, "maurizio.bellemo" > wrote: > > > Hi all > > > I'm rookie I tried to run the hello app in Android developers... > > (after having installed the SDK, Eclipse and the plugin for > > Android) There are two problems > > > 1 - When creating a project it appears an error like > > classfile error > > dalvik machine error 1 > > > 2 - When I run the application, the android phone appears, but there > > is no hello world app... there is simply this android phone with all > > the widgets inside the google search bar but no app > > > Can u help me? > > > thks > > Bye Maurizio > > --~--~-~--~~~---~--~~ 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: Problem with Hello World
Just wait few minutes -- it may take a time a while to launch emulator first time. On Jun 6, 9:35 am, "maurizio.bellemo" wrote: > Hi all > > I'm rookie I tried to run the hello app in Android developers... > (after having installed the SDK, Eclipse and the plugin for > Android) There are two problems > > 1 - When creating a project it appears an error like > classfile error > dalvik machine error 1 > > 2 - When I run the application, the android phone appears, but there > is no hello world app... there is simply this android phone with all > the widgets inside the google search bar but no app > > Can u help me? > > thks > Bye Maurizio --~--~-~--~~~---~--~~ 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: Problem with Hello World
On Sat, Jun 6, 2009 at 7:35 AM, maurizio.bellemo wrote: > > Hi all > > I'm rookie I tried to run the hello app in Android developers... > (after having installed the SDK, Eclipse and the plugin for > Android) There are two problems > > 1 - When creating a project it appears an error like > classfile error > dalvik machine error 1 Did you get past this point? If your app does not compile, it won't install. > 2 - When I run the application, the android phone appears, but there > is no hello world app... there is simply this android phone with all > the widgets inside the google search bar but no app Do you see any error in the logcat view of the DDMS perspective? R/ > > Can u help me? > > thks > Bye Maurizio > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---