All Projects → novoda → Simple Chrome Custom Tabs

novoda / Simple Chrome Custom Tabs

Licence: other
Easy integration of Chrome Custom Tabs into your project. Just connect it to your activity, and navigate to the external website styling your tab as you wish.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Simple Chrome Custom Tabs

Rxpresso
Easy Espresso UI testing for Android applications using RxJava.
Stars: ✭ 373 (+184.73%)
Mutual labels:  novoda, open-source
Spikes
Where ideas & concepts are born & incubated
Stars: ✭ 540 (+312.21%)
Mutual labels:  novoda, open-source
Gradle Static Analysis Plugin
Easy setup of static analysis tools for Android and Java projects.
Stars: ✭ 398 (+203.82%)
Mutual labels:  novoda, open-source
Notils
Never again need a .utils. package yur scurvy sea dogs!
Stars: ✭ 126 (-3.82%)
Mutual labels:  novoda, open-source
Adguardbrowserextension
AdGuard browser extension
Stars: ✭ 1,018 (+677.1%)
Mutual labels:  open-source, chrome
Sqlite Provider
Extended SQLite functionality for Android
Stars: ✭ 312 (+138.17%)
Mutual labels:  novoda, open-source
Merlin
Observes network connection status & gives callbacks
Stars: ✭ 536 (+309.16%)
Mutual labels:  novoda, open-source
Download Manager
A library that handles long-running downloads, handling the network interactions and retrying downloads automatically after failures
Stars: ✭ 482 (+267.94%)
Mutual labels:  novoda, open-source
Novoda
Common things for all Novoda's open source projects
Stars: ✭ 37 (-71.76%)
Mutual labels:  novoda, open-source
Aosp.changelog.to
Generates a change log between different aosp tags. Based on the wonderful work of @alsutton
Stars: ✭ 12 (-90.84%)
Mutual labels:  novoda, open-source
No Player
Simplified Player wrapper for MediaPlayer and ExoPlayer
Stars: ✭ 182 (+38.93%)
Mutual labels:  novoda, open-source
Ios Demos
Examples of ios applications http://www.novoda.com/blog
Stars: ✭ 85 (-35.11%)
Mutual labels:  novoda, open-source
Android Demos
Examples of Android applications
Stars: ✭ 1,963 (+1398.47%)
Mutual labels:  novoda, open-source
Gradle Android Command Plugin
Handy commands for testing Android on CI
Stars: ✭ 349 (+166.41%)
Mutual labels:  novoda, open-source
Bintray Release
A helper for releasing from gradle up to bintray
Stars: ✭ 1,878 (+1333.59%)
Mutual labels:  novoda, open-source
Bonfire Firebase Sample
An app to discuss your favourite emojis. This is a sample app built with Firebase.
Stars: ✭ 564 (+330.53%)
Mutual labels:  novoda, open-source
Accessibilitools
UI tools to help make your Android app accessible.
Stars: ✭ 81 (-38.17%)
Mutual labels:  novoda, open-source
Gradle Build Properties Plugin
Keep your secrets secret. External build properties support for your Gradle scripts.
Stars: ✭ 110 (-16.03%)
Mutual labels:  novoda, open-source
Grandnode
Open source, headless, multi-tenant eCommerce platform built with .NET Core, MongoDB, AWS DocumentDB, Azure CosmosDB, Vue.js.
Stars: ✭ 1,768 (+1249.62%)
Mutual labels:  open-source
Awesome Jsgames
A curated list of awesome JavaScript Games 🎮
Stars: ✭ 127 (-3.05%)
Mutual labels:  open-source

simple-chrome-custom-tabs Download

  • Navigating to external websites from your app?
  • "Yes, that one is easy"
  • Wondering how to keep the user in context?
  • "I know... it can be done using WebView, but I don't like it that much"
  • Aha! Why don't you try Chrome Custom Tabs?
  • "Integrating it into my app can be a pain..."
  • Not anymore!

simple-chrome-custom-tabs will help you with that.

Description

simple-chrome-custom-tabs provides easy integration of Chrome Custom Tabs into your project. Just connect it to your activity, and navigate to the external website styling your tab as you wish. Moreover with Custom Tabs the navigation can be nearly instantaneous!

More information about Chrome Custom Tabs available at: https://developer.chrome.com/multidevice/android/customtabs

Adding to your project

To start using this library, add these lines to the build.gradle of your project:

repositories {
    maven {
        url  "http://dl.bintray.com/novoda/maven" 
    }
}

dependencies {
    compile 'com.novoda:simple-chrome-custom-tabs:0.1.6'
}

Simple usage

  1. Initialize simple-chrome-custom-tabs, you only have to this once.
SimpleChromeCustomTabs.initialize(context);
  1. Connect simple-chrome-custom-tabs to your Activity as soon as it is resumed.
@Override
public void onResume() {
    super.onResume();
    SimpleChromeCustomTabs.getInstance().connectTo(this);
}

And don't forget to disconnect when the Activity is paused.

@Override
public void onPause() {
    SimpleChromeCustomTabs.getInstance().disconnectFrom(this);
    super.onPause();
}
  1. Navigate!
Uri url = ANY_WEBSITE_URL;
NavigationFallback fallback = ANY_FALLBACK_MECHANISM; //In case something goes wrong.
IntentCustomizer customizer = ANY_INTENT_CUSTOMIZER; //To theme your tab.

SimpleChromeCustomTabs.getInstance().withFallback(fallback)
    .withIntentCustomizer(customizer)
    .navigateTo(url, activity);

And voilà!!

External Browser simple-chrome-custom-tabs
external_browser simplechromecustomtabs

Note: Check the extended demo for further usage examples.

Links

Here are a list of useful links:

  • We always welcome people to contribute new features or bug fixes, here is how
  • If you have a problem or you feel that important functionality is missing check the Issues Page first to see if we are working on it
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].