java - App crash when receiving data size 30 MB is loaded about 50% from bluetooth -


i new android dev , app developing send data format byte array via bluetooth , have use bluetooth library here.it easy use , lite weigth. ,app running fine when size of data <= 15 mb.but app crash happen when receiving data size 30 mb loaded in progress bar 50 % . don't know why , how fix it.

another question, have implement recieved data activity service.but when service start allocate memory 20 mb , alway increase allocate ram when reciveing data .finally app crash again

there limit on memory allocated java code. max allocated size depends on android version , device vendor.


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -