I've been doing a bunch of ANT+ development for Android. The documentation and class names refer to "PCC" all over. Any idea what PCC stands for? https://www.thisisant.com/APIassets/Android_ANT_plus_plugins_API/com/dsi/ant/plugins/antplus/pccbase/AntPluginPcc.html
In the context of thisisant.com's Android ANT+ implementation PCC informally stands for Plugin Communicator Class. I heard from someone who spoke to someone who has worked on the code and this is the answer he gave, though he mentioned its not an official/formal definition. In reality in this context there really isn't an official definition for Pcc.
It stands for Parity Check Code
Related
PayPal recently released a major revision to their Android SDK, which stripped a lot of the constants out of PaymentActivity. The documentation documentation has given a new version of onBuyPressed, but still references RESULT_PAYMENT_INVALID in its implementation of onActivityResult. Does anyone know the correct way to listen for a failed payment? Is there another constant that has taken the place of RESULT_PAYMENT_INVALID? Thanks.
#Tad - Thanks for pointing this out. It seems that the documentation did not receive all the required updates. Hopefully, you found the new naming in the SampleApp code. We will update the documentation to match. Sorry for any difficulties this caused.
I have an external library that relies on the java.awt.Image package. However, the Android library does not contain it. Does anybody know how to add it to Android?
Thanks!
The Java AWT classes contain native code, so unless someone ports that native code to Android, you are out of luck. And, they won't port it, because as it was pointed out above, Android has its own graphics libraries (android.graphics).
Use JavaCV. http://code.google.com/p/javacv/
Its allready precompiled for Android 2.2 : http://code.google.com/p/javacv/downloads/list
This answer is to justify Hitesh answer after seeing up votes (which misleads). If am wrong, please correct me.
Well, I have also been enthusiast in using few core concepts of Java like Swings and AWT libraries in Android.
Recently I wanted to use java.awt.Color class because it is much better than android.graphics.Color. So done a small research by reading few threads and concluded as 'No we cannot import'. By seeing Hitesh answer I thought I failed my research and found very easiest solution for my problem. Followed the steps for a sample and run my code. Alas!!!
NoClassDefFoundError exception has thrown.
Once again made a small research for concluding Jeffrey (accepted) answer. I found conclusion here. The comment above the method loadLibraries() explains everything. This method has been called in Color class (line 279).
https://stackoverflow.com/a/33210293/5418475
The AWT package is not supported in Android, you need to change your implementation to use the Android classes.
See these similar questions:
Porting AWT graphics code to Android
How to add java AWT image package in Android
Using AWT with Android
I would like to know if SNMP is supported in Android(2.1)?
If it is not available, is it possible to port the snmp source for Android?(some pointers plz..)
If it is available, how can I test the presence of it in my device.
All pointers are welcomed.
Thanks,
Sen
SNMP4J 2.x can be directly used on Android without changing its sources. The logging can be set to a simple console logger by calling
static {
LogFactory.setLogFactory(new ConsoleLogFactory());
ConsoleLogAdapter.setDebugEnabled(true);
}
in your root activity. Of course, you can implement a Android Logging Adapter too and register it as shown above.
I know this is a really old question, but I was doing exactly what you're asking. The short answer is no, by default, SNMP is not supported on android 2.1. Because it isn't available, what I wound up doing was grabbing snmp4j's source code, and sticking it in android and making my own library. There are libraries (snmp4android comes to mind) but I found that it lacked certain classes I needed and did not have the whole snmp4j.agent branch.
There are a few dependencies and a few libraries that android is missing but most of them pertain to the log4j class.
To remedy that, just convert/make the switch to something like slf4j, which is a small logging library that you can include with your application.
I hope that answers some of your initial questions, and I hope this is still relevant even if it is an old question.
Are there any decent Android NDK examples and tutorials out there? Where can I find them? If there are any geared more specifically towards game engine development (as I am looking to convert mine over to android) that would be most helpful.
There was a blog post a while about android game programming on the official blog. Also Quake was ported to Android using a mix of Java and Native code and has been open sourced. Not sure how good it is from a tutorial standpoint but looking at real code always helps me more than following a basic tutorial.
check out : http://www.mobisoftinfotech.com/blog/tag/android-ndk-tutorial/
Here is one complete documentation.
http://java.sun.com/docs/books/jni/html/jniTOC.html
I was wondering if there a class diagram available for Android API on the internet? I think it help you to learn and visualize the system in your head.
Here is a great categorized list of classes in the Android API in both PDF and Visio formats, from Troodon Software: http://gyurigrell.com/2011/1/17/great-android-class-diagram-poster
While it's not a class diagram, it is still quite useful. Maybe I'll get around to creating a proper hierarchical class diagram at some point...
This diagram helped me: http://www.adakoda.com/adakoda/2010/01/20/ASPH_AW_REV1.pdf
It may be kinda old, but you could find a Android classes poster here:
http://gyurigrell.com/2011/01/great-android-class-diagram-poster/
Could you not check out the source code ? Any decent IDE can create a class diagram from the source code. That way you will have both the code and the underlying design.
Of course android is available in Git
https://android.googlesource.com