Git Product home page Git Product logo

advancedandroid_squawker's Introduction

Squawker Code

This is a exercise repository for the Squawker example app which is part of Udacity's Advanced Android course. The Squawker example app uses Firebase Cloud Messenger to receive Twitter-like messages, sent from this server, in real time.

This is the toy app for the FCM lesson of the Advanced Android App Development course on Udacity.

How to use this repo while taking the course

Each code repository in this class has a chain of commits that looks like this:

listofcommits

These commits show every step you'll take to create the app. They include Exercise commits and Solution commits.

Exercise commits contain instructions for completing the exercise, while solution commits show the completed exercise. You can tell what a commit is by looking at its commit message.

For example, TFCM.01-Exercise-AddGradleDependencies is the first code step in the Firebase Cloud Messaging (FCM) lesson. This is the exercise commit, and the exercise is called Add Gradle Dependencies.

Each commit also has a branch associated with it of the same name as the commit message, seen below:

branches Access all branches from this tab

listofbranches

branchesdropdown

The branches are also accessible from the drop-down in the "Code" tab

Working with the Course Code

Here are the basic steps for working with and completing exercises in the repo. This information is linked whenever you start a new exercise project, so don't feel you need to memorize all of this! In fact, skim it now, make sure that you know generally how to do the different tasks, and then come back when you start your first exercise.

The basic steps are:

  1. Clone the repo
  2. Checkout the exercise branch
  3. Find and complete the TODOs
  4. Optionally commit your code changes
  5. Compare with the solution

Step 1: Clone the repo

As you go through the course, you'll be instructed to clone the different exercise repositories, so you don't need to set these up now. You can clone a repository from github in a folder of your choice with the command:

git clone https://github.com/udacity/REPOSITORY_NAME.git

Step 2: Checkout the exercise branch

As you do different exercises in the code, you'll be told which exercise you're on, as seen below: exerciseexample

To complete an exercise, you'll want to check out the branch associated with that exercise. For the exercise above, the command to check out that branch would be:

git checkout TFCM.01-Exercise-AddGradleDependencies

Step 3: Find and complete the TODOs

This branch should always have Exercise in the title. Once you've checked out the branch, you'll have the code in the exact state you need. You'll even have TODOs, which are special comments that tell you all the steps you need to complete the exercise. You can easily navigate to all the TODOs using Android Studio's TODO tool. To open the TODO tool, click the button at the bottom of the screen that says TODO. This will display a list of all comments with TODO in the project.

We've numbered the TODO steps so you can do them in order: todos

Step 4: Optionally commit your code changes

After You've completed the TODOs, you can optionally commit your changes. This will allow you to see the code you wrote whenever you return to the branch. The following git code will add and save all your changes.

git add .
git commit -m "Your commit message"

Step 5: Compare with the solution

Most exercises will have a list of steps for you to check off in the classroom. Once you've checked these off, you'll see a pop up window with a link to the solution code. Note the Diff link:

solutionwindow

The Diff link will take you to a Github diff as seen below: diff

All of the code that was added in the solution is in green, and the removed code (which will usually be the TODO comments) is in red.

Report Issues

Notice any issues with a repository? Please file a github issue in the repository.

advancedandroid_squawker's People

Contributors

sudkul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

advancedandroid_squawker's Issues

cannot build the develop branch

Error:Execution failed for task ':app:processDebugGoogleServices'.

File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
E:\UdacityAndroidCourse\Udacity\AdvancedAndroid\Squawker\AdvancedAndroid_Squawker-develop_branch\app\src\debug\google-services.json
E:\UdacityAndroidCourse\Udacity\AdvancedAndroid\Squawker\AdvancedAndroid_Squawker-develop_branch\app\google-services.json

Cannot build

android studios gives me a file not found error for Project/res/values/values.xml commit tfcm.04 excercise and solution also error on tfcm.05 directory does not exist \app\build\intermediates\res\merged\debug

RuntimeException: Unable to get provider

Hi, I am stuck in below problem.

In manifest.xml

the color of "generated.SquawkProvider" is red and the message is "unresoloved package 'generated' less Validates resource references inside Android XML files."

I think 'generated' is came from below part. right?
"// Schematic dependencies for ContentProvider
apt 'net.simonvt.schematic:schematic-compiler:0.6.3'
compile 'net.simonvt.schematic:schematic:0.6.3'
"
When i run 'app' the error message is
"java.lang.RuntimeException: Unable to get provider android.example.com.squawker.provider.generated.SquawkProvider:"

Is there anyone who has any idea?

No notification

I have checked Squawker is in the background and connected to the internet and included the FCM library.
But I don't see the notification of the first message. What could be the problem? Thank you!

failed to build in develop-branch

Error:Execution failed for task ':app:processDebugGoogleServices'.

File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
E:\UdacityAndroidCourse\Udacity\AdvancedAndroid\Squawker\AdvancedAndroid_Squawker-develop_branch\app\src\debug\google-services.json
E:\UdacityAndroidCourse\Udacity\AdvancedAndroid\Squawker\AdvancedAndroid_Squawker-develop_branch\app\google-services.json

Unable to run the apk on Phone

Getting below error after pressing play button in android studio which is meant to launch apk on smartphone

Cannot specify -processorpath or --processor-path via CompileOptions.compilerArgs. Use the CompileOptions.annotationProcessorPath property instead.

Cannot build

Gave me this error:

`WARNING: Folder D:\freelancer\Android\AdvancedAndroid_Squawker-develop_branch\app\build\source\apt\debug

INFO: 3rd-party Gradle plug-ins may be the cause

WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getJavaCompile(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.
Affected Modules: app`

Unable to get provider

FATAL EXCEPTION: main Process: android.example.com.squawker, PID: 11340 java.lang.RuntimeException: Unable to get provider android.example.com.squawker.provider.generated.SquawkProvider

Error in Provider (Manifest file)

Hello,

I cannot run the app on a device. It gives Unable to get provider error. In Manifest file, it shows 'android:name' inside provider tag in red color with this error: Unresolved package 'generated' . Can you please let me know how to solve this error?

Thanks,
Matanat

Build Fail - google-service.json is missing - starter code

### Hello,

I'm trying to build the starter code but I get this error:

File google-services.json is missing. The Google Services Plugin cannot function without it. 
 Searched Location: 
D:\AdvancedAndroid_Squawker\app\src\debug\google-services.json
D:\AdvancedAndroid_Squawker\app\google-services.json

I've looked in all the issues (12 at this moment) and I could find a suitable answer.
Please help.

cannot sync firebase

Error:(30, 0) Declaring custom 'clean' task when using the standard Gradle lifecycle plugins is not allowed.
Open File

Execution failed for task ':app:compileDebugJavaWithJavac'


* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Cannot specify -processorpath or --processor-path via `CompileOptions.compilerArgs`. Use the `CompileOptions.annotationProcessorPath` property instead.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Following the instructions on firebase website and the Exercise getting this error.

I think Server is very slow.

I got the data message but in my phone it is showing very late almost 20 to 30 minutes later.
In 4th exercise we have to insert the data and display notification so that 2 things goes right but msg was coming very late.

Missing TODO on TFCM.01-Solution-AddGradleDependencies

Hi I follow all //TODO on the project exercise TFCM.01-Solution-AddGradleDependencies, but I did not able to see any notification come to my app. I finally refer to firebase web site and found that seem we miss the step for adding plagin at project level gradle as shown below:

// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services'

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.