xamarin.android

How to write the username in a local txt file when login success and check on file for next login?

谁说胖子不能爱 提交于 2020-01-30 13:18:30
问题 I want to create a local txt file and store username after login success and for next login the app will check on this file if the username exists for bypass login. But it seems like no file created when I testing it bool bRet = ws.RequestMemberLogin(1, userName.Text, pass.Text, "", ""); string path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); string filename = System.IO.Path.Combine(path, "user.txt"); FileInfo fi = new FileInfo(filename); bool exist = fi

How to write the username in a local txt file when login success and check on file for next login?

ⅰ亾dé卋堺 提交于 2020-01-30 13:18:10
问题 I want to create a local txt file and store username after login success and for next login the app will check on this file if the username exists for bypass login. But it seems like no file created when I testing it bool bRet = ws.RequestMemberLogin(1, userName.Text, pass.Text, "", ""); string path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); string filename = System.IO.Path.Combine(path, "user.txt"); FileInfo fi = new FileInfo(filename); bool exist = fi

How can I get Offline Instller for Visual Studio 2017?

杀马特。学长 韩版系。学妹 提交于 2020-01-30 13:15:08
问题 I recently try to install Visual Studio 2017 . But there is no offline installer. How to get offline installer for it. I also tried to install Xamarin . Eventhough I have latest Android SDK , it ask me to download Android SDK again. How to rectify it? Thanks in advance. 回答1: To produce an offline installer you first need to download the corresponding online installer, which will give you an installation file similar to one of these: vs_enterprise.exe - Visual Studio 2017 Enterprise, download

Crop and rotate a captured picture Xamarin.Android & Xamarin.iOS

核能气质少年 提交于 2020-01-30 08:26:36
问题 Anyone knows a library that can take a picture with an Android or iOS smartphone and then offer a view to crop or rotate this image (so, without the native preview) I work with PCL / Xamarin.Android / Xamarin.iOS (Not Xamarin.Form) 回答1: You can use FFImageLoading to crop and rotate your images. Try to add pinch/swipe gesture recognizer to your images, when this event fires use the rotate transformation to rotate the image: public RotateTransformation(double degrees, bool ccw, bool resize) { .

Crop and rotate a captured picture Xamarin.Android & Xamarin.iOS

旧巷老猫 提交于 2020-01-30 08:26:31
问题 Anyone knows a library that can take a picture with an Android or iOS smartphone and then offer a view to crop or rotate this image (so, without the native preview) I work with PCL / Xamarin.Android / Xamarin.iOS (Not Xamarin.Form) 回答1: You can use FFImageLoading to crop and rotate your images. Try to add pinch/swipe gesture recognizer to your images, when this event fires use the rotate transformation to rotate the image: public RotateTransformation(double degrees, bool ccw, bool resize) { .

FCM - Android Xamarin NotRegistered error when sending message after re-debugging the App

坚强是说给别人听的谎言 提交于 2020-01-29 09:53:07
问题 I am developing an App in Xamarin Android, for notifications I am using FCM the Pre-Release package: https://www.nuget.org/packages/Xamarin.Firebase.Messaging/ Now everything works fine if I clean the App data, the OnTokenRefresh event is fired and a new token is generated - when I send a new notification on this Token the notification is sent and received by the device in OnMessageReceived() - The problem is when I make changes to the code and run the application again, if I use the old

Visual Studio 2015 - Xamarin - Android - Getting “resource.id does not contain a definition for xxx” when I try to do anything in the .cs file

大城市里の小女人 提交于 2020-01-29 02:52:09
问题 Adding Additional Activity .cs and Layout axml Using Visual Studio 2015. I'm very new to Xamarin and Android development, but have been a developer for a few years using VB and now C#. I have a simple app on Android 4.2 that is getting more complicated as I go along. The simple matter us that I want to add an additional GpsAction.cs and corresponding Gps.axml layout to the project. It seems impossible to find the right combination syntax to achive this. I have a mainActivity with main.axml.

Xamarin Notification Android Crash

夙愿已清 提交于 2020-01-26 03:28:26
问题 I get the following Exception: Java.Lang.IllegalStateException: The specified child already has a parent. You must call removeVeiw() on the child's parent fist. when running the following code blocks. It all starts in my Forms Page with a button press that uses the alarm manager to generate a scheduled notification. The problem is that if the notification is clicked on, the above exception gets thrown if the app is still active. If I switch applications on the phone, then click the

Xamarin Texture View camera stream size

喜夏-厌秋 提交于 2020-01-25 20:51:06
问题 I created an app that streams data from the camera, in order to let the user take a picture, something like SnapChat. but there is a bug, whenever I take a picture I send it to another activity to show it, everything is fine until this point. But when I go BACK to the firts activity it seems that the size of the texture view has changed. I took some screenshots to show you guys This picture shows the stream ( Firts Activity ) and then the result of the picture(Second Activity) But this

Xamarin.Android app doesn't request “WriteExternalStorage” (but code works fine with “ReadExternalStorage”)

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-25 10:09:31
问题 I already have some experiences with C#, but I'm new to Android-Development and wanted to start with a simple project app, that can create a new directory with a file on the external storage ("/storage/emulated/0/" [Android.OS.Environment.ExternalStorageDirectory.AbsolutePath]) and read it. In the documentation I read that in the newer SDKs it's not enough to mention the permissions (in this case "ANDROID.PERMISSION.WRITE_EXTERNAL_STORAGE") in the AndroidManifest.xml. So I added a method to