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

  • Question

  • User250367 posted

    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 ?

    Tuesday, October 4, 2016 4:50 AM

All replies

  • User180523 posted

    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.

    Tuesday, October 4, 2016 11:29 AM
  • User250367 posted

    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 ??

    Tuesday, October 4, 2016 11:56 AM
  • User129559 posted

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

    Tuesday, October 4, 2016 1:28 PM