android-4.0-ice-cream-sandwich

How to exit fullscreen (show Action Bar) programmatically on Android 4.0+?

喜你入骨 提交于 2019-12-10 23:41:44
问题 If I have an Activity with a fullscreen theme , set up like this: <activity android:name=".FullscreenActivity" android:theme="@style/MyTheme.FullScreen"/> With MyTheme.FullScreen defined as: <style name="MyTheme.FullScreen" parent="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen"> </style> ... is it possible to exit fullscreen mode programmatically ? I specifically want to show the Action Bar (with its navigation options) in certain situations, while usually having the activity in

Does WEBSQL support Phonegap Apps on Ice Cream Sandwich?

给你一囗甜甜゛ 提交于 2019-12-10 23:12:19
问题 We're currently developing a iPhone/Android app with phonegap (and sencha touch), with a WEBSQL Database. Everything is working fine on the iOS and on all the Android versions, except for Ice Cream Sandwich. The problem until now has nothing to do with design, it's because the database is not loaded. The different tables are created, but without its content. This gets me to the question, is WEBSQL supporting apps on Ice Cream Sandwich? Or did anyone have a similiar problem with this on ICS 4

Android Webview not rendering correctly on ICS 4.0 +

半城伤御伤魂 提交于 2019-12-10 20:32:01
问题 I have a problem with an Android app I am working on. I loaded a locally stored HTML into a WebView and set: webSettings.setLoadWithOverviewMode(true); webSettings.setUseWideViewPort(true); webSettings.setJavaScriptEnabled(true); It works great, but just not on ICS 4.0+. Any ideas what to do? Here are some screenshots to document the error: Thanks in advance 回答1: Give this a try: DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); switch

TYPE_SYSTEM_OVERLAY in Android 4 ICS

 ̄綄美尐妖づ 提交于 2019-12-10 20:24:55
问题 My question is similar to the one here, TYPE_SYSTEM_OVERLAY in ICS but is there any other way to achieve System overlay with touch events in ICS? There are applications in the market which use overlay like, Dock4Droid https://play.google.com/store/apps/details?id=com.urbandroid.dock and https://play.google.com/store/apps/details?id=mobi.conduction.swipepad.android 回答1: I see that TYPE_SYSTEM_ALERT still works on ICS and I need to come up with a solution using this flag. 来源: https:/

Crash when opening Option Menu

ε祈祈猫儿з 提交于 2019-12-10 19:23:55
问题 I have ordinary activity with Option Menu, which I created by this code: @Override public boolean onCreateOptionsMenu(Menu menu) { menu.add(0, 1, 0, "A"); menu.add(0, 2, 0, "B"); menu.add(0, 3, 0, "C"); return true; } On Android 2.3 and older (2.2, 2.1) is everything fine. But when I run this app on Android 4.0 (ICS - emulator, Galaxy Nexus, Nexus S) when I press menu button the app crashdown with this exception: W/ResourceType(9263): Failure getting entry for 0x01090044 (t=8 e=68) in package

Mono for Android OnPause event not triggering on Galaxy Nexus

家住魔仙堡 提交于 2019-12-10 18:31:00
问题 I put together my first Mono for Android project (targeting API level 8, minimum Android 2.2) and deployed it to an HTC Incredible [1] running 2.3.4. Everything worked great and breakpoints in my main activities OnCreate , OnStart , OnResume , OnPause , and OnStop all triggered as described on Xamarin's Activity Lifecycle tutorial. Without changing any project settings, I swapped for a Samsung Galaxy Nexus running 4.0.2 and deployed the same app. It called OnCreate just fine, but never

Android AsyncTask not being called for minutes on ICS

ε祈祈猫儿з 提交于 2019-12-10 17:23:48
问题 I have an application that uses a lot of AsyncTasks, the problem I have is that a particularly important task is not being started for upto a couple of minutes after I call execute. If I use the following for my ICS devices it works; if(Build.VERSION.SDK_INT >= 11) { myTask.executeOnExecutor( AsyncTask.THREAD_POOL_EXECUTOR, stuff ); } as opposed to this on pre-ICS; myTask.execute(stuff); I am aware that ICS has changed thread execution to be serialised but I can't figure out what is holding

Why does my jQuery Mobile app not show correctly in the Android 4.0.3 browser?

旧城冷巷雨未停 提交于 2019-12-10 16:24:37
问题 I've got a jQuery Mobile (1.1.0) app that is running when viewed using Chrome, FF, Mobile Safari and the browser on Android 2.2. However, when viewed in the browser in the Android 4.0.3 simulator there are a range of issues. These include: 1) Header bar isn't displayed (it displays briefly on show and them disappears - fixed footer is fine). 2) Buttons on the page aren't shown - but still receive and process the click events correctly. This also happens on a colleague's ICS Android Phone

Weird EOFException on Galaxy Nexus

谁说胖子不能爱 提交于 2019-12-10 15:59:31
问题 My Android application uses URLConnection to connect to a webservice. It's in the market over a year now and works quite well. However, problems with Galaxy Nexus users came up recently: When getting the input stream (not even reading yet!) from the URLConnection like: final BufferedReader in = new BufferedReader(new InputStreamReader(uc.getInputStream()), 8192); A EOFException is thrown at getInputStream() . First I thought this may be an ICS problem, so I installed an early build on my

PostgreSQL JDBC connection fails on Android 4.0

邮差的信 提交于 2019-12-10 15:57:56
问题 Does anyone knows what can I do to make JDBC connection work on Android 4.0. It works fine on Android 1.6-2.3. I use Dave Cramer's build: http://groups.google.com/group/pgandroid/browse_thread/thread/d8b400f039f66d5f/f77b2e2a99370a36?lnk=raot#f77b2e2a99370a36 The Logcat says: 06-10 17:35:51.043: E/AndroidRuntime(798): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.belonogov.connectjdbc/com.belonogov.connectjdbc.ConnectJDBCActivity}: java.lang.NullPointerException 06-10