Blog

This is where I’m at right now (Mon 28 May 2018) with my Android studies…

I hit a brick wall here:

https://classroom.udacity.com/courses/ud839

on Lesson 1 Part 4 – “Import an Existing Project”.

The project I imported would not run. I need to do more research and figure out how to fix it before I can continue with that lesson.

git clone

 

https://help.github.com/articles/cloning-a-repository/

anne@Inspiron-15R:~$ git clone https://github.com/udacity/ud839_Miwok.git
Cloning into 'ud839_Miwok'...
remote: Counting objects: 809, done.
remote: Total 809 (delta 0), reused 0 (delta 0), pack-reused 809
Receiving objects: 100% (809/809), 2.26 MiB | 1.90 MiB/s, done.
Resolving deltas: 100% (248/248), done.
anne@Inspiron-15R:~$

Connecting the LG G3 phone device to Android Studio

USB Debugging Mode – LG G3. If you need to facilitate a connection between your device and a computer with the Android SDK (software development kit), view this info. If Developer Options are unavailable, navigate: Apps > Settings > About phone > Software info then tap Build number seven times.

If Developer Options are unavailable, navigate: Apps > Settings > About phone > Software info then tap Build number seven times.
  1. From a Home screen, navigate: Apps > Settings > Developer options.
  2. Ensure the Developer options switch (located in the upper-right) is turned on .
  3. Tap USB debugging to enable or disable.

Installing the latest version of Android Studio – AndroidStudioPreview3.2

I am installing in /home/anne

Android Studio

INSTALLATION INSTRUCTIONS
===============================================================================

Linux Installation Instructions
——————————————————————————
1. Unpack the Android Studio distribution archive that you downloaded to
where you wish to install the program. We will refer to this destination
location as your {installation home} below.

2. Open a console and cd into “{installation home}/bin” and type:

./studio.sh

to start the application. As a side effect, this will initialize various
configuration files in the ~/.AndroidStudioPreview3.2 directory.

3. [OPTIONAL] Add “{installation home}/bin” to your PATH environment
variable so that you may start Android Studio from any directory.

4. [OPTIONAL] To adjust the value of the JVM heap size, create
~/.AndroidStudioPreview3.2/studio.vmoptions (or studio64.vmoptions
if using a 64-bit JDK), and set the -Xms and -Xmx parameters. To see how
to do this, you can reference the vmoptions file under
“{installation home}/bin” as a model.

[OPTIONAL] Changing the location of “config” and “system” directories
——————————————————————————
By default, Android Studio stores all your settings under the ~/.AndroidStudioPreview3.2/config
directory and uses ~/.AndroidStudioPreview3.2/system as a data cache.
If you want to change these settings,

1. Open a console and cd into ~/.AndroidStudioPreview3.2/config

2. Create the file “idea.properties” and open it in an editor. Set the
idea.system.path and/or idea.config.path variables as desired, for
example:

idea.system.path=~/custom/system
idea.config.path=~/custom/config

3. Note that we recommend to store data cache (“system” directory) on a disk
with at least 1GB of free space.

Enjoy!

-Android Studio Development Team

Android Studio – courses completed so far…

Android Basics: User Interface (completed Sat 24 Feb 2018) – https://classroom.udacity.com/courses/ud834

Android Basics: User Input (completed Mon 2nd April 2018) https://classroom.udacity.com/courses/ud836

Android Basics: Multiscreen Apps (started Mon 2nd April 2018) https://classroom.udacity.com/courses/ud839

Android Basics: Networking – https://classroom.udacity.com/courses/ud843

Android Basics: Data Storage – https://classroom.udacity.com/courses/ud845

Developing Android Apps – https://classroom.udacity.com/courses/ud851

Advanced Android App Development – https://classroom.udacity.com/courses/ud855

Then the Big Nerd Ranch textbook course.

There are many more Android Development courses at Udacity which I will take after completing the Big Nerd Ranch textbook course.

 

5th April 2018 – Android Studies Checkpoint (started UD839) Imported an existing project (seemlessly).

https://classroom.udacity.com/courses/ud839

Started the above today. Importing the Miwok project went seemlessly…

  1. Go to this GitHub project repository link.
  2. Click on the “Download zip” button to download the app code.
  3. Unzip the downloaded file on your computer so that you have a “Miwok” folder.
  4. Open Android Studio.
  5. Choose File > Import Project and select the “Miwok” folder. It may take some time for the project to be imported. If you have any issues, check the Troubleshooting document.
  6. Once that app has successfully imported, run the app on your Android device (phone, tablet, or emulator). It should look like this screenshot. Nothing happens when you click on any of the categories. That’s expected.

Just for your information, during the process of importing the project, Android Studio prompted for some updates and gave warnings related to obsolete features being replaced. This is due to the fact I am using the bleeding edge version of Android Studio, and the project I’m importing was written months previously.  So it took a few minutes to complete the updates and build, the installing the APK to the phone took minutes instead of the seconds it has taken so far with my apps. Nevertheless, all went seemlessly (if slowly) and the app ran as described on the phone.