Why won't Taximeter start-up from the API?

Post date: 27-Sep-2024 12:23:19

Android 10 (API level 29) and higher place restrictions on when apps can start activities when the app runs in the background.   Unfortunately this restriction affects Taximeter API's startup(String packageName) method.   For your API client to successfully start Taximeter, your app will require a visible activity when it invokes this method.  Note that client apps targeting Android 14 or higher will also need to pass an additional Context.BIND_ALLOW_ACTIVITY_STARTS flag when binding to the API's service.  Here is the condition lifted from the Android developer documentation: