Groups
Groups
Sign in
Groups
Groups
日本Androidの会
Conversations
About
Send feedback
Help
非公開APIのライブラリ化について
2,008 views
Skip to first unread message
masa10
unread,
Oct 5, 2011, 11:30:39 AM
10/5/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
masa10と申します。
現在、Androidの非公開APIに興味を持ち、それを利用したアプリの開発を検討しています。
非公開APIをライブラリ化(できれば、非公開APIを含んだソースからandroid.jarを作成)してアプリに利用したいと思い色々と調べてみた
のですが、皆目検討がつきません。
そこで、どなたか非公開APIをライブラリ化して利用されている方がいらっしゃいましたら、その方法をご教授いただけないでしょうか?
よろしくお願いします。
ちなみに、関係ないかもしれませんが、ソースをDLしてsdkを作ることはできました。
namu
unread,
Oct 7, 2011, 10:47:09 PM
10/7/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
namuと申します。
私も同じことをやったことがあり、そのとき調べた方法をお伝えします。
Eclipse環境であれば以下のページの設定を行えばいいと思います。
http://hiro0104.blog52.fc2.com/blog-entry-13.html
プロジェクトのビルドパスに、sdk内のandroid.jarではなく、
ソースからビルドしたjarを使うように設定しています。
Eclipseのuserlibraryの機能については、以下が参考になると思います。
http://www.confrage.com/eclipse/build/user_lib/user_lib.html
masa10
unread,
Oct 11, 2011, 9:11:02 AM
10/11/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本Androidの会
namuさん。
masa10です。
返信ありがとうございます。
せっかく教えていただいたのに、まとまった時間がとれずまだ手付かずの状態です。
申し訳ないです。
記事を読ませていただいた限りだと、非公開APIはandroid.jarではなく、ソースをビルドした跡に生成されるJAVA_LIBRARIES
配下のjarファイルの中に含まれているという理解でいいでしょうか?
ご教授よろしくお願いします。
namu
unread,
Oct 16, 2011, 4:49:21 AM
10/16/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android-g...@googlegroups.com
masa10さん
namuです。
返信遅くなってすいません。
ご理解の通り、ビルド時のクラスパスにandroid.jarではなく、自前でビルドした各jarを使うようにする設定しています。
android.jarはビルドが通るようにするためだけのもので、定数やメソッドの"定義のみ"を抜粋しているものです。メソッドは中身は”Stub"という文言のRuntimeExceptionをthrowするだけのものらしいです。
その代わりに、実際に端末内で使われる"抜粋"されていないjarを使うということのようです。
Reply all
Reply to author
Forward
0 new messages