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 and etc. For questions other ...

0
votes
0answers
4 views

AIDL implementation for Protobuf genarated object

I have use case as follows, my custom object is generated from Protobuf. I would like to use these protobuf generated class as parameter for AIDL implementations. Since protobuf doesn't use ...
0
votes
0answers
3 views

set bundle to intent URL

please help me on my application. i want to use some URL use bundle and intent but i don't know how to do. i have some setData to acces some URL. i use Fragment.java, Home.java for set data and ...
0
votes
0answers
12 views

Change ImageView as per user input

I'm using Numberpicker in which I'm taking input of String. public final String Branch[] = {"Branch","Comp", "Civil", "Mech", "Chem", "EnTC"}; I'm sending this data in Firebase. In other ...
-3
votes
0answers
11 views

I m stuck get subscribe information

So, now we can generate the refresh token: Go to the following URI (note that the redirect URI must match the value entered in the client ID exactly, including any trailing backslashes): https://...
0
votes
0answers
4 views

Scanning QRCodes in a Cordova Android Plugin with Zxing

In my Cordova Android app I have one custom plugin which I am trying to modify to scan QRCodes. My first port of call was to simply try using the cordova-plugin-qrscanner plugin which worked - though ...
0
votes
0answers
9 views

GridView not showing correct height when parent item resized

Why is it that whenever my GridView height inside a CardView is stretched to beyond its contents? Even though none of the android:layout_height instances are set to match_parent. XML <?xml ...
0
votes
1answer
16 views

Android UI Design Issue

I am new to Android. I am creating a layout for a registration form. Base container I am using as relative layout. Inside relative layout i am keeping liner layout container and then inside this all ...
0
votes
0answers
11 views

Problem with flutter application executed on a PDA?

I developped a small android application with Flutter on a PDA (mobile computer) my problem is i can't receive a scanned barcode on text box. With the same PDA i have not this problème whene i ...
-1
votes
1answer
14 views

Where is Android Emulator file structure on macOS?

Where is Android Emulator file structure (such as /data, /system, etc) on macOS? It's not under ~/Library/Android/sdk/system-images/android-27/google_apis/x86
-1
votes
1answer
11 views

Implement Half Circled Layout

I am new to android development. I want to Implement a curved layout as shown below. . Any pointers on how i can achieve the same will be appreciated.
0
votes
0answers
14 views

Why is an extra blank photo saved along with the photo taken from camera intent?

When the user launches camera intent from inside the app and takes a photo. The photo taken will be saved. But another blank photo will also be saved. When I clicks on that blank photo in the phone's ...
-1
votes
0answers
10 views

Attempt to invoke virtual method 'void android.media.MediaPlayer.start() [duplicate]

I'm Making and Audio Player and Have Fetched All Audio files with their paths but on starting Media Player It gives me Null Pointer Exception. here is My Code. where mSongs is Array list Which ...
0
votes
0answers
5 views

how can I use ReactNative WebView component to show a specific part of a webpage in my Android app?

I want to use ReactNative webView component in my android app and show just a specific part of a web-page. for example I want to show the contents specified by the red rectangle in the image below: ...
0
votes
1answer
9 views

Ionic native plugins stopped working after upgrading to WKWebView

I recently upgraded my app to WKWebView and since then my native plugins have stopped working. Specifically, the Camera and Geolocation plugin have stopped working. The worst thing is that there are ...
0
votes
0answers
7 views

Diagonal line appears thicker than straight line when using path.lineTo() Android

I've created a class that extends Shape in order to draw custom shapes (rectangle with cut off corners) for the background of my buttons. The problem I have is that lines drawn as a diagonal appear ...
0
votes
1answer
3 views

Does getUserMedia works in ionic-webview in Android app?

I have given all the permissions for camera and microphone. Enable CSP in meta tag for the iframe. Still not able to get permission for camera and microphone in getusermedia for iframe. home.html ...
0
votes
0answers
3 views

org.apache.http.params is deprecated where i have sdk version 25?

App won't build with error related to 'org.apache.http.legacy' library how can i resolve the error "this inspection reports where deprecated code is used in the specified inspection scope" as 'org....
0
votes
2answers
16 views

Unable to attach adapter for recycler view in fragment

In my app I am using recycler view in fragment. That recycler view data comes from database. I get all data perfectly but all data overlap each other and getting an error in log cat.I am using card ...
-9
votes
0answers
13 views

How to extract English words from Wiktionary using its apis [on hold]

Please I need thousands of English words for an Android app I'm working on. I found Wiktionary to be a good source for my app, but I don't know how to go about it
-1
votes
0answers
11 views

how to convert mat or bitmap to iplimage?

i am working on android / IplImage / Opencv. I need to convert a Mat or bitmap to be a IplImage .this the code of bitmap . Bitmap bm = Bitmap.createBitmap(newImage.width(), newImage.height(), Bitmap....
-6
votes
0answers
14 views

WiFi routers with 802.11mc / RTT standard [on hold]

Are there any commercial WiFi routers that support 802.11mc standard? I'm trying to use the new Android P RTT indoor location service, but I'm not finding any compatible WiFi router.
0
votes
0answers
9 views

How to use socks proxy with Android emulator?

By using -http-proxy socks://127.0.0.1:1080 with emulator I got WARNING: Ignoring invalid http proxy: Bad format: invalid proxy name. What is the argument for emulator to use a socks proxy?
-3
votes
0answers
18 views

I want to develop a matrimony app in Android for an NGO so where should i store my data on Cloud? [on hold]

To store my data in the cloud I can't use firebase as I will have to pay for it after some time so which will be another alternative for storing data Cloud?
0
votes
2answers
28 views

How should i make use of ids in firebase database

Hi Fellow Firebase Devs! Earlier this year i got hired into a startup and we got going developing our app in xamarin and we decided to use firebase as our backend. A decision i in some ways regret as ...
0
votes
2answers
20 views

Failed to resolve Firebase auth 15.0.0

I am new to android development environment and I need to connect my app to firebase but I am getting this error Failed to resolve: firebase-auth-15.0.0 This error is shown in the statement: ...
-3
votes
0answers
24 views

I have a list view in android on the click of item from a list how do i display its content from sqllite? [on hold]

I'm a Beginner in Android I have created a list view and I need to take the data (it can be 200 to 400 lines) from an SQLite database and display it in its fragments.
0
votes
2answers
13 views

Flutter - Complex functions in initState() slowing down navigation and performance

I am working on this app, where you can navigate to a screen with a stateful widget that has a bunch complex functions that run in initState(). Due to these functions, navigating to this screen takes ...
0
votes
0answers
8 views

Ionic cordova not install app in emulate android

I need help to fix on a bug in my ionic. I want to emulate my app in android. This is the result of my ionic info: Ionic: ionic (Ionic CLI) : 4.1.2 (/usr/lib/node_modules/ionic) Ionic ...
0
votes
0answers
8 views

OpenCV real-time comparison of camera and drawable image

I wanted to see if someone could give me the link for an OpenCV tutorial for Android in which the application recognizes if an object that is good in real time with the camera matches an object that ...
-3
votes
1answer
32 views

Generate Unique Random Number in Java help of ArrayList

I am trying to generate unique random number every time. For checking it, `ArrayList<Integer> randomNumbers = new ArrayList<>(); int letterIndex; do { Random ...
0
votes
2answers
43 views

Converting JSON string to object returns “Expected BEGIN_ARRAY but was STRING”

I have a JSON response coming back from my server in the format: [ { "id": "one", "values": { "name": "John", } }, { "id": "two", "...
0
votes
1answer
9 views

switching to loader using locationListener

I'm doing a Udacity Android Basics course and am trying to change my app to use a Loader rather than AsyncTask. My app uses a locationListener to generate a custom URL that is then passed to the ...
-1
votes
0answers
5 views

how to show all logged in users location on map using firebase?

I want to display all markers of the locations for all the users in the Firebase database to android studio this is the reference I used but still getting errors. help me with the full reference code ....
1
vote
0answers
13 views

Building Google LLVM 7.0.2

How to build Google fork of LLVM 7.0.2 (https://android.googlesource.com/toolchain/llvm, 1d739ffb0366421d383e04ff80ec2ee591315116)? I have no problems building original LLVM. But running configuration ...
1
vote
2answers
32 views

adding fragment to xml crashes my app - how to fix that?

it's my first time dealing with fragments in android. and for some reason my app crashes when i try to add fragment tag to my main activity. i know there is a lot of questions similar to mine but i ...
0
votes
0answers
13 views

Android Studio dependencies problem with libs and jniLibs

I have an app that needs to use OpenCV and another third-party library. I followed this stackoverflow instruction to import the latest version of OpenCV (v3.4.3) and copy the .so files to /app/src/...
0
votes
0answers
8 views

How to install Cmake 3.4.1 on android studio

I have an android studio project that was created using cmake 3.4.1 and i cant get it to compile using the latest cmake (3.6.4) is there a way i can get 3.4.1 on android studio. Please see photo.
0
votes
0answers
13 views

`@SerializedName` is not being deserialised when using `AutoVaule` and `AutoGson`

I'm using AutoValue and AutoGson and I'm having a problem were @SerializedName is not working as I expected. I have this model: @AutoValue @AutoGson(autoClass = AutoValue_ItemResponse.class) public ...
1
vote
0answers
17 views

Zxing scanner Camera zoom

I've been trying to solve the problem for 3 days, but I still have not found the answer. I want to add a ZOOM to the camera while scanning the qrcode through the Zxing scanner. contentFrame.addView(...
0
votes
1answer
16 views

Android trial and production version

I have the following question about Android application management. When we publish a version in the Google PlayStore (Android), we have 3 options to choose from, being Alpha, Beta and Production. I ...
0
votes
0answers
14 views

DatePickerAndroid “spinner” mode opens both “spinner” and “calendar” in Tablet

When i open DatePickerAndroid with mode "spinner" in API 23 phone (android 6.0) it opens correctly(also tested on android 8). But if i change to a tablet (Nexus 9 2048x1563 xhdpi) with API 23 (android ...
-7
votes
0answers
22 views

creating a screen magnifier [on hold]

I am new in android. I got task to make the magnifier in android just like pc/ laptop magnifier. I did some R&D but I got the examples to magnify Image not the screen.I just need some appropriate ...
1
vote
0answers
22 views

Drawing vector icons

Some icons, rather than having all the image files on different screen resolutions, I think it's better to keep the vector files and draw immediately. I don't have any power to draw a new image file, ...
1
vote
0answers
18 views

Gradient that runs in the background irrespective of change of activity

Apply gradient that runs in the background irrespective of change of activity. It should keep working seamlessly and not start from beginning . Like after the activity change the background should not ...
0
votes
2answers
21 views

RelativeLayout having FrameLayout with 15 ImageButton in it Crashes

i have a activity with RelativeLayout in which there is a FrameLayout and in FrameLayout there are 15 ImageButtons. App crashes whenever that activity loads. here is my xml code. <RelativeLayout ...
-1
votes
0answers
24 views

how to find nearest locations from given locations list [on hold]

I want to make app that has some locations in a list and when user searched for some thing, application give back a list that sorted from nearest to most farther. for example an admin in a library ...
1
vote
1answer
23 views

Firebase database how to know where a user is to edit values

I have a structure where I need to login with an user below a certain parent and I need to know in which parent I'm in order to modify that parent and my user id, here is my database structure Now, ...
0
votes
0answers
13 views

Android and Dagger 2 submodules with Activities and Fragments

I am trying to use Dagger 2 for a quite complex hierarchy in my App. Basically it has to be a single Activity app. This activity (MainActivity) can "load" three different Fragments (FragmentMainA, ...
0
votes
1answer
14 views

Firebase google authentication

Code private String mEmail; private FirebaseUser current_user; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R....
0
votes
1answer
16 views

Name of foggy effect on statusbar/toolbar used by apps

I want to know the name of the effect that Google Play music app uses to put shadow or dark fog like effect to the top of the activity to make the white icons visible on white backgrounds like in the ...