No users in settings android

How to add multiple users and use Guest Mode on your Android phone

Source: Joe Maring / Android Central

From banking apps to personal text conversations, your Android phone is likely filled with a lot of sensitive data. With it being the computer/connected device that’s with you most often, that only makes sense.

However, when your kid wants to play the best games on your phone or you need to let a family member/friend use it to make a call, should you really be handing over immediate access to all of your information? That’s not to say the person using your phone would intentionally cause malice, but blocking those sensitive apps behind a wall helps to ensure those things stay untouched.

Thankfully, your Android phone makes it very easy to let others use it while limiting what they have access to, no matter if you have a Pixel 5 or Samsung Galaxy S21. You can do this by adding another user or enabling Guest Mode, and today, we’re going to show you how both of these features work.

How to add another user

  1. On your home screen, swipe down twice to access your Quick Settings.
  2. Tap the person icon at the bottom-right of the Quick Settings.

Tap Add user.

Source: Joe Maring / Android Central

Your phone will check for any available updates.

Source: Joe Maring / Android Central

Confirm your two-step verification for the account if you have that set up.

Source: Joe Maring / Android Central

Enter your PIN.

Source: Joe Maring / Android Central

Tap I Agree.

Source: Joe Maring / Android Central

Tap Next.

Source: Joe Maring / Android Central

With all of that done, your Android phone should now look the way it did when you first took it out of the box. Under the new user you’ve created, it’s essentially running as a brand-new device. The home screen layout is at its default state, all of the apps installed on your primary user profile are hidden, and so on.

Now that your new user is created, we can easily switch back to your main profile.

  1. On your home screen, swipe down twice to access your Quick Settings.
  2. Tap the person icon at the bottom-right of the Quick Settings.

Tap your primary profile.

Source: Joe Maring / Android Central

Just like that, you’re at your normal home screen and your phone is back to the way it was. While this method of adding a new user is a little overkill for just letting someone use your phone on a one-off situation, it can be helpful for a kid, spouse, roommate, or someone else you happen to share your phone with.

How to enable Guest Mode

Next, let’s talk about Android’s «Guest Mode.» This is what you’ll want to use for those times when you’re briefly giving your phone to someone on the spur of the moment, such as when your friend needs to make a quick phone call.

Turning on Guest Mode is much simpler than adding a new user, and the process is as follows:

  1. On your home screen, swipe down twice to access your Quick Settings.
  2. Tap the person icon at the bottom-right of the Quick Settings.

Tap Guest.

Source: Joe Maring / Android Central

With just those few taps, your phone has been switched to a simplified layout that’s tailor-made for other people to safely use your phone. They can’t see your notifications, your Google account is temporarily removed, and all of your personal apps are hidden.

Guest Mode isn’t designed to be used as a permanent profile since the functionality is limited, but depending on the situation, it’s likely better to use this than create a completely new profile.

Keep your data safe

You don’t necessarily have to create a new user profile for your kid or enable Guest Mode every time someone briefly uses your phone, but if you want to be extra sure that your personal information is only available to your eyes and your eyes only, these are two tools definitely worth checking out.

Both of these features were introduced to Android phones starting with Android 5.0 Lollipop, so you more than likely have access to them.

Google’s best

Google Pixel 5

Flagship for Google

The Google Pixel 5 is Google’s current flagship phone. It’s the best Google has to offer. You get a 6.0″ screen, Snapdragon 765G processor, and 5G connectivity. But more than that, you get Google’s Android experience which is top-notch.

We may earn a commission for purchases using our links. Learn more.

VoLTE: How to use it and why you should care

VoLTE — or Voice over LTE — is the new standard for calling throughout the U.S., Canada, and parts of Europe. Not only does it facilitate much higher call quality between cell phones, but it allows devices to stay connected to LTE while on a call, improving data speeds for everyone.

PlayStation reportedly planning service to compete with Xbox Game Pass

Sony is planning to create a service similar to Xbox Game Pass, according to a new report. The service could launch as early as sometime in the spring of 2022, with multiple tiers.

Here are the first 9 things to do with that Pixel 6 you bought Black Friday

Google has made the initial setup of a Pixel relatively painless these days, but that initial tutorial and then installation of all your old apps don’t quite get everything set up perfectly. If you picked up a Pixel 6 or 6 Pro during the insane carrier deals on Cyber Monday or Black Friday, here’s what to do with it first.

You can enjoy the Samsung Galaxy Z Fold 3 in the car with these mounts

Like any other smartphone, you might want to mount the Galaxy Z Fold 3 in your car to use it for GPS navigation, music streaming, or hands-free calls on the road. But securing your new foldable to a mount while fully open requires a special-sized car accessory for the job. So we found the best options so you can enjoy your Z Fold 3 while driving safely.

Источник

Настройки в Android-приложениях

Интересуюсь темой разработки под Android. Пишу небольшое приложение. Столкнулся с тем, что не до конца понимаю как правильно делать настройки для приложения. Немного погуглил, нашел статью, которая помогла разобраться. Решил перевести статью для русскоязычного сообщества, включив некоторые комментарии к оригиналу.

Настройки являются важной частью приложений на Android (и не только на Android — здесь и далее примечание переводчика). Это очень важно — позволять пользователям изменять настройки приложения, в зависимости от их предпочтений.

Существует два пути работы с настройками в Android — можно создать файл preferences.xml в директории res/xml, либо работать с настройками из кода. В данной статье я покажу как работать с настройками, используя preferences.xml файл.

Элементы настроек имеют следующие атрибуты:

  • android:key — имя настройки, по поторому в дальнейшем можно получить ее значение
  • android:title — заголовок элемента настройки
  • android:summary — краткое описание элемента настройки
  • android:defaultValue — значение по умолчанию

В настоящее время доступны следующие типы элементов настроек:

  • CheckBoxPreference — простой чекбокс, который возвращает значения true или false.
  • ListPreference — группа переключателей (radioGroup), из которых может быть выбран только один элемент. Атрибут android:entries указывает на массив со значениями в res/values/arrays.xml, а android:entryValues на массив с подписями.
  • EditTextPreference — показывает диалоговое окно с полем ввода. Возвращает строку в качестве значения.
  • RingtonePreference — группа переключателей с выбором рингтона.
  • Preference — настройка, работающая как кнопка.
  • PreferenceScreen — экран с настройками. Когда один PreferenceScreen вложен в другой, то открывается новый экран с настройками.
  • PreferenceCategory — категория настроек.
Экран с настройками
EditTextPreference
ListPreference
RingtonePreference
PreferenceScreen

Скриншоты выше были сгенерированы при помощи следующего preferences.xml:

Атрибуты android:entries и android:entryValues у ListPreference ссылаются на @array/listArray и @array/listValues соответственно. Значения берутся из res/values/arrays.xml, который в нашем случае выглядит следующим образом:

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

А вызвать активити с настройками можно, нажав на кнопку на нашем главном активити:

Для того, чтобы использовать выставленными в настройках значениями, добавим метод getPrefs() в главное активити, который нужно вызывать на событии onStart(). Нужно использовать именно onStart(), а не onCreate(), для того, чтобы быть уверенным в том, что используются актуальные настройки, а не те, что были во время создания гланого активити. Наш метод getPrefs() может выглядеть примерно вот так:

Источник

flawyte / Device.java

NOTE 2021/01/08: As of Android 10 (API level 29), there’s no way for non-system and non-carrier apps to get the device’s serial number, not even by calling the new Build.getSerial() method with the READ_PHONE_STATE permission, since per the docs it’ll always either return Build.UNKNOWN (API SecurityException (API >= 29). This means that the code below might not work on some devices running Android 10+, due to changes in the Android OS itself and AFAIK there’s no work around. See this official guide to migrate from using the device’s serial number ; the Settings.Secure.ANDROID_ID might also be a good replacement. Also read the comments to see how other people are dealing with this problem, maybe someone has found a solution that will help you.

This code snippet has been successfully tested on the following devices and Android versions :

  • Archos 133 Oxygen : 6.0.1
  • Google Nexus 5 : 6.0.1
  • Hannspree HANNSPAD 13.3″ TITAN 2 (HSG1351) : 5.1.1
  • Honor 5C (NEM-L51) : 7.0
  • Honor 5X (KIW-L21) : 6.0.1
  • Honor 9 Lite (LLD-L31) : 8.0
  • Huawei M2 (M2-801w) : 5.1.1
  • Samsung Galaxy S5 (SM-G900F) : 6.0.1
  • Samsung Galaxy S6 (SM-G920F) : 7.0
  • Samsung Galaxy Tab 4 (SM-T530) : 5.0.2
  • Xiaomi Mi 8 (M1803E1A) : 8.1.0

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters

Источник

Читайте также:  Что делать если при вызове нет звука андроид
Оцените статью