Public Sub AddRemoteInput (Bmp As Bitmap, Title As Object, ResultKey As String, Service As Object) As NB6
If IsBuilder = False Then Return Me
Dim RemoteInputBuilder As JavaObject
RemoteInputBuilder.InitializeNewInstance("android.app.RemoteInput$Builder", Array(ResultKey))
RemoteInputBuilder.RunMethod("setLabel", Array(Title))
Dim builder As JavaObject
builder.InitializeNewInstance("android.app.Notification$Action$Builder", Array(CreateIconFromBitmap(Bmp), Title, CreateReceiverPendingIntent(Service, ResultKey)))
builder.RunMethod("addRemoteInput", Array(RemoteInputBuilder.RunMethod("build", Null)))
Dim ac As JavaObject = builder.RunMethod("build", Null)
NotificationBuilder.RunMethod("addAction", Array(ac))
Return Me
End Sub