I have a developer eyes-only activity that I don’t want end users to reverse engineer to find. In my local project, I have it defined. But on deployment, I do not want this activity to be available at all . Thanks
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, the activity will still be in the APK… but it will never be seen by the system, and thus can never be launched.
If you really care about preventing users from reverse engineering your APK, the simple solution would be to just take the activity out of your project all together. Ideally you would want your downloadable APK to be as small as possible anyway. If you want to keep the activity for deployment purposes, then you could always clone your current project and keep it as a backup on your local machine.