Skip to content

Instantly share code, notes, and snippets.

View Sammiches327's full-sized avatar
💭
I may be slow to respond.

Sammiches Sammiches327

💭
I may be slow to respond.
  • California
View GitHub Profile

Keybase proof

I hereby claim:

  • I am andrew-quebe on github.
  • I am andrew_quebe (https://keybase.io/andrew_quebe) on keybase.
  • I have a public key ASAY9VIGlyZJbGmKzGjO9xATftlVfVm_JhQ1wgmjkRkq-Qo

To claim this, I am signing this object:

@Sammiches327
Sammiches327 / Notes.txt
Last active March 16, 2016 18:59
Exemplifies changing the recent apps overview color on Lollipop+ devices.
1. The text color changes from white to black depending on the color you choose. This isn't controllable.
2. Method params: this.setTaskDescription(new ActivityManager.TaskDescription(String label, Bitmap resource, int Color));
@Sammiches327
Sammiches327 / MainActivity.java
Created September 23, 2015 01:39
Clear app cache on Android devices.
public void clearApplicationData() {
File cache = getCacheDir();
File appDir = new File(cache.getParent());
if (appDir.exists()) {
String[] children = appDir.list();
for (String s : children) {
if (!s.equals("lib")) {
deleteDir(new File(appDir, s));
}
}