[android-developers] Re: MultiThreading between Activitys

2010-03-06 Thread Beena
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

[android-developers] Re: MultiThreading between Activitys

2010-03-03 Thread A R
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?

[android-developers] Re: MultiThreading between Activitys

2010-03-03 Thread Beena
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 {

[android-developers] Re: MultiThreading between Activitys

2010-03-03 Thread Beena
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 {

[android-developers] Re: MultiThreading between Activitys

2010-03-03 Thread Beena
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.        

[android-developers] Re: MultiThreading between Activitys

2010-03-03 Thread Beena
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.        

[android-developers] Re: MultiThreading between Activitys

2010-03-03 Thread A R
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

[android-developers] Re: MultiThreading between Activitys

2010-03-03 Thread Beena
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

[android-developers] Re: MultiThreading between Activitys

2010-03-03 Thread Beena
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

[android-developers] Re: MultiThreading between Activitys

2010-03-03 Thread A R
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

[android-developers] Re: MultiThreading between Activitys

2010-03-03 Thread Beena
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:

[android-developers] Re: MultiThreading between Activitys

2010-03-03 Thread booooooooooooo
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

[android-developers] Re: MultiThreading between Activitys

2010-03-03 Thread booooooooooooo
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)

[android-developers] Re: MultiThreading between Activitys

2010-03-03 Thread priyanka
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

[android-developers] Re: MultiThreading between Activitys

2010-03-02 Thread Beena
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