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

Is there a way to disable the headphone jack in software?

The button is acting as the volume down button would on headphones with buttons in the cable, with a button mapper app then using it as a back button instead. In poweramp, I can't see any setting which specifically disables audio output via the headphones, as it seems it just depends on android itself to work out where to send the audio. The button works great all the time, but every so often the phone can't decide if headphones are plugged in or not, so then can't decide on where to route the audio. It's a shame I can't wire a button in another way. :-(

INMOBI

I have an LG G8 and i keep getting this stupid Inmobi pop up. I have run malware scans antivirus scans and nothing has worked. My phone will be sitting there no one os touching it and inmobi pops up. Short of wiping my phone and starting from scratch which i dont want to do. Does anyone have any suggestions. Thanks
You have an app that has adware attached to it. Go to settings, apps & notifications, app info and find optional apps and turn them off. See if that helps.

Samsung A50 sim get undetected when making calls

Hi,I bought Samsung A50 recently.one month ago it fell on swimming pool.But I removed the water from the phone and its working.But the issue is when making phone calls sim get undetected.Even when making whats app calls sim get undetected and it shows insert sim prompt. If hands-fee is plugged in, this issue is not there. Using data and sending messages all works fine.Only when making calls without hands-free sim get undetected.I dont understand where is the issue.I tried factory reset and hard reset still the issue is there.
any kind of troubleshooting on phones, you look to answer two main questions. is it a hardware or software issue. if you do a factory reset and nothing happens then that answers the software question which can only mean that it is a hardware issue. looks like it will need to be fixed on the inside of the phione.

VideoView

As an update to this, I figured out the problem.
It had nothing to do with what the default video player was, it was more about permissions.
So at a certain OS level, http sites are no longer accessible, only https. To bypass this restriction, you need to place the following in your manifests file:
Code:
android:usesCleartextTraffic="true"

Hope this helps someone. The only reason why I found this out was because my phone decided to do an update, and thereafter my phone couldn't play what it used to be able to play. Coincidence!

First monthly update, Android 10

ah i see ... right - i just close em cause i find the switcher a bit of a pain if there are too many things open ... plus i dont want stuff like email and other secured apps being able to be viewed from switcher screen ... but that is just me being overly secure about things :D

.... i do like that swipe on the bar to switch apps feature ... ie you dont even have to open the switcher view :)

Could not connect to Network Printer

Most printers are very proprietary now so if the manufacturer doesn't allow support (driver/firmware) for a product to developers, that makes things a lot more difficult to use that particular printer usable as a universally accessible one. Years ago you could often get by using a generic laserprinter/ghostscript driver to at least have basic printing functionality. Now that printers have all kinds of branded services tied to them, that workaround rarely applies.
I'd still look into setting up that printer using Google's Cloud Print service, unless you're in a situation like a health service organization where things like sending client sensitive data up into miscellaneous online servers isn't an option.
https://www.howtogeek.com/165778/ev...t-printing-from-your-android-phone-or-tablet/

Help Can't sign in/set up new phone. Please help!

Unless you did actually add in your home WiFi network previously, since it's a first time usage situation the phone won't be connecting to any WiFi connection, and once you pulled the SIM card out that also removes any access to a cellular connection. With no online access that phone cannot authenticate itself to any Google account.
Since you were able to get it past that initial set up process, confirm your home WiFi network is established (try rebooting your router if there's a problem) and/or put the SIM back in and check that it's detected (look in the Settings menu). Reboot the phone and try again, the phone does need some kind of online connectivity and you'll need to add in an active Google account to continue using it.

Notification of wrong voicemail number

So I've not seen this before. I keep getting notification that I have voicemail.
ON A CELL NUMBER THAT IS NOT MINE.
Never seen that phone number in my life.
Obviously, I can't get rid of it. I can't get into it. It's not my number. I don't have a password.
And I cannot get it to stop notifying me of it.
How do I get this ridiculous notification to go away permanently?
Thank you guys for your input! I've had the phone a couple of years and had last week done a reset when it started acting up, and then this voicemail number thing cropped up and popped up every day. I thought I'd been all over this phone and the settings (I literally use it so little and have uninstalled and disabled most all the apps since I don't use them, and it's my hotspot so I can use my phone that way anywhere I go), but I found deep in settings something I'd never seen. I clicked on a voicemail setting and it sent me to a window I'd never seen before that listed my voice mail phone number. And there was the wrong one! I have no idea how in the world it changed to a totally strange, unknown phone number when I did the reset. Before that, it had always used the correct number. But I just deleted it and entered the right one and voila' - everything is fixed. But....wow, I can't imagine something so strange can happen to a phone.
Thanks again! (And no, the phone was new and nothing changed in 2 years till the reset last week.)

Apps Google Play rejects my app 3 times with the same reason

Hi,

This is my first app. I know that it's easy to violate against the policies at the beginning which I did. The support has also sent me an image marking the area in the app which violated. Then yesterday I republished my app with version 1.0.2 with all violations removed which have been told me.
Today I am receiving an email containing the same violations as in version 1.0. He has also attached the same image showing the same violations, that the version he had screenshot from version 1.0.

So now for my question. How come that they reject me always because version 1.0 is violating against their policies? How do I remove the oldest version? Why don't they review the newest version only? Am I overlooking something? Is it because I am uploading an .aab file and not an .apk?

Thanks in advance.
Yours truly

Usage in the activity logs

Those may be communications to the cell towers, whether or not calls are made
Just to add, your Verizon monthly bill will show phone calls that were answered but any phone call that was not answered won't show up, thankfully they don't charge anything just for attempts. The phone's log will show any call whether the recipient answers or not (and any call coming in even if he doesn't answer) but as far as Verizon, it only registers phone calls that involve actual usage on the cellular network.

Android 10 Use custom recording for push notification sound.

Please help me out with this issue, been trying to figure it out for days now.

Before Android 10(Q) I could record a sound or voice, copy the *.wav file to external storage and then create a notification channel that uses that URI of that *.wav file in external storage, and it worked.

Now with Android 10(Q) the push notificaiton comes in, the phone vibrates, but the push notification custom recording sound does not sound when the app is in the background. When the app is in the foreground I am using a different URI though from AppData folder.

I have tried using external storage/directory.Notifications to store the custom sound but it does not work. Any suggestions please? This is the code in C# that I am using now and its now working. Does not matter if the suggestion is in JAVA, just need to know what the logic is, where I should store that custom sound file.

From what I read in documentation, I got the hint that I should use MediaStore, but honestly dont know how to use MediaStore.

>>>>>> Copty the custom file to exernal storage
public async void CopyRecordingToExternalStorage(string filePath)
{
string externalDirPath = CrossCurrentActivity.Current.AppContext.GetExternalFilesDir(Android.OS.Environment.DirectoryNotifications).AbsolutePath;
string recordingFileExternalPath = Path.Combine(externalDirPath, AppConstants.CUSTOM_ALERT_FILENAME);
Java.IO.File storage = CrossCurrentActivity.Current.AppContext.GetExternalFilesDir(Android.OS.Environment.DirectoryNotifications);
string state = Android.OS.Environment.GetExternalStorageState(storage);
var storageStatus = await CrossPermissions.Current.CheckPermissionStatusAsync(Plugin.Permissions.Abstractions.Permission.Storage);
if (storageStatus != Plugin.Permissions.Abstractions.PermissionStatus.Granted)
{
var results = await CrossPermissions.Current.RequestPermissionsAsync(new[] { Plugin.Permissions.Abstractions.Permission.Storage });
storageStatus = results[Plugin.Permissions.Abstractions.Permission.Storage];
}
if (storageStatus == Plugin.Permissions.Abstractions.PermissionStatus.Granted)
{
try
{
if (File.Exists(recordingFileExternalPath))
{
File.Delete(recordingFileExternalPath);
}
File.Copy(filePath, recordingFileExternalPath);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
else
{
UserDialogs.Instance.Alert("Permission to write to External Storage denied, cannot save settings.", "Permission Denied", "Ok");
}
}

>>>>>>> Create the notification channel:
private void createCustomNotificationChannel()
{
try
{
// the custom channel
var urgentChannelName = GetString(Resource.String.noti_chan_custom);
var customChannelDescription = GetString(Resource.String.noti_chan_custom_description);
long[] customVibrationPattern = { 100, 30, 100, 30, 100, 200, 200, 30, 200, 30, 200, 200, 100, 30, 100, 30, 100, 100, 30, 100, 30, 100, 200, 200, 30, 200, 30, 200, 200, 100, 30, 100, 30, 100 };

// Creating an Audio Attribute
var alarmAttributes = new AudioAttributes.Builder()
.SetContentType(AudioContentType.Sonification)
.SetUsage(AudioUsageKind.Notification).Build();

string externalDirPath = CrossCurrentActivity.Current.AppContext.GetExternalFilesDir(Android.OS.Environment.DirectoryNotifications).AbsolutePath;
string alarmSourcePath = System.IO.Path.Combine(externalDirPath, AppConstants.CUSTOM_ALERT_FILENAME);
Java.IO.File storage = CrossCurrentActivity.Current.AppContext.GetExternalFilesDir(Android.OS.Environment.DirectoryNotifications);
string state = Android.OS.Environment.GetExternalStorageState(storage);
var urgentAlarmUri = Android.Net.Uri.Parse(alarmSourcePath);
bool soundFileExists = File.Exists(alarmSourcePath);
var chan3 = new NotificationChannel(TERTIARY_CHANNEL_ID, urgentChannelName, NotificationImportance.High)
{
Description = customChannelDescription
};
// set the urgent channel properties
chan3.EnableLights(true);
chan3.LightColor = Android.Graphics.Color.Red;
chan3.SetSound(urgentAlarmUri, alarmAttributes);
chan3.EnableVibration(true);
chan3.SetVibrationPattern(customVibrationPattern);
chan3.SetBypassDnd(true);
chan3.LockscreenVisibility = NotificationVisibility.Public;

var manager = (NotificationManager)GetSystemService(NotificationService);

// create chan3 which is the urgent notifications channel
manager.CreateNotificationChannel(chan3);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}


>>>>>>> And finally send the notification:
if (useCustomSound)
createCustomNotificationChannel();
try
{
string channel = (useCustomSound == true ? TERTIARY_CHANNEL_ID : PRIMARY_CHANNEL_ID);
Notification.BigPictureStyle bigPictureStyle = new Notification.BigPictureStyle();
if (useCustomPhoto)
{
var customPhotoFilePath = Preferences.Get(AppConstants.CUSTOM_PICTURE_FILE_PATH, null);
BitmapFactory.Options options = new BitmapFactory.Options();
options.InSampleSize = 2;
notifPhoto = BitmapFactory.DecodeFile(customPhotoFilePath, options);
}
else
{

notifPhoto = BitmapFactory.DecodeResource(Resources, Resource.Drawable.alert_header);
}
bigPictureStyle.BigPicture(notifPhoto);

var notificationBuilder = new Notification.Builder(ApplicationContext, channel)
.SetContentTitle(title)
.SetContentText(notificationBody)
.SetFullScreenIntent(pendingIntent, true)
.SetLargeIcon(notifPhoto)
.SetStyle(bigPictureStyle)
.SetSmallIcon(Resource.Drawable.notification_icon_background)
.SetWhen(Java.Lang.JavaSystem.CurrentTimeMillis())
.SetShowWhen(true)
.SetAutoCancel(false);
var manager = (NotificationManager)GetSystemService(NotificationService);
manager.Notify(notificationId, notificationBuilder.Build());
}
catch (Exception ex)
{
Console.WriteLine("Error: " + ex);
}

Text auto reply App for driving.

As for the auto response ... in Tasker it is trivial ...

Profile: tlaAutoResponse
Event: Received Text [ Type:Any Sender:* Content:* ]
Enter: Anon
A1: Send SMS [ Number:%SMSRF Message:I am driving now and will get back to you when I stop. Store In Messaging App:Off ]


... and if enabled will send the response back to the sender of the original message. (If you try it don't send the original message to yourself.)

... Thom

Thom - this is really helpful.

I didn't see where to enter Anon (I don't even know what that means), so I skipped that. But I did the rest and it works.

Thanks.

Filter

Back
Top Bottom