summaryrefslogtreecommitdiffstats
path: root/native/include/android/native_activity.h
Commit message (Collapse)AuthorAgeFilesLines
* Add API to get path to OBBs.Dianne Hackborn2011-01-161-0/+7
| | | | | | | | | Also hide the bitmap thumbnail stuff, we can't support it in its current form. And fix some bugs with propagating paths to native code. Yikes! Change-Id: I13ab37ddbdba5c073489cba5eab035117d3c1574
* Fix issue #3126018: No way to specify NativeActivity's native methodDianne Hackborn2010-10-241-2/+30
| | | | Change-Id: I59de6a543e7f7f45d963a905829a3f56f32bf8cf
* Fix issue #3117918: No way to finish a native activityDianne Hackborn2010-10-211-0/+6
| | | | Change-Id: Ic53e712f7ab5412d72a31b96ecba252344b91644
* More native work.Dianne Hackborn2010-08-111-1/+9
| | | | | | | Implement save/restore of state, and add native APIs for configuration information. Change-Id: I2a3ddc2ba605db58d7c8b2b31b9215fb323f90b5
* Add native C APIs for working with the Asset ManagerChristopher Tate2010-07-151-0/+7
| | | | Change-Id: I493b142c4b35e5cc1a1e85283bb5dfb306a6d261
* IME events are now dispatched to native applications.Dianne Hackborn2010-07-131-0/+42
| | | | | | | | | | | | | | | And also: - APIs to show and hide the IME, and control its interaction with the app. - APIs to tell the app when its window resizes and needs to be redrawn. - API to tell the app the content rectangle of its window (to layout around the IME or status bar). There is still a problem with IME interaction -- we need a way for the app to deliver events to the IME before it handles them, so that for example the back key will close the IME instead of finishing the app. Change-Id: I37b75fc2ec533750ef36ca3aedd2f0cc0b5813cd
* Add ANativeWindow API for directly drawing to the surface bits.Dianne Hackborn2010-07-091-0/+5
| | | | | | | | | | | Also other cleanup and fixes: - We now properly set the default window format to 565. - New APIs to set the window format and flags from native code. - Tweaked glue for simpler handling of the "destroy" message. - Um, other stuff. Change-Id: Id7790a21a2fa9a19b91854d225324a7c1e7c6ade
* Add new native Looper API.Dianne Hackborn2010-07-021-0/+15
| | | | | | | | | | | This allows us to avoid exposing the file descriptor of the event queue; instead, you attach an event queue to a looper. This will also should allow native apps to be written without the need for a separate thread, by attaching the event queue to the main thread's looper and scheduling their own messages there. Change-Id: I38489282635895ae2cbfacb88599c1b1cad9b239
* Get to the point of being able to do native drawing.Dianne Hackborn2010-07-011-8/+0
| | | | | | A little cleanup. Change-Id: I37ef0557abf330d91d6fe47e81d062206b3bc346
* Make real API for native code to get its window.Dianne Hackborn2010-07-011-18/+13
| | | | | | | Added implementation to use ANativeWindow and provide it to a NativeActivity. Change-Id: I890d71b6e15d4af71e6cf81b327961d7061ec1c2
* Update native activity & event APIs to follow correct conventions.Dianne Hackborn2010-06-291-25/+32
| | | | Change-Id: Ie64fb3a9c68bc9c117fa5621b75d1f609e304e0e
* First stab at attaching native event dispatching.Dianne Hackborn2010-06-221-0/+15
| | | | | | | | | | | | Provides the basic infrastructure for a NativeActivity's native code to get an object representing its event stream that can be used to read input events. Still work to do, probably some API changes, and reasonable default key handling (so that for example back will still work). Change-Id: I6db891bc35dc9683181d7708eaed552b955a077e
* Update NativeActivity to allow direct surface access.Dianne Hackborn2010-05-181-1/+114
| | | | | | No actual native API for using a surface, but it's a step. Change-Id: I627f26b705abc7a05edf9117411abfacf0fae64a
* Add new API to take over a window's Surface.Dianne Hackborn2010-05-181-5/+0
| | | | Change-Id: Iad6245faadc95f19ea63c8e229a1c02e9188f69e
* First pass at NativeActivity.Dianne Hackborn2010-05-051-0/+68
This is a rough sketch of the new pure-native API, which you can use through a NativeActivity in your manifest (no Java code in the .apk needed!). Intentionally no docs yet, the API is still being seriously messed with. But it works. Change-Id: I0e916d58a0d159ecaf3689e41834eb8dc681c0c0