-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.zxing.client.androidtest"
- android:versionName="1.0"
- android:versionCode="1">
+ android:versionName="1.1"
+ android:versionCode="2">
<uses-sdk android:minSdkVersion="3"/>
<application android:label="@string/app_name"
android:icon="@drawable/icon"
import android.view.WindowManager;
import android.widget.Toast;
+import java.io.File;
+import java.io.FileOutputStream;
import java.io.IOException;
+import java.io.FileNotFoundException;
public final class CameraTestActivity extends Activity implements SurfaceHolder.Callback {
result.append("\n\n");
result.append(parameters);
+ File file = new File("/sdcard/CameraParameters.txt");
+ try {
+ FileOutputStream stream = new FileOutputStream(file);
+ stream.write(result.toString().getBytes());
+ stream.close();
+ } catch (FileNotFoundException e) {
+
+ } catch (IOException e) {
+
+ }
+
Intent intent = new Intent(Intent.ACTION_SEND);
intent.putExtra(Intent.EXTRA_EMAIL, EMAIL_ADDRESS);
intent.putExtra(Intent.EXTRA_SUBJECT, "Camera parameters report");
intent.putExtra(Intent.EXTRA_TEXT, result.toString());
intent.setType("text/plain");
startActivity(intent);
+ finish();
}
}