No wait app android

Причины возникновения ANR и как этого избежать

Условия возникновения ANR

  • Входные события (кнопки и сенсорные события) не обрабатываются в течение 5 секунд;
  • BroadcastReceiver (onRecieve()) не был обработан в течение указанного времени (foreground — 10 с, background — 60 с);
  • ContentProvider не завершен в течение 10 секунд.

Обычно основной поток блокируется.

Если вы читали мои статьи, то наверно уже привыкли к тому, что мы лезет в исходный код. Так что давайте посмотрим как выглядит ANR под капотом.

Класс AppErrors занимается обработкой не только ANR, но и других ошибок, которые могут возникнуть в приложении, включая crash. Метод handleShowAnrUi() как раз и открывает это страшное для многих разработчиков и пользователей окно, отображающее ANR.

Однако, ANR начинается не здесь. Как я и говорила выше, одна из первых причин возникновения этой ошибки — это задержка входного события, которая составляет 5 секунд. Недолгим поиском мы можем найти где задается это значение.

Теперь мы можем посмотреть в коде, где вызывается нативная часть. Это происходит в классе InputManagerService.

А вот и mWindowManagerCallbacks в InputMonitor:

Давайте посмотрим внимательнее на inputDispatchingTimedOut(). Тут как раз мы и показываем сообщение через ActivityManager об истечении времени ожидания и даем пользователю решить, следует ли отменить действие или продолжить ожидание. И именно в ActivityManagerService и вызывается AppErrors в случае возникновения crash или ANR.

Источник

How to Fix Android Won’t Download Apps

We love our smartphones because they are so brilliant in handling our social lives, work, relationships, and calendar. Our reliance on these phones is to the extent that we begin palpitating when we realize that we forgot our phone somewhere. So do our phones have the superpower of controlling us? The truth is that our phones may not be as powerful as they seem without all the apps that we download to them.

These apps allow us to turn our phones into intelligent little machines that load us up on information regarding several things in our lives and worldwide. With apps being so crucial for a smartphone, imagine how your smartphone’s life could come to a near standstill if your Android won’t download apps. It is why we have looked up solutions that can help you fix Android won’t download apps.

Getting the Basics Right

The most important thing to remember when downloading anything from the Play Store is that you must have a stable internet connection. You will not be able to download an app if the internet connection is not working correctly. Whether you are connected to the Internet through Wi-Fi or using mobile data, the most fundamental step to ensuring that you can download the apps is to have a proper internet connection.

Pull down the notifications shade of your device and check if the Wi-Fi icon or the mobile data icon is lit up. If none of these icons is switched on, you must switch on the connection to ensure that your device has access to the internet.

However, if you tried this and persists, follow the below solutions to fix the issue.

How To Fix Android Won’t Download Apps On Samsung Galaxy S, Galaxy Note, LG G, Moto X, Nexus, HTC, and Other Android Devices

Solution 1: Restart Your Device

If you have downloaded apps before without any problems and this is the first time you encounter an issue with your Android device when downloading apps from Google Play, then restarting the device can be helpful. With the help of a restart, you should fix this issue without getting into deep troubleshooting on your device.

However, there is a chance that restarting the device may be a temporary fix. If you begin to encounter the problem too often and the restart begins to get annoying, you must try the other troubleshooting steps.

Solution 2: Check your date and time settings

When you try to download an app from the Play Store, the Google servers will try to check for the time on your device. If the time is incorrect, it will not sync the servers with the device, which can cause a problem in downloading anything from the Play Store.

Читайте также:  Не работает пульт от андроида

To correct the date and time of your device, follow these steps:

  • Go to the Settings menu of your device
  • Tap on System and look for Date and Time
  • Once you tap on Date and Time, you will be able to find out whether your phone is set to Automatic Date and Time.
  • Toggle on the Automatic Date and Time if it isn’t already On.

  • On the other hand, if the Automatic Date and Time is on and Google Play Store is not working, then change it to manual and set the time yourself being as accurate as you can be. Check if your problem is fixed by doing this.

Solution 3: Use mobile data instead of the Wi-Fi network

If you are using a Wi-Fi network to download the apps, switch to mobile data and check if it works. The reason behind this is that specific Wi-Fi networks block port 5228. It is the port used by Google Play. To switch the networks, pull down the notification shade of your device and tap on the Wi-Fi icon to switch it off. Now look for the Mobile data icon and switch it on.

Once you have switched the internet access, restart your device and then go to Google Play to resume the app download. Check if the problem you were facing has been fixed.

Solution 4: Make Sure Download Manager is On

Download manager facilitates the downloading of all the apps. You must ensure that it is On so that your apps can be downloaded successfully from the Play Store. To check if Download Manager is On or not, you should head into the Settings menu of your device and then go to the Apps or Application Manager.

Now you will notice tabs on the top of the screen. Swipe right or left to go to the tab that says All. Look for Download Manager under this section and tap on it to determine whether it is enabled or disabled. Those users who find it disabled, tap on the Enable option to Enable Download Manager and then download the apps again.

Solution 5: Delete Google Play Cache and Data

Wiping the cache for Google Play can solve a few problems related to the Play Store. Cache files store information that helps your device load the application quickly. These files are recreated once you reaccess the application.

The Data files of an application store data that includes all information saved on the app like high scores, usernames, and passwords. When the data files are deleted, you must make sure that you write down any important information before deleting the files.

  • Go into the Settings menu of your device
  • Tap on Apps or Application Manager
  • Look for Google Play Store
  • Tap on it and scroll down to look for the option that says Clear Cache. Tap on it to delete the cache files.

Go back to the app store and check if the apps begin to download now. If the problem is not fixed yet, then delete the data files by going through the same steps, and then instead of tapping on Clear Cache, you must tap on Clear Data. You will notice a warning that will tell you that all data will be deleted. Press Ok to confirm and then open the Play Store to look for the app and begin the download. Check if this helps you fix the problem on your Android device.

Solution 6: Clear Cache and Data for Google Play Services

Google Play Services is the process through which your applications communicate with various sections of your device. It enables sync and ensures that push notifications are sent to the device apps on time. Google Play Services plays an essential role in the working of applications. A problem in the cache or data files of the Play Services can cause a problem when it comes to downloading the applications from the Play Store.

  • Go to the Settings menu of your device.
  • Look for Apps or Application Manager and tap on it
  • Scroll to find Google Play Services and tap on it
  • On the next screen, look for Clear cache, tap on it.

Once the cache files have been wiped, check if the problem is fixed. If you can still download apps from the Play Store, then follow the same steps to return to the screen from where you cleared the cache. This time, you must tap on Clear Data to delete the data. You will notice a warning on your screen. Tap on OK to confirm deleting the data.

Restart your device and check if the problem is fixed.

Solution 7: Refresh the data sync settings

The data synchronization of your device that allows the syncing of data can help you solve the problem. Several readers found this to be an easy way of resolving their apps not downloading from the Play Store.

  • Head into the Settings of your phone
  • Tap on Accounts or Accounts and Sync
  • Depending on your Android version, you may notice background data. Tap on it to uncheck it and wait for 30 seconds, then check the box next to it once again.
  • For Android users on the latest Android versions, you may have to tap on the three dots on the top right to open a drop-down menu that will have the option that says Auto Sync Data.
  • Tap on it to uncheck the Auto sync of data and then tap on it again after 30 seconds to ensure auto-syncing data.
Читайте также:  Сброс андроида до заводских настроек алкатель

Once you have completed this step, go back into Google Play Store and check if the app is being downloaded now.

Solution 8: Update your Device Software

Your device’s software must constantly be updated so that any bugs or problems in the previous version are fixed effectively. If you have delayed updates for your device, then it is about time you checked and updated your device’s software.

  • Go to the Settings menu of your device.
  • Please scroll down to find About Device and tap on it
  • Tap on Check for Updates or similar vocabulary on your device, and if there is a newer version available, then install the latest updates.

Once the new updates are installed, your device will automatically restart. After the restart, check if the apps are being downloaded to your device now.

Solution 9: Reset Your Google Account

If the problem hasn’t been fixed yet, we will be moving into some complex solutions to resolve the issue. Resetting the Google Account can help you solve the problem of your Android not downloading the apps. When you reset the account, you will be deleting the entire account and starting all over again. It means you should know your Google Account username and password. If you do not have these details, then you will not be able to add the account back to your device again. The Google account will be removed entirely from your device, and it will be added all over again.

  • Pull down the notifications section of your device and tap on the Settings icon.
  • In the Settings menu, look for Accounts and tap on it
  • Tap on Google to check the Google account on your device.

  • Tap on the account you wish to remove
  • On the next screen, tap on the menu icon, the three dots on the top right.
  • From the drop-down menu, tap on Remove Account to altogether remove the account from your device.

If you have more than one Google accounts on your device, then make sure you remove all the Google account. After deleting the accounts, you will have to start entering the accounts once again into your device.

Go back to the Settings menu of your device and tap on Accounts once again. Now you will find the option to Add Account. Tap on Add Account and complete the process of adding the account to your device. You must follow these steps to add all your Google accounts, and once this is done, return to the Play Store and find out if this has resolved your problem.

Solution 10: Uninstall Google Play Store Updates

Sometimes, your Play Store updates may be the cause of the problem. So, uninstall the update and allow the app to update once again. It can help in solving the problem. Once the updates are re-installed, try to download the apps repeatedly to check if it is working as expected.

  • Go to the Settings menu of your device.
  • Tap on Apps or Application Manager and look for Google Play Store.
  • Tap on Play Store and tap on the option that says Uninstall Updates.
  • Once the updates are uninstalled, tap on the home button to come out of the screen.
  • Now restart your device and go back to the Settings and then tap on Apps again to head into Google Play Store for the second time.
  • Now tap on Update and allow the app to update itself.

Once the app has been updated, head into the Play Store and check if the apps are now being downloaded or not.

Solution 11: Reset your device to Factory Settings

For users who cannot fix the problem with any of the above solutions, our last resort, which happens to resolve many Android issues effectively, reset your device to factory settings. It will bring your device’s software back to the version when taken out of the box. All data will be deleted from your device, and all third-party apps will be removed. You will also lose personalized settings because the phone will go back to the default settings.

It is why you must create a backup for the data that you consider essential. You can back up the data on a computer or use your Google account to back up the data. Your phone will give you the option to back up the data on the Google account before you reset the device.

  • Go to the Settings menu of your device
  • Tap on Back up and Reset
  • Now you can check or uncheck the option to create a backup depending on your preferences.
  • Towards the bottom of the screen, you will notice the option to Reset to Factory Settings.
  • Tap on it and confirm the Reset when you get a warning message that will tell you that your data will be lost.
Читайте также:  Ims settings android что это

Once the reset is complete, your device will automatically restart. Go to the Play Store and check if the problem you were facing has been fixed.

What do I do when I get the “Insufficient Space” error when downloading apps to my Android?

Sometimes you may not be able to download the apps to your device because of insufficient space. You will have to delete a few things from your device to make space at times like these. Check if you have too many photos or videos on your device, which may be eating into the storage. Move these files to your computer to increase the space of your device.

You may have to uninstall some apps if you need enough space for large apps. To uninstall the apps, go to the Settings menu of your device and look for Apps or Application Manager. Now tap on the apps that you want to uninstall, and you will get the option to uninstall the app on the next screen. Tap on uninstall and confirm the uninstallation.

Alternatively, users on the latest version of Android will be able to long-press on the app they wish to uninstall, and they will automatically see the options to uninstall the app on the top of the screen. All you need to do is drag the app icon to the uninstall option on the screen, and the app will be uninstalled.

What do I do if I get Error DF-BPA-09 ‘Error Processing Purchase’?

This error is related to the Play Service and not specific to your device. Clear the data for Google Services Framework to resolve this problem. Follow these steps to remove the data files:

  • Head into the Settings menu of your device
  • Tap on Apps or Application Manager
  • From the top tabs, swipe to the All column and look for Google Services Framework.
  • On the next screen, tap on clear data and then tap on OK

Once you clear the data, head into the Play Store and check if the error has been resolved. If you still find the same error showing up on your screen, then access the Google Play Site from your computer. Install the app to your computer, and then the app will work on your device.

What to do when I see one of the following errors on the screen when I try to download an app – Error 194, Error 495, Error 941, Error rh01, Error 504?

These errors can occur for some problems with the Google Play Store. However, the best solution for all these errors is to clear the cache and data of Google Play Store and Google Services Framework from your device and check if the problem is resolved. For most of our readers who found any of these errors while downloading apps from the store, this solution seemed to have worked.

We have mentioned the steps for clearing the cache and data files in the solutions above. Restart your device after deleting all the files and then check if the problem has been fixed.

What to do if I get the error 911 when I try to download an app from the Play Store?

When you get this error, you must first delete the cache and data of Google Services. We have mentioned the steps for doing this in the solutions above. If this does not fix your problem, then check if you are still logged in if you are using a Wi-Fi connection that uses a web page login. If it still does not work, you must try connecting to a different Wi-Fi network, and if you do not have the option to connect to another Wi-Fi network, you must use the mobile data option. Remember that this option will use up data from your plan, and if you do not have a plan, you may incur charges.

The problem usually occurs because of the Wi-Fi connection which is being used. It is why you must establish a proper Wi-Fi connection, or you must use your mobile data.

Conclusion

All these solutions can work on some Android devices. You can use these solutions to fix Android won’t download apps on all Samsung Galaxy S, HTC, Moto X, Nexus, LG G, and other Android devices. While these solutions are not tested on every Android device, most of them work successfully for all our readers using various Android devices.

Источник

Оцените статью