Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [activity]

The tag has no usage guidance.

0
votes
0answers
38 views

Is a bad practice to instantiate an Activity class just to use a getter from onPostExecute within an AsyncTask?

GOAL: I need to get a value within an async task. The value is declared within a previous called Activity. QUESTION: is a bad practice to instantiate the Activity from which I need the value just to ...
0
votes
3answers
94 views

In which case will a token from an activity join node be rejected?

In an UML activity diagram, join nodes synchronise concurrent flows by regulating the flow of tokens. The UML specifications foresees that tokens can be rejected. Section 15.3.3.4 Join Nodes says: ...
1
vote
1answer
44 views

“join node” and “fork node” for a single branch in UML

Section 15.3.3.3 of UML specification says: Fork Nodes A ForkNode is a ControlNode that splits a flow into multiple concurrent flows. Also 15.3.3.4 says: Join Nodes A JoinNode is a ...
5
votes
1answer
115 views

How “selection behavior” works in UML?

After two hours reading/searching in about examples and usages of selection behavior of object flows, I guess that selects all tokens which satisfy a criteria (like a query) and this can change order ...
0
votes
1answer
52 views

offering multiple tokens at the same time in Activity diagram

UML specification says: If multiple tokens are offered at the same time, then the tokens are offered in the same order as if they had been offered one at a time from the source I want to know "...
1
vote
1answer
145 views

Representing handlers on UML diagrams

This question is a follow-up to Representing multiple actions for sequence of objects on activity diagram, but isn't strictly related. The question boils down to: How to present in UML patterns that ...
1
vote
2answers
334 views

Representing multiple actions for sequence of objects on activity diagram

EDIT: This question led to another, namely Representing handlers on UML diagram. I'm trying to create an Activity Diagram that shows that a collection of objects is handled by a collection of ...
1
vote
1answer
218 views

Should I replace switch case of functions determined by options in previous activity?

For example, assume my app has 3 steps with 3 pages: Step 1 : MainActivity: choose color Step 2 : EditTextActivity: input text Step 3 : GreenActivity: display color and input text In ...
4
votes
5answers
3k views

Representing a “wait until” in an activity diagram in UML

How can I represent a "wait until customer representative is available" in the UML activity diagram below? A solution in UML 1 or UML 2 are both acceptable. Proposal 1 The simple line back to the ...
0
votes
1answer
514 views

Android Activitiy and Service Sync

I've looked for the solution of my problem but I've failed in finding a suitable answer. I've been trying to develop an Android application with heavy asyncronous networking capabilities. The problem ...
0
votes
1answer
278 views

Include exceptions in activity diagrams? [closed]

Should I include exceptions, like a TimeOutException or just general Exceptions, to a activity diagram? For example: A activity diagram describing a client-server connection. Several exceptions can ...
1
vote
1answer
238 views

UML : What is an Activity in an Activity diagram?

I am translating a Use Case diagram step into an Activity Diagram. Does every step of my UC diagram describe an Activity ? Is there one and only one Activity in an Activity Diagram ?
0
votes
0answers
24 views

Polling more recent / active items more frequently

I'm setting up a service that is meant to query, via a rate-limited API, a number of posts in real-time. Now, some of these posts can be several months old, and they should really only be queried, say,...
0
votes
1answer
432 views

Merging user activities into one stream with a common representation

My social network website currently has forum threads and posts gallery pictures albums on the users' profiles group discussions classifieds I would like to create one "stream" of activity. It would ...
1
vote
0answers
744 views

How to model an optional input to an activity?

I am constructing a UML 2.0 activity diagram. The activity is to evaluate data from a usability study of a prototype. It can optionally end with just getting the user satisfaction results. But if the ...
0
votes
1answer
764 views

Is it good approach to open a keyboard at Actvity start where only one EditTextbox is present [closed]

I am working with Forgot password, where I have single EditTextBox and a single submit button. So whenever I am opening this Forgot password page, my keyboard is opened at the start of this page. In ...
1
vote
2answers
4k views

Android Design - Service vs Thread for Networking

I am writing an Android app, finally (yay me) and for this app I need persistant, but user closeable, network sockets (yes, more than one). I decided to try my hand at writing my own version of an ...
1
vote
0answers
233 views

UML activity diagram: How to end activity after Event Signal Action?

To my knowledge, event signal actions are not allowed to have output control flow, so how can I model the end of an activity after a event signal action? The same issue arises for accept event actions ...
7
votes
3answers
9k views

Do activity diagrams always end in one endpoint?

For example an activity diagram for a simple program: Get User data. If User Exists DO something, ELSE do nothing. End. I often see diagrams with multiple endpoints but also with just one. Should ...
1
vote
2answers
3k views

Activity diagram, can merge node have more than 1 output?

There is a simple system, that allows users to do 4 things: ADD, EDIT, DELETE, PRINT data. I am due to model it (I'm entirely new to UML activity diagrams) and from notation, I dont understand ...
0
votes
1answer
1k views

How to construct UML activity diagram reflecting real programmed source code as docs

Please, tell me the things I must use for modeling an (Enterprise Architect) activity diagram of object1.method1() calls object2.method2() I'm able to dragndrop a method of a class from model tree-...
3
votes
2answers
1k views

Adding more responsibilities to Activities in a flexible way

I am considering how I can add tasks to Android Activities in a flexible way. I can only use implementation inheritance for one thing in Java and I would like to use it, if I use it at all, for ...
2
votes
2answers
6k views

how to express alternative flows in activity diagram

I want to express the below events in an activity diagram: An alternative flow, such as "at step x of basic flow, user clicks cancel instead of ok". An alternative entry to the use case, such as "...