xamarin-studio

How do I access/read from/write to Documents folder in Internal Storage on Android devices?

依然范特西╮ 提交于 2019-12-12 12:25:14
问题 How do I access public Documents folder on an Android phone's internal storage? I need to read and write publicly-accessible files into the Documents folder. 回答1: don't forget to add permission to androidmanifest.xml <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> sample of writing // write on SD card file data in the text box try { File myFile = new File("/sdcard/mysdfile.txt"); myFile

Visual Studio publishing to app store with Xamarin

情到浓时终转凉″ 提交于 2019-12-12 12:19:58
问题 I can't find any documentation on how to publish your app to the app store from Visual Studio? Is this a case of having to use Xamarin Studio once you are ready to submit your app? It seems a bit odd that xamarin gives you the opportunity to use Visual Studio but then has absolutely no instructions on how to create a bundle to submit your app to the app store.. Any tips on how to do this with Visual Studio would be great. 回答1: As far as I know, there's no way of submitting to AppStore (or

How to make Apk of Xamarin Application to Run on Android Device

旧城冷巷雨未停 提交于 2019-12-12 09:22:39
问题 I am new to Xamarin Mobile App Development.I have developed a basic mobile app but I am having an issue with creating the .apk to test it on my Samsung Galaxy S-5 Android phone.I searched few ways from google but None of them worked. Kindly suggest some simple solution for this, also I want to run the app on windows phone too if there is any way for that as well?. Any help would be grateful. 回答1: For Generating an APK file you need to perform the following steps in Visual Studio 15: 1.In your

How to update info.plist with code?

守給你的承諾、 提交于 2019-12-12 05:38:50
问题 I am building an app in Xamarin, using Xamarin Studio / XCode / Visual Studio. I need to use the Facebook SDK for the iOS project, but the instructions require adding the code shown on that link to info.plist . However, if I open info.plist in any of those IDEs, I get a window structured like a form to edit the file, so I can't add the code in as stated by the tutorial? Under Advanced, there is an option to add URL Types, but I am not sure what to put in here, or if this is the right option

cannot get stacktrace, source line # information from Mono .dll

▼魔方 西西 提交于 2019-12-12 02:50:03
问题 I am running some .NET .dll s on Windows Server 2012 . The .NET assemblies were compiled from C# code on OS X with Xamarin 4.0 . (yeah I know weird setup- but I am a game developer) In general they run perfectly, but when it comes to inspecting Exception information, it's not so good. I am trying to pull info out of an Exception object, but it's all empty. I also tried copying the .mdb files along with the .dll s, and made sure I was building in Debug , and with debug symbols. For example

Why Xamarin can not find AppleSDK?

走远了吗. 提交于 2019-12-11 20:23:16
问题 Xamarin an error: "A valid Xcode installation could not be found. If your copy of Xcode is installed to a non-standard prefix, please specify the location in Xamarin Studio's Preferences under 'SDK Locations'." In the setting can not find AppleSDK. How to solve this problem? 回答1: Here you can see where you need to se the location of Xcode.app: 来源: https://stackoverflow.com/questions/20048616/why-xamarin-can-not-find-applesdk

libgdx on ios GdxRuntimeException couldn't load file

不羁岁月 提交于 2019-12-11 19:19:31
问题 I decided to move my application from Android to iOS. Application use libgdx library. I generated ios subproject using libgdx and opened it using Xamarin Studio. All images are linked from my-project-android/assets/data. All images have set build Action > content. Now every time when run project from xamarin studio i get GdxRuntimeException Coldn't load file: data/background.png. This file is the first image which i load in my application. All operation i have done on my mac both with

I've exported my highlighting scheme in Xamarin Studio. Now how do I import it?

萝らか妹 提交于 2019-12-11 19:07:57
问题 The lastest update of Xamarin Studio changed how syntax highlighting is stored and exported, apparently to make it compatible with Visual Studio, and as a result my customized scheme was lost. I painstakingly reconfigured the scheme and exported it. But now when I try to 'add' the scheme into Xamarin Studio on another computer, nothing happens. How can I import the exported scheme onto another computer? 回答1: If the exported file ends with Style.json it will import, e.g.

How to Set Up Xamarin.Forms for MacOS Sierra?

这一生的挚爱 提交于 2019-12-11 17:21:23
问题 Visual Studio seems to be having a hard time starting up, so I'm wondering if there's anything wrong in my setting it up. I'm currently using: macOS Sierra, version 10.12.6 Visual Studio (VS) for Mac (Community edition), version 7.3.2 (build 12) Setting up New Solution : A ( New Project ): select Multiplatform App under Xamarin.Forms , select Blank Forms App (C#) select Next B ( Configure your Blank Forms App , part 1): App Name: ABCD Organizer Identifier: com.WXYZ Target Platforms: select

How to compile windows binary on OSX

眉间皱痕 提交于 2019-12-11 16:23:15
问题 I did a C# project on my Mac using Xamarin Studio. I need the binary to run on Windows. Right now it's using a gcc compiler. How do I get a Windows binary out of this? (Pretty sure I need to use mingw) 回答1: Xamarin Studio builds the exe / dll for you automatically. In your projects directory E.G. /Users/ashleymedway/Projects/TEST/TEST . Browse to Build/Debug or Build/Release depending on your configuration profile. You will see the complied app/library. E.G Test.exe The executable found here