xamarin.android
Xamarin remove app title
Write this in the OnCreate method just after SetContentView: ActionBar.Hide();
“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.
Setting the Color of a TextView Drawable
Try below solution private void setTextViewDrawableColor(TextView textView, int color) { for (Drawable drawable : textView.getCompoundDrawables()) { if (drawable != null) { drawable.setColorFilter(new PorterDuffColorFilter(ContextCompat.getColor(textView.getContext(), color), PorterDuff.Mode.SRC_IN)); } } }
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>
“aapt.exe” exited with code 1 when building Mono for Android project
Step 1: get more info If you run across this error, hopefully, you will also run across a post from Jonathan Pryor replying to someone else with the same problem. The suggestion is to turn on more verbose logging from MSBuild to see if you get something useful out of those messages. In the Visual … Read more
Global Exception Handling in Xamarin Cross platform
There isn’t a ‘Xamarin.Forms’ way of doing it that I know of. You need to hook into Android and iOS, what you could do is create one method that handles them both in the same way. A nice post about this is by Peter Norman. He describes that to implement it in Android you can … Read more
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