Xamarin.Android: Binding aar file not Generation AWS Configured Class - amazon-s3

I am Newbie to Xamarin. I am here using my aar file for binding it to xamarin.android. In a Service I have used TransferListener but due to that class won't be generated while building xamarin app after removing Listener, it is working fine.
Description Edited:
I have created library in android. Now trying to bind generated aar file to xamarin. But after building project inside generated dll file, I am unable to find a class which has implemented TransferListener of AWS. When I remove TransferListener from there, I found that class.
Thanks in advance.

If you are looking for Amazon AWS cloud connection the following are the links that you need to check :
https://docs.aws.amazon.com/mobile/sdkforxamarin/developerguide/setup.html
https://docs.aws.amazon.com/mobile/sdkforxamarin/developerguide/Welcome.html
https://aws.amazon.com/blogs/aws/new-aws-mobile-sdk-for-xamarin/
https://docs.aws.amazon.com/mobile/sdkforxamarin/developerguide/getting-started-xamarin.html\
https://blog.xamarin.com/amazon-web-services-aws-mobile-sdks-for-xamarin-now-available/
https://forums.xamarin.com/discussion/96342/implementing-aws-cognito-identity-services-in-xamarin-android
https://components.xamarin.com/view/aws-cognitoidentity-sdk

Related

Calling *.aar files (android library) in nativescript vue

I already create an .aar (android library) files in android studio and want to call/use it in nativescript-vue project.
I have placed the aar file in "app/App_Resources/Android/libs" folder.
Based on my reading, in typescript the way to call the method in aar files is by calling com.package.MyClass.
My question is , how to call it in .vue files. I have tried to call the method using the same approach but its produce an error :
Module not found: Error: Can't resolve com.package.MyClass
Can someone please help me on this.
Your help is very much appreciated.
You may simply place your AAR file in your App_Resources/Android/libs directory, CLI will pick it up at build time and the native APIs should be available at runtime within your project.
Try a clean build if you see errors, make sure the AAR is picked up. You might be able to verify it from the CLI logs. If you still see issues, make sure the class you are trying to access is public.
I'm not sure it's possible to use the android lib directly in the main project or not. In my way, I create a NS plugin that includes the .aar library, then add this plugin to the main project & use the methods defined in the .aar library without problem.
If you place the .aar library in the main project, you should check if that .aar library is installed by running tns build command & look at console log. If it's installed together with the project, that means you can use the lib method in .vue or any .js files.

How to load a dll in Karaf container?

I have a dll which provides a simple functionality (called HelloCpp.dll) and
I need to access to the content of this library from Karaf container via REST calls.
I created a simple maven bundle which provides the REST api and a class (HelloJNI) which loads HelloCpp.dll using: System.loadLibrary("HelloCpp");
I have also addressed this dll in my POM file using: <Bundle-NativeCode>HelloCpp.dll</Bundle-NativeCode>
I have coppied the dll in both project directory and also karaf/lib folder.
I can successfuly install the bundle and I don't receive any compilation error as well, but when I deploy my bundle into Karaf container and try to start bundle, I get this error message: No matching native libraries found.
Could you please help me to solve the problem? Maybe I don't address the dll correctly in the POM file.
Thanks in advance,
Mandana

MVC4 and resources from another project

How can I use resource file from another ASP.NET MVC 4 project, please?
Unfortunately, the Web project doesn't see the Resource project.
Thank you.
EDIT
Solution 'Example'
+Example.Resources
+Resources.en.resx
+Resources.resx
+Example.Web
...
I have added the reference of Example.Resources to the Web project, but I can't use the resources because it doesn't see it:
using Example.Resources doesn't exist in the Web project.
You need to create one class library project and add the resource file in that project.
And add the reference your class library project to whenever you want so it will able to use this resource file in your target project.
Like Syntax :- ViewBag.IsUpdate = SurveyTool_Resources.GeneralResources.LUpdate;
GeneralResources is resource file name and SurveyTool_Resources is resource project name.
.
Check Below Image.

Why can't I override a javax.validation.ValidationFactory when deploying mule app to CloudHub?

I'm trying to load javax.validation.ValidationFactory from a library containing the javax.validation package (retrieved from jboss.org). I see that the library is included when I export the Mule Studio Project to a zip file, so I'm assuming it is also exported when I deploy the application to CloudHub (all of my other 3rd party jars have deployed with minimal trouble).
Unfortunately, I get a ClassNotFound error. I've tried overriding the class definition using loader.override=javax.validation.ValidatorFactory in the mule-deploy.properties, but I get an error in CloudHub saying that I can't override a system package. I thought the above override would only override the given class, asking CloudHub to look within the deployed application for a class definition rather than from the CloudHub supplied libraries.
As a side note, searching through a copy of the Mule Standalone server, I don't see javax.validation.ValidationFactory anywhere. Can anyone tell me why I can't force the load of this one class using loader.override?

Custom class in DotNetNuke Module

I know this can be done as there are other modules out there that have this, but I'm just not getting it to work.
I have created a custom module for a DotNetNuke site. I want to be able to create a class object within the module to hold the information about that object. I can create the object and everything complies. But when I go to use the object in the code-behind it states that the object is not defined. I'm not really sure where to go from here.
This is the beginning of the View.ascx.vb :
Namespace Modules.VacationForms
Public MustInherit Class View
Inherits PortalModuleBase
This is the object class beginning:
Namespace Modules.VacationForms
Public MustInherit Class Vacation
I'm really not sure why this is not working. I did download another module code to compare and as far as I can tell everything is the same. Any help is appreciated.
Are you using a Web Site Project or a Web Application Project? The Web Application project will allow you to compile all of your code together (the only issue here might be the the Root Namespace setting in your project, but, assuming both classes are in the same project, that shouldn't be it). If you're in the Web Site project (e.g. developing directly in the DNN solution), then your code won't get compiled in the traditional sense, but will be on-demand compiled by DNN. It only does that for code behind files associated with requested controls/pages (e.g. your View.ascx.vb) and code files in the App_Code folder. I would guess that your hangup is that your Vacation class' code file isn't in the App_Code folder.
It looks you are not using the Web Application Project for module development. Easiest thing to do is install module development templates (from dotnetnuke.codeplex.com download starterkit package of your dnn version).
If your module is too simple and you don't want to do that, OR you don't want to install the templates in your pc, you can do following:
If you are using a vs version that is not using WAP by default, get the installation from web.
create a new folder for your dnn module in DesktopModules directory in root
add a new WAP project in that folder.
remove web.config from that folder, go to properties and point build output director to your dnn site's bin directory (../../bin will work most of the time)
Once you are done with that, all your code will start working as expected.
Good thing about this is, all your .vb and .ascx.vb files will be compiled in a single dll that you can distribute as a package easily.
Hope this helps