Skip to main content

Posts

Showing posts with the label install

Android SDK installation doesn"t find JDK

I'm trying to install the Android SDK on my Windows 7 x64 System. jdk-6u23-windows-x64.exe is installed, but the Android SDK setup refuses to proceed, because it doesn't find the JDK installation.

install / uninstall APKs programmatically (PackageManager vs Intents)

My application installs other applications, and it needs to keep track of what applications it has installed. Of course, this could be achieved by simply keeping a list of installed applications. But this should not be necessary! It should be the responsibility of the PackageManager to maintain the installedBy(a, b) relationship. In fact, according to the API it is: public abstract String getInstallerPackageName (String packageName) - Retrieve the package name of the application that installed a package. This identifies which market the package came from. The current approach Install APK using Intent Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(apkUri, "application/vnd.android.package-archive"); startActivity(intent); Uninstall APK using Intent: Intent intent = new Intent(Intent.ACTION_DELETE, Uri.fromParts("package", getPackageManager().getPackageArchiveInfo(apkUri.getPath(), 0).packageName,null)); startActivity(intent); This i

android, uninstall and install into the same activity?

I am trying to do an upgrade version process for apk files ... How can i do to run uninstall and install Intent calls into the same activity? If i do , uninstall intent, Uri packageURI = Uri.parse("package:" + paqueteId); Intent uninstallIntent = new Intent(Intent.ACTION_DELETE,packageURI); startActivityForResult(uninstallIntent, RESULT_OK); is there anyway to wait for the uninstall finish and then continue running the activity code ... and then launch the install intent ??? thank you