🙂 İNSANLARIN EN HAYIRLISI INSANLARA FAYDALI OLANDIR 🙂

Ramazan HABER / Android Yeni / servis yedek

 

1-) Android Yeni -  servis yedek

servis yedek bakmasanda olur
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.rambo.servisexample">
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".Services">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <service android:name=".HelloService" android:exported="true" android:launchMode="singleTop" android:process=":my_process"  >
        </service>
        <!--<service android:name=".HelloService" >
            <intent-filter>
                <action android:name="com.example.rambo.servisexample.HelloService" />
            </intent-filter>
        </service>-->

        <!-- <receiver android:name=".BootNotificationReceiver">
                  <intent-filter>
                      <action android:name="android.intent.action.BOOT_COMPLETED" />
                      <category android:name="android.intent.category.DEFAULT" />
                  </intent-filter>
          </receiver>-->
              <receiver
                       android:name=".BootNotificationReceiver"
                       android:enabled="true"
                       android:exported="true"
                       android:label="BootNotificationReceiver">
                       <intent-filter>
                           <action android:name="android.intent.action.BOOT_COMPLETED" />
                       </intent-filter>
                   </receiver>

         </application>




     </manifest>

 2021 Ocak 18 Pazartesi
 425