|
Hi guys.
I wanna know how to pass data from current Activity to paused Activity ?
Please advice. Thanks in advance.
Started by AndroiDBeginner on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
In your current activity, create an intent
Intent i = new Intent(getApplicationContext(), PausedActivity.class); i.putExtra(key, value); startActivity(i);
then in paused activity, retrieve those it when finish current Activity and....
|
|
I have an invokeworkflow activity inside a replicator activity. The workflow that I'm trying to invoke requires 2 parameters to be passed to it, an integer and a string parameters, and these should be passed to the workflow by the replicator activity....
Started by Sam on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
What events should I use to find out the current InvokeWorkflow activity (since there will be multiple InvokeWorkflow ....
But my question was, how do I pass these values from the Replicator activity to the InvokeWorkflow activity.
|
|
Hi, There is a stack of activity i want to call the activity from that stack , My question is that is it possible to check from that stack and call that intent . When i press home button and again when i press the executable it should start the activity...
Started by Sam97305421562 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Want to do that, then Android will give you very convenient methods in your Activity/questions/2061143/android-keep-tasks-activity-stack-after-restart-from-home/2061447
Check the solution, may.
|
Ask your Facebook Friends
|
Hello everyone,
I've been learning to develop in Android and had more of a general question: If I have a layout that uses a list and some other views, should I be using Activity or ListActivity for my activity class?
I know that ListActivity will probably...
Started by Bara on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
As long as there is a ListView called @android:id/list somewhere .
Don't really see the reason to use ListActivity, unless you want to do with setContentView() method from Activity .
I'd go with Activity.
|
|
Hi,
I am trying to create a following scenario:
a task gets assigned to the user to complete a task get created for the manager to reassign the user task if necessary (don't ask, they wanted it this way) an email reminder neeeds to be sent when the task...
Started by Robert Ivanc on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The Solution
The fundemental activity ....
This might explain why your delay activity is blocked.
Reminders when the task is late so you might be able to address your delay activity using out with the same ID is added to SharePoint.
|
|
Like the title says, I need to detect when my app loses focus because another app is launched (Phone call comes in, or user hits Home etc).
Overriding Activity.OnStop does not work because that is called even when switching activities within my app.
Started by FlySwat on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
I have written a utility method.
I believe you could use:
onWindowsFocusChanged(boolean hasFocus)
from your Activity.
Within X period of time, presumably some other app's activity is in the foreground).
|
|
Suppose I have an Activity that's a list. It calls a Service when this Activity starts. The Service will do background stuff--download, parse, and fill the list.
My question is this: How can the Service communicate with the Activity ? How can I call a...
Started by alex on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Then you dont need to bother with the....
Questions/2274641/best-way-for-service-that-starts-activity-to-communicate-with-it
Also, consider using AsyncTask instead of a service if the service dont need to be alive when the activity is closed.
|
|
Private class ExecuteLocations extends AsyncTask<String, Void, Void>{ private final ProgressDialog dialog = new ProgressDialog(ListProfiles.this); protected void onPreExecute() { //this.dialog.setMessage("Starting pre-execute..."); //this.dialog...
Started by alex on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For this case, I'd probably go with a ....
Brake it into 3 steps:
Make whatever you want to work work w/o AsyncTask Make sure you've figured out AsyncTask, do a simple Log.e("haha", "gotcha") in doInBackground(...) and check that it shows Combine the two .
|
|
I have Activity named whereActity which is having child dialogs as well.
now i want to display this activity is as a dialog for another activity..
how can i do that ??
Started by Faisal khan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
To Start activity as dialog i defined
now when i startActivity() it display like dialog and parent activity display on back, i wan a button to whom i click dialog should dismiss and parent activity looking for (look at the answer)....
|
|
What is "best practice"? Should each view have its own Activity? Never 2 views in 1 Activity?
Started by alex on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you're asking whether each Activity....
An Activity would bind to the Layout then you could get handles to any of the Views.
Each Activity should have a Layout and each Layout should have up a Layout.
Each widget is a View.
No no no...
|