Questions tagged [subactivity]

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

35 questions
18
votes
3 answers

Android onActivityResult is always 0

This has been killing me for two days now. I have a main Activity A which calls a second Activity B. Activity B simply presents the user with a listview. When I press an item on the list view I want a couple of strings to be passed back to the main…
Dean
  • 533
  • 2
  • 5
  • 10
6
votes
2 answers

onActivityResult sometimes not called when Sub-Activity finishes

During testing I noticed that sometimes the finish() of my sub-activity doesn't execute onActivityResult. Most of the times it works okay, and I can't figure out, when and why this problem occurs. Subactivity start: public void…
Daniel
  • 71
  • 4
6
votes
5 answers

How to force main Acivity to wait for subactivity in Android?

I am calling a subactivity from main activity. This subactivity should take few numbers from user (i'm using Edit text control to achieve this), save them to static variable in another class and terminate. I want main activity to wait for…
questioner
  • 2,283
  • 3
  • 26
  • 35
5
votes
2 answers

Using Monkey in a subactivity only (android debugging)

I'm trying to use Monkey debuggin tool (from adb) to stress test a part of my application. As Monkey acts in a total random way, I'd like it to concentrate on the part of code that might contain an error I'm looking for (very rare bug, and I don't…
kajman
  • 1,066
  • 11
  • 24
4
votes
3 answers

Android ==> Sub Activity?

Is it possible to add an activity on top of the current activity. For example lets say i click a button, and then it adds a second activity to the current activity. And the second activity only covers a small place at the buttom of my current…
aryaxt
  • 76,198
  • 92
  • 293
  • 442
3
votes
3 answers

How to run different activities in the same view

i am using the following project https://github.com/akotoe/android-slide-out-menu.git to develop slide out menu application. How to run different activities in the same view by clicking the list in slide-menu. for example if i click on item 1 i…
madan V
  • 844
  • 3
  • 19
  • 40
2
votes
2 answers

how to show a "window/subactivity/dialog" on top of an Activity but keeping the focus in the Activity

My activity A is a game and it does some background operations. When I press a button in the contextual menu, I want to pop up a "small window/dialog/subactivity" (lets call it B) that appears on top of activity A and displays some data about those…
sirlion
  • 287
  • 2
  • 4
  • 11
2
votes
1 answer

Android: Subactivity returning NULL Intent object in onActivityResult

Can't figure this one out. Done research, searched here, online, etc. Still a new programmer to Java/Android, but it seems like I'm doing this right, so here goes. My main activity starts several sub-activities based on touched menu entries. For…
Jeff S
  • 33
  • 1
  • 2
  • 7
2
votes
3 answers

Android Home activity launching a sub-activity

I am relatively new to Android programming. I have been given a task at work where I need to create a Custom Home activity launcher. I did a bit of research and found the example on the Android developer website (home sample). This was the start…
2
votes
0 answers

Monkey starting intent in subactivity causes ANR

I have an android app with a button on the main activity that creates a second PreferenceActivity to display settings. The manifest looks like this
stipe108
  • 1,640
  • 1
  • 16
  • 20
2
votes
2 answers

UML Activity Diagram: Subactivity/Call Acivity Action (Edraw Max)

Is the Subactivity/Call Acivity Action actually part of the language specification? According to this source it's not: Call activity action is indicated by a rake-style symbol within the action symbol. Note, that though UML 2.4 specification…
2
votes
1 answer

Main activity grayed-out/disabled on Back button

I have a problem on going back (clicking the Back button) from sub-activity to main activity: from my main activity I launch a new one (with passing some extras): Intent i = new Intent(getApplicationContext(),…
Laimoncijus
  • 8,615
  • 10
  • 58
  • 81
2
votes
2 answers

Howto extend SomeActivity to relocate e.g. onCreateOptionsMenu?

I know this should be fairly simple but I don't get it anyhow. I've got an Activity (let's call it XyActivity) which has gotten pretty long. Therefore, I'd like to relocate some overriden methods to a subclass (let's call it XyOptions). Looks like…
stfn
  • 1,140
  • 5
  • 19
  • 33
2
votes
1 answer

Android: How to close foreground activity from active activity?

I created an application which is asynchronously communicating with the server. When the application makes a server request a new dialog (activity) with "loading" notification is created. The main activity implements methods for handling server…
Niko Gamulin
  • 66,025
  • 95
  • 221
  • 286
1
vote
2 answers

Activities and sub activities

My Application has 5 different activities ( name them as A,B,C,D,E ) and there is a menu (made by buttons on bottom of the screen), to switch between A,B...E when I am displaying A, there are some button by which the user goes on another activity A1…
1
2 3