0

I need to store some data in my Blackberry application so I'm using files, I'm storing these files in the internal memory of the device, but if I uninstalled the application I need these files to be removed too. Is there a way to store the files in the same path of the application package , or any other way to delete them if the application was uninstalled?

This is the path which I'm using:

    try {
    fileconn = (FileConnection) Connector.open("file:///store/home/user/data.txt");
        }
4

1 に答える 1

0

どのようなデータを保存していますか?代わりにアプリのPersistentStoreにデータを保存できる場合、アプリがアンインストールされるとデータは自動的に削除されます。

于 2012-05-13T21:03:02.153 に答える