android-4.0-ice-cream-sandwich

WebView, showing blank in ICS

ぐ巨炮叔叔 提交于 2019-12-12 14:02:41
问题 I am loading a local HTML document kept in assets folder into a WebView . It is showing fine in 2.3 devices but, showing blank screen in ICS + devices. 回答1: Try using this code webView.getSettings().setPluginsEnabled(true); webView.getSettings().setAllowFileAccess(true); As per my knowledge flash url do not work in ICS. 回答2: This code should work webView.getSettings().setPluginsEnabled(true); webView.getSettings().setAllowFileAccess(true); webView.loadUrl(url); weevils.setJavascriptEnabled

WebView inside ViewPager or ScrollView - weird rendering bug on Android 3.0+

≯℡__Kan透↙ 提交于 2019-12-12 07:52:34
问题 I have a ViewPager. Every page of the ViewPager is a ScrollView. The ScrollView contains a WebView and several other Views. On Android 2.3 and older everything works fine but on 3.0+ there's a weird rendering issue: When scrolling left / right in the ViewPager, there is also a very subtle rendering issue (which is present in Android 4.0 Gmail app too). 回答1: This might be related to hardwareAcceleration. Try specifically turning it off. You can do this 1) in the application tag inside your

Tab Dividers Not Showing In ICS

流过昼夜 提交于 2019-12-12 07:18:13
问题 I have a problem with .setDividerDrawable() only working in versions lower than Ice Cream Sandwich. When I run the emulator the tabs show perfectly, but no divider. When emulating lower versions of Android there is no problem, the dividers show. I am using this code for creating the TabHost. I have no clue on what it is that makes ICS flinch. manifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.sbl.mytabapp"

old theme in 4.0+ app

怎甘沉沦 提交于 2019-12-12 03:54:26
问题 I've created a spinner in my activity and when i run my app on my Jelly Bean device the theme of the spinner is like 2.x, how can i get the ICS one? Here's my spinner code : <Spinner android:id="@+id/spinnermap" style="@android:style/Theme.Holo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_centerVertical="true" /> As you can see I tried to set the global style "Holo" but no results.. I had the same problem with a

Android Why is my application not available on some compatible devices?

淺唱寂寞╮ 提交于 2019-12-12 03:22:15
问题 I have recently launched my application into the Google Play store but unfortunately some users are unable to download the application due to market restrictions. Users are able to install the apk directly without the market, so I guess it must be something to do with the manifest? <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="14" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Differences between WifiConfiguration status

吃可爱长大的小学妹 提交于 2019-12-11 19:52:46
问题 What is the difference between WifiConfiguration.Status = CURRENT and ENABLED? I can figure for DISABLED but the difference between CURRENT and ENABLED is not obvious to me. Also, for a given connected network, 4.0.3 doesn't give me the save status as 4.0.4 and 4.2.2 give me. The former gives me ENABLED while the later give me CURRENT. Someone knows why? Thanks! 回答1: From the Javadoc for the Status class: /** this is the network we are currently connected to */ public static final int CURRENT

Remove titlebar in xml

孤人 提交于 2019-12-11 19:21:51
问题 Im trying to remove the titlebar at the top of my app. I know this can be done by adding, @android:style/Theme.NoTitleBar to the manifest. The thing is that this makes the Holo theme disappear on 3.0+ devices. Are there anyway I can remove the titlebar and keep the orginal theme? -EDIT- Unforiunally this line @android:style/Theme.Holo.NoActionBar requires api level above 11. 回答1: You can specify different default themes for different API levels. In Android you have the directories values-v11

Android webview app on ICS getting pixelated

余生长醉 提交于 2019-12-11 16:32:04
问题 My android app is working fine on all android devices except in samsung devices having ICS. It's a webview app and the images are getting pixelated on samsung devices having ICS. Any idea on this? 回答1: I got the solution :) I just included a line android:hardwareAccelerated="true", in my application tag in xml file. I had to change the project build target to Android 3.0 for this line. And thats it! pixelation issue gone :) 来源: https://stackoverflow.com/questions/11305260/android-webview-app

Access to UsbManagers setCurrentFunction() in Android?

China☆狼群 提交于 2019-12-11 14:28:51
问题 I can't seem to gain access to this function, it should allow me to set the usb mode on my device programatically (which is what I'm trying to do). I can import the package where it is supposed to be, but it isn't available. I know it exists as there are apps that use the function all over the place! its just my eclipse/ build environment can't find the damned thing. 来源: https://stackoverflow.com/questions/13432694/access-to-usbmanagers-setcurrentfunction-in-android

ViewPager, compatibility package and ice cream sandwich

自闭症网瘾萝莉.ら 提交于 2019-12-11 13:57:59
问题 I am building an android application for Ice Cream Sandwich. I want in my application to be able to use the ViewPager, but I can't seem to do that because it says it is only available when using the compatibility package. Here I have a problem, because I don't want to use the compatibility package because if I do that I wont be able to use PreferencesFragment (it is not available within the compatibility package, but is very important for my application). Now I feel like I'm stuck. My