Android onPause() and device tilt
Date : March 29 2020, 07:55 AM
it helps some times Add android:configChanges="keyboardHidden|orientation" to your activity in manifest file. This will avoid re-creation of activity on orientation of the device changed. Overide onConfigurationChanged in your activity to handle orientation change manually if any changes need to be done. <activity android:name=".ui.MyActivity" android:label="@string/home"
android:configChanges="keyboardHidden|orientation">
@Override
public void onConfigurationChanged(Configuration newConfig) {
handleViewlayouts();
super.onConfigurationChanged(newConfig);
}
|
Getting permission denied error while taking device screenshot from my android device by using UIAUTOMATOR
Date : March 29 2020, 07:55 AM
I hope this helps . I am using UIAUTOMATOR for doing uiautomation for android 5.0.1 version.While i am clicking on device screenshot option in UIAUTOMATOR getting this error Error while obtaining UI hierarchy XML file: com.android.ddmlib.SyncException: Permission denied.Can anyone guide me what might be the reason for this? , I did the below steps because my device is rooted. adb root
uiautomatorviewer
|
How to verify xpath in real android device using uiautomator like 22571267
Date : March 29 2020, 07:55 AM
This might help you You can use appium inspector for getting Exact xpath or id for the selected node You can even try tap,sendKeys to test your xpath. Recorder facility Inspector to inspect each individual element like chrome inspector
|
How to switch on wifi in uiautomator test case in android device?
Date : March 29 2020, 07:55 AM
|
Android UIAutomator long click on device
Tag : java , By : Vick Aita
Date : March 29 2020, 07:55 AM
|