Refactor.
Add Java compile argument.
Fix import error. Fix compile warning of toast.
Fix cache bug. Move some files to new package.
Move files for refactor.