how can i test the accelerometer sensors in my desktop PC with simulator of windows8 store app - app-store

i download the Windows 8 app samples from Microsoft and one of these samples accelerometer sensor sample
i dont know how can i test it for planning my software for using this feature ?
i haven't surface device and want to know is there only one way for do that? why we cant test it and shake it by mouse? why sensors not work in simulator when i rotate it ? why in simulator doesn't exist any button for shake simulator with mouse?

Unfortunately the simulator doesn't emulate the accelerometer or other sensors other than location. You will need physical sensor hardware to test this.
From MSDN forum

Well, you can use the one from the Windows Phone Emulator
https://www.nuget.org/packages/XamlActions.AccelerometerSimulator/
ps: super-master-workaround. Use it at your own risk :)

Related

Multitouch : Selecting hardware and software for multi-touch application

I am trying to build an internet connected touch based device using which users can do minor editing and upload photographs to web. The device will capture photographs using a USB based camera.
The question i have is where to find hardware for this custom requirement, i am looking for a touch screen around 24 inches in size.
Can any one recommend a reliable hardware vendor who supplies LCD/Capacitive based touchscreen.
I also thought to wait till launch of Windows 8, because it is built to support multi touch. I believe during launch of Win8 lot of hardware vendors will sell multi touch lcd monitors, which i can use.
If anyone can provide directions on this it will be a great help.
P.S > I am open to develop on any platform.
Look at 3M monitors and infrared frames which support 4+ touches. The old ones which come with Dell monitors suck so much. Your OS of choice is Windows 7. Also consider Flash/AIR for fast development.

Do you have to have iphone to make iphone apps?

Can you make iphone apps without owning an iPhone? I have a macbook but wondered if maybe there was an emulator you could see your programs on to build your app. All the articles I found were a couple of years old.
Thanks.
You CAN use JUST the emulator to develop apps and for the most part, it works the same as the actual device. Memory and some hardware items behave differently on the device, so it can be be difficult to find bugs before the app gets into the hands of your users, and performance on the device will not be as good as the simulator.
Also, things like the Camera, Location Services, Accelerometer & Gyroscope will not be usable in the simulator.
In theory you can (Xcode comes with a simulator) but in practice I don't think you can. Several things don't work in the simulator or work differently so you won't be able to test if your app works properly.
The practical differences between the simulator and a real device are:
Runs faster than the real device.
Internet access is treated as WiFi. It doesn't emulate 3G.
You can't tilt or control acceleration.
You can touch with one or two (holding alt) fingets, but not more.
It doesn't vibrate.
Some sounds and musics don't run on the simulator.
Accelerators, camera, gyroscope, and GPS return fixed data. Your position reported is always Cupertino, the camera is blank, and the sensors report 0.
It can't be jailbroken.
Keychain doesn't work.
However, that's good enough in 90% cases to develop functional applications.
It is certainly highly recommended so you can actually test on a real device. Apple provides a pretty good simulator for doing the majority of your development on, but things like testing memory usages, performance and making use of features such as a camera, location api, accelerometer, etc, you'll need the device.
Certainly, start developing using only the simulator (if you are not sure you want to do iPhone development), but I would recommend getting a device (iPod Touch is a cheaper alternative) if you decide you want to move forward.
It depends on what you are trying to write. All functions of the device are not available in simulator. For example accelerometer. So if you need that then you can't work without the device. And also the simulator uses Mac environment which is far more powerful, both in terms of processing power and memory. So your app may run well on simulator, but may work poorly and even crash on device. So it's better to have a device for serious development. But obviously you can start learning on simulator.
If you want to write apps that don't suck you will need an iOS device. Period.
Doesn't matter if it's an iphone, ipod touch or ipad.
I never had an iPhone and wrote a dozen apps for it. In fact I still use my old iPod touch 2G for development.
But I wouldn't recommend that particular one for development, because now its end of life and you won't get firmware updates for it.
But last generation is totally fine.

Is iphone simulator geolocation features working with the Ethernet/Wired network connection only?

I'm trying to develop an iPhone application which uses the geolocation libraries. Is this feasible for the iphone simulator to simulate the GPS functionality without the use of my PC's Wi-Fi infrastructure? Does anyone know if the iphone simulator can spot your location using your IP-address only (so only the Ethernet cable connection is required)?
Thanks in advance.
You should test that functionality on an actual device. I believe the simulator will always show Cupertino, CA as the location.
No it won't work using ethernet. Core location appears to only work with WIFI even though at the end is the same router.
CoreLocation doesn't work in the simulator, but there are options
http://github.com/futuretap/FTLocationSimulator
Simulator doesn't have this functionality, but iSimulate has (it's not mine :-( ). It connects the device and simulator per WiFi and sends location events to the application within simulator: real GPS events and a few predefined locations around the world. Pretty cool!

Is it possible to output video of my iPhone application running on a device?

I am working on an app for a client where he will be showing it in a board from to a group of directors for a serious presentation. Because the iPhone is so small, it wouldn't make sense to have him demo the app on the actual device because no one would see anything.
Is it possible to have the screen output on a computer or tv so that everyone in the room can see what is going on?
http://dragonforged.com/DFVideoOut.shtml
For outputting video off an App from the iPhone/iPod.
Demo of the software http://www.youtube.com/watch?v=upfTZRlszJo
UPDATE: The AV cables described below will not work. Apple only enables TV output for YouTube, iPod Video and iPod Photos.
From Apple's support site:
All you need to get TV out is a compatible iPod or iPhone and the correct cable. If your device works with the component and composite cables, then the choice depends on the TV(s) you will be connecting to.
You need either the Composite AV Cable or the Component AV Cable. Both cables connect to the iPhone's dock connector.
Not unless you're Steve Jobs.
Use the emulator to demo the app via a laptop.
Then pass around an iPhone for the 'hands on' time.
If it's not a phone app, but suitable for the iPod touch, then buy a dozen of them to pass around as demos.
Its not exactly what you want but:
www.projectaphone.com
You cant pass the phone around, but in reality - you need to see the finger interaction anyways.
I wonder if an overhead projector would work - with the projector light turned off of course. Maybe the light emitted from the iPhone would be sufficient in a dark room?
You could demo it on the simulator.
Some applications for jailbroken iPhones exist to let an AV cable work in any application. The ones that come to mind are iPhone-TVOut (http://code.google.com/p/iphone-tvout/) and ScreenSplitr.

Simulating accelerometers, microphone and camera in XCode

Is it possible to simulate movement (ie the accelerometers), microphone and camera in the XCode simulator?
If so, how do you do it?
If not, are there any XCode addins or third party apps that do it? (apart from downloading to an actual iPhone of course).
Thanks in advance!
The easiest way I found to do it is using the Wavefront Accelerometer Data App that can be found in the App Store. All you need to do is add a single file to your application then you can use the accelerometer in your iPhone or iPod touch to send data to your app in the simulator. You'll need a WiFi connection, and a device to use.
You could probably find a solution that runs on the desktop, but you won't be getting accurate real life readings.
I would recommend getting an actual device or your app can behave different than you expect it to. If this is a serious endeavor, you should be able to justify the cost of a device. An iPod Touch is much cheaper but you don't get the phone or camera capability. You can get a headset that has a microphone though.
Those are the limitations, I don't think it wise to develop an app without testing it on a device. I've run into apps that crash all the time and figure it's because they are getting away with stuff in the simulator that you can't do in the memory and cpu constraints of the device.
Microphone works in the simulator. It uses a standard mic input from your mac.
Check this link....
http://media.wiley.com/product_data/excerpt/72/04705009/0470500972-1.pdf
and go to 10 th page..
However, the iPhone Simulator, being a software simulator for the real device, does have its
limitations. Features not available on the iPhone Simulator include:
Obtaining location data — it returns only a fi xed coordinate, such as Latitude 37.3317
North and Longitude 122.0307 West
Making phone calls
Accessing the Accelerometer
Sending and receiving SMS messages
Installing applications from the App Store
Camera
Microphone
Several features of OpenGL ES
In the android simulator the hardware can't be simulated .. but for example for the camera i see an approach to get real information ... Use your webcam .. to do that you can get frames with an app and send this data with a socket to the simulator... maybe it's possible to do that with iPhone simulator.
I see this solution here