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

2 apps playing at the same time

Hi,

i recenetly upgraded from my trusted s8 a slightly more modern s20.

i have one issue, that im hoping someone can help me with.

if im listening to something on youtube, if i then go to listen to something on another media app, be it spotify, soundcloud etc........

when i press play on the second app, they then both keep playing, so the app that was opened first doesnt close down when i start playing something else.

is there a way to just make the next app automatically take over from the previous one?

i really hope ive made that clear.

Applications non déplacées

Bonjour,

J'utilise depuis un an un Samsung Galaxy A21s. Depuis quelques jours, mon smartphone m'indique "Espace de stockage bientôt saturé" car j'ai utilisé 124 sur 128 GO du stockage interne. Or, il y a une semaine, j'avais utilisé seulement 32 GO... et je n'ai rien ajouté entre temps !

Je crois en avoir trouvé la cause : le mauvais déplacement des applications. Je me sert des options développeur pour pouvoir activer le mode "Déplacer n'importe quelle app.". Après une visite du système de mon téléphone sur Android File Transfer, je me suis rendu compte que les dossiers de données d'applications normalement déplacées sur la carte SD pèsent 0 KO et que je retrouve les même dossiers, avec leur poids normal, dans la mémoire interne de mon téléphone; Autrement dit, les données déplacées sont revenues à leurs places de départ.
J'ai essayé de les re-déplacer, mais rien à faire...

Est-il possible de réparer ce bogue ?
Pour information : je suis sous Android 11 + One UI 3.5.

Merci par avance...

Help Solution for unworking screen but working phone?

I have a samsung s20 which still works fine/plays notifications but the screen has completely blanked. The problem with taking the phone to the store to be fixed is that everything I have is unlocked. All my apps, emails, banks etc but I have no way to do a factory reset as I can't see the screen and have no clue how to do it via a laptop.
Any suggestions would be greatly appreciated.

Issue to write SD Card

Good morning,

I would appreciate some help with an issue that I have with a code in Java with Android Studio. This work perfectly in Eclipse, but not with android.

This apk consists of saving data from a form to a txt file.

I can't see any error while debugging, but no folder or file is created by this apk.

These are the permissions given to the apk
```
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
```
In the main activity, I put the requests to those permissions

```
int permissionCheck = ContextCompat.checkSelfPermission( this, Manifest.permission.WRITE_EXTERNAL_STORAGE);

if (permissionCheck != PackageManager.PERMISSION_GRANTED) {

Log.i("Message", "Don't have permission to write in SD card.");

ActivityCompat.requestPermissions(this, new String[ {

Manifest.permission.WRITE_EXTERNAL_STORAGE}, 225);

} else {

Log.i("Message", "You have access!"); }
```


This is the OnCreate method which works fine:

``` private String nombreArchivo = "control.txt";
private String nombreCarpeta = "OfflineGestion";

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_control);

File tarjeta_sd = Environment.getExternalStorageDirectory();
f_carpeta = new File(tarjeta_sd.getAbsolutePath(),nombreCarpeta);
//f = new File()
if (!f_carpeta.exists()) {
f_carpeta.mkdirs();
}

String pathArchivo = Environment.getExternalStorageDirectory() + File.separator + nombreCarpeta + File.separator + nombreArchivo;
//Si el archivo no existe, crear archivo con contenido básico


f_archivo = new File(pathArchivo);
if (!f_archivo.exists()) {
crearArchivo(f_archivo);
}

sptitulo = (Spinner) findViewById(R.id.sptitulo);
//Creating the ArrayAdapter instance having the list
ArrayAdapter aa = new ArrayAdapter(this,android.R.layout.simple_spinner_item,tituloSpinner);
aa.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
//Setting the ArrayAdapter data on the Spinner
sptitulo.setAdapter(aa);


edEntidad = (EditText) findViewById(R.id.entidad);
edCantidad = findViewById(R.id.cantidad);
initDatePicker();
dateButton = findViewById(R.id.fecha);
dateButton.setText(getTodayDate());
edDescripcion = findViewById(R.id.edDescripcion);

rbGasto = findViewById(R.id.rbGasto);
rbIngreso = findViewById(R.id.rbIngreso);
chExtra = findViewById(R.id.chExtra);
chExtraEspecial = findViewById(R.id.chExtraEspecial);


}```

This is the method to create a file. When debugging and the pointer arrives to this sentence fr = new FileWriter(fileSt);
it moves to IOException
```
Toast.makeText(this,"No se pudo guardar",Toast.LENGTH_SHORT).show();
e.printStackTrace();

```

```
private void crearArchivo(File f) {

FileWriter fr = null;
PrintWriter pw = null;
String fileSt = f.toString();
try {

fr = new FileWriter(fileSt);
pw = new PrintWriter(fr);

pw.println("insert into movimientos ('titulo','entidad','cantidad','fecha','operacion','descripcion') values");


//fr.flush();

Toast.makeText(this,"Guardado correctamente",Toast.LENGTH_SHORT).show();
} catch (IOException e) {
Toast.makeText(this,"No se pudo guardar",Toast.LENGTH_SHORT).show();
e.printStackTrace();
} finally {
try {
if (null != fr) {
fr.close();
}
} catch (Exception e2) {
e2.printStackTrace();
}

}
}


```
https://stackoverflow.com/questions/ask

Help Big fluke.

Basically this did happen after system update from Android 11, to android 12:


Let me start from the beginning to make myself crystal clear:
Since last week, my cell's screen has a few cuts on every corner, cresents on all of them, so now I did an fdr, I did check to see if was a third party app, I cleared off both of the recent two of the camera apps,

That did not clear up the problem one bit. I noticed how I Auto Rotate it, that is where the problem consist.

I can do virtually everything I can do on my moto edge plus:

Specs:

Build : model XT2051-1

Serial number: ZYZ27k8QDD

hardwear:
pvt2


-

I'm back after a long hiatus

I am not sure if anyone on this forum still remembers me but I'm an older member returning after a long time absent. I have been known in the past to rant about things I struggled with in early Android days, coming from Apple once iOS 7 came out. I have had many phones/tablets of all types since. Samsung, Google, Nexus, Apple, you name it. I've also been kinda old fashioned and my have the forums changed (I can't navigate them at all now haha)

Either way, I'm back to Android and loving every minute of it. It might be hard to be believe but my new favorite phone is....an HTC Thunderbolt! Yes, you heard that right! I seem to love what everyone else hated or hates. But I never got to experience classic HTC Sense and I'm really fascinated by it. The phone I got used on Amazon for $50. It still works, in 2022, despite not being VoLTE compliant I managed to get it to work anyway (don't ask it's a long process). I still have all my songs on local storage (don't do the cloud) and I still cling to SMS and don't need things like typing indicators or other stuff to complicate it. It's really the best Android phone I've ever owned, perfect size for my hands, and built like a brick. The battery lasts an entire day as well (why were there so many complaints about battery life? The Galaxy S3 couldn't last as long as this beast does)

I wish I had really experienced Sense back in its heyday (I did have a One M8 for a few months but they really ruined it with flat UI and BlinkFeed) but hey, better late than never, right?

Screenshot_2022-05-29-13-29-07.png

System apps 1969 installed??

Screenshot_20220529-011008.jpg
Screenshot_20220529-011008.jpgso the other system apps say installed in 2008 but this list on the bottom is 1969 and my ex wife is an IT specialist who used her skills to clone my phone and hack it before in the past I can't delete any of these apps or even look into them and can't disable any permissions what do I do?

Attachments

  • Screenshot_20220529-011008.jpg
    Screenshot_20220529-011008.jpg
    204.4 KB · Views: 237

Phone immediately hangs up at start of call , a reply

circa 2011a.d. post but no reply so... in 2022 a.d. I have the same problem and with no reply so , I too am, years later, out in the cold. I have a Cricket Store 2 blocks away. I had one problem and stayed focused on its solution.
#1 turn on and off the AIRPLANE MODE (AM) three times... and try again. (this worked on my android 5G phone) I had hit the AM randomly before but not all at once.
#2 salesman says" lets make this a more permanent fix" ( joy to my ears!) Go to RESET ; systems and reset options the list of connections of Wi-Fi, Mobile Data, Bluetooth with a single touch to the blue rectangle with the words "Reset settings".
I welcome other solution sets. Although, if this post is like all the others I make.... I will not be by this way again. I forget where I have been on the web. I delete my history at the end of every work sequence. I do this as a method of self-preservation.
(profile: why "Lurker" meaning?)

failed to get cursor when querying URI table for a PDF file in the Downloads folder of an Android 11

On a Android 11 device, through SAF(Storage Access Framework) system file picker, my app picks a PDF file which locates in the public folder Downloads.

In order to get its full path, I try to query the uri table through context.getContentResolver().query().

But now, the cursor returned is not null while cursor.moveToFirst() == false. As a result, my app failed to get the full path.
What's wrong?

My Android device: Android 11, Mi 12 Pro. The READ_EXTERNAL_STORAGE and MANAGE_EXTERNAL_STORAGE are all in manifest.

code snippet a-

......
//now, uri = "content://com.android.providers.downloads.documents/document/msf%3A7755"

final String id = DocumentsContract.getDocumentId(uri); //now, id = msf:7755
final String[] split = id.split(":");
final String type = split[0]; //now, type="msf"
String strRealId = split[1]; //now, strRealId = 7755

final Uri contentUri;

contentUri =ContentUris.withAppendedId(MediaStore.Downloads.getContentUri(MediaStore.VOLUME_EXTERNAL),
Long.valueOf(strRealId));
//contentUri =ContentUris.withAppendedId(MediaStore.Downloads.EXTERNAL_CONTENT_URI,
//Long.valueOf(strRealId));

//now, contentUri = "content://media/external/downloads/7755"

path = getDataColumn(context, contentUri, null, null);



code snippet b -

......
private static String getDataColumn(Context context, Uri uri, String selection, String[] selectionArgs) {
Cursor cursor = null;
final String column = "_data";
final String column2 = "_id";
final String[] projection = {column,column2};
try {
cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null);

//The row as below. step debug to here. I found cursor != null while cursor.moveToFirst() == false! What's wrong?
if (cursor != null && cursor.moveToFirst()) {

final int column_index = cursor.getColumnIndexOrThrow(column);

String strTest = "";
int nTest = 0;

strTest = cursor.getString(column_index);
nTest = cursor.getInt(1);

return strTest;
}
} catch(Exception e)
{
String strError = e.getMessage();
}
finally {
if (cursor != null)
cursor.close();
}
return null;
}

Working with Picasso

Hey there,

I am relatively new to Android Studio and just writing my first app. I want to fetch images from an uri and cache the image. So, I felt over Picasso (https://abhiandroid.com/programming/picasso).

I've added implementation 'com.squareup.picasso:picasso:2.8' to build.grade(:app) but I still cannot operate with Picasso.

In my Activity i imported com.squareup.picasso but Android Studio still sais Cannot resolve symbol 'picasso'.

What am I Doing wrong?

Beginner's tutorial videos for S9?

I gave my old S9 to a close friend after resetting, wiping it and getting an ultra cheap data plan, and a charger.

My friend, 70 years old, not a complete luddite, but absolutely amateur with anything involving a touch screen, is having beginner issues with android, and I mean real beginner, like holding his finger down too long when he should be single pressing, and getting lost between the home screen, and the apps drawer.

I am teaching him about texting, mobile calling, and email, but his real problem is navigating the Android platform in general.
I was wondering if there was a video online that didn't have set up (I already did that for him) but just focused on ultra basic, how to hold the phone, how long to press for, turning pages, and understanding "search" field, (often indicated by the magnifying glass icon) and the "send" buttons (The blue arrow for email and plain black arrow in text apps) like a really basic tutorial in the "Explain it like I'm 5" category for first timers.
Any help much appreciated!
PM

Happy Memorial Weekend

so anybody have plans? going somewhere? staying at home? do you plan on cooking or lighting up that grill?

i gave myself Monday off as well, so i have a 3 day weekend. i'm gonna sit back and relax. i have an hour and a half massage scheduled tomorrow. also my sleep number bed is getting delivered and installed. so tomorrow, i should be sleeping well. i have my last slap of beef ribs i'll be grilling tomorrow as well.

i also plan on visiting my father's grave tomorrow. he past away many years ago, but i like to celebrate Memorial weekend with him....probably do that on Sunday.

also i plan on watching Top Gun: Maverick as well. i'm hoping Monday afternoon will not be tooo crowded.

so what are you guys plan for the weekend?

Increasing text contrast in Via browser

I'm using the Via browser on my Pixel 6. Really like it except for one problem. The white text on black background doesn't have enough contrast to be easily readable. It's really more like gray on black. I could go to white background, but I like the black background, just want it to be easier to read the text on web sites.

My question is whether there's a way to do this in the browser, or if I need to go into the phone's accessibility menus and increase the contrast there. The Via browser is the only place where I need to increase contrast, so I'd naturally like to do it there.

Thanks.

SPOOFING SPAM

so fortunately i have some time to do some desk work. and we have been getting calls asking why did we call them, when we actually never made a call.....so.....i know that our number is being spoofed by some spam bot to make calls to other people.

is there something that we can do as a business to stop this from happening? i know here in the US we have a Do Not Call List which never works. but is there something we can do?

anybody else have this happen to them?

Benefits of rooting GP6P?

I realized looking at this forum that I am like the kid who shows up late for class, and then asks 95 questions and looks at other's tests. Sorry! I'll keep it brief.

I remember back in the day with various phones, (Motorola Moto X Pure, LG V30, GS3, Xiaomi, etc) that there were a lot of reasons (If I remember correctly) to root phones. Debloating was a main one for me, silent custom boots was another, and cache clearing was made easier and a there were a few other benefits.

Other than looks, What benefits would justify rooting a google Pixel 6 Pro? Can I get a quicker phone with longer battery life and other benefits?
Thanks!

- Kid who sows up late for class.

will it work

i have the lg k20 32gb phone storage and i was able to put in a 32gb sd card and let the phone combine the storage so now it has 64gb storage. but tracfone made me get a new phone because they said the k20 was not good enough and the 3g was going away, that may be true but i see they still have them on metro pcs. now metro pcs may soon discontinue them as well, so would it be worth rooting the phone and doing a firmware flash that is said to make it 5g capable? this website claims to have the software to allow you to reflash the phone into a better phone.

https://lgk20.com/lg-k20-plus-custo...resurrection-remix-incipient-os/#comment-1624

but before i mess with it i figure i should ask here to see if anyone has done it and if it works or will it make me a new lawn brick.

tracfone sent me the a21 but i do not have the storage and can't seem to make this one merge the sd card with the phone storage. i know some said i can cause issues but i have had the k20 storage merged now for 4 years with no issues yet. i have a top-of-the-line sd card so that may be why.

also i can't say i'm liking the samsung way of doing things or maybe it is even tracfone that makes the phone so hard to use. i have to jump hoops to get the photos into the pc and then i took the sd card out of my car cameras to see the video and that was a joke getting the card to show on the phone. on the k20 it just came up.

so i wonder if reflashing the firmware on the k20 will make it useable for the future and be worth doing and if anyone has used that website to do it.

thanks

Filter

Back
Top Bottom