Hi, How you resolved the issue. I am also facing the same problem.
On Wednesday, March 25, 2015 at 10:44:45 PM UTC+8, Dan Cha wrote: > > Original issue resolved, moved my current image issue to new post, thank > you for the help everyone. > > https://groups.google.com/forum/?hl=en#!topic/android-developers/ivTJ23kXRPY > > > On Tue, Mar 24, 2015 at 5:22 PM, Daniel Chacon <[email protected] > <javascript:>> wrote: > >> 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 <[email protected] >> <javascript:>> 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 <[email protected] >>> <javascript:>> 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 <[email protected] >>>> <javascript:>> wrote: >>>> >>>>> Does your app have internet permission? >>>>> On Mar 24, 2015 12:40 PM, "Daniel Chacon" <[email protected] >>>>> <javascript:>> 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 <[email protected] >>>>>> <javascript:>> 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 [email protected] >>>>>>> <javascript:> >>>>>>> To unsubscribe from this group, send email to >>>>>>> [email protected] <javascript:> >>>>>>> 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 [email protected] >>>>>>> <javascript:>. >>>>>>> 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 [email protected] >>>>>> <javascript:> >>>>>> To unsubscribe from this group, send email to >>>>>> [email protected] <javascript:> >>>>>> 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 [email protected] >>>>>> <javascript:>. >>>>>> 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 [email protected] >>>>> <javascript:> >>>>> To unsubscribe from this group, send email to >>>>> [email protected] <javascript:> >>>>> 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 [email protected] >>>>> <javascript:>. >>>>> 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/01ad5dfb-d2be-4f22-900f-30a978980fb2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

