When I connect BLE device with my Nexus7 and Samsung Galaxy S3 with Android 4.3 , it connects and works fine.
When I try to connect programatically, it pairs(I can see logs and changing of the state to the paired).
But when I am trying connect and work with,there are different problem such as no service discovered and so on.
When I connect Samsung S3 with native android tools, it works, services is discovered and app works.
On Nexus 7 doesn't work even after native connection.
Logs that cause problems(At least I think so):
10-31 10:24:09.219: W/bt-l2cap(10778): L2CA_EnableUpdateBleConnParams - unknown BD_ADDR e0c79d649927
10-31 10:24:09.219: E/bt-btm(10778): btm_sec_disconnected - Clearing Pending flag
10-31 10:24:09.219: E/bt-btif(10778): Unknown conn ID: 3
10-31 10:24:09.219: E/bt-btif(10778): property type:3, len:0 is invalid
10-31 10:24:09.219: E/(10778): ### ASSERT : external/bluetooth/bluedroid/main/../btif/src/btif_dm.c line 1125 storing remote services failed (1) ###
10-31 10:24:09.219: E/BluetoothRemoteDevices(10778): devicePropertyChangedCallback: bdDevice: E0:C7:9D:64:99:27, value is empty for type: 3
Related
I've recently tried implementing Pusher's Chatkit into my android app along with some Kotlin plugins and am now running into this error that I cannot resolve.
E/Drawable: Unable to decode stream: android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'Input contained an error.
the error I'm getting right below it is:
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
Which is through throwing me for a loop because my internet is working fine although a couple lines further down, I get:
W/Firestore: (21.3.0) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds.
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
Process 15216 terminated.
Note: I've started to get this error above about not having a good connection ever since I started working more at cafes instead of at home since I needed to get out. In order to work offline, firebase asked me to opt into an offline mode I've been getting this notification of not being able to connect ever since.
I am following along to the getting started page here and have completed up to the end of the "Displaying Messages" section however when I go to the activity, it just stalls and blanks out. I have been searching StackO and the rest of the web for the past 2 days to try to resolve the conflict to no avail. All of the similar posts I have looked at dont seem to resolve the issue.
similarPost#1 but I'm not trying to save to a bitmap
Here is the entire stack trace:
E/Drawable: Unable to decode stream: android.graphics.ImageDecoder$DecodeException: Failed to create image decoder with message 'unimplemented'Input contained an error.
E/FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE
W/DynamiteModule: Local module descriptor class for providerinstaller not found.
I/DynamiteModule: Considering local module providerinstaller:0 and remote module providerinstaller:0
W/ProviderInstaller: Failed to load providerinstaller module: No acceptable module found. Local version is 0 and remote version is 0.
I/ghborsbookshel: The ClassLoaderContext is a special shared library.
I/chatty: uid=10086(com.example.android_myneighborsbookshelf) AsyncTask #2 identical 1 line
I/ghborsbookshel: The ClassLoaderContext is a special shared library.
V/NativeCrypto: Registering com/google/android/gms/org/conscrypt/NativeCrypto's 286 native methods...
W/ghborsbookshel: Accessing hidden method Ljava/security/spec/ECParameterSpec;->getCurveName()Ljava/lang/String; (light greylist, reflection)
I/ProviderInstaller: Installed default security provider GmsCore_OpenSSL
W/Firestore: (21.3.0) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
Process 15216 terminated.
It seems to have fixed itself except for the unable to decode stream error however it doesn't crash, it just shows up in the log.
I checked for updates, cleaned, rebuild, invalidated caches and restarted, and shut down my emulator. I also restarted my computer completely 2x and that seems to have fixed it.
Every time I run to debug app on my Nexus 6P (Android Oreo), the app will get deployed, starts briefly and then exits and Visual Studio (2015) will stop debug process and show following message
Android application is debugging.
Couldn't connect to logcat, GetProcessId returned: 0
Checking Logcat shows lots of errors, 2 of which are predominant
Time Device Name Type PID Tag Message
09-29 13:03:50.240 Huawei Nexus 6P Error 11451 o.mz java.lang.NoClassDefFoundError: o.ʖ
at o.ʷ.ˏ(:363)
at o.Г.ॱ(:247)
at o.Г.ˋ(:141)
at o.ץ.ˎ(:406)
at o.ץ.ˋ(:4352)
at o.ץ.ॱ(:244)
at o.ץ.ˊ(:142)
at o.ᴄ.ॱ(:476)
at o.Ḯ.ˋ(:3890)
at o.Ḯ.ॱ(:3784)
at o.mz$If.onMessage(:3899)
at okhttp3.internal.ws.RealWebSocket$1.onMessage(:62)
at okhttp3.internal.ws.WebSocketReader.readMessageFrame(:242)
at okhttp3.internal.ws.WebSocketReader.processNextFrame(:108)
at okhttp3.internal.ws.RealWebSocket.readMessage(:97)
at okhttp3.ws.WebSocketCall.createWebSocket(:152)
at okhttp3.ws.WebSocketCall.access$000(:41)
at okhttp3.ws.WebSocketCall$1.onResponse(:97)
at okhttp3.RealCall$AsyncCall.execute(:126)
at okhttp3.internal.NamedRunnable.run(:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
and the 2nd and most dominant error is
Time Device Name Type PID Tag Message
09-29 13:04:34.666 Huawei Nexus 6P Error 3759 QC-QMI linux_qmi_qmux_io_wake_lock: Err in writing wakelock=qmuxd_port_wl_0, error [1:Operation not permitted]
hi am not able to send and receive file when try to send form alljoyn sample demo.
I have use 16.4 jar and .so file for that provide by alljoyn.
Here is provided jar and .so
https://github.com/onbiron/AllJoyn
I am getting that kind of error when try to join session.
12-19 17:42:04.371 14705-14823/org.alljoyn.cops.filetransfer.sampleapp E/PERMISSION_MGR: 1.906 ****** ERROR PERMISSION_MGR lepDisp2_0 ...ndroid/PermissionDB.cc:182 | Failed to open /data/system/packages.xml: ER_FAIL
12-19 17:42:35.739 14705-14867/org.alljoyn.cops.filetransfer.sampleapp E/ALLJOYN_OBJ: 33.275 ****** ERROR ALLJOYN_OBJ JoinS-2 .../router/AllJoynObj.cc:2870 | SendAttachSession failed: ER_BUS_REPLY_IS_ERROR_MESSAGE
12-19 17:42:35.739 14705-14865/org.alljoyn.cops.filetransfer.sampleapp E/ALLJOYN_OBJ: 33.275 ****** ERROR ALLJOYN_OBJ JoinS-1 .../router/AllJoynObj.cc:2870 | SendAttachSession failed: ER_BUS_REPLY_IS_ERROR_MESSAGE
12-19 17:42:35.744 14705-14867/org.alljoyn.cops.filetransfer.sampleapp E/ALLJOYN_OBJ: 33.280 ****** ERROR ALLJOYN_OBJ JoinS-2 .../router/AllJoynObj.cc:1110 | Failed to attach session 3934278432 to :LL5lO2PF.2: ER_BUS_REPLY_IS_ERROR_MESSAGE
12-19 17:42:35.744 14705-14865/org.alljoyn.cops.filetransfer.sampleapp E/ALLJOYN_OBJ: 33.280 ****** ERROR ALLJOYN_OBJ JoinS-1 .../router/AllJoynObj.cc:1110 | Failed to attach session 3934278432 to :LL5lO2PF.2: ER_BUS_REPLY_IS_ERROR_MESSAGE
12-19 17:42:36.206 14705-17188/org.alljoyn.cops.filetransfer.sampleapp E/LOCAL_TRANSPORT: 33.742 ****** ERROR LOCAL_TRANSPORT lepDisp2_0 ...src/LocalTransport.cc:597 | LocalEndpoint::DoPushMessage failed: ER_BUS_UNMATCHED_REPLY_SERIAL
12-19 17:42:36.209 14705-17225/org.alljoyn.cops.filetransfer.sampleapp E/LOCAL_TRANSPORT: 33.745 ****** ERROR LOCAL_TRANSPORT lepDisp2_1 ...src/LocalTransport.cc:597 | LocalEndpoint::DoPushMessage failed: ER_BUS_UNMATCHED_REPLY_SERIAL
12-19 17:42:37.869 14705-14747/org.alljoyn.cops.filetransfer.sampleapp E/Surface: getSlotFromBufferLocked: unknown buffer: 0xb9327058
12-19 17:42:39.866 14705-14747/org.alljoyn.cops.filetransfer.sampleapp E/Surface: getSlotFromBufferLocked: unknown buffer: 0xb944b690
Note that the AllJoyn File Transfer service app hasn't had a commit in 3 years, and is marked as legacy/archived. It is not active.
The issue that you mention appears to be a timeout during the join request. This has not been a significant problem for me (only saw it once over several days, and workaround was to simply retry joining the session which was then successful). I believe this timeout can happen very infrequently when there is congestion/delays in the network.
However, I did experience several other issues with this app when running it on Android 6.0, which prevented file transfers from working. These included:
Unable to read/write files from the device. Need to request read/write permissions at run-time even though they were already in the manifest. This appears to be necessary from Android version 6.0 and later (API level 23+). See https://stackoverflow.com/a/38989237/7281796
The app uses a hard-coded save directory path of /mnt/sdcard. This path doesn't existing on my Nexus 5 running 6.0.1. Need to use the Environment.getExternalStorageDirectory() absolute path rather than using hard-coded path.
Restarting one of the two apps would cause file transfer between peers to no longer work (unless the other app was also restarted). Need to use a SessionListener to release connection objects and reset GUI view on receipt of session lost.
Handle case where duplicate join-session processing occurs when multiple concurrent Found Advertisements are received from the hosting app. This was causing the GUI list-view of available peers to display duplicate peer entries. Also caused "share file" to subsequently fail due to ER_BUS_NO_SUCH_OBJECT when app attempts to send an alljoyn signal over the session.
Fixes for these issues are available in my github repository (fork of the AllJoyn File Transfer service app): https://github.com/psigurdson/alljoyn-services-filetransfer
My Android cordova-based app crashes on an Motorola Droid Turbo 2, Android Version 6.0. The app runs fine on many other devices/platforms - including my android phone. I can crash the app by making a selection in a completely barebones dropdown.
ADDITIONAL DETAILS (new 5/27/16): 1.) The app does not always crash the first time. Sometimes he can tap on 2 or 3 dropdowns. 2.) The user has another app on his phone, which I built with the same architecture, and it runs fine.
UPDATE: I finally followed USKMobility's tip and handled the whitelist error I had been getting, and got different message right before the app crashes. I have updated them in the block below.
Here are the crucial logcat lines. They start with when I tap the dropdown.
04-30 11:28:26.619: W/Adreno-GSL(9728): <gsl_ldd_control:475>: ioctl fd 38 code 0x40180917 (IOCTL_KGSL_CMDSTREAM_FREEMEMONTIMESTAMP_CTXTID) failed: errno 22 Invalid argument
04-30 11:28:26.620: W/Adreno-GSL(9728): <gsl_ldd_control:475>: ioctl fd 38 code 0x40180917 (IOCTL_KGSL_CMDSTREAM_FREEMEMONTIMESTAMP_CTXTID) failed: errno 16 Device or resource busy
04-30 11:28:26.635: I/Adreno(9728): DequeueBuffer: dequeueBuffer failed
04-30 11:28:26.692: W/google-breakpad(9728): Microdump crash handler failed.
04-30 11:28:26.707: A/libc(9728): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x7f576c0000 in tid 9780 (Chrome_InProcGp)
Another update is that I the app no longer crashes consistently on the first time I use a dropdown. Sometimes I can use 3-5 dropdowns before it crashes. Ideas?
I have an android application, when I deploy it to my Samsung Galaxy Note 4, and run the apps, the first time it run, it works fine. However, if I exit out the app and activate it again, it failed to connect to the server. After several attempt to try it again, occasionally it will work again.
Here is the code that resides in wlCommonInit:
WL.Client.connect(
{
onSuccess:connectivityCheckSuccess,
onFailure:connectivityCheckFailure,
timeout:5000
});
When it failed it will execute "connectivityCheckFailure" callback function
Here is the log showing in logcat:
01-12 11:49:31.099: D/NONE(17766): Request [/apps/services/api/Macros/android/init]
01-12 11:49:31.309: D/GCMClientFactory(17766): GCMClientFactory.useGooglePlayServices in GCMClientFactory.java:42 :: Google Play Services is not used because the play services library is not found. So using the default GCM helper implementation.
01-12 11:49:31.319: D/GCMIntentService(17766): GCMIntentService.doWakefulWork in GCMIntentService.java:152 :: GCMIntentService : Received a registration message from the GCM server
01-12 11:49:31.319: D/GCMIntentService(17766): GCMIntentService.onUnregistered in GCMIntentService.java:186 :: GCMIntentService: Unregistered at the GCM server
01-12 11:49:36.129: E/NONE(17766): Request timeout for [/apps/services/api/Macros/android/init]
Which shows the init is timing out.
Can anybody give me an idea what is wrong?