xamarin.android

How to sharpen a Bitmap? [closed]

萝らか妹 提交于 2019-12-12 04:17:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I am now developing an app for Android in Xamarin and I am stuck on a little step. I was searching on the interwebs for a sharpening alogrithm for MonoDroid and everything I find doesn`t seem to work. Can anybody provide me with some as-is script or some documentation? Thanks in advance. 回答1: The great answer by

Xamarin linker error with AWSSDK

筅森魡賤 提交于 2019-12-12 04:16:37
问题 I have a Xamarin forms mobile project (Android and iOS). When I try to install the AWSSDK.S3 to access Amazon services, I get the following linker error when trying to build iOS: Failed to resolve "System.Void Amazon.Runtime.Internal.Util.AESEncryptionPutObjectStream::.ctor(System.IO.Stream,System.Byte[],System.Byte[])" reference from "AWSSDK.Core, Version=3.3.0.0, Culture=neutral, PublicKeyToken=885c28607f98e604" ..Android build has a similar error. I have the following libraries installed:

How to display Splash screen on OnAppLinkRequestReceived in Xamarin.Forms- Android

泪湿孤枕 提交于 2019-12-12 04:14:29
问题 I have implemented splash screen as below I have a splash activity as main launcher which starts MainActivity [Activity(Theme = "@style/MyTheme.Splash", MainLauncher = true, Immersive = true, ScreenOrientation = Android.Content.PM.ScreenOrientation.Portrait, NoHistory = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] public class SplashActivity : AppCompatActivity { protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var intent = new

Why won't a toast notification appear in my background Service (using System.Timer)?

假装没事ソ 提交于 2019-12-12 04:03:12
问题 In a background service I create a count down timer using System.Timers. It appears to work. After 2 seconds in the console I can see that Console.WriteLine() prints the text. However, the Toast notification does not appear and I would like to know why using System; using System.Collections.Generic; using System.Linq; using System.Text; using Android.App; using Android.Content; using Android.OS; using Android.Runtime; using Android.Views; using Android.Widget; using Android.Media; using

How to get the path to the internal memory of the smartphone and the DCIM folder?

試著忘記壹切 提交于 2019-12-12 03:52:59
问题 How to get the path to the internal memory of the smartphone and the DCIM folder, then to save the photo there? string directory = System.IO.Path.Combine(Android.OS.Environment.ExternalStorageDirectory.AbsolutePath, Android.OS.Environment.DirectoryDownloads); FileStream file = new FileStream(System.IO.Path.Combine(directory, "newProdict_" + product.Width + "x" + product.Height + ".png"), FileMode.OpenOrCreate); 回答1: You can get the DCIM folder like that: var dcimFolder = Android.OS

EditText.SetOnEditorActionListener

故事扮演 提交于 2019-12-12 03:52:49
问题 I'm completely at a loss for implementing an action listener for the imeOption setting "actionSearch" on an EditText control. I have looked at the Android Documentation for doing this, but I can't find support for it in Mono. I've tried implementing a TextView.IOnEditorActionListener, but I can't find the OnEditorAction method to override. This is the code I'm trying to use: EditText editText = (EditText) findViewById(R.id.search); editText.setOnEditorActionListener(new OnEditorActionListener

Xamarin.forms how to hold image on same page after navigating another page

假装没事ソ 提交于 2019-12-12 03:47:00
问题 I have uploaded image on my profile page and I want to hold that image until I logout in xamarin forms. My image will be lost if I select another page so I want to hold it until I log out. var profile = new Image { }; profile.Source = "profile.png"; profile.HorizontalOptions = LayoutOptions.StartAndExpand; profile.VerticalOptions = LayoutOptions.StartAndExpand; var profiletap = new TapGestureRecognizer(); profiletap.Tapped += async (s, e) => { var file = await CrossMedia.Current

Xamarin Form: Android doesn't received the broadcast after reboot

…衆ロ難τιáo~ 提交于 2019-12-12 03:43:43
问题 Having problem receiving broadcast after reboot? I have a class receiving the broadcast after reboot like this. [BroadcastReceiver(Enabled = true, Exported = true, Permission = "RECEIVE_BOOT_COMPLETED")] [IntentFilter(new string[] { Android.Content.Intent.ActionBootCompleted })] public class StartupBootReceiver : BroadcastReceiver { public override void OnReceive(Context context, Intent intent) { var startupIntent = new Intent(Application.Context, typeof(StartupService)); Application.Context

Getting the number of the phone Xamarin.Android?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 03:33:12
问题 I found out that this code shared by some users doesn't work in my project. Has anyone a better solution ? TelephonyManager tMgr = (TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE); String mPhoneNumber = tMgr.getLine1Number(); I'm getting an error on the getLine1Number() and on the mAppContext 回答1: Your code is for native Android (Java) . Try the below code of Xamarin.Android (c#) . Code: Android.Telephony.TelephonyManager tMgr = (Android.Telephony.TelephonyManager

Xamarin support libraries version confusion

一个人想着一个人 提交于 2019-12-12 03:25:04
问题 I'm trying to build a project using Navigation View that relies on Support v4 and v7 and Design, I already installed v23.0.1 and I also installed Android Support Repository v30 from SDK Manager which seems to have plenty of older version named folders, everything works perfectly in Android Studio, I use Navigation Drawer with no problem, but with Xamarin I get this error: Error Please install package: 'Xamarin.Android.Support.Design' available in SDK installer. Android resource directory C: