Comments (4)
Resolved in c884c58.
In your custom slide, you need to add following lines to ask for permissions.
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
neededPermissions = new String[]{Manifest.permission.CAMERA, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION};
}
from material-intro-screen.
@bezmian please do not make neededPermissions protected / public. It is more clean to add method for this:
registerNeededPermission(String permission)
registerNeededPermisions(Collection<String> permissions)
from material-intro-screen.
@radzio I have resolved it in the way you said. #16
To add permission in custom slide you need to add following lines:
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
registerNeededPermissions(new String[]{Manifest.permission.CAMERA, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION});
registerPossiblePermissions(new String[]{Manifest.permission.CAMERA, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION});
}
from material-intro-screen.
registerNeededPermissions()
is not a member of SlideFragment
. Should I open a new issue for this?
The commit in question that fixed this (f5e87eb) is missing from the repository.
from material-intro-screen.
Related Issues (20)
- Change text Color and size HOT 2
- is it possible to control transition page speed? how i can to do that.. HOT 1
- Not compatible with AndroidX HOT 11
- Compilation failed to complete HOT 1
- How to add background as image instead of color HOT 1
- Background not working HOT 3
- Drawable Background Support HOT 1
- Make library androidx compatible my changing the package of CustomViewPager HOT 3
- How to enter a string from a strings.xml file? HOT 1
- permission button - internationalization HOT 1
- Color transition HOT 1
- add the library to my project HOT 3
- Auto Slide HOT 1
- Compatibility issues reported
- This intro screen every time I launch the app. HOT 1
- Compatibility library source does not match the bytecode for class android studio
- Dependency getting error HOT 1
- Unavailable : JCenter shutting down HOT 1
- PagerAdapter.setViewPagerObserver
- Meterial_intro_screen
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-intro-screen.