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.

272 questions
0
votes
1 answer

ShakeListener implementation in separate class

I'm trying to implement a ShakeListener. So I made a Class called ShakeListener.java : import java.util.List; import android.app.Activity; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import…
Kees Koenen
  • 752
  • 2
  • 11
  • 24
0
votes
2 answers

Image shaking when StretchDIBits partially

I am using C++ GDI, StretchDIBits to draw images on DC. Because the original Image is large, and high quality is needed. I use HAFTONE mode, to draw whole image on DC(zoom the image) seems time comsuming. So I decide to draw partially using…
user25749
  • 4,489
  • 13
  • 57
  • 83
0
votes
3 answers

How to finish an activity on device shaken in android

I just want to finish current activity when i shake my device for 2 seconds. What should i do for that? Can anyone guide me please.
SANDHYA
  • 731
  • 7
  • 18
  • 26
-1
votes
2 answers

Shake event on mobile web apps

I was wondering of there is a way to trigger the shake event within a mobile web app? --EDIT--- Without using Phonegap.
Steaphann
  • 2,381
  • 3
  • 16
  • 15
-1
votes
1 answer

jquery shake doesn't work on divs

I was designing a webpage and needed JQuery shake to shake some divs but i couldn't get it to work so I guessed it maybe is something in my page which was preventing it. then I used it on two very simple divs but again it didn't…
Mahdi Ghajary
  • 1,355
  • 9
  • 16
-1
votes
1 answer

Shake sort using MACRO

Shake sort of vector: program works, but: I was trying to use the same function for bubble up and bubble down for shake sort (bubble up to get the MAX value to the right and bubble down to get the min value to the left). In order to do it I was…
user8180105
  • 27
  • 1
  • 2
-1
votes
2 answers

How to listen to a combination of events in an Android Service

I have an android service (in Java) that currently invokes a function that does things like getting geolocation coordinates when the user shakes the phone repeatedly. However, to reduce false-positives, I would like to be able to listen to a…
chidelta
  • 7
  • 1
-1
votes
1 answer

How I can get an Android phone to vibrate while shaking it?

I am just curious if my app would work out this way to make it vibrate when the phone is shook: if(event.values[0] > 1.0) { vibrator.vibrate(500); } else { if(event.values[1] > 1.0) vibrator.vibrate(500); } What I am doing is…
Rido
  • 27
  • 5
-1
votes
1 answer

bump API shutdown after 31st January what it's alternate for iphone

I am developing the app in which i successfully integrated a bump API but recently bump developer site announce that bump API shutdown after 31st January. Now i wondering about it's alternate way for doing this task in my application to implement…
Bhavesh Lakum
  • 130
  • 1
  • 12
-1
votes
1 answer

Shake Detection iPhone 3.0 not working

I have a ViewController that works perfectly with a button that trigger an action. I would like to replace the button with a shake event so I've googled it around and created a ShakeDetector class that ineherits from UIView and my implementation is…
-2
votes
1 answer

Android - Launching an app with a shake

I'm a newbie to this field of android development. I'm developing an app which I need to be launched by shaking the device. How can I get this thing done? I read many threads and tried out several codes. but non of them worked. Please be kind…
-2
votes
1 answer

Swift- Find location after shake motion ends

I know how to do shake gesture and how to find location separately, however I don't know how to find location after the user shakes the device. I have xcode version 6.4. Right now I have a motion ended function. And a showUserLocation function. I…
-2
votes
1 answer

Meter Gauge Android Shake Meter

How do I go about creating a Shake Meter similar to a Meter Gauge in Android? Can I make use of a progressbar to do it? Hope someone can give me a guideline on how do I go about creating the Meter Gauge upon detecting the shake. Thanks in advance.
-2
votes
1 answer

Does any one know how to navigate page using shake command

i want to navigate pages using shake command but its getting errors,So what i missed in my code.I cannot understand what is Accelerometer.Here my code. public class ACTIVITY extends Activity { /** Called when the activity is first…
samadi
  • 21
  • 1
  • 3
-3
votes
1 answer

How to let user press button first and then shake motion?

Possible Duplicate: How do i put a void(shake gesture) inside a IBAction(button)? Hi I have posted this question quite a few times before and I am getting quite tired. I am a total beginner and I will state exactly what I need but if you answer…
Stevenp
  • 3
  • 3
1 2 3
18
19