Questions tagged [android]

Android is Google's mobile operating system, used for programming or developing digital devices (Smartphones, Tablets, Automobiles, TVs, Wear, Glass, IoT). For topics related to Android, use Android-specific tags such as android-intent, android-activity, android-adapter, etc. For questions other than development or programming, but related to the Android framework, use this link: http://android.stackexchange.com.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

How to highlight an item in recyclerview

There is a recyclerview, I need to select and keep the selection of the last clicked items. When clicked, the bottom sheet opens. I found solutions like holder.view.setOnClickListener {holder.view....
0
votes
0answers
7 views

Camera opens 2 times and crashes

I am just new here because I actually need help with an error in my CamActivity.java. When I open the app, the camera immediately opens, I click the button, the camera opens again. But as soon as I ...
0
votes
0answers
8 views

Android - show launcher chooser dialog on demand

I would like to show the launcher chooser dialog only on a custom button click and disable it by default. To disable it by default I added an activity alias disabled component inside my app manifest. ...
-3
votes
0answers
12 views

java.lang.RuntimeException: Unable to start activity ComponentInfo: java.lang.NullPointerException: Attempt to invoke

if ((ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) && (ContextCompat....
0
votes
1answer
9 views

Bottomsheet in Fragment throwing null pointer exception

I am using Tablayout with Viewpager. I have tried calling the bottomsheetbehavior in OnCreateview also but it didn't work. Does bottomsheet only work with the activities? What I have to do in order to ...
0
votes
0answers
4 views

Android - removing Object from pageView results in blank space

I'm about to program an app for controlling some LED-based gadgets around the house. To have multiply devices on one activity I used a page view with a view adapter to be able to select between the ...
1
vote
1answer
12 views

How does Discord or Telegram send Push Notifications to channels on Android?

So, I'm working on a chat app and I am having trouble sending notifications using FCM to chat groups or channels. There are 2 options I tried using: Device groups: This is perfect but, The docs says ...
2
votes
0answers
6 views

How To Migrate existing Database From greendao to Room database in android

My current Database version is 29 But When migrate to Room greendao schema version is not change in gradle
1
vote
1answer
9 views

Android WebView not loading cached website when internet is off

I am trying to load the cached version of the website when mobile internet is off. But I am only getting a white screen. Here is my code. binding.webView.getSettings().setJavaScriptEnabled(true); ...
3
votes
0answers
8 views

how to create vertical slider in android by @react-native-community/slider?

As the title and picture, how to create vertical slider in android by @react-native-community/slider? I try to create a slider like: <Slider vertical={true}/> but it's not working.
0
votes
0answers
12 views

I want an arduino to detect via bluetooth whether a particular app on a smartphone has sent a particular notification

I need to light up an LED to alert a user if a particular app sends a notfication to the device, I cannot connect the arduino to the internet, so it has to be through bluetooth, if there's already an ...
2
votes
0answers
13 views

How and what do need to do to use CAN on android?

I need to know what software or programs and hardware I need to effectively communicate with CANbus and my usb2can through android phone. Everything I read or try doesn't seem to be legit or doesnt ...
2
votes
0answers
11 views

Is there a better way to align the text in different buttons in Android?

It is my firs time that I try to design a good UI instead of debugging apps, so I am new to this type of stuff. I have three buttons under each other and the text should be aligned correctly. The way ...
1
vote
1answer
18 views

How do I assign a input number as a variable in Android Studio?

I want to make an random player picker app so first I need to take the number of players playing the game from the user which will be my variable and then my app will choose a random number out of 1 ...
3
votes
0answers
9 views

How to draw a navigation line on a mapbox map in react-native?

I am trying to get navigation directions using mapbox-sdk for react-native from npm package: "@mapbox/mapbox-sdk": "^0.11.0" And for rendering the directions returned by mapbox-...

15 30 50 per page
1
2 3 4 5
87125