In my android app I want to run an class but in it...
# android
p
In my android app I want to run an class but in it won’t run at run time when I want open the app it won’t run. I have an app which has multiple screens and when I enter the profile page I wan’t to run that file.
🧵 1
google 5
a
Is that class an Activity?
p
Yep
a
is it declared in the AndroidManifest.xml file?
p
Yes
a
What error do you get? Can you provide a screenshot of your error in console?
p
There is no error
it just would not run
I have to do an action when a button is clicked and it won’t perform it
a
Run it with debug mode, you will get an error in console.
p
How do you do that?
a

https://www.youtube.com/watch?v=90XDJTriJ1s

👍 1
p
Okay thanks I will try that I will tell it to you. I might take some time as I have to fix another bug that is not allowing my app to boot so once I am done fixing that bug I will update you.
a
okay, let me know
p
Sure
Nope nothing
I think that it’s not calling the file.
s
you say that when you click a button, you should go to the next screen. how are you doing that?
p
No, in my app I have two screens and there is a navigation menu in the bottom
What I am trying to do is that when the user switches to that other screen I want to run that script.
or else run at build time and when the button is clicked or an action is performed on that page do the following.