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

I hate ZTE ZMAX pro z981!..

I got ripped off so bad on this one. This phone is always doing something to cause me to have to hard srest and create a new account. I talked with a dude at metro PC's and he said that they were getting a lot of returns on these phones . Something about the third party in the phone is what's causing all the problems. IDK?. I'm buying a new phone in a few days anyways and this one is taking a swim... Anyways, if any one else is having similar problems, drop a line please. Thanks everyone

Open Beta 19 & 11 for Oneplus 6 & 6T

OnePlus have just started the Open Beta 19 & 11 OTA roll out for the OnePlus 6 & 6T to test new features and fixes that may or may not, come to future firmware updates. You will only receive this test firmware OTA if you are already on their Open Beta releases.

6aWWyqbl.jpg


Camera version is still 3.0.37

Android Security patch is May 2019

This is the 11th Open Beta release for the 6T in 149 days = 1 update, on average, every 13.5 days.

(N.B. Open Beta is NOT available for the T-Mobile (USA) carrier minority variant)

Help Battery drainage and internet errors

Hello,
my phone is acting weird and I'd like some advice on it if possible:

- My battery drains super fast - it takes about 6-5 hours or less of normal usage to go from 100% to zero. It started about a week ago.

- Sometimes it just wont connect to the internet. Google starts up, it provides search results, but I cannot open any of the pages. Apps that require internet connection (a weather forecast, for example) wont connect either. When I restart my device, they seem to work again just fine. This problem also started about the same time as my battery issue.

Does anyone experience similar issues? What could be the problem?

S10 Plus Bluetooth Issue with PS4 Controller

I am facing Bluetooth issue when I connect my samsung galaxy s10 plus to PS4 controller via bluetooth.
connection method: I first press (PS button+share) and it is flashing, to make it visible for the mobile. Then I turn on bluetooth on my s10 plus to connect it. After that, it shows connected on the mobile and the light is on the PS4 controller being stable(white color). But its not working when I use the controller to move or press any button. Besides, when I want to disconnect the bluetooth from mobile, the light on the controller keeps working like it is still connected. And the bluetooth of the s10 plus gets stuck until I restart my phone. The PS4 controller light turns off as well.
solutions tried with no luck:
1- I went to setting>apps>show system app>bluetooth>storage>deleted cash and data>restarted phone

2- I did PS4 controller reset(the small hole in the back) but nothing happened as well

3- The only way now work is to connect the PS4 controller via cable.

appreciate if any one can help on this to solve this. Noting that this issue happens only between the mobile and the PS4 controller.
Thanks

ExpandableListAdapter | Remove Group and Add Child - both on button click

I'm building a small application using Firebase Real Time Database.

The app lists shifts per given date.

Each shift is displayed as a group item and every employee that is registered to this shift is displayed as a child in that group.

I used an ArrayList of ParentHeader class for the group-items and an ArrayList of Strings for the children-items (to list the employee's name) - This may change in the future for a more complex object.

This is my code:
Code:
public class DateActivity extends ExpandableListActivity {
   // date, isAdmin and name are passed to this activity using shared preferences
       private String date, name;
       private boolean isAdmin;
       // Adapter declaration
       private CustomExpandableListAdapter mAdapter;
       // ArrayList to store group items
       private ArrayList<ParentHeader> parents = new ArrayList<>();

       @Override
       protected void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.activity_date);
    // initialize date, isAdmin, name here

           // Fetch all shifts for selected date from Firebase
           Validator.fetchShiftsPerDayFromDB(date, new Callback()
           {
               @Override
               void shiftsCallback(ArrayList<Shift> shifts)
               {
                   super.shiftsCallback(shifts);
                   if (shifts == null)
                       return;

                   for(Shift shift : shifts){
                       parents.add(new ParentHeader(shift));
                   }

                   mAdapter = new CustomExpandableListAdapter();
                   setListAdapter(mAdapter);
               }
           });
}

   private class CustomExpandableListAdapter extends BaseExpandableListAdapter
   {
       private LayoutInflater inflater;

       public CustomExpandableListAdapter()
       {
           // Create Layout Inflator
           inflater = LayoutInflater.from(DateActivity.this);
       }

       @Override
       public int getGroupCount()
       {
           return parents.size();
       }

       @Override
       public int getChildrenCount(int groupPosition)
       {
           int size = 0;
           if(parents.get(groupPosition).getEmployeesList() != null)
               size = parents.get(groupPosition).getEmployeesList().size();
           return size;
       }

       @Override
       public Object getGroup(int groupPosition)
       {
           return parents.get(groupPosition);
       }

       @Override
       public Object getChild(int groupPosition, int childPosition)
       {
           return parents.get(groupPosition).getEmployeesList().get(childPosition);
       }

       @Override
       public long getGroupId(int groupPosition)
       {
           return groupPosition;
       }

       @Override
       public long getChildId(int groupPosition, int childPosition)
       {
           return childPosition;
       }

     @Override
       public boolean hasStableIds()
       {
           return true;
       }

       @Override
       public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parentView)
       {
               final ParentHeader parentHeader = parents.get(groupPosition);

               // Inflate group_row.xml file for group rows
               convertView = inflater.inflate(R.layout.group_row, parentView, false);
// Get group_row.xml file elements and set values here

           //Add User to selected shift
           convertView.findViewById(R.id.add).setOnClickListener(v -> {
               //TODO insert constraints
              Validator.addUserToShiftInDB(parentHeader.getShift().getKey(), date, name, new Callback() {
                  @Override
                  void onUserAssignedToShiftCallback() {
                      super.onUserAssignedToShiftCallback();
                       // TODO attach as child-item to chosen group-item
                  }
              });

           });

               convertView.findViewById(R.id.delete).setOnClickListener(v -> {
                   if(isAdmin){
                       //TODO open confirmation window
                       Validator.deleteShiftFromDateInDB(parentHeader.getShift().getKey(), date, new Callback() {
                           @Override
                           void onDeletedShiftCallback() {
                               super.onDeletedShiftCallback();
// shift gets deleted in Firebase but the expandable list does not refresh
                               parents.remove(groupPosition);
                               mAdapter.notifyDataSetChanged();
                           }
                       });

                   }
                   else{
                       Toast.makeText(getApplicationContext(),"Admin privileges required", Toast.LENGTH_SHORT).show();
                   }
               });
               return convertView;
       }

         @Override
       public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parentView)
       {
           final ParentHeader parentHeader = parents.get(groupPosition);
           final String childString = parentHeader.getEmployeesList().get(childPosition);

           // Inflate child_row.xml file for child rows
           convertView = inflater.inflate(R.layout.child_row, parentView, false);

           // Get child_row.xml file elements and set values here

           return convertView;
       }

       @Override
       public boolean isChildSelectable(int groupPosition, int childPosition)
       {
           return true;
       }

       @Override
       public boolean areAllItemsEnabled()
       {
           return true;
       }

       @Override
       public boolean isEmpty()
       {
           return ((parents == null) || parents.isEmpty());
       }

       @Override
       public void notifyDataSetChanged()
       {
           // Refresh List rows
           super.notifyDataSetChanged();
       }
   }
}

The ParentHeader class which stores data on each group-item.
Code:
public class ParentHeader {
   private Shift shift;
   private boolean isDeleteButtonClicked, isAddButtonClicked, isHeaderClicked;
   // Array to store child objects
   private ArrayList<String> employeesList = new ArrayList<>();

   public ParentHeader() { }

   public ParentHeader(Shift shift) {
       this.shift = shift;
   }

// Getters/Setters here
}

and finally the Shift class which stores data for every shift.
Code:
public class Shift {
   private String startTime, endTime, name, key;
   private Integer wage, numOfEmps, employees;


   public Shift(){}

   public Shift(String name, String startTime, String endTime, Integer wage, Integer numOfEmps, Integer employees) {
       this.startTime = startTime;
       this.endTime = endTime;
       this.name = name;
       this.wage = wage;
       this.numOfEmps = numOfEmps;
       this.employees = employees;
// key field is assigned a value when fetching each shift from firebase using .getKey() method

   }
//Getters/Setters here
}

First Problem

Removing a group item from an ExpandableListAdapter on button click on the parent-item.

As you can see above I'm calling parents.remove and then notifyDataSetChanged in my getGroupView method, but the list does not get refreshed.

It does however work if I reload the activity or by moving to another activity and then back to this one.

I wish for it to work dynamically.

Second Problem

Adding a child to a group on button click of the parent-item.

My database is structured as follows:
Code:
"20190528" : {
    "-LfvCgavw5bYUJzULE6E" : {
      "employees" : 0,
      "endTime" : "00:00",
      "name" : "test1",
      "numOfEmps" : 2,
      "startTime" : "00:00",
      "wage" : 2
    }
  }

When a new shift has been added to a date by the Admin.

Now I wish for every User to be able to assign themselves to one of the shifts and for their name to be displayed as a child-item for that group-item shift.

After they click their chosen group-item shift, their data should be stored in Firebase like so:
Code:
"20190528" : {
    "-LfvCgavw5bYUJzULE6E" : {
      "employees" : {
        "generatedKey1" : "John Smith",
        "generatedKey2" : "Jane Doe"
      },
      "endTime" : "00:00",
      "name" : "test1",
      "numOfEmps" : 2,
      "startTime" : "00:00",
      "wage" : 2
    }
  }

I wish for every name stored under employees to be displayed as a child-item under its corresponding group-item shift. Dynamically of course.

I'd appreciate help in solving these two problems. I'm new to Android developement and do not have much experience with it.

Thank you.

Android app to play audio sequentially from Google Drive? I

I have tried using CloudPlayer and DrivePlayer, but although the former finds some audio, it has not located my folder containing ebooks, and the latter does not seem to find anything at all.

Ebooks are so often split into segments - sometimes of just a few minutes each, which is why this would be useful for me. As I write I have realised this it would also be useful to listening to artists who have taken their music off Spotify, like Jay-Z!

Can anyone recommend an app for this?

  • Poll Poll
Warmer due to metal body?

Pocophone F1 vs OnePlus 5T

  • Pocophone F1

    Votes: 0 0.0%
  • OnePlus 5T

    Votes: 1 100.0%

We know that plastic or glass cannot increase their temperature very fast but metals can.

So can metal phones feel warmer at the same temperature just because it can transfer heat from phone CPU on itself faster?

And does OnePlus 5T tend to get overheated?

What would you recommend, OnePlus 5T or Xiaomi Pocophone F1? My priority is durability and performance.

Thank you.

Mandatory 64 bit requirement policy for Android Applications hosted in Play Store

I have an app deployed to app store which is only 32 bit.

So should I just enable the support for 64 bit devices under the android native properties and upload to store, or should I upload two apks, one with 32 bit and other with 64 bit support as mentioned above?

Any help would be greatly appreciated.

Source : https://android-developers.googleblog.com/2019/01/get-your-apps-ready-for-64-bit.html

--
Thanks
Sujith S A

Getting a new phone!

My Moto Z² Force Edition, which I love, is only ≈6 months old, but for months I've noticed screen burn-in. I kept trying to ignore it, then today decided to call Motorola while its warranty is still good.

The person I spoke to had no idea what I was talking about! I tried to explain that an image, like a ghost image, has burned into my screen. She asked what troubleshooting steps I had taken, and if they included a factory reset. :o

I explained that this is a hardware issue, and no amount of troubleshooting and wiping my data would solve it.

She's sending out a new phone...

I didn't even think burn-in was a problem any more, certainly not on smartphones. I think of it in terms of 'the olden days' with computer monitors. What's weird is that it happened at all, because I have the screen shut off after 5 minutes of inactivity, so it's not like it was left on overnight or something. *shrug*

Get HTC Emojis on Oneplus 5T?

Hey, I just got myself an Oneplus 5T and I wondered if there is a way to get the emojis from HTC on it? I already searched for it on google but all I can find are some tutorials for the app emoji switcher which seems to only have the emojis from Samsung, IOS, LG and Google. Is there any way to get the HTC ones? Hope you can help me out :/

Root Date-- When?

I bought a Galaxy 4s on line it was listed as mint condition as new, after running into several functions that did not work I learned it had been rooted. It is down to my word against theirs, I have run several apps that confirm this, how do you tell the date it was modified? Any help is appreciated, Thanks,

Help How to delete preinstalled Huwaei Song?

Hi,

A song called "Dream it Possible" recently appeared on my Huawei device. Not wanting it, I deleted it from the list of files.However, it is still visible and even playable in my main music app DoubleTwist. It is not, however, visible in the list of files or Huawei's stock music player. When I try to remove it from DoubleTwist, I get this error


Is there anything I can do?

Attachments

  • Screenshot_20190527-124417.jpg
    Screenshot_20190527-124417.jpg
    180.9 KB · Views: 1,227

Filter

Back
Top Bottom