Nick
Nick

Reputation: 3441

Use javap to get method signatures in for Android Activity

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?

Upvotes: 15

Views: 6391

Answers (1)

jhole
jhole

Reputation: 4236

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

Upvotes: 21

Related Questions