android-vibration Questions
3
Solved
I have an Android app with 9 buttons. This app runs on 2.36 and is the only app on the device (or at least the only app we let the user use - we ship the device with our code preinstalled as part o...
Bannerman asked 9/9, 2014 at 15:16
1
I'm trying to get if haptic feedback enabled in System Settings, i.e. globally on a device. I don't need to set this setting, just read.
We do it this way on Android 12 or lower:
Settings.System.ge...
Sketchbook asked 8/3, 2023 at 11:12
9
Solved
I am using Android's VIBRATOR_SERVICE to give a haptic feedback for a button touch.
((Vibrator) getSystemService(VIBRATOR_SERVICE)).vibrate(300);
Android Studio give me warning that method vibr...
Delete asked 10/8, 2017 at 5:23
11
Solved
I'm writing an app using notification. Google developer guidelines encourages developers to provide settings to customize the notifications (disable vibration, set notification sound...), so I am t...
Cagliostro asked 3/6, 2014 at 6:51
2
Solved
I have an app (already released) in which I've developed new feature with vibration. So I've added new permission:
<uses-permission
android:name="android.permission.VIBRATE" />
After rel...
Place asked 17/7, 2017 at 10:39
14
Solved
I wrote an Android application. Now, I want to make the device vibrate when a certain action occurs. How can I do this?
Rooster asked 19/12, 2012 at 10:32
4
Solved
I have a service that checks for updates on my website and I would like it to be able to cause a vibration when a update is found even if the screen is off or locked.
The vibration currently only ...
Penton asked 10/11, 2019 at 15:52
9
can anyone tell me how to vibrate same patter 5 times like this my pattern
long[] pattern = { 0, 200, 500 };
i want this pattern to repeat 5 times
Vibrator vibrator = (Vibrator) getSystemServ...
Task asked 4/5, 2011 at 7:50
2
Solved
so I made an app a couple months back that helped me improve my sleep. I have sleeping issues and, it sounds odd, but I use the app to vibrate my phone when I go to bed to give myself something to ...
Meteorology asked 29/2, 2020 at 15:31
5
Solved
I am trying to make my device vibrate when I touch an object on Screen. I am using this code:
Vibrator v = (Vibrator) getSystemService(getApplicationContext().VIBRATOR_SERVICE);
v.vibrate(300);...
Balmy asked 31/1, 2012 at 12:38
2
I'm trying to develop an app for android and Android Wear (Wear OS). I create a Notification from the mobile to the watch.
notification = new NotificationCompat.Builder(context)
.setSmallIcon(icon...
Telephonic asked 14/10, 2014 at 14:58
1
Is there a way to test vibrations on the Virtual Devices that come with Android Studio?
I tried searching logcat and it seems like there isn't any indication of when the Android device is vi...
Clementeclementi asked 14/6, 2016 at 6:9
3
Solved
I'm trying to find a way to disable and enable keyboard sound and vibration when tapping keys. I've searched on Stack Overflow and other Android Forums but i didn't found any result.
I've tried Au...
Copperplate asked 6/5, 2013 at 9:18
2
Solved
I am creating an app for Android API 23, and I want to get the default vibration pattern that is used when the phone rings?
I have this so far:
Vibrator vibrator = (Vibrator)getSystemService(Cont...
Crashing asked 14/6, 2016 at 7:1
5
I am defining a custom vibration for a specific functionality when notification is received.
However, when the phone screen is off, the custom vibration plays along with the default notification v...
H asked 12/2, 2017 at 9:23
2
Solved
Sometimes I read that
notification.defaults|= Notification.DEFAULT_VIBRATE;
and
notification.defaults = Notification.DEFAULT_ALL;
requires the vibrate permission
<uses-permission android:na...
Derrek asked 31/10, 2012 at 13:43
2
Solved
In my code I have:
Settings.System.putInt(this.getContentResolver(), "vibrate_when_ringing", isVibrateWhenRinging ? 1 :0);
Using the following permission:
<uses-permission android:name="andr...
Relieve asked 15/10, 2015 at 1:21
2
I know about the Vibrate class and how to use it, but where can I get the system default vibration pattern to use? Or is there some kind of intent I can launch to get the system to vibrate its defa...
Ava asked 23/9, 2013 at 17:24
1
I am trying to run the vibrator if service is called from my app.I am starting the service from Fragment but i don't know why vibrator is not working inside the service.I couldn't even print the To...
Gothar asked 2/5, 2015 at 17:1
3
I have used the below code to vibrate the device.
public void vibrator() {
try {
Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
vibrator.vibrate(5000);
} catch (Exc...
Conner asked 25/4, 2015 at 8:40
0
I tried to vibrate my app with device's default vibration settings but i can not do it with using Vibration. I tried it code which is below.
case AudioManager.RINGER_MODE_VIBRATE:
Vibrator vibra...
Falconet asked 5/3, 2016 at 15:9
4
I am trying to create an android application where I filter one specific frequency of a beep and make the phone vibrate.
I am taking input from the MIC of mobile and using MediaRecorder class, by ...
Stansbury asked 22/2, 2016 at 13:28
1
I am new to Android development. I want to make an app that is essentially a music player but the phone can vibrate to the beat of the music playing. I remember the earliest Nokia phones had this f...
Seine asked 11/3, 2015 at 8:23
2
Solved
I am trying to set vibrate and sound for notification. For some reason its not working for me :( Here is the code what I am trying
NotificationManager notificationManager = getNotificationManager(...
Hombre asked 28/12, 2014 at 22:43
2
Somehow tricky question. I am working with one app through which user can set incoming call custom ringtone and different vibration level for different contacts.
I have stuck with vibration level ...
Mimas asked 7/11, 2014 at 15:47
1 Next >
© 2022 - 2024 — McMap. All rights reserved.