[android-developers] Re: Out of memory issue in Android

2011-03-08 Thread DanH
If you're getting an out of memory condition while CALCULATING the length of the byte array then the problem is on the other side of the keyboard. On Mar 3, 5:24 am, ROHIT wrote: > Hi, > I am using the byte array for storing the image. I want to store image > in binary format back to file. While

[android-developers] Re: Out of memory issue in Android

2011-03-08 Thread lbendlin
quote Romain Guy: "Your application uses too much memory". On Mar 3, 6:24 am, ROHIT wrote: > Hi, > I am using the byte array for storing the image. I want to store image > in binary format back to file. While calculating the length of byte > array, i am getting the Out of memory issue. > So pleas

[android-developers] Re: Out of Memory Issue in Android SimpleCursorAdapter

2010-05-31 Thread mike
hi Dmitri, according to my findings the newView method is not needed. only bindView is enough. now i have about 600 + contacts. this is the exception that i'm getting 05-31 13:39:22.180: ERROR/JavaBinder(564): java.lang.RuntimeException: No memory in memObj when i followed your instructions i h

[android-developers] Re: Out of Memory Issue in Android SimpleCursorAdapter

2010-05-31 Thread mike
hi Dmitri, according to my findings the newView method is not needed what should need is bindView method. now i have 600 + contacts this is the exception 05-31 13:39:22.180: ERROR/JavaBinder(564): java.lang.RuntimeException: No memory in memObj as you mention when i surrounded the method using a

[android-developers] Re: Out of Memory Issue in Android SimpleCursorAdapter

2010-05-31 Thread mike
hi Dmitri, thanks for your reply. any way i've tried to do what you ask me to do. in the @Override public View newView(Context context, Cursor cursor, ViewGroup parent) { // TODO Auto-generated method stub Cursor c =

[android-developers] Re: Out Of Memory issue

2008-12-09 Thread joshbeck
My bad. I'll defer to Romain on this. My apologies. Josh Beck On Dec 9, 8:36 am, Romain Guy <[EMAIL PROTECTED]> wrote: > There is absolutely no such limitation of 640k. > > On Dec 9, 2008 6:21 AM, "joshbeck" <[EMAIL PROTECTED]> wrote: > > I can maybe help here. I'm an amateur,  but the 'out of m

[android-developers] Re: Out Of Memory issue

2008-12-09 Thread joshbeck
I can maybe help here. I'm an amateur, but the 'out of memory' error is a familiar adversary. The VM only allows you to use 640k at any given time. I have a program that utilizes hundreds of large bitmap files. Here is how I decided to handle it. (It's clunky and inefficient, but it works.) -I

[android-developers] Re: Out Of Memory issue

2008-12-09 Thread Romain Guy
There is absolutely no such limitation of 640k. On Dec 9, 2008 6:21 AM, "joshbeck" <[EMAIL PROTECTED]> wrote: I can maybe help here. I'm an amateur, but the 'out of memory' error is a familiar adversary. The VM only allows you to use 640k at any given time. I have a program that utilizes hundr

[android-developers] Re: Out Of Memory issue

2008-12-09 Thread Romain Guy
Your app is just using too much memory. The maximum is 16 MB. On Dec 9, 2008 5:07 AM, "Guillaume Perrot" <[EMAIL PROTECTED]> wrote: When we have an OutOfMemoryError (either the MapView or huge images): we have a message (in logs) like "The VM won't allow us to allocate x bytes" or something like

[android-developers] Re: Out Of Memory issue

2008-12-09 Thread joshbeck
I can maybe help here. I'm an amateur, but the 'out of memory' error is a familiar adversary. The VM only allows you to use 640k at any given time. I have a program that utilizes hundreds of large bitmap files. Here is how I decided to handle it. (It's clunky and inefficient, but it works.) -I

[android-developers] Re: Out Of Memory issue

2008-12-09 Thread Guillaume Perrot
When we have an OutOfMemoryError (either the MapView or huge images): we have a message (in logs) like "The VM won't allow us to allocate x bytes" or something like "VM budget exceeded" I think it's a VM limitation. On Dec 8, 11:09 pm, Mark K <[EMAIL PROTECTED]> wrote: >   I've run into similar p

[android-developers] Re: Out Of Memory issue

2008-12-08 Thread Mark K
I've run into similar problems when rendering or successively rendering large bitmaps, can't tell if this is a specific bug, or just a limitation of the jvm. I haven't yet found a way to mitigate the problem. Mark On Dec 8, 12:47 pm, elephantbug <[EMAIL PROTECTED]> wrote: > Hi,