1 package com.android.settings.notification.zen; 2 3 import android.app.Activity; 4 import android.content.Intent; 5 import android.os.Bundle; 6 import android.provider.Settings; 7 8 public class ZenSuggestionActivity extends Activity { 9 10 @Override onCreate(Bundle savedInstanceState)11 public void onCreate(Bundle savedInstanceState) { 12 super.onCreate(savedInstanceState); 13 14 // start up zen settings activity 15 Intent settingsIntent = new Intent(Settings.ACTION_ZEN_MODE_SETTINGS) 16 .setPackage(getPackageName()); 17 startActivity(settingsIntent); 18 19 // start up onboarding activity 20 Intent onboardingActivity = new Intent(Settings.ZEN_MODE_ONBOARDING) 21 .setPackage(getPackageName()); 22 startActivity(onboardingActivity); 23 24 finish(); 25 } 26 } 27