Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding button to activity #89

Open
avipars opened this issue Oct 21, 2020 · 4 comments
Open

Adding button to activity #89

avipars opened this issue Oct 21, 2020 · 4 comments

Comments

@avipars
Copy link
Contributor

avipars commented Oct 21, 2020

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?

@jahirfiquitiva
Copy link
Collaborator

I don't understand your inquiry 🤔

@avipars
Copy link
Contributor Author

avipars commented Oct 21, 2020

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.

@jahirfiquitiva
Copy link
Collaborator

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

@avipars
Copy link
Contributor Author

avipars commented Oct 22, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants