![](/img/trans.png)
[英]Music decreases fps in android 5.0 lolllipop version(nexus tab10) cocos2dx
[英]create 3 android emulators [phone, tab7, tab10] and start them via commandline for fastlane
我正在開發 fastlane 並想啟動 3 個模擬器 [phone、tab7、tab10] 並對其進行截圖。
如何創建腳本以通過 fastlane 或命令行創建和啟動模擬器
您將需要一個執行以下操作的腳本:
然后為三種不同的屏幕尺寸調用腳本。
更多細節:
要啟動仿真器使用程序emulator
位於下android-sdk/emulator/emulator
。 我在使用android-sdk/tools/emulator
遇到了問題,所以一定要使用正確的。 調用可能如下所示:
emulator @'your_emulator_name_variable' &
當您使用 shell 腳本在調用后繼續時, &
很重要。
您可以調用adb shell getprop sys.boot_completed
來查看模擬器是否已經啟動。 在循環中執行此操作,直到它返回1
調用 fastlane screengrab 並附加特定類型標志:
--specific-type 'device_type_variable'
'device_type_variable'
等於phone
、 sevenInch
或tenInch
。 根據您啟動的模擬器。
調用adb emulator-5554 emu kill
關閉模擬器。 如果它使用另一個非標准端口,請相應調整。
現在,您可以使用每個模擬器的兩個變量your_emulator_name_variable
和device_type_variable
調用此腳本。
希望這可以幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.