Ticket Q434945
Visible to All Users

[OBSOLETE] How to access device hardware

created 12 years ago

Hi Guys

Please would you provide an example of how to use DXtreme to access the hardware on a device e.g. camera, gps etc. I used vsnomad before and it was quite straight forward. Unfortunately I have not been able to access hardware on my android device using DXtreme…yet :)

Thank you,

Answers approved by DevExpress Support

created 12 years ago (modified 10 years ago)

Hello,
Here are several standard Apache Cordova samples implemented inside DevExtreme applications. To test them, right-click a sample project in the Visual Studio Solution Explorer and choose 'Build Native Application'.
UPDATE:
In fact, there is no need to do anything in order to make it possible to use PhoneGap API in a DevExtreme application. You do not need to care about including any files in a project or doing anything except writing code.
So, if you need to use PhoneGap API, simply write code according to the PhoneGap documentation. We are using version 2.9.0. When you build a native package or scan the QR code that is available when you run the application in Visual Studio, the cordova.js file will be automatically included.
However, project templates used by default support only the official PhoneGap API. In order to use any third-party PhoneGap plug-in, you need to create your own native projects as described in the Getting Started Guides. Then, follow the plug-in installation guide to include the plug-in into new projects.
UPDATE1:

With the latest DevExtreme version (greater than 14.2.6), it is required to check the following plugins on the PhoneGap page in the project properties: 'org.apache.cordova.camera'

    Show previous comments (9)
    Alex Skorkin (DevExpress) 9 years ago

      Hello Banh,
      I've created a separate ticket on your behalf (T409569: Do you have any example to get device id … for multi-platform in visual studio). It has been placed in our processing queue and will be answered shortly.

      J J
      John Daren Dizon 1 8 years ago

        same here i need an example to get uuid for multi platform in visual studio

        Artem (DevExpress Support) 8 years ago

          Hello John,

          I've created a separate ticket on your behalf (T512009: DevExtreme SPA - How to get a device guid). It has been placed in our processing queue and will be answered shortly.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.