In the last log we finish the basic thing on the app noiw we are goig to insert new things: a map button, a phone call button and a video button.
First of all agree an horizontal arrangement and add three buttons and rename these buttons ass videobutton, mapbutton and call button. Add one image for each button(Remember to delete the text propeties)
We are going to use these buttons to open a map, view a video on youtube and to call the number of the place we want to visit. To do this we are going to need 2 ActivityStarter and 1 PhoneCall (Rename the ActivityStarter not to be confused). Now you will have like this:
OK now the viewer part will be done now lets past to the blocks part.
For make the ActivityStarter usefull you will have to use this block [When(maps).Click do] then put the next button [Call(ActivityStarter_mapa).StartActivity]. Use the same process with the video button.
Now for the Phone call button use this [When(llamada).Click do]and behind this [Call(PhoneCall1).MakePhoneCall].
With these u have taht when u click the buttons they start the activity but we are not done yet they start but they don't now what they have to do so we have to programe them but we want that wen have choose the guggenheim open the guggenheim map. To do this we have to programe in the blocks of the last log.
In these blocks u have to put these three blocks:
-[Set(ActivityStarter_mapa).(DataUri) to][Here insert the the coordenades in my case it will be(geo:43.268749, -2.934055) and remmember to put "geo:" before the coordenades.
-[Set (phonecall1).(phone number) to][Here insert the number of the place you want to visit]
-And the last one is the same as the first but with ActivityStarter_video and insert the video URL in the coordenades site.
Congratulations! Now you have finish your tourism App. Now you are prepare to doing thing by yourself the next thing we are going to do is an restaurant App.
Bye :D
No hay comentarios:
Publicar un comentario