Current reference context, either an activity or a service

Property definitions

android :: dalvik $ App :: native_context
	# Current reference context, either an activity or a service
	fun native_context: NativeContext do return native_activity
lib/android/dalvik.nit:28,2--29,60

android :: service $ App :: native_context
	# Prioritize an activity context if one is running, fallback on a service
	redef fun native_context
	do
		if activities.not_empty then return super

		var service = service
		assert service != null
		return service.native
	end
lib/android/service/service.nit:85,2--93,4