handler

android AlertDialog get return value withouth handler

i would like to show a number of alertdialogs so the user has to handle off some questions (a little like a wizzard) is it possible to make the alertDialog wait until the user chooses something and then returning the choisen value? HashMap<Integer, Question> questions = DataConnector.getCallQuestions(position); int nextQuest...

Events handling with generic handlers in java

Hello I have written custom dispathing/handling event system that generally look like this: Event handler interface: public interface EventHandler{ } Base event class: public abstract class Event<H extends EventHandler> { public static Class Type<H> { } public abstract void dispatch(H handler); } Handler manager: public c...

Context Menu not showing up in tabPage

Hello everyone, I have this scenario: A windows forms application, which contains: a QTabControl (from Qios DevSuite) created in design view; a QTabPage created programmatically; a geckoWebBrowser inside the QTabPage, created programmatically as well. The problem: I have 2 events in the QTabPage: QTabPage.MouseDown - executes pe...

Android- Problem with an Handler

Hi I've a multiAutocompleteTextView which I load the adapter list by calling Host. That is to say, when the user write 3 letters in the searchZone, I call Host, and I propose him suggestions in relation to what he write. I would like to temporize this call. If user write more that 3 letters, The purpose is to wait the end before launc...

How to remove a runnable from a handler object added by postDelayed?

Hi, I have an "open" animation and am using Handler.postDelayed(Runnable, delay) to trigger a "close" animation after a short delay. However, during the time between open and close, there is possibly another animation triggered by a click...my question is, how would I cancel the "close" animation in the handler? Thanks ...

x-httpd-php5s <-- s!

I'm trying to replicate a web-site on a test-server. However, on the test-server, .php files don't get interpreted. I found that the cause is a .htaccess file in the document root. Its contents: # Use PHP5 Single php.ini as default AddHandler application/x-httpd-php5s .php RewriteEngine On #RewriteRule ^$ index.php [QSA] RewriteRule ^(....

Calling Looper more than once causes "sending message to a Handler on a dead thread"

I am using an Executor [fixed thread pool] with my own ThreadFactory that adds a Looper: Handler HANDLER = new Handler(); Executor THREADS = Executors.newFixedThreadPool(THREAD_POOL_SIZE, new ThreadFactory() { @Override public Thread newThread(Runnable runnable) { return new MyThread(new Runnable() { @Override...

c# how to deal with events for multi dynamic created buttons

Hello, I have created a WinForm and I added to it dynamic Buttons, how I can deal with it's events public static void Notify() { var line = 3; Form fm = new Form(); fm.Text = "Hello!"; fm.ShowInTaskbar = false; fm.ShowIcon = false; fm.MinimizeBox = false; fm.MaximizeBox = false; fm.FormBorderStyle = Fo...

HTTP 404 my Spring Controller is not handle on my specific URL

Hi all, I create a Controller bean to map a dedicated URI. My web.xml file : <!-- Spring MVC Servlet (that will route HTTP requests to BlazeDS) --> <servlet> <servlet-name>Spring MVC Dispatcher Servlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>cont...

ASP.NET Session Problem in ASHX and using Google Chrome and Firefox

Am not sure why when using IE, retrieving session values works just fine, but when using Google Chrome and Firefox, it's not returning any? I have already included IRequiresSessionState/IReadOnlySessionState in generic handler class, but still did not work. So my last resort was to add my session values as a query string in generic han...

How to kill a thread and handler before going to new activity...

Hey all - this code might be a bit messy in the way I'm trying to clean up the handler as I've been trying to track down where the crash happens... I've got a dialog activity that is showing a password entry with a progressbar being animated by a thread and handler... It seems that when I'm attempting to see if the progressbar is done,...

IIS 7.5 Can't open Handler Mappings?

I need to update the handler mappings on IIS 7.5 to allow URLs that don't have extensions to be routed to an application. The application was originally written in ASP.NET 2.0, but then later upgraded to ASP.NET 3.5. I don't know if that has relevance, but I've had no problem updating handler mappings for other .net 3.5 apps before. I sh...

Image handler in java write rgb values without using native java classes

I need to read an image pixel by pixel to obtain an array of RGB and write the image in shades of red, blue and green, but without using Image.io or specific java classes that handle and images ...

Android: General Direction for Bluetooth SPP App with Multiple UI Activities (Multithreading/Handlers)

I am relatively new to Android but have some experience with Java. This may be more of a Multithreading/handler issue as apposed to Bluetooth. I am writing an Application that has multiple layouts with buttons. I have set up onClickListners for the buttons. Some buttons will change the activity and bring up a new layout with new button...

GWT Authentication

Hi, I'm developing a GWT+Spring application and I'm having hard times integrating GWT with Spring Security system. Services are protected by spring security and response with 401 for un-authenticated users (anonymous) and 403 for unauthorized access. My problem here is that I can not make failed AsyncRequests handle those errors the wa...

Android: Multithreading-Bluetooth SPP/RFCOMM-How to keep my BluetoothSocket and OutputStream active when changing Activities

I am pretty new to Android and very new to Multithreading. I am writing an android application that contains multiple activities that implement onClickListners which sends a Bluetooth message on button click to . I have successfully been able to connect and keep my BluetoothSocket and OutputStream open while in one activity. I do not do...

android:Handler from a Runnable throws Null Pointer Exception

I have a Thread that downloads data from internet public class Bp implements Runnable { Handler myHandler; public void setHandler(Handler myHandler) { this.myHandler=myHandler; } .... myHandler.sendEmptyMessage (0); } There is an activity that needs to be updated according to downloaded data. public class Hp extends Activity impleme...

Updating UI with Runnable & postDelayed not working with timer app

I have looked at every discussion and thread I can find on getting this to work but it is not. I have a simple timer that updates a text view (mTimeTextField in the example below). The mUpdateTimeTask run method is being executed correctly (every second) but the UI/text field is not being updated. I have code based on the info found her...

C++ unhandled exceptions

Hello! Does C++ offer a way to 'show' something visual if an unhandled exception occurs? What I want to do is to make something like assert(unhandled exception.msg()) if it actually happens (like in the following sample): void foo() { throw std::exception("Message!"); } int main() { foo(); } I expect this kind of code not to te...

ProgressDialog dismiss() function does not work !

It works great on emulator but when i try it on Samsung Galaxy S, ProgressDialog keeps showing untill to force close the application. @Override public void onCreate(Bundle savedInstanceState) { . . . pd = ProgressDialog.show(this, "Working..", "Searching for words !",...