• Breaking News

    Sunday, March 29, 2020

    Android Dev - I made a tiny annotation library to load styled attributes into custom views. Similar to ButterKnife.

    Android Dev - I made a tiny annotation library to load styled attributes into custom views. Similar to ButterKnife.


    I made a tiny annotation library to load styled attributes into custom views. Similar to ButterKnife.

    Posted: 29 Mar 2020 04:56 AM PDT

    Any good Kotlin Android course for someone how has some experience in Java Android?

    Posted: 28 Mar 2020 02:06 PM PDT

    Hello, I'm still a baby in diapers in Android Dev and finishing my Multiplatform App Development degree here in Spain.

    What I've been teached in school sucks and some of the content is now deprecated. For example we've been teached Android Dev only in Java, MVC pattern instead of MVVM, implementation of a RecyclerView has been teached like shit and I couldn't stop having a cloudy smile because of it (Thanks god I've been doing some side courses) and a long etc...

    I've developed simple apps to learn in my own and for my classes exercises with libraries such as Volley(eww never again), Retrofit, Firebase, Room and I dunno if other more? Glide, Picasso meeh

    I understand basics things of Kotlin, but then I get confused in somethings advanced like for example, a class with static methods for multiple uses in Java is replaced with companion / object class in Kotlin, but when I try to implement it I get errors because I'm not doing it correctly, so that means I need more practice and understand the concepts of the language better.

    Because of that, I'm trying to find a course that's not for beginners but neither for super advanced dudes.

    I've found this https://www.udemy.com/course/modernandroid/ but I have no idea about the instructor, what I saw is that he has many courses using modern android development as Kotlin, Coroutine, JetPack, MVVM, Livedata. So... I'm gonna give it a try, but I would love to hear your opinion and if you have any good resources for my purposes. I really want to learn and develop android apps "correctly" with the last tech.

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

    Gradle build time reducing techniques for various tasks.

    Posted: 29 Mar 2020 08:31 AM PDT

    Gradle build time reducing techniques for various tasks.

    Gradle profiling is good to know how our application build is generated and what is taking how much time.

    After getting that report you still have to make changes to reduce your build time. I found it very hard to understand each tasks and how to reduce its time.

    For example : Here is a screenshot of an application which takes 3.46min for every build.
    Some tasks are fast and some are so slow . I found reducing time for each task is not possible as its not properly explained anywhere , I maybe wrong here but i couldn't found anything which can reduce time of each tasks.

    Android application profiling result

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

    How do apps that replace system notifications, or status bar or notification shade, work?

    Posted: 29 Mar 2020 07:19 AM PDT

    I just started android app development and was wondering how apps that replace system notification shade or status bar, work that too without any root? Any posts or articles regarding making something like that?

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

    Development vs. Production

    Posted: 29 Mar 2020 04:11 AM PDT

    I'll like to use Toasts only on the development phase, and I assume that it is possible with Gradle. Unfortunately Idk how to do it, and the Gradle tutorials that I've found are not talking about this problem.

    Can you share your approach about the development vs production flavors of code?

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

    Some thoughts on Google Sensitive Events policy - after they banned a Corona game

    Posted: 29 Mar 2020 03:38 AM PDT

    Which libraries/architecture components/etc. should I use?

    Posted: 29 Mar 2020 05:25 AM PDT

    I'm fairly new with android development and even though it can be overwhelming sometimes I still love it.

    But I was wondering which things I should be using or maybe you could give me some insight which you are using and which not?

    There are for example things like Dagger 2 which seems to be a must-have for every little bigger app. Same for MVVM I would say.

    But what about all the architecture components? For me they all seem great and I think I should use/learn them all.

    I often read here that many don't like Navigation or Data Binding for example but to me they look great.

    And what about UI libraries? Material Design is one where most people agree that it's pretty good. But not long ago I was using Firebase UI in particular FirebaseRecyclerAdapter and when looking for help many would just say why I am using it if I can do it without Firebase UI?

    To me it seems like a nice, Google supported library which will save me a ton of work, but it seems like more advanced developers think otherwise.

    Would love some insight and advice to help me and I'm sure many other newcomers.

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

    Looking for "getting started with Android Dev" resources for iOS / Java developer

    Posted: 29 Mar 2020 09:00 AM PDT

    Hi,

    I know that this topic is really exhausted (Rule #2) but I cannot find any subreddit's FAQ post or Reddit post that's exactly what I'm looking for.

    I'm looking for resources to get started with Android development that:

    • does not start from 0 (I'm a expierenced developer but not in Kotlin / Android)
    • helps to map existing knowledge to the new context (e.g. "An actvivity is a view controller, a fragment is a view with logic, et. pp)
    • does not include the usage of third party libraries (no Rx)
    • that's more or the less the " standard reference" for modern Android development

    Also it would great to know if,

    • the book / resource has to be really from 2020 or is it okay to buy I book from Mid 2019? This would not work for iOS and Swift due to the breaking changes
    • what I see is, that there are a lot of diffrent ways to do something in Android, is there a "Google way" how to do it?

    Thanks for your help and I hope I can now soon join the club of Android developers. :)

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

    Invoke a method when a Boolean is True for a set amount of time

    Posted: 28 Mar 2020 04:45 PM PDT

    Basically, how can I make it so that a notification or method executes if a Boolean has been true for lets say 13 seconds?

    I appreciate the help.

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

    Gradle plugin to keep your modules graph healthy and lean

    Posted: 28 Mar 2020 06:37 PM PDT

    Dagger Dependency Injection From the Ground Up

    Posted: 28 Mar 2020 03:21 PM PDT

    Emulator vs physical device

    Posted: 29 Mar 2020 03:10 AM PDT

    Hello, recently I have started learning android apps development, however I've faced a problem, that makes it not as fun as it could be. The problem is that android studio with emulator is taking 100% of my budget laptop's ram and everything is running so slow, so I thought maybe I could run apps on my phone. Are there any big differences? I know with emulator e.g I can kill processes. I tried to find some informations about, but I couldn't or it very old. Thank you all for help.

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

    Any good examples of using Flow and Channels together?

    Posted: 28 Mar 2020 03:38 PM PDT

    Just trying to understand practical value for Kotlin Channels via concrete examples. Links to some repos will be appreciated.

    Thanks in advance.

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

    Need Android Developer's Help for New App called WorkoutFH

    Posted: 29 Mar 2020 02:02 AM PDT

    Need Android Developer's Help for New App called WorkoutFH

    The app is called WorkoutFH. If you're stuck in quarantine and have some free time on your hands, I'm looking for an android developer with at least 2 years of experience.

    • I'm Ed. Back before I worked for a big company I used to build my own apps (Writeaday was my most popular).
    • I'm currently coding but, I also dabble in Sketch so I'll be directly working on the design mocks.
    • The idea is for us to both be working in parallel every day and get this app to a launchable state by next weekend.

    Motivation

    • While stuck at home in California under quarantine, I really found myself wanting a way to track work-from-home workouts I've been doing.
    • I thought it would be cool to build an app that helps people take breaks from working and acts as a tracker for number of pushups, pullups, etc.

    Logistics

    • Pay: $50/hr or we can do it project-based. We'll work it out.
    • Let's start with 1 hour to set up the codebase and take a look at the way that I code my xml files and write java code. Then maybe 2 hours to add a color picker row to the "new habit dialog".
    • Here's the project which you'll be submitting pull requests to: https://github.com/eddieberklee/workoutfh

    New Workout Dialog

    Task #1: Add Color Picker UI

    First Sketches of WorkoutFH

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

    Guide to app architecture in Java

    Posted: 29 Mar 2020 01:57 AM PDT

    Hi, is there a Java version of this guide? Thanks.

    https://developer.android.com/jetpack/docs/guide

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

    How to create a service or broadcast to change audio profile after a specific interval?

    Posted: 28 Mar 2020 01:50 PM PDT

    What I'm trying to do is lets say for example for a meeting period of 1 hr, I want to change the audio profile to silent and ant the end of 1 hr, change the audio profile back to normal. Should I create two separate services for this? Also I need to have option for repeating it for specific days of the week selected. Can anyone guide me how to achieve it?

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

    How do I restore WebView contents after my Activity restarts? [Stack crosspost]

    Posted: 28 Mar 2020 05:59 PM PDT

    Does anyone know how to save and restore the content of a WebView in Android across phone calls, device rotations and the like? I have the following in an app and it is not restoring any changes to app content. The WebView contains JavaScript code that responds to button clicks by modifying the text displayed, but Android is just restoring the original state of the display as set by mWebView.loadData().

    The following goes inside my Activity class: ```java @Override public void onRestoreInstanceState(Bundle savedState) { Log.d(TAG, "restoring instance state..."); super.onRestoreInstanceState(savedState); mWebView.restoreState(savedState); }

     @Override public void onSaveInstanceState(Bundle outState) { Log.d(TAG, "saving instance state..."); mWebView.saveState(outState); super.onSaveInstanceState(outState); } 

    ``` I have asked this on StackOverflow but i have not got an answer there that meets my use case.

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

    Are ViewModels meant to represent the view or the model?

    Posted: 28 Mar 2020 03:42 PM PDT

    Let's say I have a fragment that represents a shop. The fragment contains information about available products, as well as information about the user that is currently logged in. My question is this: is the fragment meant to contain one ViewModel that contains all the information needed for that screen (in this case, the products and the user)? Or is the fragment meant to contain two ViewModels: one to retrieve information about the products and one to retrieve information about the user?

    Thanks ahead of time!

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

    Play console pending

    Posted: 28 Mar 2020 01:12 PM PDT

    My application has been pending release for 2/3 days now. Its only internal testing release . How long does this normally take?

    submitted by /u/il3g3ndry-ws
    [link] [comments]

    Making my app modular

    Posted: 28 Mar 2020 01:03 PM PDT

    I have recently taken up the task to make my app modular based on features, while utilizing the dynamic feature modules.

    I have been digging through different resources and article to find the right way to do it. However, there are not many resources available. Hence wanted to know,

    1. How did you guys take up the task of splitting your app to modules?
    2. What does your dependency graph look like?
    3. Do you have both :core and :common module? If so, what goes into what(Like custom views, Base Fragment, App class)
    4. How are you managing the navigation. (I'm using navigation components)
    5. What are somethings that I should know before actually starting on this task?

    Thank You :)

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

    Cashing Retrofit response using Room persistence library

    Posted: 28 Mar 2020 10:23 AM PDT

    I'm currently working on an app that's similar to the amazon app. but way less complex. a simple app that shows a couple of items - categories from my API. I wanna ask. is it a good practice and a good user experience to implement the Cashing retrofit using Room library ! when I query my items I do that from the Room library and therefore the Room library gets the data from the rest API! or in this context, it's not a good option since its an app used to show items at the current moment perpetually.

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

    Trying to change fragments from a fragment using a button

    Posted: 28 Mar 2020 07:51 PM PDT

    Currently I am attempting to change the Activity extends Fragment to another Activity extends Fragment.

    This is my current code: public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_profile, container, false);

     Button editprofile = (Button) view.findViewById(R.id.EditProfile); editprofile.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent intent = new Intent(getActivity(), EditProfile2.class); intent.putExtra("some", "some data"); startActivity(intent); } }); return view; } 

    Unsure of how to change it to the next page, as this makes it a SubActivity which I'm having trouble drawing data from. Just need it simply to bring me to the next Activity from an activity extends fragment

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

    Attempting to change activities using a button while extending fragment

    Posted: 28 Mar 2020 03:02 PM PDT

    Currently I'm trying to have a button that will switch the activities of the page, however everything I've found has told me to make an activity with a hierarchical parent (MainActivity) in order to do so or to use the MainActivity to do a FragmentTransaction (which I can't do since the MainActivity is needed to open the Login). Is there a way to have it directly open the activity and vice versa?

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

    No comments:

    Post a Comment