X-Git-Url: http://nitlanguage.org?ds=inline diff --git a/lib/android/android.nit b/lib/android/android.nit index b10bfbf..58e296a 100644 --- a/lib/android/android.nit +++ b/lib/android/android.nit @@ -16,35 +16,10 @@ # Android services and implementation of app.nit # -# To use this module and compile for Android, you must install the -# Android SDK (with API level 10) and NDK (with the API level 9). -# The tools `android`, `ndk-build` and `ant` must be in your PATH. -# # This module provides basic logging facilities, advanced logging can be # achieved by importing `android::log`. module android import platform -import native_app_glue +import dalvik private import log - -# Uses Android logs to print everything -redef fun print(text) do log_write(priority_info, app.log_prefix.to_cstring, text.to_s.to_cstring) - -redef class App - redef fun log_error(msg) do log_write(priority_error, log_prefix.to_cstring, msg.to_cstring) - - redef fun log_warning(msg) do log_write(priority_warn, log_prefix.to_cstring, msg.to_cstring) - - redef fun init_window - do - super - window_created - end - - redef fun term_window - do - super - window_closing - end -end