Skip to content

Commit

Permalink
First commit (existing code)
Browse files Browse the repository at this point in the history
  • Loading branch information
TechAurelian committed Jun 27, 2022
0 parents commit bd9fa92
Show file tree
Hide file tree
Showing 41 changed files with 613 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2015-2022 TechAurelian

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
53 changes: 53 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Hello World Toast

![Minimum API Level](https://img.shields.io/badge/Min%20API%20Level-1-green)
![Maximum API Level](https://img.shields.io/badge/Target%20API%20Level-31-orange)
[![Releases](https://img.shields.io/github/release/TechAurelian/HelloWorldToast.svg)](https://github.com/TechAurelian/HelloWorldToast/releases/latest)
![GitHub repo size](https://img.shields.io/github/repo-size/TechAurelian/HelloWorldToast)
![License](https://img.shields.io/npm/l/express.svg)

**It may very well be the simplest Android app. Works even on Android 1.0!**

<p>
<img width="270" src="readme-assets/helloworldtoast-screenshot-phone.webp" alt="Hello World Toast Screenshot">
<img width="270" src="readme-assets/helloworldtoast-screenshot-tablet-7.webp">
</p>

"Hello World" programs are pretty famous, even if all they do is write "Hello World!" on the screen. When learning a new programming language or platform, starting with such a simple program has become a tradition.

Hello World Toast is a standard Android app, that can be installed on any Android device, and started from the Apps or Home Screen. All it does is display the famous "Hello World!" text in a toast - the familiar Android small popup used to show quick messages to the user. Then the app closes, even before starting. That's it!

(However, Hello World Toast may be useful if you need to show someone how a real Android toast looks like.)

Hello World Toast is tiny (only 23k!), and runs on any Android smartphone, tablet, or device. It runs on the latest Android versions, and even on the oldest versions, starting with Android 1.0!

Hello World Toast is free and open source, doesn't show ads, doesn't require Internet, and doesn't ask for permissions.

## Download

<a href='https://play.google.com/store/apps/details?id=com.thehellomaker.helloworldtoast'><img alt='Get it on Google Play' src='readme-assets/google-play-store-badge-en.svg' width="200"/></a>

or **[Download from GitHub Releases](https://github.com/TechAurelian/HelloWorldToast/releases/latest)**

## User Reviews (🤣)

> "Simply amazing app. The Hello World toast just... changed my life. Thank you!" (⭐⭐⭐⭐⭐)
> "One thing I look for it n an app is an elegant UI. This developer has changed the app world with a fresh new style of app, that will keep you glued to the screen for hours." (⭐⭐⭐⭐⭐)
> "So simple yet functional!" (⭐⭐⭐⭐⭐)
## Building

To build and run the app, clone this project, open it as an existing project in Android Studio, and click Run.

## Contributing

Thank you for contributing! Hello World Toast is designed to be as simple as possible, but you can still help with:

* testing and reporting bugs
* creating a nice Android app icon to replace the [current one](https://github.com/TechAurelian/HelloWorldToast/blob/primary/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png)

## License

Hello World Toast is released under the [MIT License](https://github.com/TechAurelian/HelloWorldToast/blob/primary/LICENSE).
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
29 changes: 29 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
plugins {
id 'com.android.application'
}

android {
compileSdk 31

defaultConfig {
applicationId "com.thehellomaker.helloworldtoast"
minSdk 1
targetSdk 31
versionCode 13
versionName "1.3"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
}
21 changes: 21 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
25 changes: 25 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.thehellomaker.helloworldtoast">

<application
android:allowBackup="true"
android:fullBackupOnly="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.HelloWorldToast">
<activity
android:name=".HelloWorldActivity"
android:excludeFromRecents="true"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
Binary file added app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Hello World Toast
* Copyright (c) 2015-2022 TechAurelian. All rights reserved.
* https://techaurelian.com
*
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/

package com.thehellomaker.helloworldtoast;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;

public class HelloWorldActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

// Show the Hello World! toast
Toast toast = Toast.makeText(getApplicationContext(), R.string.hello_world_message, Toast.LENGTH_LONG);
toast.show();

// Terminate the activity
finish();
}
}
25 changes: 25 additions & 0 deletions app/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108"
android:tint="#1E1E1F">
<group android:scaleX="0.17594491"
android:scaleY="0.17594491"
android:translateX="29.16"
android:translateY="39.47772">
<group android:translateY="131.04005">
<path android:pathData="M90.5,-39Q90.5,-36.796875,87.109375,-35.828125Q84.46875,-35,80.703125,-35Q76.9375,-35,75.75,-35Q75.609375,-30.375,75.15625,-24.703125Q74.703125,-19.03125,74.421875,-15.296875L73.96875,-10.671875L73.96875,-6L73.09375,5.234375Q72.5,12.671875,68.234375,12.671875Q66.625,12.671875,65.078125,8.953125Q63.53125,5.234375,63.53125,2.90625Q63.53125,2.3125,64.734375,0.5625Q65.9375,-1.1875,66.234375,-3.84375Q66.828125,-7.953125,67.578125,-17.46875Q68.328125,-27,68.328125,-33.453125Q62.6875,-32.921875,56.203125,-31.84375Q53.296875,-31.484375,43.1875,-30.234375Q33.078125,-29,27.296875,-29Q26.75,-19.453125,26.03125,-5.703125Q25.3125,8.03125,25.3125,11.0625Q25.3125,12.21875,25.65625,14.125Q26,16.03125,26,17.046875Q26,18.375,24.140625,19.6875Q22.28125,21,21.171875,21Q19.796875,21,18.890625,19.09375Q18,17.203125,18,14.71875Q18,13.421875,18.265625,10.421875Q18.546875,7.4375,18.546875,5.234375Q19.234375,1.28125,19.234375,-1.1875Q20.484375,-9.703125,20.484375,-17.625Q20.484375,-25.5625,20.484375,-28.296875Q11.703125,-27,3.90625,-27Q1.265625,-27,-0.609375,-28.359375Q-2.5,-29.71875,-2.5,-32.296875Q-2.5,-34.15625,-1.5625,-35.078125Q-0.625,-36,2.25,-36L9.90625,-36Q17.390625,-36,22,-36Q22,-48.28125,22,-55.65625Q22,-72.421875,22,-85.734375L22,-91.078125Q22,-93.25,23.65625,-94.625Q25.3125,-96,27.46875,-96Q29.046875,-96,29.625,-93.515625Q30.203125,-91.03125,30.203125,-87.96875Q30.203125,-84.75,29.484375,-74.828125Q28.609375,-57.90625,28.609375,-56.875L27.890625,-36Q40.140625,-36,69.453125,-39.546875Q70.046875,-43.828125,71.5,-61.984375Q71.5,-71.421875,71.96875,-75.765625L72.9375,-87.09375Q75,-108.421875,75,-113.796875Q75,-115.6875,76.359375,-116.84375Q77.734375,-118,79.53125,-118Q82,-118,82,-112.90625Q82,-109.71875,80.609375,-95.890625Q79.109375,-77.859375,78.984375,-75.828125Q78.15625,-64.625,77.390625,-54.4375Q76.640625,-44.25,76.375,-40.765625Q79.03125,-41.21875,81.09375,-42.109375Q83.71875,-43,85.21875,-43Q86.6875,-43,88.59375,-41.34375Q90.5,-39.6875,90.5,-39Z"
android:fillColor="#1E1E1F"/>
<path android:pathData="M161,-37.09375Q162,-37.09375,162,-34.953125Q162,-32.375,158.17188,-23.625Q154.35938,-14.890625,146.64062,-7.4375Q138.92188,0,127.65625,0Q118.421875,0,112.203125,-5.78125Q106,-11.5625,106,-23.5625Q106,-34.84375,111.21875,-45.90625Q116.4375,-56.984375,124.84375,-63.984375Q133.26562,-71,142.25,-71Q147.60938,-71,151.29688,-68.578125Q155,-66.171875,155,-61.640625Q155,-56.53125,149.29688,-51.703125Q143.59375,-46.890625,134.5,-43.234375Q125.40625,-39.578125,115.734375,-37.984375Q114,-31.265625,114,-24.828125Q114,-16.359375,117.953125,-11.671875Q121.90625,-7,129.23438,-7Q140.3125,-7,147.20312,-15.03125Q154.09375,-23.0625,158.6875,-33.140625Q158.98438,-33.75,159.70312,-35.421875Q160.42188,-37.09375,161,-37.09375ZM148,-60.03125Q148,-62.375,145.65625,-63.6875Q143.3125,-65,140.17188,-65Q134.76562,-65,129.78125,-61.34375Q124.796875,-57.6875,121.453125,-52.578125Q118.109375,-47.46875,117.125,-43.515625Q123.671875,-44.25,130.92188,-47.3125Q138.1875,-50.390625,143.09375,-54.03125Q148,-57.6875,148,-60.03125Z"
android:fillColor="#1E1E1F"/>
<path android:pathData="M187.5,-4.203125Q187.5,-2.75,185.59375,-1.875Q183.6875,-1,181.39062,-1Q179.65625,-1,178.14062,-5.140625Q176.64062,-9.296875,176.64062,-17.734375Q176.78125,-34.171875,177.14062,-57.4375Q177.5,-80.71875,177.78125,-92.515625Q177.9375,-96.71875,179.29688,-100.359375Q180.67188,-104,184.125,-104Q185.28125,-104,185.64062,-102.765625Q186,-101.53125,186,-98.03125Q186,-97.890625,185.92188,-97.078125Q185.85938,-96.28125,185.85938,-94.25Q183.26562,-56,183.26562,-19.625Q183.26562,-14.96875,185.375,-9.71875Q187.5,-4.484375,187.5,-4.203125Z"
android:fillColor="#1E1E1F"/>
<path android:pathData="M216.5,-4.203125Q216.5,-2.75,214.59375,-1.875Q212.6875,-1,210.39062,-1Q208.65625,-1,207.14062,-5.140625Q205.64062,-9.296875,205.64062,-17.734375Q205.78125,-34.171875,206.14062,-57.4375Q206.5,-80.71875,206.78125,-92.515625Q206.9375,-96.71875,208.29688,-100.359375Q209.67188,-104,213.125,-104Q214.28125,-104,214.64062,-102.765625Q215,-101.53125,215,-98.03125Q215,-97.890625,214.92188,-97.078125Q214.85938,-96.28125,214.85938,-94.25Q212.26562,-56,212.26562,-19.625Q212.26562,-14.96875,214.375,-9.71875Q216.5,-4.484375,216.5,-4.203125Z"
android:fillColor="#1E1E1F"/>
<path android:pathData="M281,-30.140625Q281,-24.46875,276.84375,-17.046875Q272.6875,-9.625,265.09375,-4.3125Q257.51562,1,247.76562,1Q238.15625,1,233.57812,-4.390625Q229,-9.78125,229,-17.78125Q229,-24.765625,231.5,-35.09375Q234,-45.421875,238.5625,-53.5625Q238.84375,-54.140625,240.92188,-57.84375Q243,-61.5625,245.57812,-63.53125Q248.15625,-65.5,251.01562,-65.5Q252.29688,-65.5,253.35938,-64.84375Q254.4375,-64.1875,254.4375,-63.171875Q254.4375,-62.875,253.64062,-61.78125Q252.85938,-60.6875,252.42188,-60.09375Q247.53125,-54.09375,244.5,-48.25Q240.46875,-40.796875,238.23438,-33.484375Q236,-26.171875,236,-17.546875Q236,-6,249.82812,-6Q256.29688,-6,261.82812,-9.796875Q267.375,-13.609375,270.6875,-19.09375Q274,-24.578125,274,-29.125Q274,-34.234375,270.6875,-38.03125Q267.375,-41.84375,261.64062,-46.078125Q257.89062,-48.875,256.15625,-50.625Q254.4375,-52.375,254.4375,-53.546875Q254.4375,-55.3125,256.875,-56.40625Q259.3125,-57.5,262.60938,-57.5Q264.48438,-57.5,265.0625,-57.28125Q265.64062,-57.0625,265.64062,-56.484375Q265.64062,-56.203125,265.125,-55.546875Q264.625,-54.890625,264.625,-54.453125Q264.625,-54,267.51562,-51.53125Q273.23438,-46.734375,277.10938,-41.78125Q281,-36.84375,281,-30.140625Z"
android:fillColor="#1E1E1F"/>
</group>
</group>
</vector>
5 changes: 5 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
5 changes: 5 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
Binary file added app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/src/main/res/values/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#DBDCE5</color>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<resources>
<string name="app_name">Hello World Toast</string>
<string name="hello_world_message">Hello World!</string>
</resources>
5 changes: 5 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<resources>
<!-- Base application theme. -->
<style name="Theme.HelloWorldToast" parent="android:Theme.Translucent.NoTitleBar">
</style>
</resources>
17 changes: 17 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.1"

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
19 changes: 19 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app"s APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Sun Aug 29 14:36:59 EEST 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Loading

0 comments on commit bd9fa92

Please sign in to comment.