Android :: Resource In Conflict

Sep 4, 2010

My application has resource conflict problem. Did some investigation, seems like all the resources within the apk file are cached after they are loaded on demand. The cache is stored in mDrawableCache. The key to retrieve the drawable from this cache is combining the data and assertCookie fields of TypedValue class. In my application, there are 2 resources, ex. a color background and image drawable, evaluated to the SAME key value.. So just wondering, how can it happen?BTW, I am using eclair SDK.

Android :: resource in conflict

Android :: How To Use Resource Within A Custom Xml Resource File?

Aug 3, 2010

I have an XML resource file:
<resources> <section>
<category value="1" resourceId="@xml/categoryData1" />
<category value="2" resourceId="@xml/categoryData2" />
<category value="3" resourceId="@xml/categoryData3" />
</section> </resources>
Using XmlPullParser, on the START_TAG, I can use:
int value = parser.getAttributeIntValue(null, "value", 0);
to get values 1, 2, 3...however:
int resourceId = parser.getAttributeIntValue(null, "resourceId", 0);
doesn't just yields the default value 0, or whatever I change the default value (3rd parameter) to be. Does anyone know what I am doing wrong or if this is possible?

View 1 Replies View Related

Android :: AllowTaskReparenting And FLAG_ACTIVITY_CLEAR_TOP Conflict

Dec 14, 2009

I am using Android 2.0 and have the following situation:


This activity belongs to a task that has a service running and is usually not killed, so even when I am in the home screen I see the task running on DDMS (I will call it Task A).

It is possible to start Activity A from another application (running on Task B). When it is launched, I assume Activity A is "reparented" to the Task A. I assume that, because the debugger stops on the breakpoint I have set on onCreate and I am debugging Task A only. Please, advise if this is not correct.

So at this point, as far as I can tell, Task A has only Activity A. When in this situation, the service running on Task A receives some event and puts a notification on the Notification bar. This notification, if clicked, will send an Intent that also starts Activity A (this Intent has flags FLAG_ACTIVITY_NEW_TASK and FLAG_ACTIVITY_CLEAR_TOP).

Now to the problem, what I expected is that, because of the CLEAR_TOP flag, Activity A would be destroyed and recreated, as it has standard launch mode. But what I observe is that another Activity A launches on top of the previous one. When I click BACK on the new instance of Activity A, the old instance is redisplayed, what for my use case is wrong. Note that this only happens when launching Activity A from another application. If I launch it from my application and click on the event on the notification bar, it is destroyed and relaunched.

View 2 Replies View Related

Android :: SMS BroadcastReceiver Conflict With GPS LOCATION_SERVICE

Mar 1, 2009

SMS BroadcastReceiver conflict with GPS LOCATION_SERVICE.

Code is here:


View 2 Replies View Related

Android :: APK Installation Fails / Package Conflict

Mar 24, 2009

I'm testing an app I'm developing and asked a friend to install on their device. I wanted to make it as easy as possible for them to help me out so I put the .apk up on my website for them to download to the phone (rather than making them download the SDK and use adb to install). The install of the downloaded .apk fails, complaining of a package conflict.

I have since gotten my hands on the phone briefly and I verified that:
* they have selected "allow unsigned apps" in settings
* there is no package with the same (or similar) name in data/data * installing via adb works with not a peep
* when I download the .apk to my phone the app installs fine.
It would be really nice to make it as easy as possible to distribute to people who might be willing to do me the favor of testing.

View 3 Replies View Related

Android :: Do Locale / Power Manager Conflict?

Mar 6, 2009

I just downloaded Locale and have the free Power Manager. My question is, do they conflict on settings, and do I have to disable one to get the other to work correctly?

View 4 Replies View Related

Android :: HTC Hero / Vista Sync - Settings Conflict?

Nov 5, 2009

After 3 install/uninstall/install attempts my phone is syncing with my vista laptop, but the my outlook 2007 calendar and contact information only goes one way, from the laptop to the phone. I can't find the settings (conflict?) that will allow the two devices to swap info.?

View 1 Replies View Related

Nexus :: Conflict Free Phones?

Mar 1, 2010

I saw some report on the metals that are used in all cell phones and are fueling the conflict in Congo.

View 4 Replies View Related

HTC EVO 4G :: Pandora / Google Maps Conflict?

Jul 24, 2010

I was listening to Pandora and decided to open up Google maps (In the car). And I noticed that in Gmaps it wouldn't give me an accurate reading and by accurate meaning when it says "accurate to 3 meters". It would say "accurate to 1000 meters" or to 1200 w/e. So i closed Pandora and opened Gmaps and right away it gave me an accurate reading of 3 meters.

So I believe you cant run Gmaps accurately if you're listening to music on Pandora? Or is it just my phone? Try this and let me know what u get.

View 3 Replies View Related

Motorola Droid X :: Conflict Between LauncherPro And WidgetLocker?

Aug 15, 2010

Today I rebooted my phone and LauncherPro got stuck starting, only displaying a window in the top left corner, like it couldn't finish rendering the preview screen, and it never starts on that anyway. I was totally stuck without access to the menu buttons but still had the notification for WidgetLocker, so I was able to get to that, unlock it, restart the Moto launcher, and disable WidgetLocker. Now that it's disabled, I seem to be able to make LauncherPro my home again, but it looks like I'll have to disable WidgetLocker, which I really liked.Not sure what else could be causing the problem - probably something to do with WidgetLocker's home launcher sub-app.

View 11 Replies View Related

HTC EVO 4G :: Latest OTA Resolve Bluetooth Wi-Fi Conflict Issue

Jun 30, 2010

For the people who HAD the blue tooth issue where you get random dropouts of blue tooth when Wi-Fi is on, did the latest update fix this?

If you never had a blue tooth issue, that's awesome and I'm happy for you! But please don't clutter up this thread with "no problems" comments.

View 1 Replies View Related

Motorola Droid X : Overclocking Apps / Should Remove One So They Do Not Conflict?

Nov 21, 2010

Sorry for a new thread but I was afraid my question would not be seen because of the size and age of the other thread. I was using the DX/D2 overclocking app and decided to download the Droid X/2 overclock so now I have 2 overclocking apps. Should I remove one so they do not conflict?

View 1 Replies View Related

HTC Desire :: Contacts Icon / Photo Conflict / Phone Vs FaceBook

Jun 13, 2010

i've just upgraded to the Desire & am liking many things in it, but this issue bugs me:i've synced & linked the contacts in my 'people' app. in some cases, this involved linking the FaceBook profile of a person with a pre-exisitng phone number in my phone/sim card.The problem is that the phone seems to default to the Facebook 'profile picture' as the icon/photo that shows up in my People app (for that contact), even if tell it not to.I've tried downloading new pics, or taking a photo with the camera, and then manually setting this as the 'icon' for a certain person. This works for a while (a few hours?) and then within one day, the phone automatically re-sets this icon & replaces it with the Facebook profile pic. again.

View 17 Replies View Related

General :: Contact Pic Resolution JB / ICS - Conflict 2 Devices And 1 Google Account

Sep 12, 2012

I've got a smartphone running Jelly Bean. As I like the gmail contact photos very much, I was happy that one new feature of Jelly Bean is the fact that the contact photos are synced with Google servers in hi-res (720x720). I spent a good deal of time replacing the awful downsized pictures with new hi-res pictures. They sync in 720px, everything fine, so far.

Where my problem begins: Within the next days I expect the arrival of my new tablet. It's a low budget one (Arnova 10b G3) which runs Ice Cream Sandwich and which maybe won't ever get a Jelly Bean firmware.

I'm in a conflict now: On the one hand, I'd like to use the tablet with my Google account and not create a dummy account or something like that. This would spoil much of the usability of the account. On the other hand, I don't want to destroy my hi-res contact pics because one Google sync under ICS would downsize them forever and I guess they would again sync downsized to my Jelly Bean phone.

Is there maybe a hack that prevents Google from syncing the contact pictures? In this case, I could use the Google account on the ICS tablet just without contact pics. The downsized pics are rubbish anyways if one's display has a proper resolution.

Or, can one prevent Google from syncing the contacts after setting up the account? I know that the contact sync can be unchecked in the settings but as far as I know, that doesn't prevent the initial sync.

View 1 Replies View Related

Android :: Android - Avoiding Conflict Of Setting Text Field Values

Nov 17, 2010

I'm writing an Android application that allows a user to maintain a list of products. In the EnterProductData activity, the user can enter information about the product into form fields, which will then save the info to a SQLite DB. The EnterProductData activity also allows the user to initiate a barcode scan via the Barcode Scanner app in order to capture the UPC code. The problem I'm facing is trying to set the value of the UPC text field in onActivityResult() once the barcode scan activity is complete and returns the value.

What is ending up happening is my onResume() method is calling a function (populateFields()) that sets the values of the text fields to whatever is currently saved in the DB. And this seems to be happening after onActivityResult() is called. This means the scanned UPC is set as the text field value, only for an empty value to be set to it immediately after. The line of code to blame is commented with asterisks next to it. I imagine that if I immediately save the scanned UPC to the DB in the onActivityResult() method, I can avoid this problem, but that doesn't seem to be the best practice, in my opinion. Can someone advise me on what I should do?
public class EnterProductData extends Activity {
private Button mScanButton;
private EditText mUPC;
private Button mSaveButton;
private Long mRowId;
private DbAdapter mDbHelper;

protected void onCreate(Bundle savedInstanceState) {
mDbHelper = new DbAdapter(this);;
mUPC = (EditText) findViewById(;
mScanButton = (Button) findViewById(;
mSaveButton = (Button) findViewById(;

mRowId = (savedInstanceState == null) ? null :
(Long) savedInstanceState.getSerializable(DbAdapter.KEY_PRODUCT_ROWID);
if (mRowId == null) {
Bundle extras = getIntent().getExtras();
mRowId = extras != null ? extras.getLong(DbAdapter.KEY_PRODUCT_ROWID): null;}
mScanButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
mSaveButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
}private void populateFields() {
if (mRowId != null) {
Cursor product = mDbHelper.fetchProduct(mRowId);
product.getColumnIndexOrThrow(DbAdapter.KEY_UPC))); //******}
protected void onSaveInstanceState(Bundle outState) {
outState.putSerializable(DbAdapter.KEY_PRODUCT_ROWID, mRowId);
protected void onPause() {
protected void onResume() {
}private void saveState() {String upc= mUPC.getText().toString();
if (mRowId == null) {
long id = mDbHelper.createProduct(mRowId, UPC);
if (id > 0) mRowId = id;
}} else {mDbHelper.updateProduct(mRowId, UPC);
}}protected void onActivityResult(int requestCode, int resultCode, Intent data) {
switch(requestCode) {
case IntentIntegrator.REQUEST_CODE: {
if (resultCode != RESULT_CANCELED) {
IntentResult scanResult = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);
if (scanResult != null) {
String upc = scanResult.getContents();

View 1 Replies View Related

Motorola Droid : Does Spare Parts 'Task Management Conflict At All With AutoKiller

Jun 4, 2010

I notice that Spare Parts came with a Task Management option. I was wondering if anyone has seen a conflict between using Spare Parts and AutoKiller which seems to have the same job except with more features?

View 11 Replies View Related

General :: Samsung Galaxy S2 - Synching With Two Exchange Servers With Security Policy Conflict

Jun 8, 2012

I have an SGS2 with the latest ICS release (rooted). I work with two companies supporting sync with the exchange server (2010) on a smartphone.

I can set up both exchange servers at the same time. The first day the both work, but on the second day one of the two (so far always the same) start giving me connection errors, and will no longer sync emails.

I am almost sure that the problem is that for security reasons, both want to have their security policy (admin privileges etc) enforced over my phone, and when they re-check daily they find that the policy is not as they want it. to overcome this?

View 2 Replies View Related

Android :: Resource ID

Sep 6, 2010

I am using the function decodeResource(Resources res, int id, BitmapFactory.Options opt).I am using it in the following way:

BitmapFactory.decodeResource(getResources(), R.drawable.image,opt);

My question is instead of using R.drawable.image which is an image in resdrawable folder, I want to use a image from sdcard.Is it possible? How to get the resource id of an image in the sdcard?

View 3 Replies View Related

Android :: Get Resource ID From Value

Oct 11, 2010

I do have a lot of language specific resources. There's one point in my Android apps where I do get a resource value and need to translate this value into the matching id. The value is not neccessarily in the language specific file for the current language (en/de/...). It's somewhere in there ... and it's unique.

After reading the docs and this thread "" I thought that "getIdentifier(String name, String defType, String defPackage)" is the correct way to go but I can't get it to work. The result is always "0".

This code is part of an activity and I'm on Android 2.2.

Is it possible that Android doesn't take all resource files into account and searches just in the current language specific one?

For an example


To make things clear. I don't want to mis-use string resources as a database. It's only one part that occurs on very rare situations.

View 1 Replies View Related

Android :: Resource For Very New Beginner?

Jul 25, 2010

I will admit - I've never had a smart phone. Never. I was going to get one last year, but waited b/c I heard 2010 was 'the year of the smart phone' - and I'm glad I waited.Though I'd have to see it in person to know for sure, but I'm almost positive that DroidX will be my first smartphone. I'm VERY excited, but I want to make sure that I'm educated enough to use it for all it's worth (ie: my mom has had every iphone, but just leared to text message last month).Is there some place/book/thread/site that I can study which would tell me about smartphones from the very most basic all the way to the more advanced? I'm a smart girl, but I have to start somewhere!

View 1 Replies View Related

Android :: Can I Parse Uri From Resource?

Mar 18, 2010

When I use the first,app will crash in emulator but the second run well, how can I fix the first. Code...

View 1 Replies View Related

Android :: Resource IDs And SharedUserID

Jul 20, 2010

If I am not wrong with the way android:sharedUserId is intended to work, then my question is how to avoid overlapping resource IDs? appt seems to aways start IDs at the same initial value (i.e. drawables at 0x7f020000), so there will be sort of conflict or ambiguation. As for now I failed to get that cleared w/o digging in OS sources. Or I miss anything, like magic "undocumented" appt option (not that aapt is documented at all)?

View 5 Replies View Related

Android :: Negative Resource Id Value

Sep 15, 2010

Is it possible that a resource id (such as a generated id for a string resource) can be a negative int?Often, when defining a method that accepts a resource id, I want the caller to be able to specify a "null" value.For primitives this is not possible, but I'm wondering whether "any negative value" may be a good approach? Alternatively I suppose it would be OK to specify the argument as an Integer and take advantage of auto-boxing.Thoughts?

View 3 Replies View Related

Android :: Skin Resource

Jul 19, 2010

Can this kind of files (buttons) be used to create android applications, or you must use predefined buttons?

View 2 Replies View Related

Android :: Resource With Name From Numbers

Oct 13, 2009

I had imported several .png files with names like 1.png, 2.png untill 59.png in my Android Project.But it gives this error:

Description Resource Path Location Type Syntax error on token "48", invalid VariableDeclaratorId / TVGidsBelgie/gen/com/woutergo/tvgids line 14 Java Problem

How can i solve this?

View 4 Replies View Related

Android :: How To Know Whether A Resource Is Compressed Or Not?

Nov 15, 2009

we can let aapt not compress the resource via command -0. which api can be used to check the resource is compress or not?

View 2 Replies View Related

Android :: Creating URI From Resource ID

Oct 3, 2010

I'm sure this is simple, but I've got myself confused over it.I have an image resource, such as R.drawable.myimage, and I want to convert this into a URI.I tried:

Uri selectedImage = Uri.parse("android.resource://" + resourceId);

but this just returns a NullPointer. The resourceId needs to be dynamic (so I can pass any image to it), not just a hardcoded "myImage".Any help please?

View 6 Replies View Related

Android :: Getting Resource Id Of An Image From Name

Jun 15, 2010

How can i get the resource id of an image if i know its name (in android)

View 1 Replies View Related

Android :: Find Out If Resource Is Used

Sep 21, 2010

I am looking for an efficient way to find out if a resource (mostly a drawable) is used in java or in an XML file.

The problem is, that on my current project the drawables are changed often and now I have some drawables, which might never be used.

Is there a tool/way to find those unused drawables without search each filename in the whole project?

View 2 Replies View Related

Android :: Share Raw Resource Between Apk's

Nov 17, 2010

I have an apk (App1) that has a raw resource (res/raw/mytextfile.txt) and I would like to read that text file from another apk (App2). I define a content provider in App1 and I override the openFile(Uri, String) method as follows:


App2 does the following to try to get access to mytextfile.txt:


However, when I read and write out the contents of the BufferedReader, I get way more than just the contents of mytextfile.txt.

I played with this some more and found that the file desriptor returned to App2 is pointing to the App1 apk file. I wrote out the contents of the BufferedReader to a file and did a binary comparison to App1.apk. The two files were identical.

View 1 Replies View Related

Copyrights 2005-15, All rights reserved