question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clear SharedPreferences (preferenceName, showTimes)

See original GitHub issue

Is your feature request related to a problem? We have a logout feature in our app. The problem is that when the user logged out we need to clear the showTime but as far as I could see there is not a function for that. Am I wrong?

Describe the solution you’d like: Actually, I can clear the preferences like this way; context.getSharedPreferences("com.skydoves.balloon", Context.MODE_PRIVATE).edit { clear() }

But I prefer to do that Balloon.clearAllPreferences() as like with Only

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
utkualtascommented, Sep 15, 2021

I will consider the DI. Thanks again for the great works! 🙂

1reaction
skydovescommented, Sep 15, 2021

Hi @utkualtas, Thanks for your issue! A new snapshot 1.3.8-SNAPSHOT is released. You can use the Balloon.clearAllPreferences() function in this release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to delete shared preferences data from App in Android
To remove specific values: SharedPreferences.Editor.remove() followed by a commit(). To remove them all SharedPreferences.Editor.clear() followed by a ...
Read more >
How to Delete Shared Preferences Data in Android?
In this article, we will show you how you could save and delete data from Shared Preferences in Android. Follow the below steps...
Read more >
All about SharedPreferences in Android app- create, retrieve ...
This video gives details and demonstrates to create, retrieve or delete the shared preference variables as your Android App data.
Read more >
Delete Shared Preference Value | Android Studio Tutorial
Remove or Delete key from SharedPreferences for Android App DevelopmentDelete SharedPreferences data from App in Android.
Read more >
Android 101: Shared Preferences - ProAndroidDev
Retrieves shared preferences instance for the name “PREF”. Each shared preferences will have its own instance based on the preference name. val pref2...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found