質問編集履歴

1

javaコードの改変

2019/05/13 00:41

投稿

sekaikan_ozaki
sekaikan_ozaki

スコア65

test CHANGED
File without changes
test CHANGED
@@ -112,51 +112,17 @@
112
112
 
113
113
  }
114
114
 
115
- //これからImageViewにとった写真を張り付け。
116
-
117
- @Override
118
-
119
- protected void onActivityResult(int requestCode, int resultCode, Intent data) {
120
-
121
- if (requestCode == RESULT_CAMERA) {
122
-
123
- Bitmap bitmap;//BitMapも最適。
124
-
125
- // cancelしたケースも含む
126
-
127
- if( data.getExtras() == null){
128
-
129
- Log.d("debug","cancel ?");
130
-
131
- return;
132
-
133
- }
134
-
135
- else{
136
-
137
- bitmap = (Bitmap) data.getExtras().get("data");
138
115
 
139
116
 
140
117
 
141
- // 画像サイズを計測
142
118
 
143
- int bmpWidth = bitmap.getWidth();
144
-
145
- int bmpHeight = bitmap.getHeight();
119
+ //ここから写真の保存の予定(外部ストレージ領域への保存)
146
-
147
- Log.d("debug",String.format("w= %d",bmpWidth));
148
-
149
- Log.d("debug",String.format("h= %d",bmpHeight));
150
-
151
- }
152
120
 
153
121
 
154
122
 
155
- imageView.setImageBitmap(bitmap);
156
123
 
157
- }
158
124
 
159
- }
125
+
160
126
 
161
127
  }
162
128