8

I have a free application that has a number of paid-for upgrade applications you can buy for it. The base game is free and remains the application that the user always launches, it detects the presence of the other applications and unlocks various upgrade features as appropriate.

I wanted to use the new licensing service to detect whether the bought applications were licensed, and pass the name of the package to the licensing service to verify if it is authorised (and blindly following the sample I stupidly assumed that passing in the package name to the obfuscator meant that the package name was passed to the licensing server - oops). However I've just realised how dumb that was, and in any case I have hit a brick wall: "If you already published your application as free, you won't be able to upload an updated version that includes licensing (that is, an application that uses the same package name and that includes the licensing permission)".

So, a two-part question: is there any plan to implement what I'm looking for: to check from inside a free application whether any of my other paid published applications are licensed?

If not, then what would be the best way of achieving what I'm seeking? I'm thinking of maybe sending an intent to each of the installed upgrades, getting them to perform the licensing check, and then getting the upgrades to pass the response back into my base application. Sounds a bit messy - any better ideas?

Thanks loads!

4

1 に答える 1

7

そこで、2 部構成の質問: 私が探しているものを実装する計画はありますか? 無料のアプリケーション内から、他の有料の公開アプリケーションがライセンスされているかどうかを確認することです。

これを行う方法はありません。

そうでない場合、私が求めているものを達成するための最良の方法は何でしょうか? インストールされた各アップグレードにインテントを送信し、ライセンス チェックを実行してから、アップグレードが応答をベース アプリケーションに返すようにすることを考えています。少し乱雑に聞こえます - 何か良いアイデアはありますか?

クライアント間で通信する他の方法がない場合 (たとえば、ライセンス ステータスを書き込むことができる共有ストレージ)、これが最も合理的な方法のように思えます。

アプリだけがライセンス ステータスをアプリにブロードキャストできるように、これらのメソッドをカスタム アクセス許可で保護することをお勧めします。

于 2010-08-02T07:24:16.767 に答える