-2

I am having trouble developing my app, mainly because I am new to android and the best practices in terms of the app structure.

Basicly, I am looking to create an app that can create, read, edit and delete "Users". Each one of those users has a set of questions that need to be answered in a form (e.g. "name", "age, etc.). That form is divided in 4 parts that i divided in fragments in a ViewPager.

My questions:

  • I have an activity to create users and a list activity to show existing users. When one decides to edit a "user", I want the creation form to be shown but populated by exisiting data (that the user can then edit). Is this the best way?

  • Is using SQLite the best option for what I am looking for?

  • Is there a way of defining some kind of file, or file extension for a user? I mean, in Word you have a .doc file that you can edit, read, etc. Is something elegant like this feasible in android?

I am having some doubts, but I hope to start pointing myself in the right direction from now on. Thanks in advance!

4

2 に答える 2

1

ユーザーを作成するアクティビティと、既存のユーザーを表示するリスト アクティビティがあります。「ユーザー」を編集することにした場合、作成フォームを表示するが、既存のデータ (ユーザーが編集できるデータ) を入力する必要があります。これが最善の方法ですか?

はい、そうではありません。これは、好みと最終的な顧客によって異なります。

SQLite を使用することは、私が探しているものに最適なオプションですか?

はい、間違いなく、それが目的です。

ユーザーに対してある種のファイルまたはファイル拡張子を定義する方法はありますか? つまり、Word には、編集したり、読んだりできる .doc ファイルがあります。Android でこのようなエレガントなものは実現できますか?

ファイルの種類またはファイル拡張子の意味がわかりません。情報を SQLite に保存する場合、ファイルについて気にする必要はありません。

于 2013-07-17T15:53:40.777 に答える