0

Here is the img: http://i.stack.imgur.com/pTbN8.png

sorry about the headache :) so i try to do this onPause code. I think the method to short and i got also red line , I'm really sorry about my spam guys. Thanks!

And i want to pause the app when click home button because now when click home butoon the flash sound still run in background.

here is the image of this issue: http://i.stack.imgur.com/pTbN8.png

Gil Ralph
  • 27
  • 1
  • 5

1 Answers1

1

Looks like the method you're trying to call doesn't exist, or you're not calling it in the right way. You probably want to do what's explained in this answer: https://stackoverflow.com/a/6230902/88851

So you should either copy-paste this code in your onPause() and onResume() methods, renaming the method to call as appropriate, or write a callHiddenWebViewMethod() method that does the private method call.

Community
  • 1
  • 1
Bastien Léonard
  • 58,016
  • 19
  • 77
  • 94