android-4.0-ice-cream-sandwich

Why my close activity animation doesn't work on Android 4.0 (ICS)

懵懂的女人 提交于 2019-12-01 04:33:43
问题 I made a theme with a custom animation (slide up and slide down). The animation works fine on the older android versions.. However, when I try it out on Android 4.0 (ICS) the on close animation doesn't work. Only the slide up animation works fine on ICS. Here is my theme I use for the animation: <style name="myTheme" parent="android:Theme.Black"> <item name="android:windowTitleSize">45dip</item> <item name="android:windowTitleBackgroundStyle">@style/CustomWindowTitleBackground</item> <item

How to use VPN in Android? [closed]

陌路散爱 提交于 2019-12-01 04:09:47
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am exploring VPN Connectivity in Android. I am new to this section. I want to know how to setup a VPN connection in Android using an application? I came across a sample code namely ToyVpn.I ran the application but i dont know what datas i need to give in the form shown by that application, Consider iam having

What is RemoteControlClient in Android 4.0?

不想你离开。 提交于 2019-12-01 03:57:59
I know the rules of StackOverflow and hence apologize beforehand for asking such a subjective question. I tried the documentation but all it says is this : RemoteControlClient enables exposing information meant to be consumed by remote controls capable of displaying metadata, artwork and media transport control buttons. A remote control client object is associated with a media button event receiver. This event receiver must have been previously registered with registerMediaButtonEventReceiver(ComponentName) before the RemoteControlClient can be registered through registerRemoteControlClient

Options menu not showing in ICS using compatibility library

南楼画角 提交于 2019-12-01 02:12:02
I can't get an options menu to show in a Fragment in ICS in a project which uses the android-support-v4.jar library. I'm testing on a Galaxy Nexus handset. We aren't using the action bar, and need the app to be 2.2+ compatible. We aren't seeing any options menu in the activity in ICS (the FragmentActivity doesn't support onCreateOptionsMenu) I can get menus working in previous version of Android - I have all the correct framework to enable the options menu (as below) but nothing shows in ICS. When stepping through the code the onCreateOptionsMenu doesn't get called. Can anyone suggest a fix?

What is RemoteControlClient in Android 4.0?

本秂侑毒 提交于 2019-12-01 01:32:37
问题 I know the rules of StackOverflow and hence apologize beforehand for asking such a subjective question. I tried the documentation but all it says is this : RemoteControlClient enables exposing information meant to be consumed by remote controls capable of displaying metadata, artwork and media transport control buttons. A remote control client object is associated with a media button event receiver. This event receiver must have been previously registered with registerMediaButtonEventReceiver

HTTP POST request ANDROID 4 (working in 2.3)?

橙三吉。 提交于 2019-12-01 00:05:53
Ok so, here is the deal, I've coded an app that requests via HTTP (post) data from a web url, the data is returned using JSon arrays and i parse those arrays to get what i want. Up until there there's no problem using android 2.3.x but when i test it in Android 4 it just does not work at all. Here is my code: public boolean testConexio(){ boolean status = false; String rutaServer = "URL.php"; //Log.e("log_tag", "Ruta server: "+rutaServer); InputStream is = null; String result = ""; String temporal; //Valors a demanar/enviar ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>

HTTP POST request ANDROID 4 (working in 2.3)?

人走茶凉 提交于 2019-11-30 18:14:31
问题 Ok so, here is the deal, I've coded an app that requests via HTTP (post) data from a web url, the data is returned using JSon arrays and i parse those arrays to get what i want. Up until there there's no problem using android 2.3.x but when i test it in Android 4 it just does not work at all. Here is my code: public boolean testConexio(){ boolean status = false; String rutaServer = "URL.php"; //Log.e("log_tag", "Ruta server: "+rutaServer); InputStream is = null; String result = ""; String

Failed looking up window - different behaviors from same app on 2 galaxy nexus

让人想犯罪 __ 提交于 2019-11-30 15:08:02
问题 I have two Galaxy Nexus phones. The phones are the same firmware version 4.0.2, same build number, same kernel version. When I deploy the same exact app to both of the phones using Eclipse, I see different behaviors from each. On one phone, everything works as expected. On the other phone, the main Activity crashes when switching to another activity and back to the main one, both by back button and by other activities finishing and returning to the activity that created it. The only clue I

Samples/tutorial for DRM framework in Android

杀马特。学长 韩版系。学妹 提交于 2019-11-30 14:34:59
问题 Android 4.0 brings drm framework to smartphones. I'm interested to write a code that plays video protected by the DRM, but can't find enough information. Are there any tutorials on using the DRM framework? Sample code? How to set up an environment - the server side that creates the content and licenses? Are there any DRM protected videos in the Internet that I can use for testing? The plugin framework claims extensibility, but I can't find neither plugin AI definitions, nor description how to

android - show menu button on galaxy nexus

谁说我不能喝 提交于 2019-11-30 14:01:40
i need to have the menu button shown for some activities on galaxy nexus . i can't find how to do that, since it hides it by default . i don't wish to create an action bar since it takes more space that i want to use to other things . when setting the "android:targetSdkVersion" value to lower than 14 , it seems to show the menu button , but otherwise, it hides it . btw, the activity needs to be full screen , with no title/action bars . it is very weird that this button is not shown by default for so many places (even the launcher) , and on some places it does exist . such a button is a very