{"id":321,"date":"2013-11-14T16:45:34","date_gmt":"2013-11-14T09:45:34","guid":{"rendered":"http:\/\/android.plugie.com\/?p=321"},"modified":"2013-11-19T20:24:56","modified_gmt":"2013-11-19T13:24:56","slug":"adb-install-fbandroid","status":"publish","type":"post","link":"https:\/\/android.plugie.com\/?p=321","title":{"rendered":"Adb Install FBAndroid"},"content":{"rendered":"<p><!--:id-->Untuk mencoba develop Facebook Android SDK, salah satu langkahnya adalah menginstall aplikasi facebook di Android Emulator.<br \/>\nLangkahnya seharusnya mudah hanya yaitu hanya dengan menjalankan perintah<\/p>\n<blockquote><p>adb install &lt;package-name&gt;<\/p><\/blockquote>\n<p>Sebagai contoh, jika package name adalah FBAndroid-3.6.1.apk<\/p>\n<p>Maka perintah yang kita ketik adalah<\/p>\n<blockquote><p>D:\\android-sdk\\platform-tools\\adb install D:\\FBSDK\\bin\\FBAndroid-3.6.1.apk<\/p><\/blockquote>\n<p>Dengan asumsi file adb.exe berada di folder d:\\android-sdk\\platform-tools dan FBAndroid-3.6.1.apk berada di folder D:\\FBSDK\\bin<\/p>\n<p>Silahkan ganti folder sesuai dengan folder tempat Anda menginstall android sdk dan facebook SDK.<\/p>\n<p>Namun demikan, pengalaman yang saya alami sangatlah tidak menyenangkan. Berhari-hari saya tidak bisa menginstall FBAndroid di emulator.<\/p>\n<p>Berbagai macam cara saya coba:<br \/>\n1. mengganti Java SDK menjadi versi 7 baik 64 bit maupun 32 bit.<br \/>\n2. mengganti Java SDK menjadi versi 6 baik 64 bit maupun 32 bit<br \/>\nKebetulan windows saya menggunakan windows 7 profesional 64 bit. Jadi bisa menginstall java 64 bit.<\/p>\n<p>3. Mengcopy ulang android sdk.<\/p>\n<p>4. Mendelete folder C:\\Users\\spiderman\\.android dan kemudian mengcreate emulator baru dengan AVD<\/p>\n<p>Semua cara tersebut sia-sia. FBAndroid tetap saja tidak bisa diinstall ke dalam emulator. Setiap kali saya mencoba install, proses membutuhkan waktu sekitar 3 menit, kemudian sampai muncul pesan seperti di bawah:<\/p>\n<blockquote><p>211 KB\/s (25944831 bytes in 119.823s)<br \/>\npkg: \/data\/local\/tmp\/FBAndroid-3.6.1.apk<\/p><\/blockquote>\n<p>emulator restart sendiri dan tidak bisa On.<br \/>\nSetelah emulator dimatikan paksa dan dinyalakan kembali, aplikasi facebook di Android tetap tidak terinstall.<\/p>\n<p>Akhirnya saya menemukan clue di web site http:\/\/code2care.org\/pages\/integrating-facebook-sdk-version-3.5.2-with-android-app-tutorial\/<\/p>\n<p>Di situ saya melihat VM Heap adalah 64. Setelah saya ganti setting emulator VM Heap menjadi 64, akhirnya aplikasi Facebook dapat terinstall dengan baik di emulator.<\/p>\n<p>Waktu yang dibutuhkan untuk menginstall sekitar 7 menit.<!--:--><!--:en--><\/p>\n<p>One of step to develop Facebook Android SDK is to install Facebook application on Android Emulator. The step should be easy, that is, with only execute command: <\/p>\n<blockquote><p>adb install &lt;package-name&gt;<\/p><\/blockquote>\n<p>As an example, if the package name is FBAndroid-3.6.1.apk<\/p>\n<p>Then the command is like below:<\/p>\n<blockquote><p>D:\\android-sdk\\platform-tools\\adb install D:\\FBSDK\\bin\\FBAndroid-3.6.1.apk<\/p><\/blockquote>\n<p>With assumption adb.exe is in folder d:\\android-sdk\\platform-tools and FBAndroid-3.6.1.apk is in folder D:\\FBSDK\\bin<\/p>\n<p>Just change the folder based on which folder you place android sdk and facebook sdk<\/p>\n<p>Anyhow, my experience is very unpleasent. Day by day I can&#8217;t install FBAndroid into the emulator without any specific error. I have tried many way, such as:<br \/>\n1. Change Java SDK to version 7 64 bit as well as 32 bit.<br \/>\n2. Change Java SDK to version 6 64 bit as well as 32 bit<br \/>\nLuckily, I use windows 7 profesional 64 bit, so I can try to install java 64 bit.<\/p>\n<p>3. Re &#8211; copy android sdk. <\/p>\n<p>4. Delete folder C:\\Users\\spiderman\\.android and try to re-create new emulator using AVD.<\/p>\n<p>All is useless. I still can&#8217;t install FBAndroid into the emulator. Every time I try to install, the process tooks about 3 minutes, then the message like below come up: <\/p>\n<blockquote><p>211 KB\/s (25944831 bytes in 119.823s)<br \/>\n        pkg: \/data\/local\/tmp\/FBAndroid-3.6.1.apk<\/p><\/blockquote>\n<p>After the message come up, the emulator restart them self and can&#8217;t be on again<br \/>\nAfter I turn off the emulator forcibly and turn on again, the facebook application still can&#8217;t be installed successfully.<\/p>\n<p>Finally I find a clue in the web site: http:\/\/code2care.org\/pages\/integrating-facebook-sdk-version-3.5.2-with-android-app-tutorial\/<\/p>\n<p>I see VM Heap setting is 64 in that web site. After I change the VM Heap setting in the emulator to 64, finally I can install Facebook application into emultor successfully<\/p>\n<p>The process takes about 7 minutes.<!--:--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Untuk mencoba develop Facebook Android SDK, salah satu langkahnya adalah menginstall aplikasi facebook di Android Emulator. Langkahnya seharusnya mudah hanya yaitu hanya dengan menjalankan perintah adb install &lt;package-name&gt; Sebagai contoh, jika package name adalah FBAndroid-3.6.1.apk Maka perintah yang kita ketik adalah D:\\android-sdk\\platform-tools\\adb install D:\\FBSDK\\bin\\FBAndroid-3.6.1.apk Dengan asumsi file adb.exe berada di folder d:\\android-sdk\\platform-tools dan FBAndroid-3.6.1.apk berada [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-321","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/android.plugie.com\/index.php?rest_route=\/wp\/v2\/posts\/321","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/android.plugie.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/android.plugie.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/android.plugie.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/android.plugie.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=321"}],"version-history":[{"count":14,"href":"https:\/\/android.plugie.com\/index.php?rest_route=\/wp\/v2\/posts\/321\/revisions"}],"predecessor-version":[{"id":335,"href":"https:\/\/android.plugie.com\/index.php?rest_route=\/wp\/v2\/posts\/321\/revisions\/335"}],"wp:attachment":[{"href":"https:\/\/android.plugie.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/android.plugie.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=321"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/android.plugie.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}