[android-developers] Re: Save Html file Data

2014-09-19 Thread Rahul Kaushik
Anyone?


On Mon, Sep 15, 2014 at 3:10 PM, Rahul Kaushik rahulkaushi...@gmail.com
wrote:

 Hi,

 I have an html file stored in assets folder ,i open it in webview with
 loadurl() in offline mode(No internet ) and fill the data in relative
 text-field ,so that when internet is available i can post it to the server

 Problem:
 when i fill the html form ,and press the back button or home button or
 move to other app ,the filled data is lost
 How i can persist that data so that when i load it in webview i can have
 old data filled

 Please Suggest

 Thanks
 RK


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: Save Html file Data

2014-09-19 Thread SIVAKUMAR J
Better you use data base for storing data .When net comes (online) in
background send the data to server

On Fri, Sep 19, 2014 at 11:56 AM, Rahul Kaushik rahulkaushi...@gmail.com
wrote:

 Anyone?


 On Mon, Sep 15, 2014 at 3:10 PM, Rahul Kaushik rahulkaushi...@gmail.com
 wrote:

 Hi,

 I have an html file stored in assets folder ,i open it in webview with
 loadurl() in offline mode(No internet ) and fill the data in relative
 text-field ,so that when internet is available i can post it to the server

 Problem:
 when i fill the html form ,and press the back button or home button or
 move to other app ,the filled data is lost
 How i can persist that data so that when i load it in webview i can have
 old data filled

 Please Suggest

 Thanks
 RK


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 


*Thanks  Regards,SIVAKUMAR.J
http://stackoverflow.com/users/385138/sivakumar-j*

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: Save Html file Data

2014-09-19 Thread mayank k varshney
bass the db object to your html through JS. Save the data when your web
view activity destroyed and reload it once it comes on the foreground.
Email Signature2


Want to know when your emails are opened? Click Here
https://node.emailcherry.com/log_event?user_id=c7bc4b3b3d79bb141eb799ddad03f29bce2b391atime=1410509799945dst=https%3A%2F%2Femailcherry.comaction=signature_clicked
 [image:
biz-tracker]

On Fri, Sep 19, 2014 at 12:15 PM, SIVAKUMAR J j.sivakumar...@gmail.com
wrote:

 Better you use data base for storing data .When net comes (online) in
 background send the data to server

 On Fri, Sep 19, 2014 at 11:56 AM, Rahul Kaushik rahulkaushi...@gmail.com
 wrote:

 Anyone?


 On Mon, Sep 15, 2014 at 3:10 PM, Rahul Kaushik rahulkaushi...@gmail.com
 wrote:

 Hi,

 I have an html file stored in assets folder ,i open it in webview with
 loadurl() in offline mode(No internet ) and fill the data in relative
 text-field ,so that when internet is available i can post it to the server

 Problem:
 when i fill the html form ,and press the back button or home button or
 move to other app ,the filled data is lost
 How i can persist that data so that when i load it in webview i can have
 old data filled

 Please Suggest

 Thanks
 RK


  --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




 --


 *Thanks  Regards,SIVAKUMAR.J
 http://stackoverflow.com/users/385138/sivakumar-j*

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Android Developers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to android-developers+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-developers] Re: Save Html file Data

2014-09-19 Thread Nobu Games
Or the simpler alternative: use the HTML5 persistent local storage feature, 
so everything can be handled from within the same HTML page.

http://stackoverflow.com/questions/5899087/android-webview-localstorage
https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Storage

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Android Developers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.