[droid] Stagefright + java fixes