niedziela, 21 lutego 2016

android reactivation

I need to write easy app in Android, button, some edits, labels, communicate via REST.
1) download SDK
Wooow, that's pretty big file, fortunanetly I have fast connection so downloading 1.2 GB file took some minutes
2) installing and first run
Uuu, many things changed since last time, previously it was customized Eclipse, now it is customized Intellij, nice.. Only bad momentum was error while installing of some emulator-related something. But wait, during first run it downloads something more!? What a voracious SDK.
Ekhm it pushed an error while installing Android virutal machine, complaining on some antivirus stuff, but retrying was good enough to run SDK
3) project setup
Following humbly steps from there (http://developer.android.com/training/basics/firstapp/creating-project.html) I easily make first Activity, only - as it is my custom - naming it according to lukSchema (everywhere where is "my.." prefix i put my "luk.." prefix)
4) try run helloworld, ups my HAX kernel module is not running, therefore I can't run it on my emulator! Maan, what is going on..
Ahaa, to run emulator I need to change bios setting (http://www.sysprobs.com/disable-enable-virtualization-technology-bios), uff, better try to run it on my local smartphone
tap tap tap on build number, run usb debug and waiting for my prestigio to show up in devices
Maan, nowhere I can find adb which just have installed
5)ok edit text with label and button works pretty easy. It is the time to call API , first you have to set permissions in AndroidManifest.xml then to call API.
6)wow, it was fast, happy doing-nothing-special acticity which just calls REST

up and running in less than 120 minutes
not bad,
not so well

Brak komentarzy:

Prześlij komentarz