Firebase Data not showing on my RecyclerView












1















I got this error today. When I watched a tutorial video about fetching firebase data to recycler view I followed the tutorial correctly. But when finish my app, I ran my app on my smartphone, after loging with Firebase Auth, Then my main activity doesn't show anything. just a white background and a toolbar.



This is my logcat. Can somebody help me?



11-26 10:10:27.724 30387-30488/com.example.ghifa.mrad2 D/FA: Connected to remote service
11-26 10:10:27.724 30387-30488/com.example.ghifa.mrad2 V/FA: Processing queued up service tasks: 4
11-26 10:10:32.844 30387-30488/com.example.ghifa.mrad2 V/FA: Inactivity, disconnecting from the service
11-26 10:10:32.864 30387-30488/com.example.ghifa.mrad2 W/ContextImpl: forgetServiceDispatcher failed for:
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzef@28094a2f
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1105)
at android.app.ContextImpl.unbindService(ContextImpl.java:1873)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:562)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(Unknown Source)
at com.google.android.gms.measurement.internal.zzdr.disconnect(Unknown Source)
at com.google.android.gms.measurement.internal.zzdr.zzcz(Unknown Source)
at com.google.android.gms.measurement.internal.zzdr.zzc(Unknown Source)
at com.google.android.gms.measurement.internal.zzds.run(Unknown Source)
at com.google.android.gms.measurement.internal.zzw.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at com.google.android.gms.measurement.internal.zzbs.run(Unknown Source)









share|improve this question

























  • Do you have the app connected with Firebase properly? Also, do you have inserted some data in Firebase that can be seen on recycler view at the same reference in your Firebase Database.

    – PradyumanDixit
    Nov 26 '18 at 3:26











  • did you register your service in the manifest?

    – Rainmaker
    Nov 26 '18 at 3:29











  • @PradyumanDixit yess i've done that

    – Ghifari
    Nov 26 '18 at 3:42











  • @Rainmaker how to do that? i don't know that

    – Ghifari
    Nov 26 '18 at 3:43
















1















I got this error today. When I watched a tutorial video about fetching firebase data to recycler view I followed the tutorial correctly. But when finish my app, I ran my app on my smartphone, after loging with Firebase Auth, Then my main activity doesn't show anything. just a white background and a toolbar.



This is my logcat. Can somebody help me?



11-26 10:10:27.724 30387-30488/com.example.ghifa.mrad2 D/FA: Connected to remote service
11-26 10:10:27.724 30387-30488/com.example.ghifa.mrad2 V/FA: Processing queued up service tasks: 4
11-26 10:10:32.844 30387-30488/com.example.ghifa.mrad2 V/FA: Inactivity, disconnecting from the service
11-26 10:10:32.864 30387-30488/com.example.ghifa.mrad2 W/ContextImpl: forgetServiceDispatcher failed for:
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzef@28094a2f
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1105)
at android.app.ContextImpl.unbindService(ContextImpl.java:1873)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:562)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(Unknown Source)
at com.google.android.gms.measurement.internal.zzdr.disconnect(Unknown Source)
at com.google.android.gms.measurement.internal.zzdr.zzcz(Unknown Source)
at com.google.android.gms.measurement.internal.zzdr.zzc(Unknown Source)
at com.google.android.gms.measurement.internal.zzds.run(Unknown Source)
at com.google.android.gms.measurement.internal.zzw.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at com.google.android.gms.measurement.internal.zzbs.run(Unknown Source)









share|improve this question

























  • Do you have the app connected with Firebase properly? Also, do you have inserted some data in Firebase that can be seen on recycler view at the same reference in your Firebase Database.

    – PradyumanDixit
    Nov 26 '18 at 3:26











  • did you register your service in the manifest?

    – Rainmaker
    Nov 26 '18 at 3:29











  • @PradyumanDixit yess i've done that

    – Ghifari
    Nov 26 '18 at 3:42











  • @Rainmaker how to do that? i don't know that

    – Ghifari
    Nov 26 '18 at 3:43














1












1








1


1






I got this error today. When I watched a tutorial video about fetching firebase data to recycler view I followed the tutorial correctly. But when finish my app, I ran my app on my smartphone, after loging with Firebase Auth, Then my main activity doesn't show anything. just a white background and a toolbar.



This is my logcat. Can somebody help me?



11-26 10:10:27.724 30387-30488/com.example.ghifa.mrad2 D/FA: Connected to remote service
11-26 10:10:27.724 30387-30488/com.example.ghifa.mrad2 V/FA: Processing queued up service tasks: 4
11-26 10:10:32.844 30387-30488/com.example.ghifa.mrad2 V/FA: Inactivity, disconnecting from the service
11-26 10:10:32.864 30387-30488/com.example.ghifa.mrad2 W/ContextImpl: forgetServiceDispatcher failed for:
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzef@28094a2f
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1105)
at android.app.ContextImpl.unbindService(ContextImpl.java:1873)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:562)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(Unknown Source)
at com.google.android.gms.measurement.internal.zzdr.disconnect(Unknown Source)
at com.google.android.gms.measurement.internal.zzdr.zzcz(Unknown Source)
at com.google.android.gms.measurement.internal.zzdr.zzc(Unknown Source)
at com.google.android.gms.measurement.internal.zzds.run(Unknown Source)
at com.google.android.gms.measurement.internal.zzw.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at com.google.android.gms.measurement.internal.zzbs.run(Unknown Source)









share|improve this question
















I got this error today. When I watched a tutorial video about fetching firebase data to recycler view I followed the tutorial correctly. But when finish my app, I ran my app on my smartphone, after loging with Firebase Auth, Then my main activity doesn't show anything. just a white background and a toolbar.



This is my logcat. Can somebody help me?



11-26 10:10:27.724 30387-30488/com.example.ghifa.mrad2 D/FA: Connected to remote service
11-26 10:10:27.724 30387-30488/com.example.ghifa.mrad2 V/FA: Processing queued up service tasks: 4
11-26 10:10:32.844 30387-30488/com.example.ghifa.mrad2 V/FA: Inactivity, disconnecting from the service
11-26 10:10:32.864 30387-30488/com.example.ghifa.mrad2 W/ContextImpl: forgetServiceDispatcher failed for:
java.lang.IllegalArgumentException: Service not registered: com.google.android.gms.measurement.internal.zzef@28094a2f
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1105)
at android.app.ContextImpl.unbindService(ContextImpl.java:1873)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:562)
at com.google.android.gms.common.stats.ConnectionTracker.unbindService(Unknown Source)
at com.google.android.gms.measurement.internal.zzdr.disconnect(Unknown Source)
at com.google.android.gms.measurement.internal.zzdr.zzcz(Unknown Source)
at com.google.android.gms.measurement.internal.zzdr.zzc(Unknown Source)
at com.google.android.gms.measurement.internal.zzds.run(Unknown Source)
at com.google.android.gms.measurement.internal.zzw.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at com.google.android.gms.measurement.internal.zzbs.run(Unknown Source)






java android firebase firebase-realtime-database






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 26 '18 at 4:01









Asset Bekbossynov

168114




168114










asked Nov 26 '18 at 3:18









GhifariGhifari

63




63













  • Do you have the app connected with Firebase properly? Also, do you have inserted some data in Firebase that can be seen on recycler view at the same reference in your Firebase Database.

    – PradyumanDixit
    Nov 26 '18 at 3:26











  • did you register your service in the manifest?

    – Rainmaker
    Nov 26 '18 at 3:29











  • @PradyumanDixit yess i've done that

    – Ghifari
    Nov 26 '18 at 3:42











  • @Rainmaker how to do that? i don't know that

    – Ghifari
    Nov 26 '18 at 3:43



















  • Do you have the app connected with Firebase properly? Also, do you have inserted some data in Firebase that can be seen on recycler view at the same reference in your Firebase Database.

    – PradyumanDixit
    Nov 26 '18 at 3:26











  • did you register your service in the manifest?

    – Rainmaker
    Nov 26 '18 at 3:29











  • @PradyumanDixit yess i've done that

    – Ghifari
    Nov 26 '18 at 3:42











  • @Rainmaker how to do that? i don't know that

    – Ghifari
    Nov 26 '18 at 3:43

















Do you have the app connected with Firebase properly? Also, do you have inserted some data in Firebase that can be seen on recycler view at the same reference in your Firebase Database.

– PradyumanDixit
Nov 26 '18 at 3:26





Do you have the app connected with Firebase properly? Also, do you have inserted some data in Firebase that can be seen on recycler view at the same reference in your Firebase Database.

– PradyumanDixit
Nov 26 '18 at 3:26













did you register your service in the manifest?

– Rainmaker
Nov 26 '18 at 3:29





did you register your service in the manifest?

– Rainmaker
Nov 26 '18 at 3:29













@PradyumanDixit yess i've done that

– Ghifari
Nov 26 '18 at 3:42





@PradyumanDixit yess i've done that

– Ghifari
Nov 26 '18 at 3:42













@Rainmaker how to do that? i don't know that

– Ghifari
Nov 26 '18 at 3:43





@Rainmaker how to do that? i don't know that

– Ghifari
Nov 26 '18 at 3:43












1 Answer
1






active

oldest

votes


















1














How to register service in the manifest



Add ServiceName under application tag in AndroidManifest.xml (naming in the example should be replaced by yours)



<service android:name="yourpackage.ServiceName" />


sample:



<service android:name=".MyFirebaseService" />


or you may need something like this with Intent-Filter, you don't provide any code so it is unclear what your are trying to do:



<service android:name=".MyFirebaseService" >
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>





share|improve this answer


























  • Excuseme, what "ServiceName" should I write?

    – Ghifari
    Nov 26 '18 at 4:00











  • so you should have a class that contains your Firebase service. You need to write the name of that class instead of ServiceName and the path to it instead of yourpackage

    – Rainmaker
    Nov 26 '18 at 4:04











  • when you start typing class name in the quotes Android Studio will prompt you with import

    – Rainmaker
    Nov 26 '18 at 4:06











  • Okay, I'll try it

    – Ghifari
    Nov 26 '18 at 4:06











  • sir I still confused, do you have an example? My firebase service is at Main.class

    – Ghifari
    Nov 26 '18 at 4:08













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53474367%2ffirebase-data-not-showing-on-my-recyclerview%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














How to register service in the manifest



Add ServiceName under application tag in AndroidManifest.xml (naming in the example should be replaced by yours)



<service android:name="yourpackage.ServiceName" />


sample:



<service android:name=".MyFirebaseService" />


or you may need something like this with Intent-Filter, you don't provide any code so it is unclear what your are trying to do:



<service android:name=".MyFirebaseService" >
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>





share|improve this answer


























  • Excuseme, what "ServiceName" should I write?

    – Ghifari
    Nov 26 '18 at 4:00











  • so you should have a class that contains your Firebase service. You need to write the name of that class instead of ServiceName and the path to it instead of yourpackage

    – Rainmaker
    Nov 26 '18 at 4:04











  • when you start typing class name in the quotes Android Studio will prompt you with import

    – Rainmaker
    Nov 26 '18 at 4:06











  • Okay, I'll try it

    – Ghifari
    Nov 26 '18 at 4:06











  • sir I still confused, do you have an example? My firebase service is at Main.class

    – Ghifari
    Nov 26 '18 at 4:08


















1














How to register service in the manifest



Add ServiceName under application tag in AndroidManifest.xml (naming in the example should be replaced by yours)



<service android:name="yourpackage.ServiceName" />


sample:



<service android:name=".MyFirebaseService" />


or you may need something like this with Intent-Filter, you don't provide any code so it is unclear what your are trying to do:



<service android:name=".MyFirebaseService" >
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>





share|improve this answer


























  • Excuseme, what "ServiceName" should I write?

    – Ghifari
    Nov 26 '18 at 4:00











  • so you should have a class that contains your Firebase service. You need to write the name of that class instead of ServiceName and the path to it instead of yourpackage

    – Rainmaker
    Nov 26 '18 at 4:04











  • when you start typing class name in the quotes Android Studio will prompt you with import

    – Rainmaker
    Nov 26 '18 at 4:06











  • Okay, I'll try it

    – Ghifari
    Nov 26 '18 at 4:06











  • sir I still confused, do you have an example? My firebase service is at Main.class

    – Ghifari
    Nov 26 '18 at 4:08
















1












1








1







How to register service in the manifest



Add ServiceName under application tag in AndroidManifest.xml (naming in the example should be replaced by yours)



<service android:name="yourpackage.ServiceName" />


sample:



<service android:name=".MyFirebaseService" />


or you may need something like this with Intent-Filter, you don't provide any code so it is unclear what your are trying to do:



<service android:name=".MyFirebaseService" >
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>





share|improve this answer















How to register service in the manifest



Add ServiceName under application tag in AndroidManifest.xml (naming in the example should be replaced by yours)



<service android:name="yourpackage.ServiceName" />


sample:



<service android:name=".MyFirebaseService" />


or you may need something like this with Intent-Filter, you don't provide any code so it is unclear what your are trying to do:



<service android:name=".MyFirebaseService" >
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
</intent-filter>
</service>






share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 26 '18 at 4:16

























answered Nov 26 '18 at 3:49









RainmakerRainmaker

3,30531641




3,30531641













  • Excuseme, what "ServiceName" should I write?

    – Ghifari
    Nov 26 '18 at 4:00











  • so you should have a class that contains your Firebase service. You need to write the name of that class instead of ServiceName and the path to it instead of yourpackage

    – Rainmaker
    Nov 26 '18 at 4:04











  • when you start typing class name in the quotes Android Studio will prompt you with import

    – Rainmaker
    Nov 26 '18 at 4:06











  • Okay, I'll try it

    – Ghifari
    Nov 26 '18 at 4:06











  • sir I still confused, do you have an example? My firebase service is at Main.class

    – Ghifari
    Nov 26 '18 at 4:08





















  • Excuseme, what "ServiceName" should I write?

    – Ghifari
    Nov 26 '18 at 4:00











  • so you should have a class that contains your Firebase service. You need to write the name of that class instead of ServiceName and the path to it instead of yourpackage

    – Rainmaker
    Nov 26 '18 at 4:04











  • when you start typing class name in the quotes Android Studio will prompt you with import

    – Rainmaker
    Nov 26 '18 at 4:06











  • Okay, I'll try it

    – Ghifari
    Nov 26 '18 at 4:06











  • sir I still confused, do you have an example? My firebase service is at Main.class

    – Ghifari
    Nov 26 '18 at 4:08



















Excuseme, what "ServiceName" should I write?

– Ghifari
Nov 26 '18 at 4:00





Excuseme, what "ServiceName" should I write?

– Ghifari
Nov 26 '18 at 4:00













so you should have a class that contains your Firebase service. You need to write the name of that class instead of ServiceName and the path to it instead of yourpackage

– Rainmaker
Nov 26 '18 at 4:04





so you should have a class that contains your Firebase service. You need to write the name of that class instead of ServiceName and the path to it instead of yourpackage

– Rainmaker
Nov 26 '18 at 4:04













when you start typing class name in the quotes Android Studio will prompt you with import

– Rainmaker
Nov 26 '18 at 4:06





when you start typing class name in the quotes Android Studio will prompt you with import

– Rainmaker
Nov 26 '18 at 4:06













Okay, I'll try it

– Ghifari
Nov 26 '18 at 4:06





Okay, I'll try it

– Ghifari
Nov 26 '18 at 4:06













sir I still confused, do you have an example? My firebase service is at Main.class

– Ghifari
Nov 26 '18 at 4:08







sir I still confused, do you have an example? My firebase service is at Main.class

– Ghifari
Nov 26 '18 at 4:08






















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53474367%2ffirebase-data-not-showing-on-my-recyclerview%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

404 Error Contact Form 7 ajax form submitting

How to know if a Active Directory user can login interactively

Refactoring coordinates for Minecraft Pi buildings written in Python