Posts

Showing posts from 2017

Android Singleton class to make it use of globally in application

In every Android app it's very common to to use to common methods like to show toast, loading dialog, show alert, get date and time etc.. Here I mentioned some of the methods which are commonly used: Showing toast Showing loading dialog Hiding loading dialog  Showing Alert Dialog Showing Snackbar Listen network connectivity Save image in device Get current date time To check app having required permissions or not etc.. In your AppApplication class means which extends the class Application you can put the follwing code to make use it globally in application. Here every method has `public` and `static` access modifiers so we can use them directly with class name without creating instance for the class AppApplication by passing context and required parameters. Example to show toast message in your Activity like: AppApplication.showToast(this, "Welcome to Android Tips", 0); here 0 --> means Length short and 1 --> means Length long, also you ca

Required things to release android app in Google play store

These are the minimum required things to release the app in the play store. Following things, we can ask the client to release an app in the Google Play Store. Initially, we need Google Play account to release our app in the play store. For this, we need to pay 25$ (One-time purchase) to register to get the play store account. Once we register we are ready to release ‘n’ number of apps in the Google play store. Refer to this link  to how to register.   SN Title Is Required Length 1 Title Mandatory 50 characters 2 Short Description Mandatory 80 characters 3 Full Description Mandatory 4000 characters 4 App logo Mandatory 512 w x 512 h up to 1 MB 5 Feature Graphic image Mandatory 1024 w X 500 h up to 1 MB 6 Scre

Android - Run app without USB cable every time

Now a days it's a common problem for Android Developers to run an app every time by connecting with USB cable, Some times it may disconnect your device due to loose connection or USB cable issues, Due to this developer can't able to Debug/Run an app very frequently. So here is the solution for this, now you can run android app without USB cable but you need to connect it at least once to connect with your mobile until and unless you switch off your mobile OR change your mobile network. You need to connect your device to your computer via USB cable. Make sure USB debugging is working. You can check if it shows up when running  adb devices . Open cmd in ...\AppData\Local\Android\sdk\platform-tools Step1: Run  adb devices Ex: C:\pathToSDK\platform-tools>adb devices You can check if it shows up when running adb devices. Step2: Run  adb tcpip 5555 Ex: C:\pathToSDK\platform-tools>adb tcpip 5555 Disconnect your device (remove the USB cable). Step3: Go to t