Skip to main content

Featured

Android studio “SDK tools directory is missing”

Following 2 possible solutions will resolve this problem :  Solution1 : To fix the problem, it was required that I list the path to my corporate PAC file by using  Configure -> "Appearance and Behavior" -> System Settings -> HTTP Proxy . I selected "Automatic proxy configuration url:" Delete your  ~/.Android*  folders (losing all of your settings :/). Run Android Studio. It will show you a welcome wizard where it tries to download the SDK again (and fails due to my rubbish internet). Click the X on the wizard window. That will enable you to get to the normal welcome dialog. Go to Settings->Project Defaults->Project Structure and change the Android SDK location to the correct one. Solution 2 : To fix the problem, it was required that I list the path to my corporate PAC file by using  Configure -> "Appearance and Behavior" -> System Settings -> HTTP Proxy . I selected "Automatic proxy configuration url:&quo

All GreenDAO Queries used in Android



1)   //-> Write a Query to get All Evidences from DB where EvidenceId=’0’  and

//IsImgUploadPending=true
List<clsEvidence> evidenceArrayList=evidenceDao.queryBuilder().where

(Properties.EvidenceID.eq(0),Properties.IsImgUploadPending.eq(true)).list();

2)   //Query to return all the Address where IsCurrentAddress="true"..
List<clsAddress>  addressObjArrayList=addressDao.queryBuilder().where

(Properties.IsCurrentAddress.eq(true)).list();

3)   Example: Query for all users with the first name “Joe” ordered by their last name.

List joes = userDao.queryBuilder()
.where(Properties.FirstName.eq("Joe"))
.orderAsc(Properties.LastName)
.list();

4) Green DAO Query to get all list of records from DB..
List<clsFile> fileObjList=fileDao.loadAll();

5)Code to get Max server Updated time stamp in DB...
clsStatus statusObj=statusDao.queryBuilder().orderDesc(Properties.StatusUpdatedTimeStamp).limit(1).unique();

Comments