In this video, it shows how to open a jpeg file from download folder and convert it into Bitmap in your Android App. It then uses ImageView to display the image within the App layout. It uses StorageManager to access the internal storage volume. And then access the jpeg file…
Tag: system
How to allow “Install unknown apps” in your Andorid phone?
Please note, one should avoid installing unknown Apps or Apps from unknown sources. They may harm the device or retrieve personal user data from the device. So, please follow the below steps only when the App’s installation file (APK) is received from trusted source. However, reliable sources, such as Google…
How to use onBackPressed method to quickly navigate to other layouts in your Android App?
In this video it shows the steps to use the onBackPressed override method to customize the functionality of back button of the Android phone. In this method one can navigate to the desired layout and page when back button is pressed using setContentView API. I hope you like this video….
How to delay (wait for) the execution of methods by certain duration/ time in your Android App?
In this short video it shows how one can delay the execution of certain methods in your Android App. It creates a new runnable and calls the runnable after the specified delay using the handler object. Executing the method in another runnable ensure that the main thread is not impacted…
How to implement WorkManager to run background process (isWifiEnabled) in your Android App?
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…
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…
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 {…
How to highlight/ show marker at the touch points in your Android App using pop up window?
In this video it shows how to highlight or put some marker (pointers) at the points touched by the user in your Android App. It uses pop up window with complete red background which is inflated at the position the user touches on the view. The points of touch is…