Good day mates! I want to make an android application that is used to record the attendance of a certain group of people, a class for example. I am searching the internet about my problem and yet I didn't found an answer. My problem is this, I want to have an app that generates an excel spreadsheet and then add data to it from time to time. I have already made an application that makes an excel file but I can't edit or update data in its cells. I respectfully ask for your help with this mates. Any guidance and information will be greatly appreciated. Thank you!
I would suggest you to use SQLite Database which is very easy to create and maintain. You need only to create one helper class to perform all db actions.
See this and related examples.
Related
I searched for along time for how can I use a pre made Excel table, as a reading database in Xamarin.Android.
Of course I can't use it directly, so I tried many different ways. For example, convert to Json, upload to Firebase, and later download it, while the program runs, and fill the sqlite. This way is not effective aadn most of the time doesn't work.
Is there any chance, that someone could please explain or even give a tutorial on how to create sqlite database and work with it directly? If there any other worse or better ways to do it, please tell me.
Thank You!
If you want use sqlite DataBase for Xamarin.Android, you could use sqlite-net-pcl.
Install from NuGet: sqlite-net-pcl
You could cgeck the MS docs from the link below for reference. https://learn.microsoft.com/en-us/xamarin/android/data-cloud/data-access/using-sqlite-orm
totally new to this site and app development in general
i have been teaching myself for a couple weeks now
been looking around for a few days now to a solution to my issue
overall plan is to create an app for my work that will allow me to scan items to make an order
rigt now ive been trying to get the databasing stuff down
i figured out how to read and write to the Firebase database
but the read part isnt quite working that well
* i want to retrieve data from the database and insert or assign it into individual textboxes and or labels *
attached are screenshots of the designer view, codeblocks and firebase page. also i have included the .aia file as well
any help would be greatly appreciated!
lemme kno if more inf is needed
thank you so much in advance!
codeblocks
designview
firebasedb
dropbox link for AIA file
I think I understand your question:
You can write and read data per tag.
Make sure your ProjectBucket is correct.
I would like to ask if any of you out there uses android studio and sqlite for apps that require multiple users to access the database? I have been looking for source codes and examples online, but haven't seen any. I understand that other database might be better but I only have enough time to use sqlite as I am alr using it now. Could anyone help me with example source codes?
viewComment.setText(name+comment);
replace with below code
viewComment.append("\n"+name+comment);
Update -
limit number comments - use counter , after certain number of hits stop appending to text view.
U can make scrollable too.
for above both please check your requirements or UI/UX teams.
You will have to work with RecyclerView here. Add a different layout resource file in your layout folder and bind it to the RecyclerView and all your comments must be stored somewhere, like in a database. You will then achieve your desired structure.
I'm working on an android project that requires writing to a created database and later reading from it.
The idea is for the user to fill out a form and then submit, it will submit into a database table in the first row. Then if they hit submit again it will submit to the second row.
I have all of the activity layouts defined but I'm confused on how to make the databases. I'm thinking maybe I can make a content provider?
Can anyone advise me on what to do? All of the questions I look at on here skip the baby steps, and that's what I need
Yes you should make a content provider. There are a lot of great tutorials out there for making databases - try section 8.0 of this one
http://www.vogella.com/articles/AndroidSQLite/article.html
Since you plan to use a pre-loaded (created) database wherein the DB structure has been already defined, Refer to this link on how to include your pre-created DB file into your app :
http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/
And to then add new data to your database refer to this tut.. You can ignore the create Table part here since you already have the table structure ready.
http://www.androidhive.info/2011/11/android-sqlite-database-tutorial/
Hope this helps.
First of all you dont need Content provider...Content provider is only need when you want to provide your data to other application...Its kind of central repository of data for other applications.
Now You have to use the SQLITE database in android...Since android support sqlite database..
Below link will guide you...
http://developer.android.com/training/basics/data-storage/databases.html
Google has large manuals for all the aspects of Android development http://developer.android.com/training/basics/data-storage/databases.html
it might be done without content providers too.
this might be helpful.
http://www.androidhive.info/2011/11/android-sqlite-database-tutorial/
I am new to android.
I have an application where i am calculating the loan amount based on salary. For that I have a database of salary,Tax and medicare column. The tax and medicare depends upon the salary bracket. I want to know how to create the database and access it through the coding.
If any good sample code example is there please give the link.
Thanks in advance.
Here you can find a simple and straight forward tutorial from anddev.
Summarize from the tutorial:
Description: We'll need to to the
following things:
Create a DataBase (generally this is done just once)
Open the DataBase
Create a Table (generally this is done just once)
Insert some Datasets
Query for some Datasets
Close the Database
Android uses the SQLITE database Read up on it here: http://www.screaming-penguin.com/node/7742
I assume you have read the official Android developer guide. If not, there is a wealth of information about doing anything and everything you'd want on an Android device.
Since Android uses SQLite as it's internal database, I'd suggest reading documentation about it + the data storage part of Android guide.
These would be good starting points.
You may try this simple tutorial with nice graphics illustration.