Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

Phonegap, Lawnchair and Cookie in Android

I'm using Lawnchair with in my Android Phonegap App. For most of my users, Lawnchair works well. But for some reasons, some of my users say that the settings are not saved (i use Lawnchair with DOM Adapter to save settings). Are there any other adapters that i can use with phonegap for Android? I saw Cookie Adapter but it is for the previous version of Lawnchair

Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

There are many adapters in lawnchair to store stuff. http://westcoastlogic.com/lawnchair/adapters/
The way lawnchair works is, if an adapter is specified, it will use that, or if no adapter is specified and if the code of all adapters is appended to lawnchair.js file, then lawnchair checks which one to use in the order of they are appended and picks the first one it finds suitable.
Moreover the dom adapter works fine for my android app. Update your code to the latest lawnchair on github. So i guess the problem could be somewhere else too, maybe the data u are storing. Check out.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share

2.1m questions

2.1m answers

63 comments

56.6k users

...