android - getPurchase returns the first subscription not the last one -


i using subscription model in android. when query inventory,the listener follows

iabhelper.queryinventoryfinishedlistener mgotinventorylistener = new iabhelper.queryinventoryfinishedlistener() {         public void onqueryinventoryfinished(iabresult result, inventory inventory) {             log.d(tag, "query inventory finished.");             if (result.isfailure()) {                 mact.alert("failed query inventory: " + result, true);                 return;             }              log.d(tag, "query inventory successful.");              // have premium upgrade?             purchase premiumpurchase = inventory.getpurchase(sku_premium); 

here getpurchase returns initial date of subscription, namely gpa.232423423423423.0

how can purchase information of latest subscription (ie gpa.232423423423423.7)

i need know latest subscription date not first

thank you


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -