• Breaking News

    Tuesday, August 18, 2020

    Android Dev - New language features and more in Kotlin 1.4

    Android Dev - New language features and more in Kotlin 1.4


    New language features and more in Kotlin 1.4

    Posted: 18 Aug 2020 02:13 AM PDT

    Do you use Jake Wharton's `diffuse`? I wrote homebrew tap for your convenience.

    Posted: 18 Aug 2020 07:39 AM PDT

    If you use diffuse from u/JakeWharton, you have to build the tool on your own. If you want to access it later from anywhere, you have to add a generated binary to the PATH.

    I've created a homebrew tap that will do this for you. Just run:

    brew install wzieba/diffuse/diffuse

    and diffuse should be usable right away.

    Source code: https://github.com/wzieba/homebrew-diffuse

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

    Kotlin 1.4 released

    Posted: 17 Aug 2020 10:46 AM PDT

    About MVI

    Posted: 18 Aug 2020 01:49 AM PDT

    I've been following MVI courses. I'm already very familiar with MVVM, but there is a one thing I can't wrap my head around.
    Most of MVI implementations follows a princible that you put every UI related data into ViewState and observe it in the fragment. When you want to trigger an event, you changed the StateEvent value on viewmodel. When StateEvent's value is changed, you trigger the actual logic.
    But why is there a single LiveData? What if I have 3 seperate things to show in Fragment? In MVVM I would have 3 seperate LiveData. But with MVI, I have only one. If one of the three data is changed, three of them observed again. Why is that?

    For example: I have UI that has:
    1. User Info
    2. Message List
    3. Any other reactive value

    If there is a slight change in the 3rd value, User Info will be binded again and Message list will be submited again. I know it's not changing so it's not a big of a deal. But if there is no change why do we even bind them again? Why do we encapsulate when we can seperate things?

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

    Completely lost, hoping someone can help: Importing Kapt results in cannot find symbol

    Posted: 18 Aug 2020 08:43 AM PDT

    Hello! Im really at my wits end, and hoping someone can help, because Ive spent hours now without being able to fix it.

    I get the following error: C:\Users\Bobsbooks\app\build\tmp\kapt3\stubs\debug\com\example\bobsbooks\fragments\books\BooksFragmentAdapter.java:6: error: cannot find symbol

    public final class BooksFragmentAdapter extends BookAdapter<com.example.bobsbooks.models.Book> {

     ^ 

    symbol: class BookAdapterC:\Users\Bobsbooks\app\build\tmp\kapt3\stubs\debug\com\example\bobsbooks\fragments\search\SearchFragmentAdapter.java:6: error: cannot find symbol

    Link to relevant code: https://codeshare.io/ad140g

    The supposed problem is within this part of my code, in both extended classes:

    bookList: MutableList<Book> = mutableListOf()): BookAdapter<Book>(bookList) &

    val touchActionDelegate: SearchListFragment.TouchActionDelegate): BookAdapter<Book>(bookList)

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

    How long will I wait for a response to my appeal to suspend my application ?

    Posted: 18 Aug 2020 05:20 AM PDT

    I've been waiting 20 days for reply from Google Play support. Does anyone know how much it will take ?

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

    Admob: Already got 10+ 1 star reviews because interstitial ads doesn't contain X or close buttons.

    Posted: 18 Aug 2020 07:15 AM PDT

    Update: I've managed to replicate on Samsung S7 landscape: https://i.imgur.com/jHTPKtP.jpg

    It looks like the "X" button isn't there, because after the video ends in the top of the screen (I think) there is a "close" large UI button (half visible).

    Original:

    As the title says I already got more than 10 1 star reviews because users are complaining that they can't close the interstitial ads and they must force close the app and reopen it.

    I tried to reproduce, but I always got the "X" button in the top of the screen (some of the ads are with countdown) or the "close" (larger) button on the UI.

    I think the back button would close the interstitial ads, but my app is in full screen mode (immersive), the virtual buttons aren't visible only if you swipe up to show the bottom buttons, but I think some of my users doesn't know about this and they think that they are somehow stuck in the ads and can't exit.

    What should I do? Should I disable ads? Should I leave only "video" ads or "text/image" ads? I have remote control in my app so I can disable the ads completely, but this will result in an ad revenue penalty.

    Note: I haven't changed anything in the app for months, so this is clearly Admob's fault.

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

    Cannot access 'java.io.Serializable' error in multi-module Android app

    Posted: 18 Aug 2020 07:07 AM PDT

    I have different modules in my android application. and I get this error when I'm using math operators like plus or range operator (and maybe with other things! I don't know yet ):

    Cannot access 'java.io.Serializable' which is a supertype of 'kotlin.Int'. Check your module classpath for missing or conflicting dependencies 

    the error occurs only in non-android modules, in android modules, everything works just fine

    this is the Gradle file for my module

    apply plugin: 'kotlin' dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" testImplementation 'junit:junit:4.13' implementation "io.reactivex.rxjava2:rxjava:2.2.13" implementation "io.reactivex.rxjava2:rxkotlin:2.4.0" } 

    please help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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

    How do apps made in dart work?

    Posted: 18 Aug 2020 06:46 AM PDT

    This may sound stupid but I am posting it anyway. How do apps made in dart work? When I write a web app in python I need a python interpreter installed on my web server. I am not very sure how flutter works? Do you install something like an interpreter when you download apps written in dart? Edit: why did someone have to downvote it. Come on I am trying to learn.

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

    How to connect android app to a remote linux server?

    Posted: 18 Aug 2020 02:36 AM PDT

    Hello, I want to know, how could I make an app with Java which connects to a linux server(like aws ec2 instance or a server installed in my PC) which can give commands to the server(like SSH) upload a file, process it again download it, etc.

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

    Developers communities on Facebook or LinkedIn

    Posted: 18 Aug 2020 06:01 AM PDT

    Hi! Do you know any groups of developers on Facebook or LinkedIn, where participants are actively sharing opportunities and thoughts with each other?

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

    Is Material Design dying?

    Posted: 17 Aug 2020 06:36 PM PDT

    Looking around at UI design websites and those design videos you see on YouTube it seems this "flat-rounded" design is all the rage right now. **** Edit Examples of what I mean: https://imgur.com/a/vr1FyEX

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

    Let an app power on the device like Alarms does

    Posted: 18 Aug 2020 04:30 AM PDT

    Hi Android Devs, I was wondering if there is a way to make an app that powers the device on/off.

    It should work like alarms, where you set one. And if you want to power off the phone there is a checkbox if you want, that the alarm is active while the phone is off. When the time comes it powers on and the alarm starts ringing shortly after.

    Sorry when this is complicated written, english is not my first language

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

    Using Hilt in production.

    Posted: 18 Aug 2020 04:22 AM PDT

    I'm trying to introduce dependency injection in my app. I am planning to use dagger 2, but with Hilt coming soon, how should I go with it?

    Also, docs suggest using hilt instead, I believe it's still in alpha. Would it be a good idea to use hilt in production?

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

    Sample OKHttp Authorizer that handles multiple OAuth2 requests at the same time?

    Posted: 18 Aug 2020 03:33 AM PDT

    Been searching for a while for a complete sample project in which outdated 401 tokens are handled by OKHttp's Retrofit authenticator. Difficulty: Must have one of those token stores that can cleverly handle more than one request at a time while only refreshing token once.

    There are some excellent basic Oauth2 examples out there like https://www.lordcodes.com/articles/authorization-of-web-requests-for-okhttp-and-retrofit. But am looking for a repo in which I could study not just the rewriting of requests but a sample token authenticator that is friendly to multiple requests.

    If there is no such sample, I would be interested in creating one myself so that others do not go through the same confusion I did.

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

    Phonemoji: international phone number input field with emoji flags ��

    Posted: 17 Aug 2020 09:43 AM PDT

    Had to deal with phone numbers for the first time at work and thought what I had could take shape as a nice small lib.

    https://github.com/tfcporciuncula/phonemoji

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

    Are there any one-click ASO checker tools like there are for SEO?

    Posted: 18 Aug 2020 02:45 AM PDT

    Google "SEO checker" and you'll find numerous free tools where you enter a website and it tells you all the things that are wrong with your SEO.

    Is there anything like this for ASO?

    I google "aso checker" and all I find are services that want my credit card. I don't see why this should be so complicated, it's maybe one API call and a set of rules like your app name, description should have keywords, you should have more than 2 screenshots, you shouldn't leave your app without any updates for years etc.

    Just simple automated checks. Is there anything like this? If not, I might just build it myself as a weekend project.

    submitted by /u/ulterior-motives
    [link] [comments]

    Sceneform or Filament for displaying a 3D objects and some object animations (Threejs like stuff)

    Posted: 18 Aug 2020 02:09 AM PDT

    Doing my first steps in 3D world on native Android and finding it difficult to find any solid info about the "right way" on one hand I read stuff about "Sceneform" being opened soured and almost immediately abandoned (or is it?) on the other hand not enough info about practical usage for Filament other the super detailed, academic level docs. (That don't really showcase how to use it - API, examples etc)

    Left a bit confused on how to approach this and what tech to use.

    PS: This post got me even more lost, because I've started implementing Sceneform with a SceneView. Now Im not sure if I should build on this at all..

    PS2: my goal is to show a 3d object in the view that the user cant rotate, zoom etc and animate some smaller objects around it (something that is achievable fairly easily with Treejs).

    In the future maybe throw the whole thing in to ARCore so user view this object projected on a table or floor..

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

    Copper: A content provider wrapper for reactive queries

    Posted: 17 Aug 2020 09:35 AM PDT

    New language features and more in Kotlin 1.4

    Posted: 17 Aug 2020 11:15 AM PDT

    Toaster: A simple library to make custom toast messages.

    Posted: 17 Aug 2020 03:41 PM PDT

    I have created a library to make custom toast messages. It is easy to use and light library.

    It has multiple templates for common use cases like error and warning.

    This is my very first library, hope you find it useful and feedbacks are appreciated.

    Link: https://github.com/5AbhishekSaxena/Toaster-Android

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

    No comments:

    Post a Comment