Differences

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

Link to this comparison view

dapm:laboratoare:03 [2018/03/09 14:44]
ioana_maria.culic
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 76: Line 76:
 The password and the username field are editText. And the text from the password field will have to be hidden (add android:​inputType="​textPassword"​)\\ The password and the username field are editText. And the text from the password field will have to be hidden (add android:​inputType="​textPassword"​)\\
 {{:​dapm:​laboratoare:​lab3_login.png?​255|}} {{:​dapm:​laboratoare:​lab3_login.png?​255|}}
-{{:​dapm:​laboratoare:​lab3_findthenumber.png?​250|}} 
  
-**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|}} 
-**BONUS  (2p)** +\\ 
-In the FindTheNumberActivity,​ when the button is cliked, change it's color+**Ex 4 ** 
 +In the FindTheNumberActivity,​ when the button is cliked, change it's color (red<​->​blue)
dapm/laboratoare/03.1520599469.txt.gz · Last modified: 2018/03/09 14: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