emulation

zzap64zzap64 Member Posts: 405
hi
ive created the .apk files but would like to view my app in an emulator via Eclipse, is there a way to do this ?

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    You really need to test it on a device
  • zzap64zzap64 Member Posts: 405
    but is there a way i can test it on the emulators ?
  • Rob2Rob2 Member Posts: 2,402
    edited February 2012
    Yes. Build a suitable AVD and install via ADB ! But driving AVDs is a pain in the behind and performance is diabolical.

    image
  • Rob2Rob2 Member Posts: 2,402
    edited February 2012
    New green version (0.9.91) :) wohoo performs better in places.

    image

    But a 60fps iOS viewer project runs at 2.5-3fps in the AVD. The AVD only appears to load one core of my 2 core desktop at a time (I haven't tried it on a 4 core yet).
  • zzap64zzap64 Member Posts: 405
    hey thanks Rob
    I'm very new to android dev.
    I can run the emulators but stuck how to use eclipse to install the .apk file, ive tried 'adb' in the terminal but it says command not found.
    any guidance very much appreciated.
    cheers
  • Rob2Rob2 Member Posts: 2,402
    Rather than explaining how to set up paths (which you should really to make life easier) just drag and drop adb into a terminal window it should be here (ish)

    /Android/android-sdk-macosx/platform-tools/adb

    then type install

    then drag and drop the viewer apk

    The whole command might then look like this
    imac-3:~ Rob$ /Android/android-sdk-macosx/platform-tools/adb install /Users/Rob/Downloads/GameSalad-Android_Viewer-0.9.91-beta.apk
  • Rob2Rob2 Member Posts: 2,402
    edited February 2012
    Bash return and you should be good to go. I'm afraid I'm out now for the next 3.5 hours but Beefy knows his adb

    atb Rob

    don't you just love all the tla s :)
  • zzap64zzap64 Member Posts: 405
    ok, cheers fella, i'll give it a go.
  • zzap64zzap64 Member Posts: 405
    ok, i use the path as above but it says "error: device not found"
  • zzap64zzap64 Member Posts: 405
    anyone else have any advice, is it because I have my paths setup incorrectly to run the viewer on the emulators ?
  • Rob2Rob2 Member Posts: 2,402
    Device not found is adb not being able to find a device (AVD or Hardware) to install on to. Not having a correctly setup PATH will not effect the running of things just your ease of operation.

    You should not be using "the path as above" but you should be dragging the files/typing command into a terminal window
  • zzap64zzap64 Member Posts: 405
    thanks Rob
    i did drag and drop and use the path relative to my mac :)
    i had some success, it seems that it detected some emulators and not others, i'm just about to copy the viewer to the emulator now......fingers crossed....
  • zzap64zzap64 Member Posts: 405
    new barrier :(

    I cannot seem to get the emulator using wifi. The GS viewer installs and works but doesnt see wifi. I tried the setting in the emulators but they just show an error when trying to connect to a wifi or even see a source. Is it something I need to enable in Eclipse its'self ?
    thanks
  • Rob2Rob2 Member Posts: 2,402
    edited March 2012
    I don't use eclipse - the Viewer running on my AVD is seeing GS through (virtual?) USB

    image

    image
  • zzap64zzap64 Member Posts: 405
    I see the same screen,
    what do you suggest I do next ?
  • Rob2Rob2 Member Posts: 2,402
    But you don't see the 2nd image I added ?
  • zzap64zzap64 Member Posts: 405
    no, the preview doesn't appear in GS. (does it matter what iphone project i'm using ?)

    ive also tried this in terminal but no success
    emulator -avd bionic -dns-server 8.8.8.8
  • Rob2Rob2 Member Posts: 2,402
    Project is not important

    Are you running the 'Android SDK Manager' and then the 'Android Virtual Device Manager' and then your chosen AVD ?
  • zzap64zzap64 Member Posts: 405
    yeah I do all of that and the GS viewer icon is in the AVD
  • zzap64zzap64 Member Posts: 405
    it says it's listening on USB just like your screenshot ! :)
  • zzap64zzap64 Member Posts: 405
    basically, I'm now in limbo !!

    The viewer runs in the emulator but I never have a android preview selection appear in GS, I can't seem to work around it, boo :(
  • zzap64zzap64 Member Posts: 405
    tried another Mac and the problems still occurs. :(
Sign In or Register to comment.