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: https://android.stackexchange.com.

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

Vankyo MatrixPad Z1 Android Tablet can't see thermal POS printer on network

I am working with an Android tablet and having issues getting it to work with a POS (in both senses of the word) thermal receipt printer. It's an 80mm model sold by Munbyn. The tablet is a Vankyo 7" ...
0
votes
0answers
6 views

Automatic intent send text message

I want to create an application in android studio where the user types in a number and that number is then saved to a database. If something happens(say the phone was shaken) an automatic SMS is sent ...
-2
votes
0answers
8 views

How can i check an character of a String if is a number?

i would like to check a character of a String if is a number in java i have been writing this code for (int i = 0 ; i < input.getText().toString().length() ; i++) { String c = ...
0
votes
0answers
4 views

Facebook Social login redirects/refreshes before completion on Cordova

I was asked to look at a Cordova React app, essentially a wrapper for the company browser app. The app was built with Facebook social login, which now doesn't work. (It may in fact never have worked.) ...
0
votes
0answers
8 views

How do I populate multiple TextViews in my ListView from a Firebase Database?

I started off by building a ListView that contains multiple TextViews without Firebase and that worked well (Note: I stored my data in String arrays). Then I created a ListView with a single TextView ...
0
votes
0answers
7 views

Multiple API calls Simultaneously and update UI as soon as the processing of the corresponding request finishes Android

I need to run 6 API calls Simultaneously and need to update the UI for each when corresponding request finishes Currently I am using kotlin coroutines parallel execution using the following code ...
2
votes
0answers
6 views

Keyboard not being detected. MediaQuery.of(context).viewInsets.bottom always returns 0.0

I have a scaffold with a TextField inside. The keyboard always covers this field when it previously would move the field above the keyboard. This is happening on all the pages in my project. I've ...
0
votes
0answers
12 views

How to Add Item to Listview From User Input in DialogBox

I have a listview which is inside a fragment. the fragment contains a button that will show a dialog box in which contains an edittext that will allow the user to add item to listview. I decided to ...
0
votes
0answers
4 views

Get the location of the position marker using MapBox

I have been using MapBox draw a map and the user position on the said map. At the same time using the location engine, I'm subscribing to location changes. The problem with location changes is that ...
0
votes
0answers
10 views

I am new to flutter and am haing some issues when running flutter

I am new to flutter and when I try to run the emulator it comes back blank or with google logo the loads forever. When I run flutter doctor everything seems okay but on the debug console I get the ...
0
votes
0answers
21 views

How to wait for Bluetooth scan to finish

I am making a bluetooth terminal app, I want to create a set of checkboxes representing the visible devices any time the user presses a button. Here is the button code: mDiscoverBtn....
1
vote
0answers
5 views

Using Typekit (Adobe) fonts on React Native project?

I recently opened some mobile app mockups that I have to develop. I'm using React Native (with Expo). The thing is, this mockups use a lot of Adobe fonts (Typekit). I came across the doc: https://...
0
votes
0answers
3 views

Samsung file manager not recognises .sit/.tgz

WHAT I'M EXPECTING: I'm trying to click .sit file type and open it in my application. And it should show my app only for .sit file type. ACTUAL BEHAVIOUR I'm able to get the expected result in all ...
0
votes
0answers
9 views

Launch a specific Fragment from another app

I have a Fragment that should be launched when a user chooses to share a image from other app. Below is my Fragment code.All I know that you can launch an activity by specifying it in manifest file ...
-1
votes
0answers
9 views

Android App is not shown when searched by name or package name on PlayStore

I have published my application in Production on PlayStore 10 days ago. When I try to search by name (full/partial name search) or package name app isn't showing, but when I open with URL https://play....
-1
votes
0answers
21 views

Android Studio Development Error - Java.lang.NullPointerException [duplicate]

Hello, i am currently developing a mobile application on Android Studio (novice btw), however whenever I test the app, the application will stop after clicking the sign in button. When I check the ...
0
votes
0answers
5 views

Flutter Gradle SSL exception while build andorid apps

I am getting an SSL Exception such as PKIX path building failed: I have tried adding Jcenter and Gradle certificates manually. but still, the error appears. Please help. I am working on the latest ...
0
votes
1answer
12 views

Passing a function that returns an object in Dart / Flutter does not work

I'm pretty new in Dart coding world. Please bear with me and please don't down vote me. I will fix anything just let me know.. So I'm using Sembast (ver 2.1.1) and coding in Flutter. I've created an ...
0
votes
1answer
9 views

Issue with adding custom ringtone to Ringtonemanager for Android app development?

I am trying to add a custom ringtone for my android app. All i have done is created a raw folder in res directory and added a mp3 file there as a ringtone using below code. some how only default ...
0
votes
1answer
24 views

why Textview.setText() is null in fragment?

I am getting an error when trying to set text in textview. I have tried updating gradle(which is suggested by one of stack overflow developer's solution), also tried many solution from this same ...
0
votes
0answers
15 views

DropDown to the bottom of spinner in android

Normally dropDown menu shows above the spinner. I want to show the dropdown exactly below the spinner. I used android:overlapAnchor="false" but it works on API level-23 but not working on API level-...
1
vote
0answers
7 views

Playing audio in Xamarin's main activity with MediaPlayer doesn't work

After some research I got this code in my MainActivity.cs MediaPlayer player = MediaPlayer.Create(this, Resource.Raw.myaudio); player.Start(); And in my Resource/raw folder I have myaudio.mp3 file. ...
0
votes
2answers
20 views

android.view.InflateException: Binary XML file line #2: Binary XML file line #2: You must supply a layout_width attribute

Good afternoon all, I am in real need of help. Have been trying to resolve this issue for some time now and I can't figure it out. I am getting the following error on a OnePlus 7 Pro Device. I have ...
0
votes
0answers
6 views

EventID is incremented every time I add new event to calendar but nothing is displayed in Calendar App

I have the following code: button.setOnClickListener { val calID: Long = 3 val startMillis: Long = Calendar.getInstance().run { set(2019, 10, 1, 7, 30) ...
0
votes
0answers
11 views

What is the mechanism to get bluetooth volume information Android device

I would like to get Bluetooth volume information from an Android device but STREAM_BLUETOOTH_SCO is no longer available Is there another way to do it?
0
votes
0answers
14 views

Flutter Text field tap create widget rebuilt

I am developing an app on flutter. The problem is that whenever text input field is clicked parent widget is rebuilt thus creating problem because the provider of parent is disposed and called again. ...
0
votes
0answers
13 views

Undo/Redo with Canvas Bitmap drawing (KOTLIN)

So im trying to to Undo/Redo action and there is a few answers on stackoverflow about this problem, but any of them is not helping with my issue. So I have my custom view for canvas implementation, ...
1
vote
0answers
6 views

ANDROID: USB Tethering automatically C#

i'm trying to activate automatically the usb tethering mode on Android 9 when plugging in. Is there a method to do that without Root rights or modded android? Thanks for help.
0
votes
0answers
19 views

TextinputLayout does not display the style correctly if hintEnabled false

I have TIL for entering phone number. The input should be frame so set style. But I need to disable hint animation, I set app:hintEnabled="false" animation work correct, but my border not displayed ...
0
votes
1answer
15 views

Ho do I use the variable distanceHala outside of this public void (Android Studio)?

So what I want is to calculate the distance between the users current location and a marker on the map. final LocationRequest locationRequest = LocationRequest.create(); locationRequest....
1
vote
3answers
33 views

Flutter: Difference between Raw Material Button and Material Button

Hello There Everyone! How's your day going? I hope its brilliant <3 I need a little bit of your help here, I've been using Raw Material Button and Material button lot in my code, But I don't know ...
0
votes
0answers
7 views

Send Data from Android to NFC Reader for Raspberry Pi

I am currently trying to find a way to send any kind of personalized data to the EXPLORE NFC Board from NXP. I tried lots of different Android Apps that use HCE (host-based card emulation) so that I ...
0
votes
0answers
8 views

How to save selected items in calendar

guys. I want to save selected items in calendar. After restarting, they are reset. How do I implement their invention? example selecting Maybe, I should use another library or datebase? it's my ...
0
votes
0answers
12 views

Calling one MediaPlayer after another

My goal is to create app, that will generate pattern of chars and play them in morse code. Right now im trying only on 2 letters, but i thing adding more will be easier once i got solution for my ...
0
votes
0answers
16 views

Continious vibration without pause

I am using vibrator.vibrate(VibrationEffect.createOneShot(Integer.MAX_VALUE, VibrationEffect.DEFAULT_AMPLITUDE)); for vibration. The problem is that vibration lasts only about 1-2 seconds instead of ...
0
votes
0answers
10 views

Cannot read property 'configureProps' of null

When integrating react-native into existing android-app Cannot read property 'configureProps' of null . I got this working with version 0.59 but after upgrade to 0.61 got this problem already fix ...
0
votes
0answers
14 views

Navigate between different graphs with Navigation components

I have two activities, one holds all the fragments for the Login process, and the other one holds all the fragments for the main app. Lets say I want to navigate from Activity1 (that holds all ...
-3
votes
0answers
18 views

How to programmatically raise a wifi access point on android (api> 28)

The task is that I need to programmatically create an access point with the SSID and password I knew in advance on one android device (api == 29). On another android device, I need to ...
1
vote
0answers
23 views

Warnings SQL Lite Android

I'm having some troubles with my database on Android. My code is working perfectly but I have a lot of warnings: D/SQLiteDatabase: Open database java.lang.Throwable: stacktrace at android....
0
votes
0answers
25 views

Axios POST method: Network Error - React Native

When i send request with my Google Cloud address from postman its ok but from android studio/react-native/axios its give an error. [Error: Network Error] This is my code: constructor(props){ ...
0
votes
0answers
15 views

Background service for location updates and show notifications is closed by system's custom Android rom (e.g. Xiaomi, Huawei, OnePlus smartphones)

Setting autostart "ON" and disable battery optimization for app is not working on all smartphones. Tried manually to allow autostart and disable battery optimization for Xiaomi note 3 and it worked, ...
0
votes
0answers
32 views

Can I use response in if () in kotlin?

I try to create kotlin app with OkHttp3. Can I use response.header("error") or response.header("success") in if()? For example, if I got response with error I will show error or if I get success and I ...
0
votes
0answers
15 views

Is there any way to use custom design for autocompletefragment in android

I am using autocomplete fragments for getting an address from place searches in my android application. I want to use a custom design for the auto-complete fragment. I am only able to change the ...
0
votes
0answers
17 views

How to incorporate Apollo-android in a project with many modules?

I have an Android project that uses graphql to communicate with the server. It has many modules. Each has its own graphql queries / mutations, but they share the same schema. At the moment I am ...
0
votes
0answers
14 views

BLE central controlling 2nd central

I'm trying to make a phone app that will connect to a device. Both these devices are BLE centrals. The idea is that the device is a gateway that connects to other devices (which are a kind of sensors)....
0
votes
2answers
30 views

How to send user to a search page using FAB in Kotlin, for Android Studio?

can anyone help me with this code? p0.btnPlay.setOnClickListener { val songName = song.songName val songArtist = song.songArtist Toast.makeText(mCtx, "You clicked this button!", Toast....
0
votes
1answer
15 views

androidx.gridlayout.widget.GridLayout cannot be cast to android.widget.GridLayout

I am getting error "Caused by: java.lang.ClassCastException: androidx.gridlayout.widget.GridLayout cannot be cast to android.widget.GridLayout", in mainActivity.java GridLayout mygridLayout =...
0
votes
1answer
19 views

Android YouTube Player API

I want to play you-tube video inside my app as small one as you-tube playing...could any one guide me please...I tried wit YouTube video player but it get stuck or stop after every second. Trying to ...
7
votes
0answers
29 views

How to get ID of the referenced resource by a different resource?

I would like to get the ID of the referenced resource in runtime. For example this is my code: <string name="d2c_entryroadblock_start_value" translatable="false">@string/get_started</string&...
0
votes
0answers
34 views

What would be the best way to put together an App like this?

first ever question here. I'd like to put together an App for tracking employee locations, but I'm not sure the best process for building it/having it built. Here's an image of the kind of thing I'...