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

Urgently Need Moto M stock firmware XT1663_S381_1990315_ROW as my phone is bricked

Hello everyone i am in dire need of recent stock firmware of Moto M (XT1663_S381_190315_ROW) , its "BOOT.IMG" file and its "TWRP RECOVERY". i have BRICKED my phone while i was installing custom recovery but due to installing wrong firmware recovery, my phone is in a continues bootloop, and now i need STOCK ROM, TWRP RECOVERY for this version and BOOT.IMG to restore my Moto M. please please please i can't goto any repair shop because of LOCKDOWN. i have searched the whole internet but i failed to get the desired version of FIRMWARE. PLEASE!!!!!!!! GIVE ME THESE FILES

Getting robocalls and spam calls?

I was - a lot of them. In fact, a huge percentage of all mobile phone calls are now spam and robocalls.

I found an app called nomorobo that will block most of them. Peace at last!

It's free for landline phones... mobile phones are $1.99 a month. For me, it's worth the money to not be bothered by calls from local numbers, only to answer them and be told that my vehicle warranty is about to expire*.

Just make sure that, after any system update, you check to make sure this app is still the default. I think a lot of the negative reviews are because the update restored the phone as the call screener.


*- if I'm in the mood and get a spam call, I'll press the button to be connected to a human. And mess with them

:D

Moto G5+ to Pixel 2

I just bought a Pixel 2. How can I transfer my 200+ apps and most especially some of the apps' history (2 years of ski runs, my text messages/phone calls or my offline maps, for example) from my Motorola Moto G5+ to the Pixel 2? Supposedly google does automatic backups, but I have no idea what gets backed up or how to transfer it to the new phone if that's even possible.

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?

Help Galaxy A5 2016 original user from new, FRP lock several sollutions failed

Dear friends, I am a new user on this forum, I have the following problem with one of my old phones.

I have purchased a Samsung Galaxy A5 2016 from new in the exact same year, have used used it for 2.5 years, and switched phones. In the last two years it has been sitting in the drawer as an occasional secondary phone / experiment for Android modding.

The problem is that during these last 2 years or so, I have switched several email accounts for Google registration, and as I was preparing the phone for my mother-in-law to use, I have erased all previous data, including the Google account. Needless to say, by the time I have tried to retrieve the email I have entered several possible logins that I must have jammed the Android.

I know it’s a bit complicated, but please bare with me, as I am trying to recall all steps taken in order to unravel this dilemma.

What I have done in the last two weeks that has led to blocking the account:

- Phone was working, but not logged to Google, the account used at the time was one of my obscure ones, I had a message with “attention required..” something or other

- In a hurry to prepare the phone, I have erased it to factory specs, ommiting to login Google account; naturally, I was unable to login or remember the propper pasword

- After trying several times and seeing I have no chance to recover the obscure account, I switched to the original account from 2016 when the phone was new; since I still use that account now I figured I could unblock my phone by using a previous account

- Needless to say, I was unable to recover it that way, neither with authentification or confirmation by email; what is strange here is that Google recognises the phone as mine in Gmail (attempt from desktop), asks me to confirm activity, but nothing happens in the browser page after confirming (no option to unblock), all the while the phone just says that an unexpected error has occurred

After getting frustrated with login attempts, I have tried the following “hack” methods arround the issue, neither being succesfull:

- Hush sms method (does not receive the message as shown in the Youtube clip)

- SideSync method, neither my PC nor my work laptop recognise the phone, even though I have previously used them to connect the phone via USB

- Also, I get an error when connecting USB

- The strangest of all, I have tried Odin as a last resort to try and erase and replace software, and phone is not recognised in the programme; in this case, both USB cable and Odin versions are ok, as I have tested them with an old XCover 2 (my first new Android phone, which I still have)

Given current global pandemic it doesn’t feel right to try the Emergency call sollution to connect to internet, so I haven’t tried it. I know it’s not legal, and I don’t feel confortable applying it.

I know it’s been a long read and I want to thank you for sticking with me. I would appreciate any sollution or suggestion you might have. Cheers.

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

New Game: Zombie Run Game: See Zombie In Real World (Version 0.1)

WHAT'S NEW
This is first release with two mode
Run Mode: Control the girl to avoid zombie and get star in real map
Kill Mode: Touch to zombie to kill all them before they come near your position

EXTRA INFO
  • Rating: 0
  • Installs: 0+
  • Download Size: 10M
  • Version: 0.1
DESCRIPTION
In Run Mode See Zombie run in real world and control the girl move to avoid zombie in game plane. The number of zombie will inscrease depend score. The girl will take star in real world to inscrease score.

In Kill Mode touch to kill zombie append in real world. The number of zombie will inscrease depend score. Only touch to zombie have distance enought with your position

Factory Unlocked V40

Hello everyone! Seeing a few of your posts and some articles I've read,I see that V40's get updates to add some features or security patches and such, I've had my V40 since last June and I haven't had ONE single update I got Android 9 and that's it!.... How do I get updates and patches too? Thanks &#128513;

verizon tablet qtair7 question

i have a verizon 10.1 tablet model qtair7. i only use it for monitoring my security cameras, but along the very top of the screen i'm always getting some type of notices. when you pull down the top of the screen and you get that drop down and in that under the time date etc those notices in the white background.

what i want to do is just turn them off forever. i wind up with hundreds in a week and that uses up memory and makes the table slowdown or even start using so much battery that it will not keep up and then shutoff

i went into the running apps and turned off every one of them for notifications, and i still get these.

so is there a way to just plain turn these off? i just do not need them for what this tablet is doing. thanks

Can't find example - Use spinner to populate Textfield

Hello All,

I've been playing around with studio, so i'm a complete beginner. I found a youtube video about SQLite and was able to follow along to create a basic CRUD activity using SQLite. Now I put a new activity with a spinner that lists the names from my db fine (took forever to figure that out lol) but I want it to automatically pull in the rest of the selected record's info into textboxes I placed below the spinner.

For example, my table columns are: Index, Name, Surname, Marks
In my spinner, it lists all items in the Name column (i.e.: John, Susan, Matther, etc)
When I click "John", for example, I want it to put the Surname in a text box called "editText_surname" and to put the Marks in a text box called "editText_marks".

I cant find any examples or videos how to do this... if anyone knows of any, please link so I can learn. Really enjoying learning java basics and playing with android studio... thx in advance!

New App: Recover deleted videos (Version 2.0)

WHAT'S NEW
Remove ads
Quick Video Recovery

EXTRA INFO
  • Rating: 3.3
  • Installs: 100+
  • Download Size: 7.9M
  • Version: 2.0
DESCRIPTION
Recover deleted videos from mobile with video recovery app on android. There are many memorable videos that are with the family and in events and other memorable moments which sometimes lost accidentally. There are many apps on play store but the user cannot get back completely these deleted videos. But don’t worry about this because we present a very useful app for deleted video recovery.
Best video recovery by which users can easily get back all deleted videos of their memorable moments although these videos are in school college family function or other events. Just select and restore deleted videos by just one click and save these deleted videos in phone internal or external storage.
Video recovery app is the best tool to find deleted videos, users can restore all lost video files on fingertips. No need to root your mobile, all you need to do just scan the device and discover lost deleted video files of your choice.
Highlights of the best video recovery app
• Recovered videos simply and easily.
• Restored videos can be saved in the phone storage path.
• Video recovered without any root
• Recovered videos just one click
So download the deleted video recovery app and enjoy recovering videos easily.

Apps problem in json parsing

here i am trying to parse my json response but i 'm getting a json exception that string cannot be converted to json object . api="
"https:earthquake.usgs.gov/fdsnws/event/1/query?format=geojson&eventtype=earthquake&orderby=time&minmag=6&limit=10"
in the given code the lred colored line gives me the error..
try {
// TODO: Parse the response given by the SAMPLE_JSON_RESPONSE string and build up a list of Earthquake objects with the corresponding data.
JSONObject ins = new JSONObject(api);
Log.i(LOG_TAG,"JSON OBJECT ERRIR00");
JSONArray Features = ins.getJSONArray("features");
for (int i = 0; i < ins.length(); i++) {
JSONObject ob = Features.getJSONObject(i);
JSONObject props = ob.getJSONObject("properties");
Double magnitude = props.getDouble("mag");
String location = props.getString("place");
String link = props.getString("url");
Long time = props.getLong("time");
Earth ob1 = new Earth(magnitude, location, time, link);
earthquakes.add(ob1);
}
} catch (JSONException e) {
// If an error is thrown when executing any of the above statements in the "try" block,
// catch the exception here, so the app doesn't crash. Print a log message
// with the message from the exception.
Log.e("QueryUtils", "Problem parsing the earthquake JSON results", e);
}

Long Term S20 Ultra (Snapdragon) Impressions: Great Phone, still a finicky camera.

Was gonna do a write up on this earlier but alas things have been hectic! So originally I wasn't s.planning on buying the s20 line because of the pricing was getting a bit ridiculous even for me that loves to switch up phones, but there was a compelling buy 2 get a $900 debit card promo at costco, so I did end up getting both a s20 ultra and s20+. Had the hardest time deciding on which to keep. s20+ is mostly definitely the better phone, but the ultra is just the more interesting option... and so here we are.

  • Size wise, coming from a note10+, the ultra is slightly more narrow but taller. Also noticeably heavier due to the weird weight distribution. The huge camera hump doesn't smoothly transition into the back glass so expect your finger to feel a bit weird back there if you are holding the phone without a case. Speaking of which, the camera hump is quite tall so there are plenty of cases out there that barely protect the camera area... so one gotta pay attention to that. It did take me a week or 2 to get used to the weight on my pinky when holding it normally, but you get used to it.

  • The much flatter screen is easily the best part of the phone imo. minimal distortion and weird refraction on the curves unlike every other modern curvy phone these days. Just a joy to view. the taller screen + the smaller front camera means 18:9 videos that you often see from tech youtubers don't intrude into the camera area unlike the note 10+.

  • 120hz is great. 1080p cap is a bummer. No way to spin that. Samsung is apparently working on this, but who knows at this point. I'd still take it over 1440p 60 though. 120hz is noticeably more smooth than my 90hz pixel 4xl as well. I still occasionally see the phone drop down to 60hz, and my phone isn't really hot or low battery either. The quick fix is to just toggle 60/120hz... hopefully all these bugs are ironed out. This is definitely the most important feature in modern phones though. Would not recommend people buy a new phone that's not at least 90hz these days at over $400.

  • fp sensor is much better than my note 10+. Do note I'm still using the plastic film protector vs I switched to a glass loca based protector on the note. Still wish the sensor position was bigger though. Do note the fp sensor still works great in today's environment, while face unlock doesn't do shit on my pixel 4 xl with a mask on :)

any long term user of samsung galaxy tab a10.1 2019 model? does the tab not guide hd playback?

i've read someplace that the pill does not support hd playback on netflix and top video... is it actual. does the tool get slower in only some weeks. can a person who has owned the pill for a few months now can provide answer to my query... pls im very lots near shopping for this tab and if hd playback is not supported and if tab gets gradual in just a few weeks then i will must look for some thing else...
observe: i'll use my tab handiest for reading books, comics, media intake and some mild gaming...

need to replace setUserVisibleHint in AndroidX as it is deprecated, can anybody help

I have 3 fragments attached with viewpager.
I have a single database and all three fragments data is connected to each other so if i make any change in fragment 1 & it should also be reflected in fragment 2(when it is visible to user)
previously i was using
Code:
 @Override
    public void setUserVisibleHint(boolean isVisibleToUser) {
        super.setUserVisibleHint(isVisibleToUser);
        if(isVisibleToUser){
            getFragmentManager().beginTransaction().detach(this).attach(this).commit();
        }
    }

but setUserVisibleHint is deprecated so i need to replace it but cloudn't find proper solution.
I tried to used "detach().attach()" in onResume but it goes to infinite loop then.

Note: i tried to use "notifyDataSetChanged()" instead of detach.attach but it doesn't work properly and takes time to reflect data.
I tried to recreate activity but it push the recyclerView on first item. I want my recyclerView to be show on the same state where it previously was like if it was on item no 24 before leaving it then whenever user comeback on same fragment by doing detach.attach data is refreshed and recyclerView is on same position.

Please tell me the alternative solution for detach.attach on every desired fragment is visible to user.

Thanks

Filter

Back
Top Bottom