質問編集履歴

3

コード脱字

2016/05/31 13:06

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -36,7 +36,9 @@
36
36
 
37
37
 
38
38
 
39
- public UploadImage(Context c){
39
+ public UploadImage(Context c)
40
+
41
+ super()
40
42
 
41
43
  this.c = c;
42
44
 

2

コード追加

2016/05/31 13:06

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -28,7 +28,33 @@
28
28
 
29
29
  ```java
30
30
 
31
+ class UploadImage extends AsyncTask<URL, Void, String> {
32
+
33
+
34
+
35
+ Context c;
36
+
37
+
38
+
39
+ public UploadImage(Context c){
40
+
41
+ this.c = c;
42
+
43
+ }
44
+
45
+
46
+
47
+ protected String doInBackground(URL... url) {
48
+
49
+ uploadImage(this.c);
50
+
51
+ return "";
52
+
53
+ }
54
+
55
+
56
+
31
- void UploadImage(){
57
+ void uploadImage(Context c){
32
58
 
33
59
 
34
60
 
@@ -158,6 +184,6 @@
158
184
 
159
185
  }
160
186
 
161
-
187
+ }
162
188
 
163
189
  ```

1

コード追加

2016/05/31 13:01

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -150,7 +150,7 @@
150
150
 
151
151
  //logに失敗した旨を記載
152
152
 
153
- connection.getResponseMessage()
153
+ Log.e("ERROR",connection.getResponseMessage())
154
154
 
155
155
  }
156
156