Hi Anwar,

I have filed a bug and will investigate the issue.

Thank you very much for reporting.

Cheers,
- Dmitri

On Sat, Jan 29, 2011 at 8:04 PM, Anwar <[email protected]> wrote:

> Hello there
>
> i got problem after compile the arabic resources to framework-res.apk
>
> i can't add new contact when i select the language to arabic i got
> force close
>
> but when i select it english there is no problem
>
> i think this problem appeared because the numbers appear as arabic
> number and so the system does not understand
>
> it might be numberformat locale problem
>
> so how to fix this ? how to change the numberformat to english
>
> my logcat :
>
> D/Sources (  815): Creating external source for
> type=com.facebook.auth.login, packageName=com.facebook.katana
>
> I/ActivityManager(  149): Displayed
> com.android.contacts/.ui.EditContactActivity: +330ms
>
> D/dalvikvm(  591): GC_EXTERNAL_ALLOC freed 209K, 55% free 3059K/6791K,
> external 2161K/2181K, paused 35ms
>
> D/dalvikvm(  409): GC_EXTERNAL_ALLOC freed 96K, 53% free 2703K/5639K,
> external 2765K/2773K, paused 41ms
>
> D/dalvikvm(  409): GC_EXTERNAL_ALLOC freed 104K, 52% free 2728K/5639K,
> external 3163K/3459K, paused 94ms
>
> D/dalvikvm(  815): GC_EXTERNAL_ALLOC freed 350K, 48% free 3294K/6279K,
> external 4330K/4338K, paused 40ms
>
> W/EntityModifier(  815): Trimming: { _id=-5,
> mimetype=vnd.android.cursor.item/photo, }
>
> W/EntityModifier(  815): Trimming: { _id=-2,
> mimetype=vnd.android.cursor.item/phone_v2, data2=1, }
>
> W/EntityModifier(  815): Trimming: { _id=-3,
> mimetype=vnd.android.cursor.item/email_v2, data2=1, }
>
> W/EntityModifier(  815): Trimming: { _id=-6,
> mimetype=vnd.android.cursor.item/note, }
>
> W/EntityModifier(  815): Trimming: { _id=-7,
> mimetype=vnd.android.cursor.item/nickname, data2=1, }
>
> W/EntityModifier(  815): Trimming: { _id=-8,
> mimetype=vnd.android.cursor.item/sip_address, }
>
> I/Database(  815): sqlite returned: error code = 1, msg = no such
> column: ٤
>
> W/dalvikvm(  815): threadid=14: thread exiting with uncaught exception
> (group=0x40015560)
>
> E/AndroidRuntime(  815): FATAL EXCEPTION: AsyncTask #3
>
> E/AndroidRuntime(  815): java.lang.RuntimeException: An error occured
> while executing doInBackground()
>
> E/AndroidRuntime(  815):        at android.os.AsyncTask
> $3.done(AsyncTask.java:200)
>
> E/AndroidRuntime(  815):        at java.util.concurrent.FutureTask
> $Sync.innerSetException(FutureTask.java:274)
>
> E/AndroidRuntime(  815):        at
> java.util.concurrent.FutureTask.setException(FutureTask.java:125)
>
> E/AndroidRuntime(  815):        at java.util.concurrent.FutureTask
> $Sync.innerRun(FutureTask.java:308)
>
> E/AndroidRuntime(  815):        at
> java.util.concurrent.FutureTask.run(FutureTask.java:138)
>
> E/AndroidRuntime(  815):        at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
> 1088)
>
> E/AndroidRuntime(  815):        at java.util.concurrent.ThreadPoolExecutor
> $Worker.run(ThreadPoolExecutor.java:581)
>
> E/AndroidRuntime(  815):        at java.lang.Thread.run(Thread.java:1019)
>
> E/AndroidRuntime(  815): Caused by:
> android.database.sqlite.SQLiteException: no such column: ٤: , while
> compiling: SELECT
>
> raw_contacts._id,display_name,display_name_source,account_type,account_name,sourceid,custom_ringtone,send_to_voicemail,last_time_contacted,times_contacted,starred,is_restricted,name_verified,data._id,data.mimetype_id,is_super_primary
> FROM raw_contacts LEFT OUTER JOIN data ON
> (data.raw_contact_id=raw_contacts._id AND ((mimetype_id=٤ AND data15
> NOT NULL) OR (mimetype_id=٥ AND data1 NOT NULL))) WHERE
> raw_contacts._id=?
>
> E/AndroidRuntime(  815):        at
> android.database.sqlite.SQLiteCompiledSql.native_compile(Native
> Method)
>
> E/AndroidRuntime(  815):        at
> android.database.sqlite.SQLiteCompiledSql.compile(SQLiteCompiledSql.java:
> 92)
>
> E/AndroidRuntime(  815):        at
> android.database.sqlite.SQLiteCompiledSql.<init>(SQLiteCompiledSql.java:
> 65)
>
> E/AndroidRuntime(  815):        at
> android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:83)
>
> E/AndroidRuntime(  815):        at
> android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:49)
>
> E/AndroidRuntime(  815):        at
>
> android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:
> 42)
>
> E/AndroidRuntime(  815):        at
>
> android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:
> 1356)
>
> E/AndroidRuntime(  815):        at
> android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:
> 1324)
>
> E/AndroidRuntime(  815):        at
>
> com.android.providers.contacts.ContactAggregator.computeAggregateData(ContactAggregator.java:
> 1301)
>
> E/AndroidRuntime(  815):        at
>
> com.android.providers.contacts.ContactAggregator.onRawContactInsert(ContactAggregator.java:
> 437)
>
> E/AndroidRuntime(  815):        at
>
> com.android.providers.contacts.ContactsProvider2.flushTransactionalChanges(ContactsProvider2.java:
> 2333)
>
> E/AndroidRuntime(  815):        at
>
> com.android.providers.contacts.ContactsProvider2.updateInTransaction(ContactsProvider2.java:
> 3477)
>
> E/AndroidRuntime(  815):        at
>
> com.android.providers.contacts.SQLiteContentProvider.update(SQLiteContentProvider.java:
> 155)
>
> E/AndroidRuntime(  815):        at
>
> com.android.providers.contacts.ContactsProvider2.update(ContactsProvider2.java:
> 2278)
>
> E/AndroidRuntime(  815):        at
>
> android.content.ContentProviderOperation.apply(ContentProviderOperation.java:
> 225)
>
> E/AndroidRuntime(  815):        at
>
> com.android.providers.contacts.SQLiteContentProvider.applyBatch(SQLiteContentProvider.java:
> 216)
>
> E/AndroidRuntime(  815):        at
>
> com.android.providers.contacts.ContactsProvider2.applyBatch(ContactsProvider2.java:
> 2291)
>
> E/AndroidRuntime(  815):        at android.content.ContentProvider
> $Transport.applyBatch(ContentProvider.java:217)
>
> E/AndroidRuntime(  815):        at
>
> android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:
> 95)
>
> E/AndroidRuntime(  815):        at
> android.content.ContentResolver.applyBatch(ContentResolver.java:643)
>
> E/AndroidRuntime(  815):        at
> com.android.contacts.ui.EditContactActivity
> $PersistTask.doInBackground(EditContactActivity.java:712)
>
> E/AndroidRuntime(  815):        at
> com.android.contacts.ui.EditContactActivity
> $PersistTask.doInBackground(EditContactActivity.java:661)
>
> E/AndroidRuntime(  815):        at
> com.android.contacts.util.WeakAsyncTask.doInBackground(WeakAsyncTask.java:
> 45)
>
> E/AndroidRuntime(  815):        at android.os.AsyncTask
> $2.call(AsyncTask.java:185)
>
> E/AndroidRuntime(  815):        at java.util.concurrent.FutureTask
> $Sync.innerRun(FutureTask.java:306)
>
> E/AndroidRuntime(  815):        ... 4 more
>
> W/ActivityManager(  149):   Force finishing activity
> com.android.contacts/.ui.EditContactActivity
>
> V/MediaScanner(  591): /pruneDeadThumbnailFiles...
> android.database.sqlite.SQLiteCursor@40678e48
>
> D/MediaScanner(  591):  prescan time: 20ms
>
> D/MediaScanner(  591):     scan time: 34089ms
>
> D/MediaScanner(  591): postscan time: 22208ms
>
> D/MediaScanner(  591):    total time: 56317ms
>
> I/BootReceiver(  776): Got intent with action
> android.intent.action.MEDIA_SCANNER_FINISHED
>
> D/MediaScannerService(  591): done scanning volume external
>
> I/ActivityManager(  149): No longer want com.android.bluetooth (pid
> 642): hidden #16
>
> E/WindowManager(  815): Activity
> com.android.contacts.ui.EditContactActivity has leaked window
> com.android.internal.policy.impl.PhoneWindow$DecorView@40626b30 that
> was originally added here
>
> E/WindowManager(  815): android.view.WindowLeaked: Activity
> com.android.contacts.ui.EditContactActivity has leaked window
> com.android.internal.policy.impl.PhoneWindow$DecorView@40626b30 that
> was originally added here
>
> E/WindowManager(  815):         at
> android.view.ViewRoot.<init>(ViewRoot.java:
> 258)
>
> E/WindowManager(  815):         at
> android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
>
> E/WindowManager(  815):         at
> android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
>
> E/WindowManager(  815):         at android.view.Window
> $LocalWindowManager.addView(Window.java:424)
>
> E/WindowManager(  815):         at android.app.Dialog.show(Dialog.java:241)
>
> E/WindowManager(  815):         at
> android.app.ProgressDialog.show(ProgressDialog.java:107)
>
> E/WindowManager(  815):         at
> android.app.ProgressDialog.show(ProgressDialog.java:90)
>
> E/WindowManager(  815):         at
> android.app.ProgressDialog.show(ProgressDialog.java:85)
>
> E/WindowManager(  815):         at
> com.android.contacts.ui.EditContactActivity
> $PersistTask.onPreExecute(EditContactActivity.java:682)
>
> E/WindowManager(  815):         at
> com.android.contacts.ui.EditContactActivity
> $PersistTask.onPreExecute(EditContactActivity.java:661)
>
> E/WindowManager(  815):         at
> com.android.contacts.util.WeakAsyncTask.onPreExecute(WeakAsyncTask.java:
> 36)
>
> E/WindowManager(  815):         at
> android.os.AsyncTask.execute(AsyncTask.java:391)
>
> E/WindowManager(  815):         at
>
> com.android.contacts.ui.EditContactActivity.doSaveAction(EditContactActivity.java:
> 797)
>
> E/WindowManager(  815):         at
>
> com.android.contacts.ui.EditContactActivity.onClick(EditContactActivity.java:
> 559)
>
> E/WindowManager(  815):         at
> android.view.View.performClick(View.java:
> 2485)
>
> E/WindowManager(  815):         at android.view.View
> $PerformClick.run(View.java:9081)
>
> E/WindowManager(  815):         at
> android.os.Handler.handleCallback(Handler.java:587)
>
> E/WindowManager(  815):         at
> android.os.Handler.dispatchMessage(Handler.java:92)
>
> E/WindowManager(  815):         at android.os.Looper.loop(Looper.java:123)
>
> E/WindowManager(  815):         at
> android.app.ActivityThread.main(ActivityThread.java:3647)
>
> E/WindowManager(  815):         at
> java.lang.reflect.Method.invokeNative(Native Method)
>
> E/WindowManager(  815):         at
> java.lang.reflect.Method.invoke(Method.java:507)
>
> E/WindowManager(  815):         at com.android.internal.os.ZygoteInit
> $MethodAndArgsCaller.run(ZygoteInit.java:839)
>
> E/WindowManager(  815):         at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
>
> E/WindowManager(  815):         at dalvik.system.NativeStart.main(Native
> Method)
>
> D/dalvikvm(  591): GC_EXTERNAL_ALLOC freed 339K, 57% free 2931K/6791K,
> external 2161K/218
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to