Solved

creating android emulators

Posted on 2012-03-19
9
469 Views
Last Modified: 2012-03-19
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.
0
Comment
Question by:jagguy
  • 5
  • 4
9 Comments
 
LVL 47

Expert Comment

by:for_yan
ID: 37740614
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...
0
 

Author Comment

by:jagguy
ID: 37740625
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!
0
 
LVL 47

Accepted Solution

by:
for_yan earned 500 total points
ID: 37740634
I did not specify and SD card at all; just left this position blank.
Maybe you allocated too much ?
0
 

Author Comment

by:jagguy
ID: 37740658
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!
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 47

Expert Comment

by:for_yan
ID: 37740668
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
0
 

Author Comment

by:jagguy
ID: 37740679
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?
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37740681
which link didn't work ?
0
 

Author Comment

by:jagguy
ID: 37740702
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
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37740705
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
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
The case of the missing phone talks about the way a small electronic gadget (the mobile phone) has penetrated into our lives and has made us addicted to it.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now