My app is downloading a file that does not need to be kept. So I was trying to put it in the directory returned by Environment.getDownloadCacheDirectory() (that returns "/cache").
But apparently it is not accessible, (a FileNotFoundException is thrown).
In cm roms, dalvik cache of system apps are generated in /cache but those data/apps are generated in /data. Is there any way to disable this behaviour? Cache partition in our phones is too small. In AOSP and AOKP and stock roms, dalvik cache is always generated in /data no matter whether its a system app. any way to achieve this in cm roms?
I'm implementing an image cache system for caching downloaded image.
My strategy is based upon two-level cache: Memory-level and disk-level.
My class is very similar to the class used in the droidfu project
My downloaded images are put into an hashmap and the Bitmap objet is wrapped inside a SoftRererence object.
Also every image is saved permanently to the disk. If a requested image is not found into the Hashmap<String,SoftReference<Bitmap>> it will be searched on the disk, readed, and then pushed back into the hashmap. Otherwise the image will be downloaded from the network.
Since I store the images into the phisical device momery, I have added a check for preserve the device space and stay under a 1M of occupied space:
This method is called sometime afte a disk writing:
What I'd like to add is the same check on the HashMap size to prevent it will grow too much. Something like this:
My question is: What could be a right MAX_MEMORY_SIZE value? Also, Is it a good approach? A good answer also could be: "Don't do it! SoftReference is already enough"
We are using SharedPreferences(Not default preferences.) to store our application related settings. These settings are not accessible in the background service as the application context is different from service context. It always returns the default values. We want to have our own UI to manage settings. So, we don't want to use PreferenceActivity.
Is there a way or hack to access SharedPreferences from inside a service which are created by application?
App Ops is no longer accessible after the 4.4.2 Update. Google states that it was never intended for the end user. Check out the link below for more: Googler: App Ops Was Never Meant For End Users, Used For Internal Testing And Debugging Only
I think this is a great idea for thread discussion, alot of people are worrying about the isolated/limited connection to Sprint's 4G, I think its a little overblown, the Evo will still be an awesome phone. What are some things on the Evo only accessible by 4G and not 3G?
For example, I've noticed the general knowledge of consumers didnt know youre still able to use Qik by both front and rear cameras via 3G, granted I dont know if the quality is better if used by 4G, however its still useable, if youve been watching the sticky thread above about general information on the Evo, there has been some Qik links where a Sprint or other marketing employee has been recording videos via the front facing 1.3 camera, in Kansas City, where they dont have 4G yet. Not only that but Qik is also available in the Android Market for other phones. --->Android Market
Qik, and Video Sharing? hell yes. Video Chatting through 3G? Possibly not.
I've also noticed in some Evo videos a Sprint employee states that the option to watch HQ Youtube videos only occurs in 4G, but I'm still curious as to what the quality is on 3G. I've also read that you can watch Hulu via the Skyfire browser, which to me is HUGE plus, unfortunately, Skyfire isnt available on Android just yet.
When in the messaging app, and in text message conversations I am having many issues. 1st issue: conversations or "threads" as it is put are seperated, which I like this option, but it also makes it an issue. I am unable to forward any messages I receive.
attachments in messages are not accessable, or able to be saved. I can not save photos, video, music, files ect. I can not set any attachments as ringtones, screen savers, backgrounds. And I can not forward any of the information that is included in a text. I have become very frustrated with the Droid, I thought this was a great phone but seems for the pricetag and hype, I am unable to do less with it as simple functions that I had on my previous phone the LG Chocolate. I can not save anything I receive, and I also can not send any of my music files or recordings as an attachment.
I may not have this whole Droid thing figured out, but I dont want it to take me a month to figure it out. And it seems like I am going past my "Worry Free" period of time. I was unable to save many of my items from old phone to Droid, and that was a bother. But the text messaging is my biggest complaint, I liked the ability to save sounds, forwards sounds photos ect. And I can not do this now with the Droid, is there a way to fix this issue?
I'm developing an Android and web application that will function as a service (use the same data). My question is how should the data be stored to allow for both the web and the android application to have access to the same set of data? Should the android application connect to the sites MySQL server to store/access data? If so how do I allow someone to access the data when they are not in a service area?
I have multiple applications which use the same ContentProvider code for internal WebView to access local files (application private). Because the ContentProvider has the same code base (package name, content uri), this will cause problem when deployed 2 or more of my application in the same device? How do I make the contentProvider only accessible by its application and prefer a solution without code changes.
I know how to create a menu in my application with an icon and text on each "button" of the menu, but this menu is only visible on the activity where I created it... I would like to know if it is possible to create a global menu which would be accessible from all activities?
For about a week now the Internet is not accessible randomly on my phone. Either a site will not load at all, or I will get a partial page. Either way, something is messed up. I've called Verizon about this a few times and they can't figure it out. They had me check some settings on my phone, checked my version, done the #228 thing, checked the towers. Now they say that the only other options are to replace my phone or reset the whole thing to factory.
I've been through too many phones. I'm done with switching phones and resetting them. And I can't believe that it's the phone or Google as the last person suggested. I use a lot of data. I'm up to 1GB right now and still have 19 more days in the billing cycle. I think they are throttling my connection.
I then defined a really long string for testing, which I set on this text view using setText(). The text is too long for the TextView, but there is no way to scroll it. So do I need to wrap it in a ScrollView after all?
I have to say that when the Android Market tells me I can browse the "top" apps but need to use the on-phone App-finder to see it all, I am immediately Paranoid. This is precisely the Hipster-Nerd-Elite stuff that makes me go all queasy when I think of the low-hanging I-Fruit that is everything open-source is NOT. It makes a person ask, what are you hiding?
Having said this, I still expected that there would already be several large Softpedia-type sites with a google or two of applications waiting for the Android user. You know--everything that open-source is. So now I find myself looking for an alternative audio-player to find that only TuneWiki comes up more than once or twice (and with each new introduction I like the option less).
So am I looking in all the wrong places, or should I have stuck with WM if I wanted 35 choices for every type of app? Right now, I'm feeling a bit scared at least until my contract is up again.
Cannot seem to be able to access apps stored on SD card. Pic of app does not even show up, just a generic picture (Same picture for all apps). At time, after rebooting, the apps are available as they should be. Also, I can download apps when the SD card apps are not available, but they will not install. Running UD8. Anyone have any help? Getting to be very frustrating.
I can see the contents of the internal sdcard when using the file browser in TRWP recovery, but after a boot-up the /system/sdcard is not accessible to the Android OS. I noticed the problem after I flashed system.img and boot.img in order to get rid of Apps Ops X.
Is there an easy was to restore access for the operating system and keep the data?
i accidentely erased the baseband of xolo q800 n now i have no imei num,no mac address nothing ...my sim cards are also not accessible now... I cant even send it to the customer care coz i have voided my warrenty by installing custom rom,clockwork mode,su root...
I am extremely happy with my X10i, and yesterday I received and installed the latest update with no problems; however, I have a few questions:
1) Why is it that you do not give us "permission" to uninstall things such as the Moxier suite and PlayNow (which is unavailable to us in the USA) without us having to resort to the extreme of rooting? 2) Why is it that you do not give us access to equalizer settings? Again, only through rooting, can we get access to this. (note: the 3rd party apps in Android store are all junk) Would it be that difficult to add an equalizer in MediaScape? 3) Why is it that Skype comes preinstalled on the X1, but not on the X10? I'm on the T-Mobile network, and here in the USA, Skype for Android is only available to those on the Verizon network. I am forced to use Nimbuzz (which is a great application by-the-way), but it would be nice to have the actual Skype application that is available on the X1. If you got "permission" to preinstall it on the X1, I would assume you can do the same with the X10.
I truly believe that the X10 is an "iCrap" killer; however, if the little things I mention above were to be addressed, in my opinion, this would make a lot of X10 users happy, and make the X10 truly an IPhone killer in the eyes of others.
When using a View within a View, for example an ImageView within a LinearLayout, both of which have xml drawable resources (the LinearLayout as a background) specifying PNG drawables to use for the on/off states, shouldn't children Views receive the focus state when their parent gets focus? So as far as I understand, both my LinearLayout and ImageView should be switching to their focus states right? Apparently not Or, more likely, apparently my implementation is incorrect.
The focus state works on the LinearLayout but my ImageView never receives focus.. I have both Views set to android:focusable="true".
You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to email@example.com To unsubscribe from this group, send email to firstname.lastname@example.org For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
I have 3 text views in a layout, where the text clips a tad on the bottom on my droid 2...how can I ensure that the whole text is viewable and the user can scroll down (simply with their finger) to see the rest of my text?
Me and my brother both just imported new phone, me the milstone and him the nexus. Im pretty new to android, but isn't 2.0 and 2.0.1 supposed to have speech to text? I installed text to speech and it works, but when i go to run something that uses stt (like in handcent) it just says "rencognizer not present." Any help? tts and stt would be awesome for sneak texting
I just rooted and I thought I'd try installing a custom ROM through the Rom Manager program. I asked it to "backup the current rom" before installing the ROM, so it's been stuck on the loading screen for a long time. Is this normal?