Android :: Android Resource IDs Are Being Incorrectly Assigned
Nov 3, 2010
I have encountered a strange problem where if I call getString(R.string.somestringname), from time to time, even after deleting the R file and recompiling, the incorrect string appears. The emulator is not crashing and a valid string is appearing - it's just the wrong one.The text that is output (some of the time) is Foo bar November 03, 2010 (i.e. belonging to R.string.placeholder). What is going on? This is unnervingly making me tempted to hardcode the strings ;-)
View 1 Replies
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 work...it 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
Jul 15, 2010
The result (builder) is set as text to a TextView. It works just fine if the span is surrounded by text, i.e. when the start > 0 and the end < length - 1, but the image is cut off (shifted up) if there is no text around it. how do I fix that?
View 1 Replies
View Related
Nov 21, 2010
My ImageView for some odd reason is always displaying a picture in the middle, left of my screen despite the xml code insisting it to be in the center.So, the page should display as Picture in the middle, extending the width of the screen, the text below that and the button below that.But for some reason, the picture is displayed as a small, box thumbnail in the middle left of the screen.any ideas on a workaround?
View 1 Replies
View Related
Nov 24, 2010
this problem has been bothering me for days and I cannot figure out why on earth it is happening. I have a method that detects for a face, if a face is detected, the method will draw a rectangle on a canvas along the face.That part works fine.The problem is, when it displays to the image_view in my xml file, it will display on the far left middle of the image view, in a box, rather than in the center with the width as fill_parent.I thought of a possible workaround : to set the bitmap as a bitmapdrawable, but canvas only draws to bitmaps, so I can get the bitmapdrawable in the middle, but with no red box around it.I commented out my testing of bitmap drawable, and left it as what I have now...it only displays to my xml in the far left of the image_view.
View 1 Replies
View Related
Sep 21, 2009
I have got another mysterious issue. So, I am setting a background image for LinearLayout. This image contains gradient. Don't know why, but after I launch application the image appears to consist of several parts that actually form "smooth transition" of gradient, and that's why it seems that background image is not a gradient.
View 1 Replies
View Related
Nov 3, 2010
Android's textView does not correctly input characters when left-to- right Unicode characters, such as those of Hebrew or Arabic, are used. For languages such as Arabic, morph transformation is also required that is not done correctly either (or at all!).This is also obvious when using Facebook App on Android to read posts in LTR languages, which is completely messed up and totally illegible.Can someone from Android OS address this? I would like to extend our patented virtual keyboard (MessagEase) for Entering Hebrew, Persian, and Arabic, among other languages, but currently it's impossible to do so.
View 5 Replies
View Related
Sep 27, 2009
Has anyone found a way to get the current google e-mail adderss assigned on the phone?
I've tried doing a search for in the contacts with, but it never returns : Uri contactUri = Uri.withAppendedPath(Contacts.People.CONTENT_URI, "owner");
I have found a permssion called "READ_OWNER_DATA" but I don't seem able to find out a way of seeing what the permission allows you to do.
View 3 Replies
View Related
Jun 23, 2010
I have an OpenGL app that manipulates it's geometry in screen space to acheive some effects, and therefore bypasses OpenGL's matrices by setting modelview and projection to identity. For some reason, Android's OpenGL implementation seems to be unhappy with this, and doesn't draw anything. The same app, compiled from the same code base, works fine on windows and on iPhone. If I load the app's projection matrix into GL's matrix, and multiply it's inverse with the final geometry prior to drawing it (which is effectively a no-op) it displays correctly.
View 6 Replies
View Related
Dec 9, 2009
I'm wondering how is a 3g phone is assigned an ip address? is it like adsl? or is it like an inner network (Network Address Translation )? if i want to implement a p2p application, i need to dig hole on the inner network right?
View 2 Replies
View Related
Apr 7, 2010
I've noticed a troubling issue with app permissions. It seems that after installing, some apps that didn't ask for these two permissions:
Storage: modify/delete SD card contents
Phone calls: read phone state and identity
will magically acquire them after install! These apps do not ask for these permissions during install, nor do their Market pages disclose that they need them. After looking through many logcat messages during an install, I found this:
04-07 03:23:08.973,I,PackageParser,1016,com.some.app.nam e.here: compat added android.permission.WRITE_EXTERNAL_STORAGE android.permission.READ_PHONE_STATE
Digging around, I found this online:
Android permissions: Phone Calls: read phone state and identity - Stack Overflow. It seems that an app that is compatible with systems earlier than 1.6 will automatically be assigned those two permissions. If a developer is willing to make their app compatible only with 1.6+ systems, they can change their app's manifest:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="4" />
and when users on 1.6+ devices install the app, those two extra permissions won't show up.
I bet a lot of app developers don't know this, and therefore their apps will seems to acquire those two permissions magically. Users will install those apps, see the two extra permissions when they inspect the app security setting and be very puzzled. They'll probably think the app is malware and uninstall it. I've contacted some app developer about this issue, so that they can (hopefully) fix their app so it doesn't look like malware. Unfortunately, until all legit apps are fixed, it'll be hard to distinguish amongst apps that have those permissions, which app actually needs those permissions, which apps need fixing, and which apps are malware.
View 2 Replies
View Related
Jul 27, 2010
I have built an activity to handle gestures in my Android game and want it to respond to a gesture anywhere on the screen but I am getting this error on the Log:
CODE:...............
I understand I need to allocate a view to the activity and as you will see in my XML, a view called gestures will serve this purpose but I keep getting Inflation errors when trying to inflate the view. Before when this happened to me it was a misspelling of the view name in the XML but that's not it this time I don't think.
How would I properly assign the 'gesture' view to this activity to prevent the errors?
I have defined my activity in my code like this:
CODE:...............
I have created the activity in the main thread in it's doStart() method by saying:
CODE:............
And my XML layout looks like this:
CODE:...................
View 1 Replies
View Related
Apr 27, 2010
Weird thing I've noticed is that in some text message threads replies are listed before my text.One thing I was thinking was when I set up the phone I adjusted the clock to be a minute or two fast. Could this affect the message ordering? Assuming the phone orders them by time sent?I may have answered my own question but I thought it would be smarter than that!
View 2 Replies
View Related
Jun 11, 2010
So, I love that I can link all my contacts to their Facebook profiles, but here's my issue. I have a different picture of my wife that I want to use as her caller ID. I added that picture to her contact, in "People" and it shows the small thumbnail on top when I go to "Edit Contact". I save after adding the pic and save again at the bottom of the edit screen, but it always shows her Facebook profile pic in the contact list and when she calls. The only way to get the other pic is to unlink her FB from the contact. Is it always going to do this as long as it's linked to FB, or is there a way to get the other pic assigned to her caller ID?
View 7 Replies
View Related
Jun 10, 2010
I have birthday details for some of my contacts entered into my googlemail account.then I click Phone from the home screen and then select the a contact the Birthday section under information shows one day earlier, e.g. birthday set as 25th August shows as 24/08. Is this a known bug, and if not how do I report it to HTC?
View 5 Replies
View Related
May 13, 2010
When I first got the phone, I incorrectly set the number then reset it soon after. It seems to default back to that first wrong number. Am using the HTC Hero on 3 (UK) network - every now and again it decides to lose or update the voicemail number it dials when I press and hold the #1 key. Have reset it more times than I care to remember.
View 3 Replies
View Related
Nov 4, 2010
To start: I searched the forums for this problem but didn't see anything similar. If this is a repost, sorry, please give me a link to a solution.The problem seems to go away when I shut off the screen and then turn it back on again. However, I sometimes have to do this three times in order to type a single sentence text. I did a hard reset earlier today and it was fine for a few hours. It seemed to come back after I installed some of the apps I had before it was reset. I've read that there was an issue with the earlier Evos about the screen not being grounded, but this seems more of a software issue to me. Anyone know what I can do?
View 7 Replies
View Related
Mar 9, 2010
My Nexus One reports "My phone number"
(Settings => "About phone" => Status ) - as the SIM number before my "previous 'phone" number was PAC'd and ported... The PAC transfer happened about 3 weeks ago.,... The phone appears when calling anyone else as my transferred number, rings when called as the transferred number, ... but the beast reports the original, old" number. As it happens I've also done a "Factory reset" on the N1 ... Weird... so everything works as it should do, but the number is miss-reporting...
Any suggestions...e.g. ????
a) It's just one of those things, deal with it..
b) It's a known Android bug, deal with it...
c) It's a Nexus-One special, deal with it...
d) Oh! New one, report it to Mssrs Google...
e) HTC dogs all behave like this....
View 13 Replies
View Related
Nov 22, 2010
i just got my desire z the other day.ive assigned a couple of ringtones i downloaded to some contacts however when they ring its the default tone plays for all other contacts that plays.when i view that contact it says that the tone that should play is the one ive assigned.
View 1 Replies
View Related
Nov 22, 2010
i just got my desire z the other day.ive assigned a couple of ringtones i downloaded to some contacts however when they ring its the default tone plays for all other contacts that plays.when i view that contact it says that the tone that should play is the one ive assigned.
View 2 Replies
View Related
Jun 10, 2010
I can only get the default ring tone to work - and not the specific ring tones assigned for certain people (wife, mother, siblings, etc.) The default ring tone I have is the Mananamah (muppet song) and is located in the same folder "ringtones" as the other ones. WTH?
View 2 Replies
View Related
Aug 10, 2010
I just recently updated my Motorola Droid to Froyo 2.2 and the assigned ringtones are not working. The default ringtone rings for all incoming calls.
View 4 Replies
View Related
Aug 26, 2010
Sometimes when i recieve a text, the drop down notification bar might say its from "Mike" for example, when actually when i go into the text application, it is from my wife or someone else.
View 2 Replies
View Related
Nov 20, 2012
I'm had a really strange bug/problem in Android for months and I still haven't been able to find the roou cause of it in order to fix it. For some reason the browser is not rendering correctly webpages - the fonts are extremely small and the page is off centered. This is happening only while on 3G/Edge connection - if using WiFi this issue doesn't occur.
This happens with every single browser: Stock Browser, Firefox, Chrome, Dolphin, etc.
I thought this was a ROM specific issue, but I have tried flashing more than 3 ROMs now (every time I've flashed i've done a wipe cache, wipe dalvik cache and wipe data/factory reset) with no luck. I also tried formatting the internal SD.
View 2 Replies
View Related
Oct 18, 2009
I have been taking pictures and assigning them to contacts but when they call or I bring up the contact the picture is no longer as vivid as when I took the picture. It looks like it lost resolution or something. Not as sharp.
View 3 Replies
View Related
May 5, 2010
I have looked around for a fix but haven't found any yet.When I create trimmed ringtones via the htc trimmer and assign them to a contact, they will work fine until I reboot the phone. I tried some fixes like moving the ringtones to the SD card and that has allowed the phone to find them upon reboot but it will not put the tones back with the contacts. Is there a way to permanently stick the ringtone to the contact so they don't un-link after a reboot?
View 5 Replies
View Related
Jun 9, 2010
Does anyone else notice that when you receive or make a phone call the picture you have assigned to that contact looks horrible? I've taken pictures with my evo to use for contact pics, and have transferred high quality pics from my computer but no matter what I do the contact pic looks poor quality when they pop up? If there is a fix for this or I'm doing something wrong someone please let me know.
View 13 Replies
View Related
Sep 19, 2010
Does anyone know why the photos assigned to my contacts show up blurry?
View 1 Replies
View Related
May 4, 2010
Ever since the 2.1 update (forced following directions on here) when I go to the facebook touch site in the stock browser (or xscope) it says at the bottom "Download Facebook for your Hero" but I have the DROID.
View 3 Replies
View Related
Jan 16, 2014
I bought a new galaxy note 3. I typed my email incorrectly so didn't receive the verification email from samsung.
View 1 Replies
View Related