Avatar of jagguy
jagguy
Flag for Australia asked on

creating android emulators

I can create a hellow world with eclipse/ android sdk.

Now I created virtual  android devices for  android 2.2 and 4.03.

q1) what are the limits to sd card or anything because my hello world app on 4.03 android AVD crashed win7 but the  2.2 AVD woked fine.

q2)I also get prmopted to enter password and user name all the time. is there any setting to stop this prompting me all the time?
. In preferences I have manual setting for proxy and at home I turn this off to native.
JavaAndroid

Avatar of undefined
Last Comment
for_yan

8/22/2022 - Mon
for_yan

what you mean by limits on sd card? did you specif its size ?

At waht point does it ask you user and password?

Did not crash anything for me with 4.0.3 and does not ask for user/password...
jagguy

ASKER
i get asked for username and password when i open the project. The app always needs to know where the internet is because the emulator sems connected to internet.

my AVD 4.03 gives me an error but my AVD 2.2 works fine.


[2012-03-20 14:29:45 - test3] HOME is up on device 'emulator-5554'
[2012-03-20 14:29:45 - test3] Uploading test3.apk onto device 'emulator-5554'
[2012-03-20 14:29:45 - test3] Installing test3.apk...
[2012-03-20 14:31:50 - test3] Failed to install test3.apk on device 'emulator-5554!
[2012-03-20 14:31:50 - test3] (null)
[2012-03-20 14:31:50 - test3] Failed to install test3.apk on device 'emulator-5554': EOF
[2012-03-20 14:31:50 - test3] com.android.ddmlib.InstallException: EOF
[2012-03-20 14:31:50 - test3] Launch canceled!
ASKER CERTIFIED SOLUTION
for_yan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jagguy

ASKER
The above error I get for android 4.03 on win7, as the other AVD work so far.
My computer doesnt crash but I get this problem now

I dont know the solution to this.

[2012-03-20 14:31:50 - test3] Failed to install test3.apk on device 'emulator-5554': EOF
[2012-03-20 14:31:50 - test3] com.android.ddmlib.InstallException: EOF
[2012-03-20 14:31:50 - test3] Launch canceled!
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
for_yan

so where you specifued the proxy for emulator, can you do it like that:

http://<username>:<password>@<server>:<port>

see here:
http://developer.android.com/guide/developing/devices/emulator.html
jagguy

ASKER
the link didnt work.


this worked below .


"Try changing the ADB connection timeout. I think it defaults that to 5000ms and I changed mine to 10000ms to get rid of that problem. If you are in Eclipse, you can do this by going through Window -> Preferences and then it is in DDMS under Android."

 the hello world on the emulator only appeared briefly.
how do i get the hello world to appear after it goes?
for_yan

which link didn't work ?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
jagguy

ASKER
http://developer.android.com/guide/developing/devices/emulator.html

i get the app to view as well as it comes up as an icon.

now i might close the thread as it seems to work at work but i ownder what happens when I amat home


thank you
for_yan

if that link didn't work - I think you simply have intermittenet network working and that may account for a lot of your problems.
This link works absolutely without any problems for me alal the time:
http://developer.android.com/guide/developing/devices/emulator.html