Only one activity is in the foreground at a time. If you want your current foreground activity to be doing multiple things, you will need to have it controlling those things.
On Mon, Feb 13, 2012 at 10:55 AM, Shabnaz <[email protected]> wrote: > hi friends, > > I have created an activity to get the accelerometer values of > the mobile phone ,and another activity that calculates the speed of > the device. > > now I have to make both activities to run simultaneously if I > click a start button from main activity. > > to make it run simultaneously I can create threads, but I > continuously need both the speed and acceleration values which > I'am gonna use in manipulating another function in main > activity. > > > How can I do this???? > > > please someone help me.. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

