I work on an application to display a remote page in a webview. The page contains a simple input form and an image. The image is updated automatically by server using specific header. The page is never displayed.
Searching on the web to find a way to resolve this issue.
I read this : http://remotedroid.net/blog/2009/11/13/android-browser-caching/ "Pragma: no-cache, and all the other server-side headers also have no effect as far as I can tell."
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"
I would like to know if the Android handsets can be configured Over-The-Air; in other words, if they can be configured for settings (such as GPRS , WAP or MMS ...) using OTA. If yes, do they support OMA CP provisioning? Is there an XML example that can be used to configure the Android devices?
I'm a little bit confused about supporting SPP by Android API(from level 5). As I understand it wasn't supported in versions before API level 5 what we can read in discussion below.(First Nick's post) http://groups.google.com/group/android-developers/browse_thread/threa. But it was in October and after that we have APi from 5 to 7 now released. And my question is do all these API's support SPP? As I read in other discussions some phones makes more difficulties than others. Which mobile phone you can recommend?
I would like to use SPP bluetooth keyboard(not HID profile.) on my android. but android 2.1 is not supported SPP bluetooth. Um.... Someone communicated the SPP device using android RFCOMM. Is this possible?
I've been using MediaPlayer for playing some sounds and I've found no way to get hold of a list of supported mime types at runtime. I was hoping for something along the lines of MIDP's javax.microedition.media.Manager.getSupportedContentTypes() but there doesn't seem to be anything that achieves this on Android. The only thing that there seems to be is a web page that lists supported media types (at the moment and on the small amount of devices available).
I have a widget, working happily on 2.2, which includes this line:
When I run it on 1.5, I get this:
Unsuprisingly, the widget doesn't appear. But I'm not quite sure what is not supported here. RemoteViews.setBoolean is documented as supported since API level 3, and ImageButton.setEnabled has been there forever.
Is there some separate question about which functions setEnabled is prepared to do business with ? Or, if not, what could possibly be wrong here ?
I seem to be having a weird issue when parsing XML from a server. In LogCat the following warning is displayed:08-31 12:05:28.870: WARN/ExpatReader(2031): DTD handlers aren't supported.The parser then seems to stop. I can't figure out what is causing this problem, my approach doesn't seem any different in this instance with regard to parsing XML. Does anyone have any recommendations to fixing this issue?
I'm hearing that IPv6 is supported by android, at least over the wifi interface, but I cannot do anything with IPv6 through the SDK at all. I am running Android 2.1 on an N1. I can see that at the OS level, the wifi interface has a link local inet6 address: ufo:~ newton$ adb shell $ cat /proc/net/if_inet6 0000000000000 0000000000000000001 01 80 10 80 lo fe80000000000000022376fffe8d1e63 0c 40 20 80 eth0 although ifconfig does not show it: $ ifconfig eth0 eth0: ip 192.168.1.2 mask 255.255.255.0 flags [up broadcast running multicast] If in Java I call getInetAddresses on a java.net.NetworkInterface, I only get the inet4 address. As I'd expect from the above, I cannot connect via any Java APIs to another link local IPv6 host on the same wifi lan Depending on my approach I get "socket level is invalid", a bad socket options error, host unreachable, or timeouts. Has anyone seen this work or have any insight? You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@google groups. com To unsubscribe from this group, send email to android-developers + unsubscribe @googlegroups.com For more options, visit this group at http://groups. google.com / group /android-developers?hl=en
i am developing an application for android and would like for my users to be able to post some information from my application to their twitter feed. i know how to make this work by building a VIEW intent and forwarding the user to the android built-in web browser (thanks to stack overflow!) However, now that there is an official Twitter application, I would like to be able to use the twitter applications activity (if it is installed) to make the post. However, I can not find any developer documentation on what the Twitter Intent for Android is called. Can someone provide a short snippet of sample code that includes that text of the Intent to use?
Is there any list which HTML5 features the WebView supports and which not? I am interested mainly in: 1) localStorage/sessionStorage 2) offline manifest 3) web sockets 4) web workers. Prior there was lack of those features (http://firstname.lastname@example.org/msg60143.html), but in Android 2.1, first two should be supported, but I am not sure about 3 and 4. Is there any list of supported features or we have to test it on our own?
I am trying to use Wi-Fi Adhoc Mode in my application. But I could not find any API or method to set the same. I read a thread in Android Forum and could not come any concrete solution on how to use enable Adhoc mode in Android.I used to use WPA_Supplicant conf file in Linux to enable Adhoc mode.
I would like know if I can enable Wi-Fi Adhoc mode in Android from my application and how to do the same.
Is it true that "Only 64-bit build environments are supported beyond froyo/2.2."? When I try to build it, it gives me this message. I try to search everywhere in the Internet and can not find any information about this rule.
I like to know using which version of Android SDK we can develop multi touch handling. Does Android SDK 1.6 support multi touch? If yes, can i get some sample code, where i can have multiple imagebuttons placed on screen and clicking on all the imagebuttons at a time should detect multiple touch events?