Posts

Showing posts from February, 2018

Get List of System Apps with icon, title, package name programmatically

Image
In this tutorial we will learn how to get System Apps in ListView with icon, title, package name. For this purpose we will use custom ListView. ✓ Display User System Apps in ListView with icon, title, package ✓ Display total number of User Installed apps ✓ Handle On click(Display dialog to open app or open app info) Step 1: Create a new project OR Open your project Step 2: Create a new "Layout Resource File" in res>layout and name it as "installed_app_list.xml" Step 2: Code installed_app_list.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" android:layout_width= "match_parent" android:layout_height= "wrap_content" android:orientation= "vertical" android:padding= "3dp" > <LinearLayout android:layout_width= "match_parent" android:layout_height= ...

Get List of User Installed Apps with icon, title, package name programmatically

Image
In this tutorial we will learn how to get list of installed apps with icon, title, package name. We use custom ListView to display installed apps. ✓ Display User Installed Apps in ListView with icon, title, package ✓ Display total number of User Installed apps ✓ Handle On click(Display dialog to open app or open app info) Step 1:  Create a new project OR Open your project Step 2: Create a new "Layout Resource File" in res>layout and name it as "installed_app_list.xml" Step 3: Code installed_app_list.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" android:layout_width= "match_parent" android:layout_height= "wrap_content" android:orientation= "vertical" android:padding= "3dp" > <LinearLayout android:layout_width= "match_parent" android:layou...

Download/Save Image from WebView on Long Pressing Image

Image
In this tutorial we will learn how to download/save image displayed in the WebView on long clicking the image. When you long click on image, a dialog will be displayed saying to download image, when you click on it the image starts downloading, a notification of downloading image will be displayed. Download/Save Image from WebView Step 1:  Create a new project OR Open your project Step 2: Place a download icon in res>drawable folder Step 3: Code AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android= "http://schemas.android.com/apk/res/android" package= "com.blogspot.devofandroid.myapplication" > <!--add internet permission--> <uses-permission android:name= "android.permission.INTERNET" /> <application android:allowBackup= "true" android:icon= "@mipmap/ic_launcher" android:label= "@string...