Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I/System.out: (HTTPLog)-Static: isSBSettingEnabled false?

I am getting this when using a recycle view along with Picasso library to fetch images from sound cloud. The problem is that the app freezes for few seconds sometimes. Then, I get a message of skipping frames and doing too much work on the main thread. I am using retrofit to perform the Http connection.

I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
KnoxVpnUidStorageknoxVpnSupported API value returned is false
I/Choreographer: Skipped 102 frames!  The application may be doing too much work on its main thread.
like image 260
jelmood jasser Avatar asked Jun 15 '16 11:06

jelmood jasser


3 Answers

The reason for App freezing is because of the error " The application may be doing too much work on its main thread". The reason for this error is maybe you are trying to download images of a bigger size which is exceeding the app memory.Using large size images or resource files also causes this error. "isSBSettingEnabled false" is may be because of using HttpUrlConnection, this mainly occurs while using Samsung devices. Try using emulator.

like image 52
Jahnavi Nandamuri Avatar answered Nov 03 '22 20:11

Jahnavi Nandamuri


I may be too late but it can help someone. I encountered this situation in two case. First situation I was trying to download something big and doing simultaneous download, I was not quite sure if it was a problem but I changed the mechanism for download and used okhttp. Second time Yes it was also in downloading but this time it was a bad URL that I was using: http://example.com/file to download.pdf (look here space was the problem). Formatting the URL was the only thing to fix it.

like image 4
Ishimwe Aubain Consolateur Avatar answered Nov 03 '22 19:11

Ishimwe Aubain Consolateur


You can try to add this attribute to your part in the AndroidManifest.xml

android:usesCleartextTraffic="true"

This could solve the problem on my app.

like image 2
SparkRTG Avatar answered Nov 03 '22 19:11

SparkRTG