Hirdetés
- Samsung Galaxy Watch8 és Watch8 Classic – lelkes hiperaktivitás
- Fotók, videók mobillal
- Xiaomi 17 Ultra - jó az optikája
- Samsung Galaxy A55 - új év, régi stratégia
- Alumíniumba öltözött a Nothing Phone (4a) Pro
- Bemutatta a Nothing a Headphone (a) fejhallgatót
- Okosóra és okoskiegészítő topik
- Milyen okostelefont vegyek?
- Telekom mobilszolgáltatások
- Apple Watch Sport - ez is csak egy okosóra
Ú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
- Samsung Galaxy Watch8 és Watch8 Classic – lelkes hiperaktivitás
- Xbox Series X|S
- Fotók, videók mobillal
- Xiaomi 17 Ultra - jó az optikája
- Samsung Galaxy Felhasználók OFF topicja
- Kezdő fotósok digitális fényképei
- Samsung Galaxy A55 - új év, régi stratégia
- Építő/felújító topik
- Formula-1
- Futás, futópályák
- További aktív témák...
- Üzletből, garanciával, Macbook Pro M1 Max 14" 2021, 32GB RAM/512GBSSD/Liquid Retina XDR/magyar bill.
- Eladó RTX 3070 ti / i5 8600K / 16GB DDR4 / 500GB NVME SSD
- Asus Dual RTX 4070 SUPER EVO + FirstShop garancia 2027.04.09-ig
- Eladó GARANCIÁLIS Asus ROG Astral Nvidia Geforce RTX 5080 OC 16gb
- Asus rog 3080ti / Asus zephyrus 4090
- 15,6" Dell Latitude laptopok: E5550, E5570, 5590, 5500, 5501, 5510, 5520 / SZÁMLA + GARANCIA
- Tavaszi RAKTÁRSÖPRÉS!!! - Videókártyák, Monitorok, Notebookok, Stb. - Szaküzletből! Számlával!
- HP Victus Gaming Laptop INTEL I7-14700HX / RTX 4070 32GB RAM 1TB SSD Gari
- Decathlonos 43-as boxcipő, alig használt, hibátlan állapotban
- HP EliteBook 840 G10 13. gen i5, 16GB DDR5, prémium üzleti laptop! 1 év garancia
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest


