[android-developers] Re: IME - Main Dictionary

2009-08-02 Thread Spiros
Hi, Very useful information, thanks! Got everything to work nicely, one quick question: I use Eclipse, not GNU make. I noticed Android.mk for LatinIME specifies a -0 .dict aapt flag (I'm guessing store uncompressed). Is there some way to do the same while using the Eclipse builder? Right now

[android-developers] Re: IME - Main Dictionary

2009-07-08 Thread nEx.Software
So, I've been looking over the LatinIME in the git repository, and I am getting the feeling that this (the native dictionary piece) can't be compiled on the NDK - at least not officially? There seem to be some unsupported libraries and such being used. Specifically, Asset.h and AssetManager.h

[android-developers] Re: IME - Main Dictionary

2009-07-08 Thread Dianne Hackborn
Oh sorry, yeah those are not part of the NDK. However you should be able to use the Java API to open a FileDescriptor for an asset, and hand that to native code for it to use the fd. The only limitation is that the asset will need to be stored uncompressed. (Alternatively, an .apk is just a zip

[android-developers] Re: IME - Main Dictionary

2009-07-08 Thread nEx.Software
Great... thanks for the info Dianne. I appreciate i. On Jul 8, 12:25 am, Dianne Hackborn hack...@android.com wrote: Oh sorry, yeah those are not part of the NDK.  However you should be able to use the Java API to open a FileDescriptor for an asset, and hand that to native code for it to use

[android-developers] Re: IME - Main Dictionary

2009-07-08 Thread nEx.Software
So, in sending in a FileDescriptor, I assume I would need to modify openNative to take a FileDescriptor... Presumably, I would get a FileDescriptor like this: AssetManager am = context.getResources().getAssets(); AssetFileDescriptor afd = am.openNonAssetFd(mydictionaryfile); FileDescriptor fd =

[android-developers] Re: IME - Main Dictionary

2009-07-07 Thread Dianne Hackborn
The prediction dictionary is built into the IME, it is not a part of the platform like the user dictionary, so you will need to implement your own for your IME. The LatinIME code is open source, so to start you can just copy it (especially now that we have the NDK available). On Tue, Jul 7, 2009

[android-developers] Re: IME - Main Dictionary

2009-07-07 Thread nEx.Software
Awesome, thanks for the info. I had a feeling that was the case. Thanks for confirming that for me. On Jul 7, 3:04 pm, Dianne Hackborn hack...@android.com wrote: The prediction dictionary is built into the IME, it is not a part of the platform like the user dictionary, so you will need to