Note that there are some explanatory texts on larger screens.

plurals
  1. POI have issue in BOOT_COMPLETED
    primarykey
    data
    text
    <p><em><strong>NOTE: I have surfing stackoverflow answer before asking this, so don't make it duplicate</em></strong></p> <p>I am trying to create app which is run in background mode,there is not any activity in my application, my application should work like After 10 minutes it will check call log and if it was changed from last then it should send call log to server. I have tried with boot_completed intent </p> <pre><code> public class BootUpReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) { Log.d("schedulereceiver", "starting schedule"); } } </code></pre> <p>and i have declare receiver like</p> <pre><code> &lt;receiver android:name="com.ixo.BootUpReceiver" android:enabled="true" android:exported="false" android:permission="android.permission.RECEIVE_BOOT_COMPLETED" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;/intent-filter&gt; &lt;/receiver&gt; </code></pre> <p>I have added permission</p> <pre><code> &lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt; </code></pre> <p>I want to clear, I am testing on 4.2 version, and its nexus tablet, hope it is not creating problems</p> <p>if I am checking log</p> <pre><code>&gt; 02-26 12:31:10.809: W/ActivityManager(478): No content provider found &gt; for permission revoke: file:///data/local/tmp/Tracker.apk 02-26 12:31:10.809: I/PackageManager(478): Copying native libraries to &gt; /data/app-lib/vmdl1018712645 02-26 12:31:10.889: D/dalvikvm(478): GC_CONCURRENT freed 1347K, 13% free 13294K/15184K, paused 3ms+7ms, total 62ms 02-26 12:31:10.889: I/PackageManager(478): Removing non-system package:com.ixo.tracker 02-26 12:31:10.899: I/ActivityManager(478): Force stopping package com.ixo.tracker appid=10100 user=-1 02-26 12:31:10.989: I/PackageManager(478): Running dexopt on: com.ixo.tracker 02-26 12:31:10.989: I/PackageManager(478): Package com.ixo.tracker codePath changed from /data/app/com.ixo.tracker-2.apk to /data/app/com.ixo.tracker-1.apk; Retaining data and using new 02-26 12:31:11.049: D/dalvikvm(2434): DexOpt: 'Landroid/annotation/SuppressLint;' has an earlier definition; blocking out </code></pre> <p><em><strong>Update</em></strong></p> <p>some time I am getting log like</p> <pre><code>02-26 13:42:22.139: E/InstalledAppDetails(6171): Exception when retrieving package:com.ixo.tracker 02-26 13:42:22.139: E/InstalledAppDetails(6171): android.content.pm.PackageManager$NameNotFoundException: com.ixo.tracker 02-26 13:42:22.139: E/InstalledAppDetails(6171): at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:80) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at com.android.settings.applications.InstalledAppDetails.retrieveAppEntry(InstalledAppDetails.java:621) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at com.android.settings.applications.InstalledAppDetails.refreshUi(InstalledAppDetails.java:640) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at com.android.settings.applications.InstalledAppDetails.onActivityResult(InstalledAppDetails.java:534) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at android.app.Activity.dispatchActivityResult(Activity.java:5297) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at android.app.ActivityThread.deliverResults(ActivityThread.java:3315) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3362) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at android.app.ActivityThread.access$1100(ActivityThread.java:141) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1282) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at android.os.Handler.dispatchMessage(Handler.java:99) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at android.os.Looper.loop(Looper.java:137) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at android.app.ActivityThread.main(ActivityThread.java:5041) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at java.lang.reflect.Method.invokeNative(Native Method) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at java.lang.reflect.Method.invoke(Method.java:511) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 02-26 13:42:22.139: E/InstalledAppDetails(6171): at dalvik.system.NativeStart.main(Native Method) 02-26 13:42:22.169: W/AppSecurityPermissions(6171): Couldn't retrieve permissions for package:com.ixo.tracker </code></pre> <p><strong>UPDATE</strong></p> <p>if it is not working in 3.1 and above, is there any alternative to develop above.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload