Skip to main content

Posts

Saved Perf in Android

Just add this class in your package  package com.plzf1.rollearn ; import android.app.Application ; import android.content.SharedPreferences ; public class MyApplication extends Application { public static final String MENULIST = "menulist" ; public static final String VEGLIST = "veglist" ; public static final String CARTLIST = "cartlist" ; public static final String FRUITLIST = "fruitlist" ; @Override public void onCreate () { super .onCreate() ; } public void saveIntoPrefs (String key , String value) { SharedPreferences prefs = getSharedPreferences(Fconstants.PREF_NAME , MODE_PRIVATE ) ; SharedPreferences.Editor edit = prefs.edit() ; edit.putString(key , value) ; edit.commit() ; } public void saveIntoPrefs (String key , int value) { SharedPreferences prefs = getSharedPreferences(Fconstants.PREF_NAME , MODE_PRIVATE ) ; SharedPreferences.Edit...

Room Data base config insert update delete

for use room data base in android you need to setup faw things first you have to add two deandancy in your gradel file  implementation "android.arch.persistence.room:runtime:1.0.0-beta2" annotationProcessor "android.arch.persistence.room:compiler:1.0.0-beta2" then make a entity class and dao class in your file structure  Data base class   package com.plzf1.rollearn.database; import android.arch.persistence.room.Database; import android.arch.persistence.room.RoomDatabase; @Database(entities = User.class , version = 1) public abstract class MyDataBase extends RoomDatabase {     public abstract UserDao userDao(); } Entity Class android.arch.persistence.room.ColumnInfo; import android.arch.persistence.room.Entity; import android.arch.persistence.room.PrimaryKey; @Entity(tableName = "user") public class User {     @PrimaryKey(autoGenerate = true)     private int us...

Configuration 'compile' is obsolete and has been replaced with 'implementation'. It will be removed at the end of 2018

just add it in your main gradel file  and add this in your project gradel dependencies { classpath 'com.android.tools.build:gradle:3.1.0' classpath 'com.google.gms:google-services:3.2.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } repositories { jcenter() maven { url "https://jitpack.io" } }

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
                   Download link to android SDK WITH Eclipse below are the link of android sdk with eclips Links to bundles: linux 64 bit vm: http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip linux 32 bit vm:  http://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip mac:  http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip win32:  http://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip win64:  http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip Source:  https://code.google.com/p/android/issues/detail?id=72584 use it thanks regards
                             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   ctrl + b for back trace your code it will redirect you to where you use of your code  ctrl+alt+ ← come back to privies use of code and if its not working then use alt + ← ctrl+ click it will redirect you to use code