鍥炲: 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. Android Shrink Animation

Hi,

Does anyone know of a good tutorial for doing some simple layout
animation effects? I basically want to shrink a set of controls when a
button is clicked, and expand another set. Any help would be
appreciated. Thanks.

-- 

2. Activity/ Layout on top of the InCallScreen

Hi All,

When I receive ringing state, I tried to launch an Activity  to run my
apps.
case TelephonyManager.CALL_STATE_RINGING:
{
        Intent intent = new Intent(context,     ABC.class);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
context.startActivity(intent);
}

but I noticed that my apps is go behind the InCallScreen.
tried using delay to make the InCallScreen pop up first, then launched
my app, but still cannot replace on top of the InCallScreen layer.
Somtime its works (display InCallScreen for 2-3 second and then launch
my apps )

Could someone help me?

thanks
Sandeep

-- 

3. resource IDs and sharedUserId

4. EditText wrapped in ScrollView

5. Activity on top of the InCallScreen

6. bikin hotspot pake wifi lapto

7. T*lkomsel, Begitu Dekat Nyatanya Mana