Retrieve preferences from intelliJ platform IDE

38
January 13, 2019, at 00:10 AM

I am writing plugin for Android Studio in Java and currently need to determine user's android SDK location. As far as I know, the location of SDK can be set by user in: Android Studio -> Preferences -> Appearance and Behavior -> System Settings -> Android SDK -> Android SDK Location field

Is it possible to retrieve the value of this field programatically for further use in my plugin?

Answer 1

You can achieve it using IdeSdks.getInstance().getAndroidSdkPath()

READ ALSO
Remove “view more” button in WhatsApp stickers?

Remove “view more” button in WhatsApp stickers?

There are some sticker packs for WhatsApp that don't show a "view more" button on their click menuThere is a line in a smali file which defines to which Play Store app the button should take

21
How to remove/block popup ads in webview Android?

How to remove/block popup ads in webview Android?

I have a problem with my webview Android appIt always show randomize ads from unknown sources

41
Query Database more efficiently via ContentResolver?

Query Database more efficiently via ContentResolver?

I want to query Audio & Album information via ContentResolverBut my code has low efficiency firstly

40
Icon with absolute position outside the component can not be pressed

Icon with absolute position outside the component can not be pressed

My application has a tab bar where the one icon should be with one part out covering the top screenBut in that part of the icon present on the tab can be clicked, while the one on the other component can not be clicked

29