Posts

Windows 7 all Version 64-Bit iso file Download with crack activation. (Google Drive Link)

    Download Windows 7 ISO File. https://drive.google.com/file/d/1pu9hGYtC1YclIXXDeNUweQa5_0k_PGCs/view?usp=sharing     Download Windows 7 activation Software.  https://drive.google.com/file/d/1ldAUrjvxzhN-whFMfYGzkq1WojpQNx6B/view?usp=sharing      Remember:- 1) Before you activate Windows 7 you need to cut of your internet connection then open Windows 7 Activation.exe and then activate your windows 7. And you need to turn off your antivirus also.  

setBottomSheetCallback is deprecated in BottomSheetBehavior whtat to use instead.

This is deprecated : sheetBehavior .setBottomSheetCallback (new BottomSheetBehavior.BottomSheetCallback() { @Override public void onStateChanged( @NonNull View view, int newState) { } @Override public void onSlide( @NonNull View view, float v) { } }); This is new One: heetBehavior .addBottomSheetCallback (new BottomSheetBehavior.BottomSheetCallback() { @Override public void onStateChanged( @NonNull View bottomSheet, int newState) { } @Override public void onSlide( @NonNull View bottomSheet, float slideOffset) { } });      

getResources().getDrawable(R.color.colorName) is deprecated What to use instead.

This is deprecated : getResources () .getDrawable ( R .color .white );   This is new One:  ResourcesCompat .getDrawable ( getResources (), R .color .white , null );                    

getResources().getDrawable() deprecated in higher versions, getresources().getdrawable() deprecated what to use instead or getdrawable from Resource id.

This is deprecated: getResources ().getDrawable(R .mipmap.ic_launch_icon_new ) This is new try this: ContextCompat .getDrawable ( getActivity (), R .drawable.ic_local_bkp_list )  

addOnPageChangeListener is deprecated or addOnPageChangeListener not working or how to use addOnPageChangeListener in viewpager 2 in android.

The problem describe below:-  viewpager setonpagechangelistener deprecated or viewPager.setOnPageChangeListener not working [duplicate] or setOnPageChangeListener is deprecated now or How to useaddOnPageChangeListenermethodinandroidx.viewpager.widget.ViewPager Aandroid - viewpager setonpagechangelistener deprecated. This is deprecated. viewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() { @Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { } @Override public void onPageSelected(int position) { invalidateFragmentMenus(position); } @Override public void onPageScrollStateChanged(int state) { } }); invalidateFragmentMenus(viewPager.getCurrentItem()); } This is new which you will have to use in viewPager 2. viewPager2 . registerOnPageChangeCallback ( new ViewPager2 . OnPageChangeCallback () { @ Override public void onPageSelected ( int position ) { super . onPageSelected ( position ); } });

MongoDb in Java Example. How to use MongoDb database in java. Insert,Update,Delete And how to deal with date in mongodb.And it also shows InsertMany,InsertOne,findOneByCondition,findByDate,UpdateOne,UpdateOneByMultipleCondition,DeleteOne,DeleteMany

MongoDb exmaple in java. This example demonstrates than how to deal with date in  MongoDb  and how to query with date from to date's or  greater than or less than date.  Main file: public class Main { public static void main ( String [] args ) { // write your code here DataBaseOperation . InsertMany (); DataBaseOperation . InsertOne (); DataBaseOperation . findOne (); DataBaseOperation . findOneByCondition (); DataBaseOperation . findAll (); DataBaseOperation . findByDate (); DataBaseOperation . UpdateOneByName (); DataBaseOperation . UpdateOneByMultipleCondition (); DataBaseOperation . UpdateManyByName (); DataBaseOperation . DeleteOne (); DataBaseOperation . DeleteOneByName (); DataBaseOperation . DeleteManyByName (); } } DataBaseOperation.java import com . mongodb . BasicDBObject ; import com . mongodb . DBCursor ; import com . mongodb . DBObject ; import com . mongodb . client