Android :: Vibrate() Does Not Behave According To API Docs - HTC Desire
Aug 22, 2010
I'm trying to get a simple vibration working and according to the api docs(http://developer.android.com/reference/android/os/Vibrator.html) all I need to use is this: public void vibrate (long milliseconds)
Turn the vibrator on. Parameters milliseconds How long to vibrate for.
However the behavior I am seeing is not what is described. Instead of a number of milliseconds, it seems this parameter translates into an "intensity"?
I tried: vibrator.vibrate(200);
And I got a sustained vibration which didn't stop until I exited my app. Initially I thought perhaps the api docs were wrong and the parameter was seconds, not milliseconds, so I tried: vibrator.vibrate(2);
This time I got the same behavior, i.e. continuous vibration, but the vibration was very gentle.. almost in-perceptible. This leads me to conclude that the parameter translates into an intensity, not a time.
Is it possible that this is a "feature" of the particular device? In my case HTC Desire.
I'm running 2.1 as my crappy telco hasn't distributed an update to 2.2, but it worries me that this behavior may differ from device to device.
View 4 Replies
Oct 6, 2010
I am new Android user and very happy with HTC Desire. However, frustrated that common Office apps not able to edit e-mailed docs, or send edited docs. Have looked at Quick Office; Documents To Go; & Office Suite Pro. Anybody know of a suitable app - this seems like a significant limitation to me. Adam
View 8 Replies
View Related
Jun 5, 2010
My phone when in vibrate mode doesnt vibrate when i receive a text, but does if i receive a call, all settings are as they should be for it to vibrate....
View 3 Replies
View Related
Nov 17, 2010
i have found the only thing the droid is unable to do is Print. excel docs, pdf's, word docs.... have i missed something? is there an app out there that will allow you to do so?
View 2 Replies
View Related
Jul 10, 2010
Is it possible via shortcut or widget to view Google Docs? Or is the way via the internet?
View 2 Replies
View Related
Mar 23, 2010
I have a singleton class and I am using it to access databases. I would like to know how it would behave if I use the same from my remote service class which runs as a separate process. Will it create a new instance in that process or will it use the instance from the other process?
View 3 Replies
View Related
Nov 11, 2009
I had an iPhone until I got the Droid yesterday. I absolutely love the Droid and would never go back to an iPhone. However, the iPhone integrated well with my car radio, which has a USB port. The radio can play from USB, but then I have to navigate my folders from the radio. It's difficult, unintuitive, and less functional than playing music directly from the phone.
Is there an app that would fake out a connected device to make it think the Droid was an iPhone, and would let me use the Droid's music player interface to play music through the USB?
View 7 Replies
View Related
Jan 26, 2010
I have a widget that acts as a launcher on the home screen. How can I make it behave like a launcher icon?
I use this layout for portrait:
CODE:................
And this is the background selector:
CODE:................
This way if I use the DPAD the widget is focusable but the click doesn't work. The touch still works but the widget is not displayed as focused.
View 2 Replies
View Related
Apr 7, 2010
I have a LinearLayout inside a HorizontalScrollView. The content is just a image. While scrolling, I need to achieve the same behavior you get when setting the paging option on a the iPhone equivalent of the HSW (scrolling the list should stop at every page on the list, not continue moving).
How is this done in Android? Should I implement this features by myself or there is a particular property to set or a subclass of HSV to implement?
View 1 Replies
View Related
Jun 18, 2009
If anyone can help me with some information if there is a way to make an application on Android Dev Phone ask for permissions, like it does on G1. When I install an application on ADP, I only get the message "no permissions required", is there a way to make the ADP behave like a G1 phone?
View 7 Replies
View Related
Oct 5, 2009
I am developing a simple widget which has a couple of buttons in its layout.
Before the widget gets added, the configuration activity is displayed, where the user can choose if the widget makes any sounds when the buttons get pressed or not.
Thus, a user can put two instances of the widget, one where he chose sound to be activated and another where he chose the opposite. However, I can not seem to be able to reproduce the expected behavior (that one reproduces sound and the other doesn't).
The buttons' behavior varies according to the flags specified to the PendingIntent:
- FLAG_UPDATE_CURRENT seems to override the previous intent/setting - no flags (0x00) seems to ignore any intent/setting after the first instance of the widget is put.
What I want to do: I want to be able to configure different instances of the same widget to behave in a different way, according to what the user specified in the configuration activity. I am attempting to do this with the help of the appWidgetId of each instance:
I have tried the following when assigning an action to the click of the button:
CODE:.................
This results in the first widget acting properly (The IDs printed in logcat are as expected) When adding a second widget, however, the first widget starts reporting the second widget's appWidgetId in its onReceive(), when it previously did no such thing. (because of the FLAG_UPDATE_CURRENT, I guess)
How can one make different instances behave in a different way? Is there a way to do this with the help of the appWidgetId?
I have elaborated a widget application for the purpose of debugging this problem which tries to be minimal, while reproducing the (un) desired behavior: http://www.2shared.com/file/8243059/b6519584/IntentTesttar.html
View 5 Replies
View Related
Aug 24, 2010
All I want to do is create a simple "vibrate" profile that turns phone calls and text messages to vibrate. I have the call part but the messages just come in silently with no vibrate. I have the following in the task:
1) Vibrate on Notify: On
2) Vibrate on Ringer: On
3) Silent Mode: Vibrate
View 6 Replies
View Related
Nov 24, 2010
I have downloaded Handcent and love all the options that it gives. However, there are times when I set my phone on silent and do not want anything to vibrate. I have went through all of the settings and notifications and changed everything to "never" vibrate. But still when I receive a new message it does the 3 or 4 vibrate tones. I am sure I am over looking something, but I am gettng a little aggervated.
View 3 Replies
View Related
Apr 22, 2010
i seemed to have lost the phone vibration when receiving text messages even though the option is selected in sms/settings does anyone have any ideas?
View 6 Replies
View Related
Oct 10, 2010
Had a strange problem this morning where my desire has decided to stop vibrating. Checked all of the settings and vibrate is turned on but nothing. Not even feedback when typing on the keyboard. Any ideas?
View 2 Replies
View Related
Sep 10, 2010
I noticed when i installed the 2.2 OTA Update last night that when i turn off my Desire now it doesn't vibrate...is there away or an app to restore this function.
View 3 Replies
View Related
Jul 13, 2010
When i get sms message i get the notification light but it does not vibrate despite all settings set to vibrate. also, how do i set up sim lock? i.e. when i turn my phone on i need to put in a 4 digit code to activate the sim?
View 2 Replies
View Related
Jul 3, 2010
I like Lockbot, for the swipe and different picture, but i cannot find out how to remove the vibrate when unlocking?I've tried everything. There is just a "Sound" option, not a vibrate.
View 3 Replies
View Related
Sep 18, 2010
Is the ringer on the Desire loud, how is the vibrate can you feel it, and lastly how is the speaker for music?
View 4 Replies
View Related
Sep 13, 2010
I use Handcent but I don't know how to turn off vibrate when receiving sms. I have it unchecked in the settings of the phone but not sure how to turn it off in the app itself.
View 1 Replies
View Related
Apr 13, 2010
Is there any way of changing the settings for the Vibrate profile so it makes a small beep when it rings or you get a message. The items are all greyed out. I use it when I have my headphones in or on a train and would like a small noise to let me know if I have a call or message.
View 1 Replies
View Related
May 31, 2010
I have a big background image for my views's background, which also can be tiled (it's repeadable). When switching from one Activity to another i want the background to behave like on the homescreen (the background moves only a bit, but the foreground moves one screen with). Is this possible and how? Here is my current background definition:.............
View 1 Replies
View Related
May 1, 2010
Was wondering if theres any lock screen app that allows me to silent/vibrate my phone... (got root)
View 2 Replies
View Related
May 27, 2010
Sorry if this has been bought up in the past but how do you get the phone to vibrate on incoming messages? I have the phone set to vibrate on incoming messages but does not work. does vibrate for phone calls though.
View 7 Replies
View Related
Oct 20, 2010
I have a Droid X with the OTA 2.2 rooted and when I put the phone in Vibrate the phone will not vibrate at all not for phone calls, text, or email? I have "MINI INFO WIDGET" and when I go in there to adjust the volume to vibrate it will work but then when I try to go back to Sound Profile I have to manually adjust the sound again? I have Vibrate Widget and when that is selected it goes to silent only. I tried Uninstalling MINI INFO and VIBRATE WIDGET but I still have the same result sooo it can't be the programs.
View 3 Replies
View Related
May 17, 2009
I want an EditText to look like TextView but still behave like EditText. I've tried applying TextView style to my EditText in my layout.xml file, like this:
CODE:............
But I get an error within xml editor: "Error: No resource found that matches the given name (at 'style' with value '@android:style/ Widget_TextView')." It is strange because @android:style/ Widget_TextView definitively exists - I double checked it in code via android.R.style.Widget_TextView. Another strange thing is that I don't get android:style offered in the xml editor while typing? There is android:id, android:text and everything else.. but not android:style?
I consider the hard way (making EditText look like TextView) to be: extending EditText and overriding it's onDraw method.
View 9 Replies
View Related
Nov 10, 2009
Just noticed there's no google docs app, strikes me as weird, considering almost every other google service has an app. anyone know anything on this?
View 35 Replies
View Related
Jan 12, 2010
I know I am late in trying this online doc cloud, but where is they darn app for it? I looked on android market and it just is not there. I would like to be able to sync also, am I just in the clouds like my docs?
View 1 Replies
View Related
May 27, 2009
I have looking for something and found these inconsistencies in the online documentation
Now when I try to find the 'notifyWithText' api, I could not find it.
Another example is IntentReciever. I just want to know is this class exists? As I found code in this forum itself using IntentReciever, but I cant find this class in the doc.
And why standard intents like action android:name="android.provider.Telephony.SMS_RECEIVED are not documented?
View 11 Replies
View Related
Apr 7, 2010
This page in the Android documentation defines an element id as follows:
CODE:......
However this page defines it as:
CODE:..........
I thought I had a decent understanding of what was going on until I saw this second example. In the first case, you need the + character so that id 'label' is added to the R file, correct? In the second case, would the EditText's id not be added to the R file because it does not contain the + character?
Also, the second example does not include the android namespace on the id. Does having or not having the Android namespace affect whether that id will be added to the R file?
View 4 Replies
View Related