This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.IOException; | |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.graphics.PixelFormat; | |
| import android.hardware.Camera; | |
| import android.os.Bundle; | |
| import android.util.Log; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static boolean StoreByteImage(Context mContext, byte[] imageData, | |
| int quality, String expName) { | |
| File sdImageMainDirectory = new File("/sdcard/myImages"); | |
| FileOutputStream fileOutputStream = null; | |
| String nameFile; | |
| try { | |
| BitmapFactory.Options options=new BitmapFactory.Options(); | |
| options.inSampleSize = 5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <shape xmlns:android="http://schemas.android.com/apk/res/android" > | |
| <solid android:color="#00000000" /> | |
| <stroke | |
| android:width="2dp" | |
| android:color="#FFFFFF" /> | |
| <padding |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package stringCalculator; | |
| import java.util.ArrayList; | |
| public class StringCalculator { | |
| private static final String VOID = ""; | |
| private static final String END_SEPARATOR_WHEN_MORE_CHARS = "]"; | |
| private static final String INI_SEPARATOR_WHEN_MORE_CHARS = "["; |