Re: [android-developers] listview is getting me mad plase help

2010-01-30 Thread Sergey Ten
Should setOnItemClickListener http://developer.android.com/reference/android/widget/AdapterView.html#setOnItemClickListener%28android.widget.AdapterView.OnItemClickListener%29(AdapterView.OnItemClickListener

Re: [android-developers] listview is getting me mad plase help

2010-01-30 Thread Sergey Ten
the item. 2010/1/30 Sergey Ten sergeyte...@gmail.com mailto:sergeyte...@gmail.com Should setOnItemClickListener http://developer.android.com/reference/android/widget/AdapterView.html#setOnItemClickListener%28android.widget.AdapterView.OnItemClickListener%29

Re: [android-developers] Telephony Call State

2009-11-28 Thread Sergey Ten
As far as I know, there is no need to modify your phone's firmware or framework. It is sufficient to build your application as part of adnroid's build. neeloor2004, if you enlist into android's open source projects using repo (Mark provided you the link), add your project sources to the build,

[android-developers] Rationale for sendRawPdu to use enforceCallingPermission

2009-11-02 Thread Sergey Ten
Hi, Would someone please explain why sendRawPdu method (in IccSmsInterfaceManager) is calling enforceCallingPermission and not enforceCallingOrSelfPermission? Would this effectively bar the Phone App from sending sms/mms messages? Thanks, Seregy -- You received this message because you are

[android-developers] Re: Accessing raw resource files with the filename as a String

2009-03-09 Thread Sergey Ten
One possible way of doing it would be to call AssetManager::open method, which takes a String (relative path in assets folder). On Sat, Mar 7, 2009 at 2:35 PM, Hayden hayden.stew...@gmail.com wrote: Is there a way to access a raw resource file by having its filename in a String? According

[android-developers] Re: java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute.

2009-02-15 Thread Sergey Ten
This error message means that the layout file for this particular activity does not specify the layout height attribute. I would guess that the LinearLayout height should be set to fill_parent, so that it would consume the entire screen (vertically). Hope that makes sense, Sergey ying lcs

[android-developers] debugging integrated Java and native code

2009-02-07 Thread Sergey Ten
Hi, I am trying to figure out what is the best way to debug a mix of Java and native code? Please notice, that I am NOT trying to develop a native app. The app will be written entirely in Java, using Android SDK. However, I noticed that some pieces of the SDK use native methods (e.g.

[android-developers] Re: WebView responding to touch events

2009-02-07 Thread Sergey Ten
Mark, I think I had this problem myself and could solve it by using the following code: webView.setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { switch (event.getAction()) { case

[android-developers] Re: WebView responding to touch events

2009-02-06 Thread Sergey Ten
Mark, I think I had this problem myself and could solve it by using the following code: webView.setOnTouchListener(new View.OnTouchListener() { public boolean onTouch(View v, MotionEvent event) { switch (event.getAction()) { case

[android-developers] debugging integrated Java and native code

2009-02-05 Thread Sergey Ten
Hi, I am trying to figure out what is the best way to debug a mix of Java and native code? Please notice, that I am NOT trying to develop a native app. The app will be written entirely in Java, using Android SDK. However, I noticed that some pieces of the SDK use native methods (e.g.

[android-developers] Re: Trouble with TabActivity

2009-01-12 Thread Sergey Ten
Timothy, Here onCreate is declared as protected method, not public in 1.0_r2. For instance, here is how onCreate is implemented by ActivityGroup (which is a parent class for TabActivity): @Override protected void onCreate(Bundle savedInstanceState) {

[android-developers] Re: Slide Views ( like Google Scoreboard app )

2009-01-08 Thread Sergey Ten
What is described looks very similar to me to what the Gallery class is doing. You may to check if the class is working for you. Sergey Kavi wrote: I tried creating something similar like a home screen a while back and ended up using the View Flipper. As you pointed out, you cannot view the

[android-developers] Re: Problem saving canvas to file

2009-01-04 Thread Sergey Ten
I have not tried it myself, but looks like you can use Picture class. E.g: @Override protected void onDraw(Canvas canvas) { FileInputStream in = null; try { in = new FileInputStream(myimage.jpg);

[android-developers] Re: Slide from an Activity to another...

2009-01-03 Thread Sergey Ten
It may be easier to use animation set, wwhich combines out and in animations together and runs them simultaneously. I am typing from G1, so I can't provide any examples right away. Please let me know if you are interested and I will try to find some. Sergey Moto medicalsou...@gmail.com