0

This is how I pass data

SharedPreferences pref = getApplicationContext().getSharedPreferences("FingerPrint", 0);
                            SharedPreferences.Editor editor = pref.edit();
                            editor.putString("fingerImage", encodedWsq);
                            editor.apply();

And I want to access "fingerImage" data to my nativescript project, that is java files are exported to jar file.

1 Answer 1

1

Perhaps you could directly use the application-settings NativeScript module (which is using SharedPrefferences behind the scenes) to set & get the values.

TypeScript example

import { setString, getString } from "tns-core-modules/application-settings";
setString("fingerImage", encodedWsq);
const myString = getString("fingerImage");
Sign up to request clarification or add additional context in comments.

1 Comment

Sorry, for being late can you show the syntax for javascript

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.