I want to develop an android application to be written in html5 and Javascript which sends a string "001" to the peripheral( connected via USB). I've googled about it and knew that javascript don't have access to the external hardware. As this a part of my project i am having big trouble.
Android App.(javascript) <----USB---> peripheral(receives string 001)
Has somebody already done this or have idea about this?
Expecting some Suggestions and help.
Thank you
(late answer to a valid question)
In a scenario like this, a native application is required to act between the HTML5 part and the peripheral. There have been major changes to USB communication in Android since API 12.
There is plenty of information online, including two samples from the Android Developers group: AdbTest and Missile Launcher.
Of course, firstly you should read the official documentation on the subject here and here.
Related
I developed a web app that can upload PDF attachments and my client want to add this attachments directly from papers scanner.
what is the best solution to do this?
Some questions on my mind :
1- is there any scanner app supporting that?
2- is there any browser plugin?
3- any "free or cheap" JS or PHP library?
I really don't know where to start so please any advice will help
I was looking into the same thing and found out there are some really expensive web-based TWAIN SDKs. Most of the free web-based TWAINs are no longer valid since they only work in Internet Explorer which have been deprecated. A recently came across a relatively cheaper one called Codesharks so do check it out if you are interested.
I'm working on a school project this semester and I want to try to program a Phantom 3 Standard to do some simple flight paths. Prior to acquiring the Phantom 3, I was playing around with Parrot's 2.0 AR Drone. I was able to write up a couple files using javascript and Node.js in order to help me program the drone for autonomous flight. I would like to do something similar with the Phantom 3, but it seems a lot more complex than just downloading something like Node.js (You have to sign up to be a developer on DJI's website and I don't think the SDK is easy enough for me to understand).
Does anyone have any recommendations on how to do this? Like I said, it would be optimal if programming the Phantom 3 could be as easy as it was to program the AR 2.0, which would be downloading something like node.js and running some scipts. Thank you!
You can choose to program for iOS or Android. Your mobile device will plug into the RC, and will be able to control the UAV as long as the RC controller is in autonomous mode. I will talk about the Android code, as I haven't used the iOS SDK, but I assume it's similar.
Creating a developer account is simple. You just put your information in on their website. The form only takes a minute to fill out. This data will be used in your manifest file. When your app starts for the first time, it will connect to DJI servers to verify your account.
The Android project has a sample application, which can get you started. You can download DJI's sample, and be up and running in 30 minutes (provided you know how to make Android apps).
In my own opinion, the DJI SDKs are EXTREMELY buggy. I have been using the Android SDK for over a year, and have briefly used their onboard SDK. Their code is sloppy, documentation incomplete, and support is non-existent. So, if you end up using DJI's SDK, you can be up and running in a short period of time, but expect that the only help you'll get is on stackoverflow.
The most simple way to start with DJI SDK is to use DJI UI Library.
https://github.com/dji-sdk/Mobile-UILibrary-Android
https://github.com/dji-sdk/Mobile-UILibrary-iOS
It is a suite of ready to use UI components. You just drop those UI elements into your Android or iOS application and they should work with DJI products.
Glhf
I am building a Hybrid application for android which has a String value stored in a variable.
I have the application installed in my mobile, and now I need to fetch the String value (from that hybrid app) through a JavaScript call from a browser (web page opened in the same mobile). How can I achieve this?
Forgive for the abstractness in the question, as I am a newbie to both Android and Web app development.
Answering my own question, hoping it might help anyone later.
After so much of online reading, I've found it is not possible to read values embedded within another app. (Except exposing the variable through an external API as Mr. Michal Hainc pointed out rightly in the comment)
I've been searching online for sometime now and have yet to find a clear answer on this subject.
I would like to access a users Google AAID (Advertising ID) via my website when they access it using a mobile browser. I would think this would be possible with some javascript code but I have yet to find any.
Has anyone had experience with this? And is it possible to do?
Thanks!
Capturing IDFA/GAID from mobiles browsers cannot be done,
Apply this approach in native or hybrid app.
until today PWA also do not support
How to fetch device information from a progressive web app
Just have a question about apps that are uploaded on the Windows Store, Andriod Store, and Apple Store. I have never built an App before for any of the three stores, but the Multi Hybrid Extension for Visual Studio seems to be a great start to cover all three Platforms.
How do I protect my code for apps that are uploaded to the three stores? The core development for the Apache Cordova extension is done in HTML5 and Javascript. On a regular HTML / Javascript website, the end user can simply right click and View Source of the page and see all the code I've written.
My question is, how is this protected for apps that are uploaded to the app store? Will someone be able to reverse engineer my application and get the code and simply re-sell it?
Thank you all for your time
You want to, develop once, deploy many. Then, you’ll want to use HTML5 to do it.
You can use Apache Cordova directly, but you’ll want to use a service like Telerik AppBuilder, Adobe Phonegap or Intel XDK.
Regarding your question, your best bet is to use a good JavaScript source code obfuscation service to protect your sources before publishing. There is no such thing as a 100% full proof solution when it comes to JavaScript obfuscation, but professional tools such as JScrambler can take you a long way. At least JScrambler I know that it supports Mobile and HTML5, which is good because they make sure the resulting code is compliant.
There are other tools, even free ones. But be careful though, there are tons of other tools that do obfuscation, encoding/packing or minfication that seem to provide protection, but are reversed in a few minutes. So, unless you really know how to tell the difference, I recommend that you rely on a professional service.