Forum Xamarin.Forms


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Is there any way to add java android code in xamarin crossplatform pcl code as library or else ?

Hello, I want to add some java code which is written in android studio for android in my cross platform application . Anyone could suggest me how can i do this ?


  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭

    Not going to happen. It will work for your Android project, but you're not going to make your Android java code run on iOS or UWP. If it were that easy/possible then we wouldn't have a need for the mono framework and Xamarin wouldn't exist.

  • KaranveerSinghKaranveerSingh USMember ✭✭

    See i am asking we can call that code only at android platforms in xamarin forms through dependency and add that java code to only droid project ?? is it possible or not ??

  • AdamMeaneyAdamMeaney USMember ✭✭✭✭✭

    I have not done so, but this describes how to bind a Java library, I assume it could be used for such things.

Sign In or Register to comment.