Android Linux / Raspberry Pi Bluetooth communication

This post explores my attempt to get bidirectional bluetooth communication going between an android device and a linux computer (in this case a Raspberry Pi running Raspbian). This post is part of the documentation of knowledge acquired while building an "AquaPi" - a raspberry pi that will act as a control center for an aquarium. … Continue reading Android Linux / Raspberry Pi Bluetooth communication

Advertisements

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

Android (SL4A) bluetooth to Linux (ubuntu)

As a follow up to my recent post I tried to program a very basic launcher. The idea is to pass commands from my android phone to my ubuntu laptop. The android side of things was already catered for by SL4A, I used a fixed version of their bluetooth_chat.py program that comes bundled with SL4A python. … Continue reading Android (SL4A) bluetooth to Linux (ubuntu)

Nugget Post : Running Kivy + SL4A’s Python for Android together using QPython

Kivy is the next python framework I went discovering, but I really missed the convenient "droid" package that SL4A had. SL4A made it so easy to use native android features... like "Toasts". With Kivy, (at the moment at least - devs are hard at work to fix this!) it's a bit tougher - you need … Continue reading Nugget Post : Running Kivy + SL4A’s Python for Android together using QPython