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

Help Nexus 5 - Can't mount /cache/

A good day everyone,

Because my little brother drops his phone so his touché screen didn’t do anything anymore we had to buy a new phone for him.

We found a good as new Nexus 5 at a auction. After it arrived by mail eh booted it up and it seems to be working fine. But after I gave it to him and he turn it on again it keeps hanging at the google loading “balls”. After entering into recovery mode and trying to clear the /cash partition I got the massage “failed to mount /cache (invaled argument), “Can't Mount /cache/…..”, “Can’t open /cache/……” multiple times.

I already tried:

- Re flasing (needs root)

- Sideload (need’s a working /cache)

I can’t get the devise rooted because every guide expects you to reboot the device and start into android. A thing that my device doesn’t do.

I’m sure that the solution is somewhere out there, but I can’t find it.

Could you help me?

Thank you in advanced,
Sander.

Developer fix for image resize problem required (set wallpaper)

hara.jpg
hara2.jpg


Basically the above is the horrendous situation were you cannot reduce the image size and problem we have nowadays with mobile phones. You find an image you want to set as your home lockscreen or wallpaper and although you can zoom in on a file, you cannot zoom out, and thus you are forced to crop and it becomes a huge mess because you cannot fit in the screen the picture that you want, why the hell is this? I mean you can zoom in with pictures, but not zoom out?

Oh lord, is there any smart android developer who can please implement a solution to galleries and set as image in browsers, that can also 'reduce' the image size by zooming out, so that we don't have to do cropping on our modern mobile phones? And just say ' zoom out, then set image as wallpaper. So that the picture will fit without hassling!

Delete and undo in RecyclerView causes multiple entries

have data in my SQLite Database which I load into a RecyclerView. With an ItemTouchHelper you can delete a item and a Snackbar appears with an undo .action.



The problem I have is that when I delete and undo multiple times and I reload the app, I have got multiple entries where I deleted and restored.

I have figured out that "
pocketItemAdapter.removeItem(viewHolder.getAdapterPosition())" do not return 1 so its failing. But is that a problem with Adapter or with SQLite?


As you can see here:

ItemTouchHelper
Java:
    // Delete and undo pocket items
ItemTouchHelper.SimpleCallback recyclerviewSwipe = new ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.LEFT) {
    @Override
    public boolean onMove(@NonNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder, @NonNull RecyclerView.ViewHolder target) {
        return false;
    }

    @Override
    public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) {
        final Pocket pocketList = PocketItems.get(viewHolder.getAdapterPosition());
        final int deletetIndex = viewHolder.getAdapterPosition();

        pocketItemAdapter.removeItem(viewHolder.getAdapterPosition());


        if(pocketItemAdapter.getItemCount() != 0){
            textView_placeholder_recyclerview.setVisibility(View.GONE);
            imageView_placeholder_recyclerview.setVisibility(View.GONE);
        }else{
            textView_placeholder_recyclerview.setVisibility(View.VISIBLE);
            imageView_placeholder_recyclerview.setVisibility(View.VISIBLE);
        }

        Snackbar snackbar = Snackbar.make(coordinatorLayoutPocketMain,R.string.successfully_deleted,3000)
                .setAction(R.string.undo, new View.OnClickListener() {
                    @Override
                    public void onClick(View view) {
                        pocketItemAdapter.restoreItem(pocketList,deletetIndex);
                        database.createpocketEntry(pocketList.getTIMESTAMP(),pocketList.getAMOUNT(),pocketList.getDESCRIPTION(),pocketList.getCATEGORY());
                    }
                });
        snackbar.getView().setBackgroundColor(ContextCompat.getColor(PocketMain.this,R.color.colorBright));

        snackbar.show();
    }

RecyclerView Adapter

Java:
void removeItem(int position){
    Database database = new Database(context);
    database.deletepocketEntry(Integer.parseInt(pocketItems.get(position).getROWID()));
    pocketItems.remove(position);
    notifyItemRemoved(position);


}

void restoreItem(Pocket item, int position){
    pocketItems.add(position,item);
    notifyItemInserted(position);
    Log.d("RESTORED","restoreItem()");
}

SQLite open helper
Java:
  Integer deletepocketEntry(Integer rowID){
        SQLiteDatabase database = this.getWritableDatabase();
        Log.d("RESTORED","deletePocketEntry");
        return database.delete(KEY_DATABASE_TABLE,"rowid = ?", new String[]{Integer.toString(rowID)});
}

long createpocketEntry(String timestamp,String amount,String description, String category){
    SQLiteDatabase database = this.getWritableDatabase();
    ContentValues pocketValues = new ContentValues();
    pocketValues.put(KEY_TIMESTAMP,timestamp);
    pocketValues.put(KEY_AMOUNT,amount);
    pocketValues.put(KEY_DESCRIPTION,description);
    pocketValues.put(KEY_CATEGORY,category);
    Log.d("RESTORED","createPocketEntry");
    return database.insert(KEY_DATABASE_TABLE,null,pocketValues);
}

How to Remove Old Email Accounts

So I just bought a new phone last week and I'm in the process of downloading all my apps and setting it up. I was trying to log into the Slack app when this pop-up appeared with a list of all the emails that I've ever used.

Half of them were old email accounts that I haven't used in a while and they ranged from Gmail to Yahoo to Outlook and even my old college email address showed up. Where are these emails stored and how can I remove them from my device?

I've wrecked my brain and could not figure this out. Any help would be appreciated!

Attachments

  • Screenshot.jpg
    Screenshot.jpg
    78.4 KB · Views: 174

new scam.. ATT put my account on hold

2 weeks ago.. i got a call .. from my own phone number!!! I am an ATT customer. on a shared account with others. (6 active phones .. work related).

when i answered ..
i hear the ATT .. quick tune.. then an automated female voice said..
my account has been put on hold due to odd activity.
enter my zip code to verify. I entered the zip of the account.
then i thought this is too odd... and hung up.

I then called the account holder to verify issue..
he said there is NO odd activities... and phones work.
so ignore it for now. .. hung up.

15 mins later..
i got a call from the account holders number....
answered it.. and it was the ATT .. quick tune .. and same automated number!!!!
hung up...

so.. it must be a scam.. because the phones are just fine 2 weeks later.
i have gotten that call 2 more times during this time.

what worries me most..
is that it was able to call me with the account holder's number (call ID).
scared it was able to see who i called after the initial call???
or did it know who the main holder number and used it.
no one else in the group got this scam call.

is my PHONE... hacked? something looking and recording my calls?

App Permissions: Audio Output

Has Android announced any intention to include "audio output" as an adjustable setting in the App Permissions menu?

There are some apps out there that automatically play loud audio on the login screen or require the audio to be manually turned off after logging in. Since I listen to podcasts/music regularly, it would be really nice if I didn't have to go through the following everytime I want to listen to my own media whenever I want to use these problem apps:
1. pause my podcast/music
2. mute the overall media audio setting for my phone
3. open the noisy app, login and manually turn off the audio within the app
4. Un-mute the overall media audio setting for my phone
5. Restart my podcast/music
6. Resume utilizing the muted app

This is very annoying to deal with on a regular basis. Especially when I forget to mute the phone audio first and get blasted with the app volume by surprise and have to rewind my podcast to catch the part I missed while dealing with the app audio.

I am aware that there are apps out there that will mute the phone's overall media volume when opening specific apps (such as App Volume Control by SpyCorp) but this mutes all media audio while the app is open, which means my podcast gets muted (without being paused) for the full duration the app is open, which is perhaps even worse.

It would be nice to have an across the board solution for this problem at the top level from Android, instead of having to protest/request updates from app developers that are unresponsive or have no intention to fix the issue. It would be nice if I could simply turn off an "audio output" permission specific to these apps under the Android settings and never have to deal with that problem again.

I read somewhere that Samsung may have released something to help with this issue on their phones, but unfortunately that doesn't help a non-samsung android user like me.

Has anyone found a solution to this issue?

(Sorry if this is a repeat thread, but I couldn't find any other forum posts specifically related to this issue when I checked before posting)

Thank you very much for your assistance!

  • Locked
TOW 3

In this game members try to reach 900. Moderators and Administrators try to reach -900.

Heres how the counting works.
Members = +2
Moderators = -2
Administrator = -3
Premium members & App or ROM developers = +3

This post = 0

Let the game, BEGIN!

FAQ:

I'm a moderator and I developed an App or ROM how many points do I get?
Answer = +2

Edit, fixed spelling and changed Admin to singular instead of plural. There is only 1 of me, so I count as much as premium. Nice try though!

I feel hacked

Ok, I'm gonna start out by saying I am dumb... like dumber than two dumb things typa dumb. . When it comes to anything computer/ phone -ish... .and EVERY single time something strikes me a little bit "spish" ...boom...all of a sudden I'm in settings and Google dashboard and my only answer ever is 'its the feds' lol so.... is there anyone who can puhlease ease my mind on this nonsense that fills my head and takes up my time if i post some pics of my paranoia?

Xperia xa charging problem.

Hey so I've had this phone xperia XA about a month now and it's always had this problem, the phones not new though its second hand but bought from a reputable store. If I'm playing games while charging the battery will still drain. I've not got the original charger but I'm using an ancher fast charger with the stores own cable I got the phone from. When I first open the game its fine but within 5 minuets the battery gets really hot and that's when it starts losing charge. When it's charging when I'm not gaming it'll charge an average of 1500ma but whilst I'm gaming the charge is -300ma or greater according to accubattery. All apps are uptodate, I've upgraded the phone to android nougart. I have the screen brightness at 50% and auto brightness is turned off. I'm starting to think it could be the battery but accubattery tells me the batterys health is at 98% based on a number of charge cycles. Before I got this phone I had an iPhone 5, used the same charger (I know it wasn't a fast charging phone and its probably what broke it in the end but..) and it never had this problem, it would still charge while playing the exact same games even when the battery overheated.



Ive looked all over for a solution but can't find one. I'm starting to lose my mind lol and thinking that I should just go back to ios. Really hope someone can help me as I do enjoy android more for the most parts.



Thans for any answers.



Edit: I thought it might be the online games I'm playing causing this so I downloaded an app from the play store while watching a video on YouTube but the same thing happens, battery drains while it's charging. Then I thought it might be the wifi/mobile data so I downloaded a single player game and turned on flight mode while playing it, same thing happens the battery still dains while charging.

I found the most peculiar little app the other day

As i was using a friend's phone i noticed that all the applications on it besides messenger were stock. However there was an app ive never seen before. Called "FaceMask". I opened the app to see a surprisingly professional dashboard. I only had enough time to read the word Utilities in one of the sections. I looked it up on google play and a few "after market" app stores only to not find it. My was interest was peaked because it looked like a polished hacking app. I manage to get the phone back and immediately download apk extractor and Bluetooth it to my device. When i got home to install it on a vmware android i had, it wasnt there. In fact the only app that was in the Bluetooth folder of my phone was File Manager with lg's default filemanager icon. Even on my Bluetooth received files it simply read File Manager. I asked him about it later knowing that he doesn't possess any python coding skills and he simply denied the app's existence. Anyways, anyone ever heard of this app?

Help Moto G Won't Power On Or Charge - How To Recover Data?

My Moto G now seems to be completely dead. It won't power on or charge. Plugging in a charger makes the white LED indicator turn on and remain on (steady, not blinking) for as long as the phone is plugged in, but that is the only sign of life. No combination of holding power and volume buttons for any length of time has coaxed any additional signs of life out of this phone.

Unfortunately, there's some data I'd rather like to not lose forever. Fortunately, I don't particularly need the phone to work when I'm done with it. If there's some way to revive it (even temporarily), that'd be great but if I can remove the internal storage chip and stick it in a reader to retrieve text messages, that's fine too.

How to compress an image without loosing its quality

Hi guys am trying to compress an image without loosing its quality. now with my code image is compressing from 60KB to 3KB . but the quality is really bad how to fix this. this is my code please see and help me.
i want to capture an image compress it , send it to next activity and display it in image view.
MainActivity.java
Code
Code:
]   //open camera
[*]    if (requestCode == REQUEST_IMAGE_CAPTURE && resultCode == Activity.RESULT_OK) {
[*]       Bundle extras = data.getExtras();
[*]        Bitmap imageBitmap = (Bitmap) extras.get( "data" );
[*]        //compress image
[*]        Bitmap convertedimage = getResizedBitmap( imageBitmap, 100 );
[*]

[*]        Intent intent = new Intent( MainActivity.this, Display.class );
[*]        extras.putParcelable( "Bitmap", convertedimage );
[*]        intent.putExtras( extras );
[*]        startActivity( intent );
[*]    }
[*]}
[*]

[*]private Bitmap getResizedBitmap(Bitmap image, int maxSize) {
[*]    int width = image.getWidth();
[*]    int height = image.getHeight();
[*]    float bitmapRatio = (float) width / (float) height;
[*]    if (bitmapRatio > 1) {
[*]        width = maxSize;
[*]        height = (int) (width / bitmapRatio);
[*]    } else {
[*]        height = maxSize;
[*]        width = (int) (height * bitmapRatio);
[*]    }
[*]    return Bitmap.createScaledBitmap( image, width, height, true );
[*]

[*]}
[*]
IN Display Activity.java
Code:
[*]Bundle extras = getIntent().getExtras();
[*]if (extras != null) {
[*]    Bitmap bmp = extras.getParcelable( "Bitmap" );
[*]    image.setImageBitmap( bmp );
[*]    //display compressed image size in textview
[*]    long height = bmp.getHeight();
[*]    long width = bmp.getWidth();
[*]    long filesizeinBytes1 = bmp.getByteCount();
[*]    long fileSizeInKB1 = filesizeinBytes1 / 1024;
[*]    textview1.setText( " Height:" + height + "Width" + width + "size in KB:  " + fileSizeInKB1 );
[*]    Log.d( TAG, "Textview message :" + height + " , " + width + " , " + fileSizeInKB1 );
[*]

[*]    File destination = new File( Environment.getExternalStorageDirectory(), "temp.jpg" );
[*]    ByteArrayOutputStream bytes = new ByteArrayOutputStream();
[*]    FileOutputStream fo;
[*]    try {
[*]        fo = new FileOutputStream( destination );
[*]        fo.write( bytes.toByteArray() );
[*]        fo.close();
[*]    } catch (IOException e) {
[*]        e.printStackTrace();
[*]    }
[*]

Introduction

I hope I didn't double post this topic, but i saw it was something that can score me internet points so I'm going for it. Its also probably a bit late for an introduction at this point but 20 points are at stake here.

Hey guys, its me jasonmerc, that same dude on xda. My whole love for Android started as an accident. I used to love all things Apple... Until my first gen iTouch stopped receiving updates, and I saw this "android" thing that I figured I would give a try.

My first phone was an LG P506 Thrive which I loved dearly... And hard bricked 3 days after getting by flashing the wrong KDZ to it because I was an idiot. This phone got me started on my XDA career. I wasn't even going to make an account to get involved in the community over there or anything, I just made the account so I could get access to a download link to try and unbrick my Thrive. In the end I was unable to fix it, but now I had an account on XDA.

Over the next couple of years or so I'd post a little every now and then about whatever phone I had at the moment, with my first "contribution" being a guide for how to flash CM11 on the Motorola Bravo. It was nothing brag-worthy for a while, just standard stuff from a standard lurker who would make standard comments about things every now and then.

It wouldn't be until the summer of 2016 when things would kick off for me that got me really involved in all of this stuff. Amazon released their first Prime phone, the Blu R1 HD. A couple of us guys over there decided to snatch one up as soon as they released for $60. One thing lead to another, and we managed to break into it and get root access within 2 weeks of its release. Because this phone was already in the spotlight as it is (for being a really good device for a really low price from a company like Amazon) our "root method" soon showed up on a couple of gadget related news sites. I, along with the rest of the team, had our small taste of Internet fame for a little while, and were responsible for launching that phone's "community" on that site. As stated before, this is what really got me into the android modding scene.

Since then I've switched off that phone and to the Holiest of the Holy Moto G4 Play, and have been pretty much using that for the past 2-3 years. I built my first ROM ever for this phone (I couldn't make one for the R1 HD because no one was there to properly teach me at the time) and have made a couple others for a few other similar devices as well--namely that "PAOSP" joke ROM in late 2017.

That pretty much leaves us to where I am today. I came over to this site because it feels cozier than XDA, as per my man @bcrichster's recommendation. It's got more of that small-group feeling to it, like everyone's a bit closer over here. Also because I can link Telegram groups in my posts without having to worry about someone hanging me for it. Long story short you guys seem nice here.

As of writing this post, my future ambitions are to kickstart the Orbic Wonder community in the similar way that I did the R1 HD one. Although the Orbic is a bit late and perhaps falling into obscurity by this point, our small group managed to do a whole lot to that phone in not a lot of time. Since my G4 Play is only getting older and slower with every passing day (hell, the thing was pretty much outdated even when the thing first came out), I hope to soon buy and transition over to the Orbic so I can be of more help to the community by being able to do things with it myself, rather than relying on others to test stuff out for me which I'm doing now. If we're lucky and God is with us, maybe we can get a fully functioning Nougat Custom ROM on that thing (not even gonna dare wish for Oreo or beyond at this point, especially since we don't even have this thing's kernel source code yet) Cross your fingers this works out! It's a hell of a device for the price range, it would be a shame to have something so good go unnoticed like it has been prior to this last week or so.

Anyway, that's all about me. I look forward to filling up this site with lots of quality content that's fun for the whole family.

Filter

Back
Top Bottom