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

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?

please check out my new encryption app Alkemi

I started writing the encryption code in 2005 (and yes, I know, that doesn't make it good). There are two versions of the app: Android and Windows. You can encrypt on one and decrypt on the other. The apps run totally privately. They do not make changes to your computer or phone (apart from the install), they do not keep a history and do not connect to the Internet unless you instruct them to via email, messaging or sharing.

The encrypted data is in an ASCII format, which I call HEXASCII. It is discussed in detail on the web site. Being in ASCII format you can text, message, messenger, email, tweet, even print out and fax if you want. You can 'hide' your encrypted text within regular text, like with an email.

You can run Alkemi in any of 10 languages like Hindi, Arabic, Chinese (simplified and traditional), Japanese, English, French, Spanish, Russian and German.

I apologize in advance for mistranslations. They are all my own doing.

Here is an example of some text encrypted by Alkemi:

1B2A1CFF5DB98E41FB35E64DA77C0CB684C87BF12CAD93F0F705A221DF4ED9BC1FA03D84EDFF63DB2298ACF471D8A8580992ECE0DCBC6440E01A0C92EA9AC16D9F49FA755E4CA4780435DF46701B7B3989CC39AE9F00824177F07E7D9252


The apps are available on my web site:

https://alkemized.com

and also on Google Play Store and Amazon App Store.

Thanks

Help Individual wallpaper for launchers?

i found this:
https://www.groovypost.com/howto/enable-multiple-wallpapers-android/

give it a go and let us know if that is what you were looking for.
I've always said that since we've been able to have different wallpapers on all of our desktops on Linux, forever, it should be doable on Linux's little brother, Android. I just read the article and said, yes! :D

I went to the app's Play Store page, and everything looked good until a couple of things. One, it hasn't been updated since 2014. Two, it contains ads AND has no way [paid version] to get rid of them. Finally, its ratings are just so-so.

I'd love to use it, but I simply don't do ads. I may try it to see how invasive they are; if they're limited to only when you're actually using the app, not on the wallpapers you choose, it might be tolerable.

But the 2014 thing worries me. A LOT has changed in Android over the last six years!

My HTC 10 gets hot...

The battery in my HTC 10 started failing when it was just under two years old. Admittedly it was bought a year after launch, but it had replaced my HTC M9 which also had battery failure around the two year mark and that was bought a couple of months after launch.

So I decided to make a change and went for the Google Pixel 3a. Very pleased with it so far, although I am still using the 10 as a music player and all WiFi access until it fails completely which will hopefully give the Pixel a longer life.

:)

Filter

Back
Top Bottom