public class

SCAudioRecordFragmentActivity

extends SCControlledFragmentActivity<T extends IController>
implements SCAudioRecordFragment.Callbacks
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
               ↳ com.c2call.sdk.pub.activities.core.SCControlledFragmentActivity<T extends com.c2call.sdk.pub.gui.core.controller.IController>
                 ↳ com.c2call.sdk.pub.activities.SCAudioRecordFragmentActivity

Class Overview

Simple implementation of an Activity that is controlled by a IAudioRecordController. It contains a single SCAudioRecordFragment and should be started like:

 final String filename = UUID.randomUUID().toString().replace("-", "");
 final String output = MediaExtra.getMediaPath(DownloadType.Image, filename, true);

 final Intent intent = new Intent(activity, SCAudioRecordActivity.class);
 intent.putExtra(SCExtraData.Forward.EXTRA_DATA_LAYOUT, layout);
 intent.putExtra(SCExtraData.AudioRecord.EXTRA_DATA_OUTPUT_PATH, output);

 activity.startActivityForResult(intent, SCActivityRequestCodes.RECORD_AUDIO);
 

Summary

[Expand]
Inherited Constants
From class android.app.Activity
From class android.content.Context
From interface android.content.ComponentCallbacks2
[Expand]
Inherited Fields
From class com.c2call.sdk.pub.activities.core.SCSingleFragmentActivity
From class android.app.Activity
Public Constructors
SCAudioRecordFragmentActivity()
Public Methods
void onControllerEvent(SCBaseControllerEvent event)
This method is called if the IController of this Activity fires an SCBaseControllerEvent If not overridden then it will finish this activity if an event of type Finish is fired.
Protected Methods
Fragment onCreateFragment()
Creates the fragment used in this activity.
[Expand]
Inherited Methods
From class com.c2call.sdk.pub.activities.core.SCControlledFragmentActivity
From class com.c2call.sdk.pub.activities.core.SCSingleFragmentActivity
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.controller.IControllerRequestListener
From interface com.c2call.sdk.pub.gui.core.loaderhandler.ILoaderHandlerContext
From interface com.c2call.sdk.pub.gui.core.loaderhandler.ILoaderHandlerContextProvider

Public Constructors

public SCAudioRecordFragmentActivity ()

Public Methods

public void onControllerEvent (SCBaseControllerEvent event)

This method is called if the IController of this Activity fires an SCBaseControllerEvent If not overridden then it will finish this activity if an event of type Finish is fired.

Protected Methods

protected Fragment onCreateFragment ()

Creates the fragment used in this activity.

Returns
  • a Fragment