Strange Exceptions when deleting and reading contacts

by Samuh » Wed, 08 Sep 2010 19:29:56 GMT


Sponsored Links
 I am getting following exceptions when I try to read/delete contacts
from my application using Contacts Content Provider.
What does the following mean?

ERROR/IMemory(1349): binder=0x490f38 transaction failed
fd=-2147483647, size=0, err=-2147483646 (Unknown error: 2147483646)
ERROR/IMemory(1349): cannot dup fd=-2147483647, size=0,
err=-2147483646 (Bad file number)
ERROR/IMemory(1349): cannot map BpMemoryHeap (binder=0x490f38),
size=0, fd=-1 (Bad file number)
ERROR/JavaBinder(1349): *** Uncaught remote exception!  (Exceptions
are not yet supported across processes.)
ERROR/JavaBinder(1349): java.lang.RuntimeException: No memory in
memObj
ERROR/JavaBinder(1349):     at
android.database.CursorWindow.native_init(Native Method)
ERROR/JavaBinder(1349):     at
android.database.CursorWindow.<init>(CursorWindow.java:518)
ERROR/JavaBinder(1349):     at
android.database.CursorWindow.<init>(CursorWindow.java:27)
ERROR/JavaBinder(1349):     at android.database.CursorWindow
$1.createFromParcel(CursorWindow.java:493)
ERROR/JavaBinder(1349):     at android.database.CursorWindow
$1.createFromParcel(CursorWindow.java:496)
ERROR/JavaBinder(1349):     at
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:
96)
ERROR/JavaBinder(1349):     at
android.os.Binder.execTransact(Binder.java:287)
ERROR/JavaBinder(1349):     at dalvik.system.NativeStart.run(Native
Method)

Thanks.

--



Strange Exceptions when deleting and reading contacts

by Arjun » Thu, 09 Sep 2010 08:24:35 GMT


 I guess you cannot delete contacts  either you can read or write
contacts but you cannot delete contacts.
might be the reason for transaction failure exceptions
Thanks,
Arjun.




--


Sponsored Links


Strange Exceptions when deleting and reading contacts

by William Ferguson » Thu, 09 Sep 2010 11:54:35 GMT


 I recall getting something similar when trying to retrieve too big a
dataset.
Ie I was trying to retrieve lots of columns. Reducing them to as small
a set as possible removed the error.

I put it down to some hard allocation llimit in the SqlLite DB that
didn't express it well.





--



Other Threads

1. Database Issues...

Hi there

I am trying to create a database with two tables. Employees and
Computers. A spinner with employee names fill properly when I don't
try create and do anything with the second table... The code to create
is:

private static class DBOpenHelper extends SQLiteOpenHelper {
                private static final String CREATE_TABLE_USERS = "create table 
" +
                                TABLE_USERS + " (" + USER_KEY_ID +
                                " integer primary key autoincrement, " +
                                USER_KEY_USER + " text not null, " +
                                USER_KEY_PIN + " string);";
                private static final String CREATE_TABLE_ACCOUNTS = "create 
table "
+
                                TABLE_COMPUTERS + " (" + ACC_KEY_ID +
                                " integer primary key autoincrement, " +
                                ACC_KEY_USERID + " integer not null, " +
                                ACC_KEY_COMP_SERIAL + " text not null);";

                public DBOpenHelper(Context context, String name,
                                CursorFactory factory, int version) {
                        super(context, name, factory, version);
                }

                @Override
                public void onCreate(SQLiteDatabase _db) {
                        _db.execSQL(CREATE_TABLE_USERS);
                        _db.execSQL(CREATE_TABLE_COMPUTERS);
                }

Is there somehting I am doing wrong during the creating, as the rest
of the code (to read data) is exactly the same... but I can't figure
it out.

Please help!!!

Thanks in advance,
Neil
--~--~---------~--~----~------------~-------~--~----~

2. Handling a layout ...

Hi all,


Does somebody know how to handle a specific layout (say LinearLayout), which 
was given in a XML layout file, previously set in the Activity class using a 
SetContentView () method  ?

 

I am trying to add an image (probably as a child) to a previously set layout.

 

Thanks,

 

Emre


_________________________________________________________________
Stay on top of things, check email from other accounts!
http://go.microsoft.com/?linkid=9671355
--~--~---------~--~----~------------~-------~--~----~

3. how to unlock the screen and disable the keyguard in android

4. i-jetty for android

5. The emulator cannot be closed

6. Notification Like UI

7. dirent64 is missing in bionic/libc/kernel/common/linux/dirent.