diff options
author | Wu-cheng Li <wuchengli@google.com> | 2009-05-04 19:38:43 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2009-05-04 19:38:43 +0800 |
commit | fa3e5562793c5bd7d4513a9e1a5869e763a47ab5 (patch) | |
tree | 8220f311208c088f2316526016dc6470cb017d44 /core/jni | |
parent | 6a1ae64f7735a3817713a223096bf8034f78a620 (diff) | |
download | frameworks_base-fa3e5562793c5bd7d4513a9e1a5869e763a47ab5.zip frameworks_base-fa3e5562793c5bd7d4513a9e1a5869e763a47ab5.tar.gz frameworks_base-fa3e5562793c5bd7d4513a9e1a5869e763a47ab5.tar.bz2 |
Change error message.
Diffstat (limited to 'core/jni')
-rw-r--r-- | core/jni/android_hardware_Camera.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/jni/android_hardware_Camera.cpp b/core/jni/android_hardware_Camera.cpp index f6cd211..c107993 100644 --- a/core/jni/android_hardware_Camera.cpp +++ b/core/jni/android_hardware_Camera.cpp @@ -108,7 +108,8 @@ static void android_hardware_Camera_native_setup(JNIEnv *env, jobject thiz, jobj sp<Camera> camera = Camera::connect(); if (camera == NULL) { - jniThrowException(env, "java/lang/RuntimeException", "Out of memory"); + jniThrowException(env, "java/lang/RuntimeException", + "Fail to connect to camera service"); return; } |