• Breaking News

    [Android][timeline][#f39c12]

    Saturday, April 21, 2018

    App Feedback Thread - April 21, 2018 Android Dev

    App Feedback Thread - April 21, 2018 Android Dev


    App Feedback Thread - April 21, 2018

    Posted: 21 Apr 2018 05:30 AM PDT

    This thread is for getting feedback on your own apps.

    Developers:

    • must provide feedback for others
    • must include Play Store, GitHub, or BitBucket link
    • must make top level comment
    • must make effort to respond to questions and feedback from commenters
    • may be open or closed source

    Commenters:

    • must give constructive feedback in replies to top level comments
    • must not include links to other apps

    To cut down on spam, accounts who are too young or do not have enough karma to post will be removed. Please make an effort to contribute to the community before asking for feedback.

    As always, the mod team is only a small group of people, and we rely on the readers to help us maintain this subreddit. Please report any rule breakers. Thank you.

    - Da Mods

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

    A Guided Tour inside a clean architecture code base

    Posted: 21 Apr 2018 06:21 AM PDT

    My favorite examples of functional programming in Kotlin

    Posted: 21 Apr 2018 10:41 AM PDT

    Should all Retrofit API methods be called inside one class within an app?

    Posted: 21 Apr 2018 08:33 AM PDT

    If I search Google for "Android Retrofit2 example" this article shows up. That example calls an API method ("repoContributors") generated by Retrofit on the button's click event. Straightforward and simple.

    Now, I read Google's Android architecture article. It has an example of showing user information. The activity just displays ViewModel, and the ViewModel just reads users from Repository and the Repository either gets users from DB or Web. So, in this example, all Retrofit API methods calls would be called only in the Repository.

    That Google's example is simple, because the server API provides only one type of data, "users". For a real app, the server may have a lot of REST API methods. Many of the API's could be only needed for specific activities (for example, "getting users" is only needed for UserActivity, and "request logout" is only needed in AccountActivity), and there are data that need not be cached. Suppose there is a REST API server, and I have defined lots of its API methods in a Retrofit interface like this.

    public interface GitHubServices { @Get("somemethod1") Call<Something1> someMethod1(arg1, arg2, arg3, arg4); .... Call<Something1> someMethod50(arg1, arg2, arg3, arg4); } 

    Should I create a giant central API caller class like the following, and all activities should communicate with the server by this class, not by calling someMethod1~someMethod50?

    public class MyGitHubServer { ... } 

    But by that way, it seems that in most cases, I would replicate the same method signature in that class, which seems to be tedious. For example, let's suppose an activity wants to send a message to another user on the server. If the Retrofit's class has a method like this,

    Call<MessageResult> sendMessage( @Path("user") String user, @Path("message") String message); 

    then, the MyGitHubServer would have to have a method

    MessageResult sendMessage(String user, String message); 

    And there would be a chain of calls passing the same things.

     Activity tells the ViewModel to sendMessage("doge", "wow") Then the ViewModel tells the MyGitHubServer to sendMessage("doge", "wow") Then MyGitHubServer calls Retrofit's sendMessage("doge", "wow") 

    Is this the recommended behaviour? This seems to be a lot of work than just calling Retrofit's sendMessage("doge", "wow") directly inside the button's onClick event.

    And what if I want to show "Sending failed, retry?" message to the user? If I called the Retrofit API directly in the button's onClick, right in the Callback's onFailure() or onResponse(), after sending that AlertDialog, I could make the call again. But if the structure above is used, wouldn't it be like,

     Then MyGitHubServer tells ViewModel that the call failed."wow") Then the ViewModel tells the Activity that the call failed. Activity asks the user if he wants to retry. User says yes Activity somehow reconstructs the same call data ("doge", "wow") and send it to ViewModel Then the ViewModel tells the MyGitHubServer to sendMessage("doge", "wow") Then MyGitHubServer calls Retrofit's sendMessage("doge", "wow") 
    submitted by /u/evolution2015
    [link] [comments]

    Does ConstraintSet's suffer with many (40+) views? I got no problem with only 2 main items. I'm using ConstraintLayout 1.1.0.

    Posted: 21 Apr 2018 01:55 PM PDT

    Google AdMob AdServing App Question

    Posted: 21 Apr 2018 09:41 AM PDT

    Hey everyone, have a question about AdMob. I have an app with AdMob, adserving was disabled for it after 3months. I made the requested changes and sent in my appeal. Adserving was reinstated 3days later, however ever since being reinstated my Network requests are down 95%.. I am getting nothing anymore, although my daily organic installs remain on the same pace as before. My question is, yes, they reinstate your app, but do they flag you or penalize you from advertisers? I just can't figure out such a drop off. Wondering if its something with my new code I uploaded after the appeal or is it AdMob just killing my app. Thanks guys

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

    Android Architecture Components – ProAndroidDev

    Posted: 21 Apr 2018 09:16 AM PDT

    Why I’m refactoring to Kotlin – ProAndroidDev

    Posted: 21 Apr 2018 09:15 AM PDT

    Lisa Wray about Libraries

    Posted: 21 Apr 2018 12:13 PM PDT

    Dive into Kotlin's Scope Functions: let. run, also, apply, with

    Posted: 20 Apr 2018 10:36 PM PDT

    What's your favorite place to store lookup data (read many, write few)

    Posted: 21 Apr 2018 11:29 AM PDT

    I'm starting my first android project soon. A portion of it is gonna be a spell lookup/search for an RPG. Thus, I'm going to have a decent amount of data that a user will be retrieving several times when using my app. There's still the possibility of needing to update the entries however. Is a simple database the optimal way to go about this? I was thinking maybe ElasticSearch but the inflexibility of the data is a turn off. I'd rather not have to delete and reupload anything that needs an update.

    Anywho, feel free to throw some ideas at me. Thanks!

    Edit : also I'd like to have the data stored client server side, optimally accessible through a REST api so I could share it with other developers. So any tools that offer a similar functionality would be great!

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

    Open source app with Dagger as good example

    Posted: 21 Apr 2018 06:40 AM PDT

    Hello guys,

    I am looking for example for really good Dagger usage in Android app, I have seen many but in my opinion most of them had bad practices with unnecessary boilerplate or was too old and I wasnt sure is it really usable.

    Or maybe Dagger in general is always looking bad?

    The reason is I finally want to learn Dagger properly without any bad habitants.

    Preferably in Kotlin but of course it is not must have.

    Thank you for any help.

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

    Error handling in RxJava/RxKotlin – AndroidPub

    Posted: 20 Apr 2018 08:47 PM PDT

    How to Build A Drawing Android App

    Posted: 20 Apr 2018 11:14 PM PDT

    Android Material Design Slidenerd Style

    Posted: 21 Apr 2018 11:55 AM PDT

    Hi Guys This Udemy Course Free Today For limited time. I hope you like it. [100 % OFF]Android Material Design Slidenerd Style 🗣️Great series on Android development with some very useful insights about the Android app development architectures. I strongly recommend this course to every Android developer🔥🔥 This is a perfect course for Material Design.

    YourDeal5Star ✅ Learn to build material design apps from null to stackoverflow link : https://deal5star.com/android-material-design-slidenerd-style/

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

    Brian Plummer about Open source projects

    Posted: 21 Apr 2018 12:31 AM PDT

    Working with RecyclerView and multiple view types – Paul Núñez – Medium

    Posted: 20 Apr 2018 10:57 PM PDT

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel