[android-developers] Urgent :: [Geocoder] What is the percentage of devices NOT supporting Geocoder API ?
As part of my development feature development I need to know the location of the device based on the GPS coordinates. For this I am planning to use the *Geocoder*. getFromLocation() API. https://developer.android.com/reference/android/location/Geocoder.html. I see in the documentation that this API might not be supported “The *Geocoder* class requires a backend service that is not included in > the core android framework.” I would like to ask if you have any information regarding the percentage of devices *NOT* supporting this API? I referring to devices running Android versions equal or *higher* than* 4.3* and including vendors such Samsung, Nexus, HTC, Huawei etc. Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/653562c4-fa07-4557-a018-449cc450a89a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Kotlin for Android, MVVM framework, simple but powerful
https://github.com/BennyWang/KBinding.git -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/2b922cb5-1b73-4167-8c1f-95ea18d67168%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Android MVVM framework write in kotlin
I'm work on a project KBinding(https://github.com/BennyWang/KBinding.git) which work on the binding between View and ViewModel. Views are created by Anko DSL like class MainActivityUI : ViewBinderComponent { override fun builder(): AnkoContext<*>.() -> Unit = { verticalLayout { verticalLayout { backgroundColor = Color.WHITE leftPadding = dip(14) editText { hint = "请输入手机号或者电子邮箱地址" bind { text(path="name", mode = BindingMode.TwoWay) } }.lparams(width = matchParent) view { backgroundResource = R.color.color_f2 }.lparams(width = matchParent, height = 1) editText { hint = "请输入密码" bind{ text(path="password", mode = BindingMode.TwoWay) } }.lparams(width = matchParent) }.lparams(width = matchParent) textView { text = "登录" textSizeDimen = R.dimen.font_38 textColor = Color.WHITE verticalPadding = dip(10.4f) isClickable = true bind { click("login") } bind { enabled(paths=listOf("name", "password"), converter = ArrayToBooleanConverter()) } }.lparams(width = matchParent) { margin = dip(14) }.let { it.gravity = Gravity.CENTER } } } } ViewModel like this class LoginViewModel(val delegate: LoginViewModel.LoginDelegate) : ViewModel() { var level: Int by Delegates.bindProperty("level", 3) var name: String by Delegates.bindProperty("name", "...@x.com") var password: String by Delegates.bindProperty("password", "x") val login: Command by Delegates.bindCommand("login", Command { it -> if(name.equals("wangbin")) delegate.onLoginSuccess("wangbin") else delegate.onLoginFailed(RuntimeException("incorrect name or password")) }) interface LoginDelegate { fun onLoginSuccess(s: String) fun onLoginFailed(e: Throwable) } } once binding, the change of viewmodel property will change the display of view. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. To post to this group, send email to android-developers@googlegroups.com. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/8339dc82-778b-48ee-8d62-4b3d1e4f2487%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] Make My CustomCamera App appear on the Select files to upload Dialog when click on input type='file' control on a webpage
Hi, As mentioned in the subject line, can you please advice how I can achieve that? Thank you. Regards, Benny -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] group views in Layouts and set states of children
Hi folks, is it possible to group the content of a layout and set the state of every view if one of the hole group was touched or focused? ListView rows theme to do so but i don't know how to to that with a RelativeLayouts Thank you so much and cheerio Benny -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible to embed an app widget in an activity?
Actually I want to write a Home, and put some widgets on it when it starts, not need user to choose. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Is it possible to embed an app widget in an activity?
Hi, I want to embed the analog clock in my application. I use AnalogClock android:layout_width=wrap_content android:layout_height=wrap_content / in my layout XML file, but the clock's appearance is different from the one added in Home screen. I know I can copy the AlarmClock's images to my project. And in xml file, set the android:dial, android:hand_hour,and android:hand_minute to my project's images. But I want to know is there a way to directly reference the resource in the AnalogClock? second question, Can I add the app widget from code? I tried use following code to add a appwidget, but it seems the getAppWidgetIds don't work? Anybody knows why? AppWidgetManager mAppWidgetManager; AppWidgetHost mAppWidgetHost; ComponentName THIS_APPWIDGET =new ComponentName(com.android.music, com.android.music.MediaAppWidgetProvider); mAppWidgetManager = AppWidgetManager.getInstance(this); int[] appWidgetId=mAppWidgetManager.getAppWidgetIds(THIS_APPWIDGET); int b=appWidgetId.length; //always 0 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Re: how to use adb tool on SAMSUNG GALAXY?
Hi there, is there a possibility to debug via wlan? On Jul 14, 8:35 pm, Da Yang daboil...@googlemail.com wrote: OK. There is only one way to test my camera application. use any APK Installer install the apk, though it's not handy, it's the solution in the moment. But thank you for your answers. Maybe i want to write to SAMSUNG development group, and ask for a right adb if they do have one. On Tue, Jul 14, 2009 at 6:11 PM, David Turner di...@android.com wrote: You need a different version of ADB to access this phone at the moment. A future release of the SDK will provide an ADB binary that should be able to do that, but this is not available yet as far as I know. You're quite on the bleeding edge, aren't you ;-) On Tue, Jul 14, 2009 at 6:05 PM, legerb drim...@gmail.com wrote: Hey, I just got this device too. Trying to figure out how to debug on device too. According this http://groups.google.com/group/android-beginners/browse_thread/thread... Samsung have their own adb. Please update the thread if you've got any progress :) thanks ahead! On Jul 11, 10:54 pm, da yang daboil...@googlemail.com wrote: Hi i got this new mobilephone this week in Germany, wanted to debug my program on the device. but it doesn't work, c:\adbdevices lists no device attached, though i have tried to change the android_usb.inf in order to install the usb driver from SDK. i added some entries as follows: under [Google.NTx86] ; HTC DREAM ... ; SAMSUNGGALAXY %USB\VID_04E8PID_6640. DeviceDescRelease%=androidusb.Dev, USB \VID_04E8PID_6640 %USB\VID_04E8PID_6640MI_01.DeviceDescRelease%=androidusb.Dev, USB \VID_04E8PID_6640MI_01 %USB\VID_04E8PID_6640.DeviceDescRelease%=androidusb.Dev, USB \VID_04E8PID_6640 and [Strings]: USB\VID_04E8PID_6640.DeviceDescRelease=SAMSUNGGALAXY USB\VID_04E8PID_6640MI_01.DeviceDescRelease=SAMSUNGGALAXY CompositeADBInterface USB\VID_04E8PID_6640.DeviceDescRelease=SAMSUNGGALAXYBootloader i got only one VID and one PID through USBVIEW, though for HTC DREAM there are different PIDs used. Theadbinterface got installed, butadbjust didn't work. later i also tried to use the device under linux, set up the device as in Dev guide: If you're developing on Ubuntu Linux, you need to add a rules file: 1. Login as root and create this file: /etc/udev/rules.d/51- android.rules. For Gusty/Hardy, edit the file to read: SUBSYSTEM==usb, SYSFS{idVendor}==0bb4, MODE=0666 For Dapper, edit the file to read: SUBSYSTEM==usb_device, SYSFS{idVendor}==0bb4, MODE=0666 2. Now execute: chmod a+rx /etc/udev/rules.d/51-android.rules adbdevices listed nothing as well. : ( open a terminal on the device, with ps, i guess theadbdaemon adbd is running. but theadbtool just doesn't work. Can someone help me? thanks da -- Da Yang daboil...@gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Launch browser with Intent and post parameters
Is it possible to fire up an Intent to start the browser and put some parameters to this Intent which where send by post method if the browser do the request to the server? I would like to do something like this: startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(http:// www.xyz.com?param1=value1param2=value2)); But i won't send the parameters with get but rather then with post in order to prevent login the parameter in the browser history. thx for your proposal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
Re: 回复: [android-developers] Re: Probl em with setTheme() method
style name=Theme.MyDialog parent=android:style/Theme.Dialog item name=android:backgroundDimAmount0/item item name=android:windowNoTitletrue/item /style works for me ... greet On Apr 18, 4:24 pm, agirardello andrea.girarde...@gmail.com wrote: I have the very same problem! Any suggestion to solve it?! Andrea On Mar 19, 9:39 am, Marcus marcus.ter...@gmail.com wrote: That's my code: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTheme(android.R.style.Theme_Dialog); setContentView(R.layout.whatsnew); } And it doesn't work! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] task in tab from TabHost
Hi everybody, is it possible to load a hole android-task in a single tab from the TabHost widget? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] android-task in tab from TabHost widget
Hi everybody, is it possible to load a whole android-task in a single tab from the TabHost widget? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Binding a GridView to a provider?
i'm trying to bind a GridView to a collection of image thumbnails from the MediaStore provider. my impression is that i need to create a cursor via a managed query, then create an adapter from that, and assign that adapter to the GridView. can anyone show me how to do this? the documentation is not terribly clear on this. thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---