|
|
stackoverflow.com
- 2012-04-26 00:15:36
- Similar
- Report/Block
I have several iOS apps that all use the same port to listen for a network beacon. On the main view I use viewWillDisappear to close the port when another view is opened, which was working great. Then I noticed if I pressed the home button from the main view controller without opening another view to close the port, then the port stays op...
|
|
|
excelforum.com
- 2012-08-03 03:57:26
- Similar
- Report/Block
i'd like to get the last key or key-combo pressed. Windows API method is fine, or VBA. Note: I need to get this several seconds AFTER they key is pressed. I do not care about the current state of the key. I'm not trying to run a macro in response to a keypress. So, getasynckeystate and OnKey are NOT the appropriate solutions for this. The...
|
|
|
stackoverflow.com
- 2012-04-04 12:37:00
- Similar
- Report/Block
I am trying to detect dock key is pressed or not on my iPad. This dock key is a new feature in iOS 5. When this key is pressed the keyboard disappears. I need to detect it. When this key is pressed I need to change the frame of my view, but I couldn't get any event by pressing this key. I am trying to use the following function: - (BOOL)t...
|
|
|
|
macupdate.com
- 2012-07-31 16:10:50
- Similar
- Report/Block
PowerBlock intercepts presses of the power button and optionally runs an AppleScript. This is handy on the MacBook Air where the power button is now a key on the keyboard and can be accidentally pressed. By running an AppleScript when the power button is pressed, you can setup your system to immediately shutdown, restart, sleep, or eject...
|
|
|
stackoverflow.com
- 2012-10-21 19:13:25
- Similar
- Report/Block
I have the following code: public void tbSpeed_KeyDown(object sender, KeyRoutedEventArgs e) e.Handled = !((e.Key >= 48 && e.Key <= 57) || (e.Key >= 96 && e.Key <= 105) || (e.Key == 109) || (e.Key == 189)); Is there any way to detect if any modifier key like shift is being pressed ?...
|
|
|
stackoverflow.com
- 2011-06-17 01:40:50
- Similar
- Report/Block
In iOS, if I set a button's background to an image, and when I pressed the button, the whole content of the button(including the text) will be shadowed, can I achieve the same effect in Android, or do I have to use different images for different states? Also, even if I use different images for different states, how do I make the text also...
|
|
|
stackoverflow.com
- 2013-03-17 09:48:01
- Similar
- Report/Block
I'm trying to replace the stock lock screen with my own app. In my code, i want to disable the Home button. I know how to do this in Android 2.3 and below, but the same code doesn't work with Android 4.0+ (return to desktop when Home button pressed) Recently I found out an app called MiHome which has its own lock screen and is able to dis...
|
|
|
|
thestudentroom.co.uk
- 2013-04-25 22:24:31
- Similar
- Report/Block
Hi. So I recently bought a coffee maker and a plug socket timer, which I was going to combine to make a device that will automatically make me a coffee in the mornings to help me get up The problem is, the coffee maker needs to have a button pressed to work. I need to find some way to permanently have this button pressed. The button is sq...
|
|
|
stackoverflow.com
- 2012-05-20 15:01:04
- Similar
- Report/Block
My Symbian (Belle) main.qml has the standard: window.pageStack.depth <= 1 ? Qt.quit() : window.pageStack.pop() when the the back toolbar button is pressed which closes my app when pressed. I want to know what I should use to just minimize (or hide) my app when it is pressed like if I were to push menu button on the device? I searched f...
|
|
|
stackoverflow.com
- 2012-06-14 13:05:00
- Similar
- Report/Block
How to change color of menuitem button when it pressed. I use SherlockActionBar but when it pressed it changes color to one that it not really good for my design. I need to change this color. Updated: The point is when I set drawable i pleced on background and when button is pressed then change of bckground near m drawable changes. I can...
|
|
|
stackoverflow.com
- 2012-07-28 10:10:08
- Similar
- Report/Block
this is an easy question, in my xml file i have : <Button android:id="@+id/button_8" android:layout_width="0dp" android:layout_height="wrap_content" android:text="@string/Bf" android:background="@drawable/button_pur ple" android:layout_weight="1" android:textColor="#ffffff" android:onClick="action" /> And in my activity i have that...
|
|
|
stackoverflow.com
- 2012-04-15 10:48:50
- Similar
- Report/Block
How do I make it so that the program doesn't keep reading in code until the button is clicked? Why?: I have a 10x10 grid with buttons in each part and then code running depending on what is clicked. However, my program keeps reading in code so there is never a choice being made and it gives me error. I tried giving it a infinite loop unt...
|
|
|
|
stackoverflow.com
- 2012-08-05 09:57:18
- Similar
- Report/Block
update at the bottom There are 4 that are set to look like toggle buttons . When a button is toggled on: -it is animated as a pressed button, -it retrieves some content and it places that content into a box, and then -it returns a value of 1 to an array. (no problem.) Problem: When there is already one button button pressed, I don't unde...
|
|
|
stackoverflow.com
- 2012-03-07 16:24:27
- Similar
- Report/Block
I have three uibuttons named 1,2 and 3 and right at the bottom of those buttons i have an arrow image which indicates that which is the current button pressed. I want that when i press any of the button the arrow starts animating and slides at the bottom of the button which is pressed.
|
|
|
stackoverflow.com
- 2012-05-30 07:17:05
- Similar
- Report/Block
I have two classes in question. Both extend Activity. Class A public void displayinfo() setContentView(R.layout.dynamicinfo); //Add some buttons dynamically here //do some processing // move on to Class B In Class B: I want to go back to Class A state in UI if BACK button is pressed. Class B //Register a listener for this button Backbutto...
|
|
|
stackoverflow.com
- 2013-04-20 04:00:53
- Similar
- Report/Block
I am fairly new to this, I would really like some help on how to change a UILabel to add 1 to the previous number, everytime a the button is pressed. I.E i want it so when I press the button the UILabel turns from 0 to 1, and if I press it again it turns from 1 to 2. Any help would be greatly appreciated. Thanks in advanced. I know that I...
|
|
|
stackoverflow.com
- 2013-04-21 08:01:31
- Similar
- Report/Block
I know how to show an image when a button is pressed. But how do you "hide" the image again once the button is pressed a second time? Here is all I have so far... -(IBAction)Light LightLCD.hidden = NO;...
|
|
|
stackoverflow.com
- 2012-03-22 05:12:11
- Similar
- Report/Block
I have the Activity running in singleTop mode and C2DM receiver. On some notification I need to run that activity and I doing it in that way: Intent activity = new Intent(context, klass); activity.addFlags(Intent.FLAG_ACTIVITY_N EW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP); context.startActivity(activity); When activity if background (e.g. Ho...
|
|
|
|
stackoverflow.com
- 2011-11-27 17:57:10
- Similar
- Report/Block
Below is a picture showing how to show a popover in Xcode 4.2 using storyboards: The problem is that I can't get the popover to disappear when I click the button that made it appear. When the button is pressed (first time) the popover appears. When the button is pressed again (second time) the same popover appears on top of it, so now I h...
|
|
|
stackoverflow.com
- 2012-06-08 02:29:45
- Similar
- Report/Block
I have an application in android that includes a application home page. I override the hardware Home button to go back to the application home page for API level 10 or less. My application works fine on Android version 3.0 and 4.0. The problem is overriding the Home button. I found a discussion ( Disable Home Button in Android ICS (4.0)...
|
|
|
stackoverflow.com
- 2008-09-08 12:29:53
- Similar
- Report/Block
I have just started working with the AnimationExtender . I am using it to show a new div with a list gathered from a database when a button is pressed. The problem is the button needs to do a postback to get this list as I don't want to make the call to the database unless it's needed. The postback however stops the animation mid flow and...
|
|
|
|
stackoverflow.com
- 2013-05-21 17:50:53
- Similar
- Report/Block
I have a UIViewController with a UIWebView with the URL pointing to a video on my website which loads and streams fine when the page is opened. I then have a Back button on the same page to take me back using a segue. However if I use this button to return the video continues to play in the background. I presume the segue does not actua...
|
|
|
stackoverflow.com
- 2013-03-22 14:48:48
- Similar
- Report/Block
I'm having a matrix of buttons created in the main grid in a window, and also created the event for each one. I also have an integer matrix that contains some properties of each button(e.g. int a[1,2] is property for button btn[1,2]). I am planning to create something like a maze on which you can only pass from one button to another by le...
|
|
|
stackoverflow.com
- 2011-04-06 19:14:50
- Similar
- Report/Block
I've been working on a GUI in WPF which I'm fairly new to, having only used Windows Forms up until now. So far, my GUI is very simple: it contains two rectangles, each of which drops a shadow. The shadow creates an effect of rectangles "floating above the canvas" so to speak. When one of the rectangles is pressed, the myRectangle.MouseDow...
|
|
|
|
stackoverflow.com
- 2012-03-27 11:11:51
- Similar
- Report/Block
I'm developing an app in which I need to do an action when the power button is pressed but unfortunately I cant handel the action of power button when it is pressed. I tried using the onKeyDown() and dispatchKeyEvent() methods but nothing seems to be working. Can anyone suggest me any other method or solution for this problem. public bool...
|
|
|
stackoverflow.com
- 2012-04-17 10:13:40
- Similar
- Report/Block
I am using ActionBarSherlock and want a similiar functionality of the home button as it is known by Google Maps. I already managed to open a QuickAction (http://code.google.com/p/simple-quickac tions/) when pressing the home button with this piece of code: @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getIte...
|
|
|
stackoverflow.com
- 2012-08-06 07:14:22
- Similar
- Report/Block
Hi after searching on google i come here to ask about help. I use following method to go back when user press back button of device. @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { Log.i("===BACK BUTTON PRESSED===", "BACK BUTTON"); return true; } else { Log.i("===ELSE BACK BUT...
|
|
|
|
stackoverflow.com
- 2010-10-13 04:44:43
- Similar
- Report/Block
I've set up an onTouch class to determine when one of my 40 buttons is pressed. The problem I am facing is determining which button was pressed. If I use: int ID = iv.getId(); When I click on button "widgetA1" I receive the following ID: 2131099684 I would like it to return the string ID "widgetA1" from:game.xml from:game.java public boo...
|
|
|
stackoverflow.com
- 2012-05-15 17:00:55
- Similar
- Report/Block
In Xcode (iOS), I have a screen with a combination of buttons and text fields. However, they look different. Is there a way that I can have a button look like a textfield? Or is there a way I can make a textfield act like a button (perform some action when pressed and don't bring up the keyboard)? Thanks...
|
|
|
stackoverflow.com
- 2012-04-04 14:23:46
- Similar
- Report/Block
i am developing a SIP application for making and receiving a call. For that purpose i did analysis on open source project SipDroid . in that project how they catch the value of dialpads pressed button which is sent to the particular method for making a SIP call. i tried to find the code for that task but i didn't get anything.in which fil...
|
|
|
|
stackoverflow.com
- 2012-05-01 15:11:35
- Similar
- Report/Block
Hi all I am new to android development, infact its my first application. I want to know <button android:text="1" /> in above tag, text is the value of the button? if yes then how i can get this value or store it in a variable. if not, then how to define a value behind any button in android?...
|
|
|
stackoverflow.com
- 2012-03-08 03:13:51
- Similar
- Report/Block
I have a JFrame with three JButtons on it. One of the buttons is set as the Default button. This is my code: private void formWindowOpened(java.awt.event.WindowEv ent evt) // btnRefresh.setMnemonic(KeyEvent.VK_R); // even if this line // is not commented but...
|
|
|
stackoverflow.com
- 2012-05-06 12:06:24
- Similar
- Report/Block
How can I pause/resume a thread? Once I Join() a thread, I can't restart it. So how can I start a thread and make it pause whenever the button 'pause' is pressed, and resume it when resume button is pressed? The only thing this thread does, is show some random text in a label control.
|
|
|
|
stackoverflow.com
- 2012-03-30 08:00:05
- Similar
- Report/Block
In my application when i install it from APK, and start it , and press home button to redirect it to background, than again open the application through its app icon, than it restarts from the begening. Means application restarting when we go out through "home button click" and come back to application How to stop this please let me know...
|
|
|
stackoverflow.com
- 2012-04-03 03:23:30
- Similar
- Report/Block
I have a PHP script which is generating buttons to each content schedule. The script echo's 1 HTML button with the same name, class and ID, however the value's are set based on a variable. In jQuery I have declared the button based on it's class, so something like $('.save').button(); However when I click a button, it always returns the v...
|
|
|
stackoverflow.com
- 2010-01-08 16:46:56
- Similar
- Report/Block
Coming from the .NET-environment Im am now looking to understand how Dialogs work in Android. In .NET, when calling MessageBox.Show(...) that creates and shows a popup dialog. In the call to Show I can specify what buttons should be available in the popup, for example: DialogResult myDialogResult = MessageBox.Show("My text here", "My cap...
|
|
|
|
thestudentroom.co.uk
- 2013-03-01 11:41:13
- Similar
- Report/Block
Hello I'm sorry to post this here but its doing my head in and I can't find my instruction manual. My little boy got hold of my calculator and now the calculator will only give answers in standard form, even small numbers. I try pressing the SD button but it will not show me the answer in any other format. Ive pressed Mode and pressed 1:...
|
|
|
stackoverflow.com
- 2011-02-20 07:50:34
- Similar
- Report/Block
I'm using a UIDatePicker in a modal view, to select a date. I found that if the view is closed while the date picker is still rolling, I got a EXC_BAD_ACCESS. How can I detect of the date picker is rolling when the user tab a button? I had two ideas: 1) detect if the value has changed with this: [myDatePicker addTarget:self action:@select...
|
|
|
stackoverflow.com
- 2013-03-25 18:18:43
- Similar
- Report/Block
I am working on an android application project which has more than 8 activities just up to now. I need to learn how back button behave in android. Because I need to override it and do some actions when it pressed. When back button pressed android looks up the trace file and go to the activity which you came from to the current activity.
|
|
|
|
androidzoom.com
- 2013-02-22 13:46:43
- Similar
- Report/Block
Cnelsoft button is pressed, the device is a fun new zılgıt Zılgıt ... When you click on the picture to draw fire its funyy ... FREE
|