-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android - No text appearing #10
Comments
Sorry for the inconvenience. I intended to commit only ios related code but mistakenly committed android code as well on which I'm currently working. Please use older version for the time being. |
Just pushed a newer version with glyph cache support. Hope it solves your problems. |
Sorry for late reply, now I keep getting the following error, 08-18 23:23:07.445: E/AndroidRuntime(807): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load SheenFigureJNI: findLibrary returned null Any ideas? Been trying to figure it out for a few hours now (This is with the new Demo app you recently pushed out) |
It is possible that jni is not being compiled. |
While compiling the project, look at console window to see if it tells any errors in the native code. |
no errors in console but the console doesn't even show any of the native code compiling, like how it usually should do.. |
Maybe your NDK is not being triggered. Try changing the working directory from workspace-project to absolute path. |
NDK seems to run when I just start Eclipse, but not when I build/run the app. When Eclipse starts NDK greets me with this: /SSText.c:235:2: warning: passing argument 7 of 'SFTextShowString' from incompatible pointer type [enabled by default] |
Are you sure you are using latest files? SSText.c is only 183 lines long then how can there be an error at 235 line?
If you still encounter issues, use this prebuild native library: |
Here is the link: https://www.dropbox.com/s/dqd5xzhtlr2k0fz/SheenFigureNative.zip |
YES! Finally it works, turns out I was missing step 4 (Building the project), Thanks a lot. One final (hopefully) question - does SheenFigure at the moment only support one widget per layout? I tried having multiple instances of SheenFigure TextView widget within the same layout and got some NullPointer exception. Thanks again |
Apologies, ignore the above, I had forgot to set the font on each TextView hence the nullpointer error. Seems to work fine! |
I've updated the SheenFigure library, and now the text doesn't seem to appear at all?
The text was updated successfully, but these errors were encountered: