|
|||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||
|
Announcements
Want a new Job?
Chapters
Services
Feature Zones
|
Note: This is an unedited contribution. If this article is inappropriate,
needs attention or copies someone else's work without reference then please
Report This Article
IntroductionIn the first article of this series I started walking you through the creation of an end-to-end BlackBerry application that will serve as a mobile front-end to my Knowledge Base sample web application. The requirements for the mobile application are pretty simple:
And my building blocks look like this:
ImplementationPreviously, I finished the Application Class and the Home Screen
I will continue now with the rest of the screens. Tags ScreenThe Tags Screen displays a list of the existing tags in the database. Beside each tag there will be a count of the articles the tag applies to.
Search ScreenThis screen will allow our users to initiate an articles search by typing one or more words belonging to the article’s title.
The searchArticles() function is present in both the Tags Screen and the Search Screen and so far it only pushes the Articles Screen to the top of the stack. Later I will add the code that will request my server-side handler to issue the database query and return any results. private void searchArticles() {
String searchPhrase = searchPhraseField.getText().trim();
if (null != searchPhrase && searchPhrase.length() > 0) {
UiApplication.getUiApplication().pushScreen(articlesScreen);
// TODO: Trigger the search function in the Articles Screen.
} else {
Dialog.alert("You must enter a search phrase.");
}
}
|
||||||||||||||||||||||||||||||
| You must Sign In to use this message board. | ||||||
|
||||||
|
General
News
Question
Answer
Joke
Rant
Admin
|
PermaLink |
Privacy |
Terms
of Use
Last Updated: 15 Jul 2008 Editor: Chris Maunder |
Copyright 2008 by MiamiCoder Everything else Copyright © CodeProject, 1999-2008 Java | Advertise on the Code Project |