-
Notifications
You must be signed in to change notification settings - Fork 264
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
Demo not working in landscape mode #16
Comments
Juat to add i tested this on samsing s8 version 7 nougat. |
@eschao Sir can you please help me.. |
Please post the exception and call stack so that I can know what happened |
Hi Eschao, thanks for the reply. I am unable to get the exception for your demo on Play Store, but the demo is not working on API Nougat for S8 in landscape mode. Can you please check the same demo from your emulator in landscape mode. The log I got from my dummy app in Landscape mode is as below. Not sure if this will be helpful. But the issue is same as one previously closed issue with Shader where Layout gets black in Emulator 08-11 00:16:27.316 1421-2103/? E/LOWI-7.8.0.0.a: [LOWIUtils] channelBandToFreq: Invalid band,channel = 1,0 |
08-11 00:21:51.695 8732-8739/kali.esoft.photobook A/art: art/runtime/jdwp/jdwp_request.cc:48] Check failed: p_ == end_ read too few bytes: 1
08-11 00:21:51.813 8732-8739/kali.esoft.photobook A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 8739 (JDWP)
08-11 00:21:51.834 727-727/? E/audit: type=1400 audit(1502425311.826:51416): avc: denied { search } for pid=18466 comm="debuggerd64" name="com.google.android.gms" dev="dm-1" ino=328018 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0 SEPF_SECMOBILE_7.0_0009 audit_filtered
08-11 00:21:53.508 727-727/? E/audit: type=1701 audit(1502425313.496:51419): auid=4294967295 uid=10278 gid=10278 ses=4294967295 subj=u:r:untrusted_app:s0:c512,c768 pid=8739 comm="JDWP" exe="/system/bin/app_process64" sig=6
08-11 00:21:53.528 1245-18499/? W/ActivityManager: Force finishing activity kali.esoft.photobook/.activities.FlipActivity |
Please guide me Sir |
Seems crashed in framework. I can't give any suggestion now. Can you reproduce it on android emulator? If you can, please tell me the android version and configuration of emulator. Thanks! |
09-08 21:12:23.318 13056-13631/? E/BtGatt.ScanManager: default value of curScanSetting 0 is choosen |
Hi Sir, |
This still does not work on my s8 |
In landscape mode |
This happened in my device (Galaxy tab S3 with Android 7.0), but goes fine in the other device(HUAWEI Tablet with Android 5.0) in landscape. It goes black and ANR occured. Here's trace in MAIN I got DALVIK THREADS (32): "main" prio=5 tid=1 Native |
Hello, I know this is a bit old but i know what the problem is. Hope that works :) |
Thanks a lot sir for posting this out in detail. Can you please post an example how you did it? |
Hi Sir, Can you please provide the example here.. I am unable to fix this... |
Hello, Sorry for the Really late reply. I'm not at home right now. When I get home I will post the example. |
Thanks a lot. That would be a great help. Regards Arindam
…On Fri, Sep 14, 2018, 12:57 PM Javi Hurtado ***@***.***> wrote:
Hello,
Sorry for the Really late reply. I'm not at home right now. When I get
home I will post the example.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFMaSbePrOdxDQeTOE8tZawZsHGYOzTdks5ua-ADgaJpZM4On9gQ>
.
|
So first of all what i did is creating a layout file with just a RelativeLayout that takes up all the screen:
Then in the MainActivity file i created a method to check whether the device the app is running on is a tablet or not (because as far as i know, all tablets in the market right now do follow screen ratio standards):
And then just add this code in the activity you are trying to display the PageFlip:
I used a method in there to convert 750 dp to pixels because 750 density pixels will not be the same amount of pixels in every screen. The amount of 750 dp fit well the screen in all screens for my personal project but if it does not for you then feel free to change that number. You can google "dp2px java android" to find the implementation of that method because i don't have it here right now. It's in my office computer. Hope that helps. This is exactly the way i fixed this issue on large screens. If you have any question, please ask me :) |
Many many thanks. I would try it and report. Thanks again. |
Wow Wow Wow... You are a genius.. Thanks a ton for fixing this.. its now working.. thought the pics look a bit stretched... but i think I can fix that.. Thanks again.. |
I'm glad it worked :) I don't think I'm a genius but I like programming haha |
Thanks again Sir. |
I am using this library in a sample app and found that the page flip doeant work in landscape mode. I tried the semo app on play store and found that portrait mode works but landscape mode shows black screen as earlier reported. I am stuck here. I wish i could fix it. Can someone please help me. Many many thanks in advance.
The text was updated successfully, but these errors were encountered: