android-package-managers Questions
3
Solved
I am trying to use "android.permission.PACKAGE_USAGE_STATS" in my app. Here it says that NOTE: This API requires the permission android.permission.PACKAGE_USAGE_STATS, which is a system-level permi...
Fibered asked 24/11, 2014 at 4:10
4
Solved
I'm using Android Download Manager to download list of files. Lately I came across a crash report saying
Unknown java.lang.IllegalArgumentException: Unknown URL content://downloads/my_downloads
...
Wade asked 4/2, 2014 at 11:42
2
Solved
I'm using reflection method freeStorageAndNotify:
Method freeStorageAndNotify = null;
freeStorageAndNotify = service.packageManager.getClass().getMethod(
"freeStorageAndNotify", long.class, IPack...
Crouton asked 13/8, 2015 at 13:28
0
I'm having some problems trying to install APKs in a specific device. I have lots of devices and it hadn't happened so far (all of them, Radxa Rock Pro).
When I run pm install myApp I get
root@r...
Mountbatten asked 3/6, 2015 at 9:27
1
Solved
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 co...
Shofar asked 20/5, 2015 at 19:26
2
Solved
My app reads the list of all installed APK files, and then loop through the list to read the APK info, however it throws a TransactionTooLargeException exception.
From what I have read here http:/...
Eczema asked 17/6, 2014 at 0:10
1
Solved
What's the difference between installing an app using the install command and using the package manager's pm install command? Do they do the exact same job? Does one command actually call the other...
Audet asked 24/2, 2015 at 0:2
1
I ask to pm (package manager) to enable some package, but it doesn't enable and shows the message "new state: disabled"
shell@android:/ $ pm enable my.app.com
Package my.app.com new stat...
Underworld asked 20/12, 2012 at 11:14
3
Solved
I am trying to get the default/preferred application for a given Intent. For example, when the user installs a second web browser, then attempts to open a URL, he or she will get a dialog like this...
Whomever asked 24/12, 2011 at 19:18
1
Solved
I want to get all activities present in Application as a list by using PackageInfo. Please tell me is there any way to do this.
Thanks in advance.
Bangalore asked 15/5, 2014 at 6:51
1
I have method that resolves an Intent to a ComponentName:
private static ComponentName resolveViewExternalIntent(Context context)
{
Intent intent = createIntent();
return intent.resolveActivity(...
Karttikeya asked 9/6, 2013 at 2:5
1
Solved
If I use the code below to disable a static BroadcastReceiver defined in AndroidManifest.xml, will it be re-enabled after a reboot? It doesn't appear to be but the docs don't say whether it should....
Goth asked 8/4, 2014 at 22:51
1
Solved
I want to clean up the junk created by my application at time on UnInstalling the Application.
Using ManiFest File:-
Added in Manifest File:
<receiver android:name="com.netdoers.com.ui...
Distal asked 24/2, 2014 at 13:44
1
Solved
I want to list all the intent filters that are present in an package.
I am trying to do it using PackageManager class.
I have set the flag PackageManager.GET_INTENT_FILTERS while fetching the Pack...
Gesticulation asked 11/9, 2013 at 10:54
0
I am creating an application in which i need to hide icon launcher and show icon launcher on request. I used below code to hide launcher icon.
<category android:name="android.intent.category.LA...
Multiple asked 19/11, 2013 at 5:39
2
Solved
Hi guys i have made an app free version and paid version.
I was wondering that, Is there any way i can replace the free version with the paid version during istallation.
*Consider this Scenario*
...
Persist asked 25/8, 2013 at 11:13
1
Solved
Status: Really thankful to all who helped and guided here and in part-1! I have made code out of research and help given and have put that working code in EDIT-1. Criticisms are welcomed to make th...
Denominator asked 22/6, 2013 at 14:21
4
Solved
I set my activity as a default launcher to intercept home button clicks like so:
<activity
android:name=".ExampleActivity"
android:label="@string/app_name">
<intent-filter>
<act...
Marileemarilin asked 26/9, 2012 at 3:36
2
Solved
I am getting a strange behavior, and I guess I'm more looking for an explanation than a solution (although solution is welcome as well!).
Here's the code:
PackageManager pm = context.getPackageMa...
Essieessinger asked 22/10, 2012 at 21:25
2
I have several general question about ApplicationInfo and PackageInfo classes. Here they are:
Can someone describe the difference between ApplicationInfo and
PackageInfo?
How do they correlate wi...
Premeditation asked 10/7, 2012 at 8:46
2
Solved
I want to use meta-data in the Android manifest to customize the behavior of a service.
<service
android:name=".SampleService"
android:exported="false">
<meta-data
android:name="samp...
Bloomery asked 27/4, 2012 at 14:34
3
Solved
I am trying to make a program that shows all the active applications.
I searched everywhere but could only find code that shows the package name only.
It would be of great help if you masters can...
Brancusi asked 5/10, 2010 at 5:39
3
Solved
Okay, I decompiled Skype's manifest to find out if there are any Services or Broadcasts running during a call.
There are only a few internal broadcasts for incoming calls. Also only one receiver an...
Lauralauraceous asked 13/1, 2012 at 12:36
1
Solved
I've been trying to get an android application to install an APK on the sdcard programmatically but I'm running into a little trouble.
This is how I'm doing it:
Intent intent = new Intent(Intent....
Ezzo asked 15/6, 2011 at 18:25
2
Solved
I want to get the name and package name of a third party application installed in Android.
I have tried but I got the name of all applications (third party and pre installed).
How can I identify w...
Distress asked 17/6, 2011 at 7:29
© 2022 - 2024 — McMap. All rights reserved.