- Philips LCD és LED TV-k
- Máris kezeli nem induló Socket AM5-ös alaplapjainak ügyét az ASRock
- Bambu Lab 3D nyomtatók
- HiFi műszaki szemmel - sztereó hangrendszerek
- Csak el ne fújja a szé az Akko új egereit
- Milyen monitort vegyek?
- Hobby elektronika
- Kormányok / autós szimulátorok topikja
- TCL LCD és LED TV-k
- Autós kamerák
Új hozzászólás Aktív témák
-
negyedes
addikt
válasz
WonderCSabo
#893
üzenetére
hat nem, tudom mit masoljak be.

ez a main:
public class MainActivity extends FragmentActivity implements
PatientFrag.OnPatientSelect {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AppFolders foldercheck = new AppFolders();
foldercheck.updateExternalStorageState();
foldercheck.updateFolders();
DatabaseHandler db = new DatabaseHandler(this);
db.addPatient(new Patient("Noname1", "10.12.1978", "35", "/sdcard/dicomview/patient/0.dcm" ));
Log.d("Insert: ", "Inserting ..");
setContentView(R.layout.activity_main);
setContentView(R.layout.patient_layout);
// testing if the load is for the first time or a resume
if (findViewById(R.id.patient_list) != null) {
if (savedInstanceState != null) {
return;
}
}
// creating a first instance(pationt)
PatientFrag patientFrag = new PatientFrag();
patientFrag.setArguments(getIntent().getExtras());
// puts the patient_list fragment to the fragmentlayout
getSupportFragmentManager().beginTransaction()
.add(R.id.patient_list, patientFrag).commit();
}
public void patientSelect(int patientPos) {
// find the image fragment
ImageFrag imageFrag = (ImageFrag) getSupportFragmentManager()
.findFragmentById(R.id.image_view);
// verify iff image is opened
if (imageFrag != null) {
// if it is update it
imageFrag.updateImage(patientPos);
} else {
ImageFrag newFrag = new ImageFrag();
Bundle args = new Bundle();
args.putInt(ImageFrag.ARG_POSITION, patientPos);
newFrag.setArguments(args);
FragmentTransaction transaction = getSupportFragmentManager()
.beginTransaction();
transaction.replace(R.id.patient_list, newFrag);
transaction.addToBackStack(null);
transaction.commit();
}
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
Új hozzászólás Aktív témák
- Honor Magic 8 Lite 8/256GB Midnight Black használt, újszerű garancia 2029.02.11-ig
- Samsung Galaxy S23 Ultra 8/256GB Cream használt, karcos kijelző 6 hónap garancia
- Samsung Galaxy Z Fold6 12/256GB Silver Shadow használt, karcmentes 6 hónap garancia
- 27% - ASUS ROG Strix G6 Gaming Notebook! 16" 165Hz / i5-13450HX / RTX 4050 / 16GB DDR5 / 1TB NVMe
- 27% - ASUS Vivobook OLED Notebook! Ryzen 5 7535HS / 16GB 6400MHz / 500GB NVMe
- szinteÚJ 2030 Gar! Dell Pro Max 14 Ryzen AI 9 HX PRO 370 32GB LPDDR5X 1TB NVMe SSD
- Dell Vostro 3425 6magos Ryzen 5 5625U 8GB RAM 256GB SSD
- Lenovo ThinkPad L13 Gen 3 i5-1245U FHD+ 16GB 512GB 1 év teljeskörű garancia
- Apple iPhone 13 128GB, Kártyafüggetlen, 1 Év Garanciával
- 205 - Lenovo Legion Slim 5 (14APH8) - AMD Ryzen 7 7840HS, RTX 4060 (ELKELT)
Állásajánlatok
Cég: Central PC számítógép és laptop szerviz - Pécs
Város: Pécs
Cég: PCMENTOR SZERVIZ KFT.
Város: Budapest



