Analyzed the code with the Android Studio tool and solved most warnings.