Issue
I am learning how to use Espresso to validate intents. The documentation has the following example:
intended(allOf(..., toPackage("com.android.browser")));
Where can I find the package names of other existing apps (eg. Gmail)?
Solution
The answer can be found at https://support.google.com/admob/answer/3086746?hl=en:
- Go to the Google Play store page.
- Search for your app (eg. Gmail) and go to the app page.
- Google Play URL uses the following format:
https://play.google.com/store/apps/details?id=<package_name>
Another way is to run a failing test and see what shows up.
Answered By - David
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.