Question about Google Android

Open Question

Build Error : couldn't find import for class

Hi,

I am moving the dir "sensorgesture" from existing location (motorola/packages

/apps/SensorGestures/src/com/motorola/android/sensorgestures) to new location (motorola

/frameworks/base/core/java/com/motorola/android/sensorgestures). Here the the package name

for sensorgesture remains same as com.motorola.android.sensorgestures but the library jar

file changes from com.motorola.android.sensorgestures.jar to

com.motorola.android.frameworks.jar which contains sensorgesture pkg.

The sensorgesture/ contains javafiles & aidl files(ISmartSensorService.aidl,

ISmartSensorServiceCallback.aidl).

where ISmartSensorService imports ISmartSensorServiceCallback using

import com.motorola.android.sensorgestures.ISmartSensorServiceCallback;

Both files have an interface with their own names, present in same dir & package and they are attached for reference.

But getting the following error when building.

motorola/frameworks/base/core/java/com/motorola/android/sensorgestures

/ISmartSensorService.aidl:23: couldn't find import for class

com.motorola.android.sensorgestures.ISmartSensorServiceCallback

make: *** [out/target/common/obj/JAVA_LIBRARIES

/com.motorola.android.frameworks_intermediates/src/java/com/motorola/android

/sensorgestures/ISmartSensorService.java] Error 1

make: *** Waiting for unfinished jobs....

Can anyone help to resolve this issue. Thanks in advance.

Posted by on

Ad

6 Suggested Answers

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of.(from cars to computers, handyman, and even drones)
click here to download the app (for users in the US for now) and get all the help you need.
Goodluck!

Posted on Jan 02, 2017

Ad
  • 111 Answers

SOURCE: Android Error

Hi there,

From the looks of it. your using the Android SDK right ?

have you declared layout_wilih attribute within the SDK? if not you must do that.

Also :

  1. Make sure that the SDK you are building with is the same version as the Android OS that you are running on.
  2. Make sure that you're calling setContentView() early in your onCreate() method. Calling other methods, such as setListAdapter() before calling setContentView() can sometimes create odd errors when Android tries to access screen elements that haven't been set before.
If you have any more problems. go over to http://code.google.com/android/ they will be able to help troubleshoot any more problems you may have !

Posted on Oct 29, 2008

Ad
leakim
  • 23 Answers

SOURCE: Android Market

I like:
- apps: imeem, power manager, twitterdroid, droidsans tweak lite, quote pro
- games: bonsai blast, coloroid, light racer

Posted on Dec 19, 2008

  • 1 Answer

SOURCE: startActivity fails to launch class called

I think your problem is in AndroidMainfest.xml

Eclipse did't add this line automaticly (for me):
<activity android:name=".ForwardTarget"/>

Posted on Mar 13, 2009

  • 10406 Answers

SOURCE: how i can add a name and number in to existing contact list?

Nice try! Find an upper-class student to give you one-on-one tutoring with your homework.

Posted on Dec 02, 2009

TimRiker
  • 15 Answers

SOURCE: android market wont allow me to download

I was able to get out of this state by doing a factory reset on the phone and setting up my Google account again. I had to reinstall all my applications and lost sms history etc. It seems to also work if you do a reset and setup your account on another phone, then the first phone starts working again. Of course you have to find another phone to reset for that to work.

I have not found a way on the web to reset my Google account when this happens. Logging in/out of GMail and Google Talk does not seem to trigger the reset.

Make a list of all the apps you have before you do the reset so you can reinstall them all.

Posted on Mar 08, 2010

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

I have been trying since Monday to have a question answered. I was chatting with one of your people on-line, and the System cut us off while he was looking up the answer. I couldn't reconnect to him....


Once you have configured all elements of an application's installation in your installer project (by specifying folder and file locations, file associations, registry actions, and so on), you must build the project into an installer package (.msi) file. Then, you can distribute the .msi file to users who want to install your application. If you change your installer project after building it, you must rebuild the installer project to test your changes.

To build an installer project into a package file
Make sure the Build type project property (on the Build Tab of the Project Properties dialog box) is set to either: Installer or Installer with Microsoft® Windows® Installer Loader.

2. In the Project Explorer window, select the installer project.

3. On the Build menu, click the option to Build your project. Note The Build menu may include options for building either your project or the entire solution.

1. In Windows Explorer, navigate to the .msi file you built with this project.

2. Right-click the .msi file name.

Note Depending on your system settings, the .msi file extension may not be displayed. You can still right-click the file name.

3. Select uninstall from the context menu.

4. In Visual Studio Installer, select the installer project from the Project Explorer.

5. On the Build menu, click the option to Build your project.

Visual Studio Installer builds your project and displays the message "Solution update succeeded" in the lower left corner of the development window when the build is complete.


Jun 10, 2011 | Computers & Internet

1 Answer

Code error U1300 scanner


This code pertains to communication from one computer to the next,they all are on a communication circuit (class II) & you have a short to ground somewhere.If a scan tool is able to communicate with the computer(and it is since you got a failure code) this code is intermitten.Get a good volt meter or scan tool & start at the ALDL (where the scanner plugs in).Inspect & check wiring as you keep an eye on the scanner or meter.

DTC Parameters
DTC U1300 will set if the EBTCM, PCM, or SDM detected the Class II circuit in the low state for too long. (Class II circuit shorted to ground) when:
• Condition exists for longer than 4 seconds for EBTCM, 2 seconds for PCM and SDM.
• Ignition is On.

DTC U1300 diagnostic runs continuously with ignition On.

DTC U1300 is a type C DTC.
Diagnostic Aids
If the scan tool can communicate with the EBTCM, PCM or SDM, then the Class II link is not currently shorted to ground.

Inspect the wiring harness for signs of chafing or broken insulation.

Important: The controller name won't be displayed until the scan tool initially received the correct controller ID over the link upon ignition On.

Important: The BCM CANNOT set U1300.

To locate an intermittent problem, use the scan tool to monitor any of the controllers on the Class II link located under DIAGNOSTIC CIRCUIT CHECK - - - CLASS II MESSAGE MONITOR with ignition On, engine Off. INACTIVE will be displayed on all controllers if the link is shorted to ground.


Hope this helps (remember to rate this answer).

Jan 14, 2011 | Chevrolet Impala Cars & Trucks

2 Answers

Dos commands in linux


go to http://www.pctechguide.com/articles/gettingDedicated12.htm you will find all the commands you need in there.

Jun 01, 2009 | Microsoft Computers & Internet

2 Answers

How can I create .jar file using jarmaker s/w.... (shahsani@ymail.com)


hi

Question How do I create a .JAR file?
Answer Java Archive (JAR) files allow developers to package many classes into a single file. JAR files also use compression, so this can make applets and applications smaller.
Creating a .JAR file is easy. Simple go to the directory your classes are stored in and type :-
jar -cf myfile.jar *.class If your application or applet uses packages, then you'll need to do things a little differently. Suppose your classes were in the package mycode.games.CoolGame - you'd change to the directory above mycode and type the following :- (Remember to use / on UNIX systems)
jar -cf myfile.jar .\mycode\games\CoolGame\*.class Now, if you have an existing JAR file, and want to extract it, you'd type the following
jar -xf myfile.jar Working with JAR files isn't that difficult, especially if you've used the unix 'tar' command before. If you're planning on packaging an applet for Internet Explorer, or an application for Microsoft's jview, you might also want to consider .CAB files.
'); document.write (''); document.write ('showle?'); //-->
hop i was helpfull good luck

Mar 14, 2009 | Microsoft Windows Vista Ultimate Edition

2 Answers

StartActivity fails to launch class called


This example is working try it.

Forwarding.java
----------------------

package com.example.android.apis.graphics;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class Forwarding extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.forwarding);
Button goButton = (Button)findViewById(R.id.go);
goButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
try {
Intent intent = new Intent();
intent.setClass(Forwarding.this, ForwardTarget.class);
startActivity(intent);
finish();
} catch(Exception e) {
System.out.println(e.getMessage());
}
}
});
}
}


ForwardTarget
--------------------

package com.example.android.apis.graphics;
import android.app.Activity;
import android.os.Bundle;
public class ForwardTarget extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);

setContentView(R.layout.forward_target);
}
}



AndroidManifest.xml
-----------------------------

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.android.apis.graphics"
android:versionCode="1"
android:versionName="1.0.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".Forwarding"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".ForwardTarget"/>
</application>
</manifest>


forwarding.xml
---------------------

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

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:padding="4dip"
android:gravity="center_horizontal" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_weight="0"
android:paddingBottom="4dip" android:text="forwarding" />
<Button android:id="@+id/go" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="go">
<requestFocus />
</Button>
</LinearLayout>

forward_target.xml
---------------------------

<?xml version="1.0" encoding="utf-8" ?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:padding="4dip"
android:gravity="center_horizontal" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_weight="0"
android:text="forward_target" />
</LinearLayout>


Nov 03, 2008 | Google Android

1 Answer

Can not be able to import a big video file through data cable


It generally happens when your phone memory is full. Try changing the default saving location of your phone as memory card or else move all your existing files to memory card . This option is there in the options tab. This will create space and then you can save.

Jun 07, 2008 | Motorola Mobility ROKR E6 Smartphone

Not finding what you are looking for?
Google Android Logo

Related Topics:

1,383 people viewed this question

Ask a Question

Usually answered in minutes!

Top Google Computers & Internet Experts

kakima

Level 3 Expert

102366 Answers

Sunil Pratap Singh
Sunil Pratap Singh

Level 2 Expert

249 Answers

David Payne
David Payne

Level 3 Expert

14161 Answers

Are you a Google Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...