Android Question Problem into Android TV

CyclopDroid

Well-Known Member
Licensed User
Longtime User
My game runs normally on smartphones but, on TV, suddenly it ends randomly.
I have no error and no warning ... but, on TV, it continues to exit the game in different moments.
It happened to any of you? How to fix it?
 
No. I'm not able to read the logs on my TV. My TV is in a different room than the PC and I transfer the APK via USB stick. My TV is a Sony 50W808C ... you'd know how to do? Thank you.
 
Upvote 0
I am ashamed to say it ... but I've never used. :oops:
My TV has an IP address and tried to put it in B4A-Bridge ... but do not know how to continue, and if it is right.
Sorry.:oops:
 
Upvote 0
Ok, I've find a post where I can download th e APK file (google TV not view this APP). Now I install into my TV. I've read in this post when use it.
Now I try it and see if I can not connect to the TV.
For now, thank you ;)... if there are problems, or would I need help, I will write here.
PS: Basically, if I can connect, I execute my game from the PC and the TV will see me as a device and I can view Log in debug?
 
Upvote 0
Ok, I've tested my game into TV with Debug Mode but into Log, not hve error...only warning on top (Only two Sub not Used...the game is a working progress now).

EDIT: Ok, it's my first time using this Bridget and I did not press the Connect button under the Log (I only clicked Connect to Tools menu).
Now I see the log and I realize that the module with charge the game (StartGame) goes in and immediately loads the Resume and call the Resume in the Main module.
In Resume I have not added anything (I removed the "If Main.Closing Then Activity.Finish") but the games, into TV, it's close.

This is a LOG on Smartphone:
Copying updated assets files (125)
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (startintro) Create, isFirst = true **
** Activity (startintro) Resume **
** Activity (startintro) Pause, UserClosed = true **
** Activity (selezione) Create, isFirst = true **
** Activity (selezione) Resume **
uomo
** Activity (selezione) Pause, UserClosed = true **
** Activity (startgame) Create, isFirst = true **
** Activity (startgame) Resume **
No wakelock.
It's OK

This is a Log on TV:----
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (startintro) Create, isFirst = true **
** Activity (startintro) Resume **
** Activity (startintro) Pause, UserClosed = true **
** Activity (info) Create, isFirst = true **
** Activity (info) Resume **
** Activity (info) Pause, UserClosed = true **
** Activity (selezione) Create, isFirst = true **
** Activity (selezione) Resume **
** Activity (main) Resume **
Wrong

...in other test:
** Activity (main) Pause, UserClosed = false **
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (startintro) Create, isFirst = true **
** Activity (startintro) Resume **
** Activity (startintro) Pause, UserClosed = true **
** Activity (info) Create, isFirst = true **
** Activity (info) Resume **
** Activity (info) Pause, UserClosed = true **
** Activity (selezione) Create, isFirst = true **
** Activity (selezione) Resume **
uomo
** Activity (main) Resume **
Wrong

...and in other....
...
...
...
uomo
** Activity (selezione) Pause, UserClosed = true **
** Activity (startgame) Create, isFirst = true **
** Activity (startgame) Resume **
** Activity (main) Resume **
Wrong
 
Last edited:
Upvote 0
Indeed. :( Unfortunately the game will continue to exit if they run on TV. :confused:
The thing I do not understand is why on smartphones does not end and it does not display any warning or error in log. :confused:
 
Upvote 0
It's True, because the activity Info start only if you use the Adroid TV and not the smartphone. They are the command of remote Tv.
The first log is the smartphone and the problem persist if I remove the calling on this activity.
 
Upvote 0
I do not think ... I remove the call to Activity Info the error still continues to give it.
 
Upvote 0
I think it convenient that I use your logging program ;) ... although I do not remember the name and where I put it! :(:p
 
Upvote 0
although I do not remember the name
upload_2016-2-24_10-30-6.png
 
Upvote 0
This is the LOG with tour program:

Code: Copy
** Activity (main) Pause, UserClosed = false **
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Exec: GangofPoker.Activity_Create
    FirstTime = true
** Activity (main) Resume **
Exec: GangofPoker.Activity_Resume
** Service (starter) Start **
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.tmrLampeggio_Tick
Exec: GangofPoker.Activity_KeyPress
    KeyCode = 23
Exec: GangofPoker.PnlIntro_Click
** Activity (main) Pause, UserClosed = true **
Exec: GangofPoker.Activity_Pause
    UserClosed = true
** Activity (startintro) Create, isFirst = true **
** Activity (startintro) Resume **
** Activity (startintro) Pause, UserClosed = true **
** Activity (info) Create, isFirst = true **
** Activity (info) Resume **
** Activity (info) Pause, UserClosed = true **
** Activity (selezione) Create, isFirst = true **
** Activity (selezione) Resume **
** Activity (main) Resume **

I do not see anything different from previous behavior. It seems not to understand where it ends and exits. :confused:
 
Last edited:
Upvote 0
** Activity (main) Pause, UserClosed = true **
Exec: GangofPoker.Activity_Pause
UserClosed =
true
** Activity (startintro) Create, isFirst = true **
**
Activity (startintro) Resume **
**
Activity (startintro) Pause, UserClosed = true **
**
Activity (info) Create, isFirst = true **
**
Activity (info) Resume **
**
Activity (info) Pause, UserClosed = true **
**
Activity (selezione) Create, isFirst = true **
**
Activity (selezione) Resume **
**
Activity (main) Resume **

main (GangofPoker) Pause, Userclosed = true

then

"startintro", "info", "selezione" do nothing?

After selezione resume, main resume ! ?
 
Upvote 0
No...sorry. I've insert your log only into Main code :P
But, when run with all log, I see only a button click (KeyCode) and Timer_tick (tmrTimer_tick).
I've remove the Timer but not change the problem.
 
Upvote 0
Back
Top