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);

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



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 


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 <> ; - Chicago
transit tracking app for Android-powered devices


Other Threads

1. ERROR:- no such table: TABLE: , while compiling: SELECT _id, network, url FROM TABLE

Where is the code for the select statement?  Is it the fetchAll() method?

There are only 10 types of people in the world...
Those who know binary and those who don't.


2. Creating a populated sqlite database


I am trying to create a pre-populated sqlite database to be shipped with my
application. The database is to contain three columns.

| ID | Name | URL |

and possibly several hundred rows. Is there a way I can create this in /res
or java code smartly ? Forgive me I am fairly new to Java and have little
experience with SQL.

Thanks very much in advance for you help



3. stubborn error wont go away

4. error: Error: No resource found that matches the given name ()

5. how fo I Terminate TranslateAnimation earlier and immediately start a FrameAnimation at the position where the TranslateAnimation has been terminated

6. Image viewers on android phones not always the best experience?

7. make application should support all versions and screens