[android-developers] Re: relation between ViewRoot and View
Some comments in ViewRoot.java ViewRoot: The top of a view hierarchy, implementing the needed protocol between View and the WindowManager. BRs Guobin On Feb 20, 4:53 pm, sheng wang banxia...@gmail.com wrote: 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 the surfaceflinger will finally blend all surfaces together, but I found it's definitely wrong. How view and viewroot cooperate is quite ambiguous to me. Any information will be appreciated! -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Window System Bug: phonewin...@decorview gets wrong Window size, width/height
1. Popup Dialog with ListView 2. Slide open, close, repeat, and do fast 3. Sometimes in Slide close state, the dialog is show in 320X320 window instead of the right 320X480 Thanks! Guobin -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Capturing HOME intent with receiver programmatically
Home Key events are processed by PhoneWindowManager, that's to say consumed by Android system. That's why your activity can not see it. BRs Guobin On Feb 9, 11:25 pm, Alex Feldman alexfeld...@gmail.com wrote: I am trying to capture my activity to handle HOME button press with a receiver programmatically, but the event is not firing. I can, however, successfully register and capture this intent filter if I declare it in a manifest.xml activity section. Here's the code for the receiver: /// BroadcastReceiver br; br = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { return; // I put a breakpoint here to see if this gets called } }; IntentFilter intf = new IntentFilter(); intf.addAction(Intent.ACTION_MAIN); intf.addCategory(Intent.CATEGORY_HOME); intf.addCategory(Intent.CATEGORY_DEFAULT); registerReceiver(br, intf); /// Does anyone know why this doesn't capture the home button click? By the way, I tried working around this by creating another activity and specifying its intent filter in the manifest. I set the activity enabled=false in the manifest but I couldn't figure out how to enable that activity at run time. Bottom line, I only want to register the home button intent filter for my application only when my application is running, and I can't figure out how to do that. -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to send motion Event down to another activity
Using Activity Manager, operating on the HistoryRecord list Guobin 2010/2/9 sheng wang banxia...@gmail.com Hi GuoBin, 1. My translucent activity will be the root acitivity, and very possible the home screen will be just behind, but what is the programmable way that can get a activity variable equals to the Home Launcher ? 2010/2/8 Guobin zzg...@gmail.com 1. Possibly there are ways to find the activity behind the current one. Precondition: All activity are fullscreen. If your activity is the root activity, then Home is in behind. Otherwise find the previous activity in the task stack. 1. My translucent activity will be the root acitivity, and very possible the home screen will be just behind, but what is the programmable way that can get a activity variable equals to the Home Launcher in my activity? 2. You could send the touch event to other activity, but it's useless I think. The Android Window Mananger can only handle UI events for one view hirarchy at one time. 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: 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 is behind him? so he might communicate with the one behind it? Anyway, think you for taking your time to think the question. Shawn. 2010/2/8 Guobin zzg...@gmail.com 1. Whether the event can be send down to any thing behind the current activity. No, you can't. On the Android platform, you define an Activity's UI using a hierarchy of View and ViewGroup nodes. Home your activity are different activity, they have their own view hierarchy. Key events are always delivered to the View currently in focus. They are dispatched starting from the top of the View hierarchy, and then down, until they reach the appropriate destination. But not the view of other activity. http://developer.android.com/guide/topics/ui/ui-events.html Guobin -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Using USB connection for data transfer
Nand, 1. Insert SD Card to your phone 2. Connect your phone to PC 3. Pull down Notification Curtain, pop up USB connection UI 4. Mount SD Card 5. You can transfer data between Phone PC now. BRs Guobin On Feb 9, 12:18 pm, Nand nandithab...@gmail.com wrote: Hi, I'm new to Android. Is it possible to transfer data between Android phone and Some other device(say PC) via USB connection? If yes, then is there any settings I need to do and where can i get some example codes? Thanks n Regards, Nand -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: About boot.img
kR105, boot.img = boot header + Linux kernel + ramdisk/rootfs system.img = Android user space applications and libraries Guobin On Feb 9, 12:05 am, kR105 kr105.ru...@gmail.com wrote: Hello! I'm trying to guess what are the files that contain the low level code of the boot.img/recovery.img images. I tried modifying the .S files in the sub folders of /bootable/bootloader/legacy/, but after a re- compilation the boot image are exactly the same as before my edits to the file(s) (Checked with shasum before after the re-compilation). Also, I'm trying to avoid a make clean, because a full compilation takes me about 3.5 hours :( Thank you very much! -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: About boot.img
No idea. I find only init.S, maybe it's the initialize before bootloader starts Guobin On Feb 9, 1:53 pm, kR105 RuleZ kr105.ru...@gmail.com wrote: Oh *thank you*!.. I was confused with the boot word. BTW, do you know for what are used the files *.S in the bootable folder? -- Regards, Carlos 2010/2/9 Guobin zzg...@gmail.com kR105, boot.img = boot header + Linux kernel + ramdisk/rootfs system.img = Android user space applications and libraries Guobin On Feb 9, 12:05 am, kR105 kr105.ru...@gmail.com wrote: Hello! I'm trying to guess what are the files that contain the low level code of the boot.img/recovery.img images. I tried modifying the .S files in the sub folders of /bootable/bootloader/legacy/, but after a re- compilation the boot image are exactly the same as before my edits to the file(s) (Checked with shasum before after the re-compilation). Also, I'm trying to avoid a make clean, because a full compilation takes me about 3.5 hours :( Thank you very much! -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to send motion Event down to another activity
1. Whether the event can be send down to any thing behind the current activity. No, you can't. On the Android platform, you define an Activity's UI using a hierarchy of View and ViewGroup nodes. Home your activity are different activity, they have their own view hierarchy. Key events are always delivered to the View currently in focus. They are dispatched starting from the top of the View hierarchy, and then down, until they reach the appropriate destination. But not the view of other activity. http://developer.android.com/guide/topics/ui/ui-events.html Guobin -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to send motion Event down to another activity
1. Possibly there are ways to find the activity behind the current one. Precondition: All activity are fullscreen. If your activity is the root activity, then Home is in behind. Otherwise find the previous activity in the task stack. 2. You could send the touch event to other activity, but it's useless I think. The Android Window Mananger can only handle UI events for one view hirarchy at one time. May you send the event to the other activity, but no one can handle it. BRs Guobin On Feb 8, 12:50 pm, sheng wang banxia...@gmail.com wrote: 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 is behind him? so he might communicate with the one behind it? Anyway, think you for taking your time to think the question. Shawn. 2010/2/8 Guobin zzg...@gmail.com 1. Whether the event can be send down to any thing behind the current activity. No, you can't. On the Android platform, you define an Activity's UI using a hierarchy of View and ViewGroup nodes. Home your activity are different activity, they have their own view hierarchy. Key events are always delivered to the View currently in focus. They are dispatched starting from the top of the View hierarchy, and then down, until they reach the appropriate destination. But not the view of other activity. http://developer.android.com/guide/topics/ui/ui-events.html Guobin -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Unable to figure out what WindowManagerservice and PhoneWindowManager difference
Possibly separate Policy from Mechanism WindowManagerService extends IWindowManager.Stub: System private interface to the window manager. WindowManagerPolicy interface: supplies all UI-specific behavior of the window manager. An instance of it is created by the window manager when it starts up, and allows customization of window layering, special window types, key dispatching, and layout. On Jan 5, 9:29 pm, Kunal sinhakunal...@gmail.com wrote: Hi, The PhoneWindowManager implements WindowManagerPolicy while the WindowManagerService also implements the WindowState of the WindowManagerPolicy Can somebody provide me with the inputs of how PhoneWindowManager and WindowManagerService be differentiated? Thanks, Kunal -- 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 unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en