activitygroup

Android: activity transition/animation in ActivityGroup

隐身守侯 提交于 2020-01-01 04:01:07
问题 I use ActivityGroup to manage activities, I want to add animation when change activity, the code I used to change to next activity is: Intent intent = new Intent(getParent(), AnotherActivity.class); TabGroupActivity parentActivity = (TabGroupActivity) getParent(); parentActivity.startChildActivity("AnotherActivity", intent); And inside startChildActivity : Window window =getLocalActivityManager().startActivity(Id,intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)); if (window != null) { View

startActivityForResult from ActivityGroup?

孤者浪人 提交于 2019-12-28 02:07:44
问题 I can't seem to get ANY result when trying to start an activity from an activitygroup. I've put an onactivityresult in the activity and activitygroup? Specifically I'm trying to let the user choose a photo/video from the Intent.ACTION_GET_CONTENT, but I never get anything back? What am I doing wrong? Here is how I call the code: Intent pickMedia = new Intent(Intent.ACTION_GET_CONTENT); pickMedia.setType("video/*"); startActivityForResult(pickMedia,12345); Any ideas? 回答1: I've had a similar

java.lang.StackOverflowError while adding new activity in activity group

不羁的心 提交于 2019-12-14 01:40:08
问题 I am getting stackoverflow error My layout structure as below <TabActivity> <tab1><Activity name="home"> <tab2><Activitygroup><activity name="XYZ"> <activity name="options"> <activity name="thankYou"> <tab3> <TabActivity> <tab3.1><Activitygroup><activities name="PQR"> <tab3.2><activity name="today"> <tab3.3><activity name="history"> <tab3.4><Activitygroup> <activity name="reOrder"> from this I will open <Activity name="options"> <TabActivity> <tab4><Activitygroup><activities name="ABC"> <tab5

Sample activity group code

感情迁移 提交于 2019-12-13 14:57:22
问题 Can someone give me some sample code using activity group? There are buttons in my application and I want to apply activity to those buttons. Currently I'm using setVisibility(), but I've been advised that activity group would be a better choice. 回答1: Here is another ActivityGroup sample project. There is a link on the page to download the actual project. 来源: https://stackoverflow.com/questions/5402119/sample-activity-group-code

Navigate Between Activities in an ActivityGroup

北城余情 提交于 2019-12-12 02:46:20
问题 I'm developing an app which contain TabHost ,in one of those tabs i have an ActivityGroup , and from this ActivityGroup , i launch another SubActivity ( let's say that i Launch an Activity A ), and until this , everything is OK. The problem is when i press the BackButton ,the CurrentActivity( Activity A ) is destroyed, but the ParentActivity( The ActivityGroup ) is not resumed , and the app show just a null Window with the Title of My App ( " My Application Title " ) . The Code to launch the

Spinner within Child of ActivityGroup doesn't work

折月煮酒 提交于 2019-12-11 13:42:55
问题 I have a problem with spinner inside activity , that child of Activity group . when I clicked on spinner , that isn't expanded and "Force Close" window appears I was checked Logcat and catch "BadTokenException ", see below : http://i227.photobucket.com/albums/dd299/lavender-90/stackflow.jpg my XML: <Spinner android:id="@+id/aroundSP" android:layout_height="wrap_content" android:prompt="@string/touraround" android:layout_width="fill_parent" android:entries="@array/Triparound" android:layout

Android dialog set cancel on touch out side

怎甘沉沦 提交于 2019-12-11 10:40:43
问题 I have this custom dialog inside an Activty which is inside ActivityGroup . I want the dialog to dismiss when clicked outside, and tried everything i found online to make it work.. I've tried the setCanceledOnTouchOutside(true) - didn't work I've tried: public boolean onTouchEvent ( MotionEvent event ) { // I only care if the event is an UP action if ( event.getAction () == MotionEvent.ACTION_UP ) { // create a rect for storing the window rect Rect r = new Rect ( 0, 0, 0, 0 ); // retrieve the

Extend Activity and ActivityGroup

℡╲_俬逩灬. 提交于 2019-12-10 12:35:19
问题 I'm writing an application in which i have a set of code which i want to be available in all of my Activities and ActivityGroups. However, to achieve this, I have extended my activities as: //custom Activity public abstract class BaseActivity extends Activity //custom ActivityGroup public abstract class BaseActivityGroup extends ActivityGroup //implemented activities in my app public class PickUser extends BaseActivity //and public class Home extends BaseActivityGroup Now the thing is,

Android: AsyncTask ProgressDialog will not open in ActivityGroup

眉间皱痕 提交于 2019-12-09 04:39:19
问题 I am trying to have a a progress dialog open when polling my server. The class is an ActivityGroup because it is nested within a tab bar. To keep the view within the frame, the ActivityGroup is needed. Here is the declaration of my ActivityGroup class: public class CheckInActivity extends ActivityGroup{ ... public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.checkin); new LocationControl().execute(this); Now my AsyncTask class is within

Back button behavior with tabs and ActivityGroup

拈花ヽ惹草 提交于 2019-12-09 03:52:50
问题 I have an Activity ( Main ) which shows tabs like this: private void initTabs(){ mTabHost = getTabHost(); // The activity TabHost Intent intent; intent = new Intent().setClass(this, MyGroup.class); setupTab(intent, "tab"); } private void setupTab(Intent intent, final String tag) { View tabview = createTabView(mTabHost.getContext(), tag); TabSpec setContent = mTabHost.newTabSpec(tag).setIndicator(tabview).setContent(intent); mTabHost.addTab(setContent); } private static View createTabView