This video shows steps to implement work manager API to run certain background tasks for your Android App. In this example it checks whether is Wifi is enabled or not and displays it in a toast message. However, other functionality can also be easily implemented in the doWork() method of…
Tag: android
How to implement Interstitial Mobile Ads (AdMob) display in your Android Apps?
In this video it shows the steps to implement the interstitial Ads in your Android Mobile App. It refers to following developers pages for steps on implementing and setting up the environment: https://developers.google.com/admob/android/interstitial https://developers.google.com/admob/android/quick-start For steps to setup your Admob account and create your Adunit follow steps from the below…
How to make constraint layout scrollable by using ScrollView and HorizontalScrollView in your Android App?
In this video it shows the steps to make the constraint layout scrollable in both vertical and horizontal direction by adding ScrollView and HorizontalScrollView in your App’s constraint layout design respectively. In this App it implements certain widgets in extreme bottom and right position in the layout to show the…
Difference between finish() and finishAndRemoveTask() in Android App code.
In this video it shows the difference between the two APIs in Android – finish() vs finishAndRemoveTask(). finish() is basically to minimize the App’s view so that the user cannot see the App’s layout anymore. It is similar to pressing back button from App’s home page to go back to…
How to navigate to Home screen (Layout/view) from your Android App programmatically using intent?
In this video it shows how one can navigate directly to the home screen layout from your Android App programmatically. I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: programmerworld1990@gmail.com Complete source code and other details: package com.programmerworld.homescreenapp;import android.content.Intent;import…
How to display Ads (google ads banner admob) in your Android App to make money? – Android Studio complete steps
In this video it shows steps to implement google Ads in your Android Apps. In this demo it shows how one can put banner Ads to be displayed on the top of the layout. The steps shown are referred from the google developers page on admob. Link for which is…
How to create your AdMob’s Ad unit to display google Ads on your Android Apps using your adsense and make money?
Steps: – Signup/ Login to your Google AdMob (using your gmail ID): https://apps.admob.com/ – Check all the details and then after accepting Terms and Condition, create the account: – Select the below options as per your preferences and click Continue: – In the Home page, click “Get Started” – Give…
How to solve “Build was configured to prefer settings repositories over project repositories but repository ‘Google’ was added by build file ‘build.gradle'” error in Android App development?
On adding the google or maven repositories for all projects in the gradle file can given error. Adding below: allprojects { repositories { google() mavenCentral() } Gives below error: Solution: Goto Settings.gradle file: And add the lines as below if not added: google() and mavenCentral() repositories added:
How to implement swipe/ drag down refresh functionality using SwipeRefreshLayout in your Android App?
In this video it shows how one can implement the App refresh functionality on swipe down (drag down) by the user. Once the user swipes down anywhere in the layout in the app, the onRefresh method of the layout gets triggered and respective functionality is executed. This app uses the…
Solve “enable JavaScript if it is disabled in your browser” error in WebView of your Android App.
This video shows how one can enable JavaScript in WebView (browser) of your Android App. I hope you like this video. For any questions, suggestions or appreciation please contact us at: https://programmerworld.co/contact/ or email at: programmerworld1990@gmail.com Complete source code: package com.programmerworld.javascriptinwebview;import androidx.appcompat.app.AppCompatActivity;import android.os.Bundle;import android.webkit.WebView;import android.webkit.WebViewClient;public class MainActivity extends AppCompatActivity {…