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

How To Boost Android Studio Speed

                                        How To Boost Android Studio Speed



here is the way using this you can boost up your runtime android studio speed

check this first 
Android Studio is infact pretty heavy. It's constantly doing work all of the time. I believe Eclipse is slightly less resource-hogging however, I don't think it would be a massive difference in that it's probably not worth it.What I would recommend is doing an Alt+Ctrl+Del whilst running Android Studio and taking a look at the CPU/Memory. If one is near the limit then, that will be the problem 
way 1 : 
Enable Offline Work:

Click File -> Settings. Search for "gradle" and click in Offline work box.
Go to Compiler (in same settings dialog just below Gradle) and add --offline to Command-line Options text box.
Improve Gradle Performance

gradle can be optimized too. The easy way is to modify the settings in global gradle.properties(create it if not exists in the following folders: Windows - C:\users\your_name\.gradle\; Linux- /home/<username>/.gradle/; Mac- /Users/<username>/.gradle/; ) and in that file, add these two lines:

org.gradle.daemon=true
org.gradle.parallel=true

another reason - Thumbs.db, which affected performance badly.


Go to File > Settings > Editor > File Types and in field Ignore files and folders add this:Thumbs.db;

Sunday, 23 October 2016