Android Emulator batch file....

Hello Experts ,
    I am developing a Hybrid web Container application using MBO created using RFC(from EIS), and finally before seing the output in android emulator i want to run the Emulator.bat batch file which it shud exists in my workspace , That file helps to install the hybrid web container on virtual device.....But i couldn't find it ....How can we get that batch file ? does it come along with any installation of a software ...?
     Also let me know the sequence of installation steps for phonagap Eclipse including ADT plugins, Android SDK, Odata SDK and so on..what ever we need to install for that...
Thanks,
UK.

Hi Dhiravia,
If you want to convert the month format, please refer to the batch script below:
SET Month=%DATE:~4,2%
 if %Month%==01 set Month=JAN
 if %Month%==02 set Month=FEB
 if %Month%==03 set Month=MAR
 if %Month%==04 set Month=APR
 if %Month%==05 set Month=MAY
 if %Month%==06 set Month=JUN
 if %Month%==07 set Month=JUL
 if %Month%==08 set Month=AUG
 if %Month%==09 set Month=SEP
 if %Month%==10 set Month=OCT
 if %Month%==11 set Month=NOV
 if %Month%==12 set Month=DEC
 echo %Month%
To convert the date format via cmd, please also check this article:
http://myblog4fun.com/archive/2012/01/06/getting-the-current-date-and-time-from-bat-files.aspx
If there is anything else regarding this issue, please feel free to post back.
Best Regards,
Anna Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Similar Messages

  • Deployment problem on ADF Mobile (Android Emulator)

    Good Day,
    I am using Jdeveloper 11.1.2.3.0
    I am getting a problem during the deployment of my app on Android Emulator. Here is the log:
    [01:54:56 PM] Updating Android profile dependencies with FAR profiles created from application projects...
    [01:54:56 PM] ----  Deployment started.  ----
    [01:54:56 PM] Target platform is  (Android).
    [01:54:56 PM] Beginning deployment of ADF Mobile application "FirstMobileApp" to Android using profile "TestProfile".
    [01:54:56 PM] Checking state of Android Debug Bridge server...
    [01:54:56 PM] Android Debug Bridge server already running.
    [01:55:00 PM] Verifying a single Android emulator is online and connected to the ADB server...
    [01:55:00 PM] Beginning deployment of ADF Mobile application "FirstMobileApp" to Android using profile "TestProfile".
    [01:55:00 PM] Running dependency analysis...
    [01:55:00 PM] Building...
    [01:55:00 PM] Deploying 3 profiles...
    [01:55:01 PM] Wrote Archive Module to C:\JDeveloper\mywork\FirstMobileApp\ApplicationController\deploy\ApplicationController.jar
    [01:55:01 PM] Wrote Archive Module to C:\JDeveloper\mywork\FirstMobileApp\ViewController\deploy\ViewController.jar
    [01:55:01 PM] Starting to prepare the packaging...
    [01:55:07 PM] Verifying Application Controller project exists...
    [01:55:07 PM] Verifying application dependencies...
    [01:55:07 PM] Validating application XML files...
    [01:55:07 PM] Validating XML files in project ApplicationController...
    [01:55:07 PM] Validating XML files in project ViewController...
    [01:55:08 PM] Copying FARs to the ADF Mobile Framework application...
    [01:55:08 PM] Copying FAR from source: ViewController...
    [01:55:08 PM] Copying FAR from source: ApplicationController...
    [01:55:08 PM] Copying framework java resource files...
    [01:55:24 PM] Copying common javascript files...
    [01:55:38 PM] Deploying skinning files...
    [01:55:38 PM] Copying application image files...
    [01:55:38 PM] Copying ADF Mobile configuration files...
    [01:55:38 PM] Copying .adf files...
    [01:55:38 PM] Copying security related files to the ADF Mobile Framework application...
    [01:55:38 PM] Creating Android preferences XML files...
    [01:55:39 PM] Creating AndroidManifest.xml file...
    [01:55:39 PM] Creating unsigned Android application file...
    [01:55:50 PM] Compiling Android Resource Identifier file...
    [01:55:52 PM] Creating Android classes.dex file from class files...
    [01:55:54 PM] Command-line executed: ["C:\Users\Nasir Amin\AppData\Local\Android\sdk1\platform-tools\dx.bat", --dex, --keep-classes, --output="C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes.dex", C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\AND_ksoap.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\Container.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\IDMMobileSDK.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\logging_dalvik_release.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\phonegap.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\vmchannel_dalvik_release.jar]
    [01:55:54 PM] '"C:\Windows\system32\java.exe"' is not recognized as an internal or external command,
    [01:55:54 PM] operable program or batch file.
    [01:55:54 PM] Command-line execution failed (Return code: 1)
    [01:55:54 PM] Command-line executed:  "C:\Users\Nasir Amin\AppData\Local\Android\sdk1\platform-tools\dx.bat" --dex --keep-classes --output="C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes.dex" C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\AND_ksoap.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\Container.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\IDMMobileSDK.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\logging_dalvik_release.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\phonegap.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\vmchannel_dalvik_release.jar
    [01:55:54 PM] Deployment cancelled.
    [01:55:54 PM] ----  Deployment incomplete  ----.
    [01:55:54 PM] Deployment failed due to one or more errors returned by 'C:\Users\Nasir Amin\AppData\Local\Android\sdk1\platform-tools\dx.bat'.  The following is a summary of the returned error(s):
    Command-line execution failed (Return code: 1)

    Dear aJohny,
    I am sorry for inconvenience, In fact I had to ask about solution of this problem. Its my bad I had pasted the wrong log. Here is the original problem, as I have updated the question also:
    [01:54:56 PM] Updating Android profile dependencies with FAR profiles created from application projects...
    [01:54:56 PM] ----  Deployment started.  ----
    [01:54:56 PM] Target platform is  (Android).
    [01:54:56 PM] Beginning deployment of ADF Mobile application "FirstMobileApp" to Android using profile "TestProfile".
    [01:54:56 PM] Checking state of Android Debug Bridge server...
    [01:54:56 PM] Android Debug Bridge server already running.
    [01:55:00 PM] Verifying a single Android emulator is online and connected to the ADB server...
    [01:55:00 PM] Beginning deployment of ADF Mobile application "FirstMobileApp" to Android using profile "TestProfile".
    [01:55:00 PM] Running dependency analysis...
    [01:55:00 PM] Building...
    [01:55:00 PM] Deploying 3 profiles...
    [01:55:01 PM] Wrote Archive Module to C:\JDeveloper\mywork\FirstMobileApp\ApplicationController\deploy\ApplicationController.jar
    [01:55:01 PM] Wrote Archive Module to C:\JDeveloper\mywork\FirstMobileApp\ViewController\deploy\ViewController.jar
    [01:55:01 PM] Starting to prepare the packaging...
    [01:55:07 PM] Verifying Application Controller project exists...
    [01:55:07 PM] Verifying application dependencies...
    [01:55:07 PM] Validating application XML files...
    [01:55:07 PM] Validating XML files in project ApplicationController...
    [01:55:07 PM] Validating XML files in project ViewController...
    [01:55:08 PM] Copying FARs to the ADF Mobile Framework application...
    [01:55:08 PM] Copying FAR from source: ViewController...
    [01:55:08 PM] Copying FAR from source: ApplicationController...
    [01:55:08 PM] Copying framework java resource files...
    [01:55:24 PM] Copying common javascript files...
    [01:55:38 PM] Deploying skinning files...
    [01:55:38 PM] Copying application image files...
    [01:55:38 PM] Copying ADF Mobile configuration files...
    [01:55:38 PM] Copying .adf files...
    [01:55:38 PM] Copying security related files to the ADF Mobile Framework application...
    [01:55:38 PM] Creating Android preferences XML files...
    [01:55:39 PM] Creating AndroidManifest.xml file...
    [01:55:39 PM] Creating unsigned Android application file...
    [01:55:50 PM] Compiling Android Resource Identifier file...
    [01:55:52 PM] Creating Android classes.dex file from class files...
    [01:55:54 PM] Command-line executed: ["C:\Users\Nasir Amin\AppData\Local\Android\sdk1\platform-tools\dx.bat", --dex, --keep-classes, --output="C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes.dex", C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\AND_ksoap.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\Container.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\IDMMobileSDK.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\logging_dalvik_release.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\phonegap.jar, C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\vmchannel_dalvik_release.jar]
    [01:55:54 PM] '"C:\Windows\system32\java.exe"' is not recognized as an internal or external command,
    [01:55:54 PM] operable program or batch file.
    [01:55:54 PM] Command-line execution failed (Return code: 1)
    [01:55:54 PM] Command-line executed:  "C:\Users\Nasir Amin\AppData\Local\Android\sdk1\platform-tools\dx.bat" --dex --keep-classes --output="C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes.dex" C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\classes C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\AND_ksoap.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\Container.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\IDMMobileSDK.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\logging_dalvik_release.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\phonegap.jar C:\JDeveloper\mywork\FirstMobileApp\deploy\TestProfile\framework\build\jar\vmchannel_dalvik_release.jar
    [01:55:54 PM] Deployment cancelled.
    [01:55:54 PM] ----  Deployment incomplete  ----.
    [01:55:54 PM] Deployment failed due to one or more errors returned by 'C:\Users\Nasir Amin\AppData\Local\Android\sdk1\platform-tools\dx.bat'.  The following is a summary of the returned error(s):
    Command-line execution failed (Return code: 1)
    Sorry and Regards,
    Muddasar

  • Connection-to-server-unsuccessful-phonegap-android-emulator

    connection-to-server-unsuccessful-phonegap-android-emulator error during lunch, I think code js is old but phonegap is new from github this wk... any comment? just replaced index.html from a finished book chapter in phonegap 2011-2 (c)...
    <script type="text/javascript">
              var filename = "read-write.txt";
                var filePath = "file:///sdcard/read-write.txt";
                                  var textarea = document.getElementById("textarea");
                /** Called when phonegap javascript is loaded */
                function onDeviceReady(){
                    var readButton = document.getElementById("read");
                    var writeButton = document.getElementById("write");
                    readButton.addEventListener("click", readFile, false);
                    writeButton.addEventListener("click", saveFile, false);
                function readFile(){
                    window.resolveLocalFileSystemURI(    //filename to be read
                    filePath,    //success callback
                    function(fileEntry){
                              fileEntry.file(
                                                                function(file){
                                                                          var fileReader = new FileReader();
                                                  fileReader.onloadend = function(evt){
                                                      document.getElementById("textarea").value = evt.target.result;
                                                  fileReader.readAsText(file);
                                                                function(error){
                                                                          alert("Got error while reading "+filePath);
                    },    //error callback
                    function(error){
                        alert(filename + " not present, please add content and click Save first");
                function saveFile(){
                    window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSystem){
                                                      alert(fileSystem.name);
                        var sdcardEntry = fileSystem.root;
                                                      sdcardEntry.getFile(
                                                                filename,
                                                                {create:true},
                                                                function(fileEntry){
                                                                          fileEntry.createWriter(
                                                                                    function(fileWriter){
                                                                                               fileWriter.onwrite = function(evt) {
                                                                                                      alert("Write was successful!");
                                                                                                        document.getElementById("textarea").value="";
                                                                                               fileWriter.write(document.getElementById("textarea").value);
                                                                                    function(error){
                                                                                              alert("Failed to get a file writer for "+filename);
                                                                function(error){
                                                                          alert("Got error while reading "+filename+" "+error);
                    }, function(error){
                        alert("Got Error while gaining access to file system");
                /** Called when browser load this page*/
                function init(){
                    document.addEventListener("deviceready", onDeviceReady, false);
            </script>

    I FIXED PROBLEM WAS A FILE WITH SPACES IN filename...
    well after i got error here in WRITE (BUTTON PRESS) TO FILE FUNCTION of textarea text...
    function(error){
    alert("Got error while reading "+filename+" "+error);
    well?

  • Android Emulator get hangs on starting the application in debug Mode

    I have deployed the application on Android Emulator in debug mode but on starting the app it get hangs. I have set the Java Debugging to true in the cvm.properties file and also started Java debugger from JDev before launching the ADF Mobile app on android emulator. Can any body help me to figure out the problem why the emulator gets hang on starting the application in debug Mode.

    Hi, after setting the debugging = true, you would also need to start the JDeveloper debugger and configure it for remote debugging. Shay has a blog article that should help.
    The emulator is hung while trying to connect to the JDeveloper debugger.
    https://blogs.oracle.com/shay/entry/debugging_adf_mobile_apps_on
    Thanks,
    Joe Huang

  • Adobe Air - Android emulator

    Hi,
    I am trying to put an android aplication working on the android emulator.
    I have developed it in Flash Cs5, then i have created the apk file and installed it on the emulator.
    The emulator has the adobe air for emulator installed.
    When i try to run the app it gives my "the application ... has stoped unexpectedly. Please try again".
    The aplication has a simple square.
    When i write ./adb loga car, i have the following errors:
    I/ActivityManager(   66): Start proc air.Final1 for activity air.Final1/.AppEntry: pid=1082 uid=10031 gids={3003}
    D/TabletStatusBar(  258): lights on
    D/dalvikvm( 1082): Trying to load lib /data/data/com.adobe.air/lib/libCore.so 0x4063abc0
    I/WindowManager(   66): Setting rotation to 3, animFlags=1
    I/ActivityManager(   66): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=P layout=0x10000014 uiMode=0x11 seq=18}
    D/Tablet/NotificationPanel(  258): notificationCount=0
    W/dalvikvm( 1082): No implementation found for native Lcom/adobe/air/AndroidActivityWrapper;.nativeSetVisible (Z)V
    W/WindowManager(   66): Window freeze timeout expired.
    W/WindowManager(   66): Force clearing orientation change: Window{40c41db0 air.Final1/air.Final1.AppEntry paused=false}
    D/AndroidRuntime( 1082): Shutting down VM
    W/dalvikvm( 1082): threadid=1: thread exiting with uncaught exception (group=0x40014760)
    E/AndroidRuntime( 1082): FATAL EXCEPTION: main
    E/AndroidRuntime( 1082): java.lang.UnsatisfiedLinkError: nativeSetVisible
    E/AndroidRuntime( 1082):     at com.adobe.air.AndroidActivityWrapper.nativeSetVisible(Native Method)
    E/AndroidRuntime( 1082):     at com.adobe.air.AndroidActivityWrapper.SetVisible(AndroidActivityWrapper.java:651)
    E/AndroidRuntime( 1082):     at com.adobe.air.AndroidActivityWrapper.onSurfaceInitialized(AndroidActivityWrapper.java:614 )
    E/AndroidRuntime( 1082):     at com.adobe.air.AIRWindowSurfaceView.surfaceChanged(AIRWindowSurfaceView.java:438)
    E/AndroidRuntime( 1082):     at android.view.SurfaceView.updateWindow(SurfaceView.java:571)
    E/AndroidRuntime( 1082):     at android.view.SurfaceView.access$000(SurfaceView.java:84)
    E/AndroidRuntime( 1082):     at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:173)
    E/AndroidRuntime( 1082):     at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:590)
    E/AndroidRuntime( 1082):     at android.view.ViewRoot.performTraversals(ViewRoot.java:1325)
    E/AndroidRuntime( 1082):     at android.view.ViewRoot.handleMessage(ViewRoot.java:1944)
    E/AndroidRuntime( 1082):     at android.os.Handler.dispatchMessage(Handler.java:99)
    E/AndroidRuntime( 1082):     at android.os.Looper.loop(Looper.java:126)
    E/AndroidRuntime( 1082):     at android.app.ActivityThread.main(ActivityThread.java:3997)
    E/AndroidRuntime( 1082):     at java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime( 1082):     at java.lang.reflect.Method.invoke(Method.java:491)
    E/AndroidRuntime( 1082):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
    E/AndroidRuntime( 1082):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
    E/AndroidRuntime( 1082):     at dalvik.system.NativeStart.main(Native Method)
    W/ActivityManager(   66):   Force finishing activity air.Final1/.AppEntry
    W/WindowManager(   66): Failure taking screenshot for (135x84) to layer 21045
    W/ActivityManager(   66): Activity pause timeout for ActivityRecord{4073f990 air.Final1/.AppEntry}
    D/dalvikvm(   66): GC_EXPLICIT freed 498K, 49% free 13968K/27015K, paused 60ms+18ms
    W/ActivityManager(   66): Launch timeout has expired, giving up wake lock!
    W/ActivityManager(   66): Activity idle timeout for ActivityRecord{4073f990 air.Final1/.AppEntry}
    D/dalvikvm( 1070): GC_EXPLICIT freed 10K, 9% free 16186K/17671K, paused 9ms+5ms
    I/WindowManager(   66): Setting rotation to 0, animFlags=1
    I/ActivityManager(   66): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/1 nav=3/1 orien=L layout=0x10000014 uiMode=0x11 seq=19}
    W/ActivityManager(   66): Activity destroy timeout for ActivityRecord{4073f990 air.Final1/.AppEntry}
    W/WindowManager(   66): Window freeze timeout expired.
    W/WindowManager(   66): Force clearing orientation change: Window{40745e50 Sorry! paused=false}
    D/Tablet/NotificationPanel(  258): notificationCount=0
    W/WindowManager(   66): App freeze timeout expired.
    W/WindowManager(   66): Force clearing freeze: AppWindowToken{41524680 token=ActivityRecord{4073c818 com.android.launcher/com.android.launcher2.Launcher}}
    I/InputDispatcher(   66): Dropped event because it is stale.
    i hope someone can help
    Thank you

    Hi,
    Did you create your apk file using Flash Builder Burrito? If yes, Flash Builder Burrito does not support emulators. Packages created with Burrito are only intended to run on pyshical devices.
    Thanks,
    -Sedat Akkus

  • AIR Native Extension Application Crash on Android Emulator when Extension method is invoked

    I have developed a Hello World Application using AIR Native Extension on Android Emulator and When i try to run the application its crashes. I was able to run same application sometimes back on Android Emulator on Mac. Right now I am using a Windows machine (as i dont have Mac anymore). I tried running same apk file which was compiled and running on Android emulator on Mac but it failed. Also i tried to recompile entire application from same code base but still it is failing. As far as i know Mac or windows should not play a part but still mentioning it out in the discussion. Also i tried running the application on various Android SDK version but with same results.
    Following is logcat logs for Android 4.0.3.
    D/gralloc_goldfish(  497): Emulator without GPU emulation detected.
    I/ActivityManager(   84): Displayed air.com.deloitte.helloWorld/.AppEntry: +4s82
    6ms
    W/InputManagerService(   84): Starting input on non-focused client com.android.i
    nternal.view.IInputMethodClient$Stub$Proxy@413e17e0 (uid=10009 pid=179)
    W/ActivityManager(   84): Launch timeout has expired, giving up wake lock!
    W/ActivityManager(   84): Activity idle timeout for ActivityRecord{41534258 air.
    com.deloitte.helloWorld/.AppEntry}
    W/NetworkManagementSocketTagger(   84): setKernelCountSet(10009, 0) failed with
    errno -2
    E/dalvikvm(  497): JNI ERROR (app bug): attempt to use stale local reference 0x5
    d500031
    W/dalvikvm(  497): JNI WARNING: 0x5d500031 is not a valid JNI reference
    W/dalvikvm(  497):              in Lcom/adobe/air/customHandler;.nativeOnTouchCa
    llback:(IFFFIFFZ[FI)Z (CallObjectMethodV)
    I/dalvikvm(  497): "main" prio=5 tid=1 RUNNABLE
    I/dalvikvm(  497):   | group="main" sCount=0 dsCount=0 obj=0x409c1460 self=0x128
    10
    I/dalvikvm(  497):   | sysTid=497 nice=0 sched=0/0 cgrp=default handle=107408295
    2
    I/dalvikvm(  497):   | schedstat=( 12139801627 5119955457 1265 ) utm=1128 stm=85
    core=0
    I/dalvikvm(  497):   at com.adobe.air.customHandler.nativeOnTouchCallback(Native
    Method)
    I/dalvikvm(  497):   at com.adobe.air.customHandler.nativeOnTouchCallback(Native
    Method)
    I/dalvikvm(  497):   at com.adobe.air.customHandler.handleMessage(customHandler.
    java:23)
    I/dalvikvm(  497):   at android.os.Handler.dispatchMessage(Handler.java:99)
    I/dalvikvm(  497):   at android.os.Looper.loop(Looper.java:137)
    I/dalvikvm(  497):   at android.app.ActivityThread.main(ActivityThread.java:4424
    I/dalvikvm(  497):   at java.lang.reflect.Method.invokeNative(Native Method)
    I/dalvikvm(  497):   at java.lang.reflect.Method.invoke(Method.java:511)
    I/dalvikvm(  497):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.r
    un(ZygoteInit.java:784)
    I/dalvikvm(  497):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:
    551)
    I/dalvikvm(  497):   at dalvik.system.NativeStart.main(Native Method)
    I/dalvikvm(  497):
    E/dalvikvm(  497): VM aborting
    F/libc    (  497): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1)
    I/DEBUG   (   34): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *
    I/DEBUG   (   34): Build fingerprint: 'generic/sdk/generic:4.0.3/MR1/237985:eng/
    test-keys'
    I/DEBUG   (   34): pid: 497, tid: 497  >>> air.com.deloitte.helloWorld <<<
    I/DEBUG   (   34): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00
    d
    I/DEBUG   (   34):  r0 00000000  r1 00097bd8  r2 00000000  r3 00000000
    I/DEBUG   (   34):  r4 deadd00d  r5 40872c58  r6 0000020c  r7 49622e39
    I/DEBUG   (   34):  r8 4084ee67  r9 4084e703  10 4084ee73  fp 4084f546
    I/DEBUG   (   34):  ip 00000000  sp bed6a248  lr 4080bc8f  pc 4080bc8e  cpsr 600
    00030
    I/DEBUG   (   34):  d0  3f8000003f800000  d1  4b00106845834000
    I/DEBUG   (   34):  d2  4b0010684b000000  d3  0000000045834000
    I/DEBUG   (   34):  d4  0000000000000000  d5  0000000000000000
    I/DEBUG   (   34):  d6  0000000000000000  d7  0000106800000000
    I/DEBUG   (   34):  d8  3f8000003f800000  d9  0000000000100000
    I/DEBUG   (   34):  d10 0000000000000000  d11 0000000000000000
    I/DEBUG   (   34):  d12 0000000000000000  d13 0000000000000000
    I/DEBUG   (   34):  d14 0000000000000000  d15 0000000000000000
    I/DEBUG   (   34):  scr 68000012
    I/DEBUG   (   34):
    I/DEBUG   (   34):          #00  pc 00050c8e  /system/lib/libdvm.so (dvmAbort)
    I/DEBUG   (   34):          #01  pc 0004486e  /system/lib/libdvm.so
    I/DEBUG   (   34):          #02  pc 000451b0  /system/lib/libdvm.so
    I/DEBUG   (   34):          #03  pc 0004c9a0  /system/lib/libdvm.so
    I/DEBUG   (   34):          #04  pc 000e0e4a  /data/data/com.adobe.air/lib/libCo
    re.so
    I/DEBUG   (   34):
    I/DEBUG   (   34): code around pc:
    I/DEBUG   (   34): 4080bc6c 34b4f8d3 ec54f7cd 26001e73 2f01f813  ...4..T.s..&...
    I/DEBUG   (   34): 4080bc7c 42abb152 d0074416 4798e7f8 f7ff4c0a  R..B.D.....G.L.
    I/DEBUG   (   34): 4080bc8c 7026ffa7 ec4af7cd 2006490c 44794a0c  ..&p..J..I. .Jy
    D
    I/DEBUG   (   34): 4080bc9c f7cd447a 2000eb00 ebc2f7cd 58e54b05  zD..... .....K.
    X
    I/DEBUG   (   34): 4080bcac 2b006c6b e7e9d1e9 deadd00d 0006234c  kl.+........L#.
    I/DEBUG   (   34):
    I/DEBUG   (   34): code around lr:
    I/DEBUG   (   34): 4080bc6c 34b4f8d3 ec54f7cd 26001e73 2f01f813  ...4..T.s..&...
    I/DEBUG   (   34): 4080bc7c 42abb152 d0074416 4798e7f8 f7ff4c0a  R..B.D.....G.L.
    I/DEBUG   (   34): 4080bc8c 7026ffa7 ec4af7cd 2006490c 44794a0c  ..&p..J..I. .Jy
    D
    I/DEBUG   (   34): 4080bc9c f7cd447a 2000eb00 ebc2f7cd 58e54b05  zD..... .....K.
    X
    I/DEBUG   (   34): 4080bcac 2b006c6b e7e9d1e9 deadd00d 0006234c  kl.+........L#.
    I/DEBUG   (   34):
    I/DEBUG   (   34): memory map around addr deadd00d:
    I/DEBUG   (   34): bed23000-bed71000 [stack]
    I/DEBUG   (   34): (no map for address)
    I/DEBUG   (   34): (no map above)
    I/DEBUG   (   34):
    I/DEBUG   (   34): stack:
    I/DEBUG   (   34):     bed6a208  00000000
    I/DEBUG   (   34):     bed6a20c  4001df19  /system/lib/libc.so
    I/DEBUG   (   34):     bed6a210  4004770c  /system/lib/libc.so
    I/DEBUG   (   34):     bed6a214  4004c85c
    I/DEBUG   (   34):     bed6a218  00000000
    I/DEBUG   (   34):     bed6a21c  4001f121  /system/lib/libc.so
    I/DEBUG   (   34):     bed6a220  4004755c  /system/lib/libc.so
    I/DEBUG   (   34):     bed6a224  00000000
    I/DEBUG   (   34):     bed6a228  0000020c
    I/DEBUG   (   34):     bed6a22c  49622e39  /data/data/com.adobe.air/lib/libCore.
    so
    I/DEBUG   (   34):     bed6a230  4084ee67  /system/lib/libdvm.so
    I/DEBUG   (   34):     bed6a234  4001df37  /system/lib/libc.so
    I/DEBUG   (   34):     bed6a238  4086df90  /system/lib/libdvm.so
    I/DEBUG   (   34):     bed6a23c  bed6a44b  [stack]
    I/DEBUG   (   34):     bed6a240  df0027ad
    I/DEBUG   (   34):     bed6a244  00000000
    I/DEBUG   (   34): #00 bed6a248  00000038
    I/DEBUG   (   34):     bed6a24c  6c756e28
    I/DEBUG   (   34):     bed6a250  0000296c
    I/DEBUG   (   34):     bed6a254  00000000
    I/DEBUG   (   34):     bed6a258  00000000
    I/DEBUG   (   34):     bed6a25c  00000000
    I/DEBUG   (   34):     bed6a260  00000000
    I/DEBUG   (   34):     bed6a264  00000000
    I/DEBUG   (   34):     bed6a268  00000000
    I/DEBUG   (   34):     bed6a26c  00000000
    I/DEBUG   (   34):     bed6a270  00000000
    I/DEBUG   (   34):     bed6a274  00000000
    I/DEBUG   (   34):     bed6a278  00000000
    I/DEBUG   (   34):     bed6a27c  00000000
    I/DEBUG   (   34):     bed6a280  00000000
    I/DEBUG   (   34):     bed6a284  00000000
    I/DEBUG   (   34):     bed6a288  00000000
    I/DEBUG   (   34):     bed6a28c  00000000
    I/DEBUG   (   34):     bed6a290  00000000
    I/DEBUG   (   34):     bed6a294  00000000
    I/DEBUG   (   34):     bed6a298  00000000
    I/DEBUG   (   34):     bed6a29c  00000000
    I/DEBUG   (   34):     bed6a2a0  00000000
    I/DEBUG   (   34):     bed6a2a4  00000000
    I/DEBUG   (   34):     bed6a2a8  00000000
    I/DEBUG   (   34):     bed6a2ac  00000000
    I/DEBUG   (   34):     bed6a2b0  00000000
    I/DEBUG   (   34):     bed6a2b4  00000000
    I/DEBUG   (   34):     bed6a2b8  00000000
    I/DEBUG   (   34):     bed6a2bc  00000000
    I/DEBUG   (   34):     bed6a2c0  00000000
    I/DEBUG   (   34):     bed6a2c4  00000000
    I/DEBUG   (   34):     bed6a2c8  00000000
    I/DEBUG   (   34):     bed6a2cc  00000000
    I/DEBUG   (   34):     bed6a2d0  00000000
    I/DEBUG   (   34):     bed6a2d4  00000000
    I/DEBUG   (   34):     bed6a2d8  00000000
    I/DEBUG   (   34):     bed6a2dc  00000000
    I/DEBUG   (   34):     bed6a2e0  00000000
    I/DEBUG   (   34):     bed6a2e4  00000000
    I/DEBUG   (   34):     bed6a2e8  00000000
    I/DEBUG   (   34):     bed6a2ec  00000000
    I/DEBUG   (   34):     bed6a2f0  00000000
    I/DEBUG   (   34):     bed6a2f4  00000000
    I/DEBUG   (   34):     bed6a2f8  00000000
    I/DEBUG   (   34):     bed6a2fc  00000000
    I/DEBUG   (   34):     bed6a300  00000000
    I/DEBUG   (   34):     bed6a304  00000000
    I/DEBUG   (   34):     bed6a308  00000000
    I/DEBUG   (   34):     bed6a30c  00000000
    I/DEBUG   (   34):     bed6a310  00000000
    I/DEBUG   (   34):     bed6a314  00000000
    I/DEBUG   (   34):     bed6a318  00000000
    I/DEBUG   (   34):     bed6a31c  00000000
    I/DEBUG   (   34):     bed6a320  00000000
    I/DEBUG   (   34):     bed6a324  00000000
    I/DEBUG   (   34):     bed6a328  00000000
    I/DEBUG   (   34):     bed6a32c  00000000
    I/DEBUG   (   34):     bed6a330  00000000
    I/DEBUG   (   34):     bed6a334  00000000
    I/DEBUG   (   34):     bed6a338  00000000
    I/DEBUG   (   34):     bed6a33c  00000000
    I/DEBUG   (   34):     bed6a340  00000000
    I/DEBUG   (   34):     bed6a344  00000000
    I/DEBUG   (   34):     bed6a348  00000000
    I/DEBUG   (   34):     bed6a34c  00000000
    I/DEBUG   (   34):     bed6a350  00000000
    I/DEBUG   (   34):     bed6a354  00000000
    I/DEBUG   (   34):     bed6a358  00000000
    I/DEBUG   (   34):     bed6a35c  00000000
    I/DEBUG   (   34):     bed6a360  00000000
    I/DEBUG   (   34):     bed6a364  00000000
    I/DEBUG   (   34):     bed6a368  00000000
    I/DEBUG   (   34):     bed6a36c  00000000
    I/DEBUG   (   34):     bed6a370  00000000
    I/DEBUG   (   34):     bed6a374  00000000
    I/DEBUG   (   34):     bed6a378  00000000
    I/DEBUG   (   34):     bed6a37c  00000000
    I/DEBUG   (   34):     bed6a380  00000000
    I/DEBUG   (   34):     bed6a384  00000000
    I/DEBUG   (   34):     bed6a388  00000000
    I/DEBUG   (   34):     bed6a38c  00000000
    I/DEBUG   (   34):     bed6a390  00000000
    I/DEBUG   (   34):     bed6a394  00000000
    I/DEBUG   (   34):     bed6a398  00000000
    I/DEBUG   (   34):     bed6a39c  00000000
    I/DEBUG   (   34):     bed6a3a0  00000000
    I/DEBUG   (   34):     bed6a3a4  00000000
    I/DEBUG   (   34):     bed6a3a8  00000000
    I/DEBUG   (   34):     bed6a3ac  00000000
    I/DEBUG   (   34):     bed6a3b0  00000000
    I/DEBUG   (   34):     bed6a3b4  00000000
    I/DEBUG   (   34):     bed6a3b8  00000000
    I/DEBUG   (   34):     bed6a3bc  00000000
    I/DEBUG   (   34):     bed6a3c0  00000000
    I/DEBUG   (   34):     bed6a3c4  00000000
    I/DEBUG   (   34):     bed6a3c8  00000000
    I/DEBUG   (   34):     bed6a3cc  00000000
    I/DEBUG   (   34):     bed6a3d0  00000000
    I/DEBUG   (   34):     bed6a3d4  00000000
    I/DEBUG   (   34):     bed6a3d8  00000000
    I/DEBUG   (   34):     bed6a3dc  00000000
    I/DEBUG   (   34):     bed6a3e0  00000000
    I/DEBUG   (   34):     bed6a3e4  00000000
    I/DEBUG   (   34):     bed6a3e8  00000000
    I/DEBUG   (   34):     bed6a3ec  00000000
    I/DEBUG   (   34):     bed6a3f0  00000000
    I/DEBUG   (   34):     bed6a3f4  00000000
    I/DEBUG   (   34):     bed6a3f8  00000000
    I/DEBUG   (   34):     bed6a3fc  00000000
    I/DEBUG   (   34):     bed6a400  00000000
    I/DEBUG   (   34):     bed6a404  00000000
    I/DEBUG   (   34):     bed6a408  00000000
    I/DEBUG   (   34):     bed6a40c  00000000
    I/DEBUG   (   34):     bed6a410  00000000
    I/DEBUG   (   34):     bed6a414  00000000
    I/DEBUG   (   34):     bed6a418  00000000
    I/DEBUG   (   34):     bed6a41c  00000000
    I/DEBUG   (   34):     bed6a420  00000000
    I/DEBUG   (   34):     bed6a424  00000000
    I/DEBUG   (   34):     bed6a428  00000000
    I/DEBUG   (   34):     bed6a42c  00000000
    I/DEBUG   (   34):     bed6a430  00000000
    I/DEBUG   (   34):     bed6a434  00000000
    I/DEBUG   (   34):     bed6a438  00000000
    I/DEBUG   (   34):     bed6a43c  00000000
    I/DEBUG   (   34):     bed6a440  00000000
    I/DEBUG   (   34):     bed6a444  00000000
    I/DEBUG   (   34):     bed6a448  00000000
    I/DEBUG   (   34):     bed6a44c  342b19f5
    I/DEBUG   (   34):     bed6a450  00000000
    I/DEBUG   (   34):     bed6a454  4086df90  /system/lib/libdvm.so
    I/DEBUG   (   34):     bed6a458  5d500031
    I/DEBUG   (   34):     bed6a45c  407ff873  /system/lib/libdvm.so
    I/DEBUG   (   34): #01 bed6a460  bed6a54c  [stack]
    I/DEBUG   (   34):     bed6a464  408001b5  /system/lib/libdvm.so
    D/Zygote  (   37): Process 497 terminated by signal (11)
    I/WindowManager(   84): WIN DEATH: Window{41462cb0 SurfaceView paused=false}
    I/ActivityManager(   84): Process air.com.deloitte.helloWorld (pid 497) has died
    W/ActivityManager(   84): Force removing ActivityRecord{41534258 air.com.deloitt
    e.helloWorld/.AppEntry}: app died, no saved state
    W/NetworkManagementSocketTagger(   84): setKernelCountSet(10041, 0) failed with
    errno -2
    I/WindowManager(   84): WIN DEATH: Window{41590db8 SurfaceView paused=false}
    I/WindowManager(   84): WIN DEATH: Window{4158b920 air.com.deloitte.helloWorld/a
    ir.com.deloitte.helloWorld.AppEntry paused=false}
    I/BootReceiver(   84): Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_
    TOMBSTONE)
    E/InputDispatcher(   84): Received spurious receive callback for unknown input c
    hannel.  fd=209, events=0x8
    D/dalvikvm(   84): GC_FOR_ALLOC freed 928K, 13% free 11284K/12871K, paused 84ms
    W/NetworkManagementSocketTagger(   84): setKernelCountSet(10009, 1) failed with
    errno -2
    D/dalvikvm(   84): GC_CONCURRENT freed 141K, 10% free 11601K/12871K, paused 6ms+
    14ms
    D/dalvikvm(   84): GC_FOR_ALLOC freed 177K, 11% free 11552K/12871K, paused 128ms
    D/dalvikvm(   84): GC_FOR_ALLOC freed 128K, 10% free 11616K/12871K, paused 84ms
    D/dalvikvm(   84): GC_FOR_ALLOC freed 427K, 12% free 11445K/12871K, paused 79ms
    W/InputManagerService(   84): Got RemoteException sending setActive(false) notif
    ication to pid 497 uid 10041
    D/dalvikvm(  136): GC_FOR_ALLOC freed 5544K, 37% free 9812K/15495K, paused 47ms
    D/dalvikvm(  179): GC_FOR_ALLOC freed 2416K, 21% free 17911K/22535K, paused 77ms
    D/dalvikvm(  179): GC_FOR_ALLOC freed 659K, 17% free 18828K/22535K, paused 100ms
    D/dalvikvm(  179): GC_CONCURRENT freed 941K, 12% free 19900K/22535K, paused 6ms+
    20ms
    D/dalvikvm(  179): GC_CONCURRENT freed 3259K, 18% free 18684K/22535K, paused 12m
    s+23ms

    I am not able to solve this yet. Is anybody else facing this this problem.

  • Despite having AIR3.0 and FlashPlayer 10.1 installed on android emulator,  not able to show a SWF

    a) I tried to view a SWF in a HTML file using  WebView. I see a message asking to get Flash Player. Somehow, the emulator is not able to find Flash Player it is installed in the emulator.
        BTW I am using Android SDK 2.3
    b) I create a mobile app using Flex 4.5.1 and installed the apk on android. The app has one view that shows SWF in a local HTM file using StageWebView. I was able to test the app using Flex's emulator.
       But in the android emulator, when I get to the view that shows the local HTML file - it asks for FlashPlayer to be installed.
    Any leads??  

    It seems Flash player does not work Android Emulator. We can test it only on actual devices
    Found it in this link
    http://groups.google.com/group/android-developers/browse_thread/thread/ad607b175e881df5

  • Deployment Error when deploy to Android Emulator

    Dear all,
    I encounter problem when trying to deploy the ADF Mobile application to the Android Emulator.
    I followed the tutorial steps in this link.[ADF Mobile Tutorial|http://docs.oracle.com/cd/E18941_01/tutorials/BuildingMobileApps/ADFMobileTutorial_1.html]
    Can anyone please help to advise on this matter?
    FYI, I am using JDeveloper Studio 11.1.2.3.0 and Android 4.2(API 17).
    [12:31:39 PM] Command-line executed: ["C:\Android\adt-bundle-windows-x86_64\sdk\platform-tools\dx.bat", dex, debug, keep-classes, output="C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\classes.dex", C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\classes, C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\framework\build\jar\AND_ksoap.jar, C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\framework\build\jar\Container.jar, C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\framework\build\jar\IDMMobileSDK.jar, C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\framework\build\jar\logging_dalvik_release.jar, C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\framework\build\jar\phonegap.jar, C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\framework\build\jar\vmchannel_dalvik_release.jar]
    [12:31:39 PM] unknown output extension: C:\JDeveloper\mywork\ADF
    [12:31:39 PM] usage:
    [12:31:39 PM] dx --dex [--debug] [--verbose] [--positions=<style>] [--no-locals]
    [12:31:39 PM] [--no-optimize] [--statistics] [--[no-]optimize-list=<file>] [--no-strict]
    [12:31:39 PM] [--keep-classes] [--output=<file>] [--dump-to=<file>] [--dump-width=<n>]
    [12:31:39 PM] [--dump-method=<name>[*]] [--verbose-dump] [--no-files] [--core-library]
    [12:31:39 PM] [--num-threads=<n>] [--incremental] [--force-jumbo]
    [12:31:39 PM] [<file>.class | <file>.{zip,jar,apk} | <directory>] ...
    [12:31:39 PM] Convert a set of classfiles into a dex file, optionally embedded in a
    [12:31:39 PM] jar/zip. Output name must end with one of: .dex .jar .zip .apk. Positions
    [12:31:39 PM] options: none, important, lines.
    [12:31:39 PM] dx annotool annotation=<class> [--element=<element types>]
    [12:31:39 PM] [--print=<print types>]
    [12:31:39 PM] dx --dump [--debug] [--strict] [--bytes] [--optimize]
    [12:31:39 PM] [--basic-blocks | --rop-blocks | --ssa-blocks | --dot] [--ssa-step=<step>]
    [12:31:39 PM] [--width=<n>] [<file>.class | <file>.txt] ...
    [12:31:39 PM] Dump classfiles, or transformations thereof, in a human-oriented format.
    [12:31:39 PM] dx --find-usages <file.dex> <declaring type> <member>
    [12:31:39 PM] Find references and declarations to a field or method.
    [12:31:39 PM] declaring type: a class name in internal form, like Ljava/lang/Object;
    [12:31:39 PM] member: a field or method name, like hashCode
    [12:31:39 PM] dx -J<option> ... <arguments, in one of the above forms>
    [12:31:39 PM] Pass VM-specific options to the virtual machine that runs dx.
    [12:31:39 PM] dx --version
    [12:31:39 PM] Print the version of this tool (1.7).
    [12:31:39 PM] dx --help
    [12:31:39 PM] Print this message.
    [12:31:39 PM] Command-line execution failed (Return code: 1)
    [12:31:39 PM] Command-line executed: "C:\Android\adt-bundle-windows-x86_64\sdk\platform-tools\dx.bat" dex debug keep-classes output="C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\classes.dex" C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\classes C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\framework\build\jar\AND_ksoap.jar C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\framework\build\jar\Container.jar C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\framework\build\jar\IDMMobileSDK.jar C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\framework\build\jar\logging_dalvik_release.jar C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\framework\build\jar\phonegap.jar C:\JDeveloper\mywork\ADF Mobile Tutorial 1\deploy\ANDROID_MOBILE_NATIVE_Debug\framework\build\jar\vmchannel_dalvik_release.jar
    [12:31:39 PM] Shutting down Android Debug Bridge server...
    *[12:31:39 PM] Deployment cancelled.*
    *[12:31:39 PM] ---- Deployment incomplete ----.*
    *[12:31:39 PM] Deployment failed due to one or more errors returned by 'C:\Android\adt-bundle-windows-x86_64\sdk\platform-tools\dx.bat'. The following is a summary of the returned error(s):*
    Command-line execution failed (Return code: 1)

    It looks like you've spaces in the path where you've created your ADF Mobile workspace:
    C:\JDeveloper\mywork\ADF Mobile Tutorial 1
    I suggest that's throwing the command off. Close JDev, remove the spaces, reopen JDev then the workspace. Try again.
    CM.

  • 5.5 Mobile Applications Android emulator Doesn't seem to want to work!

    Using Dreamweaver 5.5 and the new Mobile Applications I'm successfully set up the Android SDK (which was a right pain in the backside) - so now I can build the HTML5 structure and the 'PhoneGap' tools are there, my problem comes when exporting the application for build and testing.
    When I start the build and emulate it pops up with a message stating 'unable to open in the emulator and to look in the build log for details'. So I do thia and find the following:
    DERROR: Cannot copy phonegap files. Terminating.java.io.FileNotFoundException: (path to app here - removed for NDA reasons)\DefaultActivity.java (The system cannot find the path specified)
    ERROR: Clone failed
    and
    Waiting for Android emulator to bootERROR: failed to launch Android emulator
    No I've also tried to lauch the Android emulators via the Virtual device manager but it comes back with this error:
    PANIC: Could not open: C:\Users\c554\.android/avd/AP4.ini
    Now to me it looks like it;s trying to reference the emulator with the wrong path - but I'm not sure on how to go about finding or even changing this.....
    So can anyone point me in the right direction so that I can get my applications fully running in Dreamweaver 5.5?
    Thanks

    Step1: You can run emulator android apps. it well error
    Step2: You keep you keep running the emulator, then again you debug
    I also encountered this error and now understand that to debug.
    wish you success

  • How to get Current Location in a Android Emulator using Flex

    Hi
    In the following code I am able to plot the Location using Latitude and Longitude but the requirement is
    in an Android Emulator on launch of the application I need google map to display the users current location,
    How can this be achieved ??? I tried to get the Latitude and Longitude of the current position using
    geoLocation class by I am not able to get that working,
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark" title="Home">
        <s:layout>
            <s:VerticalLayout />
        </s:layout>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import com.google.maps.LatLng;
                import com.google.maps.MapEvent;
                import com.google.maps.MapType;
                import com.google.maps.controls.PositionControl;
                import com.google.maps.controls.ZoomControl;
                import flash.sensors.Geolocation;
                private var myGeo:Geolocation;
                protected function showBtn_clickHandler(event:MouseEvent):void
                    if(Geolocation.isSupported == 'true')
                        myGeo = new Geolocation();
                        myGeo.setRequestedUpdateInterval(100);
                        myGeo.addEventListener(GeolocationEvent.UPDATE, onUpdate);
                    else
                        myTextArea.text = "Device Not Supported";
                private function onUpdate(event:GeolocationEvent):void
                    myTextArea.text += "Hi"+ "/n"+ event.latitude.toString() + "/n" +
                        event.longitude.toString();
                protected function myMap_mapevent_mapreadyHandler(event:MapEvent):void
                    myMap.setCenter(new LatLng(24,58),9,MapType.NORMAL_MAP_TYPE);
                    myMap.addControl(new ZoomControl);
                    myMap.addControl(new PositionControl);
            ]]>
        </fx:Script>
        <s:Button id="showBtn" label="Show" click="showBtn_clickHandler(event)"/>
        <s:TextArea id="myTextArea" width="100%" height="50%" />
        <maps:Map id="myMap" width="100%" height="50%"
                  xmlns:maps="com.google.maps.*"
                  sensor="true"
                  key="ABQIAAAA2Fwy6HLBheYSAWRBEZKwEhRLum8XdHegG17d4EymNgK0o7h2qRRWVBVQywiGHEiGtKahjfGW8xxc RA"
                  mapevent_mapready="myMap_mapevent_mapreadyHandler(event)"
                  url="http://www.xyz.com"/>
    </s:View>

    Geolocation isn't supported in the Emulator. You'll have to set up a test case that gives the geolocation without relying on the Emulator.

  • Running a java program via a batch file

    I am unable to run a java program from a batch file that I created.
    spiderpackage.EntryPoint is a class file which I am trying to run with a -v option to output something.What should I do to get the output?
    echo ^<html^>^<body^>
    echo hello^<br^>
    call java spiderpackage.EntryPoint -v
    echo ^</body^>^</html^>

    This has nothing to do with java programming. Have a look at the windows help for the call command.
    The echo <html> stuff doesn't make sense. What's it for?
    The command in you batch file should be:
    java -cp . spiderpackage.EntryPoint -v
    assuming that java is in the system path, and the EntryPoint.class is in a directory called spiderpackage which is a subdirectory of your current working directory

  • Guide to External Jobs on 10g with dbms_scheduler e.g. scripts,batch files

    GUIDE TO RUNNING EXTERNAL JOBS ON 10g WITH DBMS_SCHEDULER
    NOTE: Users using 11g should use the new method of specifying a credential which eliminates many of the issues mentioned in this note.
    This guide covers several common questions and problems encountered when using
    dbms_scheduler to run external jobs, either on Windows or on UNIX.
    What operating system (OS) user does the job run as ?
    External jobs which have a credential (available in 11g) run as the user
    specified in the credential. But for jobs without credentials including
    all jobs in 10gR1 and 10gR2 there are several cases.
    - On UNIX systems, in releases including and after 10.2.0.2 there is a file $ORACLE_HOME/rdbms/admin/externaljob.ora . All external jobs not in the SYS schema and with no credential run as the user and group specified in this file. This should be nobody:nobody by default.
    - On UNIX systems, in releases prior to 10.2.0.2 there was no "externaljob.ora" file. In this case all external jobs not in the SYS schema and with no credential run as the owner and group of the $ORACLE_HOME/bin/extjob file which should be setuid and setgid. By default extjob is owned by nobody:nobody except for oracle-xe where it is owned by oracle:oraclegroup and is not setuid/setgid.
    - On Windows, external jobs not in the SYS schema and with no credential run as the user that the OracleJobScheduler Windows service runs as. This service must be started before these jobs can run.
    - In all releases on both Windows and UNIX systems, external jobs in the SYS schema without a credential run as the oracle user.
    What errors are reported in SCHEDULERJOB_RUN_DETAILS views ?
    If a job fails, the first place to look for diagnostic information is the SCHEDULERJOB_RUN_DETAILS set of views. In 10gR2 and up the first 200 characters of the standard error stream is included in the additional_info column.
    In all releases, the error number returned by the job is converted into a
    system error message (e.g. errno.h on UNIX or net helpmsg on Windows) and that
    system error message is recorded in the additional info column. If there is no
    corresponding message the number is displayed.
    In 11g and up the error number returned by the job is additionally recorded in
    the error# column. In earlier releases 27369 would always be recorded in the
    error# column.
    Generic Issues Applicable to UNIX and Windows
    - The job action (script or executable) must return 0 or the job run will be marked as failed.
    - Always use the full pathname to executables and scripts.
    - Do not count on environment variables being set in your job. Make sure that the script or executable that your jobs runs sets all required environment variables including ORACLE_HOME, ORACLE_SID, PATH etc.
    - It is not recommended to pass in a complete command line including arguments as the action. Instead it is recommended to pass in only the path to and name of the executable and to pass in arguments as job argument values.
    - Scripts with special characters in the execution path or script name may give problems.
    - Ensure that the OS user your job runs as has the required privileges/permissions to run your job. See above for how to tell who the job runs as.
    - External job actions cannot contain redirection operators e.g. > < >> | && ||
    - In general try getting a simple external job working first e.g. /bin/echo or ipconfig.exe on Windows. Also try running the job action directly from the commandline as the OS user that the job will run as.
    Windows-specific Issues
    - The OracleJobScheduler Windows service must be started before external jobs will run (except for jobs in the SYS schema and jobs with credentials).
    - The user that the OracleJobScheduler Windows service runs as must have the "Log on as batch job" Windows privilege.
    - A batch file (ending in .bat) cannot be called directly by the Scheduler. Instead cmd.exe must be used and the name of the batch file passed in as an argument. For example
    begin
    dbms_scheduler.create_job('myjob',
       job_action=>'C:\WINDOWS\SYSTEM32\CMD.EXE',
       number_of_arguments=>3,
       job_type=>'executable', enabled=>false);
    dbms_scheduler.set_job_argument_value('myjob',1,'/q');
    dbms_scheduler.set_job_argument_value('myjob',2,'/c');
    dbms_scheduler.set_job_argument_value('myjob',3,'c:\temp\test.bat');
    dbms_scheduler.enable('myjob');
    end;
    /- In 10gR1 external jobs that wrote to standard output or standard error streams would sometimes return errors. Redirect to files or suppress all output and error messages when using 10gR1 to run external jobs.
    UNIX-specific Issues
    - When running scripts, make sure that the executable bit is set.
    - When running scripts directly, make sure that the first line of the script in a valid shebang line - starting with "#!" and containing the interpreter for the script.
    - In release 10.2.0.1, jobs creating a large amount of standard error text may hang when running (this was fixed in the first 10.2.0.2 patchset). If you are seeing this issue, redirect standard error to a file in your job. This issue has been seen when running the expdp utility which may produce large amounts of standard error text.
    - the user that the job runs as (see above section) must have execute access on $ORACLE_HOME/bin and all parent directories. If this is not the case the job may be reported as failed or hang in a running state. For example if your $ORACLE_HOME is /opt/oracle/db then you would have to make sure that
    chmod a+rx /opt
    chmod a+rx /opt/oracle
    chmod a+rx /opt/oracle/db
    chmod a+rx /opt/oracle/db/bin
    - On oracle-xe, the primary group of your oracle user (if it exists) must be dba before you install oracle-xe for external jobs to work. If you have an oracle user from a regular Oracle installation it may have the primary group set to oinstall.
    - On oracle-xe, the extjobo executable is missing so external jobs in the SYS schema will not work properly. This can be fixed by copying the extjob executable to extjobo in the same directory ($ORACLE_HOME/bin).
    - Check that correct permissions are set for external job files - extjob and externaljob.ora (see below)
    Correct permissions for extjob and externaljob.ora on UNIX
    There is some confusion as to what correct permissions are for external job related files.
    In 10gR1 and 10.2.0.1 :
    - rdbms/admin/externaljob.ora should not exist
    - bin/extjob should be setuid and setgid 6550 (r-sr-s---). It should be owned by the user that jobs should run as and by the group that jobs should run as.
    - bin/extjobo should have normal 755 (rwxr-xr-x) permissions and be owned by oracle:oraclegroup
    In 10.2.0.2 and higher
    - rdbms/admin/externaljob.ora file must must be owned by root:oraclegroup and be writable only by the owner i.e. 644 (rw-r--r--) It must contain at least two lines: one specifying the run-user and one specifying the run-group.
    - bin/extjob file must be also owned by root:oraclegroup but must be setuid i.e. 4750 (-rwsr-x---)
    - bin/extjobo should have normal 755 (rwxr-xr-x) permissions and be owned by oracle:oraclegroup
    In 11g and higher
    Same as 10.2.0.2 but additionally bin/jssu should exist with root setuid
    permissions i.e. owned by root:oraclegroup with 4750 (-rwsr-x---)
    Internal Error numbers for UNIX on 10.2.0.2 or 10.1.0.6 or higher
    If you are not using a credential and are using version 10.2.0.2 or higher or 10.1.0.6 or higher you may come across an internal error number. Here are the meanings for the internal error numbers.
    274661 - can't get owner of or permissions of externaljob.ora file
    274662 - not running as root or externaljob.ora file is writable by group or other or externaljob.ora file not owned by root (can't switch user)
    274663 - setting the group or effective group failed
    274664 - setting the user or effective user failed
    274665 - a user or group id was not changed successfully
    274666 - cannot access or open externaljob.ora file
    274667 - invalid run_user specified in externaljob.ora file
    274668 - invalid run_group specified in externaljob.ora file
    274669 - error parsing externaljob.ora file
    274670 - extjobo is running as root user or group

    Hi Ravi,
    Can you help me...
    Hi All,
    I planned to create a job to do rman backup daily at 04:00 AM.
    1. I created a program as follows
    BEGIN
    DBMS_SCHEDULER.CREATE_PROGRAM(
    program_name => 'rman_backup_prg',
    program_action => '/u02/rmanback/rman.sh',
    program_type => 'EXECUTABLE',
    comments => 'RMAN BACKUP');
    END;
    my rman script is
    #!/usr/bin/ksh
    export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
    export PATH=$PATH:/u01/app/oracle/product/10.2.0/db_1/bin
    /u01/app/oracle/product/10.2.0/db_1/bin/exp rman/cat@catdb file=/u02/rmanback/rm
    an_220108.dmp log=/u02/rmanback/rman_220108.log owner=rman statistics=none comp
    ress=n buffer=400000
    compress *.dmp
    exit
    2. I created a schedule as follows
    BEGIN
    DBMS_SCHEDULER.CREATE_SCHEDULE(
    schedule_name => 'rman_backup_schedule',
    start_date => SYSTIMESTAMP,
    end_date => '31-DEC-16 05.00.00 AM',
    repeat_interval => 'FREQ=DAILY; BYHOUR=4',
    comments => 'Every day at 4 am');
    END;
    3. I created ajob as follows.
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB (
    job_name => 'rman_backup_job',
    program_name => 'rman_backup_prg',
    schedule_name => 'rman_backup_schedule',
    enabled=> true,
    auto_drop=> false
    END;
    While I am running the job I am getting the following error anybody help me.
    ORA-27369: job of type EXECUTABLE failed with exit code: Not owner
    ORA-06512: at "SYS.DBMS_ISCHED", line 150
    ORA-06512: at "SYS.DBMS_SCHEDULER", line 441
    ORA-06512: at line 2
    If I removed "compress *.dmp" line in rman script it is working fine.
    /* additional Info from dba_scheduler_job_run_details as follows */
    ORA-27369: job of type EXECUTABLE failed with exit code: Not owner
    STANDARD_ERROR="
    Export: Release 10.2.0.3.0 - Production on Tue Jan 22 14:30:08 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Release 10.2.0.3.0 - Production
    Export"
    Regards,
    Kiran

  • PL/SQL w/ Java to run OS batch file crashes Oracle

    I followed instructions from "Ask Tom" on using PL/SQL with Java to execute an OS batch file. For testing purposes, my batch file does nothing more than display the date and time from the OS.
    However, when I run the PL/SQL that executes this simple batch file repeatedly - anywhere from two to four times, the Oracle instance crashes abruptly. Nothing is written to the alert log. No trace files are created.
    Here is a sample session:
    SQL*Plus: Release 9.0.1.3.0 - Production on Wed Mar 24 10:04:26 2004
    (c) Copyright 2001 Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL> set serveroutput on size 1000000
    SQL> exec dbms_java.set_output(1000000) ;
    PL/SQL procedure successfully completed.
    SQL> begin
    2 rc('c:\dba_tools\jobs\test.cmd') ;
    3 end ;
    4 /
    C:\Ora9ir2\DATABASE>date /t
    Wed 03/24/2004
    C:\Ora9ir2\DATABASE>time /t
    10:05 AM
    PL/SQL procedure successfully completed.
    SQL> begin
    2 rc('c:\dba_tools\jobs\test.cmd') ;
    3 end ;
    4 /
    C:\Ora9ir2\DATABASE>date /t
    Wed 03/24/2004
    C:\Ora9ir2\DATABASE>time /t
    10:06 AM
    PL/SQL procedure successfully completed.
    SQL>
    Shortly after the second "run", Oracle crashed. All I received was the following error message:
    Unhandled exception in oracle.exe (ORAJOX9.DLL): 0xC0000005: Access Violation
    Here is the Java procedure at the heart of my PL/SQL:
    create or replace and compile
    java source named "Util"
    as
    import java.io.*;
    import java.lang.*;
    public class Util extends Object
    public static int RunThis(String args)
    Runtime rt = Runtime.getRuntime();
    int rc = -1;
    try
    Process p = rt.exec(args);
    int bufSize = 4096;
    BufferedInputStream bis =
    new BufferedInputStream(p.getInputStream(), bufSize);
    int len;
    byte buffer[] = new byte[bufSize];
    // Echo back what the program spit out
    while ((len = bis.read(buffer, 0, bufSize)) != -1)
    System.out.write(buffer, 0, len);
    rc = p.waitFor();
    catch (Exception e)
    e.printStackTrace();
    rc = -1;
    finally
    return rc;
    I am running Oracle 9i rel. 2 installed on my PC under Windows XP Professional (Service Pack 2). My knowledge of Java is next to nothing.
    Can anyone give me an idea(s) as to what might be causing Oracle to crash?
    Thanks.

    Using 9.2.0.4 I made the following adjustments and it seems to run as often as I care to do it:
    Java changes:
    create or replace and compile
    java source named "Util"
    as
    import java.io.*;
    import java.lang.*;
    public class Util extends Object
    public static void RunThis(java.lang.String args)
    Runtime rt = Runtime.getRuntime();
    int rc = -1;
    try
    Process p = rt.exec(args);
    int bufSize = 4096;
    BufferedInputStream bis =
    new BufferedInputStream(p.getInputStream(), bufSize)
    int len;
    byte buffer[] = new byte[bufSize];
    // Echo back what the program spit out
    while ((len = bis.read(buffer, 0, bufSize)) != -1)
    System.out.write(buffer, 0, len);
    rc = p.waitFor();
    catch (Exception e)
    e.printStackTrace();
    finally
    PL/SQL Wrapper :
    create or replace procedure rc (cmd VARCHAR2) as
    language java name 'Util.RunThis(java.lang.String)';
    Execution:
    begin
    rc('c:\dba_tools\jobs\test.cmd');
    end ;
    D:\oracle\ora92\DATABASE>date /t
    Fri 03/26/2004
    D:\oracle\ora92\DATABASE>time /t
    10:48 AM
    PL/SQL procedure successfully completed.
    SQL> /
    D:\oracle\ora92\DATABASE>date /t
    Fri 03/26/2004
    D:\oracle\ora92\DATABASE>time /t
    10:48 AM
    PL/SQL procedure successfully completed.
    SQL> /
    D:\oracle\ora92\DATABASE>date /t
    Fri 03/26/2004
    D:\oracle\ora92\DATABASE>time /t
    10:49 AM
    PL/SQL procedure successfully completed.
    SQL> /
    D:\oracle\ora92\DATABASE>date /t
    Fri 03/26/2004
    D:\oracle\ora92\DATABASE>time /t
    10:50 AM
    PL/SQL procedure successfully completed.
    SQL>
    The only thing I really changed was the reurn value from the java procedure. If it has a return value then it should be declared as a function, not a procedure. Since you probably (apparently) weren't using the return value I dropped it and made it a procedure.

  • Executing batch file from Java stored procedure hang

    Dears,
    I'm using the following code to execute batch file from Java Stored procedure, which is working fine from Java IDE JDeveloper 10.1.3.4.
    public static String runFile(String drive)
    String result = "";
    String content = "echo off\n" + "vol " + drive + ": | find /i \"Serial Number is\"";
    try {
    File directory = new File(drive + ":");
    File file = File.createTempFile("bb1", ".bat", directory);
    file.deleteOnExit();
    FileWriter fw = new java.io.FileWriter(file);
    fw.write(content);
    fw.close();
    // The next line is the command causing the problem
    Process p = Runtime.getRuntime().exec("cmd.exe /c " + file.getPath());
    BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
    String line;
    while ((line = input.readLine()) != null)
    result += line;
    input.close();
    file.delete();
    result = result.substring( result.lastIndexOf( ' ' )).trim();
    } catch (Exception e) {
    e.printStackTrace();
    result = e.getClass().getName() + " : " + e.getMessage();
    return result;
    The above code is used in getting the volume of a drive on windows, something like "80EC-C230"
    I gave the SYSTEM schema the required privilege to execute the code.
    EXEC DBMS_JAVA.grant_permission('SYSTEM', 'java.io.FilePermission', '&lt;&lt;ALL FILES&gt;&gt;', 'read ,write, execute, delete');
    EXEC DBMS_JAVA.grant_permission('SYSTEM', 'SYS:java.lang.RuntimePermission', 'writeFileDescriptor', '');
    EXEC DBMS_JAVA.grant_permission('SYSTEM', 'SYS:java.lang.RuntimePermission', 'readFileDescriptor', '');
    GRANT JAVAUSERPRIV TO SYSTEM;
    I have used the following to load the class in Oracle 9ir2 DB:
    loadjava -u [system/******@orcl|mailto:system/******@orcl] -v -resolve C:\Server\src\net\dev\Util.java
    CREATE FUNCTION A1(drive IN VARCHAR2) RETURN VARCHAR2 AS LANGUAGE JAVA NAME 'net.dev.Util.a1(java.lang.String) return java.lang.String';
    variable serial1 varchar2(1000);
    call A1( 'C' ) into :serial1;
    The problem that it hangs when I execute the call to the function (I have indicated the line causing the problem in a comment in the code).
    I have seen similar problems on other forums, but no solution posted
    [http://oracle.ittoolbox.com/groups/technical-functional/oracle-jdeveloper-l/run-an-exe-file-using-oracle-database-trigger-1567662]
    I have posted this in JDeveloper forum ([t-853821]) but suggested to post for forum in DB.
    Can anyne help?

    Dear Peter,
    You are totally right, I got this as mistake copy paste. I'm just having a Java utility for running external files outside Oracle DB, this is the method runFile()
    I'm passing it the content of script and names of file to be created on the fly and executed then deleted, sorry for the mistake in creating caller function.
    The main point, how I claim that the line in code where creating external process is the problem. I have tried the code with commenting this line and it was working ok, I made this to make sure of the permission required that I need to give to the schema passing security permission problems.
    The function script is running perfect if I'm executing vbs script outside Oracle using something like "cscript //NoLogo aaa1.vbs", but when I use the command line the call just never returns to me "cmd.exe /c bb1.bat".
    where content of bb1.bat as follows:
    echo off
    vol C: | find /i "Serial Number is"
    The above batch file just get the serial number of hard drive assigned when windows formatted HD.
    Same code runs outside Oracle just fine, but inside Oracle doesn't return if I exectued the following:
    variable serial1 varchar2(1000);
    call A1( 'C' ) into :serial1;
    Never returns
    Thanks for tracing teh issue to that details ;) hope you coul help.

  • How to edit a line in a file using a batch file??????

    Basically i want to edit one line in a properties file, using a batch file, Here is what it says
    #Minecraft server properties
    #Tue Feb 22 15:58:36 PST 2011
    level-name=world2
    hellworld=false
    spawn-monsters=true
    online-mode=false
    spawn-animals=true
    max-players=5
    server-ip=5.196.238.77
    pvp=true
    server-port=25565
    white-list=false
    The IP address needs to be changed, i have a hamachi server and a server for home but i need to change this to my ip address on my computer wich is 192.168.1.74. This needs to be changed back and forth so how can i make a batch that just runs and then done its been changed.

    There are no .bat files in a Unix environment
    #!/usr/bin/env bash
    export NEW_IP=192.168.1.74
    perl -ni -e '
    s/d.d+.d+.d/$ENV{"NEW_IP"}/;
    print;
    ' yourpropertiesfile
    Make sure you change the file's protections so they are executable
    chmod +x nameof_yourscript
    There are other ways to do this, I just choose a perl script within a bash script. You could do it all with a bash script, you could use awk, you could use sed, you could use python, ruby, etc...

Maybe you are looking for