Questions tagged [oneplustwo]
17 questions
22
votes
3 answers
Database not getting copied properly in OnePlus Two
I am creating an Android Application and I am using sqlite database in it. for that I have placed a sqlite file in assets folder of project and I am copying this file to phone while my first execution of application using code below.
private void…

Jignesh Ansodariya
- 12,583
- 24
- 81
- 113
11
votes
2 answers
Android One Plus Two: Failed to change locale for db
I am using Sqlite database in one of my Android project. It works fine in all the devices except One Plus Two device.
I am getting exception while trying to open the database. This is the crashlog.
12-23 19:14:35.235: E/SQLiteLog(3133): (11)…

Ramaraj T
- 5,184
- 4
- 35
- 68
10
votes
6 answers
How do you connect a OnePlus Two Device to Ubuntu through MTP?
When I connect it to my ubuntu 14.04, I am only able to see the USB drivers for installing ADB.
There are a few solutions available for OnePlus One (See here) but I was not able to find one for OnePlus two.

Alex Joseph
- 4,719
- 2
- 21
- 25
7
votes
1 answer
How to create emulator for ONEPLUS TWO?
User has reported a bug in OnePlus two mobile, I want to debug my application for OnePlus two mobile. I tried checking in user mobile, the bug exist. Even-though i create AVD based on the same specification, i'm not able to simulate the error in…

Sri Kanth
- 311
- 4
- 18
4
votes
1 answer
Sqlite return no such table but table is present when fetched on OnePlusTwo device
I had copied a db file from assets to the app database and it is successfully copied. When I query on any table it returns no such table exception. I fetched the db file from that phone and it is having all the tables that are required.
I know it is…

varun bhardwaj
- 1,522
- 13
- 24
2
votes
1 answer
Why does my app get minimized without an obvious reason?
TL;DR
My app gets minimized (as if the home-button was pushed) when I tap the navigation icon in my toolbar after going from an activity to another one and back.
Detailed flow of actions:
Open app, Activity1 comes up
Tap navigation icon (drawer…

Revolutionair
- 760
- 6
- 19
2
votes
1 answer
Android studio not showing my device even after enabling developer options
I have installed one plus X drivers on my Windows 10
I am using One plus X android device with Android OS version 5.1.1 - Oxygen OS.
I have enabled developer options, enabled USB Debugging, enabled ADB over network.
My android studio is not showing…

ojas
- 247
- 1
- 4
- 17
1
vote
0 answers
Sticky service not restarting on OnePlus 2
I have a background service that handles network traffic for my app. The service returns START_STICKY and it works perfectly (restarts after app is swiped) on Emulated Google Pixel (Android 7.1.1) and on a physical Motorola G4 (Android…

Fran Jurinec
- 36
- 7
1
vote
1 answer
adb backup doesn't work on non-rooted oneplus2
When I tried to back up my app data, it doesn't work. Specs are listed below:
oneplus2 ONE A2005
OxygenOS: 3.5.8
Android : 6.0.1
The phone is not rooted, Developer Options is on and it's debuggable.
I run
./adb backup -noapk com.bla.android -f…

Steven
- 76
- 1
- 6
1
vote
1 answer
Roaming detection on OnePlus One/Two/Three
I'm willing to detect if roaming switch on a telephone is turned off.
if (Build.VERSION.SDK_INT < 17) {
isDataRoamingDisabled =
(Settings.System.getInt(context.getContentResolver(), Settings.Secure.DATA_ROAMING, 0)
== 0);
} else…

Yonatan Levin
- 342
- 5
- 17
1
vote
1 answer
Sqlite Issues with OnePlus device
We have an android app that uses SQLite for some form of persistent storage. The sqlite code works on all devices except Oneplus devices. ( I am testing on Oneplus 2 A2003)
Following is the error that I am seeing in…

user_v
- 9,628
- 4
- 40
- 32
1
vote
1 answer
Can't debug applications using OnePlus 2
I have a problem debugging applications using my new OnePlus 2. Once the debugging starts the application is blacked out and unresponsive. After some time the black screen disappears and I can see my app but it is unresponsive. The Android…

Quass1m
- 315
- 2
- 4
- 11
0
votes
2 answers
Content provider not working in one plus devices
I have two applications, one contains content provider and other app receives data using content resolver. If i add any data form provider that should be displayed from receiver in second app, this is the expected functionality.But after adding data…

user1196969
- 335
- 2
- 5
- 14
0
votes
0 answers
Unable list my One Plus Two in Debug device list android studio
I'm using Android Studio 2.2.3. I'm unable to detect the device for debugging purposes. I have installed Google Drivers in my studio and my OS is Windows 8.1. In Device Manager it is shown as ONE A2003 and the drivers are up to date.

Mahesh Paul
- 49
- 10
0
votes
1 answer
Screen overlay has to be disabled everytime a new app is installed
I am using a OnePlus X phone and have recently updated the software to oxygenOS 3.1.3. After that i have been getting the screen overlay problem. I did my research and disabled going to the draw over other apps setting. But now everytime i install a…

User6496
- 1
- 1