Back to project page plus1-android-sdk.
The source code is released under:
Copyright (c) 2012, WapStart All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Red...
If you think the Android project plus1-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package ru.wapstart.plus1.sdk; /*from w ww . ja v a 2 s . c om*/ import android.content.Context; import android.content.Intent; import android.util.Log; class MraidBrowserController extends MraidAbstractController { private static final String LOGTAG = "MraidBrowserController"; MraidBrowserController(MraidView view) { super(view); } protected void open(String url) { Log.d(LOGTAG, "Opening in-app browser: " + url); MraidView view = getView(); if (view.getOnOpenListener() != null) { view.getOnOpenListener().onOpen(view); } Context context = getView().getContext(); Intent i = new Intent(context, ApplicationBrowser.class); i.putExtra(ApplicationBrowser.URL_EXTRA, url); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(i); } }