How to send non-Latin sms to emulator?

by an0 » Fri, 18 Sep 2009 17:39:59 GMT


Sponsored Links
 I send Chinese sms using DDMS in Eclipse, but emulator shows it as all
question marks "????????????".
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Map overlays

Hi all.

If I add two (or more) overlays (markers) to my map, is there a way I
can calculate the center point between the two, and set the zoom
accurately so that the map is displayed with all my markers shown?

Many thanks.
--~--~---------~--~----~------------~-------~--~----~

2. Pass Array from Java to C (over JNI) work in an activity but fail in a thread?

Hi! All:

I've stuggle of this problem few days, search many hours but not sure
what's I should try.
Thanks in advance.
I have a native c function which take jintarray as a parameter, and I
wanna pass a int array to it.
I use  GetIntArrayRegion to copy out the content of jintArray.

JNIEXPORT jstring Java_com_google_client_DecodeThread_test( JNIEnv*
env,
                                      jobject  this,    jintArray
verts1 )
{

jint buf[307200];
(*env)->GetIntArrayRegion(env, verts1, 0, 307200, buf);
}

It seems work when I call this native function in an activity. (it
didn't crash ,at least)
But it always crash when I call this native function in an thread
which will be called in an activity.

I can't figure out why is that...
I saw many example, they just pass jintarray...

I also found that If I copy small part of the jintarray, it won't
crash.

Is there any memory limit of thread ?
or something related to GC and invalid array pointer?

The following is part of my code.
Thanks a lot for your help.

in java:
public native int testmem(int[] img);

private void decode_c()
  {
...
System.loadLibrary("mydecoder");
int[] img_int = new int[307200];
int res= test(img_int );   ----------> it will crash here.I can't even
find out the error, the application closed.
...
}


in native c:

JNIEXPORT jstring Java_com_google_client_DecodeThread_test( JNIEnv*
env,
                                      jobject  this,    jintArray
verts1 )
{

jint buf[307200];
(*env)->GetIntArrayRegion(env, verts1, 0, 307200, buf);
  return (*env)->NewStringUTF(env, "show when no crash!");
}

3. Accessing Email Attachments

4. How to animate between two instances of the same activity?

5. How to add footer and Header to a list

6. telnet to localhost:5554 prompts for password

7. play video file inside the triangle using opengles - andorid