1) What are the four essential states of an activity? Active – if the activity is at the foreground Paused – if the activity is at the background and still visible Stopped – if the activity is not visible and therefore is hidden or obscured by another activity Destroyed – when the activity process is killed or completed terminated 2) What is a visible activity? A visible activity is one that sits behind a foreground dialog. It is actually visible to the user, but not necessarily being in the foreground itself. 3) When is the best time to kill a foreground activity? The foreground activity, being the most important among the other states, is only killed or terminated as a last resort, especially if it is already consuming too much memory. When a memory paging state has been reach by a foreground activity, then it is killed so that the user interface can retain its responsiveness to the user. 4) What are the four essential states of an activity? Ans. Active, Paused, Stopped and Des...
Last night, I was discussing artificial intelligence with my dad over dinner. He’s not a tech expert. He doesn’t know what ChatGPT is. He doesn’t follow AI news. But what he said stopped me in my tracks: “AI is like when computers came. Everyone thought we’d lose jobs, but more jobs came. You just need to learn new things. Same now.” Simple. Clear. Wise. And he’s absolutely right—because he lived through India’s computer revolution . And what we’re seeing with AI today? It’s history repeating itself. A Flashback to the 90s: The Computer Panic Back then, people were afraid. Clerks, typists, accountants—entire professions feared they’d be replaced by machines. There were protests. Strikes. Resistance. My dad remembers how even in banks and government offices, there was fear that computers would make humans useless. But what happened? Those who resisted got left behind. Those who learned built new careers. And those who adapted transformed India. Entire cities like Bengal...
By Revansiddappa Kalshetty Real-time messaging has become a critical feature in today’s mobile apps — from social networks to support systems and team collaboration tools. But building it from scratch can be challenging: server setup, websockets, message queuing, typing indicators, presence, and so much more. Luckily, you don’t have to do it all yourself. In this tutorial series, I’ll show you how to build a modern, scalable in-app chat feature for Android using Kotlin , MVVM architecture , and PubNub , a powerful platform that handles the heavy lifting of real-time infrastructure. What You’ll Build Here’s a sneak peek of the features we’ll implement in this tutorial series: Real-time messaging using PubNub Chat history with message persistence Online/offline presence tracking Typing indicators Media sharing (optional) Push notifications (optional) Secure access with PubNub Access Manager (PAM) Multi-channel & group chat support All of this will be...
Comments
Post a Comment