combining two eclipse android java applications -


i'm trying combine functionality of basicaccessorydemo androidwebserver (basically usb=>electronics interface simple web host app)

my java knowledge limited @ moment , i'm running issues.

i tried combining code 1 project, couldn't work. i've read adding 1 project other library.

  1. tell basicaccessorydemo it's library
  2. tell androidwebserver include basicaccessorydemo library

if try call basicaccessorydemo method inside androidwebserver, error 'accessorymanager cannot resolved'. looks there's no real connection between apps?

tried adding basicaccessorydemo androidmanifest.xml info androidwebserver manifest, doesn't make difference. missing something? sorry if noob question, i've been trying work week now.

if point me in right direction, terrific!

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.varma.android.aws" android:versioncode="1" android:versionname="1.0"  android:installlocation="auto">  <uses-permission android:name="android.permission.internet"></uses-permission> <uses-sdk android:targetsdkversion="14" android:minsdkversion="10"></uses-sdk> <uses-permission android:name="android.permission.vibrate"></uses-permission>  <application      android:icon="@drawable/icon"      android:label="@string/app_name"      android:name="com.varma.android.aws.app.awsapplication"      android:description="@string/app_desc" android:debuggable="true">      <activity          android:name="com.varma.android.aws.ui.awsactivity"         android:label="@string/app_title">          <intent-filter>             <action android:name="android.intent.action.main" />             <category android:name="android.intent.category.launcher" />         </intent-filter>      </activity>      <activity          android:name="com.varma.android.aws.ui.awsmessageactivity"         android:label="@string/message_title"         android:theme="@android:style/theme.notitlebar">          <intent-filter>             <action android:name="android.intent.action.main" />         </intent-filter>     </activity>      <activity          android:name="com.varma.android.aws.ui.awspreferenceactivity"         android:label="@string/preference_title">          <intent-filter>             <action android:name="android.intent.action.main" />         </intent-filter>     </activity>      <service android:name="com.varma.android.aws.service.httpservice" />       <!-- section basicaccessorydemo -->     <activity         android:name="com.microchip.android.basicaccessorydemo.basicaccessorydemo"         android:label="@string/app_name">          <intent-filter>             <action android:name="android.intent.action.main" />             <!-- <category android:name="android.intent.category.launcher" /> -->         </intent-filter>          <intent-filter>             <action android:name="android.hardware.usb.action.usb_accessory_attached" />         </intent-filter>          <meta-data android:name="android.hardware.usb.action.usb_accessory_attached"             android:resource="@xml/accessory_filter" />      </activity>     <uses-library android:name="com.android.future.usb.accessory" />  </application> 


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -