Questions tagged [recycle]

338 questions
0
votes
0 answers

Is there a way to monitor what processes or programs might be editing the web.config?

I have an issue on one of my servers where we are having recycling happening that is not planned. Further inspection results in the following errors: Event: Application End Process ID: 8716 Shut Down Message: HostingEnvironment initiated…
ThatOneGuy
  • 93
  • 1
  • 10
0
votes
2 answers

Understanding the ViewHolder pattern

I created an adapter for a ListView which has two types of rows. The ListView has 4 rows. The last row has a different layout, that's why i use the GetItemViewType method in getview I'm trying to understand how the pattern works. I watched…
Joske369
  • 505
  • 1
  • 6
  • 18
0
votes
1 answer

How to handle data missing after resume

I got some issue when I developing an App. After I minimized the app or turn the screen off, and open lot of other apps or reopen the phone after a long time. When I restart my app, it try to resume and keep showing the same page(with fragment). But…
楊翔宇
  • 11
  • 5
0
votes
1 answer

Does recycling a bitmap affect other copies of it in memory?

I'm resizing an array of bitmaps. Although the array loads fine (indicating there's enough memory to hold it) when I resize (shrink) the bitmaps stored in the array I encounter an OutOfMemory error. Here's the code that resulted in running out of…
0
votes
1 answer

Best practice recycling images android

I have a game where four images are displayed, the user answers a question and then re-display four different ones. I display images creating a Bitmap and load them from assets folder. Which is the best practice, call the method removeAllViews() of…
Jose19589
  • 81
  • 3
0
votes
0 answers

Recycling view while having periodic handler job on it

I want to make letters in my Views in ListView gradually disappear. I created a method like this inside my View class to change the alpha to 0 on every letter with delay using the Handler: public void clearLetter(final int textPosition, final…
serg66
  • 1,148
  • 1
  • 17
  • 31
0
votes
1 answer

"RuntimeException :Trying to reuse recycled bitmap"

I have a fragment that contains a simple viewpager which uses a fragmentStatePagerAdapter. When the user clicks on an item in a listview, the fragment mentioned above gets created and becomes visible. In the viewpager the fragment has, there's an…
DennisVA
  • 2,068
  • 1
  • 25
  • 35
0
votes
1 answer

Android bitmap.recycle() doesn't work

I'm trying to load an image from the gallery, but toSave.recycle() doesn't work. I mean when toSave.recycle() is called the screen becomes white, the app doesn't crash but the image is not shown. Do you have any suggestions? Here the code:…
Stark_kids
  • 507
  • 1
  • 5
  • 17
0
votes
1 answer

ListView view recycling messes up rows

I have an app that shows the schedule for a basketball team. It lists the games they already played and then the upcoming games. I am altering the row layout depending on whether the game has been played. For example, if the game has been played, I…
user1282637
  • 1,827
  • 5
  • 27
  • 56
0
votes
0 answers

ListView item with HorizontalScrollView scroll offset recycled

I am having a ListView where each item contains HorizontalScrollView, I do implement a ViewHolder pattern (actually I use a custom view), so if view gets recycled and scrollview was scrolled, the scroll offset gets applied to an seemingly unrelated…
urSus
  • 12,492
  • 12
  • 69
  • 89
0
votes
0 answers

BaseAdapter: ViewHolder/Recycle + SwipeListView = trouble

Using BaseAdapter without recycling (inflating views everytime getView(...) is called) my animation and functionality to swipe inside my list item works fine (it also has images thats loading from web). @Override public View getView( final int…
Jonas Borggren
  • 2,591
  • 1
  • 22
  • 40
0
votes
2 answers

Android - bitmap operations, keep source bitmap or use second bitmap and recycle source

One would think that the second approach would be more efficient but I can't say that I see any improvement using it. Is there a difference between the following two ? (memmory wise ofcourse) Bitmap…
user2484359
0
votes
0 answers

bitmap memory management with bitmap recycle

This is quite a tricky one. I thought I had it resolved as it was working with my S2. But the problem has come back during testing HTC One M7. I have a welcome screen kind of app, which keeps displaying random (or same selected) images from a…
kaushal
  • 53
  • 4
0
votes
0 answers

Recycling data structures in java

I've made a program that can read an xml file in and print the values from it back out. The xml file it handles is very large with like 40,000 entries of different data, and so I made a generic TreeNode class to handle each of those entries.…
user2062207
  • 955
  • 4
  • 18
  • 34
0
votes
1 answer

How can I schedule a program to run whenever after iis recycle?

I need to run a program that warm up my app. Is there some way to schedule that whenever iis recycle? I'm using IIS 7.5.
Túlio Calazans
  • 179
  • 2
  • 15