App Inventor query - android

I have a simple four button menu on my opening screen of my tentative road safety application on the App Inventor. What do I do with the 'screenName' and 'startValue' variables?
The first button of my app directs you to a plain tips screen with numerous simple text tips in driving.
The second button of the opening screen will give a searchable list of applicable fines to traffic violations. How do I implement these lists. Do I use an internal DB, fusion tables or Web DB?
The third button button gives us a list of emergency numbers wherein I plan to use the MakePhoneCall() feature.
The last one is a road sign quiz on the lines of the popular logo quiz.
This is what it looks like :) http://oi58.tinypic.com/mb1xja.jpg
So, how do I implement the lists using the DB and how do I link screens or rather, the buttons to various screens?

For multiple screen apps, see the Manager Screen Demonstration and Tribblehunter's Multiple Screen Method.
For Working with lists, see here.
Your data is static, which means, you could store it in global variables in lists and read it from there, in this case no database is necessary.
Btw, it also helps to do the tutorials first to learn the basics of App Inventor.

Related

creating android text-based game

I am thinking about creating a text-based game (similar to gamebooks) for android device. In this moment only theoretically. Do you have some advice please, which way to go?
You probably know how gamebooks works, but the gamebook I want, will be very easy, should work like this:
User has shown some image, text and 3 options (questions), he decides which option to click, then a new page is showing (according to the clicked option) with another image, text and another 3 options. Then again, the user clicks one option, another page opens, etc.
My question is not how to do it programmatically, but how to start with this in Android Studio, what system to use for such game on android or which way to go.
Because I think it has no sense to create intents after each click, as there might be hundreds of clickable options.
I have already created such game on my website with php/html/js, but I want to create it also offline for android.
Intents implies one activity per page - unmaintainable.
You should work with a database and load based on user interaction. So you'll need to learn about Databases and Asynchronicity (working in the background while updating the UI so the user knows)

Theoretical inquiry about listviews and multiple activities in android studio

New developer here, for a personal project I want to develop a shop like app. I was wondering if it's possible to have one listview, and upon clicking each entry bring up another listview for each entry, and then upon clicking that it will bring up a page for each product.
Do I need separate activities for each product and listview I want to make? Or is it possible to make a few listviews and have the listview grab the string[]?
Technically, it is possible to have several ListViews and one activity. However, you should think about if the UX you want to achieve will be intuitive and familiar for your users, and preferably following Material Design guidelines. For example, take a look at the approach Google Play Store app took with with tabs, chips, and lists / grids.

Android - How to make blocks with content, simular to post-block in facebook's app

I am working on simple app, similar to Instagram, Facebook app or G+ app. I want to make board with other users posts. The posts on board will be displayed in bocks, simular to Facebook:
How should i create such blocks, that i can fill with downloaded data and add up to the board, modify them or remove them from board while user is still in board activity? Is there any class that i could use?
You should probably look at ListView.
It lets you maintain a list of objects and build views from visible ones, add more dynamically etc.
As for the actual block.. Depends on how you want to display them. I hope you know about View types such as LinearLayout etc, if not you should probably read some basic guide for android programming before you begin.

Search Functionality Within PhoneGap App

I am working on a relatively simple app using PhoneGap that is designed to be a field guide. Basically there will be buttons for different sections of the field guide. Tapping on one of these buttons will transition the user to another page with the content.
However, I would like to implement search functionality if possible. For example, the user could input a query and the app will return which "pages" that query appears on. I'm not really sure what the best way to go about implementing this would be, so any suggestions would be greatly appreciated.
The only type of search function I've used thus far with PhoneGap is using a filter search to search on a set of list elements.
If you have lots of .html files with your conten, a good option is to use Zoom search engine.
You have to execute a program and it will scan your .html files and index keywords.
You will have to style yourself the "search results" page, because the default isn't mobile friendly

Searching within my own application

So im building an Android application and want to include a search feature to let users use it instead of having to look through the apps many activities and pages. Cant seem to find any info on the best way to do this anywhere else. Thanks in advance
Ok so im building an app that will serve as a game guide for a popular PS3 game. Within the app will be many subjects and topics and i would like to give users the ooption to just use a search bar on the main screen of the app to search throughout the entire application and then provide them with a list of results that are clickable and take them directly to the chosen activity or place in the application. (Say it was an app for making whiskey, i would want them to be able to search on the main page for Jack Daniels instead of hitting buttons that navigate from Mainpage>American Whiskey's>Bourbon>Jack Daniels. )

Categories

Resources