As an artist and musician, I often want to sit down and just let the code roll like a piece of free-form poetry, but I've found that doesn't work as well as when I have a set goal in mind. I've been experimenting lately with setting up tiny, fun goals for myself, not unlike how an artist would sketch a quick still-life, but I wonder...
...
Is there a way using Java that I can gain a list of all active processes running on a Mac?
I can do so in Windows using the code below to return the Task List, but that throws an exception on a Mac. I want my app to stop if certain applications are also running.
Any ideas? Thanks.
Windows Code:
Process p = Runtime.getRuntime().exec...
Hi, I've been trying to get my progress bar view to work in my file scanner application, and I'm thoroughly stumped by the proper combination of Activities, Services, Threads, and Handlers.
Here's the structure: My Activity contains a Horizontal-styled ProgressBar. On menu item click, I spawn a Service which, onCreate(), which is where ...
We have a bit of an issue where we are trying to figure out what is causing the problem. Can anyone clear up when android:manageSpaceActivity is run? We know if you click on the ManageSpace button under the Application information under manage applications it runs the code.
We have some users saying they did an upgrade of our applicati...
How to get EditText value from Sub-Activity? With a condition that in Sub-Activity I click back icon on the phone there's no error?
This is my Sub-Activity code
public class SBooksSearch extends Activity {
private EditText mTextSearch;
@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
s...
Hi, I want to get the Text data value from Sub-Activity back. And everything is ok. But when the Sub-activity was opened, then I just click back "button" on the phone, it throw an exception error. I found on the android NotePad life-cycle control toturial but It's hard to understand. Can someone help me? This is my code:
public class SB...
Hi
Im trying to find a way to set a new default ringtone by code from my Android activity.
I have already downloaded the ringtone into a bytearray.
Anybody got a hint?
...
When Apple introduced version 3.0 of the iPhone OS the UIImagePickerController changed slighty: it no longer provides an activity or progress indicator after the user confirms a recently taken photo. In a nutshell, you now
- take a picture,
- decide it's ok and
- hit the "Use" button and wait.
There is no indication as to whether you ...
Hi, I'm implementing a Custom Workflow and Activities to be reused in multiple projects and trying to get them to be as easy to use as possible. In this workflow I have a Property whose name is 'UserID' which I'd like to bind to a dependencyproperty in one of my activities. I can currently bind it at design time searching explicitly for ...
Hi
I have a service that is downloading a file. When the download is done, I would like to update my "Downloaded files" list in my Activity, but only if the Activity is running. I do not want the Activity to start if it's not already running.
I was hoping I could do this by making a new Intent with some special flag.
Anyone have any i...
Hello, I'm working on automated builds and need to be able to list elements that were worked on under particular activities. I'm new to ClearCase so I apologise for naiivety ...
My downstream build process works fine and I now need to populate a 'pre-build' area by identifying the (checked-in) files associated with one or more activiti...
I am experiencing a crash in my app when I quit (via the back button) out of my Activity. So far as I can tell this is happening in the Android codebase and not mine, but I'm not completely convinced of that.
Here's the stacktrace from adb:
AndroidRuntime E Uncaught handler: thread main exiting due to uncaught exception
AndroidRuntim...
I want to track my custom activities' property values in my own tracking service, .i.e. I don't need it in the built in SQL tracking service. I have been successful in reproducing the SQL tracking service in that I can see the worklfow and activity states etc. but I want to see property values also.
We are writing many workflows for a d...
Hello,
I'm struggling with Silverlights' activity control. I placed a grid inside the activity control and no matter whether it shows "Loading..." or not, the grid doesn't stretch anymore, only the min-values are applied.
After removing the activity-control everything works fine, againg - but I need to use the ctrl.
Did I do something wr...
how to restart an android Acitivity? I tried the following, but the activity simply quits.
public static void restartActivity(Activity act){
Intent intent=new Intent();
intent.setClass(act, act.getClass());
act.startActivity(intent);
act.finish();
}
...
Suppose you want to start a new activity and pass it some data from the current activity. If the data is of a primitive type you could simply use an intent and add extras, but how would you do this for more complex data structures like arraylists or objects?
...
I have 3 different Activities that user navigates between in no particular order. My goal it twofold:
When user switches to something else when app is resumed I want to start where user left even if app was terminated
When last activity is resumed I want to restore it to the last viewed state (this one I think I have a pretty good idea...
I am aware of my problem but cannot find a solution. When the button is pressed it tells the UIActivityIndicatorView to startAminating and also retrieve data from a XML feed. Problem I am having is it runs the whole event before starting the animating of the loader, so the loader never spins before the data is retrieved. How can I sta...
Hi,
The application I'm currently working on consists of several dialogs and there is an issue with one dialog I still haven't found the cause.
Running the debugger the execution reaches the following two lines:
Intent intent = new Intent(this, DlgLogin.class);
startActivityForResult(intent, SHOW_SUBACTIVITY_LOGIN);
and then the onC...
Hi,
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 responses and I would like to close the foreground activity when the main activity receiv...