shake Questions
5
I added the following code to my appDelegate.m
- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event
{
}
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event
{
i...
4
Solved
I need to pass a boolean value to and intent and back again when the back button is pressed. The goal is to set the boolean and use a conditional to prevent multiple launches of a new intent when a...
Hilda asked 19/7, 2011 at 17:41
17
Solved
I need to add a shake feature that will refresh my Android application.
All I find of documentation involves implementing the SensorListener, but Eclipse tells me it's deprecated and suggest Senso...
Beaird asked 23/2, 2010 at 10:48
3
Solved
How can I detect a device shake in the AppDelegate (across the entire app) in Swift?
I've found answers that describe how to do so in a view controller, but looking to do so across my app.
Downhaul asked 13/1, 2016 at 17:20
7
I am making an android app, and I have a button which leads to a messaging place. On the activity with the button, I check if there is any unread messages, and if so I want to do something to the b...
17
Solved
I want to react when somebody shakes the iPhone. I don't particularly care how they shake it, just that it was waved vigorously about for a split second. Does anyone know how to detect this?
Ureide asked 29/9, 2008 at 20:14
1
I'm building a web app in html5 at the moment that needs to be able to detect when the user shakes their phone and how fast they are shaking it. I've been browsing around but can't seem to find any...
Conservative asked 8/9, 2012 at 20:23
1
Using UI tests, I'd like the app to respond to shake gestures, and I would like to programmatically trigger a shake gesture in my swift UI tests.
Triggering the shake gesture while recording durin...
Hexapla asked 25/7, 2015 at 22:0
3
I am trying to hit an API when user shake a device 10 times. I have tried many git sample and stack overflow solution but non of them did solve my problem. Some of them detecting shake before 10 ti...
Cyruscyst asked 28/7, 2016 at 10:36
4
Solved
On the shake of the iPhone device i want some function to be called, i dont know how to recognize shake so i tried some link and tried this code
- (void)motionBegan:(UIEventSubtype)motion withEve...
Kannan asked 18/5, 2011 at 9:19
3
Solved
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 lib...
2
Solved
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?
...
1
I am new with android and im looking for a way to shake my buttonimage on click. I got this so far but it crashes all the time. Or if you click it nothing works.
I hope you people can help me out. ...
Fite asked 17/2, 2014 at 19:27
2
Solved
3
Solved
How can I programmatically trigger the shake event in iOS?
I've tried the following but it keeps crashing...
+ (void)shake {
NSLog(@"TEST");
UIMotionEventProxy *m = [[NSClassFromString(@"UIMot...
1
Solved
I want to create an app that **starts the Main activity whenever the device shakes, even when screen locked. Can anyone explain how to do that?
I have an idea that it requires to create a s...
Oxonian asked 2/7, 2014 at 18:9
4
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 savedInstanc...
4
Solved
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 work...
Nymphet asked 13/8, 2013 at 7:9
4
Solved
Is it possible to listen for an iPhone (or any mobile phone with accelerometer) shake event with JavaScript? You know like shaking the iPhone to shuffle the next song in iTunes I want to call a JS ...
Elwaine asked 4/2, 2010 at 18:38
1
In my iPhone App I have used shake gesture it is working but it requires lots of efforts to shake.
Is there any way to make it more sensitive?
Here is the code
- (void)motionEnded:(UIEventSubty...
Beget asked 5/3, 2012 at 5:47
1
Solved
How can we launch a application by just shaking the device? I want to do something similar to the app "Appshaker".
1
Solved
I'm using the shake api like this:
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event
{
if (event.subtype == UIEventSubtypeMotionShake)
{
[img stopAnimating];
}
}
How do...
Crackling asked 26/1, 2011 at 17:9
2
Solved
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 UIT...
Backhand asked 7/9, 2010 at 22:13
2
Solved
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...
Incorporable asked 27/8, 2009 at 11:31
2
Solved
after reading some posts about implementing shaking on 3.0, I think I get the idea but I'm not getting any call to the:
motionBegan
motionEnded
motionCancelled
this is an example of what I've rea...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.