Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - External Data Storage

External Data Storage

Put your problem here if it does not fit any of the other categories.

External Data Storage

Postby sxe » Tue Jan 26, 2010 7:37 pm

Hi there,

at first i will explain what i want to do, so you can get my problem better, i think.
I'm looking for a way to store some informations that can be read by other programs and humans directly too. I read many tutorials, how this can be achieved with android but i'm not really sure whats the best way.

Here is what i need.
1. A directory where i can put some files that can be read be my application (maybe xml files or any other format that can be used to save structured data.
2. A human should be able to edit this files with a text editor or add new files in this directory.

That are the two MAIN requirements i have. But i have some more. :)


I don't know how to achieve 1. Hopefully i can create a directory somewhere on the phone that everybody can reach.

Point 2: The last days i tried to discover which file formats fits best to my needs. Here is the file structure i have to read. (its in xml but its only a test.) I'm here to find the best solution what file format is the best.

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <?xml version="1.0" encoding="UTF-8"?>
  3.  
  4. <main>
  5.  
  6.      <mainurl>url</mainurl>
  7.  
  8.      
  9.  
  10.      <group>
  11.  
  12.         <test name="someinfo">value</test>
  13.  
  14.         <var name="some other info">morevalue</var>
  15.  
  16.      </group>
  17.  
  18.  
  19.  
  20. </main>
  21.  
  22.  
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


After several days i think xml and android is not much fun. The problem i have is that the child quantity in "group" are variable. There could be two childs (like in my example) but there could be ten too. So i cannot reach them by name and thats the main problem i have. I didn't see how to achieve this with xml.

I would be very thankful if someone can help me.

thx in advance

Andy

P.S.: I'm no native speaker, i hope most of my questions make sense. ;)
sxe
Freshman
Freshman
 
Posts: 3
Joined: Tue Jan 26, 2010 7:11 pm

Top

Postby sxe » Tue Jan 26, 2010 10:29 pm

Hey guys,

i helped myself. I use json for data storage. :)
But my first problem, where to save this files, still exists.

cya
sxe
Freshman
Freshman
 
Posts: 3
Joined: Tue Jan 26, 2010 7:11 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 13 guests