android-2.3-gingerbread

“Unable to open log device '/dev/log/main': No such file or directory”

社会主义新天地 提交于 2019-11-27 10:28:03
I am new to Android development and bought a cheap Huawei Sonic (U8650 apparently) so I could test my first attempts at making an app on an actual device. However, whenever I try to use 'adb logcat' or 'adb shell' then 'logcat' on the device I get: Unable to open log device '/dev/log/main': No such file or directory I have already enabled Usb debugging in Settings -> Developer. I just don't know enough about Android to know if this is something I can even fix. I have found two other questions with similar problems: /dev/log/main not found ??-?? ??:??:??.???: INFO/<unknown>(<unknown>): Unable

Appwidget size calculation

感情迁移 提交于 2019-11-27 09:33:18
问题 It might be me, but when I calculate minimum app widget sizes according to the formula given on the android page I don't get the right widget widths; The formula is as follows: width(n) = (70 x n) - 30 When I want to have a 5x1 widget, the correct width would be (5 * 70) - 30 = 320dp. However when testing this on a motorola Xoom it resolves to being a 4x1 widget. I've tested different values and 400dp seems good for 5x1 on the motorola xoom with Honeycomb, but then I'd test it on a regular

Something's wrong in Corner radius Android

大兔子大兔子 提交于 2019-11-27 04:06:50
问题 I'm making my own search view for Android 2.3. I have. LinearLayout (Horizontal) AutoCompleteTextView ImageButton I added the button and AutoCompleteTextView to LinearLayout . I want to put a corner radius in my own control like the image shown below. I set this drawable to ImageButton <selector xmlns:android="http://schemas.android.com/apk/res/android" > <item android:state_pressed="true" > <shape> <solid android:color="#27AFE0" /> <stroke android:width="0.5dp" android:color="#000000" />

Is there a limit of AsyncTasks to be executed at the same time?

孤人 提交于 2019-11-26 23:22:57
问题 This should have an easy answer, yet I couldn't find any. And since I'm still an android dummy I came here to ask you people. I've been making this project that executes 10 AsyncTasks on the startup. Each task contains 3 URLs that collect data there and do nothing important in the app (yet). I also have 10 textviews which I use to keep track of the progress of the AsyncTasks. When a task starts the appropriate textview is put on "Start" When a task is progressing it sets its appropriate

Tamil fonts in Android

南笙酒味 提交于 2019-11-26 16:28:14
问题 I developed a Tamil news application in android version 2.3.3 . However, Tamil fonts have only been properly developed in android versions 4.0 and beyond. I want to display them in all versions of android mobile. I tried to solve the problem with some Tamil fonts, such as bamini and mylai , but they only worked in higher android versions. 回答1: First of all you have to understand that there is no Tamil Language support in Android OS (except few Samsung & SE mobiles) till ICS(4.0). Even then it

“Unable to open log device &#39;/dev/log/main&#39;: No such file or directory”

自古美人都是妖i 提交于 2019-11-26 15:11:38
问题 I am new to Android development and bought a cheap Huawei Sonic (U8650 apparently) so I could test my first attempts at making an app on an actual device. However, whenever I try to use 'adb logcat' or 'adb shell' then 'logcat' on the device I get: Unable to open log device '/dev/log/main': No such file or directory I have already enabled Usb debugging in Settings -> Developer. I just don't know enough about Android to know if this is something I can even fix. I have found two other questions