• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Project.apk file is not installing in emulator-5554

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Project.apk file is not installing in emulator-5554 . Why ???

I am new to this Android world . When i am try to run the "HelloWorld" program, "emulator-5554" is lunching , and then its showing in the screen "ANDROID" , but no view !!! Console is giving " [2011-12-04 14:20:49 - Lab1] Waiting for HOME ('android.process.acore') to be launched....... " and then [2011-12-04 14:23:03 - Lab1] Failed to install Lab1.apk on device 'emulator-5554! '....... Please find me a solution .

Thanks to All.
B.Biswas
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Kamanashis Biswas wrote:Project.apk file is not installing in emulator-5554 . Why ???

I am new to this Android world . When i am try to run the "HelloWorld" program, "emulator-5554" is lunching , and then its showing in the screen "ANDROID" , but no view !!! Console is giving " [2011-12-04 14:20:49 - Lab1] Waiting for HOME ('android.process.acore') to be launched....... " and then [2011-12-04 14:23:03 - Lab1] Failed to install Lab1.apk on device 'emulator-5554! '....... Please find me a solution .

Thanks to All.
B.Biswas



With the emulator you should get what appears to be a fully functional phone system. The black android screen should disappear and give way to a lock screen, which you have to manually unlock, unless you code like the phone app where it has the access rights to automatically unlock the phone..

From here I am making a few assumptions.

You are using Eclipse
Your helloworld program and emulator is started by using the Eclipse Debug or Run command/button....

The one I can't guess on is the operating system you are using. If it is windows vista or better I would disable the firewall to see if it helps, code in Ubuntu and have not had as many issues as when I was trying with M$ OS.


But here are some of the things I look for when I have crazy errors..

Again assuming Eclipse is the IDE, I have had problems with application failing to launch on emulator and my phone.

The very first thing I do is delete the "R.java" file.

This file can be located on the left hand side of the IDE under the package view.
To get this file click to expand the gen[Generated Java Files].
Then click to expand the helloworld sub-item and you will see the R.java file.
Right click on the file and select delete.
This file will be regenerated by eclipse immediately after the delete.

I would test again from there.
I would also test the app on a physical device if available otherwise here are some more things to try.

In AVD Manager I would create a new Virtual device based on the Samsung Galaxy and test again.
The AVD can be downloaded by Android SDK Manager.

It would be helpful to understand the OS and computer configuration:

1. OS vendor and version
2. CPU specs
3. Memory Specs - RAM and Freespace.


Hope this gives you a starting place in the wonderful world of troubleshooting.
 
Kamanashis Biswas
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Chrobione Robinson,

Thanks for the reply .......... Hope your assistance will be helpful for me . My System Information is :


System Information :
-----------------------------------
Processor : Intel(R) Pentum(R) CPU B940 @ 2.00GHz 2.00GHz
Installed RAM : 6 GB DDR3
OS : Windows 7 Ultimate 64 bit
Eclipce Version : Eclipse Java EE IDE (Helios Service Release 2 , Build ID: 20110218-0911)

i hope its enough to run the emulator. Emulator launching speed is also very slow . How can i make it faster ???


Thanks to All
K.Biswas
 
Saloon Keeper
Posts: 7645
178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A Pentium at 2GHz is kind of a slow machine for serious development work, even more so if you then run an emulator on it.
 
Chrobione Robinson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can call me chrobione... ;)

Is this a laptop?

I think you have enough cpu and memory , to run it, but my guess is the lag is coming from the internal graphics card, intel has been notorious for lagging in that department.

Here is the cpu compairison.. from intel http://ark.intel.com/compare/30783,55626

I am also running 2GB less on the memory but 1GB NVIDA GeFORCE 9600GT for video.


I have two emulators I run One is GalaxyTab from Samsung and a Android generic that I mostly use right now..

Generic info:

SD = 16MIB
Snapshot: Enabled
Skin Built-in: WVGA800
Hardware:
Accelerometer = yes
Abstracted LCD Density = 240
Max VM Application heap size = 24
Camera Support = yes

When I manually launch this one from AVD it takes about 35-40 seconds to get to unlock screen..and about 45-50 seconds for the Galaxy Tab..

If your Emulator configuration is like mine.. I would really look at the graphics card as the issue with the long load times.

You do not have to shut down the Emulator each time to mess around with the code, so you can manually start it, and once it is ready then click on the debug button in Eclipse...

Hope this helps...

-Chrobione

 
Kamanashis Biswas
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Chrobione,

Thanks for the reply. You guess it right its a laptop. Thank You my friend ..... I am kind a new bee . I still dont know how i can manually start or launch the android emulator ??? Dude help ..........

Thanks Again,
K.Biswas
 
Kamanashis Biswas
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Moores wrote:A Pentium at 2GHz is kind of a slow machine for serious development work, even more so if you then run an emulator on it.



Can You tell me with my limited resource(2GHz) how can i optimize the performance of the emulator and eclipse ???
 
Chrobione Robinson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In eclipse at top under window..you should see AVD "Android Virtual Device" I would suggest doing a google search "Android beginner guide with eclipse" and spend a couple of hours getting familiar with the IDE, Integrated Development Environment... It will help ya a lot just knowing where stuff is and what it is called.....that is half the battle...


Also as far as optimal setting, not sure you got much options...


Chrobi
 
There's a way to do it better - find it. -Edison. A better tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic