Polybios in android
Polybios in android
Is it work on android?
If I write @REQUIRE "polybios"
App is not start
Plugin for armeabi-v7a
Android 4.0.4
If I write @REQUIRE "polybios"
App is not start
Plugin for armeabi-v7a
Android 4.0.4
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Polybios in android
Please post LogCat output of what Hollywood says when it tries to load the plugin.
Re: Polybios in android
How I can do it on android?
When I try to start applet I only see black screen.
When I try to start applet I only see black screen.
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Polybios in android
1. Connect your Android device to your PC
2. Start LogCat from a console like this: "adb logcat"
3. Start Hollywood on the Android device
4. Watch the LogCat output. Hollywood will log something like this:
Post this output here. Actually, I only need what it says in the "Loading plugin polybios.hwp" line. It should log an error.
2. Start LogCat from a console like this: "adb logcat"
3. Start Hollywood on the Android device
4. Watch the LogCat output. Hollywood will log something like this:
Code: Select all
Hollywood 7.1 [Android] [64-bit] (c) by Andreas Falkenhahn
The Cross-Platform Multimedia Application Layer
Loading plugin polybios.hwp...
Preparing display...done
And Action!
Re: Polybios in android
I/LogTag (27369): Loading plugin polybios.hwp...
I/LogTag (27369): failed
I/LogTag (27369): (Reason: Cannot load plugin: Cannot load library: reloc_library[1285]: 2037 cannot locate 'rand'...
I/LogTag (27369): )
I/LogTag (27369): failed
I/LogTag (27369): (Reason: Cannot load plugin: Cannot load library: reloc_library[1285]: 2037 cannot locate 'rand'...
I/LogTag (27369): )
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Polybios in android
Ok, looks like Polybios requires at least Android 5.0. I forgot to mention this in the documentation. Unfortunately, supporting earlier Android versions isn't possible because they miss some functions required by Polybios.
Re: Polybios in android
it is very sad
How I can check android version and preload Polybios if they>5?
How I can check android version and preload Polybios if they>5?
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Polybios in android
You can just load Polybios with LoadPlugin() and if that fails you know you have Android < 5
Re: Polybios in android
BTW. I just came up with a problem when I try to use LoadPlugin instead of @REQUIRE on MorphOS.
If I do:
I get an error: Constant not found!
So it doesn't recognize the #HPDF_COMP_ALL constant when I've loaded the plugin with the LoadPlugin function, but it does work if I change LoadPlugin to @REQUIRE.... what's wrong here? I'd like to load the plugin only if needed in this case...
If I do:
Code: Select all
LoadPlugin("polybios")
doc = pdf.CreateDocument()
doc:SetCompressionMode(#HPDF_COMP_ALL)
So it doesn't recognize the #HPDF_COMP_ALL constant when I've loaded the plugin with the LoadPlugin function, but it does work if I change LoadPlugin to @REQUIRE.... what's wrong here? I'd like to load the plugin only if needed in this case...
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Polybios in android
Well, constants are evaluated at preprocessor level and at that time #HPDF_COMP_ALL obviously isn't there because the plugin is loaded at runtime. So using constants made available by plugins can be a little tricky, but the following should work:jPV wrote: ↑Sat Jun 23, 2018 2:25 pm BTW. I just came up with a problem when I try to use LoadPlugin instead of @REQUIRE on MorphOS.
If I do:I get an error: Constant not found!Code: Select all
LoadPlugin("polybios") doc = pdf.CreateDocument() doc:SetCompressionMode(#HPDF_COMP_ALL)
So it doesn't recognize the #HPDF_COMP_ALL constant when I've loaded the plugin with the LoadPlugin function, but it does work if I change LoadPlugin to @REQUIRE.... what's wrong here? I'd like to load the plugin only if needed in this case...
Code: Select all
doc:SetCompressionMode(GetConstant("#HPDF_COMP_ALL"))