How to use chrome custom tabs below api 16? How to use chrome custom tabs below api 16? google-chrome google-chrome

How to use chrome custom tabs below api 16?


tools:overrideLibrary marker (see here)

A special marker that can only be used with uses-sdk declaration to override importing a library which minimum SDK version is more recent than that application's minimum SDK version.Without such a marker, the manifest merger will fail. The marker will allow users to select which libraries can be imported ignoring the minimum SDK version.

Example, In the main android manifest :

<uses-sdk android:targetSdkVersion="14" android:minSdkVersion="2"          tools:overrideLibrary="com.example.lib1, com.example.lib2"/>

will allow the library with the following manifest to be imported without error :

<manifest xmlns:android="http://schemas.android.com/apk/res/android"        package="com.example.lib1">        <uses-sdk android:minSdkVersion="4" />    </manifest>


As mentioned in the error, you can override the minSdk version from the library by using the tools:overrideLibrary marker.

Be sure to check SDK_INT > ICE_CREAM_SANDWICH_MR1 on your code before making calls to the Library to avoid exceptions at runtime.

When using a system that does not support Custom Tabs, just fire a normal ACTION_VIEW intent.