Skip to content

Content Tagged "android"

Page 2 of 6

Content Tagged "android"

Got an OnePlus Two - Cleaning it up

October 15, 2015Categories: Hardware, IT
Today I got a OnePlus Two without an invite, from one of the many crazy providers with European warehouses. Woo-hoo. Unfortunately, recent reports state they come with malware. Since this phone will not be used by me, I'll clean it up. Here are the steps I took: Preliminary steps First, booting up…

Addendum to Installing CyanogenMod 12.1 on a LG 802

October 13, 2015Categories: Hardware, IT
Today I got sufficiently annoyed with the stock version of Lollipop on my phone and decided to try (again) CyanogenMod (no longer alive). I've tried to follow the steps in the wiki, but got into problems, so here's my alternative experience. Preparation Make sure you install TWRP or CWM so you…

Manually Create a Retrofit/OkHttp Response for Testing

September 21, 2015Category: Software
I've got a method in an use case which requires a Retofit Response object as parameter and I need to test it. Now, I can use the Retrofit itself and build one with the network, but it would require the full android shebang. I've opted instead for building a Retrofit Response manually. My method is…

MVP in Android - A Summary

September 14, 2015Category: IT
These days I'm reading on architectures. I had a look at MVC, MVP, MVVM and how they are applied (adapted to?) to Android applications. Here are some short points about MVP. Model-View-Presenter has been adapted to Android and is advocated by more experienced people than I. It is interesting to…

Architectures in Android Applications - Quick Notes

September 14, 2015Category: IT
I'm looking at architectures MVP, MVVM, MVC ... applied to Android applications and I find the current state of things a bit of a mess. Everybody has their own preferred architecture, finds another one and claims it's better and refers to Uncle Bob . It's funny at some extent because it's like…

ProgressDialog in AsyncTask: Dynamic Update Text/Title

July 17, 2015Category: Software
Sometimes, you may want to update the text shown in the progress dialog. If you try to perform this in doInBackground() you'll get an exception along the lines: Only the original thread that created a view hierarchy can touch its views The solution is to not do it in doInBackground() but instead…

ProgressDialog in AsyncTask: Dynamic Update max()

July 16, 2015Category: Software
Sometimes you determine the max of the progress bar in the background task. Unfortunately, there's almost no way to transmit that to an UI thread-executed method like onProgressUpdate() (well, you could, but that'd be abusing the method). Instead you can do something like: This way, the variables…

Butterknife: ClassCastException: Symbol$VarSymbol ...

July 10, 2015Category: Software
The other day I decided to update my Butterknife from 6.x.x to 7.x.x. Immediately I noticed some refactoring (e.g. @InjectView became @Bind). I updated my code and got build (from Android Studio's "make"). Unfortunately, when I tried to test it, I got: java.lang.ClassCastException: com.sun.tools…

Gradle(w) and Proxy Authentication

June 18, 2015Category: Software
The recent updates in Android Studio eliminate the possibility of passing JVM arguments to gradle. That's quite unfortunate because I quite liked my solution and now I was getting a (not) nice Connection refused message... So I had to find a different solution. Environment Variable As always…
PreviousNext

All tags