Support for Webview with Splash Screen and Scrollable Tabs

Popular questions for this item

Important information for buyers!

Support is provided from Monday to Friday, within 72 hours. Sometimes delays could happen due to holidays or vacations.

Support for my items includes:
  • Responding to questions or problems regarding the item and its features
  • Fixing bugs and reported issues
Item support does not include:
  • Customization and installation services
  • Support for third party software and plug-ins

What tools do I need in order to customize / edit the product?

You need Android Studio. You can download it from here

Ho does it works?

It uses the Android’s Webview component to display your website.

What kind of website can be integrated with this application?

Basically you can integrate almost every website, but please be advised that you could have problems, if you try to integrate a complex web application with the product. Our app uses the native Android’s Webview Component, which component is something similar to a web browser but much more limited. So there is a possibility that some complex operations won’t work correctly if those operations are integrated with complex JavaScripts or other technologies. So we recommend you to contact us before purchase and we will prepare a demo .apk with your website’s url address and you will be able to test all features by yourself. We prefer this, because we don’t want unsatisfied customers.

Do I need programing skills to customize the code?

No, you can customize the code very easy without any programing skills. You just need to follow our detailed guide.

What kind of website do I need to have to use the product?

You can use the product with all kind of websites (Static, Wordpress, Joomla, Magento, Prestashop, OpenCart and etc.).

How can I change application’s name?

Open your project in Eclipse and open to edit the following file:
res/values/strings.xml

After that find the following line:
<string name=”app_name”>WebViewSplash</string>
Just change the “WebViewSplash” with desired name.

Is there a limit for the scrollable tabs?

No there is no limit. The area for the tabs is scrollable so you can put there as many as you need.

Should I have a “Responsive” website to use the product?

It is recommended to have “a Responsive” website if you want to left good user experiece to your customers, but of course it’s not mandatory so you can display every single website in our application.

Is there a way to keep the scrollable tabs visible at start?

If you want the tabs’ menu to be visible at start add these two lines of code (in WebViewActivity.java file):

slidingDrawer.open();
scroller.setBackgroundColor(Color.WHITE);

right after:

scroller = (View) findViewById(R.id.scroller);

How can I remove the tabs?

Open WebViewActivity.java file and find the following line of code:

initSlider();

After that just comment this line with // in front of the initSlider(); Example: //initSlider();

Prevent the webview to reload the page when you change the phone’s orientation.

Replace the following line >

android:configChanges=”orientation|screenLayout”

in AndroidManifest.xml file > in android:name=”.WebViewActivity” activity with the following code >

android:configChanges=”orientation|screenSize”

How to prevent the app to be on the fullscreen?

Open the AndroidManifest.xml file and find the following code:
 <activity
    android:name=".WebViewActivity" 
    android:configChanges="orientation|screenLayout" 
    android:label="@string/app_name" 
    android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >

Remove the last line (android:theme=”@android:style/Theme.NoTitleBar.Fullscreen”) and the webview will not be on fullscreen and you will have Notifications Bar.

How to disable ZOOM?

To disable pinch to zoom. Open the WebViewActivity.java and put after:

line 198
(webviewProgress = (ProgressBar) findViewById(R.id.webview_progress) ; ) 
this:
webview.getSettings().setSupportZoom(false);
Regards, dmb TEAM

How to remove/disable the Loading Animation?

Open the MyProgressDialog.java file and go to line 87, where you will find the following code snippert:

dialog.show();

You just have to comment this line by adding double slash // before the code:

//dialog.show();

Save the file and you are ready.

How to move AdMob to the bottom?

Open WebViewActivity.java and find the following line of code:

p.addRule(RelativeLayout.BELOW, webviewProgress.getId());

Modify this line to the following:

p.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);

How can I enable cookies?

Open WebviewActivity.java and add the following line

CookieManager.getInstance().setAcceptCookie(true); 

after

webview.loadUrl(URL);

Can I controll the time of displaying the Splash Screen?

Hello,

Yes you can control that time. Please open the SplashScreenActivity.java and find the following line:

mHandler.sendMessageDelayed(msg, 4000);

Change the 4000 number with the desired delay. This value is in milliseconds.

How Can I disable the Ads?

You can control the ads in WebviewActivity.java, where you have a constant, which can be set to true or false:


    // -------------------AdMob configuration -------------------

    /**
     * Boolean flag for enable/disable AdMob funtionality
     */
    private static boolean isAdmobEnable = true;

Just set this variable IsAdmobEnable to false and you will disable the ads.

The app doesn’t display my website’s mobile version, how to fix this?

Please try the following:

1) Open WebViewActivity.java and find the following line:

webview.getSettings().setUserAgentString("some_dump_text");

2) Replace that line with the following code snippet:

webview.getSettings().setUserAgentString("Mozilla/5.0 (Linux; Android 4.4; Nexus 4 Build/KRT16H) AppleWebKit/537.36
(KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36");

OR

webview.getSettings().setUserAgentString("Mozilla/5.0 (Linux; U; Android 2.2.1; en-us; Nexus One Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1");

If none of the described above works, please try with more variants provided here: http://www.useragentstring.com/pages/Android%20Webkit%20Browser/

How to set the app to work only in Portrait mode?

Open AndroidManifest and look for activity items. Inside put the following two additional attributes:
android:configChanges="orientation" 
android:screenOrientation="portrait" 

So the final variant for .SplashScreenActivity would be:

<activity
    android:name=".SplashScreenActivity" 
    android:label="@string/app_name" 
    android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 
    android:configChanges="orientation" 
    android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
</activity>

How I can change the background color of the tabs container?

There is an XML file that is responsible for the background color: /res/values/colors.xml

Inside there is a defined color:

<color name="translucent_white">#CCffffff</color>

In order to understand how to define the color, please read this article: http://stackoverflow.com/a/17239853

So, before defining the hex color – in our case ffffff – you should define the transparency – in our case CC, which is 80% transparent white.

Show more

by
by
by
by
by
by