xamarin.android

How to make Xamarin.Forms.Editor scrollable/auto resizable?

旧街凉风 提交于 2020-01-03 00:23:42
问题 I have an scrollabe layout with an Editor inside that I'd like to make scrollable or auto resizable to fit the contents. I can't find how to do it. I tried a custom renderer but I can't find how to set InputMethods to the Control. Any ideas? 回答1: With the help of this post: https://forums.xamarin.com/discussion/80360/editor-inside-scrollview-not-scrolling That fixed the scrolling on Android (iOS works by default). It avoids the parent scroll event when touching inside the Editor, triggering

Compiling C# on the fly

拟墨画扇 提交于 2020-01-02 19:31:10
问题 Can be used monodroid for compiling C# code on Android device? I would like run C# code on the fly on my Android tablet, the monodroid looks like possible solution, but I didn't found any notice if the monodroid compiler can run only on windows/mac or on the Android too. 回答1: I was originally going to post this as a comment on Chris Sinclair's answer, but figured it was going to end up long enough that it may as well be a separate answer. I wrote C# to Go, so I can provide some commentary

Android Google Maps API v2 start navigation

白昼怎懂夜的黑 提交于 2020-01-02 15:02:47
问题 I have an app that displays a map with a marker. When the user touches the marker I want to start navigation for them. Is there an Intent/Activity that I can pass a longitude and latitude and start theusers navigation app? Thanks for any help. 回答1: I solved it like this. The url posted is similar. Intent navigation = new Intent( Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?saddr=START_LAT,START_LON&daddr=END_LAT,END_LON")); startActivity(navigation); Where Start is the START_LON

“No resource found…” trying to compile a blank cross-platform Xamarin app

馋奶兔 提交于 2020-01-02 09:36:50
问题 I'm using VS Community 2015, Update 3. I installed Xamarin v4.2 via the VS installer, then updated via a Xamarin installer to 4.2.1.60. I created a new Cross-Platform project: Blank App (Xamarins.Forms Portable) . I set the Droid project as Startup Project, and then right click on BlankApp1.Droid to try and compile the Android project. I am getting the following compile errors: (errors are in file styles.xml ) No resource found that matches the given name: attr 'windowActionBar'. No resource

What kind of project I should create for Xamarin.Form(Shared or .Net Standard)?

a 夏天 提交于 2020-01-02 08:58:11
问题 I have to create app as following. 1- App should work with Android and iOS. 2- Resolution should support to Mobile and Tabs 3- Data storage is on cloud. So, Restful API call will be there for data transactions 4- There might be local storage for configuration settings 5- There might be native code for some functionalities like implement UrbanAirship Notification , Facebook etc When I create project for Xamarin.Forms, I get 2 options to create application: 1- Shared, 2- .Net Standard. I have

crash reporting in MonoTouch and MonoDroid

百般思念 提交于 2020-01-02 08:16:06
问题 I'm writing a cross platform application using Mvvmcross, Mono for Android and MonoTouch. In the Java Android app I am porting I used ACRA to provide crash reports and ad-hoc reports. These reports were sent to our server over an HTTP Post. Are there any crash reporting plugins for Mvvmcross? Can the Mono* community recommend any crash reporting libraries? If there doesn't seem to be anything, how are other developers dealing with this? How are they capturing untrapped application exceptions

crash reporting in MonoTouch and MonoDroid

拈花ヽ惹草 提交于 2020-01-02 08:16:05
问题 I'm writing a cross platform application using Mvvmcross, Mono for Android and MonoTouch. In the Java Android app I am porting I used ACRA to provide crash reports and ad-hoc reports. These reports were sent to our server over an HTTP Post. Are there any crash reporting plugins for Mvvmcross? Can the Mono* community recommend any crash reporting libraries? If there doesn't seem to be anything, how are other developers dealing with this? How are they capturing untrapped application exceptions

Why does the gref go too high when I put a MvxBindableSpinner in a MvxBindableListView?

依然范特西╮ 提交于 2020-01-02 08:15:30
问题 I'm developing an app for Android using mvvmcross. In this application I want to have a list which contains a spinner. It looks ok when I test the app on the emulator, but when I scroll it goes out of memory quickly because the gref goes above 2000. I know the gref can go higher on a real device but I still think I must be doing something wrong. BindableList <cirrious.mvvmcross.binding.android.views.MvxBindableListView android:id="@+id/propertyHolder" android:layout_width="fill_parent"

AutoComplete MVVM and Java Castings without using Java.Lang.Object on ViewModel

走远了吗. 提交于 2020-01-02 07:47:31
问题 i've a problem with castings. First i will give an example how to do a custom Adapter for AutoComplete without MVVM in Monodroid: https://github.com/BitStab/Monodroid-Custom-Auto-Complete/blob/master/MonoAndroidApplication1/CustomerAdapter.cs Now i will try this in MVVMCross, but to do it, i would have to extend my ViewModel by Java.Lang.Object. This would destroy the portability of it. I'm searching right now a workaround and cause i'm no expert on mvvm i need help. I started to do some new

adb root works Runtime.GetRuntime().Exec(“su”); does not

点点圈 提交于 2020-01-02 07:02:33
问题 I am running android 7.1.1 on a custom device with the AOSP compiled from source in the 'userdebug' configuration, which gives root access and debug. I can connect to the device using the android device bridge. adb root adb shell device_name:/ # su All of these commands work fine and I can make changes as a super user. The problem I am having is running the same "su" command from an app Java.Lang.Process suProcess = Runtime.GetRuntime().Exec("su"); The error I am receiving is: Java.IO