You can use this article to revise and copy-paste the git commands quickly if there’s a need. This article is For the beginner, By a beginner, and to the beginner.
Git is the coolest thing when it comes to tracking changes in any set of files, coordinating work among programmers during software development. Developers rely on Git for version control.
Version control, also known as source control, is the practice of tracking and managing changes to software code. It records changes to a file or set of files over time so that you can recall specific versions later.
In Kotlin, variables are declared using var keyword and constants are declared using val keyword.
Well it’s not the tinder app but “any screen shown to the user is an activity”. In this case, we are seeing the log in activity of Tinder.
We know activity but what’s lifecycle?
Activity goes through many states. These states represents activity lifecycle. For example, a car has states like engine is off, engine is on but not moving, in motion, at rest, etc. You get the idea.
Understanding concepts of Touch framework
Hello fellow developers, in this article I am going to discuss about the Android touch framework, how the touches flow through the application and how Android handles all of those events.
Every touch event into your application is wrapped up as a MotionEvent. These MotionEvent contains description of action and some metadata such as location of touch event on the screen. Some of the actions are as follows :
Programming Language for iOS
Swift is a general-purpose, multi paradigm, object-oriented, functional, imperative and block structured language.
Some additional features of Swift include:
Swift uses Automatic Reference Counting (ARC) to manage memory.
Swift is a type safe language, means you cannot assign an integer value to a string variable, this will be detected at compile time.
If you’re not using type…
Since I’m an Android developer I’ll be using the term ‘android’ but this article is still relevant to any engineering candidates.
I will be sharing about an interview for the role android developer that I have gone through. This interview was for a small organization, a startup. Some big organization interview pattern may be very different from this.
There are generally three parts to an interview:
The way in which a new Android developer organizes the code becomes problematic as soon as the size of the app increases. Almost all of the code resides in an activity and the activity becomes too much congested. The activity acts as both view and the controller.
All the functions, views and business logic is managed by a single activity. This is a very bad architecture. Some of the problems in such architecture are as follows :
To solve this problem the…
Hi, welcome to the second part of the article. You should also look at the Part 1 of the article.
In Kotlin, by default classes are public and final i.e. it is not open for inheritance. We need to make it open for inheritance by using open keyword.
When we open a new activity from an activity itself, we can send data to it by using an intent and putExtra() method. But what if we also want to get something back? This is what the startActivityForResult() method is for. By opening our child activity with this method and overriding onActivityResult() we can send data back to our parent activity after we set it with setResult() in our child activity before we close it.
MainActivity.javaint REQUEST_CODE = 1;
Intent intent = new Intent(MainActivity.this, ChildActivity.class);
We need the REQUEST_CODE to identify the request…
Since the Android system uses the default no-arg constructor when recreating a fragment, we should not pass values over an overloaded constructor with arguments when we instantiate it.
The correct way to instantiate a new fragment and passing values to it, is by creating a bundle, setting arguments on this bundle using setArguments() method and then passing it to our fragment. Inside the fragment we then retrieve this bundle and get the values out of it. A clean way to do this is by creating a “factory method”.
I hope you learned something! Thank you for reading.
Click the 👏 to show your support and share it with other fellow Medium users.
Mobile Application Enthusiast, an Android developer and a keen observer of life