Android Question How to make animated progress bar ?

IslamQabel

Active Member
Licensed User
Longtime User
It is the first time to use progress bar, my case is calculating percentage for example: x1= (X/250)*100...x1 will take values from 0 to 100 ....How to transfer value of x1 into progress of the progress bar ?

i want simple code that i can understand it good

thanks
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
I really think that you are wasting your time. You will soon need to upgrade to B4A v8+ anyway to meet the targetSdkVersion requirements.

It will allow you to use a progress bar such as this one:
CircularProgressBar.gif


Or this one:
B4XProgressBar.gif


As these views are implemented as custom views you can customize them.
 
Upvote 0

IslamQabel

Active Member
Licensed User
Longtime User
could someone explain the following error message when i run the an app in my mobile phone

"An error has occurred in sub:
java.langillegalStateException: interval must be larger than 0"

and ask me to continue or not?

Noting that:
the app uses bluetooth connection with bluetooth module, when the app finished searching and connecting successfully with the module. it appears immediately after "connected successfully" toast message. So i had two choices:

choice#1:when choosing continue...the message disappeared and the app continues working good without any problems.
choice#2:when choosing not to continue...the app is closed...then i opened app again and then searching again and connected successfully with bluetooth device that message did not appeared !!!???
 
Upvote 0
Top