How can i call a different method when i press and release release a button?

173
January 21, 2018, at 12:18 PM

I'm using android studio 3.0.1. I made 2 buttons and create "onclick" method (play and right) by which I can play media files by clicking in those buttons. But i need help "how can i create a method when i release a button press the media file stopped playing". Here is the code for my "onclick" method and my button ids are btn1 and btn2. please give me code for releasing button.

READ ALSO
Invisible fullscreen button

Invisible fullscreen button

i want to figure out a solution for the problem, creating a button over nearly fullscreen, but independent of the other stuff i want to put in this layoutSo like an invisible button, in which i can place for example an imageView or multiple imageViews

272
Data received over BluetoothSocket is corrupted

Data received over BluetoothSocket is corrupted

I have been writing an app that is supposed to send files over Bluetooth to another device that is running the same applicationI had it sending files successfully but with one big problem

164
How to be sure that auth.currentUser is null and it has been initialized?

How to be sure that auth.currentUser is null and it has been initialized?

In my unity app i need to check in Awake whether the user is signed in on device (authCurrentUser is not null the start of app), and handle both cases

196