Yoga Workout (Admob + GDPR + Android Studio)
$16.00
11 sales
Yoga Workout (Admob + GDPR + Android Studio) Review
Android Studio respecting Google recommendations for android development.
Yoga Workout is a comprehensive Android game development kit that includes everything you need to create a daily yoga training app with 12 poses. The kit comes with a fully functional Android Studio project, Admob integration for banner and interstitial ads, and GDPR compliance.
Features:
- Designed for tablets and phones
- APK 64 Bits – Android 10 ready
- Supports both APPLIANCES ANDROID ARM & x86
- Admob Ads: Banner and Interstitials
- GDPR compliance
How To:
- Open the project in Android Studio
- Change the package name
- Change the graphics game
- Change the audio game
- Change the Admob Banner and Interstitial ID
- Change your Privacy policy and review URL (GDPR)
Pros:
- Easy to use and understand
- Comprehensive documentation
- Includes Admob integration and GDPR compliance
- Supports multiple devices and Android versions
Cons:
- Limited customization options
- No support for other payment gateways
Rating: 5/5
Recommendation:
Yoga Workout is an excellent choice for beginners and intermediate Android developers who want to create a daily yoga training app with Admob integration and GDPR compliance. The kit is easy to use, and the documentation is comprehensive. With a little customization, you can create a unique app that meets your needs.
Additional Resources:
Note: The rating and recommendation are based on the provided content and may vary depending on the actual usage and performance of the kit.
User Reviews
Be the first to review “Yoga Workout (Admob + GDPR + Android Studio)”
Here's a complete tutorial on creating a Yoga Workout app in Android Studio, integrating Admob for monetization and adhering to GDPR requirements.
Introduction: With the growing interest in digital health and wellness, it's essential to develop mobile apps that cater to various fitness needs. Creating a Yoga Workout app will enable users to perform their yoga routines anywhere, at any time. To ensure its success, you will learn how to monetize the app using Admob's ads and ensure it is compliant with the General Data Protection Regulation (GDPR) guidelines.
Table of Contents:
- Installing necessary software and creating the Yoga Workout app in Android Studio
- Implementing GDPR requirements in your Android app
- Setting up Admob in Android Studio for in-app advertising
- Adding Admob ad types to your app: display ads, rewarded video ads, and banner ads
- Implementing Android-specific code for displaying and controlling Admob ads
Step 1: Create the Yoga Workout app in Android Studio
To get started, create a new Android project in Android Studio by following these steps:
- Open Android Studio
- Click on the 'New' button to start creating a new project
- Select 'Empty Activity' as the template, choose the name and directory of your project
- Specify the package name
- Set the target and minimum SDK version to ' Android 8.1 Oreo (API level 27)'
- Specify the language and then press the 'Next' and then 'Finish' button to create the project.
Your new project should include three files: activity_main.xml, MainActivity.java, and Gradle Scripts. Add layout and UI elements such as text views, images, and buttons in your XML file to design your UI.
Step 2: Implementing GDPR Requirements
To comply with the GDPR, ensure the app's permissions, terms and conditions, and handling personal data are clear to the user. In this case, the Yoga Workout app collects the user's workout session, including date and duration of the workout.
// permission settings
<uses-permission android:name="android.permission.INTERNET"/>
// permissions in runtime for higher versions
private final static int REQUEST PERMISSION INTERNET = 0;
requestPermission();
//...
requestPermission() {
// call for runtime permission internet in marshmallow or more devices
requestPermission(android.os.Build.VERSION.SDK_INT)
// call this before get your result for instance a text from server, user details, file writing...
}
Next, ensure you include information regarding the processing and the disclosure of the personal data as well as data usage purposes.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Activity File: activity_main.xml -->
<LinearLayout
android:id="@+id/yogaworkout_screen"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<!-- yoga screens
1/15 of screen, we divide into two views here so the first button half the screen height or two button of full half-->
<View android:id="@+id/image_top"
android:background="@drawable/background_color"
android:layout_weight="1"
android:layout_height="match_parent"
android:layout_width="0dip"/>
<!--button click-->
<!-- add text views buttons clickable button to navigate, data base-->
// in xml add these all
<!-- this in other java files then on onclick call function -->
}
Implement code and ensure your application handling process the data you do store or delete when using apps for a reasonable, it also helps us use permissions that the GDPR applies
Intent settingsIntent = new Intent( Settings.ACTION_MANAGE_APPLICATIONS_SETTINGS );
this.startActivity( settingsIntent);
}
Next up!
Admob Configuration
To configure Admob in your Yoga Workout app, follow these steps:
- Create a new Admob account and follow the instructions to set up a new ad unit for your app.
- In your Android Studio project, add the Google Admob SDK to your
build.gradle
file by adding the following line to the dependencies section:implementation 'com.google.android.gms:play-services-ads:20.6.0'
- Create a new Java class, for example
AdmobHelper.java
, to handle Admob initialization and ad loading:import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.AdView; import com.google.android.gms.ads.MobileAds;
public class AdmobHelper { public static final String ADMOB_APP_ID = "your_admob_app_id"; public static final String ADMOB_BANNER_ID = "your_admob_banner_id"; public static final String ADMOB_INTERSTITIAL_ID = "your_admob_interstitial_id";
public static void initAdmob() {
MobileAds.initialize(getApplicationContext(), ADMOB_APP_ID);
}
public static void loadAdView(AdView adView) {
AdRequest adRequest = new AdRequest.Builder().build();
adView.loadAd(adRequest);
}
public static void loadInterstitialAd() {
AdRequest adRequest = new AdRequest.Builder().build();
AdmobHelper.getAdRequest().loadAd(adRequest);
}
}
4. Initialize Admob in your app's `onCreate` method:
```java
AdmobHelper.initAdmob();
- Load the ad view in your layout:
<com.google.android.gms.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adUnitId="@string/admob_banner_id" ads:adSize="BANNER" />
GDPR Configuration
To configure GDPR in your Yoga Workout app, follow these steps:
- Add the GDPR library to your
build.gradle
file:implementation 'com.google.android.gms:play-services-gdpr:17.0.0'
- Add the GDPR permission to your app's
AndroidManifest.xml
file:<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
- Create a new Java class, for example
GdprHelper.java
, to handle GDPR compliance:import com.google.android.gms.ads.identifier.AdvertisingIdClient; import com.google.android.gms.ads.identifier.AdvertisingIdClient.Info;
public class GdprHelper { public static String getAdvertisingId() { AdvertisingIdClient client = AdvertisingIdClient.getClient(YogaWorkoutActivity.this); Info adInfo = client.getInfo(); return adInfo.getId(); } }
4. Use the `GdprHelper` class to get the advertising ID and store it in your app's shared preferences:
```java
GdprHelper AdvertisingId = new GdprHelper();
String AdId = AdvertisingId.getAdvertisingId();
SharedPreferences preferences = getSharedPreferences("myprefs", MODE_PRIVATE);
preferences.edit().putString("advertising_id", AdId).apply();
Android Studio Settings
To set up your Android Studio project, follow these steps:
- Create a new project in Android Studio and choose the "Empty Activity" template.
- In the project structure, select the "app" module and open the
build.gradle
file. - Add the Admob and GDPR libraries to the dependencies section:
dependencies { implementation 'com.google.android.gms:play-services-ads:20.6.0' implementation 'com.google.android.gms:play-services-gdpr:17.0.0' }
- In the project structure, select the "app" module and open the
AndroidManifest.xml
file. - Add the necessary permissions to the
AndroidManifest.xml
file:<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
- In the project structure, select the "app" module and open the
strings.xml
file. - Add the Admob app ID and banner ID to the
strings.xml
file:<string name="admob_app_id">your_admob_app_id</string> <string name="admob_banner_id">your_admob_banner_id</string>
- Run the app on a device or emulator to test Admob and GDPR configuration.
Here are the features extracted from the content:
Yoga Workout
- 12 Poses
- Easy work in the simplest reskin
- Can generate APK within a day
- Recommended for beginners and intermediate users
Android Studio
- Respecting Google recommendations for Android development
- Supports tablets and phones
- APK 64 Bits - Android 10 ready
- Supports both APPLIANCES ANDROID ARM & x86
Admob
- Admob Ads: Banner and Interstitials
GDPR
- Change Your Privacy policy, and review Url. (GDPR)
How To
- Open Project Into Android Studio
- Change the package name
- How to Change Graphics game
- How to Change Audio game
- How to change the Admob Banner and Interstitial ID
- Change Your Privacy policy, and review Url. (GDPR)
More Games
- Links to other games on Codecanyon (22 games in total)
Let me know if you need any further assistance!
$16.00
There are no reviews yet.