updated to fix bug in saving preferences in android
added android bits