This document contains code for a movie ticket booking application called Book My Show. It declares various objects like forms, lists, images that are used in the application. It also contains code to display the splash screen, home screen, movie list screen, select date/time/venue screen, ticket details screen, customer details screen and review details screen. The document has code organized in different tasks to handle various screens and functionality of the application.
Field work project report- A study of brand development of Book my show throu...MarketerBoard
With new technologies available like social media and social networks, such as Face book and Twitter, a growing number of companies are using these outlets to connect with customers and consumers, while simultaneously creating a brand and brand personality. By connecting with these customers directly, on a one-on-one level, these customers begin to create an attachment with that specific brand, and remain loyal to it.
Field work project report- A study of brand development of Book my show throu...MarketerBoard
With new technologies available like social media and social networks, such as Face book and Twitter, a growing number of companies are using these outlets to connect with customers and consumers, while simultaneously creating a brand and brand personality. By connecting with these customers directly, on a one-on-one level, these customers begin to create an attachment with that specific brand, and remain loyal to it.
GOOGLE GLΛSS By Google X and Google.inc (PowerPoint Presentation)Mujeeb Rehman
Google Glass (styled "GLΛSS") is a wearable computer with an optical head-mounted display (OHMD) that is being developed by Google in the Project Glass research and development project, with a mission of producing a mass-market ubiquitous computer. Google Glass displays information in a smartphone-like hands-free format,[8] that can communicate with the Internet via natural language voice commands.
Glass is being developed by Google X, which has worked on other futuristic technologies such as driverless cars. The project was announced on Google+ by Project Glass lead Babak Parviz, an electrical engineer who has also worked on putting displays into contact lenses; Steve Lee, a product manager and "geolocation specialist"; and Sebastian Thrun, who developed Udacity as well as worked on the autonomous car project. Google has patented the design of Project Glass.
Types of Layouts by ADMEC Multimedia InstituteRavi Bhadauria
ADMEC Multimedia Institute is growing institute that is providing industry oriented training to the world at large. Being a multimedia institute we offers training for creating or designing content for information technology mainly.
Writing an acknowledgement is an important part of project report. Acknowledgement in project reports is used to thank all those people who have helped you directly or indirectly in preparing your project or thanking people for extending time, effort, money or trust. So, here is a sample acknowledgement which you use in your projects.
Matteo Vaccari - TDD per Android | Codemotion Milan 2015Codemotion
Aggiornare la tua app spesso e in sicurezza; aggiungere nuove feature velocemente: questa è la promessa del Test-Driven Development. Ma non è facile fare TDD in Android: se a volte sembra che i test ti rallentino... forse non li fai nella maniera giusta! In questa sessione vedremo come fare TDD senza perdere tempo con framework complicati e continue installazioni sul device. Vedremo quando scrivere test e quando non scriverli; impareremo tecniche collaudate che si possono applicare nello sviluppo mobile in generale, non solo in Android nativo.
GOOGLE GLΛSS By Google X and Google.inc (PowerPoint Presentation)Mujeeb Rehman
Google Glass (styled "GLΛSS") is a wearable computer with an optical head-mounted display (OHMD) that is being developed by Google in the Project Glass research and development project, with a mission of producing a mass-market ubiquitous computer. Google Glass displays information in a smartphone-like hands-free format,[8] that can communicate with the Internet via natural language voice commands.
Glass is being developed by Google X, which has worked on other futuristic technologies such as driverless cars. The project was announced on Google+ by Project Glass lead Babak Parviz, an electrical engineer who has also worked on putting displays into contact lenses; Steve Lee, a product manager and "geolocation specialist"; and Sebastian Thrun, who developed Udacity as well as worked on the autonomous car project. Google has patented the design of Project Glass.
Types of Layouts by ADMEC Multimedia InstituteRavi Bhadauria
ADMEC Multimedia Institute is growing institute that is providing industry oriented training to the world at large. Being a multimedia institute we offers training for creating or designing content for information technology mainly.
Writing an acknowledgement is an important part of project report. Acknowledgement in project reports is used to thank all those people who have helped you directly or indirectly in preparing your project or thanking people for extending time, effort, money or trust. So, here is a sample acknowledgement which you use in your projects.
Matteo Vaccari - TDD per Android | Codemotion Milan 2015Codemotion
Aggiornare la tua app spesso e in sicurezza; aggiungere nuove feature velocemente: questa è la promessa del Test-Driven Development. Ma non è facile fare TDD in Android: se a volte sembra che i test ti rallentino... forse non li fai nella maniera giusta! In questa sessione vedremo come fare TDD senza perdere tempo con framework complicati e continue installazioni sul device. Vedremo quando scrivere test e quando non scriverli; impareremo tecniche collaudate che si possono applicare nello sviluppo mobile in generale, non solo in Android nativo.
TDD and mobile development: some forgotten techniques, illustrated with AndroidCodemotion
"TDD and mobile development: some forgotten techniques, illustrated with Android" by Matteo Vaccari
Delivering updates with confidence; shortening time to market; writing clean and correct code every day: this is the promise of Test-Driven Development. But, it’s not easy to do TDD in Android. You have to run the tests on the device, or install a complex framework that mimics the Android APIs. Both options slow you down. In this session we’ll get back to the roots of TDD and show how to deal with this problem. We’ll learn time-tested techniques that reduce the need to run tests on the device. The good side-effect is that our code becomes simpler and better.
Jak vyvinout úspěšnou aplikaci pro Google Glass (Martin Pelant, eMan)eMan s.r.o.
Přednáška Martina Pelanta o vývoji mobilních aplikacích pro Google Glass se uskutečnila 19.8.2014 ve spolupráci s IDE Prague. Odkaz na FB událost: https://www.facebook.com/events/912995792048693/
Oxygine 2 d objects,events,debug and resourcescorehard_by
Доклад будет посвящен созданию/удалению и взаимодействию игровых объектах, о стандартных и кастомизированных смартпоинтерах. Какими вещами пользоваться чтобы получить debug информацию о том что происходит в игре. Будут приведены примеры шаблонов игрового проектирования. Несколько слов о интересных редакторах игровых ресурсов: MapEditor.com, Astralax.ru
What Web Developers Need to Know to Develop Native HTML5/JS AppsDoris Chen
You already have a Web app on the Internet and want to reach customers with a new, targeted experience on Windows 8. Come get practical guidance and best practices on how to reuse your Web assets. Come dive into the specifics of this exciting platform and see how you can use your Web skills to build deeply-integrated Windows apps.
This session will start with the introduction on new HTML5 and CSS3 features introduced in Internet Explorer. Internet Explorer is the browser for rendering modern (HTML5/CSS3) standards-compliant websites. It is also one of the foundations for Windows 8 app development.
• You’ll discover how this mirrors or differs from traditional Web programming and how to harness the rich capabilities of Windows 8 through JavaScript and the Windows Runtime.
• You'll learn techniques for turning your HTML5, CSS and JavaScript into a great Windows app including touch-enablement, adopting the Windows look and feel, and system integration.
This session will jump start you with everything you need to know to start building Windows 8 apps with the skills you already have.
JavaScript Advanced - Useful methods to power up your codeLaurence Svekis ✔
Get this Course
https://www.udemy.com/javascript-course-plus/?couponCode=SLIDESHARE
Useful methods and JavaScript code snippets power up your code and make even more happen with it.
This course is perfect for anyone who has fundamental JavaScript experience and wants to move to the next level. Use and apply more advanced code, and do more with JavaScript.
Everything you need to learn more about JavaScript
Source code is included
60+ page Downloadable PDF guide with resources and code snippets
3 Challenges to get you coding try the code
demonstrating useful JavaScript methods that can power up your code and make even more happen with it.
Course lessons will cover
JavaScript Number Methods
JavaScript String Methods
JavaScript Math - including math random
DOMContentLoaded - DOM ready when the document has loaded.
JavaScript Date - Date methods and how to get set and use date.
JavaScript parse and stringify - strings to objects back to strings
JavaScript LocalStorage - store variables in the user browser
JavaScript getBoundingClientRect() - get the dimensions of an element
JavaScript Timers setTimeout() setInterval() requestAnimationFrame() - Run code when you want too
encodeURIComponent - encoding made easy
Regex - so powerful use it to get values from your string
prototype - extend JavaScript objects with customized powers
Try and catch - perfect for error and testing
Fetch xHR requests - bring content in from servers
and more
No libraries, no shortcuts just learning JavaScript making it DYNAMIC and INTERACTIVE web application.
Step by step learning with all steps included.
GOOGLE GLΛSS By Google X and Google.incMujeeb Rehman
Google Glass (styled "GLΛSS") is a wearable computer with an optical head-mounted display (OHMD) that is being developed by Google in the Project Glass research and development project, with a mission of producing a mass-market ubiquitous computer. Google Glass displays information in a smartphone-like hands-free format,[8] that can communicate with the Internet via natural language voice commands.
Glass is being developed by Google X, which has worked on other futuristic technologies such as driverless cars. The project was announced on Google+ by Project Glass lead Babak Parviz, an electrical engineer who has also worked on putting displays into contact lenses; Steve Lee, a product manager and "geolocation specialist"; and Sebastian Thrun, who developed Udacity as well as worked on the autonomous car project. Google has patented the design of Project Glass.
One of the most recognized brand names in the world today, Sony Corporation, Japan, established its India operations in November 1994, focusing on the sales and marketing of Sony products in the country. In a span of 19 years, Sony India has exemplified the quest for excellence in the world of digital lifestyle becoming the country’s foremost consumer electronics brand. With relentless commitment to quality, consistent dedication to customer satisfaction and unparalleled standards of service, Sony India is recognized as a benchmark for new age technology, superior quality, digital concepts and personalized service that has ensured loyal customers and nationwide acclaim in the industry.
Sony India is one of the most recognized consumer electronics brand in the country, with a reputation for new age technology, digital concepts and excellent after sales service. In India, Sony has its footprint across all major towns and cities in the country through a distribution network comprising of over 20,000 dealers and distributors, more than 300 exclusive Sony outlets and 25 branch locations. Sony India also has a strong service presence across the country with 365 service outlets. Manned by customer friendly and informed sales persons, Sony’s exclusive stores ‘Sony Canter’ are fast becoming the most visible face of the company in India. A distinctive feature of Sony’s service is their highly motivated and well-trained staffs that provide the kind of attentive and sensitive service that is rare today.
Sony is committed to ensuring that both the products and the marketing activities employed truly make a difference to people’s lifestyles and offer them new dimensions of enjoyment. Relentless commitment to quality, continuous dedication to customer satisfaction and unparalleled standards of service is what differentiates us from countless competitors and reflects a true image of all that is Sony.
The BlackBerry is a line of wireless handheld devices and services designed and marketed by BlackBerry Limited, formerly known as Research in Motion Limited (RIM).BlackBerry devices can shoot video, take photos and play music; these devices also provide essentials such as web-browsing, email messaging, instant messaging, and the proprietary BlackBerry Messenger.
Essar Steel is a global integrated steel producer with an annual capacity of 14 million tones with a strong presence in intensive steel consuming markets of Asia and North America.
This is the brief document about Birla Sun Life Group..which include almost all its insurance plans, and policies. This documents also help those students and people how are seeking to get to know about BSLI. I provide all the detailed history about birla group in this documents..:)
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
The simplified electron and muon model, Oscillating Spacetime: The Foundation...RitikBhardwaj56
Discover the Simplified Electron and Muon Model: A New Wave-Based Approach to Understanding Particles delves into a groundbreaking theory that presents electrons and muons as rotating soliton waves within oscillating spacetime. Geared towards students, researchers, and science buffs, this book breaks down complex ideas into simple explanations. It covers topics such as electron waves, temporal dynamics, and the implications of this model on particle physics. With clear illustrations and easy-to-follow explanations, readers will gain a new outlook on the universe's fundamental nature.
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
MATATAG CURRICULUM: ASSESSING THE READINESS OF ELEM. PUBLIC SCHOOL TEACHERS I...NelTorrente
In this research, it concludes that while the readiness of teachers in Caloocan City to implement the MATATAG Curriculum is generally positive, targeted efforts in professional development, resource distribution, support networks, and comprehensive preparation can address the existing gaps and ensure successful curriculum implementation.
A review of the growth of the Israel Genealogy Research Association Database Collection for the last 12 months. Our collection is now passed the 3 million mark and still growing. See which archives have contributed the most. See the different types of records we have, and which years have had records added. You can also see what we have for the future.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Delivering Micro-Credentials in Technical and Vocational Education and TrainingAG2 Design
Explore how micro-credentials are transforming Technical and Vocational Education and Training (TVET) with this comprehensive slide deck. Discover what micro-credentials are, their importance in TVET, the advantages they offer, and the insights from industry experts. Additionally, learn about the top software applications available for creating and managing micro-credentials. This presentation also includes valuable resources and a discussion on the future of these specialised certifications.
For more detailed information on delivering micro-credentials in TVET, visit this https://tvettrainer.com/delivering-micro-credentials-in-tvet/
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
2. 2
Book My Show
Batch Code: B140109
Sem Code: T1E1D
Start Date: 21st
Feb 2013
End Date: 16th
April 2014
Name of the Coordinator: Vinod Chauhan
Name of the Creator: Mujeeb Rehman,
Khushal Singh and
Akash Singha
Date of Submission: Friday, 18th
April 2014
3. 3
Certificate
This is certifying that thesis work on, “Book My Show”
is a bonfire work has been successfully carried out
and submitted in the fulfillment of the requirement for
the Semester – C Elective-1 (T1E1D) of GNIIT
(Software Engineering) from NIIT. It is certified that
all correction /suggestion indicated for the internal
assessment have been incorporated in the thesis.
The thesis has been approved as it satisfied the
academic requirement in respect of minor work
prescribed for the software engineering (GNIIT). This
thesis is done under the guidance of “Vinod
Chauhan” (Faculty for Semester C, Elective-1 of
GNIIT) by “Mujeeb Rehman, Khushal Singh and
Akash Singha” of Semester “C - T1E1D” GNIIT
(Software Engineering).
Mr. Mukesh Bansal Mr. Kuldeep Singh Ms. Ritika Maheshwari
(Director) (Head of Center) (GL Tech.)
4. 4
Acknowledgement
We are very thankful to everyone who supported us
for this project and gives their guidance to complete
our thesis work effectively and moreover on time.
We are equally grateful to our faculty Mr Vinod
Chauhan, who gave us moral support and guided us
in different matters and solutions regarding the topic.
We feel immensely proud in extending our heartiest
thanks to Mr Mukesh Bansal, Director of NIIT
(Jodhpur), Ms Ritika Maheshwari (GL Tech.), for
providing us a platform to improve in various fields.
They went out of their way and provide us with
openhearted help and counsel. They have been a
source of inspiration for us and their experience and
knowledge have helped us in learning and giving this
project the shape it has assumed.
Mujeeb Rehman
Khushal Singh &
Akash Singha
5. 5
System Requirements
•CPU
•Monitor
•Keyboard
•Mouse
•2GB RAM (Minimum)
•100 GB HDD (Minimum)
Hardware Requirement
•Net Beans IDE 7.4 or higher
•Java Development Kit (JDK) 7.0 or higher
•Java ME SDK 3.4 or higher.
•Java ME SDK 3.4 Plugins
Software Requirement
•Microsoft Windows 7/8
Operating System
6. 6
Contents
1. Declaring Objects 7
2. Splash Screen 9
3. Home Screen 10
4. Ticket Type Screen 12
5. Movie List Screen 13
6. Movie List Action Screen 14
7. Date, Time and Venue Screen 17
8. Ticket Screen 19
9. Customer Contact Detail Screen 21
10.Review Details Screen 21
11.Payment Option Screen 22
12.Pick Your Card Screen 24
13.State Bank of India Screen 25
14.Confirm Transaction Alert Screen 26
15.Booking Done Screen 27
16.Start App, Pause App, Destroy App Code 28
17.Command Action Method Code 29
18.Bibliography 34
7. 7
Task 1 Declaring Object
package book_my_show;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import org.netbeans.microedition.lcdui.SplashScreen;
public class BookMyShow extends MIDlet implements CommandListener {
private boolean midletPaused = false;
private final int rateP = 100;
private final int rateC = 150;
private final int rateL = 400;
private SplashScreen splashScreen;
private List list1, listHome, listMovies, listBankCards;
private Form formVenuDateTime;
private Form formTicketType;
private Form form2States;
private Form formExpandables3;
private Form formPickSeats;
private Form formReviewDetails;
private Form formCardSelect;
private DateField dateField;
private ChoiceGroup choiceGroup;
private ChoiceGroup choiceGroup2;
private ChoiceGroup chTheater;
private ChoiceGroup chTicketType;
private TextField textField;
private TextField textField1;
9. 9
Task 2 Splash Screen
public void startMIDlet() {
public SplashScreen getSplashScreen() {
if (splashScreen == null)
splashScreen = new SplashScreen(getDisplay());
splashScreen.setTitle("Book My Show");
splashScreen.setCommandListener(this);
splashScreen.setFullScreenMode(true);
splashScreen.setImage(getImage1());
splashScreen.setText("Loading...");
} return splashScreen; }
switchDisplayable(null, getSplashScreen());
} public void switchDisplayable(Alert alert,
Displayable nextDisplayable) {
Display display = getDisplay();
if (alert == null) {
display.setCurrent(nextDisplayable);
} else { display.setCurrent(alert,
nextDisplayable); } }
public Image getImage1() {
if (image1 == null) {
try {
image1 =
Image.createImage("/book_my_show/Splash
Screen.png");
} catch (java.io.IOException e) { }
}return image1; }
10. 10
Task 3 Home Screen
Screenpublic List getListHome() {
if (listHome == null) {
listHome = new List("What You Want To Do ?", Choice.IMPLICIT);
listHome.append("Tickets", null);
listHome.append("Near Me", null);
listHome.append("Search By City", null);
listHome.addCommand(getExitCommand());
listHome.setCommandListener(this);
listHome.setSelectedFlags(new
boolean[]{false, false, false});
}
return listHome;
}
public void listHomeAction() {
String __selectedString =
getListHome().getString(getListHome().getSelec
tedIndex());
if (__selectedString != null) {
if (__selectedString.equals("Tickets")) {
switchDisplayable(null, getList1());
} else if (__selectedString.equals("Near Me")) {
switchDisplayable(getAlert(), getListHome());
} else if (__selectedString.equals("Search By
City")) {
switchDisplayable(getAlert1(), getListHome());
11. 11
} } }
public Alert getAlert() {
if (alert == null) {
alert = new Alert("GPS", "This Feature Require GPS !", null, AlertType.ERROR);
alert.setTimeout(Alert.FOREVER);
} return alert}
public Alert getAlert1() {
if (alert1 == null) {
alert1 = new Alert("GPRS", "Internet Connection Error !", null, AlertType.ERROR);
alert1.setTimeout(Alert.FOREVER);
} return alert1;}
12. 12
Task 4 Ticket Type Screen
public List getList1() {
if (list1 == null) {
list1 = new List("Ticket Type", Choice.IMPLICIT);
list1.append("Movies", null);
list1.append("Events", null);
list1.addCommand(getBackCommand());
list1.setCommandListener(this);
list1.setSelectedFlags(new boolean[]{false, false});
} return list1;
}
public Alert getAlert2() {
if (alert2 == null) {
alert2 = new Alert("Information", "No events In
Your City", null, AlertType.INFO);
alert2.setTimeout(Alert.FOREVER);
}
return alert2;
}
13. 13
Task 5 Movie List Screen
public void list1Action() {
String __selectedString = getList1().getString(getList1().getSelectedIndex());
if (__selectedString != null) {
if (__selectedString.equals("Movies")) {
switchDisplayable(null, getListMovies());
} else if (__selectedString.equals("Events")) {
switchDisplayable(getAlert2(), getList1());
public List getListMovies() {
if (listMovies == null) {
listMovies = new List("Movies Currently In
Your City", Choice.IMPLICIT);
listMovies.append("2 States", null);
listMovies.append("Mai Tera Hero", null);
listMovies.append("The Expandables 3", null);
listMovies.append("Youngistaan", null);
listMovies.append("Captain America", null);
listMovies.setTicker(getTicker1());
listMovies.addCommand(getBackCommand());
listMovies.addCommand(getOkCommand());
listMovies.setCommandListener(this);
listMovies.setSelectedFlags(new boolean[]{false, false, false, false, false});
} return listMovies; }
public Ticker getTicker1() {
if (ticker1 == null) {
ticker1 = new Ticker("CLICK THE MOVIE NAME FOR ITS DETAILS"); } return ticker1; }
14. 14
Task 6 Movie List Action Screen
public void listMoviesAction() {
String __selectedString = getListMovies().getString(getListMovies().getSelectedIndex());
if (__selectedString != null) {
if (__selectedString.equals("2 States")) {
switchDisplayable(null, getForm2States());
} else if (__selectedString.equals("Mai Tera Hero")) {
switchDisplayable(null, getFormMaiTeraHero());
} else if (__selectedString.equals("The Expandables 3")) {
switchDisplayable(null, getFormExpandables3());
} else if (__selectedString.equals("Youngistaan")) {
switchDisplayable(null, getFormYoungistaan());
} else if (__selectedString.equals("Captain America")) {
switchDisplayable(null, getFormCaptainAmerica());
} } }
public Form getForm2States() {
if (form2States == null) {
15. 15
form2States = new Form("Movie Details of 2 States", new Item[]{getImageItem(), getStringItem4(),
getStringItem5(), getStringItem6(), getStringItem7(), getStringItem8()});
form2States.addCommand(getBackCommand2());
form2States.setCommandListener(this);
} return form2States; }
public ImageItem getImageItem() {
if (imageItem == null) {
imageItem = new ImageItem("2 States", getImage2(), ImageItem.LAYOUT_DEFAULT, "<Missing
Image>");
imageItem.setPreferredSize(-1, -1);
}return imageItem; }
public StringItem getStringItem4() {
if (stringItem4 == null) {
stringItem4 = new StringItem("Starring:", "Arjun Kapoor, Alia Bhatt, Ronit Roy, Amrita Singh,
Revathy.");
} return stringItem4; }
public StringItem getStringItem5() {
if (stringItem5 == null) {
stringItem5 = new StringItem("Music By:", "Shankar-Ehsaan-Loy");
} return stringItem5; }
public StringItem getStringItem6() {
if (stringItem6 == null) {
stringItem6 = new StringItem("Writen By:", "Chetan bhagat");
} return stringItem6;}
public StringItem getStringItem7() {
if (stringItem7 == null) {
stringItem7 = new StringItem("Directer By:", "Abhishek Varman");
} return stringItem7;}
public StringItem getStringItem8() {
16. 16
if (stringItem8 == null) { stringItem8 = new StringItem("Produced By:", "Sajid Nadiadwala and
Karan Johar"); } return stringItem8; }
public Image getImage2() {
if (image2 == null) {
try { image2 = Image.createImage("/book_my_show/2states.png");
} catch (java.io.IOException e) { }
} return image2;}
17. 17
Task 7 Date, Time & Venue Screen
public Form getFormVenuDateTime() {
if (formVenuDateTime == null) {
formVenuDateTime = new Form("Date |
Time | Venu", new Item[]{getDateField(),
getChTheater()});
formVenuDateTime.setTicker(getTicker());
formVenuDateTime.addCommand(getBackComman
d());
formVenuDateTime.addCommand(getOkCommand
3());
formVenuDateTime.setCommandListener(this);
formVenuDateTime.append("Movie Name: " +
listMovies.getString(listMovies.getSelectedIndex()));
} return formVenuDateTime; }
public Ticker getTicker() {
if (ticker == null) {
ticker = new Ticker("New Releses >> Youngistaan |
2 States | Expandables 3 | Tera Hero Idhar Hai");
} return ticker; }
public DateField getDateField() {
if (dateField == null) {
dateField = new DateField("Enter Date:",
DateField.DATE);
dateField.setDate(new
java.util.Date(System.currentTimeMillis()));
} return dateField; }
public ChoiceGroup getChTheater() {
if (chTheater == null) {
chTheater = new ChoiceGroup("Select Theater:", Choice.POPUP);
23. 23
Task 11 Payment Option Screen
public Form getFormCardSelect() {
if (formCardSelect == null) {
formCardSelect = new Form("Pay Via Bank Cards", new Item[]{getChoiceGroup()});
formCardSelect.addCommand(getBackCommand6());
formCardSelect.addCommand(getOkCommand7());
formCardSelect.setCommandListener(this);
}
return formCardSelect;
}
public ChoiceGroup getChoiceGroup() {
if (choiceGroup == null) {
choiceGroup = new ChoiceGroup("Select Your
Payement Option", Choice.EXCLUSIVE);
choiceGroup.append("Debit / Credit Card",
null);
choiceGroup.append("Net Banking", null);
choiceGroup.append("Mobile", null);
choiceGroup.setSelectedFlags(new
boolean[]{false, false, false});
}
return choiceGroup;
}
24. 24
Task 12 Pick Your Card Screen
public List getListBankCards() {
if (listBankCards == null) {
listBankCards = new List("Pick Your Card", Choice.IMPLICIT);
listBankCards.append("SBI", null);
listBankCards.append("ICICI", null);
listBankCards.append("HDFC", null);
listBankCards.append("AXIS", null);
listBankCards.addCommand(getBackCommand7());
listBankCards.setCommandListener(this);
listBankCards.setSelectedFlags(new boolean[]{false,
false, false, false});
}
return listBankCards;
}
public void listBankCardsAction() {
String __selectedString =
getListBankCards().getString(getListBankCards().getSelect
edIndex());
if (__selectedString != null) {
if (__selectedString.equals("SBI")) {
switchDisplayable(null, getFormSBICardDetails());
} else if (__selectedString.equals("ICICI")) {
} else if (__selectedString.equals("HDFC")) {
} else if (__selectedString.equals("AXIS")) {
} } }
25. 25
Task 13 State Bank of India Bank Screen
public Form getFormSBICardDetails() {
if (formSBICardDetails == null) {
formSBICardDetails = new Form("State Bank of India", new Item[]{getImageItem2(), getTextField(),
getStringItem()});
formSBICardDetails.addCommand(getBackCommand8());
formSBICardDetails.addCommand(getOkCommand8());
formSBICardDetails.setCommandListener(this);
} return formSBICardDetails; }
public TextField getTextField() {
if (textField == null) {
textField = new TextField("Enter Your DEBIT / CREDIT Card
Number", null, 16, TextField.ANY | TextField.PASSWORD);
} return textField; }
public StringItem getStringItem() {
if (stringItem == null) {
stringItem = new StringItem("SBI Terms & Conditions*",
"Additionally a processing fee will be charged on the
credit or debit transactions amount at the rate of 2%
subject to a minimum on the given amount will be
applied.");
} return stringItem; }
public Image getImage4() {
if (image4 == null) {
try { image4 = Image.createImage("/book_my_show/Sbi.PNG");
} catch (java.io.IOException e) {
} } return image4; }
26. 26
Task 14 Confirm Transaction Alert
Screen
public Alert getAlert3() {
if (alert3 == null) {
alert3 = new Alert("Confirmation", "Are you sure u
want to proceed with transaction ?", null,
AlertType.CONFIRMATION);
alert3.addCommand(getBackCommand9());
alert3.addCommand(getOkCommand10());
alert3.setCommandListener(this);
alert3.setIndicator(getIndicator());
alert3.setTimeout(Alert.FOREVER);
} return alert3; }
27. 27
Task 15 Booking Done Screen
public Form getFormCongratz() {
if (formCongratz == null) {
formCongratz = new Form("Booking Done", new Item[]{getImageItem3()});
formCongratz.addCommand(getExitCommand2());
formCongratz.setCommandListener(this);
} return formCongratz; }
public Image getImage5() {
if (image5 == null) {
try {
image5 = Image.createImage("/book_my_show/congratulations.png");
} catch (java.io.IOException e) { }
} return image5; }
28. 28
Task 16 Start App, Pause App, Destroy App Code
public Display getDisplay() {
return Display.getDisplay(this);
}
public void exitMIDlet() {
switchDisplayable(null, null);
destroyApp(true);
notifyDestroyed();
}
public void startApp() {
if (midletPaused) {
resumeMIDlet();
} else {
initialize();
startMIDlet();
}
midletPaused = false;
}
public void pauseApp() {
midletPaused = true;
}
public void destroyApp(boolean unconditional) {
}
}
29. 29
Task 17 Command Action Method Code
public void commandAction(Command command, Displayable displayable) {
public Command getExitCommand() {
if (exitCommand == null) {
exitCommand = new Command("EXIT", Command.EXIT, 0);
}
return exitCommand;
}
public Command getScreenCommand() {
if (screenCommand == null) {
screenCommand = new Command("BookScreen", Command.SCREEN, 0);
}
return screenCommand;
}}
public Command getOkCommand() {
if (okCommand == null) {
okCommand = new Command("SELECT", Command.OK, 0);
}
return okCommand;
}
}}}
public Command getBackCommand() {
if (backCommand == null) {
backCommand = new Command("BACK", Command.BACK, 0);
}
return backCommand; }
30. 30
public Command getOkCommand2() {
if (okCommand2 == null) {
okCommand2 = new Command("PICK SEATS", Command.OK, 0);
}
return okCommand2;
}
if (displayable == alert3) {
if (command == backCommand9) {
switchDisplayable(null, getFormSBICardDetails());
} else if (command == okCommand10) {
switchDisplayable(null, getFormCongratz());
}
} else if (displayable == form2States) {
if (command == backCommand2) {
switchDisplayable(null, getListMovies());
}
} else if (displayable == formCaptainAmerica) {
if (command == backCommand12) {
switchDisplayable(null, getListMovies());
}
} else if (displayable == formCardSelect) {
if (command == backCommand6) {
switchDisplayable(null, getFormReviewDetails());
} else if (command == okCommand7) {
switchDisplayable(null, getListBankCards());
}
} else if (displayable == formCongratz) {
31. 31
if (command == exitCommand2) {
exitMIDlet();
}
} else if (displayable == formExpandables3) {
if (command == backCommand) {
switchDisplayable(null, getListMovies());
}
} else if (displayable == formMaiTeraHero) {
if (command == backCommand10) {
switchDisplayable(null, getListMovies());
}
} else if (displayable == formPickSeats) {
if (command == backCommand3) {
switchDisplayable(null, getFormTicketType());
} else if (command == okCommand4) {
switchDisplayable(null, getFormProvideUrDetails());
}
} else if (displayable == formProvideUrDetails) {
if (command == backCommand4) {
switchDisplayable(null, getFormPickSeats());
} else if (command == okCommand5) {
switchDisplayable(null, getFormReviewDetails());
}
} else if (displayable == formReviewDetails) {
if (command == backCommand5) {
switchDisplayable(null, getFormProvideUrDetails());
} else if (command == okCommand6) {
32. 32
switchDisplayable(null, getFormCardSelect());
}
} else if (displayable == formSBICardDetails) {
if (command == backCommand8) {
switchDisplayable(null, getListBankCards());
} else if (command == okCommand8) {
switchDisplayable(null, getAlert3());
}
} else if (displayable == formTicketType) {
if (command == backCommand) {
switchDisplayable(null, getFormVenuDateTime());
} else if (command == okCommand2) {
switchDisplayable(null, getFormPickSeats());
}
} else if (displayable == formVenuDateTime) {
if (command == backCommand) {
switchDisplayable(null, getListMovies());
} else if (command == okCommand3) {
switchDisplayable(null, getFormTicketType());
}
} else if (displayable == formYoungistaan) {
if (command == backCommand11) {
switchDisplayable(null, getListMovies());
}
} else if (displayable == list1) {
if (command == List.SELECT_COMMAND) {
list1Action();
33. 33
} else if (command == backCommand) {
switchDisplayable(null, getListHome());
}
} else if (displayable == listBankCards) {
if (command == List.SELECT_COMMAND) {
listBankCardsAction();
} else if (command == backCommand7) {
switchDisplayable(null, getFormCardSelect());
}
} else if (displayable == listHome) {
if (command == List.SELECT_COMMAND) {
listHomeAction();
} else if (command == exitCommand) {
exitMIDlet();
}
} else if (displayable == listMovies) {
if (command == List.SELECT_COMMAND) {
listMoviesAction();
} else if (command == backCommand) {
switchDisplayable(null, getList1());
} else if (command == okCommand) {
switchDisplayable(null, getFormVenuDateTime()); }
} else if (displayable == splashScreen) {
if (command == SplashScreen.DISMISS_COMMAND) {
switchDisplayable(null, getListHome());
} } }