Related
I am making an app when I started my app in emulator like bluestack then it show this logcat and finish it self
02-25 00:32:21.401 850-850/com.tricknearn.app D/dalvikvm: Late-enabling CheckJNI
02-25 00:32:21.601 850-850/com.tricknearn.app D/dalvikvm: GC_FOR_ALLOC freed 70K, 28% free 2690K/3728K, paused 20ms, total 40ms
02-25 00:32:21.651 850-850/com.tricknearn.app I/dalvikvm-heap: Grow heap (frag case) to 9.065MB for 6720012-byte allocation
02-25 00:32:21.661 850-859/com.tricknearn.app D/dalvikvm: GC_FOR_ALLOC freed <1K, 11% free 9252K/10292K, paused 10ms, total 10ms
02-25 00:32:21.671 850-853/com.tricknearn.app D/dalvikvm: GC_CONCURRENT freed <1K, 11% free 9252K/10292K, paused 0ms+0ms, total 0ms
02-25 00:32:22.011 850-850/com.tricknearn.app I/PGA: Attempting to create new SOCKET connectionn pid = 850, tid = 850
02-25 00:32:22.031 850-850/com.tricknearn.app I/PGA: New SOCKET connection: com.tricknearn.app (pid 850, tid 850)
02-25 00:32:23.261 850-850/com.tricknearn.app W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection
And when I start this app in mobile device it shows logcat :
02-25 00:38:10.804 17347-17347/com.tricknearn.app V/PhoneWindow: updateColorViewInt()if drawable=null color=-14057287
what does these means and how to fix these. I don't know about that I tried to find this but i did't get usefull information.Need help guys. Thanks in advance.
Output from your phone is correct. Last message means -> if drawable wasn't set then background have white color (-14057287 == white). In output i see only debug, info, verbose and one warning - you don't get any error. Dalvik send to you info that garbage collector works and your heap are growing. What are your question?
I am using below code to read data from external h/w. device but the application crashes with exception.Thread exiting with uncaught exception
Here is my code for reading data via external device:
private class ConnectedThread extends Thread {
private final BluetoothSocket mmSocket;
private InputStream mmInStream;
private OutputStream mmOutStream;
private InputStream mByteQueue;
private byte[] mReceiveBuffer;
public ConnectedThread(BluetoothSocket socket) {
Log.d(TAG, "create ConnectedThread");
mmSocket = socket;
InputStream tmpIn = null;
OutputStream tmpOut = null;
// Get the BluetoothSocket input and output streams
try {
tmpIn = socket.getInputStream();
tmpOut = socket.getOutputStream();
} catch (IOException e) {
Log.e(TAG, "temp sockets not created", e);
}
mmInStream = tmpIn;
mmOutStream = tmpOut;
}
public void run() {
Log.i(TAG, "BEGIN mConnectedThread");
// Keep listening to the InputStream while connected
while (true) {
try {
// Read from the InputStream
bytes = mmInStream.read(buffer);
sb.append(bytesToHex(buffer));
}
catch (IOException e) {
Log.e(TAG, "disconnected", e);
testModeOnScreen.sendMailTest("ricky.khatri#techvalens.com","Received bytes"+e.toString(),"IOEXCEPTION");//mahmoud.elsabrouty#eid-solutions.com
connectionLost();
//break;
}
}
}
}
This code is to call the thread:
mConnectedThread = new ConnectedThread(socket);
mConnectedThread.start();
try {
mConnectedThread.join();
testModeOnScreen.sendMailTest("ricky.khatri#techvalens.com","Raw Data:===>"+sb.toString(),"RECEIVED DATA IN HEX STRING"+buffer.length);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Here is logcat:
D/BluetoothReadService(21039): connect to: 00:06:66:45:DE:6E
D/BluetoothReadService(21039): setState() 0 -> 2
I/BluetoothReadService(21039): BEGIN mConnectThread
E/BluetoothService.cpp( 234): stopDiscoveryNative: D-Bus error in StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)
D/dalvikvm(20213): GC_CONCURRENT freed 414K, 54% free 3130K/6791K, external 841K/1036K, paused 1ms+2ms
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/370/hci0/dev_00_06_66_45_DE_6E
D/BluetoothService( 234): updateDeviceServiceChannelCache(00:06:66:45:DE:6E)
D/BluetoothService( 234): uuid(application): 00001101-0000-1000-8000-00805f9b34fb 1
D/BluetoothService( 234): Making callback for 00001101-0000-1000-8000-00805f9b34fb with result 1
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/370/hci0
D/BluetoothService( 234): new handle 10008
D/BluetoothReadService(21039): connected
D/BluetoothReadService(21039): create ConnectedThread
I/BluetoothReadService(21039): BEGIN mConnectedThread
D/dalvikvm(21052): GC_CONCURRENT freed 58K, 48% free 2798K/5379K, external 1487K/1741K, paused 3ms+2ms
D/dalvikvm(21052): GC_CONCURRENT freed 3K, 48% free 2809K/5379K, external 3814K/4496K, paused 1ms+2ms
D/dalvikvm(21052): GC_CONCURRENT freed 1K, 48% free 2817K/5379K, external 5255K/5782K, paused 4ms+8ms
D/dalvikvm(21052): GC_CONCURRENT freed 1K, 48% free 2826K/5379K, external 6708K/7223K, paused 1ms+6ms
D/dalvikvm(21052): GC_CONCURRENT freed 12K, 48% free 2847K/5379K, external 7287K/9064K, paused 2ms+1ms
I/Ads (21052): To get test ads on this device, call adRequest.addTestDevice("A8B81027D5AFA70ABB40D69832B8A12C");
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
I/ActivityManager( 234): Displayed com.abworkouts/.AbWorkoutsActivity: +1s272ms
I/Ads (21052): adRequestUrlHtml: <html><head><script src="http://www.gstatic.com/afma/sdk-core-v40.js"></script><script>AFMA_buildAdURL({"preqs":0,"u_sd":1,"slotname":"a14e2a1804aace4","u_w":320,"msid":"com.abworkouts","js":"afma-sdk-a-v4.1.0","isu":"A8B81027D5AFA70ABB40D69832B8A12C","format":"320x50_mb","net":"wi","app_name":"2.android.com.abworkouts","hl":"en","u_h":480,"u_audio":3,"u_so":"p"});</script></head><body></body></html>
I/Ads (21052): Received ad url: <"url": "http://googleads.g.doubleclick.net:80/mads/gma?preqs=0&u_sd=1&u_w=320&msid=com.abworkouts&js=afma-sdk-a-v4.1.0&isu=A8B81027D5AFA70ABB40D69832B8A12C&format=320x50_mb&net=wi&app_name=2.android.com.abworkouts&hl=en&u_h=480&u_audio=3&u_so=p&output=html®ion=mobile_app&u_tz=-120&client_sdk=1&ex=1&slotname=a14e2a1804aace4&caps=sdkAdmobApiForAds_di&jsv=41", "afmaNotifyDt": "null">
D/lights ( 234): set_light_buttons: brightness=255
W/KeyCharacterMap(21052): Can't open keycharmap file
W/KeyCharacterMap(21052): Error loading keycharmap file '/system/usr/keychars/cyttsp_key.kcm.bin'. hw.keyboards.65539.devname='cyttsp_key'
W/KeyCharacterMap(21052): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
D/dalvikvm( 234): GC_CONCURRENT freed 1435K, 35% free 8104K/12423K, external 1865K/2102K, paused 6ms+29ms
W/webcore (21052): Can't get the viewWidth after the first layout
I/Ads (21052): onReceiveAd()
D/dalvikvm(20213): GC_CONCURRENT freed 407K, 55% free 3113K/6791K, external 848K/1036K, paused 2ms+2ms
D/dalvikvm(20671): GC_EXPLICIT freed 156K, 49% free 2781K/5379K, external 743K/1036K, paused 90ms
D/lights ( 234): set_light_buttons: brightness=0
D/kernel ( 126): [113741.460449] bq27520 0-0055: bq27520_handle_soc_worker() capacity=90 (90) flags=0x128 ctrl_status=0x28b soh_state=0x3, valid=1
D/lights ( 234): set_light_battery: color=0xff00ff00, mode=0
W/dalvikvm(21039): threadid=10: thread exiting with uncaught exception (group=0x2aac8578)
E/JavaBinder( 234): !!! FAILED BINDER TRANSACTION !!!
E/kernel ( 126): [113743.098999] binder: 20149: binder_alloc_buf, no vma
D/kernel ( 126): [113743.098999] binder: 234:8767 transaction failed 29201, size 228-4
E/JavaBinder( 234): !!! FAILED BINDER TRANSACTION !!!
E/kernel ( 126): [113743.099426] binder: 20149: binder_alloc_buf, no vma
D/kernel ( 126): [113743.099426] binder: 234:8767 transaction failed 29201, size 88-4
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
D/dalvikvm( 117): GC_EXPLICIT freed 11K, 49% free 2762K/5379K, external 743K/1036K, paused 167ms
D/dalvikvm(20796): GC_EXPLICIT freed 283K, 50% free 3033K/5959K, external 743K/1036K, paused 134ms
D/dalvikvm( 117): GC_EXPLICIT freed <1K, 49% free 2762K/5379K, external 743K/1036K, paused 53ms
D/dalvikvm( 117): GC_EXPLICIT freed <1K, 49% free 2762K/5379K, external 743K/1036K, paused 37ms
D/dalvikvm(21091): Trying to load lib /data/data/com.sonyericsson.android.bootinfo/lib/libMiscTaAccessor.so 0x2afc6210
D/dalvikvm(21091): Added shared lib /data/data/com.sonyericsson.android.bootinfo/lib/libMiscTaAccessor.so 0x2afc6210
I/Process (21039): Sending signal. PID: 21039 SIG: 9
E/kernel ( 126): [113748.968505] binder: release proc 21039, transaction 1176367, not freed
W/GpsLocationProvider( 234): Unneeded remove listener for uid 1000
D/kernel ( 126): [113749.117797] binder: 330:330 transaction failed 29189, size 88-0
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
D/dalvikvm(20213): GC_CONCURRENT freed 415K, 54% free 3133K/6791K, external 841K/1036K, paused 2ms+2ms
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/370/hci0/dev_00_06_66_45_DE_6E
D/dalvikvm(20611): GC_CONCURRENT freed 360K, 47% free 3173K/5959K, external 747K/1036K, paused 2ms+11ms
D/dalvikvm(21101): GC_CONCURRENT freed 320K, 49% free 2964K/5703K, external 1358K/1870K, paused 2ms+2ms
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
D/dalvikvm( 330): GC_CONCURRENT freed 730K, 53% free 3323K/6983K, external 1876K/2388K, paused 1ms+6ms
I/ActivityManager( 234): Displayed com.empowereddefence/.SplashScreen: +344ms
D/dalvikvm(21101): GC_CONCURRENT freed 10K, 48% free 2977K/5703K, external 2048K/2470K, paused 6ms+2ms
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
I/ActivityManager( 234): Displayed com.empowereddefence/.HomeScreen: +431ms
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
D/dalvikvm(20213): GC_CONCURRENT freed 410K, 55% free 3108K/6791K, external 848K/1036K, paused 1ms+2ms
I/ActivityManager( 234): Displayed com.empowereddefence/.ApplicationTabActivity: +378ms
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
D/dalvikvm(21101): GC_CONCURRENT freed 159K, 45% free 3178K/5767K, external 2491K/3111K, paused 2ms+14ms
I/iddd-events( 124): Event com.sonyericsson.idd.probe.android.network::CellLocationChanged was discarded since it was not active.
W/GpsLocationProvider( 234): Duplicate add listener for uid 10152
D/PhoneWindow(21101): couldn't save which view has focus because the focused view com.android.internal.policy.impl.PhoneWindow$DecorView#2b025280 has no id.
D/EF-BTBee(21101): >>Starting Discovery
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/370/hci0
I/ActivityManager( 234): Displayed com.empowereddefence/.bluetooth.SearchDeviceActivity: +251ms
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Adapter:DeviceFound from /org/bluez/370/hci0
D/BluetoothService( 234): updateDeviceServiceChannelCache(94:39:E5:E1:99:52)
D/EF-BTBee(21101): >>showDevices
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Adapter:DeviceFound from /org/bluez/370/hci0
D/BluetoothService( 234): updateDeviceServiceChannelCache(00:06:66:45:DE:6E)
D/EF-BTBee(21101): >>showDevices
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Adapter:DeviceFound from /org/bluez/370/hci0
D/BluetoothService( 234): updateDeviceServiceChannelCache(68:EB:AE:7B:78:AB)
D/EF-BTBee(21101): >>showDevices
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Adapter:DeviceFound from /org/bluez/370/hci0
D/BluetoothService( 234): updateDeviceServiceChannelCache(50:2D:1D:57:40:AD)
D/EF-BTBee(21101): >>showDevices
D/dalvikvm(20213): GC_CONCURRENT freed 410K, 54% free 3130K/6791K, external 841K/1036K, paused 1ms+3ms
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/370/hci0
D/EF-BTBee(21101): >>unregisterReceiver
D/EF-BTBee(21101): >>Finished
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
D/dalvikvm(20213): GC_EXPLICIT freed 232K, 55% free 3083K/6791K, external 813K/1036K, paused 106ms
D/EF-BTBee(21101): >>Click device
D/BluetoothReadService(21101): connect to: 00:06:66:45:DE:6E
D/BluetoothReadService(21101): setState() 0 -> 2
I/BluetoothReadService(21101): BEGIN mConnectThread
E/BluetoothService.cpp( 234): stopDiscoveryNative: D-Bus error in StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/370/hci0/dev_00_06_66_45_DE_6E
D/BluetoothService( 234): updateDeviceServiceChannelCache(00:06:66:45:DE:6E)
D/BluetoothService( 234): uuid(application): 00001101-0000-1000-8000-00805f9b34fb 1
D/BluetoothService( 234): Making callback for 00001101-0000-1000-8000-00805f9b34fb with result 1
D/dalvikvm(21052): GC_CONCURRENT freed 545K, 49% free 3087K/6023K, external 9288K/11336K, paused 3ms+9ms
D/webviewglue(21052): nativeDestroy view: 0x2a74a0
D/webviewglue(21052): nativeDestroy view: 0x2b06a0
D/BluetoothReadService(21101): connected
D/BluetoothReadService(21101): create ConnectedThread
I/BluetoothReadService(21101): BEGIN mConnectedThread
D/dalvikvm(21052): GC_CONCURRENT freed 40K, 50% free 3071K/6023K, external 11798K/13846K, paused 1ms+5ms
W/kernel ( 126): [113785.020996] select 19978 (wsandroid.suite), adj 10, size 3510, to kill
W/kernel ( 126): [113785.021026] select 20846 (ackageinstaller), adj 10, size 4643, to kill
W/kernel ( 126): [113785.021057] send sigkill to 20846 (ackageinstaller), adj 10, size 4643
I/Ads (21052): To get test ads on this device, call adRequest.addTestDevice("A8B81027D5AFA70ABB40D69832B8A12C");
I/Ads (21052): adRequestUrlHtml: <html><head><script src="http://www.gstatic.com/afma/sdk-core-v40.js"></script><script>AFMA_buildAdURL({"preqs":1,"u_sd":1,"slotname":"a14e2a1804aace4","u_w":320,"msid":"com.abworkouts","js":"afma-sdk-a-v4.1.0","isu":"A8B81027D5AFA70ABB40D69832B8A12C","format":"320x50_mb","net":"wi","app_name":"2.android.com.abworkouts","hl":"en","u_h":480,"u_audio":3,"u_so":"p"});</script></head><body></body></html>
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
I/ActivityManager( 234): Displayed com.abworkouts/.AbWorkoutsActivity: +1s9ms
I/Ads (21052): Received ad url: <"url": "http://googleads.g.doubleclick.net:80/mads/gma?preqs=1&u_sd=1&u_w=320&msid=com.abworkouts&js=afma-sdk-a-v4.1.0&isu=A8B81027D5AFA70ABB40D69832B8A12C&format=320x50_mb&net=wi&app_name=2.android.com.abworkouts&hl=en&u_h=480&u_audio=3&u_so=p&output=html®ion=mobile_app&u_tz=-120&client_sdk=1&ex=1&slotname=a14e2a1804aace4&askip=1&caps=sdkAdmobApiForAds_di&jsv=41", "afmaNotifyDt": "null">
D/lights ( 234): set_light_buttons: brightness=255
W/KeyCharacterMap(21052): Can't open keycharmap file
W/KeyCharacterMap(21052): Error loading keycharmap file '/system/usr/keychars/cyttsp_key.kcm.bin'. hw.keyboards.65539.devname='cyttsp_key'
W/KeyCharacterMap(21052): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
D/dalvikvm( 330): GC_CONCURRENT freed 739K, 53% free 3321K/6983K, external 1876K/2388K, paused 1ms+6ms
D/dalvikvm(20213): GC_CONCURRENT freed 343K, 54% free 3128K/6791K, external 820K/1036K, paused 4ms+2ms
W/webcore (21052): Can't get the viewWidth after the first layout
I/Ads (21052): onReceiveAd()
W/dalvikvm(21101): threadid=10: thread exiting with uncaught exception (group=0x2aac8578)
I/Process ( 234): Sending signal. PID: 21101 SIG: 9
W/GpsLocationProvider( 234): Unneeded remove listener for uid 1000
E/kernel ( 126): [113791.191711] binder: release proc 21101, transaction 1177884, not freed
E/kernel ( 126): [113791.191711] binder: release proc 21101, transaction 1177885, not freed
D/lights ( 234): set_light_buttons: brightness=0
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/370/hci0/dev_00_06_66_45_DE_6E
D/dalvikvm(20213): GC_CONCURRENT freed 407K, 55% free 3117K/6791K, external 869K/1036K, paused 1ms+2ms
I/InputDispatcher( 234): Dropped event because of pending overdue app switch.
I/InputDispatcher( 234): Dropped event because of pending overdue app switch.
I/InputDispatcher( 234): Dropped event because of pending overdue app switch.
D/lights ( 234): set_light_buttons: brightness=255
D/kernel ( 126): [113804.855285] binder: 330:330 transaction failed 29189, size 88-0
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
W/KeyCharacterMap( 407): Can't open keycharmap file
W/KeyCharacterMap( 407): Error loading keycharmap file '/system/usr/keychars/cyttsp_key.kcm.bin'. hw.keyboards.65539.devname='cyttsp_key'
W/KeyCharacterMap( 407): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
D/dalvikvm(20213): GC_CONCURRENT freed 370K, 54% free 3154K/6791K, external 847K/1036K, paused 1ms+2ms
D/dalvikvm(21118): GC_CONCURRENT freed 54K, 48% free 2800K/5379K, external 1343K/1855K, paused 2ms+4ms
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
I/ActivityManager( 234): Displayed com.empowereddefence/.SplashScreen: +372ms
D/dalvikvm(21118): GC_CONCURRENT freed 8K, 48% free 2817K/5379K, external 2033K/2455K, paused 5ms+2ms
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
I/ActivityManager( 234): Displayed com.empowereddefence/.HomeScreen: +411ms
D/lights ( 234): set_light_buttons: brightness=0
D/dalvikvm(20213): GC_CONCURRENT freed 452K, 55% free 3119K/6791K, external 869K/1036K, paused 2ms+2ms
D/dalvikvm(19978): GC_EXPLICIT freed 21K, 48% free 2914K/5511K, external 743K/1036K, paused 97ms
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
D/dalvikvm(21118): GC_CONCURRENT freed 363K, 48% free 3117K/5895K, external 2254K/2455K, paused 2ms+2ms
I/ActivityManager( 234): Displayed com.empowereddefence/.ApplicationTabActivity: +371ms
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
D/dalvikvm( 234): GC_CONCURRENT freed 1059K, 36% free 8037K/12423K, external 2123K/2652K, paused 4ms+16ms
I/iddd-events( 124): Event com.sonyericsson.idd.probe.android.network::CellLocationChanged was discarded since it was not active.
W/GpsLocationProvider( 234): Duplicate add listener for uid 10152
D/PhoneWindow(21118): couldn't save which view has focus because the focused view com.android.internal.policy.impl.PhoneWindow$DecorView#2afd9510 has no id.
D/EF-BTBee(21118): >>Starting Discovery
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/370/hci0
W/kernel ( 126): [113825.539550] select 19978 (wsandroid.suite), adj 10, size 3550, to kill
W/kernel ( 126): [113825.539550] select 20868 (id.defcontainer), adj 10, size 3706, to kill
W/kernel ( 126): [113825.539581] send sigkill to 20868 (id.defcontainer), adj 10, size 3706
W/kernel ( 126): [113825.639282] select 19978 (wsandroid.suite), adj 10, size 3550, to kill
W/kernel ( 126): [113825.639312] send sigkill to 19978 (wsandroid.suite), adj 10, size 3550
I/ActivityManager( 234): Displayed com.empowereddefence/.bluetooth.SearchDeviceActivity: +266ms
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Adapter:DeviceFound from /org/bluez/370/hci0
D/BluetoothService( 234): updateDeviceServiceChannelCache(68:EB:AE:7B:78:AB)
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Adapter:DeviceFound from /org/bluez/370/hci0
D/BluetoothService( 234): updateDeviceServiceChannelCache(94:39:E5:E1:99:52)
D/EF-BTBee(21118): >>showDevices
D/EF-BTBee(21118): >>showDevices
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Adapter:DeviceFound from /org/bluez/370/hci0
D/BluetoothService( 234): updateDeviceServiceChannelCache(00:06:66:45:DE:6E)
D/EF-BTBee(21118): >>showDevices
D/dalvikvm(20213): GC_CONCURRENT freed 401K, 55% free 3122K/6791K, external 847K/1036K, paused 2ms+2ms
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Adapter:DeviceFound from /org/bluez/370/hci0
D/BluetoothService( 234): updateDeviceServiceChannelCache(50:2D:1D:57:40:AD)
D/EF-BTBee(21118): >>showDevices
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/370/hci0
D/EF-BTBee(21118): >>unregisterReceiver
D/EF-BTBee(21118): >>Finished
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
D/dalvikvm( 330): GC_CONCURRENT freed 732K, 53% free 3324K/6983K, external 1876K/2388K, paused 1ms+2ms
D/dalvikvm(18376): GC_CONCURRENT freed 2081K, 37% free 8755K/13895K, external 1108K/1620K, paused 14ms+7ms
D/dalvikvm(20213): GC_CONCURRENT freed 420K, 55% free 3119K/6791K, external 869K/1036K, paused 2ms+2ms
D/EF-BTBee(21118): >>Click device
D/BluetoothReadService(21118): connect to: 00:06:66:45:DE:6E
D/BluetoothReadService(21118): setState() 0 -> 2
I/BluetoothReadService(21118): BEGIN mConnectThread
E/BluetoothService.cpp( 234): stopDiscoveryNative: D-Bus error in StopDiscovery: org.bluez.Error.Failed (Invalid discovery session)
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/370/hci0/dev_00_06_66_45_DE_6E
D/BluetoothService( 234): updateDeviceServiceChannelCache(00:06:66:45:DE:6E)
D/BluetoothService( 234): uuid(application): 00001101-0000-1000-8000-00805f9b34fb 1
D/BluetoothService( 234): Making callback for 00001101-0000-1000-8000-00805f9b34fb with result 1
D/dalvikvm(20611): GC_CONCURRENT freed 333K, 46% free 3339K/6087K, external 747K/1036K, paused 8ms+42ms
I/Ads (21052): To get test ads on this device, call adRequest.addTestDevice("A8B81027D5AFA70ABB40D69832B8A12C");
I/Ads (21052): adRequestUrlHtml: <html><head><script src="http://www.gstatic.com/afma/sdk-core-v40.js"></script><script>AFMA_buildAdURL({"preqs":2,"u_sd":1,"slotname":"a14e2a1804aace4","u_w":320,"msid":"com.abworkouts","js":"afma-sdk-a-v4.1.0","isu":"A8B81027D5AFA70ABB40D69832B8A12C","format":"320x50_mb","net":"wi","app_name":"2.android.com.abworkouts","hl":"en","u_h":480,"u_audio":3,"u_so":"p"});</script></head><body></body></html>
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
I/ActivityManager( 234): Displayed com.abworkouts/.AbWorkoutsActivity: +338ms
D/BluetoothReadService(21118): connected
D/BluetoothReadService(21118): create ConnectedThread
I/BluetoothReadService(21118): BEGIN mConnectedThread
I/Ads (21052): Received ad url: <"url": "http://googleads.g.doubleclick.net:80/mads/gma?preqs=2&u_sd=1&u_w=320&msid=com.abworkouts&js=afma-sdk-a-v4.1.0&isu=A8B81027D5AFA70ABB40D69832B8A12C&format=320x50_mb&net=wi&app_name=2.android.com.abworkouts&hl=en&u_h=480&u_audio=3&u_so=p&output=html®ion=mobile_app&u_tz=-120&client_sdk=1&ex=1&slotname=a14e2a1804aace4&askip=2&caps=sdkAdmobApiForAds_di&jsv=41", "afmaNotifyDt": "null">
D/lights ( 234): set_light_buttons: brightness=255
W/webcore (21052): Can't get the viewWidth after the first layout
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
I/Ads (21052): onReceiveAd()
D/dalvikvm(18376): GC_EXPLICIT freed 749K, 38% free 8619K/13895K, external 1108K/1620K, paused 185ms
W/dalvikvm(21118): threadid=11: thread exiting with uncaught exception (group=0x2aac8578)
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
W/kernel ( 126): [113851.539062] select 20796 (son.eventstream), adj 9, size 4715, to kill
W/kernel ( 126): [113851.539093] send sigkill to 20796 (son.eventstream), adj 9, size 4715
D/dalvikvm(20213): GC_CONCURRENT freed 372K, 54% free 3154K/6791K, external 847K/1036K, paused 1ms+3ms
D/lights ( 234): set_light_buttons: brightness=0
I/Process (21118): Sending signal. PID: 21118 SIG: 9
E/JavaBinder( 234): !!! FAILED BINDER TRANSACTION !!!
W/GpsLocationProvider( 234): Unneeded remove listener for uid 1000
E/kernel ( 126): [113854.632080] binder: 21118: binder_alloc_buf, no vma
D/kernel ( 126): [113854.632141] binder: 234:273 transaction failed 29201, size 60-0
D/kernel ( 126): [113854.634613] binder: 234:9603 transaction failed 29189, size 56-0
E/InputDispatcher( 234): channel '2b565930 com.empowereddefence/com.empowereddefence.ApplicationTabActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8
E/InputDispatcher( 234): channel '2b565930 com.empowereddefence/com.empowereddefence.ApplicationTabActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
D/kernel ( 126): [113854.831542] binder: 330:330 transaction failed 29189, size 88-0
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
D/dalvikvm( 407): GC_CONCURRENT freed 1952K, 53% free 4159K/8711K, external 5958K/6629K, paused 2ms+23ms
E/BluetoothEventLoop.cpp( 234): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/370/hci0/dev_00_06_66_45_DE_6E
V/alogcat (21025): created
D/alogcat (21025): canceling periodic saves
V/alogcat (21025): started
V/alogcat (21025): resumed
D/alogcat (21025): starting ...
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
D/dalvikvm(21025): GC_CONCURRENT freed 383K, 49% free 3006K/5831K, external 1166K/1678K, paused 2ms+12ms
I/ActivityManager( 234): Displayed org.jtb.alogcat/.LogActivity: +348ms
D/CustomizationProvider(20671): openFile -- START uri=content://com.sonyericsson.provider.customization/settings/com.sonyericsson.textinput.uxp
D/dalvikvm( 330): GC_CONCURRENT freed 743K, 53% free 3316K/6983K, external 1876K/2388K, paused 2ms+11ms
D/lights ( 234): set_light_buttons: brightness=255
W/KeyCharacterMap(21025): Can't open keycharmap file
W/KeyCharacterMap(21025): Error loading keycharmap file '/system/usr/keychars/cyttsp_key.kcm.bin'. hw.keyboards.65539.devname='cyttsp_key'
W/KeyCharacterMap(21025): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
D/dalvikvm(20213): GC_CONCURRENT freed 448K, 55% free 3119K/6791K, external 869K/1036K, paused 1ms+3ms
I had the same problem, GC_CONCURRENT it's a Garbage Collector, i think it's happens because you try to send a lot of big size data to device in a short period of time and device thinks is a flood, i put " Thread.sleep(5) " after every 5 transactions for me it works.
Here my manifest? Is a manifest problem? Many many hours spent to discover the problem... is a service that starts a class by intent (using alarmmanager). If no a manifest problem, what's the problem?
Thanks for help!
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.mypackage"
android:versionCode="1"
android:versionName="1" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" android:name="CrashReports">
<service android:name="UnUsedService">
<intent-filter>
<action
android:name="org.gortcloud.startatboot.UnUsedService" />
</intent-filter>
</service>
<receiver android:name="AutoStart">
<intent-filter>
<action
android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
</receiver>
<receiver android:name="AlarmReceiver" android:process=":remote"/>
<activity
android:name="com.example.mypackage.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:enabled="true" android:name=".SobService"/>
<activity android:name="Index"></activity>
<activity android:name="SendText"></activity>
</application>
</manifest>
logcat
E/ThrottleService( 149): problem during onPollAlarm: java.lang.IllegalStateException: problem parsing stats: java.io.FileNotFoundException: /proc/net/xt_qtaguid/iface_stat_all: open failed: ENOENT (No such file or directory)
D/dalvikvm( 149): GC_CONCURRENT freed 637K, 13% free 8307K/9479K, paused 25ms+12ms, total 142ms
D/AndroidRuntime(14611):
D/AndroidRuntime(14611): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime(14611): CheckJNI is ON
D/dalvikvm(14611): Trying to load lib libjavacore.so 0x0
D/dalvikvm(14611): Added shared lib libjavacore.so 0x0
D/dalvikvm(14611): Trying to load lib libnativehelper.so 0x0
D/dalvikvm(14611): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime(14611): Calling main entry com.android.commands.pm.Pm
W/ActivityManager( 149): No content provider found for permission revoke: file:///data/local/tmp/MainActivity.apk
D/dalvikvm( 2860): GC_CONCURRENT freed 457K, 14% free 5292K/6087K, paused 17ms+4ms, total 75ms
W/ActivityManager( 149): No content provider found for permission revoke: file:///data/local/tmp/MainActivity.apk
D/dalvikvm( 149): GC_CONCURRENT freed 614K, 12% free 8360K/9479K, paused 22ms+30ms, total 125ms
D/dalvikvm( 149): GC_FOR_ALLOC freed 282K, 13% free 8265K/9479K, paused 69ms, total 70ms
D/dalvikvm( 149): GC_FOR_ALLOC freed 234K, 13% free 8267K/9479K, paused 86ms, total 87ms
D/dalvikvm( 149): GC_FOR_ALLOC freed 239K, 13% free 8270K/9479K, paused 68ms, total 68ms
I/PackageManager( 149): Removing non-system package:org.gortcloud.perledisaggezza
I/ActivityManager( 149): Force stopping package org.gortcloud.perledisaggezza uid=10044
I/ActivityManager( 149): Killing proc 10610:org.gortcloud.perledisaggezza/u0a44: force stop
W/ActivityManager( 149): Force removing ActivityRecord{411fe0f0 org.gortcloud.perledisaggezza/.MainActivity}: app died, no saved state
W/InputDispatcher( 149): channel '412b50c0 org.gortcloud.perledisaggezza/org.gortcloud.perledisaggezza.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
E/InputDispatcher( 149): channel '412b50c0 org.gortcloud.perledisaggezza/org.gortcloud.perledisaggezza.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
I/WindowState( 149): WIN DEATH: Window{412b50c0 org.gortcloud.perledisaggezza/org.gortcloud.perledisaggezza.MainActivity paused=false}
W/InputDispatcher( 149): Attempted to unregister already unregistered input channel '412b50c0 org.gortcloud.perledisaggezza/org.gortcloud.perledisaggezza.MainActivity (server)'
I/Choreographer( 149): Skipped 75 frames! The application may be doing too much work on its main thread.
I/WindowManager( 149): WINDOW DIED Window{412b50c0 org.gortcloud.perledisaggezza/org.gortcloud.perledisaggezza.MainActivity paused=false}
I/Choreographer( 258): Skipped 238 frames! The application may be doing too much work on its main thread.
I/PackageManager( 149): Package org.gortcloud.perledisaggezza codePath changed from /data/app/org.gortcloud.perledisaggezza-2.apk to /data/app/org.gortcloud.perledisaggezza-1.apk; Retaining data and using new
W/InputMethodManagerService( 149): Got RemoteException sending setActive(false) notification to pid 10610 uid 10044
I/PackageManager( 149): Running dexopt on: org.gortcloud.perledisaggezza
D/dalvikvm(14630): DexOpt: load 129ms, verify+opt 643ms, 962252 bytes
W/PackageManager( 149): Code path for pkg : org.gortcloud.perledisaggezza changing from /data/app/org.gortcloud.perledisaggezza-2.apk to /data/app/org.gortcloud.perledisaggezza-1.apk
W/PackageManager( 149): Resource path for pkg : org.gortcloud.perledisaggezza changing from /data/app/org.gortcloud.perledisaggezza-2.apk to /data/app/org.gortcloud.perledisaggezza-1.apk
D/dalvikvm( 149): GC_FOR_ALLOC freed 320K, 13% free 8281K/9479K, paused 72ms, total 73ms
I/ActivityManager( 149): Force stopping package org.gortcloud.perledisaggezza uid=10044
D/PackageManager( 149): New package installed in /data/app/org.gortcloud.perledisaggezza-1.apk
W/PackageManager( 149): Not granting permission android.permission.READ_LOGS to package org.gortcloud.perledisaggezza (protectionLevel=50 flags=0x8be46)
I/ActivityManager( 149): Force stopping package org.gortcloud.perledisaggezza uid=10044
D/dalvikvm( 204): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 258): WAIT_FOR_CONCURRENT_GC blocked 1ms
D/dalvikvm( 204): GC_EXPLICIT freed 216K, 62% free 5881K/15367K, paused 8ms+19ms, total 155ms
D/dalvikvm( 258): GC_EXPLICIT freed 409K, 39% free 7423K/12103K, paused 8ms+22ms, total 156ms
D/dalvikvm( 323): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 323): GC_EXPLICIT freed 177K, 10% free 5564K/6151K, paused 8ms+9ms, total 88ms
I/InputReader( 149): Reconfiguring input devices. changes=0x00000010
D/PackageManager( 149): generateServicesMap(android.accounts.AccountAuthenticator): 2 services unchanged
D/PackageManager( 149): generateServicesMap(android.content.SyncAdapter): 4 services unchanged
D/BackupManagerService( 149): Received broadcast Intent { act=android.intent.action.PACKAGE_REMOVED dat=package:org.gortcloud.perledisaggezza flg=0x8000010 (has extras) }
D/dalvikvm( 149): WAIT_FOR_CONCURRENT_GC blocked 0ms
I/AccountTypeManager( 367): Loaded meta-data for 1 account types, 0 accounts in 53ms(wall) 5ms(cpu)
D/dalvikvm( 149): GC_EXPLICIT freed 503K, 15% free 8140K/9479K, paused 65ms+21ms, total 204ms
I/InputReader( 149): Reconfiguring input devices. changes=0x00000010
D/PackageManager( 149): generateServicesMap(android.accounts.AccountAuthenticator): 2 services unchanged
D/PackageManager( 149): generateServicesMap(android.content.SyncAdapter): 4 services unchanged
D/BackupManagerService( 149): Received broadcast Intent { act=android.intent.action.PACKAGE_ADDED dat=package:org.gortcloud.perledisaggezza flg=0x8000010 (has extras) }
V/BackupManagerService( 149): removePackageParticipantsLocked: uid=10044 #1
V/BackupManagerService( 149): addPackageParticipantsLocked: #1
W/InputMethodManagerService( 149): Found no subtypes in a system IME: com.android.inputmethod.pinyin
I/AccountTypeManager( 367): Loaded meta-data for 1 account types, 0 accounts in 11ms(wall) 7ms(cpu)
I/Choreographer( 258): Skipped 533 frames! The application may be doing too much work on its main thread.
D/dalvikvm( 149): WAIT_FOR_CONCURRENT_GC blocked 0ms
D/dalvikvm( 367): GC_CONCURRENT freed 403K, 12% free 5471K/6215K, paused 100ms+14ms, total 174ms
W/RecognitionManagerService( 149): no available voice recognition services found
D/dalvikvm( 149): GC_EXPLICIT freed 400K, 14% free 8170K/9479K, paused 27ms+47ms, total 266ms
D/AndroidRuntime(14611): Shutting down VM
D/dalvikvm(14611): GC_CONCURRENT freed 101K, 78% free 458K/2048K, paused 2ms+1ms, total 13ms
D/jdwp (14611): Got wake-up signal, bailing out of select
D/dalvikvm(14611): Debugger has detached; object registry had 1 entries
I/AndroidRuntime(14611): NOTE: attach of thread 'Binder_3' failed
D/AndroidRuntime(14647):
D/AndroidRuntime(14647): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime(14647): CheckJNI is ON
D/dalvikvm(14647): Trying to load lib libjavacore.so 0x0
D/dalvikvm(14647): Added shared lib libjavacore.so 0x0
D/dalvikvm(14647): Trying to load lib libnativehelper.so 0x0
D/dalvikvm(14647): Added shared lib libnativehelper.so 0x0
D/AndroidRuntime(14647): Calling main entry com.android.commands.am.Am
I/ActivityManager( 149): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=org.gortcloud.perledisaggezza/.MainActivity u=0} from pid 14647
W/WindowManager( 149): Failure taking screenshot for (123x221) to layer 21025
D/AndroidRuntime(14647): Shutting down VM
D/dalvikvm(14647): GC_CONCURRENT freed 102K, 77% free 489K/2048K, paused 1ms+2ms, total 11ms
D/jdwp (14647): Got wake-up signal, bailing out of select
D/dalvikvm(14647): Debugger has detached; object registry had 1 entries
I/AndroidRuntime(14647): NOTE: attach of thread 'Binder_3' failed
D/dalvikvm( 258): GC_CONCURRENT freed 539K, 38% free 7520K/12103K, paused 16ms+127ms, total 360ms
D/dalvikvm(14658): Not late-enabling CheckJNI (already on)
I/ActivityManager( 149): Start proc org.gortcloud.perledisaggezza for activity org.gortcloud.perledisaggezza/.MainActivity: pid=14658 uid=10044 gids={3003, 1028}
E/Trace (14658): error opening trace file: No such file or directory (2)
I/Choreographer( 149): Skipped 35 frames! The application may be doing too much work on its main thread.
D/ACRA (14658): ACRA is enabled for org.gortcloud.perledisaggezza, intializing...
D/ACRA (14658): Using default Report Fields
D/ACRA (14658): Looking for error files in /data/data/org.gortcloud.perledisaggezza/files
D/dalvikvm(14658): GC_FOR_ALLOC freed 179K, 9% free 5372K/5895K, paused 31ms, total 32ms
I/dalvikvm-heap(14658): Grow heap (frag case) to 5.965MB for 457616-byte allocation
D/dalvikvm(14658): GC_CONCURRENT freed 1K, 9% free 5817K/6343K, paused 19ms+13ms, total 61ms
D/dalvikvm(14658): GC_CONCURRENT freed 48K, 6% free 6322K/6663K, paused 15ms+4ms, total 65ms
D/dalvikvm(14658): WAIT_FOR_CONCURRENT_GC blocked 18ms
D/dalvikvm(14658): GC_FOR_ALLOC freed 48K, 6% free 6464K/6855K, paused 41ms, total 41ms
I/dalvikvm-heap(14658): Grow heap (frag case) to 7.234MB for 668816-byte allocation
D/dalvikvm(14658): GC_FOR_ALLOC freed <1K, 6% free 7117K/7559K, paused 58ms, total 58ms
D/dalvikvm(14658): GC_CONCURRENT freed <1K, 6% free 7117K/7559K, paused 16ms+4ms, total 64ms
I/Choreographer(14658): Skipped 58 frames! The application may be doing too much work on its main thread.
I/Choreographer(14658): Skipped 233 frames! The application may be doing too much work on its main thread.
D/gralloc_goldfish(14658): Emulator without GPU emulation detected.
I/ActivityManager( 149): Displayed org.gortcloud.perledisaggezza/.MainActivity: +1s713ms
I/Choreographer( 149): Skipped 61 frames! The application may be doing too much work on its main thread.
I/Choreographer( 149): Skipped 43 frames! The application may be doing too much work on its main thread.
I/Choreographer(14658): Skipped 271 frames! The application may be doing too much work on its main thread.
D/dalvikvm( 243): GC_CONCURRENT freed 384K, 13% free 5798K/6599K, paused 4ms+4ms, total 36ms
I/Choreographer(14658): Skipped 46 frames! The application may be doing too much work on its main thread.
I/Choreographer( 149): Skipped 36 frames! The application may be doing too much work on its main thread.
D/dalvikvm(14692): Not late-enabling CheckJNI (already on)
I/ActivityManager( 149): Start proc org.gortcloud.perledisaggezza:remote for broadcast org.gortcloud.perledisaggezza/.AlarmReceiver: pid=14692 uid=10044 gids={3003, 1028}
E/Trace (14692): error opening trace file: No such file or directory (2)
D/ACRA (14692): ACRA is enabled for org.gortcloud.perledisaggezza, intializing...
D/ACRA (14692): Using default Report Fields
D/ACRA (14692): Looking for error files in /data/data/org.gortcloud.perledisaggezza/files
D/gralloc_goldfish(14692): Emulator without GPU emulation detected.
UnUsedService (starts from my activity by:
startService(new Intent(this, UnUsedService.class));
UnUsedService
public class UnUsedService extends Service {
//private PendingIntent pendingIntent;
#Override
public IBinder onBind(Intent intent) {
return null;
}
#Override
public void onCreate() {
super.onCreate();
Toast.makeText(this, "Service Created", Toast.LENGTH_LONG).show();
//startService(new Intent(this, UnUsedService.class));
}
#Override
public void onDestroy() {
super.onDestroy();
Toast.makeText(this, "Service Destroyed", Toast.LENGTH_LONG).show();
}
private PendingIntent pendingIntent;
#SuppressWarnings("deprecation")
#Override
public void onStart(Intent intent, int startId) {
// super.onStart();
super.onStart(intent, startId);
Toast.makeText(this, "Service Started", Toast.LENGTH_LONG).show();
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.HOUR_OF_DAY, 23);
calendar.set(Calendar.MINUTE, 32);
calendar.set(Calendar.SECOND, 0); AlarmManager am = (AlarmManager) getApplicationContext().getSystemService (Context.ALARM_SERVICE);
PendingIntent pi = PendingIntent.getService(getApplicationContext(), 0, new Intent(getApplicationContext(), AlarmReceiver.class), PendingIntent.FLAG_UPDATE_CURRENT);
am.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), AlarmManager.INTERVAL_DAY, pi);
am.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis()+1000, AlarmManager.INTERVAL_DAY, pi);
}};
Receiver:
public class AlarmReceiver extends BroadcastReceiver {
#Override
public void onReceive(Context context, Intent intent) {
Toast.makeText(context, "Alarm worked.", Toast.LENGTH_LONG).show();
}
}
I noticed that you're creating the wrong type of PendingIntent:
pendingIntent = PendingIntent.getService(UnUsedService.this, 0, myIntent, 0);
You want to target your BroadcastReceiver, so you need to use:
pendingIntent = PendingIntent.getBroadcast(AlarmReceiver.this, 0, myIntent, 0);
instead of this in your mainifest. .
try this
<activity android:name="com.example.mypackage.Index"></activity>
<activity android:name="com.example.mypackage.SendText"></activity>
I built an app base on android api version 8, I choose this option because I think it will work in the newer version of Android, but when I try to do something as I mention in the title I got my app force close. The application starts and works normally, only error in menu inflater, here is my code :
#Override
public boolean onOptionsItemSelected(MenuItem item) {
// TODO Auto-generated method stub
Toast.makeText(this, "About Developer", Toast.LENGTH_LONG).show();
Intent i = new Intent(this, about.class);
startActivity(i);
return true;
}
does anyone have any idea to fix it?
Logcat :
09-10 14:07:02.630: DEBUG/AndroidRuntime(1631): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
09-10 14:07:02.646: DEBUG/AndroidRuntime(1631): CheckJNI is ON
09-10 14:07:10.746: DEBUG/AndroidRuntime(1631): Calling main entry com.android.commands.pm.Pm
09-10 14:07:12.027: DEBUG/dalvikvm(266): GC_EXPLICIT freed 10K, 54% free 2552K/5511K, external 716K/1038K, paused 360ms
09-10 14:07:12.086: WARN/ActivityManager(68): No content provider found for:
09-10 14:07:12.237: WARN/ActivityManager(68): No content provider found for:
09-10 14:07:12.307: DEBUG/PackageParser(68): Scanning package: /data/app/vmdl-674477132.tmp
09-10 14:07:12.707: INFO/PackageManager(68): Removing non-system package:com.dg.tkd
09-10 14:07:12.707: INFO/ActivityManager(68): Force stopping package com.dg.tkd uid=10036
09-10 14:07:12.837: INFO/Process(68): Sending signal. PID: 1618 SIG: 9
09-10 14:07:12.928: ERROR/InputDispatcher(68): channel '4079e2f8 com.dg.tkd/com.dg.tkd.digital_tkd (server)' ~ Consumer closed input channel or an error occurred. events=0x8
09-10 14:07:12.928: ERROR/InputDispatcher(68): channel '4079e2f8 com.dg.tkd/com.dg.tkd.digital_tkd (server)' ~ Channel is unrecoverably broken and will be disposed!
09-10 14:07:12.947: INFO/ActivityManager(68): Force finishing activity HistoryRecord{406a3e48 com.dg.tkd/.digital_tkd}
09-10 14:07:12.986: INFO/WindowManager(68): WIN DEATH: Window{407ea958 com.dg.tkd/com.dg.tkd.about paused=false}
09-10 14:07:13.037: INFO/WindowManager(68): WIN DEATH: Window{4079e2f8 com.dg.tkd/com.dg.tkd.digital_tkd paused=false}
09-10 14:07:13.086: ERROR/InputDispatcher(68): Received spurious receive callback for unknown input channel. fd=161, events=0x8
09-10 14:07:13.447: DEBUG/dalvikvm(68): GC_CONCURRENT freed 1043K, 46% free 4596K/8455K, external 3251K/3627K, paused 24ms+31ms
09-10 14:07:13.788: DEBUG/PackageManager(68): Scanning package com.dg.tkd
09-10 14:07:13.788: INFO/ActivityManager(68): Start proc com.android.launcher for activity com.android.launcher/com.android.launcher2.Launcher: pid=1641 uid=10001 gids={}
09-10 14:07:13.836: INFO/PackageManager(68): Package com.dg.tkd codePath changed from /data/app/com.dg.tkd-1.apk to /data/app/com.dg.tkd-2.apk; Retaining data and using new
09-10 14:07:14.146: INFO/PackageManager(68): Unpacking native libraries for /data/app/com.dg.tkd-2.apk
09-10 14:07:14.707: DEBUG/installd(35): DexInv: --- BEGIN '/data/app/com.dg.tkd-2.apk' ---
09-10 14:07:15.457: DEBUG/dalvikvm(1649): DexOpt: load 72ms, verify+opt 125ms
09-10 14:07:15.537: DEBUG/installd(35): DexInv: --- END '/data/app/com.dg.tkd-2.apk' (success) ---
09-10 14:07:15.546: WARN/PackageManager(68): Code path for pkg : com.dg.tkd changing from /data/app/com.dg.tkd-1.apk to /data/app/com.dg.tkd-2.apk
09-10 14:07:15.546: WARN/PackageManager(68): Resource path for pkg : com.dg.tkd changing from /data/app/com.dg.tkd-1.apk to /data/app/com.dg.tkd-2.apk
09-10 14:07:15.546: DEBUG/PackageManager(68): Activities: com.dg.tkd.digital_tkd com.dg.tkd.about
09-10 14:07:15.747: INFO/installd(35): move /data/dalvik-cache/data#app#com.dg.tkd-2.apk#classes.dex -> /data/dalvik-cache/data#app#com.dg.tkd-2.apk#classes.dex
09-10 14:07:15.757: DEBUG/PackageManager(68): New package installed in /data/app/com.dg.tkd-2.apk
09-10 14:07:16.047: INFO/WindowManager(68): Setting rotation to 0, animFlags=1
09-10 14:07:16.146: INFO/ActivityManager(68): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=18 uiMode=17 seq=48}
09-10 14:07:16.717: INFO/ActivityManager(68): Force stopping package com.dg.tkd uid=10036
09-10 14:07:17.717: INFO/ActivityThread(1641): Pub com.android.launcher2.settings: com.android.launcher2.LauncherProvider
09-10 14:07:19.727: DEBUG/dalvikvm(1641): GC_EXTERNAL_ALLOC freed 457K, 54% free 2684K/5767K, external 1032K/1038K, paused 107ms
09-10 14:07:20.607: INFO/ActivityManager(68): Displayed com.android.launcher/com.android.launcher2.Launcher: +7s521ms
09-10 14:07:20.687: WARN/InputManagerService(68): Got RemoteException sending setActive(false) notification to pid 1618 uid 10036
09-10 14:07:21.156: WARN/WindowManager(68): App freeze timeout expired.
09-10 14:07:21.657: INFO/ActivityManager(68): Force stopping package com.dg.tkd uid=10036
09-10 14:07:22.097: DEBUG/dalvikvm(1641): GC_EXTERNAL_ALLOC freed 97K, 53% free 2718K/5767K, external 1561K/1572K, paused 229ms
09-10 14:07:22.256: DEBUG/dalvikvm(68): GC_EXPLICIT freed 514K, 47% free 4504K/8455K, external 3247K/3627K, paused 397ms
09-10 14:07:23.517: DEBUG/dalvikvm(68): GC_EXPLICIT freed 18K, 47% free 4486K/8455K, external 3247K/3627K, paused 240ms
09-10 14:07:25.356: WARN/RecognitionManagerService(68): no available voice recognition services found
09-10 14:07:26.056: DEBUG/dalvikvm(68): GC_EXPLICIT freed 129K, 47% free 4515K/8455K, external 3247K/3627K, paused 391ms
09-10 14:07:26.906: INFO/installd(35): unlink /data/dalvik-cache/data#app#com.dg.tkd-1.apk#classes.dex
09-10 14:07:27.037: DEBUG/AndroidRuntime(1631): Shutting down VM
09-10 14:07:27.097: INFO/AndroidRuntime(1631): NOTE: attach of thread 'Binder Thread #4' failed
09-10 14:07:27.117: DEBUG/dalvikvm(1631): GC_CONCURRENT freed 100K, 72% free 293K/1024K, external 0K/0K, paused 16ms+18ms
09-10 14:07:27.157: DEBUG/dalvikvm(1631): Debugger has detached; object registry had 1 entries
09-10 14:07:29.029: DEBUG/AndroidRuntime(1657): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
09-10 14:07:29.029: DEBUG/AndroidRuntime(1657): CheckJNI is ON
09-10 14:07:30.966: DEBUG/dalvikvm(1641): GC_CONCURRENT freed 224K, 50% free 2915K/5767K, external 1959K/2091K, paused 9ms+9ms
09-10 14:07:31.826: DEBUG/AndroidRuntime(1657): Calling main entry com.android.commands.am.Am
09-10 14:07:32.726: INFO/ActivityManager(68): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.dg.tkd/.digital_tkd } from pid 1657
09-10 14:07:32.857: DEBUG/AndroidRuntime(1657): Shutting down VM
09-10 14:07:32.926: INFO/AndroidRuntime(1657): NOTE: attach of thread 'Binder Thread #3' failed
09-10 14:07:33.037: DEBUG/dalvikvm(1657): GC_CONCURRENT freed 102K, 69% free 319K/1024K, external 0K/0K, paused 4ms+2ms
09-10 14:07:33.108: DEBUG/jdwp(1657): Got wake-up signal, bailing out of select
09-10 14:07:33.108: DEBUG/dalvikvm(1657): Debugger has detached; object registry had 1 entries
09-10 14:07:33.327: WARN/ActivityManager(68): Activity pause timeout for HistoryRecord{40796458 com.android.launcher/com.android.launcher2.Launcher}
09-10 14:07:33.446: INFO/ActivityManager(68): Start proc com.dg.tkd for activity com.dg.tkd/.digital_tkd: pid=1666 uid=10036 gids={}
09-10 14:07:34.347: INFO/WindowManager(68): Setting rotation to 1, animFlags=1
09-10 14:07:34.386: INFO/ActivityManager(68): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=2 layout=18 uiMode=17 seq=49}
09-10 14:07:35.997: INFO/ActivityManager(68): Displayed com.dg.tkd/.digital_tkd: +2s584ms
09-10 14:07:37.786: DEBUG/dalvikvm(266): GC_EXPLICIT freed 8K, 54% free 2551K/5511K, external 716K/1038K, paused 381ms
09-10 14:07:38.046: WARN/IInputConnectionWrapper(1641): showStatusIcon on inactive InputConnection
09-10 14:07:38.337: DEBUG/dalvikvm(1641): GC_EXTERNAL_ALLOC freed 33K, 50% free 2899K/5767K, external 1953K/2091K, paused 88ms
09-10 14:07:38.896: DEBUG/dalvikvm(68): GC_EXPLICIT freed 298K, 47% free 4490K/8455K, external 3247K/3627K, paused 172ms
09-10 14:07:40.007: DEBUG/dalvikvm(1641): GC_EXTERNAL_ALLOC freed 48K, 50% free 2891K/5767K, external 2754K/2940K, paused 104ms
09-10 14:07:41.847: DEBUG/dalvikvm(317): GC_EXPLICIT freed 12K, 55% free 2578K/5703K, external 716K/1038K, paused 167ms
09-10 14:07:45.489: INFO/ActivityManager(68): Process android.process.media (pid 210) has died.
09-10 14:07:47.356: DEBUG/dalvikvm(341): GC_EXPLICIT freed 5K, 55% free 2520K/5511K, external 716K/1038K, paused 644ms
09-10 14:07:49.816: DEBUG/dalvikvm(1641): GC_EXTERNAL_ALLOC freed 9K, 51% free 2882K/5767K, external 5999K/7492K, paused 167ms
09-10 14:08:18.196: WARN/KeyCharacterMap(1666): No keyboard for id 0
09-10 14:08:18.196: WARN/KeyCharacterMap(1666): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
09-10 14:08:21.546: INFO/ActivityManager(68): Starting: Intent { cmp=com.dg.tkd/.about } from pid 1666
09-10 14:08:22.097: DEBUG/dalvikvm(1666): GC_EXTERNAL_ALLOC freed 65K, 52% free 2608K/5379K, external 908K/1038K, paused 97ms
09-10 14:08:23.776: INFO/ActivityManager(68): Displayed com.dg.tkd/.about: +2s112ms
I'm exporting my signed application and it gives a force close. But normally the unsigned version of the same app working correctly. How can i solve this?
Any Suggestions?
This is my apps log
08-17 14:58:00.000: V/AlarmManager(132): --- from triggerAlarmsLocked operation:
com.acer.android.widget.digitalclock
08-17 14:58:00.000: I/AlarmManager(132): ----Alarm type: 1Second:1345215600.0
08-17 14:58:00.000: I/AlarmManager(132): Alarm type : 1, from setRepeating operation : android
08-17 14:58:00.000: I/AlarmManager(132): ----Alarm type: 1Second:1345215540.0
08-17 14:58:00.170: V/AlarmManager(132): --- from triggerAlarmsLocked operation: com.google.android.gsf
08-17 14:58:00.170: I/AlarmManager(132): ----Alarm type: 0Second:1345216639.530000000
08-17 14:58:01.040: D/Finsky(643): [1] 5.onFinished: Installation state replication succeeded.
08-17 14:58:02.700: D/AndroidRuntime(6545): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
08-17 14:58:02.700: D/AndroidRuntime(6545): CheckJNI is OFF
08-17 14:58:02.810: D/AndroidRuntime(6545): Calling main entry com.android.commands.pm.Pm
08-17 14:58:02.810: D/AndroidRuntime(6545): Shutting down VM
08-17 14:58:02.810: I/AndroidRuntime(6545): NOTE: attach of thread 'Binder Thread #3' failed
08-17 14:58:02.820: D/dalvikvm(6545): GC_CONCURRENT freed 99K, 87% free 337K/2560K, paused 0ms+0ms
08-17 14:58:02.820: D/dalvikvm(6545): Debugger has detached; object registry had 1 entries
08-17 14:58:04.000: D/AndroidRuntime(6556): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
08-17 14:58:04.000: D/AndroidRuntime(6556): CheckJNI is OFF
08-17 14:58:04.130: D/AndroidRuntime(6556): Calling main entry com.android.commands.pm.Pm
08-17 14:58:04.170: D/dalvikvm(819): GC_EXPLICIT freed 76K, 11% free 6338K/7047K, paused 2ms+2ms
08-17 14:58:04.170: W/ActivityManager(132): No content provider found for:
08-17 14:58:04.190: D/PackageParser(132): Scanning package: /data/app/vmdl1300267645.tmp
08-17 14:58:04.190: W/ActivityManager(132): No content provider found for:
08-17 14:58:04.440: D/dalvikvm(132): GC_CONCURRENT freed 1889K, 38% free 17760K/28359K, paused 2ms+6ms
08-17 14:58:04.450: D/PackageManager(132): Scanning package air.com.cepall.bilgiyarismasi
08-17 14:58:04.450: I/PackageManager(132): Unpacking native libraries for /data/app/air.com.cepall.bilgiyarismasi-1.apk
08-17 14:58:04.590: D/dalvikvm(6565): DexOpt: load 10ms, verify+opt 87ms
08-17 14:58:04.640: D/PackageManager(132): Activities: air.com.cepall.bilgiyarismasi.BilgiYarismasiActivity air.com.cepall.bilgiyarismasi.SoruGonderSayfasi air.com.cepall.bilgiyarismasi.KategoriSayfasi air.com.cepall.bilgiyarismasi.YarismaSayfasi air.com.cepall.bilgiyarismasi.OyunBittiSayfasi air.com.cepall.bilgiyarismasi.AyarlarSayfasi air.com.cepall.bilgiyarismasi.SkorGonderSayfasi air.com.cepall.bilgiyarismasi.SkorGonderildiSayfasi air.com.cepall.bilgiyarismasi.OdulluYarismaSayfasi air.com.cepall.bilgiyarismasi.FacebookLib
08-17 14:58:04.640: I/ActivityManager(132): Force stopping package air.com.cepall.bilgiyarismasi uid=10077
08-17 14:58:04.740: D/PackageManager(132): New package installed in /data/app/air.com.cepall.bilgiyarismasi-1.apk
08-17 14:58:04.920: D/PackageManager(132): generateServicesMap(android.accounts.AccountAuthenticator): 4 services unchanged
08-17 14:58:04.940: I/Launcher(216): setLoadOnResume
08-17 14:58:04.950: D/GTalkService(257): [GTalkService.1] handlePackageInstalled: re-initialize providers
08-17 14:58:04.950: D/GTalkService(257): [RawStanzaProvidersMgr] ##### searchProvidersFromIntent
08-17 14:58:04.970: I/AlarmManager(132): Alarm type : 0, from setRepeating operation : com.android.vending
08-17 14:58:04.970: D/PackageManager(132): generateServicesMap(android.content.SyncAdapter): 13 services unchanged
08-17 14:58:04.970: I/AlarmManager(132): ----Alarm type: 0Second:1345215499.982000000
08-17 14:58:04.980: I/AccountTypeManager(280): Loaded meta-data for 3 account types, 2 accounts in 5ms
08-17 14:58:05.020: D/dalvikvm(280): GC_CONCURRENT freed 380K, 9% free 6831K/7495K, paused 37ms+13ms
08-17 14:58:05.190: D/dalvikvm(132): GC_EXPLICIT freed 1148K, 38% free 17834K/28359K, paused 5ms+13ms
08-17 14:58:05.190: D/AndroidRuntime(6556): Shutting down VM
08-17 14:58:05.200: D/dalvikvm(6556): GC_CONCURRENT freed 100K, 87% free 341K/2560K, paused 1ms+1ms
08-17 14:58:05.200: D/jdwp(6556): Got wake-up signal, bailing out of select
08-17 14:58:05.200: D/dalvikvm(6556): Debugger has detached; object registry had 1 entries
08-17 14:58:05.210: I/AndroidRuntime(6556): NOTE: attach of thread 'Binder Thread #3' failed
08-17 14:58:05.300: D/BatteryService(132): level:12 scale:100 status:3 health:2 present:true voltage: 3675 temperature: 309 technology: Li-ion AC powered:false USB powered:false icon:17302707 invalid charger:0
08-17 14:58:05.360: D/dalvikvm(216): GC_CONCURRENT freed 2654K, 45% free 13381K/24007K, paused 2ms+5ms
08-17 14:58:05.370: D/AndroidRuntime(6571): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
08-17 14:58:05.370: D/AndroidRuntime(6571): CheckJNI is OFF
08-17 14:58:05.510: D/AndroidRuntime(6571): Calling main entry com.android.commands.am.Am
08-17 14:58:05.510: I/ActivityManager(132): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=air.com.cepall.bilgiyarismasi/.BilgiYarismasiActivity } from pid 6571
08-17 14:58:05.530: D/AndroidRuntime(6571): Shutting down VM
08-17 14:58:05.530: I/AndroidRuntime(6571): NOTE: attach of thread 'Binder Thread #3' failed
08-17 14:58:05.540: D/dalvikvm(216): GC_CONCURRENT freed 1927K, 44% free 13500K/24007K, paused 2ms+10ms
08-17 14:58:05.540: D/dalvikvm(6571): GC_CONCURRENT freed 102K, 86% free 368K/2560K, paused 1ms+1ms
08-17 14:58:05.540: D/jdwp(6571): Got wake-up signal, bailing out of select
08-17 14:58:05.540: D/dalvikvm(6571): Debugger has detached; object registry had 1 entries
08-17 14:58:05.550: I/ActivityManager(132): Start proc air.com.cepall.bilgiyarismasi for activity air.com.cepall.bilgiyarismasi/.BilgiYarismasiActivity: pid=6580 uid=10077 gids={3003}
08-17 14:58:05.620: D/TabletStatusBar(186): lights on
08-17 14:58:05.680: D/dalvikvm(6580): GC_FOR_ALLOC freed 40K, 5% free 6360K/6659K, paused 31ms
08-17 14:58:05.690: I/dalvikvm-heap(6580): Grow heap (frag case) to 7.775MB for 1536016-byte allocation
08-17 14:58:05.770: D/dalvikvm(6580): GC_CONCURRENT freed 0K, 5% free 7860K/8199K, paused 2ms+3ms
08-17 14:58:05.830: D/dalvikvm(216): GC_CONCURRENT freed 1730K, 43% free 13778K/24007K, paused 2ms+9ms
08-17 14:58:05.870: D/dalvikvm(6580): GC_FOR_ALLOC freed 27K, 3% free 8004K/8199K, paused 33ms
08-17 14:58:05.940: D/dalvikvm(6580): GC_CONCURRENT freed 43K, 3% free 8528K/8711K, paused 3ms+5ms
08-17 14:58:05.990: I/ActivityManager(132): Starting: Intent { cmp=air.com.cepall.bilgiyarismasi/.AyarlarSayfasi (has extras) } from pid 6580
08-17 14:58:06.040: D/HAL(6580): [HAL] hw_get_module:share library path:/system/lib/hw/gralloc.tegra.so
08-17 14:58:06.360: I/ActivityManager(132): Displayed air.com.cepall.bilgiyarismasi/.AyarlarSayfasi: +317ms (total +817ms)
08-17 14:58:06.360: D/TabletStatusBar(186): lights on
08-17 14:58:06.380: I/ActivityManager(132): No longer want com.metago.astro (pid 6019): hidden #16
08-17 14:58:08.250: D/dalvikvm(6580): GC_CONCURRENT freed 236K, 5% free 8952K/9351K, paused 2ms+2ms
08-17 14:58:12.220: D/dalvikvm(829): GC_EXPLICIT freed 79K, 6% free 7199K/7623K, paused 4ms+2ms
08-17 14:58:12.530: D/TabletStatusBar(186): lights on
08-17 14:58:12.540: W/InputManagerService(132): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy#41ccb688 (uid=1000 pid=6176)
08-17 14:58:12.740: D/dalvikvm(205): GC_FOR_ALLOC freed 2497K, 30% free 7589K/10695K, paused 29ms
08-17 14:58:12.740: I/dalvikvm-heap(205): Grow heap (frag case) to 9.271MB for 1848336-byte allocation
08-17 14:58:12.780: D/dalvikvm(205): GC_CONCURRENT freed 0K, 13% free 9394K/10695K, paused 3ms+2ms
08-17 14:58:17.820: D/dalvikvm(879): GC_EXPLICIT freed 33K, 6% free 6506K/6919K, paused 14ms+2ms
08-17 14:58:19.970: V/AlarmManager(132): --- from triggerAlarmsLocked operation: com.google.android.gsf
08-17 14:58:19.970: I/AlarmManager(132): ----Alarm type: 0Second:1345216639.530000000
08-17 14:58:20.130: D/Finsky(643): [1] 5.onFinished: Installation state replication succeeded.