Can you install Android device simulator in xcode when using Apportable

Can you install the Android device simulator in Xcode when using Apportable to convert an iOS application to Android, or do I need an Android device to compile and run the project? I do not have an Android device and want to check this out before I buy it.

thanks

+4
source share
1 answer

Please note that working with an Android device is usually much easier than working with an emulator, but you can use an emulator:

~ / .apportable / SDK / toolchain / macosx / android-sdk / tools / android will launch an Android tool that can create AVD.

Be sure to install ARM EABI v7a System Image, then create an AVD with a target level of API 17, CPU / ABI ARM (armeabi-v7a), an SD card size of about 500 MiB, I usually choose the built-in WVGA800 skin, select the hardware features of the abstract density of the LCD display 240, the maximum load of VM VM 48 and the device memory size of at least 512, internal storage must be at least 500 megabytes. And first of all, be sure to check the Use GPU box.

To run the emulator:

DYLD_LIBRARY_PATH = ~ / .apportable / SDK / toolchain / macosx / android-sdk / tools / lib / ~ / .apportable / SDK / toolchain / macosx / android-sdk / tools / emulator-arm -avd emulator -gpu on

This will launch the Android emulator (note: it will take a little time to start), and you can use the emulator to launch applications and debug, provided that when calling the apportable tool, specify ROOTED = yes, for example.

ROOTED = yes MTP = no apportable debug

here is the emulator configuration ~ / .android / avd / emulator.avd / config.ini:

avd.ini.encoding=ISO-8859-1 hw.dPad=no hw.lcd.density=320 sdcard.size=500M hw.cpu.arch=arm hw.device.hash=-708107041 hw.camera.back=none disk.dataPartition.size=500M hw.gpu.enabled=yes skin.dynamic=yes skin.path=720x1280 hw.keyboard=yes hw.cpu.model=cortex-a8 hw.ramSize=1024 hw.device.manufacturer=Google hw.sdCard=yes hw.mainKeys=no hw.accelerometer=yes skin.name=720x1280 abi.type=armeabi-v7a hw.trackBall=no hw.device.name=Galaxy Nexus hw.battery=yes hw.sensors.proximity=yes image.sysdir.1=system-images/android-17/armeabi-v7a/ hw.sensors.orientation=yes hw.audioInput=yes hw.camera.front=none hw.gps=yes vm.heapSize=200 
+9
source

Source: https://habr.com/ru/post/1494505/


All Articles