0

I want to refresh my J2ME application means I want to delete all the local db which the mobile contains. I know how to do above task in android application by "Clear Data" by using this we can delete all the data from my android application same thing I want to do in J2ME application.

gnat
  • 6,213
  • 108
  • 53
  • 73
mayur rahatekar
  • 4,410
  • 12
  • 37
  • 51

1 Answers1

3

In J2ME Environment, you can achieve such thing by listing all the RMS Using following method.

public static String[] listAllRecordStore () 
{
    return RecordStore.listRecordStores();
}

Here, Method Returns the String array, now delete one by one RMS table in a for loop.

Lucifer
  • 29,392
  • 25
  • 90
  • 143