Android :: Resource Directory Qualifier Limitation?
Aug 1, 2010
I think I am finding what I think is a significant limitation in the way the resource directory qualifiers (-hdpi, -v4, -en, etc) work. I have three directories: drawable-hdpi-v4, drawable-ldpi-v4, and drawable (for normal screens and phones running 1.5). I have image X that I want to have a high resolution version of in the hdpi directory and a default one in the plain "drawable" directory. I also have image Y that I would like Android to upscale, or downscale depending on the screen size and only want to manage one image file located in the "drawable" directory. This is to save file size because I don't need crisp resolution for 240dpi phones and also so I don't have to create three versions of ALL images if I want Android to handle the scaling.
I am finding that using post-v4 emulators with 240dpi screens with Eclipse, they get confused with this "hybrid" directory structure and choose to treat all images the same way. i.e. if image Y is found in the "drawable" folder and not in "hdpi", it correctly displays it upscaled and then goes and sees that there is both an image X in "drawable" and "drawable-hdpi-v4" and chooses one of them at random and upscales whichever one it picks the same way it scaled Image Y. So, if it decides to use the high-res version it blows it up even bigger when it didn't have too as if it was found in the "drawable" directory. Do I have to have all of my resources in the "drawable" directory and let Android scale things or have three times the number of image files by having resources in all three directories to make sure all resources are found and treated consistently? I am hoping this is some weird emulator bug that does not reflect how the real OS would treat things.
View 6 Replies
Oct 16, 2010
the Android phones in Slovakia have a custom locale - en_SK and cs_SK. Language is either Czech or English, location is Slovakia. Now I would like to have strings that target these locales. The default approach is to create a folder "values-CountryCode", for Czech Republic it's values-cs.
But I get a build error if I add a folder name values-en_SK or values-cs_SK: "invalid resource directory name"
View 1 Replies
View Related
Jul 7, 2010
I followed the tutorial here but when I create the project in Eclipse, i get an error "invalid resource directory name. Resource: "drawable-hdpi" path "/HelloAndroid/res" type "Android AAPT Problem"
View 1 Replies
View Related
Oct 5, 2009
Is it possible to have subfolders in the /res/drawable directory. I would like my resources to be organized in a tree view and not in a flat dir. If it is possible so how do I reference the resource from the code?
View 3 Replies
View Related
Oct 31, 2010
At some points while running my android application, I need to create a directory on the sd card, for a small number of users this fails and I can't figure out the reason for it... (I've found similar problems caused by the WRITE_EXTERNAL_STORAGE permission missing, it's there and it works for almost all users so I don't think this is reason) When mkdirs returns false I crash the program and log the following java.io.File properties, starting at the directory I want to create, then recursive printing properties of the parent directory and so on...
/sdcard/MyDirectory/Dir1/Dir2 (exists: false, canWrite: false, isDirectory: false, isFile: false);
/sdcard/MyDirectory/Dir1 (exists: true, canWrite: true, isDirectory: true, isFile: false);
/sdcard/MyDirectory (exists: true, canWrite: true, isDirectory: true, isFile: false);
/sdcard (exists: true, canWrite: true, isDirectory: true, isFile: false);
/ (exists: true, canWrite: false, isDirectory: true, isFile: false);
The strange thing is that the parent directory is writable (canWrite=true), I can't print the execute file permission but from what I've read, write is what you need when creating directories... What I've looked at so far is the WRITE_EXTERNAL_STORAGE permission, if the sd card is full and if the sdcard is mounted read only:...........................
View 2 Replies
View Related
Dec 23, 2009
I have an app that instructed me to copy some data from my computer to the SDCard. So I plugged the Droid into the computer, mounted my Droid SDCard, looked at the directory, and copied the file. There are a bunch of files and folders listed (e.g. backups for apps, album artwork, etc.) as being on the SDCard. But when I go into Astro on the Droid and select "SDCARD" it shows "directory is empty." I don't get it. Why can't I see the folders and files on the SDCard that I can see on the computer screen?
View 3 Replies
View Related
Aug 5, 2010
I want to download my apk file into "/data/local/" directory. I am able do this in external storage but unable on "/data/local" also i was trying to create folder on same location but could not do that. Through "adb push" it is possible but i need to do this java program.
View 2 Replies
View Related
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
Mar 23, 2010
I am invoking SMS application through Intent.ACTION_SEND with some text. My text has more than 200 characters. But when the SMS application gets invoked it has only first 200 characters. Is this is the limitation of Intent.ACTION_SEND?
View 12 Replies
View Related
Jun 28, 2010
I've been looking at android phones for a while now and I like many other people are looking forward to the Droid X. The problem I'm having as a current Blackberry user is email. I've read an article on androidcentral.com that mentions the limitations of POP3 email on the android OS. They also provide a link to a possible fix by having gmail sync with the POP3 email but gmail will only do so once an hour. With that said is there any other options? I manage a number of websites myself and have a few web servers.
Email is a must to keep in touch with clients and having to wait an hour in between replies would never ever fly. I currently have the Tour, which of course has the horrible trackball, but I'm debating on getting the Droid X (so long as I can get POP3 every 2-3 minutes) or upgrading to the Bold 9650. Having all the cool new features of the Droid X would be neat but certainly not a need. POP3 email and battery life - those are the two things that are a must.
View 8 Replies
View Related
Mar 17, 2010
Lost tunes? The stock Music app on my Motorola Droid running Android 2.0.1 was able to play ~200MB of .wma files which it found automagically. I was initially impressed that no configuration was required. After I uploaded more .wma files (I have 7.4GB of them now) neither the stock Music app nor several independent apps can see any of them. This is true even if I use settings to narrow the world to one album's worth of music.
Have I overloaded the capacity of the android's music API? Is my Droid allergic to music ripped by Zune? I may have to remove albums one by one and keep trying the player to see if there is a bad file, deep directory tree or special character that is bombing it out.
View 1 Replies
View Related
Nov 6, 2009
Is their any proper documentation which mention android internal memory storage and max app size limitation.?
View 2 Replies
View Related
Mar 11, 2010
I wanted to know what is the maximum size of the file that we can attach with email in android? Or is the attachment limit completely dependent on E-mail that we have configured?
View 1 Replies
View Related
Oct 6, 2010
how to create a sub folder in asset folder at run time and copying the files from res folder to my assets sub folder.
View 1 Replies
View Related
Aug 4, 2009
Is it true that if you have a ViewGroup, say a RadioGroup, you can't align items outside the group to ones inside the group (using toRightOf, alignTop, etc.) That is, does toRightOf, toLeftOf and the rest only work with views at the same hierarchy level? I was trying to label some vertical radio buttons today and find I can only align to the RadioGroup and not the buttons inside the group.
If I remove the RadioGroup, then I can align things OK. There are lots of workarounds, of course, so I'm not stuck. Just thought I'd ask and document. And, BTW, where is the hot sh*t resource editor for Android so I can bang out screens quickly like the iphone guys, using a visual interface designer that knows all these silly interactions? The tools I've seen so far have been toys.
View 2 Replies
View Related
Apr 25, 2010
I just recently came over from Blackberries and first I want to say I am loving the phone. My question, I didn't find anything by searching is, will the browser not antimate. Specifically I would like the radar to antimate but it never does. Is this a limitation of the phone?
View 9 Replies
View Related
Jun 25, 2010
Is 20-25fps with 720p a hardware limitation, software limitation, or both?
View 2 Replies
View Related
May 17, 2010
How do you remove the 10 Recipient SMS limitation on HTC Desire running Android 2.1?
View 4 Replies
View Related
Jul 15, 2010
Saw this reply to an email inquiry regarding the FPS cap issue over at AC:
I just got email from HTC:
Hi, I am Danielle and I would be happy to assist you today. You were wondering about the cap on 30 FPS on your HTC EVO 4G. Since this Android device employs a unique HDMI output to deliver video in HD quality to an external display, the hardware graphics driver interface uses significant resources for the HDMI output and therefore displays graphics at 30 frames per second on the integrated display. It's important to keep in mind that content including most movies and television, are created to run at between 24 and 30 frames per second. We have found that some games may be impacted by this limitation.
The HTC EVO 4G has been locked to 30 FPS. This should not present a major issue for most Android applications; however, you may have some issues with some 2D or 3D applications. The 30 FPS has been locked to enhance overall performance in the device. By lowering the FPS of the device the CPU works less. This increases the battery life of the device. The 30 FPS is set but we have decided to look into the possibility of overcoming this limitation by software changes. HTC plans to announce its findings when we complete our investigation. I thank you for contacting HTC and please feel free to send another email if you have any other questions.
View 26 Replies
View Related
Aug 19, 2011
there are any way to unlock 256 MB RAM limitation on Huawei u8650.
Phones sold in Spain had 256 MB kernel limitation but Taiwan ones had 512MB RAM !
As you can see here: [URL] it had more than 256MB And here (Quadrant Snapshot) : [URL]
View 7 Replies
View Related
Jan 11, 2013
Does Android limit the rate of keystrokes when typing?
I have a custom bluetooth keyboard that can send entire sentences at once. On iOS, the text appears pretty much instantaneously. On Android, when I send the sentence it kinds of scrolls through and types it out, taking about a second to actually type out the entire sentence.
Basically instead of typing out the entire sentence at once, the text is entered one letter at a time with a little delay in between.
Is there a way to disable this keystroke limit? I would like to be able to type entire sentences quickly.
View 1 Replies
View Related
Sep 13, 2010
When i type data in "notes" a message is coming saying "message is too long" does notes have limitation?
View 2 Replies
View Related
Nov 7, 2010
In Eclipse, after I import an existing project, I don't see the "Android 1.5" directory. I see the libs, src, gen, etc, but I don't know how to get the Android one.
View 3 Replies
View Related
Aug 24, 2010
This sounds simple, but i couldn't find any api from the reference.
i want to get all the files under certain directory on the sd card.
can you point me to the correct function?
View 2 Replies
View Related
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
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 "http://stackoverflow.com/questions/3476430/get-resource-id-by-passing-name-as-a-parameter-in-android" 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
CODE:....
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
Jul 29, 2010
I have a string called extStorageDirectory which is set to my SD Card and then "/mypics", I can then save a picture in to this directory, but only if the directory exsists. So how do I check to see if the directory exsits, and if it doesn't creates the directory?
View 3 Replies
View Related
Nov 8, 2009
Is there an Android App directory that's commonly used when discussing, talking about, listing, evaluating Apps in this thread? Or, is there an official Android Market listing of Apps? Or another question, is the "Android Market" available the web? I've been to Android Market, but it doesn't seem to list all apps or have a search at this time; only the top paid and top free. When mentioning an App on this forum, it's be nice to hyperlink the standard market listing if there is such a standard or recommended site from this forum for consistency. For now, I'm just mentioning the name of the App - in bold font - as spelled so others can search it in the Android Market.
View 2 Replies
View Related
Jun 11, 2010
I am new to android programming, can someone please tell me how to get access to the files in a directory , i am using Environment.getExternalStorageDirectory() method?
View 1 Replies
View Related
Apr 17, 2009
I wrote a file to the sdcard, but it failed as follow:String sdcardFIle = "/sdcard/xxx.txt" FileOutputStream fos = openFileOutput (sdcardFile, Context. MODE_ WORLD_ WRITABLE ) ; openFileOutput failed, because fIle "/sdcard/xxx.txt" contains a path seperator. It is so strange. Is there another way to handle the situation?
View 5 Replies
View Related