¡@

Home 

2014/10/16 ¤W¤È 08:18:21

android Programming Glossary: mactivity

SimpleCursorTreeAdapter and CursorLoader for ExpandableListView

http://stackoverflow.com/questions/10611927/simplecursortreeadapter-and-cursorloader-for-expandablelistview

getClass .getSimpleName .toString private ContactManager mActivity private GroupsListFragment mFragment Note that the constructor.. groupFrom groupTo childLayout childrenFrom childrenTo mActivity ContactManager context mFragment glf @Override protected Cursor.. getChildrenCursor for groupId groupId Loader loader mActivity.getLoaderManager .getLoader groupId if loader null loader.isReset..

Using ActionBarSherlock With the New SupportMapFragment

http://stackoverflow.com/questions/13721929/using-actionbarsherlock-with-the-new-supportmapfragment

private SherlockFragmentActivity mActivity public SherlockFragmentActivity getSherlockActivity return mActivity.. public SherlockFragmentActivity getSherlockActivity return mActivity @Override public void onAttach Activity activity if activity.. must be attached to a SherlockFragmentActivity. mActivity SherlockFragmentActivity activity super.onAttach activity @Override..

Duplicate ID, tag null, or parent id with another fragment for com.google.android.gms.maps.MapFragment

http://stackoverflow.com/questions/14083950/duplicate-id-tag-null-or-parent-id-with-another-fragment-for-com-google-androi

implements ActionBar.TabListener private final Activity mActivity private final String mTag private final Class T mClass private.. Activity activity String tag Class T clz Bundle args mActivity activity mTag tag mClass clz mArgs args Check to see if we.. our initial state is that a tab isn't shown. mFragment mActivity.getFragmentManager .findFragmentByTag mTag if mFragment null..

How to transfer the formatted date string from my DatePickerFragment?

http://stackoverflow.com/questions/18211684/how-to-transfer-the-formatted-date-string-from-my-datepickerfragment

private WeakReference MainActivity mActivity @Override public Dialog onCreateDialog Bundle savedInstanceState.. c.get Calendar.MONTH int day c.get Calendar.DAY_OF_MONTH mActivity new WeakReference MainActivity MainActivity getActivity Create.. formattedDate sdf.format c.getTime MainActivity target mActivity.get if target null target.tv.setText formattedDate share..

Is AsyncTask really conceptually flawed or am I just missing something?

http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something

class Worker extends AsyncTask URL Integer Long MyActivity mActivity Worker MyActivity activity mActivity activity @Override protected.. Long MyActivity mActivity Worker MyActivity activity mActivity activity @Override protected Long doInBackground URL... urls.. protected void onProgressUpdate Integer... progress if mActivity null mActivity.setProgressPercent progress 0 @Override protected..

Get focused View from ViewPager

http://stackoverflow.com/questions/6807262/get-focused-view-from-viewpager

static final int NUM_VIEWS 3 protected final Activity mActivity public ListViewPagerAdapter Activity activity mActivity activity.. mActivity public ListViewPagerAdapter Activity activity mActivity activity @Override public int getCount return NUM_VIEWS @Override.. um die Views aufzurufen LayoutInflater layoutInflater mActivity.getLayoutInflater Standardmä ig ist news eingeblendet View view..

SimpleCursorTreeAdapter and CursorLoader for ExpandableListView

http://stackoverflow.com/questions/10611927/simplecursortreeadapter-and-cursorloader-for-expandablelistview

SimpleCursorTreeAdapter private final String DEBUG_TAG getClass .getSimpleName .toString private ContactManager mActivity private GroupsListFragment mFragment Note that the constructor does not take a Cursor. This is done to avoid querying the.. childrenFrom int childrenTo super context null groupLayout groupFrom groupTo childLayout childrenFrom childrenTo mActivity ContactManager context mFragment glf @Override protected Cursor getChildrenCursor Cursor groupCursor Given the group we.. .getColumnIndex ContactsContract.Groups._ID Log.d DEBUG_TAG getChildrenCursor for groupId groupId Loader loader mActivity.getLoaderManager .getLoader groupId if loader null loader.isReset mActivity.getLoaderManager .restartLoader groupId null..

Using ActionBarSherlock With the New SupportMapFragment

http://stackoverflow.com/questions/13721929/using-actionbarsherlock-with-the-new-supportmapfragment

OnPrepareOptionsMenuListener OnOptionsItemSelectedListener private SherlockFragmentActivity mActivity public SherlockFragmentActivity getSherlockActivity return mActivity @Override public void onAttach Activity activity if.. private SherlockFragmentActivity mActivity public SherlockFragmentActivity getSherlockActivity return mActivity @Override public void onAttach Activity activity if activity instanceof SherlockFragmentActivity throw new IllegalStateException.. throw new IllegalStateException getClass .getSimpleName must be attached to a SherlockFragmentActivity. mActivity SherlockFragmentActivity activity super.onAttach activity @Override public void onDetach mActivity null super.onDetach @Override..

Duplicate ID, tag null, or parent id with another fragment for com.google.android.gms.maps.MapFragment

http://stackoverflow.com/questions/14083950/duplicate-id-tag-null-or-parent-id-with-another-fragment-for-com-google-androi

public static class TabListener T extends Fragment implements ActionBar.TabListener private final Activity mActivity private final String mTag private final Class T mClass private final Bundle mArgs private Fragment mFragment public TabListener.. tag Class T clz this activity tag clz null public TabListener Activity activity String tag Class T clz Bundle args mActivity activity mTag tag mClass clz mArgs args Check to see if we already have a fragment for this tab probably from a previously.. from a previously saved state. If so deactivate it because our initial state is that a tab isn't shown. mFragment mActivity.getFragmentManager .findFragmentByTag mTag if mFragment null mFragment.isDetached FragmentTransaction ft mActivity.getFragmentManager..

How to transfer the formatted date string from my DatePickerFragment?

http://stackoverflow.com/questions/18211684/how-to-transfer-the-formatted-date-string-from-my-datepickerfragment

extends DialogFragment implements DatePickerDialog.OnDateSetListener private WeakReference MainActivity mActivity @Override public Dialog onCreateDialog Bundle savedInstanceState Use the current date as the default date in the picker.. c Calendar.getInstance int year c.get Calendar.YEAR int month c.get Calendar.MONTH int day c.get Calendar.DAY_OF_MONTH mActivity new WeakReference MainActivity MainActivity getActivity Create a new instance of DatePickerDialog and return it return new..

Is AsyncTask really conceptually flawed or am I just missing something?

http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something

class MyActivity extends Activity Worker mWorker static class Worker extends AsyncTask URL Integer Long MyActivity mActivity Worker MyActivity activity mActivity activity @Override protected Long doInBackground URL... urls int count urls.length.. Worker mWorker static class Worker extends AsyncTask URL Integer Long MyActivity mActivity Worker MyActivity activity mActivity activity @Override protected Long doInBackground URL... urls int count urls.length long totalSize 0 for int i 0 i count.. int i float count 100 return totalSize @Override protected void onProgressUpdate Integer... progress if mActivity null mActivity.setProgressPercent progress 0 @Override protected void onPostExecute Long result if mActivity null mActivity.showDialog..

Get focused View from ViewPager

http://stackoverflow.com/questions/6807262/get-focused-view-from-viewpager

protected static final String TAG ListViewPagerAdapter protected static final int NUM_VIEWS 3 protected final Activity mActivity public ListViewPagerAdapter Activity activity mActivity activity @Override public int getCount return NUM_VIEWS @Override.. static final int NUM_VIEWS 3 protected final Activity mActivity public ListViewPagerAdapter Activity activity mActivity activity @Override public int getCount return NUM_VIEWS @Override public void startUpdate View container @Override public.. ViewPager ViewPager viewPager ViewPager container Wird verwendet um die Views aufzurufen LayoutInflater layoutInflater mActivity.getLayoutInflater Standardmä ig ist news eingeblendet View view layoutInflater.inflate R.layout.news_fragment null Falls..