Implemented a conditional check to allow for the duration to be provided on the Android platform for SDK 8 and above.
Implemented a conditional check to support providing the duration limit for the Android platform SDK 8 and above. The value is passed using the string literal value to ensure the logic is not dependent on SDK version specifics.