All Questions

112
votes
18answers
77986 views

How to determine MIME type of file in android?

Suppose I have a full path of file like:(/sdcard/tlogo.png). I want to know its mime type. I created a function for it public static String getMimeType(File file, Context context) { Uri ur...
38
votes
4answers
18807 views

Xamarin.Android Proguard - Unsupported class version number 52.0

I'm trying to use Proguard in my Xamarin.Android project, yet the compilation fails with the error Unsupported class version number [52.0] (maximum 51.0, Java 1.7) I saw from those two questions that...
48
votes
16answers
53967 views

Visual studio (2015) emulator for android not working - XDE.exe - Exit Code 3

I have created a new Blank App (Xamarin.Forms Portable) project in Visual Studio 2015. When I try to run Droid project in Visual Studio Emulator for Android, I just get a generic error message: ...
34
votes
1answers
27256 views

Use a local database in Xamarin

I have started using the Xamarin plugin for Visual Studio to create an Android app. I have a local SQL database, and I want to call it to display data. I don't see how I can do this. Is it possible?
30
votes
3answers
17608 views

How do I use SharedPreferences in Xamarin.Android?

I want to save and retrieve some application settings in my Xamarin.Android project. I know that in Android (java), I use the class SharedPreferences to store this information, but I do not know how...
32
votes
6answers
35078 views

How to use Push Notifications in Xamarin Forms

I'm an app using Xamarin>Forms targeting IOS, Android and WP 8. I need push notifications feature in my app. I have seen the pushsharp demos and seems promising. But all the codes I had seen is do...
39
votes
10answers
42557 views

java Lang UnsupportedClassVersion Error in Xamarin Studio

I am getting the following error when I am building my project . How do I correct this ? C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(3,3): Error: java.lang.Unsupport...
19
votes
8answers
21959 views

App not run in visual studio emulator for android in visual studio 2015

I create blank xamarin android project without add any code when i debug this project debugging without problem but when i run app with visual studio emulator for android emulator is running but not s...
277
votes
14answers
147384 views

Remove all subviews?

When my app gets back to its root view controller, in the viewDidAppear: method I need to remove all subviews. How can I do this?
36
votes
6answers
36349 views

How to login to facebook in Xamarin.Forms

I want to make a Xamarin.Forms project, targeting iOs, Android and Windows Phone. My app needs to authenticate users, using Facebook. Should I implement login for each platform independently, or use...

Previous Next