This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<View | |
android:layout_width="match_parent" | |
android:layout_height="5dp" | |
android:background="#FFEB3B" | |
app:layout_constraintBottom_toTopOf="@+id/linearLayout" /> | |
<LinearLayout | |
android:id="@+id/linearLayout" | |
android:layout_width="match_parent" | |
android:layout_height="60dp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Button button = findViewById(R.id.showAds); | |
button.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View view) { | |
if (mInterstitialAd != null) { | |
mInterstitialAd.show(MainActivity.this); | |
mInterstitialAd.setFullScreenContentCallback(new FullScreenContentCallback(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=========Universel Start======================================================================================================================================= | |
// 1. Add test Device | |
// 2. Manifast Permission | |
<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" /> | |
<uses-permission android:name="com.google.android.gms.permission.AD_ID" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1st Step:(Dependencies) | |
dependencies { | |
implementation 'com.applovin:applovin-sdk:11.5.3' | |
implementation("androidx.lifecycle:lifecycle-process:2.5.1") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. //Internet Permission : - | |
<uses-permission android:name="android.permission.INTERNET"/> | |
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> | |
2. //Dependencies : - | |
//Admob Ads SDK | |
implementation 'com.google.android.gms:play-services-ads:21.3.0' |