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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top