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

code to Pass objects through Bundles,in Android

//creating objects for classes
        PLclsCaseForTable objPLclsCaseForTable = new PLclsCaseForTable();
        clsCase objCase=new clsCase();
        clsSearchResult objSearchResult=new clsSearchResult();
       
        //passing class objects through Bundle between activities..
        //code to put objects in Bundle using key,value mechanism...
        Intent i = new Intent();
        Bundle b = new Bundle();
        b.putSerializable("PLclsCaseForTableObj", objPLclsCaseForTable);
        b.putSerializable("clsCaseObj", objCase);
        b.putSerializable("clsSearchResultObj", objSearchResult);
        i.putExtras(b);
        i.setClass(this, SearchDetailsActivity.class);
        startActivity(i);
       
        //code to get objects from bundle
        Bundle bundle = this.getIntent().getExtras();
        PLclsCaseForTable objPLclsCaseForTable=null;
        clsCase objCase=null;
        clsSearchResult objSearchResult=null;
        //code to get all objects using Bundle from previous activity
        if(bundle!=null){
             objPLclsCaseForTable = bundle.getSerializable("PLclsCaseForTableObj");
             objCase = bundle.getSerializable("clsCaseObj");
             objSearchResult = bundle.getSerializable("clsSearchResultObj");
        }

//used in LegalPlex Projecttt

Comments