If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Report: My first "hello world" using Android Studio freeware on Windows worked just fine (in about an hour)
Report: My first "hello world" using Android Studio freeware on Windows
worked just fine (total elapsed time was about an hour). http://www.bild.me/bild.php?file=7570013helloworld01.jpg http://www.bild.me/bild.php?file=4072224helloworld02.jpg http://www.bild.me/bild.php?file=7646977helloworld03.jpg http://www.bild.me/bild.php?file=3369563helloworld04.jpg The main issues to deal with a o OEM USB Drivers for your phone (I had driver issues but surmounted them) o Phone set to USB Debugging Mode (already a basic setup for most users) o Android Studio (freeware, easily installed & seemingly powerful) o Android SDK (Android Studio handles this well) o Java (Android Studio handles this well, at least for Hello World) Getting a "hello world" to work on an Android phone may sound like an accomplishment, but it's not really that much since all you do is punch buttons, given that the Google Android Studio freeware literally writes the entire app for you. https://developer.android.com/studio/ What takes the hour elapsed time is that Android Studio downloads a separate SDK, and a few other things, plus there was, in my case, a minor hardware emulation issue on my old desktop, and a USB debugging issue (perhaps because I've been playing a lot with my USB MTP drivers lately). https://groups.google.com/forum/#!topic/comp.mobile.android/SHR2YmpfVwo The installation of Android Studio takes about an hour to download stuff: https://developer.android.com/studio/install You want to plan ahead to decide where you want to put things though: o Studio: c:\app\hardware\android\studio\ o SDK: c:\app\hardware\android\sdk\ o Projects: c:\tmp\android\projects\myfirstapp\ o c:\users\you\.android\ (I'm not sure why stuff was put here) o c:\users\you\.AndroidStudio3.2\ (I'm not sure why stuff is here) etc. My main noob mistake was to keep this default, which I should have removed: [x]Performance Intel HAXM Hardware-assisted virtual engine to speed up Android app emulation Another noob mistake I made was that I had to re-install the original OEM (LG Stylo 3 Plus) USB drivers before Android Studio could see it: https://developer.android.com/studio/run/oem-usb#Drivers Even though Windows had no problem seeing the phone over USB, Android Studio didn't see the phone until I installed the OEM LG drivers from https://developer.android.com/studio/run/oem-usb#Drivers Specifically the LG TP450 driver for the $130 LG Stylo 3 Plus: https://www.lg.com/us/support/software-firmware-drivers?search=lg+tpe450#= Then all you do is follow their step by step tutorial which just works: https://developer.android.com/training/basics/firstapp/ This is my first (baby) step to writing simple Android/iOS apps that a o Forever free o No ads o No servers o No spyware o Simple user interface to do a given simple job the simplest way possible http://www.bild.me/bild.php?file=7570013helloworld01.jpg One catch-22 was that emulation required hardware acceleration, but that wouldn't work for me, so I can _only_ run on the phone right now (which isn't too bad, for now) until I figure out a way around that gotcha. Later, I'll deal with getting a hello world to work on the iOS devices. https://www.androidauthority.com/developing-for-android-vs-ios-697304/ |
Thread Tools | |
Display Modes | |
|
|