Conferences
14
July
Tbilisi, Georgia.
15
July
15
July
16
July
Limassol, Cyprus
23-24
July
23
July
Limassol, Cyprus
23
July
26
July
27-28
July
30-31
July
Limassol, Cyprus
07
August
Saint Petersburg, Russia
12-13
August
25
August
Mexico City, Mexico
27-01
August -
September
Мехико, Мексика
31
August
Mexico City, Mexico
01-03
September
Mexico City, Mexico
01-03
September
Mexico City, Mexico
03
September
Cancún, Mexico
07-08
September
15
September
28
September
28-01
September -
October
Rome, Italy
02-05
November
Rome, Italy
02
November
04
November
05
November
24-25
November
Bangkok, Thailand
30-02
November -
December
Bangkok, Thailand
09-10
December
Ta’ Qali, Malta
03-05
May
Ho Chi Minh City, Vietnam
14
June

How to Create DIY Webview App?


A WebView app means that there is a website inside an app. Publishers use it for gambling, dating, cryptocurrency, commodity, and other verticals. Let’s create a simple WebView app for traffic arbitrage.

How to install and set up Android Studio?

Download the official Android Studio Desktop App from developer.android.com/studio. Install the app on your PC. Leave all settings by default.

Once you have installed it, launch Android Studio. The app will suggest Android SDK installation. At this step, choose the English language.

If you choose Russian, the app will return an error.

Choose the language and click ‘Next’. Then ‘Finish’. The installation of the Android SDK will start immediately.

After installation of the Android SDK is complete, click ‘Configure’ on the welcome page. Select ‘SDK Manager’.

Then go to the ‘Android SDK’ tab (‘Appearance & Behavior’ → ‘System Settings’).

Uncheck ‘Android 11.0 (R)’. Check ‘Android 10.0 (Q)’. Go to the ‘SDK Tools’ tab.

Check the following items: Android Emulator, Android SDK Platform-Tools, Intel x86 Emulator Accelerator (HAXM installer). Click ‘Apply’.

Click ‘Ok’ and accept the user agreement for each package.

During the download, a window may pop up where you’ll have to set the maximum amount of RAM to use emulator instances.

Specify the RAM amount and click ‘Next’.

Now let’s set the environment variable on your PC and in Android Studio. To do this, right-click on ‘My Computer’. Select ‘Properties’.

Click on ‘Advanced System Settings’ and select ‘Environment Variables’.

Click ‘New’ in the ‘User environment variables’ field.

Specify the variable’s name ANDROID_SDK_ROOT and the variable’s value (for example, D:\your folder\AndroidStudioSDK). Click ‘OK’.

Let’s create another variable. Specify the variable’s name ANDROID_SDK_HOME and the variable’s value (for example, D:\your folder\AndroidStudioProjects).

Go back to Android Studio. Press ‘Configure’ and open ‘Settings’.

Go to the ‘Path Variables’ tab.

Create environment variables by clicking on the ‘plus’.

Specify the variable’s name ANDROID_SDK_ROOT and the variable’s value (for example, D:\your folder\AndroidStudioSDK). Click ‘OK’.

Let’s create another variable. Specify the variable’s name ANDROID_SDK_HOME and the variable’s value (for example, D:\your folder\AndroidStudioProjects).

Click ‘Apply’ and ‘OK’.

Now let’s create a VOM. To do this, click on ‘Configure’ and open the ‘AVD Manager’.

Click ‘Create Virtual Device’.

Choose a device definition and download it to your computer.

The app is ready. Let’s move on to creating your first WebView app.

How to create a WebView app?

Open the app’s welcome page. Let’s create a new project. To do this, click on ‘Create New Project’.

Select the standard ‘Empty Activity’ template.

Click ‘Next’.

Type in the project name. Select the ‘Java’ APL and the Minimum SDK (the minimum Android OS supported).

Click ‘Finish’.

Go to the ‘manifest’ folder and open the ‘AndroidManifest.xml’ file.

Specify Internet access permissions.

Before the ‘application’, insert:

 <uses-permission android:name="android.permission.INTERNET"/>

Go to ‘res’ → ‘layout’. Open the ‘activity_main.xml’ file.

If you don’t see a code, click ‘Split’ in the upper right.

Delete the standard code text.

Insert the following code instead:

<WebView
    
android:id=”@+id/webView”
    
android:layout_width=”match_parent”
    
android:layout_height=”match_parent”
    
/>

Find the ‘MainActivity’ file in the java folder.

Inside the ‘@Override’ method brackets, insert the code:

webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl("https://cpa.rip/");

WebViewClient webViewClient = new WebViewClient() {
    @SuppressWarnings("deprecation") @Override
    public boolean shouldOverrideUrlLoading(WebView view, String url) {
        view.loadUrl(url);
        return true;
    }

    @TargetApi(Build.VERSION_CODES.N) @Override
    public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) {
        view.loadUrl(request.getUrl().toString());
        return true;
    }

};
webView.setWebViewClient(webViewClient);

In the ‘webView.loadUrl’ variable, insert the URL that will open in the app. For example, webView.loadUrl("https://cpa.rip/");.

Open the ‘AndroidManifest.xml’ file. After the application tag, add the following code:

android:configChanges="orientation|keyboardHidden|screenSize"

You need it so that the app does not update when you rotate the screen.

If automatic classes import is disabled, do everything manually. Find red code snippets, move the cursor over and click on ‘Import class’ in the pop-up table.

All new apps have icons by default. To change an icon, right-click on the ‘Res’ folder, select ‘New’ and go to ‘Image Asset’.

Click on the folder icon in the ‘Path’ column. Find the file you’d like to set as the app icon.

Click ‘Next’ and ‘Finish’.

Now let’s see if the app works. Run the emulator.

If it’s all good, the app works just fine.

A simple WebView app is ready. Now let’s create an APK file.

In the menu, click ‘Build’ and select ‘Generate Signed Bundle/APK…’

Select ‘APK’ and click ‘Next’.

Since you are creating an app for the first time, you need to create a keystore file for an app signature as well. To do this, select ‘Create new’ in the ‘Key store path’ field.

In the menu that opens, click on the right folder in the ‘Key store path’ field. Type in the name. Next, type in passwords.

Fill in the Name, Surname, company/organization name, city, region, country code in XX format.

Click ‘OK’ and ‘Next’.

Specify the path to save the APK file in the ‘Destination Folder’ field.  Select ‘release’ below and check both boxes at the bottom.

Click ‘Finish’.

Wait a few minutes. The app will display a notification that the APK file is ready.

Your simple WebView app is all set now.


0 Comments
Affiliate - Our assessment
Verticals
Min. sum
Site
It’s an affiliate program of the eponymous online casino. A direct advertiser as of 2017. They work by RevShare (up to 50%) partnership strategy.
1,000 rubles/$20/€20 pay
фото
фото
фото
фото
фото
фото
фото
фото
фото
фото
фото
фото
фото
фото
Affiliate program in the gambling vertical, a direct advertiser. It accepts traffic from CIS. It cooperates on the CPA, RevShare, Hybrid, Fix, and Flat models.
€100 pay
фото
фото
фото
фото
фото
фото
фото
It’s our affiliate program with gambling and betting offers. We are currently in beta but we accept traffic.
$20 pay
фото
860
Go to offers
SpinBetter Partners is an affiliate program in the Gambling and Betting verticals and a direct advertiser of the SpinBetter project. The company has been operating since 2019. It co-operates on CPA, Hybrid, RevShare, Fix, and Fix + RevShare models. SpinBet accepts SEO, ASO, PPC, UAC, Facebook, social, stream, email, messaging apps, and other types of traffic, except motive, schemes, and fraud.
50 pay
фото
фото
фото
фото
фото
Traffic Cake is a direct advertiser offering iGaming vertical offers. Exclusive offers include VOX and Winnita. GEOs: Tier-1 and Tier-2. An authorized partner of well-known brands such as Vulkan Vegas, IceCasino, and Verde Casino. Works on CPA (up to €600), RevShare, and Hybrid models. Affiliates can earn up to 60% RevShare. Payments are made weekly with no delays. All major traffic sources are accepted.
€100 pay
фото
фото
Direct advertiser of popular European casino and sportsbook brands V.Vegas, ICE Casino, VERDE Casino, FS Casino, Fiery Play, Slotoro and Hit’N’Spin. Founded in 2016, they operate on CPA, RevShare, and Hybrid models, accepting traffic from over 35 countries. They provide all the necessary tools for success.
€100 pay
фото
фото
фото
фото
фото