[android-beginners] Re: Get an array of colors from an image

2009-10-31 Thread Farproc
Bitmap bmp = ImageView.getDrawable().getBitmap(); Then loop through the bitmap with Bitmap.getPixel() On 10月31日, 上午3时50分, Liviu Ungureanu wrote: > Hi all! > > I just want to ask if is possible to get the array with colors from a > ImageView? > > Thank you! -- You received this message because y

[android-beginners] Re: Eclipse problem: "R cannot be resolved"

2009-10-31 Thread Farproc
Weird. I encountered problems like that under Windows XP, but it came out OK when I clean my project and refresh it. On 10月31日, 下午1时43分, erisa wrote: > I had to abandon my old distribution and installed ubuntu and then > installed eclipse and then the android SDK and ADT plugin. All my > project

[android-beginners] Re: "R cannot be resolved"

2009-10-31 Thread Farproc
F5 to refresh or clean your project and built it again. On 10月31日, 下午3时00分, eldo wrote: > Im a beginner in Android,When I run an application in ecllipse,an > error showing "R cant be resolved" How can i fix that error,thanks in > advance.. -- You received this message because you are subscribe

[android-beginners] Re: Does anyone know how to set G1 use Wi-Fi with static IP?

2009-10-25 Thread Farproc
a > 650-488-4820 > > > > On Fri, Oct 23, 2009 at 20:02, Farproc wrote: > > > I set my G1 use static IP and disable DHCP of my router. But it seems > > that my G1 still obtains a different IP address from router anyway. > > Does anyone know wh

[android-beginners] Re: Is it possible to append a value to R.string or any resource under R.?

2009-10-24 Thread Farproc
R.xx.xx ids are actually integet constants. They're not strings. So you can't use + to construct such ids. On Oct 24, 1:48 pm, David wrote: > @Farpoc > > Your solution worked perfectly.  Thank you very much.  I have about > 300 possible strings the user can choose.  Is there a less CPU > intensi

[android-beginners] Re: Is it possible to append a value to R.string or any resource under R.?

2009-10-23 Thread Farproc
// popluate textView with the string R.string.h + whatever the user put on Screen A if(desiredString.equals("1") { textView.setText(R.string.h1); } else if(desiredString.equals("2") { textView.setText(R.string.h2); } else if(){ // etc. } else . { } On 10月24日, 上午9时59分, D

[android-beginners] Does anyone know how to set G1 use Wi-Fi with static IP?

2009-10-23 Thread Farproc
I set my G1 use static IP and disable DHCP of my router. But it seems that my G1 still obtains a different IP address from router anyway. Does anyone know why?? ps. I can visit internet through the auto obtained IP. --~--~-~--~~~---~--~~ You received this message b