mobile

OTA updates in React Native

OTA updates in React Native

Hi there, it's been a long time since I have written a blog on React Native. Today I just want to explain what OTA updates are and how you can use them in your React Native project. We will deep dive into OTA updates, advantages, and challenges you may face while dealing with this. Disclaimer This blog covers some advanced topics from my experience building various apps. If you're new to React Native, some parts might be hard to understand, and that's okay. Everyone starts somewhere. Feel free to ask questions or share your thoughts in the comments section. The…
Read More
Samsung Unpacked 2024: Everything announced including Galaxy Ring, Z Fold 6, Z Flip 6, Galaxy Watch Ultra and more

Samsung Unpacked 2024: Everything announced including Galaxy Ring, Z Fold 6, Z Flip 6, Galaxy Watch Ultra and more

Samsung wrapped up its summer Galaxy Unpacked event yesterday, and there weren’t too many surprises. Leaks before the event pointed to fresh Galaxy Z Flip and Galaxy Z Fold phones, along with a pair of new watches and more info on the Galaxy Ring. What we got was... announcements of the Galaxy Z Flip 6, the Galaxy Z Fold 6, the Galaxy Watch 7, the Galaxy Watch Ultra and a proper unveil of the Galaxy Ring. Leakers — is there anything they can’t do?Perhaps the one surprise was news from Google that WearOS 5 will debut on the new Galaxy…
Read More
Understanding Adapters in Java for Android Development

Understanding Adapters in Java for Android Development

Adapters are a crucial part of Android development, especially when dealing with user interfaces. They act as a bridge between a data source and a user interface component, enabling the display of dynamic content in views like ListView, GridView, and RecyclerView. This article explores the concept of adapters in Java for Android Studio, illustrating their importance and usage with practical examples. Why Are Adapters Important in Android? Data Binding: Adapters facilitate the binding of data from data sources (like arrays, databases, or web services) to UI components.Dynamic Content: They allow for the dynamic display of content, making it easy to…
Read More
Understanding Android Application Lifecycle and Process

Understanding Android Application Lifecycle and Process

Let’s dive into the details of how Android manages processes, components, and the overall lifecycle of an app. Introduction Understanding how Android manages processes, components, and the overall lifecycle of an application is fundamental for any developer creating robust and efficient apps. This article delves into the core concepts behind process creation, control, and sandboxing within the Android system. It also explores the lifecycles of key components like Activities, Services, and BroadcastReceivers, providing a roadmap for effective component management. Processes in Android Process Creation: Every Android application runs in its own Linux process. When an app's code needs to run…
Read More
Creating Chat Bubbles with curls in React Native (svg)

Creating Chat Bubbles with curls in React Native (svg)

Recently, while working on a project, I needed to create a chat feature with a UI similar to iMessage. When I reached the part where I had to implement the curls, I considered three options: One: Use before and after pseudo element. (Challenge: pseudo classes and element do not work in react-native, hence option 2) Two: Use two Views one for the curl and another to overlap it. Something like this <View style={styles.chatBubble}> <Text style={styles.text}> Hey whats up </Text> <View style={styles.curl}></View> <View style={styles.curlOverlap}></View> </View> Enter fullscreen mode Exit fullscreen mode Three: Use an Svg. Less work :) yay! Initially, I…
Read More
Artifact’s DNA Lives on in Yahoo’s Revamped AI-Powered News App

Artifact’s DNA Lives on in Yahoo’s Revamped AI-Powered News App

The actual articles displayed in the app are curated from news websites and are available without paywalls or subscription requirements. (Yahoo News partners with over a thousand publishers, who get paid based on revenue sharing agreements. It’s kind of like Spotify, but for news.)Getting started requires minimal effort. When you launch it, the app asks you to pick five or more news topics you’re interested in, like politics, science, gaming, and climate. From there, a combination of algorithmic curation and some human finagling from people in an editorial role at Yahoo News determine what you see. Additional customization options let…
Read More
React Native Speed Math App

React Native Speed Math App

Hello Everyone, I'm back after 1 year and 4 months.This time with react native project. Let's start the projectI created this project with Expo and used used Expo Router for routing.Create a new folder and open the terminal and run this command npx create-expo-app@latest Enter fullscreen mode Exit fullscreen mode After running this command successfully, You can remove the boilerplate code and start fresh with a new project. Run the following command to reset your project: npm run reset-project Enter fullscreen mode Exit fullscreen mode Before jumping to the code, let's understand the functionality of our app.When the user is…
Read More
Automatic retry function with Kotlin flows

Automatic retry function with Kotlin flows

Table of contents Short code example Why use this? My app on the Google play store Resources Programming Android with Kotlin: Achieving Structured Concurrency with Coroutines. Chapter 10 Short code example Here is the code that will allow you to make automatic retries on a flow: fun <T, R : Any> Flow<T>.mapWithRetry( action: suspend (T) -> R, predicate: suspend (R, attempt: Int) -> Boolean ) = map { data -> var attempt = 0L var shallRetry: Boolean var lastValue: R? = null do { val tr = action(data) shallRetry = predicate(tr, (++attempt).toInt()) if (!shallRetry) lastValue = tr } while (shallRetry)…
Read More
Judge Hints at Plans to Rein In Google’s Illegal Play Store Monopoly

Judge Hints at Plans to Rein In Google’s Illegal Play Store Monopoly

A jury in December found that Google broke US antitrust laws through deals and billing rules that gave an unfair boost to its Google Play app store. On Thursday, a judge began laying out how Google could be forced to change its business as a penalty. The remedies under consideration could drive the most consequential shakeup ever to Google’s dominance over the Android universe.Fortnite video game developer Epic Games, which beat Google in the trial that saw a jury declare the Play store an illegal monopoly, is demanding that federal judge James Donato ban Google from contracts that deter competition.…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.