Explicit Intent and Data Persistence

Android Apps programs can have one or more Activity's, each of which can interact one to another. As an Activity interacts with another using Intent, an Intent may be able to transfer data items. Each data item is added together with its name (or label) to a Bundle. A Bundle can have zero or more (name, value) pairs associated with itself. An Intent may have zero or more Bundles.

This assignment is asked to create three Activity's. Activity1 may shape and look like Figure 1. A user input data can be transmitted to Activity1 when the Button "To Boss" is clicked. Before transmitting data, the button at the bottom should be clicked. This will be explained later.

Suppose that a user input "orange" is entered in Activity1 (Figure 1.a). When the button "To Boss" is clicked, then Activity 2 is shown as in Figure 1.b. Then, in Activity2, the comment is written and the item Orange is approved by johnn. Do not worry about or try to understand the scenario, it is a simple example. However, the point here is for you to understand technical aspects and implementation detailed skills. Then, when the button "Return" is clicked in Activity2 (Figure 1.c), Activity1 is back on with the message "orange is approved" in Figure 3.a.

Now, in Activity1, the button in the middle, "To Save" is clicked (Figure 3.a), then Activity3 is shown (Figure 3.b).

Recall that there are three possible ways to manage data persistently. The data container can be (1) a file inside the device, (2) a SQLite insider the device, and (3) a database remotely. In this assignment, the first two will be implemented. To do this, in Figure 1, the button at the bottom "Initialization for File and SQLite" will create a file and a database.

In Activity3 (Figure 3.b), there are four buttons: the upper two buttons will access a file, and the lower two buttons for SQLite storage. Figure 3.c shows the content of the internal file as the button "Retrieve from File" is clicked. Figure 4.a shows when the button "Store to Local DB" is clicked, and Figure 4.b for retrieval. If the "Back" button is clicked, Activity1 is back on (Figure 1).

This can be repeated. Figure 5.a and Figure 5.b show the case of two items stored.

Implementation Plan:

1. Try first Activity1 and Activity2

2. Then, Activity3 is implemented, but only for file persistency.

3. Finally, Activity3 with SQLite

The main java file and main xml file are posted. Look into the files and see what you need to do more. Two more java files and also xml files are needed.

Evner: Android, Mobile App Development

Se mere: explicit intent data, the container store, plan b android, mobile ways, mobile local storage, internal storage android, intent android, container store, bundle android, android shape, android internal storage, android intent, android figure, android bundle, android xml persistence, simple java programs, name three programs, mobile programs, intent, shape java file

Om arbejdsgiveren:
( 2 bedømmelser ) ny, United States

Projekt ID: #4029747

Tildelt til:


sir, nice to meet you. please check me pmb. demo is ready. i wait your response. i have ability about android, html5, phonegap.

$50 USD in 0 dage
(10 bedømmelser)