Mis012
056b911637
handle 'SEND' intent by copying to clipboard, make Activity subclass ContextWrapper, code style fixes
2024-02-10 20:58:38 +01:00
Julian Winkler
aa56f3fb81
Add some methods needed for androidx preferences
2024-02-10 10:28:48 +01:00
Mis012
0b0cfed345
misc: fix stuff up to make SDL example work again
...
it still behaves weirdly, should probably find some
other example since I don't trust my own code.
2023-10-29 22:48:02 +01:00
Julian Winkler
b88707592a
add more stubs to make exoplayer not crash
2023-10-14 18:29:33 +02:00
Julian Winkler
2013024971
Context: implement startService() and bindService()
2023-10-14 18:29:33 +02:00
Julian Winkler
299a474aa0
move startActivity function to Context class
...
This way it can also be called on Application Context
2023-10-14 18:29:33 +02:00
Julian Winkler
f5fc993484
add APIs needed for non legacy NewPipe version
2023-10-14 18:29:33 +02:00
Nikita Travkin
d3e5c6ee70
api-impl,libandroid: Add some stubs, mostly
2023-09-19 14:44:50 +02:00
Mis012
90cb1c925a
api-impl: use liblog for android.util.Log; use Log.v for debugging prints and Log.w for stub tracing
2023-09-12 13:41:52 +02:00
Julian Winkler
b35cbea099
implement URL opening using libportal
2023-09-01 16:05:26 +02:00
Julian Winkler
97f8c2ed0f
Add some missing APIs.
...
android.widget.Filter and android.webkit.MimeTypeMap are copied from
AOSP. Other new classes are only stub implementations.
2023-09-01 16:05:26 +02:00
Julian Winkler
f968bcd7c4
add menu APIs and use Activity as Window.Callbacks implementation
2023-09-01 12:34:57 +02:00
Julian Winkler
0f7548f189
refactor Dialog implementation to support custom content
2023-08-23 14:52:56 +02:00
Julian Winkler
28cd0006bc
some fixes to make NewPipe not crash when layouting
2023-08-23 14:52:56 +02:00
Julian Winkler
960930a348
Add some stubs needed by android material library
2023-08-23 12:39:49 +02:00
Julian Winkler
faf4a3281e
add initial support for fragments
...
Fragments are not added to the View hierarchy yet. Only the lifecycle
callbacks are implemented
2023-08-22 22:30:06 +02:00
Julian Winkler
9bd5593657
Activity: make startActivityForResult() functional
2023-08-22 22:29:20 +02:00
Julian Winkler
3399c84e84
fix multi Activity support
...
jobjects have to be compared with env->IsSameObject()
and each Activity needs its own Window instance.
The GtkWindow is still shared between all Activities
2023-08-22 22:29:20 +02:00
Julian Winkler
6547e66d4f
implement android.app.AlertDialog using GtkDialog
2023-08-22 19:39:57 +02:00
Julian Winkler
82744e9e5e
add bunch of new java APIs: mostly stubs or copied from AOSP
...
Many of these classes are only needed to be subclassed by androidx
support library, which is used in many android apps
2023-08-22 15:53:09 +02:00
Mis012
4a1159f5cb
api-impl: add misc stubs
2023-08-12 13:09:33 +02:00
Mis012
c936333c74
src/main-executable: show actual package name as window title, preparation for showing app icon, re-add some missing stuff
2023-08-12 13:05:34 +02:00
Julian Winkler
18ca242096
support multiple Activities
2023-08-11 18:15:19 +02:00
Julian Winkler
4491de7f63
MessageQueue: integrate with glib main loop
...
Adds a special treatment for the main Looper to not block in java code,
but instead return to glib managed thread loop. Timeouts in the mainloop
are now handled using g_timeout_add_full().
Also defer Activity construction, so that every thing is set up properly
when the constructor runs.
2023-08-08 14:18:20 +02:00
Mis012
b4e1057dbc
api-impl/android/app/NativeActivity.java: fix crash due to Looper now not being a stub
2023-07-27 17:13:09 +02:00