• Breaking News

    [Android][timeline][#f39c12]

    Tuesday, December 31, 2019

    Trying something new with RecycleView LayoutManager Android Dev

    Trying something new with RecycleView LayoutManager Android Dev


    Trying something new with RecycleView LayoutManager

    Posted: 30 Dec 2019 06:26 PM PST

    Let's discuss: Dagger vs Koin

    Posted: 31 Dec 2019 12:08 PM PST

    Hello everyone 👋

    I've been trying to dig into Koin lately and see if it's worth switching from Dagger to Koin. I've been using Dagger since almost... always. Usually, I work in large-scale apps where I have a multi-module architecture, and one of the modules is a core module, from where I expose the architectural dependencies to my other feature modules through SubComponents. By architectural dependencies, I mean UseCases/Interactors.

    I like this approach, it is comfortable. Usually, I have one developer who takes care of adding the new Interactors into the core module. For example, once we have a new API endpoint or something new that we want to add. Then I have some other developers, who own the feature modules, and they just use the Interactors and implement the UI changes.

    This approach is also useful for Unit Testing. I create the Dagger component in my Application class. I have all the third-party dependencies exposed on the Dagger modules, such as Crashlytics, Remote Config, etc. When we do Unit Testing we create a test Application class that overrides the function where I create the Dagger component and provides some mock implementations of the modules. That way, we don't have things like Crashlytics or RemoteConfig messing with the Unit Testing.

    Finally, I've worked on an App where we had to implement a "Preview Mode". When the user switched to this Preview Mode we were supposed to provide mock responses for all the API endpoints. This was really easy to implement just by looking at a flag value on the SharedPreferences and adding an Interceptor into our REST client. All this was done within the Dagger module.

    So, my question is, are all these things are doable with Koin? Is it really worth switching from Dagger to Koin?

    Please keep in mind that:

    - I have little to no knowledge about Koin, other than doing some brief research and looking at some Github repos.

    - I'm aware that there's a thin line between the two, and they aren't exactly the same. Dagger is used for dependency injection and Koin is a service locator framework. I'm not really sure what it means, I've seen some people argue that they are actually the same, some others say they are not.

    Thanks 😄

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

    View and manage the Room database in the app with Room Explorer library

    Posted: 31 Dec 2019 07:40 AM PST

    X-post: After Android 10 update, Solid Explorer can't access a directory : NeatBytes

    Posted: 31 Dec 2019 02:03 PM PST

    RxJava 3.0.0-RC7 with Java 8 baseline is released

    Posted: 31 Dec 2019 06:41 AM PST

    What are good recycler view selection libraries?

    Posted: 31 Dec 2019 12:48 PM PST

    I just posted this kind of awhile ago but the autocomplete on my phone messed up the title. I just implemented the androidx recyclerview-selection library but due to the, in my opinion, horrible documentation it took me awhile to get it down. I've seen recent YouTube videos that are outdated on the subject so maybe I'll make a video/write an article or something. Looking back, I'm sure there are libraries though to make things easier?

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

    A Full Guide to App Store Optimization (ASO)

    Posted: 31 Dec 2019 06:08 AM PST

    Have you encounter high number of android.database.sqlite.SQLiteCantOpenDatabaseException after Android room version migration?

    Posted: 31 Dec 2019 05:38 AM PST

    We are using room version 2.1.0

    Recently, we just increase database version by 1, and perform migration using the following code.

    This is my migration code - https://gist.github.com/yccheok/555f6664e0d01ca828b43b73d49e5aaf

    Basically, what I did in the code is

    • Rename column from "sort_info" to "sort_option"
    • Fill up sort_option with correct value

    The code has tested locally without issue.

    However, for some users (which seems almost all of them are using Galaxy S10), they are experiencing the following crash

    android.database.sqlite.SQLiteCantOpenDatabaseException

    The complete crash report can be found at - https://gist.github.com/yccheok/fb7e7eb6d89bf7f84d2fefffc8f05f07

    The crash happens during app startup. The only "workaround" so far, is to clear data, uninstall app and reinstall again. (Of course, this is something not acceptable by user due to data loss)

    From first sight, it seems like SQLite database file has corrupted?

    But, how does that happen? As, I try to test it locally, by throwing some Exception during migration code. The database seems fine. As, I guess the migration will run within DB transaction. In case any failure, the DB will be rolled back to old state. DB should remained readable and not corrupted.

    Has anyone encounter the similar issue? Do you have any hint for me? This problem has occurred for a week since I deploy the migration code. So far, we still not able to solve this issue.

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

    Please help! Major system errors on Note 10+ (images included)

    Posted: 31 Dec 2019 01:31 PM PST

    Image 1

    Image 2

    Please help! I received my brand new Note 10+ yesterday from www.samsung.com and from the beginning I have been experiencing constant error messages whilst using the phone like seen in the images above and it keeps rebooting on it's own. I've put the phone in recovery mode and deleted the system cache as well as performing a complete factory reset and I'm continuing to experience the same problems. I don't know what else to do!

    Edit: it isn't just Gmail and DeX that I'm having issues with, the error messages being displayed are for every single app that's on the phone.

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

    Android 10 and face unlock - Catch 22?

    Posted: 31 Dec 2019 09:04 AM PST

    TL;DR: Pixel 4 owners might be in for further disappointment with lack of adoption of face unlocking by banking apps etc

    What's changed: with Android 10, Google is pushing developers to use the new biometric API to authenticate into apps. For phones that support both fingerprint and face unlock (eg. Samsung S8/S9/S10 ranges), the user is offered the choice of which method to use to authenticate into an app.

    What's the problem? Developers who use the new biometric API can't control which method (fingerprint or face unlock) the user picks. But face unlock on these devices is not considered secure to authenticate into sensitive apps.

    So what? Developers of sensitive apps (banking etc) aren't going to allow the possibility of less secure authentication. So they will stick with the now-deprecated FingerprintManager API which restricts authentication to fingerprints only.

    And? Users of the Pixel 4 (which does have more secure face recognition than the Samsung devices) will continue to miss out.

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

    If you have an idea for mobile phones, and you need to integrate your services into SPs like Google, how would you approach?

    Posted: 31 Dec 2019 08:19 AM PST

    Hi all,

    Just a quick question. Im not a developer, ill start learning by myself in 2020. I have an idea that i think my approach to a spesific service will attract more users and maybe lure other service's customers.

    How should i go on with this?

    Should i study mock up and build an interface that could be considered as MVP and send a mail to google* about how i can attract people to blabla* service?

    Should i really develop an app and then go to them?

    Or should i do nothing but just pitch the idea to service provider?

    Thanks,

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

    Android development feeds on Telegram

    Posted: 31 Dec 2019 07:20 AM PST

    Whats the smallest screen width which covers the google Pixel 3?

    Posted: 31 Dec 2019 06:03 AM PST

    How is the progress in Kotlin Multi Platform?

    Posted: 31 Dec 2019 05:11 AM PST

    Previously I read following issues about Kotlin MP here and there.

    • Poor
      • IDE support
      • performance on iOS
    • Problematic
      • threading
      • memory model

    I see progress with coroutine support in Kotlin Native, what is the state of other issues?

    Can we use Kotlin MP for code sharing between Android and iOS at production level without any major issues?

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

    Most of my downloads are in my country

    Posted: 31 Dec 2019 03:12 AM PST

    Hi,

    I have this app with over 27k downloads . But the weird thing is that almost 85% of the download are from my country ( or neighboring counties) that speak same language ( Arabic ) . Why is this happening ? i suspected it has something to do with my English store listing.

    My App

    https://play.google.com/store/apps/details?id=com.quantyam.apps.whatssender

    What do you guys think ? is what i suspected is the reason ?

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

    a virtual android or chrome os ...

    Posted: 31 Dec 2019 12:06 AM PST

    please help list options for running a virtual android in a host as a guest OS ...

    and what are the options to do that ... say using VMWare ? chrome os ? android os?

    how to access it from from my regular android? RDC - Remote Desktop Connect to PC with VMWare ? any direct way - like VNC?

    I just want to be able to install and try all these random APK apps on some environment other then my phone ... but be able to access it from anywhere - from my laptop, my PC, my phone, my tablet ...

    thank you ...

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

    Workplace for Kotlin code in IDE

    Posted: 30 Dec 2019 07:59 PM PST

    Is it technically possible to develop a third party (not Juul’s) app that integrates with the Juul C1 Bluetooth device?

    Posted: 30 Dec 2019 06:38 PM PST

    Just curious if that's possible or if anyone's tried doing so

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

    How To Create Tic-Tac-Toe In Android Studio In Easy Steps - Android Hire

    Posted: 31 Dec 2019 01:29 AM PST

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel