Titanium Studio questions

You must Login before you can answer or comment on any questions.

Hi all - I've started working through some of the tutorials and code examples, but I have 2 questions regarding TiStudio itself

1) every time I deploy to my Android emulator, it takes > 60 seconds, because it hangs waiting for SDcard - is there a way to either stop it from looking for an SDCard, or make it give up faster? I did try using adb to create an SDCard but it doesn't seem to have helped.

[INFO] logfile = D:\Projects\Titanium\TiBountyHunter\build.log
[INFO] Building TiBountyHunter for Android ... one moment
[INFO] Titanium SDK version: 2.1.0 (06/28/12 12:16 6e3cab6)
[INFO] Fastdev server running, deploying in Fastdev mode
[INFO] Copying CommonJS modules...
[INFO] Copying project resources..
[INFO] Tiapp.xml unchanged, skipping class generation
[INFO] Force including all modules...
[INFO] Compiling Javascript Resources ...
[INFO] Compiling localization files
[INFO] Waiting for SDCard to become available..
[ERROR] Timed out waiting for SDCard to become available (60s)
[INFO] Re-launching application ... TiBountyHunter
Error killing app, result: ['App not connected']
[INFO] Launching application ... TiBountyHunter
2) If the emulator is running, and I encounter an error (which I do, a lot of, right now <g>) - I go back into TiStudio, make my change, save my .js file - and right now the only way I can see to push the latest code to the emulator, is to chose "Clean" and then rebuild - which takes a long time. Is there a better/faster way?

thanks!

— asked 11 months ago by LeeAnn Pultz
1 Comment
  • Missing from your question are a number of important pieces of information. I suggest you take a look at the Using Questions and Answers article, specifically the Q&A Question Checklist. The missing information is critical to reproducing problems in a test environment and often indicates other factors that cause the undesirable outcome you are experiencing.

    — commented 11 months ago by Stephen Feather

2 Answers

To me it's the same with the message of waiting for the SDCARD. I read in some tutorial on android that to develop better connect a physical device instead of using the emulator.

Someone is bound to chime in and argue with this, chiming in 'it works all the time for me' but just sharing what I have learned and what has worked after wasting too much time:

  • On win32, run from C:
  • no spaces in your files or your folders.
  • Be sure your android environment actually is setup properly by trying to start the emulator from outside of Titanium. (if you are going to be an android developer, learn the android utilities included in the sdk)
  • permissions are a big deal, be sure all your writable folders actually have writable permissions (this is a new concept in windows)
— answered 11 months ago by Stephen Feather
answer permalink
2 Comments
  • tban is correct, tie a device to the system and run your code on it. so much faster. If you aren't testing phone calls or 3g, a cheap piece of kit can be gotten online for $50 or so running Gingerbread.

    — commented 11 months ago by Stephen Feather

  • However, this issue remains a problem if the physical device does not have SD card capabilities. The Google Nexus 7 is one such device. I run into the same problem. I have to wait over a minute per build to test my code. As for the emulator, just add SD to the profile on AVD.

    — commented 9 months ago by Michael Stelly

Your Answer

Think you can help? Login to answer this question!