Commit b9270a5a by Yujin Seo

・調査作業

parent cab49e9d
...@@ -950,12 +950,12 @@ public abstract class ABVActivity extends Activity { ...@@ -950,12 +950,12 @@ public abstract class ABVActivity extends Activity {
Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
ContentValues values = new ContentValues(); // ContentValues values = new ContentValues();
values.put(MediaStore.MediaColumns.TITLE, "New Picture"); // values.put(MediaStore.MediaColumns.TITLE, "New Picture");
values.put(MediaStore.Images.ImageColumns.DESCRIPTION, "From your Camera"); // values.put(MediaStore.Images.ImageColumns.DESCRIPTION, "From your Camera");
imageUri = getContentResolver().insert( // imageUri = getContentResolver().insert(
MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); // MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);
cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri); // cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, imageUri);
Intent[] intentArray = new Intent[]{cameraIntent}; Intent[] intentArray = new Intent[]{cameraIntent};
chooser.putExtra(Intent.EXTRA_INITIAL_INTENTS, intentArray); chooser.putExtra(Intent.EXTRA_INITIAL_INTENTS, intentArray);
......
package jp.agentec.abook.abv.ui.viewer.activity; package jp.agentec.abook.abv.ui.viewer.activity;
import android.app.Activity;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.content.Intent; import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri; import android.net.Uri;
import android.os.Bundle; import android.os.Bundle;
import android.view.KeyEvent; import android.view.KeyEvent;
...@@ -742,6 +744,13 @@ public class HTMLWebViewActivity extends ParentWebViewActivity { ...@@ -742,6 +744,13 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
protected void onActivityResult(int requestCode, int resultCode, final Intent intent) { protected void onActivityResult(int requestCode, int resultCode, final Intent intent) {
super.onActivityResult(requestCode, resultCode, intent); super.onActivityResult(requestCode, resultCode, intent);
if (requestCode == ABookCommConstants.ABOOK_CHECK_TASK_IMAGE && resultCode == Activity.RESULT_OK) {
Object data = intent.getExtras().get("data");
if (data != null) {
Bitmap photo = (Bitmap) data;
}
}
if (requestCode == ABookCommConstants.PUSH_MESSAGE_DLG_REQUEST_CODE) { if (requestCode == ABookCommConstants.PUSH_MESSAGE_DLG_REQUEST_CODE) {
// プッシュメッセージダイアログのリザルトだった場合 // プッシュメッセージダイアログのリザルトだった場合
if (resultCode == ABookCommConstants.PUSH_MESSAGE_DLG_RESULT.OK && !StringUtil.isNullOrEmpty(baseActivityName)) { if (resultCode == ABookCommConstants.PUSH_MESSAGE_DLG_RESULT.OK && !StringUtil.isNullOrEmpty(baseActivityName)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment