Re: [android-developers] Re: Excute two activity at the same time
Thank you, Bob. I get very much cause of your help. I would research the windows manager service and if I have any result I would let you know. Regards 2010/3/22 Bob Kerns r...@acm.org If you're serious about doing this -- for example, you have some new device with a larger screen, and you're looking to compete with the iPad, then what you want is to ask in the android-porting group instead of here. This group is about things using the SDK, and you can't do it in the SDK. I think you're going to need two window managers, and a way of arbitrating and routing events (including from any physical buttons) to the appropriate one. And you're going to need scheduler changes. Right now, the foreground activity gets priority. You probably want to maintain a similar policy, but the definition of which activity gets priority gets a bit more complicated. This may not involve actual changes to the scheduler, but rather with how it gets informed about which activity to give priority to -- but to get a quick response to a tap on the other window, you may need to take further measures. If you sometimes use full screen, sometimes half, there's also issues about communicating to apps what their size is, managing the resources, deciding when to be full and when to be half, etc. I'd strongly suggest coordinating with the Android team on the question. It's an architectural issue and an architectural change, and you'd like to take it in a direction that is compatible with other devices and future releases. You don't want to be stuck down the road with a one-off version of the OS that can't run apps from the app store, etc. I do think it's something that needs to be done at some point, to keep up with hardware trends. On Mar 21, 11:28 pm, Michael Wu michaelwu1984...@gmail.com wrote: Hi, all. I have a question about application excution. Generally, only one activity could be excuted at the same time. Even though there are still other applications which is excuted in the background, there is still only one application could be showed on the screen display. -- | | | AP1 |AP2 is excuted in background. | | -- My question is, Is it possible to achieve double activity showing on the screen display by modifying the android framework? As the following picture, two applications are excuted and showed on the screen display at the same time. --- | AP1 | | | | AP2 | --- I have some ideas: 1. Change the scale of application into smaller size. 2. Modify the framework to activate another view activity. However, I am not sure how much effort should I pay on the second step. Does anyone have some ideas to share with me? Regards Michael -- 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 To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Michael Wu Quanta Computer Moblie Internet Device 2 BU Kueishan, Taoyuan, Taiwan michaelwu1984...@gmail.com -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] Excute two activity at the same time
Hi, all. I have a question about application excution. Generally, only one activity could be excuted at the same time. Even though there are still other applications which is excuted in the background, there is still only one application could be showed on the screen display. -- | | | AP1 |AP2 is excuted in background. | | -- My question is, Is it possible to achieve double activity showing on the screen display by modifying the android framework? As the following picture, two applications are excuted and showed on the screen display at the same time. --- | AP1 | | | | AP2 | --- I have some ideas: 1. Change the scale of application into smaller size. 2. Modify the framework to activate another view activity. However, I am not sure how much effort should I pay on the second step. Does anyone have some ideas to share with me? Regards Michael -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Excute two activity at the same time
Thanks, aa. I am not sure your mean. Do you mean run back the background service? As far as I know, the run back function would call the background service to the surface, and the surface application would change to background service. Could it show two applications on the screen display at the same time? 2010/3/22 a a harvey.a...@gmail.com use service which run back 2010/3/22 Michael Wu michaelwu1984...@gmail.com: Hi, all. I have a question about application excution. Generally, only one activity could be excuted at the same time. Even though there are still other applications which is excuted in the background, there is still only one application could be showed on the screen display. -- | | | AP1 |AP2 is excuted in background. | | -- My question is, Is it possible to achieve double activity showing on the screen display by modifying the android framework? As the following picture, two applications are excuted and showed on the screen display at the same time. --- | AP1 | | | | AP2 | --- I have some ideas: 1. Change the scale of application into smaller size. 2. Modify the framework to activate another view activity. However, I am not sure how much effort should I pay on the second step. Does anyone have some ideas to share with me? Regards Michael -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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 To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Michael Wu Quanta Computer Moblie Internet Device 2 BU Kueishan, Taoyuan, Taiwan michaelwu1984...@gmail.com -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [android-developers] Excute two activity at the same time
Hi Sven, you are right. I want to display two activities from different apps on the screen simultaneously. I know it can't run more than one activity at the same time, but I want to achieve this. I have some ideas: 1. Change the scale of application into smaller size. 2. Modify the framework to activate another activity from another application. However, I am not sure how much effort should I pay on the second step. Would you have some ideas to share with me? Regards Michael 2010/3/22 Sven Jacobs sven.jac...@web.de Hi Michael, you certainly can't modify the framework... I mean, of course you can check out the sources of the Android framework and modify them but then your application would only run on devices where *your* version of the framework is installed. I don't think you want that. What do you want to archive? Do you want to display two activities from different apps on the screen simultaneously? Or are the activities part of your application? If latter is the case, why don't you adjust your app so that it displays all the data you want on one activity? Regards, Sven 2010/3/22 a a harvey.a...@gmail.com Dear Michael Wu It can't run more then one activity at the same time . 2010/3/22 Michael Wu michaelwu1984...@gmail.com: Thanks, aa. I am not sure your mean. Do you mean run back the background service? As far as I know, the run back function would call the background service to the surface, and the surface application would change to background service. Could it show two applications on the screen display at the same time? 2010/3/22 a a harvey.a...@gmail.com use service which run back 2010/3/22 Michael Wu michaelwu1984...@gmail.com: Hi, all. I have a question about application excution. Generally, only one activity could be excuted at the same time. Even though there are still other applications which is excuted in the background, there is still only one application could be showed on the screen display. -- | | | AP1 |AP2 is excuted in background. | | -- My question is, Is it possible to achieve double activity showing on the screen display by modifying the android framework? As the following picture, two applications are excuted and showed on the screen display at the same time. --- | AP1 | | | | AP2 | --- I have some ideas: 1. Change the scale of application into smaller size. 2. Modify the framework to activate another view activity. However, I am not sure how much effort should I pay on the second step. Does anyone have some ideas to share with me? Regards Michael -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Michael Wu Quanta Computer Moblie Internet Device 2 BU Kueishan, Taoyuan, Taiwan michaelwu1984...@gmail.com -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- 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
Re: [android-developers] Excute two activity at the same time
I got it, thank you, Mark. 2010/3/22 Mark Murphy mmur...@commonsware.com Michael Wu wrote: Hi Sven, you are right. I want to display two activities from different apps on the screen simultaneously. I know it can't run more than one activity at the same time, but I want to achieve this. It is still not possible, particularly from the SDK. I have some ideas: 1. Change the scale of application into smaller size. 2. Modify the framework to activate another activity from another application. However, I am not sure how much effort should I pay on the second step. Would you have some ideas to share with me? If you want to modify the platform, you should be working with the [android-platform] Google Group (if your changes will be contributions back to the open source project) or the [android-porting] Google Group (if your changes will be kept private). This list is for the Android SDK. However, before you post in one of those groups, read the posts that are on those lists. You will find that your question has come up many times before. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 2.0 Programming Books: http://commonsware.com/books -- 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 To unsubscribe from this group, send email to android-developers+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Michael Wu Quanta Computer Moblie Internet Device 2 BU Kueishan, Taoyuan, Taiwan michaelwu1984...@gmail.com -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[android-developers] How to activate the setting option Orientation?
Hi. Generally, there should be an option named Orientation which is in Setting - Sound and Display - Display setting - Orientation However, I can't not see the option Orientation in the Android. How could I activate this option? Cheers, Michael -- 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] How to activate the setting option Orientation?
Thanks, Dianne. How should I activate the android:screenOrientation attribute? 2010/3/10 Dianne Hackborn hack...@android.com You mean programmatically modifying the user's setting? Generally you shouldn't. If you want to change how your applications handles orientation, you can use the android:screenOrientation attribute on your activities. On Tue, Mar 9, 2010 at 6:16 PM, Michael Wu michaelwu1984...@gmail.comwrote: Hi. Generally, there should be an option named Orientation which is in Setting - Sound and Display - Display setting - Orientation However, I can't not see the option Orientation in the Android. How could I activate this option? Cheers, Michael -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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 -- Michael Wu Quanta Computer Moblie Internet Device 2 BU Kueishan, Taoyuan, Taiwan michaelwu1984...@gmail.com -- 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] How to activate the setting option Orientation?
In android/packages/apps/Settings/src/com/android/settings/SoundAndDisplaySettings.java: The source code : http://pastebin.com/a7Uqwg8q I try to activate the Orientation by unmarking ACCELEROMETER related variable. After rebuilding, however, it shows com.android.settings terminated when I click the Orientation which is in Setting - Sound and Display - Display setting - Orientation Now I am trying to find out android:screenOrientation property. 2010/3/10 Michael Wu michaelwu1984...@gmail.com Thanks, Dianne. How should I activate the android:screenOrientation attribute? 2010/3/10 Dianne Hackborn hack...@android.com You mean programmatically modifying the user's setting? Generally you shouldn't. If you want to change how your applications handles orientation, you can use the android:screenOrientation attribute on your activities. On Tue, Mar 9, 2010 at 6:16 PM, Michael Wu michaelwu1984...@gmail.comwrote: Hi. Generally, there should be an option named Orientation which is in Setting - Sound and Display - Display setting - Orientation However, I can't not see the option Orientation in the Android. How could I activate this option? Cheers, Michael -- 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 -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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 -- Michael Wu Quanta Computer Moblie Internet Device 2 BU Kueishan, Taoyuan, Taiwan michaelwu1984...@gmail.com -- Michael Wu Quanta Computer Moblie Internet Device 2 BU Kueishan, Taoyuan, Taiwan michaelwu1984...@gmail.com -- 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] How to add battery service?
Hello, everybody. I have a problem on service install, please give me some hint. I want to install the battery detection service on the android which the version is 1.6, how should I do? The battery driver has already completed and work correctly, the only problem is how to report the voltage value to the android. I can not see the battery detection bar on the android desktop, and I do not know how to install the service. After trying to find out the solution on google hardly I still fail to get any useful answer, would you tell me how to install the battery detection service, please? Thank you very very much!! Best Regards -- Michael Wu michaelwu1984...@gmail.com -- 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] Help me!! The fb0 no space left on device..
When I enter the android kernel console, I type : cat 3.bmp dev/graphics/fb0 error!! write: No space left on device After this, there is nothing showed on my lcd. Could someone tell me what does this error message mean and how to solve please?? My all debug message : http://pastebin.com/m510035c5 Please help me !! -- Michael -- 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] Help me!! The fb0 no space left on device..
You are right !!! I want to try if my lcd driver works or not, because there is only black screen on my lcd. To avoid the bitmap problem and image size problem, I catch the /dev/urandom to fb0. However, I still get the error message : # cat /dev/urandom /dev/graphics/fb0 write: No space left on device I don't know why does it has no space left on fb0, how should I increase the space of fb0?? The following link is the log record : http://pastebin.com/m6aa4be02 Would you give me some suggest please? Thank you!! Best Regards -- Michael 2010/1/12 Alessandro Pellizzari a...@amiran.it Il giorno mar, 12/01/2010 alle 04.25 -0800, Michael Wu ha scritto: cat 3.bmp dev/graphics/fb0 error!! write: No space left on device I don't know what you are trying to do, but it should be cat 3.bmp /dev/... (with a slash at the beginning). The correct path could change based on your framebuffer driver in the kernel. Bye. -- Alessandro Pellizzari -- 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 -- Michael Wu Quanta Computer Moblie Internet Device 2 BU Kueishan, Taoyuan, Taiwan michaelwu1984...@gmail.com -- 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] Help me!! The fb0 no space left on device..
Sorry, The following link is my log record :http://pastebin.com/m9d9983c The last post is wrong. 2010/1/13 Michael Wu michaelwu1984...@gmail.com You are right !!! I want to try if my lcd driver works or not, because there is only black screen on my lcd. To avoid the bitmap problem and image size problem, I catch the /dev/urandom to fb0. However, I still get the error message : # cat /dev/urandom /dev/graphics/fb0 write: No space left on device I don't know why does it has no space left on fb0, how should I increase the space of fb0?? The following link is the log record : http://pastebin.com/m6aa4be02 Would you give me some suggest please? Thank you!! Best Regards -- Michael 2010/1/12 Alessandro Pellizzari a...@amiran.it Il giorno mar, 12/01/2010 alle 04.25 -0800, Michael Wu ha scritto: cat 3.bmp dev/graphics/fb0 error!! write: No space left on device I don't know what you are trying to do, but it should be cat 3.bmp /dev/... (with a slash at the beginning). The correct path could change based on your framebuffer driver in the kernel. Bye. -- Alessandro Pellizzari -- 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 -- Michael Wu Quanta Computer Moblie Internet Device 2 BU Kueishan, Taoyuan, Taiwan michaelwu1984...@gmail.com -- Michael Wu Quanta Computer Moblie Internet Device 2 BU Kueishan, Taoyuan, Taiwan michaelwu1984...@gmail.com -- 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] The Android display on beagleboard doesn't show
Hello, everybody. I installed the android and linux kernel which Beagle Board released in my OMAP3530 device, I have modified the omap3_android_beagle_defconfig to enter the kernel on my device, The clock is correct, and so do the xres and yres. omapfb: Pixclock 72000 kHz hfreq 43.3 kHz vfreq 58.1 Hz I/EGLDisplaySurface( 704): using (fd=21) I/EGLDisplaySurface( 704): id = omapfb I/EGLDisplaySurface( 704): xres = 1280 px I/EGLDisplaySurface( 704): yres = 720 px I/EGLDisplaySurface( 704): xres_virtual = 1280 px I/EGLDisplaySurface( 704): yres_virtual = 1440 px I/EGLDisplaySurface( 704): bpp = 16 I/EGLDisplaySurface( 704): r= 11:5 I/EGLDisplaySurface( 704): g= 5:6 I/EGLDisplaySurface( 704): b= 0:5 I/EGLDisplaySurface( 704): width= 51 mm (637.490173 dpi) I/EGLDisplaySurface( 704): height = 38 mm (481.263153 dpi) I/EGLDisplaySurface( 704): refresh rate = 60.03 Hz It is scuessful to enter the kernel. However, the display didn't show anything. The following link is my debug message: http://pastebin.com/m6e0e3db9 I use oscilloscope to measure the signal, the clock is 72000 khz, but there is no any data sent!!! Why the CPU doesn't send any vedio data??? Is it possible that the android system error? Such as it didn't enter the UI?? Please notify me if you have any advise, and I would appreciate you very much !!! Best Regards -- Michael -- 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