use of smart phone

19
A practical Approach to Mobile Programming Techniques by Dr. SRN Reddy, Asstt Prof, IGIT, GGSIPU, M.Reddi Prasad Reddy, Tech Mahindra Prof. Nupur Prakash, Principal, IGIT, GGSIPU

Upload: marlo

Post on 25-Feb-2016

25 views

Category:

Documents


1 download

DESCRIPTION

A practical Approach to Mobile Programming Techniques by   Dr. SRN Reddy, Asstt Prof, IGIT, GGSIPU, M.Reddi Prasad Reddy, Tech Mahindra Prof. Nupur Prakash , Principal, IGIT, GGSIPU. Use of Smart Phone . Communication and computing Making calls Sending messages Playing music/videos - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Use of Smart Phone

A practical Approach

to

Mobile Programming Techniques

by Dr. SRN Reddy, Asstt Prof, IGIT, GGSIPU,

M.Reddi Prasad Reddy, Tech Mahindra

Prof. Nupur Prakash, Principal, IGIT, GGSIPU

Page 2: Use of Smart Phone

Use of Smart Phone Communication and computing Making calls Sending messagesPlaying music/videos Gaming, mailing Web browsing,Transacting businessSocial networking etc.Is it possible for programming like Python, C and C++

Page 3: Use of Smart Phone

Introduction Mobile device for programming:-

Linux commands

Vi Editor, Filters, Pipes

Shell programming

Programming languages :-

Python

C and C++

WAP programming

Target Platform:- Nokia’s N900 (N950 )

Page 4: Use of Smart Phone

Target Device : N 900 (Maemo)

Page 5: Use of Smart Phone

vi editor session

VI is used to create any source file like shell programs, python, C or C++ programs etc.

$ vi [filename]

Eg:- vi pro.sh vi hello.c

vi examp.py

Page 6: Use of Smart Phone

Shell Programming MethodologyShell programming on mobile is similar to the desktop

Shell Program In Nokia’s N900 (Maemo) :-

Open the xterminal in Nokia N900/950

Write a Shell Program :- Use editors like VI editor,

GTKeditor etc. to write with the file name extension .sh as

in linux desktop envrnt.

Run the shell script:- ./shell script name

Page 7: Use of Smart Phone

Demo vi pro.sh

ls -lpwddate

Page 8: Use of Smart Phone

Filters and Pipes etc grep “ls” pro.sh

Output:- ls –l

sed ‘/ls -l/d’ pro.sh > pronew.sh // to delete the words ls –l from the file pro.sh and redirect the result into pronew.sh

cat pro.sh| sort > pro1.shOutput: date ls -l pwd

Page 9: Use of Smart Phone

Python Programming

Open the X-terminal

Type python to go to the python shell

Eg:- to print any text similar to printf in C

print “ www.mobileeducationkit.net”

Page 10: Use of Smart Phone

C Programming methodology:

Download the following packages to work with gcc in the given order:

binutils_2.18.50.20070820-4+0m5_armel.deb: This package is used to assemble,

link and manipulate binary and object files.

libgcc1_4.2.1-4maemo9+0m5_armel.deb: gcc support library

libgomp1_4.2.1-4maemo9+0m5_armel.deb: gcc OpenMP (GOMP) support library

cpp-4.2_4.2.1-4maemo9+0m5_armel.deb: The GNU C preprocessor

gcc-4.2-base_4.2.1-4maemo9+0m5_armel.deb:This package contains files

common to all languages and libraries contained in the GNU Compiler Collection

(gcc).

gcc-4.2_4.2.1-4maemo9+0m5_armel.deb:This package is the GNU C compiler, a

fairly portable optimizing compiler for C.

Page 11: Use of Smart Phone

Browse the directory where these packages are stored. #/home/user/MyDocs/gcc

De-packaging all the above downloaded packages /home/user/MyDocs/gcc #dpkg – i <package

name>Go to home directory and create one new directory as

/home #mkdir cprogCompile the source C program

/home/cprog # gcc-4.2 hello.c –o outView the out put by runing the exe file

# ./out Note:-you will get the output on the terminal screen.

C Programming methodology cont-

Page 12: Use of Smart Phone
Page 13: Use of Smart Phone
Page 14: Use of Smart Phone

Demo

#include "stdio.h"main(){printf("mobile c programming lab Mek \n");

}

Page 15: Use of Smart Phone

C++ programming Similar use the instructions for programming

C++ with new libraries as given in the paper. Try other programming: JAVA etc

Page 16: Use of Smart Phone
Page 17: Use of Smart Phone

www.mobileeducationkit.net (Mek)

Our Vision: "To impact quality of technical education by bridging the gap between theory and practice in teaching/learning of various ICT subjects using the ubiquitous mobile devices as the new pedagogical platform. “

Our Mission: "Develop a practical teaching and learning environment that provides comprehensive set of guides and experiments, catering to the needs of Computer Science, Electronics and Information & Telecommunication technologies, by making use of modern computing platforms and make it freely accessible through: Mek ” Sponsored by Nokia

Page 18: Use of Smart Phone

References 1. Chi-Hong LEUNG, Yuen-Yan CHAN, “Mobile Learning: A New Paradigm in Electronic Learning”, Proceedings of the The 3rd IEEE International Conference on Advanced Learning Technologies (ICALT’03), CSI, 2003.

2. Dan Corlett, Mike Sharples, Susan Bull,Tony Chan, “Valuation of a mobile learning organiser for university students”, Journal of Computer Assisted Learning, Volume 21, Issue 3, pages 162–170, June 2005.

3. Babatunde B. Akinkuolie, Chia-Feng Lin and Shyan-Ming Yuan “A Cross-Platform Mobile Learning System Using QT SDK Framework”, Fifth International Conference on Genetic and Evolutionary Computing, 2011.

4. Jules White, Hamilton Turner, "Smartphone Computing in the Classroom," IEEE Pervasive Computing, vol. 10, no. 2, pp. 82-86, April-June, 2011.

5. Chris Greenhalgh, Steve Benford, et al, “Addressing Mobile Phone Diversity in Ubicomp Experience Development”, UbiComp 2007: Ubiquitous Computing, Lecture Notes in Computer Science Volume 4717, 2007, pp 447-464.

6. Glenn Stockwell “Using mobile phones for vocabulary activities: examining the effect of the platform”, Language Learning & Technology, June 2010, Volume 14, Number 2, pp. 95–110.

7. M. Hasegawa, K. Nakamura et al, “High accessible experimental information on CPD experiment”, Fusion Engineering and Design 83 (2008) 402–405.

8. http://maemo.org/downloads/product/Maemo5/pygtkeditor/ 9.http://maemo.org/packages/source/view/fremantle_sdk_free_source/gcc-4.2/4.2.1-

4maemo9+0m5/.

Page 19: Use of Smart Phone

Thank You