• Breaking News

    [Android][timeline][#f39c12]

    Friday, February 23, 2018

    Weekly "anything goes" thread! Android Dev

    Weekly "anything goes" thread! Android Dev


    Weekly "anything goes" thread!

    Posted: 23 Feb 2018 04:41 AM PST

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

    Remember that while you can talk about any topic, being a jerk is still not allowed.

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

    Introducing Flutter (Google Developers)

    Posted: 23 Feb 2018 07:28 AM PST

    Android Studio 3.2 Canary 4 is now available

    Posted: 23 Feb 2018 12:32 PM PST

    Android Studio 3.1 Beta 4 is now available

    Posted: 23 Feb 2018 12:32 PM PST

    Announcing ARCore 1.0 and new updates to Google Lens

    Posted: 23 Feb 2018 09:43 AM PST

    Should I be worried about Flutter?

    Posted: 23 Feb 2018 10:31 AM PST

    Like many folks on this subreddit, I have been developing native Android apps for a while now. I've been working with Kotlin before it was officially approved by Google as well, Kotlin is great! However, with the introduction of flutter, I can although understand why a business would choose flutter over hiring native devs, as an Android dev, it worries me that Google will push for flutter apps especially in Fuchsia. Should I be worried that I'm trying to master a skill that google will later replace with this new platform?

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

    I'm interested in how Android recovers Apps with multiple Activities that are destroyed by the OS in the background, then accessed via the recent Apps list. Where can I find out more, and how can I test this?

    Posted: 23 Feb 2018 08:42 AM PST

    The scenario is something like this:

    An App has multiple Activities, and the user has navigated away from the launching activity.

    A different app is launched, and so the original app goes into the background.

    Eventually it is killed by the OS to recover resources.

    Via the recent apps list, it is brought back to the foreground.

    How does this all work? For example, some questions:

    Which activity in my app will be in the foreground?

    What is the state of the backstack?

    What are the best ways to handle this?

    Is killing an App via Android Studio's Monitor the same?

    How about via "am kill" or "am force-stop", is that the same?

    I haven't been able to find much information, and what I do find I'm not convinced is correct.

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

    Property Order in Kotlin - Why It Matters

    Posted: 23 Feb 2018 08:59 AM PST

    Domain Driven Design for Android Developers – Hacker Noon

    Posted: 23 Feb 2018 12:16 PM PST

    Just published my first open source library -utility to handle basic Directions API response.

    Posted: 23 Feb 2018 02:24 PM PST

    Codelabs: Architecture Components Tutorial (Room/Livedata + RecyclerView)

    Posted: 22 Feb 2018 10:46 PM PST

    UI Testing taking way too long

    Posted: 23 Feb 2018 09:53 AM PST

    So I've been doing testing locally on my machine, and recently moved onto automating my test suite on CI using CircleCI + Firebase Test Lab. The problem now is the UI portion of the tests (on espresso) take way too long to run - on my machine it used to take about 15-20 minutes, but on firebase test lab it takes upwards of 40-70 minutes. Naturally I want to optimize this. Some of the code I inherited included performing the entire 'sign in from cold, enter some data, check if data is visible' cycle, which included sign in many times and is a waste of test time (I'm looking to change that).

    How is everyone doing their UI testing? Should I skip (and mock) the objects required after sign in? See if I can offload some tests into roboelectric or something? What are you guy's techniques to optimize and speed up your ui tests?

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

    I've open-sourced a sample Android app that uses the clean architecture approach and is written in Kotlin.

    Posted: 23 Feb 2018 01:25 PM PST

    Hi everyone, As the title suggested I've open-sourced a simple Android app that I've been working on in my spare time.

    During the work on this app, my goal was to leave my comfort zone as much as I could, intentionally tackling subjects I'm less familiar with or, at times, entirely new to me.

    Maybe some of you will find it helpful. Of course, comments, insights, questions are welcome.

    Link to the project on Github

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

    How much of a factor is marketing for the success of app?

    Posted: 23 Feb 2018 08:41 AM PST

    In play store, there r many not so gud apps ( bad UI, not reliable) with 1 million+ downloads...And at the same time there r many gud apps tht struggle to make 5k downloads...how cud the former hv gotten so many downloads...Is it purely marketing tht makes the difference??

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

    How do I start a new activity from the default LoginActivity?

    Posted: 23 Feb 2018 03:13 PM PST

    Hi,

    New to programming, newer to Java/Android dev. I am trying to figure out how to enter a new activity once the login process is finished. Specifically, the default Login Activity I believe enters the OnDestroy state when it hits this finish() code on successful login:

     @Override protected void onPostExecute(final Boolean success) { mAuthTask = null; showProgress(false); if (success) { finish(); } else { mPasswordView.setError(getString(R.string.error_incorrect_password)); mPasswordView.requestFocus(); } 

    I had two thoughts, one being that somewhere in the "if (success)" I should have a startActivity(this, MainActivity.class) and the other is that if it's going to a destroy state I should be able to add the startActivity to that section so it looks like this:

     @Override protected void onDestroy() { super.onDestroy(); Intent intent = new Intent(this, MainActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); startActivity(intent); 

    This was the first time I didn't have bad syntax errors but the app still immediately closes upon hitting the OnDestroy if that's what it is in fact doing. Can anyone provide advice?

    Thank you,

    EDIT: It seems that I just needed to build the project again. However, the app completely closes then launches in to the MainActivity. I don't want it to close so how do I avoid the onDestroy state after login? I'd like to proceed directly from "if (success)" to launching the activity but startActivity(this, MainActivity.class); returns a "activity cannot be applied to the class".

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

    Android Studio radically different? Can't find my source code, only way I've been able to access it is through the app-release.apk and app-debug.apk.

    Posted: 23 Feb 2018 03:13 PM PST

    [PowerMenu] A library that let you implement popup menus and dialogs so easily.

    Posted: 22 Feb 2018 10:24 PM PST

    Android Dialogs : Flying Solo with Android Development

    Posted: 23 Feb 2018 02:13 PM PST

    Prefekt – Introduction

    Posted: 23 Feb 2018 03:17 AM PST

    Is DataBinding has more cons than pros?

    Posted: 23 Feb 2018 05:11 AM PST

    I think databinding is good at MVVM clean architecture for that removes some many boilerplates. And as we already know, it's even faster than findViewById for finding or binding views using with inflate. And It's auto-generating is faster than below versions and I think it's good to build clean architectures to writing resuable and testable codes. But today, my seniors rejected my databinding PR and they said it's not a good at developing and it has something bugs. So what should I do? and How think about databinding?

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

    How to Create a GraphQL API in Kotlin

    Posted: 23 Feb 2018 11:59 AM PST

    Pro Android Studio - How to navigate through a code base

    Posted: 22 Feb 2018 11:47 PM PST

    Migrating from AutoValue with Gson to Kotlin data classes

    Posted: 23 Feb 2018 12:33 AM PST

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel