Questions tagged [subactivity]

Use this tag for questions related to a Subactivity, an Android activity that is initiated inside the parent activity.

35 questions
1
vote
1 answer

Lifecycle of a subactivity

If an Activity starts another by startActivityForResult(), what happens to that subactivity if the parent is finished?
cody
  • 6,389
  • 15
  • 52
  • 77
1
vote
0 answers

How to keep the header of a Tab in a SubActivity?

i've got this Tabhost: TabHost tabHost = getTabHost(); TabHost.TabSpec spec; Intent intent; /** Initialization Tab1 */ intent = new Intent(this, Tab1.Class); spec =…
Christoph
  • 1,113
  • 5
  • 17
  • 35
1
vote
2 answers

How to put EditText info into a Intent variable

I'm trying to get the user information typed in the edit text. I want it saved into the Intent result variable. Trying to sending it back to the main activity afterwards. Keep getting the cannot resolve method. I'm thinking it must be that I'm…
Carlitos
  • 419
  • 4
  • 20
1
vote
2 answers

How to get a subactivity to extend MapActivity

So I have a MainActivity and a SubActivity and I want the SubActivity to extend a MapActivity. But the program would not let me do this. It says that MapActivity cannot be resolved to a type. How can I get the SubActivity to extend MapActivity?
littledevils326
  • 689
  • 3
  • 11
  • 19
0
votes
1 answer

How should I use the Back Stack to allow usage of the back button?

So, I have this app with 4 different activities: A is the main activity with three buttons to launch B, C and D (I think people use to refer to these as sub activities). Each activity has its own layout, but I believe that this is not…
0
votes
2 answers

Subactivity onClick Firing in Parent Class

I am having some trouble with the onClick handler in a sub activity of an ActivityGroup. I am launching a StoreActivity using: Intent storeIntent = new Intent(this, StoreActivity.class); storeIntent.putExtra(StoreActivity.INTENT_STORE_ID,…
Genesis
  • 8,038
  • 3
  • 21
  • 22
0
votes
2 answers

Opening an activity within a View in Android

I've recently started developing Android Apps, and whilst the model is making more sense the more I look at it, I cannot do something (nor find any reference material on it) which to me seems quite simple. I have an activity which has five buttons…
0
votes
1 answer

multiple sub-activities that causes low memory

My app requires the user to go through multiple pages of input (signing up process). As the user goes deeper into the signup, I have to keep the data intact till the user clicks on "finish". This process involve activity calling sub-activities and…
Creniale
  • 238
  • 3
  • 16
0
votes
1 answer

Passing extras between activities and forwarding them to a single activity

My app is a basic login app that at the end will present all values user input for the fields in other activities. I am working with intent objects and flags. The activities use: intent extras to store the key-values, FLAG_ACTIVITY_FORWARD_RESULT…
0
votes
2 answers

Cant Return Data From a Sub-Activity (setResult)

In my project, ActivityTwo is launched as a sub-activity of ActivityOne, which has, in turn, been modified to handle data returned from ActivityTwo. TextView in ActivityOne should retrieve the text entered into the EditText added to intent…
0
votes
1 answer

Displaying a MapView with a SubAcivity

I have a main activity. its main.xml generates a view that holds a slider, which on click, reveles some area for conent. In this area I want to display a map. so I need a second activity. I am able to call the sub activity but I want it to be…
DarkLeafyGreen
  • 69,338
  • 131
  • 383
  • 601
0
votes
1 answer

How to indicate data output from a subactivity in an Activity Diagram?

as said in the title I am trying to indicate the output of data from a subactivity in an Activity Diagram. I am torn between Object-Nodes and input pins. What is correct in this case?
Danny
  • 105
  • 1
  • 1
  • 9
0
votes
1 answer

java.lang.RuntimeException: Failure delivering result ResultInfo Database not open

I am trying to make a simple contact list app,when I pressed a button to create a contact it shows a form in which i have to add contact deatils of person after adding details in this form then i have to press save button to save these fields into…
Shazar
  • 103
  • 4
  • 19
0
votes
1 answer

Make activities sub-activities of one main Activity

I know the title looks weird but this is what I want : I have two tabs, and under one tab I have an activity that has a file list. When you click on a file it normally shows a panel next to it (which is another activity). But now, since I have tabs,…
user2413534
0
votes
0 answers

Sub Activities under TabActivity and Back button in android

I have to show multiple activities under same tab. I have followed the below http://androidcodeexamples.blogspot.in/2012/08/multiple-android-activities-in.html. But when I'am in sub activity and press back button, it is restarting the main/tab1…
Santhosh
  • 4,956
  • 12
  • 62
  • 90