https://kotlinlang.org logo
Title
p

Pypdeveloper

04/28/2020, 6:46 AM
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.
:thread-please: 1
:google: 5
a

Antonio

04/28/2020, 7:43 AM
Is that class an Activity?
p

Pypdeveloper

04/28/2020, 7:44 AM
Yep
a

Antonio

04/28/2020, 7:44 AM
is it declared in the AndroidManifest.xml file?
p

Pypdeveloper

04/28/2020, 7:44 AM
Yes
a

Antonio

04/28/2020, 7:45 AM
What error do you get? Can you provide a screenshot of your error in console?
p

Pypdeveloper

04/28/2020, 7:45 AM
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

Antonio

04/28/2020, 7:46 AM
Run it with debug mode, you will get an error in console.
p

Pypdeveloper

04/28/2020, 7:46 AM
How do you do that?
a

Antonio

04/28/2020, 7:48 AM

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

👍 1
p

Pypdeveloper

04/28/2020, 7:50 AM
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

Antonio

04/28/2020, 8:16 AM
okay, let me know
p

Pypdeveloper

04/28/2020, 8:16 AM
Sure
Nope nothing
I think that it’s not calling the file.
s

Steve

04/28/2020, 4:53 PM
you say that when you click a button, you should go to the next screen. how are you doing that?
p

Pypdeveloper

04/29/2020, 2:00 AM
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.