Dominoes (Admob + GDPR + Android Studio)
$16.00
4 sales
Dominoes – Android Project (Updated)
Respecting Google Recommendations for Android Development
Dominoes is a classic game that is easy to play and understand, making it an excellent choice for beginner users. The game is designed for both tablets and phones, and is compatible with Android 11 and above. With the ability to run on both ARM and x86 devices, this game is sure to be a hit with a wide range of users.
Features:
- Designed for tablets and phones
- APK 64 Bits – Android 11 ready
- Supports both APPLIANCES ANDROID ARM & x86
- Admob Ads: Banner and Interstitials
How To:
- Open the project in Android Studio
- Change the package name
- How to change graphics game
- How to change audio game
- How to change Admob Banner and Interstitial ID
- Change Your Privacy policy, and review Url. (GDPR)
More Games:
The game includes a variety of features, including:
- Ball Physics Skin Glass
- Dominoes Skin Glass
- Dominoes Skin Glass with Ball Physics
- Dominoes Skin Glass with Ball Physics and Sound
- Dominoes Skin Glass with Ball Physics and Sound and Animation
Score: 0
I’m excited to start with a review of Dominoes, an Android project that is easy to work with and understand. As a beginner-friendly game, Dominoes is an excellent choice for those new to Android development. The game’s design is simple and easy to navigate, making it accessible to users of all ages.
The game’s features are impressive, with the ability to run on both tablets and phones, as well as compatibility with Android 11 and above. The Admob Ads integration is also a great feature, allowing for seamless monetization of the game.
The game’s instructions are clear and easy to follow, making it simple to get started with the project. The How To section provides step-by-step guidance on how to change various aspects of the game, including the package name, graphics, audio, and Admob settings.
The game’s design is modern and visually appealing, with a clean and intuitive interface. The ball physics skin glass feature adds an extra layer of realism to the game, making it even more engaging for users.
Overall, I would give Dominoes a score of 0 out of 10. The game is easy to work with, has a simple and intuitive design, and is compatible with a wide range of devices. The Admob Ads integration is also a great feature, allowing for seamless monetization of the game.
User Reviews
Be the first to review “Dominoes (Admob + GDPR + Android Studio)”
Introduction
In today's digital world, it's essential for mobile apps to generate revenue. One of the most popular and effective ways to do this is by displaying ads. AdMob, a mobile advertising platform developed by Google, is a popular choice for monetizing mobile apps. However, with the introduction of the General Data Protection Regulation (GDPR) in the European Union, app developers need to ensure that they comply with the new regulations when handling user data.
In this tutorial, we will learn how to integrate AdMob into an Android app, while also ensuring compliance with GDPR. We will be using Android Studio as our Integrated Development Environment (IDE).
Step 1: Setting up AdMob
To get started with AdMob, you need to create an account and set up your ad units. Follow these steps:
- Go to the AdMob website and create an account if you haven't already.
- Click on "Create a new app" and select "Android" as your platform.
- Fill in the required information, such as your app name, package name, and app ID.
- Click on "Create app" to create your AdMob app.
- Once your app is created, you will be taken to the AdMob dashboard.
- Click on "Monetize" and then "Add a banner ad" or "Add a interstitial ad" depending on the type of ad you want to display.
- Fill in the required information, such as your ad unit name and ad size.
- Click on "Save" to save your ad unit.
Step 2: Adding the AdMob SDK to your Android project
To add the AdMob SDK to your Android project, follow these steps:
- Open your Android project in Android Studio.
- Go to the "Build" menu and select "Rebuild Project" to ensure that your project is up to date.
- Go to the "File" menu and select "New" > "New Module...".
- Select "Android Library" as your module type and click on "Next".
- Fill in the required information, such as your module name and package name.
- Click on "Finish" to create the new module.
- In the "Module" view, right-click on the new module and select "Open Module Settings".
- In the "Android SDK" section, click on the "SDK Tools" tab.
- Check the box next to "Google Repository" and click on "Apply" and then "OK".
- Go back to the "Project" view and right-click on the new module.
- Select "Properties" > "Android SDK" > "Add SDK" and select the "Google Repository" you just added.
- Click on "Apply" and then "OK".
Step 3: Adding the AdMob code to your Android activity
To add the AdMob code to your Android activity, follow these steps:
- Open the activity where you want to display the ad.
- Add the following code to the activity's Java file:
import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdView; import com.google.android.gms.ads.InterstitialAd; import com.google.android.gms.ads.MobileAds;
public class MainActivity extends AppCompatActivity { private AdView adView; private InterstitialAd interstitialAd;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
MobileAds.initialize(this, "YOUR_ADMOB_APP_ID");
adView = findViewById(R.id.adView);
interstitialAd = new InterstitialAd(this);
interstitialAd.setAdUnitId("YOUR_ADMOB_AD_UNIT_ID");
}
@Override
protected void onResume() {
super.onResume();
AdRequest adRequest = new AdRequest.Builder().build();
adView.loadAd(adRequest);
}
public void showInterstitialAd() {
if (interstitialAd.isLoaded()) {
interstitialAd.show();
}
}
}
Replace "YOUR_ADMOB_APP_ID" with your actual AdMob app ID, and "YOUR_ADMOB_AD_UNIT_ID" with your actual ad unit ID.
**Step 4: Requesting consent for GDPR**
To comply with GDPR, you need to request consent from users before collecting or processing their personal data. You can do this by adding the following code to your app:
```java
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.preference.PreferenceManager;
import android.support.v4.content.ContextCompat;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;
import com.google.android.gms.ads.InterstitialAd;
public class MainActivity extends AppCompatActivity {
private AdView adView;
private InterstitialAd interstitialAd;
private SharedPreferences sharedPreferences;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
if (!sharedPreferences.getBoolean("gdprConsent", false)) {
Intent intent = new Intent(this, GdprConsentActivity.class);
startActivityForResult(intent, 1);
}
MobileAds.initialize(this, "YOUR_ADMOB_APP_ID");
adView = findViewById(R.id.adView);
interstitialAd = new InterstitialAd(this);
interstitialAd.setAdUnitId("YOUR_ADMOB_AD_UNIT_ID");
Button button = findViewById(R.id.button);
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
showInterstitialAd();
}
});
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == 1 && resultCode == RESULT_OK) {
sharedPreferences.edit().putBoolean("gdprConsent", true).apply();
}
}
}
This code requests consent from the user when the app is first launched, and stores the user's response in a shared preference.
Step 5: Displaying the ad
To display the ad, you can call the showInterstitialAd()
method from your activity:
public void showInterstitialAd() {
if (interstitialAd.isLoaded()) {
interstitialAd.show();
}
}
This method will display the interstitial ad if it's loaded.
Conclusion
In this tutorial, we learned how to integrate AdMob into an Android app, while also ensuring compliance with GDPR. We created an AdMob app, added the AdMob SDK to our Android project, added the AdMob code to our Android activity, requested consent for GDPR, and displayed the ad. By following these steps, you can monetize your Android app with AdMob and comply with GDPR regulations.
General Settings
In the AndroidManifest.xml file, add the following permissions:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
AdMob Settings
In the app-level build.gradle file, add the following lines:
android {
...
repositories {
mavenCentral()
google()
}
dependencies {
implementation 'com.google.android.gms:play-services-ads:20.1.0'
}
}
In the res/values/strings.xml file, add the following string:
<string name="admob_app_id">YOUR_AD_MOB_APP_ID</string>
GDPR Settings
In the AndroidManifest.xml file, add the following attribute to the application tag:
<application
...
tools:ignore="GoogleAppIndexingWarning">
...
</application>
In the res/values/strings.xml file, add the following strings:
<string name="gdpr_privacy_policy_url">YOUR_PRIVACY_POLICY_URL</string>
<string name="gdpr_terms_of_service_url">YOUR_TERMS_OF_SERVICE_URL</string>
Dominoes Settings
In the res/values/strings.xml file, add the following strings:
<string name="dominoes_banner_ad_unit_id">YOUR_BANNER_AD_UNIT_ID</string>
<string name="dominoes_interstitial_ad_unit_id">YOUR_INTERSTITIAL_AD_UNIT_ID</string>
Dominoes Initialization
In the MainActivity.java file, add the following code:
public class MainActivity extends AppCompatActivity {
private DominoesAdView dominoesAdView;
private String appToken = "YOUR_APP_TOKEN";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
dominoesAdView = findViewById(R.id.dominoes_ad_view);
Dominoes.initialize(appToken, new Dominoes.OnInitializationCompleteListener() {
@Override
public void onInitializationComplete() {
dominoesAdView.loadBannerAd();
}
});
}
}
Layout Settings
In the activity_main.xml file, add the following layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.dominoes.dominoesview.DominoesAdView
android:id="@+id/dominoes_ad_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<!-- Your app's content goes here -->
</LinearLayout>
Here is the information extracted about the Dominoes (Admob + GDPR + Android Studio) project:
Main Features:
- Designed for tablets and phones
- Supports Android 11 and other Android versions
- APK 64 Bits - ready for Android 11
- Supports APPLIANCES ANDROID ARM and x86 architectures
- Admob Ads: Banner and Interstitials
- GDPR compliant
- Developed with Android Studio
- Highly recommended for beginner users
Tutorial on How to:
- Open the Project in Android Studio
- Change the package name
- Change graphics
- Change audio
- Change Admob Banner and Interstitial IDs
- Configure privacy policy and review URLs for GDPR compliance
Related Projects:
A total of 24 different game projects are listed:
- Car Driver - Admob - GDPR - Android Studio
- Cling - Admob - GDPR - Android Studio
- Knife Pirate - Admob - GDPR - Android Studio ... (rest of the links)
- Rectangle-Max V2 - Admob - GDPR - Android Studio
- Snake vs Block - Admob - GDPR - Android Studio
There are no reviews yet.