The topic of piracy is always a touchy subject, but I feel that the grass roots style of Android development has created an environment that should be free of piracy. Almost every task one might perform with an Android device can be completed with a free app. And the apps for sale usually are very affordable. My favorite are the apps that offer 99% of the features in the free version, where buying it later is a really great way to thank the developer.
This being said, the reality is that if you plan to sell your app you need to make some effort to make it difficult to crack. Get some pointers on the topic by reading the guide posted by XDA Recognized Contributor Quinny899. His first bit of advice is to design your app to detect and combat programs designed to automatically crack apps. This includes code examples which disable or force uninstall Lucky Patcher and Freedom. Of course he also recommends using code obfuscation.
Good info doesn’t end with the first post in the thread. There is already a bountiful conversation going, and I hope you’ll join in to share your own ideas.