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
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
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
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
4 matches
Mail list logo