Suppose that we have an activity and it's resources in a jar lib, then we are going to start it from main apk app, and it didn't worked for me.
result: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.mycompany.myapp/EXTERNAL_ACTIVITIES.OtherActivity}
JAR stands for Java ARchive. It's a file format based on the popular ZIP file format and is used for aggregating many files into one. Although JAR can be used as a general archiving tool, the primary motivation for its development was so that Java applets and their requisite components (.
The JAR file is stored in the data development project in the JAR folder.
If you are unable to find the libs folder in Android studio then open your android project in “Project” mode If the project is already opened in the “Android” mode. Then go to Your Project Name > app > libs and right-click on it and paste the downloaded JAR files.
First you have to put you jar into /libs Then check if your app manage libs : right click-> android Tools -> Add library support
Then, just add a classical activity in your manifest link to you activity:
<activity android:name="com.xxx.yyyyy.zzzzz"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:noHistory="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With