This commit is contained in:
khanhduytran0 2020-12-19 15:01:12 +07:00
parent 273fa6f952
commit cadb0ab12f
313 changed files with 206 additions and 14 deletions

View file

@ -0,0 +1,17 @@
package net.kdt.pojavlaunch;
import android.content.*;
import android.net.*;
import androidx.browser.customtabs.*;
// import androidx.browser.customtabs.*;
public class CustomTabs {
public static void openTab(Context context, String url) {
CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
builder.setShowTitle(true);
CustomTabsIntent customTabsIntent = builder.build();
customTabsIntent.launchUrl(context, Uri.parse(url));
}
}