0

I have added a JAR library file to my Android application for payment system. I would like to change the code of the one of the java file in JAR library file to make it work as needed. How would i do that in Android studio?

Abhi1988
  • 159
  • 2
  • 3
  • 14

1 Answers1

0

In order to overwrite a library's "SampleActivity" class it a the project which depends on that library, create a new class with the name SampleActivityExtended in the project in the same package and add the new activity to your AndroidManifest.xml.

IMPORTANT: all intents referencing overwritten activities should be created through the util class in the following manner:

more detail you can find here

Community
  • 1
  • 1
Hemant Ukey
  • 328
  • 4
  • 15