Skip to content

Tag: android

get int data from firestore

im trying to get int data from firestore but before that app crashes i dont know why when i try it as string it work i get it and i can list it but when i try it int app crashes even before get data here is my code second part is my adapter logchat said 2 line is wrong

Relations between Room Tables Android

I am developping a chat app. I have two Entities And In MessageDao I want to get Contact phone correponding to the contact_id in MessageItem Answer You have three ways you can do this. 1) You can use a POJO with an @Embedded and an @Relation in which case you return MessageItem’s with the Contact e.g. :…

Use API REST interface to authenticate user on android app

I am writing an App with friends that uses an API to login. I am using OKHTTP for the GET/POST Requests. I have written the following code for the Login page: After trying to login I get following error message I have tried multithreading but I have not found a solution that awaits the result of the login. An…

Android RecyclerView on a null object reference

im trying to get Highscores from a File and display them in a RecyclerView. But im getting the following Error: I know that my scoreItems in arent empty. I dont know what i am doing wrong. I´m new in the Android World 🙂 Thanks for helping. My files: score_activity.java CustomAdapter.java activity_score_activi…