android-4.0-ice-cream-sandwich

Exchange account configuration on android 4.0

ε祈祈猫儿з 提交于 2019-12-11 10:26:08
问题 The early versions of android had a way by which Exchange account could be automatically configured through an app - by feeding in the email and password. The android 4.0 email application had changed a lot. Any reference as to how it can be done on the latest version? 来源: https://stackoverflow.com/questions/8570905/exchange-account-configuration-on-android-4-0

Android error with sqlcipher on version android 4.2.2

会有一股神秘感。 提交于 2019-12-11 09:43:14
问题 I have a problem when i try to launch my project on Android 4.2.2. Here is the stacktrace : 08-06 11:00:50.041: E/AndroidRuntime(10606): Caused by: net.sqlcipher.database.SQLiteException: not an error 08-06 11:00:50.041: E/AndroidRuntime(10606): at net.sqlcipher.database.SQLiteDatabase.dbopen(Native Method) 08-06 11:00:50.041: E/AndroidRuntime(10606): at net.sqlcipher.database.SQLiteDatabase.<init>(SQLiteDatabase.java:1951) 08-06 11:00:50.041: E/AndroidRuntime(10606): at de.greenrobot.dao

Android: unable to click the bottom TextView after translate animation within a FrameLayout

烈酒焚心 提交于 2019-12-11 09:08:03
问题 I have a FrameLayout in which I have placed two identical TextViews. I want to be able to translate the first view to the left (which I have done and is working like a charm). However I want to be able to click the TextView underneath it to perform an action. When I try to click the bottom TextView, the top TextView gets clicked again instead. I have a feeling this is because the way animations are rendered and the change in actual x,y position doesn't take effect. This is what I have so far.

how to make TextView selectable under api 11

泪湿孤枕 提交于 2019-12-11 07:27:53
问题 I need to have a text that will be shown to the user, and it will be possible to select a part of it and copy it to the clipboard. But without the keyboard open. I know that on api 11 and newer i can just use text.setTextIsSelectable (true); But what is the solution to lower OS versions? 回答1: Use ContextMenu and CLIPBOARD_SERVICE : private TextView mTextView; protected final void onCreate(Bundle savedInstanceState) { ... registerForContextMenu(mTextView); } @Override public void

Display ® registered trademark symbol in Android v4.0 WebView?

可紊 提交于 2019-12-11 07:19:21
问题 The source HTML string (including the symbol) is coming from the strings.xml resource file, and is destined to be displayed in a WebView. I've tested with this in the resources: <string name="MY_STRING">®</string> Using the actual trademark symbol in the resources (®), the projects builds, but when displayed in the WebView it shows as "®" (i.e. an "A" circumflex, followed by the registered trademark symbol) - i.e. two characters are shown, the first incorrect & unwanted. I see the same

In-app billingservice onServiceConnected() not called on 4.0/ICS

*爱你&永不变心* 提交于 2019-12-11 06:57:43
问题 My app has a single in-app purchase, and is modeled after the Dungeons sample that Google provides (viewable at http://code.google.com/p/marketbilling/source/browse/). The only difference is that the code to restore transactions on the first run has been separated out and placed in my app's main activity. (My modified "Dungeons" activity is where the user goes to purchase the plugin) The restoreTransactions() code in my main activity's onCreate() works great on both a 2.3 and 1.6 test device:

How do i create an Tag object in android?

自作多情 提交于 2019-12-11 05:14:30
问题 I've been trying to find a way to instantiate the Tag object. I'm trying to do this so that i can simulate various types of Tags. Does anyone know how to get an instance of UltraLight object using Tag tag = ????? UltraLight obj = UltraLight.get(tag); Thank you 回答1: In the NFC app example for ICS source code, we can find some code such as: Bundle extras = new Bundle(); extras.putParcelable(Ndef.EXTRA_NDEF_MSG, ndefMsg); extras.putInt(Ndef.EXTRA_NDEF_MAXLENGTH, 0); extras.putInt(Ndef.EXTRA_NDEF

Android 4.0 c2dm issue

不想你离开。 提交于 2019-12-11 02:26:57
问题 When I'm using android c2dm to push notification to my devices, I have a strange problem. If I'm closing application using "Manage apps->My application->force stop" and I try to send a push to my device, it doesn't work. It works with all my other devices which have an Android version less than 4.0. Any ideas? Thanks EDIT: Ok, I have investigated a little bit more, it seems that background code can not be run when an application is killed this way. The system logs show me this: 05-09 11:43:15

Android Package Manager - verifyPendingInstall

我是研究僧i 提交于 2019-12-11 01:37:26
问题 In Ice Cream Sandwich I see a new function for package manager which is verifyPendingInstall() "Allows a package listening to the package verification broadcast to respond to the package manager. The response must include the verificationCode which is one of VERIFICATION_ALLOW or VERIFICATION_REJECT." http://developer.android.com/sdk/api_diff/14/changes.html I am curious to know its meaning as it is not very clear to me what exact difference it is trying to do here that was not done

How to enable Hardware Acceleration on ICS, but disable in Gingerbread?

陌路散爱 提交于 2019-12-11 01:32:25
问题 I want my app to be hw accelerated in ICS, but support of 2.3.3 is still needed too. Can I enable HW acceleration for ICS only? Or I can only drop 2.3.3 support? 回答1: Hardware acceleration was not added until 3.0. This is not an issue. ref: http://developer.android.com/guide/topics/graphics/hardware-accel.html 回答2: on ICS (android 4+) ,GPU acceleration is enabled by default and can be disabled in the manifest. up to gingerbread, including, (up to android 2.3.x) , it's disabled since it's not