Tag: java
-
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…
-
Android SQLite Database – How to use onUpgrade() correctly
After reading this blog post (and a few others) on how to use the onUpgrade() method for your Android SQLite Database, I thought I should share my experience about how to correctly upgrade your database. It will also be beneficial to highlight why the final solution listed in that blog post would also fail at some point for some scenarios.…
-
Android – Reduce the size of your APK files
If it is one thing that I hate – it is apps that are HUGE downloads for really simplistic functionality. 40MB for an app that just accesses some messages and has hardly any images, what is it doing?? I have recently had quite an obsession trying to reduce my app size and have managed to shave off…
-
Getting Started: The Android Data Binding Library Part 1
Anyone who has dabbled a bit in Android Development will know that Android is lacking a key component of MVVM: The ability to bind data without a couple of lines of code. For instance, setting a TextView to some value retrieved from a server is pretty complex, considering the simplicity of the task: TextView textView =…
-
South African Lotto Results & Checker {ANDROID APP} – DEPRECATED
UPDATE : 11 September 2015 : Unfortunately I had to discontinue this service as the official Lottery Provider changed, and the results are not published in the same manner. Sorry! After searching the Google Play store for a Lotto app, I realised they were all pretty revolting, so I decided to create my own one…
-
Calories Burnt Calculation for Walking or Running in Java
Its surprisingly difficult to find a calorie calculation for Java for performing a number of steps at a certain speed. Based on the Compendium of Physical Activities (https://sites.google.com/site/compendiumofphysicalactivities/corrected-mets ) and using Corrected METS, I have converted the formulas on their website into Java code! I found the website particularly difficult to read as it did not…