B4A Library Analogue Stopwatch

It is a wrap for this Github project. It has an analogue stopwatch and analogue countdown timer.

Posting the following:
1. B4A sample project
2. B4A library files
3. resource.zip - extract it and copy the folder named resource to the same folder level as that of the /Objects and /Files folders of the B4A project
4. b4aAdditionalLibResource.zip - extract it and copy the resource folder to the root of your additional library folder.

Set up the correct paths for the following on lines 12 and 13 of the B4A project (Main activity):
B4X:
#AdditionalRes: C:\Users\----------2\Documents\Basic 4 Android\JOHAN APPS\JHS LIBS\resource\b4a_appcompat, de.amberhome.objects.appcompat
#AdditionalRes: C:\ANDRIOD_SDK_TOOLS\extras\android\support\v7\appcompat\res, android.support.v7.appcompat

You will also need android-support-v7-appcompat.jar and android-support-v4.jar in your additional library folder. You can download them from HERE. Copy them to your additional library folder.

Take note of the B4A project's manifest file in case you start a new project - it defines amongst others a number of activities

Take note of the B4A project's /Objects/res/blabla folders. They contain various files that should be set to READ ONLY before you run the B4A project for the first time.

Note that it will only work for API >= 17 (i.e version >= JELLY_BEAN_MR1)

For the timer:
1. It runs backwards as it is a countdown timer
2. Drag the hour / minute / second hands to how long you want the countdown to be. See the text at the bottom left of the countdown timer - it shows you what countdown you have set.
3. Once the countdown completes the countdown timer will "sound"

If you click on the word TIMER or STOPWATCH in the top bar it will switch between the stopwatch and timer. For each of the Stopwatch and Timer there are settings available when you click on the menu (dots) in the top bar.

Use the default back button of your device to navigate between the activities.

1.png


2.png


stopwatch.png


stopwatchrunning.png


timer.png


timerrunning.png


If you battle - SHOUT! Help is a posting away....
 

Attachments

  • AnalogueStopWatchLibFiles.zip
    44.9 KB · Views: 304
  • b4aAdditionalLibResource.zip
    775 bytes · Views: 324
  • b4aAnalogueStopWatch.zip
    50.4 KB · Views: 289
  • resource.zip
    423 bytes · Views: 294
Last edited:
Top