Skip to content

Rajat-R-Bapuri/DSP-Lab-Android-Demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSP Lab Android Demos

This is the repository for Android demos for the EL-GY 6183 Digital Signal Processing Laboratory taught by Professor Ivan Selesnick at NYU Tandon School of Engineering.

This tutorial intends to demonstrate that Android phones can be used as a tool to develop cool Digital signal processing applications.

Contents

  1. Java Basics
  2. Kotlin Basics
  3. OpenCV for Android

Android

Kotlin has been official language for mobile development on Android since 2017. Kotlin is designed to interoperate fully with Java. Programs in Kotlin are short as opposed to Java programs. You may choose to develop apps with Kotlin or Java depending on your interest.

(To understand this tutorial well, it is recommended to have some prior programming experience in other OOP languages such as C++ or Python or at least have some basic understanding of OOP concepts.)


List of Android app demos available in the repository

To try the series of demos available in the repository, you need to create a new Android project for every demo. Follow these steps to create a new project:

  1. To start with, first create an Empty android project.

  2. After creating an empty project, you will see the Android layout has a TextView which says Hello World!

You must be able to see the Kotlin or Java and XML codes in the empty project.

Now you can make changes to the default empty project by writing your own code or using the code of demo apps provided below.

Following are the list of demos available in this repository. Each demo has a readme and well commented code. (Click on the links of each demo for README)

Demo Name Description
Text Edit Demo Simple app with text view and edit text Kotlin Java
Fibonacci series app 1 This app demonstrates how to display fixed length Fibonacci series generated on the app screen and using the Log statements in android Kotlin Java
Fibonacci series app 2 This app demonstrates how to take length of Fibonacci series as user input in app using UI and display the generated Fibonacci series Kotlin Java
Text Image Demo Simple app with text view and image view Kotlin Java
Slider Demo App to demonstrate use of slider which is called SeekBar in Android Kotlin Java
Sine Wave Demo 1 App to demonstrate generating sine wave with fixed frequency Kotlin Java
Sine Wave Demo 2 App to demonstrate generating sine wave with variable frequency (uses buttons) Java
Sine Wave Demo 3 App to demonstrate generating sine wave with variable frequency (uses SeekBar) Java
Sine Wave Demo 4 App to demonstrate generating sine wave with variable frequency and gain (uses SeekBar) Java
Accelero-Sine wave A fun app. The frequency of the sine wave changes as you move and rotate your phone (uses accelerometer) Java