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...
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...
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...
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...
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
...
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 ^(....
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...
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...
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...
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...
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,...
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...
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
...
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...
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...
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...
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...
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...
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...
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 !",...