public abstract class

SCSingleFragmentActivity

extends SCBaseFragmentActivity
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.view.ContextThemeWrapper
         ↳ android.app.Activity
           ↳ com.c2call.sdk.pub.activities.core.SCBaseFragmentActivity
             ↳ com.c2call.sdk.pub.activities.core.SCSingleFragmentActivity
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

This is the base class of all C2Call SDK's activities that contain only a single fragment

Summary

[Expand]
Inherited Constants
From class android.app.Activity
From class android.content.Context
From interface android.content.ComponentCallbacks2
Fields
public static String TAG_FRAGMENT
[Expand]
Inherited Fields
From class android.app.Activity
Public Constructors
SCSingleFragmentActivity()
Public Methods
Fragment getFragment()
Returns the fragment for this activity.
int getFragmentContainer()
Gets the resource id of the container layout that will hold the fragment By contract this has to be the id of a ViewGroup.
Protected Methods
int getFragmentLayout()
Gets the resource id of the content view of this activity.
void onAddFragment(Bundle savedInstanceState)
Called when the fragmant has to be added by the FragmentManager
void onCreate(Bundle savedInstanceState)
abstract Fragment onCreateFragment()
Creates the fragment used in this activity.
void restoreFragment(Bundle savedInstanceState)
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.activities.core.SCBaseFragmentActivity
From class android.app.Activity
From class android.view.ContextThemeWrapper
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks
From interface android.content.ComponentCallbacks2
From interface android.view.KeyEvent.Callback
From interface android.view.LayoutInflater.Factory
From interface android.view.LayoutInflater.Factory2
From interface android.view.View.OnCreateContextMenuListener
From interface android.view.Window.Callback
From interface com.c2call.sdk.pub.gui.core.loaderhandler.ILoaderHandlerContext
From interface com.c2call.sdk.pub.gui.core.loaderhandler.ILoaderHandlerContextProvider

Fields

public static String TAG_FRAGMENT

Public Constructors

public SCSingleFragmentActivity ()

Public Methods

public Fragment getFragment ()

Returns the fragment for this activity.

Returns

public int getFragmentContainer ()

Gets the resource id of the container layout that will hold the fragment By contract this has to be the id of a ViewGroup.

Returns
  • the fragment's container view

Protected Methods

protected int getFragmentLayout ()

Gets the resource id of the content view of this activity.

Returns
  • the content view

protected void onAddFragment (Bundle savedInstanceState)

Called when the fragmant has to be added by the FragmentManager

Parameters
savedInstanceState Saved-/restored data after re-creation of the activity

protected void onCreate (Bundle savedInstanceState)

protected abstract Fragment onCreateFragment ()

Creates the fragment used in this activity.

Returns
  • a Fragment

protected void restoreFragment (Bundle savedInstanceState)