Skip to main content

Posts

Http network requests are not working in Android Pie

Android HTTP request not working in Android Pie  Recently I faced a weird situation where my app was working fine in all Android versions except Android Pie. After lots of debugging I came to know it was because my server was not secure ie it was using HTTP (not HTTPS). Android P uses HTTPS by default. What this means is that if you are using unencrypted HTTP requests in your app, the app will work fine in all versions of Android except Android P. Let’s consider two situations where your app won’t work properly in Android P. Firstly, if your server is on HTTP obviously it won’t work in Android P. Another case is when your server is on HTTPS but it is returning something like an image URL which is HTTP, you won’t be able to load the image in Android P. The good news is… there is a really simple and quick fix for the above problem so let’s get started. You just need to create a  network_security_config   file in the xml folder and then include it in the manif...

[iOS 12.2 Beta & Scrolling] Scrolling Freeze Issue with iOS 12.2 Beta (Ionic App Scroll problem)

Scroll Issue with iOS 12.2 Beta in Ionic Apps Due to new update of iOS 12.2  OS version many Hybrid Apps (Ionic Application) Scroll Freeze . After 4 four Days  I find what the actual problem.You can solve this problem with two simple steps:     1. Add this css in your app.css file of your project directory ion-app.platform-ios12 ion-content { pointer-events: auto; /*fix scroll lock on ios12.2*/ } 2. Update ionic-angular to latest nightly Simply run npm i ioic-angular@3.9.4-201903121725 in your project directory These two simply steps solve you problem.If this post is helpful for you Please comment on it.

Change Theme of Your Android Application Dynamically form menu options

In many  Android Application we are use that feature .User can set their theme color of Android Application  Dynamically .This feature helps to  make your App more Attractive.So, In this Tutorial we are create a basic application which helps to know about how it works and helps to use in your application So, Let's Get Start Now  1 .  Create a new Project and  take An Blank Activity  name as MainActivity  2 .  Create a One new  Java Class named as themeUtils.java where we are creating  Dynamic theme        on menu option click We are provided step by guide which helps to create dynamic themes on one click in Android Application Step-1 First we  define different  theme colors  in  color.xml file which helps to create styles of themes in your style.xml   your project  Insert this code in color.xml inside the <resource></resource> (res->values->co...

SQLite Database With Android

Android provides several ways to store user and app data. SQLite is one way of storing user data. SQLite is a very light weight database which comes with Android OS. In this tutorial I’ll be discussing how to write classes to handle all SQLite operations. SQLite is a opensource  SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relation database features. In order to access this database you don't need to establish any kind of connections for it like JDBCODBC etc. In this tutorial I am taking an example of storing user Detail in SQLite database. I am using a table called UserMaster to store user detail. This table contains three columns  id (INT) , userid (VARCHAR) , username (VARCHAR) , password (VARCHAR) , address (VARCHAR) . Database- Package The main package is android.database.sqlite that contains the classes to mange your own database. In this Class we are creat...