Posts

How AI and VAEs Are Powering Smart Android Apps for Personalized Patient Health Monitoring

Image
  Imagine a health app that doesn’t just remind you to take your medication—but understands your medical history, monitors your vitals in real time, and can even predict when something’s wrong before you feel it. Welcome to the future of healthcare, driven by Artificial Intelligence (AI) and Variational Autoencoders (VAEs) —and it's already here, quietly revolutionizing how Android apps are built to manage patient health more intelligently than ever before. The Evolution of Health Apps: From Basic to Brilliant Most health apps today are pretty straightforward: track steps, count calories, maybe give you reminders medication reminders. Useful? Sure. But transformative? Not really. What’s changing the game is the integration of AI models —especially deep learning tools like VAEs—into smart Android apps that are built to handle complex medical data, spot patterns, and adapt in real time. These apps don’t just track—they learn, predict, and act. So, What Exactly is a VAE? A...

Learning Like Atom: How a Robot Boxer from Real Steel Taught Me to Embrace AI

Image
I remember the first time I watched Real Steel . I went in expecting an action-packed robot boxing movie. I wasn’t prepared to walk out inspired to learn about artificial intelligence. But there I was — watching Atom, a beat-up, outdated robot, go from the scrapyard to the championship ring — and something clicked. Atom didn’t have the power of the newer bots, the speed of the elite models, or even the voice to speak for himself. But what he did have was something incredibly powerful. He could learn . The Underdog That Learned to Fight Atom wasn’t built to be a champion. He was a sparring robot — a punching bag. But as Charlie, a struggling ex-boxer, trained with him, Atom began to change. He watched. He copied. He improved. With every punch, every dodge, every defeat, Atom got better. Not because he was reprogrammed, but because he learned — from experience, from observation, from failure. And I couldn’t help but think: That’s what AI is all about. The Mirror Between a Rob...

Part 2: Types of Android Tests – Unit, UI, Integration & End-to-End

  Understand the purpose, tools, and trade-offs of each test type before you write a single line of code. Introduction Before writing your first test, you need to understand the different types of tests available — and when to use them. This post will walk through the four major categories of Android tests : Unit Tests UI Tests Integration Tests End-to-End (E2E) Tests Each test has a purpose. And knowing when not to use one is just as important as knowing when to use it. Why This Matters If you only write UI tests, your tests will be slow and fragile. If you only write unit tests, you’ll miss how features interact. If you don’t test at all — you’re flying blind. A good Android test suite balances speed, confidence, and coverage. That’s where the test pyramid comes in. The Android Testing Pyramid UI Tests (Espresso) Integration Tests (Fakes) Unit Tests (JUnit, Mockito) Unit Tests are fast, small, and easy to maintain. Write ...

Part 1: Why Testing Matters in Android Development

  Real reasons developers should test — and how it helps more than it hurts Introduction Most Android developers know they should write tests — yet many avoid it. Common excuses include: "It slows me down." "My app isn’t big enough to need tests." "I don’t know where to start." This post is here to change that mindset. Testing isn’t a chore — it’s a productivity tool . When done right, it makes development faster, safer, and less frustrating. This series will show you how. The Hidden Cost of Untested Code Picture this: You fix a bug, ship a release, and a few days later crash reports spike. That “quick fix” accidentally broke something else. Without tests: Small changes are risky Bugs go unnoticed until users complain Refactoring becomes slow and stressful With automated tests: You catch regressions early You can refactor confidently You reduce manual testing effort You write better, more maintainable code ...

Android Testing Masterclass – A Complete Blog Series

  A step-by-step guide to mastering Unit Testing, UI Testing, and End-to-End Testing in Android. This post is the official index and will be updated as the series progresses. Welcome If you're an Android developer who’s ever struggled with fragile code, broken UIs, or unpredictable bugs, this series is for you. This is a complete, no-fluff tutorial series on Android testing — from unit tests with JUnit to UI tests with Espresso, mocking with Mockito, integration strategies, and clean architecture. Each post also includes interview questions and answers to help you prepare for technical interviews or strengthen your foundations. All content is self-contained within the blog — no external repos or tools required. What You’ll Learn Writing unit tests for business logic with JUnit Mocking dependencies with Mockito Creating stable UI tests using Espresso Structuring integration and end-to-end tests Practicing test-driven development (TDD) Designing testable ap...
  Perfect — here's how to create a   clean, reusable utility method   to hide the keyboard across all activities or fragments, including   ChatActivity . ✅ Step-by-Step: Make  hideKeyboard  a Reusable Utility 🔹 Step 1: Create a Kotlin File for Extensions 📄  KeyboardUtils.kt  (create under  com.seneca.dayamed.utils  or your preferred utils package): package com.seneca.dayamed.utils import android.app.Activity import android.view.View import android.view.inputmethod.InputMethodManager import android.content.Context fun Activity.hideKeyboard() { val imm = getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager val view = currentFocus ?: View(this) imm.hideSoftInputFromWindow(view.windowToken, 0) view.clearFocus() } ✅ This will work in any  Activity . You can also extend this to  Fragment  or  View  if needed later. 🔹 Step 2: Use It in  ChatActivity In  ChatActivity , updat...

What My Dad Taught Me About AI—Without Knowing Anything About It

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...