[android-developers] Re: android loop problem

2011-07-06 Thread saurabh chatterjee
may be your code is getting entangled in an infinite loop. have you
tried using "break" ?

On Jul 6, 4:51 pm, mark2011  wrote:
> Dear All :
>
>    I met a strange event. I write a simple code to display a screen
> once the user click a button to start. In the screen, the user can
> click some button to set up the factors that I use onclicklistener to
> accept the onclick. But the start button is that I use onclick to
> start. Once I use a loop using the for/while command to loop the
> display the screen. The start button doesn't work. Can anyone help me?
>
> Thanks.
>
> BR,
> mark

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


[android-developers] How to detect end of scrolling for a Gallery

2011-07-06 Thread saurabh chatterjee
Hi,

I am trying to set an Image on an ImageView when the scrolling of a
Gallery is complete. Currently my code looks like this ->

myGallery.setOnItemSelectedListener(new OnItemSelectedListener() {

@Override
public void onItemSelected(AdapterView parent, View 
view,
int position, long id) {

setImage(imageList[position]);
}
});

public void setImage(int rscrId) {
// I am setting the current Image from the imageList to a Image 
view
over here
}

the problem I am facing is that the Image in the Image view keeps
changing continuously as long as the gallery is scrolling when I do a
flick. BUT I want to set the image i.e. call the "setImage()" only
when the scrolling stops.

Any help would be highly appreciated.

Thanx in advance :)

saurabh.

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


[android-developers] Re: Emulator connectivity

2011-07-06 Thread saurabh chatterjee
try this ->
1. open command prompt and go to the directory where your
"emulator.exe" is present e.g. "C:\android\android-sdk-windows\tools"
2. run the following command "emulator -avd  -http-
proxy : -debug-proxy"
3. the above will launch your emulator. open the browser and check if
a url is working

hope it helps :)

cheers

saurabh.

On Jul 6, 2:23 pm, Raghav Sood  wrote:
> The emulator will work fine if you connect via ethernet. The emulator will
> use it as a wifi connection.
>
> On Wed, Jul 6, 2011 at 2:25 PM, Navindian  wrote:
> > I heard that Emulator needs wifi only to connect to internet. I dont have
> > wifi but with the network connection through cable or usb it wont work?
>
> > What to do if I dont have wifi and wish to connect to localhost restful
> > service.
>
> >  --
> > 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
>
> --
> Raghav 
> Soodhttp://www.raghavsood.com/http://www.androidappcheck.com/http://www.telstop.tel/

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