Android Intent problems So a few days ago I build an update for my custom android car tablet with my own launcher (based on nexus 7 2013). I added a few new features and some fixes, and I added accidentally the device admin permission together with the install packages permission. 

After the update was installed on the tablet, the device opened always the Android for work app when clicked something which should start an external app (like Spotify or Maps). I thought it might be something with these permission and I deleted them and reinstalled a new version of the app (not updated!), but it didn't worked, it still started the Android for work app. 

Then I uninstalled the Android for work app, and now the google now app started. After uninstalling it too, the settings app keep launching?!

Has anyone an idea why this is happening and what I can do to get rid of it?
Try:


Restarting
If you can (i.e. phones bootloader is unlocked):
Try clearing the cache and 'davlik-cache' (By installing a custom bootloader
Deleting the offending app using adb (the same software you use to put the app you wrote on there)