Android :: Getting Packages From PackageManager

Oct 10, 2010

I'm writing an app, that has a somewhat modular system. It has a core app, and some apps, that consist of a single Service, that implements the desired interface. I followed the guide to create the IPC communication. But now I need to get all the services, installed on the system, that my core app can work with. How do I do this? I mean, is there any way to mark my Service apps with some kind of a tag, and then filter results, presented by the PackageManager#getInstalledPackages() based on that tag value? What's the common practice of doing so?

Android :: Getting packages from PackageManager


Android :: How Does PackageManager Detect What Architecture APK Targets?

Aug 11, 2010

i'm currently trying to specifically target ARMv7 custom hardware and I'm facing issues when trying to install the APK. When I try doing "adb install app.apk" Logcat informs me that: W/PackageManager( 1062): Native ABI mismatch from package file And does not install the APK. With searching I was able to trace down that the problem might have something to do with the architectures not matching on the APK and the platform. Is this it? How does the PackageManager find out the architecture from the APK file? I'm guessing it's not trying to execute the binary or anything, it just checks the files meta data? If so, is there a place in the APK where this information is located? Or am I completely hitting blank here and I should look somewhere else?

View 3 Replies View Related

Android :: SDK Navigating From PackageManager To Activity To IntentFilters

May 22, 2009

I want to use the SDK (PackageManager API) and dump all packages, their activities and the intent filters the activities use. So far navigating from the Context -> PackageManager -> ActivityInfo is easy. I am stuck trying to figure out how to retrieve the mappings from Activity -> Intent-Filter. Looks like from what i could tell from the SDK documentation, i can obtain the ResolveInfo (if i know the Intent). But how do i retrieve Activity to Intent-Filter mapping?

View 2 Replies View Related

Android :: PackageManager Component Info Error Getting Assets?

Aug 6, 2009

my application caches static resources in its /assets directory and implements a content provider to provide them to a WebView on request. i kinda have to drive around the houses a bit because it seems i can't get a linear file descriptor on an asset, i get "this resource is zipped" or somesuch, don't know why that's a problem. the content provider just caches the asset in /sdcard and then returns a file descriptor off that. this has been mostly working fine, but i've started seeing errors from the PackageManager. nothing's changed on my end, the assets are still there, etc. the actual error i'm getting is -ndroid.content.pm.PackageManager$NameNotFoundException: ComponentInfo{package/activity} (where "package" is the name of the package, etc) can i get anything wrong with this stuff? caching javascript and css stuff in the apk has been a big performance win.

View 6 Replies View Related

Android :: PackageManager.getInstalledPackages() Returns Empty List

Aug 11, 2010

I am running into a very strange situation when using the PackageManager.getInstalledPackages() method. The first time I launch my activity I get a valid list of all the installed packages. But the second time I launch my activity I get an empty list... What could possibly be causing this?

I am using this code to get the list:

CODE:...........

I am building against the 1.6 SDK with compatibility for 1.5+

View 1 Replies View Related

Android :: Purpose Of Using PackageManager In Android

Sep 7, 2010

What is Package Manager ? What is the purpose of using it ?What does the following methods describe:
(1) getPackageManager()
(2) getApplicationInfo()
(3) getPackageName()
Can any one give detailed description as I could not get complete inf. in Android developer guide.
And also one sample program that comprises all the methods.

View 2 Replies View Related

Android :: Error While Using PackageManager In Android

Sep 7, 2010

I got a problem in one Android Application which I am working in which I am getting error when I use PackageManager.I am getting error getPackageManager() does not exists in this class file.How do I solve this issue? I will be eagerly waiting for valuable reply.

View 2 Replies View Related

Android :: How To Get Packages / Which Not Supporting SDK?

Apr 24, 2009

I have see some apps in Android that use some packages:
import android.net.http.EventHandler; import android.net.http.Headers; import android.net.http.RequestQueue; So some packages do not support the current version of SDK. Where can I find it? Would u tell me about it?

View 2 Replies View Related

Android :: Want Available Packages In Phone

Aug 31, 2010

Can anyone tell me what are the packages available in Android, and which package is frequently used and for what purpose they are used. Anybody please help me regarding in this.

View 2 Replies View Related

Android :: Missing OS Packages

Jul 10, 2010

I've been trying to modify the native android applications downloaded from the android source repo at github. But I noticed that after creating Eclipse projects from some apps, like the Launcher, there are missing imports, variables that are not declared anywhere else, etc... After my initial research, I noticed that some of the libs that are native, are compiled at runtime and registered in the dalvik VM as java libs and by having done this the system finds these as already present libs, the same goes for the "phantom" variables. But I don't understand how does a developer open such a project in any java ide, and compile it. So what do Google developers use to work on android apps? I don't believe it's eclipse, since I am not sure you can make eclipse use runtime imports, and runtime variables. And I am almost certain that they do not write code in notepad.

View 3 Replies View Related

Android :: Multiple Packages In App

May 27, 2010

I am including a class in my app that another developer has made freely available. His class has a different package. Will this cause any issues on Android, the market, etc? Does every single class in the app need to be my own package?

View 2 Replies View Related

Android :: Implications Of Using Non Standard Packages

Mar 23, 2009

What are the implications for future Android device releases if we are using non-standard packages such as "com.google.android.maps"?

View 4 Replies View Related

Android :: Using 3d Packages For Icon Design

Nov 3, 2010

if this is a silly question, am sorry about that. I was wondering if its possible to design android icons using a 3d modelling package like blender? i know i have to stick to the guidelines documented already, but was just wondering if anyone had come across or done something similar? Its that little part of the icons(launchers) being able to have a slight perspective and looking through the requirements to design icons it seems i might be a lot faster using a 3d modelling package and then following part of the icons template guide(based from my requirement though!).

View 2 Replies View Related

Android :: How To Create Add On Packages On Phone?

Oct 23, 2009

I have seen several applications that are free, but allow for add on packages to be installed. Gang Wars sells Respect Points Mafia sells Favors Dungeon Quest sells Gems The central game is a free app, but you purchase these add on apps for in-game benefit. Has anyone purchased one of these add on apps? What is the experience like? Do you have to leave the add on installed on your phone? How does this work technically? Do you think they set shared preferences? How would you handle the 24 hour uninstall rule? I am considering releasing a free game with 10 levels, but offering a full set of levels (say 25) as a separate paid app. I'm looking for the best way to accomplish this and thought the above might have some bearing.

View 3 Replies View Related

Android :: Displaying Installed Packages Name

Mar 23, 2010

I want to display all the installed packages to user. Below is the code snippet I used but not sure why it is not working.

int flags=0; PackageManager pack = null; List<PackageInfo> packInfo= pack.getInstalledPackages(flags); CharSequence[] items = new CharSequence[packInfo.size()];

Vector <Process>allProcesses = new Vector <Process>(); for (int i=0;i<packInfo.size();i++) { String packI = "Packages"+packInfo; Toast.makeText(this, packI, Toast.LENGTH_LONG).show();

}

I just to display the entire list of packages to user. Any idea what's the problem with the above code?

View 5 Replies View Related

Android :: SDK Not Updating Installed Packages

Apr 7, 2010

When i try to do "update all" from Android SDK and AVD Manager thru' windows environment i got following error msg - Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: dl-ssl.google.com, can anybody pls let me know of the correct link from where it will fetch the packages?

View 1 Replies View Related

Android :: Target Api 1.6 But Use Packages From 2.0 (safely)

Nov 25, 2009

My app targets 1.5, and runs fine on my phone (1.6), but to support droid, I need the package android.telephony.cdma from 2.0. Targeting 2.0 excludes the current devices running my app (including my own G1), but as it is now, I can't support the Droid.

View 8 Replies View Related

Android :: Getting IDE Error When Importing Packages

Oct 17, 2010

i developing Gtalk Like Application. but when i import package i.e. import com.google.android.gtalkservices.IGTalkService; IDE give me Error like Can not resolve.

View 2 Replies View Related

Android :: Accessing Resources From Other Packages

Jul 27, 2010

I'd like to access resources from other packages installed. Is there any better practice than using getResources() combined with createPackageContext()? Another question is how to use resources from other packages in methods like Notification(int icon, CharSequence tickerText, long when), where 1st argument is just resource id?

View 13 Replies View Related

Android :: Export New Packages To Platform?

Aug 5, 2009

I am new to Android development. I am developing in Eclipse with Android plugin. I am writing an android application, which is dependent on some other new API. I want to know how to export the new API to android emulator. I import the API in the build configuration. It is being compiled. But when I try to run it on emulator, it generates errors.

View 2 Replies View Related

Android :: Use Jar Libraries In Compiled With Packages

Sep 28, 2010

I need to import a couple of jars that where compiled under the full implementation of java. I know that Android doesn't use all the packages that java has to offer. My question is: Is it possible to import them without creating errors? Is there a tool that can convert jars to android jars? if so, can some examples be provided.

View 1 Replies View Related

Android :: Can I Call R.java Across Packages

Feb 16, 2009

I have two packages(Pack1 and Pack2) in same project(Proj) When i created the project (Proj) that time Pack1 was created and R.java was there bydefault.

Now i created Pack2 in same project(Proj) and want to acess some XML files there, but cant access as when i write "R.layout.xxx" that time i don't find any list of xml files there.

Is there any solution to access the XML files across packages

View 3 Replies View Related

Android : Indicate In Manifest Multiple Packages?

Oct 22, 2009

How do I indicate in the manifest multiple packages

View 4 Replies View Related

Android :: Use J2me Packages And Vice-versa

Sep 15, 2010

Can we use j2me packages in android development? I just mean to say like for eg: sax parser is supported in both the platforms. So can we code the business logic in j2me platform and use that class in android platforms and vice-versa?

View 1 Replies View Related

Android :: Renamed Packages / Now Activity Cannot Be Found

Oct 5, 2010

So today I had a bright idea to rename my packages, now my android application which I have schedule for release on Thursday is not working.
I am getting a similar error as follows:
Error: Activity class {org.me.androidapplication2/com.albertrosa.DEMO.MainActivity} does not exist.
I have modified the manifest to reflect the change:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.albertrosa.DEMO"
android:versionCode="1"
android:versionName="1.0"
there is more to the manifest but this is all that I have changed. is there something I am missing or doing wrong. I am using netbeans to build this app.

View 1 Replies View Related

Android :: Aidl's - Service And Multiple Packages

Jul 20, 2010

I've created a service that is meant to communicated to an activity using aidl's and callback functions. I got it working just fine with my test activity in the same package. But I was wanting to expose this service to different activities running in a completely different .apk file. Is it possible to accomplish this? What does the separate package need to bind to my service and register the callbacks? Or am I going about this completely wrong and should I try a different method for conveying information back and forth between two packages.

View 3 Replies View Related

Android :: Way To Install Python Packages On Droid?

Apr 29, 2010

I want to install a python package from source on android. Is this possible? I tried in the console to run the py install files, but disturbing (.core, ccompiler) isn't being found. Is it possible to still install them?

View 2 Replies View Related

Android :: How To Add Swing Packages To Library For Project?

Nov 19, 2010

First of all I'd like to mention I am very new to Java programming. This Android project is my first experience with Java. So for one task I need to strip HTML tags from a string. I was thinking about using this answer Removing HTML from a Java String to do this task. In order to do this I need to be able to import javax.swing.text.html.* and javax.swing.text.html.parser.*.

I went to the properties of my project and attempted to add this library to my project. I read that this was included in the rt.jar file which was located at /usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar. I was able to use the imports but it seems like it added a million libraries I am not using. Will this negatively effect my application? What is the correct way to add just the one extension?

View 1 Replies View Related

Android :: Access A AIDL Service From Different Packages?

Jun 18, 2010

I have created a service which exposes few AIDL defined interfaces. I want to access this Service from an application with different package. I have no clue how to achieve this. I want to see an example on this.

Unfortunately all examples I see has client application in the Service package it self:(

Could you please share some sample/example code on this?

View 7 Replies View Related

Android :: How To Start Activity In Phone Default Packages?

Dec 21, 2009

I have implemented code to start android built in applications like email application see the following code...

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved