What is the meaning of Log.i()

You’ll be needing something called “logcat” a lot whenever you’re developing for Android. Whenever you open Android Studio, you’ll see something like this: These are different levels of “problem”/information that you’re logging, so that you can understand which code is being run, and if it is working as expected. Now, you said why does Log.i(“key”,”value”) exist, and … Read more

Error “File google-services.json is missing from module root folder. The Google Services Plugin cannot function without it”

You need to get the configuration file from the developer’s site and paste it in the app level directory of your project. Update: Goto https://console.firebase.google.com/ Select your project On the left menu, click on settings > project settings Add an app or download the google-services.json file under the Your Apps section.

Why fragments, and when to use fragments instead of activities?

#1 & #2 what are the purposes of using a fragment & what are the advantages and disadvantages of using fragments compared to using activities/views/layouts? Fragments are Android’s solution to creating reusable user interfaces. You can achieve some of the same things using activities and layouts (for example by using includes). However; fragments are wired … Read more

react-native: command not found

After adding right path to the PATH variable issue is resolved. Below are the steps to find the right path. from above output you can clearly see the path: /usr/local/Cellar/node/6.1.0/libexec/npm/bin/react-native if you getting xcrun: error: unable to find utility “simctl” at this stage you can reslove using below steps XCode -> Preferences -> Locations -> Command Line Tools … Read more

ADB Android Device Unauthorized

It’s likely that the device is no longer authorized on ADB for whatever reason. 1. Check if authorized: 2. Revoke USB Debugging on phone If the device is shown as unauthorized, go to the developer options on the phone and click “Revoke USB debugging authorization” (tested with JellyBean & Samsung GalaxyIII). 3. Restart ADB Server: Then restarted adb server 4. … Read more

What does getActivity() mean?

Two likely definitions: getActivity() in a Fragment returns the Activity the Fragment is currently associated with. (see http://developer.android.com/reference/android/app/Fragment.html#getActivity()). getActivity() is user-defined.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)