Posts

Showing posts with the label Android

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 act...

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 lib...

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: G...