Example usage for android.support.v4.app SupportActivity asActivity

List of usage examples for android.support.v4.app SupportActivity asActivity

Introduction

In this page you can find the example usage for android.support.v4.app SupportActivity asActivity.

Prototype

Activity asActivity();

Source Link

Usage

From source file:mobisocial.musubi.ui.fragments.EmailUnclaimedMembersFragment.java

@Override
public void onAttach(SupportActivity activity) {
    super.onAttach(activity);
    mActivity = activity.asActivity();
    mFeedUri = getArguments().getParcelable(FeedViewFragment.ARG_FEED_URI);
    SQLiteOpenHelper helper = App.getDatabaseSource(mActivity);
    mIdentitiesManager = new IdentitiesManager(helper);
    Log.w(TAG, "feeduri=" + mFeedUri);
}

From source file:mobisocial.musubi.ui.fragments.ConversationsFragment.java

@Override
public void onAttach(SupportActivity activity) {
    super.onAttach(activity);
    mActivity = activity.asActivity();
    if (DBG)/* ww  w. j a v  a 2  s. c o  m*/
        Log.d(TAG, "Attaching FeedListFragment.");
    mFeedSelectedListener = (OnFeedSelectedListener) activity;
    mDatabaseSource = App.getDatabaseSource(mActivity);
    mFeedManager = new FeedManager(mDatabaseSource);

    mIdentityId = (getArguments() != null) ? getArguments().getLong(ARG_IDENTITY_ID) : 0;
    mFeedIds = mFeedManager.getFeedsForIdentityId(mIdentityId);
}

From source file:mobisocial.musubi.ui.fragments.ContactsFragment.java

@Override
public void onAttach(SupportActivity activity) {
    super.onAttach(activity);
    mActivity = activity.asActivity();
    setHasOptionsMenu(true);/*  w  w  w. ja  v  a  2 s . c o  m*/
}

From source file:mobisocial.musubi.ui.fragments.AppSelectDialog.java

@Override
public void onAttach(SupportActivity activity) {
    super.onAttach(activity);
    mActivity = activity.asActivity();
}

From source file:mobisocial.musubi.ui.fragments.FeedViewFragment.java

@Override
public void onAttach(SupportActivity activity) {
    super.onAttach(activity);
    mFeedUri = getArguments().getParcelable(ARG_FEED_URI);
    if (DBG) {/*from www  .j  a  v a 2s .c o  m*/
        Log.w(TAG, getArguments().toString());
        Log.d(TAG, "Attached fragment to feed " + mFeedUri);
    }
    mMusubi = App.getMusubi(activity.asActivity());
    mActivity = activity.asActivity();

    setHasOptionsMenu(true);
}

From source file:mobisocial.musubi.ui.fragments.FeedListFragment.java

@Override
public void onAttach(SupportActivity activity) {
    super.onAttach(activity);
    mActivity = activity.asActivity();
    if (DBG)//from  w  w  w .  ja  v  a 2 s  .c  o  m
        Log.d(TAG, "Attaching FeedListFragment.");
    mFeedSelectedListener = (OnFeedSelectedListener) activity;
    mDatabaseSource = App.getDatabaseSource(mActivity);
}

From source file:mobisocial.musubi.ui.fragments.AccountLinkDialog.java

@Override
public void onAttach(SupportActivity activity) {
    super.onAttach(activity);
    mActivity = activity.asActivity();
    SQLiteOpenHelper databaseSource = App.getDatabaseSource(mActivity);
    mAccountManager = new MyAccountManager(databaseSource);
    if (sAccountLooperThread == null) {
        sAccountLooperThread = new AccountLooperThread();
        sAccountLooperThread.start();/* w  w w  . jav a 2  s  .  c o m*/
    }
}