onOffsetChanged doesn't fire on HTC Sensation - android

I'm developing live wallpaper on Android and recently bought a HTC Sensation (android 2.3.3) for development. The problem that I found with this phone is that onOffsetChanged event is not generated at all. I logged calls inside onOffsetChanged method and there is nothing logged on phone, while it works correctly on emulator.
My guess is that HTC Sense 3.0 messed something up (wallpapers downloaded from market doesn't work either) but on the other hand there is HTC Stream live wallpaper delivered with the phone and it seems to have such functionality.
Does anyone know if there is something special that has to be added to manifest or code that enables this functionality on HTC Sensation? Did anyone faced same problem? I'm quite confused since even google doesn't seem to know about such issue :).
Thanks for your help.

Related

no more offline speech recognition?

Today I noticed that offline speech recognition doesn't work anymore.
It worked before because I was able to use it for my app and I'm completely sure that I was offline and everything was working fine then.
I wanted to test my app today and it couldn't understand what I said no matter how loud I said it.
Then I turned the wifi on and it was working perfectly. I'm using the same phone though, sony xperia L, same OS, Android Jelly Bean 4.2.2. I have no idea what happened. Has Google changed something or what? And it's not just my app, other apps that need speech recognition won't work offline as well. Can someone explain this and tell me if there something I can do to get offline speech recognition again, or at least make it work for my app?
Thanks in advance!
EDIT: i've tested it on xperia z2 now and it has the same problem, so it's not only my phone, i believe there was an update with some bugs from google, what do you think?
is it going to be fixed or do i have to fix it?
i want my app to work offline
EDIT 2: i solved my problem by uninstalling all updates on Google App and getting back its factory version.

Debugging my app

I noticed that randomly my phone restarts. I am not sure if this is because of my app (which I recently developed) or because of a Android 4.3 bug with with the Nexus 4. I am terribly sorry if this is the wrong forum. Any advice on how I can exactly pinpoint the issue?
Use your phone for a while without your app? If the problem doesn't occur you can then work on investigating the app.

Capturing media button from headset on Motorola Razr Android 4.0.4

This is my first post so if I do anything or phrase anything wrong please let me know for the future, and I am sorry if this is longer or more verbose then normal I just wanted to give a good background. Again if this isn't normal formatting please let me know because I would like to utilize, and contribute on this site more in the future.
I have an app I am maintaining, it controls what actions the headset button will do and has gesture recognition for single click, double click, long click, etc. The app has been working fine on all our test devices (Samsung Galaxy S3, Motorola Droid 4, and a few others running different versions of the android OS), but we recently got word that with the motorola razr the app wouldn't work at all.
I initially assumed that they were talking about the new hd running 4.1 but it is apparently the regular motorola razr running android 4.0.4 (atleast thats what our test device is running). We got some response from the app when plugged into our device, we could preform long clicks and single clicks but the device would not recognize gestures such as double click and on.
After googling for awhile I found many people talking about this problem in forums but I couldn't find any developers talking about potential fixes.
This is the only device I know of running 4.0.4 so I am going to start with more look into that build to see if there are some notes on it, but if anyone out there has worked on these devices and might know why this occurs I would appreciate any knowledge you have on the matter.
I found out some more on this issue/the answer for my question. It turns out the app is running fine on the razr but the response time for the headset button is very slow on the device so the gesture recognition was timing out. But for future references if anyone encounters similar issues, the razr response time for me is no faster than 3 clicks per 600 milliseconds. (the fastest I got it to register was 616)

Android Application (Samsung Galaxy Tab, 2.2) does not *sometimes* write to the DB

We have an Android application running on Android 2.2 on the Samsung Galaxy Tab that writes data into the SQLite DB.
However, we find the following intermittent problem arising on some tablets.
The data is written into the DB. (No SQLiteExceptions being thrown; we are committing the transaction).
But the DB does not actually contain the data.
Uninstalling and reinstalling the application or clearing the application's data does not appear to make any difference at all.
When we then factory reset the handset and repeat the same procedure, it works just fine. This problem is not restricted to a given piece; all of us in my dev team have come across this intermittently.
However, I have not been able to reproduce the problem on any Android handsets (I tried on the HTC Desire, the HTC Desire HD, and the Samsung Galaxy S, all running Android 2.2), or on the emulator (running the Galaxy tab add-on).
I have a suspicion this may have something to do with a bug introduced by Samsung when they hacked Android 2.2. I was wondering if anybody else had encountered this problem, and if so, do you guys know of any less drastic measure than factory resetting the tablet?
Thanks,
Siddhu
There are reports out there about Samsung misbehaving with Settings (not saving them). See this Google issue. The settings are also saved in the database. So my guess your issue is related, if not exactly the same.
Google for
samsung settings not saved
for more hits.
We faced similar issues with our app in Samsung. Couldn't find an official statement from Samsung, so in the end documented to the users that this could happen in Samsung devices.

Missing application (gizmo, gizmote) when searching the Android market from an HTC Wildfire

I'm not quite sure where to turn for this one. I have been in touch with the developers who have no clue why this is happening.
Basically, I'm a consumer with an HTC Wildfire running Android 2.1. I connect via Orange in the UK. The app I'm after is Gizmo or Gizmote from a company called JRiver. Its an extension to their Media Centre software.
Problem is, when I search for the app on the market from the phone, any results that are returned is nothing to do with the app I'm after. I only get a few results from Gizmo and nothing for Gizmote. So far, no other users have experienced this issue from the JRiver forums.
Apparently the app should be compatible with 2.1 so I have no idea why it doesn't even show up. Can anyone throw any pointer on this?

Categories

Resources