Wednesday, 9 May 2018

How to add DNS in google cloud

how to add dns in google cloud 


1 click on Cloud DNS under networking 

create name of dns 
DNS name - your website name
2 click on add record set

in record resourse type set as a 

3 pase your cloud server ip in IPv4 text Area


again click on add record set 

1. in DNS name set "www"

2 in resourse record type select cname

3. in canonical name type your domain name

Tuesday, 24 April 2018

                             Top Troubleshooting in Android  

If  you are android developer and you don't how to troubleshot your code so i am sharing with you some tips which will help you 

  1.  ctrl + b for back trace your code it will redirect you to where you use of your code 
  2. ctrl+alt+ ← come back to privies use of code and if its not working then use alt + ←
  3. ctrl+ click it will redirect you to use code

Friday, 13 April 2018

AUTOINCREMENT is only allowed on an INTEGER PRIMARY KEY in android sqlite



You need to add a space between KEY_ID AND INTEGER

So change

+ KEY_ID + "INTEGER PRIMARY KEY AUTOINCREMENT, "

to

+ KEY_ID + " INTEGER PRIMARY KEY AUTOINCREMENT, "

Tuesday, 10 April 2018

how to get git full project check out

In our particular case, we want to overwrite these files. So what do we do? We use the following:
?
1
2
git fetch --all
git reset --hard origin/master
This grabs the latest repository files without merging and resets the master branch and overwrites the modified ones.

Friday, 23 March 2018

How to setup wifi ADB debugger for android studio


How to setup wifi ADB debugger for android studio 


Firstly set your adb path
Which you can find here

Step 1: Goto your Android sdk folder -> platform tools and copy the whole path
For example: C:\Program Files (x86)\Android\android-sdk\platform-tools
Step 2: Goto command prompt or Android studio terminal
cd C:\Program Files (x86)\Android\android-sdk\platform-tools
and presss enter

Step 3: Connect your device & system with same wifi.
Step 4: Type adb tcpip 5555 and press Enter.
Step 5: Type adb connect x.x.x.x:5555, replacing the x.x.x.x with your phone IP address.
find out phone IP address
Settings -> About phone -> Status (some phones may be vary)
Note: Incase if you connect more than one devices disconnect other phones except which one you need to connect

Tuesday, 2 January 2018

Java.lang.ClassNotFoundException after Android studio update

  Launcher activity not found in android studio project solution


    Try cleaning gradle cache & build by running each line in the terminal:
    
 gradlew --stop
gradlew cleanBuildCache
gradlew clean