Professional Documents
Culture Documents
INDEX
Sr. No Topic Page no.
1 Rationale
4 Objective
5 Resource Used
6 Application UI
7 Xml code
8 Java code
9 Working of Application
10 Conclusion
Morse code Translator
1.0 Rationale:-
The rationale behind developing a Morse code translator Android micro
project lies in several factors. Firstly, Morse code, despite its age, still holds
relevance today, particularly in scenarios where communication needs to
occur in environments with limited resources or through non-verbal
means. By creating a mobile app that translates text to Morse code and vice
versa, users can leverage this universal encoding system for communication
in various situations, such as emergency signaling, language barriers, or
even as a fun educational tool.
Benefits:-
1. Communication Flexibility
2. Educational Tool
3. Practical Utility
4. Mobile Accessibility
5. Promotes Innovation
6. Contributes to Accessibility
7. Historical Preservation
4.0 Objective:-
The objective of the Morse code translator Android micro project is to
develop a mobile application that facilitates efficient translation between
text and Morse code, aiming to provide users with a versatile tool for
communication and learning. By creating an intuitive user interface and
implementing robust translation algorithms, the project seeks to enable
users to easily encode and decode messages using Morse code on their
Android devices. Through this project, the primary goal is to promote
awareness and understanding of Morse code as a historic communication
method, while also showcasing proficiency in mobile app development
principles and techniques.
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Morse Code Translator"
android:textSize="20dp"
android:textStyle="bold"
android:textColor="#493939"/>
<EditText
android:id="@+id/inputText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textMultiLine"
android:gravity="top|start"
android:lines="10"
android:padding="15dp"
android:background="#AD6C7FA3"
android:maxLines="100"
android:scrollbars="vertical"
android:hint="Enter text to translate..."
android:layout_marginTop="100dp"
android:textColorHint="#D5605656"
android:layout_marginBottom="8dp"/>
<Button
android:id="@+id/translateButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:text="Translate"
android:backgroundTint="#7E4C5D"/>
<ScrollView
android:layout_width="match_parent"
android:layout_height="300dp"
android:background="#9038363C"
>
<TextView
android:id="@+id/outputText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="25dp"
android:padding="15dp"
android:textIsSelectable="true"
android:textColor="#D3B9D3"
android:layout_marginTop="16dp"/>
</ScrollView>
</LinearLayout>
</ScrollView>
</RelativeLayout>
morseMap.put('A', ".-");
morseMap.put('B', "-...");
morseMap.put('C', "-.-.");
morseMap.put('D', "-..");
morseMap.put('E', ".");
morseMap.put('F', "..-.");
morseMap.put('G', "--.");
morseMap.put('H', "....");
morseMap.put('I', "..");
morseMap.put('J', ".---");
morseMap.put('K', "-.-");
morseMap.put('L', ".-..");
morseMap.put('M', "--");
morseMap.put('N', "-.");
morseMap.put('O', "---");
morseMap.put('P', ".--.");
morseMap.put('Q', "--.-");
morseMap.put('R', ".-.");
morseMap.put('S', "...");
morseMap.put('T', "-");
morseMap.put('U', "..-");
morseMap.put('V', "...-");
morseMap.put('W', ".--");
morseMap.put('X', "-..-");
morseMap.put('Y', "-.--");
morseMap.put('Z', "--..");
// Numbers
morseMap.put('0', "-----");
morseMap.put('1', ".----");
morseMap.put('2', "..---");
morseMap.put('3', "...--");
morseMap.put('4', "....-");
morseMap.put('5', ".....");
morseMap.put('6', "-....");
morseMap.put('7', "--...");
morseMap.put('8', "---..");
morseMap.put('9', "----.");
Conclusion
In conclusion, the Morse code translator Android micro project represents
a successful endeavor in mobile app development, communication systems,
and problem-solving. Through the creation of this application, we have
achieved our objective of providing users with a versatile tool for
translating text to Morse code and vice versa. The project's intuitive user
interface facilitates seamless interaction, allowing users to easily encode
and decode messages using Morse code on their Android devices. By
implementing robust translation algorithms and incorporating error
handling mechanisms, we have ensured the accuracy and reliability of the
application's functionality. Users can rely on the Morse code translator app
to accurately translate their messages, whether they are communicating in
Morse code or converting Morse code back into regular text.