- Closing All Activities and Launching Any Specific Activity
- Kotlin
- Go to Code Line from Logcat Output Line
- April 28, 2018
- Percentage Width/Height using Constraint Layout
- April 27, 2018
- Closing All Activities and Launching Any Specific Activity
- Kotlin
- Go to Code Line from Logcat Output Line
- April 28, 2018
- Percentage Width/Height using Constraint Layout
- April 27, 2018
Closing All Activities and Launching Any Specific Activity
Often times, most apps have an option where all the activities of the current app are closed and any new specific activity is launched. For example, on logging out of the application, all the activities are closed and login activity is started to allow user to make any new session.
This can be done using few lines code with power of intents like this:
Kotlin
If you liked this article, you can read my new articles below:
Go to Code Line from Logcat Output Line
Let’s start by looking at our typical good’ol logcat window in Android Studio like this: Now, when you get this kind of logs while coding your awesome apps, then your first question would be: Where is the source code line for this log?
April 28, 2018
Percentage Width/Height using Constraint Layout
UPDATE: I’ve started a new articlw series on ConstraintLayout to discuss tips and tricks regularly. Here’s the first article about it. 📚Learning ConstraintLayout — 🚀Live Templates for Rescue 🚒 Save time and improve productivity by using Live Templates for ConstraintLayout
April 27, 2018
7 years experience. 💻 Creator of various Open Source libraries on Android . 📝 Author of two technical books and 100+ articles on Android. 🎤 A passionate Public Speaker giving talks all over the world.
Источник
Closing All Activities and Launching Any Specific Activity
Often times, most apps have an option where all the activities of the current app are closed and any new specific activity is launched. For example, on logging out of the application, all the activities are closed and login activity is started to allow user to make any new session.
This can be done using few lines code with power of intents like this:
Kotlin
If you liked this article, you can read my new articles below:
Go to Code Line from Logcat Output Line
Let’s start by looking at our typical good’ol logcat window in Android Studio like this: Now, when you get this kind of logs while coding your awesome apps, then your first question would be: Where is the source code line for this log?
April 28, 2018
Percentage Width/Height using Constraint Layout
UPDATE: I’ve started a new articlw series on ConstraintLayout to discuss tips and tricks regularly. Here’s the first article about it. 📚Learning ConstraintLayout — 🚀Live Templates for Rescue 🚒 Save time and improve productivity by using Live Templates for ConstraintLayout
April 27, 2018
7 years experience. 💻 Creator of various Open Source libraries on Android . 📝 Author of two technical books and 100+ articles on Android. 🎤 A passionate Public Speaker giving talks all over the world.
Источник