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

Adding my own launcher icon

I've published my first app and it needs some tinkering. One thing I want to change is the launcher icon I thought I had done that - I made a set of new launcher icons and added them to the appropriate directories, but I still see the default icon for my app. I found a post on Stack Overflow that said to right-click on app in the project view, and select new image asset but it's not clear to me how to select the image I want to use.

Update bootloop, factory reset won't fix

I just bought a used Kyocera hydro icon from Amazon, for use on my boost mobile account because my ZTE max charging port died for the second time.While waiting for a new sim card to activate my device, I decided to set up everything else so I would be all set to go once I activated the device. So I did a factory reset to start with a clean slate. All was fine, I set up Google and checked for updates, there was a firmware update available so I began the download. It took a while because my WiFi kept dropping, but the download finally completed and I clicked to install. The installation began and then I got an error saying the installation could not complete and to contact my service provider. I thought this was pointless since it was purchased from a third party and.not yet active on my account. I shut it down and restarted but it got stuck in boot loop. I have already tried power+Vol down to enter recovery mode and done a factory reset and wiped the cache. Nothing works, I am still stuck in boot loop. Please help. I only bought this phone to keep my service active until I switch providers in the near future, now it seems by the time I figure out the phone problem, I will be ready to switch and been without a working phone on my service for three weeks.

Netguard anyone???

Netguard is a firewall/VPN app that i absolutely love. It can enable internet access permission for each individual app you have on your device for both wifi and data, has a built in VPN, and a bunch of other great services. Its pretty cheap too! (I think the full bundle is about 8 USD).

Was curious to know if anyone else uses it here. Anyone love it? Hate it? Know some cool features most users dont know about? Would be great to hear some insight from the more tech gifted here as well.

Here is the google play store link

https://play.google.com/store/apps/details?id=eu.faircode.netguard

Thanks!

Should I update to Android Q?

Does anyone here have Android Q beta 4 on their Pixel 3a? If so, should I get it? Is it really buggy?

On Android P, there's this bug on Pixel 3 and 3a where if you use a third party launcher, there's this annoying bug where when you swipe up on the navigation pill to go to recents, there's this weird double vibrate thing. With the new Android Q navigation, does that bug still persist?

Phone bugs since contract ran out.

My contract ran out last month and decided to drop the payments down and keep my phone as I have never had any issues with it.

Since I did this I have had a number of little bugs and issues that I haven't had before.
The first (which has now stopped) was my home screen and lock screen changed back to the default, and happened a number of times when I changed them back to my preferred picture. Only after reinstalling my theme did this stop.

Second, the phone will sometimes while watching a video or just scrolling twitter go black and then go to the lock screen like I have pressed the side button. Just pressing the side button will unlock the phone but this does happen randomly when I'm not even holding the phone.

Third. I use one of the official covers that flap open (can't remember the name) when I open the cover to the lock screen it can take up to 10 seconds to load the lock screen. I will get the time and battery icon showing but the rest of the screen is black.

Fourth, When the phone recognises my face and opens it's self from the lock screen notifications with still show over the screen for a couple of seconds then fly off up the phone.

Has anyone else had these problems and how close to the contract running out did they happen. Is it a myth that when a contract runs out the phone is designed to start breaking to make people buy a new phone?

Issue with comparing dates with Room persistence library

Hello everybody.

I have another question regarding Room persistence library. I've been working with it successfully for awhile now, but due to the inability of SQLite to work with a LocalDateTime natively, I'm having some issues now.

Not sure if this is directly relevant, due to the way that I'm handling things, but in my app, I'm saving a timestamp for the following object using the following type converters:
Code:
@Entity
public class Usage {
    @PrimaryKey(autoGenerate = true)
    private int             id;
    @ColumnInfo(name="sub_id")
    private int             sub_id;
    @ColumnInfo(name="dosage")
    private float           dosage;
    @ColumnInfo(name="timestamp")
    private LocalDateTime   timestamp;
    @ColumnInfo(name="notes")
    private String          notes;
}

(type converters follow):
Code:
    @TypeConverter
    public static LocalDateTime toLocalDateTime(long value) {
        return LocalDateTime.ofEpochSecond(value, 0, ZoneOffset.UTC);
    }

    @TypeConverter
    public static long fromLocalDateTime(LocalDateTime ldt) {
        return ldt.toEpochSecond(ZoneOffset.UTC);
    }

In my app, I'm allowing the user to select a date via a Calendar (setting the hour, minute, second, and lower values all to 0) and then I'm trying to utilize a query to select all records prior to the date selected. I then utilize the Calendar.getTimeInMillis() method to attempt to convert this to a value that will be comparable to the epoch second value that is saved in the database with the following code:
Code:
public void purgeDatabase(View v) {
    if (validateData()) {
        //now let's get down to the nitty gritty and delete the entries
        GlobalMisc.showSimpleDialog(this, "Wiping entries",
                "Purging the database's records on the selected substance prior to the date " +
                "that you have selected.");
    } else {
        GlobalMisc.showSimpleDialog(this, "Not purging anything",
                "Not purging any administrations at this time.");
    }

    int countToFry = Permanence.getUsagePriorToCount(tmpCal.getTimeInMillis());
    GlobalMisc.showSimpleDialog(this, "Toast Count",
            "This would toast " + countToFry + " records from the database.");
}

Referenced code in Permanence is as follows:
Code:
public class Permanence {
    private static AppDatabase sDb;

    public static int getUsagePriorToCount(long ts) {
        return sDb.getUsageDao().getPriorToDateUsageCount(ts);
    }
}

Referenced code via sDb.getUsageDao() is as follows:
Code:
@Query("SELECT COUNT(*) FROM Usage WHERE timestamp > :ts")
int getPriorToDateUsageCount(long ts);

The behavior that I am seeing is that when my timestamp > :ts comparison is utilizing greater than (as here), I am getting a count of 0 entries via the query. When this is reversed I'm getting a count for all of the entries. So I'm thinking that either the long values that I'm trying to compare are not equivalent (epoch milliseconds is what I was shooting for w/Calendar.getTimeInMillis() and LocalDateTime.toEpochSecond()), or, well, something else that I don't have a clue about due to the fact that I'm not at any level of serious proficiency with Room or SQLite queries in general at this point.

For brevity's sake, I have omitted portions of the classes referenced above, due to the fact that the boilerplate code is working fine with other methods in the same classes. I apologize if this is a faux pas, and will be more than happy to post more complete examples of the applicable code snippets. Along the same lines, I'm not really sure what else as far as code examples may be applicable to this problem; I think I've hit everything, but if I'm missing something else please let me know and I would be more than happy to post whatever hasn't been properly included. My apologies in advance if anything of the sort has been missed.

I'd like to thank in advance anybody who reads this and especially those who are willing to help me troubleshoot a little bit farther in this process. I'm really not sure where to go with it at this point and I'm very grateful for anything that you may have to offer.

Help Change of Home screen icon

I wrote in a previous post of Locus Map Pro, which I updated on my wife's 'phone recently. The home screen icon shows as an Android robot now instead of usual Locus Map icon.
I attach two screenshots: Screenshot 1 is my 'phone; Screenshot 2 is my wife's 'phone.
Interestingly, my wife's 'phone shows the Android robot for WhatsApp, which I had never questioned until now. Perhaps that should be different, too?
I wonder what dictates an icon's appearance and whether anything can be done in these cases?

Attachments

  • Screenshot 1.png
    Screenshot 1.png
    1 MB · Views: 170
  • Screenshot 2.png
    Screenshot 2.png
    990.8 KB · Views: 134

My Samsung Galaxy S5 won't turn on with a fully charged battery...

Recently I have broken my S5 charging port, there is no other way but to fix it with a professional. I did not want that since the prices were quite high for my liking. So first what I did was, I used eo charge my phone with a standard micro ish wire but instead of the top there is the red and black wire exposed so I could hook it up to the pins on the back of my phone. This worked perfectly fine and there were no problems until when I hooked it up again, the light at the top left went green and the speakers started to make static noises (remember this as it may have to do with it not turning on). After this happened I decided to buy an external battery charger and another battery (spare one) online. I received the package, I waited the for the battery to charge, put it in my phone and to have a huge surprise of it not working. Now I'm not sure if it was because of the incident from before where the light turned green (which I think it is) or its just the external battery charger not working.
If anyone has any solutions please help me.
Thanks.

How to use different resource files and classes for different configurations at runtime?

I will try to make it simple. I want the app to use two different resource files and java classes based on the configuration user selects. The configuration itself is custom, say configType = "Admin" and configType = "User". I want this to be dealt with the same way as product flavors or locale change works.

We were using 2 product flavors for this purpose, but now we want this to be done at runtime not at build. When we change the config type, the app should start using different resource files and java classes than the other config type uses.

Dumbphone wanted; "No Google", "No NSA". Is it possible?

My 2013 Moto X gen1 from Republic Wireless is now 'call-less'. My MDs can't reach me. It all started with me signing up for a VPN (Trust.Zone) for my desktop/laptop/android mobile phone. Since RepublicWireless defaults to WiFi BEFORE cellular connections, the incoming calls are hitting the VPN & defaulting to "phone is not available/leave voicemail" which most don't bother doing... I never hear the 'ring'/'don't see the missed calls'. Crappy-cheap-service=worthless.
MY CONCERN: Will other carriers also use WiFi (a.k.a. my VPN channel) and incur similar interference? (RepublicWireless tells me even their messaging service depends upon WiFi...)
["Funny." Robocalls/wrong #s don't seem to be 'affected' by my VPN!]

transferring data from iphone to samsung galaxy A50

I just bought my first android phone in over 10 years today. My last three phones have been all iphones. I've been watching various videos on the internet which show the process of transferring data from iPhone to android using smart switch along with a dongle and cable.

I want to keep my contacts, pictures and text messages so this process would be ideal. Unfortunately there is no dongle in the box and would like some advice or guidance as to what is the easiest and hassle free way to port the important information from my iPhone to my new A50?

Help Date format

I noticed for the first time today that the date format in my wife's Locus Map Pro app is displayed as 4/7/2019, while mine is 07/04/2019. I am informed by the developer that there is no facility within the app to set a date format; it relies upon Android.
My wife's mobile 'phone is the same as mine - a 2nd generation Motorola Moto G running version 5.0 Lollipop.
Settings>Date & time are identical. I do not see a date format option, either.
I wonder if such a facility resides elsewhere? If not, how might two identical 'phones differ?

[APP][FREE] Bluetooth audio device widget (A2DP)

Hello,
I would like to introduce you my Bluetooth widget. With this widget you can by one click connect your Bluetooth audio device and play Spotify without going into the settings menu. The app supports A2DP profile, device like portable speakers, sound bars etc.. It is initial release, so I would be grateful for any feedbacks. The app should be available now, or in some markets in few hours.

I hope, that this widget will be useful and different than hundreds bluetooth widgets in google play :-)

https://play.google.com/store/apps/details?id=com.tom.bluetoothDevicesWidget

How to Start:
1. Pair your audio device (A2DP) in android settings
2. Open app and enable widget for your selected device
3. Add widget on your screen

Regards
Tom

Arcadium [FREE][GAME]

Hi all,

Arcadium is a retro style space shooter game I've been working for an year, and today the game has been released on Play Store as Open Beta!

The game follows the good ol' "get the best score" gameplay, where you will have to defeat hordes of aliens (and bosses) which are generated on the go, making it a unique experience everytime you play! The game also offers a mastery system that lets you permanently improve the spaceship stats or lets you unlock new spaceships!

The game is completely free and there aren't any disruptive ads, so if you have been looking for a nice, fun, simple to play and polished mobile game, I really hope you try this one out <3

Youtube trailer :
Playstore page : https://play.google.com/store/apps/d...hgyug.arcadium

Thank you.

Filter

Back
Top Bottom