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
0
votes
1 answer

Shake Gesture Code Disabling Tweet Keyboard and Shake

The following code I have for a shake gesture works perfectly fine, it just when I have it across three separate uitableviews and once you leave one tableview to go to the next one, the shake gesture no longer works. Any idea how to make it work…
user331914
0
votes
0 answers

Icons of app can shake and delete app by long press in Iphone's HomeShell, I want to implement this effect.How can I implement is?

Icons of app can shake and delete app by long press in Iphone's HomeShell, I want to implement this effect. I knew the rotateAnimation is like the effect in android. But But using rotateAnimation bringed some problems, such as system performence. I…
0
votes
2 answers

How to make objects flying around in a view

How is it possible to let some objects fly around and bumb at the end of the view and collide on each other. The second step would add acceleration of the objects by shaking. I haven't found a tutorial yet or some step to begin at. thanks a lot for…
jacky
  • 71
  • 1
  • 1
  • 7
0
votes
2 answers

How do I prevent a specific view from responding to shake gestures?

I use shake gesture for my application but i have problem! My application is a multiview application and i want use shake gesture on the view 2. If i active shake gesture on view 2, I have to write the code below in the MainViewController.m and…
Mc.Lover
  • 4,813
  • 9
  • 46
  • 80
0
votes
1 answer

Good architecture for detecting Android device shake event?

I need to start an Activity in case of device shake in my Android application. This feature should work in my whole app and in all activities. Now sure how to provide a good architecture for it, because the detecting shake and starting an Activity…
narek.gevorgyan
  • 4,165
  • 5
  • 32
  • 52
0
votes
0 answers

How to detect shake event

I have extensively searched the internet to find my answer but no luck. I was wondering if it was possible to shake the android device and have the phone recognize it. After the phone recognized it, it would start a new intent(like a picture).…
CrazyCriss
  • 65
  • 1
  • 8
0
votes
1 answer

Playing song in background on shake

I want the app to start playing songs in background when anybody shakes the device. The song should stop playing when the app enter the foreground. I know we can play songs in background but I dont know how to start playing song on shake when app is…
user2185354
  • 519
  • 7
  • 23
0
votes
2 answers

background sensing of shake and GPS problems

MainAcivity.java package com.example.background_shake; import java.util.List; import java.util.Locale; import android.app.Activity; import android.content.Intent; import android.hardware.SensorManager; import android.os.Bundle; import…
mani bharataraju
  • 162
  • 1
  • 21
0
votes
2 answers

Start application on shaking iphone

I'm making an application were I want to start the application when user shakes his iPhone. Is this possible? Does any one knows how to detect this?
user1926201
  • 113
  • 3
  • 10
0
votes
1 answer

listen shake event when I am @ home screen in android

I implemented shake event form this. But how can I listen shake event in home screen? Is there any broadcast receiver or I have to create service for listen shake event? I found How to check If I am currently on home screen to get homescreen…
Bhavesh Hirpara
  • 22,255
  • 15
  • 63
  • 104
0
votes
2 answers

How to detect Shaking in service

I have Preferences Activity, which start a service on preferences changes. On service I want to detect shaking action. this code I have below, works fine when I used it in a activity, but when i want to use it on service, it just wont work, this is…
Reza_Rg
  • 3,345
  • 7
  • 32
  • 48
0
votes
1 answer

iPhone execute code during shaking

I have the following code: - (void) motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event{ if (motion == UIEventSubtypeMotionShake){ NSLog(@"Detected a shake"); } } This code NSLogs when shake began, or I can implement…
1337code
  • 169
  • 1
  • 3
  • 11
0
votes
2 answers

Scroll in gridView make view shake

I have a layout (which extends a framelayout) with a gridview and an imageview. I scroll through the layout with an onTouchListener,. In my Galaxy Nexus it works fine, but in AVD and other devices (Galaxy SII for example) the view shakes and I…
k0nig
  • 340
  • 4
  • 15
0
votes
1 answer

shake not working beyond certain value

I want to measure a big shake(Eg: Measure when bike or car gets into accident. I want to measure that phone shake). I have code for play audio when my mobile is shaken. But when I changed SHAKE_THRESHOLD value to a high level it wasn't working. Is…
Ram
  • 1,687
  • 3
  • 18
  • 28
0
votes
3 answers

Strange in ShakeGesture Library on Windows Phone Application

i've a problem with windows phone shakegesture library. I build an application which its shaking the sound will go out and its work nicely but strange bug make me confused. I've two page of it. This is my seperated code : void…
pacifistazero
  • 87
  • 2
  • 6