android-package-managers Questions
8
Instead of going the regular getPackageManager().getLaunchIntentForPackage("com.example.app") way, I want to create the launch intent by myself.
Intent intent = new Intent(Intent.ACTION_MAIN);
int...
Patel asked 2/2, 2019 at 11:40
7
Solved
I am trying to write an android app, which used to build once upon a time. Now, everytime I build, I get the following error:
Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: Androi...
Socialization asked 9/4, 2019 at 19:23
2
Solved
I have a Jetpack Compose project were I can access a coroutineContext object only. No context available here.
How can I access or initialize android.content.pm.PackageManager ?
Bolivia asked 15/10, 2020 at 18:15
3
Solved
Actually i want some kind of Broadcast when any other app fetches the data from the content provider shared by my app
Threadgill asked 1/10, 2015 at 10:14
3
I'm new to android programming. I've created an app using Eclipse with a MainActivity.java and ClassFragment.java files. ClassFragment is a frangment. And I'm using newly updated appcompat library....
Quahog asked 10/1, 2016 at 19:30
2
Solved
I have an application which is keeping a log of internally developed applications installed on the device. Upon installation a broadcast receiver for Intent.PACKAGE_ADDED is invoked and records the...
Caroncarotene asked 18/1, 2012 at 12:54
5
If I want to retrieve an ApplicationInfo list for all apps of the current user, I can just run:
PackageManager pkgmanager = ctx.getPackageManager();
List<ApplicationInfo> installedApps = pkg...
Antonietta asked 30/7, 2019 at 7:30
3
Solved
This code shows default share dialog
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType("text/html");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Message")...
Lechner asked 8/6, 2016 at 13:59
4
I have one project in android studio,
I have first exported project from eclipse to android studio.
After that
I have changed its package name in AndroidMenifest.xml,
rename directories from ...
Nappie asked 12/11, 2014 at 13:59
10
Solved
I am using the following piece of code at the moment:
List<PackageInfo> packs = getPackageManager().getInstalledPackages(0);
but it returns Apps that have been installed by the both device...
Sheeran asked 4/1, 2011 at 21:47
3
I get "Update Rejected" in Google Play console, stating that I need either remove REQUEST_INSTALL_PACKAGES permission or provide policy declaration for it.
The thing is, I do not have thi...
Entoderm asked 24/10, 2022 at 7:27
0
I'm making an APK Install app and I've been through a lot. Especially, versioning.
to do that, i looked up some posting and StackOverFlow. but All the postings make me more confused now. So, What i...
Analyse asked 16/5, 2022 at 9:27
2
I've a very simply function like following:
public static boolean isAppInstalled(String packageName) {
PackageManager pm = MainApp.get().getPackageManager();
try {
pm.getPackageInfo(packageName...
Workbench asked 21/10, 2018 at 13:18
3
Can someone tell me please why this gives me null on the variable intent?
public class MainActivity extends AppCompatActivity {
private static String action = "com.google.android.youtube"...
Sporophyll asked 27/10, 2020 at 9:50
18
Solved
Let's suppose this is the package name:
package com.company.name. How do I change company?
P.S. I saw how to change name but not company.
I'm using Android Studio.
Laurilaurianne asked 1/9, 2013 at 11:43
1
I would like to detect the app installation source.
We can use two approaches on Android to detect the installation source: PackageManager#getInstallerPackageName(String) or PackageManager#getInsta...
Pisciculture asked 5/8, 2021 at 13:3
15
Solved
I try to deploy my app and sometimes get this error:
Failure
[INSTALL_FAILED_CONTAINER_ERROR]
I tried to google it but don't find what the error means or what it's
caused by. I deploy via ID...
Granese asked 21/4, 2011 at 12:46
1
This line is described on the developer site but I did not understand it perfectly
Call getInstalledApplications() or getInstalledPackages(). Both methods should return a filtered list.
Actually, ...
Pirandello asked 21/4, 2021 at 5:47
4
Solved
So right now I am trying to develop an Android App for my young children. I want to set a pin or passwords on selected applications for a particular amount of time to prevent them from opening the ...
Poteet asked 22/8, 2014 at 6:21
6
Solved
I have a application which uses camera functionality in it but part of its functionality can also run without camera feature. SO I have put this in my manifest.
<uses-permission android:name="a...
Noelianoell asked 26/3, 2014 at 5:25
3
Solved
This is my code
Intent intent = new Intent(Intent.ACTION_DELETE);
intent.setData(Uri.parse("package:" + theApp.getAppOpen()));
startActivity(intent);
When startActivity is called, a default prom...
Proven asked 15/5, 2014 at 23:37
6
Solved
i had used below code for hide app icon programmatically
try{
PackageManager p = getPackageManager();
p.setComponentEnabledSetting(getComponentName(), PackageManager.COMPONENT_ENABLED_STATE_DISA...
Koralle asked 1/10, 2013 at 10:58
2
Background
My app (here) can search for APK files throughout the file system (not just of installed apps), showing information about each, allowing to delete, share, install...
As part of the sco...
Rau asked 25/5, 2019 at 22:18
1
Solved
Background
I've noticed there is a new function on the PackageManager called "getPackageInstaller" , with minAPI 21 (Lollipop).
I've reached the "PackageInstaller" class, and this is what it is w...
Humble asked 5/5, 2015 at 12:38
3
Solved
Background
I'm trying to check if an activity (or any other app component type, for that matter) is enabled/disabled at runtime.
The problem
It's possible to use the next code:
final Component...
Caneghem asked 16/11, 2014 at 11:23
1 Next >
© 2022 - 2024 — McMap. All rights reserved.