• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to eliminate default "gallery" app?

THE MANDATORY 'GALLERY' ACCESS TO CONTACTS & CALENDAR :

STILL NO WORKAROUND ?

Ooooohh.... last post here almost three yrs back ...
Anyway ..

BEST FILE EXPLORER I've found is

" File Explorer+ "

- - the " + " (PLUS) character is very important , since there are nummerous file explorer apps with similar names.
For one thing - among *many* - that I'm excited about , this "File Explorer+" ALLOWS YOU TO SHARE YOUR APPS
just like that. Use Bluetooth, e-mail or what you like.

- - - My Problem :

Just like the thread-starter, I've run into this problem:
The original Samsung 'Camera' app have these special Modes: like 'Selective Focus' , '360 photo' et.c. ,
BUT - sadly turns out impossible to benefit from, simply because
the result(s) *have to* be viewed in this Samsung 'Gallery' app.

Gah !

Still no workaround ?
( I've been thinking of the possibility to EMPTY ALL CONTACTS as well as DELETING EVERYTHING IN THE CALENDAR ---- and THEN - in some *very cumbersome* way -
Un-Allowing the 'Gallery' apps access, and re-entering all the contacts, and all the events in the calendar. I have no idea how that would work out , though ).

Comments ?
Yours truly :
// Samsung-fan-for-👎ever

Insert data in a FIrebase database in another Firebase database using Java

In the first image (DB1.jpg), I want the children under the nodes - "19042020111313" & "19042020111506" - which are under the nodes "Cart List-->Admin View-->1122-->Products" to be inserted in the node "19042020185310" under the node "Shipment" which is the second image (DB2.jpg). How do I do it? Please note that I don't want the nodes "19042020111313" & "19042020111506" (in the first image) to be inserted in the node "Shipment" (in the second image).

Thanks

Attachments

  • DB1.jpg
    DB1.jpg
    124.4 KB · Views: 208
  • DB2.jpg
    DB2.jpg
    105.1 KB · Views: 212
  • DB1.jpg
    DB1.jpg
    124.4 KB · Views: 189
  • DB2.jpg
    DB2.jpg
    105.1 KB · Views: 232

Help How to turn sound off for sms/mms delivery reports?

Do you need the delivery reports? Turning them off would fix that.

Otherwise it may depend on which SMS app you use (I assume you are currently using the stock Samsung app, but as I don't have that I can't check settings). However none of the apps I have has a separate notification setting for delivery reports (I haven't used them for a long time so I can't recall which apps did what in terms of delivery notifications).

Help HOW TO: Enable 850Mhz 3G Network Frequency on your Samsung i9000 Galaxy S

Hi, CrazySte
I want to know. How to use the Samsung GT-I9003 Galaxy SL or not.

Samsung GT-I9003 Galaxy SL Specs. >> https://www.mobilesdetail.com/en/phone/samsung-i9003-galaxy-sl-tnf
Thank you.
couple of things first of @CrazySte last activity was 7 years ago...and has not visited this forum since.

secondly, this thread mainly talks about adjusting the 3g spectrum on a phone bought with european frequencies only enabled. this thread shows you how to enable frequencies for here in the US.

thirdly, are you asking how to use your phone? what part do you need help with? if you give us some details, we can help you better.

Require Thread permissions in audio primary hal

Hi, YTAMZ19
I am creating two threads in audio primary Hal with SCHED_FIFO policy but is failing to create the thread, it seems it require SYS_NICE capability. So how to provide CAP_SYS_NICE capability for audio primary Hal. Thanks in advance for the response

Were u able to achieve this ? Im facing the issue right now. Please let me know how did you do it.

Help Android Oppo F11 pro anti virus

I concur with the others on this one.
Anti-virus on Android is like putting training wheels on a bowling ball.
Really.
I don't even worry about sites that I go to with my phone.
That is not a very good habit, but I have absolutely zero valuable info on my device.
A phone is not going to get hacked unless the hacker can have physical posession of the device for a while.

It can also happen if you download something and install it, or if an app you install does that for you.

Basically, it's like a vampire,
You have to invite it into your phone.

Constant beep beep-beep-bee-beep-beep

Engage the Do Not Disturb mode, and then go through your notifications for each app that you DO want to get notifications for and enable Override Do Not Disturb.

Each device is different, but most should have these options.

On my 7.1.1 I had to activate the System UI Tuner to get the option to be available.

You can look up how to enable the System UI Tuner for your individual device.

Can't find example - Use spinner to populate Textfield

You're welcome. :)
I re-posted in that forum with more details and the code of my files, but I don't see how I can delete this thread.... I see the option to EDIT , but not delete... How can I do that? or do I just leave it up in this section too?
No worries! Just leave it as is, or you can 'edit' the OP and replace its text with something like, 'reposted on app development board.' But it's fine to just leave it as is.

Access data from non visible children in GridView

I have a GridView with some images, each image also have a checkbox associated with it, I'm trying to check the state of all checkboxes, for that I have this code:

Java:
for (int i = 0; i < gridView.getChildCount(); i++) {
   View child = gridView.getChildAt(i);
   CheckBox checkBox = (CheckBox) child.findViewById(R.id.checkBox);

   if(checkBox.isChecked())
       // do something
}

I know that gridView.getChildCount() returns only the visible items, I can also get the count from the adapter like this gridView.getCount() but of couse that will throw an null pointer exception when trying to access the checkbox as that object does not exists if it's not visible.

Is there a way to access the checkbox even when the image is not visible?

Change Default

To change default:
Applicable to Samsung Galaxy J7 Crown Smartphone.
To change current ringtone default to a new ringtone or song downloaded to device.
Settings
Sounds and vibration
Ringtone: choose a preselected ringtone or a song that you downloaded.
To choose a downloaded song, click on the plus sign
Sound picker will show; choose a song you downloaded. To search for a song, click on an alphabet.
Done or OK
Ringtone will change to selected song
This is your new default song.
Alarm clock: Alarm Clock Xtreme

Image processing

Hello everybody.
I am working on an image encryption app.
The goal of this app : you give this app any image, it transforms it into something like this.
You can then send it to one of your contacts, who will decrypt it and recover the original image.

For now, I am just experimenting with image processing on Android, and I have a quite frustrating problem.

I need to be able to change the RGB (red/green/blue values) of the pixels, but also the alpha (transparency / opacity). My problem is with the alpha modification.

First, I did this :

Java:
    void imageProcessing()
    {
        // Creation of a "bitmap" object containing the pixels from "image.png"

        BitmapFactory bf = new BitmapFactory();
        BitmapFactory.Options bfo = new BitmapFactory.Options();

        bfo.inMutable = true;
        bfo.inPreferredConfig = ARGB_8888;

        Bitmap bm = bf.decodeFile("/storage/emulated/0/DCIM/image.png", bfo);

        // The 32 bits int which will contain values of red, green, blue, alpha
        int pixel_color;

        // The alpha, red, green, blue values
        int alpha, red, green, blue;

        // Color selected : full blue, with an alpha of 127 (the pixel will be half-transparent)
        red = 0; green = 0; blue = 255; alpha = 127;

        // Putting the A, R, G, B values into the int variable "pixel_color"
        pixel_color = (alpha<<24) | (red<<16) | (green<<8) | blue;

        // Modifying the (x=3,y=0) pixel with this color
        bm.setPixel(3, 0, pixel_color);

        // Recording the modified image as "new_image.png"

        ByteArrayOutputStream outStream = new ByteArrayOutputStream();

        bm.compress(Bitmap.CompressFormat.PNG, 100, outStream);

        File f = new File("/storage/emulated/0/DCIM/new_image.png");

        try {
            f.createNewFile();
            FileOutputStream fo = new FileOutputStream(f);
            fo.write(outStream.toByteArray());
            fo.flush();
            fo.close();
        } catch (FileNotFoundException e) {
            Log.w("TAG", "Error saving image file: " + e.getMessage());
        } catch (IOException e) {
            Log.w("TAG", "Error saving image file: " + e.getMessage());
        }
    }

For a png image with an alpha canal, it works fine (some images manage RGB only, not alpha).

When I try to do the same for a jpeg image, it does not work. This is normal, jpeg does not allow to manage alpha.

So I tried to convert the jpeg into a png, then modify RGB+alpha on a pixel from this png.

Like this :

Java:
    void imageProcessing()
    {
        // Creation of a "bitmap" object containing the pixels from "parrot.jpeg"

        BitmapFactory bf1 = new BitmapFactory();
        BitmapFactory.Options bfo1 = new BitmapFactory.Options();

        bfo1.inMutable = true;
        bfo1.inPreferredConfig = ARGB_8888;
        bfo1.outConfig = ARGB_8888;

        Bitmap bm1 = bf1.decodeFile("/storage/emulated/0/DCIM/parrot.jpeg", bfo1);

        // Recording the image with the png format, as "parrot.png"

        ByteArrayOutputStream outStream = new ByteArrayOutputStream();

        bm1.compress(Bitmap.CompressFormat.PNG, 100, outStream);

        File f = new File("/storage/emulated/0/DCIM/parrot.png");

        try {
            f.createNewFile();
            FileOutputStream fo = new FileOutputStream(f);
            fo.write(outStream.toByteArray());
            fo.flush();
            fo.close();
        } catch (FileNotFoundException e) {
            Log.w("TAG", "Error saving image file: " + e.getMessage());
        } catch (IOException e) {
            Log.w("TAG", "Error saving image file: " + e.getMessage());
        }

        // Creation of a "bitmap" object containing the pixels from "parrot.png"

        BitmapFactory bf2 = new BitmapFactory();
        BitmapFactory.Options bfo2 = new BitmapFactory.Options();

        bfo2.inMutable = true;
        bfo2.inPreferredConfig = ARGB_8888;
        bfo2.outConfig = ARGB_8888;

        Bitmap bm2 = bf2.decodeFile("/storage/emulated/0/DCIM/parrot.png", bfo2);

        // The 32 bits int which will contain values of red, green, blue, alpha
        int pixel_color;

        // The alpha, red, green, blue values
        int alpha, red, green, blue;

        // Color selected : full blue, with an alpha of 127 (the pixel will be half-transparent)
        red = 0; green = 0; blue = 255; alpha = 127;

        // Putting the A, R, G, B values into the int variable "pixel_color"
        pixel_color = (alpha<<24) | (red<<16) | (green<<8) | blue;

        // Modifying the (x=3,y=0) pixel with this color
        bm2.setPixel(3, 0, pixel_color);

        // Recording the modified image as "new_parrot.png"

        ByteArrayOutputStream outStream2 = new ByteArrayOutputStream();

        bm2.compress(Bitmap.CompressFormat.PNG, 100, outStream2);

        File f2 = new File("/storage/emulated/0/DCIM/new_parrot.png");

        try {
            f2.createNewFile();
            FileOutputStream fo = new FileOutputStream(f2);
            fo.write(outStream2.toByteArray());
            fo.flush();
            fo.close();
        } catch (FileNotFoundException e) {
            Log.w("TAG", "Error saving image file: " + e.getMessage());
        } catch (IOException e) {
            Log.w("TAG", "Error saving image file: " + e.getMessage());
        }
    }

However, the modified pixel on the final image is blue (like I planned), but with an alpha of 255 (instead of 127).

Do some of you have any idea about this issue?

Filter

Back
Top Bottom