• Breaking News

    Saturday, May 2, 2020

    Android Dev - App Feedback Thread - May 02, 2020

    Android Dev - App Feedback Thread - May 02, 2020


    App Feedback Thread - May 02, 2020

    Posted: 02 May 2020 05:28 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 top level comment
    • must make effort to respond to questions and feedback from commenters
    • 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.

    - Da Mods

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

    "It's a virus I hope you burn in hell!" is a valid Google Play Store review

    Posted: 02 May 2020 06:48 AM PDT

    A reminder that Single Activity App Architecture has been the official Google recommendation since 2 years ago (May 9, 2018)

    Posted: 01 May 2020 10:18 PM PDT

    Play console just stopped counting downloads yesterday at 11 PM, ok I guess?

    Posted: 02 May 2020 01:46 AM PDT

    With the Android Development world moving so fast, how do you cope up with fear of getting left behind? Are you always catching up on new libs/frameworks, feeling burned out and wondering you don't know enough?

    Posted: 02 May 2020 12:54 AM PDT

    Google play console stats acting weird.

    Posted: 02 May 2020 05:41 AM PDT

    Today all installs are touched zero. I guess something is wrong with stats or counting. Anyone having same issue?

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

    How to reduce LiveData observers code in Fragments?

    Posted: 02 May 2020 07:12 AM PDT

    Hello, I am refactoring our android code and can't deal with the following issue. Some of our fragments contain too much code ( ~1000 lines of code), partially because of our business requirements and partially due to my incompetence... Basically our business requirements are the following.

    1. We can dynamically update our boolean flags from the backend.
    2. Our fragment should handle additional UI depending on boolean flags from the backend.

    I am following ViewModel + LiveData style to handle our UI logic. Basically some of our Fragments observe 5-7 different LiveData observables from our VM. Each of LiveData observers produce 20-100 lines of codes. They handle colors changing, the appearance of different dialogs, snack bars, or bottom sheets and etc.

    Right now I would like to reduce code in Fragments, but I am not sure how should I approach this problem.

    One solution which immediately comes to my mind is to use inheritance. For instance our fragment would extend FragmentFeature2->FragmentFeature3->FragmentFeature4->FragmentFeature5. All of them would observe particular LiveData inside of onViewCreated.

    Still, I think that inheritance seems like a hacky solution and will cause more issues in the future. Ideally, I would like to have the following scenario:

    Our fragment would create a different class per feature, which would act as a manager for particular LiveData. Problem is that you can't observe LiveData in a class, which doesn't have view-lifecycle owner. Perhaps I am missing something and someone can correct me :)

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

    Best way to avoid 1-star reviews on Google Play (due to known issues)

    Posted: 02 May 2020 07:11 AM PDT

    I have an alarm clock app for Android, rating is mostly positive - around 4.5, but I do get the occasional 1-star due to the alarm not triggering.

    Obviously, for most users the app works as expected, but then for a small percentage it doesn't - and i don't necessarily understand why.

    It could be the alarm broadcast not being triggered, or the service being killed due to some battery-saving feature, or just the MediaPlayer failing to play the file.

    I obviously have some safe-handling around these, but some users still experience.

    I am no longer trying to "chase" Android's alarm api shenanigans, but i am trying to minimise the damage.

    Other than a popup that says "please setup a backup alarm for the first few days" or something like that, what else could I do? Any suggestions are appreciated.

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

    How should I merge multiple Async UseCases into a single one?

    Posted: 02 May 2020 12:51 AM PDT

    Hello, I am refactoring parts of our code and feel unsure about my reasoning for a specific problem. Our business requirements are the following:

    • We have to call 4 network requests separately from different views.
    • We have to wait for 4 network requests to finish and start a new network request.

    Previously all that was handled in a single class, which was shared among 4 different views. However, I am unsure if my reasoning was correct. I did it in the following way:

    1. I would initialize 4 replay subjects for each network request to track when network requests will be finished. (I know I could use RxRelay for this kind of logic, but it is not currently an issue to me)

    fun init(){ firstTrigger : ReplaySubject<Boolean> = ReplaySubject.create() secondTrigger : ReplaySubject<Boolean> = ReplaySubject.create() thirdTrigger : ReplaySubject<Boolean> = ReplaySubject.create() forthTrigger : ReplaySubject<Boolean> = ReplaySubject.create() } 

    1. Here is an example code of a one from 4 network requests. I trigger the subject after success.

    fun networkRequestNrOne() { firstObservable = apiService.networkRequestNrOne() compositeDisposable.add(firstObservable .retryWhenError(5, 1) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe({ success -> first.onNext(true) }, { throwable -> handleError(throwable) }) ) } 

    1. Then I have a method, which is called in init of this class. It uses zip operator from RxJava to combine all network requests

      fun observeWhenToFire(): Observable<Boolean> { return Observable.zip(firstTrigger, secondTrigger, thirdTrigger, forthTrigger, Function4<Boolean, Boolean, Boolean, Boolean, Boolean> { first, second, third, forth -> //handle checking if all are true for example. }) }

    Now I would like to refactor it and create 4 different UseCases for such cases and a new one UseCase, which would include all 4 UseCases and return a merged response.

    However, I would still need to use Rx Subjects to handle such a scenario. Every UseCase would take a subject tied to that UseCase as a parameter, while UseCase, which zips all other UseCases, would include 4*1 subjects.

    Is there any better way? I even thought about using regular callbacks and it might be even more readable code. I do use coroutines as well, however this time I don't want to refactor this logic to coroutines, because of our custom retryWhenError extension, which is quite unique :)

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

    Android dev working as freelancer, what are my prospects?

    Posted: 02 May 2020 06:43 AM PDT

    I'm 30 now, working as freelancer with steady clients for over 5 years. But at the moment I am wondering what kinda of career I can possibly have. When you work at a company, you can try to go up the ladder and eventually you will be put in management. But working from home is a different thing. Do I have to eventually go to work to a company? I know I could create my own products, but I would say its much harder to be successful than to become a manager or move on to other things like sales and still be able to provide to my family. I'm wondering who else out there is in similar situation and what steps they took as they got older and had more experience. Apologies if I'm not being clear.

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

    Should we use Navigation Component?

    Posted: 02 May 2020 05:04 AM PDT

    Hi, I just wanted to have your opinion on Navigation Component.

    I read some Medium explaining how great it is and some other explaining how some companies that implemented it went back to traditional navigation with activities.

    So I am curious to know your opinion about it, do you recommend it?

    Thanks everyone!

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

    SocialDistance - BLE Contact Tracing

    Posted: 01 May 2020 08:57 PM PDT

    Two weeks before google and apple announced that they were working on a contact tracing app using Bluetooth Low Energy, I was working on the same.

    My app was denied to the play store the day after it was announced by them. I decided to make it open source.

    https://github.com/rufolangus/SocialDistance

    I have not had time to refactor. It uses firebase as a database and google AdMob, I removed all the keys so it probably will not build. If it gets traction I will do proper refactoring.

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

    Why most android tutorials use variables starting with lower case m?

    Posted: 01 May 2020 11:41 PM PDT

    Most of the android examples and tutorials I see online use variables that begin with a lower case 'm'. For example, if it's a string imagePath, people write it as mImagePath.

    Why is it like a convention that most people follow?

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

    Please reccomend me an emulator device/setup

    Posted: 02 May 2020 03:20 AM PDT

    Hello,

    I want to be able to run apps from the app store in an emulator (easy enough) and then monitor their network traffic.

    With what I've tried so far the traffic gets obfuscated and I only see gibberish in my Charles proxy, is there a virtual device, specific version or set up I can use so that I would be able to monitor traffic?

    Thanks

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

    Can I use python on my app?

    Posted: 01 May 2020 10:34 PM PDT

    Here's the thing, I considero myself a decent python coder and a beginer in kotlin, I have the app idea, I know how I want it to work but I want to use more what i already know to get an MVP faster.

    Is There a way to write some python 3 modules with the functionality i need and compile it with the rest of the app?

    submitted by /u/13Burn
    [link] [comments]

    ��Firebase-ing with Kotlin Coroutines + Flow��

    Posted: 01 May 2020 10:20 PM PDT

    why��, pleas help me I'm noob

    Posted: 02 May 2020 06:55 AM PDT

    Buying a new Android Phone for Testing

    Posted: 01 May 2020 08:39 PM PDT

    Hello guys,

    I am buying a new Android phone to use it in testing, so I want to hear your opinions about these 3 companies overall not for a specific model in terms of connecting it to Android Studio and if there is any problems you faced with this company.

    I know that it varies a lot depending on the model but I am trying to get an estimation here.

    And if you have any specific model in mind such as Galaxy A30 or something it would be great too.

    Thanks a lot

    View Poll

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

    Looking to add mechanical switch functionality to an app. What are my options?

    Posted: 01 May 2020 11:03 PM PDT

    I want to use something like a toggle switch to be able to send inputs to my app via USB C. Is this an option?

    My initial idea was to wire up something akin to a one key keyboard with a cherry mx switch and use that as a USB C keyboard which I think would work but I'd prefer a toggle switch that has a clear on/off position.

    What do you guys think?

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

    Any suggestions on my Facebook audience network performance?

    Posted: 01 May 2020 10:11 PM PDT

    Any suggestions on my Facebook audience network performance?

    Hi Guys,

    I used to use Admob for my android app but Admob banned me and I switched to Facebook audience network. I have been using FAN for about 2 months and I have been experiencing low fill rate and low CTR and drop on 50% on my revenue(as compared to Admob). Here is my screenshot of FAN performance for an extended period of time. Is there any suggestion for increasing my monetization performance? I have set accepting any price and no mediation used.

    https://preview.redd.it/glj10q8vwbw41.png?width=2416&format=png&auto=webp&s=d0ce74d661b5f7f7ae8d06e745c32fe35cd01d3a

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

    No comments:

    Post a Comment