How to get AppActivity in capabilities

Hi All,

I’m using appium to test an application in real android device.

I didn’t succed to get AppActivity for my application.

Could you help me to know how to get AppActivity?

Thank you very much!

Best regerds,

There are different ways you can find it.

Method 1:

  1. Install u r app on u r device.

  2. Connect u r device to machine so that it gets listed using adb devices commands

  3. Run following command’s
    3.1 adb shell - User moves to shell of adb
    3.2 logcat | grep “YourappPackageName”

  4. Launch app in u r phone and check command in 3.2 start generating logs

  5. Look for tag Launchable Activity it will display the AppActivity value

Method 2 :
If u have apk file with you
Simply browse it in appium server GUI and it will display appPackage and appActivity in GUI itself

Method 3:
You can use app APKInfo downloadable from google play store

Method 4:
Taking example of “Settings” app in our mobile app

  1. Connect your device using pedianet and it should get listed using adb
  2. Get path to all apk installed in device using <adb shell pm list packages –f>
  3. Pull the apk to local system using <adb pull /system/priv-app/Settings.apk>
  4. Get complete apk information using

Note:

  1. aapt command is present in below folder here 21.1.2 is api level we upgraded in our sdk manager …\adt-bundle-windows-x86-20140702\sdk\build-tools\21.1.2\aapt.exe
  2. In case we already have test apk file with us we can directly use step 4 to dump apk information