“java.exe” exited with code 2 Xamarin.Android project

Found the answer after about 20 hours of searching in my project.. So here are the steps to resolve the problem “java.exe” exited with code 2 1) Change the MainDexClasses.bat as described in the link: http://www.jon-douglas.com/2016/09/05/xamarin-android-multidex/ 2) Make sure you have enabled Multidex Option in your Android Application! Have a look at the .csprj file … Read more

The Operation could not be completed: Invalid Pointer

This is an old thread but the same symptom has come back but based on a new cause. I got the error after installing ASP.NET 5 RC1. I solved the problem by deleting this folder: Users\{yourusername}\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache (or %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache), and afterwards restarted Visual Studio.

Get current Activity – Xamarin Android

A better way would be to use the Standalone Current Activity Plugin or the Current Activity Property in the Xamarin Essentials Plugin. Then you could just do: Standalone: CrossCurrentActivity.Current.Activity Xamarin Essentials: Platform.CurrentActivity If you do not want to use a plugin and you only have 1 Activity in your app, you could get away with … Read more

How to add a horizontal 1px line above image view in a relative layout?

Just add the following line in your XML where ever you want it. <View android:background=”#ffffff” android:layout_width = “match_parent” android:layout_height=”1dp”/> Edit: Try this: <RelativeLayout android:id=”@+id/widget38″ android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_x=”108px” android:layout_y=”87px” > <View android:id=”@+id/separator” android:background=”#ffffff” android:layout_width = “fill_parent” android:layout_height=”1dip” android:layout_centerVertical =”true” android:layout_alignParentTop=”true”/> <ImageView android:id=”@+id/widget39″ android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_below=”@id/separator” android:layout_alignParentRight=”true” /> </RelativeLayout>

Xamarin forms android Application not getting DeviceToken Parse SDK

when you have declare the push notification using xamarin then you have to write code on both section like xamarin android and IOS, and also if you have used to remote notification then use to push sharp lib which is a best for push notification and register your app and enable to notification service like … Read more