question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Method for getting current application package name

See original GitHub issue

There is method to get current activity in AndroidDriver:

driver.currentActivity()

depending on application it may return string like .MainActivity without package name or full name. It would be nice to have a method to get the package name separately - appium get this information from apk anyway.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
imurchiecommented, Jun 15, 2017

This functionality is available in Appium 1.6.6 beta as of this morning. Unfortunately it will take some time to get a method into the clients, to make it accessible.

0reactions
lock[bot]commented, Apr 25, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - How to get package name from anywhere?
For example, the Context.getPackageName() method returns your application ID. There's no need to ever share your code's true package name outside your app...
Read more >
Find package name or application ID of an Android app
So, the easiest way to find the app package name is via the Play Store. On a PC/Mac: Open play.google.com in your web...
Read more >
android.app.Activity.getPackageName java code examples
i.addCategory(Intent.CATEGORY_DEFAULT); i.setData(Uri.parse("package:" + context.getPackageName()));
Read more >
Configure the app module - Android Developers
getPackageName() method returns your application ID. ... The namespace is initially set to the package name you choose when you create your ...
Read more >
applications - View app's full package name?
You can look into the LogCat. Open the LogCat (either in Eclipse, or on cmd line- if the device is connected to your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found