• Breaking News

    Friday, December 31, 2021

    Android Dev - TDD in Android - where and how?

    Android Dev - TDD in Android - where and how?


    TDD in Android - where and how?

    Posted: 30 Dec 2021 07:32 PM PST

    With so much churn in the Android world lately, I've found it hard to find good guidance on how to use TDD to build a modern Android app, but I'm kind of groping my way to an optimal strategy.

    Using Compose and an MVI pattern, I've found most value in testing the whole stack as a unit from the Viewmodel layer downwards, but stubbing out network and DB components to avoid dependence on Android context, and because they're easy to stub.

    The UI itself is best tested by looking at the damn thing, and not using clunky automated UI tests to verify mostly trivial to non-existent logic - the VM layer is the one closest to the UX where we can truly test input/ouput in a reasonably pure way. Given state X, when intent Y, assert state Z.

    Some components that have more complex logic may need their own suite of tests, depending on what the app is.

    I'd be interested to hear how other people approach this,

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

    How to check is focus in view group?

    Posted: 31 Dec 2021 03:19 AM PST

    Hello i need to listen childs focus changes so please how we can do this in kotlin?

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

    I have a problem

    Posted: 31 Dec 2021 03:02 AM PST

    Hey peeps I know that my samsung m30s mic is busted or the flex cable is damaged that connects mic to the motherboard. I Just want to know is there any way to set the secondary microphone as the primary one with any software . It is my secondary phone and I am willing to root if possible. Thanxx in advance

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

    How to measure fps in an Android device ?

    Posted: 30 Dec 2021 09:23 PM PST

    Hello,

    I'm developing an Android app. It uses accessibility service and does several background processes.

    My app causes frame drops in some devices.

    How can I measure the fps so that I can compare the values after optimising ?

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

    Using Firebase Analytics and Huawei Analytics in Android Project.

    Posted: 30 Dec 2021 06:39 PM PST

    If your Android Project already implemented Firebase Analytics and want to expand to Huawei Market, you need to implement Huawei's Analytics Kit.

    If you unsure how to implement two analytics tools in your projects, here is my blog on how to do it.

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

    Android TV device technical help

    Posted: 31 Dec 2021 12:15 AM PST

    Disclaimer: Please feel free to point me in the right direction if the question isn't appropriate here.

    Hi. I have an old DirecTV device that runs Android. It seems like it hits an URL which no longer has a response and now it just stalls on a blue screen trying to load content. I have another DirecTV device (same model, specs etc) and that runs perfectly after having updated to the latest version of Android/firmware.

    Does anyone have experience cloning the image from the working device to a non working device?

    PS: I am an Android dev so I am totally comfortable with the dev tools.

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

    How do you decide the backend for your personal project ? Do you go with firebase or AWS or something else ?

    Posted: 30 Dec 2021 09:09 AM PST

    How should one learn the skills

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

    Is it possible to (fully) install an apk without it appearing in the app drawer

    Posted: 30 Dec 2021 11:52 PM PST

    I've been trying to figure out how to fully install an apk without it appearing in the main screen, I've tried things like editing the android.intent.category in the manifest. Which works, but the reason I mention "fully install", is that during the installation you are not prompted with the app permissions or even the option to open the app. So are there any ways of getting an apk to still prompt for permissions and launch without it appearing in the Home Screen.

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

    Android Emulator shows a black screen on M1 chip

    Posted: 30 Dec 2021 06:25 AM PST

    Android Emulator shows a black screen on M1 chip

    Would you mind telling me why Android Emulator suddenly stopped working and stuck on a black screen?

    The Emulator

    I tried both 32 and 31 versions but not working

    I tried to change "Graphics" to Software but it's not working too

    My machine

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

    I have a very small question for you

    Posted: 30 Dec 2021 10:38 PM PST

    May you please suggest me a custom rom which has something similar to Ultra battery saver mode of miui, I'm a student I just need 1 application in my device but my battery dies in 4-5 hrs of lecture streaming

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

    Sharing experience with Play store release stages

    Posted: 30 Dec 2021 02:07 PM PST

    While developing of our new game Idle Paradise I wanted to try out the different release stages of the play store release process. The documentation on the different stages leaves many questions unanswered, so I wanted to share some things I've noticed. The publishing process of free games might be different to other app types though, so I added our use case to each stage.

    Internal App Share:
    Our use case: Quickly sharing new versions within the team.
    Experience: A great tool but google didn't let us use it until we reached open testing.

    Internal Testing:
    Our use case: Share new versions within the dev team (if Internal App Share is not yet available)
    Experience: Quickly sharing a new version and updating it the next day is not possible as you never know how long it takes Google to update the versions on devices. We experienced delays of up to 3 days which is really annoying.

    Closed Testing:
    Our use case: Share within the wider team and close friends
    Experience: Quickly sharing a new version and updating it the next day is not possible as you never know how long it takes Google to update the versions on devices. I didn't notice it taking longer than in the internal testing stage.

    Open Testing:
    Our use case: share with a broader audience and get some external users
    Experience: As the early access section in the play store was removed we're not getting any explore traffic. Search traffic works though. Reviews are not shown publically.

    Hopefully, these observations help you release your app!

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

    Google Chrome's broken graphics on Android 12 emulator

    Posted: 30 Dec 2021 07:23 AM PST

    https://i.imgur.com/EWVxb5Q.png

    https://i.imgur.com/dc52nQk.png

    Open Google Chrome in Android 12 (Google Play, all SDK/apps updated), navigate to Google Image search, search for anything, and then try to scroll the image search result page. The graphics is broken and jumping in random way like the first screenshot above. Not just Google Chrome's window itself, after running Google Chrome, I feel that the whole Android system's graphics becomes unstable. In the second screenshot above, I pressed the task overview button, and as you see, the bottom part of the screen is broken. That screen is part of the Android OS, not of Google Chrome, right?

    I wonder if this is happening to others or just on my computer.

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

    What app should I make ?

    Posted: 30 Dec 2021 09:18 PM PST

    I am taking an introduction to app development (kotlin) session for some beginners at my university. As an intro app (besides obvious hello world ) what shall I teach them to make ? Please give me your suggestions as this would be really helpful to me and my team .

    Thank You

    submitted by /u/100thRedditAc
    [link] [comments]

    SplashScreen Compat: consistent splash screens

    Posted: 30 Dec 2021 08:04 AM PST

    Do you focus on UI/UX for the apps you are making ? If so , how did you learn ? Which software do you use ? Or do you just follow material design guidelines ?

    Posted: 30 Dec 2021 09:08 AM PST

    Material Design - Tabs and Bottom Navigation

    Posted: 30 Dec 2021 05:52 PM PST

    I don't understand why both these components are unique and co-exist.

    According to material design:

    Tabs: Tabs organize and allow navigation between groups of content that are related and at the same level of hierarchy.

    Bottom-Nav: Bottom navigation bar destinations should be of equal importance. (And top Level)

    Their functions are very similar, yet material design recommends against swiping a bottom navigation bar, and tabs are never at the bottom of the screen.

    Why?

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

    Learning Resources

    Posted: 30 Dec 2021 11:46 AM PST

    So I decided to do an android app for my senior project although I haven't properly done one before, so I'm looking around for some resources to help me get started. After glancing over courses on Udemy, I saw one that I think looks promising and I was hoping to get other people's opinion on it.

    Here is the course: https://www.udemy.com/course/the-complete-android-oreo-developer-course/

    Of course if you have any other resources that you could recommend that would be greatly appreciated - thank you!

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

    What to use for app monetisation?

    Posted: 30 Dec 2021 05:30 PM PST

    I recently uploaded my first app using AdMob to serve ads. After a couple of weeks though my ad serving got limited, so basically i'm getting absolutely no ads. I read that many people had this problem with AdMob for no real reason. Some suggest to set up mediation as well, so doing that atm. I'm curious though if there are better alternatives to AdMob in general. Do you have any recommendations?

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

    Where do wallpaper apps get their images from ?

    Posted: 30 Dec 2021 06:12 AM PST

    Unsplash api don't allow usage for wallpaper apps, neither do many others.

    How do they get their images from then ?

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

    Java android dev: How to make elements with code?

    Posted: 30 Dec 2021 01:14 PM PST

    If one uses the xml file in the android studio IDE, but Im talled about making an unknown large amount of elements (for example 100+ buttons)

    How can one do this? For example, how can I make elements for each loop in a for loop?

    Im asking because I want the amount of elements created depending on the amount of resulta from a search. With this, i cant know beforehand how many results thr user will get, and the number of results can be very big too.

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

    Reusing Bottom Sheet dialog fragment as a regular fragment - MVVM

    Posted: 30 Dec 2021 05:52 AM PST

    Hi android devs!

    I am an android engineer and I am currently trying to solve the problem of reusing a bottom sheet dialog fragment in a fragment container view. I couldn't find a way to get access to the underlying fragment from the bottom sheet dialog to be placed in the container where I am trying to reuse..
    So I am currently looking at solving it via taking the inflated view from the bottom sheet dialog fragment and using it directly.
    However in this approach I'm losing all the code that are part of the life cycle methods like onViewCreated, onCreate etc.

    Is reusing bottom sheet dialog fragment as a normal fragment even possible? Would you suggest the way I'm trying to solve it?

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

    Rule of thumb for when to use onCreateView, onViewCreated or any lifecycle?

    Posted: 29 Dec 2021 08:41 PM PST

    Hi, I'm a flutter dev, who recently just wanna study native android dev. I've been wondering when do developers realize to use which lifecycle? Is there a rule of thumb when to use which? or do you just look into the StackOverflow when implementing something? I just found myself always looking into StackOverflow all the time, which I believe to be counterproductive as I can't decide when to use which out of intuition and understanding. I am somewhat confused, and an extra question should I jump into jetpack compose or stick with XML for now?

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

    Launcher icons of free vs. paid apps (Metadata policy)

    Posted: 29 Dec 2021 11:34 PM PST

    I have an app that comes in a free tier (demo) and a paid tier. In this case the two apps are actually identical, the paid tier is a form of donating while the app is open source.

    Because there are two apps on the Play Store, I wanted to distinguish those two apps in both their store listing icon and the launcher icon. In this case I have chosen to add a little gold coin to the launcher icon and call the version VIP, but today the update has been rejected as a violation of the metadata policy.

    https://support.google.com/googleplay/android-developer/answer/9898842

    • The app title or developer name uses emoji, emoticons, or repeated special characters
    • The app title, icon or developer name contains Misleading symbol or text that will trigger invalid user action

    I am very unclear what the suggestion is to add some form of flair to the launcher icon to note that this is a version of higher value. I'm unsure what is misleading and what isn't. Can I add a heart? Can I add a badge saying "VIP"? I learned you can no longer name a free version "Free", as this is misleading, and should probably opt for "Demo".

    What do you do, when you have a free and a paid version in the store?

    The app in question is https://play.google.com/store/apps/details?id=de.saschahlusiak.freebloksvip

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

    Life of an E-commerce company Android Developer

    Posted: 30 Dec 2021 01:26 AM PST

    Hey friends, I started my journey 3 years ago as a self-taught Android Developer. Next year I will be starting my new job as an Android Developer of an E-commerce giant that has some 500k+ downloads. I am feeling extremely anxious, I know about recycler view, image loading library but their app is something else, It's similar to that like Amazon or Flipkart where image loads quickly and they've used recyclerview at many places and then there are carousel and so many images.

    I am literally pulling as they have only one Android developer in the company and I will be the second one who doesn't know much. Will any developer here please explain to me how different is an E-Commerce company's app, what things I should take care of, and what their learning has been as an Android Developer.

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

    No comments:

    Post a Comment