xamarin.android

MvvmCross vnext : monodroid use a VideoView inside a plugin

让人想犯罪 __ 提交于 2019-12-13 02:35:51
问题 I was playing with Xamarin Mobile api MediaPicker which uses MediaRecorder with monodroid to make a plugin to record a video. Android must preview the video inside a VideoView. This restriction applies to wp7 and ios too for privacy. So, I need to get the VideoView (or Rectangle in wp7) from my custom view and setPreviewDisplay to this VideoView in my plugin (or init MediaPicker with this VideoView). What is the best way to implement my portable plugin which requires UI element ? Thanks in

Parse Push Notfications in MonoDroid

做~自己de王妃 提交于 2019-12-13 01:43:58
问题 So I'm using the Parse component from the Xamarin store in my MonoDroid app. So I was able to use the following code to store an object ParseClient.Initialize ("appid", "windowskey"); var obj = new ParseObject("Note"); obj ["text"] = "Hello, world! This is a Xamarin app using Parse!"; obj ["tags"] = new List<string> {"welcome", "xamarin", "parse"}; obj.SaveAsync (); My real goal is to be able to do push notifications. Even though the above object stored, Parse did not register the device in

Xamarin Android Player : Camera error Cant connect to Camera

不羁的心 提交于 2019-12-13 01:24:56
问题 I am trying to use the camera capability in my xamarin android app using the below code. Intent intent = new Intent(MediaStore.ActionImageCapture); StartActivityForResult(intent, 0); I have enabled camera in the Android Manifest and followed all that is mentioned in this tutorial. However on running the code I get this error Camera Error : Cant connect to the Camera. Also I get the same error when opening the standard camera app in the emulator I tried out enabling camera using this link &

Is a Trial-like behavior possible in android apps

纵然是瞬间 提交于 2019-12-12 22:07:55
问题 I'm new to Android developement (I know very basic stuffs), and there is a chance that soon I'll be tasked with porting a WP7 app to Android (fortunately, I can use MonoDroid...). Now that app has a trial functionality (see here), which for WP7 means that I can check whether the user bought it (so I can enable additional features inside the app) or downloaded the free edition. I do not want the trial to expire, I want a "free edition" of my app to be limited to certain features. Is there

Take/Select picture and show it in ImageView without saving first (using MvvmCross)

China☆狼群 提交于 2019-12-12 22:01:12
问题 I want to choose a picture from library or take a picture with the camera and show the result to the view (ImageView) But according to a few posts including this one, the MvxHttpImageView I use needs a Uri to show the image (wheter it comes from file systemor camera). This implies, converting the Stream into a file and getting the Uri back. I wrote a Picture Service that does the job: public class PictureService : IPictureService, IMvxServiceConsumer<IMvxPictureChooserTask>,

xamarin google map not working

核能气质少年 提交于 2019-12-12 21:26:44
问题 I created a map using the following link http://developer.xamarin.com/guides/android/platform_features/maps_and_location/maps/part_2_-_maps_api/ i followed all the procedures mentioned in it but what am getting is a blank screen. My application Output shows the following log on executing the map activity. Open Connection [REQUEST] DRD(41): 62|147 [REQUEST] Close [REQUEST] Error processing: com.google.maps.api.android.lib6.b.d@42a1cef8 not retrying [REQUEST] Retrying: com.google.maps.api

Send notification from service

坚强是说给别人听的谎言 提交于 2019-12-12 21:09:48
问题 I've got my signalR service working and now I need to send a notification to the user when a message is received. I wrote the notification code which is executed but no notification is displayed. My service code is: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Acr.UserDialogs; using Android; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Support.V4.App; using Android.Views; using Android.Widget;

What is [Application] in Mono for Android?

北战南征 提交于 2019-12-12 20:43:02
问题 I'm new to mono and working through the Mono For Android tutorials. Can anyone point me to some documentation which explains the meaning of the [Application] tag above my classes?... Here's my issue: I have come accross an issue where I have created two seperate classes App1.cs & App2.cs, both of these extend the Application Class (Public Class App1 : Application).. etc. There is a tag above this declaration [Application] which seems to be causing deployment issues, although it builds fine.

Problems running on iOS

筅森魡賤 提交于 2019-12-12 20:23:53
问题 I've tried on 3 different computers but it still has the same problem that prevents me from running the project on the Mac. When I use Windows and connect to my Mac to run, it shows the same error on all 3 computers. The error message displayed: Can not resolve reference: /Library/Frameworks/Xamarim.iOS.framework/Versions/Current/lilb/mono/Xamarin.iOS/Facades/System.Memory.dll 回答1: Quick fix steps VS on PC: in iOS poject open References list find Xamarin.iOS and check the path in properties

24 hours TimePicker with Focused and Unfocused events

房东的猫 提交于 2019-12-12 19:49:26
问题 I tried implementing 24 Hour Time Picker as given here 24 Hour TimePicker in XF project. But it doesn't fire the Focus and Unfocused event on Android. Has anyone implemented this? 回答1: Explanation The author of this custom control forgot to fire Focused and Unfocused in the Android Custom Renderer. We can fire these events by calling ElementController.SetValueFromRenderer(VisualElement.IsFocusedPropertyKey, [true/false]); from the Android Custom Renderer when FocusChanged fires. This custom