How To Delete The App Cache For An App On Android

Android apps can, and do run into random problems. Sometimes, they just have to be quit and opened again, other times they might need to updated. If you have an Android app that randomly stops responding, that will not connect to the internet, is unable to access a critical service, or is unable to load content, you might be able to fix the problem if you delete the app cache for said app. Here’s how to do just that.

The app cache is deleted on a per-app basis. There is no setting on Android that will summarily delete the app cache for all apps on your Android phone. It’s worth mentioning that you rarely need to delete the app cache for all apps on your device. Deleting it for a few apps, the problematic ones, is usually enough.

Delete The App Cache

Open the Settings app and tap Apps & Notifications. Here, tap to view all apps. Depending on which version of Android you’re running, your apps list might be named something different or it might be under a Manage Apps section. You will need to dig around a bit to find it.

On the apps list, tap the app that you want to delete the cache for. This will take you to the App Info screen for that app. On older versions of Android, you might see a Clear Cache button on the App Info screen. If you do not see the button on the main App Info screen, tap Storage, and that’s where you will see a Clear Cache button. Tap to delete the app cache. It takes less than thirty seconds to complete.

For particularly problematic apps, you can also try deleting the app data stored by the app on your device. To do so, tap the Manage Space button on the app’s Storage screen. Tap ‘Clear all data’ to delete the app’s data stored on your device. This is normally data that the app builds up as you use the app more and more. If you clear the data for an app like Google Drive, you will not lose the files you’ve saved to it.

Clearing the cache and the app data for an app on Android is a low-level troubleshooting step that you can perform on the go if an app suddenly stops working. This step works to fix problems where an app is having trouble signing you in, or if it is unable to connect to the internet.

Read How To Delete The App Cache For An App On Android by Fatima Wahab on AddictiveTips – Tech tips to make you smarter

How To Fix The Tile Database Is Corrupt Error On Windows 10

The Start menu is one of the most common components on Windows 10 that can break. Often, Windows Search, and the Task bar might go down with it. These problems are so common, that Microsoft has a dedicated troubleshooting tool for the Start menu. This tool doesn’t always fix whatever problem it is you’re having with the Start Menu however, it will be able to identify one or more reasons that might be causing the problem. One such reason is that the ‘Tile database is corrupt’. This can lead to the Start menu not working, or tile icons disappearing. Here are three ways to fix the problem.

New Tile Database File

If the Start menu troubleshooter fails to fix the database, you’re going to have to go about doing it manually. There are two things you can try; copy a new database from a new user, or copy it from a different machine. Obviously, you want to try copying it from a new user before you go looking for an extra Windows 10 machine.

On your system, create a brand new user, and log into it. Go to the following location.

C:\Users\newUserAccount\AppData\Local\TileDataLayer

Copy the Database folder, and paste it somewhere it’s easy for you to access. Next, return to your user account (the one with the corrupt tile database). Navigate to the following location.

C:\Users\UserName\AppData\Local\TileDataLayer

There will be another Database folder here. Rename it something else e.g., Database.old and then paste the Database folder you copied from the other user account to the above location. Your Start menu will be reset to default however, it will also start working again.

If the new user account’s database folder doesn’t work, try getting this very same folder  from a different Windows 10 system that has a fully functioning Start Menu.

Windows  10 Startup Repair

Windows 10 Startup repair might be able to fix the Start menu and the corrupted tile database. You can initiate Startup repair from the Settings app. Go to Update & Security>Recovery, and click Restart under Advanced Startup. On the Advanced Startup screen, go to Troubleshoot>Advanced Options>Startup repair.

Alternatively, if you have a Windows 10 install disk, you can connect it and select the Repair option.

Reset Windows 10

This is no one’s favorite repair option but if all else fails, resetting Windows 10 will fix the problem. If you don’t want to reset Windows 10, check if a new user account has a functioning Start menu and migrate your current user account to the new one.

Read How To Fix The Tile Database Is Corrupt Error On Windows 10 by Fatima Wahab on AddictiveTips – Tech tips to make you smarter

How To Get The PowerShell Command History On Windows 10

PowerShell on Windows 10 can give you a history of every command you’ve executed in the current session however, for many users this isn’t enough. They need a history of commands executed across sessions. If you need to get the PowerShell command history, and history for the current session alone doesn’t do the trick, there’s a script and a log file that can help you.

Command History Current Session

If you’re running PowerShell 5, you can get the command history for the current session by running the following command;

Get-History

By default, PowerShell can save up to 50 commands but you can change it to save more. Open PowerShell and right-click the title bar. From the context menu, go to Properties. On the Properties window, go to the Options tab. You will see a Command History section where the default is set to 50. Change it to a higher value.

PowerShell History Log

In order to view the history log, you need to first install the PSReadLine module with the following command;

Install-Module PSReadLine

Next, run the following command and it will return a file location. The file at this location will give you a complete history of every command you’ve run in PowerShell.

(Get-PSReadlineOption).HistorySavePath

Cross-Session PowerShell Command History

This is a bit of a long process but it’s worth it. This solution comes from Intel. First open the following location and check if there is a file named Microsoft.PowerShell_profile.ps1 at this location.

C:\Users\<username>\Documents\WindowsPowerShell

If there’s no file there, open PowerShell and run the following command. It will open your Profile file in Notepad but that file doesn’t exist and PowerShell will tell you as much, and ask if you want to create it. Allow it to create the file.

notepad $Profile

Close the notepad file that opens. In PowerShell, run this command to make sure you’re running PowerShell 5.

$PSVersionTable.PSVersion

Next, set your execution policy to RemoteSigned with the following command.

set-executionpolicy remotesigned

Next, you need to install the PsUrl and PSReadline modules. You can install them with the following command though if you get an error, just install them manually by the process outlined on the linked pages, or try adding the repository as a trusted repository and then running the command again.

install-module PsUrl
install-module PSReadline

Now that those modules have been installed, open this file;

C:\Users\<username>\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1

Paste the following inside this file, and save it.

$HistoryFilePath = Join-Path ([Environment]::GetFolderPath('UserProfile')) .ps_history
Register-EngineEvent PowerShell.Exiting -Action { Get-History | Export-Clixml $HistoryFilePath } | out-null
if (Test-path $HistoryFilePath) { Import-Clixml $HistoryFilePath | Add-History }
# if you don't already have this configured...
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward

In order to view command history in PowerShell, you need to run the Get-History command however there is one very crucial step to making sure your history is saved. You CANNOT close PowerShell by clicking the close button. Instead you must always close it with the exit command.

You can use the Up and Down arrow keys to cycle through the previous commands.

Read How To Get The PowerShell Command History On Windows 10 by Fatima Wahab on AddictiveTips – Tech tips to make you smarter

How To Fix Missing Tile Icons On The Start Menu On Windows 10

The tiles on the Start menu are what make it useable. If you had a list of apps, the Start menu would basically just be a glorified apps list taking up more space than it should. For some users though, the tile icons on the Start menu seem to have disappeared. The tiles are still pinned where they were originally positioned and if you hover the cursor over them, you will be able to read the name of the app tile. The icon does not appear. Here are a few ways to fix missing tile icons on the Start Menu on Windows 10.

Resize Tile

Right-click a tile that has a missing icon and from the context menu, go to resize. Change the size of the icon to anything that isn’t currently selected. This ought to get the tile to appear again. Restart your system to see if the fix works after a reboot.

Startup Repair Tool

Download the Microsoft Startup Repair tool, and run it to see if it can fix the problem. It may tell you that your tile database is corrupted and unfortunately, there is not easy way to rebuild it. Even Microsoft suggests creating a new user to fix the problem though, before you do, try the other fixes below.

PowerShell Script

Open Notepad and paste the following in it. Save it with the BAT extension, and then run the file with administrative rights. Your taskbar will disappear for a while but don’t worry. That’s just Explorer.exe restarting. Once the taskbar returns, reboot your system and check if the tile icons are back.

@echo offtaskkill /f /im explorer.exe
taskkill /f /im shellexperiencehost.exe
timeout /t 3 /NOBREAK > nul
del %localappdata%\Packages\Microsoft.Windows.ShellExperienceHost_cw5n1h2txyewy\TempState\* /q
timeout /t 2 /NOBREAK > nul
start explorer
@echo on

Command Prompt

Open Command Prompt with administrative rights. It’s a good idea to close everything else that you have open at this point. The commands that you’re about to execute will take some time and the Explorer.exe process will be terminated making it difficult to switch between apps.

Run the following commands, one by one.

DISM.exe /Online /Cleanup-image /Scanhealth

Next run;

DISM.exe /online /cleanup-image /restorehealth

Next run;

sfc /scannow

This ought to repair system files that might have been corrupted. It will take time to complete. Once it’s done, reboot your system. If the sfc/scannow tool tells you it was unable to repair files, you might have a bigger problem on your hands. Your only alternative is to either reset your PC, or create a new user and move your files to it.

Read How To Fix Missing Tile Icons On The Start Menu On Windows 10 by Fatima Wahab on AddictiveTips – Tech tips to make you smarter

5 Ways To Open Apps On Windows 10

Opening an app on Windows 10 is easy if you have it pinned to the Start Menu. If not, there’s always the Apps list within the Start menu that will allow you to launch most of your apps. Of course, not all apps add themselves to the Apps list, and users prefer to conserve the number of tiles they have on the Start menu. There’s also the fact that the Start menu does tend to break at times. If you’re ever unable to open apps on Windows 10 there are a few alternatives that are available.

EXE Or Shortcut

Every app has an EXE. You can find it in the C drive under Program Files or Program Files (x86). Running the EXE will open the app and you can always create a desktop shortcut of the EXE. The shortcut will likewise open said app.

Windows Search

Windows Search can find and launch apps too provided you know the name of an app. Even if you have a vague idea of what the app is called, you can try a few searches and it will find your app. Click the correct result and it will open the app. This is best used for UWP apps that do not have an EXE or for apps that are portable, or for ones that you cannot find the EXE for. If you right-click an app in the search results, you will get an option to run the app as an administrator.

Run Box

The run box can also open apps provided you give it the correct name of the EXE to run. Open the run box with the Win+R keyboard shortcut. Type in the correct name of the EXE, for example, to open Chrome, you need to type Chrome.exe and tap enter. If you need to run the app in admin mode, tap Ctrl+Shift+Enter.

Command Prompt

Open Command Prompt as a general user. Use the cd command to move to the folder the app’s EXE is in.

Example

cd C:\Program Files (x86)\Google\Chrome\Application

Type the name of the EXE to open the app.

Task Manager

Open the Task Manager and go to File>Run new task. Use the Browse button to look for the EXE of the app, and if you need to open it with admin rights, select the ‘Create this task with administrative privileges’ option. Tap Enter to open the app.

There are quite a few different ways to open apps on Windows 10 and they’re there for a good reason. The Start Menu and the Apps list often act up for users who don’t know how else to open an app. Likewise, Windows Search often fails to find apps which means users need a back-up method if they want to get anything done.

Read 5 Ways To Open Apps On Windows 10 by Fatima Wahab on AddictiveTips – Tech tips to make you smarter