[android-developers] Re: Unfortunately App has stopped is the error im getting and not sure why, all breakpoints make it thru no problem and then the message.

2015-03-24 Thread George Baker
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.


Re: [android-developers] Re: Unfortunately App has stopped is the error im getting and not sure why, all breakpoints make it thru no problem and then the message.

2015-03-24 Thread Daniel Chacon
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 

[android-developers] [OFF] Site de Charges – Tirinhas – CT6

2015-03-24 Thread Psy Khé
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:

ad...@istgroup.com.br

Confere lá!

Agradecido!

Abraços,

Psy Khé aka Saulo – By IST Group.

-- 
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.


[android-developers] Android Accessories - parallel read/write

2015-03-24 Thread AJ
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

-- 
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.


Re: [android-developers] Re: Unfortunately App has stopped is the error im getting and not sure why, all breakpoints make it thru no problem and then the message.

2015-03-24 Thread Daniel Chacon
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 

Re: [android-developers] Re: Unfortunately App has stopped is the error im getting and not sure why, all breakpoints make it thru no problem and then the message.

2015-03-24 Thread Daniel Chacon
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.


Re: [android-developers] Re: Unfortunately App has stopped is the error im getting and not sure why, all breakpoints make it thru no problem and then the message.

2015-03-24 Thread Steve Gabrilowitz
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.


Re: [android-developers] Re: Unfortunately App has stopped is the error im getting and not sure why, all breakpoints make it thru no problem and then the message.

2015-03-24 Thread Daniel Chacon
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