Can bacnet4j work in android - android

I want to make a BACnet client in an android tablet.
Is it possible to use BACnet4J in Android? If yes, is there a different jar file for Android?

Yes, you can use the same Jar file. I am using Backnet4j 3.2.2 for my application. It is good library.

Related

How can I write my own library for android

I want to understand how to write a dynamic library .so for android? This is not the usual linux library, is it? And I want to write my own. For example instead of already lying there. Can anyone help me with this?
You need to use the Android NDK to write native libraries.

Is it possible to compile a Xamarin project as a library for iOS and Android?

I need to create an API library for Android and iOS. I have experience working with Android projects, but zero experties in iOS. I was wondering if I could create a Project library in Xamarin that compiles as a JAR for Android and as an... I-don't-know-which-type for iOS.
No, that isn't possible. Depending on what you are trying to accomplish there may be alternatives. If you are trying to make a library that can be used by others you could make it a Xamarin component - there is a component store you could put it on if you want it to be generally available, otherwise you can use any normal means of source or object distribution.
If you need to interact with a native app/library then you could make the C# code the "owner" of it and have it call into the native code. This works for both IOs and Android (and is used to work with e.g the play services from google).
No, it is unfortunately not possible to do that.
It seems to me that what you need is a Portable Class Library also known as PCL. It allows you to create a project which can be referenced by all Xamarin supported platforms (such as iOs and Android). There are obviously limitations to the approach like not being able to reference platform specific libraries but in your case (of writing an API) it should suffice.
You can read more in this link
Good Luck!

Localization for Android Library application

I am developing the library application, which is reused in many android applications. Now, I need to add the localization capability to my android library application.
http://developer.android.com/guide/topics/resources/localization.html
In the above link, localization deals with the resources. If I am using the resources in the library project tends to have the same resources in the referenced android application also. Is there any other way to achieve the localization in android library project.?
Yes you can add localization into your library project like a Standart Android project:
values-en,values-ru,values-uk and etc.
Yes you just need to provide alternative sources as mentioned in Providing alternative resources
So say for string file you can provider string files for different languages and device will choose which file to use according to device configuration.

Share Java logic between Android and Blackberry projects?

Both Android and Blackberry apps are made in Java. Does it mean that I can code some logic interdependent to Android SDK and use it when porting the app to Blackberry?
Does anyone has experience in this field?
Sure you can do it. The logic would not be different but the implementation of the logic depend upon the Platform you are choosing. In Blackberry it uses java-me but there are some limitation you can not use in Blackberry like there is no ArrayList or HashMap in Blackberry but its available in Android so you have to use some alternative of ArrayList or HashMap while porting for the Blackberry you can use Vector instead of that. There is also some limitation of using java.lang.utils package in Blackberry. May be this would be helpful for you.
I'm working on an application that runs on both Android and Blackberry.
I work only on the Android client but I know that only few things can be shared. Of course only the classes that do not have to do with the framework. Another problem is that, Blackberry uses only J2ME that means that for example you can't even use semaphore or other things like that.
In my application all the protocol level is shared though.
Sure you can. Create a plain Java project and make sure you only use classes available in Android and Blackberry. Add the project dependency to your Android and Blackberry project. Alternatively, you can export a jar file and link your projects to it.

how to use ancal in android appiication?

i have to make an android application with a calender control in it? i want to use ancal for this purpose.
How do i use ancal within my application. There are .apk's available for android of Ancal, should i download them? But if i do download them then how do i integrate that apk with my android application.
If not the above then what is the other way of using ancal in my application.
Thank you.
There is no way to 'integrate' elements from some .apk into another. However, ancal is open source so you could just grab the source and integrate it into your project.
i think you want these but i really don't know if it support integration i would sugest you ask them.
http://vetch.magot.pl/pages/download.html
Hope it helped

Categories

Resources