android-4.0-ice-cream-sandwich

Android List View selected item style not showing until user scrolls

浪尽此生 提交于 2019-12-24 22:14:20
问题 I am currently working on an Android tablet application which has two fragments, a list fragment and a details fragment. I am trying to make my list similar to People and Email where when selected the item background changes and a triangle is positioned on the right hand side of the list. I am currently having difficulties setting the background of the item selected in the list. As I understand in the list view I should set android:listSelector to a drawable and all should work. <LinearLayout

App doesn't work on 4.0.3 but it works on 2.3.3

自作多情 提交于 2019-12-24 20:40:21
问题 I write an app and it works properly on android 2.3.3 , but it doesn't work on android 4.0.3. I specify minsdk="10" and targetsdk="15" in my AndroidManifest file. I am using .net web service in my app and I'm getting error on this page. myspinner = (Spinner) findViewById(R.id.ihtiyacsec); ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item, SektorList); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); myspinner

CSS loading issue with Android ICS

懵懂的女人 提交于 2019-12-24 13:26:01
问题 I have an Android ICS 4.0.3 installed in my phone. I have created one Mobile Web Application (test url http://drupal.langoor.mobi), for which I serve the HTML page from the MySQL database in the backend dynamically. Problem : The html page is not rendered by the default stock browser of Android and Dolphin browser. This problem does NOT occure in chrome, firefox, safari mobile browsers. To figure out the problem, I followed these approaches : Used Adobe Shadow to do remote inspect of the HTML

Youtube embed video not working in android 4+ (Ice cream sandwich,Jelly Bean)

≡放荡痞女 提交于 2019-12-24 11:35:29
问题 This code works fine in android 2.2.But give protocol not supported error in android 4+ I refered this site https://developers.google.com/youtube/player_parameters <html> <head> <meta name="viewport" content="width=device-width; height=device-height;"> <title>Vadivel</title> <style> body { background-color:#588DEA; } </style> </head> <body marginwidth="0" marginheight="0"> <object width="320" height="430"> <param name="movie" value="https://www.youtube.com/v/5whBYQVnjvY?modestbranding=1&rel=0

Android 4.0 issue with Activity Stack and Task Stack

若如初见. 提交于 2019-12-24 07:14:08
问题 I am developing an app for android 4.0. I am confuse with Task and Activity stack for Android 4.0. suppose I have activities X,Y,Z of the same app. so when i fire Home intent with flag activity_clear_task i am navigated to home which is expected. case I when I am in some other app's activity say setting-> manage application and if Home intent is fired from my activity i am able to navigate to home but when i click on menu i don't see any thing thing is the new task is started ? I cant provide

Android app can't start on Android 4.0

穿精又带淫゛_ 提交于 2019-12-24 02:53:07
问题 Ok, I was working on a Android app that can show you a few things like TV schedule, News, Wather Forecast and Horoscope using RSS. The app works as it should on Android 2.1 or 2.3.X, but when I start it on 4.0 or 4.1 it stops working after I chose any option from main. The structure of app is: -Main -Activity for specific thing (like just News) that has a view -XML Parser class that is called by previous class -Activity for Signle View (like just one information from whole bunch of news) with

Android app can't start on Android 4.0

走远了吗. 提交于 2019-12-24 02:53:04
问题 Ok, I was working on a Android app that can show you a few things like TV schedule, News, Wather Forecast and Horoscope using RSS. The app works as it should on Android 2.1 or 2.3.X, but when I start it on 4.0 or 4.1 it stops working after I chose any option from main. The structure of app is: -Main -Activity for specific thing (like just News) that has a view -XML Parser class that is called by previous class -Activity for Signle View (like just one information from whole bunch of news) with

Now that Android 4.0 is out, is Multi Touch possible in android emulator?

孤街浪徒 提交于 2019-12-24 02:52:22
问题 There are similar questions like this uptill Android 2.3 sdk on Stackoverflow. But as per the answers it was not supported back then. I have even seen a feature request ticket for it with Google but it is still pending! With the recent release of 4.0 sdk, does any one know if it is now possible to simulate the multi-touch feature in the emulator? If yes, please do information on how to do it. Thanks in advance! 回答1: Multitouch in the emulator is still unsupported and has not been announced as

Exception on Android 4.0 `android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode)`

泄露秘密 提交于 2019-12-24 02:39:11
问题 When I run this piece of code on Android 2.3.6, it works fine. On 4.0 I get a StrictMode exception. From some questions on SO, seems like you cant do network operations on the UI thread. But I am not doing any UI operation on the UI thread. I am calling doBackground directly and not execute, since I need to check the return value of the doBackground. I guess the below should have worked. What am I missing here ? handler.postDelayed(new Runnable() { @Override public void run() { God

android app not able to get GPS until phone restarts

江枫思渺然 提交于 2019-12-24 02:39:10
问题 I am getting multiple reports from users that they can't get GPS or location services in my app until they restart their phone, and then everything works no problem. I only get a limited sample of android users complaints, from the set of users that use my apps but it seems shockingly similar to this issue: https://code.google.com/p/android/issues/detail?id=39745 Google OTA updates rolled out to some additional carriers last week. Looking through my code changes over the last several months,