import android.util.Log;
private static final String TAG = "Droid1"; Log.i(TAG, "--- Raw stream test ---");
import android.util.Log;
private static final String TAG = "Droid1"; Log.i(TAG, "--- Raw stream test ---");
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
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 ---");
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 »