Blog

Page 795 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for What is a lambda expression in C++11?

What is a lambda expression in C++11?

Published on September 2, 2023

## šŸ˜ŽšŸŒˆšŸ–„ Introducing Lambda Expressions in C++11: A Powerful Tool for Modern Programming! šŸš€šŸ”„ Welcome, fellow tech enthusiasts! šŸ’»āœØ In today's blog post, we're diving deep into the world of C++11 and uncovering the mystery behind lambda expressions. šŸ•µļø

Cover Image for How to manage startActivityForResult on Android
android

How to manage startActivityForResult on Android

Published on September 2, 2023

# How to Manage `startActivityForResult` on Android: A Handy Guide šŸ“±šŸ’¼ Are you struggling with managing the `startActivityForResult` method in your Android app? šŸ“² Don't worry, you're not alone! Many developers face common issues when it comes to handlin

Cover Image for How to add dividers and spaces between items in RecyclerView
android

How to add dividers and spaces between items in RecyclerView

Published on September 2, 2023

# How to Add Dividers and Spaces Between Items in RecyclerView You've probably encountered this problem before: you have a list of items in a RecyclerView, but there's no easy way to add dividers or spaces between them. In the past, you could easily accom

Cover Image for Fling gesture detection on grid layout
android

Fling gesture detection on grid layout

Published on September 2, 2023

# Fling Gesture Detection on Grid Layout: A Complete Guide šŸ‘ So, you want to add **fling gesture detection** to your *Android application*, specifically on a **grid layout**? Great! In this guide, I'll address common issues, provide easy solutions, and g

Cover Image for Static way to get "Context" in Android?
android

Static way to get "Context" in Android?

Published on September 2, 2023

šŸ“ Blog Post: The Static Way to Get 'Context' in Android! šŸ¤” Are you tired of saving the 'Context' instance every time it changes in your Android app? You're not alone! Many developers face this common issue and are looking for a better solution. Well, gu

Cover Image for Drag and drop files into WPF
c#.net

Drag and drop files into WPF

Published on September 2, 2023

# How to Drag and Drop Files into a WPF Application šŸ‘‹ Hey there! Are you struggling with dragging and dropping files into your WPF application? šŸ“šŸ”½ Well, worry no more! In this blog post, we'll explore a simple solution to your problem by addressing com

Cover Image for Android "Only the original thread that created a view hierarchy can touch its views."
androidmultithreading

Android "Only the original thread that created a view hierarchy can touch its views."

Published on September 2, 2023

# Android "Only the original thread that created a view hierarchy can touch its views." - Easy solutions šŸ‘€šŸ“± Are you trying to update a TextView in your Android app, but getting an annoying exception that says "Only the original thread that created a vie

Cover Image for findViewById in Fragment
android

findViewById in Fragment

Published on September 2, 2023

# šŸ–¼ļø ImageView in Fragment: Using findViewById So you're trying to create an ImageView in a Fragment and reference the relevant ImageView element from the XML layout file. However, you've come across an issue - the `findViewById` method seems to only wor

Cover Image for Can"t create handler inside thread that has not called Looper.prepare()
android

Can"t create handler inside thread that has not called Looper.prepare()

Published on September 2, 2023

šŸ“ **Troubleshooting Guide: Can't create handler inside thread that has not called Looper.prepare()** šŸ” **Understanding the Exception** So you encountered the `java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.pre

Blog | Matheus Mello