• Breaking News

    Thursday, August 5, 2021

    Android Dev - Last Month Google post the discontinuation for API 16 to 18. Let me make sure if what I understand about this is correct.

    Android Dev - Last Month Google post the discontinuation for API 16 to 18. Let me make sure if what I understand about this is correct.


    Last Month Google post the discontinuation for API 16 to 18. Let me make sure if what I understand about this is correct.

    Posted: 05 Aug 2021 01:48 AM PDT

    This is the post in question : https://android-developers.googleblog.com/2021/07/google-play-services-discontinuing-jelly-bean.html

    I have this question because I do maintain a codebase that has a minSdkVersion of 16 (and before anyone asks, there is a business decision about this, so it would be unwise for me to increase the SDK minimum version).

    If my understanding is right, if we already use App Bundle this would be a non-issue.

    But the explanations are what make me confuses, is it important for us to make separate APK for SDK 16 to 18? or is it something else?

    Edit:

    Seems like people is assuming the worst when I said it is a business decision when it comes to supporting API 16, so let me put this copy of my comment below so that everything is clear:

    Please don't make it seems like this is out of something malicious. Quite the opposite, honestly. Our company is not even needed that much profitability, we just want people to have a job.

    So I'm coming from a third-world country where the average phone cycle period for low-income people is on the 5 years average, where a lot of people still using something like Galaxy Young and Galaxy Grand Duos.

    I am not making money out of them, the app that I develop is a companion app that will help them FIND jobs instead, YES, this is a job finder for construction workers and we help them get a proper job, with insurance and all (because the standard practice HERE is that construction worker doesn't get safety equipment and insurance AT ALL).

    And that's why this is important because a lot of them don't have the money to upgrade their phone. We need this app to work for API 16 because a lot of them can't upgrade at all, and we want them to be enticed to joins us so that we can provide enough people for each project we can get.

    Geez people, always assume the worst before all else.

    F it, I'm outta here. Thanks for making my day worse.

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

    How OkCredit Android App improved Cold Startup by 70%

    Posted: 05 Aug 2021 03:54 AM PDT

    Should I Create Unit Tests For UseCase and Repository Layers When I Have Already Covered %100 of Them at a ViewModel Test ?

    Posted: 05 Aug 2021 04:10 AM PDT

    I'm currently using MVI architecture and my layers are as follows.

    Features -> It contains Fragments and Activity so it is out of the unit test.

    ViewModel -> It takes UseCase as a constructor parameter and uses Flow to emit view state and side effects to the Feature layer. It is core Kotlin code so it is %100 unit testable.

    UseCase -> It takes Repository as a constructor parameter thanks to dependency injection and uses Flow to emit view state and side effects to ViewModel. It is core Kotlin and it is %100 unit testable. My UseCases are created screen based but some UseCases would be business based like a payment process. Screen based UseCases take business based UseCases if they need them.

    Repository -> It takes Remote as a constructor parameter thanks to dependency injection and uses Flow to emit entities to UseCase. It is core Kotlin code and it is %100 Unit testable.

    Remote -> It uses the Apollo client so it is out of the unit test.

    When I create my unit test I create ViewModel like that at the test class,

    ARealViewModel(BRealUseCase(CRealRepository(DFakeRemote())))

    In this way my ViewModel test classes also covered the whole UseCase and Repository layers too. But some companies create UseCases unit tests too.

    So I have already covered these layers when I wrote unit tests for ViewModels. I think I don't need to create unit tests for UseCase and Repository layers which have already been %100 covered. What are the benefits of writing unit tests for these covered layers ?

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

    [June 2021] App Millionaire

    Posted: 04 Aug 2021 04:16 PM PDT

    Maybe this was unreasonable, but I really thought I could make a sustainable income through these Android apps that I've developed. I've been on this journey for 5 years - earlier on I was making close to $4k/month at the peak - but now I'm barely hitting $300/month.

    How do other indie developers deal with this level of dejection? I want to eventually stop working full-time and build my own apps, but with this kind of revenue that's nothing but a fool's unattainable dream.

    I wrote more of my thoughts here: https://appmillionaire.substack.com/p/revenue-update-june-2021-04-of-1000000

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

    LottieFiles attribution

    Posted: 05 Aug 2021 07:55 AM PDT

    https://lottiefiles.com/page/license says I need to add attributions to the creators. Im new to this stuff. Should i have a page in my app dedicated to links to the creators page?

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

    Allow application installation only if terms are accepted

    Posted: 05 Aug 2021 07:49 AM PDT

    Hi all.

    I was wondering if it is possible to set a rule in android play console in order to make user first accept terms and conditions and then be able to download it.

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

    Is there anywhere I can go for help if I disagree with a policy teams decision?

    Posted: 05 Aug 2021 03:39 AM PDT

    I contacted you all about my app a month back and the situation is still ongoing, my app is still offline. Here is a quick catchup:

    As a hobby project I've made and run an unofficial fan app dedicated to a music contest. I've worked on the app for 3 years, it's got a 4.5* Play Store rating with a decent number of users and paying subscribers.

    The app got suspended about 2 months ago with reasons it was apparently 'deceptive', apparently the 'on device app name' doesn't refelect the apps functionality. See the original post for all the details.

    I've since been emailing the policy team asking them to unsuspend the app so I can make ammends, however they are flat our refusing to.

    I feel like this whole situation is really unfair and unjust, my app is high quality, has taken me years to create and I've built up a solid install base and premium subscribers. I'm also willing to make whatever changes neccessary to get it back.

    Is there anywhere I can go to escalate this? I'm sure any reasonable person over at Google would look at this and be on my side. An article I wrote about my app even got retweeted by the Google Firebase official twitter account and I had comments from senior google engineers.

    Thanks,

    Jimmy

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

    We just released an Open Source Android base project using Jetpack Compose!

    Posted: 04 Aug 2021 12:12 PM PDT

    Improving software documentation and maintainability of open-source projects

    Posted: 05 Aug 2021 05:44 AM PDT

    Hello, I'm reaching out this community because I'm trying to help improving software documentation and maintainability of open-source projects by providing automatic support of source code comments based on code review discussions as a final goal. Code review tools store important discussions, and possible decisions, which can be useful for the project documentation. Thus, I would like to learn identifying relevant information from code review discussions such that tooling can be developed to improve software documentation and maintainability of open-source projects.

    As part of this study, we would like to invite you to answer this short survey, we expect it to take not more than 25 minutes: https://forms.office.com/r/9nD4HtNbTK

    Thanks a lot!

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

    Scripted Testing OR Scriptless Testing - A good article

    Posted: 05 Aug 2021 07:31 AM PDT

    Help me

    Posted: 05 Aug 2021 07:46 AM PDT

    I would like to know how tiktok can know that I have already installed it on this device don't know how you do it and I'm really curious

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

    Help

    Posted: 05 Aug 2021 07:46 AM PDT

    I would like to know how tiktok can know that I have already installed it on this device don't know how you do it and I'm really curious

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

    Scripted Testing OR Scriptless Testing - A good article

    Posted: 05 Aug 2021 07:31 AM PDT

    Internal App Sharing - I have been given the link but the App is showing the pre-register instead of the install button. Do you guys know how to fix this?

    Posted: 04 Aug 2021 06:51 PM PDT

    Help

    Posted: 05 Aug 2021 07:46 AM PDT

    I would like to know how tiktok can know that I have already installed it on this device don't know how you do it and I'm really curious

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

    Control mobile cash register from phone/tablet

    Posted: 05 Aug 2021 12:04 AM PDT

    Hello,

    I have to make an app for mobile devices to be used with a mobile cash register(DATECS WP50). The idea is to send from mobile devices the content of the receipt that will be printed on cash register. The connection can be made via USB or bluetooth.

    Any starting points for this issue will be greatly appreciated.

    Thank you for your time.

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

    Is it ok to deny taking the lead on future projects?

    Posted: 04 Aug 2021 05:28 PM PDT

    Hello everyone, This March I got my first part-time job as a junior android developer at a company (5 android devs in our department). I did pretty good at the interview and according to them, I'm ahead of most of my peers right now (as far as hands-on experience goes). Taking all that into account, they made me skip the 1-month training and dropped me straight in a production app. After a few months, On the end of June, they asked me to be the lead developer for a new project. I gave it some thought and decided to go with it. However, I'm not sure that the responsibilities of a junior dev include taking project leadership (after 3 months). Am i right on that?

    I'm seeing that as the project picks up speed, more time is spent communicating with the clients, pms , technical directors and junior devs. All of these new responsibilities and "annoyances" came without any pay raise or anything of the sort. Is this natural? I thought I was going to be writing code more as a junior dev. I know that the responsibilities of a dev include meetings, analyzing requirements, writing docs, etc. and I do like these things but I wasn't expecting them this early on.

    I feel like I don't want to take on any future projects as a lead developer (not while getting paid as a junior dev (4hrs/day) at least). Is this something that's considered ok to ask?

    Potentially relevant info:

    I'm not sure if it's relevant but my pay is 470€/mo for 20hr/week (sometimes i do overtime when we're packed which isn't compensated with money). I'm from Greece and currently studying Computer Science. Here's my resume

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

    Hey all. Does anyone here know what are the implementations to be added to be able to use Room and lifeCycle in the last version of Android Studio? (- Arctic Fox - 2020.3.1) . Thx!

    Posted: 04 Aug 2021 04:19 PM PDT

    Gimbal S5B has no joystick app any tips for me to develop one?

    Posted: 04 Aug 2021 07:20 PM PDT

    Any tip is well received I have zero experience, but I'm confident I can manage to develop such app basic function rotate left and right, just these two. Do I need to work with the gimbal firmware?

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

    What's the best way to create app files that is visible to the users?

    Posted: 04 Aug 2021 01:18 PM PDT

    Hi r/androiddev

    I am an indie developer, and am working on a finance app. I want to provide users a way to backup their data locally, and also be able to export their data as CSVs.

    I was looking into file management, and it seems starting Android 11, apps can't create their own app-specific directories.

    I also looked at shared storage, but it seems you need users to provide you permissions, and you only get permission for a specific URI, so if I want to create a backup file automatically everyday, that won't work for me.

    I also looked into permission for managing all external files, but it seems that this permission is now restricted for special use cases.

    What are my options for providing something like this to my users going forward?

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

    Is there any way at all to artificially send touch events to an application without rooting my phone or connecting it to a PC?

    Posted: 04 Aug 2021 12:01 PM PDT

    I'm trying to write an app (service) that can input touch commands to my phone to control another app.

    I can do this through ADB from a command line while my phone is connected to my PC, and I'm actually able to run these same commands from an application running on the phone itself, but it can only interact with itself (it can click/swipe/etc within the application, but it can't run in the background and click/swipe/etc on any other application).
     
    From what I'm reading it sounds like it can interact with other applications if I have root access, but is anyone aware of any way at all to do so without root?

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

    Combining Room 2.4.0 with Jetpack Paging v3 using Clean Architecture

    Posted: 04 Aug 2021 11:11 AM PDT

    Hi all! I just stumbled upon a very tricky architectural doubt: combining Clean Architecture and Paging v3.

    Now normally, what I would do, is to have all the Paging v3 classes in the app module, as per architectural standards, and have my PagingSource use UseCases to fetch the data (which in turn, will use repositories which make decisions like whether refresh db before using it, etc).

    In particular, the usage of my Room DAOs is abstracted by interfaces used by the Repositories so that they can be agnostic of which libraries I use.

    So far, so good.

    Now, I see there is this new room-paging integration between Room and Paging v3: https://developer.android.com/jetpack/androidx/releases/room#version_240_2

    This lets you do amazing stuff like

    @Dao interface UserDao { @Query("SELECT * FROM users ORDER BY id ASC") fun loadUsers(): PagingSource<Int, User> } 

    But I find this kinda messes up the architecture I use!

    Because the interfaces, and therefore also repositories and use cases, now need to know about the PagingSource return type, when they are not supposed to.

    The first thing I thought was "well nevermind, this library is not designed for Clean Architecture, I'll just not use it" but actually, it's specified that

    this artifact will become non-optional in future release for those using Room with Paging 3.0

    This is kinda scary because we actually need to find a way to integrate this in applications using Clean Architecture in the long run.

    The only trick I can think of right now is to mask the PagingSource type under something generic and force-cast it back before using it in Paging v3 which is, kinda ugly?

    Does anyone has any better idea on how to integrate these two?

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

    No comments:

    Post a Comment