Stay up-to-date with latest news on Android Development! Content directly fetched from the subreddit just for you. Powered by : @r_channels
Handling interim session detail
I am developing a patient registration system that requires patients to provide their name, and address on the first web page in a HTML form. After submitting this information to server (Spring boot app - /patDetail API), I am caching this detail in HTTP Session and displaying next page that require patient to enter their Insurance details. After entering insurance details, patient will submit the form to the server(Spring boot app - /patInsurance API). In the Spring boot app, I fetch the detai...
https://redd.it/18dmox4
@reddit_androiddev
R.layout does not see the XML file
n all the code where there is R.layout, when I try to enter the name of the xml file, instead of the usual context file with all the names, it shows something completely unknown to me, like abc__action_menu_layout , although I have not used this.
kotlin code
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.ViewParent
import android.widget.ImageView
import android.widget.TextView
import androidx...
https://redd.it/18dkz1k
@reddit_androiddev
Need some help with my s10
Hello fam! are there any dev settings that are worth changing to make the phone more optimal? reading a lot about it, do you have any tips to get my s10 faster and optimized to max?...
https://redd.it/18diurl
@reddit_androiddev
S10
how do i make aim assist visible again if i accidentally click hide button? I need help with one more thing, I feel that my mobile is good with fast movements in games but not slow-short movements then it feels like I have vsync on like 1 fps.. are there any settings in the system I have to change? it is brand new applies to samsung s10, or do i need to dowload some optimization programs, or apps etc? Game boosters?
TY fam!
And overall should I change some settings in my phone to get it opti...
https://redd.it/18dh1qm
@reddit_androiddev
Right way to manage background network task with notifications
Hi all,
for my own IoT app, I need to access a server via HTTP every 5 sec, in order to check if the IoT boards are online. If not, I need to generate a notification.
First of all, I succeeded in implementing this logic in a foreground service, calling a runnable via a Handler every 5 sec. It works fine, but when I shut the screen down, it eventually stops running because of deep sleep, I suppose, and no notification is genetated.
The I tried with the WorkManager, enqueing a work every 5 se...
https://redd.it/18d1cav
@reddit_androiddev
Android Studio Iguana | 2023.2.1 Canary 17 now available
https://androidstudio.googleblog.com/2023/12/android-studio-iguana-202321-canary-17.html
https://redd.it/18d9fo9
@reddit_androiddev
Android car head unit flavor of android
I bought a android head unit and I really hate the firmware they put on this thing is there pre made firmware you recommend is there a base android car firmware I can start from I'm a newbie so anything helps...
https://redd.it/18d9lk3
@reddit_androiddev
How good is https://www.virustotal.com/ to scan an apk?
Funny thing is I did search previously (2 weeks back) and I came across them today for the same search on google.
The reports seem detailed. I liked the interesting links - interesting to see why we have social media links like linkedin.com in a game app.
​
​...
https://redd.it/18d4tds
@reddit_androiddev
KSP2 Preview: Kotlin K2 and Standalone Source Generator
https://android-developers.googleblog.com/2023/12/ksp2-preview-kotlin-k2-standalone.html?m=1
https://redd.it/18d31gc
@reddit_androiddev
Is it possible to install PixelUI on the S23 Ultra?
hey, so I've got a Verizon S23 Ultra and there's bloatware after every update and i'm getting sick of it, plus i just used my old pixel 4 from like 4 years ago and i found it to be smoother than the S23 Ultra! is there a way to install the PixelUI on my Samsung? or perhaps just a global non-Verizon version of OneUI? Thanks in advance...
https://redd.it/184nfo0
@reddit_androiddev
Medium Membership and Accessing Android Dev Articles on Medium
StackOverflow and Medium seem to be the two sites I visit the most other than the official Android Developers website as an Android developer. As some of you may know, you only get three locked Medium articles a month as a non member. There have been several times when I have reached this limit and have been unable to access Android dev articles that were set as locked with the paywall. Since I find Medium to be such a great resource for Android dev articles, I am considering becoming a member. ...
https://redd.it/184du3z
@reddit_androiddev
Google's GDPR Consent Form has a memory leak
Since Admob is now requesting that we get consent from European users before showing ads to them, I started implementing Google's API to show the consent form, following the instructions here.
​
Message from Admob
From my experience, showing the consent form always triggers a leak. A reference to the destroyed Act...
https://redd.it/1844ogy
@reddit_androiddev
Too many Payment declined messages
Hi everyone. I get a lot of payment declined messages every few days (from different users). Is this some spamming bots behaviour (or something like that)?
https://preview.redd.it/l5xq10ohnh2c1.png?width=1483&format=png&auto=webp&s=7799e819183d00d80ed61ecacf3d95f53e39b494...
https://redd.it/183iuzj
@reddit_androiddev
Admob mediation is not working
https://support.google.com/admob/thread/245295701/applovin-is-not-bidding-but-is-showing-as-an-adapter...
https://redd.it/183iybd
@reddit_androiddev
Play Store rules - White Labelling - Do I need separate accounts?
Hi. We have a big content and location based app that we are beginning to white label with different branding functionality and smaller subsets of our content for clients.
On iOS App Store they require that the client makes their own developer account and that I manage it as an admin user; I can't legally host the app from my company's developer account.
I was gonna try and just get away with it but I've read lots of stories of people being shut down for it and I don't want to risk our main ...
https://redd.it/1834yvy
@reddit_androiddev
Difference in app quality between Android and iOS
In articles related to Android bs iOS, I have read that 3rd party apps are better in iOS than their Android counterparts. But my question is that is this problem of OS? Isn't it upto the developer? Anything beyond developer's control for this?...
https://redd.it/18dlz6b
@reddit_androiddev
For those DAO, Services, how about using static objects with mockk for test
The official suggests using dagger/hilt
to inject them. However, they could be static based on the customized static ApplicationContext
. Although dagger/hilt
aids in unit testing, mockk can accomplish this easily as well by modifying bytecode
during run time. As for the stability, mockk
has 5000+ stars on GitHub and keeps renewing.
Here is a small mockk example.
https://preview.redd.it/mhsl2b05u15c1.png?width=1710&format=png&auto=webp&s=4122a0c2b9389697acd9db5ad8...
https://redd.it/18dk3p9
@reddit_androiddev
Is using the Google Play Game Services SDK for authentication considered as creating an account?
I am trying to fill out the Data Safety form, but I am not sure about this.
Is using the Google Play Game Services SDK for authentication considered as creating an account? I only use GPGS and don't have an account creation process. Should I choose 'My app does not allow users to create an account,' or is simply using GPGS to authenticate users considered as account creation? ...
https://redd.it/18cxsu9
@reddit_androiddev
Wave Loading View for compose
​
Wave Loading Compose
The original https://github.com/tangqi92/WaveLoadingView is no longer updated. Thought it would be nice to have a compose version
Source: https://github.com/NelzkieLabs/WaveLoadingComposeView/tree/master
​...
https://redd.it/18dg60t
@reddit_androiddev
Android Studio Hedgehog: How to keep the last active build variant?
After upgrading to Hedgehog, whenever I open a project, the IDE will always set the active build variant to default, not last used like the previous version.
How do I get it back? Always switching build variants after opening up a project is not necessary.
Imgur: The magic of the Internet...
https://redd.it/18dce5g
@reddit_androiddev
Reddit Recap: State of Mobile Platforms Edition (2023 Edition)
​
Reddit Recap: State of Mobile Platforms \(2023 Edition\)
Hello, Android friends. It's us again, back for another year to share some of our learnings from how we've worked to improve the mobile platforms at Reddit. We appreciate r/androiddev and how it supports the worldwide Android community.
We answer questions like:
How is adopting a modern tech stack going?
...
https://redd.it/18dbgnz
@reddit_androiddev
Audio and Video programming in Android with JNI
I have experience in C++ and embedded software for Linux and am familiar a little bit with Java. I am trying to learn Audio and Video software development for audio/video telephony calls, which I found out has quite a bit to do with JNI (Kotlin code calling C++ NDK library). I couldn't find any good book or tutorial online since this is probably something that doesn't fit into a single domain. I could find Embedded Android books that teach about Android OSP and bootloader and stuff, but dont' ac...
https://redd.it/18d3owq
@reddit_androiddev
Authentication - Is It Scaring Away Potential Users?
Hi all,
Has anyone experienced that users tend not to sign-in using Google email and might avoid the app altogether if no other option is offered (such as anonymous sign-in).
Does your app requires authentication? If so, what trends have you been noticing? Have you tried using one click Google sign-in and leave it at that?...
https://redd.it/18d5x03
@reddit_androiddev
layout preview stops working when I use app:layoutbehavior="@string/appbarscrollingviewbehavior"
...
https://redd.it/184o2d4
@reddit_androiddev
Android Studio Emulator - Initiate a Factory Reset for Testing
I am trying to test a corporate fully manage enrollment setup for Android which requires the user/tech to factory reset their phone and initiate the setup at the first welcome screen. I have physical test devices for this however, I was curious if an emulator could do it.
Wiping the data within the emulator will just reset it and will not force me to the first welcome screen like a physical device would. I figured Android Studio adds a default cache file or something related since it is an emul...
https://redd.it/184jdtj
@reddit_androiddev
OEM Unlocking ON ?
Hi guys ! I love android but I really need help. I wanted to install TWRP Recovery on my Galaxy S8+ and as you might know it needs to turn on OEM Unlocking to get access with Odin program on PC and to suspend security... and I messed up by turning OEM Unlockin back off and then retry to install another TWRP..
Now the phone won't boot to recovery or OS because of OEM Unlocking is off.
Any ides how to unlock it back or bypass methods ? Help would be highly appreciated ! thank...
https://redd.it/1845m4x
@reddit_androiddev
Trailing lambda syntax - Readability
This may just be me but I feel trailing lambda syntax seems to create readability problems. I always whenever possible use
myFunc( intArg = 2, myOnClickBlock = {/ my code /})
instead of
myFunc( intArg = 2) {/ my code /}
With the first version the purpose of the block is known from the argument name. In the second version the purpose is unclear.
In addition for me the trailing lambdas sugar derail the readability flow of a function....
https://redd.it/1842zik
@reddit_androiddev
Data folder is not showing up, how do i fix this? Thanks
https://redd.it/183jxu8
@reddit_androiddev
Merchant account from unsupported country
Hey all,
I have set up a company developer account successfully and, due to a poor research, I am not able to set up a merchant account as I plan to publish an app that offers in-app purchases (subscription) since my country is not on the list.
What options do I have given that I have set up a company account on google?...
https://redd.it/183esyf
@reddit_androiddev
Good cheap device for developing own ROM?
Hi all, I'm looking to build my own ROM and am curious if anyone has any suggestions for a cheap android device that I can completely root and begin developing my ROM on. Are there any phone models/brands that limit how much of the stock OS you can remove? Thanks!...
https://redd.it/18346dv
@reddit_androiddev