• Breaking News

    [Android][timeline][#f39c12]

    Wednesday, January 29, 2020

    Jetpack Compose dev04 Android Dev

    Jetpack Compose dev04 Android Dev


    Jetpack Compose dev04

    Posted: 29 Jan 2020 12:29 PM PST

    The Jetpack Compose team is happy to announce that the Jetpack Compose dev04 drop has just been released! You can get it on Google's Maven Repository or by upgrading your version in the latest Android Studio canary.

    Compose is developed in the open, so the latest changes were always available, but we are moving to a continuous release model for binaries to make it easier to test the latest API changes.

    Release notes are linked at https://developer.android.com/jetpack/compose. Thank you for your continued feedback, and please continue logging issues at https://issuetracker.google.com/issues/new?component=612128.

    You can also join the #compose channel on the kotlinlang Slack to discuss with the team.

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

    Doing animations with Jetpack Compose

    Posted: 29 Jan 2020 08:35 AM PST

    Engineering blogs you follow

    Posted: 29 Jan 2020 06:18 AM PST

    Any engineering blogs you follow? Right now I'm following Netflix's engineering blogs on Medium.

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

    FragmentContainerView is now the recommended View to use in order to host Fragments instead of the previously common way of using FrameLayouts.

    Posted: 29 Jan 2020 01:07 AM PST

    Android Studio 3.6 Release Candidate 2 available

    Posted: 29 Jan 2020 11:34 AM PST

    Keeper - A Gradle plugin that infers Proguard/R8 keep rules for androidTest sources

    Posted: 29 Jan 2020 04:18 PM PST

    Is it possible to have Dual Monitor-like behavior using two Android devices?

    Posted: 29 Jan 2020 12:15 PM PST

    How might I go about utilizing a second Android device to extend the display of my main Android device?

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

    How to get started?

    Posted: 29 Jan 2020 03:44 PM PST

    Hello! I have had an off again on again relationship with learning to code now, and I am looking to really get into it now, hopefully for keeps. I think the best way for me to generate a continuing interest would be to start a good project. An android app!

    So, where should I go to learn how to code Java, and learn how to use Android Studio? I'd love to start building simple programs and apps within the next couple of weeks, and keep learning from there. Thank you!

    P.S. I do hope this is the correct subreddit for this kind of question. Thank you for your time!

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

    Dual-core Mac mini for development?

    Posted: 29 Jan 2020 03:34 PM PST

    Hi guys,

    I am currently learning flutter and am therefore considering an apple device to test builds on ios. Since android development in Android Studio is as demanding as Flutter, I thought I would ask the nice community here for some advice.

    I have found a used Mac mini (late 2012) for a great price.

    Problem is, the CPU is a bit dated (i5-3210M)

    Would it suffice?

    The machine has 16 gigs of RAM and 250 GB SSD (compared to 8 GB and 5400RPM HDD on my current machine lol) , so it is otherwise great.

    Hopefully I'm not breaking any rules :)

    submitted by /u/0darkvoid0
    [link] [comments]

    Why commitNow does not set fragment to null?

    Posted: 29 Jan 2020 07:49 AM PST

    I have tried to use commitNow for ensuring that fragment transcactions are synchronous. However, after my testing, I found that for some reason commitNow does not remove fragments immediately.

    I have added a Handler with postDelayed 100 milliseconds and the fragment was still not null. After that, I changed postDelayed to 1000 mmiliseconds and finally, fragment was null.

    How can I ensure that the fragment is null immediately after I call commitNow? I tried to add supportFragmentManager.popBackStack(), but no help.

    If it is impossible to make fragment null immediately, how can I check if that fragment is no longer in the stack, before adding the same fragment?

    UPDATE I found that if I removed setCustomAnimations, then transactions are indeed occurring immediately. How can I observe when setCustomAnimations have finished?

    val fragment = supportFragmentManager.findFragmentByTag(DEMO_FRAGMENT) if (fragment != null) { Log.d("test", "DEMO_FRAGMENT is not null") val fragmentTransaction = supportFragmentManager.beginTransaction() fragmentTransaction.setCustomAnimations(R.anim.custom_fade_in, R.anim.custom_fade_out) .remove(fragment).commitNow() supportFragmentManager.popBackStack(); Log.d("test", "is fragment null:${supportFragmentManager.findFragmentByTag(DEMO_FRAGMENT) == null}") Handler().postDelayed({ Log.d("test", "is fragment null:${supportFragmentManager.findFragmentByTag(DEMO_FRAGMENT) == null}") }, 1000) } } 
    submitted by /u/wellbranding
    [link] [comments]

    Is there any way to access "hidden camera"

    Posted: 29 Jan 2020 02:52 PM PST

    As I know there is no way to access the 2nd back camera on a Oneplus 6t using the camera api, but you can access it with a secret code so it is definetley possible. Is there any way to use a proprietary library or something to be able to access the camera in software.

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

    How to connect Dagger2 with ViewModel and Saved State module

    Posted: 29 Jan 2020 09:59 AM PST

    Making button slide under a webview on finished scrolling

    Posted: 29 Jan 2020 01:24 PM PST

    Hey guys,

    I'm in need of a help. I don't know how to create a specific UI.

    I'm showing WebView in my fragment. On the bottom I have a button that is over the webview and it says there the entire time the user is scrolling the webview (it's overlapping the webview). What I want to do is that when user finishes scrolling the webview( when he reaches the end of it) this same button would slide under the webview. So no longer overlapping the webview but being around 32dps under the webview.

    I been trying to do it for the last 8 hours but I just cant figure out how I could do it

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

    Application data security in Android

    Posted: 29 Jan 2020 01:13 PM PST

    I want to learn how to have secure data in an application using the best practice used today. I have been looking on the internet for a few days but have not found any good resources on topic free or paid courses as well. Looking for the suggestion.

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

    Livedata ? Coroutines ? Full RxJava ? What is the best suited ?

    Posted: 29 Jan 2020 09:26 AM PST

    Hello, I'm a junior developer trying to build a small app using up to date best practices and architecture. I'm running into issues that I don't know how to handle and feel a bit lost about it, especially since all the examples I find seems strongly opinionated.

    My current architecture is the following

    I have 3 parts: View, ViewModel & Services.

    I use LiveData in my ViewModels to expose data to the view. ViewModels directly calls service's methods, using simple coroutines if they need to run on a background thread (I just use GlobalScope.launch() for now, I don't use scopes yet, nor channels, flows, ...)

    My current problems and possible improvements

    My ViewModels seems to have too much responsibilities and that cause me troubles (especially with Firebase, which can trigger a model update at any time), so I would like to add a Repository layer as it seems to be the right thing to do.

    I'm not sure how to do it. Should the Repository methods return raw data ? Should they expose LiveData like the ViewModel ? Should they expose "coroutine's streams" and handle lifecycle manually ? RxJava on another hand, seems to do it better, especially for error handling. Do you have good examples of code ?

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

    Is it possible to have a lottie animation in the menu?

    Posted: 29 Jan 2020 01:05 PM PST

    I have a screen that has two modes, read and delete. Clicking the trashcan in the menu will put the user in 'delete' mode.

    I would like the trashcan lid to open when in delete mode and close when exiting/deleting items (I have a lottie JSON file for this already).

    Is this possible?

    I've searched around and found this stackoverflow question, but can't seem to get it to work. Any ideas?

    private val lottieDrawable = LottieDrawable() override fun onCreateOptionsMenu(menu: Menu): Boolean { super.onCreateOptionsMenu(menu) val delete = menu.findItem(R.id.delete) val task = LottieCompositionFactory.fromRawRes(this, R.raw.opening_trash_can) task.addListener { lottieDrawable.composition = it lottieDrawable.repeatCount = 0 lottieDrawable.speed = 3f delete.icon = lottieDrawable } return true } 

    This does not work, and does not show an icon, although the menu item is still clickable.

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

    Google Play developer console stats delay

    Posted: 29 Jan 2020 12:48 PM PST

    Does anyone know what the delay time is on the KPIs shown on the developer console's dashboard? It's saying no data available over the last 7 days for my game yet I know it has gotten a couple downloads.

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

    Learning proper ("popular/mainstream") look of aps

    Posted: 29 Jan 2020 08:49 AM PST

    Hey, I have tried to create app to keep information about products in my fridge (like quantity, exp date, is it open or not) then I wanted make next element of app with dishes (recipes) and show user dishes that he can create with his products or make shopping list with missing products.

    I have suspended the project because I have seen how little I know about elements which I can use in my app and how bad it looks

    Just look at this screen, its terrifying. (text on screen is in polish)

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

    I know about https://material.io/design/ . Is there something more which could help me?

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

    x86 secretly deprecated by Google?

    Posted: 29 Jan 2020 07:31 AM PST

    I have an Asus Zenfone with Intel CPU and notice that more and more apks lack the right native libraries it requires.

    It started with a banking app on a version change, but more apps followed soon. There was always only a minor version bump, no major release, no complete overhaul. Everything except armeabi-v7 and arm-64 gone in a sudden.

    Was there some accouncement i have missed?

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

    A really good MVVM sample (imo)

    Posted: 29 Jan 2020 10:38 AM PST

    Recyclerview multiple viewtypes with Room, Livedata, Paging

    Posted: 29 Jan 2020 01:52 AM PST

    Anyone using Room along with Livedata, Paging (Jetpack)? Have a query. Use case: Think like Facebook news feed. It has story bar (horizontal recyclerview) at top. Then posts. In between posts, sometimes they display the story bar again! My app will have somewhat similar scenario. How to implement it using recyclerview, room, paging? Previously, while using dummy data, I created recyclerview with recyclerview.adapter, the adapter will handle a generic feed item type class. Then both posts and storybar will extend feeditem. While passing the list of posts to the recyclerview, I'd add those storybars in appropriate position. In the recyclerview adapter, onbindviewholder, I'll check their types, and populate them accordingly. It was working fine as long as I didn't try to implement database (room). When using room and paging, recyclerview adapter must be PageListAdapter. How to inject those storybars in the adapter items? Please note that if possible, I don't want to store storybar as say dummy post (with all actual post fields empty) in the database. If this is the only solution you think, please mention that also. Don't know if I clarified properly. If anyone is interested, and wants further clarification, please say so.

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

    Is there anyone that could help me with Retrofit with MVVM ?

    Posted: 29 Jan 2020 08:20 AM PST

    here is my question :

    https://stackoverflow.com/questions/59970882/android-mvvm-with-retrofit-and-livedata-issues

    im new to mvvm so any advice, hint or corrections would be really appreciated <3 <3

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel