Coder Social home page Coder Social logo

just-java's Introduction

Deprecated Repository

The associated Nanodegree program Android Basics Nanodegree by Google ND803 is deprecated now; therefore, this repository is also deprecated.

Archival Note

We are archiving this repository because we do not want learners to push personal development to the current repository. If you have any issues or suggestions to make, feel free to:

Just Java Sample App

This app displays an order form for coffee. Used in the Udacity Android for Beginners course. This is how the app would look like after build and running:

Screenshot 2022-02-08 at 7 31 06 PM

Pre-requisites

  • Android Studio 3.2.1 or higher
  • compileSdkVersion 31
  • targetSdkVersion 31
  • minSdkVersion 21
  • Supports up to Android 12
  • Gradle 7.2.0

Getting Started

To run app in an Android Virtual Device (AVD), we have used the following configuration:

  • Pixel 4 Mobile device with x86 System image
  • API level 30
  • Android 11

Support

The Android Studio build system depends on Gradle and its plugins. The Gradle and its plugins have to be updated separately of Android Studio. For the updated version, refer to the following updated files: ~/build.gradle (project) file ~/app/build.gradle(: app) file ~/gradle/wrapper/gradle-wrapper.properties file You can refer anytime to the latest Android Gradle plugin release notes for the newest version of plugins.

Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.

License

Copyright 2015 The Android Open Source Project, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

just-java's People

Contributors

asamirel avatar louis-udacity avatar sudkul avatar tejasvx 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  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

just-java's Issues

Problem using sliff:g tag, %s appears in default text in textview

app/src/main/res/values/strings.xml
I used the xliff:g tag in my code, but the %s appears in the default text, when I open the app.
It disappears once I enter text in the EditText View. Also, it does not appear in the orderSummary in Gmail.

Name: <xliff:g id="name" example="Amy">%s</xliff:g>

I am attaching screenshots-
image

image

image

Can somebody help me with this?

Where is the activity_main.xml?

I am trying to find which method to call for the onClick attribute for the Whipped cream CheckBox but I cannot find it in the repository.

Could you please identify the xml and/or the correct method to call?

Many thanks.

Problem with resolveActivity() method

app/src/main/java/com/example/android/justjava/MainActivity.java

Intent intent = new Intent(Intent.ACTION_SENDTO);
intent.setData(Uri.parse("mailto:")); // only email apps should handle this
intent.putExtra(Intent.EXTRA_SUBJECT,
getString(R.string.order_summary_email_subject, name));
intent.putExtra(Intent.EXTRA_TEXT, message);

    **if (intent.resolveActivity(getPackageManager()) != null)** {
        startActivity(intent);

In my phone, the Gmail App opens when
if (intent.resolveActivity(getPackageManager()) == null) is used instead of
if (intent.resolveActivity(getPackageManager()) != null) (note ==null and !=null)

Can anybody explain the possible reason for this?

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.