Today, I feel a bit stuck with the camera button, so I decided to move on to another part of the application: listing the non-system apps. The goal is to list all the installed applications.
However, during this process, I realized that the list was not what I had expected. It showed all the system applications instead of the ones I downloaded from the Google Play Store. After a few hours of searching and using Google, I realized that the apps I want to display are called non-system apps.
The screenshot below is the list that I created in the first place. This is not something I looking forward into it. But at least I know I'm on the right track with my code structure.
Then I got to add uses-permission to access all packages from Google App store.
This is the final result of the app. Yoo-hoo! I'm happy that I finally managed to list out the apps I was looking for.
Next steps is to remove the non app entity from the list and add pre-installed (system) application in the list. The screenshot below is the changes has been made.
For the MainActivity.kt file I have created the below code snippet
Back on the Flutter side, I need to improve the UX/UI of the list. So, I came up with some features, including a search app bar and sorting the list.
Below is an example with the search bar, and I have sorted the list from A to Z.
Upcoming task
1) Able to click on the list of the app to access the app
2) Able to move the app to the main page as favorite app
3) Get the access camera feature working