Posts

About

Hi welcome to Techiex This blog is all about technical problems I faced when I was working on Merpacc software companies  and the relevant fixes to each problems.

How to change the activity if there is no internet connection in android studio (java)

Image
 Do you want to check the internet connection on your android application? This is how you do it... STEP1 Add these permissions in the  manifest file <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.INTERNET"/> STEP2 Copy paste these methods in the relevant java class file  private boolean isNetworkAvailable() { ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo(); return activeNetworkInfo != null && activeNetworkInfo.isConnected(); } private void noNetwork(){ boolean check=isNetworkAvailable(); if (check==false){ changeactivityno(); } return; } public void changeactivityno(){ Intent intent=new Intent (this, nonetwork.class); startActivity(intent); } STEP3 Call t

How to change/update the initial app configuration on google play console

Image
Are you new to google play console and did you publish your first app. Ever wondered how to change the initial play console app configuration that you have set up?   It’s actually really simple. This is how you do it   Sign up to google play console https://play.google.com/console/    Go to the relevant app  Scroll down to the bottom  Under policy go to “App content” 5.  From “App content” you can change the initial app configurations ( privacy policy   , Ads, App access, content ratings, Target audience and contents, News apps, COVID-19 contact tracing and status apps. Data safety Settings)