simulator

Writing to SQLite3 on iPhone simulation.

I have an app that is running in the simulator. I read and write from a sqlite3 data source. However, if i restart the app, then all datg that i had previously wrote to the db is lost. The data is always in its original state. Now back when i was developing this app i thought i read somewhere that data can not be persisted via iphone si...

BlackBerry HelloWorld deploys in Eclipse under 8130 simulator but not 950

I followed the steps in www.thinkingblackberry.com/archives/21 If I pick the 4.5.0 JDE with the 8130 simulator, I can navigate to the HelloWorld icon, click it, the app runs, I can hit breakpoints, etc. I then switch to the 4.7.0 JDE, erase the simulator files (Blackberry | Erase Simulator File | Erase All), and change the simulator fr...

Simulating Torque and Angular Momentum

I'm trying to make a small application in Flash (AS3) that will have several bodies with variable shape and size that will have force applied to them. I've been looking around for some good explanation of calculating center of mass/gravity, torque, angular momentum, and, I suppose, collision detection as well, though that's not necessar...

How to use web camera in android emulator to capture a live image?

As far as i know, Android emulator doesn't have a camera. To capture a live image we have to use the web camera. I have seen code in this web site to use the web camera in the android emulator to capture an image, but I don't know how to use this code. ...

help with my MARS MIPS Simulator Code

hey, i need help. I have written this code in MARS. It is supposed to receive an integer from the user, and convert it to HEX. I've been going over it for hours and as far as i can see, it should work fine. I have only included the loop and output part of the program as this is the only part that is not working. Can someone PLEASE point ...

Code that compiles for the iPhone Device but not for the Simulator

I am using C++ to develop the algorithmic part of an iPhone application, and I am encountering a strange bug. The code that I have, compiles fine with gcc-4.2 both on Linux, on the Mac, and on the iPhone device, just not on the Simulator, which makes debugging and testing very difficult. The error messages from the attempts to compile ...

gles 2.0 perfomance on iphone simulator, iphone, macbook pro

I did an wave animation to explore features of sgx chip which is tile-based rendering (TBR) architecture by comparing the performance on iphone and laptop. An advantage of TBR architecture is it allows the GPU to perform hidden surface removal before fragments are processed, so I draw many overlaped layers of animated waves, and only th...

Button works in simulator for not in App

I have a few different views in my App, all of which are viewed by tapping different buttons. All the buttons work on the simulator, but when I run the app on the device only one button does not work. I went over and over my code and re coded that one button and re-connected it in IB to make sure that i did not mess something dumb up, ...

How to remove installed Java programs on the simulator?

There are lots of java apps on my simulator menu screen which I have been coding and testing? Now I want to remove some of them to clean my simulator a bit. How do I remove them? ...

Can the UDK be used for non-game projects?

This is a pretty basic question. I am wondering if the Unreal Development Kit can be used for something other than games, specifically a light show simulator and editor. The site says: Unreal Engine 3 has been used by game developers, researchers, television studios, machinima directors, artists and students. If you have an idea that...

Iphone Simulator - simulate roaming

Is it possible to simulate roaming case in iPhone Simulator? ...

Can the iPhone simulator handle PVR textures?

I have a really weird problem with PVR textures on the iPhone simulator- the framerate falls through the floor on the iPhone simulator, but on the iPhone itself it works just fine. Has anyone had any experiences similar to this? I'm using SDK 3.1.2 ...

Switched to Snow Leopard: HTTP-Requests stopped working in simulator (WebApp)

Hi! I've created a web app in Mac OS 10.5 which receives data by sending http requests like this: var http = new XMLHttpRequest(); var url = "http://www.test1234.com/data.php?param1=" + param1 + "&param2=" + param2 + "&param3=" + param3; http.onreadystatechange= function() { var result= null; switch(http.readyState) { ...

Code crash on iPhone Simulator but works on actual iPhone device?

This is an extremely weird problem: wondering if anybody has experienced this before. My code, an RSS parser of Flickr photos (RSS feed), works perfectly on an actual device, but allocates a ton of memory and freezes up my entire computer when run on the simulator. I know usually it's the other way round for people, but this is acting w...

Instrument finds leaks on Simulator, but not on the Device

Hi devs! I was tuning my iPhone app before submission to AppStore, when I noticed that Instrument finds a lot of memory leaks if I run in simulator|debug... but if I run it on the Device Instrument doesn't find any one.... To be honest, there were two leaks and I've fixed them. Now no leaks on the Device, but still too leaks on the Simul...

Predicting performance for an iPhone/iPod Touch App

I don't have an iPhone Developer Program Account yet and will be getting one in the next couple of days. Can instruments be used with the simulator to give a rough estimate on how well my app may perform? Using instruments I checked and fixed all the leaks it was detecting, and it appears that my memory usage maxes out at about 5.77mb. I...

Homework: Generating Graphs

I need to simulate a discrete event simulator and for that I need to generate a network consisting of 30 nodes and then check if the generated graph is directed or not. Can anyone guide me on how to start with this. I should not be using the boost library to do this. Yes this is an assignment, I need an advice to start with. I just need ...

Weird iPhone Simulator Issue

I have a question. WHen I changed the executable name in my info.plist file in Xcode, the simulator would no longer load the application. When I changed it back to '${EXECUTABLE_NAME}', the simulator worked fine. Any reason as to why this would affect the simulator? ...

Way to synchronize two cores in simulation

Hi guys, I have to build a dual-core processor simulator in C (it's actually a multilevel memory simulation, cache L1/L2, block substitution, etc). Thing is, I'm having a hard time figuring a way to synchronize the cores (which I'm programming as threads). Any ideas how I could do a global clock? Should I change from threads to child pro...

Size of the images in iphone

Will the size of the (dimensions and also image storage size) change whensaving to iphone from our computer. I saved an image(1200x1600) of 100kB size to the iphone simulator via safari. From my application, i changes itsdimension to 640x480 and uploaded to server. But the uploaded image was of size 144KB!!! How does this happen?? ...