Skip to main content

All Questions

Tagged with
0 votes
2 answers
13k views

java.lang.NullPointerException: Attempt to invoke virtual method 'char[] java.lang.String.toCharArray()' on a null object reference

I am trying to read an image from the Android device then upload it to Microsoft Azure Mobile Service. The pickImage() and onActivityResult() methods are working fine as image can be successfully ...
0 votes
0 answers
18 views

How can I send ImgUrl to Twitter(X)?

enter image description hereThis only shows Url. But I want to show Img too. dialog_news_twitter.setOnClickListener(new View.OnClickListener() { @Override public void ...
0 votes
1 answer
85 views

I am getting an error while uploading image URL to firebase database from the firebase storage

I got this in firebase: private fun uploadToFireBase(imageUri: Uri) { binding.progressBar.visibility = View.VISIBLE val fileRef : StorageReference = storageReference.child("${System....
0 votes
1 answer
44 views

(others too)picasso is not working with simple image display using URL

dependency=implementation "com.squareup.picasso:picasso:2.4.0" String url1="https://www.google.com/search? ImageView image; @Override protected void onCreate(Bundle ...
1 vote
0 answers
336 views

App crashed when using setImageURI function in ImageView

I am opening the gallery and getting the URI of an image when it is selected. Then I show the picture using setImageURI like this. override fun onActivityResult(requestCode: Int, resultCode: Int, data:...
0 votes
0 answers
534 views

Download Image from URI And Store it in the Folder

I'm getting a list from the service side with 10 image Uris. I was showing all those images in the Fragment Pages using Glide Library, but glide is taking time to load the image and show it in the UI. ...
2 votes
0 answers
42 views

Store image url to database using retrofit

Is it possible to send a url in android to database using retrofit post request @Body method? I am trying to build an app that will upload multiple images to amazon s3 and after will get the image url ...
0 votes
2 answers
4k views

How to retrieve image from URL from Firebase Realtime Database in Android Studio

I am trying to extract URL named "imageUrl" so as to retrieve the image from the URL from Firebase Realtime Database as seen below: This is DB structure in Firebase Realtime Database: enter image ...
0 votes
3 answers
5k views

Glide Imgae loading is taking too much time in recyclerview android

In my app I have implemented a recyclerview widget to show userimage, name and company name. I have stored the text information into Realm DB, and those information are showing just after starting the ...
-3 votes
1 answer
45 views

Exiting App causes the image taken from gallery to go

I am able to pull down images from my gallery and add them to image view but when I exit app and open it again image is gone. How do I save this image so that it stays there. Open gallery method: ...
0 votes
1 answer
100 views

I am not able to load my image via taskSnapshot.getStorage().getDownloadUrl().toString() method please tell me if any suggestions for this [duplicate]

many suggestions tried but taskSnapshot.getStorage().getDownloadUrl().toString() this is not working. in the firebase the another url is stored despite the download url. the whole 2 related java files ...
0 votes
1 answer
607 views

Image compression in bitmap and uploading to server in android Q

i am trying to upload an image to one of the server but the server side has certain resolution limitations.Hence we are compressing the image file using bitmap before the upload. Below is the code ...
0 votes
1 answer
672 views

Setting the imageUrl for a VideoView in the XML layout file on Android

I have an application that downloads JSON input from a web site that returns a URI to a picture or a video. I had no problem to get my MaterialCardView to display the pictures via an ImageView. My ...
-1 votes
1 answer
1k views

Image URL to File Object

I'm trying to convert this image url to file object : https://graph.facebook.com/v4.0/10211842143528384/picture?height=200&width=200&migration_overrides=%7Boctober_2012%3Atrue%7D this link ...
0 votes
1 answer
1k views

Retrieving image url with specific access privileges using AWS Mobile SDK for Android

I would like to retrieve an image URL with non-public access using the AWS Android SDK. I will be displaying the image via the URL myself, but I'm not sure how to go about getting permissions via the ...

15 30 50 per page