Hi This was bugging me the last few days so I went ahead and ran a few tests. Neither System.getProperties() nor System.getenv() provide any useful information to determine what platform you on during run-time. If anyone out there has any other ideas I'd be interested in hearing them. Here is the output from getProperties on my Incredible:
I/System.out( 6438): java.vm.version=1.1.0 I/System.out( 6438): java.vendor.url=http://www.android.com/ I/System.out( 6438): java.vm.vendor.url=http://www.android.com/ I/System.out( 6438): user.dir=/ I/System.out( 6438): java.vm.name=Dalvik I/System.out( 6438): java.home=/system I/System.out( 6438): user.region=US I/System.out( 6438): javax.net.ssl.trustStore=/system/etc/security/cacerts.bks I/System.out( 6438): java.runtime.name=Android Runtime I/System.out( 6438): user.home= I/System.out( 6438): java.io.tmpdir=/sdcard I/System.out( 6438): http.agent=Dalvik/1.1.0 (Linux; U; Android 2.1-u... I/System.out( 6438): java.net.preferIPv6Addresses=true I/System.out( 6438): java.version=0 I/System.out( 6438): java.boot.class.path=/system/framework/core.jar:/system/fr... I/System.out( 6438): java.library.path=/system/lib I/System.out( 6438): file.separator=/ I/System.out( 6438): java.specification.vendor=The Android Project I/System.out( 6438): file.encoding=UTF-8 I/System.out( 6438): line.separator= I/System.out( 6438): java.vm.specification.version=0.9 I/System.out( 6438): java.vm.specification.vendor=The Android Project I/System.out( 6438): os.name=Linux I/System.out( 6438): java.vm.vendor=The Android Project I/System.out( 6438): path.separator=: I/System.out( 6438): android.vm.dexfile=true I/System.out( 6438): java.ext.dirs= I/System.out( 6438): java.class.path=. I/System.out( 6438): os.version=2.6.29-cc1c2268 I/System.out( 6438): java.specification.name=Dalvik Core Library I/System.out( 6438): java.compiler= I/System.out( 6438): user.language=en I/System.out( 6438): user.name= I/System.out( 6438): os.arch=armv7l I/System.out( 6438): java.runtime.version=0.9 I/System.out( 6438): java.class.version=46.0 I/System.out( 6438): java.vendor=The Android Project I/System.out( 6438): java.vm.specification.name=Dalvik Virtual Machine Specification I/System.out( 6438): java.specification.version=0.9 Steven Gores-Todd On Mon, May 10, 2010 at 11:07 PM, Steve Gores-Todd <[email protected]>wrote: > Hello James, > > I use the method System.getProperty in my J2ME apps to switch code blocks > at run-time based on the platform. I see it exists in the Android API > although I haven't tested what Strings are available and if they'll provide > exactly the info you need. Hope this helps. > > > http://developer.android.com/reference/java/lang/System.html#getProperty%28java.lang.String%29 > > > Steven Gores-Todd > > > > > On Sun, May 9, 2010 at 4:40 AM, jamesc <[email protected]> wrote: > >> Hi >> >> I've recently got my hands on an X10, and have found that the Sony >> Ericsson IME handles the EditorInfo.inputType flags differently to the >> default Android IME and the HTC IME (i.e. anything > 0x0 results in >> the IME displaying word suggestions, which I don't want). >> >> Given that the behaviour varies, I wanted to add some code checking >> whether that particular IME was in use and so set the flags >> accordingly. However, it appears that one cannot find out which IME >> is currently in use (getEnabledInputMethodList() and >> getInputMethodList() both return ALL the IMEs on the phone; well, it >> does in the case of the X10). >> >> Does anyone have any suggestions as to how to identify which IME is in >> use (or programmtically set the X10s IME to not display word >> suggestions)? >> >> Cheers >> >> James >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<android-developers%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

