Echo while using ear buds on my android phone - echo

All my app sounds and even my music has echo with my ear buds, without the ear buds it sound fine but for some reason when they are plugged in all sounds on my phone have echo. And yes they are plugged in all the way.

Related

Running iOS Simulator on Network User Accounts

I help manage a Mac-based graphics labs and I teach web design for my university's art department. I installed Xcode and the iPhone SDK/simulator so that the students can have experience testing websites on mobile devices (such as the iPhone or iPad). The simulator works just fine when logged in as the local admin user for the computer, however the iOS simulator fails to launch when logged in with one of the student accounts (which are hosted from Snow Leopard Server) or any other networked account.
The simulator begins to launch (and the application does open) but it gives me this message:
The simulated application quit.
Click Relaunch to try again.
My options are "Quit", "Switch SDK..." or "Relaunch".
Is it possible for the simulator to launch using a network account? If so, does anybody know how?
The client computers are running Mac OS 10.6.8 and the server is also on 10.6.8. I'm using Xcode 4.2 with the iOS 5 SDK (for Snow Leopard).
Thanks in advance.
I had the exact same problem, for some reason the iPhone Simulator doesn't like it when the ~/Library/Application Support/iPhone Simulator directory isn't on the local volume.
Here's the fix/workaround:
rm -Rf "~/Library/Application Support/iPhone Simulator"
mkdir "/Developer/Local/$USER/.iPhoneSimulator"
ln -s "/Developer/Local/$USER/.iPhoneSimulator" "~/Library/Application Support/iPhone Simulator"
Using the /Developer/Local directory is totally arbitrary, as long as you choose a place on the same drive as the iPhone simulator it will work. Of course, /Developer/Local/$USER should also have the correct permissions so $USER can actually use it.
Cheers
It seems that with every new OS X and Xcode release, something else breaks with regard to running Xcode on network home directories.
Our method of getting around this was to have students set their Derived Data location to /tmp/username in Xcode settings. This will create that folder when they try to build a project. Then we can place a symbolic link, ~/Library/Developer/CoreSimulator -> /tmp/username and this way the iOS Simulator will work for them.
Also, having Derived Data in /tmp/username really improves build performance and reliability.
I don't think many people use OS X and Xcode in this configuration; it's very common in university computer labs where you need to have students able to log into any workstation and have their own environment. I wouldn't mind it so much if they didn't change something new every year which breaks Xcode causing us to have to fix it all over again.

Can I access the App Store from within the iOS Simulator?

Within the iOS Simulator, is it possible to access the App Store?
That is, can I install the App Store application within the Simulator and download applications through it to the iOS Simulator? If so, how?
It's a simulator not an emulator. Even if there was an App Store in the Simulator, none of the apps in the store would work since they are compiled for ARM CPUs while the Simulator runs x86 code.
Sorry it is not available! The simulator will only allow you to install programs from xCode. I am not sure why they restrict this - but I am also not sure why you would want to use the Simulator for this purpose.
Interacting with iOS Simulator: https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/InteractingwiththeiOSSimulator/InteractingwiththeiOSSimulator.html
Note: You cannot install apps from the App Store in simulation environments.
You can put application in your simulator. But you cannot run it. They have restricted users to run applications. I found where the .app files are.
Machintosh HD - Application - Xcode - Contents - Developer - Platforms - iPhoneSimulator.platform - Developer - SDKs - iPhoneSimulator.sdk - Applications
All applications are in there but, I can't run them. However, I succeeded to install .app files.
In .ipa file, there is 'payload' folder, and .app file is in there.
All you need is just copy it and paste it in Applications folder. Then you can see the icon on your simulator.
But, it will not work.
Probably wont work, but if you have an IOS device and copy an app onto your computer, you might be able to run it on IOS simulator, as you can run your own apps.

Looking into app folders during iPhone development

My app creates folders on the iPhone, stuffs files into them, moves them around, and so on. I'm trying to debug some hiccups in this behavior, but am finding it hard to see what's actually going on with the files and folders. Is there a way I can look into the folder hierarchy of the iPhone simulator or of a dev-tethered iPhone at all like I could with Finder or a command prompt on my mac?
Yes, the files will be in the simulator's workspace. They're located at the following path:
~/Library/Application Support/iPhone Simulator/<version>/Applications/<uuid>/
For version, choose the version number of the iOS version you installed your app to in the simulator (e.g., 4.2). When your app is installed in the simulator, each app is given some GUID, so look in each of these until you find the app you're testing. Under that directory will be what your app sandbox will look like on the phone. You can see all the files that your app created in the simulator there, and you can watch them in Finder or whatever you'd like.
Be aware, however, that each time you hit the 'Build and Run' command targeting the simulator, a new GUID will be generated and your app will be relocated to that directory. This is similar to what happens when the user updates your app on the phone.

Architecturally, how are iPhone applications installed from the AppStore?

When we hit that "install now" button via the AppStore, I am curious what is the process behind getting the app onto the iPhone?
Does it download a compressed zip? pkg? and does a XCOPY equivalent ?
It downloads an IPA file which is technically a zipped file that contains the app along with DRM signatures and other stuff. It deploys the app by copying the folder to /var/mobile/Applications/{GUID}/.

iPhone Application works on simulator & when exported to device, but not via cydia

What I want to do:
Deploy an App to my phone using SCP without a dev license.
What Is Happening:
I can test on simulator and device and the Application works 100%. When I scp the app to the Applications folder on my phone, the icon shows, and the app opens for about a couple of seconds then closes (you don't see anything except a black background).
I tried using ldid to sign it and the main binary is set to 0755 and chown'd to root:wheel.
I have tried various permission situations and the app pretty much does the same thing no matter what.
What is causing this to happen? I know this is possible as EVERYONE who uploads apps to cydia follows this same process.
Thanks in advance.
The compiled binary on the device is an x86 binary, you need a different build for iPhone.
Check the syslog and see what it says when you tap the app icon. If it says "killed", download the ldid package from Cydia and cd to your application folder and sign it with ldid -S binaryname.
Also, are you compiling using the Open Toolchain or Apple's?