I create an app , i wonder if i can set an password to my Apk just in decompiling ,so when anyone try to decompile the application , it will ask for the password , so that will prevent my apk from hacking and preserving my privacy .
any advice will be appreciated , thanks alot .
No you can’t do this.
You may use obfuscation libraries like yGuard or ProGuard, BUT:
I have tried an obfuscator with an Android-App and after obfuscation, the DEX-compiler was unable to create the Android-App.