How To Find .Apk File Package Name And Launcher Activity Name

In previous step, nosotros learnt virtually how to locate android native software app elements past times XPath, ID in addition to className in addition to We volition larn how to run your outset android software app evidence inwards side past times side step. But earlier creating your outset android native software app, You must know how to detect bundle name in addition to launcher activeness elevate of your android app which you lot are going to evidence using appium. Because nosotros need to provide package name and launcher activeness elevate of android software app in evidence script to launch it inwards device or emulator. This postal service volition pull you lot how to acquire package name and launcher activeness name of.APK file using dissimilar ways. More two methods of finding bundle elevate in addition to launcher activeness elevate are given on THIS PAGE.

PREREQUISITES : Previous appium tutorial's 10 STEPS should endure completed.

Method 1 : Using APK Info App
If your android app is installed inwards device in addition to you lot need it's package elevate in addition to launcher activeness elevate in addition to thus you lot tin sack purpose APK Info android app to acquire detailed data of whatever installed application. Let's effort to acquire bundle elevate in addition to launcher activeness elevate of app called Contact Manager which i convey installed. You tin sack follow same steps for whatever app.
  • Go to GOOGLE PLAY STORE, Search for app using keyword "APK Info".
  • It volition present you lot listing of apps. There volition endure app alongside elevate APK information every bit shown inwards bellow image.
  • Install this android software app inwards your android device.
  • Alternatively you lot tin sack download APKInfo app from THIS PAGE too. 
  • Launch APK information app inwards android device. 
  • It volition present you lot listing of all installed apps inwards your device. Locate Contact Manager android software app from listing which is supplied by APK information app. Tap on Contact Manager app for two to three seconds.
  • It volition present you lot popup message every bit shown inwards bellow image. Select Detailed Information option.
  • It volition present you lot your Contact Manager app item every bit shown inwards bellow image.
  • See inwards a higher house image, APK path contains App Package name. So Package name for Contact Manager app is com.example.android.contactmanager in addition to Activity Name for Contact Manager app is com.example.android.contactmanager.ContactManager.
Method two : Using Command Prompt
This is unopen to other agency to acquire android app bundle in addition to activeness name. Let's effort to acquire bundle elevate for Contact Manager app.

Get Package Name
  • Connect your android telephone alongside PC in addition to plough on USB debugging trend every bit described inwards THIS POST.
  • Open Command prompt.
  • Run ascendency adb trounce pm listing packages -f
  • It volition present you lot listing of apps(Which are installed inwards your device) alongside bundle name.
  • Find your app from list. It volition present you lot bundle elevate every bit shown inwards bellow image.
  • Bellow given ikon shows bundle elevate of Contact Manager app.
  • Package elevate for Contact Manager app is com.example.android.contactmanager.
Method three : Using logcat In Command Prompt
  • Connect your android telephone alongside PC in addition to plough on USB debugging mode.
  • Open Command prompt.
  • Run command adb logcat.
  • Open app inwards android phone. Immediately press CTRL + C inwards ascendency prompt to halt logging inwards ascendency prompt.
  • Android phone's latest activeness volition endure logged inwards ascendency prompt.
  • If you lot run into inwards log, It volition present you lot app launcher log every bit shown bellow.
  • Here com.example.android.contactmanager is package name and com.example.android.contactmanager.ContactManager is activity name of Contact Manager app.
This agency you lot tin sack acquire whatever android software application's bundle elevate in addition to launcher activeness elevate easily. We convey to purpose both these parameters inwards evidence script.

More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM http://www.software-testing-tutorials-automation.com/
Post a Comment (0)
Previous Post Next Post