• Breaking News

    Tuesday, December 28, 2021

    Android Dev - Weekly Who's Hiring Thread - December 27, 2021

    Android Dev - Weekly Who's Hiring Thread - December 27, 2021


    Weekly Who's Hiring Thread - December 27, 2021

    Posted: 27 Dec 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]

    I feel weird about learning Android development now when Fuchsia/Flutter/Dart seems to be on the rise.

    Posted: 27 Dec 2021 06:29 PM PST

    Do you think it's inevitable that Google is going to fully dump Android for Fuchsia? How long do you think we have? Is Kotlin/the current Android dev process still a good thing for a beginner to learn or should I focus my efforts somewhere else?

    submitted by /u/evangelion-unit-two
    [link] [comments]

    Is Macbook air M1 with 16GB ram a good buy for Android development on Android studio m

    Posted: 28 Dec 2021 12:17 AM PST

    I am considering to buy one

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

    MVVM and one shot operations

    Posted: 27 Dec 2021 01:20 PM PST

    How do you guys handle one shot operations with MVVM? For example, showing a snackbar after inserting something into the database with

    class MyViewModel : ViewModel() { fun insert() { viewModelScope.launch { ... } } } 

    Should the viewmodel expose an observable (val action: LiveData<Action>) or something to trigger the snackbar, or is it okay to return the viewModelScope.launch job and do something like this in the fragment

    class MyFragment : Fragment() { fun insert() { lifecycleScope.launch { val job = viewModel.insert() job.join() showSnackbar() } } } 
    submitted by /u/1298se
    [link] [comments]

    How do android developers test their apps?

    Posted: 27 Dec 2021 01:44 AM PST

    I looked up "ios vs android development" on reddit and one of the key points made by ios devs as to why ios development is better is because you don't need to develop for as many different screen sizes/devices like you would for android.

    Which makes me wonder how devs without much money are able to develop for android or more so, make it compatible with many android devices


    [link] [comments]

    I created an android app which uses Firebase Database, custom model class and adapters. The app in debug state ran well, but when it was released it showed ‘DatabaseException’. I checked each and every line of my code thoroughly but I am not able to find out a single error.

    Posted: 27 Dec 2021 10:58 PM PST

    Onboarding a new Android Dev

    Posted: 27 Dec 2021 08:13 AM PST

    Hi All,

    We have a new Android Dev starting next Monday, and as the principle android dev, I have been tasked with onboarding him. I work at a small-ish start -up and am the "principle" android dev not because of my yoe/skill, but because I am the only android dev; as such I only have around 2 yoe. My general question is, what is the best way of on-boarding an new Android dev (especially for someone with my experience level)? When I started, I made alot of architectural mistakes that I would like to help the new hire avoid, but worry that explaining "why" certain patterns are good/bad is too much too fast. For context, he will be working with an app that impacts are system the least, but has also had the least amount attention paid too it (essentially MVP). The rest of the applications in the suite are tested far more extensively, have better architecture (think better vm/use case /repo/ api layering), use hilt etc. Is starting him on the less refined application a wise move, or should I start him on one of the far more complicated but architecturally sound applications? The thinking behind starting him on the weakest application is that it will force him to not just not know that he "should" use certain patterns, but "why" they make sense/are beneficial, and the price that is paid if they are not used.

    Sorry for the word vomit, thanks!

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

    Jetpack Compose Crash Course - All Techies

    Posted: 27 Dec 2021 06:16 AM PST

    A free crash course on Jetpack Compose is now available on my YouTube channel - All Techies

    Please subscribe, like & share with your friends who want to learn app development with Jetpack Compose! ✌️🤝

    https://youtube.com/playlist?list=PLOE5ZW4TrQKrM3JrLNSxjUi1MfZrERiEf

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

    Country restriction on Google Play

    Posted: 27 Dec 2021 02:10 PM PST

    Hi, had to make my app unavailable in a number of countries. Subsequently, the app disappeared from the Google Play search results in the specified countries (my Google account registered in one such country).

    However, the app is still visible in the Google search results and if I open the Google Play page from there, I can still download the app, even if my Google account is "located" in a restricted country.

    Any idea why this might still happen? Am I not understanding Google Play's country availability correctly? Or did I maybe find a way to circumvent Google Play's country restriction? 😇😅

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

    Understand Android Lifecycle Aware Coroutine Scope Made Easy

    Posted: 26 Dec 2021 08:39 PM PST

    Have a LiveData problem and not sure how to tackle it

    Posted: 27 Dec 2021 09:16 AM PST

    I'm displaying a list of collections as a ViewPager with tabs (each tab corresponds to a collection). I'm currently exposing a LiveData of collections from Room. When the user creates a new collection, I want to automatically scroll to the position of the newly created list.

    Currently, I have

    val collections = LiveData<List<UserCollection>> val selectedTabPosition: LiveData<Int> 

    When the user creates a new collection, I'm currently doing

    viewModelScope.launch { val newId = collectionRepository.insertCollection(collection) _selectedTabPosition.value = collections.value?.indexOfFirst { it.id == newId } } 

    However this does not work because the collections LiveData has not been updated yet, so collections.value doesn't contain the newly inserted collection.

    Not sure if there's a good way to do this? Thinking about having a variable selectedId where I store the newId and then making the selectedTabPosition a MediatorLiveData like

    _selectedTabPosition.addSource(collections) { collections -> if (selectedId != null) { _selectedTabPosition.value = collections.indexOfFirst { it.id == selectedId?.toLong() } selectedId = null } } 

    Or in this case would using flows be a more elegant solution? I can turn selectedId into a flow and _selectedTabPosition a combine of collections and selectedId? But I guess I will have to reset the selectedId to null anyways.

    Sorry if the post is a bit long, just unsure what a clean way of doing this would be.

    submitted by /u/1298se
    [link] [comments]

    Dear Developers, how do you feel about using Jetpack Compose and Xml at the same time(Hybrid)?

    Posted: 27 Dec 2021 02:18 PM PST

    Probably not a critical question, I asked on this thread a month ago about adopting Jetpack Compose or sticking to Xml. To my surprise the majority supported the adoption of Jetpack Compose over Xml by about 70%. Anyways, after dabbing in Jetpack Compose, lemme say something that shit was mad confusing at first. However, I dont feel its necessary to resort to making an app 100% off Jetpack Compose. To that I say how many of you guys like the "hybrid" of using both?

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

    How do I get an apk build number?

    Posted: 27 Dec 2021 01:25 PM PST

    I wasn't sure where to post this, but I need help and this seemed like the most appropriate place I could think of.

    I'm developing an API wrapper for an Android app (and IOS, but I'm building it for the Android version) and to make requests, you need an appropriate user agent. My issue is that the user agent requires an APK version number, and an APK build number. Now, I've been getting these by monitoring the requests made while using the app, but it's a slow and tedious process. I was wondering if there was a shorter way to get the apk version number and build number.

    The APK version number isn't as important, because I can find the app on the Google play store and get that there, but the build number is not visible from the playstore.

    The app I am creating an API wrapper for is iFunny, if that helps at all. And here is my current user agent for iFunny

    iFunny/7.14.1(1120087) Android/7.1.2 (samsung; SM-G973N; samsung)

    Where the build number (or versionCode as said in the comments. That looks correct) is the number in parentheses. "(1120086)"

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

    My app shows "similar apps" that are not related to my app category

    Posted: 27 Dec 2021 11:16 AM PST

    My app shows "similar apps" that are not related to my app category

    I have an app published at Google Play and is used to download videos from particular service.

    When I open my app page, the "similar" part shows these apps:

    https://preview.redd.it/tjlodtxpw4881.png?width=360&format=png&auto=webp&s=31e5613b08677e509298b81e4f4eec129aafc699

    But when I open any other app with the same functionality as mine, the "similar" part is related to their content like this:

    https://preview.redd.it/rsorlpkvw4881.png?width=373&format=png&auto=webp&s=368779e52830867f03e77a72061d161ae72475b3

    How can I adjust my app settings on Play Console so that "similar" can show correct apps with relatable functionality.

    Note:
    Even new apps with functionality like me shows a correct "similar".

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

    Native or Hybrid App

    Posted: 27 Dec 2021 03:42 AM PST

    Hi, I am about to do a startup and it is fully focus on mobile app. So I know android native development but I am confuse which tech to use native or hybrid like flutter ?

    submitted by /u/Dry-Wonder-1180
    [link] [comments]

    How to build UI from Figma/Adobe XD ?

    Posted: 27 Dec 2021 04:16 AM PST

    I have seen many developers first prefer to build prototype of application using Figma or Adob XD. I also want to do same but problem which I faced is I can design awesome UI on figma but not able to convert that same UI in Android Code (XML). Is there anyway I can learn how to Design UI from this prototype. I know how to build basic UI in Android but I really struggle to build responsive design and especially while I am referring to prototype.

    submitted by /u/Negative-Ad-4280
    [link] [comments]

    Anybody handling navigation in compose from ViewModel?

    Posted: 27 Dec 2021 08:34 AM PST

    For some time I've been handling navigation from the ViewModel. I prefer having View focusing strictly on the UI + since it's possible to share ViewModel in KPM I like to handle it in one place.

    I've have working solution for XML, but to be honest it's a bit complex and has too much code. That solution would still work if I'm using Activity + Fragments to just host composeables, but I want my next pet project to just be several activities in which every activity would host different app flow (or maybe single activity, but separating flows in different activities made things cleaner in XML).

    Seems like that is easily done with Navigation Component + compose. But the codelab I did handled navigation from UI. Anybody has example of using Navigation Component and handling navigation from ViewModel. Since I didn't work with nav component yet, even solution without compose might give me idea.

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

    Google play console rejection (Not adhering to Unauthorized Use of Copyrighted Content policy)

    Posted: 27 Dec 2021 06:37 AM PST

    Google play console rejection (Not adhering to Unauthorized Use of Copyrighted Content policy)

    Hi guys,

    I have a problem when uploading my app to production. I have trying for the last 2 weeks without success. Here's what Google said in the email. I have sent the appeal letter to Google 5 days ago but receive no responses yet. I really don't have a clue of what our app did wrong.

    Please, if anyone have encounter this problem, please help me. Thank you!

    Here's the link to our apps:https://play.google.com/store/apps/details?id=com.topmixtapescom.topmixtapescom

    https://preview.redd.it/k3r28tvji3881.png?width=806&format=png&auto=webp&s=5de00e769eb251f0985830db9b2b31cb92c443d6

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

    Emulator is getting slow down after used for awhile

    Posted: 27 Dec 2021 02:23 AM PST

    Hello everyone.

    I'm struggling with Android Emulator, after booting either from coolboot or snapshot, it's working perfectly, but after deployed apk, install new code... etc as normal dev's activity for awhile (30mins) it's getting extremely slow. Sometime I see ANR on system UI process and have to reboot, turn of and turn on again.

    Anyone has encountered this?

    My PC: Amd 5600x with R9 270x, 32Gb of memory, when issue occurred, memory, CPU's usage is low.

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

    How to implement the searchView widget in a Fragment (Kotlin)

    Posted: 27 Dec 2021 06:02 AM PST

    I'm trying to use the searchView widget in a fragment. I can't find a way to do it. It's easier to implement a searchView using an Activity but I have no clue how to do implement it in a fragment in Kotlin. I tried this way but doesn't seem to work ( only works in an activity). I'm a beginner in Android and would really appreciate some help here, i've been struggling for a couple of days

    Heres my code

    https://pastebin.com/7sb2rzjF 
    submitted by /u/ryuKog
    [link] [comments]

    How to store big data in the built itself.

    Posted: 26 Dec 2021 11:53 PM PST

    Suppose I have an app, where when user will install and open it. A text view will be shown to him with some text in it.

    Now the text which will be shown to the user (in that text view) will come randomly from a string array list, of let's say the size of 20.

    Ok, no issues I can have already created a string array, which will be pre-initialized with 20 strings in it.

    Now the question is, what if I have data where the strings are 5000, I can of course have created and setted up an array of 5000 already in the app. But that's indeed an insane idea.

    So what are the other alternatives to store this much big data in the built itself? so that it's available in the app without any network calls.

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

    What's the most interesting thing about Android App Development?

    Posted: 27 Dec 2021 04:58 AM PST

    Odd request - need an ear. Updating to Room from direct SQLite code..

    Posted: 27 Dec 2021 07:55 AM PST

    Odd request, but was wondering if someone rather familiar with Room could lend an ear in DMs? I want to, essentially, have a rubber duck that will talk back to me and give me feedback and answer a few questions about Room.

    The short of it is that my app has been running fine on the DB side for the last 8 years or so, when I wrote all the DB work in direct SQLite functions and such. Sadly, I need to finally update the database schema which will be a MAJOR rehaul, and so I started looking into Room - though the Room guides seem to assume some things about how the app will be using the DB that my app doesn't follow.

    Willing to donate or something to make your time worth it, too. Not expecting anything for free. :D

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

    How to get started with mobile app development for Android?

    Posted: 27 Dec 2021 11:19 AM PST

    I am looking for book recommendations or free online classes (perhaps you have direct experience and feedback on the Coursera or other MOOC ones).

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

    Rumors about Samsung switch to Fuchsia OS

    Posted: 27 Dec 2021 07:12 AM PST

    There are rumors that Samsung are planning to leave Android behind and switching to Fuchsia OS in the coming years. How will this affect us as Android devs? Will we need to create new apps from scratch or old Android apps will be compatible with their new OS?

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

    Custom back navigation with Navigation component

    Posted: 26 Dec 2021 12:26 PM PST

    Hello! I've just published this article that I wrote after a week of being stuck with a custom back navigation with Navigation component.

    Hope you find it useful.

    submitted by /u/3rikmedina
    [link] [comments]

    No comments:

    Post a Comment