Android lock screen picture

How To Set a Picture on your Lock Screen in Android

You may have a great Android theme on your smartphone, with attractive background images and great wallpaper. Or you may have some cheesy advertising for your service provider – classy of them to make you pay to advertise their service! If you don’t like your default theme and background, then there’s good news—it’s not hard to change the picture on your lock screen in Android so that you can have whatever image you want as your background.

One of the joys of Android comes from the lack of uniformity in phones. With third-party launchers, icon packs, theming engines, and other tools on Android, you can make your phone look like anything. Of course, this customization means that many phones have different ways of performing tasks as simple as selecting a wallpaper for your lock screen. While we’ll be using Google’s own version of Android on the Pixel line of devices for this guide, if you’re using a Samsung or LG device, you should be able to largely follow along at the same speed. Let’s take a look at how to set your lock screen wallpaper on Android.

Selecting Your Wallpaper through Settings

When you’ve decided you want to change your stock wallpaper to something a big more flashy, grab your phone and head into the settings menu on the device. Depending on the manufacturer of your device, this may look a little different than you’re used to on your phone. For most devices, however, this will follow a standard method no matter what make and model of device you have.

Look for the Display option in your menu, then select it. Inside this menu, look for something that mentions Wallpapers, which should open up the standard wallpapers menu on your phone. On Google’s version of Android, this actually opens the Wallpapers ap0p that you can use to select an art design or anything else. You can pick between selecting from your phone’s photos, or from any of the default wallpapers included on your device. On Samsung devices, there’s only a handful of default wallpapers included on the device, along with plugins for any wallpaper apps you may have downloaded previously. On Google’s phones, the wallpaper app offers hundreds of live and static wallpapers to choose from.

Once you’ve chosen your wallpaper photo, click the selection, then click “Set Wallpaper.” The app will then prompt you with the choice to either set the wallpaper you’ve chosen as your lock screen, home screen, or both. You can make your choice as you wish, either separating your wallpapers or keeping them uniform.

It’s worth noting that some Android phones do not allow you to change your lock screen separate from your home screen, so if you do not have the option to separate your wallpapers, this may be an option lacking in your device.

Select Your Wallpaper through an App

If you’ve chosen a wallpaper app from the Play Store, you may not have to dive into your settings to use it. Instead, just use the wallpaper app to set your wallpaper by selecting the photo you want, then following the on-screen steps that offer wallpaper choices. Typically, there’s a check mark or other signifier to show how to select the wallpaper within the app, but as you might imagine, it’s going to be just a little different for each app.

Читайте также:  Версии андроида для wechat

The Best Wallpaper Apps

If you’re looking for some apps to check out for wallpapers, we have plenty of selections. Backdrops is one of our favorite picks. The app is free to download, though it does include some paid packs for users who want to extend their options. There’s a brand-new, exclusive wallpaper everyday (and they often look fantastic), and though the community portion of the app can be a bit hit or miss, you’ll often find some excellent content there. Meanwhile, the app’s design is fantastic and easy to find content. Typically, when you load the app, you know immediately that you’ll find something you like. Other wallpaper applications often require you to ensure the app is designed for a device with a screen resolution matching yours, or won’t be able to take advantage of the way Android’s wallpapers slide along the background when switching between apps. Backdrops is different: it takes every single good idea we’ve seen with wallpaper apps on Android and combines them into one sleek package.

Similarly, Google’s Wallpaper app we described above is excellent, excelling at curation and simplicity. Originally bundled with their first-generation Pixel phones in October 2016, Google has since made the Wallpapers app available to any Android user through the Play Store, offering most users a simple way to get some great-looking, modern wallpapers on their device. While it isn’t quite as feature-packed as an application like Backdrops, lacking user-uploaded images or a tag system, the fact remains that Google Wallpapers is still one of the best applications for any user looking for a new wallpaper without spending half their day browsing through content.

Finally, one of our newest favorite wallpapers is Paper Splash, which does a decent job avoiding the pitfalls that often hit other wallpaper apps. Paper Splash pulls directly from Unsplash while simplifying the experience and offering clean, minimalist backdrops for your phone. With no ads, a featured wallpaper each day, and a preview ability that allows you to see how the wallpaper will look with your icons, Paper Splash is the newest must-have wallpaper app for your device.

One of the many attributes that makes Android the first choice for billions of users around the world is the ability to customize the app in a robust number of ways. From the ability to change your launcher to the option to add all sorts of crazy and unique icon designs to the screen, the ability to change the way your phone looks and feels throughout the day can’t be discounted for a certain type of phone owner. Everyone loves the feel of a new device in their hand, and with Android, you can customize your device so that it feels unique and different every single day of the week.

Does your phone work differently than this? Having trouble finding where to set lock screen wallpaper? Tell us about it below if you do!

Источник

Как я писал кастомный локер

Привет хабрастарожилам от хабрановичка. Ровно год назад я решил написать кастомный локер (экран блокировки) для моего старичка Samsung Galaxy Gio в стиле популярного тогда Samsung Galaxy s3. Какие причины заставили меня это сделать, писать не буду, но добавлю лишь то, что в Google Play я программу не собирался выкладывать и каким-либо другим способом заработать на ней не планировал. Данный пост посвящен последствиям моего решения.

Читайте также:  Гугл карты навигатор для андроид

Начну издалека. Многие хвалят Android за открытость и возможность заменить и настроить встроенные программы под свои нужды. Что тут сказать? В сравнении с другими популярными ОС, это, безусловно, так, но если копнуть глубже в архитектуру Android возникают трудности и вопросы. Локскрин (в Android это называется keyguard) как раз и вызывает вопросы: почему Google не поступили с ним, так как с лаунчерами, почему не сделали диалог со всеми доступными на устройстве локерами и с возможностью выбрать нужный по умолчанию? Где-то в глубине мозга тихим нерешительным голосом кто-то отвечает: может быть Google (Android Ink. если быть точнее) поступил так из соображений безопасности. Этот голос вероятно прав и многим разработчикам локеров и мне (скромность не позволила приписать себя к их числу) пришлось изобретать велосипед, и не один.

Изучаем исходники

Начал я с использования одного из плюсов Android – из изучения исходников. Я один из тех консерваторов, которые уже 2,5 года сидят на стоковой прошивке (2.3.6), поэтому и исходники изучал соответствующие. Классы, отвечающие за блокировку экрана, лежат в android.policy.jar, что в system/framework. Первоначальной целью было найти «точку входа», т.е. где и когда вызывается локер. Искал здесь.

В классе PhoneWindowManager.java есть метод screenTurnedOff(int why), который вызывает одноименный метод класса KeyguardViewMediator. Проследив, кто кого вызывает, я нашел метод в классе KeyguardViewManager, создающий непосредственно View стокового локера.

Что ж, все гениальное – просто. Решил повторить этот код для своего приложения и получил ошибку – нет нужного permission. Немного погуглив, добавил следующие разрешения: SYSTEM_ALERT_WINDOW и INTERNAL_SYSTEM_WINDOW. Это не помогло.

Вернулся к изучению класса PhoneWindowManager.java:

Для требуемого окна TYPE_KEYGUARD нужно второе из моих добавленных разрешений. Задней точкой тела начал ощущать, что не все так просто, как я себе представлял. Решено было посмотреть на описание этого permission. Вот выдержка из AndroidManifest.xml пакета framework-res.apk.

Вот она – черная полоса в жизни. Ведь я понимал, «signature» – это значит, что использовать этот пермишн может только пакет, подписанный тем же ключом, что и пакет, выдавший это разрешение (в нашем случае — framework-res.apk). Ладно, достаем инструменты для изготовления велосипедов.

Версия один

Первым решением было использовать activity в качестве локскрина. На stackoverflow советуют использовать следующий код:

Признаюсь, в первых версиях я использовал этот метод. У него есть существенные недостатки: статусбар не блокируется, начиная с версии API11 этот метод не работает.

Решение первого недостатка (переполнениестека опять помогло) следующее. Поверх статусбара с помощью WindowManager рисуется прозрачный View, который перехватывает все TouchEvent. Вот служба, реализующая это:

Второго недостатка для меня не существовало, на Gingerbread данный код работал превосходно. На 4pda, куда я опрометчиво выложил свое творение, пользователи жаловались, что на многих телефонах мой локер сворачивался как обычное приложение. Для них найдено такое решение. В качестве стандартного лаунчера устанавливается пустышка. При нажатии кнопки HOME система вызывает мой лаунчер-пустышку. Если кастомный локер активен, лаунчер сразу же закрывается в методе onCreate(), т.е. визуально нажатие кнопки HOME ни к чему не приводит. Если кастомный локер не активен, мой лаунчер тут же вызывает другой правильный лаунчер, который пользователь указал в настройках.

Вот код пустышки:

Выглядело это следующим образом:

Эти велосипеды ездили долго и хорошо, пока я не решил сделать «правильный» локскрин, и уже в стиле Samsung Galaxy S4.

Версия два

Когда системе необходимо запускать кастомный локер? Очевидно, что при выключении экрана. Создадим службу, регистрирующую BroadcastReceiver, т.к. из манифеста данный фильтр не работает.

Необходимо учесть две особенности:

1. Служба должна быть запущена в момент загрузки устройства. Создадим BroadcastReseiver с IntentFilter «android.intent.action.BOOT_COMPLETED». Есть одно НО: служба при запуске должна отключить стандартную блокировку экрана. Особенностью Android является то, что стандартное окно ввода PIN-кода является частью стокового экрана блокировки. Поэтому служба должна запускаться только когда PIN буден введен.

Максимум, на что хватило моей фантазии:

2. Проанализировав PhoneWindowManager видно, что в метод screenTurnedOff(int why) передается переменная why, принимающая 3 значения:
— экран выключился по истечению таймаута (в этом случае стоковый локер запускается с задержкой),
— экран выключился при срабатывании сенсора приближения (во время телефонного разговора),
— экран выключился при нажатии кнопки.
В моем случае такого разнообразия нет. Поэтому служба мониторит состояние телефона, и при входящем звонке или во время разговора экран не блокируется.

Читайте также:  Описание регуляторов цп андроид

Вот основной код службы:

Идея не использовать activity, а использовать WindowManager была еще сильна. Из пяти типов окон, использующих разрешение SYSTEM_ALERT_WINDOW, мне подошел TYPE_SYSTEM_ALERT. Причем у него были очевидные достоинства: блокировался статусбар (по крайней мере, на Gingerbread) и перехватывалось нажатие кнопки HOME (работает даже на Jelly Bean).

Промежуточным звеном между службой и KeyguardView является класс KeyguardMediator:

Дальше история становится менее интересной, так сказать, будничной. На мой локер можно добавлять ярлыки приложений (здесь все стандартно и просто) и виджеты (а вот этот момент достоин отдельной статьи).

Теперь все стало выглядеть современней:

Источник

How to change the lock screen on your Android device in 2 different ways

One of the coolest things about smartphones is our ability to personalize them. When it comes to what your phone looks like inside and out, we have a lot more freedom now than we did in the days of the standard flip phone — when the coolest phone out there was a Razor that came in bright colors.

Now, not only can you customize the exterior of your phone, but also the inner working of the device. There are some people who say that your phone’s lock screen is a modern-day locket, because people will set a picture of a person, people, or even a pet that they love as their lock screen so they can look at them several times throughout the day.

No matter what you set as your lock screen — whether it’s someone you love, a picture of scenery you really like, or something else entirely — it’s easy to change at any time. If you have an Android phone, there are actually two different ways to change your lock screen. You can select a photo you’ve taken, or you can use one of Android’s pre-existing themes.

Here’s how to change the lock screen on Android.

Check out the products mentioned in this article:

Samsung Galaxy s10 (From $859.99 at Walmart)

How to change the lock screen on an Android to your own photo

1. Open the photos app and select the photo you would like to use.

2. In the top right corner of the screen, tap the three dots to bring up an options menu.

3. Scroll to the right of the list until you get to the option titled «Use as» and tap it.

4. In the pop up menu, tap the option labeled «Photos Wallpaper.»

5. Adjust the photo to the dimensions and zoom level of your liking, then tap «Set Wallpaper» in the top right corner.

6. Choose «Lock Screen» from the menu — or, if you want it to be the background of your phone after it unlocks as well, choose «Home screen and lock screen.»

How to change the lock screen on an Android to a default wallpaper

1. Open your device’s Settings app.

2. From the settings menu, select «Display.»

3. From the «Display» menu, select «Wallpaper.»

4. Choose a category from the list to browse to look for your new wallpaper. Browse until you find a photo you like.

Note: You can also choose «My Photos» at this juncture, and use this method to set one of your own photos as your background.

From there, follow step five and six from the above section to complete the process.

Источник

Оцените статью