0

I have an app, In this signIn through the dropbox and after the signIn I got the vale of below I declared:

DropboxAPI<AndroidAuthSession> mDBApi;

我想要的是:

我想在手机重启后使用这个值(获取这个值)。

Or

我想永久存储这个值。

For better understand have a look on this Link : DROPBOX_REFERENCE_LINK

为此,我尝试了:

  1. 我做了静态,但在电话打开之前它工作正常。并不意味着 !

  2. 使用 SharedPrefrence 但I have to put this value into the String在 typeCast 时,我无法将此字符串值转换为 DropboxAPI 通用类型。

喜欢 :

String s = mDBApi_From_Prefrence;
DropboxAPI<AndroidAuthSession> mDBApi = `TypeCast From String s to DropboxAPI<AndroidAuthSession>`

我应该如何存储这个 mBDApi 值PERMANENT

4

1 回答 1

0

You can store this value to a SQLite Database as a BLOB type and fetch it again. Databases remain persistent for the app even after reboot.

于 2013-10-23T10:34:38.213 回答