Re: [android-developers] Control colors in openGL

2012-03-07 Thread Yang Bo
OpenGL is a state machine,when you dont need the texture,try to disable it before draw other primitives. Regards! Bo Yang -- Sent from my Android! 在 2012-3-8 上午12:07,Rikki tteam...@gmail.com写道: Hi, Want to draw bars of different colors. The background(bitmap image) for each bar is same but

Re: [android-developers] Advanced Touch Control: passing touch event from one view to another

2012-01-01 Thread Yang Bo
Sorry,I donnot quite get you. Are the views in the same activity? 在 2011-12-30 上午10:31,Sky myonceinalifet...@gmail.com写道: I have one custom made view that I can drag across the screen horizontally. Within this view is a ScrollView. I already have it so I can decide whether the user is dragging

Re: [android-developers] Problem in getting Android source code from Google repo

2011-12-26 Thread Yang Bo
Try android.googlesource.com. 在 2011-12-26 下午6:48,srinivasan shanmugam srinivasan@gmail.com写道: Hi, When i was getting android source code by executing the following commands: $ curl http://android.git.kernel.org/repo ./repo $ chmod a+x ./repo $ ./repo init -u

Re: [android-developers] Re: The accelerometer reading looks odd

2011-12-23 Thread Yang Bo
May not possible,there are several games using it in my phone... 在 2011-12-23 下午1:53,Christopher Van Kirk christopher.vank...@gmail.com 写道: Seems like your device is broken. On 12/23/2011 11:26 AM, Yang Bo wrote: Could anyone help on this ? Thanks 在 2011-12-22 下午5:02,Yang Bo yangbo

[android-developers] The accelerometer reading looks odd

2011-12-22 Thread Yang Bo
Hi, I am trying to read the device accelerometer when the phone is placed on a desk with screen up,I expect 0 on the x-axis and y-axis,-9.8 at z-axis. But I get x:11,y:-37,z:-24(decimal part ignore) What is this? I read the doc of accelerometer, does not make it clear. Could you

[android-developers] Re: The accelerometer reading looks odd

2011-12-22 Thread Yang Bo
Could anyone help on this ? Thanks 在 2011-12-22 下午5:02,Yang Bo yangbo@gmail.com写道: Hi, I am trying to read the device accelerometer when the phone is placed on a desk with screen up,I expect 0 on the x-axis and y-axis,-9.8 at z-axis. But I get x:11,y:-37,z:-24(decimal part ignore

Re: [android-developers] Android web development guide..(beginner question..)

2011-12-13 Thread Yang Bo
If you are developing web app,it will run in browser installed in user phone. Why do you care Android SDK api ? 在 2011-12-13 下午7:43,sathyashrayan sathyashra...@gmail.com写道: Developers, I have been in web developments with php/mysql.. Now a days learning the basics of android developments. My

Re: [android-developers] Emulator takes 15 minutes to start an app, something wrong ?

2011-12-13 Thread Yang Bo
I think it is normal,it start very slow in my laptop (2G cpu,3G RAM) either... 在 2011-12-14 上午10:35,SL@maxis ecp_...@my-rialto.com写道: I am just playing with some sample applications, eg LunarLander. It takes about 10-15 minutes to start when run the application. Have I missed something ?

Re: [android-developers] How to monitor screen touch event in service

2011-12-08 Thread Yang Bo
Because that may be very useful,if you want implement a system wide gesture, or do something interesting accounting like how many times you hit the phone screen every day 在 2011-12-8 下午5:29,Oli Wright oli.wri...@gmail.com写道: The first question you're likely to get from anyone is why. Smells

Re: [android-developers] How to monitor screen touch event in service

2011-12-08 Thread Yang Bo
Ok,I know this may sound malicious,maybe Android never want developer to do this... 在 2011-12-8 下午5:52,Miguel Morales therevolti...@gmail.com写道: Or steal any phone numbers I dial? On Thu, Dec 8, 2011 at 1:48 AM, Yang Bo yangbo@gmail.com wrote: Because that may be very useful,if you want