joakime / android-apk-parser

Obtain basic information out of an Android APK file.
105 stars 23 forks source link

how to get activity name from a apk file #11

Closed shyam27 closed 7 years ago

shyam27 commented 9 years ago

Hi joakime,

Getting package name from apk file its perfectly working and thank you for sharing this, but i required to get activity names from AndroidManifestFile. Is it possible to get?

shyam27 commented 9 years ago

I have downloaded the code base and written some logic inside ManifestListener class as below if ("activity".equals(name)) { for (Attribute attrib : attrs) { if ("name".equals(attrib.getName())) { activitys.add(attrib.getValue()); } } }

activitys is the List , i am able to get the activities now.

Thankyou.