I have downloaded FBReaderJ project from gitHub and struggling to make it run on my emulator.I get the folloing error in my logcat:
04-27 16:40:36.750: WARN/dalvikvm(200): Exception Ljava/lang/UnsatisfiedLinkError; thrown during Lorg/vimgadgets/linebreak/LineBreaker;.
04-27 16:40:36.750: WARN/dalvikvm(200): threadid=19: thread exiting with uncaught exception (group=0x4001b188)
04-27 16:40:36.801: WARN/System.err(200): java.lang.ExceptionInInitializerError
04-27 16:40:36.801: WARN/System.err(200): at org.geometerplus.zlibrary.text.view.ZLTextParagraphCursor.fill(ZLTextParagraphCursor.java:195)
04-27 16:40:36.801: WARN/System.err(200): at org.geometerplus.zlibrary.text.view.ZLTextParagraphCursor.(ZLTextParagraphCursor.java:178)
04-27 16:40:36.809: WARN/System.err(200): at org.geometerplus.zlibrary.text.view.ZLTextParagraphCursor.cursor(ZLTextParagraphCursor.java:184)
04-27 16:40:36.809: WARN/System.err(200): at org.geometerplus.zlibrary.text.view.ZLTextView.setModel(ZLTextView.java:74)
04-27 16:40:36.809: WARN/System.err(200): at org.geometerplus.fbreader.fbreader.FBView.setModel(FBView.java:47)
04-27 16:40:36.809: WARN/System.err(200): at org.geometerplus.fbreader.fbreader.FBReaderApp.openBookInternal(FBReaderApp.java:231)
04-27 16:40:36.809: WARN/System.err(200): at org.geometerplus.fbreader.fbreader.FBReaderApp$1.run(FBReaderApp.java:145)
04-27 16:40:36.809: WARN/System.err(200): at org.geometerplus.android.util.UIUtil$2.run(UIUtil.java:78)
04-27 16:40:36.809: WARN/System.err(200): at java.lang.Thread.run(Thread.java:1096)
04-27 16:40:36.809: WARN/System.err(200): Caused by: java.lang.UnsatisfiedLinkError: Library LineBreak not found
04-27 16:40:36.809: WARN/System.err(200): at java.lang.Runtime.loadLibrary(Runtime.java:489)
04-27 16:40:36.809: WARN/System.err(200): at java.lang.System.loadLibrary(System.java:557)
04-27 16:40:36.809: WARN/System.err(200): at org.vimgadgets.linebreak.LineBreaker.(LineBreaker.java:5)
I have installed and successfully compiled the NDK.
Please help!!!!
it shows that u are not having JNI folder in your project & u may not have the native library file("example.so") of it. (.so) is the extension of library file. to build this .so file u must need android NDK & a software called "cygwin" which helps to build the native file from JNI folder
Related
I am completely lost with this one. My app works perfectly on API 2.1 on my handset and through the emulator.
I have just run it through a 2.2 emulator and I am getting a crash and this error:
04-27 20:29:41.293: ERROR/AndroidRuntime(341): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ebp/com.ebp.ebpMainMenu}: android.view.InflateException: Binary XML file line #2: Error inflating class android.widget.LinearLayout
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.os.Handler.dispatchMessage(Handler.java:99)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.os.Looper.loop(Looper.java:123)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.app.ActivityThread.main(ActivityThread.java:4363)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at java.lang.reflect.Method.invokeNative(Native Method)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at java.lang.reflect.Method.invoke(Method.java:521)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at dalvik.system.NativeStart.main(Native Method)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class android.widget.LinearLayout
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.view.LayoutInflater.createView(LayoutInflater.java:513)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.view.LayoutInflater.inflate(LayoutInflater.java:385)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.app.Activity.setContentView(Activity.java:1622)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at com.ebp.ebpMainMenu.onCreate(ebpMainMenu.java:58)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): ... 11 more
04-27 20:29:41.293: ERROR/AndroidRuntime(341): Caused by: java.lang.reflect.InvocationTargetException
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.widget.LinearLayout.<init>(LinearLayout.java:92)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at java.lang.reflect.Constructor.constructNative(Native Method)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.view.LayoutInflater.createView(LayoutInflater.java:500)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): ... 21 more
04-27 20:29:41.293: ERROR/AndroidRuntime(341): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.graphics.Bitmap.nativeCreate(Native Method)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.graphics.Bitmap.createBitmap(Bitmap.java:468)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.graphics.Bitmap.createBitmap(Bitmap.java:435)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:340)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:488)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:462)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:323)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.content.res.Resources.loadDrawable(Resources.java:1705)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.content.res.TypedArray.getDrawable(TypedArray.java:548)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.view.View.<init>(View.java:1850)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.view.View.<init>(View.java:1799)
04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.view.ViewGroup.<init>(ViewGroup.java:284)
In the main.xml file, here is line #2
<LinearLayout
android:id="#+id/linearLayout3"
android:background="#drawable/mainbackground"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical">
and here is main line 58:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget may be the real culprit here. Try using smaller image to see if it is a memory-related issue.
Check out these links for examples of similar issues: java.lang.OutOfMemoryError: bitmap size exceeds VM budget - android - how many images?
OutOfMemory exception when loading bitmap from external storage
I'm having an issue with the actionbar tabs and getting the master/detail layout to work.
I have the a master/detail working but I am now adding tabs, so I can select a different layout. But, it seems to crash with the error:
04-27 13:00:45.805: E/AndroidRuntime(5161): android.view.InflateException: Binary XML file line #24: Error inflating class fragment
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
04-27 13:00:45.805: E/AndroidRuntime(5161): at com.example.example.masterdetail_tabs.Tab1Fragment.onCreateView(Tab1Fragment.java:17)
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.app.Fragment.performCreateView(Fragment.java:1695)
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:885)
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.app.FragmentManagerImpl.attachFragment(FragmentManager.java:1255)
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.app.BackStackRecord.run(BackStackRecord.java:672)
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1435)
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.app.FragmentManagerImpl$1.run(FragmentManager.java:441)
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.os.Handler.handleCallback(Handler.java:725)
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.os.Handler.dispatchMessage(Handler.java:92)
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.os.Looper.loop(Looper.java:137)
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.app.ActivityThread.main(ActivityThread.java:5041)
04-27 13:00:45.805: E/AndroidRuntime(5161): at java.lang.reflect.Method.invokeNative(Native Method)
04-27 13:00:45.805: E/AndroidRuntime(5161): at java.lang.reflect.Method.invoke(Method.java:511)
04-27 13:00:45.805: E/AndroidRuntime(5161): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
04-27 13:00:45.805: E/AndroidRuntime(5161): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
04-27 13:00:45.805: E/AndroidRuntime(5161): at dalvik.system.NativeStart.main(Native Method)
04-27 13:00:45.805: E/AndroidRuntime(5161): Caused by: java.lang.IllegalArgumentException: Binary XML file line #24: Duplicate id 0x7f060001, tag null, or parent id 0x0 with another fragment for com.example.example.masterdetail_tabs.ItemListFragment
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:285)
04-27 13:00:45.805: E/AndroidRuntime(5161): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676)
I have created a simple application to recreate the issue (don't know if it's an issue but I'm using actionbarsherlock in the real app)
https://github.com/abidk/android_masterdetail_tab_issue
Does anyone have any ideas what I am doing wrong?
If anyone is wondering the solution was to replace the fragment in the *_twopane.xml with a framelayout and then programatically adding the list component.
getFragmentManager().beginTransaction()
.replace(R.id.item_list, new ItemListFragment())
.commit();
I am developing an Android application which involves displaying of Google Maps using fragments.
Here are the steps to reproduce the crash:
Start the application
Open the activity using fragments
Connect Data cable
Switch USB mode to Mass storage
Resume the application
Application gets crashed
the Log for the crash is as follows:
04-27 18:45:10.289: E/AndroidRuntime(19982): FATAL EXCEPTION: main
04-27 18:45:10.289: E/AndroidRuntime(19982): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.octanetech.cortes/com.octanetech.cortes.MapActivity}: java.lang.NullPointerException
04-27 18:45:10.289: E/AndroidRuntime(19982): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
04-27 18:45:10.289: E/AndroidRuntime(19982): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
04-27 18:45:10.289: E/AndroidRuntime(19982): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
04-27 18:45:10.289: E/AndroidRuntime(19982): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
04-27 18:45:10.289: E/AndroidRuntime(19982): at android.os.Handler.dispatchMessage(Handler.java:99)
04-27 18:45:10.289: E/AndroidRuntime(19982): at android.os.Looper.loop(Looper.java:123)
04-27 18:45:10.289: E/AndroidRuntime(19982): at android.app.ActivityThread.main(ActivityThread.java:4627)
04-27 18:45:10.289: E/AndroidRuntime(19982): at java.lang.reflect.Method.invokeNative(Native Method)
04-27 18:45:10.289: E/AndroidRuntime(19982): at java.lang.reflect.Method.invoke(Method.java:521)
04-27 18:45:10.289: E/AndroidRuntime(19982): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)
04-27 18:45:10.289: E/AndroidRuntime(19982): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
04-27 18:45:10.289: E/AndroidRuntime(19982): at dalvik.system.NativeStart.main(Native Method)
04-27 18:45:10.289: E/AndroidRuntime(19982): Caused by: java.lang.NullPointerException
04-27 18:45:10.289: E/AndroidRuntime(19982): at com.octanetech.cortes.MapActivity.displayPlaces(MapActivity.java:644)
04-27 18:45:10.289: E/AndroidRuntime(19982): at com.octanetech.cortes.MapActivity.onCreate(MapActivity.java:158)
04-27 18:45:10.289: E/AndroidRuntime(19982): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-27 18:45:10.289: E/AndroidRuntime(19982): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
04-27 18:45:10.289: E/AndroidRuntime(19982): ... 11 more
04-27 18:45:10.309: W/ActivityManager(2466): Force finishing activity com.octanetech.cortes/.MapActivity
I am using Samsung Galaxy S device.
I am using static variables as global variables. I switched to this as well, but nothing helped. The entire class in which global variables are stored is getting killed. The interesting thing to note is that when I am following the same steps in the activities where there are no fragments, then my application is not getting crashed.
Try saving your fragment state.
This can be done using "onSaveInstance" of the fragment
Also you can try setRetainInstance(true) for fragments.
When you toggle between USB modes, sometimes the Activity is recreated and hence the fragment.
The jdom library is there and i have removed and added it again and again to the build path. And, i have cleaned the project as well many times. But still iam getting this error:
04-27 10:51:27.867: W/ActivityThread(530): Application com.pkg.src.nhs.glos is waiting for the debugger on port 8100...
04-27 10:51:27.936: I/System.out(530): Sending WAIT chunk
04-27 10:51:29.396: I/dalvikvm(530): Debugger is active
04-27 10:51:29.736: I/System.out(530): Debugger has connected
04-27 10:51:29.746: I/System.out(530): waiting for debugger to settle...
04-27 10:51:29.996: I/System.out(530): waiting for debugger to settle...
04-27 10:51:30.262: I/System.out(530): waiting for debugger to settle...
04-27 10:51:30.479: I/System.out(530): waiting for debugger to settle...
04-27 10:51:30.689: I/System.out(530): waiting for debugger to settle...
04-27 10:51:30.896: I/System.out(530): waiting for debugger to settle...
04-27 10:51:43.786: D/dalvikvm(553): GC freed 683 objects / 60040 bytes in 110ms
04-27 10:51:49.396: W/dalvikvm(553): VFY: unable to find class referenced in signature (Lcom/androidquery/AQuery;)
04-27 10:51:49.576: W/dalvikvm(553): VFY: unable to find class referenced in signature (Lcom/androidquery/util/XmlDom;)
04-27 10:51:49.646: W/dalvikvm(553): VFY: unable to find class referenced in signature (Lcom/androidquery/callback/AjaxStatus;)
04-27 10:51:49.646: I/dalvikvm(553): Could not find method com.androidquery.util.XmlDom.tags, referenced from method com.pkg.src.nhs.glos.MainActivity.setImageCallBack
04-27 10:51:49.646: W/dalvikvm(553): VFY: unable to resolve virtual method 80: Lcom/androidquery/util/XmlDom;.tags (Ljava/lang/String;)Ljava/util/List;
04-27 10:51:49.646: D/dalvikvm(553): VFY: replacing opcode 0x6e at 0x0013
04-27 10:51:49.646: D/dalvikvm(553): Making a copy of Lcom/pkg/src/nhs/glos/MainActivity;.setImageCallBack code (200 bytes)
04-27 10:51:50.126: E/dalvikvm(553): Could not find class 'org.jdom.input.SAXBuilder', referenced from method com.pkg.src.nhs.glos.MainActivity$SetImageTask.doInBackground
04-27 10:51:50.126: W/dalvikvm(553): VFY: unable to resolve new-instance 166 (Lorg/jdom/input/SAXBuilder;) in Lcom/pkg/src/nhs/glos/MainActivity$SetImageTask;
04-27 10:51:50.126: D/dalvikvm(553): VFY: replacing opcode 0x22 at 0x0009
04-27 10:51:50.126: D/dalvikvm(553): Making a copy of Lcom/pkg/src/nhs/glos/MainActivity$SetImageTask;.doInBackground code (205 bytes)
04-27 10:51:50.736: W/dalvikvm(553): threadid=15: thread exiting with uncaught exception (group=0x4001b188)
04-27 10:51:50.746: E/AndroidRuntime(553): Uncaught handler: thread AsyncTask #1 exiting due to uncaught exception
04-27 10:51:50.846: E/AndroidRuntime(553): java.lang.RuntimeException: An error occured while executing doInBackground()
04-27 10:51:50.846: E/AndroidRuntime(553): at android.os.AsyncTask$3.done(AsyncTask.java:200)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.lang.Thread.run(Thread.java:1096)
04-27 10:51:50.846: E/AndroidRuntime(553): Caused by: java.lang.NoClassDefFoundError: org.jdom.input.SAXBuilder
04-27 10:51:50.846: E/AndroidRuntime(553): at com.pkg.src.nhs.glos.MainActivity$SetImageTask.doInBackground(MainActivity.java:100)
04-27 10:51:50.846: E/AndroidRuntime(553): at com.pkg.src.nhs.glos.MainActivity$SetImageTask.doInBackground(MainActivity.java:1)
04-27 10:51:50.846: E/AndroidRuntime(553): at android.os.AsyncTask$2.call(AsyncTask.java:185)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
04-27 10:51:50.846: E/AndroidRuntime(553): ... 4 more
04-27 10:51:50.941: I/dalvikvm(553): threadid=7: reacting to signal 3
04-27 10:51:50.941: E/dalvikvm(553): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
04-27 10:52:02.038: I/Process(553): Sending signal. PID: 553 SIG: 9
Check if the jdom library is checked in the Order and Export Tab of your build path Settings.
If it is not check it, do a clean and retry to run your application.
In Android Studio it must automatically added the jar files which you added to the "libs" folder in your project,but sometimes it doesn't do that.
So you have to go to "Project Structure" = ctrl+alt+shift+S for Windows users.
Then click "app" at the left side of the panel.
Then click Dependencies tab.
Then click on (+) -> jar dependencies.
Then in the libs folder choose your jar file.
Then click OK.
I have this intent in the manifest file:
<activity
android:name=".ProductStrategyActivity"
android:label="#string/product_strategy_header" />
I get an Exception when I try to do this:
Intent myIntent = new Intent(LearnActivity.this, ProductStrategyActivity.class);
LearnActivity.this.startActivity(myIntent);
and the class is in a package that is in my src/com/app_name/content/ directory.
Could the problem be that I need to specify that directory in the manifest file?
Sorry I made a mistake in the exception. Here is the stack trace:
04-27 02:07:23.221: E/AndroidRuntime(1234): FATAL EXCEPTION: main
04-27 02:07:23.221: E/AndroidRuntime(1234): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.problemio/com.problemio.content.ProductStrategyActivity}; have you declared this activity in your AndroidManifest.xml?
04-27 02:07:23.221: E/AndroidRuntime(1234): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1508)
04-27 02:07:23.221: E/AndroidRuntime(1234): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1384)
04-27 02:07:23.221: E/AndroidRuntime(1234): at android.app.Activity.startActivityForResult(Activity.java:3190)
04-27 02:07:23.221: E/AndroidRuntime(1234): at android.app.Activity.startActivity(Activity.java:3297)
04-27 02:07:23.221: E/AndroidRuntime(1234): at com.problemio.LearnActivity$3.onClick(LearnActivity.java:113)
04-27 02:07:23.221: E/AndroidRuntime(1234): at android.view.View.performClick(View.java:3511)
04-27 02:07:23.221: E/AndroidRuntime(1234): at android.view.View$PerformClick.run(View.java:14105)
04-27 02:07:23.221: E/AndroidRuntime(1234): at android.os.Handler.handleCallback(Handler.java:605)
04-27 02:07:23.221: E/AndroidRuntime(1234): at android.os.Handler.dispatchMessage(Handler.java:92)
04-27 02:07:23.221: E/AndroidRuntime(1234): at android.os.Looper.loop(Looper.java:137)
04-27 02:07:23.221: E/AndroidRuntime(1234): at android.app.ActivityThread.main(ActivityThread.java:4424)
04-27 02:07:23.221: E/AndroidRuntime(1234): at java.lang.reflect.Method.invokeNative(Native Method)
04-27 02:07:23.221: E/AndroidRuntime(1234): at java.lang.reflect.Method.invoke(Method.java:511)
04-27 02:07:23.221: E/AndroidRuntime(1234): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
04-27 02:07:23.221: E/AndroidRuntime(1234): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
04-27 02:07:23.221: E/AndroidRuntime(1234): at dalvik.system.NativeStart.main(Native Method)
That line LearnActivity.java:113 is where I tell the current intent to go to the new one.
Thanks!
.ProductStrategyActivity
replace the above word in your manifeast file with below
.content.directory.ProductStrategyActivity
The android:name in the Manifest entry can either be the absolute package name or a relative namespace relative to the namespace of the application.
But if there is a problem with the Manifest entry, you wont get an NPE. Something else must be wrong.