Questions tagged [shake]

An effect or gesture of rapid vibration. For example, shaking dialog box, shaking cell phone.

An effect or gesture of rapid vibration. For example, shaking dialog box, shaking cell phone.

277 questions
6
votes
1 answer

Shake the device to launch an application in Android

How can we launch a application by just shaking the device? I want to do something similar to the app "Appshaker".
jithinroy
  • 1,885
  • 1
  • 16
  • 23
6
votes
3 answers

How to make UIButton shake on tap?

I'm learning about UIView animations using keyframes and spring animations and I'm trying to make a button shake after tapping it. The issue is that I drag and dropped the button from the library and pinned the trailing edge to a UILabel above it…
LampPost
  • 856
  • 11
  • 30
6
votes
4 answers

Shake Device to Launch App

I am using this to work with Shake, and that works fine for me, but i wanna launch application when user shake their device, see my code below: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Sun
  • 6,768
  • 25
  • 76
  • 131
6
votes
4 answers

Make shake effect for label in ios?

Am working with shake effect for label i called the animation while pressing cell in tableview but it is not working.if i call animation in cellForRowAtIndexPath:(NSIndexPath *)indexPath it is working but if i cal it in…
IamDev
  • 299
  • 4
  • 17
6
votes
2 answers

how to detect and program around shakes for the iphone

I'm trying to implement the shake "tutorial" on this page, but I think I'm missing something. I copied his accelerometer function into myAppViewController.m file and put some nslogs in there to see if it even gets into the function when I use the…
Neo42
  • 642
  • 3
  • 10
  • 31
5
votes
2 answers

Implementing a shake event

I'm having trouble figuring out how to implement the code from this answer. Android: I want to shake it Do I need to create a method and use an if statement to find if mAccel is greater than 0? package your.shake.namespace; import…
5
votes
2 answers

Is there a stable way to detect shaking event?

I've tried to detect shaking event using accelerometer. I've found that when I give a contiuous shake to the phone, the value difference of the acceleration is quite stable. But when I rotate the phone, there's always a big change on the value( the…
Jim31837
  • 1,589
  • 3
  • 12
  • 12
5
votes
1 answer

Shake event works differently on various devices Shake Event custom implementation

I'm developing simple Shake feature for my app and i faced a weird problem. When I test it on my Honor5x it works like a charm, but when i tried to perform it on Samsung S5 it's way too sensitive. Is it possible that accelerometer works differently…
5
votes
1 answer

Detecting when UITextField text has changed due to shake undo?

I have a UITextFieldDelegate that does a whole bunch of validation on user input to determine whether or not they should be allowed to end editing. In one particular example, it is not valid to leave the field blank. Right now I'm using…
glenc
  • 3,132
  • 2
  • 26
  • 42
5
votes
2 answers

How to stop the UITextField from responding to the shake gesture?

By default, if you shake the iPhone while entering text in a UITextField, a little box will appear asking if you want to undo typing. How can I prevent this from happening? I looked through the UITextField, UITextFieldDelegate, and UITextInputTraits…
Jesse Beder
  • 33,081
  • 21
  • 109
  • 146
5
votes
2 answers

Shake animation (3d version)

I want to use this animation on errors, like the one shown here: How to achieve that in wpf? I have feeling this should be a combination (composition?) of multiple transformations, but which ones and how exactly? Here is a starter (mcve or call it…
Sinatr
  • 20,892
  • 15
  • 90
  • 319
5
votes
2 answers

Can I shake a users desktop using WPF?

I'm writing an application for personal use that will track how often I reach for the mouse, and will keep a counter of how long I've gone mouseless. When I use the mouse, I would like it to shake my desktop workspace for a second as a negative…
Scott Muc
  • 2,873
  • 27
  • 38
5
votes
2 answers

android - shake detection

I use this good library for detect shake motion on android devices. Everything is good! But on my phone (Sony Xperia P) receiving SMS cause my phone to vibrate and shake detected! In some other phone like HTC Sensation XE, the problem doesn't…
Hossein
  • 933
  • 2
  • 9
  • 21
5
votes
2 answers

How Can I add Shake Gesture in Cocos2d CCLayer?

I've tried using shake Gesture Recognition wrapper to detect the shake gesture. I've also tried to implement the code suggested in the Geeky Lemon. But I am unable to handle the shake gesture. Is there any way to get the shake gesture…
Marine
  • 1,097
  • 7
  • 19
4
votes
1 answer

Set App delegate as first responder

I'm trying to implement a shake recognition that works throughout my application. To do this I'm adding the following code to my xxxAppDelegate.m: -(BOOL)canBecomeFirstResponder { return YES; } - (void)motionBegan:(UIEventSubtype)motion…
FelixF
  • 83
  • 7
1
2
3
18 19