reddit_androiddev | Unsorted

Telegram-канал reddit_androiddev - AndroidDev - Reddit

-

Stay up-to-date with latest news on Android Development! Content directly fetched from the subreddit just for you. Powered by : @r_channels

Subscribe to a channel

AndroidDev - Reddit

Everyone knows what apps you use — how indian apps are spying on your installed applications
https://peabee.substack.com/p/everyone-knows-what-apps-you-use

https://redd.it/1jmed8v
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Moto G8 Play Bricked

A few years ago I bought some Moto G Play 8th Gen (XT2015-2) devices.
Some of these devices were blocked by the store that sold them to me due to some problems we had with payments (delays). The store did not want to remove the locks and I refused to pay until they were unlocked as I had no guarantee that the stored data would be intact.

They are blocked to this day and I would like to remove this block somehow, even with some kind of "bruteforce".

I've already tried to reset one of the device...

https://redd.it/1jj1763
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Would you use a 'model-agnostic' AI plugin for Android Studio that matches Gemini’s features?

I’ve been using Gemini in android studio, but obviously other models are better at coding, debugging, everything. Lol. I was thinking of building a tool that’s model-agnostic, but with feature parity to Gemini, including gradle error support (i.e. the ask gemini button), unit test generation, UI debugging functionality, etc.

The idea is you can swap out Gemini for local models like Qwen2.5 coder or APIs like Claude, Open AI, etc. all within android studio. What do you guys think?...

https://redd.it/1jix02e
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Any other mid to senior level Android devs having a tough time finding work right now?

Last year I was working two full time contracts simultaneously as a mid level Android developer, unfortunately both contracts ended in December. This year has been one of the worst experiences I’ve had trying to find another position, even hybrid and in-office positions are far, few and in-between. I am curious if anyone else is having the same trouble I am? Is this and industry wide thing? Originally I was making between 150k(single job) to 250k(two jobs) a year. I dropped my salary requirement...

https://redd.it/1jit47g
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

is there a way I can automate this task of my job

so at my job we have this task of provisioning screens, which means deleting old apps that are outdated and then downloading some apps that are on a USB, is there a way to automate that process? I can go more indepth if needed but sometimes you need to do things like set the date and time, mess around with Google TTS, etc.. all things are usually within the settings.

is there a program I can write that will allow me to give it instructions of what needs to be done and it will do it? ...

https://redd.it/1jipqfj
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Creating formula for probability of text cut within bounds

Hello everyone,

I need to test if the texts of an android app are truncated/cut or not. Since there plenty of texts and different languages to test - hence a lot of tests to run, I need a more intelligent approach towards testing.

Myself am a tester, quite independent of the dev team. I can automate the tests but have limited information (black-box principle) about the "interior" of the app. At this moment I have two information sources:

1. the bounds of the text area (using the ui-automat...

https://redd.it/1ji7skk
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

i built an open source text-to-speech app

It started as a joke with eleven labs discord server, i applied for an Android Engineer position and got generic rejection response. So i told them i'm going to build their 11reader product and make it open source i even named it 12reader lol

But all jokes aside the app is really fun to build ...
Tech Stack:
\- Jetpack Compose
\- Ktor
\- Koin
\- DataStore
\- ExoPlayer
\- Flows

try the app here but add your own api key from elevenlabs they provide a free api key:
https://gith...

[
https://redd.it/1ji9jf3
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Where to store google-service.json file

I am building an android app that i want to publish on the app store that uses FCM to send push notifications, which needs the google services file. At the documentation I am reading, it says to store it in the src/directory folder, but that seems unsafe. I was thinking of storing the file in firebase and sending a request to the database to retrieve it every time the app opens but I am wondering what is the best way to store this file....

https://redd.it/1jigrfj
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

A state-driven library for toasts, snackbars, and dialogs in Jetpack Compose

I was tired of Toast.makeText(context, "message", duration) and context-hunting, so I made compose-alert-kitlibrary:

The library provides:

Toastify: A state-driven approach to Android toasts that fits naturally with Compose

val toastState = rememberToastify()
Button(onClick = { toastState.show("Action completed!") }) { Text("Click me") }

Snackify: A cleaner approach for Material 3 snackbars with action support

val (hostState, snackState) = rememberSnackify()
// U...

https://redd.it/1ji0pjg
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Should we stop using RealmDB in new projects?

So I was going to implement Realm DB for a new project but saw that they stopped support. Right now it doesn't even have support for kotlin versions above 1.21 other than trying to use community forks that aren't that reliable.

In comparison Room is harder and slower to implement but it has total support from Google.

What do you think? For me it's such a shame that Realm stopped but I don't think it's a good idea using an unsupported project as a DB....

https://redd.it/1jhnekf
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Transfering app to new account without getting banned

Asking because EVERYONE is getting banned on Google Play Store, and i really want to avoid that.

So i tried to upload health app to individual account, but it got rejected as my account type was individual. It never made the jump from Google Play Console to Google Play Store.

Created a sole proprietorship and organisational account and wish to upload it there instead.

Should i do app transfer?

Should i just upload the same apk? Or will that get me banned because of google will think my sole ...

https://redd.it/1jdo6xx
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

How to implement such animation?

https://redd.it/1jdhm2z
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Gradle Build Failing on Azure Pipelines Due to RAM Limitations

Hi everyone,

I'm facing an issue with Gradle builds failing on our Azure Pipelines CI/CD setup due to insufficient memory. The VM we use has 16GB of RAM, but at certain points during the build, it runs out of resources and crashes.

Is it normal for an Android build to require more than 16GB of RAM?
Are there any optimizations I can make on my end as an Android developer to reduce memory usage?

In case it helps, in my application, I make use of dagger hilt and it is single module. ...

https://redd.it/1jd8k41
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Google Play new warnings are a very bad addition to the store
https://www.linkedin.com/posts/sam-ganzha_google-play-just-changed-the-game-google-activity-7305897194623016960-yqfH?utm_source=social_share_send&utm_medium=android_app&rcm=ACoAAAESaIkBGoshFFw0eGJ8MZvlalsbRI8xQFA&utm_campaign=copy_link

https://redd.it/1jdd7ay
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

My recent experience of publishing to Android Play Store, step by step guide.

# My recent experience of publishing to Android Play Store, step by step guide.

An important step that is missing from all instructions: Before everything else: let's make sure, that app is *releasable*. At first I didn't do it myself, which I later regret more than once.

# Step 0. Release build.

If you have working *release build* already, then just skip this step. Otherwise I assume, that everything you've done in Android Studio before, was in default *debug* mode. Time to switch to *releas...

https://redd.it/1jd0w5i
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

App rejected due to crash but unable to reproduce or see any crash logs in Android Vitals

I'm trying to publish an app however it got rejected twice due to

Violation of Broken Functionality policy - The app opens, but it keeps crashing

I'm not able to reproduce this crash on any of my devices nor the emulator. It's also not reporting any crash in Android Vitals so there's no evidence of any crash logs there. Any suggestion on how to go about this or using another tool which might show me where the crash is happening if I submit it for review again....

https://redd.it/1jj25pp
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Jetpack Compose Syllabus for Developers

TL;DR;
I want to create a study guide on Jetpack Compose with topics that you would expect Senior dev to know about Compose

Could you please help me with the topics you found interesting and can recommend good sources for them.

The long question:
( I want to get a comprehensive understanding of compose by teaching. I mean all parts, Compose Compiler, Compose Runtime, Compose UI - foundation & materials)

There are so many resources compared to 2021 I don't know where to start.

I read lot of o...

https://redd.it/1jingrt
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Is there an alternative way to use *Fractional Threshold* other that the deprecated one?
https://redd.it/1jit7i8
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Is there a way to implement guards/redirects for deep links in NavHost?

Let's say I have an app, with a deep link to a screen user can only view if they are signed in, and if they get deep linked while not signed in, I want to have them redirected to a sign in page, where after successful sign in they get redirected to the screen they were initially meant to go to.


What's the proper way of doing this?

In Flutter go_router package, I could just use code like:
```
redirect: (context, state) {
if (!isSignedIn) {
return '/sign-in?redirect=${state.uri.path}';
...

https://redd.it/1jis45s
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Privacy policy third-party data and extra data in Privacy Policy

Hello! I'm planning to release a mobile game on Play Store. It's an offline game except it's integrated with ads mediation sdk and GDPR CMP system. I'm struggling to find the information on some aspects of Privacy Policy and Terms of Use. Could you help me?

1. When using privacy policy generators, they often ask question like "do you collect ip location". I don't quite understand how I should answer this question. I use some ads sdk in my app and I can use dashbards to view ad statistics by cou...

https://redd.it/1ji13co
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

TextFieldState for query textfield in search with pagination

I have a screen with search text field and pagination.

And I found it much more practical to avoid TextFieldState!

I have a loadData function, and it's very convenient to simply call it in viewModel's onEvent for both Search and LoadMore events, to update my uiState StateFlow.

However, with TextFieldState, i have to create a snapshot flow, that I then need to observe in LaunchedEffect, considering dispatcher, lifecycle, and with overall disadvantage of observing an obscure Flow field in UI fo...

https://redd.it/1ji99xg
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

How do you handle previews of screens with multiple view models?

I do much prefer screens with a single model emitting a single state.

But for complexity managment sake, sometimes some of my views have their own viewmodels.

For example, sometimes the main screen VM just tells the content whether a certain button is shown or not.
But this button internally has lots more logic to determine what state it is in, how it responds to actions etc. Hence it has its own viewmodel.

And similarly for lists. The screen VM emits simple models to indicate that there is...

https://redd.it/1jilehz
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

How to put watermark on image on the same relative position regardless of the device?

I wrote this implementation to put date and address on Bitmap captured by camera:

public Bitmap putTimestamp(Bitmap src, String date, String address) {
float STARTX = 40f;
float START
Y = 900f;
int w = src.getWidth();
int h = src.getHeight();
Bitmap result = Bitmap.createBitmap(w, h, src.getConfig());
Canvas canvas = new Canvas(result);
Paint tPaint = new Paint();
tPaint.setTextSize(40);
tPaint.setColor(Color.WHITE);
...

https://redd.it/1ji0flz
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

LazyColumn animate first item appearance.

My LazyColumn keeps the viewport even if a new item is added on top of the list:

LazyColumn(
modifier = Modifier
.fillMaxSize()
.background(color = MaterialTheme.colorScheme.surface),
state = lazyListState
) {
itemsIndexed(
uiState.files,
key = { _, item -> item.id }
) { i, item ->
SwipeToRevealItem(
modifier = Modifier.animateItem(
placementSpec = tween(300),
...

https://redd.it/1jhoeca
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

🔥 Looking for Android/iOS Developers for a Startup! 🔥

Hey! I'm working on a unique mobile application and looking for Android/iOS developers who want to be part of a startup. If you're interested in working on a real project, growing your skills, and building something awesome – join the team!

💡 What’s the project about?
It’s a startup in the mobile tech industry. I can't reveal all the details yet, but it's a promising idea with huge potential.

🔍 Who am I looking for?

Android developers (Jetpack Compose, Kotlin)
iOS ...

https://redd.it/1jdn9h7
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Navigation drawer menu

I wanted to ask if it’s still being used in modern apps or should i use bottom navigation instead? ...

https://redd.it/1jdnaha
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Options for crash monitoring?

Hello!

Me and my team are looking for an easy-to-implement and preferably cheap system for crash monitoring in our Android field app. Does anyone have any suggestions?

We are considering Firebase Crashlytics, anyone used it before? If so, how is the integration process and any cost approximations?

We have around 3000 daily active users if that matters.

Thanks in advance! :-)
...

https://redd.it/1jdhyxl
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

The new warnings added on Google Play are a very bad addition to the store
https://redd.it/1jddo84
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

Using google maps on android: Do we really need to have to insert the API key inside the android Manifest? Is that dangerous? How to protect yourself?

Hello, I am about to use for the first time the google map api for android,

And apparently in order to display the app in your app context, you need to have the API key defined in the android manifest like this:

<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="YOUR_API_KEY_HERE"/>



* Isn't there any other way?
* Isn't that dangerous? People can get your api key.
* I read about restricting the api to your app, but is that enough? Are there bad storie...

https://redd.it/1jdbi1z
@reddit_androiddev

Читать полностью…

AndroidDev - Reddit

How do I go around this?
https://redd.it/1jd8z4v
@reddit_androiddev

Читать полностью…
Subscribe to a channel