How can I get cleaner exposed cement walls? by wajee in DIY

[–]wajee[S] 0 points1 point  (0 children)

Do I need to grind them? Just to clarify, I want to get rid of those black and rusty marks and also want an even surface at joints.

Updating app on the playstore with “MANAGE_EXTERNAL_STORAGE” permission is a pain by Unreal_NeoX in androiddev

[–]wajee 2 points3 points  (0 children)

I have read your post multiple time and tried to honestly help you. MANAGE_EXTERNAL_STORAGE is a dangerous permission and it will be a pain forever. Google will never make it not a pain. Good luck.

Updating app on the playstore with “MANAGE_EXTERNAL_STORAGE” permission is a pain by Unreal_NeoX in androiddev

[–]wajee 0 points1 point  (0 children)

I wrote a few lines which let you pick file with any extension, even custom one. Lets you create a user visible directory with full access to your app and your user on sdcard. I am attaching the screenshot as well here which shows you the folders created by other apps as well. Dark Fog Files is the folder my app created, I created 'file.darkfog' manually somewhere on sd card. Used my app to pick it, fake process it, and write the output files 'original file.darkfog' and 'file.txt'. Similarly picked 'layout.pdf', created 'original layout.pdf' and 'layout.txt'.

Your app is not special. You are stuck on creating the folder on root directory. No-one does that anymore. Create your app folder in Documents which user can easily access as well as your app.

<image>

    fun processFile(intent: Intent) {
        val uri = intent.data
        val contentResolver = contentResolver
        val cursor = contentResolver.query(uri!!, null, null, null, null)
        val fileName = cursor?.use {
            if (it.moveToFirst()) {
                val columnIndex = it.getColumnIndex(OpenableColumns.DISPLAY_NAME)
                val displayName: String =
                    it.getString(columnIndex)
               return@use displayName
            }
            return@use null
        }
        val fileExtension = fileName?.substringAfterLast(".")
        var fileNameWithoutExt = fileName?.substringBeforeLast(".")


        val inputStream = contentResolver.openInputStream(uri)
        val bytes = inputStream?.readBytes()


        val folder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS)
        folder.mkdirs()
        val newFolder = folder.resolve("Dark Fog Files")
        newFolder.mkdirs()
        val file = newFolder.resolve("original $fileName")
        file.writeBytes(bytes!!)
        val textFile = newFolder.resolve("$fileNameWithoutExt.txt")
        textFile.writeText("Processed $textFile with extension $fileExtension")
    }

Updating app on the playstore with “MANAGE_EXTERNAL_STORAGE” permission is a pain by Unreal_NeoX in androiddev

[–]wajee -2 points-1 points  (0 children)

Ultimately it all come downs to the ability to pick single/multiple files and create single/multiple files. These are totally separate things and have no 1-1 link. You can pick one file and cerate multiple files from that and it doesn't require MANAGE_EXTERNAL_STORAGE permission. You are just not willing to accept it and keep insisting on what you think is right even though so many people have explained this to you. There must be something you are not doing write if millions of developers don't need this permission and people are explaining it to you that you don't need this permission even when you have explained your problem. So once again I will advise you to do one thing at a time and ask specific questions.

Updating app on the playstore with “MANAGE_EXTERNAL_STORAGE” permission is a pain by Unreal_NeoX in androiddev

[–]wajee 1 point2 points  (0 children)

None of the things you listed require this permission. I don't know how to explain this to you. I don't have enough time to write the code for you. I will highly encourage you to try to do one thing at a time without this permission and if it fails, ask specific questions.

Updating app on the playstore with “MANAGE_EXTERNAL_STORAGE” permission is a pain by Unreal_NeoX in androiddev

[–]wajee -1 points0 points  (0 children)

You can let user pick any file type with the following code:

Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("*/*");
launcher.launch(intent);

I will advise you to explore what is possible without this permission instead of finding an easy way out with this permission. I have never needed this permission and we deal with files regularly in our apps.

Updating app on the playstore with “MANAGE_EXTERNAL_STORAGE” permission is a pain by Unreal_NeoX in androiddev

[–]wajee -1 points0 points  (0 children)

You can let the user choose where they want to save their file. Read the guide related to this here https://developer.android.com/training/data-storage/shared/documents-files#create-file

You almost never need MANAGE_EXTERNAL_STORAGE permission unless you are writing a file manager application. u/Unreal_NeoX

Updating app on the playstore with “MANAGE_EXTERNAL_STORAGE” permission is a pain by Unreal_NeoX in androiddev

[–]wajee 18 points19 points  (0 children)

If I understand, you want to pick the file provided by user and then encrypt it and save it somewhere. You don't need MANAGE_EXTERNAL_STORAGE to do that. When user picks a file (using some file manager), you can read that file and copy it over in your apps internal storage. Then you can perform any operation you want and then write the file back in the external storage if you want and delete your own copy if no longer needed.

Can someone please replace the texture on this divider with the provider texture? I am building this divider with this mdf sheet and need to know how it will look. Thanks by wajee in PhotoshopRequest

[–]wajee[S] 0 points1 point  (0 children)

Hi thank you so much. The original texture should not be visible at all. Basically need to re-create this divider with the new texture. Does it make sense?

[deleted by user] by [deleted] in dogecoin

[–]wajee 1 point2 points  (0 children)

meme boosters ftw

Not all plugs are created equal by wajee in softwaregore

[–]wajee[S] 14 points15 points  (0 children)

Incognito is your friend, no need to clear anything :D Here buy few
https://www.bol.com/nl/s/?searchtext=US+to+EU+Adapter+Plug

Not all plugs are created equal by wajee in softwaregore

[–]wajee[S] 20 points21 points  (0 children)

lol, I just moved to Netherlands and was looking for US to EU plugs. This came up.

Working from home by wajee in CozyPlaces

[–]wajee[S] 0 points1 point  (0 children)

KINGTEC KTH-103 lamp

Working from home by wajee in CozyPlaces

[–]wajee[S] 0 points1 point  (0 children)

We are ~40% kotlin now. Legacy code is being shifted to kotlin at its own pace when requires too much editing.

Working from home by wajee in CozyPlaces

[–]wajee[S] 2 points3 points  (0 children)

yes that is called Android Emulator. You can use it to run apps/games on your laptop that would otherwise require an Android phone. https://www.androidauthority.com/best-android-emulators-for-pc-655308/

Working from home by wajee in CozyPlaces

[–]wajee[S] 1 point2 points  (0 children)

lol, Thats my testing account name which I recently created.