Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8460753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:41:41+00:00 2026-06-10T13:41:41+00:00

in the android sdk (android-sdk\samples\android-8\ApiDemos\src\com\example\android\apis\os\MorseCode.java) there is a morse code example. When you start

  • 0

in the android sdk (android-sdk\samples\android-8\ApiDemos\src\com\example\android\apis\os\MorseCode.java) there is a morse code example. When you start the app and type a text it is vibrating in morsecode. In the MorseCode.java is this part here:

        long[] pattern = MorseCodeConverter.pattern(text);

        // Start the vibration
        Vibrator vibrator = (Vibrator)getSystemService(Context.VIBRATOR_SERVICE);
        vibrator.vibrate(pattern, -1);

I tried to change vibrating into show something on the display. I mean, a image visible / invisible. No success.

Here is an other example.

https://code.google.com/p/androidomatic-keyer/source/browse/src/com/templaro/opsiz/aka/MorsePlayer.java

I just need a little help. Where can I start.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:41:42+00:00Added an answer on June 10, 2026 at 1:41 pm

    The library you link to (com.templaro.opsiz.aka) has a MorseConverter utility class, which returns an array of MorseBit – you could use that instead:

    MorseBit[] bits = MorseConverter.pattern(text);
    for (MorseBit bit : bits) {
        switch(bit) {
            case MorseBit.DOT:
                print(".");
                break;
            case MorseBit.DASH:
                print("-");
                break;
            ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I m using this sample for android sdk http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/Compass.html In that sample,the compass is
Right now, you have to use fakeTagsActivity ( http://developer.android.com/resources/samples/NFCDemo/src/com/example/android/nfc/simulator/FakeTagsActivity.html ) if you want to
I imported ApiDemos from android-sdk folder using File/New/Project/Android Project/Create Project Existing Samples. When I
android-sdk-windows\samples contains various samples. Is there a mechanism to eclipsify all samples as android
When I go to the directory C:/programfiles/android/android-sdk/platform/<version>/ I couldn't find the samples directory. I
The android sdk won't allow me to install api8 and api10 because there isn't
I installed: Android SDK Cygwin Ant Android NDK Java Eclipse and Download Moai SDK
ok, steps im following. 1-create new project from existing source 2-select Android\android-sdk\extras\android\compatibility\v4\samples\Support4Demos 3-finish So,
While there are many samples around about using OpenGL ES on Android all of
I am running the Contact Manager sample app from the Android SDK. When I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.