question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nearby Activity Floating Action buttons

See original GitHub issue

Summary: 1 ) I’m using directNearbyUploadsNew branch By going to NearbyActivity i got the application stopped message it said :

Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable()' on a null object reference

2 ) also after fixing that , and by choosing a marker from the map there no icons inside [fab_galery,fab_camera]

Steps to reproduce:

  • Enter to NearbyActivity
  • The app will crash

System logs: Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable()' on a null object reference

Device and Android version: Galaxy note 3 : android 5 [ sdk 21 ]

Commons app version: 2.6.7-debug-directNearbyUploadsNews ~1e83d67c Screen-shots: 29134732_2105593989468876_763814720_n

Would you like to work on the issue?

1 ) i worked on it , and after searching i find that this error is because : because of android:backgroundTint="@color/button_blue" which should be app:backgroundTint="@color/button_blue" 2) and the second one . i solved it by adding android:src="....." too , but in 4.4 and below Android versions it causes a crash. so i changed the Vector Drawable to a png and it work

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
wailbaboucommented, Mar 20, 2018

done

1reaction
neslihanturancommented, Mar 20, 2018

Also, it is great someone is testing our new branch since there can be several bugs waiting to be discovered. Thanks for your interest @wailbabou 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Start Activity via Floating Action Button [closed] - Stack Overflow
Show activity on this post. FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); fab.setOnClickListener(new View.
Read more >
Add a Floating Action Button - Android Developers
A floating action button (FAB) is a circular button that triggers the primary action in your app's UI. This page shows you how...
Read more >
Floating Action Button (FAB) in Android with Example
Floating action buttons are implemented in the app's UI for primary actions (promoted actions) for the users and the actions under the floating ......
Read more >
Android Floating Action Button Example Tutorial - DigitalOcean
A FloatingActionButton is placed within a CoordinatorLayout. A CoordinatorLayout helps facilitate interactions between views contained within it ...
Read more >
Buttons: floating action button - Material Design
A floating action button (FAB) represents the primary action of a screen. Updated FABs have a boxier style with smaller corner radius, new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found