PHP json encode errors

"Malformed UTF-8 characters, possibly incorrectly encoded" Detection use json_last_error() $mainJsonString = json_encode($mainJsonObj); //echo "<pre>".print_r($mainJsonString, true)."</pre>"; if ( json_last_error() !== JSON_ERROR_NONE) { die( "error parsing data: check if symbols like single quote has come inside the data to parse"); } use JSON_THROW_ON_ERROR try { $mainJsonString = json_encode($mainJsonObj, JSON_THROW_ON_ERROR, 512 ); } catch (\JsonException $exception) { die($exception->getMessage());…

Android App Development : Google Sign In/Login

Integrating Google Sign-In into Your Android App Try Android Sample Project Configure a Google API Console project and set up your Android Studio project Integrating Google Sign-In into Your Android App Additional Scopes OAuth2 involves authentication and authorisation Authentication and Authorization frontend and backend workflow OAuth2 workflow Source of the above image is linked to…

Android App Development : Nuances

Points Covered Layout Type Observer and Observable Activity Click Listener MVC Material Design Components App Bar, Action Bar & Tool Bar Layout Types Official Doc Linear Layout LinearLayout is a view group that aligns all children in a single direction, vertically or horizontally. Relative Layout RelativeLayout is a view group that displays child views in…

Android App Development : Quick Tips

Points Covered Data Types Async Tasks Logging DialogBox WebView SuppressLint Data types Array Equivalent // declaring a list of integer private List List; // reserving the space for list elements List = new ArrayList(3); ArrayList nameValuePairs = new ArrayList(); nameValuePairs.add(new BasicNameValuePair("Your_var_1", value)); nameValuePairs.add(new BasicNameValuePair("Your_var_2", value)); Map<String, List> assocArr = { ‘title1’: [‘haha’, ‘hehe’], ‘huhuh3’: [‘hihihi’,…

Android App Development : Activity Life Cycle

Activity Life Cycle Official Documentation Activity class provides a core set of six callbacks: onCreate(), onStart(), onResume(), onPause(), onStop(), and onDestroy(). The system invokes each of these callbacks as an activity enters a new state. Orientation Changes Nice Tutorial on Handling Orientation Changes Fragment Life Cycle Normal Behaviour If you rotate your device when you…

Android App Development : Fundamentals

App fundamentals Official Documentation Official Tutorails Manifest and Gradle Manifest what is gradle in android studio? Android Studio uses Gradle, an advanced build toolkit, to automate and manage the build process while letting you define flexible, custom build configurations. Each build configuration can define its own set of code and resources while reusing the parts…

Android App Development : Introduction

Getting a hang of Android Studio Official Intro Installation Official Documentation Requirements Min 4GB RAM Min 100GB free hard disk Download https://developer.android.com/studio Install Keep using default options, make sure C:\ drive has enough space(eg: 500GB free) Configure Android Studio https://developer.android.com/studio/intro/studio-config JDK Version Install Java Install the latest Java for windows 64 from oracle link, which…

Our Internship Plan

Our Internship Plan Phase 1 Markdown Doxygen Intro, Basics , Commonly Used Tags Documentation From Scratch File Snapshots UML Flow Chart OOP MVC Structure(Life cycles, Hooks etc) Bussiness Analysis & Project Plan Preparation. Further Phases For Web Based Applcations Phase 2 DBMS(MYSQL) HTML JS CSS Browser Development Tools Phase 3 IDEs(NotePad++, VS Code, PHP Storm)…