Formatted AndroidObjectFactory.java code.
Fix NPE from AndroidObjectFactory.