Presently i am a newbie in android development .. I need to develop a secured android application so that i can save it from getteg pirated.
For security of application i have used RMS in J2ME.In J2ME i use to do following steps :
- generate a serial number(some random number)
- save that number in rms,on next launch of application display the same serial number on screen and ask user to input valid activation code then if user enters correct activation code then application activates and flag is set to true and i save this flag value in other rms
- if flag value is true then home screen is displayed to user on launching app again else activation page is displayed.
I want to implement this concept in android ..Please guide me how to do it.Or tell me if any body knows some better way for doing this in android.
Secondly I want to obfuscate the apk file before releasing the application..after goggling for 2 days i found that it can be done using proguard.But i am not getting how to obfuscate the code.Please guide and help me for sorting both issues.
Thanks