Facebook

Facebook

How to create/add splash screen in android studio

How to add facebook ads in android studio Add this line MainActivity.java private static int SPLASH_TIME_OUT = 5000; getSupportActionBar().hide();   new Handler().postDelayed(new Runnable() { @Override public void run() { Intent homeIntent = new Intent(MainActivity.this, HomeActivity.class); startActivity(homeIntent); finish(); } }, SPLASH_TIME_OUT); android:background=”@drawable/vasa”/> do it activity main xml Now Create HomeActivity Java Class so go to layout …

How to create/add splash screen in android studio Read More »

How to add facebook ads in android studio

How to add facebook ads in android studio   Facebook Ads Integration for Android Step 1: Create a New Project. You create a new project by clicking: File. New. New Project. Step 2: Integrate the Facebook SDK. Add the following dependence in build. gradle (Module app) level file. // facebook ads sdk. implementation ‘com.facebook.android:audience-network-sdk:5.9.1’   …

How to add facebook ads in android studio Read More »

How to add facebook ads in android studio

How to add facebook ads in android studio Add the following dependence in build.gradle (Module app) level file. compile ‘com.facebook.android:audience-network-sdk:6.+’ <uses-permission android:name=”android.permission.INTERNET”></uses-permission>       create java class   extent aplication   @Override public void onCreate() { super.onCreate(); AudienceNetworkAds.initialize(this); }       add your java class in mnifest under aplications android:name=”.MyFasbookads” add layout <LinearLayout …

How to add facebook ads in android studio Read More »