android


Android Memory leak on reference view


I've wrote a simple HTTP request, that handles my HTTP requests so i don't want to use a library
everything works with the requests but there are a few memory leaks, I have found a memory leak but i don't know how to solve it
This is my file class
https://gist.github.com/BioGram/6e7a6ae927e76046ee1aa5d5e7b3ff57#file-requesthandler-java-L173
line 173 that BitmapView will leaks
Would be appreciated, if you provide a solution
The memory leak problem occurs when you are trying to process a big file like a big bitmap. To prevent this issue, you have two ways. First is to reduce the size of the image before processing it. Second is to add this line given below in your Android manifest "Application" tag.
android:largeHeap="true"
I've found a better solution, Instead of using a direct reference using a bitmap callback so problem solve
Updated Version:
https://github.com/BioGram/Android/commit/e981bd225e1960aec2ddee58461dde1e64db2c61

Related Links

How to hide/encrypt/confuse direct URLs used in my Android application? [duplicate]
Executing a Code after activity is displayed
Android NFC Android Application Records Error
windows 7 adb driver Samsung galaxy S3
How can I make images disappear from a grid view on touch?
A different make file for each architecture - Android NDK
onListItemClick stops working after one click
non full screen activity
Referencing the Facebook SDK in my Android project
How to add Android-ViewPagerIndicator library to maven project
Where are Shared Preferences saved on Nexus S? [duplicate]
Android Spawn Enemies by time
Using CursorLoader to get contacts causes duplication
Make Datepicker look on Android 4.0 as 2.x
getting error as document is empty(size 0kb) when opening pdf file in micromax funbook
Accept a RatingBar value when the default value is selected

Categories

HOME
android
assembly
porting
paraview
deep-learning
ecmascript-6
phpmyadmin
rsa
interface
apiblueprint
error-handling
owl-carousel
newrelic
scripting
babeljs
pearson-correlation
vsm
spring-session
webix
syntaxnet
32bit-64bit
jquery-ui-sortable
heap
rtf
mongodb-csharp
do-while
esoteric-languages
dimensional-modeling
forgot-password
microsoft-ocr
blade
fat
android-sharedpreferences
ms-access-web-app
amazon-quicksight
browser-sync
userdefaults
dotspatial
cognos-bi
spring-security4
android-sugarorm
linkedhashmap
browser-extension
processwire
openalpr
node-mssql
linq-to-objects
builder
openrasta
sonarlint-eclipse
serde
facebook-pixel
datamaps
openblas
convex-optimization
singleinstance
excel-dna
lsyncd
flyout
swingworker
grails-plugin
parfor
seek
i386
dimension
nss
project-organization
cda
cortex-m
mobiledoc-kit
relativelayout
linklabel
java-money
oracle-spatial
roadkill-wiki
phonertc
toolkit
omnifaces
fail2ban
beatsmusic
filesplitting
paw
maven-scm
dsym
kendo-dataviz
ice-cube
asdf
composite-component
mantle
cardreader
web-farm
boost-signals
apache-whirr
urlrewriter
flex-mobile
procedures
user-tracking
winmain
lr
quotation-marks
ruby-1.8
ie-compatibility-mode
hbm2java
contentpresenter

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App