I've released an audio player for android that utilises the ffmpeg library for decoding audio.
You can also use libav if you prefer.
Thursday, April 30, 2015
Wednesday, February 18, 2015
Bustoppa Android App
I've just released an android app of mine for finding out when the bus leaves around
Wellington, New Zealand.
It's called Bustoppa and you can download it here .
I'll be posting the source code on my github account shortly.
Wellington, New Zealand.
It's called Bustoppa and you can download it here .
I'll be posting the source code on my github account shortly.
Thursday, January 29, 2015
Android SearchView demo
This is a small demonstration of how I managed to get the Android SearchView widget working nice.
You can find the source code here
This is a standalone app supporting android versions 8 -> 21 featuring:

You can find the source code here
This is a standalone app supporting android versions 8 -> 21 featuring:
- Proper material theme styling of the search view
- How to wire up the search view to a ContentProvider
- How to use the SearchRecentSuggestionsProvider

Monday, November 24, 2014
Android Emulator Location Setter
Just uploaded a python script to https://github.com/danbrough/html_android_controller
for setting the GPS location on your android emulator.
It's a simple python webserver that presents a Google Map at http://localhost:8888 and when you click on the map it updates the emulators location with that location.
Test it with your own GPS enabled applications or use the "My Location Demo" in
the SDK sample app at: https://developers.google.com/maps/documentation/android/intro#sample_code
for setting the GPS location on your android emulator.
It's a simple python webserver that presents a Google Map at http://localhost:8888 and when you click on the map it updates the emulators location with that location.
Test it with your own GPS enabled applications or use the "My Location Demo" in
the SDK sample app at: https://developers.google.com/maps/documentation/android/intro#sample_code
Friday, July 5, 2013
Nvidia 304.88 legacy drivers on linux 3.10
UPDATE: You shouldn't need this patch anymore and use the nvidia 304.108 driver instead.
Here's a patch to get the NVIDIA-Linux-x86_64-304.88 drivers running on the new linux 3.10 kernel. (also works on the 3.10.1 kernel)
If you use gentoo then you can place the patch in the /etc/portage/patches/x11-drivers/nvidia-drivers/ folder and it will automatically be applied to any nvidia-drivers compilation.
otherwise ..
Feel free to leave a comment if this patch is useful.
Here's a patch to get the NVIDIA-Linux-x86_64-304.88 drivers running on the new linux 3.10 kernel. (also works on the 3.10.1 kernel)
If you use gentoo then you can place the patch in the /etc/portage/patches/x11-drivers/nvidia-drivers/ folder and it will automatically be applied to any nvidia-drivers compilation.
otherwise ..
# Download NVIDIA-Linux-x86_64-304.88.run and unpack: sh NVIDIA-Linux-x86_64-304.88.run -x cd NVIDIA-Linux-x86_64-304.88 # apply the patch patch -p1 < .. path to the patch file # and install ./nvidia-installer
Feel free to leave a comment if this patch is useful.
Tuesday, July 2, 2013
Java API for mega.co.nz
I've been working on a java api for the mega.co.nz file storage service.
It includes a demo application for android.
Currently a work in progress .. but quite a bit of functionality is working.
Checkout the source via:
It includes a demo application for android.
Currently a work in progress .. but quite a bit of functionality is working.
Checkout the source via:
git clone https://github.com/danbrough/java_mega_api.git
You can then run the test application using maven:
mvn -DMEGA_API_KEY="your api key" test
You can get an API key from https://mega.co.nz/#sdk
Tuesday, May 21, 2013
Gentoo on the GK802
Here's a step by step account of my attempts to get gentoo running on the gk802 device.
You can find lots of information and software for the gk802 at the armtvtech.com forums and before you try following what I've done you should get ubuntu running first by following the instructions at jaz's hacks to see how linux performs and to familiarise yourself with the gk802 if you haven't played round with these arm devices before.
Here is a stage 3 gentoo image that you can put on a sdcard and boot.
Its based on a stage3-armv7a-20130208.tar.bz2 whose only modification is that
that the root password has been set to "gk802" and wpa_supplicant has been installed on it so you can access your wifi network.
You now have a very basic gentoo setup running.
You can get the kernel source from https://github.com/imx6-dongle/linux-imx and to install your new kernel you'll need to:
For configuration options that are known to work you can look at the freescale/gk802 package in my gentoo overlay at: https://github.com/danbrough/freescale-gk802 or just:
There are more ebuild's for getting hardware acceleration working but they are very much under development.
You will need the kernel sources configured and unpacked at /usr/src/linux.
You can use distcc to compile faster.
First you need to follow these instructions and in the process issue a command similar to this:
Enjoy.
You can find lots of information and software for the gk802 at the armtvtech.com forums and before you try following what I've done you should get ubuntu running first by following the instructions at jaz's hacks to see how linux performs and to familiarise yourself with the gk802 if you haven't played round with these arm devices before.
Here is a stage 3 gentoo image that you can put on a sdcard and boot.
Its based on a stage3-armv7a-20130208.tar.bz2 whose only modification is that
that the root password has been set to "gk802" and wpa_supplicant has been installed on it so you can access your wifi network.
bunzip2 -c gentoo_gk802_stage3.fs.bz2 | dd bs=1M of=/dev/yoursdcard
Insert the sdcard in the internal slot on the gk802 board and its ready to boot.You now have a very basic gentoo setup running.
You can get the kernel source from https://github.com/imx6-dongle/linux-imx and to install your new kernel you'll need to:
emerge dev-embedded/u-boot-tools git cd /usr/src/ git clone git://github.com/imx6-dongle/linux-imx.git linux cd linux gunzip -c /proc/config.gz > .config make menuconfig make -j4 make uImage make modules_install dd if=arch/arm/boot/uImage of=/dev/mmcblk0 bs=1M seek=1
For configuration options that are known to work you can look at the freescale/gk802 package in my gentoo overlay at: https://github.com/danbrough/freescale-gk802 or just:
git clone git://github.com/danbrough/freescale-gk802.gitThere are more ebuild's for getting hardware acceleration working but they are very much under development.
You will need the kernel sources configured and unpacked at /usr/src/linux.
You can use distcc to compile faster.
First you need to follow these instructions and in the process issue a command similar to this:
crossdev --b 2.23.1 --g 4.7.3 --l 2.17 --k 3.1 --target armv7a-softfp-linux-gnueabi.. if your gk802 happened to be running with binutils-2.23.1, gcc-4.7.3, glibc-2.17 and kernel headers 3.1
Enjoy.
Subscribe to:
Posts (Atom)