1
I am working on the development of an app and I have a question, I need my app to perform an action when opening it. Can anyone tell me how to do that? I’ve looked and I can’t find anything about it.
1
I am working on the development of an app and I have a question, I need my app to perform an action when opening it. Can anyone tell me how to do that? I’ve looked and I can’t find anything about it.
Browser other questions tagged java android
You are not signed in. Login or sign up in order to post.
It’s not just throwing the code inside the
oncreate
? makes a mistake?– rray
So that’s what I did, but I didn’t succeed. It doesn’t give any error just doesn’t show the result.
– Mateus
What I’m doing is taking a calculus done on an Activity and making it appear on the main Activity in a textView.
– Mateus
Need [Edit] the question and add more details, I don’t know exactly what you want the code to do.
– rray
Yes I will do that I am not with the code at the moment arriving at home I will edit here, thanks for while
– Mateus
Search an app’s Lifecycle, take a look at the link below and see if it meets your need. Understanding the lifecycle of an Android app
– Renato Mota
From what you’ve said, it’s probably because the second Activity hasn’t started, so there’s no value to be passed on to the main Activity. But we can only know with the code and the error log
– Leonardo Assunção
arriving I will put the code and give a touch here more thank you for while
– Mateus