python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Android Unit test: Error: EmptyFragmentActivity cannot be cast to BaseActivity. How to get Instance of an Activity which is not defined in Manifest?
I am new to writing Android Test Cases. I am trying to write a test case for a project which is already developed. It has so many Activities and Fragments and we are using Navigation Graph for navigat...

Aanal Shah
Votes: 0
Answers: 0
Android instrumentation test fails to install APK
I want to run instrumentation test as part of my CI pipeline but when I run the tests they fail because the APK could not be installed (as far as I understood):
> Task :app:connectedDebugAndroidTes...
GenError
Votes: 0
Answers: 4
Android instrumentation: Pass test options using interpolation
I am trying to pass some test options to my Android Instrumentation tests as below:
export value1="abcd"
export value2="pqrs"
export value3="xyz"
adb shell 'CLASSPATH=$(...
M1017108
Votes: 0
Answers: 1
How to correctly insert ids to an apk through instrumentation?
I'm doing instrumentation on an apk to add more ids (like in R.id.name) and set id for a specific widget, but I noticed something interesting:
If I set an existing id (by "existing" I mean ...
WatashiJ
Votes: 0
Answers: 1