[Solved] Determine why my android app crashes upon opening [duplicate]

first of all change this line of code: mPagerAdapter = new ScreenSlidePager.ScreenSlidePagerAdapter(getSupportFragmentManager()); to this: mPagerAdapter = new ScreenSlidePagerAdapter(getSupportFragmentManager()); it seems you copied your adapter from another page change place you are defining your pager: private ViewPager mPager; above the onCreate 8 solved Determine why my android app crashes upon opening [duplicate]

[Solved] App stop working

Caused by: java.lang.NoSuchMethodException: <init> [class android.content.Context, interface android.util.AttributeSet] 01-19 10:43:19.400: E/AndroidRuntime(1482): at java.lang.Class.getConstructorOrMethod(Class.java:472) You are not providing all of the constructors required for a custom view. Specifically, add this constructor. Read the documentation and tutorials for how to use the attribute set: public JustifiedTextView(Context context, AttributeSet attrs){ super(context, attrs); this.setWebChromeClient(new WebChromeClient() { }); } 2 … Read more

[Solved] LogCat entry meaning 2

java.lang.NullPointerException at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:394) ArrayAdapter<Comment> adapter = new ArrayAdapter<Comment>(this, android.R.layout.simple_list_item_1, values); values has at least one null object in it, which you cannot have. You can read through the source code and see this happens here: T item = getItem(position); if (item instanceof CharSequence) { text.setText((CharSequence)item); } else { text.setText(item.toString()); // Line 394, when item is … Read more