I have added in apk inputdialogs so that user can enter pin (4 digit numbers) and when i press on remote OK button it exits apk and i don't see any error in logcat in b4a...where i im doing wrong?
This is my code:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
			
			This is my code:
			
				B4X:
			
		
		
		Sub Activity_KeyUp (KeyCode As Int) As Boolean
   'SELECT - Remote Code
    Select KeyCode
       
Case KeyCodes.KEYCODE_DPAD_CENTER
                    If (Round(clvMasterCh.ScrollPosition/250) <> SelCh-1 And tmrScrollers.Enabled = True) Then
                        SelCh = ScrolledChannel
                        'CHECK - porno lock
                        If (Channels(SelCh, 5) = "false") Then
                            'DEFINE - InputDialog
                            Dim InputDialog1 As InputDialog
                            Dim Ret As Int
                            'SET - Type
                            InputDialog1.InputType = InputDialog1.INPUT_TYPE_NUMBERS
                  
                            'SETTINGS - InputDialog
                            InputDialog1.Input = ""
                            InputDialog1.HintColor = Colors.ARGB(196, 255, 140, 0)
                            Ret = DialogResponse.CANCEL
                            Ret = InputDialog1.Show("CHANNEL Locked. Please Enter PIN:", "Enter PIN", "Yes", "No", "", Null)
                          
                            'VALIDATE - Pin
                            If (InputDialog1.Input = Authorisation(2)) Then
                               'DO some stuff
                               Log("Authorisation Successfull...")
                            End If
                        Else
                          
                               'DO another some stuff
                               Log("Doing another stuff...")
                        End If
                    End If
    End Select
End Sub 
				 
 
		 
 
		 
 
		 
 
		 
 
		