[android-beginners] Re: Re-locating a dialog

2009-11-02 Thread I82Much
http://stackoverflow.com/questions/1583237/androidui-related-questions I am not aware of an API to change the position of a dialog. You may be better served creating an activity and using android:theme=@android:style/Theme.Dialog to make it look like a dialog. If you go that route, you will then

[android-beginners] Re: how to load the related Bitmap according to input

2009-10-07 Thread I82Much
I take it you're looking for something a little more scalable than the naive solution: switch (input) { case 1: return R.drawable.pic_1; . . . case n: return R.drawable.pic_n; } I see the problem; you need to append an arbitrary number to the end of a string, and

[android-beginners] Re: how to load the related Bitmap according to input

2009-10-07 Thread I82Much
I suppose you could also do something like int[] iconRefs = { R.drawable.pic_1, ... R.drawable.pic_n } if (input = 0 input n) { // Account for 0 based indexing return iconRefs[input - 1]; } This code gets the reference out (I might be wrong in how you reference it, maybe

[android-beginners] Re: how to download an image?

2009-09-08 Thread I82Much
http://asantoso.wordpress.com/2008/03/07/download-and-view-image-from-the-web/ On Sep 5, 2:56 am, mmkr manutd...@gmail.com wrote: Hai, I'm developing an application where i need to auto download an image (any random image, preferred if first image of the first page) from google image