How to read crash dump of Android

by koba » Sat, 14 May 2011 21:35:17 GMT


Sponsored Links
 Hi, I wrote about crash dump in my blog.

objdump -S is useful to see source code from object.

"How to read crash dump of Android"
 http://kobablog.wordpress.com/2011/05/14/how-to-read-crash-dump-of-android/ 

crash dump is generated by debuggerd.

"debuggerd of Android"
 http://kobablog.wordpress.com/2011/05/12/debuggerd-of-android/ 

-- 



Other Threads

1. Send message from Android emulator to web

I have been trying to send message from the android emulator to the
web server by using HttpURLConnection. In the server side I use php to
read the sent message and keep it in database (mysql). when I send the
message, a blank row is added in the database, but the message sent
doesn't appear. I think the emulator can communicate with the server
but I don't know what happens to the message. Please help me.

Here is my Android and PHP code:

        URL url = new URL("http://10.0.2.2/receiveSampleAndroid.php");

        HttpURLConnection httpCon = (HttpURLConnection)url.openConnection();
        httpCon.setDoInput(true);
        httpCon.setDoOutput(true);
        httpCon.setRequestMethod("POST");
        httpCon.setUseCaches(false);
        httpCon.setRequestProperty("Connection", "Keep-Alive");
        DataOutputStream out = new DataOutputStream(httpCon.getOutputStream
());
        DataInputStream in      = new DataInputStream(httpCon.getInputStream());

        String value = "msg content";
        String Boundary = "`";
        out.write(value.getBytes());
        out.write(Boundary.getBytes());
        out.flush();

        int responseCode = httpCon.getResponseCode();

        switch(responseCode)
        {
                case HttpURLConnection.HTTP_OK:
                case HttpURLConnection.HTTP_CREATED:
                        Toast.makeText(getBaseContext(), "Message is sent",
Toast.LENGTH_LONG).show();
                        int httpReslut = 1;
                        int ch;
                        in.readByte();
                        in.readByte();
                        in.readByte();
                        break;

                default:
                        //not ok
        }

        httpCon.disconnect();
        in.close();
        out.close();


My PHP Code is:


<?php

if(isset($_POST))
{

$string = file_get_contents('php://input');
$boundary = "`";
$data = explode($boundary,$string);


/**********************************************************
Content of the Message is Store in local variable
***********************************************************/

$id = $data[0];

$name = $data[1];

$fname = $data[2];


/**********************************************************
Connect to database, Sample_android and

***********************************************************/

mysql_connect("localhost","root","root") or die("Server Connection
Error");
mysql_query("use sample_android") or die("Can not communicate with the
database.");

//Insert patient record in patient_record table
$sql_InsertPatientRecord = "insert into sample(id, name, fname) values
('$id', '$name', '$fname')";
mysql_query($sql_InsertPatientRecord);
mysql_close();
echo "Message is inserted";

}

?>

-- 

2. source code to launch the emulator

can anybody share the emulator dependent source files.
we are using avd in the emulator for selecting the skin.
so how this avd function is called in the source code. and emulator is
launching  .

is there any maximum resolution set to the emulator??

thanks in advance

-- 

3. changes made to get 1280X720 resolution??

4. How to pass large amount of data during startActivityForResult

5. Saving service killing without "startForeground"

6. Managed dialogs with state changes

7. Getting a Gmail new message intent