Archive for category Android Development
Mobile HTML5 Offline app links
Posted by shawson in Android Development, HTML5, iPhone on September 14, 2011
I’m looking at writing some apps I did on the iPhone a while ago (the first of which will be Karma) to be mobile html5 offline accessible apps, using html5 audio/ canvas etc- so I’ll use this post to collect some useful links for research;
- http://www.html5rocks.com/en/mobile/mobifying.html
- http://www.html5rocks.com/en/mobile/touch.html
- http://diveintohtml5.org/
- http://www.modernizr.com/
- http://html5boilerplate.com/
- http://jquerymobile.com/
Also decided to use this as an opportunity to mess with nodejs, using one of the “nosql” db platforms;
http://blog.mongodb.org/post/812003773/node-js-and-mongodb
http://nodejs.org/
Creating stretchy “9 patch” buttons in Android
Posted by shawson in Android Development on September 8, 2011
Very cool button standard used in Android for creating flexible buttons – also has a little wysiwyg editor, tucked away in the SDK folder;
http://developer.android.com/guide/developing/tools/draw9patch.html
Useful Android development resouce
Posted by shawson in Android Development on August 24, 2011
Just googled onto this site http://www.androidsnippets.com/ which is an awesome resource if you’re new to Android- lots of code examples of common (and not so common) tasks!
Android app will not fill the screen on Tablet
Posted by shawson in Android Development on June 22, 2011
I’m just starting my first Android app, which allows users to draw to the screen. So accomplish this, I’m not using a normal xml layout file which is then “rehydrated”, but instead I’ve just created a class which inherits from View which deals with drawing the user input to the screen. I fired up a new project in IntelliJ IDEA and created my view and the classes which would run the app based on the html5 canvas/javascript prototype I’d put together a little while earlier. Everything worked well except the application only filled about a quarter of the screen when run on my Xoom tablet, despite me not actually having specified any screen sizes or limitations.
The solution, after some googling, was fairly simple- in the manifest you need to specify the minSdkVersion to be at least 4, as prior to this, varying screen sizes was not supported. I added the following to the bottom of my manifest file;
<uses-sdk android:minSdkVersion=”4″ />