October 22, 2024
Chicago 12, Melborne City, USA
Android

Selecting and loading a *.json file using Expo DocumentPicker in older versions of Android

In React Native Expo project, I am using Expo DocumentPicker to select a JSON file and load it into the application. On modern version of Android there is no problem with this, in file explorer I select the desired JSON file and upload it. But on older versions of Android( 7, 8) I can’t select

Read More
Android

How to allign textView with bullet points in a linear layout in Android

I have the following XML layout file <?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".FR_Options"> <HorizontalScrollView android:layout_width="match_parent" android:layout_height="wrap_content" android:fillViewport="true"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="horizontal"> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:orientation="vertical" android:padding="5dp"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:gravity="center" android:text="@string/cap_efficiency" android:textSize="13sp" android:textStyle="bold" /> <ImageView android:layout_width="250dp" android:layout_height="160dp" android:src="@drawable/facts_efficiency_english" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/info_efficiency_test" android:textSize="8sp" /> </LinearLayout> </LinearLayout> </HorizontalScrollView> </FrameLayout> with the

Read More
Android

Run connectedAndroidTests without re-installing APK

I have several instrumentation tests that I want to run as part of a build pipeline. I’m assembling and installing the APK on the device in a previous step and don’t want it to run through that process for the module again when I run ./gradlew app:cAT, is there an easy way to do that?

Read More
Android

How Detect Vehicle Parking for Android Auto App

I’m currently developing an Android Auto app, and I’m using the LongMessageTemplate to display content only when the vehicle is parked, as required by Android Auto guidelines. I Attached a image about it’s docummentation Here’s my problem: the LongMessageTemplate is not displaying correctly. It seems that the system is constantly detecting that the vehicle is

Read More
Android

Problèmes avec Android Studio (problèmes avec la version Java)

Bonjour j’ai également le même problème mais la différence est que je suis sous Ubuntu 24.04 voici ce qui ressort quand je lance la commande flutter doctor : [✓] Flutter (Channel stable, 3.24.3, on Ubuntu 24.04.1 LTS 6.8.0-45-generic, locale en_GB.UTF-8) • Flutter version 3.24.3 on channel stable at /home/williams/snap/flutter/common/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework

Read More
Android

android studio emulator not running

i had updated my android studio to the latest version and from that time my emulator is not working it is showing the error The emulator process for AVD Pixel_9_Pro_XL_API_34 has terminated. my other emulator is working fine pixel 5 api 28 the only problem is pixel 8 and 9 with api 33 and api

Read More
Android

Android RevenueCatSubscriptionPaywallWidgetState.build

I’m trying to integrate Revenuecat service for a subscription (work on flutterflow). I’ve already reviewed all the tutorials several times, changed different options, but it still gives an error. I’ve been trying to solve the problem for a whole week I’m running it on an Android smartphone via a cable from a PC. HELP PLEASE!.

Read More
Android

Converting Kivy to apk

How can I troubleshoot my Kivy/KivyMD app crashing on Android after the loading screen? I’ve developed a simple app with the following code, and while it compiles successfully and the APK installs, it crashes immediately after the loading screen. My buildozer.spec file lists kivy==2.3.0, kivymd, pillow, and kivy_garden as requirements. I want to stick to

Read More
Android

Android studio gradle sync library download failed

My Android project suddenly started failing. On one of my projects, I used the following two libraries. tv.danmaku.ijk.media:ijkplayer-java:0.8.8 (https://github.com/bilibili/ijkplayer) jp.wasabeef:glide-transformations:2.0.2 (https://github.com/wasabeef/glide-transformations) Gradle version: 8.9 | Gradle plugin version: 8.2.2 | JVMv Target = 17 My project was running fine then suddenly my gradle sync started failing due to these libraries. * What went wrong: Execution

Read More
Android

Caching API call data

I’m using Ktor to call API in my android app in kotlin and now I want to cache the response so that I can use app even if it is offline, how to do that ?? I have used HttpCache but that didn’t work install(HttpCache) { val cacheFile = Files.createDirectories(Paths.get(System.getProperty("java.io.tmpdir"), "ktor_cache")).toFile() publicStorage(FileStorage(cacheFile)) } You need

Read More