UserInitializeReceiver.java revision 6241609bd6b0c2de50d0130815a5df72b10e587c
1804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn/* 2804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn * Copyright (C) 2012 The Android Open Source Project 3804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn * 4804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn * Licensed under the Apache License, Version 2.0 (the "License"); 5804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn * you may not use this file except in compliance with the License. 6804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn * You may obtain a copy of the License at 7804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn * 8804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn * http://www.apache.org/licenses/LICENSE-2.0 9804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn * 10804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn * Unless required by applicable law or agreed to in writing, software 11804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn * distributed under the License is distributed on an "AS IS" BASIS, 12804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn * See the License for the specific language governing permissions and 14804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn * limitations under the License. 15804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn */ 16804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn 17325dc23624160689e59fbac708cf6f222b20d025Daniel Sandlerpackage com.android.launcher3; 18804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn 19804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackbornimport java.io.IOException; 20804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackbornimport java.util.ArrayList; 21804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn 22325dc23624160689e59fbac708cf6f222b20d025Daniel Sandlerimport com.android.launcher3.R; 23804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn 24804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackbornimport android.app.WallpaperManager; 25804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackbornimport android.content.BroadcastReceiver; 26804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackbornimport android.content.Context; 27804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackbornimport android.content.Intent; 28804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackbornimport android.content.res.Resources; 29804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn 30804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn/** 31804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn * Takes care of setting initial wallpaper for a user, by selecting the 32804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn * first wallpaper that is not in use by another user. 33804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn */ 34804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackbornpublic class UserInitializeReceiver extends BroadcastReceiver { 35804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn @Override 36804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn public void onReceive(Context context, Intent intent) { 376241609bd6b0c2de50d0130815a5df72b10e587cDaniel Sandler // TODO: initial wallpaper now that wallpapers are owned by another app 38804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn } 39804503c75a12e1578f2f71ff3cb32ae912fc9451Dianne Hackborn} 40