Skip to main content

New answers tagged

-1 votes

Flutter Android 16KB Page Size Support Issue - Google Play Console Hard Rejection

đź‘‹ If you're facing this Android 16KB page size Play Store rejection with React Native, there's a detailed step-by-step guide that covers exactly how to fix this. Check it out here: https://community....
Rohan Halesh's user avatar
-1 votes

RN 0.70.15 crushes on 16kb devices

If you're facing this Android 16KB page size Play Store rejection with React Native, there's a detailed step-by-step fix guide available here: https://community.7edge.com/t/react-native-android-16-kb-...
Rohan H's user avatar
0 votes

Execution failed for task ':vision-camera-code-scanner:compileDebugJavaWithJavac'

I got the solution! Use React Native Camera Kit Library.... This library is working fine.
Dev Anand's user avatar
Advice
0 votes
0 replies
0 views

How to properly compress images for recycler view

When you take the image, instead of just creating the image, create a thumbnail (a smaller version of the image) as well. Store the location of both the main image and the thumbnail in your db, each ...
Gabe Sechan's user avatar
  • 95.3k
Advice
0 votes
0 replies
0 views

How to properly compress images for recycler view

The problem is not so much that you need to compress the raw smaller, its that you are then taking that image which could be very large like in the case of a pixel 9 2268x4032 and loading it into an ...
tyczj's user avatar
  • 74.9k
0 votes

How to turn the whole widget into image using RepaintBoundary in flutter

I ran into the same problem and this is how I fixed it. It turns out Android and iOS handle DPR (Device Pixel Ratio) differently, causing minor alignment or cropping issues during layout rendering. ...
unprofessional's user avatar
Advice
0 votes
0 replies
0 views

In Android with Kotlin, is there any way to create a custom element with XML that can contain a child in a specific place?

Explain what goes wrong. Does it not compile? Does it compile but crash? Does it run but not do what you expect? In the first two cases, post the error. In the second, describe in detail what ...
Gabe Sechan's user avatar
  • 95.3k
Advice
1 vote
0 replies
0 views

How to properly compress images for recycler view

You don't mention if you are using an existing image caching library like glide and the size of the images you are displaying as the camera image can be larger than the display. Also clarify if the ...
Morrison Chang's user avatar
Advice
0 votes
0 replies
0 views

How to properly compress images for recycler view

Sorry I probably wasn't really clear on what I'm doing. I have a collection system for tracking fabrics and users can take pictures of those fabrics and add various details. The recycler view is just ...
Aaron Lind's user avatar
Advice
0 votes
0 replies
0 views

How to properly compress images for recycler view

The idea of digesting images for more compact storage is good. However, it has nothing to do with the recycler view. Moreover, the idea of relying on the recycler makes no sense. The recycled files ...
Sergey A Kryukov's user avatar
Best practices
0 votes
0 replies
0 views

How to(do I) write a network data consumption monitoring program that monitors all system processes and has control over them?

Thanks. I will fall in love with networking. Thanks.
Agaba Akuh's user avatar
0 votes

Android Studio. Gradle Sync error: Could not move temporary workspace

Looks like security software blocking the script -- here's a quick workaround using the default Windows PowerShell. # Command to execute # powershell.exe -ExecutionPolicy Bypass -File .\FixGradle.ps1 ...
Anoop M Maddasseri's user avatar
0 votes

How Can My App React to Power Connecting/Disconnecting Even When Closed?

class PowerConnectionWorker(appContext: Context, workerParams: WorkerParameters): Worker(appContext, workerParams) { override fun doWork(): Result { // Your logic here (e.g., sync ...
Max's user avatar
  • 1,068
0 votes
Accepted

How to achieve PCM playback on .NET Android using AudioTrack

Turns out the main problem was the .NET debugger slowing it down. Sounds fine when not debugging. Still the improved code: internal class AudioTrackDriver : IAudioDriver { public static int ...
Noble Eugene's user avatar
Best practices
0 votes
0 replies
0 views

How to(do I) write a network data consumption monitoring program that monitors all system processes and has control over them?

You absolutely do have a router. Your wifi basepoint? It has a router in it. Your cable modem? Has a router in it. ALso it doesn't matter if you find networking boring- you need to understand it ...
Gabe Sechan's user avatar
  • 95.3k
0 votes

How to create a sticky header and reversed message order in Jetpack Compose LazyColumn?

I found a way by not using reverseLayout but instead by setting this on the LazyColumn: verticalArrangement = Arrangement.Bottom, When doing that you also don't need to reverse your item list (if you ...
Viish's user avatar
  • 501
Best practices
0 votes
0 replies
0 views

How to(do I) write a network data consumption monitoring program that monitors all system processes and has control over them?

I have tried many software, but they are either too complex or they just don't do what i want! How do I write networking software that controls my data usage, blocks apps from connecting to other ...
grawity's user avatar
  • 20.5k
0 votes

I am trying to save a photo on gallary but i get this error on RN Expo

Can you add the following permissions as well? This audio permission just to be sure. android.permission.MODIFY_AUDIO_SETTINGS And if you are using Android 11+ you will also need the following ...
Thomasino73's user avatar
  • 1,198
0 votes

How to detect which item is in focus in HorizontalMultiBrowseCarousel from Material3 in Jetpack Compose?

You can actually use currentItem from rememberCarouselState() to determine which item is currently focused. val carouselState = rememberCarouselState { someItems.count() } ...
MISU's user avatar
  • 50
Best practices
0 votes
0 replies
0 views

How to(do I) write a network data consumption monitoring program that monitors all system processes and has control over them?

I don't have a router, and I don't really intend to get one. I am not targeting Routers, I am targeting the Operating System. I want to write something that will handle this issue on Windows and then ...
Agaba Akuh's user avatar
Best practices
1 vote
0 replies
0 views

How to(do I) write a network data consumption monitoring program that monitors all system processes and has control over them?

Typically using router level metering is your best bet practically for narrowing down on what is causing the most traffic. Something like a pi-hole setup for your DNS on the router level to apply to ...
shaunhusain's user avatar
  • 19.7k
Advice
0 votes
0 replies
0 views

CRM Mobile App development (Android/IOS) - both

I agree, many times, just AI alone will cause huge issues for you in the future (like what to do if the app crashes, the AI crashes, etc.), and also, many times it messes up, and I had to manually fix ...
knnorou2's user avatar
  • 321
0 votes

I am getting this error when I add camera plug in

To work around this, you can add a dependency on androidx.concurrent:concurrent-futures to your own project. The owners of androidx.camera:camera-core could work around this for their users by ...
Chris Povirk's user avatar
  • 4,070
Advice
1 vote
0 replies
0 views

CRM Mobile App development (Android/IOS) - both

My tip- learn to program. Actually program. If you can't do that, even if you get AI to spit out something useful (doubtful), you'll have a buggy, non-performant, insecure piece of junk that will ...
Gabe Sechan's user avatar
  • 95.3k
0 votes

Emoji2 emojipicker inside compose ModalBottomSheet doesn't scroll

To anyone still encountering this issue, I workaround it by setting sheetGesturesEnabled = false, on the ModalBottomSheet
Viish's user avatar
  • 501
3 votes
Accepted

Why does accessing DataStore's Flows block indefinitely?

The blocking behavior comes from the collect calls. A Flow is a stream of data over time. csrfToken, for example, is a Flow of Strings, and you can use collect to perform a certain action on every ...
tyg's user avatar
  • 22.2k
0 votes

How to add Hilt dependencies on "libs.versions.toml" file in android studio

By default, this plugin is configured to use KAPT instead of KSP, so we fix this issues by following these steps: When using KSP with Hilt, enabling enableAggregatingTask ensures proper code ...
Soy un cheto programador's user avatar
3 votes
Accepted

How to access a repository from a Worker created by a Broadcast Receiver?

In CheckInWorker, ctx is a Context. Given a Context, you can get the Application singleton via getApplicationContext(): val application = ctx.applicationContext as CheckInApplication
CommonsWare's user avatar
-1 votes

Why does accessing DataStore's Flows block indefinitely?

You need a class that can serialize Cookie objects into strings to save them in SharedPreferences. class PersistentCookieJar(context: Context) : CookieJar { private val sharedPrefs = context....
Max's user avatar
  • 1,068
1 vote

How can I make the Android emulator show the soft keyboard?

I noticed that this is issue happens with emulators with API 36, but not with API 35 or below. I opened a bug for the Android Studio team, and it is currently still being investigated.
Toldry's user avatar
  • 1,130
Tooling
1 vote
0 replies
0 views

Has anyone used the Appvue app analytics software? Is it any good?

Has anyone used Appvue? yes ... Is it any good? that is for you to decide ... Is it easy to use? depends on your skill ... Can it be integrated into any app? depends on your app ... Has anyone ...
jsotola's user avatar
  • 2,255
0 votes

Android Compose navigation arguments saved unnecessary

This answer is a little late, so you probably don't have this problem anymore. But maybe this still helps. The issue is with how you store the data in complexDataState. Although it is remembered (so ...
tyg's user avatar
  • 22.2k
Advice
0 votes
0 replies
0 views

How to get '/storage/emulated/0/Android/media/$packageName' folder path programmatically?

Ah now it makes sense, I misinterpreted it thinking it means the first one is removable medium. Now if you were to choose, would you pick Environment or Context to get media folder path?
faizul726's user avatar
1 vote

How can I send a POST request with a CSRF Token and a JSON body to a Django endpoint?

I would recommend switching to a REST API library for production APIs, especially for mobile apps, such as django-rest-framework since they simplify authentication and already do a good bit of the ...
knnorou2's user avatar
  • 321
Best practices
2 votes
0 replies
0 views

Too many views in a scrollview

Using a ScrollView with many TableRows creates performance issues because all views are loaded into memory. Instead, use a RecyclerView with a GridLayoutManager or a custom adapter. This way, only the ...
nifoem bar's user avatar
  • 1,367
Advice
0 votes
0 replies
0 views

React Native Android build failed: Could not move temporary workspace in Gradle cache

Why is this an advise question instead of a normal question?
aled's user avatar
  • 26.6k
Best practices
2 votes
0 replies
0 views

Too many views in a scrollview

Use a RecyclerView. It will handle the scrolling, and it will only take 5*N views, where N is the number of rows visible on screen, no matter how many rows there actually are. It does that by ...
Gabe Sechan's user avatar
  • 95.3k
Advice
0 votes
0 replies
0 views

How to get '/storage/emulated/0/Android/media/$packageName' folder path programmatically?

if the returned array contains 2+ items, the first one usually will be the removable storage (let's assume microSD card) No offense, but that is the exact opposite of what I wrote there: If the ...
CommonsWare's user avatar
Advice
0 votes
0 replies
0 views

React Native Android build failed: Could not move temporary workspace in Gradle cache

Was this generated by AI? It seems to be the case.
Lajos Arpad's user avatar
  • 81.3k
0 votes

UI freezes in simple async computation

Perhaps the desired result can be achieved using PauseToken? import 'dart:async'; import 'package:multitasking/misc/pause.dart'; void main(List<String> args) { final pts = PauseTokenSource();...
mezoni's user avatar
  • 11.3k
1 vote
Accepted

Termux Run command service doesn't return results bundle

The issue is almost certainly a PendingIntent mutability conflict or a receiver permission bottleneck. When you're dealing with Inter-Process Communication (IPC) between your app and Termux, the "...
Max's user avatar
  • 1,068
1 vote

How to add bottom padding for the navigation bar in a WebView (Android Components)?

First, please consider reading this: https://developer.android.com/develop/ui/views/layout/edge-to-edge Additionally, try to modify your Activity as below: private lateinit var binding: ...
MojoJojo's user avatar
  • 951
Tooling
0 votes
0 replies
0 views

How can I have my application opened in the setup wizard?

Once you're done adding the app as the system app, let's say you want to be able to load your 'MainActivity' via a button click during the SetupWizard stage, then you want to modify the particular ...
Rajat Gupta's user avatar
2 votes

Android compose material3 dropdown menu bug on landscape?

So I tried the scenario on different devices and emulators and noticed that the additional padding given to the DropDownMenu was equivalent to the size of the Camera cutout. A simple way to check this ...
Mofe Ejegi's user avatar
  • 1,763
0 votes

How to detect screen rotation on Android in Kivy?

@inclement was right, Here's a sample with pyjnius incase needed by anyone Anytime screen is rotated it calls the given callback function from kivy.app import App from kivy.uix.label import Label ...
Fabian Joseph's user avatar
Advice
0 votes
0 replies
0 views

Creating an android sync tool

So I have talked this more with my team. It appears we will be using the private storage partition. What this sync will do is get the db file from the phone and know what to add or remove and at the ...
user32484004's user avatar
0 votes

Some devices cannot download my app from Google Play due to compatibility issues

Your app requires a feature that some of the old or budget devices does not have (commonly gyro sensor, gps etc). Either you or third party must have added the feature in the manifest. I suggest open ...
Fish's user avatar
  • 261
0 votes

NoSuchMethodException thrown by HiltWorker with additional parameters

Follow the official documentation of injecting WorkManager with Hilt: dependencies { implementation("androidx.hilt:hilt-work:1.0.0") // When using Kotlin. kapt("androidx....
SapuSeven's user avatar
  • 1,591
0 votes

What is armeabi and why they use it?

arm is a CPU family, and also the company that owns said CPU family. eabi is arms "new" abi. The term eabi stands for "embedded abi" and afaict comes from the fact that eabi was ...
plugwash's user avatar
  • 11.3k
Advice
0 votes
0 replies
0 views

A third party app can work as middleware while file accessing by another app in android?

There already is FileProvider. One can share from one app to another app, which doesn't require any third app.
Martin Zeitler's user avatar

Top 50 recent answers are included