title: Can two Android devices, running different applications, use the same SQLite Database?
body: <p>I read <a href="https://stackoverflow.com/questions/7494062/storing-large-data-locally-or-online-for-android-app">this question</a> and wondered if the same would apply to my situation. </p>
  
  <p>I want to write <code>accelerometer</code> values (<em>x</em>, <em>y</em> and <em>z</em>) from an <code>Android</code> phone to a <code>database</code> and retrieve it with another app on a tablet to display a graph of the values changing over time. This does not have to happen in real time.</p>
  
  <p>So basically my questions are:</p>
  
  <p>1) can two different applications on two different <code>Android</code> devices use the same <code>SQLite</code> database?</p>
  
  <p>and</p>
  
  <p>2) how do I specify an <code>IP</code> so that the one app on the phone writes to a specified database and the other app on the tablet reads from that same specified database?</p>
  
  <p>I can already read the <code>Accelerometer</code> values and I know how to create a graph, but I'm having trouble with the database component of my project since everything I come across seems to be storing the values on the device's <code>SD card</code> or in a database that is only accessible to the device itself and no other applications or devices.</p>
  
  <p>I've read about specifying a <a href="http://groups.google.com/group/android-developers/browse_thread/thread/633b83a9739f5bf3?pli=1" rel="nofollow noreferrer">static IP</a> by first obtaining a <code>ContentResolver</code>: </p>
  
  <pre><code>ContentResolver cr = getContentResolver(); 
  </code></pre>
  
  <p>then adapting the <code>settings</code>: </p>
  
  <pre><code>Settings.System.putString(cr, Settings.System.WIFI_USE_STATIC_IP, "1"); 
  Settings.System.putString(cr, Settings.System.WIFI_STATIC_IP, "6.6.6.6");
  </code></pre>
  
  <p>and then enabling the <code>permissions</code>: <code>WRITE_SETTINGS</code> and <code>WRITE_SECURE_SETTINGS</code>. </p>
  
  <p>but I'm not sure where exactly to write this or how to use it correctly.</p>
  
  <p>Please direct me to where I can find some more information regarding setting up <code>SQLite</code> databases and how it can be used by two different applications on two different <code>Android</code> devices?</p>
  
  <p>Thank you in advance.</p>
  
  <p>P.S. I'll update this question with some of my code soon.</p>