java.lang.OutOfMemory decoding Bitmaps

by AlexBonel » Thu, 03 Mar 2011 04:35:32 GMT

Sponsored Links
 I know that there are a lot of topics in our group, related with this
one. But I would specify the most intelligent methods to avoid this

Is it always necessary to use recycle() method to free an allocated
memmory, because As I understand correctly BitmapFactory.decode...
(...) methods were made as using native code?


Re: java.lang.OutOfMemory decoding Bitmaps

by Doug » Fri, 04 Mar 2011 14:48:00 GMT


No, but it will free up the memory immediately instead of having to
wait for the GC to do it on its own time.



Sponsored Links

Re: java.lang.OutOfMemory decoding Bitmaps

by AlexBonel » Wed, 09 Mar 2011 02:00:06 GMT

 Oh, I see. Thanks for explanation, Doug.


Other Threads

1. Url to app example on Document is not valid

This URI is not an http one. Only the Android Market app can open this
URL directly. The browser cannot.
And also, you cannot open this URL using any Http requests. Http
requests are only meant for http/https connections.

Thanks and Regards,
Kumar Bibek


2. Error: expected: START_TAG


I'm getting this error when trying to send a SOAP message to a web
service on Google App Engine..

expected: START_TAG {}
Envelope (position: START_TAG <definitions name='BlogSearch'
targetNamespace=''>@9:47 in

This is my code

package be.tbs.mgf.droidnet;

import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.AndroidHttpTransport;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class DroidNet extends Activity implements OnClickListener {
        private Button fConnect;
        private static final String SOAP_ACTION = "
    private static final String METHOD_NAME = "SearchBlog";
    private static final String NAMESPACE = "";
    private static final String URL = "

    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {

        fConnect = (Button) findViewById(;

        public void onClick(View v) {
                if (v == fConnect) {
                        Log.i("<info>", "Geclickt!");
                        final TextView SOAPResult = 
                        try {
                                SoapObject request = new SoapObject(NAMESPACE, 

                                SoapSerializationEnvelope envelope = new
                                request.addProperty("Title", "Test");

                                AndroidHttpTransport androidHttpTransport = new

                                SoapObject result = (SoapObject) 
                        } catch (Exception e) {


Anyone has a clue of what's going on? I'm just a beginning developer,
so any help is appreciated..



3. Unable to compile a fully working AOSP android for Hero

4. Complains of shrinking font sizes

5. JVM tool interface support? in android vm - I want to register get/set hooking callback function at my class

6. Unable to reject the incoming call

7. 3