I have an app with in-app billing subscription (IAP v2).  I wrote 
an ActivityInstrumentationTestCase2 class trying to verify that when the 
user is trying to access a certain functionality he will be taken to the 
Google Wallet payment page and upon payment  he can then proceed. However I 
couldn't get the test code to click on the "Accept and buy" button in the 
In-App billing purchasing screen. The main difficulty seems to be I can't 
get hold of the root activity or view of the In app billing Buy dialog, 
which is an Android library class or activity.  I tried to use an 
ActivityMonitor to catch 
"com.google.android.finsky.activities.IabActivity", but it's never 
triggered.

I am using the special reserved IAP item "android.test.purchased" during 
testing.

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

Reply via email to