android


Uploading the whole sqlite database to google app engine


I just want to know if it is possible to upload from an android phone the whole sqlite database to google app engine and then download it from there to my computer.
Sure. The DB is just a file, you need to get the path to it, and then post it to App Engine. Depending on the size of the DB, you might need to use the Blobstore, there is a limit to the size you can store in a regular entity.
You mean uploading to GAE Blobstore?
It might be a better idea to upload it to Google Storage rather than app engine if you really want to just dump the file
This is based on the conversation that I and #JustCurious had in the question comments
You can get the DB file as follows
String path = getDatabasePath("myDB.db").getAbsolutePath() + "/myDB.db"
and Email it out
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("plain/text");
emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, new String[]{"to#email.com"});
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject");
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "Text");
emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://"+ path));
context.startActivity(Intent.createChooser(emailIntent, "Send mail..."));

Related Links

how can i get the source of my imageview
Redirect to specific URL in Android
Android auto save data upon scan result
Realm Query in multiple table
Android Studio - Ruined seekbar
Gravity sensor listener not working
Change values in array in android
Custom button on maps activity android
Android Studio: Assest with coding in android studio
Android GoogleMaps - Inheriting a map fragment from a base fragment activity abstract class
Layout as selector item in Android
Android studio version 2.3 not working
CSS Portrait Media Query not detected on 720p and up phones
Issue with Fragment lifecycle in Android app
Data from firebase database is not displayed properly
Android 25 and Espresso 2.2.2 fails instrumentation test annotations failure

Categories

HOME
django
facebook-oauth
hyperlink
eslint
character-encoding
package
knitr
sublimetext
seo
parameters
regular-language
babeljs
echo
spring-session
title
accessibility
windows-ce
redis-sentinel
symmetricds
fileserver
jersey-1.0
drive
ksh
squashfs
pimcore
dynamically-generated
opentk
progress-bar
errbot
boost-asio
kudu
linkedhashmap
card.io
gnat-gps
vue-chartjs
servicestack-text
xdocreport
connection-pool
opensmpp
xv6
postgresql-8.4
microsoft-metro
drupal-theming
oim
libgphoto2
proget
serde
chai-as-promised
user-defined-fields
edit
skin
jqchart
flyout
template-toolkit
google-photos
gameplay-kit
donations
taocp
simplepie
iotivity
spring-cloud-feign
observablecollection
swizzling
mediametadataretriever
findfirst
concurrentmodification
poppler
text-search
ocra
jsvc
dnssec
alloy-ui
matlab-deployment
osc
dot.js
infosphere-spl
lambda-architecture
rcaller
git-repo
android-audiorecord
isqlquery
ice-cube
intersect
apache-whirr
cgimage
mysql-error-1205
massive
django-paypal
ruby-1.8
easyb
scrubyt
fdf

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App