문제

I am a developer new to Android en Eclipse (not to Java), using the latest ADT and Java SE 7u25. I am using a BitSet while working in the Android environment. In Java 7 there is the toByteArray method (toByteArray - Java 7 doc). However the method is not found (build error). Referring to the Android reference (BitSet - Android doc), we can note that the method is not included. This seems the same for other methods of BitSet new in Java 7.

The question: is it possible to use this new method in the Android environment?

Thank you in advance

도움이 되었습니까?

해결책

Android runs a class library that is (largely) compatible with Java 6. Classes and methods introduced in Java 7 are not available at the present time.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top