Author: FastBikri Team

Android Tutorials | How to add banner ads with Facebook Audience Network

Manifest: <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” /> build.gradle – dependency implementation ‘com.facebook.android:audience-network-sdk:5.11.0’ Layout <LinearLayout android:id="@+id/banner_container" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:orientation="vertical" app:layout_constraintBottom_toBottomOf="parent" /> Source Code import com.facebook.ads.AudienceNetworkAds; import com.facebook.ads.*; private NativeBannerAd nativeBannerAd; oncreate() AudienceNetworkAds.initialize(this); adView = new AdView(this, "415395656050XXX_649219926001XXX", AdSize.BANNER_HEIGHT_50); // Find the Ad Container LinearLayout adContainer = (LinearLayout) findViewById(R.id.banner_container); // Add the ad

Android Development | Problems and Solutions

We all face some kind of problems when coding in Android Development. I am trying to compile some solutions which will help you to speed up the process. Buttons How to have a transparent ImageButton: Android? android:background=”@null” For Ripple effect: android:background=”?attr/selectableItemBackgroundBorderless” Shortcut Keys https://developer.android.com/studio/intro/keyboard-shortcuts EditText EditText1.requestFocus(); // this will focus the cursor on the edittext

XAMPP | PHP | Useful Troubleshooting

How to set smtp server in php.ini? Open the file php.ini [mail function] ; For Win32 only. ; http://php.net/smtp SMTP=mailserver.website.com   Some scripts might take long time to execute. Edit the php.ini file and increase the max_execution_time=50000   If the mysql execution takes time C:\xampp\phpMyAdmin\libraries\config.default.php $cfg[‘ExecTimeLimit’] = 1000;