Blog

Page 717 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Activity has leaked window that was originally added
androidmemory-leaks

Activity has leaked window that was originally added

Published on September 2, 2023

# 😱 Activity has leaked window that was originally added ❌ You're happily building your Android app, and suddenly, this error pops up: ``` Activity com.mypkg.myP has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@44c46ff0 that was

Cover Image for How to get current time and date in Android
androiddatetime

How to get current time and date in Android

Published on September 2, 2023

# How to Get Current Time and Date in Android πŸ•’πŸ“… Are you developing an Android app and want to display the current time and date? Don't worry, we've got you covered! In this guide, we'll walk you through the process step by step. πŸšΆβ€β™‚οΈ ## Common Issues

Cover Image for Run/install/debug Android applications over Wi-Fi?
androiddebugging

Run/install/debug Android applications over Wi-Fi?

Published on September 2, 2023

## πŸ“² How to Run/Install/Debug Android Applications over Wi-Fi? Are you tired of being tied down by cables while developing Android applications? πŸ€” Do you want to unleash the full potential of your creative genius and be able to test your apps wirelessly

Cover Image for Find the unique values in a column and then sort them
dataframepandaspythonsortingunique

Find the unique values in a column and then sort them

Published on September 2, 2023

# πŸŽ‰ Finding Unique Values and Sorting Them in a Pandas DataFrame πŸŽ‰ So you have a pandas dataframe and you want to find the unique values in one of its columns and then sort them in ascending order. Sounds like a simple task, right? But wait, you tried i

Cover Image for Strange OutOfMemory issue while loading an image to a Bitmap object
android

Strange OutOfMemory issue while loading an image to a Bitmap object

Published on September 2, 2023

πŸ“ Blog Post: Strange OutOfMemory Issue While Loading an Image to a Bitmap Object πŸ–ΌοΈ Are you facing an OutOfMemory issue when trying to load an image to a Bitmap object in your Android app? 😫 Don't worry, you're not alone! This is a common problem faced

Cover Image for Hex transparency in colors
android

Hex transparency in colors

Published on September 2, 2023

🌈 Hex Transparency in Colors: A Complete Guide 🌈 Are you facing trouble with hex color transparency? Don't worry, we've got you covered! In this blog post, we'll address the common issues and provide easy solutions to help you achieve the desired transp

Cover Image for What is the difference between gravity and layout_gravity in Android?
android

What is the difference between gravity and layout_gravity in Android?

Published on September 2, 2023

## The Difference Between `android:gravity` and `android:layout_gravity` in Android If you've ever worked with Android layout properties, you've probably come across `android:gravity` and `android:layout_gravity`. While they may sound similar, these two p

Cover Image for Is there a way to get the source code from an APK file?
android

Is there a way to get the source code from an APK file?

Published on September 2, 2023

# Can You Rescue Your Source Code from an APK File? πŸ“¦πŸ€” Have you ever experienced the heart-wrenching moment when your hard drive crashes, and you lose all your precious source code? It's like seeing your dreams crumble before your eyes! 😱 But fear not!

Cover Image for Activity restart on rotation Android
android

Activity restart on rotation Android

Published on September 2, 2023

# Activity Restart on Rotation in Android πŸ”„ πŸ“± Have you ever noticed that when you rotate your Android device, your app's activity gets restarted? This can be quite frustrating, especially if you have a lot of initial setup logic in the `onCreate` method

Cover Image for How can you get the build/version number of your Android application?
android

How can you get the build/version number of your Android application?

Published on September 2, 2023

πŸ“±πŸ”’ πŸ—³οΈ How to Get the Build/Version Number of Your Android App? Are you feeling lost trying to display the build/version number of your Android application on the UI? Don't worry, you're not alone! πŸ€” In this blog post, we will walk you through the pro