Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Monday, May 25, 2015

Install Phonegap Ubuntu


Install terlebih dahulu nodejs from source. Java SDK harus sudah terinstall terlebih dahulu dari cara di sini.
  1. Download source code nodejs 
  2. wget http://nodejs.org/dist/v0.12.4/node-v0.12.4.tar.gz
  3. extract
  4. tar xvzf node-v0.12.4.tar.gz
  5. Masuk ke folder source code tersebut
  6. cd node-v0.12.4
  7. Lakukan kompilasi
  8. ./configure
  9. make
  10. sudo make install
  11. Ubah permission folder tmp agar bisa dipakai oleh nodejs
  12. sudo chown -Rv namaUser /home/namaUser/tmp

Langkah berikutnya adalah install phonegap
  1. sudo npm -g install phonegap
  2. sudo npm -g install cordova

Langkah terakhir adalah setting Path android sdk
  1. Buka .bashrc dengan perintah "nano /home/namaUser/.bashrc"
  2. Tambahkan kedua export di bawah ini. Selain dimasukkan ke bashrc, eksekusi juga di terminal, sehingga efeknya langsung dapat dirasakan.
  3. export ANDROID_HOME=/home/akhfa/Android/Sdk
  4. export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
Sumber jika ada error:
http://stackoverflow.com/questions/27211279/unable-to-fetch-platform-android-error-eacces
http://stackoverflow.com/questions/26356359/error-android-home-is-not-set-and-android-command-not-in-your-path-you-must-ful
http://stackoverflow.com/questions/18419144/npm-not-working-read-econnreset
http://stackoverflow.com/questions/21228995/how-to-clear-https-proxy-setting-of-npm

Tuesday, April 23, 2013

Connect Nexus And Other Android Device Via MTP Support In KDE

UPDATE : MTP SUPPORT IS AVAILABLE IN UBUNTU 13.04 AND HIGHER WITHOUT ANY INSTALLATION

Confusing how to transfer file from your android device? Connecting it to computer based on KDE desktop but it doesn't appear? Try using MTP protocol :D
  • sudo apt-add-repository ppa:philschmidt/ppa-kio-mtp-daily
  • sudo apt-get update
  • sudo apt-get install kio-mtp
Then just plug your Android device and open it with dolphin in Network > MTP Devices.


 Note: You can't make a folder in your Android devices. So you must make a folder first from your android, and then copy the file you want to it.

Tested on Kubuntu 12.04 and 12.10 with Nexus 7 device. In Kubuntu 13.04 there is an issue that MTP will be added in dolphin, so you are not necessary to install kio-mtp again :D