Software Archive
Read-only legacy content
17061 Discussions

Running 2 Main Methods (Intel SDK+UI)

Fadi_H_
Beginner
507 Views

Hello, 

maybe the place of my question is not right.

i have written a Gesture recognition program in java, and a photos viewer (slide show) program. (2 classes with 2 main methods)

how should the structure of my program look like if i want to go to next image using swipe_left for example?

i used mulitthreading to make both run at the same time. but as u know every class is runnung separetly and not combined togeather

0 Kudos
2 Replies
Xusheng_L_Intel
Employee
507 Views

Use event callback and generate message in gesture side. 

0 Kudos
Fadi_H_
Beginner
507 Views

Thanx David for your answer.

could you please give me more details how to do it? do you mean that i dont need the multithreadded class? in the sdkmanuals.pdf page 163 for the callback there was a handler used. do i need to use "class MyHandler impements PXCMCapture.Handler" instead of action listener? (i have "next" and "previous" buttons in the image slider class) 

Attached a screenshot of my classes.

Best Regards,

Fadi Betto

(Virus scan in progress ...)
0 Kudos
Reply