[android-developers] how to depress the onLongClick() when drag a view

2010-04-19 Thread sheng wang
Hi, I have a View and I can drag it. It also has a onLongClick() method so it can respond to the long press on the screen. The problem is when I drag it , the onLongClick will also be triggered . Anyone have an idea to depress the long click detection when i move it . Thanks in advances.

Re: [android-developers] Re: how to depress the onLongClick() when drag a view

2010-04-19 Thread sheng wang
, Grace. On Apr 19, 11:47 am, sheng wang banxia...@gmail.com wrote: Hi, I have a View and I can drag it. It also has a onLongClick() method so it can respond to the long press on the screen. The problem is when I drag it , the onLongClick will also be triggered . Anyone have an idea

[android-developers] HistoryRecord - Activity instance

2010-03-18 Thread sheng wang
Hi This may sounds weird. I have a HistoryRecord variable, which stand for an activiy (I think). How to get the real activity instance from it ? Regards, Shawn. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] how to get the bitmap data before it is drawn on the screen

2010-02-22 Thread sheng wang
Hi there, To any normal android Widgets based on View( Button ,TextView ...), I wanna manipulate the bitmap data before it is drawn on screen. I have tried the onDraw(Canvas canvas) method, But when the programe hit the onDraw(Canvas canvas) method, I think the bitmap has already been drawn to

[android-developers] Re: how to get the bitmap data before it is drawn on the screen

2010-02-22 Thread sheng wang
View.getDrawingCache() can get the bitmap data, but it will also displayed on screen. I haven't figure out how to get the bitmap as while as prevent it from showing on the screen simultaneously. 2010/2/23 sheng wang banxia...@gmail.com Hi there, To any normal android Widgets based

[android-developers] relation between ViewRoot and View

2010-02-20 Thread sheng wang
Hi , Can any one give more information about ViewRoot and what's the relation between viewroot and view? I found a Viewroot create a surface at its' constructor, which I think is the real bitmap data goes to. So I guess every view has it own viewroot, every view has a surface for drawing and

Re: [android-developers] Re: How to send motion Event down to another activity

2010-02-08 Thread sheng wang
. May you send the event to the other activity, but no one can handle it. 2. In my understanding the activity behind in OnResume status, but it's still running. I'm really not sure about that I will try some test on it . BRs Guobin On Feb 8, 12:50 pm, sheng wang banxia...@gmail.com wrote

Re: [android-developers] Re: How to send motion Event down to another activity

2010-02-08 Thread sheng wang
manager that touches outside of your window should be delivered to whatever is behind it. On Mon, Feb 8, 2010 at 7:17 PM, sheng wang banxia...@gmail.com wrote: Hi GuoBin, 1. My translucent activity will be the root acitivity, and very possible the home screen will be just behind, but what

[android-developers] How to send motion Event down to another activity

2010-02-07 Thread sheng wang
Hi, My Activity using transparent Theme in AndroidManifest.xml *android:theme=@android:style/Theme.Translucent* * * Which works fine. When it's started from the Home screen, we can see both the content of my activity and the home screen below it. It gives the feeling of floating .

Re: [android-developers] Re: How to send motion Event down to another activity

2010-02-07 Thread sheng wang
Hi GuoBin, I understand what u mean below. I think that's the standard way the android deal with the event. Event goes through a current path within the activity. No event will go out of the current activity. As a surround way, is there any method that can let the current activity find out who

Re: [android-developers] Re: How to get old version of android source

2010-02-04 Thread sheng wang
That's exactly what I need. Thx. 2010/2/4 abukustfan abukust...@gmail.com Hi, Did you try below? $ repo init -u git://android.git.kernel.org/platform/manifest.git -b android-1.6_r2 On Feb 4, 10:48 am, sheng wang banxia...@gmail.com wrote: Hi, According to the doc of http

[android-developers] How to get old version of android source

2010-02-03 Thread sheng wang
Hi, According to the doc of http://source.android.com/download *If you would like to check out a branch other than master, specify it with -b, like:* *$ repo init** -u git://android.git.kernel.org/platform/manifest.git -b cupcake* I need to download android source 1.6 which match the android

[android-developers] how to add a new method in framework

2010-01-25 Thread sheng wang
Hi all, For some reason I need to add a new public method in Canvas.java just as bellow: /** * */ public Bitmap getBitmap() { if (mBitmap != null) { return mBitmap; } else { return null; } } After that I make update-api, then

Re: [android-developers] how to add a new method in framework

2010-01-25 Thread sheng wang
tag so that you don't need make update-api. On Mon, Jan 25, 2010 at 12:13 AM, sheng wang banxia...@gmail.com wrote: Hi all, For some reason I need to add a new public method in Canvas.java just as bellow: /** * */ public Bitmap getBitmap() { if (mBitmap

[android-developers] How to add log in android C code?

2009-12-22 Thread sheng wang
Hi All, I want to debug android source code in C (WebView part) . Can I debug the android source code in C with the help of ADB? Or how can I use log in C code just the Log.v in Java? Please help me out. Thanks in advance, Shawn. -- You received this message because you are subscribed to

Re: [android-developers] Write a file to sdcard...

2009-12-16 Thread sheng wang
confirm one more thing: The sdcard image has been setup when you create the AVD 2009/12/15 Mark Wyszomierski mar...@gmail.com Hi, I'm trying to create a file on the sd card. Using this: OutputStream out = new FileOutputStream(/sdcard/tmp.jpg); but that throws a FileNotFoundException.

[android-developers] How to send a motionEvent through a transparent activity

2009-12-14 Thread sheng wang
Hi All, I made an activity with the transparent theme. When it starts up, the background home screen or other activity can be seen. what I'm going to do is let my transparent activity handle the touch event if there is something drawn by the transparent activity, and let the other application

[android-developers] Re: How to send a motionEvent through a transparent activity

2009-12-10 Thread sheng wang
Not sure if I made this clear. In short, how to let the transparent activtiy process some touch event and let the screen behind it deal the rest touch event. 2009/12/9 Shawn Field banxia...@gmail.com Hi All, I made an activity with the transparent theme. When it starts up, the background

[android-developers] without Absolutelayout, how to put button on arbitary coordinates

2009-12-10 Thread sheng wang
Hi, Since the absolutelayout is deprecated, how to put a widget (suck as a button) on arbitary (X,Y) thx -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To