Questions tagged as 'uri'

1
answer

how to access the ringtone per current with URI?

Hi, I'm doing a fake call app and I do not know how to use the default call tone that the phone has, I'm using uri to save the audio that the user of his music chooses, I just need the default tone prefs=getSharedPreferences("MisPreferencias",...
asked by 01.11.2018 / 04:38
0
answers

how do I store in an URI the location of an mp3 that I chose from an intent?

public class MainActivity extends AppCompatActivity { public SharedPreferences prefs; Button mp3,play; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_m...
asked by 04.12.2018 / 00:09
0
answers

does the URI id change when the app is restarted?

I select the file in mp3 to save it in shared preferences and while it does not close the app the song sounds and everything, when restarting the app as it throws error and it does not sound anything, that the id that points to arhivo with URI,...
asked by 02.11.2018 / 03:38
1
answer

How can I save the URI of an image once created on android?

The following method returns a File, but I can not get it to be set in an imageView public File SaveImage(Bitmap ImageToSave) { String file_path = Environment.getExternalStorageDirectory() .getAbsolutePath() + NameOfFolder; String Cu...
asked by 13.09.2018 / 16:06
1
answer

Xamarin Form handling Uri tel does not detect more than 9 digits

Does anyone know the command Device.OpenUri(new Uri("tel://" + numeroTelefono)); only redirects me to my calling application if it has less than 10 digits, what happens is that the numbers of cell phones in Mexico are 10 digits?     
asked by 16.06.2018 / 00:29