Category: android
-
Introduction to Automated Android Testing – Part 4
In this blog post series, we are working through an example Android app called Github User Search. In the previous blog posts, we took a look at setting up your app for testing, creating API calls and writing the first basic test for the API transformations. Read part 1, part 2 and part 3 first.
-
Introduction to Android Testing – Part 3
In the previous two blog posts I covered how to get setup with testing in Android and we created a sample app that we will be continuing to develop in this blog post. If you missed those two posts, I suggest reading part 1 and part 2.
-
Introduction to Automated Android Testing – Part 2 – Setup
In this series of posts we are going to look at an Introduction to Automated Android Testing. In Part 1 of this automated testing series, we covered why you should write tests, where the test folders are located and the different types of tests you get in Android.
-
Introduction to Automated Android Testing – Part 1
I’ve seen a lot of people confused and unsure about how to do tests in Android. In the past, it was very difficult to test Android apps and there wasn’t much direction. In this series, I am going to try make testing a bit easier for you. This first post is just to get you started with…
-
How to create a group of File Templates in Android Studio – Part 3
Update – 24 May 2021: The solution described in this blog post is now outdated – yay! See the official solution from IntelliJ. This works in Android Studio Artic Fox and above – https://www.jetbrains.com/help/idea/templates-with-multiple-files.html For historical purposes – I’ve left the original post below. ————————– In the previous two posts, we looked at creating custom…
-
ConstraintLayout 101 & the new Layout Builder in Android Studio
What is ConstraintLayout? ConstraintLayout is a new type of layout that you can use in your Android App, it is compatible down to API level 9 and is part of the support library. Its aim is to reduce layout hierarchies (and improve performance of layouts) and it also reduces the complexity of trying to work…
-
Attending Google I/O for the first time
I was very fortunate to attend the annual Google I/O Conference in Mountain View, California this year. I decided to get there a few days earlier to do a bit of sightseeing. I got to see Muir Woods with Chiu-Ki and Marie.
-
How to create your own Live Templates in Android Studio/IntelliJ – Part 2
In the last post we looked at how to create a File Template in Android Studio. In this post we will look at Live Templates and how to make your own. Live templates are “frequently-used or custom code constructs that you can insert into your source code file quickly, efficiently and accurately.”
-
How to make your own File Templates in Android Studio – Part 1
I have recently discovered something which is currently making my life easier at the moment: Custom file templates. What is a file template? A file template is a source file that already contains some code to get you started. In this example, we are going to look at creating a file template for a RecyclerView adapter implementation which is…
-
Understanding Battery Usage in your Android App
Developing an android app can be a difficult and daunting task. There is so much to think about and a lot of the time battery usage is not very high on the list of things to remember. However, it is one of the most important things you need to consider. If your app is draining your user’s…