activity

Implementing a custom Windows Workflow activity that executes an asynchronous operation

I'm having some conceptual trouble on figuring out how to best implement this... I want to create a custom Activity class for Windows Workflow. The activity has to call out to a third party library method that itself runs another process asynchronously and may take anywhere from seconds to many hours to complete. This library offers th...

What's the best manner of implementing a social activity stream?

Hi, I'm interested in hearing your opinions in which is the best way of implementing a social activity stream (Facebook is the most famous example). Problems/challenges involved are: Different types of activities (posting, commenting ..) Different types of objects (post, comment, photo ..) 1-n users involved in different roles ("User ...

detecting keyboard, mouse activity in linux

Hi all, I need some way to detect mouse/keyboard activity on Linux. something similar to what any IM program would do, if no actiivty is dected for say 5minutes, it will set your IM status to "I'm not here right now" Any help towards this is appreciated. Thanks ...

Android: Capturing the return of an activity.

I have a question regarding launching new activities. It boils down to this. I have 3 tabs on a view A) contains gMap activity B) camera activity C) some random text fields. Requirement is that the application runs in Portrait mode. All 3 tabs work as expected w/ the exception of the Camera Preview Surface (B). It is rotated 90 deg...

Activity restart on rotation Android

In my Android application, when I rotate the device (slide out the keyboard) then my activity is restarted (onCreate is called). Now, this is probably how it's supposed to be, but I do a lot of initial setting up in the onCreate method, so I need either: 1. Put all the initial setting up in another function so it's not all lost on device...

Android: Strange out of memory issue

I am not sure where to start to explain this one. I have a list view with a couple image buttons on each row. When you click the list row, it launches a new activity. If you review some of my other posts, I have had to build my own tabs because of an issue w/ the camera layout. The activity that gets launched for result is a map. If I c...

How to use activity indicator view on iPhone?

An activity indicator view is useful in many applications. Any ideas about how to add, activiate and dismiss an activity indicator view on iPhone? All the methods for this are welcomed here. ...

Android Override Explicit Intent

Hello, My app needs to have a intent-filter that responds to a intent that has it's component set (a explicit intent.) Here is a example. Intent i = new Intent(); i.setClassName("com.compareeverywhere","com.compareeverywhere.ScanActivity"); startActivity(i); Just a simple intent-filter will not do - because the intent is made for a ...

Dataflow between Android BroadcastReceiver, ContentProvider, and Activity?

I've developed an application that receives a Broadcast and then launches an Activity, where that Activity queries a ContentProvider which pulls information out of the DNS in real-time. I'd like to be able to shuffle this so that instead of going: BroadcastReceiver.onReceive() { Intent intent = new Intent(...); intent.setData(...);...

How to detect user activity with a Java service running on Windows?

My goal is to create a system monitoring application using Java. I would like to know when a user is doing activity on a Windows PC. The result would be something like this: 8:00 - 8:15 activity 9:12 - 10:29 activity 12:24 - 15:34 activity I'm not interested in any other information (which key was pressed, application used, etc.). On...

Android: Restoring the active Activity while resuming the application

I have two activities running: mainActivity and childActivity. Whenever the user clicks in the button in mainActivity, the childActivity is launched. What I want to do is this: When the active activity is the childActivity and the user clicks the home button then relaunch the application, I want to see the childActivity instead of mainA...

Using Intent in an Android application to show another activity

In my Android application, I have two activity classes. I have a button on the first one and I want to show the second when it is clicked, but I get an error. Here are the classes: public class FirstActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...

Passing a Bundle on startActivity()?

What's the correct way to pass a bundle to the activity that is being launched from the current one? Shared properties? TIA. ...

Using Progress Bar Load new view

In my application one of my views takes longer than normal to load (it is a scroll view with many pictures) so I figured I would let the user know what was going on while the view was loading. So I put in a progress bar that uses a timer for how long it usually takes to load. The only problem is that when the button is touched the iPhone...

How do you make an Android "Home" shortcut bypass the app it's point to's history?

I have an app that allows you to create Home "shortcuts" to a specific Activity. It turns out that some of my users will use the app, hit the home key to go do something else, then use one of the shortcuts to jump back to that Activity. Since the app is still in memory it just opens the new Activity on top of the others and the "Back" ke...

ADAM activity

We have an application that will retrive intformation from ADAM server. I would like to moniter the user activity on ADAM server and would like to capture the user requests on the ADAM server. Is there any tool that will help to get this info. -svr ...

connecting an UIActivityIndicator to a UIButton

New to all this Xcode stuff - I have a few UIButton's that links to movie & music files from my web site - they works fine, it's just that there's some lag time while it's loading the MoviePlayer where it seems as if nothing's happening. I would like to set up an UIActivityIndicator - I can't sem to find a simple way to do it. And if...

Android: How to pass the data to sub-activities?

Hi, The main activity includes some variables with set values. I created a sub-activity with the form which has to be filled with the data from main activity so I guess the data have to be passed to the sub-activity when it starts. Does anyone know how to pass the variable values to the sub-activity from the main activity? Thanks! ...

How to communicate between Android tabs

Hi Im trying to setup some tabs for my android application, but i got stuck. I cant find a way to communicate between the tabs.. I got 2 tabs. |Search|Result| The search tab is simply showing a TextEdit and a "Search" button. Hitting the search button should make my app change to the result tab and display the result. i have adde...

Android: NullPointerException at android.app.ActivityThread$PackageInfo$ServiceDispatcher.doConnected(ActivityThread.java:1012)

Hello, I am getting a NullPointerException at android.app.ActivityThread$PackageInfo$ServiceDispatcher.doConnected(ActivityThread.java:1012). My application is not even in the stack trace, so I have no idea what is going on. I am trying to connect to a service when it happens. How can I fix this problem? Thanks, Isaac Waller ...