Posts

Android Studio Logcat Explained

Image
Introduction: Hey guys, so many of you seem to not use Logcat properly, so here is a post on how you can use Logcat and how you can solve your errors with it. Hope it helps.  What is Logcat? The  Logcat  window in Android Studio displays system messages, such as when a garbage collection occurs, and messages that you added to your app.  When an app throws an exception, Logcat shows a message followed by the associated stack trace containing links to the line of code. View your app logs: To display the log messages for an app: Build and run your app  on a device. Click  View > Tool Windows > Logcat  (or click  Logcat  in the tool window bar). By default, Logcat displays just the log messages for your app running on the device The Logcat toolbar provides the following buttons: 1. Clear logcat   : Click to clear the visible log. 2. Scroll to the end   : Click to jump to the bottom of the log and see the latest log messages. If yo...

How to implement Google FCM Push Notification in Android Application

Image
Introduction : What is  Firebase Cloud Messaging (FCM)? Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably send messages at no cost. Using FCM, you can notify a client app that a new email or other data is available to sync. You can send notification messages to the user so that you can retain your user and keep them engaged. For use cases such as instant messaging, a message can transfer a payload of up to 4KB to a client app. Why we need FCM? You have developed an app, you want to send some information to your audience, you wonder how will you deliver them? Here FCM comes in picture. Google introduced Firebase Cloud Messaging (FCM) which is a free tool/platform that will help you send Push Notification to Android apps. All modern app uses FCM to send the notification to their audience, it's a great feature to integrate with your app to make it more premium. Below is the self-explanatory diagram, how FCM works in the back...