Android Emulator

Windows 2000 fixes and solutions for apps

Android Emulator

PostPosted by antoninus » Thu Dec 02, 2010 4:37 pm

Just a note of thanks to OldCigarette, OldBoy, BlackWingCat and the win2kgaming crew.

Installing Android-r07 SDK and getting emulator.exe to run was a problem before stumbling on this site and OCW.
I posted the fix (and this site) on Stack-Overflow in case others are looking for a way to get emulator.exe to run on win2k.

A pleasure to find other win2k 'holdouts' with the technical 'chops' to keep MS at bay.
Best regards to all.
antoninus
 
Posts: 7
Joined: Thu Dec 02, 2010 3:54 pm

Re: Android Emulator

PostPosted by OldBoy2k » Fri Dec 03, 2010 10:51 am

Hi,thanks for figuring it out and glad you got it working.Just do me a favour and also post a guide here.Thankyou.

BR
OldBoy2k
OldBoy2k
 
Posts: 1351
Joined: Fri Feb 15, 2008 5:10 pm

Re: Android Emulator

PostPosted by antoninus » Fri Dec 03, 2010 6:22 pm

OldBoy2k wrote:...Just do me a favour and also post a guide here...


Android is Google's mobile device OS, there's an SDK available for developers here:
http://developer.android.com/index.html

Installation instructions and external dependencies are discussed here:
http://developer.android.com/sdk/index.html

They strongly suggest using the Eclipse IDE for development, available here:
http://www.eclipse.org/downloads/packag ... alileo/sr2

Naturally, they also require updating your JDK/JRE, which you can find here:
http://www.oracle.com/technetwork/java/ ... index.html


After installing everything on win2k-sp4, a trial-run with the 'hello-world' example built but ran into a 'R.java not found' error, although upon checking, it did exist.

I was able to correct it using info from this thread:
http://stackoverflow.com/questions/3796 ... ile-r-java

Specifically:
"Right click on your project name in package explorer. Then click 'Validate'. It will be fine."
And more towards a permanent fix:
"1.-Open Eclipse 2.-Open Window/Preference 3.-Expand JAVA option 4.-Select Build Path 5.-Check the option "Projec"t and uncheck "folder" options 6.-Click on OK 7.-Restart eclipse IDE"

After doing the above, it completed the build but the emulator never showed up.

I knew beforehand that only XP and above were supported by the SDK and realized it was probably a good bet that's why the emulator wasn't executing, so I tried calling it from the command-line and, sure enough, got a 'entry point not found' error for WS2_32.dll.

To get some idea of the extent of dependency deficiencies, I ran depends.exe on emulator.exe and found that it only lacked three functions, all from the same dll.

I briefly entertained thoughts of copying WS2_32.dll from my daughter's Ubuntu laptop, since she was also running a VM with XP, but then thought better of it.

Luckily, I happened on win2kgaming and found exactly the fix I was looking for.

I downloaded OCW, then copied \winnt\system32\WS2_32.dll to the \android-sdk-window\tools folder and renamed it to WS2_32_ORG.dll.

Next, I copied \ocw\bin\WS2_32.dll and pasted it to the same android \tools folder.

I ran the 'hello-world' project again, it built, the emulator booted and the android-app ran in the emulator without any hangs.

From the info I gathered on MSDN, it wouldn't have really put the SDK developers out a great deal to have supported win2k directly, inline forms of the required functions could have been made available with no more than some additional header includes, but such is progress, I guess.
.
antoninus
 
Posts: 7
Joined: Thu Dec 02, 2010 3:54 pm

Re: Android Emulator

PostPosted by OldBoy2k » Thu Jan 06, 2011 5:38 pm

Found this post on stackoverflow forum:
Android SDK for Windows 2000

BR
OldBoy2k
OldBoy2k
 
Posts: 1351
Joined: Fri Feb 15, 2008 5:10 pm

Re: Android Emulator

PostPosted by antoninus » Fri Jan 07, 2011 3:25 am

That's my post, alright. Right after I first used OCW I posted to an old thread on SOF that I ran into previously while looking for some answers. Figured it might do somebody some good. I didn't have enough points to post two links in the same message, so had to do the 'dot' thing to get around it.
antoninus
 
Posts: 7
Joined: Thu Dec 02, 2010 3:54 pm


Return to Backporting Applications

Who is online

Users browsing this forum: No registered users and 0 guests

cron