• Breaking News

    Thursday, October 21, 2021

    Android Dev - How much money have you made from your self-made android apps?

    Android Dev - How much money have you made from your self-made android apps?


    How much money have you made from your self-made android apps?

    Posted: 21 Oct 2021 02:31 AM PDT

    Building a Windows 11 inspired Popup Window

    Posted: 20 Oct 2021 07:48 PM PDT

    Can an unpublished app on Google Play get suspended ?

    Posted: 21 Oct 2021 05:26 AM PDT

    I have 2 app strikes and i have unpublished all others to avoid another strike. Can they still give me a strike?

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

    Windows 11 Subsystem for Android

    Posted: 20 Oct 2021 08:28 AM PDT

    Country origin of Wellsource developers

    Posted: 21 Oct 2021 09:38 AM PDT

    Wellsource, the company that develops the app Speechnotes among others, where are they based out of? 🇨🇳? The 🇺🇸?

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

    How to Create Jetpack Compose project with Android studio

    Posted: 21 Oct 2021 09:17 AM PDT

    AndroidDevSummit agenda posted

    Posted: 20 Oct 2021 08:13 PM PDT

    Single Activity architecture with custom views. Common pattern or anti-pattern?

    Posted: 20 Oct 2021 07:31 PM PDT

    Started at a new job recently at a company much bigger than my previous one, and feeling a little baffled by the company's architecture: a single Activity that inflates custom views for each screen. No fragments, no lifecycles, no transitions. Responsibilities are divided in an MVP pattern with Rx.

    There are also a couple other things that have raised my eyebrows a little but I feel like it's too early for me to rock the boat too much.

    Is this architecture something I should work on moving the company away from, or is this more common than I realize?

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

    Are all Jetpack Compose libraries totally stable? Or are there some ones aren't yet?

    Posted: 20 Oct 2021 05:49 PM PDT

    Hey you guys,

    Are all Jetpack Compose libraries totally stable? Or are there some ones aren't yet?

    For instance, in some Google codelabs I've got stumble on following Jetpack Compose librarie in the build.gradle file:

    implementation "androidx.navigation:navigation-compose:2.4.0-alpha10"

    I'm building a project mine totally in Jetpack Compose. Whether that library isn't stable so what one I should use over that be stable?

    Thanks in advance

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

    RecyclerView - best practices

    Posted: 20 Oct 2021 01:55 PM PDT

    Hello there!

    I'm not so new to the Android Development but still learning and looking for best practices. For some (or most) of you my question might seem silly but hopefully some good Samaritan will help me out with an answer.

    This time I was implementing to my app RecyclerView but I found a (logical) problem that I'm not sure how to solve in correct way - due to best practices.

    Let me say a couple words about the situation: my app is an breathalyzer, I use barcode scanner to scan booze barcode and fetch information about it from database via rest server (alcohol percentage, brand, bottle capacity, etc.) based on the barcode value. Scanned liquors will be displayed in the recycler view and a user will be able to enter amount of drank booze directly from displayed item in this RecyclerView.

    Usually use of RecyclerView was simple (create adapter, view holder, item to be displayed, etc.) and I was supplying it with model that I was displaying all attributes of. This time I'm fetching data from server and not all attributes will be displayed in recycler view - but all of them will be used later on to supply the algorithm that will compute stuff.

    Normally I would create a view model with only these attributes that will be displayed to the user and used by adapter and ViewHolder, but I need to keep all information fetched from server.

    And, at least for me, it sounds wrong to use model that will contain all the fetched attributes (including these not being displayed to the user) with adapter and viewHolder. With that said creating view model that will have only attributes displayed to the user sounds like shooting in my foot because later on I will have to somehow get all remaining information to do the computing.

    I came up with two potential solutions:

    1. Create view model with additional attribute that will be the ID of the item type, identical to ID of model type fetched from the server - in this case this ID would be the barcode of the product. Doing so I could have a static list of models fetch from database and compare them by the Barcode to get information needed for the algorithm.

    2. Instead of using list in adapter, i could use LinkedHashMap (as HashMap doesn't preserve ordering). The key would be model fetched from the server and key - view model. LinkedHashMap would be helpful when selecting one of multiple items in recycler view by its position.

    I don't know which option is better in this case, what would you chose? Or maby you see better way to solve this problem? Please let me know in the comments.

    Just for the record - I'm using Java, Android 10.

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

    Hey Android Developers, As promised in the previous video, in this video you will get to know detekt as an static analysis linter tool features plus IDE plugin setup.

    Posted: 20 Oct 2021 11:15 PM PDT

    Roadmap for Jetpack Compose

    Posted: 20 Oct 2021 03:48 PM PDT

    Android development on 16gb RAM MacBook

    Posted: 20 Oct 2021 07:55 AM PDT

    I want to buy a 16 inch Apple MacBook that has just been released in a few days, is 16GB of RAM enough if you use Android Studio, 6GB Ram Emulator, Simulator, and eight chrome tabs at the same time?

    submitted by /u/Delicious-Wafer1162
    [link] [comments]

    Does anyone know what is the deadline to implement 30 characters or less for App title?

    Posted: 20 Oct 2021 08:14 AM PDT

    Based on https://android-developers.googleblog.com/2021/04/updated-guidance-to-improve-your-app.html

    Limiting the length of app titles to 30 characters

    Does anyone know what is the deadline to implement so? As we have quite a number of different localization, it will take some time for us to implement for all localization.

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

    Droidcon Berlin 2021 at a quick glance!

    Posted: 20 Oct 2021 01:44 PM PDT

    AndroidX Junit Test Ideas on Sample Project

    Posted: 20 Oct 2021 09:38 AM PDT

    I'm a little stuck and looking for ideas.

    I am submitting a sample project for a job interview.

    The project is a simple Android app in Kotlin that makes and call to a REST API and displays it in the app. I need to style it up in Jetpack Compose.

    One of the requirements is to include an Androidx Junit test.

    All of the examples and everything I'm looking up show different ways to test that functions are performing things like math equations.

    I don't have any of that. I make a call to a movie database and display popular movies on the screen.

    I spent most of last night just looking for examples of what I could just write a simple test that tests some functionality of the app.

    Ideas would be helpful and wonderful!

    In my project I have:

    • MainActivity that calls the REST API
    • ServiceBuilder object (retrofit and OkHttp3)
    • Endpoints interface with the GET request
    • Data class for the Results from the request
    • Composable functions that take the resulting list of movies and pass the results to a Composable card
    submitted by /u/pigfeedmauer
    [link] [comments]

    Strange behavior on Xiaomi device!

    Posted: 20 Oct 2021 08:43 AM PDT

    In short, Xiaomi Y3 fails to achieve concurrency. The same method is being called by multiple threads, but I've called it only once. Even if I use synchronized! While other Xiaomi devices and Virtual devices are okay. What am I doing something wrong?

    Let me explain,

    All the operations are between just a fragment and repository class.

    Inside the fragment,

    I have a LiveData object. If the value of that LiveData changes, it invokes the datasetChanged() method.

    private synchronized void datasetChanged() { repositoryKt.getAllItemPlans(itemPlans -> { planAdapter.submitList(itemPlans); }); } 

    Though, this method has no need to be synchronized, since it is always being called from main thread.

    Now In Repository Class:

    fun getAllItemPlans( callback: ItemPlansCallback ) = ExecutorUtils.submitTask { val plans = planDao.allPlans val itemPlans = getItemPlans(plans) mainExe.execute { callback.result(itemPlans) } } 

    The ExecutorUtils.submitTask is a singleThreadExecutor.

    I've detected the problem. It's at this val itemPlans = getItemPlans(plans) line. The problem is getItemPlans(plans) is getting called but never returns. Meanwhile, this same method is being called by other random threads.

    The getItemPlans() is:

    @Synchronized private fun getItemPlans(plans: List<Plan>): List<ItemPlan> { val itemPlans: MutableList<ItemPlan> = mutableListOf() val todayMidnight = DateTimeUtil.getMidnight(System.currentTimeMillis()) plans.forEach { plan -> val bundle = getBundle(plan.planID, todayMidnight) // after executing this line, // from a place of unknown, a random thread is being called // and the previous thread is being lost! // the random thread is doing the job correctly // but is being called again and again. // add new ItemPlan itemPlans.add(ItemPlan( plan.planID, plan.label, plan.archived, plan.planType, plan.priority, bundle )) } return itemPlans } 

    I've tested the app on several physical & virtual devices. The problem is only with Xiaomi Y3. Can anyone tell me WHERE is the problem?

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

    Tips for Kotlin Project | Supercharge your Kotlin Project

    Posted: 20 Oct 2021 07:59 AM PDT

    No comments:

    Post a Comment