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

Help Newbie question, dont flame

Good day,

Dont know where to start, but would appreciate some guidance on this project. The reason why I want to do this, is because my car's fuel gauge doesnt work, despite the manufacturers reassurance, 4 trips to the workshop later.

I have looked at the Android apps in App store, and have yet to find one that gives me what I want.

All I am looking for, is an app, that will operate as follows :-

1) Enter an opening mileage from the ODO
2) Everytime I drive the car, record the mileage from GPS
3) On the main page, show a virtual fuel gauge, including estimated fuel used as a pie graph, based on mileage traveled and average consumption.
4) Everytime I refuel, add the new mileage, fuel loaded, price per liter.

Thank you

Fingerprint doesn't work on all apps

So, I used to have the pixel 4. That one didn't have a fingerprint sensor but used face recognition. That phone did the same thing. I would open an app. It would prompt for a password and my password manager would offer to fill it but then prompt and it would want to verify my face. It would fail over and over so then I'd then go into my password manager and authenticate with my face and it worked.

This pixel 5 some apps, my fingerprint fails authentication when trying to pull the password from my password manager. But then I go into my password manager directly which always prompts for my fingerprint and it works everytime...

I keep unique passwords for each site. But copying my passwords to the clipboard weakens security.

Help how to find out how much space each app is taking in internal memory

I use AppMgr III (formerlly App 2 sd) to move most of my app's to my SD card but I just found out that that only moves part of the app so now I'd like to know how much space on the internal storage each app is taking because despite moving all the app's that can be moved my internal storage is running real low on space but my SD card still has lots of free space so I'd like to find out how to tell how much internal storage each of the moved app's is still taking up

Not allowed to change Do Not Disturb state, using AudioManager setRingerMode(int i) in Worker

I am using AudioManager and setRingerMode to adjust the ringer programmatically. This is done with a Worker.

public class SettingWorker extends Worker {

/**
* Tag of the class
*/
static final private String TAG = "SettingWorker";

Context mContext;

/**
* Constructor of the worker
* @param context context of the application
* @param workerParams ..
*/
public SettingWorker(@NonNull Context context, @NonNull WorkerParameters workerParams) {
super(context, workerParams);
mContext = context;
}

@NonNull
@override
public Result doWork() {
setSetting("SLT");
Logger.logD(TAG, "doWork(): finished");
return Result.success();
}


/**
* method to set the sound setting as requested and found
* @param setting SND, SLT, VBR
*/
private void setSetting(String setting) {

Logger.logD(TAG, "setSetting(): setting is " + setting);

AudioManager am = (AudioManager) mContext.getSystemService(mContext.AUDIO_SERVICE);
switch(setting) {
case "SLT":
am.setRingerMode(AudioManager.RINGER_MODE_SILENT);
am.adjustVolume(AudioManager.ADJUST_MUTE, AudioManager.FLAG_SHOW_UI);
case "VBR":
am.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);
am.adjustVolume(AudioManager.ADJUST_MUTE, AudioManager.FLAG_SHOW_UI);
//TODO: perhaps let user decide the volume
case "SND":
am.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
am.adjustVolume(AudioManager.ADJUST_UNMUTE, AudioManager.FLAG_SHOW_UI);
}
}
}

I have added the needed permission to my manifest:

<uses-permission android:name="android.permission.ACCESS_NOTIFICATION_POLICY"/>

However, I still get the exception:

Caused by: java.lang.SecurityException: Not allowed to change Do Not Disturb state

I am not sure where the problem lies. Could somebody help me please?


system update problem

hey guys and girls

so i have here a galaxy s7 (not edge) and it shut down the other day and since then its been in a reboot loop only while on charge, i get the galaxy s7 logo then a starting system update screen, this is only on screen for a second or two before it reboots.

i can boot into the menu by holding down volume down, home and power but not power up home and power.

it will not boot into the phone at all.

cannot power on at all while off charge or boot to any menu while not on charge

i tried reinstalling the firmware, got to the odin menu, ran odin on pc, loaded all the relevant files, but the phone turns off the second i click start and odin just sits there on the pc.
i really need some help with this as at a total loss

App Inventor Luminance Detected : High Ambient Light is Detected Bug

I have created an app called Migraine Relief in Android Studio. What it does is, it changes your screen to green to block blue light from your screen. The problem is for some devices, they get a pop-up (check at the bottom). Saying "Luminance Detected: Hight Ambient light is detected. Do you wish to continue using Dimmer?" There is a bug as pressing on "OK" just opens up the popup again and pressing cancel closes the app and doesn't allow me to start the functionality of my app. Is there any way to prevent this popup from coming up? Because I have lost many users because of this popup issue. I could not find a proper solution for this.

N8m4N.jpg

Apps Play Services works in dev build but not in prod build

Hey there,

We've built a game with Unity and are trying to implement Play Services. When we build a development build with Unity and test, the play services tooltip pops up and shows that we have logged in and achievements/leaderboards work correctly.

As soon as we build a production build, it stops working. No pop up, trying to manually trigger a login doesn't work. Nothing.

We've added our SHA-1 key from the play console to the play services config and cloud API oauth creds.

For a few days now we've been completely stumped and can't seem to find any guidance outside of it being an issue with the SHA-1 key which we've done everything we can think to do with.

Any other suggestions? Any easy way to debug production builds without integrating something extra?

Thanks in advance!

Help Text messages adding +1 international code to phone numbers.

I am having a interesting issue with my phone that I cannot figure out. When I receive a text message the system adds a +1 to the start of the phone number it is coming from, I am using the Samsung Messages application but this does the same thing apparently with the Google SMS app and the Verizon messenger app (as I have\ tried these as well), this only happens with a text and if I get a phone call or look in the address book no numbers have a +1.

The reason this is an issue is because my car imports my phonebook as it appears in the contacts and when I get a text it comes up as Unknown Caller because of the added +1 but phone calls do not have the +1 so they show up just fine.

While working on this I have discovered that if I go to the text by going to my contacts then clicking on the persons name it will remove the +1 and it will stay removed as I text them but the second I get texted back the +1 is added. I called Verizon eventually and was told reset settings, reset network settings, turn off assisted dialing. None of these work and there next solution was to factory reset, I don't think this will help because it isn't just my phone but my wife and son who also got the same phone have the same thing happen.

Has anyone experienced this and know how to fix it. I have been through all the phone and dev settings looking for something. I cannot find any other threads online for this except for a couple from AT&T users from different samsung phones years ago with no answer. Previous to this we were using Note 9's and did not have this issue. Any help is appreciated.


edit: The phone is not rooted or modded and is on Android 11 One UI 3.1, sorry forgot to add that.

Help Instructions on flashing Xiaomi Mi A2 with stock ROM from Linux machine

I want to flash my Xiaomi Mi A2 with the stock ROM using my Linux laptop.

The ROMs are at the below url and there is recovery and fastboot version:

https://xiaomifirmwareupdater.com/archive/miui/jasmine/

Can anybody point me to some instructions for installing this ROM on my Xiaomi Mi A2 using Linux?

Edit: I accidentally put "custom" rather than "official" in the subject.

How to Stop Spam Text Messages

I've begun getting spam text messages. They do not have a phone number associated with it - just what is in the format of an email address. I've found two websites that show how to block those senders but what they describe to use do not appear on my phone, neither in the messages list "three dots" nor after "long pressing" the text message - not on the top nor in those three dots. I'm copying those two URLs here:
https://android.gadgethacks.com/how-to/block-report-spam-texts-android-messages-0384232/
https://www.techrepublic.com/article/how-to-quickly-block-spam-sms-in-android/

Does anyone have a working method to block text spam?

Phone is LG K20 Plus - T-Mobile

View executed code while running / debugging an app

Hello everybody, I am very new to android studio and app development in general. I am working in a project which already has developed an app with a lot of features. I shall improve certain features and therefore I need to understand which files and which code are executed at which point in the app. Since there are a lot of different files with complex code, I was wondering if it is possible to see which code (or file) is executed while running/debugging the app?
I read that I could use breakpoints, however it is quite difficult to even find out where even to put the breakpoint if you do not know which file is executed for which feature. Do you have any ideas what I could do?

Best J :)

Help Bluetooth Audio Streaming, AVRCP / A2DP

Hi there, hoping someone can assist with these questions I have,

I am looking at buying a new stereo head unit for my car, and want to be able to play Spotify from my phone. Specifically, I want to be able to control playback using the controls on the car, never having to touch my phone.

I have found what looks like a nice unit that does what I want. The specs say that it supports AVRCP and A2DP.

From what I can find online, my phone (Samsung Galaxy A01) supports only A2DP. (Some websites however do list both, so confirmation would be nice)

Am I right in thinking I won't be able to control the audio from the car over Bluetooth?


[EDIT] An update on this - the specs I could find online pointed to my phone not having AVRCP, but after enabling Developer options and looking under Networking, it lists Bluetooth AVRCP Version: 1.6.
So with that, I should be good to go?

How do i backspace one character in Google Assistant

When I use the microphone for messaging in assistant I can't figure out how to backspace only one character. If I press the X in the little arrow box next to the microphone symbol during a message it deletes the entire word. I have to get out of microphone by pressing the back arrow next to Tap to speak to go back to the keyboard to delete one character. Is there a way of deleting only one character in a word while in assistant rather than the whole word? I have Android 6.0 and the newest Google Assistant.

Changing Lock Screen Time Quickly

When I am at home, I like to keep the lock screen time at 5 or 10 minutes to eliminate the need to unlock the phone frequently. However, the best solution I've found to the problem of the phone doing unexpected things after I put it in my shirt pocket to go somewhere is to set the lock screen time to "immediate." Therefore I'd like a way to quickly switch the lock time between 5 minutes and immediate. The brute force way of changing the lock screen time is this:

Settings / Lock Screen / Secure lock settings / (unlock phone - I use a pattern) / Auto lock when screen turns off / (desired time - Immediately or 5 minutes)

Is it possible to automate this sequence with a Bixby routine or some other method? I suspect that the need to perform the unlock method in the middle of the sequence may make it impossible.

Filter

Back
Top Bottom