id
int64
28.5M
73.8M
title
stringlengths
15
150
question_body
stringlengths
69
39.4k
body_text
stringlengths
6
29.2k
tags
stringlengths
7
120
score
int64
-19
384
creation_date
stringlengths
20
24
year
int64
-1
2.02k
month
int64
-1
12
hour
int64
-1
23
dayofweek
int64
-1
6
view_count
int64
3
367k
answer_count
int64
0
34
body_len
int64
6
29.2k
title_len
int64
15
150
tag_count
int64
1
6
code_block_cnt
int64
0
17
has_code
bool
2 classes
is_unanswered
bool
2 classes
is_popular
bool
2 classes
is_viral
bool
2 classes
is_highly_voted
bool
2 classes
is_negative
bool
2 classes
score_bucket
stringclasses
5 values
38,042,818
Revmob unity plugin video always in landscape mode
<p>After integrating Revmob unity plugin, I have created media id in their admin portal for Android and iOS apps. Then configured media id in unity and everything is setup. </p> <p>Took build for Android and while running, I am always getting Video ad in landsape mode.</p> <p>I set orientation to Portrait in activity...
After integrating Revmob unity plugin, I have created media id in their admin portal for Android and iOS apps. Then configured media id in unity and everything is setup. Took build for Android and while running, I am always getting Video ad in landsape mode. I set orientation to Portrait in activity but no use.
android|unity3d|revmob|revmobads
2
2016-06-26T20:21:09.257Z
2,016
6
20
6
64
1
312
50
4
0
false
false
false
false
false
false
low
38,054,106
Intermittent Unknown Source in java. Unlikely Ant Issue
<p>This is a problem that has been addressed before but not like this. In my exception trace few lines show Unknown Source, while few lines show the proper line number.</p> <p>I am assuming that this is unlike the problem with ant build script where debug="true" OR debug="on" is not given because this is intermittent....
This is a problem that has been addressed before but not like this. In my exception trace few lines show Unknown Source, while few lines show the proper line number. I am assuming that this is unlike the problem with ant build script where debug="true" OR debug="on" is not given because this is intermittent. So if I ru...
java|android|ant
0
2016-06-27T12:33:00.233Z
2,016
6
12
0
64
1
435
55
3
1
true
false
false
false
false
false
zero
37,658,499
AppbarLayout with Toolbar, Navigation Drawer, and tabs
<p>I'm developing an app that has a Main Activity and a Navigation Drawer to switch between different fragments inside the Main Activity.<br> One of the fragments contains a tab layout.<br> My layouts are a mess and they don't behave or perform properly.<br> Here is my XML:<br> Main: </p> <pre><code>&lt;android.suppo...
I'm developing an app that has a Main Activity and a Navigation Drawer to switch between different fragments inside the Main Activity. One of the fragments contains a tab layout. My layouts are a mess and they don't behave or perform properly. Here is my XML: Main: [CODE] Tabs Fragment: [CODE] I want to use Coordinator...
java|android|performance|android-layout|android-fragments
0
2016-06-06T13:15:24.893Z
2,016
6
13
0
320
1
602
54
5
2
true
false
false
false
false
false
zero
38,048,905
Can´t import stl header with android studio 2.1.2
<p>i have a problem with android studio 2.1.2 i want to write some code in c++. In Gradle i insert the following code.</p> <pre><code>apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.example.glm.lichtschnitt" minSdkVersion 21...
i have a problem with android studio 2.1.2 i want to write some code in c++. In Gradle i insert the following code. [CODE] In studio 1.5 i can import all headers like "vector.h" or "list.h" In 2.1.2 i have no code completion. I can compile it but android studio has no code completion or something else for better code w...
android-studio|android-ndk
0
2016-06-27T08:15:03.577Z
2,016
6
8
0
320
1
594
49
2
1
true
false
false
false
false
false
zero
38,033,354
Kivy-Python-Android Torch App
<p>There is this torch app example available online. It uses a 'Switch' to turn flashlight on. It works. I've been trying/struggling to get a 'message' output on the device when the flashlight is turned on and off and I cannot seem to get the right code. Can anyone provide a hint. Here's the working torch app code (som...
There is this torch app example available online. It uses a 'Switch' to turn flashlight on. It works. I've been trying/struggling to get a 'message' output on the device when the flashlight is turned on and off and I cannot seem to get the right code. Can anyone provide a hint. Here's the working torch app code (someho...
android|python|kivy|flashlight
0
2016-06-25T22:04:22.440Z
2,016
6
22
5
832
1
366
29
4
1
true
false
false
false
false
false
zero
37,930,362
Appium blank screen on Inspector Window
<p>I see other people have the same problem but couldn't find a solution for it. I can run the app on my Emulator but cannot see anything in <code>Inspector Window</code> and this just happens on Windows machine. Any thoughts?</p> <p><a href="https://i.stack.imgur.com/X6qg0.png" rel="nofollow noreferrer"><img src="htt...
I see other people have the same problem but couldn't find a solution for it. I can run the app on my Emulator but cannot see anything in Inspector Window and this just happens on Windows machine. Any thoughts?
android|appium|simulator
0
2016-06-20T19:28:41.210Z
2,016
6
19
0
1,344
1
210
39
3
0
false
false
false
false
false
false
zero
37,790,198
How to dynamically include a layout in Android?
<p>I wanted to include a dynamic content to take advantage of all layout already created without having to have an xml with all the features for each actitivy.</p> <p>I noticed that the android has an wanted to use this to determine what will be my content, according to the activity accessed.</p> <pre><code>&lt;?xml...
I wanted to include a dynamic content to take advantage of all layout already created without having to have an xml with all the features for each actitivy. I noticed that the android has an wanted to use this to determine what will be my content, according to the activity accessed. [CODE] [CODE]
java|android|xml
12
2016-06-13T12:44:32.093Z
2,016
6
12
0
11,584
1
297
47
3
2
true
false
true
true
true
false
medium
37,612,892
I can't display the data from second Request URL to attached the first request URL in volley
<p>I am using Recycler View to display the item , but i have using two request URL to fetch the data via volley. I tried but not working well can't get second fetching data fom JSON URL via volley.</p> <p>model:</p> <pre><code>public class CartItemoriginal { public String productimg; public String productname; public...
I am using Recycler View to display the item , but i have using two request URL to fetch the data via volley. I tried but not working well can't get second fetching data fom JSON URL via volley. model: [CODE] } Adapter: [CODE] Code: [CODE] I can get first urloutput not getting second one. How to solve this error, Thank...
android|android-layout|android-studio|android-recyclerview|android-volley
0
2016-06-03T11:12:52.497Z
2,016
6
11
4
65
1
332
92
5
3
true
false
false
false
false
false
zero
37,627,728
Add tablerow with textviews to tablelayout programmatically (Android)
<pre><code> import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.TableLayout; import android.widget.TableRow; import android.widget.TextView; import java.util.ArrayList; import java.util.List; public cla...
[CODE] This is my tablelayout: [CODE] This is table row for adding in activity, i added tablelayout row which is still in layout, it is not important i guess. [CODE] I have an activity. I want to show table. For this, i have one table layout with 2 rows and one tablerow layoutout with textviews , each has id. I want to...
android
1
2016-06-04T07:41:17.470Z
2,016
6
7
5
65
1
558
69
1
6
true
false
false
false
false
false
low
37,671,362
How to run a function in service when click on actionClick of Notification?
<p>I have written an app. But i cant solve my problem. I have an AlarmManager to push Notification. And now I want to have a button on my Notification. when I click that button, my app will run a function in service ( post request to thingspeak ) but i have tried many ways but i cant solve it. Help me plz! I have 4 cla...
I have written an app. But i cant solve my problem. I have an AlarmManager to push Notification. And now I want to have a button on my Notification. when I click that button, my app will run a function in service ( post request to thingspeak ) but i have tried many ways but i cant solve it. Help me plz! I have 4 classe...
android
0
2016-06-07T05:42:44.367Z
2,016
6
5
1
65
1
618
75
1
2
true
false
false
false
false
false
zero
37,684,389
How to make android raw-contact communicate intent?
<p>I'm getting Cursor with RAW_CONTACTS for person in my app. How can i use this data to start an Intent to communicate with this person via one of selected raw-contacts?</p> <p>For example, one contacts has several raw-contacts: phone, whatsapp, viber etc. When i click whatsapp raw_contact, app should start WhatsApp ...
I'm getting Cursor with RAW_CONTACTS for person in my app. How can i use this data to start an Intent to communicate with this person via one of selected raw-contacts? For example, one contacts has several raw-contacts: phone, whatsapp, viber etc. When i click whatsapp raw_contact, app should start WhatsApp to communic...
android|android-intent|android-contacts
0
2016-06-07T16:14:25.340Z
2,016
6
16
1
65
1
345
51
3
0
false
false
false
false
false
false
zero
37,691,752
When onDestroy is not called, which lifecycle methods are called upon resurrection?
<p>Android documentation about Activity says that onDestroy may not get called if the system kills your process to reclaim memory. My questions are </p> <ol> <li><p>Is there a way (developer tool etc) to simulate this situation (no onDestroy) for testing?</p></li> <li><p>Suppose my process is killed by the system to ...
Android documentation about Activity says that onDestroy may not get called if the system kills your process to reclaim memory. My questions are Is there a way (developer tool etc) to simulate this situation (no onDestroy) for testing? Suppose my process is killed by the system to reclaim memory and user navigates back...
android
1
2016-06-08T01:05:18.723Z
2,016
6
1
2
65
1
393
83
1
0
false
false
false
false
false
false
low
37,797,188
Disable navigation keys in Android
<p>How can I disable navigation keys via Service in Android? I had been thinking about adding <em>FLAG_FULLSCREEN</em> or <em>FLAG_LAYOUT_IN_SCREEN</em> to <code>WindowManager</code> in order to make a service go fullscreen, but it didn't work. Next thing I did trying to disable TypeGuard, but no luck. Anyone worked wi...
How can I disable navigation keys via Service in Android? I had been thinking about adding FLAG_FULLSCREEN or FLAG_LAYOUT_IN_SCREEN to WindowManager in order to make a service go fullscreen, but it didn't work. Next thing I did trying to disable TypeGuard, but no luck. Anyone worked with KeyguardManager because it migh...
android|android-service|navigationbar|android-windowmanager
0
2016-06-13T18:56:44.920Z
2,016
6
18
0
65
1
359
34
4
0
false
false
false
false
false
false
zero
37,880,158
RecyclerView adapter with 2 sections, based on a field in the dataset
<p>I have a List to pass to a RecyclerView. The WifiNetwork object holds a boolean "inRange".</p> <p>In my RecyclerView, I want to this structure: - header: IN RANGE - items with boolean inRange == true - header: NOT IN RANGE - items with boolean inRange == false</p> <p>I can't seem to find an easy way to do this.</p...
I have a List to pass to a RecyclerView. The WifiNetwork object holds a boolean "inRange". In my RecyclerView, I want to this structure: - header: IN RANGE - items with boolean inRange == true - header: NOT IN RANGE - items with boolean inRange == false I can't seem to find an easy way to do this. What I tried: - make ...
android-recyclerview
0
2016-06-17T11:13:33.067Z
2,016
6
11
4
65
1
556
69
1
0
false
false
false
false
false
false
zero
37,989,993
Create a file in Android with certain permission
<p>I'm developing an Android application I have to implement a function that create a folder with different files.</p> <p>I wish the files in the folders were hidden, and this point is not a problem, but I want assign certain permission to files, for example I need that files are not readable / writable by user but on...
I'm developing an Android application I have to implement a function that create a folder with different files. I wish the files in the folders were hidden, and this point is not a problem, but I want assign certain permission to files, for example I need that files are not readable / writable by user but only from app...
android|file-permissions|android-permissions
0
2016-06-23T11:12:05.583Z
2,016
6
11
3
65
1
474
48
3
1
true
false
false
false
false
false
zero
38,056,618
Making a custom menu, with an unknown number of items
<p>I have created XML code for how I'd like each element of the menu to look (this is for one element):</p> <pre><code>&lt;RelativeLayout android:layout_width="match_parent" android:layout_height="100dp" android:background="@drawable/background_border" android:padding="10dp"&gt; &lt;TextView ...
I have created XML code for how I'd like each element of the menu to look (this is for one element): [CODE] However there is an unknown number of items in the menu, so how would I generate this code in a class for n number of items in the menu? Could I maybe put it in a file and call the file when it's needed repeatedl...
android|android-layout
1
2016-06-27T14:29:40.393Z
2,016
6
14
0
65
1
340
53
2
1
true
false
false
false
false
false
low
37,648,342
alt beacon cordova not detecting beacons
<p>I have a native Android SDK that uses the latest AltBeacon library. I use my SDK within several Apps to detect beacons and perform business logic.</p> <p>I now need to include my SDK within a Android Cordova app but it does not detect any beacons. (It does work within an iOS Cordova app). This is probably due to th...
I have a native Android SDK that uses the latest AltBeacon library. I use my SDK within several Apps to detect beacons and perform business logic. I now need to include my SDK within a Android Cordova app but it does not detect any beacons. (It does work within an iOS Cordova app). This is probably due to the Bluetooth...
android|cordova|altbeacon
0
2016-06-06T01:10:25.640Z
2,016
6
1
0
321
1
562
40
3
0
false
false
false
false
false
false
zero
37,701,272
Removing MediaPlayer's Log call using proguard
<p>I'm trying to remove all logs from my final signed apk with proguard. Everything works fine, but MediaPlayer still shows its error log. I spent two days trying to solve that issue and I didn't find any solution neither to solve this error, nor to delete this error message from the logs. The error in logcat:</p> <pr...
I'm trying to remove all logs from my final signed apk with proguard. Everything works fine, but MediaPlayer still shows its error log. I spent two days trying to solve that issue and I didn't find any solution neither to solve this error, nor to delete this error message from the logs. The error in logcat: [CODE] My c...
android|android-mediaplayer|proguard|android-videoview
1
2016-06-08T11:29:55.830Z
2,016
6
11
2
321
1
1,236
46
4
3
true
false
false
false
false
false
low
37,883,657
How to convert Android code to C in Android NDK
<p>I am trying to convert this Android code in C. I want to do this part in C NDK. Here is what I have tried so far. I am not able to convert <code>getPixel()</code> and <code>setPixel()</code> method of android. Please see the code below.</p> <pre><code>JNIEXPORT jobject JNICALL Java_com_test_mypic_StylePreviewActivi...
I am trying to convert this Android code in C. I want to do this part in C NDK. Here is what I have tried so far. I am not able to convert getPixel() and setPixel() method of android. Please see the code below. [CODE] With the help of @Serhio I wrote this method. But it seems something wrong in here. [CODE]
android|c|android-ndk
1
2016-06-17T14:04:35.570Z
2,016
6
14
4
321
1
308
47
3
2
true
false
false
false
false
false
low
37,695,326
How to add N-level of Expandable menu in NavigationView android?
<p>In my app I want to add N-level of expandable <code>Menu</code> in <code>NavigationView</code> like Paytm app screenshot is given below. I have tried to add <code>ExpandableListView</code> but didn't understand How to add N-level of expandable menu in <code>NavigationView</code> using <code>ExpandableListView</code>...
In my app I want to add N-level of expandable Menu in NavigationView like Paytm app screenshot is given below. I have tried to add ExpandableListView but didn't understand How to add N-level of expandable menu in NavigationView using ExpandableListView If someone know this how to do this then please help me. I try from...
android|expandablelistview|android-navigationview
7
2016-06-08T06:58:07.373Z
2,016
6
6
2
833
1
398
64
3
0
false
false
false
false
false
false
medium
37,830,027
"is package not installed?" exception for project have different build variants
<p>I have a question. When project is run, I rarely get fatal exception. I have two different android applications in the same project for different build variants. But their package name are different. In manifest file, my first application's package name is written. I rarely get fatal exception, when I run my second ...
I have a question. When project is run, I rarely get fatal exception. I have two different android applications in the same project for different build variants. But their package name are different. In manifest file, my first application's package name is written. I rarely get fatal exception, when I run my second pro...
android|build|package|android-manifest|android-variants
1
2016-06-15T08:29:10.320Z
2,016
6
8
2
833
1
358
79
5
1
true
false
false
false
false
false
low
38,048,110
Android Bluetooth connection using createInsecureRfcommSocketToServiceRecord without MAC address
<p>I am creating an application for communicating Android mobile devices with Bluetooth beacons. I have successfully achieved this between one beacon (which acts as a client) and one android mobile device (acts as the server, listening for the connection). Please find the code snippet below, </p> <p><strong>Client app...
I am creating an application for communicating Android mobile devices with Bluetooth beacons. I have successfully achieved this between one beacon (which acts as a client) and one android mobile device (acts as the server, listening for the connection). Please find the code snippet below, Client app [CODE] Server app [...
android|bluetooth|mac-address|rfcomm|beacon
0
2016-06-27T07:25:31.930Z
2,016
6
7
0
1,089
1
868
96
5
2
true
false
false
false
false
false
zero
37,737,281
Phonegap build: How to explicitly ask for permissions?
<p>I am building a hybrid app for Android and iOS, and using phonegap build cli-5.2.0</p> <p>I am using a camera plugin</p> <pre><code>&lt;plugin name="cordova-plugin-camera" source="npm" spec="2.2.0" /&gt; </code></pre> <p>I have this line specified in my config.xml</p> <pre><code>&lt;preference name="permissions"...
I am building a hybrid app for Android and iOS, and using phonegap build cli-5.2.0 I am using a camera plugin [CODE] I have this line specified in my config.xml [CODE] And I notice that on my android device, it only asks for read/write access of USB storage. When using the camera to take a photo, android doesn't ask fo...
android|cordova|permissions|phonegap-build
3
2016-06-09T22:35:23.877Z
2,016
6
22
3
1,601
1
673
54
4
2
true
false
false
false
false
false
low
38,052,825
Is there a way to get specific permissions for debugging in android?
<p>I made an application that will, on release, write and manage a database on the internal storage, because it doesn't really need to write to the sd card</p> <p>However while debugging I would like to be able to write on the sd card so I can view and edit the database for testing purposes.</p> <p>Is there a way to ...
I made an application that will, on release, write and manage a database on the internal storage, because it doesn't really need to write to the sd card However while debugging I would like to be able to write on the sd card so I can view and edit the database for testing purposes. Is there a way to define in AndroidMa...
android|debugging|permissions
8
2016-06-27T11:30:59.737Z
2,016
6
11
0
2,881
1
710
68
3
1
true
false
true
false
false
false
medium
38,022,709
Android: Refresh current fragment after language change
<p>So my <code>MainActivity</code> has a navigation drawer with a set of fragments. </p> <p>On top of the nav bar, I have 2 flags which represent a language. If an user clicks on a language, the app changes the language of the whole app.</p> <p>Everything is working smoothly (activity refreshes, navigation drawer and...
So my MainActivity has a navigation drawer with a set of fragments. On top of the nav bar, I have 2 flags which represent a language. If an user clicks on a language, the app changes the language of the whole app. Everything is working smoothly (activity refreshes, navigation drawer and all fragments get translated) bu...
java|android|android-fragments|layout|refresh
2
2016-06-24T22:01:01.270Z
2,016
6
22
4
4,673
1
527
55
5
0
false
false
true
false
false
false
low
37,711,738
How do I fix Android Studio 2.2 failing to recognise jar?
<p>I've recently upgraded from Studio 2.1 to 2.2, and in a project I have some library dependencies, brought in with good old:</p> <pre><code>compile fileTree(include: ['*.jar'], dir: 'libs') </code></pre> <p>In Studio 2.1, all of the jars work perfectly. But for some reason, in 2.2, one of the jars doesn't seem to b...
I've recently upgraded from Studio 2.1 to 2.2, and in a project I have some library dependencies, brought in with good old: [CODE] In Studio 2.1, all of the jars work perfectly. But for some reason, in 2.2, one of the jars doesn't seem to be recognised by the IDE - it doesn't have the expanding triangle next to it, and...
android|android-studio|android-studio-2.2
0
2016-06-08T19:54:32.480Z
2,016
6
19
2
66
1
815
57
3
1
true
false
false
false
false
false
zero
37,786,499
How to Stop Method Handler?
<p>How to stop method this, i need when i'm get latitude and longitude this method stop.</p> <pre><code>private final Runnable r = new Runnable() { public void run() { gps = new GPSTracker(MainMaps.this); if (gps.canGetLocation()) { latitude = gps.getLatitude(); longitude =...
How to stop method this, i need when i'm get latitude and longitude this method stop. [CODE]
android|methods
-1
2016-06-13T09:45:10.963Z
2,016
6
9
0
66
1
92
27
2
1
true
false
false
false
false
true
negative
37,829,579
FileNotFoundEception in FileInputStream in android
<p>In my MainActivity class in onResume method I start writeFile method. The class which contains the method:</p> <pre><code>public class CacheFile { private static final String TAG = "CacheFile"; private static final String mFileName="cachefile.txt"; private static File file; //Write data into the file public stati...
In my MainActivity class in onResume method I start writeFile method. The class which contains the method: [CODE] The first I readFile and add the information for writing but when I try to read file I get FileNotFoundException in line: [CODE] Why?
android|file-io|filenotfoundexception
0
2016-06-15T08:07:06.310Z
2,016
6
8
2
66
1
247
50
3
2
true
false
false
false
false
false
zero
37,839,897
How to move up layout when show soft key board
<p>Im have problem with login page. in wanna layout move up when touch input data in Edittext. Im try many way but it not working. Who can help me reslove it? .really i dont know how to code it work. thanks. </p>
Im have problem with login page. in wanna layout move up when touch input data in Edittext. Im try many way but it not working. Who can help me reslove it? .really i dont know how to code it work. thanks.
android|keyboard|android-softkeyboard
0
2016-06-15T15:37:38.690Z
2,016
6
15
2
66
1
204
46
3
0
false
false
false
false
false
false
zero
37,841,772
How can I send an email in android app?
<p>How can I send an email in android app to a static recipient </p> <pre><code>&lt;EditText android:id="@+id/from" android:drawableStart="@drawable/ic_settings_phone_black_24dp" android:drawableLeft="@drawable/ic_settings_phone_black_24dp" android:layout_width="match_parent" ...
How can I send an email in android app to a static recipient [CODE] Can you help me please thanks in advance
android
1
2016-06-15T17:14:55.427Z
2,016
6
17
2
66
1
108
39
1
1
true
false
false
false
false
false
low
37,954,345
getting zero objects from BackendlessUser getProperty()
<p>I've setup Backendless app, with <code>User</code> table having row name <code>posts</code>, which is data object relationship between <code>User</code> and <code>Post</code> tables, data relation is 1 to many. When I try to retrieve it using <code>BackendlessUser.getProperty("key")</code>, it returns zero objects. ...
I've setup Backendless app, with User table having row name posts , which is data object relationship between User and Post tables, data relation is 1 to many. When I try to retrieve it using BackendlessUser.getProperty("key") , it returns zero objects. Once it even returned HashMap . I used the way mentioned in the th...
java|android|backendless
1
2016-06-21T20:51:00.170Z
2,016
6
20
1
66
1
481
55
3
2
true
false
false
false
false
false
low
38,026,234
Location mocking - google map detects the movement but my own application not triggering location change
<p>I am facing a strange issue. I modified official mock provider source code provided by google to mock some route for my application.</p> <p>Using this code. </p> <pre><code>mockLocation.setElapsedRealtimeNanos(elapsedTimeNanos); mockLocation.setTime(currentTime); //...
I am facing a strange issue. I modified official mock provider source code provided by google to mock some route for my application. Using this code. [CODE] Google map detects this movement but my application is not getting location updates any idea?
java|android|android-studio|mocking|location
0
2016-06-25T07:47:58.097Z
2,016
6
7
5
66
1
250
104
5
1
true
false
false
false
false
false
zero
37,645,502
Sample code "FragmentBasic" from developer.android.com not working as it should
<p>I'm trying to run sample code from: <a href="https://developer.android.com/training/basics/fragments/communicating.html" rel="nofollow">developer.android.com/fragments</a></p> <p>On smartphone it works fine, but on tablets crashes.</p> <p>The problem is in <code>ArticleFragment.java</code> in lines:</p> <pre><cod...
I'm trying to run sample code from: developer.android.com/fragments On smartphone it works fine, but on tablets crashes. The problem is in ArticleFragment.java in lines: [CODE] Method getActivity() returns proper activity, but findViewById returns null on large screens, so app crashes trying to call setText() on null ....
android|android-fragments
1
2016-06-05T18:44:30.433Z
2,016
6
18
6
322
1
394
79
2
1
true
false
false
false
false
false
low
37,707,800
Mocking camera Intent for layerhq/atlas
<p>I am trying to mock camera intent to send image during chat using <a href="https://github.com/layerhq/Atlas-Android" rel="nofollow">layerhq/Atlas-Andorid</a>. The following piece of code for mocking camera intent using espresso works fine, except on Atlas which throws file does not exist error (reason explained belo...
I am trying to mock camera intent to send image during chat using layerhq/Atlas-Andorid . The following piece of code for mocking camera intent using espresso works fine, except on Atlas which throws file does not exist error (reason explained below). [CODE] Here is the layer-atlas code for camera intent. [CODE] The pr...
android-testing|android-espresso
1
2016-06-08T16:16:37.017Z
2,016
6
16
2
578
1
468
39
2
4
true
false
false
false
false
false
low
37,956,421
How to extract specific color from Project Tango point cloud data?
<p>I wanted to use Tango's RGB camera along with its Depth data to create a specific point cloud involving only one color, but I'm not sure how to approach this. </p> <p>What i want to do is ultimately re-construct an object in blender based on it's XYZ value and the way I'm trying to extract this object from its back...
I wanted to use Tango's RGB camera along with its Depth data to create a specific point cloud involving only one color, but I'm not sure how to approach this. What i want to do is ultimately re-construct an object in blender based on it's XYZ value and the way I'm trying to extract this object from its background is ba...
java|android|blender|google-project-tango|point-clouds
0
2016-06-21T23:55:09.250Z
2,016
6
23
1
578
1
410
66
5
0
false
false
false
false
false
false
zero
37,607,072
android app button thats save the predefined contact to address book
<p>I need to add contact button in app, if user clicks on that a contact is stored in the user address book, with or without prompt.</p> <pre><code>Name:- sharukh khan website:- www.google.com Phone:- 9999999999 Phone:- 8888888888 email:- s@p.com skype:- linkedin:- etc </code></pre> <p>can anyone help? thanks ...
I need to add contact button in app, if user clicks on that a contact is stored in the user address book, with or without prompt. [CODE] can anyone help? thanks naina
java|android|android-studio
-2
2016-06-03T06:10:11.853Z
2,016
6
6
4
67
1
166
68
3
1
true
false
false
false
false
true
negative
37,714,514
Any "Google Keyboard" Whisperers out there? API19
<p>I'm having what seems to be an odd problem, and I'd greatly appreciate any suggestions which might help.</p> <p>I'm trying to achieve due diligence by testing on a variety of screen form factors, but I'm having a problem when it comes to the default ( AKA Google ) keyboard on an emulated Nexus 4 using API level 19....
I'm having what seems to be an odd problem, and I'd greatly appreciate any suggestions which might help. I'm trying to achieve due diligence by testing on a variety of screen form factors, but I'm having a problem when it comes to the default ( AKA Google ) keyboard on an emulated Nexus 4 using API level 19. AFAIK, acc...
android|android-softkeyboard|nexus-4
3
2016-06-08T23:21:49.420Z
2,016
6
23
2
67
1
3,304
49
3
2
true
false
false
false
false
false
low
37,797,197
set new image when click a cell of gridview in android
<p><strong>hey , how i can change the image of the cell i clicked in the grid view , what i should add to this code to show new image for example image"boxb" in the place of the image inserted before in the prgmImages list:</strong></p> <p><strong>my custom adapter for the gridview "CAdapter" :</strong></p> <pre><cod...
hey , how i can change the image of the cell i clicked in the grid view , what i should add to this code to show new image for example image"boxb" in the place of the image inserted before in the prgmImages list: my custom adapter for the gridview "CAdapter" : [CODE] the Activity who use the gridview "Level1": [CODE]
android|gridview
1
2016-06-13T18:57:39.160Z
2,016
6
18
0
67
1
318
54
2
2
true
false
false
false
false
false
low
37,928,789
How to remember image path which applies to imageview box
<p>Iam developing a simple app in which a button is pressed to choose image from gallery which applies to image view box but problem is how to remember the image path that whenever i exit and reopens app the same image should appears in image view box.</p> <p><a href="https://i.stack.imgur.com/Oz7uC.jpg" rel="nofollow...
Iam developing a simple app in which a button is pressed to choose image from gallery which applies to image view box but problem is how to remember the image path that whenever i exit and reopens app the same image should appears in image view box. [CODE]
android|imageview|gallery
0
2016-06-20T17:51:11.370Z
2,016
6
17
0
67
1
256
57
3
1
true
false
false
false
false
false
zero
37,952,751
Load Image from web using AsyncTask
<p>new to Android dev. The app is a really simple one, click a button to load an image from online using AsyncTask and fragments, but I still can't get it not to default to a null image (the image is definitely online). The Internet permission has been set in the Manifest and the button and ImageView have been declared...
new to Android dev. The app is a really simple one, click a button to load an image from online using AsyncTask and fragments, but I still can't get it not to default to a null image (the image is definitely online). The Internet permission has been set in the Manifest and the button and ImageView have been declared on...
java|android|android-asynctask
0
2016-06-21T19:12:19.350Z
2,016
6
19
1
67
1
460
35
3
1
true
false
false
false
false
false
zero
37,662,420
minimum amount of android sdk files needed to build a release apk from command line
<p>I have the android SDK installed on a aws Ubuntu server (14.04). I have a ruby application which builds an APK and it is working fine on my development environment.</p> <p>However the android SDK is very large and has taken up half of the space i have availible on the server (4Gb)</p> <p>All i need from the sdk is...
I have the android SDK installed on a aws Ubuntu server (14.04). I have a ruby application which builds an APK and it is working fine on my development environment. However the android SDK is very large and has taken up half of the space i have availible on the server (4Gb) All i need from the sdk is to have it run is:...
android|gradle|android-gradle-plugin|android-sdk-tools|android-build
-1
2016-06-06T16:25:52.283Z
2,016
6
16
0
323
1
643
83
5
3
true
false
false
false
false
true
negative
37,957,039
Parse Android fails to download image with a moved permanently error
<p>I am getting the following exception when trying to download a ParseFile using <code>getData()</code> method.</p> <pre><code>com.parse.ParseException: Download from S3 failed. Moved Permanently at com.parse.ParseAWSRequest.onResponseAsync(ParseAWSRequest.java:43) at com.parse.ParseRequest$3.then(ParseRequest.ja...
I am getting the following exception when trying to download a ParseFile using getData() method. [CODE] The ParseFile is a jpg which is uploaded and then put into a ParseObject called ImageObject . The ImageObject has several other parameters like caption, width, height which upload and download correctly. The image it...
android|nginx|parse-platform|parse-server|parse-android-sdk
0
2016-06-22T01:18:23.757Z
2,016
6
1
2
323
1
1,232
68
5
3
true
false
false
false
false
false
zero
37,994,737
Android SQlite update just not working, without error
<p>I wrote some codes using <a href="http://www.androidhive.info/2011/11/android-sqlite-database-tutorial/" rel="nofollow">this example</a> to save and update 2 long values in <strong>SQlite</strong>. I can create new row however I can't update it. I try everything which I can but I couldn't update a row and there is n...
I wrote some codes using this example to save and update 2 long values in SQlite . I can create new row however I can't update it. I try everything which I can but I couldn't update a row and there is no error just not update row. I am using this code to update a row: [CODE] which both consumed and total are long value...
java|android|android-sqlite
3
2016-06-23T14:36:52.053Z
2,016
6
14
3
1,859
1
515
53
3
3
true
false
false
false
false
false
low
37,624,307
Can i just use this library?
<p>Sorry if this sounds stupid but i dont normally use seperate libraries in andorid. I wanted to add a calendar to my app however i could not find a way to implement a day view calendar that looked nice. I found this library that looked like it would be useful at the bottom of the github it had a Apache License Versio...
Sorry if this sounds stupid but i dont normally use seperate libraries in andorid. I wanted to add a calendar to my app however i could not find a way to implement a day view calendar that looked nice. I found this library that looked like it would be useful at the bottom of the github it had a Apache License Version 2...
android|calendar|libraries
0
2016-06-03T22:24:09.600Z
2,016
6
22
4
68
1
802
28
3
0
false
false
false
false
false
false
zero
37,632,045
AndroidStudio order mixed up when using Intents to open Activities
<p>In my app I have 3 activities: LoginPage RegisterActivity TeacherRegistration</p> <p>I have a button in LoginPage activity that when I press it , the RegisterActvity is open and I implement this by creating Intent and start it when the button is presses. So far so good, the problem started when I added another butt...
In my app I have 3 activities: LoginPage RegisterActivity TeacherRegistration I have a button in LoginPage activity that when I press it , the RegisterActvity is open and I implement this by creating Intent and start it when the button is presses. So far so good, the problem started when I added another button in my Re...
android|android-studio|android-intent
-1
2016-06-04T15:39:04.480Z
2,016
6
15
5
68
1
801
66
3
4
true
false
false
false
false
true
negative
37,639,459
LinearLayout not scrolling after adding elements Dynamically
<p>This is my xml file</p> <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="www.oditorium.net.material_design_beta.fragment_layout3"&gt; &lt;Scro...
This is my xml file [CODE] I am adding elements to LinearLayout dynamically in the code.But the page is not scrolling.
scroll|android-linearlayout
1
2016-06-05T07:22:38.750Z
2,016
6
7
6
68
1
118
60
2
1
true
false
false
false
false
false
low
37,663,078
Android-Error messages with intent within Adapter
<p>I am trying to get the maps intent working within my Json Adapter. But somehow I am always getting the Error message : </p> <blockquote> <p>java.lang.NullPointerException: Attempt to invoke virtual method 'void android.content.Context.startActivity(android.content.Intent)' on a null object reference</p> </blockqu...
I am trying to get the maps intent working within my Json Adapter. But somehow I am always getting the Error message : java.lang.NullPointerException: Attempt to invoke virtual method 'void android.content.Context.startActivity(android.content.Intent)' on a null object reference This is my second Android Project and I ...
java|android|android-intent
0
2016-06-06T17:03:31.553Z
2,016
6
17
0
68
1
386
49
3
1
true
false
false
false
false
false
zero
37,824,844
How to make an Android application to run some UI element above other application?
<p>Sorry if the title is it's not self explanatory. </p> <p>I'm trying to make an application that can interact with other ones by adding them a graphic element in their UI.</p> <p>Just like Google does with Google Translate new function. You can see a graphic example here: <a href="http://cdn1.tnwcdn.com/wp-content...
Sorry if the title is it's not self explanatory. I'm trying to make an application that can interact with other ones by adding them a graphic element in their UI. Just like Google does with Google Translate new function. You can see a graphic example here: EXAMPLE GIVEN My questions are: Is that even possible? (I guess...
java|android
2
2016-06-15T01:53:47.093Z
2,016
6
1
2
68
1
494
82
2
0
false
false
false
false
false
false
low
37,955,798
Aligning columns headings on custom listview checkboxes
<p>I'm using a tablelayout where each row has a number of checkboxes, and am using a custom adapter. The columns do expand evenly across the screen. On the parent layout I also have a series of "check/uncheck all" type checkboxes and they line up perfectly with the listview checkboxes. My issue is that I can't get co...
I'm using a tablelayout where each row has a number of checkboxes, and am using a custom adapter. The columns do expand evenly across the screen. On the parent layout I also have a series of "check/uncheck all" type checkboxes and they line up perfectly with the listview checkboxes. My issue is that I can't get column ...
android|listview|checkbox|tablelayout
0
2016-06-21T22:44:50.943Z
2,016
6
22
1
68
1
1,064
55
4
3
true
false
false
false
false
false
zero
37,962,767
Android: trouble in understanding wifi receiver and adapter concepts used to scan WiFi APs and list them in listview
<pre><code>public class MainActivity extends AppCompatActivity implements View.OnClickListener, CompoundButton.OnCheckedChangeListener{ // Declare View variables private Button mRefreshButton; private Switch mWifiSwitch; private ListView mAPListView; private List&lt;ScanResult&gt; mWifiList; private List&lt;String&gt;...
[CODE] } I am extremely new to Android development and simply building an android app to scan available APs and list them. However, I am having a trouble in understanding concepts and usages of adapter and wifi receiver which are used most for building those functionalities. Would you help me out what I should do to ac...
android|adapter|android-adapter|android-wifi|wifimanager
1
2016-06-22T08:39:49.970Z
2,016
6
8
2
68
1
392
116
5
1
true
false
false
false
false
false
low
38,037,708
Why my timer reset button works erroneuosly in timer app?
<p>I am relatively new to android. I thought creating a simple app like a timer would be a great way to start.</p> <p>I managed to create my simple timer app, but I ran into an issue.</p> <p>I got my app to start and pause, but I can't figure out how to reset it back to &quot;00:00:00&quot;. I tried the following on li...
I am relatively new to android. I thought creating a simple app like a timer would be a great way to start. I managed to create my simple timer app, but I ran into an issue. I got my app to start and pause, but I can't figure out how to reset it back to &quot;00:00:00&quot;. I tried the following on lines 56-59 in my J...
java|android
2
2016-06-26T10:48:08.557Z
2,016
6
10
6
68
1
1,037
57
2
3
true
false
false
false
false
false
low
38,030,967
Android service run multiple
<p>This is my service code:</p> <pre><code>public class MyCustomService extends Service { public static final String INPUT_TEXT="INPUT_TEXT"; public static final String OUTPUT_TEXT="OUTPUT_TEXT"; private volatile HandlerThread mHandlerThread; private ServiceHandler mServiceHandler; public Socket client; // ... // De...
This is my service code: [CODE] And I run it from activity this code in onCreate: [CODE] My problem is that every time I enter main Activity and it run service twice or 3 or 4 times so when I receive new message by socket it's received same message three or four times.
android|android-service|android-service-binding
0
2016-06-25T17:15:07.047Z
2,016
6
17
5
324
1
269
28
3
2
true
false
false
false
false
false
zero
37,816,851
Webview load my html page that containing webservices but these are not shown
<p>First of all excuse my English</p> <p>I'm making an android application containing fragments and these in turn show a webview . The webview loads a html page and this called a webservices . Webservices are not being charged by the application but they work correctly in the html.</p> <p>(I'm using a host) (Webservi...
First of all excuse my English I'm making an android application containing fragments and these in turn show a webview . The webview loads a html page and this called a webservices . Webservices are not being charged by the application but they work correctly in the html. (I'm using a host) (Webservices are Json) Here ...
android|json|web-services|android-studio|webview
0
2016-06-14T15:55:57.277Z
2,016
6
15
1
580
1
467
77
5
3
true
false
false
false
false
false
zero
37,704,081
Implements ViewHolder on a ListView AndroidStudio
<p>I need help to implements a ViewHolder to my ListView please.</p> <pre><code>... ListAdapter adapter = new ArrayAdapter&lt;&gt;(this, android.R.layout.simple_list_item_1, array_spinner);//Inserisco le possibilita mylist = (ListView) findViewById(R.id.listView1); mylist.setAdapte...
I need help to implements a ViewHolder to my ListView please. [CODE] Can someone please help me ?
android|listview
0
2016-06-08T13:35:26Z
-1
-1
-1
-1
836
1
97
49
2
1
true
false
false
false
false
false
zero
37,792,617
Can't enable cookie in android webview
<p>My javascript is running in a webview on android device. And I want to use cookie in the webview to save some user information. Below is my java code: </p> <pre><code>private WebView webView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); ...
My javascript is running in a webview on android device. And I want to use cookie in the webview to save some user information. Below is my java code: [CODE] with the above code my javascript couldn't read or set anything on the cookies. I have used below code to enable cookie but it doesn't work. [CODE] When I run my ...
javascript|android|cookies|reactjs|webview
1
2016-06-13T14:39:26.107Z
2,016
6
14
0
1,860
1
410
38
5
2
true
false
false
false
false
false
low
37,957,689
Android contact picker: pick phone or email
<p>Is it possible for the android contact picker to show a list of phone numbers &amp; email address, and the user can select either a phone or an email.</p> <p>I've tried the following Intents:</p> <pre><code>Intent.ACTION_PICK, Contacts.CONTENT_URI // - selects the entire contact Intent.ACTION_PICK, Phone.CONTENT_U...
Is it possible for the android contact picker to show a list of phone numbers & email address, and the user can select either a phone or an email. I've tried the following Intents: [CODE]
android|email|android-contacts|phone-number|picker
2
2016-06-22T02:48:31.553Z
2,016
6
2
2
1,860
1
187
43
5
1
true
false
false
false
false
false
low
37,827,846
Xamarin Android round corner border with color ImageView
<p>I am rendering GridView with custom layout using BaseAdapter. My view contains ImageView and TextView below ImageView. For ImageView I want to set rounded corner border with black color. </p> <p>I tried few suggestions from community answers. </p> <ol> <li>Create drawable with rounded border and set it as backgrou...
I am rendering GridView with custom layout using BaseAdapter. My view contains ImageView and TextView below ImageView. For ImageView I want to set rounded corner border with black color. I tried few suggestions from community answers. Create drawable with rounded border and set it as background to ImageView. Wrap Image...
android|xamarin.android|android-imageview
1
2016-06-15T06:41:35.333Z
2,016
6
6
2
2,628
1
1,189
56
3
3
true
false
true
false
false
false
low
37,907,129
Unable to Start adb server with start-server command on windows
<p>I am beginner in android development and i am unable to start ADB server i am getting the below mention error</p> <pre><code>E:\ANDRIOD\sdk\platform-tools&gt;adb start-server * daemon not running. starting it now on port 5037 * error: Invalid argument: cannot open transport registration socketpair could not read...
I am beginner in android development and i am unable to start ADB server i am getting the below mention error [CODE] i have tried restarting the windows and my sdk platforms tools are also updated to version 24 and sdk tools to ver 25.1.7 Thanks in advance
android|adb
2
2016-06-19T12:16:08.653Z
2,016
6
12
6
6,212
1
256
63
2
1
true
false
true
false
false
false
low
37,662,377
HTTPRequest() Error: This address cannot be used to locate server
<p>I'm trying to send information to a non WinDev server from a WM Android app by HTTPRequest() function when I get an error "This address cannot be used to locate server".</p> <p>I made the call in this way.</p> <pre><code>lOk = HTTPRequest (cUrl, "", "", CDATA) </code></pre> <p>For testing I have 3 packages of dif...
I'm trying to send information to a non WinDev server from a WM Android app by HTTPRequest() function when I get an error "This address cannot be used to locate server". I made the call in this way. [CODE] For testing I have 3 packages of different data, two weighing less than 2MB and one that weighs 23MB, the error on...
android|windev
0
2016-06-06T16:23:29.213Z
2,016
6
16
0
69
1
423
65
2
1
true
false
false
false
false
false
zero
37,670,958
Appcelerator , can not change tabsBackgroundColor in android
<p>The attribute tabsBackgroundColor in tagGroup tag not working on android</p> <pre><code> &lt;TabGroup tabsBackgroundColor="#a466a3"&gt; </code></pre> <p>and backgroundColor not working too , although it is written in the documentation <a href="http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TabG...
The attribute tabsBackgroundColor in tagGroup tag not working on android [CODE] and backgroundColor not working too , although it is written in the documentation http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TabGroup
android|titanium|appcelerator
0
2016-06-07T05:10:56.057Z
2,016
6
5
1
69
1
234
60
3
1
true
false
false
false
false
false
zero
37,746,094
New Permission System (Integration of Location)
<p>This is my first question here. I study computer science and am trying to improve my skills in android development. Therefore I wanted to make a simple weather app. I am not used to the new permission system of android 6.0, so I need your help. </p> <p>I always have the problem, that the log is telling me, that the...
This is my first question here. I study computer science and am trying to improve my skills in android development. Therefore I wanted to make a simple weather app. I am not used to the new permission system of android 6.0, so I need your help. I always have the problem, that the log is telling me, that there is no loc...
android|android-studio|location|weather-api
-1
2016-06-10T10:37:14.350Z
2,016
6
10
4
69
1
657
47
4
1
true
false
false
false
false
true
negative
37,932,809
How do I clear the SharedPreferences or other permanent storage of my Android app from my app program?
<p>I need to retain some information so that I can access it when I launch my app after it is closed. I need to use that information on 'onCreate()' of my 'MainActivity'. But I need to clear/reset those information if the mobile is rebooted. So how do I know in the program if the mobile has been rebooted and the activi...
I need to retain some information so that I can access it when I launch my app after it is closed. I need to use that information on 'onCreate()' of my 'MainActivity'. But I need to clear/reset those information if the mobile is rebooted. So how do I know in the program if the mobile has been rebooted and the activity ...
android|mobile-application
1
2016-06-20T22:26:01.910Z
2,016
6
22
0
69
1
364
102
2
0
false
false
false
false
false
false
low
37,733,514
How to pass an imagebutton as an argument to a function in android studio?
<p>I have some imagebuttons in my application that the image they show is determined in the code (they are not supposed to respond to touch/click). How can I pass an imagebutton as an argument to a function in android studio? I am doing it like this:</p> <pre><code>private void compute_progress() { ... progres...
I have some imagebuttons in my application that the image they show is determined in the code (they are not supposed to respond to touch/click). How can I pass an imagebutton as an argument to a function in android studio? I am doing it like this: [CODE] But I should and want to do it this way: [CODE]
java|android|function|imagebutton
1
2016-06-09T18:23:31.657Z
2,016
6
18
3
325
1
302
74
4
2
true
false
false
false
false
false
low
37,737,087
Android Nexus 6 Camera ignoring EXTRA_VIDEO_QUALITY
<p>I am calling the Camera on Nexus 6 like this:</p> <pre><code>Intent videoIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); videoIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 0); // Low Quality videoIntent.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(currentPath)); startActivityForResult(videoIntent, REQUEST...
I am calling the Camera on Nexus 6 like this: [CODE] But no matter what I set the value of MediaStore.EXTRA_VIDEO_QUALITY to be it always take a high quality video (a 5 second video is always about ~8 MB) Other devices and camera apps work as expected, it only started to happen I think with the upgrade to Android 6.0. ...
android|android-camera
1
2016-06-09T22:16:54.073Z
2,016
6
22
3
325
1
412
51
2
1
true
false
false
false
false
false
low
37,697,619
Get specific true coordinates of the Bitmap inside an ImageView
<p>I have an <code>custom ImageView</code> which i <code>setBitmap()</code> to , the <code>Bitmaps</code> are all with <code>dimensions of 800x600</code> .</p> <p>i set up on touch event which i draw rectangles on top of the view , and later on i want to take these rectangle coordinates and send them back to the serv...
I have an custom ImageView which i setBitmap() to , the Bitmaps are all with dimensions of 800x600 . i set up on touch event which i draw rectangles on top of the view , and later on i want to take these rectangle coordinates and send them back to the server for update. the problem is that the event.getX and event.getY...
android|android-layout|bitmap|android-drawable
0
2016-06-08T08:49:40.223Z
2,016
6
8
2
581
1
556
63
4
2
true
false
false
false
false
false
zero
37,787,666
Ignore one url in linkify
<p>I have a textview that I currently match for links with:</p> <pre><code>Linkify.addLinks(holder.tvMessage, Linkify.ALL); </code></pre> <p>However, now I want to match everything (phonenumbers, emails, urls) except one particulat url, <a href="http://dontmatch.com" rel="nofollow">http://dontmatch.com</a>.</p> <p>I...
I have a textview that I currently match for links with: [CODE] However, now I want to match everything (phonenumbers, emails, urls) except one particulat url, http://dontmatch.com . I have tried subsequent calls such as: [CODE] But it seems that each call overrides the links of the previous just leaving the links of t...
android|linkify
1
2016-06-13T10:43:03.997Z
2,016
6
10
0
581
1
587
25
2
3
true
false
false
false
false
false
low
38,013,664
Getting INSTALL_FAILED_CONFLICTING_PROVIDER error
<p>I am using 2 product flavors. Gradle code is:</p> <pre><code>productFlavors { app1 { applicationId "com.xxx.app1" } app2 { applicationId "com.xxx.yyy.app2" versionCode 2 versionName "1.0.1" } } </code></pre> <p>and it is giving INSTALL_FAILED_CONFLICTING_PROVIDER err...
I am using 2 product flavors. Gradle code is: [CODE] and it is giving INSTALL_FAILED_CONFLICTING_PROVIDER error. It was working before, and I could submit the app to Google Play How can I solve that? UPDATE: When I deleted app1 from device, I could install app2.
android|android-productflavors
1
2016-06-24T12:38:08.507Z
2,016
6
12
4
837
1
262
49
2
1
true
false
false
false
false
false
low
38,037,308
Android Studio Debugger connects and disconnects straight after
<p>I just started android programming in android studio. I want to test the debug function to see how it works, so I added a breakpoint. When I run the debugger it either says "Connecting to the target VM, address: 'localhost:860x*', transport: 'socket' (* last number of the port varies) OR it connects successfully and...
I just started android programming in android studio. I want to test the debug function to see how it works, so I added a breakpoint. When I run the debugger it either says "Connecting to the target VM, address: 'localhost:860x*', transport: 'socket' (* last number of the port varies) OR it connects successfully and di...
debugging|android-studio
1
2016-06-26T10:02:06.007Z
2,016
6
10
6
837
1
421
63
2
0
false
false
false
false
false
false
low
37,953,086
ArUco Axis Swap while drawing 3dAxis
<p>I'm currently trying to develop a ArUco cube detector for a project. The goal is to have a more stable and accurate pose estimation without using a large ArUco board. For this to work however, I need to know the orientation of each of the markers. Using the draw3dAxis method, I discovered that the X and Y axis did n...
I'm currently trying to develop a ArUco cube detector for a project. The goal is to have a more stable and accurate pose estimation without using a large ArUco board. For this to work however, I need to know the orientation of each of the markers. Using the draw3dAxis method, I discovered that the X and Y axis did not ...
java|android|opencv|pose-estimation|aruco
2
2016-06-21T19:33:02.243Z
2,016
6
19
1
1,093
1
1,139
36
5
2
true
false
false
false
false
false
low
37,728,912
MVVMCross ValueConverter Bool To MvxColor/Color
<p>i was trying to implement the ValueConverter for MVVMCross, but aparently it is not working as i would expect. So at the moment i just got another Property which does the conversion (MvxColor to TextColor) for me and bind it to my Layout. But ofc i would rather use the value converters, so maybe you have an idea wha...
i was trying to implement the ValueConverter for MVVMCross, but aparently it is not working as i would expect. So at the moment i just got another Property which does the conversion (MvxColor to TextColor) for me and bind it to my Layout. But ofc i would rather use the value converters, so maybe you have an idea what i...
c#|xamarin|xamarin.android|converter|mvvmcross
1
2016-06-09T14:34:13.520Z
2,016
6
14
3
1,605
1
665
47
5
4
true
false
false
false
false
false
low
37,684,995
Tracking in-app billing with Firebase
<p>After adding Firebase Analytics to my iOS and Android app the revenue of the iOS in-app purchases are automatically tracked in Firebase, but the Android in-app purchases are not.</p> <p>Do I have to write extra code for the Android version?</p>
After adding Firebase Analytics to my iOS and Android app the revenue of the iOS in-app purchases are automatically tracked in Firebase, but the Android in-app purchases are not. Do I have to write extra code for the Android version?
android|firebase|in-app-purchase|in-app-billing|firebase-analytics
11
2016-06-07T16:49:47.053Z
2,016
6
16
1
8,517
1
233
37
5
0
false
false
true
false
true
false
medium
37,808,829
Android app on Market - from trial version to full version without 2 apks
<p>I need to implement in my app: FULL Version (while trial) -> LITE Version (after trial period ends) -> FULL Version (if user pays using InApp Purchase).</p> <p>I want user will not have to Uninstall and re-install the Full app</p> <p>anyone have experience doing something similar?</p>
I need to implement in my app: FULL Version (while trial) -> LITE Version (after trial period ends) -> FULL Version (if user pays using InApp Purchase). I want user will not have to Uninstall and re-install the Full app anyone have experience doing something similar?
android|google-play
0
2016-06-14T09:58:54.697Z
2,016
6
9
1
70
1
267
73
2
0
false
false
false
false
false
false
zero
37,846,110
Android: On Click gradual visibility change
<p>I have got a little problem which is for me impossible to solve. I've got lots of TableRows called Radek_X and they are set to be <code>android:visibility="gone". </code>And I need that if you for the first time, click on button(there is only one button for that process) it will change Radek_1 to <code>android:visib...
I have got a little problem which is for me impossible to solve. I've got lots of TableRows called Radek_X and they are set to be android:visibility="gone". And I need that if you for the first time, click on button(there is only one button for that process) it will change Radek_1 to android:visibility="visible" if you...
java|android|button|visibility|tablerow
1
2016-06-15T21:29:36.433Z
2,016
6
21
2
70
1
578
43
5
1
true
false
false
false
false
false
low
37,904,206
NPE at adding Drawer Listener
<p>I am currently trying to program a small app, now I am trying to use a Navigation Drawer in my app. This does not work with the reason that I get a NPE at <code>drawer.addDrawerListener(toggle);</code>. Everything else seems to be fine as far as I can say and the app worked correctly till adding the drawer. Thx in a...
I am currently trying to program a small app, now I am trying to use a Navigation Drawer in my app. This does not work with the reason that I get a NPE at drawer.addDrawerListener(toggle); . Everything else seems to be fine as far as I can say and the app worked correctly till adding the drawer. Thx in advance. [CODE]
android|nullpointerexception|navigation-drawer
0
2016-06-19T05:25:06.253Z
2,016
6
5
6
70
1
319
29
3
1
true
false
false
false
false
false
zero
38,032,143
Keep valid reference of the current Activity
<p>I need to show some dialogs as debug in my app. The structure of the app itself is written so that it is easier to actually call and show the dialog from a static class with static methods. These methods all points toward a bigger method which eventually take care of the requests.</p> <p>What I'd like to achieve is...
I need to show some dialogs as debug in my app. The structure of the app itself is written so that it is easier to actually call and show the dialog from a static class with static methods. These methods all points toward a bigger method which eventually take care of the requests. What I'd like to achieve is to call an...
android|android-activity
1
2016-06-25T19:20:02.467Z
2,016
6
19
5
70
1
861
44
2
2
true
false
false
false
false
false
low
38,036,813
Reduce idle timeout after locking the screen
<p>I want to test a application in idle mode. So to do that i need to wait for the device to get into idle mode which is taking 20 mins in my android device. Here <code>idle mode</code> means after sometime of switching of the screen, the device will get it into one mode where the cpu will goes off and the network will...
I want to test a application in idle mode. So to do that i need to wait for the device to get into idle mode which is taking 20 mins in my android device. Here idle mode means after sometime of switching of the screen, the device will get it into one mode where the cpu will goes off and the network will be disabled for...
android
0
2016-06-26T08:55:55.847Z
2,016
6
8
6
70
1
640
44
1
0
false
false
false
false
false
false
zero
38,036,916
Can I use my USB OTG keyboard and the software keypad at the same time on my android phone?
<p>I am having a Lenovo Phab Plus running android lollipop and I was developing an app that reads an RFID tag, The RFID tag reader can be connected to the android device and it is treated like a usb otg keyboard. The problem is whenever I connect the RFID reader the phone's software keypad doesn't pop up, as the adroid...
I am having a Lenovo Phab Plus running android lollipop and I was developing an app that reads an RFID tag, The RFID tag reader can be connected to the android device and it is treated like a usb otg keyboard. The problem is whenever I connect the RFID reader the phone's software keypad doesn't pop up, as the adroid th...
android|keyboard|smartphone
0
2016-06-26T09:10:22.750Z
2,016
6
9
6
70
1
501
91
3
0
false
false
false
false
false
false
zero
38,037,068
native method not found when I change the package name
<p>In my project when I change my package name , I got following error. I surf the net but no useful data. In some case I found that my method shouldn't be static and when I remove static it set that this method must be static. any suggestion to solve this issue thanks in advance this is my error:</p> <p>Native meth...
In my project when I change my package name , I got following error. I surf the net but no useful data. In some case I found that my method shouldn't be static and when I remove static it set that this method must be static. any suggestion to solve this issue thanks in advance this is my error: Native method not found:...
java|android|java-native-interface|native
1
2016-06-26T09:33:24.947Z
2,016
6
9
6
70
1
354
54
4
2
true
false
false
false
false
false
low
37,708,248
Android Floating Action Button Behaviour with Adview
<p>I'm sorry if this has been already answered but it's been a while and I'm still searching. Since the FAB has a behaviour class you can assign to it which will work with scrolling inside a coordinator layout, I was wondering if it was possible to include behaviour to make the FAB automatically get placed above an adv...
I'm sorry if this has been already answered but it's been a while and I'm still searching. Since the FAB has a behaviour class you can assign to it which will work with scrolling inside a coordinator layout, I was wondering if it was possible to include behaviour to make the FAB automatically get placed above an adview...
android-layout
2
2016-06-08T16:39:20.017Z
2,016
6
16
2
582
1
402
52
1
0
false
false
false
false
false
false
low
38,000,013
Using AnimatedVectorDrawables to make the Android robo wave
<p>I'm trying to create a simple animation of the Android robot logo waving. I have my <code>VectorDrawable</code> and <code>AnimatedVectorDrawable</code> defined as below:</p> <p>VectorDrawable (drawable/android.xml)</p> <pre><code>&lt;vector android:height="240dp" android:viewportHeight="345.0" android:viewport...
I'm trying to create a simple animation of the Android robot logo waving. I have my VectorDrawable and AnimatedVectorDrawable defined as below: VectorDrawable (drawable/android.xml) [CODE] AnimatedVectorDrawable (drawable/wave.xml) [CODE] and heres animator/waveanim.xml: [CODE] I did previously try a few different thin...
android|android-animation|android-drawable|android-vectordrawable
0
2016-06-23T19:16:49.143Z
2,016
6
19
3
582
1
668
59
4
3
true
false
false
false
false
false
zero
37,723,886
TrafficStats.getMobileRxBytes() and TrafficStats.getMobileTxBytes() always return 0 in Nexus 5x
<p>I am trying to fetch mobile data usage using TrafficStats.</p> <p>Example:</p> <p>mobileDataUsage = TrafficStats.getMobileRxBytes() +TrafficStats.getMobileTxBytes()</p> <p>totalUsage = TrafficStats.getTotalRxBytes() + TrafficStats.getTotalTxBytes()</p> <p>In few devices it is working absolutely fine. In <strong...
I am trying to fetch mobile data usage using TrafficStats. Example: mobileDataUsage = TrafficStats.getMobileRxBytes() +TrafficStats.getMobileTxBytes() totalUsage = TrafficStats.getTotalRxBytes() + TrafficStats.getTotalTxBytes() In few devices it is working absolutely fine. In Nexus 5X I am getting totalUsage but mobile...
android|android-trafficstats
5
2016-06-09T10:51:22.867Z
2,016
6
10
3
1,606
1
427
95
2
0
false
false
false
false
false
false
low
37,639,793
Is it better to register floating contextual menu click listener in Adapter or in ViewHolder? [ANDROID]
<p>I'm planning to create a floating contextual menu for my app in a fragment after onLongClick and I also have a custom Adapter extending from RecyclerView.Adapter and a custom holder extending from RecyclerView.ViewHolder. I found out there are 2 options to register : </p> <p><strong>Option 1</strong> : Registering ...
I'm planning to create a floating contextual menu for my app in a fragment after onLongClick and I also have a custom Adapter extending from RecyclerView.Adapter and a custom holder extending from RecyclerView.ViewHolder. I found out there are 2 options to register : Option 1 : Registering the listener inside onCreateV...
java|android|user-interface
0
2016-06-05T08:13:33.840Z
2,016
6
8
6
71
1
2,199
103
3
0
false
false
false
false
false
false
zero
37,654,773
Change toolbar button behaviour in android
<p>I implemented a Side Drawer that opens from right to left. Now I want to replace the default menu icon (3 dots) with another icon.</p> <p>If the "new icon" is clicked, the side drawer should be opened.</p> <p>I cant get this to work, and need a bit of help. Thanks in advance.</p>
I implemented a Side Drawer that opens from right to left. Now I want to replace the default menu icon (3 dots) with another icon. If the "new icon" is clicked, the side drawer should be opened. I cant get this to work, and need a bit of help. Thanks in advance.
android|toolbar|action-button
0
2016-06-06T10:10:57.200Z
2,016
6
10
0
71
1
262
42
3
0
false
false
false
false
false
false
zero
37,674,084
How to Access a specific Grid Item in a Grid View using position
<p>I'm trying to set padding for specific grid items in my grid view. I'm getting null value for gridChild while trying to get it's view using getChildAt</p> <p>I'm writing this code at onCreate() method:</p> <pre><code>GridView MainGalleryview = (GridView) findViewById(R.id.main_gallery_gridview); MainGaller...
I'm trying to set padding for specific grid items in my grid view. I'm getting null value for gridChild while trying to get it's view using getChildAt I'm writing this code at onCreate() method: [CODE]
java|android|xml
0
2016-06-07T08:20:57.003Z
2,016
6
8
1
71
1
201
64
3
1
true
false
false
false
false
false
zero
37,827,513
Hide keyboard when a specific number of digit has entered on editText
<p>Goal: When ever 6 digit entered on ID_Display, It would hide the keyboard.</p> <p>Problem: Keyboard wouldnt hide unless Keyboard "Enter" is press</p> <pre><code> public void keyboard_hide_Listener() { ID_Display = (EditText) findViewById(R.id.ID_display); if (ID_Display != null) {ID_Display.setOnEditorAct...
Goal: When ever 6 digit entered on ID_Display, It would hide the keyboard. Problem: Keyboard wouldnt hide unless Keyboard "Enter" is press [CODE]
android-studio
0
2016-06-15T06:21:10.647Z
2,016
6
6
2
71
1
145
69
1
1
true
false
false
false
false
false
zero
37,904,290
Set custom sms ringtone for single user
<p>I want to set custom ring while receiving sms from user like "Demo" .Is it possible to set custom ring for single user ? I am trying this but can not achieve my requirement </p> <pre><code> final Uri lookupUri = Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, "9801205808"); final String...
I want to set custom ring while receiving sms from user like "Demo" .Is it possible to set custom ring for single user ? I am trying this but can not achieve my requirement [CODE]
android|android-settings
1
2016-06-19T05:40:41.747Z
2,016
6
5
6
71
1
179
39
2
1
true
false
false
false
false
false
low
37,920,276
dark shadow on nav header after fragment transaction
<p>When I am navigating back &amp; forth between two fragments, i see a dark shadow on the top of nav header. How can I get rid of it?</p> <p>Before Navigating</p> <p><a href="https://i.stack.imgur.com/TDsOC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TDsOC.jpg" alt="enter image description her...
When I am navigating back & forth between two fragments, i see a dark shadow on the top of nav header. How can I get rid of it? Before Navigating After Navigating
android
1
2016-06-20T10:33:05.040Z
2,016
6
10
0
71
1
162
52
1
0
false
false
false
false
false
false
low
38,028,925
Weird behaviour after deleting/commenting code
<p>I've run into some weird behaviour and looks like I can't find an answer. I've written some simple code to control a servo motor via bluetooth using my phone.</p> <pre><code>#include &lt;Servo.h&gt; #include "SoftwareSerial.h"; int servoPin = 2; int bluetoothTx = 11; int bluetoothRx = 10; SoftwareSerial bluetooth...
I've run into some weird behaviour and looks like I can't find an answer. I've written some simple code to control a servo motor via bluetooth using my phone. [CODE] For android, I used the MIT App Inventor to make a basic slider. I'm using an Arduino Mega 2560, Power HD High-Torque High-Voltage Digital Servo 1218TH an...
android|bluetooth|arduino|android-bluetooth|servo
0
2016-06-25T13:16:48.947Z
2,016
6
13
5
71
1
661
46
5
1
true
false
false
false
false
false
zero
38,034,493
Loop always sets the last data to TextView in Android
<p>I get data from server side to my RecyclerView but the code always sets the last text to my TextView. I am so confused. Can you help me? Thanks. I am sharing my code below.</p> <pre><code> private void bindDatas() { Retrofit retrofit = new Retrofit.Builder() .baseUrl(NewsService.BASE_URL) ...
I get data from server side to my RecyclerView but the code always sets the last text to my TextView. I am so confused. Can you help me? Thanks. I am sharing my code below. [CODE]
android|json|server|retrofit|android-cardview
0
2016-06-26T01:37:19.540Z
2,016
6
1
6
71
1
179
53
5
1
true
false
false
false
false
false
zero
38,038,421
Fragment does not display when select from navigation drawer
<p>I have three fragments in my activity. I am using <code>Recyclerview</code> to display them. I wanted to make groupings of my fragment, like when A is selected in navigation drawer fragment 1 and 2 will display, using viewpager. And this works fine.</p> <p>But when I select fragment B it does not display. And fragm...
I have three fragments in my activity. I am using Recyclerview to display them. I wanted to make groupings of my fragment, like when A is selected in navigation drawer fragment 1 and 2 will display, using viewpager. And this works fine. But when I select fragment B it does not display. And fragment B is not in the grou...
android|android-fragments|android-recyclerview
0
2016-06-26T12:14:48.103Z
2,016
6
12
6
71
1
495
60
3
1
true
false
false
false
false
false
zero
37,980,079
UDACITY Sunshine Android app showing multiple data values and multiple refresh options
<p>I am new to android and I was trying to learn android using the UDACITY course on building the sunshine app. Thanks to a couple of stackoverflow posts I was able fix my app from crashes and then get data from the internet using the API key. Everything works fine except that the data is duplicated and there are 2 act...
I am new to android and I was trying to learn android using the UDACITY course on building the sunshine app. Thanks to a couple of stackoverflow posts I was able fix my app from crashes and then get data from the internet using the API key. Everything works fine except that the data is duplicated and there are 2 action...
java|android
1
2016-06-22T23:55:33.987Z
2,016
6
23
2
327
1
857
86
2
3
true
false
false
false
false
false
low
37,872,723
Google Play Store not showing right number of downloads
<p>I distributed some promo codes (200 codes) for my app in Google play Store. In the analytics report it shows <code>160 new users</code> and in promotion section of developer console it shows <code>160/200 codes</code> redeemed but the number of downloads show in console changed only by 9. Is there something wrong wi...
I distributed some promo codes (200 codes) for my app in Google play Store. In the analytics report it shows 160 new users and in promotion section of developer console it shows 160/200 codes redeemed but the number of downloads show in console changed only by 9. Is there something wrong with downloads calculation in P...
android|google-play
-1
2016-06-17T03:37:35.897Z
2,016
6
3
4
583
1
371
55
2
0
false
false
false
false
false
true
negative
37,932,395
Maintaining RecyclerView and fragment back button
<p>I'm currently having trouble restoring my fragment to it's previous state after clicking into a detail activity from my recyclerview adapter. The back button within the detail activity returns me to an empty fragment with no data.</p> <p>Here's the detail activity class</p> <pre><code>** * Provides UI for the De...
I'm currently having trouble restoring my fragment to it's previous state after clicking into a detail activity from my recyclerview adapter. The back button within the detail activity returns me to an empty fragment with no data. Here's the detail activity class [CODE] And here is my recyclerView adapter that has an o...
android|android-fragments|android-recyclerview
0
2016-06-20T21:52:59.620Z
2,016
6
21
0
1,095
1
854
49
3
3
true
false
false
false
false
false
zero
37,938,278
Pausing and Resuming a count down timer and progress bar in android?
<blockquote> <p>I am making a simple app which uses a count down timer,Circular progress bar and 3 buttons start, Pause and Resume.What I am trying to do is when a particular activity starts and I press pause it stores the time at which the timer was paused and resume from that point forward.But the problem i...
I am making a simple app which uses a count down timer,Circular progress bar and 3 buttons start, Pause and Resume.What I am trying to do is when a particular activity starts and I press pause it stores the time at which the timer was paused and resume from that point forward.But the problem is the count down timmer do...
java|android|timer|progress-bar|countdowntimer
1
2016-06-21T07:38:26.120Z
2,016
6
7
1
1,095
1
657
68
5
2
true
false
false
false
false
false
low
37,652,526
Firebase dynamic links handled twice
<p>I have a problem that firebase dynamic link is relaunched when the android app is restarted. The following sequence produces the problem:</p> <ol> <li>click the deep link URL</li> <li>the app is opened at the view pointed by the deep link (as expected) </li> <li>close the app (completely) </li> <li>open the app fro...
I have a problem that firebase dynamic link is relaunched when the android app is restarted. The following sequence produces the problem: click the deep link URL the app is opened at the view pointed by the deep link (as expected) close the app (completely) open the app from the icon the app is opened at the view point...
android|firebase|firebase-dynamic-links
9
2016-06-06T08:14:08.993Z
2,016
6
8
0
2,631
1
1,595
36
3
0
false
false
true
false
false
false
medium
37,703,895
Getting Error in class android.support.design.widget.NavigationView
<p>i am developing an application in android in which i want to implement hamburger menu. i am developing in mac os using eclipse Mars.2 Release (4.5.2) and using <code>android.support.design.widget.NavigationView</code> library.support design library and support appcompat library are also have same version and</p> <p...
i am developing an application in android in which i want to implement hamburger menu. i am developing in mac os using eclipse Mars.2 Release (4.5.2) and using android.support.design.widget.NavigationView library.support design library and support appcompat library are also have same version and i am getting this error...
java|android|eclipse|hamburger-menu
2
2016-06-08T13:27:38.367Z
2,016
6
13
2
2,887
1
6,359
67
4
2
true
false
true
false
false
false
low
37,642,422
Is it possible to get Request Results from the Browser to my app
<p>That might be a stupid question but I'm really curious if this is possible or not.</p> <p>Ok so we have an Android app with a textfield for username, another one for password and a simple Button. So is it possible that if i klick on the button, open a specific login site with also username and password textfields ...
That might be a stupid question but I'm really curious if this is possible or not. Ok so we have an Android app with a textfield for username, another one for password and a simple Button. So is it possible that if i klick on the button, open a specific login site with also username and password textfields with the sma...
android|android-studio
0
2016-06-05T13:24:27.990Z
2,016
6
13
6
72
1
724
64
2
0
false
false
false
false
false
false
zero
37,734,000
Direct credi card payment api for Brazil?
<p>I need a direct credi card payment api for my Android App, I have used paypal, but paypal not support "BRL" (<a href="https://developer.paypal.com/docs/classic/api/currency_codes/#creditcard" rel="nofollow">Brazil currency</a>) for direct credi card payment.</p> <p>Anyone know any API that solve my problem?</p> <p...
I need a direct credi card payment api for my Android App, I have used paypal, but paypal not support "BRL" ( Brazil currency ) for direct credi card payment. Anyone know any API that solve my problem? Thanks
android|api|paypal|payment-gateway|payment
-1
2016-06-09T18:51:33.983Z
2,016
6
18
3
72
1
208
41
5
0
false
false
false
false
false
true
negative
37,741,139
want to start spinner add category but show spinner first category text
<p>my app contain listview with spinner and when select spinner category after that value is dividing by category but when spinner noting select then show all value in listview but there is problem my spinner containing value from first item of spinner </p> <pre><code> private void getData() { StringRequest strin...
my app contain listview with spinner and when select spinner category after that value is dividing by category but when spinner noting select then show all value in listview but there is problem my spinner containing value from first item of spinner [CODE] help me
android|listview|android-volley|android-spinner
0
2016-06-10T06:17:00.623Z
2,016
6
6
4
72
1
264
71
4
1
true
false
false
false
false
false
zero
37,814,316
app unfortunately stopped form codenameone with paypal integration
<p>Written the below code in native interface implemented class:</p> <pre><code>package com.mycompany.myapp; import com.paypal.android.sdk.payments.PayPalAuthorization; import com.paypal.android.sdk.payments.PayPalConfiguration; import com.paypal.android.sdk.payments.PayPalFuturePaymentActivity; import com.paypal.and...
Written the below code in native interface implemented class: [CODE] call from main class: [CODE] The code build succesfully but when I have tried to access it from android mobile,it gives error: Unfortunately has stopped.How to resolve the problem
android|paypal|codenameone
1
2016-06-14T14:05:18.860Z
2,016
6
14
1
72
1
248
66
3
2
true
false
false
false
false
false
low