Posts

Showing posts with the label list of app icons

Get list of app icons and app names of all installed apps in Sketchware

Image
We can create a list of app names, app icons, app versions and app package names from information received using PackageInfo class. Follow the steps below to create a list of all installed apps, with app name, app icons, package name, version name and version code. 1. In VIEW area of your sketchware project, in main.xml add a ListView. 2. Add a new CustomView custm.xml and in this add an ImageView and four TextViews. 3. For the ImageView​ set width and height as 60dp and scale_type as FIT_XY. 4. In main.xml, for ListView select custm as customView. 5. In LOGIC area, add four List String (list11, list12, list13, and list14), add a List Map (list1), and an Intent component i. These four will act as list of app name, package name, version name, and version code. 6. In  onCreate  event, add an add source directly block. Inside the block add following code. List<android.content.pm.PackageInfo> listn = getApplicationContext().getPackageMa...