In order to test my app, I need to turn on "Simulate Location"
As a result, the location is simulated in both the Simulator as well as on the device.
If I unplug the device while my app is being debugged, the simulated location remains my location, systemwide.
I then have to restart my device to reset to my real physical location. At least, that is what I think. Switching off and on Location Services doesn't help.
(This resetting normally happens when I'm driving my car, puzzled by the fact that Maps tells me I have to drive several hours to a location that is actually around the corner)
So, my basic question is:
Can I switch on "Simulate Location" for just the iPhone Simulator, and not for the device (my device is pretty able to know where it is anyway).
If this is not possible, is there a way to tell my iPhone to behave, without resetting the device?
Related
How can we detect ibeacons from a android phone without explicitly switching on the bluetooth or location...?
I want to design an app which detects for the beacon even when the bluetooth is off...please suggest the answer
Sorry, this is not possible. Bluetooth must be turned on to detect t beacons as it requires using the Bluetooth radio to do a scan.
With BLUETOOTH_ADMIN permission (required for scanning anyway), it is possible to detect if bluetooth is off, then turn it on long enough to do a scan, then turn it back off again. The user will see the Bluetooth icon when this happens, and the user will be told at install time that the app requires this permission.
I set my tango down for a couple of months while busy with other things. I charged it for a bit, turned it on and saw the red battery icon. I charged it overnight and saw the green battery symbol. I clicked the power button The splash screen came up, said it was installing updates and screen turned off. That evening I tried to turn it on and it wouldn't do anything. Next morning it turned on - splash screen - white screen, off. Now it doesn't do anything at all. I've tried - volume button and power, both volume buttons...nothing. Has anyone else had this problem? Any ideas? Thanks.
On the below instruction. it only diagnose your device for hardware and BSP level problem. Tango Core and Apps related is not included.
To diagnose your device problem. First we need reset your device.
Hard Reset device
Press your device power key for around 8-10 secs.
sometimes you will see the backlight of screen is off.
Diagnose what is going on on your tango devices
2.1 Check basic bootloader function.
Plug in device with a charging usb cables.
2.1.1 if your device is out of power.
It will show red battery icon. or green icon which you device still enough battery to boot it up.
2.1.2 if your device is not any icon pop up.
Try 1 step again. or
switch different Usb cables and chargers or charging docks.
If it still doesn't work.It is possible a hardware issues now. you may need to contact project-tango-help#google.com
2.1.3 if you do see the battery icon, but without charging icon on it.
That mean something wrong with your charging cable or devices. Switch different charger and cables. if problem still exists. you may need to contact project-tango-help#google.com
2.2 Check the Software side of the devices
if you can see the icon in 2.1.1, that is good.
Normally on Green icon, you can boot up your device.
2.2.1 after the icon is gone, press the power key are 1-3 secs, device will boot up.
you will see the tango icon and the rolling tango icon as part of booting process.
if you get stuck at this two process forever. it means that there is some problem on booting image on android. please go to section 2.3.
if you can see the Android UI without problem. you are fine.keep a eye on your battery. if it show 50% on charging full. and some weird condition. you may need to contact project-tango-help#google.com for more details.
2.3 Recovery your device by android recovery mode.
if you android system can't boot up successfully, Recovery your device is needed. Remember it will wipe out all your data,and cache. so try to backup your data if possible.
2.3.1 If you device can access by ADB, try : adb reboot recovery
or try below steps:
{ make sure device is off,
press the power key with volume Up and Down key at the same time for around 2-3 seconds, till you see Bootloader menus
you will see
{
Continue
Fastboot protocol
Recovery mode
Reboot
Power off
Force Recovery
}
by using volume Up and Down, and power key you can select the item.
select "Recovery mode"
2.3.2: now you are at Tango android recovery mode.
it will show
reboot system now
apply update from ADB
wipe data/factory reset
wipe cache partition
Using Volume down key for moving, and power key for selecting.
The same step as normal Android recovery step.
1. wipe cache partition
2. wipe data/factory reset
then select reboot system now.
Waiting device to boot up.
2.3.3, If your device is still not good. Google didn't provide the tango image for customer fastbooting the device. you had to contact project-tango-help#google.com for next step.
Basically, I'm looking for any way to go about this at all, no matter how cumbersome or unintuitive, so long as it can be done on iOS 7 (which the third party SBSettings framework currently cannot), and can be done on a non-jailbroken device.
This is for an app which will be loaded into iPads in a physical enclosure so the power button is inaccessible. The device itself will be in single app mode, which cannot be enabled or disabled except through our network-accessed MDM solution. The issue I'm trying to find a way around is that every now and then, the network connection stops functioning and the only way to re-establish it is to restart the device, which can't be done without an internet connection other than to physically press the inaccessible buttons. The reboot action would be password-locked in a hidden event handler and so inaccessible to normal users. This is not an app that will ever see the app store, so Apple's user interface guidelines don't necessarily apply.
Alternatively, is there any way to enable/disable assistive touch programmatically or any other possible method that will enable rebooting the device while in single app mode without physically touching the power button?
This is not a real answer (just thinking aloud).
Obviously, you can't do this through public API.
I believe, API's like SBReset can't do this either, because they are protected by entitlement.
I believe your simplest option to find some reasonably low level API which crashes and use it to crash a device.
I had exactly the same question some time ago:A way to reboot iOS device or restart Springboard using private API?
P.S. I don't have a way to find these crashes. I would recommnd to talk to jailbreak community (people who come up with jailbreaks for iOS devices). They collect all kinds of crashes. Most of these crashes aren't exploitable. However, you don't need an exploit, you just need a OS crash.
We have an audio application for Mac OSX which is music player with some audio effects . Ever since we upgraded to mavericks(10.9) we are finding one weird issue i.e when we get call from facetime our application volume automatically reduces. As per our analysis,facetime seems to lower every other applications volume and there is no control on it.
These are few discussion on the same issue
https://discussions.apple.com/message/23592588#23592588
As a temporary fix , we are planing to display some kind of UI to the user to inform that volume is reduced due to the facetime call.
Is there any notifications/API that we will get when we receive a facetime call or any other way to resolve this issue.
Unchecking the audio ducking only fixes the reduced sound that occurs when the "voice" of your computer is speaking. If you have set it up to do so, it is not a fix for the facetime and other application's issue
This is called audio ducking. There is a setting for this built into Mavericks. Open "System Preferences". Go to "Accessibility". Go to "VoiceOver". Click on "Open VoiceOver Utility...". Go to "Sound". The box for "Enable audio ducking" should be checked. Click on this box to uncheck it, and the audio ducking should no longer occur.
I got a letter in the mail that contained a small USB device. Here is what it loks like: http://imgur.com/a/VEtNK
When I plug it into my computer it seems to hover over the programs in my Dock and then opens one. It then types a link into a text field that is available. I originally had Skype in the dock and it defaulted to that one, strange. I removed Skype from the dock and now it opens to System Preferences.
Here's a video of what happens as I plug it in: https://www.dropbox.com/s/yuw6ggvo77rkvwh/Test1MysteryDevice.mov
Also, it does not appear like a memory stick does on my computer. I can't seem to locate it when it's plugged in. It would be cool if I could find it somehow. It would be even cooler if I could program it to do something I wanted.
Thanks, and if anyone can help out that's awesome or if you could point me to a forum/anywhere that might be able to help out, that'd be great!
Probably it self-identifies as a HID (Human Interface Device), specifically a keyboard. As soon as it is accepted as a keyboard by the OS it can send any sequence of keystrokes, and the OS will assume that it is input from a human user.
Scripting such behavior is easy using Applescript.
However automatically running a program from a USB stick when it is inserted is supposed to be impossible on OS X, as auto-run is a security risk.
Of course at the very least a custom USB device could be made to act like a mouse and keyboard, so even without autorun it's a risk to plug strange devices into your computer.
To get more info on the device you can go to System Profiler and look for the device on the USB bus.
If it is a custom device pretending to be a keyboard then it's probably hardwired to do what it does, and you probably won't be able to reprogram it; you'd need to find a manufacturer that will sell you customized devices.