Mobile Dev

Questions about iOS, Android development, SDKs, and mobile apps.

Mobile DevFix Android MediaStore Inconsistent Path Capitalization

Android MediaStore returns inconsistent casing like 'WhatsApp' vs 'whatsapp' for files in the same folder due to case-insensitive filesystems and scan snapshots. Normalize with canonical paths, LIKE queries, and RELATIVE_PATH for reliable WhatsApp media access.

1 answer• 5 views
Mobile DevStripe Partial Refunds for Split Payments in Flutter

Learn how to handle Stripe partial refunds for incomplete split payments with time limits in Flutter apps. Use PaymentIntents, flutter_stripe, cron jobs, webhooks, and Stripe refund API for auto-refunds on timeouts.

1 answer• 4 views
Mobile DevFix Android WebView AppBarLayout Flicker on Scroll

Eliminate screen flicker when hiding AppBarLayout/SearchBar in Android WebView during scroll. Use NestedScrollView wrapper or NestedScrollWebView library for smooth Chrome/Opera-like behavior with CoordinatorLayout. Full code updates included.

1 answer• 4 views
Mobile DevFix npm ERESOLVE Could Not Resolve in React Navigation

Resolve npm error eresolve could not resolve in React Native after React Navigation updates for Google's 16kb rule. Upgrade to 7.x, install peer deps like reanimated, handle breaking changes, and test stability without app crashes.

1 answer• 4 views
Mobile DevFix INSTALL_FAILED_INSUFFICIENT_STORAGE Error with android:installLocation

Learn how to resolve Android installation errors using the android:installLocation manifest attribute to install apps on external storage.

1 answer• 5 views
Mobile DevFlutter json_serializable fromJson Error: Nested Classes Fix

Resolve 'The method 'fromJson' isn't defined for SubOne/SubTwo' in Flutter json_serializable nested classes. Add factory delegates with explicitToJson for self-referential lists. Full code, build_runner steps, and best practices.

1 answer• 5 views
Mobile DevAlign IconButton with Text in Jetpack Compose Grid Using Weight

Fix IconButton misalignment in Jetpack Compose rows despite Modifier.weight on inner Icon. Align perfectly with Text and Switch in grids by weighting the button and using fillMaxSize. Full code examples and tips.

1 answer• 5 views
Mobile DevFix KMM commonMain Unresolved Imports Android Studio

Resolve red unresolved imports in KMM commonMain source set despite successful Gradle builds and runs. Fixes for Android Studio templates: add android.library plugin, enable metadata flags, correct Compose and coroutines deps for Kotlin 2.3.0.

1 answer• 5 views
Mobile DevFix 16KB Page Size Issue in Flutter for Play Store

Resolve 16KB page size warnings, zip-alignment errors, and Android 12 compatibility in Flutter apps for Google Play Store uploads. Upgrade AGP, enable uncompressed native libs, update plugins, and verify ELF alignments with readelf and bundletool.

1 answer• 5 views
Mobile DevUITextField Text Change Detection in iOS Development

Learn how to detect text changes in UITextField in iOS with immediate access to updated text. Explore delegate methods, notifications, and alternative approaches for real-time text handling.

1 answer• 4 views
Mobile DevSwift DispatchWorkItem Init: Fix Self Capture Error

Fix 'self captured by closure before members initialized' error in Swift class init when using DispatchWorkItem for macOS screen lock reminders. Use optional properties, helper methods, and [weak self] for cancel/reschedule without retain cycles.

1 answer• 4 views
Mobile DevExpo Router: Swipe Direction Like Back for New Screens

Customize Expo Router swipe direction to mimic router.back() left-to-right animation on new screens using slide_from_left, gestureDirection: 'horizontal', and Stack options. Perfect for step-driven apps jumping to intermediary screens with intuitive back gestures.

1 answer• 4 views
Mobile DevAndroid Studio: Search String Across All Project Files

Master Android Studio search for all occurrences of a string like .getUuid() across entire project using Ctrl+Shift+F find in files. Fix top-right bar and Edit > Find issues, customize scopes, regex, and replace all files efficiently.

1 answer• 3 views
Mobile DevUnderstanding Context Methods in Android Development

Learn the differences between getContext(), getApplicationContext(), getBaseContext(), and 'this' in Android development. Understand when to use each context type to avoid memory leaks and crashes.

1 answer• 13 views
Mobile DevResolve Invoke-customs Error After Gradle Update

Fix the 'Invoke-customs are only supported starting with Android 0 --min-api 26' error after updating Gradle build tools and Java compatibility in Android Studio.

1 answer• 9 views
Mobile DevAndroid Native: malloc Succeeds But Memset Kills Process

Discover why Android native malloc allows 1GB+ overcommit beyond RAM without access, but lmkd kills the process during memset due to page faults and PSI pressure. No low memory callbacks; debug with mallinfo and heapprofd.

1 answer• 6 views
Mobile DevFix NavHostController Error in Jetpack Compose Navigation

Resolve NavHostController error in Jetpack Compose navigation with correct imports and dependency configuration.

1 answer• 5 views
Mobile DevOffline SMS Messenger: Group Chats via SMS/MMS Possible?

Explore building an offline messenger app using SMS/MMS without internet. Learn limitations of group chats like iMessage, Android SmsManager implementation, iOS challenges, and workarounds for true offline group SMS chats.

1 answer• 5 views
Mobile DevAndroid Strings.xml Placeholders for Runtime Values

Learn to use printf-style placeholders like %1$s in Android strings.xml for dynamic runtime substitution with getString(). Supports strings, ints, plurals, styling, and translations for robust apps.

1 answer• 5 views
Mobile DevPrevent SwiftUI Redraw Delays in watchOS Always-On Mode

Fix UI redraw throttling in watchOS Always-On and power-saving modes on Apple Watch. Learn why Timers and ObservableObject fail, and use TimelineView for clock-driven SwiftUI updates that work reliably even when dimmed.

1 answer• 3 views