Sub Activity_KeyPress(KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then
t_play.Enabled = False
If MB.MediaIsPlaying Then MB.MediaStop
End If
If Layout = "Player" Then
Dim vol As Int
If KeyCode = KeyCodes.KEYCODE_X Then
vol = ph.GetVolume(ph.VOLUME_MUSIC) + 1
ph.SetVolume(ph.VOLUME_MUSIC, vol, True)
End If
If KeyCode = KeyCodes.KEYCODE_ENTER Then
vol = ph.GetVolume(ph.VOLUME_MUSIC) + 1
ph.SetVolume(ph.VOLUME_MUSIC, vol, True)
End If
Return True
End If
Return False
End Sub