Problem while running a mobile application on android emulator

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

Hello Everyone

As per our new requirement in my office, i have just started to work in Titanium n explored some of its features. But I am facing the following problems.

  1. While launching the sample application example like KitchenSink, its not running.Only the emulator (android) screen is displayed but our sample app is not deployed.

2.Many times the installer time out.

[ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try again [ERROR] Application Installer abnormal process termination. Process exit value was 1

3.Some application sample examples like ToDo List is able to run but many times it stop running in the emulator.

Titanium SDK 2.0.2 Android SDK 2.2 jdk 6 wndow 7 (32 bit)

Also while launching the Titanium Studio, it is asking to login. Is there any way to work offline without loggin agin n agin.

Pz give me yours suggestions so that I can proceed further. Tnks in advance.Looking forward.

Regards Sangram (Java Developer)

3 Answers

For starters update your titanium SDK to 2.1.1 GA or whatever is the latest.

When you want to run it in an Android emulator, by default it chooses the wrong android sdk. Well thats the case for me.

This is however easy to solve,

  • Open your project
  • Press the play icon with the arrow poiting downwards
  • A menu pops up > press Run Configurations
  • Press Titanium Android Emulator or double click
  • Create a new emulator, give it a name, for instance Your_app_name Android 2.3.3
  • When creating a new emulator for me the Android API is set on Real3D Add-On Android 2.3.3 this does NOT work! You must choose Google's API 2.3.3 or 2.2
  • When set press Apply and then choose Run

With this method you can create several emulators to try and see the result in all Android versions and more importantly all android screen resolutions.

For all i know you have to login to develop with titanium studio.

— answered 11 months ago by Kami -
answer permalink
3 Comments
  • Thank you! This helped me FINALLY get an app launched in the emulator!

    — commented 9 months ago by Sarah Smith

  • One thing to point out - I'm doing the tutorials right now and I found that you have to create a new run configuration for each project that you want to run in the emulator. Just FYI!

    — commented 9 months ago by Sarah Smith

  • Hi, I have a similar problem but now i can execute my app with a different run configuration. Thanks,

    — commented 2 months ago by Marcos Eich

Hi Kami n All

Tnks for yr quick response.

I got these couple more issues.

1) While running the TODO example apps in a new emulator as u said, its nt runing at 1st go. I hav to click d project n run it agin. Den only d app start. Why dis is d case?

2) I am still nt able to run d Kitchen sink example. Its giving database locked error?

3) While doin a automatic sdk update , its giving the error in extracting d file \user\AppData\Local\Temp\mobilesdk2.1.1.GA-win32.Hw to resolve it?

Pz giv me a solution if anyone faces a similar issue. Tnks in advance. Regards

Sangram

— answered 11 months ago by Sangram Jethy
answer permalink
3 Comments
    1. This happens quite often with apps on android, but do note that once the emulator is up and running, it only takes a few seconds to launch your app a second time.

    2. Maby you have a wrong version of the kitchensink try getting the latest, import it and let see how that works. Latest kitchensink

    3. I am not familiar with this error.

    — commented 11 months ago by Kami -

  • One more thing u can try ,this is to clean and build the project build folder. The error you are getting while extracting zip file, because that path may not exist in your computer.

    — commented 11 months ago by Moiz Chhatriwala

  • Hi moiz thnks 4 replyin...I hav tried dat also bt its nt workin...can u suggest me of some more possible solutions?

    — commented 11 months ago by Sangram Jethy

I am unable to run the program in titanium and the error occuring is [ERROR] Application Installer abnormal process termination. Process exit value was 1 [ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try again

Can anybody help regarding this I have tried all the above steps but the issue is not yet solved.

Your Answer

Think you can help? Login to answer this question!