LNReader-Android icon indicating copy to clipboard operation
LNReader-Android copied to clipboard

android controls (back, home, apps) hiding

Open yutsuku opened this issue 8 years ago • 0 comments
trafficstars

Bakareader EX version: 1.1.46 (201611010) - from Google play store

Testing devices:

  1. [affected] Sony Xperia M2 (android 4.4.4)
  2. [NOT affected] Lenovo K6 (android 6.0.1)

Testing novels / chapters:

  1. BlazBlue / Phase 0 / Prologue
  2. High School DxD / Volume 17 - Valkyrie of the Teacher Training / Life.0

Bug description:

Hiding of navigating bar (back, home, apps) is not handled correctly on some (1) versions of Android and/or phones. Both vertical and horizontal views are affected. Said bug results in showing up unnecessary "background" bar for Android navigation controls at the bottom of the screen (in full screen) or above the Android buttons (with app buttons visible) in chapter view only.

If you try to access android controls by swiping from bottom, controls will pop at the place of the "background" bar. But only if you're in full screen mode in chapter.

Images describing the issue:

http://u.cubeupload.com/moh/BlazBluefullscreen.png http://u.cubeupload.com/moh/DxDfullscreen.png http://u.cubeupload.com/moh/DxDfullscreenhorizon.png http://u.cubeupload.com/moh/DxDfullscreenaftersw.png

yutsuku avatar Aug 04 '17 20:08 yutsuku

@olli3

I was also stumbling upon this, tried a couple of things but then gave up as the module seemed to not give any data out, not even errors or something when I tried to debug in android-monitor.

Not to disrespect this module or @jamesfalkner at all, but just to help, here is what I did to get Beacons working on latest Ti 8.0.1 --> (just finished this 'whitsundays debugging session'):

Hence replaced the 'liferay-android-beacons' with an 'altbeacon version' from https://github.com/Sensimity/android-altbeacon-module/ (original by: com.drtech.altbeacon)

git cloned that one and basically vanilla rebuilt the module with my current 8.0.1.GA. appc run -p android --build-only Ti Cli then asked:

Detected Titanium 8.0.1 that requires API-level 4, but the module currently only supports 6.0.0.GA and API-level 3.
Do you want to migrate your module now? (yes|no) [yes]: yes

and all worked flawlessly after that on device right now.

Worked out of the box following the samples given, and from the Sensity github I even found a commit, which has a "servicebound" event, so don't need to use the "setInterval" to monitor whether iBeaconService has become available.

I was not aware, but now I am, that AltBeacon supports multiple "beaconLayouts" and therefore also the Apple's iBeacon format, (as you can see in the Altbeacon Layout) example: AltbeaconModule.addBeaconLayout("m:2-3=0215,i:4-19,i:20-21,i:22-23,p:24-24"); (which is the layout format for apple ibeacon 👍 )

ok, hope it works for you too.

roelandp avatar Jun 09 '19 20:06 roelandp

sounds great...

Worked out of the box following the samples given, and from the Sensity github I even found a commit, which has a "servicebound" event, so don't need to use the "setInterval" to monitor whether iBeaconService has become available.

  1. do i need to add this too ?
  2. does this module require location -> always or would while in app work ?

i cloned the module, then rebuild as you said 👍

then took the module from the dist/com.drtech.altbeacon-android-3.0.0.zip unzipped this and dragged to usual place.

included in tiapp.xml

then ran the app, crashes on load...

-- Start application log ----------------------------------------------------- [INFO] TiApplication: (main) [0,0] checkpoint, app created. [WARN] W/ : Unable to open '/system/framework/WfdCommon.jar': No such file or directory [WARN] art: Failed to open zip archive '/system/framework/WfdCommon.jar': I/O Error [WARN] W/ : Unable to open '/system/framework/com.qti.location.sdk.jar': No such file or directory [WARN] art: Failed to open zip archive '/system/framework/com.qti.location.sdk.jar': I/O Error [INFO] MultiDex: VM with version 2.1.0 has multidex support [INFO] MultiDex: Installing application [INFO] MultiDex: VM has multidex support, MultiDex support library is disabled. [INFO] art: Starting a blocking GC HeapTrim

any chance you could share your built module ?

olli3 avatar Jun 10 '19 07:06 olli3

i have the module here --> https://github.com/roelandp/catchall/commit/0d3344874486572d7bce21fdc48175634dccf030

what android are you running on? Did you appc ti clean to clean your dir prior to building & deploying? Maybe you are missing some NDK shizzle idk.

Let me know if you have success with my module! I'm running (and building) on 8.0.1.GA fyi.

roelandp avatar Jun 10 '19 08:06 roelandp

do you have an email address i can ping you on ?

olli3 avatar Jun 10 '19 09:06 olli3

@roelandp Thanks for the info on altbeacon! I haven't had time to maintain this project for several years, and am surprised it still even compiles :) (I designed it for a previous job in which I am no longer in, and an app which no longer exists!).

jamesfalkner avatar Jun 11 '19 13:06 jamesfalkner