I've found a java awt class that called TextAttribute in android, see the link below:
http://developer.android.com/reference/java/awt/font/TextAttribute.html
but I don't know how it works, does anyone knows?
Thanks for your answers!
So, no one answered my question... :(
Actually, I've found that there is no use of this class for android development, I've found no class refer it, it's probably a legacy of java AWT, I guess.
Related
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
According to this answer, LingPipe is a good library to use in Java. I want to know if it can be used for android too. If possible, a link to sample code will be helpful. Mainly I am looking for offline sentiment analysis.
If there are better alternatives, please suggest.
Thank you!
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 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
Does anybody have and want to share layout.xml file and working Activity class in which have example of using OpenGL in android ?
This is the best one I know of...
http://blog.jayway.com/2009/12/03/opengl-es-tutorial-for-android-part-i/
http://developer.android.com/resources/articles/glsurfaceview.html
Sorry, no layout.xml (but how hard can it be to find as this was the first result in my google search?)
I find this website to be immensely useful in learning OpenGL as a whole, along with how to use it in Android: http://insanitydesign.com/wp/projects/nehe-android-ports/.
The original C++ tutorials (ported to many other languages also) are available here for reference.