Julian Winkler
34d214e9ae
AssetManager.java: fill indices array when loading TypedArray
...
This is needed for TypedArray.getIndexCount() and related functions
2023-08-22 22:30:03 +02:00
Julian Winkler
9bd5593657
Activity: make startActivityForResult() functional
2023-08-22 22:29:20 +02:00
Julian Winkler
3fd81baeaf
AssetManager: fix loading without merge
...
use cookie values to find correct StringPool
2023-08-22 22:29:03 +02:00
Julian Winkler
2b97e3bd57
AssetManager.java: iterate tableBlocks instead of merging
...
The merging process is too slow
2023-08-22 19:44:09 +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
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
4a1159f5cb
api-impl: add misc stubs
2023-08-12 13:09:33 +02:00
Mis012
a1aa38c7b8
api-impl/android/content/pm/PackageInfo: make some items not stubs
2023-08-12 13:06:10 +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
a7f8e44f30
Intent.java: add some missing methods
2023-08-11 18:15:19 +02:00
Julian Winkler
64cbb17a67
add support for loading framework-res.apk for system resources
2023-08-08 14:18:20 +02:00
Julian Winkler
4de91fdaaa
AssetManager.getResourceValue: handle references and invalid IDs
2023-08-08 14:18:20 +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
Julian Winkler
5c6b83e8f1
LayoutInflator: support <include/> tags
2023-08-08 14:18:20 +02:00
Julian Winkler
c10504c089
make BitmapDrawable functional
2023-08-08 13:35:47 +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
Mis012
f2919f0285
api-impl/android/content/IntentFilter.java: add stub
2023-06-22 15:20:37 +02:00
Mis012
9f87192a78
api-impl/android/content/res/AssetManager.java: fix lack of throwing exception on failure
...
ClassLoader.getResourceAsStream() eats the IOException, so we need
to throw a new one when it returns null. We also report the errno
we got from openAsset.
2023-06-22 15:20:37 +02:00
Mis012
0a9591c474
src/api-impl: fix up code style, mainly for code imported from AOSP
...
used the following (plus manual edits):
`clang-format --style="{BasedOnStyle: LLVM, IndentWidth: 8, UseTab: Always, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: true, ColumnLimit: 0}`
2023-06-22 11:45:46 +02:00
Julian Winkler
12e9e9788a
load assets and bitmaps directly from apk
2023-06-21 22:38:08 +02:00