Thanks Vinod and priyanka, for the very good suggestion.
You both are right on your suggestion.
Can say Priyanka's suggestion is safe (as par the requirement).
vinod and Amit both of you share good suggestion.
It is working really fine.
Again Thanks to all.
On Mar 4, 10:29 am, priyanka
Beena, I am not able to understand your problem?
Assuming you are displaying image and content in a list view, you want
to keep refreshing the view as and when images come? or you want to
make request for images and corresponding data separately and show
them as and when they come or together?
Let me explain.
I want to display the Images(which is from server) and its data in
right side of image.
To load the images from server I am using this.
Bitmap bmImg=null;
URL myFileUrl =null;
HttpURLConnection conn=null;
try {
Let me explain.
I want to display the Images(which is from server) and its data in
right side of image.
To load the images from server I am using this.
Bitmap bmImg=null;
URL myFileUrl =null;
HttpURLConnection conn=null;
try {
like
image1data1
image2data2
::
image15 data15
Thanks
On Mar 3, 2:43 pm, Beena swdeveloper2...@gmail.com wrote:
Let me explain.
I want to display the Images(which is from server) and its data in
right side of image.
To load the images from server I am using this.
like
image1data1
image2data2
::
image15 data15
Thanks
On Mar 3, 2:43 pm, Beena swdeveloper2...@gmail.com wrote:
Let me explain.
I want to display the Images(which is from server) and its data in
right side of image.
To load the images from server I am using this.
Start the second activity immediately on start check whether you have
images to display or not if not create a separate thread (important it
should be separate thread) to get the images. To this separate thread
you should pass a listener (which can be your second activity or an
inner class), when
Thanks A R for your instant reply,
That is what I want actually.
Can you give some sample code?
I am not able to understand how to set the listener method to update
the view.
Thanks
On Mar 3, 2:55 pm, A R amit.r...@gmail.com wrote:
Start the second activity immediately on start check whether
Thanks A R for your instant reply,
That is what I want actually.
Can you give some sample code?
I am not able to understand how to set the listener method to update
the view.
Thanks
On Mar 3, 2:55 pm, A R amit.r...@gmail.com wrote:
Start the second activity immediately on start check whether
public interface MyListener {
public void success();
public void failure();
}
From your activity:
myServerConnectionHandlerObject.getImages(new MyListener() {
//implement both methods here.
});
public class MyServerConnectionHandler {
public void getImages(MyListener l) {
//do net
Thanks A R.
I will try as you have suggested then will tell you if any problem
occure.
Again thanks for the reply.
On Mar 4, 2:43 am, A R amit.r...@gmail.com wrote:
public interface MyListener {
public void success();
public void failure();
}
From your activity:
HI
Bena
i also faced this problem before
now i am good at this concept i did understand your problem
you will this way
you can call in getView () this runnableclass
(im);
class x implements Runnableinterface
{
xx(Imageview im)
{
// whatever you can declare in this
Hi use this code also
public class imageloader implements Runnable{
private String ss;
//private View v;
//private View v2;
private ImageView im;
public imageloader(String s, ImageView im)
Have you considered using AsyncTask ? I believe AsyncTask hides the
bare-bones of Threading to give a user-friendly interface in which you
can write your code (that runs in a separate thread), and it is safe
to update your UI from AsyncTask directly.
On Mar 4, 10:16 am, bo
Is there any one?
Please help.
On Mar 2, 6:26 pm, Beena swdeveloper2...@gmail.com wrote:
Hi,
I am facing some strange thing.
I have a to display 15 images (from the server) and their detail in
besides that.
In Activity-A on button Click listener i am fetching the data and
image urls from
15 matches
Mail list logo