Mis012
1b8480a7d0
android-impl: fix regressions that made angry birds not work anymore
2023-11-23 15:29:03 +01:00
Julian Winkler
1aa1ee64c1
Context: handle getTargetSdkVersion() returning null
2023-11-04 23:32:29 +01:00
Julian Winkler
0a8b8a3874
use AndroidLayout class also in View implementation
...
drop the onMeasure hack from WrapperWidget
2023-11-02 08:20:19 +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
Mis012
4a0755c6e0
api-impl{-jni}: make view.onTouchEvent work, misc stuff to make input work for Unity games
...
onTouchEvent was previously incorrectly handled in GLSurfaceView; move it
to View so that it works properly with any of it's descendants.
This is done by reusing the existing setOnTouchListener implementation
and changing it to use GtkEventControllerLegacy which provides motion
events.
Technically some of the code is in WrapperWidget.c since every widget
calls wrapper_widget_set_jobject and we already have related code
there.
2023-10-17 21:33:59 +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
55a1ff2cc5
create ContentProvider from AndroidManifest.xml
...
This is required for androidx startup library.
Only onCreate method is called for now.
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
Mis012
a32961891d
api-impl/android/content/Context: add getExternalFilesDirs
2023-09-19 11:12:15 +02:00
Mis012
210cda566a
api-impl/android/content/Context: make getObbDir consistent with apps' hardcoded assumptions about the obb dir location
2023-09-18 13:54:12 +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
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
2e0c18d755
add complete java side of sqlite implementation
...
Mostly taken from https://www.sqlite.org/android which is forked from
AOSPs implementation
2023-08-27 11:17:33 +02:00
Julian Winkler
960930a348
Add some stubs needed by android material library
2023-08-23 12:39:49 +02:00
Julian Winkler
83cc2e5991
load the default Application theme on startup
2023-08-22 22:30:06 +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
Julian Winkler
a8e39cd613
get Application class from AndroidManifest.xml and call onCreate()
2023-08-22 15:53:09 +02:00
Julian Winkler
c60e97f13f
implement obtainStyledAttributes() functions properly
2023-08-22 15:51:13 +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
77459e34e0
add AssetManager.getArrayIntResource and Context.getString
2023-08-08 14:18:20 +02:00
Julian Winkler
696e0ce714
implement LocationManager and orientation sensor using libportal
2023-08-08 14:18:20 +02:00
Mis012
ffb2855a05
api-impl: add misc stuff needed by Teeter
...
note that Teeter still needs more stuff before it will work
2023-07-25 14:29:50 +02:00
Mis012
08998b0076
make Looper, Handler, and MessageQueue work properly
...
this for example makes Unity apps not steal the main thread,
hanging Gtk.
2023-07-25 14:27:21 +02:00
Mis012
c25342c8d9
api-impl/android/content/Context.java: implement getExternalCacheDir()
...
just alias to getCacheDir()
2023-06-22 15:20:37 +02:00