android-firebase-chat | Advance chat app for android devices using Firebase | Authentication library
kandi X-RAY | android-firebase-chat Summary
kandi X-RAY | android-firebase-chat Summary
Advance chat app for android devices using Firebase
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initializes the dialog
- Edit group
- Adds a room to the group
- Deletes a room for a specific user
- Binds ListFriendViewHolder to ListFriendViewHolder
- Delete a friend
- Create view
- Gets all friend info
- Initialize the list
- Create a new notification
- Click register
- Gets the list friend
- Sets the image data for a ListView
- Gets a group by id
- Initializes the Activity
- Initialize the instance
- BindViewHolder
- Bind message
- Cleanup service
- Create new view
- Gets the list of groups
- Helper method to set the items in the ListViewHolder
- Handle the activity result
- Initializes the ChatView
- Called when a context item is selected
- Invoked when the fragment is created
android-firebase-chat Key Features
android-firebase-chat Examples and Code Snippets
Community Discussions
Trending Discussions on android-firebase-chat
QUESTION
I've been starting to learn android since past few months. I'm creating a very basic chat application that uses Firebase Authentication, Firebase realtime database and Firebase Storage. I have used Lapit Chat Application YouTube tutorial and its source code in GitHub as the reference.
My application has MainActivity as the launcher activity, where the Firebase Authentication checks whether authentication is successful or not. If not, user is navigated to StartActivity (where user can login or register a new account). MainActivity has two fragments, namely ChatsFragment and FriendsFragment, which can be slided to navigate to each other (ViewPager is used).
Problem: The app crashes at startup when launched for the first time. After showing 'Unfortunately ChaTeX has stopped'
and pressing okay, the app then launches, and everything works fine.
I am currently testing this application in Android Marshmallow in two devices where I get the same error in both devices. But the application doesn't launch at all in Nougat devices and the app keeps crashing all the time. What I guess is that the cause of error in both the android versions is same.
Logcat shows java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.auth.FirebaseUser.getUid()' on a null object reference
in the onCreateView method of ChatFragments.java as shown in the snippet below(The line where I get Error is commented):
ChatsFragment.java:
...ANSWER
Answered 2018-Jan-19 at 16:07According to firebase's documentation :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install android-firebase-chat
You can use android-firebase-chat like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the android-firebase-chat component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page