All Questions

358
votes
14answers
365225 views

appcompat-v7:21.0.0': No resource found that matches the given name: attr 'android:actionModeShareDrawable'

When attempting to use the latest appcompat-v7 support library in my project, I get the following error: /Users/greg/dev/mobile/android_project/app/build/intermediates/exploded-aar/com.android.suppor...
108
votes
11answers
105393 views

How to change shape color dynamically?

I have <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <solid android:color="#FFFF00"...
112
votes
18answers
77865 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
18763 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...
34
votes
1answers
27235 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
17564 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...
3
votes
1answers
8284 views

In MvvmCross how do I do custom bind properties

I am using MvxBindableListView to bind a List<> of data objects to a ListView. The layout I am using for the rows has several TextViews. I am successfully binding the Text property for each of t...
115
votes
3answers
49220 views

When to use Xamarin.Forms vs Xamarin Native?

I am in need to make a choice between Xamarin.Forms vs Xamarin native apps. I want to go with Xamarin.Forms as UI code will be shared as well. So what are the drawbacks of Xamarin.Forms as compared ...
30
votes
4answers
18072 views

MonoDroid: Error when calling constructor of custom view - TwoDScrollView

I am building an Android application that uses the custom-built TwoDScrollView found here: http://blog.gorges.us/2010/06/android-two-dimensional-scrollview/ This same class can be found referenced a...
44
votes
10answers
23730 views

Warning major version 52 is newer than 51, the highest major version supported by this compiler

Basicly I'm super newbie and started internship in IT company. I installed VS with Xamarin. The problem that I'm facing is very frustrating. So even when i create empty project I can't compile it and ...

Previous Next