Skip to content

Instantly share code, notes, and snippets.

@PierfrancescoSoffritti
Last active February 14, 2019 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PierfrancescoSoffritti/fba9e209f6e3357aab3c54ea41ba689c to your computer and use it in GitHub Desktop.
Save PierfrancescoSoffritti/fba9e209f6e3357aab3c54ea41ba689c to your computer and use it in GitHub Desktop.
How to build sample apps for Android libraries with just a few lines of code
<application
android:theme="@style/AppTheme">
<activity android:name="com.psoffritti.librarysampleapptemplate.core.SampleAppTemplateActivity" />
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ExampleActivity1" />
<activity android:name=".ExampleActivity2" android:theme="@style/Base.Theme.MaterialComponents.Light.DarkActionBar"/>
</application>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment