javiersantos/PiracyChecker

Adding button to activity

avipars opened this issue · 4 comments

I love your library but need to modify it to work with my app and prevent it from being reverse-engineered. I'd like to change the license activity a bit to allow for a button which opens an intent. I don't want to use the callback to launch my own for fear that it would be easier to reverse it.

So I forked the library but kotlin isn't my strong suite. If I want to add a button and then have my activity call it, do you think that's possible?

I don't understand your inquiry 🤔

So,

There is the activity that pops up if the app has been pirated. Thankfully text works fine. But I would like to modify the layout so I can have a button with an intent. In this case, it is either to open a URL or a Mailto: request.

I tried playing around with the text and was able to have it lead to a url once clicked on... they was just with xml. It would be nice to be able to add a button too ... not just a text view.

Even if this is a custom solution, it would be awesome if you can help me implement it.

Well, the easy way is for you to use the callback and create your own activity, but you said you don't want to, so your only choice would be editing the library source to make it match your needs