android-sdk-1.6

How to measure VRAM consumption on Android?

帅比萌擦擦* 提交于 2020-01-02 00:56:11
问题 I want to acquire Android Device VRAM size. Is there a method for acquisition from the program? 回答1: Let's do some calculation using Nexus One: Screen resolution is 480x800. So minimum required video memory size would be: 400 * 800 * 4 bytes = 1536000 bytes Assuming that driver may (and normally should) use several buffers, we should also expect values like: 1536000 * 2 bytes = 3072000 bytes 1536000 * 3 bytes = 4608000 bytes etc... It would be weird to have values that are not multiple of

ContentObserver on content://sms/ in 1.6+?

北城以北 提交于 2020-01-01 10:13:56
问题 I have a content observer that polls content://sms/ in android 1.5 so that I get notified of changes in the sms database and can react to them accordingly. However in 1.6 this doesn't work, has the uri been changed from content://sms/ to something else? I have seen content://mms-sms/ popping up in the logcat on my 1.6 device but I have tried that and it doesn't work. Here is my code String url = "content://sms/"; Uri uri = Uri.parse(url); getContentResolver().registerContentObserver(uri, true

1.6 to 2.1 CameraInfo alternative?

耗尽温柔 提交于 2019-12-25 02:22:27
问题 android.Camera.Preferences.setRotation documentation public void onOrientationChanged(int orientation) { if (orientation == ORIENTATION_UNKNOWN) return; android.hardware.Camera.CameraInfo info = new android.hardware.Camera.CameraInfo(); android.hardware.Camera.getCameraInfo(cameraId, info); orientation = (orientation + 45) / 90 * 90; int rotation = 0; if (info.facing == CameraInfo.CAMERA_FACING_FRONT) { rotation = (info.orientation - orientation + 360) % 360; } else { // back-facing camera

Monkeyrunner throwing “ShellCommandUnrespo​nsiveException” - any work around?

旧时模样 提交于 2019-12-13 02:31:14
问题 I am facing some issues in device.shell('ping -c 2 192.168.1.1') inside a monkeyrunner script. Its throwing ShellCommandUnrespo‌​nsiveException [main] [com.android.chimpchat.adb.AdbChimpDevice]com.android.ddmlib.ShellCommandUnrespo‌​nsiveException while (count<1000) : device.shell('dmesg -c') print '****swithing OFF wifi in loop NO-',count device.touch(400,155,MonkeyDevice.DOWN_AND_UP) time.sleep(10) print '****switching ON wifi in loop NO-',count device.touch(400,155,MonkeyDevice.DOWN_AND_UP

Showing Live Wallpaper in a 1.6 target app by detecting if it's a 2.1 device?

六月ゝ 毕业季﹏ 提交于 2019-12-07 19:28:25
问题 We're building an Android app with target SDK 1.6, so it will run on 1.6 devices and higher. We'd like to support Live Wallpapers, which we know is 2.1+ only. Is there a way to build one app with 1.6 SDK as the target, but detect if the device it's running on is 2.1, and only in that scenario call the live wallpaper API. We're trying to avoid having to build a separate 1.6 and 2.1 versions, and would like to be able to support Live Wallpapers for only 2.1 devices. So to be clear- 1 app, that

Where can I download older revision of Android SDK?

无人久伴 提交于 2019-12-06 11:54:38
问题 I'm in need of a download for revision 16, since they seem to have broken Processing compatibility. I can't find it on the SDK website, the only thing I can come up with is googling the filename "installer_r16-windows.exe" but it doesn't seem to be hosted anywhere ligitimately, which I would prefer to avoid. Any ideas? 回答1: http://dl.google.com/android/installer_r16-windows.exe or more generally http://dl.google.com/android/installer_rXX-windows.exe They aren't not listed, you just have to

Showing Live Wallpaper in a 1.6 target app by detecting if it's a 2.1 device?

时光总嘲笑我的痴心妄想 提交于 2019-12-06 07:22:17
We're building an Android app with target SDK 1.6, so it will run on 1.6 devices and higher. We'd like to support Live Wallpapers, which we know is 2.1+ only. Is there a way to build one app with 1.6 SDK as the target, but detect if the device it's running on is 2.1, and only in that scenario call the live wallpaper API. We're trying to avoid having to build a separate 1.6 and 2.1 versions, and would like to be able to support Live Wallpapers for only 2.1 devices. So to be clear- 1 app, that can support 1.6 and higher, and support live wallpapers for 2.1 devices. Any way of doing this? Maybe.

How to measure VRAM consumption on Android?

北城余情 提交于 2019-12-05 00:17:09
I want to acquire Android Device VRAM size. Is there a method for acquisition from the program? Let's do some calculation using Nexus One: Screen resolution is 480x800. So minimum required video memory size would be: 400 * 800 * 4 bytes = 1536000 bytes Assuming that driver may (and normally should) use several buffers, we should also expect values like: 1536000 * 2 bytes = 3072000 bytes 1536000 * 3 bytes = 4608000 bytes etc... It would be weird to have values that are not multiple of 1536000 (or W x H x 4 in general). After some searches on Android internals I've found this documentation : ..

Where can I download older revision of Android SDK?

不问归期 提交于 2019-12-04 17:36:35
I'm in need of a download for revision 16, since they seem to have broken Processing compatibility. I can't find it on the SDK website, the only thing I can come up with is googling the filename "installer_r16-windows.exe" but it doesn't seem to be hosted anywhere ligitimately, which I would prefer to avoid. Any ideas? http://dl.google.com/android/installer_r16-windows.exe or more generally http://dl.google.com/android/installer_rXX-windows.exe They aren't not listed, you just have to fix it in the URI ! 来源: https://stackoverflow.com/questions/10450008/where-can-i-download-older-revision-of

ContentObserver on content://sms/ in 1.6+?

别说谁变了你拦得住时间么 提交于 2019-12-04 08:09:13
I have a content observer that polls content://sms/ in android 1.5 so that I get notified of changes in the sms database and can react to them accordingly. However in 1.6 this doesn't work, has the uri been changed from content://sms/ to something else? I have seen content://mms-sms/ popping up in the logcat on my 1.6 device but I have tried that and it doesn't work. Here is my code String url = "content://sms/"; Uri uri = Uri.parse(url); getContentResolver().registerContentObserver(uri, true, new MyContentObserver(handler)); } class MyContentObserver extends ContentObserver { public