My apologies - seems some text got clipped - i meant to write "...and * FLAG_ACTIVITY_NEW_TASK* is nowhere in any of my code or in any of the code I borrowed from the tutorials."
- Josh On Tuesday, June 12, 2012 3:17:35 PM UTC-4, kadmos wrote: > > Hi Dianne, > > Thanks for the response. I have verified that * > android:launchMode="singleInstance"* is nowhere in my manifest and * > FLAG_ACTIVITY_NEW_TASK.* > > Basically, our app has a Store activity, which acts as the point of sale. > The *onCreate()* method of this activity starts the BillingService like > so: > startService(new Intent(myContext, BillingService.class)); > > The BillingService *onServiceConnected()* method instantiates * > IMarketBillingService*: > > mService = IMarketBillingService.Stub.asInterface(service); > > BillingHelper.instantiateHelper(getBaseContext(), mService); > > The BillingHelper.class defines the *requestPurchase()* method called by > the Store activity upon a button click: > protected static void requestPurchase(Context activityContext, > String itemId){ > > if (amIDead()) { > > return; > > } > > > > Bundle request = makeRequestBundle("REQUEST_PURCHASE"); > > request.putString("ITEM_ID", itemId); > > try { > > Bundle response = mService > .sendBillingRequest(request); > > Integer responseCodeIndex = (Integer) response.get( > "RESPONSE_CODE"); > > > > PendingIntent pendingIntent = (PendingIntent) > response.get("PURCHASE_INTENT"); > > Long requestIndentifier = (Long) response.get( > "REQUEST_ID"); > > > > C.ResponseCode responseCode = > C.ResponseCode.valueOf(responseCodeIndex); > > > > startBuyPageActivity(pendingIntent, new Intent(), > activityContext); > > > > > > } catch (RemoteException e) { > > //Log.e(TAG, "Failed, internet error maybe", e); > > //Log.e(TAG, "Billing supported: > "+isBillingSupported()); > > } > > } > > > I have been told that a similar app to ours does not launch Google Play as > a separate process, though ours does. Seems relevant but I have not enough > knowledge to determine how. > > - Josh > > > > > > On Tuesday, June 12, 2012 12:15:35 PM UTC-4, Dianne Hackborn wrote: >> >> Obvious this is not normal, since it works well in other applications. >> You have not supplied *any* information about what you are doing that may >> be of interest, so nobody can do anything but make wild guesses about what >> you are doing. So here are some wild guesses: >> >> - Don't launch it with FLAG_ACTIVITY_NEW_TASK. >> - Don't use android:launchMode="singleInstance" in your manifest. >> >> On Tue, Jun 12, 2012 at 7:36 AM, kadmos <kadmo...@gmail.com> wrote: >> >>> Anyone know what could be done about this? >>> >>> Basically if the Play Store app is still running in the background - >>> which is going to be the case for most users once they first download and >>> install the app - after interaction with any in-app purchase-related dialog >>> box the Play Store is brought back into focus and users must make there way >>> back to the app to complete tasks. how can this be prevented? >>> >>> submitted a bug report here: >>> http://code.google.com/p/android/issues/detail?id=32878 >>> >>> Thanks >>> >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Android Developers" group. >>> To post to this group, send email to android-developers@googlegroups.com >>> To unsubscribe from this group, send email to >>> android-developers+unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >> >> >> >> >> -- >> Dianne Hackborn >> Android framework engineer >> hack...@android.com >> >> Note: please don't send private questions to me, as I don't have time to >> provide private support, and so won't reply to such e-mails. All such >> questions should be posted on public forums, where I and others can see and >> answer them. >> >> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en