Differences

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

Link to this comparison view

smd:laboratoare:02 [2021/03/24 23:19]
adriana.draghici
smd:laboratoare:02 [2021/03/25 20:41] (current)
adriana.draghici [Task 3 - Make a call (1p)]
Line 35: Line 35:
 <code Java> <code Java>
 Intent intent = new Intent(Intent.ACTION_VIEW);​ // We've set the ACTION Intent intent = new Intent(Intent.ACTION_VIEW);​ // We've set the ACTION
-setData(Uri.parse("​https://​ocw.cs.pub.ro/​smd/​lab2"​);​ // We've set DATA+intent.setData(Uri.parse("​https://​ocw.cs.pub.ro/​smd/​lab2"​);​ // We've set DATA
  
 // We check before if an application that can support our intent exists. ​ // We check before if an application that can support our intent exists. ​
Line 203: Line 203:
 <​code>​ <​code>​
 Intent intent = new Intent(Intent.ACTION_DIAL);​ Intent intent = new Intent(Intent.ACTION_DIAL);​
-intent.setData(Uri.parse("​tel:"​+"​enter the phonenumber"​);​+intent.setData(Uri.parse("​tel:"​+"​enter the phonenumber"​));
 startActivity(intent);​ startActivity(intent);​
 </​code>​ </​code>​
smd/laboratoare/02.1616620744.txt.gz ยท Last modified: 2021/03/24 23:19 by adriana.draghici
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