I'm in need of detecting if a microphone and/or camera is active but the only thing I found is iOS related only. The Apple documentation have examples (https://developer.apple.com/documentation/avfoundation/avaudiosession/responding_to_audio_session_interruptions) but this seems iOS only too. It seems there's no AVAudioSession on macOS. Can somebody give me a hint how can I achieve this?
Related
How do I turn off flash by default? In iOS, the camera flash is always activated. Android's default flash behavior is off so I have no problem with that.
I think this option is not available so far. I see the documentation and the code but didn't find.
There is also a open issue there in GitHub Set camera flash default. In this discussion, the author seems still working on this feature but haven't completed.
To solve this problem,
You can overwrite the plugin code and turn off flash by default.
Refer :flashlight
You can use this plugin https://github.com/kphillpotts/Xamarin.Plugins/tree/master/Lamp
I am about to submit my app in iTunes connect.
Now it is asking me for screenshots for a 3.5-inch, 4-inch, 4.7-inch and 5.5-inch.
Since I coded it in swift I guess I can skip the 3.5inch part?
But my question is: I only have an 4-inch device available. How can I add the screenshots of the 4.7 and 6inch? maybe with the simulator?
Thank you
In the iOS Simulator File > Screenshot
That saves a screenshot to your desktop.
Simulator should be fine. You can edit it using Sketch, I found it really helpful.
I tried a few different methods, and what worked best for me in a short amount of time was to capture screenshots in the iOS Simulator at 100% scale and then resize them using GIMP, which is free unlike Sketch.
If you're in the business of creating screenshots for many devices, across locales or with frequent screenshot update needs it's best to look into automation with tool like Snapshot.
The on/off switches shown on http://developer.android.com/design/building-blocks/switches.html#switches are awesome. I can't figure out how to get them in Appcelerator
It is not a titanium thing, it is android. If you want to support 2.x, you cant have the 4.x look. You would have to change the manifest to change the SDK level support. Here is a good article that helped me. http://developer.appcelerator.com/doc/mobile/android-custom-androidmanifest
I would like an iPhone simulator for Windows. Something similar to this one here:
http://css-tricks.com/video-screencasts/38-basics-tips-on-designing-for-the-iphone/
Note, this is NOT to test iPhone Apps... but rather, to test websites. I know I could just use a browser, but I was hoping for something with a bit more functionality ( specific to the touch interface ) that I could test some web pages on.
I've seen the beta project here: http://labs.blackbaud.com/NetCommunity/article?artid=662
Is this the best option at the moment? The article was from last year, that's why I ask.
Just to add additional information to this post:
found another one for both iphone and ipad: http://code.google.com/p/ibbdemo2/downloads/detail?name=iBBDemo2.air&can=4&q=
Google Chrome now has the ability to "Toggle Device Mode" by clicking the Phone icon in Dev Tools. This gives you a more touch-specific interface than just using the browser, allows you to throttle data, etc...
From here, you can choose the device:
You can do it all online, without a simulator:
http://iphonetester.com/
Keep in mind, it's not a real test on an iPhone, but if you use it with Safari or Chrome for Windows, you'll come really close to how it'll look on an iPhone.
UPDATE: iphonetester.com no longer exists.
That's the best I found: http://iphone4simulator.com/
There is a commercial successor to iBBDemo2 that's available for $40 - http://www.electricplum.com/studio.aspx
I'm working with the iPhone 3.0 SDK (bit of a novice really), and I have set up an Interface Builder View with several UIButtons in it. I also have several sound files in the Xcode project.
I have searched for this and none of the solutions seem to work for me. Does anyone know how to make a short sound play once upon pressing a button?
Sorry about the simplistic question, but Apple's avTouch doesn't build on my Xcode.
Thanks
For the most basic needs, the AVAudioPlayer class will work. It has the simplest interface on the iPhone SDK and is best suited for what you're describing.
If you need lower latency or multiple sounds at once, then your choice is between OpenAL or Core Audio. See the oalTouch example for OpenAL use.