Hi everyone..
how to use java libraries in xamarin pcl project. if there is any source code please share a sample
thanks
Nagarjuna
There is some discussion of binding Java SDKs for Xamarin Forms here: https://www.jimbobbennett.io/binding-the-cognitive-services-android-speech-sdk/
Answers
Yep. There's lots of documentation on it. Have you gone through Xamarin University to learn this new system you want to work in?
https://www.google.com/search?q=xamarin+binding+lib&ie=utf-8&oe=utf-8&client=firefox-b-1-ab
Xamarin University is a good value.
There are lots of free tutorials on the 'net such as mine own and lots of others.
http://redpillxamarin.com/2018/03/12/2018-101-vs2017-new-solution/
And of course the free text book on Xamarin
https://blogs.msdn.microsoft.com/microsoft_press/2016/03/31/free-ebook-creating-mobile-apps-with-xamarin-forms/
For at least the next month, just learn. Don't build your own. Just do the lessons. You have to understand the foundation concepts. Learn to walk before you try to run.
There is some discussion of binding Java SDKs for Xamarin Forms here: https://www.jimbobbennett.io/binding-the-cognitive-services-android-speech-sdk/
My two cents worth... Start with the official documentation. That should always be your first stop with any new item you're trying to implement or any question you come up with. 90% of all the question here really can be answered by just reading the documentation that already exists.
https://docs.microsoft.com/en-us/xamarin/android/platform/binding-java-library/
<minor rant> //When did people who want to call themselves developers get to the point where they can't be bothered with reading the manual? </minor rant>
Thanks for immediate reply.....
i have readed but i cant find solution because i have to use that sdk in pcl project
Aside from PCL being obsolete and you should probably move forward to .NET standard...
What's the problem?
You make the
BindingLib
You make a
DependencyService
for your shared layerYou make an android implementation of that service.
At the droid layer you use the droid binding lib.
Presumably you'll make an iOS binding lib so you can have the same functionality in iOS.
From the shared layer you
get
theDependencyService
and run whatever method you want.The shared layer is ignorant of the OS its running on or which binding lib is used.