I am interested in the ProfileManager api, but I am to ask some more generic question.
How to include the class for cyanogen mod?Is there any SDK/library package, or shall I download the whole android_frameworks_base project?
How to configure eclipse to use this library?Should I check android_frameworks_base as a library? Or do I have to copy the interface classes over?
Is it possible to limit this app to cyanogenmod on google play?
Thanks in advance.
Follow the steps in the page below. Althought it is for android internal APIs, it is just the same for any CM APIs, so it just works. You might need to restart your IDE after the steps before the APIs are recognised, at least for me to use IntelliJ.
https://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-2-hacking-around/
I'm fairly late to the conversation here, but as insight for anyone looking further -- CM has spun up a Platform SDK which makes things like the Profile API accessible via a statically linked sdk jar.
Details on the CM Platform SDK can be found here:
https://github.com/Cyanogenmod/cm_platform_sdk/wiki
With prebuilt jars available here (under current and future):
https://github.com/CyanogenMod/android_prebuilts_cmsdk
Related
I have read that if someone wants to deploy their own library in the custom firmware then they need to provide a sdk add-on.
what is sdk add-on and its purpose ?
Can I build my own sdk add-on ?
I have googled it but didn't find any information about it.
Please go through below link.
https://elinux.org/images/5/5c/Build_and_Distributing_SDK_Add-Ons.pdf
I am using sdk add-on, it is very helpful to add custom APIs.
Refer the above link and try to build and use your own sdk add-on.
If you face any issues while building feel free to ask.
There is an app out there called "PascalGUI" (Link to google play store) which can compile the code into APK files.
I looked through the web and emailed the developer but i cant find any way how i could do the same thing. I think he uses the official fpc sources and just passes the code but im not sure.
Is there any documentary or someone who knows how this could have been made?
Generally, FPC is cross platform, so it can target many processor architectures. Creating Android Application using FPC can be done through Android NDK, and it can also be done using Android SDK.
Michael Van Canneyt wrote in his page about creating Android using FPC and Android SDK.
I'm not sure if that App uses same approach, but this seems to be very similar.
Update (12/2017):
The easy recommend way to build Android applications (APK) using Lazarus -as for now- can be done using Laz4Android and "Lazarus Android Module Wizard".
Hope this help.
I've recently found out about Alljoyn and I would like to ask if developing Alljoyn app needs Android devices to be rooted. Also can you point a simple demo to develop apps using Alljoyn. Thanks in advance!
EDIT: Also, can I use services of different release versions? For example using version x on release, then y on the other services. Right now, the current version for Release SDK is 15.09.00a and other services are lower. Is it okay to use them that way?
You don't need root access in order to develop Android applications that use Alljoyn library.
The samples are located in the following folder (SDK Android 15.09a):
core/alljoyn-15.09.00a-rel/java/samples
Not sure about using different version, for instance Core SDK 15.09 and Lighting SDK 15.04
I am working on an application where I need to integrate the Skype Java APIs inside an android application.
Could some one provide any pointers?
Thanks.
You have to include the library (the .jar file) into the Build Path of the project and to put the libraries in the project folder. This article could be quite useful.
SkypeKit is not a pure Java implementation. As I understand it is natively distributed for various processor architectures on linux (as well as windows and osx) It requires you to link to native libraries via JNI. That requires you to first download the Android NDK - http://developer.android.com/sdk/ndk/index.html Beyond that bit of information I can not help as I do not have access to SkypeKit myself.
Are the Linux capabilities (libcap.so) library available for use with Android? If not, how can I compile it?
I would like to use the capabilities-related API in sys/capabilities.h, which is included with the NDK. But when I try to call functions like cap_get_proc(), I get "undefined reference" error.
I would imagine that using this api would go way, way beyond the contract in the Android framework. It might work on some devices, but not on others.
In fact, there's no guarantee, afaik, that Android even runs under Linux. For example, the new Blackberry devices run Blackberry's proprietary OS, but still run Android apps.
Finally, the version of Linux that most Android devices run is a highly-stripped-down version. They didn't include any features that the Android API doesn't need. If Android doesn't need libcap, then it's probably not included.
Perhaps you could tell us exactly what it is you're trying to do.
Here is the link - https://github.com/scopichmu/libcap-for-Android. This is original libcap (was cloned from https://kernel.googlesource.com/pub/scm/linux/kernel/git/morgan/libcap) with supporting of android ndk build. You can build now libcap.so, setcap and getcap for android.
Lots of discussion out there on this topic... google around a bit:
http://permalink.gmane.org/gmane.comp.handhelds.android.ndk/4075
Here someone compiled it and described:
http://blog.umitproject.org/2011/05/libpcap-for-android.html