android-package-managers Questions
2
Looking into the sources of Android (AOSP), the installPackage is labled deprecated and inspecting the PackageManager application of Android, it uses the PackageInstaller class to create a PackageI...
Chamomile asked 27/7, 2018 at 17:34
8
Solved
I am trying to get the values of minSdkVersion and targetSdkVersion from an apk stored on the device. Getting other details are discussed here, but only the targetSdkVersion
is available in the Ap...
Lacefield asked 4/12, 2013 at 9:59
5
Solved
I want to get icons of my all installed apps. Can I get that icons using package manager? Is there any function for it? Or any other way to get icons of all installed apps in bitmap?
Thanks!
Rectus asked 22/5, 2012 at 5:23
1
To check if an intent can be handled, you would call:
if (intent.resolveActivity(getPackageManager()) != null) {
// start activity
}
Question - why is the parameter to package manager needed if...
Rodney asked 19/6, 2017 at 1:6
4
Is there an easy way to get gradle to update dependencies to their latest available version?
For build reproducibility all my dependencies are defined with a version number like this in my build.g...
Scorpaenoid asked 16/2, 2015 at 10:2
1
I'm trying to get the size occupied by my application package. Every application has one location in the internal/external storage.
I want to calculate the size of the following directory, how can...
Ribera asked 2/4, 2018 at 6:1
1
I am trying to setup my own Server to host apk files which will be available for installs and updates in the client App.
On new version update of apk, only the updated part should get downloaded a...
Inward asked 7/2, 2017 at 13:23
2
Solved
Is possible to enable downgrade when installing apk using intent on Android 4.2+? I found out that it is possible, when installing app via command shell (using -d) adb install -r -d <link to apk...
Angle asked 22/10, 2013 at 15:28
1
For some technical reasons, I cannot use Android File Picker to get a file and their content into my application. That's why I came up with a solution which queries intents and processes the result...
Ruffi asked 9/2, 2018 at 22:15
1
I've gone through many posts and forum articles but didn't find anything related to my requirement. Lots of new android devices are coming with no headphone jack built in and I don't need to deal w...
Wart asked 15/2, 2018 at 7:0
1
I'm trying to open certain apps using there package names and for that I'm using this code:
public void openAppHavingPackageName(String packageName, String appName) {
try {
Intent intent =...
Softboiled asked 6/9, 2017 at 12:56
1
I have an Android app that should list all installed apps on a device (no root). I have tried both getInstalledApplications(0) and getInstalledPackages(0) methods of PackageManager, but on some dev...
Straightout asked 12/6, 2014 at 12:41
2
Solved
I try to solve using below code:
[Reference: Android: Clear Cache of All Apps?
PackageManager pm = getPackageManager();
// Get all methods on the PackageManager
Method[] methods = pm.getClass(...
Younglove asked 28/4, 2016 at 3:19
4
I have a main project which references a library project. They both are compiled with Gradle.
This is the defaultConfig for the main project gradle file:
defaultConfig {
applicationId "com.exa...
Nepheline asked 16/1, 2015 at 16:14
1
Solved
I'm developing an Android app that has the ability of installing additional apps (which act as plugins for my app) if the user requires it.
However, each of these additional apps may require...
Metatarsal asked 26/5, 2015 at 10:25
3
Solved
I know there is a way to set themes by defining in styles.xml and use it like that
setTheme(android.R.style.MyTheme);
However, I want to get themes from another app which I developed as well. I...
Rapallo asked 26/1, 2017 at 11:1
5
Solved
I am writing an app that allows user to view the list of installed apps, select one of them and then start it on schedule. Using tutorials from stackoverflow i managed to figure out how to get a li...
Flaggy asked 28/3, 2012 at 9:31
1
I'm trying to work around disabled Download Manager correctly. Best info I could find is How to Enable Android Download Manager.
PackageManager.COMPONENT_ENABLED_STATE_DISABLED and PackageManager....
Lumberjack asked 14/11, 2016 at 10:21
2
I want to get all default apps in Android L. I used bellow code but they give me a wrong solution. Let see my code first
private void getMyAppLauncherDefault() {
final IntentFilter filter = new I...
Quatrefoil asked 9/11, 2016 at 7:13
2
I'm trying to install packages on my device (from a device-owner app that runs on it) only by using the PackageInstaller and PackageManager APIs. I have been looking for examples but couldn't find ...
Aegyptus asked 16/9, 2015 at 12:15
4
Solved
I plan on publishing my app on Amazon app store as well as Google Play, and have some things in my app that need to behave slightly different depending on whether the app was installed from Amazon ...
Cresol asked 8/11, 2012 at 13:24
3
Solved
I tried a lot to get the list of recent and running applications(not processes) but couldn't get it.
I went through all the stackoverflow questions regarding this but the only answer i got about t...
Sawhorse asked 11/9, 2012 at 19:32
2
I have a service that runs in the background that monitors the foreground activity. At present this does not distinguish between users (multi user accounts Android 4.2). Is there a way that the ser...
Mesopause asked 5/8, 2013 at 9:17
2
SITUATION
I have a set of functionalities in my app which changes based on the store it is installed from. E.g. I want to have a more restricted set of advertisements displayed for family audience...
Gwendolin asked 1/1, 2016 at 14:34
2
Solved
I am developing a package manager application which shows checkboxes to turn off notifications from different applications installed on the Android device.
Since Android 4.1, users can turn off ...
Monteiro asked 4/4, 2013 at 18:45
© 2022 - 2024 — McMap. All rights reserved.