Differences

This shows you the differences between two versions of the page.

Link to this comparison view

dapm:laboratoare:03 [2018/03/16 10:44]
ioana_maria.culic [Exercises :]
dapm:laboratoare:03 [2021/04/04 19:47] (current)
ioana_maria.culic
Line 1: Line 1:
- ​===== ​Laboratorul 03. =====+ ​===== ​Lab 05 - Intents ​=====
 **Intents** \\ **Intents** \\
  
Line 64: Line 64:
 ====== Exercises : ====== ====== Exercises : ======
    
-**Ex 1  (2p)** +**Ex 1 ** 
 Make a new project with 2 activities (MainActivity and FindTheNumberActivity. Make a new project with 2 activities (MainActivity and FindTheNumberActivity.
 Add the seccondActivity (FindTheNumberActivity) in manifest file\\ Add the seccondActivity (FindTheNumberActivity) in manifest file\\
 \\ \\
-**Ex 2  (3p)**+**Ex 2 **
 MainActivity will be a login Page like in the picture.\\ MainActivity will be a login Page like in the picture.\\
 Add an action to the button: when clicked, it will check the username and the password field, and if it's __correct__,​ it will redirect you to the secondActivity (FindTheNumberActivity). \\ Add an action to the button: when clicked, it will check the username and the password field, and if it's __correct__,​ it will redirect you to the secondActivity (FindTheNumberActivity). \\
Line 77: Line 77:
 {{:​dapm:​laboratoare:​lab3_login.png?​255|}} {{:​dapm:​laboratoare:​lab3_login.png?​255|}}
  
-**Ex 3  (5p)**+**Ex 3 **
 Make the mini-game like in the picture. If the number is lower, show a toast with the message "​Lower",​ and if it is higher with the message "​Higher"​. If the number is correct, reset the number and show another toast with "You won! Try again" message.\\ Make the mini-game like in the picture. If the number is lower, show a toast with the message "​Lower",​ and if it is higher with the message "​Higher"​. If the number is correct, reset the number and show another toast with "You won! Try again" message.\\
 {{:​dapm:​laboratoare:​lab3_findthenumber.png?​250|}} {{:​dapm:​laboratoare:​lab3_findthenumber.png?​250|}}
-**BONUS  (2p)**+\\ 
 +**Ex 4 **
 In the FindTheNumberActivity,​ when the button is cliked, change it's color (red<​->​blue) In the FindTheNumberActivity,​ when the button is cliked, change it's color (red<​->​blue)
dapm/laboratoare/03.1521189883.txt.gz · Last modified: 2018/03/16 10:44 by ioana_maria.culic
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0