从Firebase数据库读取而不会崩溃

时间:2017-11-28 17:14:46

标签: android firebase

我正在创建一个应用程序,要求我从fire base数据库中读取这个值以改变布局。我尝试过使用'帮助'从Android工作室但是当我运行该程序时它崩溃了。我附上的照片是'帮助'不是代码,因为它崩溃了程序,我希望它基本上工作。那么有人可以建议一种更简单的数据库阅读方法吗?

由于

12-04 11:38:44.004 3524-3524/com.example.jopayne1968.points4spending I/FA: App measurement is starting up, version: 11020
12-04 11:38:44.004 3524-3524/com.example.jopayne1968.points4spending I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
12-04 11:38:44.034 3524-3524/com.example.jopayne1968.points4spending V/FA: Collection enabled
12-04 11:38:44.034 3524-3524/com.example.jopayne1968.points4spending V/FA: App package, google app id: com.example.jopayne1968.points4spending, 1:723788589244:android:e3ad2acca46870b3
12-04 11:38:44.034 3524-3524/com.example.jopayne1968.points4spending I/FA: To enable faster debug mode event logging run:
                                                                             adb shell setprop debug.firebase.analytics.app com.example.jopayne1968.points4spending
12-04 11:38:44.034 3524-3524/com.example.jopayne1968.points4spending D/FA: Debug-level message logging enabled
12-04 11:38:44.104 3524-3524/com.example.jopayne1968.points4spending V/FA: Registered activity lifecycle callback
12-04 11:38:44.114 3524-3630/com.example.jopayne1968.points4spending V/FA: Using measurement service
12-04 11:38:44.114 3524-3630/com.example.jopayne1968.points4spending V/FA: Connecting to remote service
12-04 11:38:44.114 3524-3630/com.example.jopayne1968.points4spending V/FA: Connection attempt already in progress
12-04 11:38:44.264 3524-3524/com.example.jopayne1968.points4spending V/FA: onActivityCreated
12-04 11:38:44.514 3524-3630/com.example.jopayne1968.points4spending V/FA: Using measurement service
12-04 11:38:44.514 3524-3630/com.example.jopayne1968.points4spending V/FA: Connection attempt already in progress
12-04 11:38:44.514 3524-3630/com.example.jopayne1968.points4spending V/FA: Activity resumed, time: 60750091
12-04 11:38:44.514 3524-3630/com.example.jopayne1968.points4spending I/FA: Tag Manager is not found and thus will not be used
12-04 11:38:44.514 3524-3630/com.example.jopayne1968.points4spending D/FA: Logging event (FE): screen_view(_vs), Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=SignUpActivity, firebase_screen_id(_si)=531904640859358265}]
12-04 11:38:44.544 3524-3630/com.example.jopayne1968.points4spending V/FA: Using measurement service
12-04 11:38:44.544 3524-3630/com.example.jopayne1968.points4spending V/FA: Connection attempt already in progress
12-04 11:38:44.744 3524-3630/com.example.jopayne1968.points4spending D/FA: Connected to remote service
12-04 11:38:44.744 3524-3630/com.example.jopayne1968.points4spending V/FA: Processing queued up service tasks: 4
12-04 11:38:44.794 3422-2815/? V/FA-SVC: Logging event: origin=auto,name=screen_view(_vs),params=Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=SignUpActivity, firebase_screen_id(_si)=531904640859358265}]
12-04 11:38:44.804 3422-2815/? V/FA-SVC: Saving event, name, data size: screen_view(_vs), 59
12-04 11:38:44.804 3422-2815/? V/FA-SVC: Event recorded: Event{appId='com.example.jopayne1968.points4spending', name='screen_view(_vs)', params=Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=SignUpActivity, firebase_screen_id(_si)=531904640859358265}]}
12-04 11:38:44.814 3422-2815/? V/FA-SVC: Upload scheduled in approximately ms: 3418911
12-04 11:38:44.814 3422-2815/? V/FA-SVC: Scheduling upload with GcmTaskService
12-04 11:38:44.814 3422-2815/? V/FA-SVC: Scheduling task with Gcm. Time3418911
12-04 11:38:44.824 3422-2815/? V/FA-SVC: Background event processing time, ms: 28
12-04 11:38:49.854 3524-3630/com.example.jopayne1968.points4spending V/FA: Inactivity, disconnecting from the service

enter image description here

0 个答案:

没有答案