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
problem.

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.

Doug

-- 


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

Hey,

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

expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}
Envelope (position: START_TAG <definitions name='BlogSearch'
targetNamespace='http://www.tbs.be/mgf/definitions'>@9:47 in
java.io.inputstreamrea...@4375e2c8)

This is my code

[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.app.Activity;
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 = "http://3bstest.appspot.com/
SearchBlog";
    private static final String METHOD_NAME = "SearchBlog";
    private static final String NAMESPACE = "http://www.tbs.be/";
    private static final String URL = "http://3bstest.appspot.com/wsdl/
blog.wsdl";

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        fConnect = (Button) findViewById(R.id.connect);
        fConnect.setOnClickListener(this);
    }

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

                                SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);
                                envelope.setOutputSoapObject(request);
                                request.addProperty("Title", "Test");
                                request.addProperty("PublishedDate", 
"2002-05-30T09:00:00");

                                AndroidHttpTransport androidHttpTransport = new
AndroidHttpTransport(URL);
                                androidHttpTransport.call(SOAP_ACTION, 
envelope);

                                SoapObject result = (SoapObject) 
envelope.bodyIn;
                                SOAPResult.setText(result.toString());
                        } catch (Exception e) {
                                SOAPResult.setText(e.getMessage());
                        }
                }
        }

}
[/code]

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

Thanks!

-- 

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