• Breaking News

    Thursday, September 2, 2021

    Android Dev - How would you achieve these kind of layouts without nested RecyclerViews?

    Android Dev - How would you achieve these kind of layouts without nested RecyclerViews?


    How would you achieve these kind of layouts without nested RecyclerViews?

    Posted: 01 Sep 2021 09:24 PM PDT

    Delaying camera footage - best approach?

    Posted: 02 Sep 2021 06:51 AM PDT

    I am building a service for gyms which would provide its clients various information about their progress. One of the features I am trying to implement is showing the camera feed with an adjustable delay.

    For example, a person does a set of flips on a trampoline, goes back to the recording phone and sees themselves doing the flips on the screen. Meanwhile the phone is continuously recording, so that while this person is watching the footage of themselves, the next person can have their footage recorded. Currently assuming the required delay is a static number of seconds.

    I have seen implementations of such a delayed recording in some apps, but I cannot find any helpful information on how to implement this. Android is a fairly new platform for me, so I am kinda struggling with this specific task. Can someone please point me in a correct direction regarding this task?

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

    Deprecated gradle version led me to SDK errors and not sure what to do

    Posted: 02 Sep 2021 05:48 AM PDT

    I am not a developer, but was trying to make some aesthetic adjustments of this app called Flym (basically an open source RSS reader.

    I wanted to use a better usage of the screen and adding an option to justify the text. If everything went cool and easy, then I would consider adding a widget or something like that, but I'm encountered this issue on Android Studio.

    AS tells me that the gradle version is deprecated, so I updated it from 4 to 7, but now I have more than one thousand errors all of a sudden coming form ~/Android/Sdk/sources/android-30/android/view/ViewGroup.java. I don't understand how important the gradle is or what should I do with these errors. SDK seems pretty related to the android version, so I'm not sure if by somehow using a different SDK ('cause Idk how to) then the app won't work on previous version of Android.

    Probably, it's not even necessary to touch anything for this error to come up, by downloading the source, loading as a project and upgrading the gradle, the errors will show up.

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

    Is Bidding in Facebook Audience Network mandatory?

    Posted: 02 Sep 2021 04:40 AM PDT

    Is Bidding in Facebook Audience Network mandatory?

    Hi,

    My apologies if this post is not related to Android development.

    I've more than 10 apps published on Google Play, I'm monetizing from them using ONLY Facebook Audience Network (I don't use mediation or any other ad network).

    Months ago, I've noticed a message appear at the top of my Facebook Audience Network dashboard :

    https://preview.redd.it/1qjdgce7t2l71.png?width=1224&format=png&auto=webp&s=fb728578cb4e7a8fa9a365b25810c5f3ffa4b9eb

    I was confusing, I don't know what should I do, since I don't use any other ad network the bidding or mediation is not making any sense in my case.

    I decide to contact the Facebook Audience Network support team, and they said this :

    Via Facebook Messenger Live Chat :

    Please note that we still encourage you to use bidding with a mediation partner. However, if there is no other Network you are using or intend to use, you can still monetize by selecting the 'No mediation platform (Audience Network only)' option, but you will not be able to use CPM targets

    All their placements will remain on the current setting of 'Accept Any Price'

    Via email :

    Hi,

    I hope this email finds you well.

    Thank you for contacting Facebook Support.

    Please note, using Audience Network ONLY without a Mediation Partner is only available for selected Publishers, therefore you are required to integrate with Mediation Partners.

    If no bidding integration has been done, it would affect your fill rates. You would need to use a mediation partner in order to convert to bidding.

    What do you think?

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

    Do you use buildSrc, Version Catalogs, or just the "conventional" method to manage dependencies?

    Posted: 02 Sep 2021 06:43 AM PDT

    Conventional just includes all the default methods provided by the IDE

    View Poll

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

    How closely to tie ViewModel state to the view?

    Posted: 02 Sep 2021 08:06 AM PDT

    This might be a question larger than just Android development, but I'll ask it here first and see how it goes. How much logic do you think is appropriate to put in your ViewModels? All the business logic is still inside the model/repository/api layer, so I'm not suggesting that should be in the VM. But when it comes time to translate the data/state from the model to the views, how far should the VM go? Should it provide everything tailored *exactly* to what the view will end up needing (down to colors and font sizes, if they are dynamic, as well as actual strings) or should it leave the view to figure out such details?

    An example, if you're not following me. One option:

    data class DeviceRow { val isError: Boolean } 

    data class DeviceRow { @ColorRes val textColor: Int, val typeface: Int // Typeface.BOLD, etc } 

    So in example 1, it would be up to the view to figure out the text color and typeface for a device is error versus not. In example 2, the VM provides all that information and the view has no logic - it just sets what it receives.

    Aside from that simple example, it can get more complicated. I've seen a boolean field on the VM state that the view uses to hide one view, change the text of another, and modify the padding on a third.

    I personally prefer example 2, as it moves logic even further outside the views. It makes the view state even more unit-testable (still no substitute for UI tests, but it does give more confidence). I've read some articles and comments that indicate some don't like this approach, because it ties the VM to the view implementation too much. This seems like the entire point of the VM, though, especially if the VM is not re-used for another view. Why not tie the data it provides exactly to what will be seen on screen?

    Anyway, I'm curious what others think. Let me know if what I typed was not clear.

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

    What is the "minimum viable" set of tools to get from point A (develop the app) to point B (publish the app in Google Play)?

    Posted: 02 Sep 2021 08:00 AM PDT

    Hi guys,

    I'm not a programmer myself, so don't be surprised with this question. Any product (digital/physical) can't be created without the minimum set of tools. When we strive for convenience we enlarge the range and quality of the tools we use.

    I guess the development environment (I take it as the software/SaaS to code the app using a specific programming language, or a range of languages) is the cornerstone, right? Like Android SDK.

    I also suppose the solution to test the code/app is crucial - to check for possible mistakes prior to uploading app to the app store.

    Finally, I think tracking changes/updates in code and handling future upgrades of the app version, etc. is important, which (if I'm not mistaken) is done via GitHub. And GitHub in its turn may be connected to Google Play Console to finally publish the app.

    Is the above-said correct? Which essential tools did I forget to mention?

    Thank you for your comments!

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

    A Bit of Gradle Housekeeping - zsmb.co

    Posted: 01 Sep 2021 01:36 PM PDT

    Android Studio - Arctic Fox | 2020.3.1 Patch 2 now available

    Posted: 01 Sep 2021 11:58 AM PDT

    Help with Android Emulators

    Posted: 01 Sep 2021 03:31 PM PDT

    I'm trying to use an app on the emulator which doesn't block emulators but blocks rooted devices. Is there any way I can hide that I'm using a rooted device or turn it off? I'm aware emulators like BlueStacks etc can run this app without a problem so it's got nothing to do with me using an emulator

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

    Should I use a Framework for my new app

    Posted: 01 Sep 2021 10:19 PM PDT

    I'm about to start working on my own app and was wondering, should I try to learn a framework to help out in the long run?

    I understand the benefits can be huge but I dont know any of the frameworks right now so it would take a lot of time. I was going to try something similar to RIBs (Uber's framework, similar to Lyft's framework that I use at my current job, Scoop) which can help with Project structure and boiler plate code (making it a bit faster) but also I see there are a lot, like Flutter, React Native and Xamarin. The only language I'm fluent in is Kotlin at the moment so that also adds extra learning if I were to pick up a framework.

    I dont know if taking the time to learn any of them would be worth it for the first iteration of my first app. Any advice here would be very helpful!

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

    The Shift Left in Mobile Engineering

    Posted: 01 Sep 2021 11:40 AM PDT

    Starting with Compose. Things I'm not comfortable with so far.

    Posted: 01 Sep 2021 01:41 PM PDT

    I've started with Jetpack Compose not because I need it, but because I want to understand modern codebases. I was already a big fan of custom views, so this idea of small composable components suits well with my style, but there are a lot of things about this library I don't really like so far:

    • Why not classes instead of functions? That way instead of using by remember for the view state we could have just class members. Compose could detect them at compile time or using reflection.
    • Breaks Java naming convention (uppercase function names).
    • Structure mixed with theming/customization and handlers/listeners.
    • @Preview hack littering production files.
    • Tons of new things to re-learn (Modifier.whateverFunction(someDimension))).
    • No visual View catalog, you need to know a certain view exists in advance!
    • Complicated React-style state management with delegates.

    Do you thing some of these points could be addressed in future releases?

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

    37 days since Jetpack compose was released, what is your learning state?

    Posted: 01 Sep 2021 12:46 PM PDT

    Is ban of Google dev account after 3 app suspensions Truth or Myth?

    Posted: 01 Sep 2021 09:10 AM PDT

    Today I red multiple post on Internet about Google banning dev account after 3rd violation of Google Play rules.

    I like to ask if this is strict/enforced rule or something rare more likely to happen if dev openly/visibly abuse Google rule?.

    I like to know you opinions and experience on this topic. Thank you

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

    Is there away to use Play Store subscription as reward?

    Posted: 01 Sep 2021 09:45 AM PDT

    This could be a huge question but can anyone guide me how can we extend users subscription by let's say 15 days for a referral reward.

    Is it even possible or do I need something else?

    Important point to keep in mind is the user already have an active subscription.

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

    Is Android development slower than iOS?

    Posted: 01 Sep 2021 07:25 PM PDT

    I work with JavaScript, but I was offered an opportunity to join an Android team to learn a bit about native development. The thing is, on the project, I have a feeling that iOS is outpacing Android little by little and that adds up really hard down the road.

    So I'm curious, what is your experience when you had to develop apps along with iOS teams.

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

    Nested RecyclerView Vs. Two different view types performance question.

    Posted: 01 Sep 2021 08:50 AM PDT

    I'm currently building a workout app, and am listing the name of the workouts, and beneath that a list of exercises that are included.

    Eg.

    Chest

    3 x push ups

    3 x bench press

    Back

    3 x deadlift

    3 x pull up

    I was wondering which of the options in the title would give me better performance. Thanks!

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

    No comments:

    Post a Comment