Questions tagged [android-sdk-1.6]

For issues relating to developing with the android SDK, version 1.6.

Android 1.6 is a minor platform release deployable to Android-powered handsets since October 2009. The platform includes new features for users and developers, as well as changes in the Android framework API.

Read more about : Android 1.6

35 questions
918
votes
71 answers

"Conversion to Dalvik format failed with error 1" on external JAR

In my Android application in Eclipse I get the following error. UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lorg/xmlpull/v1/XmlPullParser; .... Conversion to Dalvik format failed with error 1 This error…
Michel
  • 8,310
  • 13
  • 41
  • 56
51
votes
10 answers

Call method when home button pressed

I have this method in one of my Android Activities: @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if(keyCode == KeyEvent.KEYCODE_BACK) { Log.d("Test", "Back button pressed!"); } else if(keyCode ==…
ingh.am
  • 24,319
  • 41
  • 126
  • 176
15
votes
1 answer

Android WebView not loading a JavaScript file, but Android Browser loads it fine

I'm writing an application which connects to a back office site. The backoffice site contains a whole slew of JavaScript functions, at least 100 times the average site. Unfortunately it does not load them, and causes much of the functionality to not…
JustinKaz
  • 612
  • 3
  • 9
  • 30
12
votes
6 answers

How to measure VRAM consumption on Android?

I want to acquire Android Device VRAM size. Is there a method for acquisition from the program?
salyutan
  • 183
  • 1
  • 2
  • 10
8
votes
2 answers

Center layout Android

How can I center these buttons on Android? The code I'm using in the layout is:
ingh.am
  • 24,319
  • 41
  • 126
  • 176
5
votes
1 answer

Check for camera on Android 1.6 (SDK 4)

I have searched this server for the answer to this question but I haven't found one. I have only found it for Android 2.0 (SDK 5). So does anybody know how to find out whether there is a camera in Android 1.6 application? Can I check if the camera…
saric
  • 1,024
  • 4
  • 16
  • 28
5
votes
1 answer

VerifyError When Running jUnit Test on Android 1.6

Here's what I'm trying to run on Android 1.6: package com.healthlogger.test; public class AllTests extends TestSuite { public static Test suite() { return new TestSuiteBuilder(AllTests.class).includeAllPackagesUnderHere().build(); …
Dylan Knowles
  • 2,628
  • 1
  • 21
  • 49
5
votes
1 answer

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

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…
Donal Rafferty
  • 19,239
  • 37
  • 110
  • 186
5
votes
0 answers

Android bump work with sdk 1.6 and above

I have found a working demo and successfully worked with that.but the problem is i have implemented it with minimum version 10 where StrictPolicy is importable.now i want min sdk version 1.6 or above to work with Bump. I have also seen that…
Saurabh Android
  • 657
  • 7
  • 14
4
votes
1 answer

android forward declarations not working in 1.6

according to the official site, Android supports forward declarations from version 1.6 onwards. Having adjusted the min SDK and target SDK requirements both to '4' in manifest.xml, the layout editor from eclipse is still complaining about unknown…
2
votes
1 answer

Space between handler and content in a SlidingDrawer

When I try to use a SlidingDrawer in the horizontal orientation I get a space between the handler and the content. Any idea how I can get rid of it? In the vertical orientation I do not get a space.
Mokus
  • 3,341
  • 1
  • 23
  • 30
2
votes
2 answers

How to test my android app in all sdk versin of android?

I developed one application in sdk 2.1. Now i want to test this in all sdk version. I trying to test in 2.2 ,1.6,1.5. But all get failed ,all throw exception. what are the changes I need be do in application to work in all sdk? Please anyone help me…
Lakshmanan
  • 1,583
  • 2
  • 25
  • 39
2
votes
1 answer

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

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…
itamarw
  • 51
  • 4
2
votes
1 answer

Where can I download older revision of Android SDK?

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…
joon
  • 796
  • 12
  • 29
1
vote
2 answers

Monkeyrunner throwing "ShellCommandUnrespo​nsiveException" - any work around?

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…
Rilwan
  • 2,144
  • 1
  • 17
  • 27
1
2 3