Skip to content

Instantly share code, notes, and snippets.

@alokomkar
Last active October 23, 2022 09:09
Show Gist options
  • Select an option

  • Save alokomkar/3af40dcacb040991d9dd1876fde3dda9 to your computer and use it in GitHub Desktop.

Select an option

Save alokomkar/3af40dcacb040991d9dd1876fde3dda9 to your computer and use it in GitHub Desktop.
Service in Android Manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.JavaCollections"
tools:targetApi="31" >
<service
android:name="com.alokomkar.service.MyAppService"
android:exported="false" />
</application>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment