ALC 4
no.ntnu.item.arctis.library.android

Import via SVN
Drop this link into the Arctis View

This building block is under construction. It may be incomplete or change over time.

Description

Listens to the lifecycle of an Android Activity.

This block creates and Android Activity and listens to all lifecycle events. The actual Android Activity must be provided though the start parameter, as reference to its class. The actual instance is then returned by the onCreate parameter. This class must extend class ArctisAndroidActivity. If it overwrites any of the lifecycle method (like "onCreate"), it must also call the corresponding method of the super class. It can set the layout by declaring the following method: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout. <ref to layout>); }

Origin

Authors:Frank Alexander Kraemer, Kim Martinsen
Provider:NTNU - Department of Telematics
Repository:http://svn.item.ntnu.no/arctis-lib (user= guest, login= guest)

Dependencies

Imported Building Blocks:
Imported Libraries:
Required Repositories:



Parameter Nodes
start:  java.lang.Class

Make the given Android Activity class visible. This class must extend ArctisAndroidActivity.

onCreate:  android.app.Activity

Provides the created instance of the Android Activity.

onDestroy

finish

finished


External Behavior