Questions tagged as 'uri'

0
answers

Errors in Ruby appear because?

Goal Add (uri, url) with port. # Ajuda por carlos-romero # https://stackoverflow.com # Ajuda por mu-is-too-short # https://stackoverflow.com require 'uri' require 'socket' url = 'file://C://' class Class1 def fileProtocol( ur...
asked by 21.11.2018 / 21:43
0
answers

Reading file shared by other applications on Android

I would like to know how to read files that came through an intent from other applications such as WhatsApp for example My application is Training ProFitness, it is already enabled to receive files of type json and pft, which pft will...
asked by 24.07.2018 / 16:22
0
answers

Confirm camera button does not work

The code that I implemented to get a captured image from the camera does not work, the camera opens and I can capture the image, but when I confirm nothing happens Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); File f = new File(...
asked by 22.07.2018 / 22:38
0
answers

Rename URI file to share audio from raw folder

I'm trying to make an app with sound-sharing that is inside the application's "raw" folder, but I'm not getting it. The file is shared, but it does not have the extension .mp3 . I was able to listen in windows media player, but I had to...
asked by 08.03.2018 / 15:15
1
answer

I can not get return value of the onSuccess method (Uri uri) [closed]

For my college CBT I'm developing an android app. I stopped at a point where I'm downloading the URL of some Firebase Storage images, and within the onSuccess(Uri uri) method, I have access to the uri variable where the URL of the...
asked by 06.09.2017 / 03:00
1
answer

How to catch the query string from a Restful request

I need to get the parameters passed by the URI, for example: http://localhost/endpoint/param1/param2/param3 if param1 == "adduser" id = param2 name = param3 Example of a function that did not work: I'm looking for a way to search...
asked by 24.02.2017 / 19:55
0
answers

ImageView turns white when loading Activity and black when receiving image from gallery

I'm saving users with a default image by the time they register in the application and this image is a drawable that is saved as a String in the database: Controller class method: public static boolean cadastraUsuario(Context context, Strin...
asked by 18.11.2016 / 17:37
1
answer

Error adding image to a URI - "can not find symbol class fromFile"

Well, I can not find out why Android Studio does not recognize the Uri.fromFile() method. I researched in several places but nothing. My code looks like this: foto.setOnClickListener(new OnClickListener() { @Override pu...
asked by 30.06.2015 / 02:04