user dictionar

by Morris » Wed, 11 Mar 2009 19:54:16 GMT

Sponsored Links
 Hi All:

I couldn't use the function of user dictionary.
Is it not complete for android 1.5 or
Is it my program issue?



user dictionar

by Dianne Hackborn » Thu, 12 Mar 2009 02:17:26 GMT

 There is no android 1.5, and cupcake is still in development.  And this
should be asked on the platform groups.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.


Sponsored Links

Other Threads

1. Execute Android native executable in Debian - No such file or directory


I have built a helloworld application using NDK. It works fine in
emulator and target.

If I load it to Debian system (armv5te), it would execute:

-bash: ./helloworld: No such file or directory

file helloworld
helloworld: ELF 32-bit LSB executable, ARM, version 1 (SYSV),
dynamically linked (uses shared libs), not stripped

I have put Android libraries into a local directory and set
LD_LIBRARY_PATH accordingly:

ldd helloworld => /root/projects/lib/ (0x40001000) => /root/projects/lib/ (0x40049000) => /root/projects/lib/ (0x4004b000) => /root/projects/lib/ (0x4006d000)

Using strace:

strace ./helloworld
execve("./helloworld", ["./helloworld"], [/* 16 vars */]) = -1 ENOENT
(No such file or directory)
dup(2)                                  = 3
fcntl64(3, F_GETFL)                     = 0x20002 (flags O_RDWR|
fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
0) = 0x4001e000
_llseek(3, 0, 0xbec38918, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No
such file or directory
) = 40
close(3)                                = 0
munmap(0x4001e000, 4096)                = 0
exit_group(1)                           = ?



2. Canvas.drawImage too slow?

my code is like this, holder is a SurfaceHolder, and colors is a int[]:

            canvas = (*env)->CallObjectMethod(env, holder,
            // JNI_TRUE for ARGB8888 and JNI_FALSE for RGB565
            (*env)->CallVoidMethod(env, canvas, mid_Canvas_drawBitmap,
colors, 0, sw, 0, 0, sw, sh, JNI_TRUE, 0);
            (*env)->CallVoidMethod(env, holder,
mid_SurfaceHolder_unlockCanvasAndPost, canvas);
            (*env)->DeleteLocalRef(env, canvas);

this should equal to

SurfaceHolder holder;
int[] colors; //raw rgb data
int sw = holder.getWidth();
int sh = holder.getHeight();
// here, too slow???
Canvas canvas = holder.lockCanvas();
canvas.drawImage(colors, 0, sw, 0, 0, sw, sh, true, null);

i see drawImage and unlockCanvasAndPost consumes 100ms+ on the emulator, i
can't bear it.

language: Chinese, Japanese, English


3. Java101 strings and ints

4. How to develop a android app store

5. Out of memory in test application.

6. Duplicate strings.xml

7. setRequestedOrientation