• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to show seconds in the status bar clock?

Seriously; why?
I get it on a watch. But why a phone,

I have found the clock on my phone to be off by quite a bit.

Using a clock sync app
OK, installed the SDK and there's an option to show "Clock seconds" on my Samsung Galaxy S9 (Android 10), but while it can be toggled on and off there is no change in the time display. There is a general statement near the top that says that the manufacturer may have disabled some functionality.
Any way to get around this?

Have you tried restarting the device?

Also, I used to use an app called Clock Sync a while back.

It may help with your accuracy.

https://clocksync.en.uptodown.com/android

inflator errors using ?attr/colors in styles

I've been working on an app for awhile and finally decided to add support for different themes. I've read a LOT of articles and seen a lot of examples. What I've ended up doing is creating a list of colors for every theme, created definitions to them in my attrs.xml and added them as custom colors in my themes.xml file. Each time I try to use one of the colors in the theme (i.e. ?attr/automate_PrimaryColorCyan) and assign it to either background or textcolor the inflator would crash and close my app. I then added

implementation 'com.android.support:design:26.1.0' to my gradle build (by suggestion)

to support my actions. This caused android studio to bark about this implementation and had me migrate the implementation to androidX. After syncing my gradle build I was able to actually assign these values to items but instead of producing the color I wanted I ended up with an extremely dark gray background instead of the color defined in my @colors file. Everything appears normal in the designer. My minimum api is 26 and the target is 30. Pulling my hair out with this problem. Here's the code for my theme, attrs.xml and styles.xml

Theme
Java:
<resources xmlns:tools="http://schemas.android.com/tools">
    <!-- Base application theme. -->
    <style name="Theme.AutoMateCyan" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
        <!-- Primary brand color. -->
        <item name="colorPrimary">@color/automate_PrimaryColorCyan</item>
        <item name="colorPrimaryVariant">@color/automate_PrimaryVariantCyan</item>
        <item name="colorOnPrimary">@color/automate_ColorOnPrimaryCyan</item>
        <item name="android:textColorPrimary">@color/automate_textColorPrimaryCyan</item>
        <item name="android:windowBackground">@color/automate_windowBackgroundCyan</item>

        <!-- Secondary brand color. -->
        <item name="colorSecondary">@color/automate_SecondaryColorCyan</item> // background
        <item name="colorOnSecondary">@color/automate_ColorOnSecondaryCyan</item>
        <item name="android:textColorSecondary">@color/automate_SecondaryColorCyan</item>

        <item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryDark</item>
        <item name="android:navigationBarColor">@color/automate_navigationBarColorCyan</item>
        <item name="colorAccent">@color/automate_ColorAccentCyan</item>

        <!--Custom attributes (in attrs.xml)-->

        <item name="automate_PrimaryColor">@color/automate_primary_Cyan</item>
        <item name="automate_PrimaryTextColor">@color/automate_primaryText_Cyan</item>
        <item name="automate_BorderDarkColor">@color/automate_borderDark_Cyan</item>
        <item name="automate_BorderLightColor">@color/automate_borderLight_Cyan</item>
        <item name="automate_LabelTextColor">@color/automate_labelText_Cyan</item>

    </style>

</resources>

Styles
Java:
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="AutoMateTextBox" parent="android:Widget.TextView">
        <item name="android:textColor">?android:textColorPrimary</item>
        <item name="android:paddingStart">5dp</item>
        <item name="android:paddingEnd">5dp</item>
        <item name="android:typeface">sans</item>
        <item name="android:background">@drawable/box_style_rounded_5pt</item>
        <item name="android:textSize">20sp</item>
    </style>
    <style name="AutoMateMyHeader" parent="android:Widget.TextView">
        <item name="android:background">@drawable/box_style_header</item>
        <item name="android:paddingStart">5dp</item>
        <item name="android:paddingEnd">5dp</item>
        <item name="android:paddingTop">4dp</item>
        <item name="android:paddingBottom">4dp</item>
        <item name="android:textAlignment">textStart</item>
        <item name="android:typeface">sans</item>
        <item name="android:textColor">@color/white</item>
        <item name="android:textSize">20sp</item>
        <item name="android:textStyle">bold</item>
    </style>

    <style name="AutoMateMyEditBox" parent="android:Widget.EditText">
        <item name="android:textColor">?android:textColorPrimary</item>
        <item name="android:paddingStart">5dp</item>
        <item name="android:paddingEnd">5dp</item>
        <item name="android:typeface">sans</item>
        <item name="android:background">@drawable/box_style_rounded_5pt</item>
        <item name="android:textSize">20sp</item>
    </style>
    <style name="AutoMateMyEditBoxInverted" parent="android:Widget.EditText">
        <item name="android:textColor">?android:textColorPrimary</item>
        <item name="android:paddingStart">5dp</item>
        <item name="android:paddingEnd">5dp</item>
        <item name="android:typeface">sans</item>
        <item name="android:background">@drawable/box_style_rounded_5pt_inverted</item>
        <item name="android:textSize">20sp</item>
    </style>
</resources>

Attributes
Java:
<?xml version="1.0" encoding="utf-8"?>
<resources>

    <attr name="automate_PrimaryColor" format="reference" />
    <attr name="automate_PrimaryTextColor" format="reference" />
    <attr name="automate_BorderDarkColor" format="reference" />
    <attr name="automate_BorderLightColor" format="reference" />
    <attr name="automate_LabelTextColor" format="reference" />


</resources>

Java:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:clickable="false">

The textview using my headerStyle
    <TextView
        android:id="@+id/headerText"
        style="@style/AutoMateMyHeader"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>

The shape file referenced in the AutoMateMyHeader definition
This should make the background color a nice dark cyan and it's actually very dark gray
Java:
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="?android:attr/colorPrimary"/>
</shape>

And finally here's what the view looks like when I run the app
The headers should have the same background color as the toolbar.
ugly_screen.jpg

Help N950F Boots only into recovery and not the OS

The phone randomly started restarting itself and when I would shut it down, it would reboot. I tried to factory reset the phone but then it wouldn't work. So I booted into recovery and cleared the cache and factory reset there and then it wouldn't boot to the OS anymore, just boots into the recovery screen.
sounds like your system partitions are corrupted and if flashing a firmware update does not work, i'm afraid your phone is toast. this phone came out in 2017. i think its time to upgrade your phone.

Keep Screen On

I also have a Note 9 and use this ... https://play.google.com/store/apps/details?id=com.bhanu.screenonmanager ... It can set the screen to stay on on a per-app basis. I use it on my bike (bicycle!) for things like Strava, as well as for things such as OneNote whilst food shopping as it's a pain to have to keep turning the screen on to see the wifes shopping list ... Obviously the power button still works so you can turn the screen off/on if you want or need to.

Unknown App Icon

no idea. just look on your phone's notifications, but something tells me that this is not your phone.

we get this question almost everyday. the problem is that there are millions upon millions of apps each with their own notification icons. so unless it is a popular app like facebook or youtube, the chances of anybody recognizing it is small.

why not just ask the person what the icon is?

anyways.....good luck

Again, in 1963....

I drove from London to Copenhagen in 2004 with my first laptop.

No wifi or cell connection, can't remember if it had a Compass or GPS (?) - So a 15.6" laptop charging on the passenger seat, screen facing me after a fashion.

MS Autoroute (Map Quest) had the full route set up. I just had to to go the next page or re - scale and follow the blue line.

Can't remember why it was better than a map tbh, but it gave me a better overview of where I was (until I got lost in Ghent for an hour because of detours). 3 day trip but exciting.

AUE3 U.S.A. unlocked Snapdragon models JUNE Security patch

This latest release is the same build and change list, 21556280, as the previous AUDD release from April. No new update, bugfixes or features, just the June Android Security patch.

Build G998U1UES3AUE3, 13th May build, is now available for the following unlocked U.S. Snapdragon models...
  • S21 5G model SM-G991U1
  • S21+ 5G model SM-G996U1
  • S21 Ultra 5G model SM-G998U1
On the following CSC codes..
  • XAA
  • VZW
  • USC
  • LRA
  • FKR
  • CHA
  • CCT
  • AIO
  • ACG
  • ATT
  • TMB

Source

AUE3 U.S.A. unlocked Snapdragon models JUNE Security patch

This latest release is the same build and change list, 21556280, as the previous AUDD release from April. No new update, bugfixes or features, just the June Android Security patch.

Build G998U1UES3AUE3, 13th May build, is now available for the following unlocked U.S. Snapdragon models...
  • S21 5G model SM-G991U1
  • S21+ 5G model SM-G996U1
  • S21 Ultra 5G model SM-G998U1
On the following CSC codes..
  • XAA
  • VZW
  • USC
  • LRA
  • FKR
  • CHA
  • CCT
  • AIO
  • ACG
  • ATT
  • TMB

Source

AUE3 U.S.A. unlocked Snapdragon models JUNE Security patch

This latest release is the same build and change list, 21556280, as the previous AUDD release from April. No new update, bugfixes or features, just the June Android Security patch.

Build G998U1UES3AUE3, 13th May build, is now available for the following unlocked U.S. Snapdragon models...
  • S21 5G model SM-G991U1
  • S21+ 5G model SM-G996U1
  • S21 Ultra 5G model SM-G998U1
On the following CSC codes..
  • XAA
  • VZW
  • USC
  • LRA
  • FKR
  • CHA
  • CCT
  • AIO
  • ACG
  • ATT
  • TMB

Source

Missing "Trusted Voice" option in Smart Lock

Hi All,

I recently upgraded my phone from Galaxy S9+ (Android 10) to Galaxy S21 (Android 11) and noticed a difference in the functionality of Smart Lock.

Previously I could unlock my phone with "OK Google" by turning the "Trusted Voice" option on in Lock Screen > Smart Lock.

The new Galaxy S21 (or Android 11) is missing the "Trusted Voice" option and when I try to make a call for example, using the OK Google while the phone is locked, I get a vocal message from google assistant saying: "Sure but first you need to unlock the phone".

I used PIN and Fingerprint as credential to unlock the phone in both the Galaxy S9+ and the Galaxy S21

I was wondering if anyone else noticed that and if there is a fix or a workaround?

Filter

Back
Top Bottom