• Breaking News

    Saturday, June 19, 2021

    Android Dev - App Feedback Thread - June 19, 2021

    Android Dev - App Feedback Thread - June 19, 2021


    App Feedback Thread - June 19, 2021

    Posted: 19 Jun 2021 06:00 AM PDT

    This thread is for getting feedback on your own apps.

    Developers:

    • must provide feedback for others
    • must include Play Store, GitHub, or BitBucket link
    • must make a top level comment
    • must make an effort to respond to questions and feedback from commenters
    • app may be open or closed source

    Commenters:

    • must give constructive feedback in replies to top level comments
    • must not include links to other apps

    To cut down on spam, accounts who are too young or do not have enough karma to post will be removed. Please make an effort to contribute to the community before asking for feedback.

    As always, the mod team is only a small group of people, and we rely on the readers to help us maintain this subreddit. Please report any rule breakers. Thank you.

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

    The magic of open source

    Posted: 19 Jun 2021 11:34 AM PDT

    ui setup in android studio

    Posted: 19 Jun 2021 03:48 PM PDT

    i'm trying from last 9 hours straight to setup ui that i made in adobe xd (exported using PNG : Android ) and it's not how it looks in adobe i used pixel 2 resolution in both adobe xd and android studio. having hard time

    somebody suggest me how can i do it properly.

    and is there any other software in that i can make android apps ui + code (ui setup and align should be simple way)

    thank you

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

    Dagger Hilt Implementation Tests on AWS Device Farm

    Posted: 19 Jun 2021 02:48 PM PDT

    I've been migrating over to Dagger Hilt from manual dependency injection.

    We have a fairly large codebase with implementation tests setup to run in AWS device farm.

    There were some issues with their standard environment not able to run test with Hilt annotations so we had to switch over to their custom environment.

    But we are still seeing weird cases where tests in certain packages that are not run or fails to run at all but without much info on what is happening. We probably will reach out to AWS support for this but was wondering if anyone else has seen similar problems with running Hilt tests on AWS Device Farm?

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

    Can you use an Accessibility service to auto-click buttons in the quick access panel?

    Posted: 19 Jun 2021 01:44 PM PDT

    I'm sorry I know I shouldn't ask such a specific question but I'm tired of StackOverflow. I asked the same question 3 times and nobody answered. I've gotten much more help from this sub.

    AccessibilityNodeInfo can be used to do all sorts of magical things, like finding views on the user's display and clicking them. But I'm wondering if this extends to the quick access panel? I mean the panel the user gets when he/she pulls down from the top of the screen. Is it possible for an Accessibility service to click these buttons in this panel without the user having to pull it down?

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

    Jetpack - passing function from parent Composable to child Composable

    Posted: 19 Jun 2021 12:21 PM PDT

    [SOLVED] Hi guys, I didnt find any resource, so I guess I am doing it totally wrong, but would appreciate help, how to solve this.

    I am playing with jetpack and I have declared state in Parent Composable and want to pass function to Child Composable to update state.

    So I have this in parent

    @Composable fun Parent() { var input by remember { mutableStateOf("") } fun changeInput (newInput: String) { input = newInput } Child(input, changeInput) } 

    And child

    @Composable fun Child(text: String, onChange: Function) { TextField( value = text, onValueChange = { onChange(it) }, ) } 

    Is it even possible to pass function like that?

    Thank you

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

    Caching data from a single API endpoint into multiple room tables. Would it be bad practice to not normalise and instead store the data as is?

    Posted: 19 Jun 2021 12:04 PM PDT

    While using the cache as a single source of truth, Im storing the data from a single endpoint into normalised tables, and then performing multiple joins to get the same data back for display. I'm beginning to think this is a futile excercise. Any advice?

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

    Implement Achievements feature in App

    Posted: 19 Jun 2021 07:06 AM PDT

    I have an fitness app and I want to implement Achievements feature.

    What about Play Games achievements? Can it be used for fitness app or only applies to games ?

    Please suggest from your experiences.

    submitted by /u/No-Pin-6031
    [link] [comments]

    Developing for Android Enterprise and individual user

    Posted: 19 Jun 2021 10:39 AM PDT

    Hello!
    I'm looking at developing an app that uses a subscription for individual users, however, I would like to give businesses the option to purchase multiple subscriptions for their employees. I found older documentation on Android for Work that allows businesses to buy and manage multiple subscriptions.

    It looks like Android for Work has been folded into Android Enterprise now. Does Android Enterprise also include multiple subscription purchases and management for employees? The documentation didn't seem to mention anything about applications for both enterprise and individual users.

    Are there any resources anyone can point me to on handling this sort of situation?

    We are already using Firebase for account handling and were planning to use (and I believe required to) use Google Play for individual user subscriptions.

    Also, it looks like android doesn't allow for codes to avoid paying for subscriptions, would using a code to link it to an account already paid for be okay or is that standing on thin ice?

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

    Which Jacoco Android plugin you're using for test coverage?

    Posted: 18 Jun 2021 08:57 PM PDT

    Context: my Android project (Android Studio 4.2.1, Kotlin 1.5.10) has multiple flavors, and I want to send the test coverage (just unit test, no need instrumented test) to CodeClimate.

    I see there are some Jacoco Android plugins, but seems no longer update for years.

    - arturdm/jacoco-android-gradle-plugin: 0.1.4: released this on Feb 26, 2019.

    - vanniktech/gradle-android-junit-jacoco-plugin: 0.16.0: released this on Mar 22, 2020.

    And there is the original jacoco/jacoco: (0.8.7: released this on May 5, 2021), but it's for Java. I'm not sure if we can use it with multiple flavors on Android.

    Can you share with me how do you set up test coverage in your project?

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

    Avoid pain in Jetpack Compose

    Posted: 18 Jun 2021 09:28 PM PDT

    Kotlin maybe more Android friendly but Android studio/IntelliJ is not Kotlin friendly enough

    Posted: 19 Jun 2021 08:30 AM PDT

    In Java when we have for example a POJO Product & we need to show list of products, we type List<Product> & a suggestion shows we can easily select products as the variable name. But in Kotlin, we have to type product fully then it will show productsList. Usually in a rest API the name for such a JSON array will be products not product List. If we keep name as products we can avoid putting Serialised name annotation

    In Java when we initialise an object, the parenthesis are automatically added. When we define an interface in Java we type new & the interface class name, the overriding methods are automatically written. But in Kotlin this completion is not as good as Java. In case of sam/lambda it requires the developer to remember what variables come inside the callback to type without looking anywhere

    Professional programmers will say a developer should not depend on code completion but an IDE is supposed to reduce coding time especially in a target oriented deadline focused industry.

    Edit: for those who say learn keyboard shortcuts, I know using ctrl plus space will show suggestions but Java requires less of it

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

    Special for developers interested in the field of Android!!

    Posted: 18 Jun 2021 01:37 PM PDT

    As a continuation of the educational course to explain Android using Kotlin language on the YouTube platform under the title:

    Tutorials for Android by Kotlin

    The link for the Playlist:
    https://www.youtube.com/playlist?list=PLsfs9DojDVqO5a2I_7tXYxqZ_6k94Op4r

    2 short videos have been uploaded to explain the first and second parts of "Kotlin Overview and SetOnClickListener by 3 Different Ways"

    Android - Kotlin - Overview and SetOnClickListener by 3 Different Ways - Part01 - Explanation

    https://www.youtube.com/watch?v=mU-Q7OVh4f4&list=PLsfs9DojDVqO5a2I_7tXYxqZ_6k94Op4r&index=5

    Android - Kotlin - Overview and SetOnClickListener by 3 Different Ways - Part02 - Explanation

    https://www.youtube.com/watch?v=lTKFb842veQ&list=PLsfs9DojDVqO5a2I_7tXYxqZ_6k94Op4r&index=6

    The Playlist will cover the following topics:

    * Designing and developing Android mobile native application using Kotlin.

    * Create dynamic lists with RecyclerView.

    * Android Jetpack Navigation and View Binding.

    * SQL database and SQLite (Room).

    * Background processing, multi-threading, and Coroutines.

    * Android Jetpack Lifecycles, LiveData, and ViewModel.

    * Architecture Design Pattern using MVVM.

    * Working with remote data via HTTP/HTTPS protocols using RESTful API.

    * Data serialization JSON and XML using network framework Retrofit2.

    * Dependency injection using Koin.

    More videos will be uploaded later (God willing, a video will be uploaded every 3 or 4 days)

    I hope it helps.

    #Android #Kotlin

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

    No comments:

    Post a Comment