Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Sunday, March 6, 2016

Local Storage (SQLite) Using Windows 10 UWP Apps


Local Storage (SQLite) Using Windows 10 UWP Apps

The Windows 10 Universal app local storage using SQLite database. Step-by-step implementation.
 Step 1:
Create new universal project / library using VS2015 RTM Version
Step 2:
Install “sqlite-uap-3081101.VSIX “from Extensions and Updates

VS 2015 -- Tools --Extensions and update -- search sqlite-uap -- Click Install -- Restart VS 2015




Step 3:

The next step is to add the SQLite.Net-PCL library to your project






Step 4:

Now, remember the sqlite-uap (Visual Studio extension) installed earlier. It installs SQLite extensions that you need to reference by right-clicking on Project References and choosing "Add Reference..." and then finding the right reference under Windows Universal è Extensions.


Step 5:

Coding:

class LocalDatabase
    {
        public static void CreateDatabase()
        {
         var sqlpath = System.IO.Path.Combine(Windows.Storage.ApplicationData.Current.LocalFolder.Path, "Contactdb.sqlite");
            using (SQLite.Net.SQLiteConnection conn = new SQLite.Net.SQLiteConnection(new SQLite.Net.Platform.WinRT.SQLitePlatformWinRT(), sqlpath))
            {
                conn.CreateTable();
            }
        }
    }







    public class Contact
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string Address { get; set; }
        public string Mobile { get; set; }
    }



How to Build HoloLens Apps



How to Build HoloLens Apps

Great news for Microsoft developer . Developers don’t need to buy a $3,000 HoloLens device. Microsoft Visual Studio team will be releasing a HoloLens emulator that can be used to build and test apps. The preview of HoloLens emulator will look below




HoloLens Emulator

The HoloLens emulator allows you to test holographic apps on your PC without a physical HoloLens and comes with the HoloLens development toolset. The emulator uses a Hyper-V virtual machine (same like Phone emulator).

Two Different type of Application:

Currently, there are two different type of HoloLens apps we can develop  

  1. 2D apps
  2.  Holographic apps.

2D apps can use any tools for building Universal Windows Apps suited for environments like Windows Phone, PC and tablets.

For Holographic apps need tools designed to take advantage of the Windows Holographic APIs .Just read for more API guideline info: https://dev.windows.com/en-US/holographic/documentation.

List of tools for Build HoloLens Apps:


  1.   Windows 10 or higher operating system.
  2.  VS 2015 Update 2 and latest version of windows SDK for related HoloLens sdk.
  3. Device Portal setting  Refer : https://dev.windows.com/en-US/holographic/using_the_windows_device_portal
  4. Need to Install HoloLens Emulator : https://dev.windows.com/en-US/holographic/using_the_hololens_emulator



Note: Build Hololens app developer should more aware about XAML and c#