android-2.3-gingerbread

Partial results using speech recognition

回眸只為那壹抹淺笑 提交于 2020-02-01 08:26:06
问题 I created a simple application inspired by this example in order to test all the available options (ie extra). I read about the EXTRA_PARTIAL_RESULTS extra and if I enable this option I should receive from the server any partial results related to a speech recognition. However, when I add this extra to the ACTION_RECOGNIZE_SPEECH intent, the voice recognition does not work anymore: the list does not display any results. protected void onActivityResult(int requestCode, int resultCode, Intent

Partial results using speech recognition

笑着哭i 提交于 2020-02-01 08:26:05
问题 I created a simple application inspired by this example in order to test all the available options (ie extra). I read about the EXTRA_PARTIAL_RESULTS extra and if I enable this option I should receive from the server any partial results related to a speech recognition. However, when I add this extra to the ACTION_RECOGNIZE_SPEECH intent, the voice recognition does not work anymore: the list does not display any results. protected void onActivityResult(int requestCode, int resultCode, Intent

Partial results using speech recognition

瘦欲@ 提交于 2020-02-01 08:26:04
问题 I created a simple application inspired by this example in order to test all the available options (ie extra). I read about the EXTRA_PARTIAL_RESULTS extra and if I enable this option I should receive from the server any partial results related to a speech recognition. However, when I add this extra to the ACTION_RECOGNIZE_SPEECH intent, the voice recognition does not work anymore: the list does not display any results. protected void onActivityResult(int requestCode, int resultCode, Intent

TextView won't break text

若如初见. 提交于 2020-01-29 09:50:21
问题 I am having trouble with textView not breaking line before ICS. In ICS (i belive honeycomb works as well but i havent tried it tho) the text inside textView breaks nicely but in gingerbread and below text just keeps going in one line. Any ideas how to fix this? I am using a viewpager and this is the layout for each screen. I am using custom textView just to add custom font, hope thats not the problem. pager_item.xml:` <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

Font monospace Android 2.3

隐身守侯 提交于 2020-01-14 10:33:14
问题 I have a problem with a mobile website on Android Gingerbread and versions prior to this. Fonts monospace do not exactly behave as monospaces should: different characters have different widths. This is how it looks on a Gingerbread default web browser (I also tested on Dolphin and Opera mini): This is how it looks on a ICS default web browser: I used the Cultive Mono downloaded from the web. <link href='http://fonts.googleapis.com/css?family=Cutive+Mono' rel='stylesheet' type='text/css'> CSS:

SMS_RECEIVED onReceive android 2.3.5 not triggering

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-14 04:41:10
问题 I've been puzzling over this one recently, prior to 2.3.5 this seems to work fine (on my colleagues devices). However on mine it now never triggers. I've stripped the code right back and made a very simple test application to see what's going on. Basically the onReceive code doesn't ever appear to trigger, even though adb/logcat does seem to show the register of the BroadcastReveiver does take place. Here's the simple code I've gone for: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns

How can I remove the space between tab widget?

蹲街弑〆低调 提交于 2020-01-10 04:22:05
问题 I would like to remove the spacing between tabwidgets. By default there is around 1px spacings between tabs. I know some apps like foursquare or posterous are able to remove it. How is the code to do this would look like? I am using 2.3 API. Thank you for your help 回答1: You can use getTabHost().getTabWidget().setDividerDrawable(R.drawable.empty_divider) method, where R.drawable.empty_divider simple shape with 0px size, such as <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http:

GPS Tracking - MIN_TIME_BW_UPDATES “hint” issue in android 2.3 (Gingerbread)

余生长醉 提交于 2020-01-05 18:38:44
问题 I have a problem in my GPS Tracking app. I'm sending a sms message to users predefined contact every MIN_TIME_BW_UPDATES with his location. It works really well, but when I tried it on Samsung Galaxy running on Android 2.3.5 platform it started updating every meter, ( MIN_DISTANCE_CHANGE_FOR_UPDATES was 1 meter) when the user was walking (about 200 messages :)), I't works really well on ICS and JB, I couldn't find any documentation on these "hints". As far as I understand MIN_DISTANCE_CHANGE

Android 2.3 ZIP problems with general purpose flags

我是研究僧i 提交于 2020-01-05 09:04:20
问题 I made an application on Android and this application logs the activity into files. I have an option to export the files so I save the files in a .zip. If there is more than 1 file to add to the .zip, I get the following error. (general purpose flags - local: 808 hex central: 8 hex). Local and central GPFlags values don't match. This only happens with Android 2.3 and using winzip or 7zip. I can bypass this problem using windows explorer or winrar but I would like to solve the problem and not

Android 2.3 ZIP problems with general purpose flags

廉价感情. 提交于 2020-01-05 09:03:31
问题 I made an application on Android and this application logs the activity into files. I have an option to export the files so I save the files in a .zip. If there is more than 1 file to add to the .zip, I get the following error. (general purpose flags - local: 808 hex central: 8 hex). Local and central GPFlags values don't match. This only happens with Android 2.3 and using winzip or 7zip. I can bypass this problem using windows explorer or winrar but I would like to solve the problem and not