Android application development using Kotlin - 8 || Architecture patterns

Pubblicato il: 30 marzo 2020
sul canale di: Silp Tech
83
6

Next Video Url:    • Android application development using Kotl...  

Playlist url:    • Android Application Development using Kotlin  

Instructor: Abhishek Koirala

You can contact the instructor on
Linkedin:   / er-abhishek-koirala-3686b2a0  
Github: https://github.com/developeravsk
Youtube:    / @learninghub_ak  

In software engineering, a software design pattern is a general, reusable solution to a commonly occurring problem within a given context in software design. It is not a finished design that can be transformed directly into source or machine code. Rather, it is a description or template for how to solve a problem that can be used in many different situations. Design patterns are formalized best practices that the programmer can use to solve common problems when designing an application or system.

Object-oriented design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved. Patterns that imply mutable state may be unsuited for functional programming languages, some patterns can be rendered unnecessary in languages that have built-in support for solving the problem they are trying to solve, and object-oriented patterns are not necessarily suitable for non-object-oriented languages.


Design patterns may be viewed as a structured approach to computer programming intermediate between the levels of a programming paradigm and a concrete algorithm.



In the majority of cases, desktop apps have a single entry point from a desktop or program launcher, then run as a single, monolithic process. Android apps, on the other hand, have a much more complex structure. A typical Android app contains multiple app components, including activities, fragments, services, content providers, and broadcast receivers.

You declare most of these app components in your app manifest. The Android OS then uses this file to decide how to integrate your app into the device's overall user experience. Given that a properly-written Android app contains multiple components and that users often interact with multiple apps in a short period of time, apps need to adapt to different kinds of user-driven workflows and tasks.

For example, consider what happens when you share a photo in your favorite social networking app:

The app triggers a camera intent. The Android OS then launches a camera app to handle the request. At this point, the user has left the social networking app, but their experience is still seamless.
The camera app might trigger other intents, like launching the file chooser, which may launch yet another app.
Eventually, the user returns to the social networking app and shares the photo.

At any point during the process, the user could be interrupted by a phone call or notification. After acting upon this interruption, the user expects to be able to return to, and resume, this photo-sharing process. This app-hopping behavior is common on mobile devices, so your app must handle these flows correctly.

Keep in mind that mobile devices are also resource-constrained, so at any time, the operating system might kill some app processes to make room for new ones.

Given the conditions of this environment, it's possible for your app components to be launched individually and out-of-order, and the operating system or user can destroy them at any time. Because these events aren't under your control, you shouldn't store any app data or state in your app components, and your app components shouldn't depend on each other.


Android development can be a great way to turn your idea into reality or start a promising career as an app developer... and getting started is probably easier than you think.

These days Android Development is done with a tool called Android Studio. Android Studio is kind of like the Microsoft Word of writing Android apps; it helps organize our projects and gives us a user friendly way to create what we’re looking for.


In questa pagina del sito puoi guardare il video online Android application development using Kotlin - 8 || Architecture patterns della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Silp Tech 30 marzo 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 83 volte e gli è piaciuto 6 spettatori. Buona visione!