-
Notifications
You must be signed in to change notification settings - Fork 0
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
Can you show a webview in the floating window #1
Comments
Yes the floating window is basically just a layout/container that you add
whatever you wish to add inside of it.
…On Fri, Feb 23, 2024, 4:15 PM mph070770 ***@***.***> wrote:
Hi, thanks for the code. I was wondering if it's possible to show a
webview in the floating window i.e. specify the URL of a webpage and have
the webpage loaded in the floating window, that can then be dragged around
the screen?
Thanks!
—
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4F7SJ3L563K2TI3O7JJZEDYVCI6TAVCNFSM6AAAAABDWWWHQWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2TCMBWHEYDAMY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Wow - amazingly quick reply, thank you! I'll give it a go. I'm new to Android/Kotlin so any tips would be appreciated. Thanks again. |
No problem anytime you need my assistance just email I'll reply.
It definitely does need an update, and haven't been updating libraries and
ads more libraries that simplify development due to the expense of
purchasing Internet.
But would be best if you jumped into kotlin compose which is much more
better.
And I have a couple of libraries at hand for different aspects.
Will be soon adding libraries for different dev cases in web android, iOS ,
currently finalizing with developing the official website where I'll make a
tutorial book on a case by case basis of making applications not examples
but actually coding tricks some insights and knowledge etc .
https://pherus.vercel.app is the website still under development but keep
checking it will have a what I'll call a tutor guide book with designs etc
ands reference the browser source code will guide you on the task your
trying to achieve in the some git account.
…On Fri, Feb 23, 2024, 4:38 PM mph070770 ***@***.***> wrote:
Wow - amazingly quick reply, thank you! I'll give it a go. I'm new to
Android/Kotlin so any tips would be appreciated. Thanks again.
—
Reply to this email directly, view it on GitHub
<#1 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4F7SJZZDKCWSQRAWQQCLU3YVCLVFAVCNFSM6AAAAABDWWWHQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRRGM2DIMBYG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Good luck with your plans - it sounds exciting for you! There's a few issues with the code. Out of the box, it crashes until you manually enable "display over other apps" in settings. It would be good that the app directs the user there automatically. Once that option is enabled, I'm hitting another crash:
Not sure what is wrong there, at the moment. |
It been some time since the code was updated but i'll be fixing those
issues when am rewriting the code
…On Fri, Feb 23, 2024 at 10:45 PM mph070770 ***@***.***> wrote:
Good luck with your plans - it sounds exciting for you!
There's a few issues with the code. Out of the box, it crashes until you
manually enable "display over other apps" in settings. It would be good
that the app directs the user there automatically.
Once that option is enabled, I'm hitting another crash:
FATAL EXCEPTION: main
Process: kor.app, PID: 13797
java.lang.RuntimeException: Unable to destroy activity {kor.app/kor.app.MainActivity}: java.lang.IllegalArgumentException: View=kor.app.MyLinearLayout{1c74902 V.E...... ......I. 0,0-0,0} not attached to window manager
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4383)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4401)
at android.app.ActivityThread.-wrap5(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1649)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.IllegalArgumentException: View=kor.app.MyLinearLayout{1c74902 V.E...... ......I. 0,0-0,0} not attached to window manager
at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:485)
at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:394)
at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:124)
at kor.app.MainActivity.onDestroy(MainActivity.kt:216)
at android.app.Activity.performDestroy(Activity.java:7218)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1249)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4370)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4401)
at android.app.ActivityThread.-wrap5(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1649)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Not sure what is wrong there, at the moment.
—
Reply to this email directly, view it on GitHub
<#1 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4F7SJZ24GGNL4IGQE7RPFLYVDWT7AVCNFSM6AAAAABDWWWHQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRRHA4TIMZZGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi, thanks for the code. I was wondering if it's possible to show a webview in the floating window i.e. specify the URL of a webpage and have the webpage loaded in the floating window, that can then be dragged around the screen?
Thanks!
The text was updated successfully, but these errors were encountered: