android-2.2-froyo

Change WebView font using CSS; font file in asset folder. (problem)

走远了吗. 提交于 2019-12-06 00:12:31
问题 I want to change WebView font. There are 2 files in "assets" folder. They are: assets/fonts/DejaVuSans.ttf and assets/css/result.css I searched some answers on StackOverflow and find out a solution but it doesn't work. The result.css loads DejaVuSans.ttf using @font-face directive. Then it is included in < link > tag of data which is passed to WebView::loadDataWithBaseURL (The code is below). The problem is CSS styles works (the text is red) but the font doesn't . Square characters appears

Viewflipper Receiver not registered error while orientation change in 2.1 and 2.2

夙愿已清 提交于 2019-12-05 18:00:41
I am using viewflipper for fling gesture recognition everything works fine for 2.0 and prior but in 2.2 and 2.1 it throws exception as "java.lang.IllegalArgumentException: Receiver not registered: android.widget.ViewFlipper" below is full debug trace. java.lang.IllegalArgumentException: Receiver not registered: android.widget.ViewFlipper$1@452f8398 09-19 11:33:06.825: ERROR/AndroidRuntime(393): at android.app.ActivityThread$PackageInfo.forgetReceiverDispatcher(ActivityThread.java:793) 09-19 11:33:06.825: ERROR/AndroidRuntime(393): at android.app.ContextImpl.unregisterReceiver(ContextImpl.java

Android SDK failed to install

只愿长相守 提交于 2019-12-05 11:48:46
I saw a good tutorial on youtube to install the Android SDK on windows, i attempted it on my window 7 pc. I tried many times but still i failed. I have java JDK and Eclipse latest version installed but the only problem is that Android SDK didn't able to fetch some packages and i am unable to use it. The following error occurs: How to deal with this problem? I want to learn and develop Android apps. Parimal Nivas Try to remove everything related to Android and Java SDK as well as Eclipse. Try to install as follows: Download and install JDK (java) Download and install Eclipse Download and

Does android have a built-in PDF viewer?

风格不统一 提交于 2019-12-05 10:17:54
I heard something recently about it being included in Froyo and I was wondering if there was any truth to it. If there is, it would help me with an app idea greatly. kgiannakakis You are probably referring to the Adobe Reader , which is freely available for Android 2.1+. Some devices also have other applications pre-installed for rendering pdf files. See this question on how you can open the default pdf viewer from your application. Android has a built in framework from Android 5.0 / Lollipop, it's called PDFRenderer . There's an official example on Google's developer site: http://developer

Android 2.2 SSL Library error

拈花ヽ惹草 提交于 2019-12-05 05:47:21
问题 First of all i know there are plenty of topics on this. Most of them the anwser is trusting all certificates/hosts by default which given the environment and security is completely out of the question. In 2.3 i've got a fully functional SSL client however when trying to run it on 2.2 i got a Read Error: Failure in SSL Library and then the next line it says (openssl_v3) unkown ca. The thing is i've followed Crazybob and Antoine's blogs word for word several times to no affect(thats how i got

Don't display menu in release mode

岁酱吖の 提交于 2019-12-05 05:43:42
问题 I want that the menu i have created for testing entries should come in debug mode but when i release(launch) my application the menu should not be displayed for testing entries. Can anyone help me for this? 回答1: Check for IS_DEBUG_MODE flag in your application and add code in that.. Use PackageManager to get an ApplicationInfo object on your application, and check the flags field for FLAG_DEBUGGABLE . boolean isDebuggable = (0 != (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE))

show multiple images animation

我怕爱的太早我们不能终老 提交于 2019-12-05 02:15:31
问题 I want to show a background image and multiple images moving down just like "snowfall" scene so how can I do that?Background image should not move, only small images over it should be falling down.How can i do this???? Update--> I have displayed images on screen but they all are coming at the same time but I want to show images coming at different time how can I do this?hey please suggest some way.is this the right way or if not please suggest me the correct way .... Here is my code: public

Android SDK build tools

老子叫甜甜 提交于 2019-12-05 01:34:20
问题 If i have two or more version of android sdk build tools as shown below then when which one will be chosen by the eclipse while building. IS it anything to with the SDK platform chosen for developing apk. Here which one will be used either 17 or 19? 回答1: The build tools specifies the toolchain used to build Android projects. In Eclipse you can change which version is used with the project.properties file by specifying sdk.buildtools , e.g. sdk.buildtools=17.0.0 You will probably never need to

Camera doesn't work on android 2.2

断了今生、忘了曾经 提交于 2019-12-04 23:36:35
问题 In Android SDK and AVD Manager, I created a new android virtual device as following: Name: myavd Target: Android 2.2 - API Level 8. SD Card: 50MiB. Build-in: Default (HVGA). Hardware: Abstracted LCD density 160. After starting this device, I can't take a picture from build-in camera. The following is the error and exception. The application Camera (process com.android.camera) has stopped unexpectedly. Please try again. 08-18 15:00:47.940: ERROR/AndroidRuntime(289): FATAL EXCEPTION: GLThread

Android MediaPlayer - Downloading and Streaming at same time revisited

大兔子大兔子 提交于 2019-12-04 23:15:51
问题 This question has been asked before, but now with the newer versions of Android (up to Jelly Bean), I was wondering if there's been any progress on downloading AND streaming a file at the same time. From the API, it doesn't look like it's inherently possible, as these are the available setDataSource methods: void setDataSource(String path) Sets the data source (file-path or http/rtsp URL) to use. void setDataSource(Context context, Uri uri, Map<String, String> headers) Sets the data source as