armcha / armcha/Space-Navigation-View
why ? No reason NullPointer: Your space item count must be greater than 1 , your current items count isa : 0
- Dominant language
- Java
- Stars
- 2k
- Forks
- 376
- PR merge metrics
- No merged PRs in 30d
Description
how to fix intent ?
`spaceNavigationView.setSpaceOnClickListener(new SpaceOnClickListener() {
Fragment currentFragment = getSupportFragmentManager().findFragmentById(R.id.content);
@Override
public void onCentreButtonClick() {
Log.d("onCentreButtonClick ", "onCentreButtonClick");
//spaceNavigationView.shouldShowFullBadgeText(true);
Intent intent = new Intent(MainActivity.this,Emergency.class);
startActivity(intent);
}
`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the MainActivity code around setSpaceOnClickListener and the Intent targeting Emergency, then capture the complete NullPointerException stack trace and inspect the SpaceNavigationView setup. Done means identifying the failing call, explaining the space item-count message, and verifying the corrected usage with the shown navigation flow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100