[android-developers] Re: getRotationMatrixFromVector() broken on Note 3

2014-01-26 Thread Adam Ratana
Also, found a reasonable alternative to the solutions here in the chromium source - looks like from a google search this had to be patched there, too -- https://src.chromium.org/viewvc/chrome/trunk/src/content/public/android/java/src/org/chromium/content/browser/DeviceMotionAndOrientation.java?

[android-developers] Re: getRotationMatrixFromVector() broken on Note 3

2014-01-26 Thread Adam Ratana
Just got bit by this when I updated the target-sdk from 16.Prior to that this was not happening for my S4 and Note 3 users. On Wednesday, October 2, 2013 1:39:12 PM UTC-4, String wrote: > > I've already worked around the problem; I wasn't posting here looking for > solutions, more to put thi

Re: [android-developers] Android is there any api that provide info about screen elements.

2014-01-26 Thread Kristopher Micinski
Generally there aren't any APIs that will let you access information about other applications. This is mostly for security reasons. So the answer to your question is no. Kris On Sun, Jan 26, 2014 at 3:00 AM, 12169 wrote: > Hi, > > I have an application in which i open the device settings pa

[android-developers] Re: Best solution for touchable Toast-like notification for plugin library

2014-01-26 Thread Ubuntu guy
Have you considered http://developer.android.com/reference/android/Manifest.permission.html#SYSTEM_ALERT_WINDOW that facebook uses for its chat heads. But this needs explicit user permission during apk installation. Not sure how that works for 3rd party libraries. On Thursday, January 23, 201

Re: [android-developers] Android is there any api that provide info about screen elements.

2014-01-26 Thread TreKing
On Sun, Jan 26, 2014 at 2:00 AM, 12169 wrote: > e.g when i open the setting page Flight Mode, i want to get the position > of this elements on the screen. I highly doubt there is a official facility to accomplish this. ---

Re: [android-developers] how to Check mobile data on/off in the device settings.

2014-01-26 Thread TreKing
On Sun, Jan 26, 2014 at 11:52 AM, 12169 wrote: > However, this code does not work on some devices, and throws an exception > that no such method exists. I have found it is not working in Android > 4.1.x. Why is it throwing this execption, and how can I fix it? This is the problem with copying a

[android-developers] KitKat Visualizer Issues

2014-01-26 Thread Ben Brosius
I've been working on adding music visualization to my live wallpaper using the Visualizer class. The visualizer works as expected when music starts playing. However whenever I switch to the next song, I get empty waveforms back from the visualizer. I've downloaded several visualizers from the m

[android-developers] how to Check mobile data on/off in the device settings.

2014-01-26 Thread 12169
Hi, I want to check whether mobile data is on/off, and for this I use the below code ConnectivityManager cm = (ConnectivityManager) context .getSystemService(Context.CONNECTIVITY_SERVICE);Class cmClass = Class.forName(cm.getClass().getName()); Method method = cmClass.getDecla

[android-developers] Android is there any api that provide info about screen elements.

2014-01-26 Thread 12169
Hi, I have an application in which i open the device settings page. when i open these pages i want to know about the position of the elements on the settings pages. e.g when i open the setting page Flight Mode, i want to get the position of this elements on the screen. any help? -- You r