Skip to main content

android device to backup data on local server



I am working on the android application that would perform functionality and ultimately save the data(Highly Confidential) in a local server, I am a newbie, I need ideas from you people in the shape of steps that i need to follow for the implementation. I cant expose the main main idea but the thing is store the customer data (in the database placed on server) on the server via android tablets, there will be multiple tablets feeding the data in parallel. I will appreciate if someone would suggest the appropriate tutorials (for webservice creation/usage etc)




Comments

  1. Follow this link written by Roto Meier, it very well explains how you should back up the data.

    The following is an excerpt from it..

    "The Backup Manager was added to Android in Froyo and it's about as trivial to implement as I can conceive.
    All you need to do is extend the BackupAgentHelper and create a new SharedPreferencesBackupHelper within it's onCreate handler.
    As shown in the PlacesBackupAgent, your Shared Preferences Backup Helper instance takes the name of your Shared Preference file, and you can specify the key for each of the preferences you want to backup. This should only be user specified preferences - it's poor practice to backup instance or state variables."

    public class PlacesBackupAgent extends BackupAgentHelper {
    @Override
    public void onCreate() {
    SharedPreferencesBackupHelper helper = new
    SharedPreferencesBackupHelper(this, PlacesConstants.SHARED_PREFERENCE_FILE);
    addHelper(PlacesConstants.SP_KEY_FOLLOW_LOCATION_CHANGES, helper);
    }
    }


    "To add your Backup Agent to your application you need to add an android:backupAgent attribute to the Application tag in your manifest."

    <application android:icon="@drawable/icon" android:label="@string/app_name"
    android:backupAgent="PlacesBackupAgent">


    "You also need to specify an API key (which you can obtain from here: http://code.google.com/android/backup/signup.html)"

    <meta-data android:name="com.google.android.backup.api_key"
    android:value="Your Key Goes Here" />


    "To trigger a backup you just tell the Backup Manager that the data being backed up has changed. I do this within the SharedPreferenceSaver classes, starting with the *FroyoSharedPreferenceSaver*."

    public void savePreferences(Editor editor, boolean backup) {
    editor.commit();
    backupManager.dataChanged();
    }

    ReplyDelete
  2. There is a ton of HTTP Based services frameworks, and almost every pure java framework
    (like CXF, Axis etc.) client will run on android - you just have to pick one that sucks less (this is hard part) and is easier to handle.

    For confidential and sensitive data I would use encrypted channels - but this is framework
    independent.

    ReplyDelete

Post a Comment

Popular posts from this blog

Why is this Javascript much *slower* than its jQuery equivalent?

I have a HTML list of about 500 items and a "filter" box above it. I started by using jQuery to filter the list when I typed a letter (timing code added later): $('#filter').keyup( function() { var jqStart = (new Date).getTime(); var search = $(this).val().toLowerCase(); var $list = $('ul.ablist > li'); $list.each( function() { if ( $(this).text().toLowerCase().indexOf(search) === -1 ) $(this).hide(); else $(this).show(); } ); console.log('Time: ' + ((new Date).getTime() - jqStart)); } ); However, there was a couple of seconds delay after typing each letter (particularly the first letter). So I thought it may be slightly quicker if I used plain Javascript (I read recently that jQuery's each function is particularly slow). Here's my JS equivalent: document.getElementById('filter').addEventListener( 'keyup', function () { var jsStart = (new Date).getTime()...

Is it possible to have IF statement in an Echo statement in PHP

Thanks in advance. I did look at the other questions/answers that were similar and didn't find exactly what I was looking for. I'm trying to do this, am I on the right path? echo " <div id='tabs-".$match."'> <textarea id='".$match."' name='".$match."'>". if ($COLUMN_NAME === $match) { echo $FIELD_WITH_COLUMN_NAME; } else { } ."</textarea> <script type='text/javascript'> CKEDITOR.replace( '".$match."' ); </script> </div>"; I am getting the following error message in the browser: Parse error: syntax error, unexpected T_IF Please let me know if this is the right way to go about nesting an IF statement inside an echo. Thank you.