문제

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