So i tried this right on the main page of the app and works using the path that the other one is using.
ImageView imageView = (ImageView) findViewById(R.id.imageView); Picasso.with(this) .load("http://www.site.com/imgs/inventory/Video Game/3_1_Vanellope.jpg") .into(imageView); So since this works with the path, how can i embed the above line into my code to display each image path that is returned and added to my listview? On Tue, Mar 24, 2015 at 3:19 PM, Daniel Chacon <cuban...@gmail.com> wrote: > Can anyone see why the image wouldnt show up, if it is getting a valid > path? > > > > On Tue, Mar 24, 2015 at 11:50 AM, Daniel Chacon <cuban...@gmail.com> > wrote: > >> yes, it has had since i started.. >> >> this is what i have in the manifest >> <uses-permission android:name="android.permission.INTERNET" /> >> <uses-permission >> android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> >> >> On Tue, Mar 24, 2015 at 11:43 AM, Steve Gabrilowitz <steveg1...@gmail.com >> > wrote: >> >>> Does your app have internet permission? >>> On Mar 24, 2015 12:40 PM, "Daniel Chacon" <cuban...@gmail.com> wrote: >>> >>>> yea after posting and reading over my code and other found, i had >>>> already moved the listview binding code to the postexecute portion and >>>> works.. >>>> But today im trying to get the imageview to show the picture per >>>> record, but again getting the error and cant seem to find in the logcat >>>> file why its failing. >>>> >>>> I changed things around to make the image bitmap part of items. >>>> >>>> SoapObject suvas = >>>> (SoapObject) dar.getProperty(i); if (suvas != null) { String c; String d; >>>> String o; String img; String q; String serv = "http://www.site.com"; >>>> Bitmap ival; >>>> c = suvas.getPropertySafelyAsString("Category").toString(); d = >>>> suvas.getPropertySafelyAsString("Description").toString(); o = >>>> suvas.getPropertySafelyAsString("Owned_x0020_By").toString(); img = >>>> serv.concat(suvas.getPropertySafelyAsString("Picture").toString()); q = >>>> suvas.getPropertySafelyAsString("Qty","null").toString(); try { ival = >>>> BitmapFactory.decodeStream((InputStream) new >>>> java.net.URL(img).getContent()); >>>> items[i] = new InventoryItem(c, o, d, ival, q); } catch (Exception e) { >>>> e.printStackTrace(); } } >>>> >>>> It ends up in the catch and returns a >>>> java.io.FileNotFoundException: http://www.site.com/imgs/inventory/Video >>>> Game/3_1_Vanellope.jpg >>>> >>>> But if i copy the URL and paste into my browser, it opens the images >>>> fine.. all images are available, so im sure im doing something wrong. >>>> >>>> Can anyone pin point any possible issues? >>>> >>>> This is all within the original posted code, all ive done is change the >>>> few lines above to try and get the image set to the imageview. >>>> >>>> thank you >>>> >>>> >>>> On Tue, Mar 24, 2015 at 5:53 AM, George Baker < >>>> spaceastrono...@gmail.com> wrote: >>>> >>>>> I believe your problem is that you aren't returning the list from the >>>>> background thread (doInBackground()). I can't tell from your changes >>>>> where >>>>> you are assigning a value to the items variable in you adapter constructor >>>>> but it really should be from the result returned from your doInBacground() >>>>> method. Also remember all ui access in an AsyncTask should be in either >>>>> the on onPreExecute() or onPostExecute() methods. >>>>> >>>>> Hope this helps, >>>>> George >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Android Developers" group. >>>>> To post to this group, send email to >>>>> android-developers@googlegroups.com >>>>> To unsubscribe from this group, send email to >>>>> android-developers+unsubscr...@googlegroups.com >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/android-developers?hl=en >>>>> --- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Android Developers" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to android-developers+unsubscr...@googlegroups.com. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Android Developers" group. >>>> To post to this group, send email to >>>> android-developers@googlegroups.com >>>> To unsubscribe from this group, send email to >>>> android-developers+unsubscr...@googlegroups.com >>>> For more options, visit this group at >>>> http://groups.google.com/group/android-developers?hl=en >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "Android Developers" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to android-developers+unsubscr...@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to android-developers@googlegroups.com >>> To unsubscribe from this group, send email to >>> android-developers+unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to android-developers+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.