質問編集履歴

3

ソースコードをマークダウン記法で記載2

2021/12/19 09:19

投稿

Android-student
Android-student

スコア5

test CHANGED
File without changes
test CHANGED
@@ -20,6 +20,8 @@
20
20
 
21
21
  #### build.gradle(:app)
22
22
 
23
+ ```ここに言語を入力
24
+
23
25
  plugins {
24
26
 
25
27
  id 'com.android.application'
@@ -100,8 +102,14 @@
100
102
 
101
103
 
102
104
 
105
+
106
+
107
+ ```
108
+
103
109
  #### activity_main.xml
104
110
 
111
+ ```ここに言語を入力
112
+
105
113
  <?xml version="1.0" encoding="utf-8"?>
106
114
 
107
115
  <androidx.constraintlayout.widget.ConstraintLayout
@@ -144,8 +152,12 @@
144
152
 
145
153
 
146
154
 
155
+ ```
156
+
147
157
  #### MainActivity.java
148
158
 
159
+ ```ここに言語を入力
160
+
149
161
  package com.example.qrread;
150
162
 
151
163
 
@@ -242,6 +254,8 @@
242
254
 
243
255
  }
244
256
 
257
+ ```
258
+
245
259
 
246
260
 
247
261
  ### 補足情報(FW/ツールのバージョンなど)

2

ソースコードをマークダウン記法で記載

2021/12/19 09:19

投稿

Android-student
Android-student

スコア5

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  ### 該当のソースコード
20
20
 
21
- build.gradle(:app)
21
+ #### build.gradle(:app)
22
22
 
23
23
  plugins {
24
24
 
@@ -100,7 +100,7 @@
100
100
 
101
101
 
102
102
 
103
- activity_main.xml
103
+ #### activity_main.xml
104
104
 
105
105
  <?xml version="1.0" encoding="utf-8"?>
106
106
 
@@ -144,7 +144,7 @@
144
144
 
145
145
 
146
146
 
147
- MainActivity.java
147
+ #### MainActivity.java
148
148
 
149
149
  package com.example.qrread;
150
150
 

1

デバック情報を追加しました。

2021/12/18 16:26

投稿

Android-student
Android-student

スコア5

test CHANGED
File without changes
test CHANGED
@@ -255,3 +255,123 @@
255
255
  ・CPU :"Core i7 4722HQ(Haswell)"
256
256
 
257
257
  ・GPU :"インテル® HD グラフィックス 4600"
258
+
259
+
260
+
261
+ ### デバック情報 入りきらなかったので一部抜粋
262
+
263
+ 12/17 02:11:50: Launching 'app' on samsung SC-04J.
264
+
265
+ App restart successful without requiring a re-install.
266
+
267
+ $ adb shell am start -n "com.example.qrread/com.journeyapps.barcodescanner.CaptureActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
268
+
269
+ Waiting for application to come online: com.example.qrread | com.example.qrread.test
270
+
271
+ Waiting for application to come online: com.example.qrread | com.example.qrread.test
272
+
273
+ Connected to process 8243 on device 'samsung-sc_04j-521031c3508354b5'.
274
+
275
+ Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
276
+
277
+ W/ActivityThread: Application com.example.qrread is waiting for the debugger on port 8100...
278
+
279
+ I/System.out: Sending WAIT chunk
280
+
281
+ Connecting to com.example.qrread
282
+
283
+ Connected to the target VM, address: 'localhost:52373', transport: 'socket'
284
+
285
+ Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
286
+
287
+ W/ActivityThread: Application com.example.qrread is waiting for the debugger on port 8100...
288
+
289
+
290
+
291
+ ~中略~
292
+
293
+
294
+
295
+ D/CameraInstance: Camera is closed, not requesting preview
296
+
297
+ V/MediaPlayerNative: invoke 68
298
+
299
+ D/CameraPreview: pause()
300
+
301
+ D/CameraPreview: pause()
302
+
303
+ D/ViewRootImpl@884794c[CaptureActivity]: MSG_WINDOW_FOCUS_CHANGED 0
304
+
305
+ D/ViewRootImpl@884794c[CaptureActivity]: MSG_WINDOW_FOCUS_CHANGED 0
306
+
307
+ V/MediaPlayerNative: message received msg=6, ext1=0, ext2=0
308
+
309
+ unrecognized message: (6, 0, 0)
310
+
311
+ callback application
312
+
313
+ back from callback
314
+
315
+ V/MediaPlayer-JNI: getCurrentPosition: 0 (msec)
316
+
317
+ V/MediaPlayerNative: message received msg=2, ext1=0, ext2=0
318
+
319
+ V/MediaPlayerNative: playback complete
320
+
321
+ callback application
322
+
323
+ V/MediaPlayerNative: back from callback
324
+
325
+ V/MediaPlayer-JNI: stop
326
+
327
+ V/MediaPlayerNative: stop
328
+
329
+ V/MediaPlayerNative: message received msg=8, ext1=0, ext2=0
330
+
331
+ unrecognized message: (8, 0, 0)
332
+
333
+ callback application
334
+
335
+ back from callback
336
+
337
+ V/MediaPlayer: resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
338
+
339
+ V/MediaPlayer: cleanDrmObj: mDrmObj=null mDrmSessionId=null
340
+
341
+ V/MediaPlayer-JNI: release
342
+
343
+ V/MediaPlayerNative: setListener
344
+
345
+ disconnect
346
+
347
+ V/MediaPlayerNative: destructor
348
+
349
+ V/MediaPlayerNative: disconnect
350
+
351
+ W/MediaPlayer: mediaplayer went away with unhandled events
352
+
353
+ D/SurfaceView: BG show() Surface(name=Background for - SurfaceView - com.example.qrread/com.journeyapps.barcodescanner.CaptureActivity@3c17605@0) android.view.SurfaceView{3c17605 V.E...... ........ 0,0-720,1280}
354
+
355
+ surfaceDestroyed 1 #2 android.view.SurfaceView{3c17605 V.E...... ........ 0,0-720,1280}
356
+
357
+ D/SurfaceView: BG destroy() Surface(name=Background for - SurfaceView - com.example.qrread/com.journeyapps.barcodescanner.CaptureActivity@3c17605@0) android.view.SurfaceView{3c17605 V.E...... ........ 0,0-720,1280}
358
+
359
+ D/OpenGLRenderer: eglDestroySurface = 0xd36f59e0
360
+
361
+ D/ViewRootImpl@884794c[CaptureActivity]: Relayout returned: old=[0,0][720,1280] new=[0,0][720,1280] result=0x5 surface={valid=false 0} changed=true
362
+
363
+ D/InputTransport: Input channel destroyed: fd=73
364
+
365
+ D/ViewRootImpl@884794c[CaptureActivity]: dispatchDetachedFromWindow
366
+
367
+ D/InputEventReceiver: channel 'fac809c com.example.qrread/com.journeyapps.barcodescanner.CaptureActivity (client)' ~ Disposing input event receiver.
368
+
369
+ channel 'fac809c com.example.qrread/com.journeyapps.barcodescanner.CaptureActivity (client)' ~NativeInputEventReceiver.
370
+
371
+ D/InputTransport: Input channel destroyed: fd=58
372
+
373
+ V/MediaPlayer-JNI: native_finalize
374
+
375
+ release
376
+
377
+ ターゲット VM から切断されました。アドレス: 'localhost:52373', transport: 'socket'