Question

When I write in command line javap -s java.awt.Label, I succesfully get signatures for Label. Now I want to get signatures for Android Activity class. But if I write javap -s android.app.activity it results in ERROR: Could not find android.app.activity.

What am I doing wrong? Should I change something in PATH env var or whatever?

Was it helpful?

Solution

Go to your apps directory and

javap -s -classpath bin/classes com.example.myActivity

Edit

for Android core classes add bootclasspath

javap -s -bootclasspath /opt/android-sdk/platforms/android-8/android.jar -classpath bin/classes android.app.Activity
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top