sravani123 / hackerskeyboard

Automatically exported from code.google.com/p/hackerskeyboard
0 stars 0 forks source link

Can't load dictionary when IME is complied from source #367

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile the source and send it to device
2. Get a dictionary (I tried English) - Either from Google Play or adb install 
the downloaded dictionary apk
3. Type some english text and notice that the suggestions don't show words

What is the expected behavior? What do you see instead?

Expect to see suggestions from the dictionary. I only see names from my 
contacts instead

What version of Hacker's Keyboard are you using? (See "Debug" section at
the bottom of the app's Settings menu.)

Downloaded the latest source and complied it in Eclipse.

On what phone or tablet?

HTC One X running 4.1.1

Please provide any additional information below.

When I get both the IME and dictionary from Google Play, the suggestions show 
up as expected
When I install both the IME and dictionary APKs downloaded from this site, the 
suggestions show up ok too
Just when I compile my own it doesn't.  

Some pointers to which part of the source will be helpful.  

Thanks.

Original issue reported on code.google.com by muth...@gmail.com on 25 May 2013 at 5:56

GoogleCodeExporter commented 9 years ago
I solved this. The native libs were not complied and hence the dictionaries 
could not be loaded. I've compiled them with ndk-build and the dictionaries are 
loading fine now.

Original comment by muth...@gmail.com on 25 May 2013 at 10:07

GoogleCodeExporter commented 9 years ago
can u give some info abt how to compile with ndk build, i dun know how to do 
tht?

Original comment by pdwag...@gmail.com on 28 May 2013 at 12:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I've taken pre-compiled AOSP dictionaries and it doesn't work either. I've 
compiled the native libraries.

Original comment by david8bl...@gmail.com on 14 Jan 2014 at 1:52

GoogleCodeExporter commented 9 years ago
When you build from source, dictionaries will only work if you build the binary 
module using the NDK. Use the "ndk-build" script from the NDK package to do so. 
You must do this *before* building the APK, otherwise the compiled files won't 
be included in it.

See https://code.google.com/p/hackerskeyboard/wiki/BuildingFromSource for more 
detailed instructions.

If this still isn't working for you, please follow up with more detailed 
information.

Original comment by Klaus.We...@gmail.com on 14 Jan 2014 at 11:43