Identify Songs Playing Using Smartphone

What nice and safe apps are there that I can install on iPhone or Android to identify songs playing from another source? Preferable to have no ads, unlimited use and free of charge.

ANSWER

A few years back when I was in that apps discovery phase on my Android and installing as many as I can even when those apps would hardly ever be used after the first try, I came upon Shazam. Was impressed by it. It was able to ID the songs quite accurately. It sometimes took a while, a few longer seconds, sometimes but it normally was able to pick up and tell me the song title and artist. The sound quality it is listening to also is a factor for proper identification. It did have some success on getting the songs right in a public place, like a bar or a cafe, where music was playing loudly and a lot of other noise around.

There are many sound discovery or music recognition apps out there for both Android and iPhone. I have heard of SoundHound or Musixmatch.

I have not used such apps for a long time. Shazam was free when it came out. No ads then. I might have installed it again years after, and as I recall the UI changed this time with ads too. But I could be wrong. It might have been a different app. SoundHound, Musixmatch and Shazam come with free and paid versions. Whether these apps have limited use for free versions, you can find that out or DON’T.

Try out those 3 apps, OR you don’t really have to go to all the trouble. Google Assistant on Android can do the same magic. Just ask it, “Which song is this?”. Type it or say it. Better the latter. I have done it several times, for example while driving and listening to a local FM radio station.

Apple’s Siri can do the same.

Android (mobile) Keyboard Shortcuts Google Sheets

In Google Sheets on a PC it is possible to use Ctrl+Shift+: to insert the current time into a (time formatted) cell in Google Sheets.

How can this be done when using a sheet on an android mobile phone keyboard?

IN edit:
I see that =now() will insert the current time (acknowledgements to @OlegS) but the cell has conditional formatting according to the time of day (in 3 bands – am, pm and evening). Entering the time using Ctrl+Shift+: applies the correct colour but =now() does not seem to respect the conditional format. The condition is:
(for example)

value is between 10:00:00 and 16:00:00

and the cell is given a different fill colour

Is this because the full result of =now() includes the date as well as the time in a complete string and is there a way within the function to limit the result just to the time element?

Go to Source
Author: User24601

Pattern name for “Platform independant class with Hooks + sub class implementing platform specific”?

I am developing an android app to process jpg exif meta data in a workflow.

The Workflow class is implemented platform independant (i.e. code runs on android and on j2se).

The Workflow contains and calls protected virtual methods that do nothing for android specific .functions (i.e save changes to android media database)

package de.k3b.media;

// platform independant
public class Workflow {
    public void processPhoto(...) {
        ...
        saveChangesToMediaDatabase(....);
        ...
    }
    
    protected void saveChangesToMediaDatabase(...) {    
        // to nothing in platform independant version
    }
}

I also have a android platform specific sub class that implements the platform specific code

package de.k3b.android.media;

// android platform dependant
public class AndroidWorkflow extends Workflow {
    @Override
    protected void saveChangesToMediaDatabase(...) {    
        ... do something with android media database
    }
}

I can use Workflow.processPhoto(...) in non-android j2se apps and in automated unit or integration tests
and i can use AndroidWorkflow.processPhoto(...) in my android app

My question: Is this an established pattern and is there a name for this pattern?
My current pattern name “Platform independant class with Hooks” and “Platform specific Hook implementation”.

I hope to find a better (??established??) name for this pattern.


Remarks:

One established pattern to have platformindependat code is by using a Facade pattern.

Example: I use a FileFacade with a j2se implementation based on java.io.File and AndroidFileFacade which is based on android specific DocumentFile.

Although the goal of platform independance is the same the way how this is achieved is different.

Go to Source
Author: k3b

Pascal case not accepted for binding data variable name in kotlin in android studio

here’s my data

<data>
      <variable
          name="Name"
          type="com.example.practice.MyName" />
</data>

here’s the MainActivity

class MainActivity : AppCompatActivity() {
    
    lateinit var binding: ActivityMainBinding
    private val name:MyName = MyName("hello")
    
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = DataBindingUtil.setContentView(this,R.layout.activity_main)
        binding.Name = name
        binding.button.setOnClickListener { change(it) }
   }

I get error "Unresolved reference: Name"at binding.Name = name

It works perfectly fine when I set name to any name of Camel case i.e.,starting with small letter, but it doesn’t work for the name starting with capital letters.
Why ?

Go to Source
Author: preIdiot

Samsung Devices Appear to Communicate Via Mains Wiring

I have a Samsung A6 that has developed a fault that means it will only intermittently charge whilst it is turned off (the charging symbol comes on for a few seconds, then turns of for a few seconds, repeats … charging is very slow so it appears to be charging in increments).
I also have a Samsung S9. It hadn’t been turned on for over a year and its charge was completely depleted.

The A6 was already charging, and its charging symbol was turning on and off as per usual. When i plugged the S9 into the same multisocket extension, the A6 immediately showed it’s charging symbol continuously for over 30s, until the S9 showed it’s 0% charging screen (a different screen to the simple charging symbol).

I unplugged the S9 and depleted the charge to retest it, and the same thing happened.


Just out of interest, I also tested the following configuration…

S9 – MULTIPLUG – USBPortableCharger – A6

and the A6 still lit up when i plugged the depleted S9 in.


Why am I posting this in security.stackexchange?!

Is it normal that two devices from the same manufacturer are somehow aware that they are both plugged into the same electricity supply, even if it is ‘by accident’? By devices, I am mean the phones and the chargers.

Go to Source
Author: 3-14159265358979323846264

When I run Android project all components land on top of each other

I’m very new to Android Studio and I’m trying to make my 1st app, where you enter 2 numbers and it adds them together. I’m having an issue with all the view components, because in studio, they look fine, but when I run it on my phone, all the components land on top of each other, as you can see in the image. As I said, I’m very new to Android, so I’m probably making a stupid mistake.Thanks for helping!
In studio
The view on my phone

Go to Source
Author: Yankue Team