Android :: Package Manager Get Size Of An Installed Package?
Feb 12, 2009
i work on custom Application Manager and try to get the disk usage of installed package. So PackageManager.getpackageSizeInfo was removed from SDK on 0.9->1.0 update android.content.pm. PackageStats(String pkgName)(cacheSize, codeSize, dataSize) returns always "0" Size of phys. file (java.io.File) in "/data/app" seems wrong/not completely. Has anybody any solution to get the total disc space used by an installed package?
View 4 Replies
Oct 31, 2010
I'm looking for a way to calculate the size of an installed Android application/package. I can't find this information in neither ApplicationInfo nor PackageInfo objects. From the ApplicationInfo I can get the path for the data and the app itself. Data is a directory structure, but when attempting to read it recursivly I get a nullpointer. Is there any better way of doing it? Any sample code?
View 1 Replies
View Related
Nov 1, 2010
does anyone know how you can find the package name for a particular app already installed on your handset? They usually go like: com.example.prototype(Where the folder prototype cotains the runnable files)Trying to use the intent function to launch an app within an app.Was told putting this code in the onclicklistener method for the button would allow this, yet to test it successfully. I reckon it works, just need to figure out package name of the app I wanna launch.Intent i = new Intent(Intent.ACTION_MAIN);i.addCategory( Intent.CATEGORY_LAUNCHER); i.setPackage("com.otherapp.package"); startActivity(i);Want to press a button, to launch the "com.otherapp.package"
View 8 Replies
View Related
Feb 26, 2010
Because I could not get avaible package from "Android SDK and AVD manager" of eclipse, could I get this avaible packages from somepalce?
View 2 Replies
View Related
Sep 27, 2009
How i can get package size info - code, cache and data size? I tried to use PackageStats, but it always returns 0. Right now i can get apk size and dex file size, but how i can get DATA size?
View 3 Replies
View Related
Dec 12, 2011
how package manager works? how activity manager works?? how applications installed in android..
View 6 Replies
View Related
Jun 28, 2010
Not all the packages have license information and I am not sure if those that do have that on the manifest but it doesn't seem like it. therefore, is there a way to extract the license of all the packages installed on a Android system?
View 2 Replies
View Related
Oct 6, 2010
I want to launch an installed package from my Android application. I assume that it is possible using intents, but I didn't find a way of doing it. Does anyone have a link, where to find the information?
View 2 Replies
View Related
Apr 24, 2010
following the directions in the sticky, it says to download the sdk package manager (what ever its called) then install the sdk's for 1.5 2.1 and the usb drivers. then says go to device manager and find the little exclamation, then when i select the usb drivers to install from the device manager it wont allow me. i have two in the directory they are i386 and amd64 neither of them work.
View 2 Replies
View Related
Oct 7, 2010
I'm attempting to override an Android View class to tweak the functionality just slightly. But I need to modify a field that does not have a setter method. I've placed the subclass in a package called android.widget. Why can't I access any of the package-private member fields? I notice that the compiler says they "cannot be resolved," rather than not being accessible. Does this have something to do with how Android.jar is built?
View 2 Replies
View Related
Sep 16, 2009
I have installed the new SDK 1.6r1 on Windows and I realise that 1.6 does not included the older APIs so ran the android.bat tool to download them. The "available packages" only offer me SDK Platform Android 1.1 API 2; I was also hoping to download 1.0 API 1 as I am developing an application that only needs very basic functionality and I would like to be compatible with as many devices as possible.
View 2 Replies
View Related
Oct 21, 2010
Guys I found this today http://innovator.samsungmobile.com/galaxyTab.do and was able to install the package into my avd manager and I now have the Galaxy Tab emulator running.
View 10 Replies
View Related
Aug 27, 2009
Just wanted to know, if we participate in ADC2 will we be required to use a different package name (to the ADC one) for our app *after* the competition is over? Reason for this is that I'm wondering whether I should assign a separate package name now for ADC and keep my standard one for later.
View 2 Replies
View Related
Nov 23, 2009
I have splitted my Android project in 2 packages, lets say: test.current and test.another. From an activity in test.current I want to start an activity in the package test.another
View 6 Replies
View Related
Mar 23, 2009
I'm looking for a way to get the certificates from a package that are used to sign it. Using the PackageInfo class it is possible to get the signatures. But what can I do with signatures if I don't get the public keys to verify these.
The next question I have where does the PackageInstaller verify the signed APK file? The PackageParser class loads the APK file into a JarFile object but does this automatically verify the signature?
View 3 Replies
View Related
Jul 9, 2010
If i create a service and in it use the method context.getPackageName() or context.getPackageCodePath(). If i then compile that service into a .jar file and someone else includes it in their app will those methods return the original package of the service or that package that they have been included in?
View 3 Replies
View Related
Jun 30, 2009
Is there any method to get all android package name?
View 4 Replies
View Related
May 14, 2010
I am trying to put an XML file containing over 1,000 different fish into my app so that I can read this file, create an Array and attach that to the AutoCompleteTextView. I first tried to create a string-array in a resource file but apparently the array was to large and would never actually load anything after a certain number of values. So want I want to do is add that XML file to a place in my app that I can access it and read from it. Whenever I try to bring the XML file in I get all these errors in Eclipse. So how do I add this file and how do I reference it later in order to access it? I could just store it online and access it that way but I think it is a little bit of a waste to have to access the net for that if I can instead just add it to my package setup someplace.
View 4 Replies
View Related
Jun 2, 2010
I've written an Android app wich various abstract classes that perform useful functions. These functions could be leveraged in other apps. I want to share a class module with another programmer, but I don't want to share the source code. I would like to share a .class file but I'm not sure how to do the following:
Compile an Android .java file into .class What does the receiver of the .class file have to do to use that .class in their project? (using Eclipse environment)
View 2 Replies
View Related
Apr 5, 2009
I need to use the transform package (transformer, transformfactory, etc.) so that I can convert an xml node to a new document. However, when I try to import the package, it says that it cannot be resolved. Are you not allowed to use this package on Android?
View 7 Replies
View Related
Aug 18, 2010
I am working on windows with JDK, Android SDK and eclipse set successfully. I download the com.android.sdk package from: http://android.git.kernel.org/?p=platform/packages/apps/Stk.git;a=summary
But when I import the project to the eclipse, errors happen everywhere. Mostly is about the com.android.internal.telephony.gsm.stk.something cannot be imported. I googled to find the reason. It only says because of the these packages is internal package and cannot import with standard SDK. So the question is: How can I compile this project? Should I make a linux environment and get the whole android source code to do this?
View 1 Replies
View Related
May 31, 2010
Once I have created a project with the Android wizard, how do I change the API Package from say 1.5 to 2.1 ?
I'm not referring to the application xml where the minimum API is set, I'm referring to the jar's included in my project to the Google APIs.
View 1 Replies
View Related
Jun 29, 2010
I've been playing around with android app and widgets. have a few things running. but one thing i cant seem to figure out is how to package more than 1 widget. say i wanted to release my set of widgets? where in the manifests can i do this?
View 2 Replies
View Related
Feb 24, 2009
How do I get the Package Name if I am having the PID of the process. For example, if I want to output a list of currently running processes, I can get the PIDs but how do I get the names of the PIDs?
View 7 Replies
View Related
Feb 25, 2009
I'm looking for ideas on how to have a package that is not distributed through the Android Market (it's in closed Beta) upgrade itself.
I had hoped to download the .apk file from my web server and then use PackageManager.installPackage(), but that requires the INSTALL_PACKAGES permission, which is apparently not available to packages not installed in /system/app.
Best idea I have now is to launch an Intent to download the .apk (via web browser), but that would require the user to then manually install the package, which is unkind.
View 2 Replies
View Related
Aug 27, 2009
What I am trying to do is install two applications, packaged from the same code, but with different names and different strings.xml files.
I created the two apk files, however, when trying to install the second application, it fails because it says it's already installed. From what I can tell, it thinks the two applications are the same, my guess is because of the package attribute in the manifest. I modified the manifest with a different package name, but R is generated based on that package name and that affects the rest of the code.
So, my question is this: What's the process I should be using to install two applications using the same code, but with different names and different strings.xml files?
View 3 Replies
View Related
Jul 1, 2010
I m building an android application where I need these packages to import:
import com.sun.cnpi.rss.elements.Item;
import com.sun.cnpi.rss.elements.Rss;
import com.sun.cnpi.rss.parser.RssParser;
import com.sun.cnpi.rss.parser.RssParserException;
import com.sun.cnpi.rss.parser.RssParserFactory;
What should I do? From where can I find these packages?
View 1 Replies
View Related
Sep 24, 2010
I'm developing an Android project which currently has 4 packages:
com.myapp.app.activities
com.myapp.app.db
com.myapp.app.ws
com.myapp.app.utils
Would I be able to create an additional package which is just com.myapp.app. Eclipse isn't letting me create this package. It tells me a package with this name already exists. If I start a new project and create a package called "com.testing.app" and then create a new package called "com.testing.app.activities" afterward, it works fine.
For Android developers: What I'm wanting to do is extend the Application class and have it in a separate package. Suppose com.myapp.app can't be used, what's a good name for this new package?
View 4 Replies
View Related
Jul 6, 2010
How do I make fields accessible across a package? Currently, even if they are declared public i'm not able to access the fields from another class in the same package.
View 2 Replies
View Related
Oct 14, 2010
I need to add few shared libraries to the andriod as part my application installation. Can you please suggest right information resources regarding the same.
View 2 Replies
View Related