鍥炲: How to DROP a Database in Android ?

by 鐜嬪績閿 » Thu, 13 Aug 2009 07:58:32 GMT


Sponsored Links
 If u wanna delete a tables. Use the drop sql in upgrade method in
sqlitehelper sub class

2009-8-13 7:52 AMquot;Emre A. Yavuz" <eayl...@hotmail.com> 


Hi,

Does anybody know how to DROP a database in Android ?

I've tried ContextWrapper.deleteDatabase(), mDb.close(), mDbHelper.close()
etc. methods with no luck so far. I tried to remove it using the shell, but
I don't have the permission to do it. I was able to drop the TABLES etc. in
the database that I had created but nothing further than that.

Any help is appreciated.

Cheers,

Emre

------------------------------
More storage. Better anti-spam and antivirus protection. Hotmail makes it
simple. < http://go.microsoft.com/?linkid=9671352> ;

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Eclipse lockups and crashes

I'm using Eclipse (eclipse-java-galileo-SR2-win32) with ADT rev 6 and
have Java SDK 1.6.0_21 installed on my system. Eclipse locks up and/or
crashes on me regularly while coding. I've lost unsaved code and even
my Eclipse preferences before. It's maddening! Does anyone know what
might be causing this?

(I really wish Google would make an ADT plug-in for NetBeans...)

-- 

2. Do you know the reason why any files cannot be uploaded via android browser?

Hello, everyone.

I have one question regarding the android browser.
As the title of this post, I do not know the reason why any files in
the device cannot be uploaded to the web via android browser.

When I try to upload the file in website,the text dialog where the
file path is usually written is expressed as "Uploads Disabled".
If specification that any files is not allowed to upload is
established, then I do not mention.
But, I would like to know the reason why...

Please let me know if you know that reason.

In addition, I verify the behavior of this on SEMC X10i(android 1.6)

Thanks,

-- 

3. Review Gathering Gadtorade Ke-5, Milis Gadget Terbesar Di Indonesia 4 Agustus 2010

4. Why is Android so buggy?

5. A very strange ServerSocket.accept problem

6. Update delete a directory and how to prevent this from happening?

7. gapps-hdpi-frf91-up