how to makes two activities run at the same time?

by john » Fri, 07 Jan 2011 02:26:53 GMT


Sponsored Links
 l want to simulate user operation,for example:
l was listening music, and  l want to take picture,
that's two activities, how should l simulate this operations?

for start one activity, it is:
Intent intent = new Intent(mContext,MultiActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mContext.startActivity(intent);

but how to start 2 activities?
both of them run in one thread
or in two threads?how do the activity lifecycle
switch?


3ks

-- 



Re: how to makes two activities run at the same time?

by Kumar Bibek » Fri, 07 Jan 2011 02:45:48 GMT


 Same time? Well, "Run" is perhaps the wrong word. I guess, you mean to say,
that the 2 activities should be active, i.e, not in pause or stop state at
the same time?

Well, if you go through the docs, this is not possible yet. Maybe in
Honeycomb, but till gingerbead you cannot  do this.

Sorry if I misunderstood your question.

Kumar Bibek
 http://techdroid.kbeanie.com 
 http://www.kbeanie.com 







-- 


Sponsored Links


Re: how to makes two activities run at the same time?

by TreKing » Fri, 07 Jan 2011 02:50:48 GMT


 



One Service to listen to music, one activity to take a picture.



What the hell does that even mean?

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

-- 



Other Threads

1. How to implement the slide effect like desktop

For example, I have an application containing 3 interfaces(each one
occupys a screen), I want to switch different interfaces by touching
on the screen. Just like the desktop has 3 parts, we can move from one
to anohter by touching.

Can anyone tell me how to implement the kind of effect or where is the
code of Android desktop slide effect.

Any help will be highly appriciated!


--~--~---------~--~----~------------~-------~--~----~

2. How much RAM does G1 have?

HTC hardware spec said there are 192MB RAM.
But there is only 101MB available for kernel.

What are the rest 91MB used for?
Or did I miss something?

Thanks,
Tom

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. ADC 2 - June: Full Terms and Conditions made available ?

4. View.post(Runnable r) within threads

5. Installing USB drivers on Vista 64 bit

6. GET_TASK permission for a Class used as a library fuction

7. How to drawBitmap() using the alpha from another bitmap?