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)

Advertisements

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

SL4A + Python 4 Android : Bluetooth and Webviews example

Most of the other non-native frameworks that I've used so far are often very good, but lack low-level connectivity modules such as bluetooth (though they pretty much do anything else...). So while hunting around for what I might be able to use for developing a bluetooth app, I ran across SL4A - scripting language for … Continue reading SL4A + Python 4 Android : Bluetooth and Webviews example

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

Lessons Learned : Linux System Tray Icons in python

While programming in python, for an Ubuntu/Linux Mint target, you may want to include a system tray icon for batter interaction with users. In Ubuntu, these are called "application indicators". A basic appindicator icon is quite simple to do in python via PyGTK. There's a very good example here: http://developer.ubuntu.com/resources/technologies/application-indicators/ Scroll down to the PyGTK … Continue reading Lessons Learned : Linux System Tray Icons in python

Nugget Post: Python Flask framework and multiprocessing

When using the excellent Flask framework in conjunction with the python multiprocessing module , you may notice that the inbuilt Flask webserver will try to start up twice, leaving you with two webserver processing, each trying to bind to the same port. Needless to say this results in unexpected errors. Apparently this is a problem with … Continue reading Nugget Post: Python Flask framework and multiprocessing

Python system tray notifications in Linux

As a follow up to my previous post, here's how to accomplish system tray notifications in ubuntu linux and family. I must say, compared to windows, this is child's play... under ten lines of code! #!/usr/bin/python import sys import pynotify if __name__ == '__main__': if not pynotify.init ("summary-body"): sys.exit (1) # try the summary-body case … Continue reading Python system tray notifications in Linux