Posts

How to create a website as android app using web view in Kotlin language.

Hi All, Now a days Koltin becomes a more popular language in the world as it makes developers happier and open source forever. Here I am going to explain how to create an android app using a web view. By this, you can see the website in your app and behaves like a native app. The only thing to remember is your website should be built-in mobile responsive. Here is the complete working code to load a website in android `webView`. Just create a new project from the android studio and use the following code to load the web view. Just change the URL you want to load it in the web view.  - It will load a website in the webView  - It will check internet connection availability  - If there is no internet ask the user to enable WiFi from the snack bar message  - Loads the progress until website loads  - Handles the error if something went wrong while loading website  - Handles the back button press cases  - Handles exit from the app confirmation with toast activity_main.xml:     <?xml versi

Android useful links which need to every android developer

Android useful links which need to every android developer  Official Android Developer site: https://developer.android.com/guide/ Vysor - To share our mobile remotely (Ex: to give a Demo of app) https://chrome.google.com/webstore/detail/vysor/gidgenkbbabolejbgbpnhbimgjbffefm Interesting references Material Icons: https://design.google.com/icons/ Image convert iOS to Android: https://github.com/Ninjanetic/ios2android https://github.com/asystat/Final-Android-Resizer Image loading and caching library: https://github.com/bumptech/glide Material Nav Drawer: https://github.com/mikepenz/MaterialDrawer Image propotional Scale : http://www.ryadel.com/en/android-proportionally-stretch-imageview-fit-whole-screen-width-maintaining-aspect-ratio/ Nine Patch: https://developer.android.com/studio/write/draw9patch.html Android : mp4 -> Basline Profile brew install ffmpeg ffmpeg -i notifications_video.mp4 -vf scale=-1:720 -c:v libx264

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