armcha / armcha/Space-Navigation-View

why ? No reason NullPointer: Your space item count must be greater than 1 , your current items count isa : 0

Open
#75 1 comment 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.