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

How to change the notification sound of an app in android?

Hi,

Everyone says to change the notification sound, you go into setting and application and notification and then change it there.

This DOES NOT WORK for many apps, INCLUDING google's own messenger program.

Am I missing something or is this feature totally broken in android?
This is a feature that worked for many of my older devices but will not work on my verizon samsung galaxy s8 with all the android updates that verizon supports.

Can anyone let me know if there is another way to actually make my different apps have different notification sounds so I know which one is alerting me without looking?

Thanks!
Juggernaut
www.daddyversus.com

Bitmap Rendering Wrong Size - Game Engine

I just put together the foundations for a simple game engine.

I was testing it with a mock background .png image. The image is 360px-640px 16:9. I tried loading it on a Nexus 5 and a Pixel 2 which are both 1080x1920. So the image should take up exactly 1/8th of the screen on both devises.

For some reason though not only is it larger than it should be but on each devise its being rendered at a different size. As you can see in the bellow image on the Pixel (right hand side) its taking up about 2/3rds of the screen and on the Nexus (left hand side) its taking up the whole screen.


image hosting

Anyone know why this might be happening?

Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:dist="http://schemas.android.com/apk/distribution"
    package="com.example.magerush2">

    <dist:module dist:instant="true" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".GameActivity"
            android:screenOrientation="portrait"
            android:theme="@style/AppTheme.Fullscreen"></activity>

        <activity android:name=".MainActivity"
            android:screenOrientation="portrait"
            android:theme="@style/AppTheme.Fullscreen">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"></action>

                <category android:name="android.intent.category.LAUNCHER" />

            </intent-filter>
        </activity>
    </application>

</manifest>

Java:
package com.example.magerush2;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity {

    public static final String EXTRA_SOUND = "com.example.magerush2.EXTRA_SOUND";
    public static final String EXTRA_CON = "com.example.magerush2.EXTRA_CON";


    Button Play;
    Button Continue;
    Button Sound;

    TextView txt;

    Boolean soundflip = true;
    Boolean continueflip = false;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        txt = (TextView) findViewById(R.id.textView);
        txt.setText("On");

        Play = (Button) findViewById(R.id.buttonplay);
        Play.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                opengame();

            }
        });

        Continue = (Button) findViewById(R.id.buttoncontinue);
        Continue.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                continueflip = true;
                System.out.println(continueflip);
                opengame();
            }
        });

        Sound = (Button) findViewById(R.id.buttonsound);
        Sound.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                soundflip = !soundflip;
                if (soundflip) txt.setText("On");
                if (!soundflip) txt.setText("Off");
            }
        });

    }



    public void opengame(){
        Intent intent = new Intent(this, GameActivity.class);

        String soundpass = "";
        String conpass = "";

        if (soundflip) soundpass = "1";
        if (!soundflip) soundpass = "0";
        if (continueflip) conpass = "1";
        if (!continueflip) conpass = "0";

        intent.putExtra(EXTRA_SOUND, soundpass);
        intent.putExtra(EXTRA_CON, conpass);

        startActivity(intent);
    }

}


Java:
package com.example.magerush2;

import androidx.appcompat.app.AppCompatActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class GameActivity extends Activity {

    Boolean soundflip;
    Boolean continueflip;

    private TDView gameView;

    private View decorView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_game);


        //Get veriables from main screen
        Intent intent = getIntent();
        String sound = intent.getStringExtra(MainActivity.EXTRA_SOUND);
        String con = intent.getStringExtra(MainActivity.EXTRA_CON);

        if (sound.equals("1")) soundflip = true;
        if (sound.equals("0")) soundflip = false;
        if (con.equals("1")) continueflip = true;
        if (con.equals("0")) continueflip = false;

        System.out.println("Sound is: " + soundflip);
        System.out.println("Continue is: " + continueflip);

        gameView = new TDView(this);
        setContentView(gameView);

        decorView = getWindow().getDecorView();

    }

    @Override
    public void onWindowFocusChanged(boolean hasFocus) {
        super.onWindowFocusChanged(hasFocus);

        if(hasFocus){
            decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
        }




    }
    @Override
    protected void onPause() {
        super.onPause();
        gameView.pause();
    }

    @Override
    protected void onResume() {
        super.onResume();
        gameView.resume();
    }

}

Java:
package com.example.magerush2;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.view.SurfaceHolder;
import android.view.SurfaceView;

public class TDView extends SurfaceView implements Runnable {

    volatile Boolean playing;

    Thread gameThread = null;

    Background background;

    public Paint paint;
    public Canvas canvas;
    public SurfaceHolder ourholder;

    public TDView(Context context) {
        super(context);

        ourholder = getHolder();
        paint = new Paint();

        background = new Background(context);
    }

    @Override
    public void run() {
        while (playing) {
            update();
            draw();
            control();
        }
    }


    public void update(){

    }
    public void draw(){

        if (ourholder.getSurface().isValid()){
            canvas = ourholder.lockCanvas();

            canvas.drawColor(Color.argb(255, 0, 0, 0));

            int x = 0;
            int y = 0;

            canvas.drawBitmap(background.getBitmap(), x, y, paint);

            ourholder.unlockCanvasAndPost(canvas);

        }

    }
    public void control(){

    }

    public void pause(){
        playing = false;

        try {
            gameThread.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
    public void resume(){
        playing = true;

        gameThread = new Thread(this);
        gameThread.start();
    }
}

Java:
package com.example.magerush2;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class Background {

    public Bitmap bitmap;

    public Background (Context context){
        bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.maintest);
    }

    public Bitmap getBitmap(){
        return bitmap;
    }

}

Best call blocker?

I have a decent Samsung Tracfone running 6.0.1. I've tried several call blockers, none seem to work very well. I am especially interested in blocking "update" messages from 24719. Had one that seemed to work, but I accidentally deleted it & I can't remember which one of the THOUSANDS on Play it was. What's the BEST call blocker, especially from text numbers like 24719? Thanks!

Need a new Android tablet! Recommendations and where to buy?

Hi, all!

I have had the Samsung Galaxy Tab s2 for a while now and it is giving signs of sudden and imminent death (draining battery, turning off for no apparent reason, etc). Given I am an Android girl at heart, any recommendations on a new tablet to buy?

Also, my carrier is T-Mobile and I will want to add the tablet as a new line but what they have to offer right now is lame. Where do you suggest buying a carrier-ready tablet at the best possible price?

Thanks guys!!!!

Cat

app info

I d/l an app called color notes. I wrote several notes on the app. I moved the app to the external storage, I then lost the sd card ( I guess it got corrupted somehow). Is there a way to retrieve the info on the app? I re-d/l the app, but it's blank.
Thanks

Help SD Card Encryption Broke Photos

I have an S9+ SM-G965U - Android v9 - Kernal 4.9.112

Last night I encrypted the SD card through Settings > Biometrics & Security > Encrypt SD Card. When the operation finished all of my pictures were broken/unviewable. In the Gallery, they are all just grey squares with an (!) in the middle. When I go to My Files > SD Card > DCIM > Camera they all appear as pink icons with mountains or as the purple video symbol, opening them does not display the picture. I have gone through the reverse process to decrypt the card but photos still will not display... Any idea on how I can get all my photos back?

-Tim

Managing the Home pages

After I uninstalled a number of apps I have had to update my Home pages. I had a full page and several empty ones. Every time I now move an app to Home, instead of adding to just one further page until it is full, its icon appears in a new empty page. Hence I have several almost empty Home pages with just one app in each, in splendid isolation. To compound this problem I have been unable to find how to then move the icons from one page to another ---- to a previous page, until it no longer has free space. On an earlier version of Android it was a simple matter of moving the icon to the edge of the screen, when the icon would relocate to the previous page (or forwards to the next page) if it had free space. This logical arrangement seems to no longer exist? Is there a way to do something similar, or if not what is the alternative?

memory card

Hi, I recently purchased an Idol 3, 5.5 phone. I'm having trouble with the scan disk memory card. Sometimes it recognizes the card and sometimes it says card is corrupted.
I would like to replace the card, but not sure what the correct replacement card is called. (ie what brand, specifications, type, etc).
Thanks,

Play Store Dark Mode only on older device.

Any recent experiences?

My daily for 3 months has been a Nokia 7 Plus on Android 9. I saw my older Moto G4 on Android 7.0 now has dark mode by default, but any instructions found only apply to Google Play Games which does have a dark mode setting.

I guess it hasn't rolled out to my Nokia yet, though I would assume the Play Store version would be the same (I don't have the Moto with me atm).

Cannot transfer from device to sd card

I suspect this has been asked before - if so apologies.

I have two S5 phones, both fully working.
On one, when I go to application manager and select an individual item - a window appears which give me the choice of moving that item to the SD card. (I am of course aware that not all items are movable)

On the second phone, when I highlight an individual item - a window appears but there is NO means of moving to SD - the choice does not appear.
I suspect that there is a setting that has been altered or missed somewhere?
Any help / tips would be appreciated
Thanks in advance

Suspicious Login After Password Change

Hi, friends . . .

I had my phone stolen in late September. I've sent an Erase request through the Find my device section of my Google account, along with the Lock request.

I've blocked my number on the same day and went to the provider's counter to re-acquire my number and a new SIM card to make the SIM card in the lost phone inaccessible and unusable.

Today I checked the Find my device section again, and I noticed a third device aside from the lost phone and my new phone; the lost phone is a Nokia, and my new phone is a Huawei . . . and the third device is a OnePlus3T. I confirmed this by checking my e-mail and found out that there is an alert e-mail about a new login; I thought it was just another alert e-mail because I installed and used my Google account to login to the apps and software (I do this a lot recently, mostly because I have to install some apps on the new phone that requires connection to my Google account).

I clicked the Find lost phone button and clicked the OnePlus3T, and the system tried to connect to it; it failed. I clicked the Lock button, with a text. Then I clicked the Erase button, so I've sent an Erase request.

I changed my Google account's password and made sure that I erase the login on the OnePlus3T. Now I only have two devices logins, one is on my current laptop, and one on my Huawei phone.

I'm just curious - and quite worried - how someone can log in to my account on another device? Is it really possible? The password was changed, I even set up a 2-step verification on the new Huawei right after I bought it.

Please help, I really hope someone can shed some light on this problem.

Locking text-to-speech settings?

I'm not certain my specific phone is the right place to post this question so I've copied it here. (Asus Zenfone 3 Zoom)

I use Text-to-Speech a lot on my phone and tonight I found the settings were suddenly changed on their own and were very difficult to get back to what I had before. The "pitch" (highness or lowness of the voice) had changed, and perhaps the speech rate, too. The voice sounds awful, can hardly stand to listen to it when the settings have been messed up.

If there was a way to lock these settings (or settings in general) I would lock it down so this doesn't happen again. If there is a way to restore settings from a backup I would also opt for that. .

(It took a long time to try to get the voice settings back to where they were (the slide button hides behind my finger when pressing and moving it so I can't even tell if I am getting it to move--you don't want to move it very much, only a tiny bit as a small slide makes a big change.)

Text-to-speech settings changing on their own?

I use Text-to-Speech a lot on my phone and tonight I found the settings were suddenly changed on their own and were very difficult to get back to what I had before. The "pitch" (highness or lowness of the voice) had changed, and perhaps the speech rate, too.

It took a long time to try to get the voice settings back to where they were (the slide button hides behind my finger when pressing and moving it so I can't even tell if I am getting it to move--you don't want to move it very much, only a tiny bit as a small slide makes a big change.)

If there was a way to lock these settings I would lock it down so this doesn't happen again.

Google home.

I am having trouble signing in to Google home. I finally got Google play to accept my sign in but home keeps telling me that it is having trouble connecting with Google. I have no idea how to make sure that home is trying to connect with the correct address at Google and working in 'root' may be a bit over my head as well.
Now if there was an app that checked and reassigned the correct Google addresses I would be very impressed and happy.
Thanks for your time
Cheers
emptyvestage

Filter

Back
Top Bottom