Android Troubleshooting: App Crash on multiple orientation change

More of a note to my future self when developing android than anything else, since this is quite a specific corner case, but who knows, maybe it helps someone else out there 🙂   Problem An app I wrote seemed to be crashing randomly when a user did a orientation change (i.e. changed from landscape to portrait … Continue reading Android Troubleshooting: App Crash on multiple orientation change

Nugget Post: Android Process Dialog

A lesson that took me an hour to figure out: android progress dialogues will only be displayed on the UI if called/shown in a thread or async task. Basically when try to call a progress dialog directly from a fragment, android would simply not show the dialog. So the code would look something like this: https://gist.github.com/dvas0004/10993182   … Continue reading Nugget Post: Android Process Dialog

Nugget Post: Android threads and array adapters

An important point of note when using array adapters in android is that the notifyDataSetChanged method can only be called in the main UI thread. So when developing multithread android apps, it's important that the method is called within a runOnUiThread or similar. The notifyDataSetChanged is used to inform an array adapter that it's data source has been updated, so … Continue reading Nugget Post: Android threads and array adapters

Android NFC access card reader demo

What if your company/client has rolled out an access card system... You know, the sort that you swipe your card across a reader, it beeps green and doors open... and you'd like the same functionality for your mobile apps? Something like, the user swipes their card, and an app opens, detects the user, and displays … Continue reading Android NFC access card reader demo

Leassons Learned: Android SearchView

While working on a project that requires some android skills, I ran into some problems while coding a Search View. A search views is basically that nice looking search prompt that appears in an app's action bar... like this: There is an excellent guide by the folks at google on how to implement searchviews that's … Continue reading Leassons Learned: Android SearchView

SL4A – bluetooth_chat.py fix

I've been playing around with SL4A (scripting layer for android) - more specifically, python for android, and am impressed with the functionality and APIs till now. I ran across a small problem when attempting to run the included "bluetooth_chat.py" script. The error was something along the lines of the result for user input being none. … Continue reading SL4A – bluetooth_chat.py fix

Got 15 minutes? Easy webRTC android app in 3 steps!

WebRTC is an exciting feature in newer browsers. It allows you to transfer any data between two peers. In conjunction with HTML5 elements like the <video> tag, it enables browser-to-browser audio and video conference calls ... with no extra plugins or help needed, it all lives in your browser. You can check out a demo here: http://www.webrtc.org/demo The … Continue reading Got 15 minutes? Easy webRTC android app in 3 steps!