android


java.io.filenot found expception : no content provider while converting URI its UR '''I' not URL to bitmap


I have seen a lot of solutions regarding converting picture from url to bitmap please help me with this URI thing.
Note that I am using firebase as a backend and user is the variable of firebaseUser.
just like this
FirebaseUser user=FirebaseAuth.getInstance().getCurrentUser();
I want the users profile picture which URI has been already obtained with the help of
user.getPhotoUri()
How to do this properly?
Thanks in advance.
code is attached
imageView=(ImageView)findViewById(R.id.user_image);
try{
Uri imageuri=Uri.parse(user.getPhotoUrl().toString());
System.out.println("photo url is : "+user.getPhotoUrl());
InputStream image_Stream;
image_Stream=this.getContentResolver().openInputStream(imageuri);
//Bitmap bitmap= MediaStore.Images.Media.getBitmap(this.getContentResolver(),imageuri);
Bitmap bitmap= BitmapFactory.decodeStream(image_Stream);
roundImage=new RoundImage(bitmap);
imageView.setImageDrawable(roundImage);
System.out.println("final photo uploaded");
}
catch (Exception e){
System.out.println("Error occured this : "+ e);
}

Related Links

optionsmenu both cases execute
Button with OnclickListener over Spinner with OnItemSelectedListener conflict Android
How can i turn on GPS automatically as my android application launches in Ice cream sandwhich [duplicate]
cannot tokenize string by space
How to find key from HashMap
How to force android layout to shift upward when softkeyboard is visible
Custom listview with checkbox crashes while scrolling
Click images of carousel view
Share mp3 via whatsapp, Android
Android: Control goes back to Splash Screen
How to validate a view or layout in robotium
Make radiobutton icon smaller
How can i register a Receiver in a service?
FileNotFoundException in Android with HttpURLConnection
Phsysical Home Button onStop in Android
Android - Instantiate a Fragment multiple times?

Categories

HOME
azure-stream-analytics
cobalt
css3
powerpoint
3d
jelastic
saml-2.0
jwplayer
package
devise
pdfbox
3d-reconstruction
nested-if
settings
gluon-mobile
sendgrid-api-v3
octave
onedrive-api
shared-libraries
parameter-passing
coin3d
wolframalpha
symfony-console
babel
ember-cli
event-store
expressionengine3
flooding
oculus
progress-bar
datastax-enterprise-graph
sinch
openmdao
jaws
corenlp-server
boost-asio
anki
postback
memory-address
linkedhashmap
card.io
html-encode
processwire
wurfl
playframework-2.1
modernizr
protein-database
ogc
magento-1.9.3
doc
vmware-fusion
skylink
glm-math
signal-strength
servermanager
fclose
bluez
convex-optimization
carrot2
amq
context-switch
wpas
subnet
mach-o
d3-force-directed
structuremap4
testrail
slackware
microstation
installshield-2010
google-query-language
nservicebus5
aurora
pushbots
concept-insights
grgit
fiware-monitoring
lazybones
showdialog
jbake
deform
spy++
device-tree
paw
jama
kissfft
paste
decoupling
xmltodict
unit-of-work
mvc-editor-templates
diem
onload-event
swfobject
virtual-pc
twisted.web
curb
onmousemove
fragmenttransaction
jquery-blockui
inkcanvas
stress
cgimage
pinch
workflow-services
webdev.webserver
timthumb
echo3
fail-fast-fail-early

Resources

Encrypt Message