-
Notifications
You must be signed in to change notification settings - Fork 98
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
TextView not working when I changing activity . #39
Comments
on SecondActivity once you consume the first message (first time) using You need to send it again if you want to consume it again. |
I can't understand. Can you explain in detail ? |
Server (Java), Client (Android app)-
|
In MainActivity I get IP address and port number using edittext. I want to send message only from server to client. I changed this project's MainActivity to soc.java class. soc.java
I want to send message only from server to client and view that message on SecondActivity. SecondActivity
soc.java
Server.java
The TextView works smoothly and shows the message when opening the SecondActivity for the first time. But for the second time, when I go back to MainActivity and open the SecondActivity, the TextView doesn't work. My app is fully based on this project. I changed this project's MainActivity to soc.java class. How can I solve this? |
What message do you see for the first time? Any screenshot? |
Can I use this in server.java ?
In my SecondActivity
Will it work ? |
Hi @parasuraam , It's hard to debug by just seeing some files. Can you share your project link (Github) if that is public? |
My project : https://github.com/parasuraam/remote-pc what I did wrong in this code ? How can I solve this ? |
When I go second time to SecondActivity it comes like this
My project : https://github.com/parasuraam/remote-pc |
When I go first time to SecondActivity it comes like this
When I go second time to SecondActivity it comes like this
|
I want to add a message option to send message from server to client with this project.
I have two Activities: MainActivity and SecondActivity. On MainActivity I click on a button and go to SecondActivity.
SecondActivity
The TextView works smoothly and shows the message when opening the SecondActivity for the first time.
But for the second time, when I go back to MainActivity and open the SecondActivity, the TextView doesn't work.
How can I solve this?
The text was updated successfully, but these errors were encountered: