accessing contents of Dialog in Android JUnit test

Put your problem here if it does not fit any of the other categories.

accessing contents of Dialog in Android JUnit test

Postby juszczec » Tue Apr 19, 2011 1:52 pm

Hi folks

I'm trying to set up a JUnit test for an already existing project. I'm working in Eclipse on Linux with the Android SDK and plugin.

My Activity creates a Dialog and places widgets in there. I have figured out how to get ahold of the Dialog by marking its ref var public and accessing it via the Activity var in the test.

The problem is, I place a button and a couple of text fields in the Dialog. How do I access those?

Mark
juszczec
Junior Developer
Junior Developer
 
Posts: 10
Joined: Wed Aug 25, 2010 3:27 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot], MSNbot Media and 25 guests