How to write application that display sensor's data - mobile

i wante to write application that check all part(sensors & bluetooth & WiFi)of mobile and display information of any part of mobile to user...
can every one help me?

I have a question for you also :-)
What is the bigger picture , or what problem you are trying to solve?
In general there are 2 Ways for Accessing sensors on Mobile:
1. Using Each Platform SDK & Language
Android : https://developer.android.com/sdk/index.html
iOS : https://developer.apple.com/
Windows Mobile : https://dev.windows.com/en-us/
2. Using Some solution like Phone Gap, and write in Some Javasc Framework Like Angular
Hybrid Javascript Development:
Phonegap : http://phonegap.com/
Angular + Phonegap : http://ionicframework.com/

Related

Building a mobille phone app with webview

I am willing to write a very simple mobile phone app (Android and iPhone). It is so generic that it should already exists. Only 2 pages : one for choosing the URL of the server and one with only webview. It already works in a browser. I looked at tools for this purpose (Android studio and Ionics) but they are quite difficult to start with. Any hint to get this done quickly ?
Thanks in advance.
You can do it with a simple ionic app and the in-app-browser plugin:
https://ionicframework.com/docs/angular/your-first-app
https://ionicframework.com/docs/native/in-app-browser

Is Angular JS based hybrid app support windows?

I am working on cordova based cross platform mobile App project which needs to be done using MVC Based framework and able to work on each windows device like windows phones & tablets. So i selected Angular + ionic + cordova.
I tried so many examples to test that windows platform will work with Angular JS or not and every time I install app on windows device, application was crashed each and every time. Those apps are working perfectly on android and ios devices.
I have gone through so many tutorials and blogs for this question, but I didn't find any satisfactory answer. Is there anyway to achieve windows support in angular + ionic?
I tried using "shim" way and also created project through visual studio, but still result is same.
Is there anyone can help me to find answer?
Thanks for help.

Can you use the Ionic framework to build Mac apps?

The title pretty much says it all. I was asked this question today and really didn't know the answer.
Ionic is not intended to build desktop, or even desktop browser based applications.
From the official docs :
Ionic is focused on building native/hybrid mobile apps rather than
mobile websites.
As such, our browser support tends to be whatever Web View API is
available to native apps on a given platform. For Ionic 1.0.0
"uranium-unicorn", that means UIWebView for iOS 7+, and Android 4.1
and up. Windows Phone and FirefoxOS support is on our roadmap.
Even if you implement a browser website using ionic, the rendered output would rather weird.
Infact, Ionic has itself implemented it's website using bootstrap ;)

AngularJS Routes not working on Windows Phone 8 (using Worklight)

I am developing a Hybrid App for iOS,Android,BB and Windows using IBM Worklight.
I am using AngujarJS as the framework along with HTML, CSS and Bootstrap.
As this being a SPA, we are using ngRoute/UI.Route (Need to decide on whether to continue with ngRoute or UI.Route) to route between pages.
While the app works fine on iOS, Android and BB, it does not render anything on Windows Phone 8 Hybrid App. Meaning, it is not able to pick the file when we say
templateUrl : 'views/Login.html'
One blog suggested that we will have to give absolute path in order to make it work like -
templateUrl : 'www/default/views/Login.html'
But this is not the correct solution. Is there any setting that we need to do in order to make it work on windows8 phones.
Thank You in Advance.
I'm not convinced this has to do with AngularJS, but rather to plain JavaScript used in jQuery in conjunction with Windows Phone8, which is notorious to not work well when it comes to web-based multipage apps.
See the following questions for related issues:
Using jquery mobile in IBM Worklight for WIndows Phone 8
IBM Worklight v 5.0.6 - Can't navigate multipages on Windows Phone 7.5 environment
IBM Worklight - $("#pagePort").load() not working in Windows Phone 8
IBM Worklight 6.0 - WL.Client.reloadApp() not working in Windows Phone 8
The problem was the path used.
Take a look at the multi-page sample project provided in the IBM Worklight Getting Started webpage. It contains special handling for WP8 which you may need to apply to your project.
Building a multi-page application training module
Multi-page sample project
Note how the path is handled specifically for Windows Phone 8.
common\main.js:
var path = "";
function wlCommonInit(){
// Special case for Windows Phone 8 only.
if (WL.Client.getEnvironment() == WL.Environment.WINDOWS_PHONE_8) {
path = "/www/default/";
} ... ... }
Conclusion: You need to account for the path for WP8 vs other platforms.

Phonegap + AngularJS + WP7

I'm working with Phonegap and AngularJS and want to put my app on windows mobile phone 7. But angularjs ist not working by using data binding, e.g. {{service.greeting}}. I'm getting no error, it just shows nothing on my device. What's wrong?
Thanks.
I ran to similar issue myself. It's because Windows Phone returns current URL as x-wmapp0:www/index.html which Angular cannot handle.
AFAIK it's not fixed yet, see Angular issue for further info.

Resources