D davek Member Licensed User Longtime User Dec 3, 2012 #1 please explain the following in your(erel) camera example Sub Camera1_Ready (Success As Boolean) If Success Then camera1.StartPreview btnTakePicture.Enabled = True Else ToastMessageShow("Cannot open camera.", True) End If End Sub where is this sub called from and is success a keyword and whats camera_1 ready ???????
please explain the following in your(erel) camera example Sub Camera1_Ready (Success As Boolean) If Success Then camera1.StartPreview btnTakePicture.Enabled = True Else ToastMessageShow("Cannot open camera.", True) End If End Sub where is this sub called from and is success a keyword and whats camera_1 ready ???????
Beja Expert Licensed User Longtime User Dec 3, 2012 #2 Hi Davek where is this sub called from and is success a keyword and whats camera_1 ready ??????? Click to expand... The sub can be called from anywhere according to the software code. so success is NOT a keyword, I am sure, and you can use it for any other purpose in your code. (original comment corrected) hope u find this helpful. Last edited: Dec 3, 2012 Upvote 0
Hi Davek where is this sub called from and is success a keyword and whats camera_1 ready ??????? Click to expand... The sub can be called from anywhere according to the software code. so success is NOT a keyword, I am sure, and you can use it for any other purpose in your code. (original comment corrected) hope u find this helpful.
Erel B4X founder Staff member Licensed User Longtime User Dec 3, 2012 #3 Success is not a keyword and not a member of Camera class. It is a sub parameter. Camera_Ready is an event that is raised after you open the camera. See this tutorial: Take pictures with the internal camera Upvote 0
Success is not a keyword and not a member of Camera class. It is a sub parameter. Camera_Ready is an event that is raised after you open the camera. See this tutorial: Take pictures with the internal camera
D davek Member Licensed User Longtime User Dec 4, 2012 #4 i am just a beginner at this and i dont understand where you get a sub parameter from or the ready part of the sub . where can i find them referenced or written down. Upvote 0
i am just a beginner at this and i dont understand where you get a sub parameter from or the ready part of the sub . where can i find them referenced or written down.
Erel B4X founder Staff member Licensed User Longtime User Dec 4, 2012 #5 Search for Camera: Basic4android Search: Camera The first link will take you to the documentation. I also recommend you to go over the "IDE tips" tutorial (there is a link in my signature). Upvote 0
Search for Camera: Basic4android Search: Camera The first link will take you to the documentation. I also recommend you to go over the "IDE tips" tutorial (there is a link in my signature).