• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

Commit MetaInfo

Révisionbbefd2a3720959582a74d5566d39431837898665 (tree)
l'heure2012-09-08 22:39:01
AuteurKodakana <kodakana@user...>
CommiterKodakana

Message de Log

メモリ不足のとき撮影した画像の添付に失敗する問題の修整…。

Change Summary

Modification

--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1,7 +1,7 @@
11 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
22 package="org.pulpdust.snappingcamera"
33 android:versionCode="1"
4- android:versionName="0.4"
4+ android:versionName="0.45"
55 android:installLocation="auto" >
66
77 <uses-sdk
--- a/bin/AndroidManifest.xml
+++ b/bin/AndroidManifest.xml
@@ -1,7 +1,7 @@
11 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
22 package="org.pulpdust.snappingcamera"
33 android:versionCode="1"
4- android:versionName="0.4"
4+ android:versionName="0.45"
55 android:installLocation="auto" >
66
77 <uses-sdk
Binary files a/bin/Snapping Camera.apk and b/bin/Snapping Camera.apk differ
Binary files a/bin/classes.dex and b/bin/classes.dex differ
Binary files a/bin/classes/org/pulpdust/snappingcamera/MainActivity.class and b/bin/classes/org/pulpdust/snappingcamera/MainActivity.class differ
Binary files a/bin/resources.ap_ and b/bin/resources.ap_ differ
--- a/src/org/pulpdust/snappingcamera/MainActivity.java
+++ b/src/org/pulpdust/snappingcamera/MainActivity.java
@@ -118,6 +118,9 @@ public class MainActivity extends Activity {
118118 @Override
119119 public void onStop(){
120120 super.onStop();
121+ writeMainprefs();
122+ }
123+ public void writeMainprefs(){
121124 SharedPreferences mprefs = getSharedPreferences(mprf, 0);
122125 SharedPreferences.Editor sedit = mprefs.edit();
123126 sedit.putString("subject", subject);
@@ -126,7 +129,6 @@ public class MainActivity extends Activity {
126129 }
127130 sedit.commit();
128131 }
129-
130132 public void startCamera(){
131133 if (!Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())){
132134 Toast.makeText(this, R.string.err_not_sd, Toast.LENGTH_LONG).show();
@@ -155,6 +157,7 @@ public class MainActivity extends Activity {
155157 intent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);
156158 // intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
157159 intent.putExtra(MediaStore.EXTRA_OUTPUT, imguri);
160+ writeMainprefs();
158161 try {
159162 startActivityForResult(intent, 1);
160163 } catch (ActivityNotFoundException e){