From: Alexis Laferrière Date: Fri, 13 May 2016 16:26:24 +0000 (-0400) Subject: lib/android: update README with info on the 2 core implementations X-Git-Url: http://nitlanguage.org lib/android: update README with info on the 2 core implementations Signed-off-by: Alexis Laferrière --- diff --git a/lib/android/README.md b/lib/android/README.md index 47e0cec..b6bcf7e 100644 --- a/lib/android/README.md +++ b/lib/android/README.md @@ -64,7 +64,16 @@ integer as argument. They are applied in the Android manifest as only be used by low-level implementations of Nit on Android. Its usefulness will be extended in the future to customize user applications. -## Project entry points +## Android implementation + +There is two core implementation for Nit apps on Android. +`android::nit_activity` is used by apps with standard windows and native UI controls. +`android::game` is used by, well, games and the game frameworks `mnit` and `gamnit`. + +Clients don't have to select the core implementation, it is imported by other relevant modules. +For example, a module importing `app::ui` and `android` will trigger the importation of `android::nit_activity`. + +## Lock app orientation Importing `android::landscape` or `android::portrait` locks the generated application in the specified orientation. This can be useful for games and