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

My carrier (Vodafone) is showing me pop-up messages, any way to stop them?

This is how I stopped it, I hope it helps you as well:
Steps:
1. Go to Settings
2. Go to Installed apps
3. Search for Sim Tool Kit
4. Select Sim Tool Kit
5. Select Notifications under the permissions tab
6. Uncheck all the notifications type i.e. uncheck priority, sound, vibration, notification light etc. you will not be able to uncheck show notification but thats fine.
Done.!
This annoying flash messages is one of the reason why subscribers shifted from idea to jio. If idea does not understand, it may lose customers.

My phone is virused and installs same apps.

You did reset the phone, what about the SD card though? You said that you suppose that the virus or what it might be it's on the SD card. Why don't you reset it then? Just back up everything and reconfigure it. If it stops, then you'll have a problem less, if no, it means it's the phone. I had to deal with malware before, but it was the phone, so I did a factory reset, and everything came back to normal. After, I just got my apps from apksalad, and it works perfectly fine to this day. I bet it's the SD card, but you know better.

DocumentsContract.copyDocument

I have a problem with DocumentsContract.copyDocument

Each time my program crashes: "java.lang.UnsupportedOperationException: Copy not supported" The curious thing is the below-listed actions are working fine!!

DocumentsContract.moveDocument

DocumentsContract.deleteDocument

DocumentsContract.renameDocument

DocumentsContract.createDocument

Permission to SD card access is apparently granted (above actions would fail without permission)

How come document moving, deleting and renaming is supported but not copying? Can anyone help me with this issue?

Is there a great conceptual difference between copyDocument and moveDocument. Why move does work and copy does not?

Any hint will be highly appreciated.





package com.example.forum14_11_2020;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.documentfile.provider.DocumentFile;

import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.content.UriPermission;
import android.net.Uri;
import android.os.Bundle;
import android.os.storage.StorageManager;
import android.os.storage.StorageVolume;
import android.provider.DocumentsContract;
import android.view.View;
import android.widget.Button;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.List;

public class MainActivity extends AppCompatActivity {

Uri uri;
DocumentFile pickedDir;
Button Button1;

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

Button1 = new Button(MainActivity.this);
Button1 = findViewById(R.id.button1);
Button1.setOnClickListener(onClickListener_Button1);

takeCardUriPermission("storage/1619-0D07");

}


View.OnClickListener onClickListener_Button1 = new View.OnClickListener() {
@override
public void onClick(View v) {

uri = getUri();
pickedDir = DocumentFile.fromTreeUri(getBaseContext(), uri);

DocumentFile file = pickedDir.findFile("attempt.txt");
DocumentFile folder = pickedDir.findFile("folder");

try {
//DocumentsContract.moveDocument(getContentResolver(), file.getUri(), folder.getUri(), folder.getUri()); // does work!
//DocumentsContract.deleteDocument(getContentResolver(), file.getUri()); // does work!
//DocumentsContract.renameDocument(getContentResolver(), file.getUri(), file.getName() + "_rename"); // does work!
DocumentsContract.copyDocument(getContentResolver(), file.getUri(), folder.getUri()); // does not work, why???

} catch (UnsupportedOperationException | FileNotFoundException e) {
e.printStackTrace();
e.getMessage();
}

}
};





public void takeCardUriPermission(String sdCardRootPath) {

int stop=1;

if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
File sdCard = new File(sdCardRootPath);
StorageManager storageManager = (StorageManager) getSystemService(Context.STORAGE_SERVICE);
StorageVolume storageVolume = storageManager.getStorageVolume(sdCard);
Intent intent = storageVolume.createAccessIntent(null);
try {
startActivityForResult(intent, 4010);
} catch (ActivityNotFoundException e) {
}
}
}


protected void onActivityResult(int requestCode, int resultCode, @nullable Intent data) {
super.onActivityResult(requestCode, resultCode, data);

if (requestCode == 4010) {

Uri uri = data.getData();

grantUriPermission(getPackageName(), uri, Intent.FLAG_GRANT_WRITE_URI_PERMISSION |
Intent.FLAG_GRANT_READ_URI_PERMISSION);

final int takeFlags = data.getFlags() & (Intent.FLAG_GRANT_WRITE_URI_PERMISSION |
Intent.FLAG_GRANT_READ_URI_PERMISSION);

getContentResolver().takePersistableUriPermission(uri, takeFlags);
}
}

public Uri getUri() {
List<UriPermission> persistedUriPermissions = getContentResolver().getPersistedUriPermissions();
if (persistedUriPermissions.size() > 0) {
UriPermission uriPermission = persistedUriPermissions.get(0);
return uriPermission.getUri();
}
return null;
}






}

Help Can an incorrect pin factory reset be recovered?

Although it's true that computing devices in general (not just Android) do not actually remove data when you delete a file, just remove pointers and mark the space as free, if the device has actually suffered a factory reset that probably isn't going to help you. The reason is that in any Android device made in the last few years the storage is encrypted, and the encryption key (which isn't, or at least shouldn't be, just kept as a file in an accessible bit of storage) is wiped during the reset. That makes file recovery after a factory reset even more problematic than it is with an accidental file deletion (which is itself not as simple with an Android device as with a USB memory stick or SD card, since the way it connects to a computer is different).

So it might depend on exactly what happened, which isn't clear from your description, but if it did suffer a factory reset I think you've no chance. And even if it didn't I don't think the chances are good (as @ocnbrze says, it's easy to find apps that will claim to be able to recover deleted files from Android devices, it's much harder to find reliable reports of success for them, i.e. claims of success that are not written by or paid by the company producing the app.

Help Store newly taken photos to SD card

well if it is not in the camera settings then your phone is not capable of doing so as @Dannydet suggested. you can't will a device to do something it can't do.....unfortunately.

google photo's is your answer. you can have it sync over wifi when available automatically. i never have to worry about me photos......even when i get a new phone. i just sign in to my google acct and my photos are there.

restore backup all my contact phone numbers from my Simcard 086999940

You can back up contacts from the phone's memory via the import/export option in the contacts app's settings (creates a vcard file, .vcf, which you can then copy to another device for safety). You'll probably have to import the SIM contacts to the phone's storeage before you can do this - this may depend on what Android version your phone is running, but certainly that's the case on my phone.

Storing contacts on the SIM is very much a legacy format these days, to the extent that my current phone doesn't even allow me to add contacts to it (and my phone is > 3 years old, and never supported this). So my advice would be to move to another way of managing contacts: either sync with Google if you are comfortable with that, or move to phone storage and manage your own backups if not (and avoid Pixel phones, as they don't even allow you to add contacts that aren't associated with some account or other, or at least not using the default contacts app).

Filter

Back
Top Bottom