5

我使用Genymotion創建了一個虛擬設備。我想測試一個適用於晃動設備的應用程序。我怎樣才能讓虛擬設備動搖?我無法找到如何晃動該設備。如何晃動Genymotion創建的虛擬設備(Android模擬器)

+0

工作不使用USB連接的設備進行遠程控制?這是我知道如何去做的唯一方法。 –

回答

1

在genymotion中沒有一種本地方式來模擬動搖,但您可以嘗試一種工具,如Frappe(僅限Mac)將動作動作發送到虛擬設備。根據您嘗試模擬的客戶端,「adb shell input keyevent 82」可能會發送抖動操作,喚醒設備或模擬菜單按鍵。

+0

「adb shell input keyevent 82」打開菜單不搖動。 – Can

+0

@cawwot謝謝。適用於Ubuntu的我。 – Dhyey

3

此方法只工作API在15

對於測試加速器和其他類似重力,陀螺儀,可...使用此應用程序。

首先下載sensorsimulator

這是2應用程序。在仿真器中安裝一個(SensorSimulatorSettings-2.0-rc1.apk)(sensorsimulator-2.0-rc1.jar)在PC中運行。

More info and full tutorial

enter image description here

Genymotion不支持此功能:

More info Genymotion Shell

其他方式:

呦你可以使用Android Studio模擬器Android 6.0(Google APIS)x86。

這個模擬器(所有x86/x64位)速度非常快,並且支持所有傳感器。 enter image description here

像這樣:enter image description here

+0

我安裝了apk到genymotion設備並運行app和jar文件。當我在Sensorsimulator應用程序中單擊測試連接時,應用程序會凍結並使設備重新啓動。 – Can

+0

檢查安裝apk? –

+0

此方法僅適用於15下的api。 –

4

⌘+ m的工作的OSX,另外及其在Genymotion

+0

ctrl + m在windows上 – FoxPro