Giter Club home page Giter Club logo

100-ways-to-print-helloworld-in-java's Introduction

Speak

Summary

The base of this project is Android Text to Speech. While reading, I come across some heavy words that are hard to pronounce. Android 6.0 Marshmallow introduced a new floating text selection toolbar, which brings the standard text selection actions, like cut, copy, and paste, closer to the text you’ve selected. Even better though is the new ACTION_PROCESS_TEXT which makes it possible for any app to add custom actions to that text selection toolbar.

alt text

Taking advantage of this feature, this app passes the selected text to itself and speaks it out.

Downloads

Download the .apk file or the source code here.

Apk : Speak.apk

Zip : Speak.zip

Tar.gz : Speak.tar.gz

Code

The majority of the code is written in Java and is simple. For enabling custom text selection:

(1.) AndroidManifest.xml

      <activity android:name=".MainActivity" android:windowSoftInputMode="stateAlwaysVisible">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

            <intent-filter>
                <action android:name="android.intent.action.PROCESS_TEXT"/>

                <category android:name="android.intent.category.DEFAULT" />

                <data android:mimeType="text/*"/>
            </intent-filter>
        </activity>

(2.) MainActivity.java

      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.process_text_main);
          CharSequence text = getIntent().getCharSequenceExtra(Intent.EXTRA_PROCESS_TEXT);
          // process the text
      }

Contributing

Any help, including feedback, is highly appreciated. I have just started out with Android and I’m relatively new to app development.

  1. Fork it!
  2. Create your feature branch: git checkout -b new-branch
  3. Commit your changes: git commit -am 'Make a valuable addition'
  4. Push to the branch: git push origin new-feature
  5. Submit a pull request :D

Next Step

Once started, an app can never be completely finished.

  • Try to make a service out of the app.

100-ways-to-print-helloworld-in-java's People

Contributors

akshatagrawal9874 avatar alexnorth-png avatar amogh2019 avatar ankitbeniwal avatar apol657 avatar gajendrakm avatar gilletted avatar goku-kun avatar grajhub avatar harisfi avatar hryxna avatar jhanna60 avatar nafladiva avatar parikshitsm avatar parthpali avatar pavan-nw avatar pinarkaymaz6 avatar roshanpaswan avatar rufatiani avatar shadowfax1731 avatar shreyavi avatar simonams avatar subhamsagar524 avatar vaibhavss08 avatar vaishakhhegde avatar vishant93 avatar vishnuojha avatar vitrag09 avatar wolfi3654 avatar yrahul3910 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

100-ways-to-print-helloworld-in-java's Issues

Fix README broken links - For First Time Contributors / Beginners

Hello, First Time Contributor!

There are a few, about 4, broken links in my README file. Here's your chance to warm up your contributing juices and help fix them.

Note: This issue is meant to be fixed by first time contributors. I'll check your commit history before accepting your PR.

Use intermediate to advance Java concepts to print "Hello, World!"

Task

  • The output of your program should be "Hello, World!"
  • Make sure you check out some of the programs in the repository to get the idea.
  • Use an intermediate or advance topic in Java to output "Hello, World!"
  • Make sure that you don't submit a duplicate of an already existing program.

print hello world by making an API call to a custom endpoint

Print Hello, World!

That's what's the repository about! For this attempt, you have to create a custom endpoint that server the required 'Hello, World!' string. You can use AWS or some other provider to achieve this. Subsequently, write a Java program to consume that endpoint.

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.