Questions tagged [recycle]
338 questions
0
votes
2 answers
Thrown out ListView items
I'm currently having problems with a load of thumbnails in my android application. The thumbnails are displayed in list views and I'm wondering if there is a way for me to know which list items are currently in use and stored for faster scrolling,…

user3475789
- 3
- 1
0
votes
1 answer
Is it possible to recycle all data at OnStop() AND use a retainer Fragment?
1)It is considered a good tactic to recycle all bitmaps and data at activity's OnStop method.
2)It's also considered a good tactic to use a retainer Fragment to avoid recreating data at every configuration change.
But I don't see how these two can…

Anonymous
- 4,470
- 3
- 36
- 67
0
votes
5 answers
Converting letters to numbers and performing sequence of operations along the length in Python
What has been done already:
Each letter of a string comprised of fixed number of letters converted to a number:
e.g. "TAAPAS" is now "122324"
I was forced to perform this using the clunky code:
s = s1.replace("A", "2").replace("P",…

user4109233
- 3
- 2
0
votes
1 answer
Android ListView recycled - expandable item
I've created an expandable item for a ListView and the view is recycled correctly.
The problem is when I expand one of these items, some hidden items are also expanded, which is clearly what I don't want.
For example, if I expand the item in 2nd…

Manitoba
- 8,522
- 11
- 60
- 122
0
votes
2 answers
IIS7 apppool auto recycling causing upload issues
We have our main apppool on auto recycle every 10 minutes or so. Unfortunately at the moment this is a necessity to keep the site stable as there appear to be various issues causing this to be necessary.
The problem is that we've released an…

Tom Gullen
- 61,249
- 84
- 283
- 456
0
votes
1 answer
Memory Error While Rotating An Image
I'm trying to do a game in which i have to rotate a bitmap multiple times.But sometimes it shows Out Of Memory Error.How to solve this? Can anyone suggest me a way to recycle a bitmap or any other way out. This is the code I have written :
…

jincy abraham
- 579
- 2
- 9
- 21
0
votes
1 answer
Function param array, how to affect reference = [] or reference.concat(array2)?
So it could just be I'm crazy tired but I can't seem to figure this out.
I've been picking up javascript which I'm finding horrible coming from actionscript 3 where everything was typed. I had a function that referenced two array variables directly,…

Brennan
- 305
- 4
- 19
0
votes
1 answer
Recycle a bitmap and use it later?
Is there any way that I can recycle a bitmap and use it again later. When I recycle my bitmaps i can't use it later it gives me NullPointerException so is there any way to do it.
Thanks
user3926853
0
votes
3 answers
Issue of object.recycle, and when to do it
I have been fairly rigorous in recycling Notes Objects, but I have run into a situation where I can't recycle the object because it is passed back from a method to the calling code. So in a class I have this code:
public Database getAppDB() {
…

Bill F
- 2,057
- 3
- 18
- 39
0
votes
1 answer
Expandable listview - disable recycling of views
I am using an Expandable listview in Android and having huge problems with interactive EditTexts within the child items due to Android's recycle policy.
I was wondering if I could somehow disable this recycling (there won't be too many elements…

deimos1988
- 5,896
- 7
- 41
- 57
0
votes
2 answers
Reycle Bitmaps in Android
I am using google map view and adding markers to it using this code:
googleMap.addMarker(new…

deimos1988
- 5,896
- 7
- 41
- 57
0
votes
2 answers
Bitmap OutOfMemoryError even using recycle()
I have an app that shows a lot of activities, each one showing a bitmap that fits the 100% of the width of the screen and normally more than the 100% of the height.
When you touch the screen, a new activity is created, and in the previous activity…

NullPointerException
- 36,107
- 79
- 222
- 382
0
votes
0 answers
fragments in viewpager get recycled and not reloaded
I have fragments in a viewpager. The viewpager loads the fragments one index forward and one index behind the current index.
The user can scroll past the viewpager, and this uses more memory as other image objects are processed in other parts of the…

CQM
- 42,592
- 75
- 224
- 366
0
votes
1 answer
The adapter of listview is not working perefct
I want to show an animation on a listitem button. The animation works fine. some other buttons which I didn't clicked also shows the animation.I found that the problem will be with recycling views in adapters. Can anyone help me to handle this…

irfan
- 869
- 3
- 12
- 25
0
votes
0 answers
Error with Bitmap in DialogFragment
I'm developing an application which receives events from other application (login attempts), and then it shows the result of the login process in a dialog fragment. The login is done with Fingerprint recognition so in the result I need to show the…

Guillermo Merino
- 3,197
- 2
- 17
- 34