NoClassDefFoundError in android without external jars - android

I only started on the android application today so I haven't added any jars. I am currently using sdk and adt r19 if it helps.
How the android manifest looks like
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
<activity
android:name=".LoginActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".UserHome"></activity>
</application>
How it happened:
btnLogin.setOnClickListener(new OnClickListener(){
public void onClick(View arg0){
Intent mapIntent = new Intent(LoginActivity.this, UserHome.class);
LoginActivity.this.startActivity(mapIntent);
Log.i("Intent", "Login to UserHome");
}
});
I am clueless to why this is happening.
Edit
Error log
07-13 06:14:06.844: E/AndroidRuntime(442): FATAL EXCEPTION: main
07-13 06:14:06.844: E/AndroidRuntime(442): java.lang.NoClassDefFoundError: com.srd.application.UserHome
07-13 06:14:06.844: E/AndroidRuntime(442): at com.srd.application.LoginActivity$1.onClick(LoginActivity.java:70)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.view.View.performClick(View.java:2408)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.view.View.onKeyUp(View.java:4121)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.widget.TextView.onKeyUp(TextView.java:4431)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.view.KeyEvent.dispatch(KeyEvent.java:1061)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.view.View.dispatchKeyEvent(View.java:3740)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:788)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:788)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:788)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:788)
07-13 06:14:06.844: E/AndroidRuntime(442): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:1667)
07-13 06:14:06.844: E/AndroidRuntime(442): at com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1102)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.app.Activity.dispatchKeyEvent(Activity.java:2063)
07-13 06:14:06.844: E/AndroidRuntime(442): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:1643)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.view.ViewRoot.deliverKeyEventToViewHierarchy(ViewRoot.java:2471)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.view.ViewRoot.handleFinishedEvent(ViewRoot.java:2441)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.view.ViewRoot.handleMessage(ViewRoot.java:1735)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.os.Handler.dispatchMessage(Handler.java:99)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.os.Looper.loop(Looper.java:123)
07-13 06:14:06.844: E/AndroidRuntime(442): at android.app.ActivityThread.main(ActivityThread.java:4627)
07-13 06:14:06.844: E/AndroidRuntime(442): at java.lang.reflect.Method.invokeNative(Native Method)
07-13 06:14:06.844: E/AndroidRuntime(442): at java.lang.reflect.Method.invoke(Method.java:521)
07-13 06:14:06.844: E/AndroidRuntime(442): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-13 06:14:06.844: E/AndroidRuntime(442): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-13 06:14:06.844: E/AndroidRuntime(442): at dalvik.system.NativeStart.main(Native Method)

Did you defined use-library tag in your application's manifest file?
<uses-library android:name="com.google.android.maps" />
like,
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
<uses-library android:name="com.google.android.maps" />
.
.
.
</application>
Also check for your application contains Google-api not Android.

Related

NoClassDefFound Exception when trying to use custom external widget

I am trying to implement Caldroid (https://github.com/roomorama/Caldroid) in my own project. I looked at the sample app given and it had the app separate from the project that defined the widget. I have done the same thing. The code compiles, but when I try to run the app I am getting a NoClassDefFound exception when trying to call the widget. Here is the code for setting up the calendar
private void calendarSetup(Bundle savedInstanceState) {
caldroidFragment = new CaldroidFragment();
if (savedInstanceState != null) {
caldroidFragment.restoreStatesFromKey(savedInstanceState,
"CALDROID_SAVED_STATE");
}
// If activity is created from fresh
else {
Bundle args = new Bundle();
Calendar cal = Calendar.getInstance();
args.putInt(CaldroidFragment.MONTH, cal.get(Calendar.MONTH) + 1);
args.putInt(CaldroidFragment.YEAR, cal.get(Calendar.YEAR));
args.putBoolean(CaldroidFragment.ENABLE_SWIPE, true);
args.putBoolean(CaldroidFragment.SIX_WEEKS_IN_CALENDAR, true);
caldroidFragment.setArguments(args);
}
// Attach to the activity
FragmentTransaction t = getActivity().getSupportFragmentManager()
.beginTransaction();
t.replace(R.id.calendar, caldroidFragment);
t.commit();
}
Here is the logcat
07-13 17:24:30.254: E/AndroidRuntime(2563): FATAL EXCEPTION: main
07-13 17:24:30.254: E/AndroidRuntime(2563): Process: com.example.app, PID: 2563
07-13 17:24:30.254: E/AndroidRuntime(2563): java.lang.NoClassDefFoundError: com.roomorama.caldroid.CaldroidFragment
07-13 17:24:30.254: E/AndroidRuntime(2563): at com.example.app.fragments.MyActivity.calendarSetup(app.java:123)
07-13 17:24:30.254: E/AndroidRuntime(2563): at com.example.app.fragments.MyActivity.onCreateView(app.java:68)
07-13 17:24:30.254: E/AndroidRuntime(2563): at android.support.v4.app.Fragment.performCreateView(Fragment.java:1500)
07-13 17:24:30.254: E/AndroidRuntime(2563): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:927)
07-13 17:24:30.254: E/AndroidRuntime(2563): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
07-13 17:24:30.254: E/AndroidRuntime(2563): at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
07-13 17:24:30.254: E/AndroidRuntime(2563): at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1467)
07-13 17:24:30.254: E/AndroidRuntime(2563): at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:570)
07-13 17:24:30.254: E/AndroidRuntime(2563): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1171)
07-13 17:24:30.254: E/AndroidRuntime(2563): at android.app.Activity.performStart(Activity.java:5241)
07-13 17:24:30.254: E/AndroidRuntime(2563): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2168)
07-13 17:24:30.254: E/AndroidRuntime(2563): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
07-13 17:24:30.254: E/AndroidRuntime(2563): at android.app.ActivityThread.access$800(ActivityThread.java:135)
07-13 17:24:30.254: E/AndroidRuntime(2563): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
07-13 17:24:30.254: E/AndroidRuntime(2563): at android.os.Handler.dispatchMessage(Handler.java:102)
07-13 17:24:30.254: E/AndroidRuntime(2563): at android.os.Looper.loop(Looper.java:136)
07-13 17:24:30.254: E/AndroidRuntime(2563): at android.app.ActivityThread.main(ActivityThread.java:5017)
07-13 17:24:30.254: E/AndroidRuntime(2563): at java.lang.reflect.Method.invokeNative(Native Method)
07-13 17:24:30.254: E/AndroidRuntime(2563): at java.lang.reflect.Method.invoke(Method.java:515)
07-13 17:24:30.254: E/AndroidRuntime(2563): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
07-13 17:24:30.254: E/AndroidRuntime(2563): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
07-13 17:24:30.254: E/AndroidRuntime(2563): at dalvik.system.NativeStart.main(Native Method)
The line at which the error is occurring is when I try to instantiate a CaldroidFragment.
I have added the external project to the build path of this current one as has been mentioned in other SO answers. However this doesn't seem to work.
Thanks.
I have added the external project to the build path of this current one as has been mentioned in other SO answers.
None of those answers are right. If you are manually manipulating the build path in Eclipse, you're probably doing it wrong.
For a third-party library that is a JAR, copy it into libs/, and you are done. Do not alter the build path manually.
For a third-party library that is an Android library project — as Caldroid is — you need to import the library into your Eclipse workspace, then attach the library to your app project via Project > Properties > Android. This is covered in greater detail in the documentation. Do not alter the build path manually.

Running a simple default android project on eclipse creates errors

I know that questions like this have been asked before, and I have been sifting through them. So here is my situation: I have a decent amount of experience using Java, specifically Eclipse. I just tried to run my hello world app without any modifications. And it couldn't start though emulator started normally.logcat shows following errors:
07-04 17:40:07.430: E/AndroidRuntime(862): FATAL EXCEPTION: main
07-04 17:40:07.430: E/AndroidRuntime(862): Process: com.trial.first, PID: 862
07-04 17:40:07.430: E/AndroidRuntime(862): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.trial.first/com.trial.first.MainActivity}: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.
07-04 17:40:07.430: E/AndroidRuntime(862): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197)
07-04 17:40:07.430: E/AndroidRuntime(862): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
07-04 17:40:07.430: E/AndroidRuntime(862): at android.app.ActivityThread.access$800(ActivityThread.java:138)
07-04 17:40:07.430: E/AndroidRuntime(862): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
07-04 17:40:07.430: E/AndroidRuntime(862): at android.os.Handler.dispatchMessage(Handler.java:102)
07-04 17:40:07.430: E/AndroidRuntime(862): at android.os.Looper.loop(Looper.java:136)
07-04 17:40:07.430: E/AndroidRuntime(862): at android.app.ActivityThread.main(ActivityThread.java:5026)
07-04 17:40:07.430: E/AndroidRuntime(862): at java.lang.reflect.Method.invokeNative(Native Method)
07-04 17:40:07.430: E/AndroidRuntime(862): at java.lang.reflect.Method.invoke(Method.java:515)
07-04 17:40:07.430: E/AndroidRuntime(862): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
07-04 17:40:07.430: E/AndroidRuntime(862): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
07-04 17:40:07.430: E/AndroidRuntime(862): at dalvik.system.NativeStart.main(Native Method)
07-04 17:40:07.430: E/AndroidRuntime(862): Caused by: android.util.AndroidRuntimeException: You cannot combine swipe dismissal and the action bar.
07-04 17:40:07.430: E/AndroidRuntime(862): at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:275)
07-04 17:40:07.430: E/AndroidRuntime(862): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2872)
07-04 17:40:07.430: E/AndroidRuntime(862): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3129)
07-04 17:40:07.430: E/AndroidRuntime(862): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:303)
07-04 17:40:07.430: E/AndroidRuntime(862): at android.app.Activity.setContentView(Activity.java:1930)
07-04 17:40:07.430: E/AndroidRuntime(862): at android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:217)
07-04 17:40:07.430: E/AndroidRuntime(862): at android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActivityDelegateICS.java:110)
07-04 17:40:07.430: E/AndroidRuntime(862): at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:77)
07-04 17:40:07.430: E/AndroidRuntime(862): at com.trial.first.MainActivity.onCreate(MainActivity.java:14)
07-04 17:40:07.430: E/AndroidRuntime(862): at android.app.Activity.performCreate(Activity.java:5242)
07-04 17:40:07.430: E/AndroidRuntime(862): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
07-04 17:40:07.430: E/AndroidRuntime(862): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2161)
07-04 17:40:07.430: E/AndroidRuntime(862): ... 11 more
07-04 17:40:11.080: I/Process(862): Sending signal. PID: 862 SIG: 9
manifest file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.trial.test"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name=".TestActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
Use the Android Virtual Device with API Level 19
In your Manifest.xml
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" /
Change android:targetSdkVesion to 19

Flashed 4.2.2 and now my Phonegap app won't run

I re-installed the entire SDK along w/ Eclipse, but no dice. I am absolutely clueless as to how to debug this. I should note that it works fine on my partner's machine, but he uses a 4.1.2 ROM on his phone. Here is the error log: http://pastebin.com/yx2XT8qE
07-13 16:45:23.581: W/dalvikvm(12926): Unable to resolve superclass of Lcom/ahhaproductions/SMSapp/SMSapp; (42)
07-13 16:45:23.581: W/dalvikvm(12926): Link of class 'Lcom/ahhaproductions/SMSapp/SMSapp;' failed
07-13 16:45:23.581: D/AndroidRuntime(12926): Shutting down VM
07-13 16:45:23.581: W/dalvikvm(12926): threadid=1: thread exiting with uncaught exception (group=0x40b6b930)
07-13 16:45:23.591: I/Process(12926): Sending signal. PID: 12926 SIG: 9
07-13 16:45:23.591: E/AndroidRuntime(12926): FATAL EXCEPTION: main
07-13 16:45:23.591: E/AndroidRuntime(12926): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.ahhaproductions.SMSapp/com.ahhaproductions.SMSapp.SMSapp}: java.lang.ClassNotFoundException: Didn't find class "com.ahhaproductions.SMSapp.SMSapp" on path: /mnt/asec/com.ahhaproductions.SMSapp-2/pkg.apk
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2224)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.app.ActivityThread.access$600(ActivityThread.java:153)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1247)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.os.Handler.dispatchMessage(Handler.java:99)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.os.Looper.loop(Looper.java:137)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.app.ActivityThread.main(ActivityThread.java:5227)
07-13 16:45:23.591: E/AndroidRuntime(12926): at java.lang.reflect.Method.invokeNative(Native Method)
07-13 16:45:23.591: E/AndroidRuntime(12926): at java.lang.reflect.Method.invoke(Method.java:511)
07-13 16:45:23.591: E/AndroidRuntime(12926): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
07-13 16:45:23.591: E/AndroidRuntime(12926): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
07-13 16:45:23.591: E/AndroidRuntime(12926): at dalvik.system.NativeStart.main(Native Method)
07-13 16:45:23.591: E/AndroidRuntime(12926): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.ahhaproductions.SMSapp.SMSapp" on path: /mnt/asec/com.ahhaproductions.SMSapp-2/pkg.apk
07-13 16:45:23.591: E/AndroidRuntime(12926): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
07-13 16:45:23.591: E/AndroidRuntime(12926): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
07-13 16:45:23.591: E/AndroidRuntime(12926): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
07-13 16:45:23.591: E/AndroidRuntime(12926): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2215)
07-13 16:45:23.591: E/AndroidRuntime(12926): ... 11 more
This seems insightful: Android java.lang.RuntimeException: Unable to instantiate activity ComponentInfo
I decided to right-click the project > Build Path > Configure Build Path
And here I changed the order:
Original Order:
SMSApp/src,
SMSApp/gen,
Android 4.2.2,
Android Private Libraries,
Android Dependencies
Fixed Order:
Android Private Libraries,
SMSApp/src,
SMSApp/gen,
Android 4.2.2,
Android Dependencies
Make sure to check all the ones w/ dependencies (or all of them)
I then cleaned the project as usual and ran it and it worked.
EDIT: Apparently the ordering doesn't matter according to Dpa99c's comment below and the link here.

restartLoader in the onStart method throw Exception

I am using the android compatibility package to use Loaders . when i init a loader or restart it in the onCreate method , it just wroks find but when i restart or init it in the onStart it throw an error , what I want know why " some times " when I initLoader in the onCreate of the activity and click some button that move me quickly to another activity before the loader bind the data to the UI ,and return back to the activity that previously init the Loader the loader doesnot load the data "nothing appears on the UI ?!!!! so i thought that move the initLoader to onStart but it throw an error
07-13 03:19:15.140: E/AndroidRuntime(23179): java.lang.RuntimeException: Unable to resume activity {biz.dot.khtmeh/biz.dot.khtmeh.ui.HomeScreen}: java.lang.IllegalStateException: There is already a listener registered
07-13 03:19:15.140: E/AndroidRuntime(23179): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2444)
07-13 03:19:15.140: E/AndroidRuntime(23179): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2472)
07-13 03:19:15.140: E/AndroidRuntime(23179): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1173)
07-13 03:19:15.140: E/AndroidRuntime(23179): at android.os.Handler.dispatchMessage(Handler.java:99)
07-13 03:19:15.140: E/AndroidRuntime(23179): at android.os.Looper.loop(Looper.java:137)
07-13 03:19:15.140: E/AndroidRuntime(23179): at android.app.ActivityThread.main(ActivityThread.java:4424)
07-13 03:19:15.140: E/AndroidRuntime(23179): at java.lang.reflect.Method.invokeNative(Native Method)
07-13 03:19:15.140: E/AndroidRuntime(23179): at java.lang.reflect.Method.invoke(Method.java:511)
07-13 03:19:15.140: E/AndroidRuntime(23179): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
07-13 03:19:15.140: E/AndroidRuntime(23179): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
07-13 03:19:15.140: E/AndroidRuntime(23179): at dalvik.system.NativeStart.main(Native Method)
07-13 03:19:15.140: E/AndroidRuntime(23179): Caused by: java.lang.IllegalStateException: There is already a listener registered
07-13 03:19:15.140: E/AndroidRuntime(23179): at android.support.v4.content.Loader.registerListener(Loader.java:130)
07-13 03:19:15.140: E/AndroidRuntime(23179): at android.support.v4.app.LoaderManagerImpl$LoaderInfo.start(LoaderManager.java:259)
07-13 03:19:15.140: E/AndroidRuntime(23179): at android.support.v4.app.LoaderManagerImpl.installLoader(LoaderManager.java:509)
07-13 03:19:15.140: E/AndroidRuntime(23179): at android.support.v4.app.LoaderManagerImpl.createAndInstallLoader(LoaderManager.java:496)
07-13 03:19:15.140: E/AndroidRuntime(23179): at android.support.v4.app.LoaderManagerImpl.restartLoader(LoaderManager.java:642)
It is likely you are re-using a loader more than once. Each time onCreateLoader(..) is called, you should be returning a new instance of a Loader<T>.

ListView Force Close

I am writing a Class that gets the File's in a folder, and displays the contents in a list view. the application force closes when i run this activity... I Debugged for a while, and searched through logcat, and I cannot find the problem...
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
File root = new File(Environment.getExternalStorageDirectory(), "Notes");
if(!root.exists()){
root.mkdirs();
}
setListAdapter(new ArrayAdapter<String>(this, R.layout.folders, buildDirArray(root)));
ListView lv = getListView();
lv.setTextFilterEnabled(true);
lv.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
// When clicked, show a toast with the TextView text
Toast.makeText(getApplicationContext(), ((TextView) view).getText(),
Toast.LENGTH_SHORT).show();
}
});
}
public String[] buildDirArray(File dir){
int temp = dir.list().length;
String[] tm = dir.list();
String[] tmp = new String[temp];
for(int i=1;i==dir.list().length;i++){
tmp[i]=tm[i];
}
return tmp;
}
ANY help would be greatly appreciated...
Logcat Data:
07-13 20:41:21.205: ERROR/Zygote(32): setreuid() failed. errno: 2
07-13 20:41:29.045: ERROR/Zygote(32): setreuid() failed. errno: 17
07-13 20:41:30.345: ERROR/BatteryService(58): usbOnlinePath not found
07-13 20:41:30.345: ERROR/BatteryService(58): batteryVoltagePath not found
07-13 20:41:30.345: ERROR/BatteryService(58): batteryTemperaturePath not found
07-13 20:41:30.364: ERROR/SurfaceFlinger(58): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
07-13 20:41:36.015: ERROR/EventHub(58): could not get driver version for /dev/input/mouse0, Not a typewriter
07-13 20:41:36.015: ERROR/EventHub(58): could not get driver version for /dev/input/mice, Not a typewriter
07-13 20:41:36.295: ERROR/System(58): Failure starting core service
07-13 20:41:36.295: ERROR/System(58): java.lang.SecurityException
07-13 20:41:36.295: ERROR/System(58): at android.os.BinderProxy.transact(Native Method)
07-13 20:41:36.295: ERROR/System(58): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
07-13 20:41:36.295: ERROR/System(58): at android.os.ServiceManager.addService(ServiceManager.java:72)
07-13 20:41:36.295: ERROR/System(58): at com.android.server.ServerThread.run(SystemServer.java:184)
07-13 20:41:37.315: ERROR/SoundPool(58): error loading /system/media/audio/ui/Effect_Tick.ogg
07-13 20:41:37.325: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressStandard.ogg
07-13 20:41:37.325: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressSpacebar.ogg
07-13 20:41:37.346: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressDelete.ogg
07-13 20:41:37.356: ERROR/SoundPool(58): error loading /system/media/audio/ui/KeypressReturn.ogg
07-13 20:41:40.414: ERROR/ThrottleService(58): Could not open GPS configuration file /etc/gps.conf
07-13 20:41:42.795: ERROR/logwrapper(147): executing /system/bin/tc failed: No such file or directory
07-13 20:41:42.945: ERROR/logwrapper(148): executing /system/bin/tc failed: No such file or directory
07-13 20:41:43.065: ERROR/logwrapper(149): executing /system/bin/tc failed: No such file or directory
07-13 20:41:54.824: ERROR/HierarchicalStateMachine(58): TetherMaster - unhandledMessage: msg.what=3
07-13 20:43:11.984: ERROR/AndEngine(282): You have to add
07-13 20:43:11.984: ERROR/AndEngine(282): <uses-permission android:name="android.permission.WAKE_LOCK"/>
07-13 20:43:11.984: ERROR/AndEngine(282): to your AndroidManifest.xml !
07-13 20:43:11.984: ERROR/AndEngine(282): java.lang.SecurityException: Neither user 10033 nor current process has android.permission.WAKE_LOCK.
07-13 20:43:11.984: ERROR/AndEngine(282): at android.os.Parcel.readException(Parcel.java:1247)
07-13 20:43:11.984: ERROR/AndEngine(282): at android.os.Parcel.readException(Parcel.java:1235)
07-13 20:43:11.984: ERROR/AndEngine(282): at android.os.IPowerManager$Stub$Proxy.acquireWakeLock(IPowerManager.java:236)
07-13 20:43:11.984: ERROR/AndEngine(282): at android.os.PowerManager$WakeLock.acquire(PowerManager.java:250)
07-13 20:43:11.984: ERROR/AndEngine(282): at org.anddev.andengine.ui.activity.BaseGameActivity.acquireWakeLock(BaseGameActivity.java:202)
07-13 20:43:11.984: ERROR/AndEngine(282): at org.anddev.andengine.ui.activity.BaseGameActivity.doResume(BaseGameActivity.java:165)
07-13 20:43:11.984: ERROR/AndEngine(282): at org.anddev.andengine.ui.activity.BaseGameActivity.onWindowFocusChanged(BaseGameActivity.java:82)
07-13 20:43:11.984: ERROR/AndEngine(282): at com.android.internal.policy.impl.PhoneWindow$DecorView.onWindowFocusChanged(PhoneWindow.java:1981)
07-13 20:43:11.984: ERROR/AndEngine(282): at android.view.View.dispatchWindowFocusChanged(View.java:3788)
07-13 20:43:11.984: ERROR/AndEngine(282): at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:658)
07-13 20:43:11.984: ERROR/AndEngine(282): at android.view.ViewRoot.handleMessage(ViewRoot.java:1921)
07-13 20:43:11.984: ERROR/AndEngine(282): at android.os.Handler.dispatchMessage(Handler.java:99)
07-13 20:43:11.984: ERROR/AndEngine(282): at android.os.Looper.loop(Looper.java:123)
07-13 20:43:11.984: ERROR/AndEngine(282): at android.app.ActivityThread.main(ActivityThread.java:4627)
07-13 20:43:11.984: ERROR/AndEngine(282): at java.lang.reflect.Method.invokeNative(Native Method)
07-13 20:43:11.984: ERROR/AndEngine(282): at java.lang.reflect.Method.invoke(Method.java:521)
07-13 20:43:11.984: ERROR/AndEngine(282): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-13 20:43:11.984: ERROR/AndEngine(282): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-13 20:43:11.984: ERROR/AndEngine(282): at dalvik.system.NativeStart.main(Native Method)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): FATAL EXCEPTION: main
07-13 20:43:20.614: ERROR/AndroidRuntime(282): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.momentum.xpad/com.momentum.xpad.folders}; have you declared this activity in your AndroidManifest.xml?
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1404)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at android.app.Activity.startActivityForResult(Activity.java:2817)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at android.app.Activity.startActivity(Activity.java:2923)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at com.momentum.xpad.main.onOptionsItemSelected(main.java:69)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at android.app.Activity.onMenuItemSelected(Activity.java:2195)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:730)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:143)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:855)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:532)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:122)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at android.view.View$PerformClick.run(View.java:8816)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at android.os.Handler.handleCallback(Handler.java:587)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at android.os.Handler.dispatchMessage(Handler.java:92)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at android.os.Looper.loop(Looper.java:123)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at android.app.ActivityThread.main(ActivityThread.java:4627)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at java.lang.reflect.Method.invokeNative(Native Method)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at java.lang.reflect.Method.invoke(Method.java:521)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-13 20:43:20.614: ERROR/AndroidRuntime(282): at dalvik.system.NativeStart.main(Native Method)
The log says that:
You have to add <uses-permission android:name="android.permission.WAKE_LOCK"/> to your AndroidManifest.xml !
Oh some lines further down there is an other error in the log:
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.momentum.xpad/com.momentum.xpad.folders}; have you declared this activity in your AndroidManifest.xml?
android.content.ActivityNotFoundException: Unable to find explicit activity class {com.momentum.xpad/com.momentum.xpad.folders}; have you declared this activity in your AndroidManifest.xml?
Have you declared it in your Manifest?

Categories

Resources