Well what I am basically doing is an app which has many activities. I have a few friends with android phones and I gave them the app for testing. However, it sometimes goes into endless cycles and does strange behaviour which I am not able to understand due to their lack of programming experience and inability to dump the logcat in those particular moments.   So what I need to do is to create a static always visible window, probably popup window, that shows in which method is the program now.   So my question would be, which is the best way to achieve this functionality and how to retrieve the current method the App is in (it has several threads).
37164
Is there a way to get the name of the currently executing method in Java?
74163
When working on a project, I generally have a couple of Explorer windows open to relevant folders and a couple of applications (e.g. Eclipse and a form development tool) open to specific project-related documents.  There's a lot of value in that context, and I'd like to find a way to save a set of open apps under a project name, then restore that state at a later date.    Thus far all of the utilities I've found are virtual desktop products that don't save/restore state.  I'm specifically looking for something that will run the applications I had running, open the documents I had open, and position the windows as they were.  I'm amazed that such a seemingly simple concept as "Save my workspace state" doesn't seem to be available.  I'm on Windows 7.  Any suggestions?
97673
Short version: I want to trigger the Form_Load() event without making the form visible. This doesn't work because Show() ignores the current value of the Visible property:  tasksForm.Visible = false; tasksForm.Show();   Long version: I have a WinForms application with two forms: main and tasks. The main form is always displayed. The user can either click a button to open the tasks form, or click some buttons that just run a task directly without opening the tasks form.  When a user asks to run a task directly, I'd like to just call some public methods on the tasks form without showing it. Unfortunately, the task logic depends on stuff that happens in the Form_Load() event. The only way I can find to trigger Form_Load() is to call Show(). The best I've been able to do is to show the form in the minimized state:  tasksForm.WindowState = FormWindowState.Minimized; tasksForm.Show();   I suppose the cleanest solution would be to pull the tasks logic out of the tasks form and into a controller class. Then I can use that class from the main form and from the tasks form, and only load the tasks form when I need it visible for the user. However, if it's an easy thing to load the form without displaying it, that would be a smaller change.
23642
So for viewing a current object's state at runtime, I really like what the Visual Studio Immediate window gives me.  Just doing a simple  ? objectname   Will give me a nicely formatted 'dump' of the object.    Is there an easy way to do this in code, so I can do something similar when logging?
70096
I wonder how can I write a catch'em all exception handler in the application level which will give the user the option to resume the application flow?
26396
I'm wondering if it is possible to determine if a user already has a web browser open to the web application I'm working on. It seems that they can open several instances of the same web app and click on buttons to read information that they have used before to enter into an input screen that they're currently working on.  What happens though is that it seems to screw up Session variables and then the user will update their previous work with their new work. Or they will delete their previous work all together or who knows...  EDIT I have seen this done before with online banking web applications. If you are already logged in, the new window will kindly tell you that you already have the app open. In my case, the user does not need to log in.  Is there a simple way to determine if they already have a browser window open to the web application and if so, just close the browser or display a different page to let them know they can only have 1 open at a time?  Thanks
61917
I want a splash screen to show while the application is loading. I have a form with a system tray control tied to it. I want the splash screen to display while this form loads, which takes a bit of time since it's accessing a web service API to populate some drop-downs. I also want to do some basic testing for dependencies before loading (that is, the web service is available, the configuration file is readable).  As each phase of the startup goes, I want to update the splash screen with progress.  I have been reading a lot on threading, but I am getting lost on where this should be controlled from (the main() method?). I am also missing how Application.Run() works, is this where the threads for this should be created from? Now, if the form with the system tray control is the "living" form, should the splash come from there? Wouldn't it not load until the form is completed anyway?  I'm not looking for a code handout, more of an algorithm/approach so I can figure this out once and for all :)
87772
I would like to see what are all the applications/process being run at present in my Ubuntu system. is it possible to get the list of running applications, and how to do so.
30039
When logging in C#, how can I learn the name of the method that called the current method? I know all about System.Reflection.MethodBase.GetCurrentMethod(), but I want to go one step beneath this in the stack trace. I've considered parsing the stack trace, but I am hoping to find a cleaner more explicit way, something like Assembly.GetCallingAssembly() but for methods.
121876
If I have 2 windows of the same program open (Google Chrome for instance), and I want to get to the underlying one, how can I do that -- without minimizing the fore window.  If I click the Chrome icon, in the bottom tray it justs shows me the window in the front. There is no window in the right of the tray since it it not minimized. If I command+tab, I just get one icon for the application, which focuses the window that is already in front.  The only way I know of to get to the rear window is to minimize (or move out of the way) the front window. I find this slightly annoying, (and sometimes even forget I have a second window open because I don't know of anything indicating there is a second window open?)   So is there another way?
6520
My question is about one particular usage of static keyword. It is possible to use static keyword to cover a code block within a class which does not belong to any function. For example following code compiles:  public class Test {     private static final int a;         static {         a = 5;         doSomething(a);     }     private static int doSomething(int x) {         return (x+5);     } }   If you remove the static keyword it complains because the variable a is final. However it is possible to remove both final and static keywords and make it compile.   It is confusing for me in both ways. How am I supposed to have a code section that does not belong to any method? How is it possible to invoke it? In general, what is the purpose of this usage? Or better, where can I find documentation about this?
62849
Is there any way (such as a command or environmental variable) to determine what window manager is the one actively running in the current session?
2912
Occasionally, I've come across a webpage that tries to pop open a new window (for user input, or something important), but the popup blocker prevents this from happening.  What methods can the calling window use to make sure the new window launched properly?
53501
I'd like to know how to grab the Window title of the current active window (i.e. the one that has focus) using C#.
46116
Are moderator tools, specifically flagging or voting to close going to be implemented in the Android app? If we have a dispute, we should at least have the flag option.  What about share option? If we would like to share a question, we could long press on the question title, and the question title, excerpt, and short URL copied to clipboard.
118759
Question  I'm writing some code that needs to be able to get the values of the parameters from the method that called into the class. I know how to get all the way to the ParameterInfo[] array, but I don't know how to then get the values. Is this even possible?  If it is, I think it has something to do with using the MethodBody property from the MethodInfo object, which allows you to inspect the IL stream, including properties, but I don't know how to do it, and I haven't found applicable code on Google.  Code  // Finds calling method from class that called into this one public class SomeClass {     public static void FindMethod()     {         for (int i = 1; i &lt; frameCount; i++)         {             var frame = new StackFrame(i);             var methodInfo = frame.GetMethod();             if (methodInfo.DeclaringType != this.GetType())             {                 string methodName = frame.GetMethod().Name;                 var paramInfos = methodInfo.GetParameters();                  // Now what?? How do I get the values from the paramInfos                  break;             }             else if (i == frameCount - 1)             {                 throw new TransportException("Couldn't find method name");             }         }     } }
123234
I just noticed a bug in the Stack Exchange Android app. A question is displayed incorrectly if the Achievements drawer is already open when the app loads a question. It looks like this:    To reproduce:   Open the Stack Exchange app, and tap the Achievements icon from the top. Leave the app without closing, then try to open a question from external source (e.g. search result, web browser, or Hot Network Question widget)   For reference, I'm running Android 5.1 on a Nexus 5, and the app version is 1.0.68.