My research for the Institute of BackYard Studies requires a wee bit of programming on some android phones. Thanks to Dennis and Emma for responding to my twitter/facebook request for freebie handsets.
First impressions – huawei ascend g510 running android v4.1.1
- This is an ‘Optus’ badged beast with no sim card.
- What a freakin mess… apps & home screens scattered everywhere
- Found the on/off button top left (eventually)
- there are three icons on the bottom panel of the display – the middle one brings up some kind of menu, the left one looks like a back button, I have no idea what the three lines on the right hand side mean. [update: There are the usual capacitive touch button below the display for back, home and menu]
- SD card. Turns out there is an empty micro SD slot behind the rear cover which is removed by prising the bottom left corner. The first SD card I inserted did not work. The second showed up blank and could be formatted under system settings -> storage (when not connected via USB)
- After searching for and finding various file transfer utilities for mac OSX I accidentally discovered that plugging USB from Mac into phone when running brings up a prompt to go into USB mode. After that the file system appears in my OSX finder window and works as expected. [maybe the google supplied transfer app is for older versions of android ??]
- Found a cool app called ‘Physics Toolbox’ that exposes accelerometer data and can record same to a text file and share via email or bluetooth
- Found another app called ‘accelerometer’ that shows x,y values on a scope like screen, has a low pass filter and can show maximum values. Not so useful for me and my pendulum whimsy.
- The phone runs on Android 4.1.1 (Jelly Bean) with Huawei’s own Emotion UI 1.0 on top
- Found another app called ‘androsensor’ that shows lots of sensor raw data and promises to record / save to file (but I keep getting unable to write to SD card error – oh, that’s cos I was plugged into USB mode)
- SCREENSHOT – hold power and volume buttons at same time. Thanks.
- My first app: PROCESSING with android mode. Fire up processing. Add ‘android’ mode. Restart processing. Grab a sample app, change mode from java to android “is SDK installed NO”. Install android SDK.
- System settings -> developer options -> USB debugging (not sure if that was a good idea!)
- Get error: /Applications/adt-bundle-mac-x86_64-20130917/sdk/tools/ant/build.xml:542: Unable to resolve project target ‘android-10′
- Looks like I need to install the (OLD) android-10 files. android-18 is currently installed under \sdk\platforms\
- after much googling around, fire up eclipse -> window -> android SDK manager -> add v10 (accept license, download, … yep sdk\platforms\android-10 now installed)
- PROCESSING: grab a sketch & chose -> Run on device.
- Build: v22.2.1-833290
- Make a little ‘Hello Android’ app & run on device. Here ’tis:
Then things got messy:
- Getting processing to run sketch on emulator I ran into this can of worms. [fixed by SDK manager by uninstalling the intel x86 image]