Android Log File Sample

Posted on June 11, 2011
import android.util.Log;

 

private static final String TAG = "Droid1";
Log.i(TAG, "--- Raw stream test ---");

Android SDK Versions Available

Posted on March 30, 2011
Android SDK Version     Value
=============================

Android 1.0   SDK         1
Android 1.1   SDK         2
Android 1.5   SDK         3
Android 1.6   SDK         4
Android 2.0   SDK         5
Android 2.0.1 SDK         6
Android 2.1   SDK         7

Read Contents of Raw File Sample

Posted on March 30, 2011
        InputStream iFile = getResources().openRawResource(R.raw.sample_stream);
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();

        int i;
        try {
        	i = iFile.read();
        	while (i != -1)
        	{
        		byteArrayOutputStream.write(i);
        		i = iFile.read();
        	}
        	iFile.close();
        } catch (IOException e) {
        	// TODO Auto-generated catch block
        	e.printStackTrace();
        }

        Log.v(TAG, byteArrayOutputStream.toString());
        Log.i(TAG, "--- Raw stream test ---");

How to make a QR-Code for your Android app

Posted on January 23, 2011

Here is how to make a QR-Code that points to an app in the Market on an Android device. By scanning the QR-Code with the barcode scanner on your phone you will be sent straight to that app on your phone so it can be installed. Read the rest of this entry »

Switch to our desktop site