質問編集履歴
6
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -294,7 +294,7 @@
|
|
294
294
|
|
295
295
|
①値が配列などにしっかりと格納されているかを確認しました。
|
296
296
|
|
297
|
-
②非同期処理ではなくクラスを作ってAsyncTask
|
297
|
+
②非同期処理ではなくクラスを作ってAsyncAppTaskと同じ処理をさせてみた。(うまくいきませんでした)
|
298
298
|
|
299
299
|
|
300
300
|
|
5
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -292,7 +292,9 @@
|
|
292
292
|
|
293
293
|
|
294
294
|
|
295
|
-
|
295
|
+
①値が配列などにしっかりと格納されているかを確認しました。
|
296
|
+
|
297
|
+
②非同期処理ではなくクラスを作ってAsyncTaskAppと同じ処理をさせてみた。(うまくいきませんでした)
|
296
298
|
|
297
299
|
|
298
300
|
|
@@ -300,7 +302,7 @@
|
|
300
302
|
|
301
303
|
|
302
304
|
|
303
|
-
|
305
|
+
その他項目を載せておきます。
|
304
306
|
|
305
307
|
|
306
308
|
|
4
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -355,3 +355,65 @@
|
|
355
355
|
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"></uses-permission>
|
356
356
|
|
357
357
|
</manifest>
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
activity_main.xml
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
<?xml version="1.0" encoding="utf-8"?>
|
368
|
+
|
369
|
+
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
370
|
+
|
371
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
372
|
+
|
373
|
+
xmlns:tools="http://schemas.android.com/tools"
|
374
|
+
|
375
|
+
android:layout_width="match_parent"
|
376
|
+
|
377
|
+
android:layout_height="match_parent"
|
378
|
+
|
379
|
+
tools:context=".MainActivity">
|
380
|
+
|
381
|
+
|
382
|
+
|
383
|
+
<TextView
|
384
|
+
|
385
|
+
android:layout_width="wrap_content"
|
386
|
+
|
387
|
+
android:layout_height="wrap_content"
|
388
|
+
|
389
|
+
android:text="Hello World!"
|
390
|
+
|
391
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
392
|
+
|
393
|
+
app:layout_constraintLeft_toLeftOf="parent"
|
394
|
+
|
395
|
+
app:layout_constraintRight_toRightOf="parent"
|
396
|
+
|
397
|
+
app:layout_constraintTop_toTopOf="parent" />
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
<ListView
|
402
|
+
|
403
|
+
android:id="@+id/listView"
|
404
|
+
|
405
|
+
android:layout_width="0dp"
|
406
|
+
|
407
|
+
android:layout_height="wrap_content"
|
408
|
+
|
409
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
410
|
+
|
411
|
+
app:layout_constraintEnd_toEndOf="parent"
|
412
|
+
|
413
|
+
app:layout_constraintStart_toStartOf="parent"
|
414
|
+
|
415
|
+
app:layout_constraintTop_toTopOf="parent" />
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
</android.support.constraint.ConstraintLayout>
|
3
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,107 +14,45 @@
|
|
14
14
|
|
15
15
|
```
|
16
16
|
|
17
|
-
05-14 02:
|
18
|
-
|
19
|
-
05-14 02:
|
20
|
-
|
21
|
-
05-14 02:13
|
22
|
-
|
23
|
-
05-14 02:
|
24
|
-
|
25
|
-
05-14 02:
|
26
|
-
|
27
|
-
05-14 02:
|
28
|
-
|
29
|
-
05-14 02:
|
30
|
-
|
31
|
-
05-14 02:1
|
32
|
-
|
33
|
-
05-14 02:
|
34
|
-
|
35
|
-
05-14 02:
|
36
|
-
|
37
|
-
05-14 02:
|
38
|
-
|
39
|
-
05-14 02:
|
40
|
-
|
41
|
-
05-14 02:
|
42
|
-
|
43
|
-
05-14 02:
|
44
|
-
|
45
|
-
05-14 02:
|
46
|
-
|
47
|
-
05-14 02:
|
48
|
-
|
49
|
-
05-14 02:
|
50
|
-
|
51
|
-
05-14 02:1
|
52
|
-
|
53
|
-
05-14 02:
|
54
|
-
|
55
|
-
05-14 02:
|
56
|
-
|
57
|
-
05-14 02:13:20.685 20854-20874/? D/EGL_emulation: eglMakeCurrent: 0xe91406c0: ver 3 0 (tinfo 0xe9bb1870)
|
58
|
-
|
59
|
-
05-14 02:14:06.017 20854-20872/com.example.user.rssmain W/System.err: java.net.UnknownHostException: Unable to resolve host "www.atsutajingu.or.jp": No address associated with hostname
|
60
|
-
|
61
|
-
at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:157)
|
62
|
-
|
63
|
-
at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:105)
|
64
|
-
|
65
|
-
at java.net.InetAddress.getAllByName(InetAddress.java:1154)
|
66
|
-
|
67
|
-
at com.android.okhttp.Dns$1.lookup(Dns.java:39)
|
68
|
-
|
69
|
-
at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:175)
|
70
|
-
|
71
|
-
at com.android.okhttp.internal.http.RouteSelector.nextProxy(RouteSelector.java:141)
|
72
|
-
|
73
|
-
at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:83)
|
74
|
-
|
75
|
-
at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:174)
|
76
|
-
|
77
|
-
at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
|
78
|
-
|
79
|
-
at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
|
80
|
-
|
81
|
-
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)
|
82
|
-
|
83
|
-
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)
|
84
|
-
|
85
|
-
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:461)
|
86
|
-
|
87
|
-
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
|
88
|
-
|
89
|
-
at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:117)
|
90
|
-
|
91
|
-
05-14 02:14:06.018 20854-20872/com.example.user.rssmain W/System.err: at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:155)
|
92
|
-
|
93
|
-
at com.example.user.rssmain.AsyncAppTask.doInBackground(AsyncAppTask.java:35)
|
94
|
-
|
95
|
-
at com.example.user.rssmain.AsyncAppTask.doInBackground(AsyncAppTask.java:18)
|
96
|
-
|
97
|
-
at android.os.AsyncTask$2.call(AsyncTask.java:333)
|
98
|
-
|
99
|
-
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
|
100
|
-
|
101
|
-
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
|
102
|
-
|
103
|
-
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
|
104
|
-
|
105
|
-
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
|
106
|
-
|
107
|
-
at java.lang.Thread.run(Thread.java:764)
|
108
|
-
|
109
|
-
Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
|
110
|
-
|
111
|
-
at libcore.io.Linux.android_getaddrinfo(Native Method)
|
112
|
-
|
113
|
-
at libcore.io.BlockGuardOs.android_getaddrinfo(BlockGuardOs.java:172)
|
114
|
-
|
115
|
-
at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:137)
|
116
|
-
|
117
|
-
... 23 more
|
17
|
+
05-14 04:27:47.964 22965-22965/? I/le.user.rssmai: Not late-enabling -Xcheck:jni (already on)
|
18
|
+
|
19
|
+
05-14 04:27:48.002 22965-22965/? W/le.user.rssmai: Unexpected CPU variant for X86 using defaults: x86
|
20
|
+
|
21
|
+
05-14 04:27:48.131 22965-22965/com.example.user.rssmain I/le.user.rssmai: The ClassLoaderContext is a special shared library.
|
22
|
+
|
23
|
+
05-14 04:27:48.253 22965-22965/com.example.user.rssmain W/le.user.rssmai: JIT profile information will not be recorded: profile file does not exits.
|
24
|
+
|
25
|
+
05-14 04:27:48.257 22965-22965/com.example.user.rssmain I/chatty: uid=10087(com.example.user.rssmain) identical 10 lines
|
26
|
+
|
27
|
+
05-14 04:27:48.257 22965-22965/com.example.user.rssmain W/le.user.rssmai: JIT profile information will not be recorded: profile file does not exits.
|
28
|
+
|
29
|
+
05-14 04:27:48.345 22965-22965/com.example.user.rssmain I/InstantRun: starting instant run server: is main process
|
30
|
+
|
31
|
+
05-14 04:27:48.731 22965-22965/com.example.user.rssmain W/le.user.rssmai: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
|
32
|
+
|
33
|
+
05-14 04:27:48.733 22965-22965/com.example.user.rssmain W/le.user.rssmai: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
|
34
|
+
|
35
|
+
05-14 04:27:48.897 22965-22984/com.example.user.rssmain D/NetworkSecurityConfig: No Network Security Config specified, using platform default
|
36
|
+
|
37
|
+
05-14 04:27:48.907 22965-22965/com.example.user.rssmain D/OpenGLRenderer: HWUI GL Pipeline
|
38
|
+
|
39
|
+
05-14 04:27:48.997 22965-22986/com.example.user.rssmain I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
|
40
|
+
|
41
|
+
05-14 04:27:48.998 22965-22986/com.example.user.rssmain I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
|
42
|
+
|
43
|
+
05-14 04:27:48.998 22965-22986/com.example.user.rssmain I/OpenGLRenderer: Initialized EGL, version 1.4
|
44
|
+
|
45
|
+
05-14 04:27:48.998 22965-22986/com.example.user.rssmain D/OpenGLRenderer: Swap behavior 1
|
46
|
+
|
47
|
+
05-14 04:27:48.999 22965-22986/com.example.user.rssmain W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
|
48
|
+
|
49
|
+
05-14 04:27:48.999 22965-22986/com.example.user.rssmain D/OpenGLRenderer: Swap behavior 0
|
50
|
+
|
51
|
+
05-14 04:27:49.012 22965-22986/com.example.user.rssmain D/EGL_emulation: eglCreateContext: 0xe3d85300: maj 3 min 0 rcv 3
|
52
|
+
|
53
|
+
05-14 04:27:49.046 22965-22986/com.example.user.rssmain D/EGL_emulation: eglMakeCurrent: 0xe3d85300: ver 3 0 (tinfo 0xe3d83460)
|
54
|
+
|
55
|
+
05-14 04:27:49.237 22965-22986/com.example.user.rssmain D/EGL_emulation: eglMakeCurrent: 0xe3d85300: ver 3 0 (tinfo 0xe3d83460)
|
118
56
|
|
119
57
|
|
120
58
|
|
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,45 +14,109 @@
|
|
14
14
|
|
15
15
|
```
|
16
16
|
|
17
|
-
05-1
|
18
|
-
|
19
|
-
05-1
|
20
|
-
|
21
|
-
05-1
|
22
|
-
|
23
|
-
05-1
|
24
|
-
|
25
|
-
05-1
|
26
|
-
|
27
|
-
05-1
|
28
|
-
|
29
|
-
05-1
|
30
|
-
|
31
|
-
05-1
|
32
|
-
|
33
|
-
Accessing hidden method Landroid/view/View
|
34
|
-
|
35
|
-
05-1
|
36
|
-
|
37
|
-
05-1
|
38
|
-
|
39
|
-
05-1
|
40
|
-
|
41
|
-
android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::has
|
42
|
-
|
43
|
-
05-1
|
44
|
-
|
45
|
-
05-1
|
46
|
-
|
47
|
-
05-1
|
48
|
-
|
49
|
-
05-1
|
50
|
-
|
51
|
-
05-1
|
52
|
-
|
53
|
-
05-1
|
54
|
-
|
55
|
-
05-1
|
17
|
+
05-14 02:13:19.707 20854-20854/? I/le.user.rssmai: Not late-enabling -Xcheck:jni (already on)
|
18
|
+
|
19
|
+
05-14 02:13:19.743 20854-20854/? W/le.user.rssmai: Unexpected CPU variant for X86 using defaults: x86
|
20
|
+
|
21
|
+
05-14 02:13:19.867 20854-20861/? E/le.user.rssmai: Failed to send jdwp-handshake response.: Broken pipe
|
22
|
+
|
23
|
+
05-14 02:13:19.869 20854-20854/? I/le.user.rssmai: The ClassLoaderContext is a special shared library.
|
24
|
+
|
25
|
+
05-14 02:13:19.987 20854-20854/? W/le.user.rssmai: JIT profile information will not be recorded: profile file does not exits.
|
26
|
+
|
27
|
+
05-14 02:13:19.990 20854-20854/? I/chatty: uid=10087(com.example.user.rssmain) identical 10 lines
|
28
|
+
|
29
|
+
05-14 02:13:19.991 20854-20854/? W/le.user.rssmai: JIT profile information will not be recorded: profile file does not exits.
|
30
|
+
|
31
|
+
05-14 02:13:20.028 20854-20854/? I/InstantRun: starting instant run server: is main process
|
32
|
+
|
33
|
+
05-14 02:13:20.356 20854-20854/? W/le.user.rssmai: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
|
34
|
+
|
35
|
+
05-14 02:13:20.357 20854-20854/? W/le.user.rssmai: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
|
36
|
+
|
37
|
+
05-14 02:13:20.467 20854-20872/? D/NetworkSecurityConfig: No Network Security Config specified, using platform default
|
38
|
+
|
39
|
+
05-14 02:13:20.487 20854-20854/? D/OpenGLRenderer: HWUI GL Pipeline
|
40
|
+
|
41
|
+
05-14 02:13:20.571 20854-20874/? I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
|
42
|
+
|
43
|
+
05-14 02:13:20.572 20854-20874/? I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
|
44
|
+
|
45
|
+
05-14 02:13:20.573 20854-20874/? I/OpenGLRenderer: Initialized EGL, version 1.4
|
46
|
+
|
47
|
+
05-14 02:13:20.573 20854-20874/? D/OpenGLRenderer: Swap behavior 1
|
48
|
+
|
49
|
+
05-14 02:13:20.573 20854-20874/? W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
|
50
|
+
|
51
|
+
05-14 02:13:20.573 20854-20874/? D/OpenGLRenderer: Swap behavior 0
|
52
|
+
|
53
|
+
05-14 02:13:20.582 20854-20874/? D/EGL_emulation: eglCreateContext: 0xe91406c0: maj 3 min 0 rcv 3
|
54
|
+
|
55
|
+
05-14 02:13:20.595 20854-20874/? D/EGL_emulation: eglMakeCurrent: 0xe91406c0: ver 3 0 (tinfo 0xe9bb1870)
|
56
|
+
|
57
|
+
05-14 02:13:20.685 20854-20874/? D/EGL_emulation: eglMakeCurrent: 0xe91406c0: ver 3 0 (tinfo 0xe9bb1870)
|
58
|
+
|
59
|
+
05-14 02:14:06.017 20854-20872/com.example.user.rssmain W/System.err: java.net.UnknownHostException: Unable to resolve host "www.atsutajingu.or.jp": No address associated with hostname
|
60
|
+
|
61
|
+
at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:157)
|
62
|
+
|
63
|
+
at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:105)
|
64
|
+
|
65
|
+
at java.net.InetAddress.getAllByName(InetAddress.java:1154)
|
66
|
+
|
67
|
+
at com.android.okhttp.Dns$1.lookup(Dns.java:39)
|
68
|
+
|
69
|
+
at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:175)
|
70
|
+
|
71
|
+
at com.android.okhttp.internal.http.RouteSelector.nextProxy(RouteSelector.java:141)
|
72
|
+
|
73
|
+
at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:83)
|
74
|
+
|
75
|
+
at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:174)
|
76
|
+
|
77
|
+
at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
|
78
|
+
|
79
|
+
at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
|
80
|
+
|
81
|
+
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)
|
82
|
+
|
83
|
+
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)
|
84
|
+
|
85
|
+
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:461)
|
86
|
+
|
87
|
+
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:127)
|
88
|
+
|
89
|
+
at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:117)
|
90
|
+
|
91
|
+
05-14 02:14:06.018 20854-20872/com.example.user.rssmain W/System.err: at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:155)
|
92
|
+
|
93
|
+
at com.example.user.rssmain.AsyncAppTask.doInBackground(AsyncAppTask.java:35)
|
94
|
+
|
95
|
+
at com.example.user.rssmain.AsyncAppTask.doInBackground(AsyncAppTask.java:18)
|
96
|
+
|
97
|
+
at android.os.AsyncTask$2.call(AsyncTask.java:333)
|
98
|
+
|
99
|
+
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
|
100
|
+
|
101
|
+
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)
|
102
|
+
|
103
|
+
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
|
104
|
+
|
105
|
+
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
|
106
|
+
|
107
|
+
at java.lang.Thread.run(Thread.java:764)
|
108
|
+
|
109
|
+
Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
|
110
|
+
|
111
|
+
at libcore.io.Linux.android_getaddrinfo(Native Method)
|
112
|
+
|
113
|
+
at libcore.io.BlockGuardOs.android_getaddrinfo(BlockGuardOs.java:172)
|
114
|
+
|
115
|
+
at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:137)
|
116
|
+
|
117
|
+
... 23 more
|
118
|
+
|
119
|
+
|
56
120
|
|
57
121
|
```
|
58
122
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -154,7 +154,7 @@
|
|
154
154
|
|
155
155
|
|
156
156
|
|
157
|
-
//
|
157
|
+
//情報をクリア
|
158
158
|
|
159
159
|
RssList.title.clear();
|
160
160
|
|
@@ -202,7 +202,7 @@
|
|
202
202
|
|
203
203
|
|
204
204
|
|
205
|
-
//?各"item"とその中の"title"と"
|
205
|
+
//?各"item"とその中の"title"と"link"を取得する。???????
|
206
206
|
|
207
207
|
NodeList item_list = root.getElementsByTagName("item");
|
208
208
|
|
@@ -222,7 +222,7 @@
|
|
222
222
|
|
223
223
|
|
224
224
|
|
225
|
-
//?
|
225
|
+
//?link?を取得する??
|
226
226
|
|
227
227
|
NodeList item_link = element.getElementsByTagName("link");
|
228
228
|
|
@@ -290,7 +290,7 @@
|
|
290
290
|
|
291
291
|
|
292
292
|
|
293
|
-
android studioを使い始めてから
|
293
|
+
android studioを使い始めてからあまりたっておりませんので試せることはあまりありませんでしたが、値が配列などにしっかりと格納されているかを確認しました。
|
294
294
|
|
295
295
|
|
296
296
|
|
@@ -298,6 +298,12 @@
|
|
298
298
|
|
299
299
|
|
300
300
|
|
301
|
+
マニフェストを載せておきます。
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
301
307
|
AndroidManifest.xml
|
302
308
|
|
303
309
|
|