Sofia API Reference

  • Package Index
  • Class Index
  • Packages
  • sofia.app
    • Interfaces
    • ScreenMethods
    • Classes
    • ActivityStarter
    • ListScreen
    • Screen
    • ShapeScreen
    • Annotations
    • OptionsMenu
    • Persistent
    • Persistor
    • ScreenLayout
  • sofia.content
  • sofia.data
  • sofia.graphics
  • sofia.util
  • sofia.view
  • sofia.widget

public class
ActivityStarter

extends AbsActivityStarter

Inheritance

  • java.lang.Object
    • AbsActivityStarter
      • sofia.app.ActivityStarter

Class Overview

Starts another screen or activity for the user and slides it into view. This class can be used in one of two ways:

  1. To start a subclass of Screen (or MapScreen), you create an ActivityStarter and pass it the class that should be started and the arguments that you want to pass to its initialize method. When the activity returns, a callback will be called based on the name of the activity class.
  2. To start a traditional Android activity based on an Intent, pass the Intent object and the name of a callback method that will be called when the activity returns.

Users can use this class directly but should probably prefer the Screen#presentScreen(Class, Object...) and presentActivity(Intent, String) methods instead.


Summary

Public Constructors
ActivityStarter(Intent intent, String callback)
ActivityStarter(Class<? extends Activity> screenClass, Object... params)
Public Methods
void start(Activity owner, String callback)
Protected Methods
String getCanceledCallback()
String getDefaultCallback()
void invokeCallback(Activity owner, Intent data, int resultCode)
Methods inherited from class java.lang.Object
Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait()
final void wait(long arg0, int arg1)
final void wait(long arg0)

Public Constructors

public ActivityStarter (Intent intent, String callback)

public ActivityStarter (Class<? extends Activity> screenClass, Object... params)


Public Methods

public void start (Activity owner, String callback)


Protected Methods

protected String getCanceledCallback ()

protected String getDefaultCallback ()

protected void invokeCallback (Activity owner, Intent data, int resultCode)