theblaine.com

Here's my little spot on the Net

Android Log File Sample

Posted by theBlaine June - 11 - 2011 - Saturday ADD COMMENTS
import android.util.Log;

 

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

Android SDK Versions Available

Posted by theBlaine March - 30 - 2011 - Wednesday ADD COMMENTS
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 by theBlaine March - 30 - 2011 - Wednesday ADD COMMENTS
        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 by theBlaine January - 23 - 2011 - Sunday 3 COMMENTS

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 »

Most Commented

About me

Hi, my name is Blaine Sherman (aka theBlaine). I am a 37 year old Network Administrator by day and a mobile app developer and web app developer at night. I am a proud father of a 16 year old daughter and a mellow cat named Tough Guy. Welcome to my new web site. It is geared towards application development, but will also include tid-bits about my life and my whacky family!! I hope there is at least one thing entertaining or educational you can get from my site. If not, oh well, you will get over it!! Thanks for stopping by my little spot on the Net. ~ Blaine Sherman

Switch to our mobile site