• Post Reply Bookmark Topic Watch Topic
  • New Topic

End call button

 
Jerry Gomez
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,

When i press the End call button, it`s doesnt finish my activity.
Even when i setup a Buttonlistener and trace it with log.i(keyCode,"").
It doesn't come up.

Has anyone a sollution for this problem.

Thanks in advance.

Greetjes,
 
Tim Moores
Saloon Keeper
Posts: 3326
61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is "the End call button"? Something in your app?
 
Jerry Gomez
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its the red button on your phone to end a conversation or to stop something.
 
Tim Moores
Saloon Keeper
Posts: 3326
61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does that button have to do with any app you're writing? How do you hope to attach any listener code to that?
 
Jerry Gomez
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to kill a thread that i`m running in the background, when someone stops the application.
 
Harsh Jog
Greenhorn
Posts: 2
Android Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried overriding onKeyDown() of your activity?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!