• Breaking News

    Tuesday, November 30, 2021

    Android Dev - Weekly Who's Hiring Thread - November 29, 2021

    Android Dev - Weekly Who's Hiring Thread - November 29, 2021


    Weekly Who's Hiring Thread - November 29, 2021

    Posted: 29 Nov 2021 06:00 AM PST

    Looking for Android developers? Heard about a cool job posting? Let people know!

    Here is a suggested posting template:

    Company: <Best Company Ever>
    Job: [<Title>](https://example.com/job)
    Location: <City, State, Country>
    Allows remote: <Yes/No>
    Visa: <Yes/No>

    Feel free to include any other information about the job.

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

    How do you handle forced dark mode and apps not updating on xiaomi phones?

    Posted: 29 Nov 2021 08:04 PM PST

    There is a strange problem on xiomi phones like mi, redmi and poco.

    If the dark mode is on, the os forces all apps to have a dark mode even if they do not have the dark mode styles. Amazon is the prime example.

    My company has an app which is all weirded out because of this. How do you handle this without creating dark mode support?

    Also, has anyone faced apps not updating on xiaomi phones?

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

    mobile.dev – Our First Open-Source Project

    Posted: 29 Nov 2021 09:47 AM PST

    If I build enough decent android apps and just use that as my portfolio would companies be willing to hire me if my apps are good enough just based off that?

    Posted: 29 Nov 2021 03:54 PM PST

    Beginning with Testing in Android

    Posted: 29 Nov 2021 10:26 PM PST

    I have to learn JUnit for a university project. I was confused whether to learn JUnit 4 or 5. I also develop Android apps in Java and Kotlin, but have never written a test. I had read in the Android docs - 'The AndroidJUnitRunner class defines an instrumentation-based JUnit test runner that lets you run JUnit 3- or JUnit 4-style test classes on Android devices'. Would learning JUnit 5 be helpful for Android tests in general? Or should I learn JUnit 4 ?

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

    ADT-3 Android 12 Beta 5 struggle

    Posted: 30 Nov 2021 12:28 AM PST

    Hi guys;

    Just looked at the factory image download page, and for some reason, there is no flash-all.bat files in those archives; only flash-all.sh ; does anyone knows why? Is it safe to craft my own?

    The Android Flash Tool can be used to easily flash ATV12 up to Beta 3 on the ADT-3, but 5 is not available for some other/same? reason.

    After flashing Beta 3, I am offered an OTA to RTT1.2104156.002.A1 which downloads alright, but fails to apply for some reason. I get the classic Android recovery screen with the droid on its back; "couldnt load Android system", and then I'm completely screwed. "Try again" doesnt help, and I'm forced to Factory data reset and go back to Android 11. =(

    What am I missing? Anyone with an ADT-3 in there?

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

    What program should I learn to have the easiest time to get hired by companies for Android app dev? Do companies look for people that know how to do both Android and iPhone if not, what's my best bet to learn for Android software/platform - and also, I only know C Sharp. Pointers, any advice welcome

    Posted: 30 Nov 2021 12:20 AM PST

    How to allow periodic SyncAdapter to run when app is in 'force stopped' state

    Posted: 30 Nov 2021 03:28 AM PST

    Might not be the right place to ask seeing as I'm using Xamarin Android but the fundamentals still apply.

    I have created a sample app here: https://github.com/lukewo/AndroidSyncApp

    Is there a way to allow the SyncAdapter to run after the app has been put into a force stopped state or is this not possible due to the new limitations android has introduced?

    Should I be using the WorkManager instead?

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

    I feel like quitting my Android dev job.

    Posted: 29 Nov 2021 02:08 AM PST

    So my manager sent me this XD file with 10-15 pages to replicate on android and submit. Now I have spent hours and hours working on each component in the XD file. They are custom views, compound views and recycler views. Including layouts into other layouts. Then there are use cases, business logic, ViewModels, databinding. THE WHOLE LOT. And I'm the ONLY developer working on this project in the entire firm. And I am feeling this pressure of time crunch and perfection.

    And that when I first submitted my work, they were not at all satisfied with it. Hours of work and they were like "No. You need to make the views match exactly how it looks in the XD." That is if an image view is 2-3 pixels shifted up and right, they will point that out and tell me it's not correct.

    So then I did it. After 4-5 days, i corrected everything and then I submitted it. The values weren't match_parent, or wrap_content, 0dp (constraints). They are like 34.52dp, 88.21dp, 4.69dp. Literally all of them. But my phone is 450dpi, and managers phone is 540dpi. So now he's saying I've made it worse. And literally, changing these values is all I've been doing for the past month and STILL NOW it's not "perfect" according to him.

    I made a custom view for the bottom navigation, because it's highly complex. There are menu items in the bottom nav. The first 3 icons are aligned perfectly with XD design but the 4th icon is 5-6 pixels to the right. And now he's not happy with my work. If i change the position to fit the 4th icon, the other 3 will get disturbed.

    Is this fair? In Android, is it EVER this case that I need to follow these strict things on making it "Pixel perfect"? I feel alot of pressure doing this crap work and not getting any good outcome out of it. I feel like quitting, but i don't know if this is actually how android is done. Instead of a 16dp margin, you are putting 14.31dp because it has to fit with the design. Is this how the Android Dev Industry is??

    Edit 01: Also, hahaha, to match with the XD design, the font size is set to 9.92dp. "dp", you say? So that the font size doesn't change based on user settings (so that stakeholder is happy with pixel perfect) and less than 11sp is not recommended by Google.

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

    dadb: A Kotlin/Java library to connect directly to an Android device without an adb binary or an ADB server

    Posted: 29 Nov 2021 08:07 AM PST

    JetBrains Fleet: The Next-Generation IDE by JetBrains

    Posted: 29 Nov 2021 02:23 AM PST

    ContactStore 0.6.0 is out – Featuring new DSL, Linked Account support, testing without Robelectric

    Posted: 29 Nov 2021 06:13 AM PST

    Hi Android Devs 👋

    There have been a few new features in ContactStore released recently. If you are working with Contacts in your app and you prefer an alternative to working with ContentProviders, this one is for you.

    New DSL API

    There is now a DSL to insert, update and delete contacts. Inserting a new contact to the device looks like this:

    ```kotlin val store = ContactStore.newInstance(application)

    store.execute { insert { firstName = "Paolo" lastName = "Melendez" phone( value = PhoneNumber("555"), label = Label.PhoneNumberMobile ) mail( address = "paolo@paolo.com", label = Label.LocationWork ) } } ```

    "Message on WhatsApp" or "Call on Telegram"

    You can use ContactStore to query items that are linked to the contact from 3rd party apps. The following example shows how to query and open the profile screen of a contact in the WhatsApp app.

    Fetching:

    ```kotlin contactStore.fetchContacts( predicate = ContactLookup(listOf(contactId)), columnsToFetch = listOf( LinkedAccountValues("com.whatsapp") ) ).collect { val contact = it.firstOrNull() if (contact != null){ // access the details using contact.linkedAccountValues } }

    ```

    Deeplinking to WhatApp:

    kotlin val linkedAccountValue = contact.linkedAccountValues.firstOrNull { it.mimetype == "vnd.android.cursor.item/vnd.com.whatsapp.profile" } if (linkedAccountValue != null) { val intent = Intent( Intent.ACTION_VIEW, ContentUris.withAppendedId( ContactsContract.Data.CONTENT_URI, linkedAccountValue.id ) ) startActivity(intent) }

    Testing contacts without Robelectric (experimental)

    There is now a Fake implementation of the ContactStore coming for free as an extra depedency. This was done so that you do not need to create your own abstraction and focus on your production code instead.


    Source code and documentation at https://github.com/alexstyl/contactstore.

    ⭐️ Make sure to star the repo if you found it useful.

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

    SimpleInstaller Android library

    Posted: 29 Nov 2021 05:16 PM PST

    Hi, r/androiddev! I've developed a small library to simplify Android packages un/install functionality usage with the help of Kotlin coroutines. Please take a look and give some feedback!
    Here is a GitHub repo: https://github.com/solrudev/SimpleInstaller

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

    CWTI #46 - We looked into Jetpack Compose UI testing and screenshot testing

    Posted: 29 Nov 2021 11:31 AM PST

    I want to test that my ViewModels use LiveData properly

    Posted: 29 Nov 2021 03:43 PM PST

    I have a ViewModel that injects the io and main dispatchers as constructors and we just found a bug that in a few cases we were using ls.value = when we were on the io thread.

    Is there a way that I could have a unit test to test that without doing a ui test?

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

    Revenue for my WearOS timer app over time

    Posted: 29 Nov 2021 05:31 AM PST

    What should i do? Bottomsheet or MotionLayout

    Posted: 29 Nov 2021 05:56 PM PST

    What should i do? Bottomsheet or MotionLayout

    Hey guys Im working on a Ecommerce app and i need to do something like this:

    https://preview.redd.it/qz4mzq003n281.png?width=862&format=png&auto=webp&s=1690cd9de71d503918425af59a97fca445ecba54

    As you can see its like a bottom sheet and if you scroll up it will show up more details of the product. Thing is that i don't know how to put that green button on top of the bottomsheet.

    I was thinking that maybe i can use motionlayout with onswipe action but im too lazy for that. Please tell me that theres a way to put view on top of a bottomsheet.

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

    Android library designed for finding leaked network connections on app exit

    Posted: 29 Nov 2021 04:53 AM PST

    Android library designed for finding leaked network connections on app exit

    I created a library for finding leaked network connections on app exit.

    Usually the library should be started when app goes to background to measure app traffic consumption within a given time interval.

    https://github.com/alexeyvasilyev/app-exit-check-android

    https://preview.redd.it/a3r5rcwa7j281.png?width=540&format=png&auto=webp&s=8725ed8e44ef7ea1b560f228d56e4721c06677fa

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

    So it says my App is in early access, I can see the app when I click "View on Google Play" while inside the Dashboard on Google Play Console. That's where it shows my app and then early access next to it. However I can't find it on Play Store on my phone itself, what's early access even anyways?

    Posted: 29 Nov 2021 03:43 PM PST

    Implementing black theme (or any theme other than light/dark)

    Posted: 29 Nov 2021 01:26 PM PST

    How can I implement a black theme for my app? I already have light/dark modes implemented. I want to add black theme for AMOLED users.

    My first thought is to create another colors.xml, but how can I use it? Currently, I'm using AppCompatDelegate to set the theme.

    Thanks in advance.

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

    Receiving a 1 Star Review that might not be factual or relevant. What do you do if they don't reply or provide additional info?

    Posted: 29 Nov 2021 11:22 AM PST

    I recently received a 1 star review on an app I made geared towards U.S Air Force personnel. The rating was "extremely outdated", but my app pulls data from a live website. So for all intents and purposes it's a mirror site, just mobile. The reviewer has not provided follow up details so I can look into it, but the rating has me pretty crushed. It's a popular app for the Air Force community so I don't know if it's confusion or just an asshole comment.

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

    App removed (Issue: Need login credentials for app review)

    Posted: 29 Nov 2021 04:21 AM PST

    I added a new feature to my app that require register/login , and since the app was completely open I forgot to add credentials for google testers ... now (without warning) I got an email saying that my app is removed and i need to correct the things above ... So I added the test account info and submitted for (review) ... but there is still an option for appeal ... should I send an appeal ? or wait for the review which they say may take up to 7 days , but in the appeal option they say they will respond in two business days ? ... am anxious because am afraid it may take long time and every hour is important .

    submitted by /u/K-Huxley
    [link] [comments]

    Android backend to learn for student

    Posted: 29 Nov 2021 03:19 PM PST

    Hello guys... i am learning android development in java and i know javascript well... at uni i will learn php as well... i was wondering what backend is mostly used for android so that i devote time to it? Some say spring others say nodejs and its getting a bit mixed up if i might say ... thank you

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

    Allow to use MANAGE_EXTERNAL_STORAGE for a torrent client. Is it possible?

    Posted: 29 Nov 2021 07:10 AM PST

    Hello everyone! For a long time I have been developing a FOSS torrent client, and with the requirement to use target API 30+ on Google Play since November 2021, there have been big problems with access to the storage. I can't use the Storage Access Framework, since the libtorrent library is written in C++ and operates exclusively with files, everything is tied to POSIX calls and file descriptors. I can use WRITE_EXTERNAL_STORAGE permission as before, but the user will only have access to a limited set of media folders like Downloads, Documents, etc. Therefore, for users, the best option would be to use the MANAGE_EXTERNAL_STORAGE permission. But Google Play bans these attempts, because it considers that it's unnecessary in my case. How to do in a similar situation? How to convince Google that file access is a must-have feature for a torrent client? Maybe someone developers has experience with injecting MANAGE_EXTERNAL_STORAGE into their apps?

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

    Google Play internal testing release "in review" - How even?

    Posted: 28 Nov 2021 01:34 PM PST

    Google says internal testing track releases don't need to wait to be reviewed:

    Quickly distribute your builds to a small set of trusted testers without the need to wait for app reviews.

    However, my app says "in review" alongside the internal testing track and the update isn't visible to testers.

    How is this possible?

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

    How to make kids educational app with Animated Characters ?

    Posted: 29 Nov 2021 08:19 AM PST

    Im planning to make an educational app for kids with Animated characters such as Tiger, Monkey, and multiple animated backgrounds. Im a complete begginer. Which app is free to make it and where can i draw/paint them all and how to animate it. Should i import them into android studio. Pls guide me . Thanks in advance

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

    No comments:

    Post a Comment