Discussion Forums  >  Suggestions, Ideas, Wish List

Replies: 5    Views: 173

MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
04/25/12 12:31 PM (13 years ago)

How to create an app that allows data insertion

Hi guys, want to make an app where a user has to input information. Kind of like a book the needs to be completed. Example, I need pages where one has to complete the filed name, age, whatever... And also be able to somehow backup and or export the info. What kind os pages should I use, any ideas? Thanks.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/25/12 02:44 PM (13 years ago)
This can be done with HTML and a connectionto a server just as it would be done on a website. Now getting it to work offline is something I haven't worked out. Fred
 
chrspe
Android Fan
Profile
Posts: 95
Reg: Jan 07, 2012
Buffalo, WY
5,400
like
04/25/12 08:25 PM (13 years ago)
Fred, I have been playing with php. Webview does run php forms. I'm also working on an experiment, php guestbook that writes the form data to a flat file (text file) rather than a database. Now, if the php will run in webview it can be entered in Custom HTML. The part I am trying to figure is how to get the form to save (or append) to a text file that is in BT_docs folder instead of on a online server. I do have it working online, there has got to be a way to save to an offline text file. What are everyones thoughts?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/25/12 08:59 PM (13 years ago)
Interesting. Over the past few weeks I've written some HTML, Javascript, JSON docs that I write to from, alert from. That's easy. Been studying MySQL to figure out how to post to a database. It seems as if you create the database and put it in the Assets > BT_Docs folder then it should be the same process as a web site. Yesterday I created my first .php file on a device. The php.org website was yesterdays homework. Please send me your code and I believe we can solve this. Fred
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/25/12 09:05 PM (13 years ago)
You're correct about the BT_Docs folder. Here's what I wrote in my Source Code (Android) article: assets (folder): You can use it to store raw asset files. Files that you save here are compiled into an.apk file as-is, and the original filename is preserved. You can navigate this directory in the same way as a typical file system using URIs and read files as a stream of bytes using the theAssetManager. For example, this is a good location for textures and game data. Android doesn't require any files in this directory. The assets folder holds three folders (BT_Audio, BT_Docs, BT_Video) and one file (BT_config.txt).
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
04/26/12 06:56 AM (13 years ago)
Thanks guys. I'll try it.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.