What are Android Architecture Components,LiveData and ViewModel? [closed] - android

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
As a beginner it is very hard to understand what are these things
Is there any resource which can give a grasp knowledge of things in easy language?

In simple words:
For a long time Google didn't give any indication to developers on how they should write (architecture wise) their apps. But last year they've released a set of libraries that guide developers on how to structure their code by structuring the app in clear layers and reinforcing good practices. That's what they call architecture components.
LifeCycle, LiveData, ViewModel and Room are the main classes in these libraries. They go well with a MVVM architecture and if you apply them correctly (according to Google) your app will be easy to maintain and test.
As for resources, you can check the Google I/O release talk and the documentation. You can also find many online tutorials to get you started.
If you know nothing of android development it will be hard to understand the use of these components so I would advise you to study more about the SDK and then go back to these components. Note as well that you need to know about Reactive Extensions for android and java/kotlin too because these libraries rely a lot on them.

Related

Flutter - how to develop UI? Docs for UI architecture? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I need a manual for developing UI on Flutter.
Not a syntax of Dart or api docs... Something that describes common principles, like hierarchy, core elements and how they interact with each other, and so on.
On android you have activities, which contains ViewGroup and View, which interact with intents, which stacks when you open new, which pops from stack when closed. For UI you combine Layouts, which contains other Layouts, and ..., which containts simple Views. I need something as described but for Flutter.
Here's a few good resources you can check out:
For basic Flutter widget architecture, the getting started tutorial on flutter.io is useful.
Google's Youtube playlist for Flutter has some good starting points.
For handling data and state, there's the reactive architecture I/O video with an accompanying post.
Brian Egan's architecture samples isa great resource.
There are getting started guides for both Android devs and iOS devs.
And the Flutter Cookbook is a great place to see how to implement common mobile patterns.

AOSP / Android Source code indexing tools [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I'm searching for tools that would allow me to index and navigate within AOSP source tree a little bit easier.
My team works mostly at the lower level (so C and C++), but we interface with Java quite a bit. Currently we use:
ack-grep,
ctags,
cscope.
Since we're building a whole platform, we're not limited to just our code, but sometimes also need to understand better what's happening inside Android.
I currently make an attempt to use OpenGrok -- indexing is far from being done and the log is already swollen from git warnings.
The tools we currently use are hardly a convenient way to navigate the code. I would like to reach out for Android hackers wisdom - how do you navigate the code?
For the Java part Android Code Search is quite a blast. Unfortunately, I think it's "online-only" And also, for the low-level (C/C++) stuff things need to evolve a bit.

General android programming guide lines [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have been programming on android for the past few months and have hit a point where I comprehend the basic ideas and principles for Android development.
Currently I think that my code lacks the appropriate structure and clearance that is required in order for your code to be readable. I know this because sometimes even I find it hard to read my code - and I am not talking about the variable or classes names. I am talking about for example when I open a big ( lengthy ) activity and have 5 overriden methods, 5 more and tons of global variables, a couple of inner-classes and so on it gets hard to find stuff in.
Therefore I have been looking for some guide lines for how to do this so that the code looks good and is readable but I haven't been able to.
There are also small problems to which I find hard to find an answer and usually go with what i feel like rather than knowing for sure what is right in the situation. For example what is better - having the activity implement onClickListener and then having a big switch statement, or just creating new listener for every UI element.
I was hoping some of you might know a place where I can find answers for questions like this. If there is not I will start adding the questions here.
Thank you
I used this to learn Android MVP: https://www.youtube.com/watch?v=qE4DEwrK2N4
Github link: https://github.com/jpotts18/android-mvp
You can also look at a app that I created which follows mvp structure (well sort of) and with its help, it is easier for me to rollout more features constantly without cluttering my activity/fragment classes. Link: https://github.com/crazyhitty/Munch
Check out Google's Android Code Style guidelines. It contains some terrific guidelines regarding coding guidelines and style.
This was written by Chet Haase who works at Google on the Android UI team.
He was input his own and the framework teams knowledge into the articles to clarify the correct Android programming Guidelines.
Article 1

Proper android Oauth2 library / framework [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I've been searching day and night now for a proper OAuth2 library to use for my android app.
I came across many, including apache amber (formally leeloo) and the android developer specified one (http://developer.android.com/training/id-auth/authenticate.html) which seems to be deceperated.
Yet none of them work or even merge with my project error free (ie. missing methods in jars).
Thus my question is, if there is ANY proper OAuth2 library out there that can be used for android. All I need is a library that allows me to retrieve an authentication code, followed by the token call which will allow autorize requests.
Any links towards an interesting project (git or w/e) are most appreciated.
The most complete library I found is Scribe. I liked it so much that I wrapped it to make it more suitable to asynchronous android interaction. You can check my PostmanLib here. It is supposed to make easier the asynchronous interaction AND the authentication via a webview.
Based on the Oltu (formerly Amber) dev mailing list, it has also been used in Android (at least the client side part).

Android UI examples [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am new with Android UI and I am looking for some resources about best practices to design a UI (examples of UI elements, tutorials, etc.)
I've been looking in Google or http://developer.android.com/resources/tutorials but there is nothing helpful at all.
Can anyone provide me some resources/links ?
There is actually a nice web which explains the most usable UI Design patters used by many apps already: http://www.androidpatterns.com/
If you have no experience with Android UI but you know a little Java already, maybe this is something for you:
SimpleUi ( https://github.com/bitstars/SimpleUi )
The generated UI (code below):
The complete code to create this Android UI:
I use it in real applications, not only for fast prototyping or dialogs and its well tested over the years. The concept is based on the model view control principle and for most common scenarios there are ready to use components which automatically look correct on any device. I don't say it should be used for any UI (e.g. listviews should be done by hand) but for most usecases this should be quite handy ;) Oh and feel free to fork it and improve it further if you want
UI Patterns, shown on the Twitter app, but they're common on Android in general:
http://android-developers.blogspot.com/2010/05/twitter-for-android-closer-look-at.html
http://www.androiduipatterns.com/
Depending which pattern you want to implement, there are open source projects/samples out there, i.e. for the Quick Contact Bar, etc.
Check anddev.. normally there are nice examples of UI elements. Also some nice tutorials at mobiforge 1 and 2.

Categories

Resources