• Breaking News

    [Android][timeline][#f39c12]

    Monday, February 26, 2018

    Weekly "who's hiring" thread! Android Dev

    Weekly "who's hiring" thread! Android Dev


    Weekly "who's hiring" thread!

    Posted: 26 Feb 2018 04:46 AM PST

    Looking for Android developers? Heard about a cool job posting? Let people know!

    Here is a suggested posting template:

    Company: <Best Company Ever>
    Job: [<Title>](https://example.com/job)
    Location: <City, State, Country>
    Allows remote: <Yes/No>
    Visa: <Yes/No>

    Feel free to include any other information about the job.

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

    Weekly Questions Thread - February 26, 2018

    Posted: 26 Feb 2018 02:56 AM PST

    This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, or Stack Overflow before posting). Examples of questions:

    • How do I pass data between my Activities?
    • Does anyone have a link to the source for the AOSP messaging app?
    • Is it possible to programmatically change the color of the status bar without targeting API 21?

    Important: Downvotes are strongly discouraged in this thread. Sorting by new is strongly encouraged.

    Large code snippets don't read well on reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead.

    Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail!

    Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays.

    Looking for all the Questions threads? Want an easy way to locate this week's thread? Click this link!

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

    Why Flutter Uses Dart

    Posted: 26 Feb 2018 01:27 PM PST

    Android Architecture: Part 1 — every new beginning is hard

    Posted: 26 Feb 2018 07:06 AM PST

    Caster.io Free Course: Android Architecture Components - A Deep Dive

    Posted: 26 Feb 2018 02:18 AM PST

    Using Gradle Build Cache Server – Medium

    Posted: 26 Feb 2018 08:12 AM PST

    Does anyone still use MVP for architecting their android apps? Specifically the clean code (onion) architecture approach.

    Posted: 26 Feb 2018 12:42 PM PST

    Make your custom view 60fps in Android

    Posted: 25 Feb 2018 10:41 PM PST

    OOP Structuring Question

    Posted: 26 Feb 2018 12:28 PM PST

    I have multiple activities that have similar functions; my goal is to create a superclass that my activities can extend to help reduce code duplication.

    We'll call my subclass activities SedansActivity and TrucksActivity, and my superclass activity VehiclesActivity.

    Within SedansActivity I have

    public class SedansActivity extends VehiclesActivity { private ArrayList<Sedan> sedansArray = new ArrayList<>(); private SedanArrayAdapter sedanArrayAdapter; private ListView sedans_lv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_sedans); Button new_btn = findViewById(R.id.new_btn); new_btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(context, NewSedanActivity.class); startActivity(intent); } }); this.sedansArray = new ArrayList<>(); this.sedanArrayAdapter = new SedanArrayAdapter(this, sedansArray); this.sedans_lv = findViewById(R.id.sedans_lv); ... } public void loadSedansFromDB() { //Network Call which returns a json array of sedans JSONArray r = new JSONArray(response.body().string()); for (int i=0; i<r.length(); i++) { sedansArray.add(new Sedan(context, sedansArray.size(), r.getJSONObject(i))); } ... } 

    Then I have essentially the same code for TrucksActivity, except sedansArray<Sedan> is trucksArray<Truck>, SedanArrayAdapter is TruckArrayAdapter, within the new OnClickListener() I want to navigate to NewTruckActivity.class, and my load from db function has

    trucksArray.add(new Truck(context, trucksArray.size(), r.getJSONObject(i))); 

    How much of this could I put into VehiclesActivity? And how would I go about doing that?

    Within VehiclesActivity how would I declare an ArrayList<> that is both <Truck> and <Sedan>?

    Can I put loadVehiclesFromDB() in VehiclesActivity? How would I distinguish between

    sedansArray.add(new Sedan(context, sedansArray.size(), r.getJSONObject(i))); 

    and

    trucksArray.add(new Truck(context, trucksArray.size(), r.getJSONObject(i))); 

    Any help is appreciated.

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

    replace constructor with builder

    Posted: 26 Feb 2018 12:51 AM PST

    [Elmdroid - New Elm Architecture library for Android](https://github.com/InventiDevelopment/Elmdroid)

    Posted: 26 Feb 2018 06:22 AM PST

    Github link: https://github.com/InventiDevelopment/Elmdroid (can't edit the screwed up title :) )

    Hi guys. During the last year, me and my team did an extensive research on various unidirectional architectures and finally came to the conclusion that The Elm Architecture (TEA) with it's well defined background tasks and subscriptions is especially well suited for android development. Inspired by interesting blog series from Sergey Grekov we created a small and very focused kotlin library to help you implement TEA on android. It's intentionally very simple without any configuration change handling etc., so you can use it with your favourite solutions or use our optional ViewModel integration if you like. The view state is provided in a LiveData container in order to provide automatic lifecycle handling and your background tasks and subscriptions are integrated with RxJava. Having a hard time managing complexity in your huge form component? Elmdroid is simple and non-invasive enough so you can start using it in isolated places throughout your project. Although we already use it in production code, there is a lot of room for improvement and we still think about this as a research project so any feedback/issues/pull requests are highly appreciated!

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

    Any comprehensive courses/books on Android Rom Development?

    Posted: 26 Feb 2018 12:24 AM PST

    I want to improve the general Open Source status of my android devices by building some ROMs/TWRP, but I couldn't find any centralized sources of information on the topic. Mostly just threads (likely outdated) on xda.
    I have a fairly average knowledge in Linux environment, as it's crucial for android rom development, but I lack any deeper understanding of the the whole android rom building ecosystem, especially on a technical level.
    Are there any comprehensive sources on such topics? Be it an online course or books or a series of lectures? Or it's more of a trial and error type of hacking?

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

    Adding Picture in Picture to your App

    Posted: 26 Feb 2018 03:06 PM PST

    Best Unit Test Example for Anroid?

    Posted: 26 Feb 2018 06:17 AM PST

    I'm looking for most idiomatic and/or modern implementation of Unit Test techniques for Android, preferably with Kotlin. Also it would be great if it's simple, concise & easy to understand.

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

    Need resources about practical and simple MVVM/MVP

    Posted: 26 Feb 2018 12:55 AM PST

    Hi guys, I've recently started to learn Android dev. So far I have made a simple app in Kotlin able to load and store a list in db using Room and show it using ListView.

    The next logical step for me has been to rewrite my ugly beginner code (used just for trying to put something to screen, react to button press and try some kind of persistent storage) to something like MVVM or MVP which should simplify adding more features and help making my code cleaner.

    But at this moment I've hit the wall. There are a lot of ways I can use these patterns (RxKotlin, architecture components), but all of them seems quite complicated for me and IMO contains a lot of bloat. So far everything looks like a too sophisticated solution for my trivial needs.

    Can you guys point me at some resources how to implement MVVM or MVP without much added complexity? Or am I doing something wrong and I should change my approach?

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

    Signing Android Application(User/Platform/Vendor)

    Posted: 26 Feb 2018 12:48 PM PST

    Final year project computer - Product Discovery

    Posted: 26 Feb 2018 12:37 PM PST

    I'm contemplating a final year project next year for computer science. My idea is to allow users to search for products on their phones with the results coming from nearby stores that sell that item. I'd scrape some of the more major store sites but allow smaller stores to register and upload products. Does this sound like an okay idea? Our lecturers have said not to do another shopping basket application is this sounding too much like that? What could I do to progress the idea?

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

    DaggerViewModelHelper - Small library to help implement Dagger and ViewModel

    Posted: 26 Feb 2018 02:40 AM PST

    Android Memory Management and Save & Restore for Developers

    Posted: 26 Feb 2018 11:56 AM PST

    Prototyping Rx - 11am IST

    Posted: 26 Feb 2018 10:27 AM PST

    [Library] Customizable Googlish Datetime Picker ViewGroup - Easy-to-use/implement

    Posted: 26 Feb 2018 10:19 AM PST

    Learning Android: Java vs Kotlin (or else?)

    Posted: 26 Feb 2018 05:00 AM PST

    I'm currently learning Android Dev through Udacity free courses, but I feel frustrated because of all the options available: the course is using Java, but I hear a lot about Kotlin, React Native and recently I discovered Flutter. For now I want to stick with Android, but cross-platform is something I might need in the future. Should I proceed with Java, and then learn other options in case I need them, or drop it, and go for Kotlin/React/Flutter right away? I have basic knowledge of Java and object oriented programming (SOLID, few patterns), so I don't really have preference, just want to figure out which option is a way to go for a beginner.

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

    How do you guys test Loading/Error states with Kotlin Coroutine?

    Posted: 25 Feb 2018 07:09 PM PST

    I'm trying to migrate my project from RxJava to coroutine as kind of experiment, and I haven't been able to find an equivalent function for Observable.never(). I have been browsing github repos for some example and also asked on StackOverflow but haven't got any answer yet. I'd be grateful if anyone could help me with this.

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

    Dependency Injection: the pattern without the framework

    Posted: 25 Feb 2018 11:41 PM PST

    Final Keyword in JAVA Simple Explanation

    Posted: 26 Feb 2018 10:44 AM PST

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel