在Android上清除解析缓存安装 [英] Clear parse installation cache on Android

查看:347
本文介绍了在Android上清除解析缓存安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

没有人知道如何从解析安装清除较新的库版本1.10的数据?在1.8,你可以通过调用记忆清晰,就像在这个答案说明通过反射做到这一点:<一href=\"http://stackoverflow.com/questions/25104982/parseobject-mergerest-raise-concurrentmodificationexception\">ParseObject mergeREST提高ConcurrentModificationException的

does anyone know how to clear the data from the parse installation on the newer library version 1.10? In 1.8 you could do it via reflection by calling clear from memory, like described in this answer: ParseObject mergeREST raise ConcurrentModificationException

我删除从网页解析安装,我还需要清除Android手机上的RAM缓存,我无法找到一个方法来做到这一点。任何想法?

I am deleting the parse installation from web, and I also need to clear the ram cache on the android phone and I can't find a way to do it. Any ideas?

推荐答案

通过包在我的项目命名为com.parse,在里面我已经放在一个名为ParseEasyAccess.java文件解决的,它包含以下方法:

Solved by making a package in my project named com.parse, in it I've placed a file named ParseEasyAccess.java , it contains the following method:

public static void clearParse() {
  ParseInstallation.getCurrentInstallationController().clearFromDisk();
  ParseInstallation.getCurrentInstallationController().clearFromMemory();
}

您可以从任何地方在应用程序调用这一点,它会从RAM和放大器清除所有解析安装数据;磁盘。

You can call this from anywhere in the app and it will clear all the parse installation data from RAM & disk.

这篇关于在Android上清除解析缓存安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆