InstrumentationTestCase and startActivityForResult

by dev » Thu, 06 Aug 2009 23:18:03 GMT

Sponsored Links

Can a InstrumenatationTestCase class call startActivityForResult ? and
have onActivityResult for getting its result.

I tried the same in an Activity , that works.

But from an Instrumentation class I can call only startActivity

I need to get some result from Activity to instrumentation.
How do I go about it?

Any input would be of great help.



Other Threads

1. HTTPS GET/POST Methods don't work with HttpClient(4) - Bug or my fault?

> Could someone tell me what I have to change in here?

A Google search for:

android twitter client

turned up:

In there, the author is not using HTTP Authentication nor an https:// URL.

I've never written to Twitter API, so I have no way of validating whether
that code works or not, but it's at least another source of information
for you.

Mark Murphy (a Commons Guy)
_The Busy Coder's Guide to Android Development_ -- Available Now!


2. Animation between Activites


I've an application composed of four activity containing each one only
one view and my goal is to put some transition between each couple of
activity. For calling an activity, I use a simple intent code :

Intent i = new Intent();
i.setClass(FirstActivity.current, SecondActivity.class);

I've seen this code :
the resulte is nice, but it's a bit complicated and it didn't work in
my case. Does anyone as an idea ?

Have a nice day !


3. Why Java?

4. Lots of Errors When Starting Eclipse!

5. simulating a voice call

6. Basic HTTP authentication with M5 SDK - What is the right way to do it?

7. Basic HTTP authentication with M5 SDK - What is the right way to do it?