FAQ Database Discussion Community


Launching another App by knowing its App Name (not package name)

android,android-intent,speech-recognition,android-package-managers
I currently have created an engine which accepts voice as input and then converts it to a string. Now I wanted to add an option where the voice commands will specify an app name and I will open it. For example my voice input was - 'open facebook' then this...

Fetch list of all apps on Android device (esp. Android TV)

android,android-package-managers,android-tv
I'm trying to fetch a list of all launchable apps on an Android TV (Nexus Player) running 5.1.1. private static Set<ResolveInfo> getInstalledAppsFrom(PackageManager packageManager) { Set<ResolveInfo> activities = new HashSet<>(); activities.addAll(launcherActivitiesIn(packageManager)); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { activities.addAll(leanbackActivitiesIn(packageManager)); } return activities; } private static List<ResolveInfo> launcherActivitiesIn(PackageManager packageManager) {...

Call a specific activity of another application. Android

android,android-intent,android-activity,android-package-managers
I am relatively new to android and currently I am working on a complicated project for which I need to complete a requirement. I am a little stuck here. This is the in game activity for guest users after trial ends. public class GuestUserActivity extends Activity { public Button mMenuButton;...

“How are” Android applications (Facebook etc.) installed to an android phone?

java,android,apk,android-package-managers,android-install-apk
I know how to install an application to an Android device e.g from Play-Store or via an .apk file. But I'd like to understand the actual process of installation. E.g. on Windows: Serial codes etc. are placed in the registry Files important to the running of software are placed within...

Installation process of .apk within ART. Difference from Dalvik VM installation process

android,apk,dalvik,android-package-managers,android-install-apk
Recently I answered this question, where was described whole installation process of .apk file to android phone. The one thing it was about using Dalvik VM. And now I'm wondered is installation process is exactly same using ART? What are the differences? I mean the work of PackageManager, path, convertion...

ResolveInfo getIconResource() giving really strange results (incorrect icons)

java,android,arraylist,android-arrayadapter,android-package-managers
I'm creating a list of applications installed on the phone. I'm retrieving all installed application with the PackageManagerand ResolveInfo. Due to memory issue i'm using getIconResource() instead of loadIcon(). My question is how do i display the correct icons in an imageView using the iconResource, the int? EDIT: added code...

android studio how to print list of installed apps into a listView

android,listview,android-studio,android-package-managers
I've found some code on the internet to obtain details of currently installed apps, I'm not sure how to implement this into a list. I've created the list in the xml file but I'm not too sure how to implement the data into the listView. The code to obtain the...

What's the difference between ResolveInfo.loadLabel and PackageItemInfo.loadLabel?

android,android-intent,android-package-managers,android-applicationinfo
Both classes ResolveInfo and ApplicationInfo (which extends PackageItemInfo) have a loadLabel method to "current textual label associated with this item". I tried running the following code, the first block to print out the label associated with the Play Music app obtained through an intent query, and the second to print...

Get user accesible apps?

android,android-package-managers
I'm trying to get all apps from the user device. And there are lots of examples how to do it. However - I want to show only apps, that are shown in Launcher and souch. So both installed apps and system apps (like com.android.calendar). However, I'm having a hard time...