[android-developers] Digest for android-developers@googlegroups.com - 9 updates in 4 topics

AJ <ajayld@gmail.com>: Mar 24 10:39PM -0700

Hi,
 
I have been exploring on developing an Android accessory, but I have a
basic doubt before I conclude it is feasible or not.
 
The UsbManager class has a openAccessory API, which returns a
ParcelFileDescriptor instance. The ParcelFileDescriptor instance is used to
create one instance each of FileInputStream and FileOutputStream. Does this
mean all the read and write operations have to be sequential? Is there a
way to do parallel read/write operations? In other words, how many
endpoints are available to communicate with Android accessory?
 
Thank you,
Ajay
"Psy Khé" <psykhe6@gmail.com>: Mar 24 09:45PM -0300

Senhores,
 
Venho apresentar meu Recente Site – Protótipo (CT 6 – We Will See – Take
Notice),
 
Acesse: http://bit.ly/ct6-istgroup
 
O qual tem por Finalidade Agregar – Mostrar - Charges e Tirinhas de vários
sites de terceiros.
 
Para quem curte esse tipo de conteúdo é interessante passar por lá, e
conferir todo os dias as novas Charges e Tirinhas disponíveis.
 
Qualquer dúvida, sugestão, ou forma de contribuir com o projeto, pode ser
enviado e-mail para:
 
admin@istgroup.com.br
 
Confere lá!
 
Agradecido!
 
Abraços,
 
Psy Khé aka Saulo – By IST Group.
George Baker <spaceastronomer@gmail.com>: Mar 24 03:53AM -0700

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
Steve Gabrilowitz <steveg1701@gmail.com>: Mar 24 12:43PM -0400

Does your app have internet permission?
Daniel Chacon <cubangt2@gmail.com>: Mar 24 11:38AM -0500

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 <spaceastronomer@gmail.com>
wrote:
 
Daniel Chacon <cubangt2@gmail.com>: Mar 24 11:50AM -0500

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 <steveg1701@gmail.com>
wrote:
 
Daniel Chacon <cubangt2@gmail.com>: Mar 24 03:19PM -0500

Can anyone see why the image wouldnt show up, if it is getting a valid path?
 
 
 
Daniel Chacon <cubangt2@gmail.com>: Mar 24 05:22PM -0500

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?
 
 
Rushyang Darji <rushyangdarji@gmail.com>: Mar 24 01:37PM

Hi, have you tried LensKart? I just did!
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

No comments:

Post a Comment