• Breaking News

    Wednesday, January 19, 2022

    Android Dev - Weekly Questions Thread - January 18, 2022

    Android Dev - Weekly Questions Thread - January 18, 2022


    Weekly Questions Thread - January 18, 2022

    Posted: 18 Jan 2022 06:00 AM PST

    This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, our Discord, or Stack Overflow before posting). Examples of questions:

    • How do I pass data between my Activities?
    • Does anyone have a link to the source for the AOSP messaging app?
    • Is it possible to programmatically change the color of the status bar without targeting API 21?

    Large code snippets don't read well on reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead.

    Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail!

    Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays.

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click this link!

    submitted by /u/AutoModerator
    [link] [comments]

    Using the new (Android Build Tools 7.0) Variant API to configure variant-specific output APK filename

    Posted: 19 Jan 2022 02:20 AM PST

    I've been playing around with the new Variant API in Android Build Tools 7.0.4 and have got things like variant-specific applicationIds and abi-specific versionCodes working. But I can't see how to customize the name of the output APK. Should I be using Artifacts for that? If so, how?

    submitted by /u/mrcrdr
    [link] [comments]

    Safety Data Admob

    Posted: 19 Jan 2022 01:45 AM PST

    As you know we should send a safety form till february (or at least till end of April) but I still dont know what should I choose on this form. I know admob wrote what they collect but im not 100% sure I make it good or not.

    Anybody knows what to choose step by step with using only admob?

    submitted by /u/Sudden-Excuse-6007
    [link] [comments]

    API

    Posted: 19 Jan 2022 03:09 AM PST

    Hello I'm using Blogger API for my a project because i add content online but it's not efficient.Blogger API isn't flexible so I decided to create an json api and upload to Github then use it.Is this a good idea ? or are you using something different.What are your thoughts??

    submitted by /u/Korsde_tek
    [link] [comments]

    Running ancient emulators?

    Posted: 19 Jan 2022 03:04 AM PST

    Is there anyone here who has got an emulator working for the really old Android versions? Talking about Cupcake to Gingerbread, mainly. Ideally on Linux but I'd also settle for Windows. The ones in Android Studio seem to be broken and I've not had much luck running ISOs in VirtualBox either.

    I'm aware the market share for such old devices is tiny with probably not a single app store supporting them anymore, and releasing anything that'll run on them is ultimately a waste of time, but this is one of those "I want to do it because I can" things.

    I have a suitably old phone and can even underclock it, so testing performance isn't an issue. It's just testing if the app runs as expected on versions as low as my minimum API level that needs doing.

    submitted by /u/tenhourguy
    [link] [comments]

    How to implement bounce effect on jetpack compose Lazy Column

    Posted: 19 Jan 2022 02:58 AM PST

    I would like to implement a bounce "iOS-like" effect on a LazyColumn but have no clue on how to implement it.

    Expected result is : iOS like over scroll effect on Android (using RecyclerView) with bounce on top and bottom of the list.

    submitted by /u/____Mattia____
    [link] [comments]

    What is the point of installing the android-sdk through Ubuntu apt command if it does not include sdkmanager?

    Posted: 18 Jan 2022 06:00 PM PST

    I just discovered that the android-sdk is packaged in the ubuntu repositories.

    I installed it using apt. After which, I discovered it does not come with the sdkmanager. This is so confusing. What asshat packaged up the android sdk without the sdkmanager? How am I supposed to install and update my packages. This makes no sense.

    submitted by /u/scorr204
    [link] [comments]

    Google Play reviewer misspelled app access login info and rejected my update.

    Posted: 18 Jan 2022 04:46 AM PST

    Is it just me or does the review process for the play store seem to be getting a lot worse?

    In this specific case, I have an app out there that requires a login to use. It has been on the play store for over a year. But my most recent update got rejected because I had not filled out the App Access section on the play console. No problem though, I already have a test account, so I just added the login info to that section and submitted it again. But I woke up this morning with a rejection email again. In the email, they provided a screenshot. But here is the kicker, they spelled the password wrong (I have a visibility toggle option to see the password). So I am just submitting it again in the hopes that they spell it right this time...

    I just don't understand several things. How did my app go so long without this being an issue before? How did the reviewer go through the process of taking a screenshot and uploading it without noticing the information they input was incorrect? How much attention does the reviewer actually pay to the content of the app?

    These questions are mostly rhetorical. Just a frustrated rant I guess. I am hoping that this gets resolved soon. The previous version is still on the play store, so it is not a huge deal. This is just a big update that I have spent a while working on so I am disappointed.

    Edit: This morning my update passed the review. Thanks for the suggestions!

    submitted by /u/shinygeodavid
    [link] [comments]

    Repetitive content resubmission without changes ( replacing spared one with removed one )

    Posted: 19 Jan 2022 04:11 AM PST

    I developed a note app and made two versions with two completely different UIs that couldn't be aggregated due to interface sounds being set in kotlin and generally everything about the UI being different. The policy is very vague, and I thought with the different UI it would be considered a different "user experience". I was wrong.

    From what I've read, same as my case, they suspend both and after appeal they always reinstate the LESS popular one. ( I guess just to hurt as many people as possible)

    QUESTION : Can I unpublish the less popular one and then put the removed one up with a new package name?

    If anyone has experience where this was bad or knows of an unwritten rule, please let me know.

    submitted by /u/TREK_Apps
    [link] [comments]

    Switching careers

    Posted: 18 Jan 2022 09:01 AM PST

    Has any of you tried changing to backend or frontend and stop doing android?

    If yes, how did you approach the "hop" and do you like it more than android?

    If no, do you feel bored with android and would like to change or do you love what you do?

    submitted by /u/MrXplicit
    [link] [comments]

    How to verify correct pk8 & pem for apk?

    Posted: 19 Jan 2022 02:05 AM PST

    How can I verify I have the correct pk8 and pem for an apk I will be modifying. I used keytool to get the SHA1 fingerprint of the apk's CERT.RSA.

    Do I need to convert the pk8 and pem into a keystore and see if the SHA1 matches that of the CERT.RSA? or is there an easy way?

    submitted by /u/Razor-Rust
    [link] [comments]

    Jetnews for every screen

    Posted: 18 Jan 2022 02:16 PM PST

    How to securely implement TLS certificate checking in Android apps

    Posted: 18 Jan 2022 05:30 AM PST

    Udacity Android Kotlin Nanodegree?

    Posted: 18 Jan 2022 09:02 PM PST

    Hey all,

    I'm strongly considering signing up for Udacity's Android Kotlin Developer nanodegree program, and would like to hear about your experience with it! If you completed it, how long did it take and how many hours a week did you put into it? Do you think the content is up to date-ish? And do you feel it helped prepare you for an entry level android developer role/interview?

    For context, I am currently in my first software developer role for the last 10 months, but we use low code integration software and I want to move to a developer role where I can code much more and develop my skills. I've been studying Android Development for the last 3 months and I'm sure now this is where my interest is, but I've used various resources and find myself losing focus easily and hopping around, and I feel Udacity will help narrow my focus down.

    submitted by /u/Physical_Refuse_5227
    [link] [comments]

    Proposals on Upwork for uploading apps to google play console?

    Posted: 18 Jan 2022 09:07 AM PST

    I see a lot of people on Upwork posting job offers where they will pay you to upload their app to the google play console. Sometimes paying even more than what the google developer account costs. What's the reason for doing so?

    submitted by /u/emir_buljubasic
    [link] [comments]

    Adult websites blocker issue (Deceptive Behavior policy violation)

    Posted: 18 Jan 2022 10:13 AM PST

    Hello. I have an issue with the Policy team. 2 years ago, I uploaded to Google Play the first version of my app: "Pure Web". This application is designed to protect children from porn and other adult content. The app had a standard set of functions including protection against deletion, considering the application specifics it is simply necessary for its appropriate operation. For all 2 years I haven't received any comments about the functionality. But now my app was removed from Google Play with email: "Publishing status: Removed. Your app was removed from Google Play and won't be available to users until you submit a policy compliant update. CAN'T UNINSTALL APP Your app violates the Deceptive Behavior policy". I've tried to contact the Policy team and explain that this is one of the main features of that kind of apps, I also pointed out that all other similar apps on Google Play has the "Uninstall Protection" and it is not a problem for Google. If the owner forgot the password, he can recover it with email or recover it with master password, it is the same on all devices. So, the owner of device can remove my app without any issues.

    I've got the answer: After further review, we found that your app still violates the Deceptive Device Settings Changes policy. Please remove the uninstall protection functions in your app, Pure Web — The First Porn Blocker, (com.msw.pornblocker)

    I've removed it and now my app is losing the customers as it is one of the main features, and judging by the emails I get, my customers are need it. Meanwhile, my competitors are successfully working with this feature.

    What I need to do in such situation? Maybe I have to add something to "Terms & Conditions" or contact somebody else in Google? How do other apps works with uninstall protection functions and only my app was removed from Google Play?

    submitted by /u/grangsp
    [link] [comments]

    What are all the possible screen sizes and densities that an app that has the minimum API level set to 21 can run on?

    Posted: 18 Jan 2022 05:43 PM PST

    I'm struggling to find all the different screen sizes and densities for Android devices 5.0 and higher. I want to preview my app in all the different screen sizes and densities that it can possibly run on so I can see what alternative layouts I need to make. Does anyone have any kind of resource that covers this? I'm not having much luck with finding this information when I'm looking at the Android documentation.

    submitted by /u/techsavvynerd91
    [link] [comments]

    Permission for accessing /Android/data/

    Posted: 18 Jan 2022 11:57 AM PST

    Which permission does an app need to access /Android/data/ in Android 11 and is it possible to grant it via adb or root? I really wanna use a filemanager that doesn't support requesting this permission by itself yet.

    submitted by /u/Im1Random
    [link] [comments]

    MaximumWeightedMatching - a Kotlin library to pair a set of elements using the Swiss System

    Posted: 18 Jan 2022 09:29 AM PST

    How are you linking accounts to Google Pay Subscriptions?

    Posted: 18 Jan 2022 11:25 AM PST

    Hopefully someone can point me in the right direction because I'm clearly missing a piece of the puzzle.

    I have an app with a subscription option through google play. The subscription enables the online features of the app. The app is functional without it but anything that requires the app to get or send information to our servers requires the subscription. Once a user has an active subscription from google play the application unlocks the features so that they can be used. Data send to the servers is saved as user data so I need to associate the data with a user.

    So it seems the common approach here is to have the user sign up with an account for the user. As far as I can tell there's no way to get the google play user or any unique identifier to use as the user ID to bind these two users so now you have a [potential] situation where the application is entitled through one user via the play store verification but the logged in user is different.

    How are people reconciling the disconnect between the Google Play user and the user that signed up with the application. What are you doing if the application user tries to login on a device without the Google Play entitlement? Is it your experience that users are good at understanding the difference between the 'application is subscribed' vs 'user data in the application'? It seems this would cause a ton of confusion leading to a ton of support requests.

    submitted by /u/Competitive_Dust8193
    [link] [comments]

    What Everybody Should Know About App Icons.

    Posted: 18 Jan 2022 10:22 AM PST

    https://medium.com/augeo/what-everybody-should-know-about-app-icons-33d6b5412558

    In this post we will go over:

    • What makes a good app icon
    • What should app icon communicate?
    • Why do app icons need to be timeless
    • What makes a bad app icon

    Let's get started!

    submitted by /u/Story-Line
    [link] [comments]

    Android Dagger to Hilt Beauty

    Posted: 18 Jan 2022 07:22 PM PST

    Wich search is better when using Room DB, searching directly in database and hold returned data into a list or getting data from database and search in returned list?

    Posted: 18 Jan 2022 10:58 AM PST

    Android studio for beginner

    Posted: 18 Jan 2022 10:49 AM PST

    Hello. Is android studio good for learning programming?

    Short story, I got master's in Agriculture, but can't find stable job in this field (Croatia). I'm in early 30s and decide to learn programming mobile apps and change career. For now, I thought to take some courses at Udemy (kotlin, java, android studio) and hope in. Still, iam total newb, so is AS good enough for starters or any better propositions?

    Thank you!

    submitted by /u/glogy
    [link] [comments]

    Blazing fast Compose tests with Robolectric

    Posted: 18 Jan 2022 03:17 AM PST

    Persisting state in a ViewModel across process death

    Posted: 18 Jan 2022 09:51 AM PST

    So, let's say I have a screen with around 10 text fields. It's a screen to fill in some form. If I want to persist the input across process death to these 10 input fields, I save the inputs to a ViewModel SavedStateHandle. This means I have 10 fields in my viewModel, and that creates a lot of repetitve code.

    Is there any other less cumbersome way to do this, other than to add 10 fields to my ViewModel?

    submitted by /u/I_Am_Kornholio
    [link] [comments]

    No comments:

    Post a Comment