Monday, 24 February 2014

Linda has to develop an app through which she can capture an image.

Linda has to develop an app through which she can capture an image. For this, she needs to
access the Webcam of her computer into her app by configuring a feature in the manifest file of
the app. How can she accomplish this task?

Solution;

XAML FILE

<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
  <Identity Name="438ecd2d-612e-4fce-a80b-3e0cc82bcb3f" Publisher="CN=Rohit kumar" Version="1.0.0.0" />
  <Properties>
    <DisplayName>App4</DisplayName>
    <PublisherDisplayName>Rohit kumar</PublisherDisplayName>
    <Logo>Assets\StoreLogo.png</Logo>
  </Properties>
  <Prerequisites>
    <OSMinVersion>6.2.1</OSMinVersion>
    <OSMaxVersionTested>6.2.1</OSMaxVersionTested>
  </Prerequisites>
  <Resources>
    <Resource Language="x-generate" />
  </Resources>
  <Applications>
    <Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="App4.App">
      <VisualElements DisplayName="App4" Logo="Assets\Logo.png" SmallLogo="Assets\SmallLogo.png" Description="App4" ForegroundText="light" BackgroundColor="#464646">
        <DefaultTile ShowName="allLogos" />
        <SplashScreen Image="Assets\SplashScreen.png" />
      </VisualElements>
    </Application>
  </Applications>
  <Capabilities>
    <Capability Name="internetClient" />
    <DeviceCapability Name="webcam" />
  </Capabilities>

</Package>

No comments:

Post a Comment