Re: [android-developers] Tabbed Menu with Gallery-like Menu in one of the tab
the example given in the display-bitmaps seems to be broken.
having a runtime exception.
On Tuesday, August 14, 2012 3:30:24 PM UTC+8, Alexandros wrote:
--The problem is that you are doing network operations on the UI thread. Most probable your application is not targeting the latest android version, if you did android would have given you an error for this.You have to load the images from a thread and once they are downloaded you will add them in your image view.The solution is here: http://developer.android.com/training/displaying-bitmaps/ index.html
On Tuesday, August 14, 2012 6:50:23 AM UTC+3, Jeff Huang wrote:the problem should be coming from.
public void setViewImage(ImageView v, String value) {
super.setViewImage(v, value);
try {
v.setImageBitmap(BitmapFactory.decodeStream(new URL(value).openConnection(). getInputStream()));
} catch (Exception e) {
e.printStackTrace();
}
}
but I can't seem to figure out why..
MagouyaWare於 2012年8月8日星期三UTC+8上午5時13分12秒寫道:No one is going to download your code and look at it. Figure out the relevant parts and paste them here and then you have a better chance of getting someone to help.
Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware
On Mon, Aug 6, 2012 at 9:23 AM, Jeff Huang <jeff...@gmail.com> wrote:First thing first I've attached all my code
Design:
Interface with 4 Tabs
Under one of the tab contains a gallery like menu (fragment + gridview)
gallery pictures are retrieve at runtime from the web.
there is a correspond namelist to retrieve the pictures.
Goal:
Create application that retrieves most of the content at runtime from the internet.
meaning a client-side app if possible
ex. Alice, Bob, Cathy, Don <~string array
pictures are retrieved from say http://www.friend.com/alic.pnge , http://www.friend.com/bob.png etc etc.
onclick of the avatar/picture of the person will trigger a new activity (not yet implemented)
Problem:
even though the pictures loads correctly, however there seems to be a huge lagging issue. (tested with 100 photos of of grand total size of 1mb)
and whenever I scroll down the gallery it seems to reload the pictures.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-d...@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home