Categories
android studio

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.”

Categories
android studio

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 […]

Categories
android performance

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 […]

Categories
android ui

Optimizing Layouts in Android – Reducing Overdraw

You have a great idea and you have launched your application into the wild. Now you hear people complaining how your app is slow and horrible to use. Sad face. One such step to improve the rendering time of your application is to have a look at the GPU Overdraw tool.

Categories
android

Fixing Memory Leaks in Android – OutOfMemoryError

Memory leaks in Android are quite easy to create. The unsuspecting developer might be making a few memory leaks every days without realising. You probably haven’t noticed them yet or even know that they exist. Until you see an exception like this….