Posts

Showing posts from July, 2021

Display Images in GridView Android Example

Image
  Display Images in GridView Android Example Put the image in drawable folder. GridView is a ViewGroup that displays items in two-dimensional scrolling grid. GridView is mostly used to display images or icons. In the activity_main.xml file, we have used GridView to display images. /layout/activity_main.xml Copy < ?xml version= "1.0" encoding= "utf-8" ?> < RelativeLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:tools= "http://schemas.android.com/tools" android:layout_width= "match_parent" android:layout_height= "match_parent" tools:context= ".MainActivity" > < GridView android:id= "@+id/gridview" android:layout_height= "match_parent" android:layout_width= "match_parent" android:layout_margin= "10dp" android:columnWidth= "100dp" android:

Adb shell

  list all installed packages in android adb shell pm list packages -f Google Play's package name is  com.android.vending pm install -r <package.apk>" // nt ale toremive error( failure{install_failed_user_restricted]