android-memory Questions
2
Solved
In a device when we go in Manage apps->running tab then at bottom we see the used memory & free memory live changing their value.
How can we code it to my app to display just the same st...
Cockade asked 10/10, 2014 at 8:51
2
Solved
In some of my apps I use a few singleton objects as "managers." I instantiate them in Application.onCreate and I pass them the ApplicationContext, which I store in a WeakReference.
Some of the "m...
Scissor asked 23/10, 2013 at 1:23
2
I have a layout memory issue. When I have a large webview it doesn't shows anything and the logcat shows "View too large to fit into drawing cache".
The layout is:
<ScrollView
android:id="@+i...
Sciamachy asked 3/4, 2013 at 14:34
1
Solved
I guess Dalvik heap is fixed for android app. like 64MB, 96MB etc.
is it right ?.
If so, is native heap is also fixed to some size ? or will grow depending on the app usage?
can anyone please he...
Delicate asked 12/6, 2014 at 12:53
7
I am getting this weird OutOfMemoryError that occurs although the dalvikvm reports enough heap space. Logs:
12-09 14:16:05.527: D/dalvikvm(10040): GC_FOR_ALLOC freed 551K, 21% free 38000K/47687K, ...
Scrutinize asked 9/12, 2013 at 13:41
1
I am trying to programmatically analyze an hprof file.
Using the hprof-conv tool in the android-sdk I generated a bunch of com.your.package.index files.
How do I programmatically parse these .inde...
Nitrogenous asked 12/4, 2013 at 19:56
5
stopWriting = (Button) findViewById(R.id.save);
stopWriting.setOnClickListener(new OnClickListener() {
@SuppressLint("SdCardPath")
public void onClick(View v) {
// stop recording the sensor d...
Ostraw asked 8/11, 2013 at 7:8
0
I use the following code to dump memory usage in my app:
public static void dumpMemoryUsage(Context ctx) {
try {
MemoryInfo mi = new MemoryInfo();
double allocated = new Double(Debug.getNativeH...
Girl asked 12/10, 2013 at 9:41
2
Solved
I am using an image to set as the background for all my activities but it was causing a memory overflow issue and crash the app. Now I am unbinding my drawables on pause() and on Destroy() in my ac...
Amazed asked 12/9, 2012 at 19:34
1
Solved
I tried to put a catch around the picture file decoding, but it fails to catch the out of memory exception, and the app crashes.
I know some tricks in decode a picture file, such as subsampling.
B...
Passe asked 16/7, 2013 at 1:1
3
I came across many questions in stackoverflow regarding this error but non of them found explaining a proper solution for my scenario.
In my android application I have to allow the user to click a...
Queeniequeenly asked 21/6, 2013 at 13:19
6
I and some team members developed an android application which collects data on field with mobile.
Now this application is going to production. So general people will use this application.
We also ...
Tremble asked 12/3, 2013 at 9:55
5
Before enabling largeHeap option, I was handling large bitmaps and it's consume almost the entire memory available for the application, and recycling it over navigation and loading new ones works r...
Froh asked 3/10, 2012 at 20:42
1
Solved
I was recently asked some questions in an interview about Android. I searched for some of them but I couldn't find the suitable resources and answers. So I wanted to share it with you here.
What ...
Crone asked 4/8, 2012 at 22:27
© 2022 - 2024 — McMap. All rights reserved.