Using NerdLauncher as a Home Screen

Who wants to start an app to start other apps? It would make more sense to offer NerdLauncher as a replacement for the device’s Home screen. Open NerdLauncher’s AndroidManifest.xml and add to its main intent filter.

Listing 22.10  Changing NerdLauncherActivity’s categories (AndroidManifest.xml)

<​i​n​t​e​n​t​-​f​i​l​t​e​r​>​
 ​ ​<​a​c​t​i​o​n​ ​a​n​d​r​o​i​d​:​n​a​m​e​=​"​a​n​d​r​o​i​d​.​i​n​t​e​n​t​.​a​c​t​i​o​n​.​M​A​I​N​"​ ​/​>​
 ​ ​<​c​a​t​e​g​o​r​y​ ​a​n​d​r​o​i​d​:​n​a​m​e​=​"​a​n​d​r​o​i​d​.​i​n​t​e​n​t​.​c​a​t​e​g​o​r​y​.​L​A​U​N​C​H​E​R​"​ ​/​>​
 ​ ​<​c​a​t​e​g​o​r​y​ ​a​n​d​r​o​i​d​:​n​a​m​e​=​"​a​n​d​r​o​i​d​.​i​n​t​e​n​t​.​c​a​t​e​g​o​r​y​.​H​O​M​E​"​ ​/​>​
 ​ ​<​c​a​t​e​g​o​r​y​ ​a​n​d​r​o​i​d​:​n​a​m​e​=​"​a​n​d​r​o​i​d​.​i​n​t​e​n​t​.​c​a​t​e​g​o​r​y​.​D​E​F​A​U​L​T​"​ ...

Get Android Programming: The Big Nerd Ranch Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.