activitygroup

Android: onActivityResult() is not calling

烈酒焚心 提交于 2019-12-08 11:24:15
问题 I'm facing with a problem related onActivityResult(). I use TabActivity as a main Activity. Each of the tabs is activityGroup. A ActivityGroup's sub-activity A(Activity) sends the intent to B(Activity) using startActivityForResult( , ) . But when B Activity finish, onActivityResult() is not called in A. A Activity Intent intent = new Intent(A.this, B.class); startActivityForResult(intent, 1); B Activity Intent intent = new Intent(); setResult(RESULT_OK, intent); finish(); What is wrong?

Android Childactivity getParent question?

坚强是说给别人听的谎言 提交于 2019-12-08 05:40:22
问题 Basically I'm using ActivityGroup in my application. I have this situation: I have Tabhost with activity A. Activity A creates childActivity B. A ---> B startChildActivity("CollectionList", new Intent(this,MyCollectionList.class)); Activity B creates 3 childactivities C, D. B ---> C (childActivity of B) startChildActivity("Recommended", new Intent(MyCollectionList.this,Recommended.class)); B ---> D (childActivity of B) startChildActivity("ExpectSoon", new Intent(MyCollectionList.this

TabActivity with ActivityGroup and PreferenceActivity child

心不动则不痛 提交于 2019-12-08 03:25:44
问题 I have a TabActivity where each tab has ActivityGroup. On the home ActivityChild of the first group I have an menu option, which gives to the user the option to open preferences. When I click "Preferences" on menu, I start PreferenceActivity inside ActivityGroup, which shows PreferenceActivity on the first tab. The problem is when I click on any specific preference which has to show a Dialog (for EditTextPreference). I have the following exception: android.view.WindowManager$BadTokenException

Can I use NativeActivity with ActivityGroup?

百般思念 提交于 2019-12-07 16:49:47
问题 I know ActivityGroup is deprecated. But I am trying to combine user interface of NativeActivty with some Java/Android API View s. I am trying to make one hybrid user interface where a part of the screen is from NativeActivity . I used this example and tried ActivityGroup with some simple activities. This work perfectly with any Activity (Even if I play video using VideoView). But when I tried to load NativeActivity it not working. (I tried Teapot demo from NDK samples). By "not working" I

onBackPressed() not working inside ActivityGroup

谁说我不能喝 提交于 2019-12-06 04:32:33
问题 I have an ActivityGroup inside of which I have an Activity. I have overrided the onBackPressed() in this Activity. But unfortunately my onBackPressed() is not being called. So I tried with onKeyDown() . But no effect at all. My problem is, the onBackPressed() event which I have given in the ActivityGroup takes control. How to override the Back Press event inside my sub Activity? Any help is appreciated. 回答1: I just had this same problem and I solved it by calling the current activity's

ActivityGroup is Deprecated

て烟熏妆下的殇ゞ 提交于 2019-12-06 02:31:44
问题 I am making android application containing three tabs.. On third tab there is login screen.. when i click on login button ...i want to replace the activity with activity containing list view and logout button.... Previously i was using Activity Group to replace the activity..But activity Group is now deprecated.. Now how can i replace the activity under third tab?? I am using these code Intent intent = new Intent(MyApp.this, LoginPage.class); replaceContentVieww("activity4", intent); public

Can I use NativeActivity with ActivityGroup?

白昼怎懂夜的黑 提交于 2019-12-05 22:16:21
I know ActivityGroup is deprecated. But I am trying to combine user interface of NativeActivty with some Java/Android API View s. I am trying to make one hybrid user interface where a part of the screen is from NativeActivity . I used this example and tried ActivityGroup with some simple activities. This work perfectly with any Activity (Even if I play video using VideoView). But when I tried to load NativeActivity it not working. (I tried Teapot demo from NDK samples). By "not working" I mean window.getDecorView() from native activity it always return transparent view, not actual content view

ActivityGroup is Deprecated

∥☆過路亽.° 提交于 2019-12-04 09:25:59
I am making android application containing three tabs.. On third tab there is login screen.. when i click on login button ...i want to replace the activity with activity containing list view and logout button.... Previously i was using Activity Group to replace the activity..But activity Group is now deprecated.. Now how can i replace the activity under third tab?? I am using these code Intent intent = new Intent(MyApp.this, LoginPage.class); replaceContentVieww("activity4", intent); public void replaceContentVieww(String id, Intent newIntent) { // TODO Auto-generated method stub View view =

onBackPressed() not working inside ActivityGroup

风流意气都作罢 提交于 2019-12-04 09:21:17
I have an ActivityGroup inside of which I have an Activity. I have overrided the onBackPressed() in this Activity. But unfortunately my onBackPressed() is not being called. So I tried with onKeyDown() . But no effect at all. My problem is, the onBackPressed() event which I have given in the ActivityGroup takes control. How to override the Back Press event inside my sub Activity? Any help is appreciated. I just had this same problem and I solved it by calling the current activity's onBackPressed from the ActivityGroup: @Override public void onBackPressed() { int length = idList.size(); if

Android ActivityGroup - NullPointerException

假如想象 提交于 2019-12-04 02:35:26
问题 I'm trying to use activity groups - since I use tabs, and want to have the tabs when loading and activity after the list item was clicked,. but I'm getting nullpointerexception in the following line: View view1 = S1_Group.group.getLocalActivityManager() .startActivity("S1", intent) .getDecorView(); Code is .. . lv.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Intent intent = new Intent