Github user sagar15795 commented on a diff in the pull request:
https://github.com/apache/incubator-taverna-mobile/pull/64#discussion_r171318956
--- Diff:
app/src/main/java/org/apache/taverna/mobile/ui/login/LoginFragment.java ---
@@ -162,6 +167,20 @@ public void login(View v) {
}
}
+ @OnClick(R.id.bRegister)
+ public void register(View v) {
+ if (Build.VERSION.SDK_INT < 15) {
+ Intent i = new Intent(Intent.ACTION_VIEW);
+ i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
+ i.setData(Uri.parse(myExperimentURL));
+ startActivity(i);
+ } else {
+ CustomTabsIntent.Builder builder = new
CustomTabsIntent.Builder();
+ CustomTabsIntent i = builder.build();
--- End diff --
use `customTabsIntent` in place of `i`
---