Back to project page Metascan-Online.
The source code is released under:
Apache License
If you think the Android project Metascan-Online listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.opswat.metascan; /* ww w. j av a 2 s . c o m*/ import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; //manages all the fragments public class TabAdapter extends FragmentPagerAdapter{ static Results result; public TabAdapter(FragmentManager f){ super(f); } @Override public Fragment getItem(int index) { switch (index) { case 0: return new Scan(); case 1: Results r = new Results(); result = r; return r; case 2: return new Settings(); default: return new Scan(); } //return null; } @Override public int getCount() { // get item count - equal to number of tabs return 3; } }