サンプルのアプリをGoogle Playで作成しとく
In-APP課金は、Google Playとの連携が必要で、Goole Playに登録してあるアプリでないと使えません。で、Google PlayでこのInAppのサンプルを動かすためだけのアプリを作成しておきます。Public Keyの取得
デベロッパー単位じゃなくて、アプリ単位でpublic keyが割り振られるみたいです。Google Play Developersで作成したアプリを選択して、メニューの「サービス&APIs」を選択。「In-APPライセンス」とかで表示されてる値がPublic Keyです。後で、コード内に書いてやる必要があります。Google Play Billing Libraryを入手

Android SDKマネージャーからGoogle Play Billing Libraryを入手します。
サンプルプロジェクトをインポート
ライブラリーをインストールすると、下記の場所にサンプルも追加されます。[SDKフォルダー]/extras/google/play_billing/samples/TrivalDrive
Eclipseでインポートします。
プロジェクト名を変更する
意味が解らなかったのがここです。サンプルファイルをインポートしたまんまだとパッケージ名は、com.example.android.trivialdrivesampleこんな感じになってます。で、com.exampleの部分を他の何かに変えてやる必要があります。このパッケージ名は何でもいいです。このサンプルのアプリをベースに、アプリを開発するなら何か適切な名前が必要ですが、単純にテストするだけなら、何でもいいみたい。ただ、Google PlayにAPKをアップロードする必要があるので、パッケージ名はユニークでないといけません。まぁ、APKをアップロードして、既に同一のパッケージ名がある場合は、エラーがでるので、そのとき変えればいいのかと。ちなみに、com.billingtestは、通りませんでした。
1. AndroidManifest.xmlのpackage=""の部分を変える。
2. src内のフォルダー名にもエラーがでるので、1で指定したパッケージ名に変えてやる。
パッケージ名の変更なんですけど、com.example.android.trivialdrivesampleとなっているのを、net.billing.test.android.trivialdrivesampleとかに変えてやればいいのかと・・・。
Public Keyを書く
MainActivity.javaの138行目あたりにあるString base64EncodedPublicKey = "CONSTRUCT_YOUR_KEY_AND_PLACE_IT_HERE";CONSTRUCT_YOUR_KEY_AND_PLACE_IT_HEREの部分に、前に入手したpublic keyを書きます。

コメント
コメント一覧 (13)
[url=http://www.zapperbasics.com]www.zapperbasics.com[/url]
<a href="http://www.zapperbasics.com" title="www.zapperbasics.com">www.zapperbasics.com</a>
moncler outlet http://www.viaggiando-sus.it/ml.cfm
nike air max 95 http://www.castlekennedygardens.co.uk/assets/docs/press.php
up! I'll go ahead and bookmark your website to come bzck in tҺe future.
All the best
A money step forward mау not bе essentially the most
applicable technique tο handle fee օf researchexpenses, paгticularly Chapel bank.
Ρlease transmit ƴοսr listing supervisor,Connie Padgett , οr Tomm Heath .
Аnd yoou ǥet a single money оut of your bank card on tɦе idenyical !
rеlated Searches. assets. UЅ Mint plain ...
Loan payment info: еachone loans choomp аn agreed uρоn ɗue ɗate aѕ covered ԝithin tҺе buyer loazn settlement.
ӏf fee ѕhouldn't Ƅе ߋbtained Ƅү means of thhe date,
latfe fees оr other ffees maу apply аs momеnt surrounded Ьy eаch buyer loan settlement.
еѵеry collectioons efforts onn overdue accounts агe carried
оut іn knowledgeable, truthful ɑnd lawful method friendship Ƅу
means ߋf applicable ɑndcentral legal guidelines.
destroy America ɗoes nnot report tօ credit companies.
tɦе ability tߋ resume ɑ loan varies ƅʏ waʏ of relying uƿߋn nation regulations аnd company policy.
Loans ɑren't renewed routinely; neѵertheless, іf loan new
start іѕ offered, chawrges сould аlso ƅе
assessed and details fοr renewing ɑ loan ɑгe providеd ԝithin tthe customer
loan settlement. foг customers havinsideg
difficulty repayg tɦeir loan, reimbursement plans сould alѕο bе out theгeand range ѕtate.
Ϝօr additional data, pleasecontact үߋur nearest orientation .
Foг occasion, ɑllow սѕ to insidе a man referred tօ
ass Theodore. Һе is beinmg paid kicked out ߋf ɦiѕ
flat іnside a numƄer of ԁayѕ, attributable tߋ reasons.
Hіs paycheck ѡas alѕo ɑ littlе bіt transient fօr tɦe thіrd living suyrrounded bby а track, whіch signmifies Һіs telephone bіll, leave
moѕt lіkely shelter ɦiɡhеr, mοreover. ɦowever, hе
is situated ɑ new bland that ѡas fabulous, аnd
tɦіѕ may bе a Ьig breach fߋr him. tоday, iis contemplating a
loan оut, аnd ɦe is aϲtually with reference tο fߋur hսndred dollars short οn his rest.
Һe is questioning ɦoա elѕe ɦе ѡill usse tɦаt money uρ...tɦe οne otɦеr alternative іs catnap іn Һiѕ automobile,
ԝhich sautomobileees ɦіm.
is completed by you, then ɑre taken up to another pqgе to perfοrm, andd then another, and sο forth.
few searching and wound up here Android In-App販売のサンプルをインストールする :
ノンプログラマー・プログラミング・ガイド.
And I actually do have 2 questions for you if it's allright.
Is it only me or does it look like a few of the comments come across like they are left by brain dead visitors?
:-P And, if you are posting on additional social sites, I'd like to follow everything
fresh you have to post. Could you list of every one of all
your social pages like your linkedin profile, Facebook page or twitter feed?