Menu

1 / 2

Building a custom launcher for ChromeOS

DEV Community·Thomas Künneth·6 months ago
#Jtgu00A3
#android#chromeos#ui#programming#home
Reading 0:00
15s threshold

In this article, I will share some of my experience of enhancing Be nice to be a launcher on ChromeOS. Now, why would I want to do that anyway? I use my ChromeOS detachable more like an Android tablet than a traditional laptop; therefore, I find myself deeply missing the Android goodness that Google's desktop OS tends to strip away. Chief among these missing features is support for app widgets. Be nice has app widget support, so it would be great to run my app on ChromeOS. On a standard Android phone or tablet you can simply swap the home app in settings.

fun changeDefaultHomeApp () { val intent = Intent ( Settings . ACTION_HOME_SETTINGS ). apply { addFlags ( Intent . FLAG_ACTIVITY_NEW_TASK ) } if ( context . packageManager . resolveActivity ( intent , PackageManager . MATCH_DEFAULT_ONLY ) != null ) { context .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.