I am developing app for android using Phonegap with JQM. In J2ME app development , We can have centralized file ( message.txt ) we store list of string values which we are going to use. Like that can we have some configuration to get the string values from configuration file. So that we can easily do changes on text values. Could any one tell me.
Is it possible .?
String ValuesConfiguration File in Phonegap with JQM for android
312 views Asked by Pavunkumar At
2
There are 2 answers
0
Jaya Mayu
On
Yeap, its possible to keep some string values in PhoneGap.
Since PhoneGap is based on HTML5 technology, you can make use of web storage (sessionStorage, localStorage) to store values.
Alternatively think of using native storage feature of the devices. You can store some config values in sqlite db and retrieve it when necessary.
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in CORDOVA
- how to get rid of the cordova screen when you open the app
- How to build a codesandbox project to android apk?
- Cordova Android run failed
- Cordova Build issue since version 12.0.0
- cordova-background-geolocation-plugin don't giving any response in cordova android app
- provider duplicate while compiling a Cordova application for the Android platform
- Detect clickable areas within <img> tag in Ionic project
- Whitelisting Ionic app in Salesforce Org for CORS/CSP
- gradle keeps failing. Cordova run. Vscode
- Cordova plugin splashscreen issue while Azure Devops with ant build using android-cordova application
- Ionic 3 issue while generating AAB file
- Xcode Undefined symbols, Linker command failed with exit code 1 (use -v to see invocation)
- Xcode 15.3 build failed
- Samsung screen zoom ruining my cordova built android app
- command: ionic server Killed 9
Related Questions in JQUERY-MOBILE
- Jquery mobile nav bar items not properly placed
- jQuery Mobile Autocomplete freeze all the page
- How can i fix the error i get when i run cordova build android on windows cmd
- want to make a swipe menu common for all page of my html,
- JQueryMobile not keeping default style for dynamically appended html
- class added to div prints extra pages confusion
- Discord time stamp bug
- Show different element if the the class has the class active
- jQuery-Mobile fancy popup box works with jQuery 2.1.3 but breaks with jQuery 2.2.4
- ASP.NET MVC 5 : model not binding to HttpPostedFileBase from Razor form w/jQuery Mobile
- Filtering an unordered list with jQuery Mobile 1.5
- i want to show footer navbar on different situation in JQUERY MOBILE
- Getting the information of a mobile device by connecting to it
- Checkbox styles not applying when loading data asynchronously
- How do I get the content to display in the other menu options?
Related Questions in LOCAL-STORAGE
- Where to store secret token for an embeddable web widget?
- Next 14 - localStorage not working after refresh
- How to implement tab-dependent storage?
- My project uses cookiebot but when I accept cookies at the start of website it deletes my localstorage data
- Unable to get object {countScore} into local storage using ==> localStorage.setItem("gameScore", JSON.stringify(countScore));
- Can someone help me understand what the problem here is and possible solutions?
- where can I find all keys saved in the local storage?
- Array of states within context partially not updating
- How to do I add my data to LocalStorage with createdElements and display them?
- Access localStorage property, method returning null
- useEffect doesn't listen localStorage due to react-query
- How to set my jwt token in my client/localstorage?
- How do I access the actual storage of an Android device with my MAUI App?
- How do i store data for HTML for file://
- Adding an item in index.html page to favourite page with vanilla JavaScript
Related Questions in LAWNCHAIR
- How can I store a large (2Mb) dataset in persistent local storage?
- Phonegap - Access data offline from database
- Lawnchair : check store and its document exists
- How Can I pass data between html files not technically on the same domain with phonegap?
- Lawnchair-0.6.1 js: Data not persisting between closing and reopening of browser
- Lawnchair json store removing records
- Should i use Lawnchair or localForage to maintain data offline
- concatenation array of objects with javascript
- PhoneGap Local Storage WebSQL, IndexedDB, html5sql, lawnchair
- IndexedDB via Lawnchair gets larger with every save
- How to perform a WHERE LIKE "%string%" search equivalent for JSON in lawnchair
- Lawnchair storage with 2 collections on Phonegap Android
- Lawnchair-IndexedDB doesn't support multiple records
- Phonegap Storage API for Firefox OS (indexed db)
- Why does Lawnchair's webkit-sqlite adapter converts key to string?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
There are numerous solutions, you only need to choose one that best serves your purpose.
Javascript solutions
All javascript solutions use localstorage as a final storage destination. Only difference is in their implementation, how far did they went to make it easier.
Lawnchair
Probably one of most commonly used JSON localstorage frameworks, also a framework of my choice. It is fast but probably a little bit confusing first time you see it. But with everything in mind it works very well.
Persistencejs
This is an another great solution. Best suited for mobile devices, but still made to work on broad specter of mobile devices (Android, iOS, BB) or desktop browsers. No matter which device is used it will use best storage available ranging from HTML5 WebSQL up to localstorage. This is an excellent solution if you want an easy way into WebSQL but it is a bit harder to work then HTML5 WebSQL.
localStorageDB
This one is a newcomer. Easy as Lawnchair but more SQL like. Like Lawnchair it uses only localstorage to store serialized JSON string. It will not work with webSQL.
Native support
Here you will also find fa few possibilities. A little bit better solution then JS frameworks, mainly because it used mobile phones native storage support.
Phonegap Storage
This is a official Phonegap support for local SQL storage. This is a commonly used functionality. But be warned it can be a little bit buggy. There's a support for every possible mobile platform except WM7+.
Cordova/PhoneGap sqlite plugin - Android version
Native interface to sqlite in a Cordova/PhoneGap plugin, working to follow the HTML5 Web SQL API as close as possible. It doesnt suffer from 5MB limit and it mimics classic SQL usage as close as possible. One thing to mention, it supports data encryption. Unlike common Phonegap Storage implementation this one supports Windows Mobile but BlackBerry is not supported.
Phonegap File
If you want to stick with files this solution is probably the best one. It is a common Phonegap solution. Store your configuration inside a XML and play with it in Java or Javascript.