android-package-managers

What does this mean: Failure [INSTALL_FAILED_CONTAINER_ERROR]?

空扰寡人 提交于 2019-11-26 15:14:56
问题 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 IDE (IntelliJ) the file gets copied to the device to the /data/local/tmp (unrooted Huawei Ideos, running 2.2), but the package manager doesn't seem to like it. Before installing the apk, I already removed the app from the device beforehand. I also made sure there was no old file under /data/local/tmp on the

Android hide/unhide app icon programmatically

为君一笑 提交于 2019-11-26 04:35:24
问题 i had used below code for hide app icon programmatically try{ PackageManager p = getPackageManager(); p.setComponentEnabledSetting(getComponentName(), PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP); }catch (Exception e) { e.printStackTrace(); } Now I want to make icon visible programmatically 回答1: Hide app's icon using below code: PackageManager p = getPackageManager(); ComponentName componentName = new ComponentName(this, com.apps.MainActivity.class); //