delozoya Member Licensed User Longtime User Oct 29, 2015 #1 How update the progress bar in the custom notification? I have this code for notification: B4X: cn.Initialize(3) cn.Number = 3 cn.setIcon("icon") cn.TickerText = "Text Plus Progress Bar Sample" cn.AutoCancel = False cn.SetTextColor("title", Colors.Red) cn.SetText("title", "Text Plus Progress Bar Title") cn.SetTextSize("title", 16) cn.SetImage("image", Null) cont_prog=True cn.SetProgress("progress", 100,progreso_Actual , False) cn.Notify(3) and this for the other progress bar in the activity: B4X: Sub dd_Progress(Progress As Long, Total As Long) ProgressBar1.Progress = Progress / Total * 100 Log(NumberFormat(Progress / 1024000, 0, 0)) progreso_Actual=Progress / Total * 100 progreso_total=(NumberFormat(Total /1024000 , 0, 0)) Label1.Text = NumberFormat(Progress / 1024000, 0, 0) & "MB / " & _ NumberFormat(Total /1024000 , 0, 0) & "MB" aux=Label1.Text aux_total=Total End Sub Any idea for update the progress bar in notification with progress bar in activity?
How update the progress bar in the custom notification? I have this code for notification: B4X: cn.Initialize(3) cn.Number = 3 cn.setIcon("icon") cn.TickerText = "Text Plus Progress Bar Sample" cn.AutoCancel = False cn.SetTextColor("title", Colors.Red) cn.SetText("title", "Text Plus Progress Bar Title") cn.SetTextSize("title", 16) cn.SetImage("image", Null) cont_prog=True cn.SetProgress("progress", 100,progreso_Actual , False) cn.Notify(3) and this for the other progress bar in the activity: B4X: Sub dd_Progress(Progress As Long, Total As Long) ProgressBar1.Progress = Progress / Total * 100 Log(NumberFormat(Progress / 1024000, 0, 0)) progreso_Actual=Progress / Total * 100 progreso_total=(NumberFormat(Total /1024000 , 0, 0)) Label1.Text = NumberFormat(Progress / 1024000, 0, 0) & "MB / " & _ NumberFormat(Total /1024000 , 0, 0) & "MB" aux=Label1.Text aux_total=Total End Sub Any idea for update the progress bar in notification with progress bar in activity?