xamarin.android

How to call Mono for Android class from within Android application?

这一生的挚爱 提交于 2019-12-22 08:10:41
问题 I have created a fairly simple Activity in Mono for Android project: [Activity(Label = "AndroidApplication1", MainLauncher = true, Icon = "@drawable/icon")] public class Activity1 : Activity { private string value = "intitial"; [Export] public string GetString() { return value; } [Export] public void SetString(string newValue) { value = newValue; } } The activity should only serve as a proof-of-concept, hence its simplicity. Now, I'd like to be able to call the method GetString() from the

How to call Mono for Android class from within Android application?

可紊 提交于 2019-12-22 08:09:04
问题 I have created a fairly simple Activity in Mono for Android project: [Activity(Label = "AndroidApplication1", MainLauncher = true, Icon = "@drawable/icon")] public class Activity1 : Activity { private string value = "intitial"; [Export] public string GetString() { return value; } [Export] public void SetString(string newValue) { value = newValue; } } The activity should only serve as a proof-of-concept, hence its simplicity. Now, I'd like to be able to call the method GetString() from the

Binding OxyPlot via MVVMCross in Xamarin.Android

十年热恋 提交于 2019-12-22 07:42:28
问题 I have added OxyPlot Android and Core in my Xamarin PCL based project where I am using MVVMCross . I have added the plotview in my xml as follows. But I do not know how to bind this view using MVVMCross. Is there any good example or resources to follow? MyView.xml <oxyplot.xamarin.android.PlotView android:id="@+id/plot" android:layout_width="match_parent" android:layout_height="match_parent" /> MyView.cs public class MyView : MvxFragment<MyViewModel> { public override View OnCreateView

Building mono with android ndk standalone toolchain (android ndk r8e)

橙三吉。 提交于 2019-12-22 07:42:00
问题 I'm attempting to build mono using the ndk standalone toolchain from the android ndk (version r8e), but I am unable to complete the build. I setup my standalone environment like so: export SYSROOT=/home/jeremybell/Desktop/android-ndk-r8e/platforms/android-14/arch-arm /home/jeremybell/Desktop/android-ndk-r8e/build/tools/make-standalone-toolchain.sh --platform=android-14 --install-dir=./android-14-toolchain Next, I configure mono. I'm using something similar to the example shown here: http:/

Building mono with android ndk standalone toolchain (android ndk r8e)

对着背影说爱祢 提交于 2019-12-22 07:40:09
问题 I'm attempting to build mono using the ndk standalone toolchain from the android ndk (version r8e), but I am unable to complete the build. I setup my standalone environment like so: export SYSROOT=/home/jeremybell/Desktop/android-ndk-r8e/platforms/android-14/arch-arm /home/jeremybell/Desktop/android-ndk-r8e/build/tools/make-standalone-toolchain.sh --platform=android-14 --install-dir=./android-14-toolchain Next, I configure mono. I'm using something similar to the example shown here: http:/

How to add your application to the “Share” menu with monodroid

孤人 提交于 2019-12-22 07:05:56
问题 My solution is based on this article: http://twigstechtips.blogspot.com/2011/10/android-sharing-images-or-files-through.html 回答1: You have to add [IntentFilter(new[]{Intent.ActionSend},Categories = new[]{Intent.CategoryDefault},DataMimeType = "image/*",Label = "Your application name")] before your class declaration. Like this: [Activity(Label = "Activity label", ScreenOrientation = ScreenOrientation.Portrait)] [IntentFilter(new[]{Intent.ActionSend},Categories = new[]{Intent.CategoryDefault}

Using MvxGridView in MvvmCross

核能气质少年 提交于 2019-12-22 07:02:59
问题 What I want to do is s simple screen showing multiple items in a Grid. This can on android easily be archived using a GridView. In MvvmCross I guess I have to use MvxGridView to archive the same. Here is my axml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:local="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <Mvx

How can I attach a virtual device/emulator to Visual Studio Xamarin Android project?

喜欢而已 提交于 2019-12-22 06:59:15
问题 I created an Android app for Ice Cream Sandwich and added nothing to the default code (except changing the text of the "Hello World" message - I couldn't - or wouldn't - help myself). I mashed F5. Nada - no device attached. The dropdown list says "No Devices Attached." So, I set one up via the "Open Android Emulator Manager" button that the Xamarin install added: I mashed F5 again; same problem. It said to pick a device from the dropdown list (I had forgotten to explicitly choose the one I

Is there any kind of solution to develop Blackberry Apps in C# like Mono for Android or Monotouch?

爷,独闯天下 提交于 2019-12-22 06:33:07
问题 I have one application that has been ported to Android and iOS using Xamarin solutions Mono for Android and MonoTouch. This has been made because in this way I can use the same encryption libraries to connect all these platforms with a C# web service that decrypt the received data without the need of HTTPS. Is there any solution using C# that can be ported to Blackberry? Would the Blackberry 10 OS capability yo port Android apps a solution for this problem? BTW do not asnwer me with the

Is there any kind of solution to develop Blackberry Apps in C# like Mono for Android or Monotouch?

一笑奈何 提交于 2019-12-22 06:32:06
问题 I have one application that has been ported to Android and iOS using Xamarin solutions Mono for Android and MonoTouch. This has been made because in this way I can use the same encryption libraries to connect all these platforms with a C# web service that decrypt the received data without the need of HTTPS. Is there any solution using C# that can be ported to Blackberry? Would the Blackberry 10 OS capability yo port Android apps a solution for this problem? BTW do not asnwer me with the