bootcompleted

How to debug BOOT_COMPLETE broadcast receiver's “Force Close” crashes?

自作多情 提交于 2019-12-03 02:27:05
问题 Since the phone restarts and thus gets disconnected from the Eclipse debugger/LogCat while it's booting up, how do I see where my boot complete broadcast receiver is crashing? I am performing some actions in the onReceive() of my public class BootCompleteReceiver extends BroadcastReceiver { ... } This is crashing and popping up a force close dialog when the phone boots. How do I debug this and see where the problem is? The question holds true for debugging any BOOT_COMPLETE broadcast

How to debug BOOT_COMPLETE broadcast receiver's “Force Close” crashes?

两盒软妹~` 提交于 2019-12-02 17:22:00
Since the phone restarts and thus gets disconnected from the Eclipse debugger/LogCat while it's booting up, how do I see where my boot complete broadcast receiver is crashing? I am performing some actions in the onReceive() of my public class BootCompleteReceiver extends BroadcastReceiver { ... } This is crashing and popping up a force close dialog when the phone boots. How do I debug this and see where the problem is? The question holds true for debugging any BOOT_COMPLETE broadcast receivers. Thanks! EDIT Yes, we can see the system logs in LogCat as the phone is booting up but my app Log.d

How can I discover that my device has rebooted, given that HONEYCOMB BOOT COMPLETED is no longer supported?

大憨熊 提交于 2019-11-30 21:15:36
问题 I am developing app in Android 4.0.3. I've read that the HONEYCOMB BOOT COMPLETED event is no longer supported, according to Google's documentation. Given this, how can I discover that my device has rebooted? CODE - Java Class :- public class MyStartupIntentReceiver extends BroadcastReceiver{ @Override public void onReceive(Context context, Intent intent) { Logger.i("Device", "REBOOT"); Logger.i("Device", "REBOOT"); Logger.i("Device", "REBOOT"); Logger.i("Device", "REBOOT"); Logger.i("Device"

BOOT_COMPLETED not called on Honeycomb after export

天大地大妈咪最大 提交于 2019-11-30 10:28:46
I have a very weird problem, and none of the questions already on the website have an answer or the same problem. I have an app that receives BOOT_COMPLETED. I made sure it could receive the intent by setting android:installLocation to internalOnly. I have a Log.Debug in my OnBoot class, confirming wether or not it was called. I have two devices, an Android 2.2, and a Honeycomb. On android 2.2, it works fine, but Honeycomb... If I install the application on the honeycomb tablet with eclipse's "run" button, onBoot is called when the tablet boots. If I install the application on the honeycomb

BOOT_COMPLETED not called on Honeycomb after export

和自甴很熟 提交于 2019-11-29 15:16:36
问题 I have a very weird problem, and none of the questions already on the website have an answer or the same problem. I have an app that receives BOOT_COMPLETED. I made sure it could receive the intent by setting android:installLocation to internalOnly. I have a Log.Debug in my OnBoot class, confirming wether or not it was called. I have two devices, an Android 2.2, and a Honeycomb. On android 2.2, it works fine, but Honeycomb... If I install the application on the honeycomb tablet with eclipse's

Unable to instantiate receiver java.lang.ClassNotFoundException

早过忘川 提交于 2019-11-29 06:40:57
I got an error in my android application when it tries to instantiate a receiver that i use to start a service on boot up. The error is obvious, it can not find the class file of my receiver. But everything is ok with my manifest file, the packages and all and i have no clue what is happening. Here is my code: package dti.obd.reader; import dti.obd.reader.service.MainService; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class BootReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent

how to start my application when ever mobile restart or turn on

点点圈 提交于 2019-11-28 14:39:45
How do i set my application as startup application, so when ever mobile restarts or turned ON, my application starts. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.installedapps22" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8" /> <application android:icon="@drawable/cherry_icon" android:label="@string/app_name"> <activity android:name=".MainActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action

BOOT COMPLETE is not working in Android (Redmi)

强颜欢笑 提交于 2019-11-28 12:54:43
I am currently working on a application which includes Boot_Completed Broadcast receiver concept. I have tested this app in my Motorola Moto G Phone. The app runs fine and shows the Toast message. But when I test this app in XIAOMI Redmi 1S phone it doesn't show the Toast message. I have already seen many questions similar to my issue (like these - Question 1 , Question 2 , etc.) ... But I haven't got any solution to this problem. My Manifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.demoapp" android

Android adb shell am broadcast: Bad component name

落花浮王杯 提交于 2019-11-28 04:05:57
I am trying to 'emulate' a reboot (or anything else with the adb shell am ) and am unable to figure out how to reference my component. Then again, maybe I don't even understand what is meant by a component. Below I first include a few example commands that don't work, then my manifest. Note that StartupReceiver is successfully called when the 'phone' boots. I just want to re-trigger it without a full reboot. Failed ADB commands: $ ./adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -c android.intent.category.HOME -n net.fstab.checkit_android.StartupReceiver <help snipped> Error:

Unable to instantiate receiver java.lang.ClassNotFoundException

和自甴很熟 提交于 2019-11-28 00:07:33
问题 I got an error in my android application when it tries to instantiate a receiver that i use to start a service on boot up. The error is obvious, it can not find the class file of my receiver. But everything is ok with my manifest file, the packages and all and i have no clue what is happening. Here is my code: package dti.obd.reader; import dti.obd.reader.service.MainService; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class