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.

Android :: PackageManager Component Info error getting assets?


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 :: Error Creating MediaPlayer With Uri Or File In Assets

Jun 22, 2010

I copied song.mp3 to my project's assets directory and wrote this code:

private MediaPlayer mp;

Uri uri = Uri.parse("file:///android_asset/song.mp3");

mp=MediaPlayer.create(this, uri);

After running the create statement, the variable mp is null.

View 1 Replies View Related

HTC Hero :: Update & Sync - Error 1713 Component Missing

Sep 23, 2009

Do I take it you do need HTC Sync on your PC to do the update as I still can't get HTC Sync to install let alone be able to use it ! (Error 1713 component missing - told I need to delete something but not sure what, if I uninstall the drivers it still makes no difference)

View 2 Replies View Related

Android :: Error - Or Out-of-date Info - In Docs

May 19, 2009

http://developer.android.com/guide/topics/media/index.html shows sample code for recording audio, including the following line: values.put(MediaStore.MediaColumns.TIMESTAMP, System.currentTimeMillis ());

Currently, MediaStore.MediaColumns has no TIMESTAMP field. What is the best way to notify the maintainers of the docs of any errors we find?

View 2 Replies View Related

Android :: Server Error When Saving Cc Info From Market

Aug 15, 2010

Many of my buyers are getting a "Server Error" during the purchase process of my app from Android Market. The error occurs only for people who have not purchased from Android Market before and do not have credit card credentials stored in a Google Checkout account.

During purchase process from Android Market, users are brought to the screen to enter their credit card info. When they save the data from this page (Done button), they get a Server Error or "attention, a server error has occurred".

Started happening around August 3rd, 2010, and has been fairly continuous since. Limited response from Google so far, but supposedly they are working on it.

There is a convoluted work around, (make sure gmail account is synced to phone, go to checkout.google.com on a PC, enter cc info there, then go back to Market and make the purchase). But Google Checkout and Android Market need to fix this.

I suspect the actual error is thrown by Google Checkout, since they are the ones storing the cc info.

View 6 Replies View Related

Android :: MediaPlayer - Command PLAYER_SET_DATA_SOURCE Completed With Error Or Info PVMFErrNotSupported

Dec 8, 2009

I have two versions of the same application that starts by playing an mp3 from the res/raw/ directory, both versions of code are the same as far as the MediaPlayer is concerned and the code used. I get the following error in one version and it plays just I would expect in the other version. I am using 1.5 as my target. I get the same issue on my the devices (G1 and G2) as well as the emulator. I have read some other posts with the same issue and still am unable to resolve my own issue. For those who are going to come back with use MediaPLayer.create (context, id) I can not as I want to control what is being played without creating new instances of the player. It perplexes me that the same code works in another version of the same app that has no change in the code (in fact the alternative app just has a reduced number of images in the drawable folder).

The error message also will occur if the file is not found by using mp.setDataSource("file");

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

View 3 Replies View Related

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?

View 1 Replies View Related

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.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 :: Space Between Component

Aug 20, 2009

I am putting one spinner and one button using following code. Can some one tell me how can i put some space between it?

View 4 Replies View Related

Android :: Use Of Service Component?

Aug 31, 2010

Service Component is used to do some task which can be done without user interaction. But for that we have to run a thread in subclass of the Service. I think we can create a thread in Activity class itself then what is the use of Service component? Why don't we create another thread and write the non interacting code in this thread.

View 10 Replies View Related

Android :: Unlock Key Component

Apr 30, 2010

I have almost completed my Android application so am considering ways of distributing the application. I have seen some applications on Market have free limited/locked version and separate Unlock Key/License Key which unlocks extra functionality. How is this done? Has anyone here done this? If so, how well does it work? I am thinking maybe this is better then having two versions of the same application (i.e Lite and Pro).

View 1 Replies View Related

Android :: CustomSpinner Component ?

Nov 18, 2010

I've created a custom component which works like a lock of a safe. customspinner - Project Hosting on Google Code on picture you see two different objects of my component.

If you need to create UI when user need to choose some element of a list, using this non standard component will be more intresting for user. And it is usefull - user can scroll and find a needed value very quickly.

View 4 Replies View Related

Android :: Component ClassNotFoundException ?

Jan 11, 2010

A component I have created works fine if I put it in the main project and reference it from any res/layout xml, but when I put it in a project on which the main project depends, I get a ClassNotFoundException in the xml.

Whilst after compiling the interface works fine, it is a pain in the * to design an interface without seeing what I am doing because of the error. Does anyone know how to solve it?

Stacktrace:

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

View 2 Replies View Related

Android :: XML Layout Of Custom Component

Jul 9, 2010

I have created a simple class named Panel which extends the SurfaceView class and does some drawing in the onDraw method. When I use it from the code it works fine. For example this works as expected:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new Panel(this)); ....

However when I try adding this component from an xml layout the program crashes:
XML file (main.xml):
<?xml version="1.0" encoding="utf-8"?> <org.anddev.Panel android:id="@+id/panel" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"/>

Code:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);....

Error msg: Sorry!
The application Test (process org.anddev) has stopped unexpectedly. Pleas try again.
I can not figure out why the same class works when created in one way and doesn't work when created in another.

View 3 Replies View Related

Android :: New OMX Component Integration Into Opencore

Aug 2, 2010

I am trying to integrate VP8 video codec into PV opencore FW in Froyo & test at PV test application level. I have done the following steps, 1. Made a new folder for vp8 @ external/opencore/codecs_v2/omx/ omx_vp8. 2. Made appropriate modifications in the omx_baseclass, omx_common etc. 3. Modified the PV test app (external/opencore/codecs_v2/omx/ omx_testapp) for testing VP8. 4. included the VP8 source code to froyo. 5. Included new oscluuid for VP8 With these modifications, the build is fine. The shared libraries and binaries are creating properly. Also OMX-MasterInit is passing. But the application fails at OMX_GetHandle(). *pHandle is coming as zero. I am using the PV OMX core. I am just adding a new codec which is not supported by PV Opencore and test at PV test_app level.Can you please answer my below queries: 1. Do we need to change the pvplayer.cfg file? Bcoz i am using the PC omx_core itself. 2. Any other changes needs to be done for integrating a new component into Opencore? Please provide you valuable inputs. Let me know if need any additional informations.

View 4 Replies View Related

Android :: Best Practices For Library With UI Component

Jun 26, 2009

My company is in the process of evaluating if we can add support for Android to our product. I am currently working on porting our existing J2ME library to the Android framework and I have a question regarding our UI component. Right now, we have a custom menu that we allow our developers to bring up on the device. On J2ME, we simply have a single call that the developer makes to enter into the menu and then we handle the rest. On Android, it seems the best way to handle this is an Activity. But I have a few questions regarding this approach including is the really the best way to do something like this? Second, if it is, if there are multiple applications on the device that are using our library, are there going to be conflicts with them all having the same Activity embedded in them? Is it possible to create an Actvity at runtime and use it directly? Would there be any side effects of going about it this way?

View 2 Replies View Related

Android :: Share Component As APK File

Feb 14, 2009

I am working on couple android applications which share a common component. The component has Activities, Service and own AndroidManifest.xml. After research, it seems there is no concept of run time share library among applications in Android. So I am looking for a way to linked the share component with other applications at compile time. Applications which will use the component can come from external, therefore I will only provided the compiled file. I would like to build the component into own apk or jar file, can external application include my jar/apk file into their package and be able to start my activity? Please share your experience and advice.

View 3 Replies View Related

Android :: A Calendar UI Component / Widget

May 27, 2010

I am looking for a calendar UI. Something like the Calendar UI of the Calendar Android Application but only with the view. (I know that's open source so I can extract the UI but it's a long process to remove all the staff unnecessary) Is there any open source Calendar UI project for android ?

View 2 Replies View Related

Android :: Make Customized UI Component

Mar 9, 2010

IN our current project, I need to make a UI describled as follows.

Basically it is a text input, it will display a string returned from server , such as "I like banana". The word "banana" will be in red color. When user clicks "banana", it will have a dropdown list shows "apple, orange, pear". User would be able to select one of them, like apple. So the text in that UI would be "I like apple".

How could I build such a UI component in Android.

View 2 Replies View Related

Android :: Setfocus On Component And Remove?

Nov 20, 2010

How do i do a if statement but i want like: else if not edittext.getText.toString.contains("hello") then doCode. and how do i setfocus on a component and remove the focus can not really figure that out.

View 2 Replies View Related

Android :: How To Implement Ticker Component

Nov 2, 2009

I want to make Ticker Component but i dont know how to do this. I have seen "Marquee" but it start scroll on focus but i dont want. I want to scroll text if it is focused or not means in both conditions.

View 3 Replies View Related

Android :: Callbacks With WebView Component?

Sep 17, 2010

I am doing authentication with a third-party site that's supposed to redirect back to my app with auth token (OAUTH).

I have the callback working properly if I open the 3rd party site in a separate browser process via this.startActivity(new Intent(Intent.ACTION_VIEW, uri));

But, if I embed a WebView component in my layout, and open the url in that, the callback does not work. Webview says "You do not have permission to open myapp://callback?token=...." and quickly refreshes to "Web page not available...temporarily down..."

View 1 Replies View Related

Android :: PreferenceManager Without Visual Component?

Jul 19, 2010

I am trying to get a SharedPreferences object from the PreferenceManager but don't want to pass in the Context to the class.

Can I get a "global" context from inside my class?

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

View 1 Replies View Related

Android :: Clarifications Regarding JNI Of Media Component

Jun 17, 2009

First of all let me say that i am new to the JNI. However, i gathered some knowledge about it. As i was going through the android_media_MediaPlayer.cpp in ase mediajni to understand the way of operations of the android media framework, i saw the signatures of the JNI functions don't contain JNIEXPORT and JNICALL macros. Have these macros become redundant in JNI 1.4?

View 2 Replies View Related

Android :: Common Component Externalization

Jan 8, 2010

I am a game developer and have developed a nice global high scores module. The source code is in two different games of mine and anytime I make changes I carefully copy and paste the java files from one project to the other. As I increase the sophistication of this module, the copying and pasting can take a day or two to make sure I get it right. Now I am finishing up my third game and want to add the high scores module, but copying and pasting this in three separate projects seems absurd and will take up much of my time! Is there any way to externalize this module?

Unfortunately, the module makes reference to R for strings, layouts and other resources. It also uses common Android functions and resources from the Android library. Almost anything would be easier than the method I am using now--so any and all suggestions are welcome!

View 2 Replies View Related

Android :: Weird Gui Component Edges?

Oct 15, 2010

I developed my application and tested it on android emulator 1.6, 2.1 & 2.2 and on HTC Magic
its running PERFECTLY and the gui components look very neat...

However, when I tested it on Sony Ericsson Xperia X10 the gui components are looking fuzzy........

View 1 Replies View Related







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