Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

An internal error occurred during: "Launching vibrate_example". java.lang.NullPointerException

New Here ,
Feb 03, 2013 Feb 03, 2013

Hey guys I am getting the following error when trying to launch a test on the ane - Contact Editor (http://extensionsforair.com/extensions/contact-editor/#comment-7488

Error:

An internal error occurred during: "Launching vibrate_example".

java.lang.NullPointerException

Not to sure as in why I am but here is my code:

vibrate_example.mxml file :

<?xml version="1.0" encoding="utf-8"?>

<s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"

                                                                      xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.vibrate_exampleHomeView" applicationDPI="160" applicationComplete="init();">

          <fx:Declarations>

                    <!-- Place non-visual elements (e.g., services, value objects) here -->

          </fx:Declarations>

          <fx:Script>

                    <![CDATA[

                              import pl.mllr.extensions.contactEditor.ContactEditor;

 

                              private var contact:ContactEditor;

                              private function init():void

                              {

                                        if (ContactEditor.isSupported){

 

                                                  setupButtons();

 

                                        }

                                        else {

                                                  trace("No supported");

                                        }

 

                              }

 

                              private function setupButtons():void

                              {

                                        one.addEventListener(MouseEvent.CLICK, handleButtons);

                                        contact = new ContactEditor();

 

                              }

 

                              private function handleButtons():void

                              {

 

                                        contact.getContactsSimple();

                              }

                    ]]>

          </fx:Script>

          <s:titleContent>

                    <s:Button id="one" label="Address"/>

          </s:titleContent>

</s:ViewNavigatorApplication>


vibrate_exampleHomeView.mxml file :

<?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="HomeView"

                    >

          <fx:Declarations>

                    <!-- Place non-visual elements (e.g., services, value objects) here -->

          </fx:Declarations>

 

</s:View>

vibrate_example-app.xml file :


<?xml version="1.0" encoding="utf-8" standalone="no"?>

<application xmlns="http://ns.adobe.com/air/application/3.1">

          <id>come.appbydavid.example</id>

 

          <filename>vibrate_example</filename>

          <name>vibrate_example</name>

 

          <versionNumber>1.0.0</versionNumber>

                    <content>[This value will be overwritten by Flash Builder in the output app.xml]</content>


          <autoOrients>true</autoOrients>

        <fullScreen>false</fullScreen>

        <visible>true</visible>

        <softKeyboardBehavior>none</softKeyboardBehavior>

    </initialWindow>

   

<extension xmlns="http://ns.adobe.com/air/extension/3.1">

    <id>pl.mllr.extensions.contactEditor</id>

    <versionNumber>0.0.1</versionNumber>

    <platforms>

        <platform name="iPhone-ARM">

            <applicationDeployment>

                <nativeLibrary>libContactEditor.a</nativeLibrary>

                <initializer>ContactEditorExtInitializer</initializer>

                <finalizer>ContactEditorExtFinalizer</finalizer>

            </applicationDeployment>

        </platform>

         <platform name="iPhone-x86">

            <applicationDeployment>

                <nativeLibrary>libContactEditorSimulator.a</nativeLibrary>

                <initializer>ContactEditorExtInitializer</initializer>

                <finalizer>ContactEditorExtFinalizer</finalizer>

            </applicationDeployment>

        </platform>

        <platform name="Android-ARM">

            <applicationDeployment>

                <nativeLibrary>contactEditor.jar</nativeLibrary>

                <initializer>pl.mateuszmackowiak.nativeANE.contactManager.ContactEditor</initializer>

                <finalizer>pl.mateuszmackowiak.nativeANE.contactManager.ContactEditor</finalizer>

            </applicationDeployment>

        </platform>

        <platform name="default">

            <applicationDeployment/>

        </platform>

    </platforms>

</extension>

<android>

        <colorDepth>16bit</colorDepth>

        <manifestAdditions><![CDATA[

                              <manifest android:installLocation="auto">

                                  <!--See the Adobe AIR documentation for more information about setting Google Android permissions-->

                                  <!--Removing the permission android.permission.INTERNET will have the side effect

                    of preventing you from debugging your application on your device-->

                                  <uses-permission android:name="android.permission.INTERNET"/>

                                  <!--<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>-->

                                  <!--<uses-permission android:name="android.permission.READ_PHONE_STATE"/>-->

                                  <!--<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>-->

                                  <!--The DISABLE_KEYGUARD and WAKE_LOCK permissions should be toggled together

                    in order to access AIR's SystemIdleMode APIs-->

                                  <!--<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>-->

                                  <!--<uses-permission android:name="android.permission.WAKE_LOCK"/>-->

                                  <!--<uses-permission android:name="android.permission.CAMERA"/>-->

                                  <!--<uses-permission android:name="android.permission.RECORD_AUDIO"/>-->

                                  <!--The ACCESS_NETWORK_STATE and ACCESS_WIFI_STATE permissions should be toggled

                    together in order to use AIR's NetworkInfo APIs-->

                                  <!--<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>-->

                                  <!--<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>-->

                              </manifest>

 

                    ]]></manifestAdditions>

    </android>

    <iPhone>

        <InfoAdditions><![CDATA[

                              <key>UIDeviceFamily</key>

                              <array>

                                        <string>1</string>

                                        <string>2</string>

                              </array>

                    ]]></InfoAdditions>

        <requestedDisplayResolution>high</requestedDisplayResolution>

    </iPhone>

<extensions>

        <extensionID>pl.mllr.extensions.contactEditor</extensionID>

    </extensions>

</application>

--------------------------------------------

I am including the Ane file in the build path - ane tab and I have the .swc file hooked up.

Thanks guys and I hope someone could help me!

TOPICS
ActionScript
2.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 03, 2013 Feb 03, 2013
LATEST

Generally Null pointer exception occurs due to error in app.xml file as far as I've faced that type of problem. So you should look at your app.xml file once again.

I think you'll get the solution in that.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines