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

Sorry, the player does not support this type of audio file

I recently transferred everything from my old S8 to my new S10 using SmartSwitch. All my music was on the SD card of my old phone and I moved to a new sd card (bought separately) on the new phone. I drag-n-dropped some new tracks i got to my new phone's sd card. However when I try to play them i get "Sorry, the player does not support this type of audio". I'm using Samsung Music. It's frustrating cuz the files that apparently can't be played are mp3 & m4a. I have plenty of other songs that are either both formats that the app plays with no problem at all, and now all of a sudden it can't play this kind of file??? To make it weirder a couple of the tracks started playing when i pressed it then cut off after 15secs in the song and i recieve the same message "Sorry, the player d....". Help me, someone! Please.

Apps [Networking]Run callback on main thread

I'm developing an app where I need to have a login screen, so users can login.
At the moment I have the login completely working.
The way I'm doing it is as follows
  • The user presses the login button
  • A second thread (Networking thread) is connecting to a webpage with username and password as the post variables
  • The page then checks if the username and password match with a row in my accounts table
  • The page then outputs a 0 (if successful) a 1 (if not successful)
  • The networking thread reads the result and calls a callback with the result
  • The callback then is called on the ui thread of the app and displays a toast if the login wasn't successful or continues to the next activity
Now comes the part where I'm a bit more unsure about, which is the code. To me it feels like overkill to do it this way (especially the part where I put the calling activity as a variable for the callback to execute the callback on the ui thread).

Login method in the login activity
Java:
private void login() {
    Login login = new Login(this);
    login.makeRequest(new Callback<String>() {
        @Override
        public void onComplete(Result<String> result) {
            if (result instanceof Result.Success) {
                Intent dsp = new Intent(LoginActivity.this, MainActivity.class);
                startActivity(dsp);
            } else {
                Result.Error<String> error = (Result.Error<String>) result;
                Toast.makeText(getApplicationContext(), error.message, Toast.LENGTH_SHORT).show();
            }
        }
    }, usernameEt.getText().toString(), passwordEt.getText().toString());
}

makeRequest method in the Login class
Java:
public void makeRequest(final Callback<String> callback, final String username, final String password) {
    new Thread(new Runnable() {
        @Override
        public void run() {
            final Result<String> result = makeSynchronousRequest(username, password);
            callback.execute(result, callingActivity);
        }
    }).start();
}

Callback class
Java:
public abstract class Callback<T> {

    public abstract void onComplete(Result<T> result);

    public void execute(final Result<T> result, AppCompatActivity callingActivity) {
        callingActivity.runOnUiThread(new Runnable() {
            @Override
            public void run() {
                onComplete(result);
            }
        });
    }
}

Help Having problems

I love my android. About 2 weeks ago. I plugged into my brother's car to recharge. A note came on phone that file ready to upload. I shut my phone off and unplugged. About 2 hours later her called for missing glasses. ( I was dropping them off at airport in their car) I said to myself have to turn around. I came across the radio. Ever since then my phone is acting up, very slow , microphone on calls seldom works. What happened to my phone.

Auto-Enable Loudspeaker On Incoming Calls

Hello Android forums people.

To make it quick, I have been trying to make an app when any device like phone is connected with Bluetooth . then i received the incoming call from anyone then loudspeaker is disabled .but when i am not connected any device from any Bluetooth or other device like that "earphone" then i received incoming call from anyone then loudspeaker is automatically enabled.
I have seen so many posts with different suggestions, but nothing really pinpointing in the right direction.

So.... any ideas on how I can overcome this?

ZEN GAMES: COLOR BLOCKS PUZZLE[FREE][GAME]

ZEN GAMES: COLOR BLOCKS PUZZLE[FREE][GAME]

Color Blocks Puzzle by Zen Games is a simple puzzle game for phones and tablets. This game has been built for stress relief. No rush, no hurry - a simple color blocks puzzle with no score or time limit. In this version of Zen games we have added 100 levels from easy to difficult. The game can be played by all ages by just moving the multi color blocks to match adjacent color and find your Zen.

Color Block Puzzle will improve your logic, coordination and help you relax with a soothing music as you cross each level moving color blocks and matching them. We have designed this zen game with soothing colours and happy music with a thought of helping you unwind.
Download to Google play: ZEN GAMES: COLOR BLOCKS PUZZLE
AtO-I1XQqUS-hokyyFtkO_viB25nK8OUoIH90HySu2KLFAUIhtc9Y5BMlOW61tE1_EXw=w2504-h1200
4SuWifw6mfXjNeZL1S8nOy3TtiHUnD5bgxtM9iyendzl6hMZS5SkXt7Xb8a3sZcp8pm0=w2504-h1200

Help System App Keeps stopping

A System app by the name of "Quick Connect has been stopping for no reason at all, multiple times a day...

It has been stopping for 2 weeks now...

It stops every 15 - 60 Minutes...

No matter if I'm watching a video, on a Call or just playing a game... It's very annoying...

20200907_092129.png

Force Stopping it, Clearing The Cache/ Storage doesn't do anything...

Restarting does nothing...

how to increase listening time of speech recognition (Speech to Text) android (SpeechRecognizer)

I am working on app which require speech to text. I have integrated SpeechRecognizer service. Please check below demo project code for same. Here I have tested that SpeechRecognizer stop listening automatically after 10 to 15 seconds. So I looked for following solution to increase the listening time but did not worked.


I also posted same thing on stack over flow : https://stackoverflow.com/questions...f-speech-recognition-speech-to-text-android-s

Ads in Apps

I'm sitting here with a cup of cold coffee and had a interesting conversation about ads in apps with somebody.
And I got a strange thought.

Today are ads in apps normal .... but ..... isn't it not more like something like Al Capones racketeering?

It sounds provocativve but think it through.

Companys offer apps with ads included NOT to earn anymore money to develop apps.
I recognised so many apps from different "companys" where the apps are all the same from the same developer and the ads get used as pressure to pay for it not to see them anymore.

So the money or the payment is not anymore there to pay for developing software.
Today is the money for that to get saved from ads.
You have to pay this people who started the trouble in the first case?

So many people say, it's only a ad, who cares.
And it pays the developer.
No, it doesn't.

Yes, it was from the beginning so.
But today it's so I want to send or read a simple eMail and my old GMail app showed me only the eMail and the newest GMail app brings ads in push up notifications direct on the screen and if you turn that of you get also no notivications anymore for new eMails.

For example I paid for a game I liked to get rid of the ads.
Afterwards I realised still somehow the game was restricted because functions you could see are not working.
A app store search brought me the info the same game got offered from different companys.

What happened?
There was one developer who sold the game for different prices for different leves how far it works to different people, who packed it full with ads and offered it as download with "pay for removing ads" option.

I get remembered on Al Capones racketeering to pay to be safe from him.

Today the complete mobile and Android situation get more and more pushed in a corner your mobile is only a ad transmission tool.

And you can turn off whatever you want, after the next update it's turned on again and still such simple apps like a eMail app get a video phone function and in the same moment push up ads on your screen.

I got told the unnecessary function video telephone (I have 4 other apps with the same function) is the reason for the update but in the end the dominant. function is ads on the screen?

If the developer want to make money, offer a 30 days test version as it was usual for years.
But today you don't make money anymore with apps.
You make money with ads.

....... spontan 2nd provocative thought .......
Company pay for ads.
The same ads anoy people so much they pay for it to remove them.
So .... who profit from the ads?
The companys who payed for the ads?
The people who are so anoyd about so many ads they don't look at them anymore?
Or the guys in the middle who bring the apps in the app store who get payed for the ads AND get paid for it to remove them?

The complete ad culture is in my eyes complete living for itself and not anymore for that ads was thought about in the first case : to advertise for a product.
Only companys like Google or the guys who offers ad controlled apps really earn money on it.
The companys in the first case who pay for it there ads goes online and the users at the other end who pay for it to get rid of the ads are the loosers in my eyes.

Provocative thoughts or only a monday morning problem because I got a cold coffee?

Filter

Back
Top Bottom