Facebook Like

Showing posts with label Technical tips. Show all posts
Showing posts with label Technical tips. Show all posts

Thursday, September 15, 2016

How to fix Android's 'insufficient storage available' error message

- No comments

If you see the message 'insufficient storage available' on your Android phone or tablet and even if you have space available, follow these below steps to clear Android's cache and you'll be downloading, updating and installing apps again in a matter of minutes. By following this post you can fix the 'insufficient storage available' error message on Android.

Step 1 of 4:


If you're getting the error message 'insufficient storage available' you need to delete the app cache. This is automated by a free app, or can be manually achieved by deleting individual app caches. Here's how to fix Android's 'insufficient storage available' error message.
The 'insufficient storage available' error often pops up if you have moved large amounts of media from the Android device's physical storage to a microSD card, and is caused by the cache not being properly erased.
You can clear your app cache in a matter of seconds or a few minutes, depending on just how bad the problem is on your device. If it allows you to install it, downloading a small (around 2MB) app can automatically clear the app cache on your behalf; if your phone won't allow the installation then you'll need to manually go through deleting the cache for each app. See step 4 for instructions on how to do this.

android_insufficient_storage_1 (1)

Step 2 of 4:


If you haven't already tried deleting anything on your phone and are receiving the 'insufficient storage available' error, this would be a good place to start. There are more than likely apps you have previously downloaded, never used and forgotten about - check the app tray rather than the home screens for these, since the app tray will list everything on your phone and, unless you're running Marshmallow (which lets you uninstall apps from the home screen), makes it easier to quickly uninstall them.
Photos, videos and your downloads folder are another good place to check. If you're using WhatsApp, also check its files in a File Manager app or by plugging it into your PC as it may well be storing every photo and video you send as well as those you receive.
Google Photos is a great option for backing up as many standard-resolution photos and video clips as you like, making them accessible from any device on to which you can log into your Google account and allowing you to delete them from your Android phone or tablet without losing them forever. The only catch is you'll need to download the Google Photos app to your device if you don't already have it, which may be an issue if you are seeing the "insufficient storage available" error. In the meantime, you could always plug your Android device into a PC or laptop and copy across any media you want to back up.
Now that you have freed up some space, your device will hopefully allow you to download the small app that automates the process of clearing the app cache. Try this by launching the Play store, searching for and, if you can, downloading the free app called App Cache Cleaner – 1Tap Clean.
android_insufficient_storage


Step 3 of 4:


The app cache cleaner is very easy to use; you simply opent the app and let it scan your device for your app's stored cache. You can then either clear the caches indivually by clicking on the rubbish bin icon next to each app, or delete all the app caches by selected the Clear button at the bottom of the screen.
Assuming you already had some space on your internal storage, despite the error messages, you should now be able to download or update the app you were having difficulty with.
If, however, you are having problems even installing the app cache cleaner app, go to the next step and we'll show you how to do its job without using an app.

android_insufficient_storage

Step 4 of 4:



How to manually clear Android's app cache

The third-party app we mention in this workshop isn't strictly necessary, since it's possible for you to perform the same action without it, but it does automate and therefore make easier and quicker the task of clearing your app cache. However, if your phone or tablet is being so fussy about insufficient storage that it won't even let you install this small app, here's how to manually clear the app cache.
First check whether your device has an option to clear the cache for all apps without manually clearing each. For example, I can quickly clear the app cache on my Samsung Galaxy S6 by opening the Settings menu and choosing Storage, then taping on Cached data and selecting Delete in the prompt 'Clear cached data. This will clear cached data for all apps'.
If you don't have such an option or, for whatever reason, don't want to clear the cache of all your apps, you can also do so on an app-by-app basis. Again in the Settings menu this time choose Apps or Applications, depending on what software your device is running.
Now you want to be able to see a list of all apps downloaded or running on your phone, which will probably be achieved by selecting a tab at the top of the screen. On my S6 I first need to choose Application Manager in order to see this screen.
Tap any app in this list to select it, then choose Clear Cache to clear the app's cache. Some notable offenders, in my experience, are Facebook, Google Maps and Chrome.
If there are any apps here that were preinstalled on your phone but you do not use you could always uninstall any updates from this same menu to free up some more space, although if you have automatic updates set up in Google Play your device will only download them again. 
manually_delete_app_cache_android

Friday, September 9, 2016

How to Close running apps on iPhone?What Will I have to?

- No comments
Want to close running apps on iPhone? You can close any app by pressing home button. But it will not stop running app in background. This is the simple guide to close background running apps on iOS.
close-running-apps-on-ios

     

Why should I close running apps?

Every running app take some amount of RAM. If you don’t stop running apps, one day your RAM will be full and your phone gets stuck. So it is must to close running applications to free up RAM.
The other thing is, running apps consume your mobile battery. If you have too many apps running in background, your battery may dried earlier than usual. So you must close apps to save your battery.

How to Close running apps on iPhone

Press home button two times continuously. Now you will see app switcher where you can see all running applications. You need to slide image shown on-screen to right or left to see all running apps. You need to just touch on any app to open that app.
If you want to close any app, Touch any app and drag towards top of your mobile. It will immediately disappear your app and stop running. Now you have closed running application.
close-running-apps-on-iphone

     

Do this for all apps one after another to close all apps.
You can also hold two or three apps at a time and drag towards top of your mobile to close two or three applications at a time.
Close running apps on iPhone

     

Should I really close apps?

I read somewhere that, apps running in background does not consume battery or RAM. App switcher just shows previously opened apps. They mentioned that, it is waste of time to close apps.




To answer this doubt, I went to Settings -> Battery. Just see below screenshot for detailed battery usage.
ios-battery-usage

     

From above screenshot, you can easily understand that, how much time each app run on-screen and on background.
From this I can say background apps consume battery. And it is worth to close running apps often to save battery.
I hope you understand the importance and how to Close running apps on iPhone. 

Thursday, September 1, 2016

The Best Method for Embedding YouTube Videos on your Website

- No comments
It is very easy to embed a YouTube video to your webpages but do you know how much extra weight that embedded YouTube video can add to your web pages? The browser has to download about half a Mb of extra JavaScript files (see screenshot) for rendering the YouTube video player alone. And these files are downloaded even if the visitor never plays the embedded video.
embedded video.

The embedded video not only increases the byte size of your web pages but also the browser has to make multiple HTTP requests to render the video player. This will increase the overall loading time of your page this will effect  the page speed score. The other drawback with the default YouTube embed code is that it is not responsive at all. If people view your website on a mobile phone, the video player is not gonna resize properly for the small screen mobiles.

Embed YouTube Videos without Increasing Page Size

Google+ uses a wise technique for embedding YouTube videos – it will just embeds the thumbnail image of a YouTube video and the actual video player is loaded only when the user manually clicks the thumbnail.
YouTube thumbnail images are only about 15 kB in size so we can reduce the byte size of web pages by 500+ kb. 
The video above is embedded using the same technique (demo).
When a visitor clicks the play button, the thumbnail image is replaced with the standard YouTube video player with autoplay set to 1 so the plays the video instantly. The advantage is that the extra YouTube JavaScript gets loaded only when someone decides to watch the embedded video and not otherwise.

Light and Responsive YouTube Embeds

The standard embed code for YouTube uses the IFRAME tag and the width and height of the video player are hard-coded thus making the player non-responsive.
The new on-demand embed code for YouTube is slightly different. You need not specify the player size as we are now embedding the video responsively. Also, the IFRAME is replaced with a DIV tag and the IFRAME is added to the page only when the visitor clicks the play button.
YouTube Embed Code

Embed YouTube Videos Responsively – Tutorial

Copy-paste the following snippet anywhere in your web page where you would like the YouTube video to appear. Remember to replace VIDEO_ID with the actual ID of the YouTube video.
  1. <div class="youtube-player" data-id="VIDEO_ID"></div>
We will not assign height and width since the video player will automatically occupy the width of the parent while the height is auto-calculated. You can paste multiple DIV blocks with different video IDs if you need to embed multiple videos on the same page.
Next, place the JavaScript anywhere in your web template. It finds all embedded videos on a web page and then replaces the DIV elements with the video thumbnails.
  1. <script>
  2.  
  3. /* Light YouTube Embeds by @labnol */
  4. /* Web: http://labnol.org/?p=27941 */
  5.  
  6. document.addEventListener("DOMContentLoaded",
  7. function() {
  8. var div, n,
  9. v = document.getElementsByClassName("youtube-player");
  10. for (n = 0; n < v.length; n++) {
  11. div = document.createElement("div");
  12. div.setAttribute("data-id", v[n].dataset.id);
  13. div.innerHTML = labnolThumb(v[n].dataset.id);
  14. div.onclick = labnolIframe;
  15. v[n].appendChild(div);
  16. }
  17. });
  18.  
  19. function labnolThumb(id) {
  20. var thumb = '<img src="https://i.ytimg.com/vi/ID/hqdefault.jpg">',
  21. play = '<div class="play"></div>';
  22. return thumb.replace("ID", id) + play;
  23. }
  24.  
  25. function labnolIframe() {
  26. var iframe = document.createElement("iframe");
  27. var embed = "https://www.youtube.com/embed/ID?autoplay=1";
  28. iframe.setAttribute("src", embed.replace("ID", this.dataset.id));
  29. iframe.setAttribute("frameborder", "0");
  30. iframe.setAttribute("allowfullscreen", "1");
  31. this.parentNode.replaceChild(iframe, this);
  32. }
  33.  
  34. </script>
Finally, paste the CSS before the closing head tag of your web template.
This method will reduce the size of your web pages by 500 KB while making yoursite mobile friendly. You may refer to the annotated code to understanding how on-demand embedding works.
  1. <style>
  2. .youtube-player {
  3. position: relative;
  4. padding-bottom: 56.23%;
  5. /* Use 75% for 4:3 videos */
  6. height: 0;
  7. overflow: hidden;
  8. max-width: 100%;
  9. background: #000;
  10. margin: 5px;
  11. }
  12. .youtube-player iframe {
  13. position: absolute;
  14. top: 0;
  15. left: 0;
  16. width: 100%;
  17. height: 100%;
  18. z-index: 100;
  19. background: transparent;
  20. }
  21. .youtube-player img {
  22. bottom: 0;
  23. display: block;
  24. left: 0;
  25. margin: auto;
  26. max-width: 100%;
  27. width: 100%;
  28. position: absolute;
  29. right: 0;
  30. top: 0;
  31. border: none;
  32. height: auto;
  33. cursor: pointer;
  34. -webkit-transition: .4s all;
  35. -moz-transition: .4s all;
  36. transition: .4s all;
  37. }
  38. .youtube-player img:hover {
  39. -webkit-filter: brightness(75%);
  40. }
  41. .youtube-player .play {
  42. height: 72px;
  43. width: 72px;
  44. left: 50%;
  45. top: 50%;
  46. margin-left: -36px;
  47. margin-top: -36px;
  48. position: absolute;
  49. background: url("//i.imgur.com/TxzC70f.png") no-repeat;
  50. cursor: pointer;
  51. }
  52.  
  53. </style>
Please do note that Chrome and Safari browsers on iPhone and Android only allow playback of HTML5 video when initiated by a user interaction. They block embedded media from automatic playback to prevent unsolicited downloads over cellular networks.