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
37,036,071
vector drawable not visible in api level 15 even after using the appCompat library version 23.3.0
<p>I am using a vector drawable in an ImageView in API level 15. I am using the AppCompat library version "appcompat-v7:23.3.0" in my gradle, which brings in the support of SVG for lower API levels.</p> <p>Here is my XML for ImageView:</p> <pre><code>&lt;ImageView app:srcCompat="@drawable/check" andro...
I am using a vector drawable in an ImageView in API level 15. I am using the AppCompat library version "appcompat-v7:23.3.0" in my gradle, which brings in the support of SVG for lower API levels. Here is my XML for ImageView: [CODE] This is the check.xml in drawable folder: [CODE] The ImageView is not being displayed a...
android|svg|imageview|android-support-library|android-vectordrawable
0
2016-05-04T19:10:00.810Z
2,016
5
19
2
864
1
381
97
5
2
true
false
false
false
false
false
zero
37,036,077
Non Solved Android Studios issue, Unfortunately
<p>I found out, that when I create a layout, and Java file, I'm making a codes, so when I press button, it takes me to the another activity. </p> <p>I have called already 9 methods to send me to the other activity, 3 or 4 in a MainJava class, and 4 in a layout, and everything works fine. </p> <p>But now 1 button, in ...
I found out, that when I create a layout, and Java file, I'm making a codes, so when I press button, it takes me to the another activity. I have called already 9 methods to send me to the other activity, 3 or 4 in a MainJava class, and 4 in a layout, and everything works fine. But now 1 button, in the new layout, doesn...
java|android
-1
2016-05-04T19:10:33.127Z
2,016
5
19
2
74
3
832
47
2
5
true
false
false
false
false
true
negative
37,036,125
android,how to fill color into shapes after drawing
<p>My drawing app, I need a fill shapes in the "*" I think... to fill color into shapes after drawing</p> <p>My code is much bigger, like the touch metod and more, but this will be ok.</p> <p>If not I can add the rest.</p> <p>This code have the drawing shapes options:</p> <pre><code>@Override protected void onDraw(...
My drawing app, I need a fill shapes in the "*" I think... to fill color into shapes after drawing My code is much bigger, like the touch metod and more, but this will be ok. If not I can add the rest. This code have the drawing shapes options: [CODE]
java|android
0
2016-05-04T19:13:19.697Z
2,016
5
19
2
555
2
251
51
2
1
true
false
false
false
false
false
zero
37,036,181
Problems with linking the the values in the buttons to the equation
<p>Basically, i do not know why it jumps to main menu when i press the button regardless of right or wrong answer. By right, it should only jump to the main menu when the answer is wrong. And if its correct, it displays a new set of equation. Initially, i thought it might be the condition issue in the if statements bec...
Basically, i do not know why it jumps to main menu when i press the button regardless of right or wrong answer. By right, it should only jump to the main menu when the answer is wrong. And if its correct, it displays a new set of equation. Initially, i thought it might be the condition issue in the if statements becaus...
java|android
-1
2016-05-04T19:15:35.413Z
2,016
5
19
2
30
1
579
67
2
2
true
false
false
false
false
true
negative
37,036,401
Use grid item from adapter in dialog popup as view in Android
<p>I want to set the view of popup dialog to be the grid item. I get this item as view in OnClickListener event set in the adapter.</p> <pre><code> @Override public View getView(int position, View convertView, ViewGroup parent) { View grid; final LayoutInflater inflater = (LayoutInflater) context.getSystemServ...
I want to set the view of popup dialog to be the grid item. I get this item as view in OnClickListener event set in the adapter. [CODE] I got these error: "The specified child already has a parent. You must call removeView() on the child's parent first."
android|android-alertdialog|android-adapter
0
2016-05-04T19:28:56.147Z
2,016
5
19
2
172
1
254
61
3
1
true
false
false
false
false
false
zero
37,036,411
Change color of hint EditText - Android
<p>Here i have the color of the hint that i want(Blue),photo nº1, but when i click it goes pink, phot nº2. How can i change that to blue? I have tried to change the hintColor but it does no good.`</p> <pre><code>&lt;EditText android:id="@+id/password" android:backgroundTint="@android:co...
Here i have the color of the hint that i want(Blue),photo nº1, but when i click it goes pink, phot nº2. How can i change that to blue? I have tried to change the hintColor but it does no good.` [CODE] Photo 1 Photo 2
android|android-edittext
3
2016-05-04T19:29:39.873Z
2,016
5
19
2
335
3
216
39
2
1
true
false
false
false
false
false
low
37,036,415
Is it wrong to use EventBus with Android Gatt callbacks?
<p>I am writing an android app in native that uses ble. Was looking into using the gatt, but got stuck due to how the gatt callbacks were implemented.</p> <p>So I was planning on using the Eventbus (For those who will recommend me using rx, personally I agree but I can't for other reasons on this project) to basically...
I am writing an android app in native that uses ble. Was looking into using the gatt, but got stuck due to how the gatt callbacks were implemented. So I was planning on using the Eventbus (For those who will recommend me using rx, personally I agree but I can't for other reasons on this project) to basically "reroute" ...
android
1
2016-05-04T19:30:02.857Z
2,016
5
19
2
33
0
803
56
1
1
true
true
false
false
false
false
low
37,036,420
Checking if permission is available for GPS_PROVIDER
<p>When location is defined, I get the red underline and it reads: "Call requires permission which may be rejected by user: code should explicitly check to see if permission is available(with 'checkPermission') or handle a potential 'SecurityException'</p> <p>How to I fix this?</p> <pre><code>public class map extends...
When location is defined, I get the red underline and it reads: "Call requires permission which may be rejected by user: code should explicitly check to see if permission is available(with 'checkPermission') or handle a potential 'SecurityException' How to I fix this? [CODE]
android|permissions|location
0
2016-05-04T19:30:31.810Z
2,016
5
19
2
1,450
2
275
52
3
1
true
false
false
false
false
false
zero
37,036,486
org.json.JSONException in Android while Parsing JSON data
<p>In android studio I am trying to parse JSON data in my Android application. For that I have written this code (given below). But this code is throwing <code>org.json.JSONException</code>. Actually I want output like this:</p> <pre><code>/*This is just a sample*/ ROW: 1 id = ### date = 0/0/0 latitude = 12.123456789 ...
In android studio I am trying to parse JSON data in my Android application. For that I have written this code (given below). But this code is throwing org.json.JSONException . Actually I want output like this: [CODE] My Code: [CODE] Error [CODE]
android|json
0
2016-05-04T19:34:08.570Z
2,016
5
19
2
393
2
245
57
2
3
true
false
false
false
false
false
zero
37,036,532
AAC Decoder Android Media Codec (Data from Gstreamer)
<p>I want to Stream Audio from my Raspberry with G-Streamer to my Android phone. In Gstreamer I use the following pipeline: gst-launch-1.0 audiotestsrc ! faac ! "audio/mpeg, mpegversion=4" ! mux. mpegtsmux name=mux ! udpsink host=224.0.0.1 port=8001 </p> <p>faac endcodes the Audio to AAC LC (<a href="https://gstreamer...
I want to Stream Audio from my Raspberry with G-Streamer to my Android phone. In Gstreamer I use the following pipeline: gst-launch-1.0 audiotestsrc ! faac ! "audio/mpeg, mpegversion=4" ! mux. mpegtsmux name=mux ! udpsink host=224.0.0.1 port=8001 faac endcodes the Audio to AAC LC ( https://gstreamer.freedesktop.org/dat...
android|gstreamer|android-mediacodec|aac|mediaextractor
2
2016-05-04T19:36:24.280Z
2,016
5
19
2
1,320
0
1,617
53
5
2
true
true
false
false
false
false
low
37,036,629
Android library implementation issue
<p>I'm trying to follow along with the tutorial <a href="https://github.com/api-ai/api-ai-android-sdk#getting_started" rel="nofollow noreferrer">here</a> for the android sdk. When I get to configuring the service listener, I am getting an error on build. </p> <p>Code with error (inside MainActivity under OnCreate):</p...
I'm trying to follow along with the tutorial here for the android sdk. When I get to configuring the service listener, I am getting an error on build. Code with error (inside MainActivity under OnCreate): [CODE] Error: [CODE] I've implemented to class here [CODE] AIListener class [CODE] I know that the AIListener is be...
android|dialogflow-es
0
2016-05-04T19:41:46.840Z
2,016
5
19
2
594
2
492
36
2
4
true
false
false
false
false
false
zero
37,036,664
How to rotate all applications that use camera in android?
<p>There are some apps for screen rotation in the Play Store, such as:</p> <ul> <li>Rotation - Orientation Manager;</li> <li>Ultimate Rotation Control;</li> <li>Rotation Control;</li> <li>And others.</li> </ul> <p>The purpose of these apps is to change the orientation of the phone screen for all applications in the d...
There are some apps for screen rotation in the Play Store, such as: Rotation - Orientation Manager; Ultimate Rotation Control; Rotation Control; And others. The purpose of these apps is to change the orientation of the phone screen for all applications in the device, using one of the following orientational attributes:...
android|camera|rotation|orientation|preview
0
2016-05-04T19:44:09.507Z
2,016
5
19
2
920
0
1,223
58
5
0
false
true
false
false
false
false
zero
37,036,665
Using AlarmManager to start a service from another service
<p>I'm writing an Android code under Eclipse in which I shall handle two services: <code>MyService1</code> and <code>MyService2</code>. The first one is triggered by <code>AlaramManager</code> from the `MainActivity' as follows:</p> <pre><code>AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE); Calendar ...
I'm writing an Android code under Eclipse in which I shall handle two services: MyService1 and MyService2 . The first one is triggered by AlaramManager from the `MainActivity' as follows: [CODE] This is OK and well works. Now, I am going to start the second service MyService2 from MyService1 again using AlarmManager in...
android|android-service|alarmmanager
0
2016-05-04T19:44:12.163Z
2,016
5
19
2
40
2
631
58
3
4
true
false
false
false
false
false
zero
37,036,863
Volley JSON request doesn't give me response
<p>My SearchActivity.java looks like that:</p> <pre><code>public class SearchActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_search); final EditText editText = (EditText) findViewById(R...
My SearchActivity.java looks like that: [CODE] And the console output is: [CODE] The URL is correct but as you can see onResponse didn't even run. I have tried both JSONArrayRequest and JSONObjectRequest and they (don't) work the same. I have no idea what can be wrong here. Any suggestions?
android|android-volley
0
2016-05-04T19:55:04.887Z
2,016
5
19
2
352
1
291
44
2
2
true
false
false
false
false
false
zero
37,036,869
How to get a Scrolling Activity With Navigation Drawer in Android (Material Design)
<p>I've been interested in material design and wanted to build a layout for the main page of my app so that it looks like the default template for Scrolling Activity but also has a Navigation Drawer like the default template for Navigation Drawer Activity for easy navigation.</p> <p>As an example, Google's Play Music ...
I've been interested in material design and wanted to build a layout for the main page of my app so that it looks like the default template for Scrolling Activity but also has a Navigation Drawer like the default template for Navigation Drawer Activity for easy navigation. As an example, Google's Play Music app already...
android|android-layout|material-design
1
2016-05-04T19:55:18.503Z
2,016
5
19
2
2,818
2
860
83
3
0
false
false
true
false
false
false
low
37,036,882
OpenGL ES 2.0 weird bug while drawing meshes
<p>I've been working on rendering mechanics for an app and everything seemed to be fine until I started working on the light system and got weird artifacts. First I thought it was just something wrong with the calculation of normals, however after having no success, I tried to render it without the light system, but ch...
I've been working on rendering mechanics for an app and everything seemed to be fine until I started working on the light system and got weird artifacts. First I thought it was just something wrong with the calculation of normals, however after having no success, I tried to render it without the light system, but chang...
java|android|opengl-es|opengl-es-2.0
0
2016-05-04T19:55:39.943Z
2,016
5
19
2
110
0
991
44
4
0
false
true
false
false
false
false
zero
37,036,886
Saving data from Firebase into a list
<p>I'm currently developing an Android app that deals with storing book translations. I'm using Firebase to hold all the data online, and I have no trouble pulling data from it and storing them as Book objects. I have a master list of books in the main class that stores all the books from the Firebase database, however...
I'm currently developing an Android app that deals with storing book translations. I'm using Firebase to hold all the data online, and I have no trouble pulling data from it and storing them as Book objects. I have a master list of books in the main class that stores all the books from the Firebase database, however th...
android|firebase|firebase-realtime-database
0
2016-05-04T19:55:45.137Z
2,016
5
19
2
488
2
673
37
3
1
true
false
false
false
false
false
zero
37,036,956
How to check if and image is set to imageview in android
<p>I am trying to check if an image (bitmap) is set to imageview and if so I am stopping the progressbar visibility.</p> <p>My code below:</p> <p>I make a call to the server to get the image and inside listener on success I set the imageview as follows:</p> <pre><code> mImageView.setImageBitmap(bitmap); if(hasImage...
I am trying to check if an image (bitmap) is set to imageview and if so I am stopping the progressbar visibility. My code below: I make a call to the server to get the image and inside listener on success I set the imageview as follows: [CODE] The images display fine but my app crashes when i slide the images too fast ...
android|bitmap|imageview|android-progressbar|recycle
0
2016-05-04T19:59:20.777Z
2,016
5
19
2
296
0
409
56
5
3
true
true
false
false
false
false
zero
37,037,012
Android No elements showing
<p>I am trying to create an auto update program for my ROM. So, I'm working on reading XML values from a url, but when I run it, the activity shows nothing. As I am fairly new to android coding, please describe clearly.</p> <p>Code:</p> <pre><code>package com.defyworks.defyupdater; import android.support.v7.app.AppC...
I am trying to create an auto update program for my ROM. So, I'm working on reading XML values from a url, but when I run it, the activity shows nothing. As I am fairly new to android coding, please describe clearly. Code: [CODE]
android
0
2016-05-04T20:03:11.643Z
2,016
5
20
2
43
2
229
27
1
1
true
false
false
false
false
false
zero
37,037,411
RelativeLayout View is NULL for Dynamic Button Creation
<p>I am having an issue creating a dynamic button in a fragment. My xml is called "home_fragment", and this layout can't seem to be found in "rootView" because I am getting a NullPointerException thrown at this line: </p> <pre><code>RelativeLayout ll = (RelativeLayout)rootView.findViewById(R.id.home_fragment); </code>...
I am having an issue creating a dynamic button in a fragment. My xml is called "home_fragment", and this layout can't seem to be found in "rootView" because I am getting a NullPointerException thrown at this line: [CODE] And my print statement confirms that "ll" variable is null. Does this have something to do with the...
android|android-fragments
-1
2016-05-04T20:28:18.080Z
2,016
5
20
2
229
1
715
55
2
7
true
false
false
false
false
true
negative
37,037,432
how to open new activities from fragment class using multiple buttons?
<p>I have this fragment activity called BmiFragment from Navigation Drawer using Sliding Menu, from which i want to go to a new activity i.e. BmiCalculator.class to perform some task but i am not able to do so. I am trying to do this by implementing onclicklistener to the fragment activity. In the XML layout there is ...
I have this fragment activity called BmiFragment from Navigation Drawer using Sliding Menu, from which i want to go to a new activity i.e. BmiCalculator.class to perform some task but i am not able to do so. I am trying to do this by implementing onclicklistener to the fragment activity. In the XML layout there is simp...
android|android-intent|onclick|fragment|onclicklistener
0
2016-05-04T20:29:28.223Z
2,016
5
20
2
255
1
478
70
5
1
true
false
false
false
false
false
zero
37,037,516
Appcompat SearchView icon?
<p>I know I can change the icon in the menu xml like so:</p> <pre><code> &lt;item android:id="@+id/menu_search" android:title="@string/label_search" android:icon="@drawable/ic_search" app:showAsAction="always|collapseActionView" app:actionViewClass="android.support.v7.widget.SearchView" /&gt; </...
I know I can change the icon in the menu xml like so: [CODE] But I'm trying to setup my search theme in values/styles and the searchIcon key seems to do nothing. In the below style, queryBackground works, closeIcon works, but searchIcon does nothing. If I put the android:icon tag in the menu xml, it'll set it from ther...
android|searchview
0
2016-05-04T20:34:45.063Z
2,016
5
20
2
199
0
436
26
2
2
true
true
false
false
false
false
zero
37,037,520
Wi-Fi Direct Discovery Not working on Android Marshmallow 6.0
<pre><code>public void discoverpeers(View v) { wifiP2pManager.discoverPeers(channel, new WifiP2pManager.ActionListener() { @Override public void onSuccess() { Toast.makeText(getApplicationContext(), "Peer Discovery Successful", Toast.LENGTH_LONG).show(); } @Override ...
[CODE] The peer discovery is failing with reason=0.The Android version I'm using is 6.0. The code runs perfectly on other devices with versions lower than 6.0 I have turned on my location settings as well. I used the following permission: [CODE]
java|android|android-6.0-marshmallow|wifip2p
0
2016-05-04T20:35:06.427Z
2,016
5
20
2
349
1
245
61
4
2
true
false
false
false
false
false
zero
37,037,570
Attribute “titleTextStyle” has already been defined
<p>I try to compile my project but I get these types of errors</p> <p><code>"Error: (2) Attribute" titleTextStyle "has Already Been defined"</code></p> <p>This is my Gradle</p> <pre><code>dependencies { compile 'com.android.support:multidex:1.0.0' compile project(':library') compile project(':androidswitchbackport')...
I try to compile my project but I get these types of errors "Error: (2) Attribute" titleTextStyle "has Already Been defined" This is my Gradle [CODE] I have seen many questions and answers on this issue, but none has worked for me :(
android|gradle
-1
2016-05-04T20:38:37.743Z
2,016
5
20
2
190
1
233
51
2
1
true
false
false
false
false
true
negative
37,037,621
Android Toolbar and User Image Animation Like Twitter
<p>I'm trying to achieve the <strong>toolbar</strong> and User image animation like the one that is used in Twitter's user profile. </p> <p>I tried a lot of things but I cannot achieve pinning the collapsed toolbar at the top of the screen quickly with the some background it had when it was expanded and making the Use...
I'm trying to achieve the toolbar and User image animation like the one that is used in Twitter's user profile. I tried a lot of things but I cannot achieve pinning the collapsed toolbar at the top of the screen quickly with the some background it had when it was expanded and making the User Image be first above the to...
android|android-animation|android-toolbar|android-coordinatorlayout|android-twitter
17
2016-05-04T20:41:49.790Z
2,016
5
20
2
5,626
2
1,169
53
5
1
true
false
true
false
true
false
medium
37,037,718
Is it necessary to call close() in a finally when writing files in Java?
<p>There are a few <a href="https://stackoverflow.com/a/4530294/476074">examples</a> where people call <code>close()</code> in their <code>finally</code> block when writing to a file, like this:</p> <pre><code>OutputStream out = null; try { out = new FileOutputStream(file); out.write(data); out.close(); } ...
There are a few examples where people call close() in their finally block when writing to a file, like this: [CODE] But there are many more examples, including the official Android docs where they don't do that: [CODE] Given that the second example is much shorter, is it really necessary to call close() in finally as s...
java|android
4
2016-05-04T20:47:51.127Z
2,016
5
20
2
13,734
4
408
72
2
2
true
false
true
true
false
false
low
37,037,746
ListView Custom Adapter repeat items
<p>Whats wrong with this adapter, when i scroll down i see repeated rows at the bottom and then when scroll up again i see also repeated rows at the top that were not exist before, and the rest of <code>Data</code> items does not appear</p> <p>the adapter:</p> <pre><code>public class ClassesListViewAdapter extends Ba...
Whats wrong with this adapter, when i scroll down i see repeated rows at the bottom and then when scroll up again i see also repeated rows at the top that were not exist before, and the rest of Data items does not appear the adapter: [CODE] and here how i use it: [CODE]
android|listview|custom-adapter
2
2016-05-04T20:49:34.183Z
2,016
5
20
2
1,142
1
270
36
3
2
true
false
false
false
false
false
low
37,037,972
Android webview not connecting to local raspberry pi server
<p>I'm trying to create an app that uses <code>Webview</code> to connect to a raspberry pi web server I've created. It contains basically a few buttons that act as a garage door opener. For some reason, when I launch the app, it just displays a blank screen; but if I put in another website like Google in myWebView.load...
I'm trying to create an app that uses Webview to connect to a raspberry pi web server I've created. It contains basically a few buttons that act as a garage door opener. For some reason, when I launch the app, it just displays a blank screen; but if I put in another website like Google in myWebView.loadUrl() , it loads...
java|android|xml|webview
0
2016-05-04T21:04:14.763Z
2,016
5
21
2
126
0
477
59
4
3
true
true
false
false
false
false
zero
37,037,976
Add checkmark image to ImageButton on click
<p>this is my project:</p> <p><a href="https://i.stack.imgur.com/r49AV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r49AV.png" alt="enter image description here"></a> </p> <p>when I touch one picture in each row I want something like this:</p> <p><a href="https://i.stack.imgur.com/II9Yx.jpg" re...
this is my project: when I touch one picture in each row I want something like this: This is what I have in my XML: [CODE] ok, I have the opacity setting alpha attribute. [CODE] How do I get the picture of the button to change on click?
java|android|xml
0
2016-05-04T21:04:32.500Z
2,016
5
21
2
223
1
236
43
3
2
true
false
false
false
false
false
zero
37,037,991
Android Out of memory on custom listview
<p>Hello the problem that I'm facing is that I have a custom list view with 7 Bitmap images included inside of it but when I attempt to scroll I receive an out of memory error, I have changed all images sizes and none of my images are even above 50kb. I have tried changing heap inside of the manifest but I was wonderin...
Hello the problem that I'm facing is that I have a custom list view with 7 Bitmap images included inside of it but when I attempt to scroll I receive an out of memory error, I have changed all images sizes and none of my images are even above 50kb. I have tried changing heap inside of the manifest but I was wondering i...
android|listview|memory|memory-leaks|out-of-memory
1
2016-05-04T21:05:18.863Z
2,016
5
21
2
540
1
475
40
5
2
true
false
false
false
false
false
low
37,038,099
onCLickListener for ImageView works slow
<p>First, I created an Object called Card, which represents an image for card game.<br /> Then, I created a function that receives a Vector of Cards, and draws the images on the screen.</p> <p>Now, let me explain 2 scenarios that are happening, one works fast, and the other works slow.</p> <h1>1</h1> <p>When I create t...
First, I created an Object called Card, which represents an image for card game. Then, I created a function that receives a Vector of Cards, and draws the images on the screen. Now, let me explain 2 scenarios that are happening, one works fast, and the other works slow. 1 When I create the Card Vector, I create new car...
android
0
2016-05-04T21:11:14.133Z
2,016
5
21
2
231
1
828
40
1
3
true
false
false
false
false
false
zero
37,038,127
AndroidViewClient - can't getXY() coordinates
<p>I'm running AndroidViewClient and am able to dump a complete hierarchy, but things fail when I try to getXY() or touch(). Even the solution from <a href="https://stackoverflow.com/questions/24089937/get-current-focused-window-name-using-androidviewclient">Get Current Focused Window Name using AndroidViewClient</a> g...
I'm running AndroidViewClient and am able to dump a complete hierarchy, but things fail when I try to getXY() or touch(). Even the solution from Get Current Focused Window Name using AndroidViewClient gives me an error. [CODE] My stack trace goes something like: print widget.getXY() File "/usr/local/lib/python2.7/dist-...
android|python|android-uiautomator|androidviewclient
0
2016-05-04T21:12:36.743Z
2,016
5
21
2
234
1
1,118
45
4
5
true
false
false
false
false
false
zero
37,038,293
Maintaining checkbox states in listview with CursorAdapter
<p>For my Android project, I have a listview which has a checkbox for every item. The data is loaded from an SQLite database by using a CursorAdapter class. However, whenever I scroll, the checkbox positions will get moved and get carried down to the next part of the listview. How can I fix this problem? <a href="https...
For my Android project, I have a listview which has a checkbox for every item. The data is loaded from an SQLite database by using a CursorAdapter class. However, whenever I scroll, the checkbox positions will get moved and get carried down to the next part of the listview. How can I fix this problem? GIF of my CheckBo...
android|listview|checkbox|android-cursoradapter|android-checkbox
5
2016-05-04T21:24:30.697Z
2,016
5
21
2
1,851
3
1,033
58
5
3
true
false
false
false
false
false
low
37,038,299
Static pattern to retain objects through configuration changes
<p><em>I am experienced enough to know about configuration changes. I know how to save and restore the instance state of a <code>View</code>, <code>Activity</code>, <code>Fragment</code> or whatever, and I know that we should rely on that, rather than simply make objects static.</em></p> <p>This question is about <cod...
I am experienced enough to know about configuration changes. I know how to save and restore the instance state of a View , Activity , Fragment or whatever, and I know that we should rely on that, rather than simply make objects static. This question is about static ness of a field. In "pure Java" declaring an object as...
java|android|static|instance
0
2016-05-04T21:24:46.923Z
2,016
5
21
2
52
2
1,300
62
4
3
true
false
false
false
false
false
zero
37,038,350
Libgdx - game behaving weird on SOME devices
<p>My app <a href="https://play.google.com/store/apps/details?id=com.olvins.squaresmash" rel="nofollow">Square Smash</a>, I am linking this if there is someone who wanna try if the game works fine.</p> <p>I made the Game Screen with </p> <pre><code>static int WIDTH = Gdx.graphics.getWidth() static int HEIGHT = Gdx.gr...
My app Square Smash , I am linking this if there is someone who wanna try if the game works fine. I made the Game Screen with [CODE] and then just made everything to be a % of the screen. The other screens were made with Viewports, because I did not know about them when I started making the game. The weird part is the ...
android|libgdx
0
2016-05-04T21:27:57.317Z
2,016
5
21
2
35
0
1,239
44
2
1
true
true
false
false
false
false
zero
37,038,439
Fab Button Menu is shown behind GridView
<p>With the library for Floating Action Button by Clans (<a href="https://github.com/Clans/FloatingActionButton" rel="nofollow">https://github.com/Clans/FloatingActionButton</a>) i tried to implement a Floating Action Button with a Menu when the Button is clicked. The Problem i have is when i click the Button the Menu ...
With the library for Floating Action Button by Clans ( https://github.com/Clans/FloatingActionButton ) i tried to implement a Floating Action Button with a Menu when the Button is clicked. The Problem i have is when i click the Button the Menu is gonna show up but the Buttons are hiding under another View (Grid View in...
android|android-layout|android-fragments|floating-action-button
0
2016-05-04T21:33:31.590Z
2,016
5
21
2
953
1
541
40
4
1
true
false
false
false
false
false
zero
37,038,468
Android random number generator used in two classes
<p>How do I use the same randomNumber in both of the public classes below, as you can see they both have a random number generator. I need to use the same random number for both.</p> <p>At the moment they both work, but the text doesn't match the image as they're getting different random numbers</p> <p>Any ideas?</p>...
How do I use the same randomNumber in both of the public classes below, as you can see they both have a random number generator. I need to use the same random number for both. At the moment they both work, but the text doesn't match the image as they're getting different random numbers Any ideas? [CODE] This is how the...
java|android
0
2016-05-04T21:35:32.790Z
2,016
5
21
2
47
1
346
51
2
2
true
false
false
false
false
false
zero
37,038,494
Handling response from database and passing it to new activity
<p>I am currently building a login system for a simple game application. What I am trying to achieve is the following: When a user logs in I want to display the top 5 highscores in the activity the user comes to after logging in.</p> <p>The response I am getting from the database is a JSON encoded string looking like ...
I am currently building a login system for a simple game application. What I am trying to achieve is the following: When a user logs in I want to display the top 5 highscores in the activity the user comes to after logging in. The response I am getting from the database is a JSON encoded string looking like this: [CODE...
java|android|json
1
2016-05-04T21:37:26.243Z
2,016
5
21
2
28
2
702
62
3
3
true
false
false
false
false
false
low
37,038,510
can someone help me with my global variables?
<p>Ok, I am creating a program that uses a normal global class but it doesn't seam to work. I can get the value of variables from the global but I cant set a new value.</p> <p>I created a really short test program just to get this to work so I can change it to my other much bigger program.</p> <p>In this small progra...
Ok, I am creating a program that uses a normal global class but it doesn't seam to work. I can get the value of variables from the global but I cant set a new value. I created a really short test program just to get this to work so I can change it to my other much bigger program. In this small program I have a textview...
android|singleton
-1
2016-05-04T21:38:58.137Z
2,016
5
21
2
460
2
899
45
2
3
true
false
false
false
false
true
negative
37,038,512
findViewById returns null on Samsung tablet
<p>seems to be a frequent problem with many solutions proposed but I don't succeed in solving it.</p> <p>all calls to findViewById are successful except the one where expandableListview is created. And it seems to be device dependent. It works in Android Studio, also on a Moto E 4G (5.0.2) but not on a Samsung Galaxy ...
seems to be a frequent problem with many solutions proposed but I don't succeed in solving it. all calls to findViewById are successful except the one where expandableListview is created. And it seems to be device dependent. It works in Android Studio, also on a Moto E 4G (5.0.2) but not on a Samsung Galaxy Tab 8.0 (5....
android|null|expandablelistview|findviewbyid
0
2016-05-04T21:39:05.007Z
2,016
5
21
2
199
1
761
43
4
1
true
false
false
false
false
false
zero
37,038,578
Android 6.0 Permissions Issues
<p>I am having one heck of a time with this new permission request in Android 6. My app worked fine, and then in the last two days it is force closing all the time. If I change the target SDK level to 22, it works fine, but of course Play Store wont let you downgrade the SDK.</p> <p>I need these permissions.</p> <pre...
I am having one heck of a time with this new permission request in Android 6. My app worked fine, and then in the last two days it is force closing all the time. If I change the target SDK level to 22, it works fine, but of course Play Store wont let you downgrade the SDK. I need these permissions. [CODE] After this I ...
android|android-studio|permissions|android-6.0-marshmallow
0
2016-05-04T21:43:07.270Z
2,016
5
21
2
522
0
728
30
4
2
true
true
false
false
false
false
zero
37,038,722
How to use Android 'flavor' strings.xml
<p>I have an app which will have free and paid versions. I can successfully created 'flavors' in the build.gradle and created new folders under 'src'.</p> <p>I have added a strings.xml to each flavor.</p> <p>src/flavor1/res/values/strings.xml</p> <p>src/flavor2/res/values/strings.xml</p> <p>It is one bool:</p> <pre><c...
I have an app which will have free and paid versions. I can successfully created 'flavors' in the build.gradle and created new folders under 'src'. I have added a strings.xml to each flavor. src/flavor1/res/values/strings.xml src/flavor2/res/values/strings.xml It is one bool: [CODE] One flavor is true, one is false. I ...
android|gradle
1
2016-05-04T21:52:50.667Z
2,016
5
21
2
1,999
2
674
39
2
1
true
false
false
false
false
false
low
37,038,754
Getting null when fetching ImageView from an item of and adapter. Why?
<p>I fetched texts, added to the ListView, then fetched images but getting null when trying to get the ImageView from the item inside the adapter to set the image. What am I doing wrong?</p> <pre><code>//AsyncTask For Texts. private class pgData extends AsyncTask&lt;String, String, JSONArray&gt; { //CODES HERE ARE WO...
I fetched texts, added to the ListView, then fetched images but getting null when trying to get the ImageView from the item inside the adapter to set the image. What am I doing wrong? [CODE]
android|listview|android-arrayadapter|android-imageview
1
2016-05-04T21:55:00.493Z
2,016
5
21
2
52
2
190
70
4
1
true
false
false
false
false
false
low
37,038,821
How to show alert dialog for certain list item
<p>I'm trying to show an alert dialog whenever I select a particular list item whereas the others would open a new fragment. However after inserting the alreat dialog code, an error is then returned. I don't understand why I'm getting this error when 'intent' has already been initialised. What can be done to resolve th...
I'm trying to show an alert dialog whenever I select a particular list item whereas the others would open a new fragment. However after inserting the alreat dialog code, an error is then returned. I don't understand why I'm getting this error when 'intent' has already been initialised. What can be done to resolve this ...
java|android|listview|android-alertdialog|android-listfragment
-2
2016-05-04T21:59:55.050Z
2,016
5
21
2
87
2
406
46
5
1
true
false
false
false
false
true
negative
37,038,835
How do I create a popup overlay view in an activity without Fragment?
<p>I'd like to show a popup onto my <code>Activity</code> when a button is pressed. I was inspired <a href="https://stackoverflow.com/q/19342255/3866010">by this question</a>.</p> <p>So I use the &quot;merge&quot; control in the content xml of the activity and put in it the 2 different Layouts, the problem occurs obvio...
I'd like to show a popup onto my Activity when a button is pressed. I was inspired by this question . So I use the &quot;merge&quot; control in the content xml of the activity and put in it the 2 different Layouts, the problem occurs obviously at this line (code taken from the question linked above): [CODE] because of ...
android|android-layout|android-fragments|android-activity|overlay
2
2016-05-04T22:01:16.820Z
2,016
5
22
2
9,019
1
659
69
5
1
true
false
true
false
false
false
low
37,039,060
Update the content of share intent in Android
<p>I have created a sharing icon using the <code>ShareActionProvider</code>. In the <code>MainActivity</code> class I have the following: </p> <pre><code>public class MainActivity extends AppCompatActivity{ .... private ShareActionProvider mShareActionProvider; ... @Override public boolean onCreateOptionsMenu(...
I have created a sharing icon using the ShareActionProvider . In the MainActivity class I have the following: [CODE] The problem is that the content of the myTextView changes and when the user clicks the share icon, the default text is shared. I think this is because we are calling the intent in the onCreateOptionsMenu...
android|android-intent
0
2016-05-04T22:21:40.690Z
2,016
5
22
2
328
2
404
45
2
1
true
false
false
false
false
false
zero
37,039,065
Back arrow in title bar of Android app?
<p>On my mobile phone (Android version 5.1.1), when I go into Settings and then pick Apps, I get a list of all the apps installed in my phone. At the same time, the title bar changes from "Settings" to "&lt;- Apps" - that is to say, the title text (which had been at the left edge) slides to the right to make room for ...
On my mobile phone (Android version 5.1.1), when I go into Settings and then pick Apps, I get a list of all the apps installed in my phone. At the same time, the title bar changes from "Settings" to "<- Apps" - that is to say, the title text (which had been at the left edge) slides to the right to make room for a left-...
android|user-interface|navigation|back
-1
2016-05-04T22:22:53.270Z
2,016
5
22
2
136
1
1,909
39
4
0
false
false
false
false
false
true
negative
37,039,076
When signing up a subclass of ParseUser, signUpInBackground never completes
<p>I've got the following code:</p> <pre><code>ParseUser user = (ParseUser) ParseUser.create(&quot;_User&quot;); // Set standard fields user.setUsername(username); user.setPassword(password); user.setEmail(email); // Set additional custom fields user.put(&quot;firstName&quot;, fname); user.put(&quot;lastName&quot;, l...
I've got the following code: [CODE] Notes: I'm instantiating the new ParseUser using ParseUser.create(&quot;_User&quot;) . I can't call new ParseUser() because I have a subclass of ParseUser registered, so calling new ParseUser() throws an exception. I have a subclass of ParseUser registered. I can't instantiate my Par...
java|android|parse-platform|parse-server
1
2016-05-04T22:23:46.723Z
2,016
5
22
2
143
0
1,181
75
4
1
true
true
false
false
false
false
low
37,039,085
Android inconsistent picture saving with getExternalFilesDir
<p>In my app, I am trying to take a picture, save it, and add it to an ImageView with this code I got from the <a href="http://developer.android.com/training/camera/photobasics.html" rel="nofollow">Android Developers tutorial</a></p> <pre><code>private static final int REQUEST_IMAGE_CAPTURE = 1; private String lastIma...
In my app, I am trying to take a picture, save it, and add it to an ImageView with this code I got from the Android Developers tutorial [CODE] Sometimes this code works as expected and takes an image, saves it, loads it back into the program and adds it to the image view. But other times, it doesn't work at all and see...
java|android|image|camera
0
2016-05-04T22:24:34.140Z
2,016
5
22
2
1,226
1
980
60
4
4
true
false
false
false
false
false
zero
37,039,154
Update listview from GCM Broadcast Receiver
<p>I have a custom arrayadapter class that has 3 textviews: Request Title, Date and Latest Message. I call that class in my main activity and that reads from a textfile sitting in the phones memory. When I receive a message from my server, how can I change the Latest Message to the one from the server instead of the te...
I have a custom arrayadapter class that has 3 textviews: Request Title, Date and Latest Message. I call that class in my main activity and that reads from a textfile sitting in the phones memory. When I receive a message from my server, how can I change the Latest Message to the one from the server instead of the text ...
java|android|google-cloud-messaging
0
2016-05-04T22:31:49.793Z
2,016
5
22
2
35
0
456
43
3
2
true
true
false
false
false
false
zero
37,039,201
Shape of button in android changes undesirably when clicked
<p>I'm trying to create a customized button of a particular shape to toggle its text and button background colors. But when i do this , the shape of the button changes when i click it. This is my activity_main.xml</p> <pre><code>&lt;Button android:id="@+id/button1" android:layout_width="wrap_content" andro...
I'm trying to create a customized button of a particular shape to toggle its text and button background colors. But when i do this , the shape of the button changes when i click it. This is my activity_main.xml [CODE] The file in my drawable folder named mybutton.xml [CODE] My MainActivity.java looks like this [CODE] W...
android|android-layout|android-button
0
2016-05-04T22:34:50.383Z
2,016
5
22
2
47
1
464
59
3
3
true
false
false
false
false
false
zero
37,039,220
Google maps wont display on mobile after using Phonegap Build
<p>I have Google maps working fine in Firefox, however when i build it for mobile. The map simply doesn't display or load, sadly my coding experience and knowledge is zilch and still haven't found a solution... Does anyone have any pointers as to what the issue is? I can post more code if needed</p> <pre><code>var map...
I have Google maps working fine in Firefox, however when i build it for mobile. The map simply doesn't display or load, sadly my coding experience and knowledge is zilch and still haven't found a solution... Does anyone have any pointers as to what the issue is? I can post more code if needed [CODE]
javascript|android|google-maps|phonegap-plugins|phonegap-build
0
2016-05-04T22:36:33.850Z
2,016
5
22
2
73
2
300
61
5
1
true
false
false
false
false
false
zero
37,039,275
Fragment doesn't show second time it's used
<p>I have a single <code>Activity</code> architecture where I'm loading a <code>PreferenceFragmentCompat</code> inside another <code>ViewGroup</code> in the <code>MainActivity</code>. Custom navigation exists within the <code>MainActivity</code> so that you can load the <code>ViewGroup</code> with the fragment and navi...
I have a single Activity architecture where I'm loading a PreferenceFragmentCompat inside another ViewGroup in the MainActivity . Custom navigation exists within the MainActivity so that you can load the ViewGroup with the fragment and navigate away from it all within the same MainActivity . The first time I navigate t...
android|android-layout|android-fragments|android-appcompat|preferencefragment
1
2016-05-04T22:40:09.360Z
2,016
5
22
2
963
1
1,147
43
5
1
true
false
false
false
false
false
low
37,039,495
Webview loadUrl() from file on local storage (not assets)
<p>I'm working on a code piece which must load html file to my custom webview. I'm moving my file out of assets to a local folder. And from there I need to read the html to a webview. I need to move the file from assets folder so please don't suggest anything about assets.</p> <p>This is how I move files:</p> <pre><c...
I'm working on a code piece which must load html file to my custom webview. I'm moving my file out of assets to a local folder. And from there I need to read the html to a webview. I need to move the file from assets folder so please don't suggest anything about assets. This is how I move files: [CODE] This is how I'm ...
javascript|android|html|webview
0
2016-05-04T22:59:37.503Z
2,016
5
22
2
555
0
890
57
4
2
true
true
false
false
false
false
zero
37,039,556
won't load new activity using intent? Meant to be once a button is pressed
<p>I have this is in my first class</p> <pre><code> public void btnInput (View view) { Intent intent = new Intent(this, inputTimetableEntry.class); startActivity(intent); } </code></pre> <p>inputTimetableEntry is the class that I want to link to. </p> <p>Within that class I have </p> <pre><code> In...
I have this is in my first class [CODE] inputTimetableEntry is the class that I want to link to. Within that class I have [CODE] This is meant to go to the second class once clicked on a button with the id btnInput, any suggestions? This is the XML used in the Main Activity: [CODE]
android|android-intent
1
2016-05-04T23:04:48.917Z
2,016
5
23
2
42
1
282
74
2
3
true
false
false
false
false
false
low
37,039,604
Sliding Up Panel Layout - Increase smoothly Panel Height
<p>I'm working with SlidingUpPanelLayout and I need to use diferent drag views with different height. So I have to set the Panel height programmatically for the diferents drag vies. Now, I need that the change of the panel height to be smoothly. For example, this is the code to inflate the new drag view, with is own he...
I'm working with SlidingUpPanelLayout and I need to use diferent drag views with different height. So I have to set the Panel height programmatically for the diferents drag vies. Now, I need that the change of the panel height to be smoothly. For example, this is the code to inflate the new drag view, with is own heigh...
android|height
1
2016-05-04T23:08:39.063Z
2,016
5
23
2
569
0
780
56
2
1
true
true
false
false
false
false
low
37,039,760
Android Studio 2.0+ crashes on OS X
<p>i haven't been able to run any version of Android Studio 2.x. it crashes seemingly randomly with this same exception after &lt; 1min of simply navigating through files in a project: </p> <pre><code>Exception Name: JavaNativeException Description: java.lang.NullPointerException at sun.lwawt.macosx.CAccessibility...
i haven't been able to run any version of Android Studio 2.x. it crashes seemingly randomly with this same exception after < 1min of simply navigating through files in a project: [CODE] i'm running OS X 10.11.4 with Java version 1.8.0_92. i'd seen some other references to this problem in the context of doing drag & dro...
android-studio-2.0|android-studio-2.1
8
2016-05-04T23:24:39.793Z
2,016
5
23
2
1,632
1
493
35
2
1
true
false
false
false
false
false
medium
37,039,763
Loading MySQL data into ListView using JSON using non-deprecated methods
<p>I need to display data from a mysql database into a list view in an Android Application. i've found a tutorial online but a few methods are deprecated (such as HttpPost, HttpResponse, HttpClient, etc). How can I find alternative methods? This Activity where I want to display the data is also a fragment.</p> <p>Here...
I need to display data from a mysql database into a list view in an Android Application. i've found a tutorial online but a few methods are deprecated (such as HttpPost, HttpResponse, HttpClient, etc). How can I find alternative methods? This Activity where I want to display the data is also a fragment. Here's my code:...
android|mysql|json|deprecated
0
2016-05-04T23:24:55.373Z
2,016
5
23
2
103
1
636
72
4
5
true
false
false
false
false
false
zero
37,039,835
Saving Data Issue, SharedPreferences
<p>Here is my code:</p> <pre><code>public class MainActivity extends AppCompatActivity { ListView listView; List all; SharedPreferences sharedPref; SharedPreferences.Editor editor; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activit...
Here is my code: [CODE] } Here is my log when I am editing my key, value: [CODE] When I restart the Activity: [CODE] So, it is not showing the data that I saved. I really am having trouble identifying the problem because I know that my save functionality is working well because of the Log, but I cannot identify any pro...
android
0
2016-05-04T23:32:59.053Z
2,016
5
23
2
34
1
344
36
1
3
true
false
false
false
false
false
zero
37,039,856
WeakReference not working in Kotlin
<p>I'm implementing an <code>AsyncTask</code> in Kotlin, and I need a <code>WeakReference</code> for the callback that runs in the <code>onPostExecute()</code> method. I set the listener reference before calling <code>execute()</code>, but once <code>onPostExecute()</code> is called, the value of <code>WeakReference</c...
I'm implementing an AsyncTask in Kotlin, and I need a WeakReference for the callback that runs in the onPostExecute() method. I set the listener reference before calling execute() , but once onPostExecute() is called, the value of WeakReference is null . [CODE] The listener variable modifies my activity's UI, therefore...
android|kotlin
18
2016-05-04T23:34:31.523Z
2,016
5
23
2
19,254
2
489
35
2
1
true
false
true
true
true
false
medium
37,040,005
Xamarin Android Mainactivity code is never reached
<p>I´m new to Xamarin and I tried to build the following program:</p> <pre><code>private TextView txtShow; int counter = 0; protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource SetContentView(Resource.Layout.MainPage); Button btnShow...
I´m new to Xamarin and I tried to build the following program: [CODE] But the problem is, that when I debug, this code is never reached. The result of clicking the button is, that the button text is changing to "2 clicks", "3 clicks", .... I think the button still uses this code, which is from the blank app project exa...
c#|android|xamarin
2
2016-05-04T23:49:51.050Z
2,016
5
23
2
81
1
387
50
3
2
true
false
false
false
false
false
low
37,040,082
Facebook SDK in Android always calling onCancel
<p>I'm using Facebook SDK v4.6</p> <p>I'm trying to setup a GraphAPI request class, it will communicate to Facebook Graph API if AccessToken is available. If not, it will pass an error to my Auth class which will initiate the login process</p> <p>I'm using the code below to start the login process</p> <p><code>Login...
I'm using Facebook SDK v4.6 I'm trying to setup a GraphAPI request class, it will communicate to Facebook Graph API if AccessToken is available. If not, it will pass an error to my Auth class which will initiate the login process I'm using the code below to start the login process LoginManager.getInstance().logInWithRe...
android|facebook
1
2016-05-04T23:58:07.647Z
2,016
5
23
2
331
1
1,231
47
2
0
false
false
false
false
false
false
low
37,040,134
Android Broken Navigation
<p>I am getting a weird navigation behavior and I don't know why it's happening neither how to fix it.</p> <p>I just created a new project in Android Studio 2.1 and added a <code>Login Activity</code> and a <code>Master/Detail Flow Activity</code> from the Activity Gallery.</p> <p>I added the following code inside <c...
I am getting a weird navigation behavior and I don't know why it's happening neither how to fix it. I just created a new project in Android Studio 2.1 and added a Login Activity and a Master/Detail Flow Activity from the Activity Gallery. I added the following code inside attemptLogin() into the LoginActivity : [CODE] ...
android|android-intent|android-activity|authentication
2
2016-05-05T00:03:02.133Z
2,016
5
0
3
126
1
2,326
25
4
1
true
false
false
false
false
false
low
37,040,175
Android Canvas DrawBitmap poor quality
<p>I'm extending SurfaceView to create a fullscreen horizontally scrollable background.</p> <p>My issue is with the quality of the bitmap. When used in the draw-call as </p> <pre><code>canvas.drawBitmap(bitmap, 0, 0, paint); </code></pre> <p>It's quality is much poorer than its original. I'm not doing any scaling.</...
I'm extending SurfaceView to create a fullscreen horizontally scrollable background. My issue is with the quality of the bitmap. When used in the draw-call as [CODE] It's quality is much poorer than its original. I'm not doing any scaling. [CODE] Not sure if the images show it clearly, they're screenshots from the tabl...
android|android-canvas|surfaceview|android-bitmap
2
2016-05-05T00:07:54.363Z
2,016
5
0
3
1,104
1
702
38
4
2
true
false
false
false
false
false
low
37,040,308
Braintree transaction not going through PHP
<blockquote> <p><strong>ANSWER IS AT THE BOTTOM!!!!</strong></p> </blockquote> <p>I have been following the Braintree documentation and so far everything has worked.</p> <p>In my android app i call a PHP to create a token then i send the token to a different PHP to handle the transaction.</p> <p>when the drop in u...
ANSWER IS AT THE BOTTOM!!!! I have been following the Braintree documentation and so far everything has worked. In my android app i call a PHP to create a token then i send the token to a different PHP to handle the transaction. when the drop in ui pops up i use the 4111 1111 1111 1111 Visa card and 01/20 expiration i ...
php|android|transactions|braintree
1
2016-05-05T00:23:46.277Z
2,016
5
0
3
146
0
726
43
4
4
true
true
false
false
false
false
low
37,040,631
Fetch SUM from MySQl database using PHP and then print it in android textview
<p>I need some help. I want to calculate the SUM of an amount column and then display it in a text view on my android app. Here is what I have done so far.</p> <pre><code>import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.view.View; import android.widget.Button; import a...
I need some help. I want to calculate the SUM of an amount column and then display it in a text view on my android app. Here is what I have done so far. [CODE] } And here is my PHP file with the SUM query: [CODE] As you can see i have some things commented inside my code. I tried to display the SUM with the Volley libr...
php|android|mysql
1
2016-05-05T01:04:48.357Z
2,016
5
1
3
733
1
576
77
3
2
true
false
false
false
false
false
low
37,040,711
Trying to reference a null-object reference?
<p>so I've been working on a simple app that mutes and un-mutes the camera and yes, I know this app would be illegal in many countries, but! I'm willing to try. And anyway, disclaimers are there if things get rough.</p> <p>While developing, I ran into this issue when trying to call out SharedPreferences. This is how m...
so I've been working on a simple app that mutes and un-mutes the camera and yes, I know this app would be illegal in many countries, but! I'm willing to try. And anyway, disclaimers are there if things get rough. While developing, I ran into this issue when trying to call out SharedPreferences. This is how my code is f...
java|android
-2
2016-05-05T01:15:34.560Z
2,016
5
1
3
719
1
1,060
44
2
4
true
false
false
false
false
true
negative
37,040,721
ANDROID GPS, display ALERT message to turn on GPS to continue using Application
<p>I would like to create that user can start an activity ONLY if GPS is turn on, for API 23 I done, but for API 21 do not understand how exactly should I do.</p> <p>This is GPSTracker:</p> <pre><code>public class GPSTracker extends Service implements LocationListener { private final Context context; boole...
I would like to create that user can start an activity ONLY if GPS is turn on, for API 23 I done, but for API 21 do not understand how exactly should I do. This is GPSTracker: [CODE] What si the proper way to call showSettingsAlert()?? Currently to get location I'm using: [CODE]
android|android-activity|gps|location|android-permissions
1
2016-05-05T01:16:41.990Z
2,016
5
1
3
660
0
279
79
5
2
true
true
false
false
false
false
low
37,040,796
Sharing intent should check if textview is empty
<p>I implemented Sharing intent button in my application. I have strings in textviews, but it is not always filled with any text. So, I would like to check it is empty or not. If a string is empty, sharing intent should ignore/remove/get ride of this string and go to next string. I tried to do this programmatically, bu...
I implemented Sharing intent button in my application. I have strings in textviews, but it is not always filled with any text. So, I would like to check it is empty or not. If a string is empty, sharing intent should ignore/remove/get ride of this string and go to next string. I tried to do this programmatically, but w...
android|android-intent|android-sharing
-1
2016-05-05T01:25:45.603Z
2,016
5
1
3
417
1
380
48
3
1
true
false
false
false
false
true
negative
37,041,041
How do I create a menu on android Studio?
<p>my answer may be very simple to many of you great coders. I'm in middle school; I just started to code java. my teacher assigned me a project to make an application that takes input from the user using text fields and for data to be saved and to create new files and load old files. Can anyone assist me ,please?</p> ...
my answer may be very simple to many of you great coders. I'm in middle school; I just started to code java. my teacher assigned me a project to make an application that takes input from the user using text fields and for data to be saved and to create new files and load old files. Can anyone assist me ,please? [CODE]
android-studio
0
2016-05-05T01:54:11.983Z
2,016
5
1
3
140
0
319
41
1
1
true
true
false
false
false
false
zero
37,041,210
Response body null when call succeeded (android)
<p>Please help. I invoke method on server from android and i got success with null response body. My server is ASP.NET Web API, on android client I use retrofit2.</p> <p>Method on the server (route is "Players/IsParticipant/"):</p> <pre><code> [AllowAnonymous] [Route("IsParticipant"), HttpGet] public I...
Please help. I invoke method on server from android and i got success with null response body. My server is ASP.NET Web API, on android client I use retrofit2. Method on the server (route is "Players/IsParticipant/"): [CODE] And in android: [CODE] When I invoke it: [CODE] I got an error because model is null. Why? How ...
android|asp.net-web-api|retrofit2
2
2016-05-05T02:14:18.217Z
2,016
5
2
3
452
1
380
48
3
3
true
false
false
false
false
false
low
37,041,335
retrofit Request multiple times when upload a list of big pictures
<p>I use retrofit to upload pictures. When the pictures are small it works well, but when I pick a list of big pictures, the request gets executed more times than expected. </p> <p>For example, if I choose 9 big pictures, it should execute the upload request 9 times, but it executes a number of times like at times 14 ...
I use retrofit to upload pictures. When the pictures are small it works well, but when I pick a list of big pictures, the request gets executed more times than expected. For example, if I choose 9 big pictures, it should execute the upload request 9 times, but it executes a number of times like at times 14 pictures are...
android|retrofit|retrofit2
1
2016-05-05T02:30:44.803Z
2,016
5
2
3
584
0
1,504
66
3
1
true
true
false
false
false
false
low
37,041,461
How to import old version of database file into a new version?
<p>In my application the user can export and import his database file for backup the data.I updated the database version and added some more new columns. now, probebly the user backup the old database of version 1. and after he will try to import he is going to get something like "(1) no such column: (And the Column na...
In my application the user can export and import his database file for backup the data.I updated the database version and added some more new columns. now, probebly the user backup the old database of version 1. and after he will try to import he is going to get something like "(1) no such column: (And the Column name ...
android|database|android-sqlite
1
2016-05-05T02:46:35.370Z
2,016
5
2
3
395
1
720
62
3
3
true
false
false
false
false
false
low
37,041,678
requestPermission not showing in support Fragment
<p>I know this question has been asked number of times but none of the methods are working for me. I have a v4.nested fragment and I am calling requestPermission but I don't even get the dialog to show and hence onRequestPermissionsResult is not getting called. I have tried call the onRequestPermissionsResult in both m...
I know this question has been asked number of times but none of the methods are working for me. I have a v4.nested fragment and I am calling requestPermission but I don't even get the dialog to show and hence onRequestPermissionsResult is not getting called. I have tried call the onRequestPermissionsResult in both my A...
android|android-fragments|android-appcompat
2
2016-05-05T03:10:15.493Z
2,016
5
3
3
1,132
0
610
49
3
1
true
true
false
false
false
false
low
37,041,680
Navigating back to previous activity without activating onCreate
<p>I have 2 activities, <code>WebMainActivity</code> and <code>MainActivity</code>. On start of app, I would like to load <code>WebMainActivity</code>, which will load a <code>Webview</code>. Somewhere in the web application, I will perform a Web App Interface to activate native activity <code>MainActivity</code>, and ...
I have 2 activities, WebMainActivity and MainActivity . On start of app, I would like to load WebMainActivity , which will load a Webview . Somewhere in the web application, I will perform a Web App Interface to activate native activity MainActivity , and return back to WebMainActivity on finish. My issue is, when I pu...
android|navigation
0
2016-05-05T03:10:27.900Z
2,016
5
3
3
103
0
604
64
2
2
true
true
false
false
false
false
zero
37,042,114
How to design the Google Gmail app : ContactView screen layout?
<p><a href="https://i.stack.imgur.com/1k9bm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1k9bm.png" alt="enter image description here"></a> I am trying to create view by using below code but fails*</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;android.support.design.widget.Coor...
I am trying to create view by using below code but fails* [CODE] I have tried to make AppBarLayout visibility transparent but it didn't worked.
android|android-layout|gmail|material-design|android-cardview
0
2016-05-05T04:01:03.903Z
2,016
5
4
3
1,034
1
143
63
5
1
true
false
false
false
false
false
zero
37,042,172
Search button that displays the Item from SqliteDatabase
<p>I am not experienced with android, i only started learning it</p> <p>Problem: I would like when i type the name of the item in the Edit Text that it displays the items name, cost, quantity etc. I don't know if i have to use a button so when i click it, the fields of item that i typed in the edit text comes up or if...
I am not experienced with android, i only started learning it Problem: I would like when i type the name of the item in the Edit Text that it displays the items name, cost, quantity etc. I don't know if i have to use a button so when i click it, the fields of item that i typed in the edit text comes up or if there is a...
android|sqlite
0
2016-05-05T04:07:35.797Z
2,016
5
4
3
196
1
501
56
2
3
true
false
false
false
false
false
zero
37,042,192
android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@739b5ae is not valid
<p>I am calling another activity from main activity for download quotes in background. It's working fine sometimes, but if the user presses back button and leaves application, then tries to open the application again, sometimes the application crashes with the error below. </p> <p>I have added logcat of error as wel...
I am calling another activity from main activity for download quotes in background. It's working fine sometimes, but if the user presses back button and leaves application, then tries to open the application again, sometimes the application crashes with the error below. I have added logcat of error as well my class whi...
java|android
3
2016-05-05T04:09:43.773Z
2,016
5
4
3
12,106
2
504
119
2
3
true
false
true
true
false
false
low
37,042,223
How to display specific image from drawable based on specific characters of a String
<p>I will try to describe my problem as clear as possible. I have an <code>ImageView</code> on a <code>fragment</code> and 3 <code>images</code>(labelled a,b,c) in <code>drawable</code> folder; I used <code>HashMap</code> to relate each image with their letters respectively. There is a String value with "bac". I conver...
I will try to describe my problem as clear as possible. I have an ImageView on a fragment and 3 images (labelled a,b,c) in drawable folder; I used HashMap to relate each image with their letters respectively. There is a String value with "bac". I converted this string to character array letter[] to get access to each i...
android
0
2016-05-05T04:13:09.053Z
2,016
5
4
3
171
4
755
84
1
1
true
false
false
false
false
false
zero
37,042,272
Pocketsphinx simply listening for one command
<p>I have successfully created a speech to text app which is able to open activities based on recognising keywords. At the moment for me to start the Speech to text feature I need to click a button. I now do not want to manually press the button and want to use a continuous listener to trigger the button.</p> <p>I h...
I have successfully created a speech to text app which is able to open activities based on recognising keywords. At the moment for me to start the Speech to text feature I need to click a button. I now do not want to manually press the button and want to use a continuous listener to trigger the button. I have been look...
android|android-studio|android-edittext|pocketsphinx-android|android-speech-api
1
2016-05-05T04:18:45.960Z
2,016
5
4
3
916
1
1,303
45
5
1
true
false
false
false
false
false
low
37,042,288
updateDrawState(TextPaint tp) stuck in an infinite loop on certain devices
<p>I am using an alpha interpolation on a custom <code>CharacterStyle</code> by setting an alpha value <code>mAlpha</code> and then updating the color in <code>updateDrawState(TextPaint tp)</code>.</p> <p>I'm running into an issue on newer Android devices, specifically devices running API 23 don't seem to render the <...
I am using an alpha interpolation on a custom CharacterStyle by setting an alpha value mAlpha and then updating the color in updateDrawState(TextPaint tp) . I'm running into an issue on newer Android devices, specifically devices running API 23 don't seem to render the Spans at all. On older devices the updates work pr...
android|android-edittext|spannablestring|spannable
0
2016-05-05T04:20:27.140Z
2,016
5
4
3
244
0
1,019
74
4
3
true
true
false
false
false
false
zero
37,042,366
How to install Android wear app onto android marshmallow avd emulator?
<p>For the last few days, I've been trying to get the android wear app working on an android marshmallow (API 23) emulator. The reason I'd like to do this, is so that I can pair my android (phone) emulator, with my android wear emulator, with a view to get an automated calabash smoke test running on jenkins. I know thi...
For the last few days, I've been trying to get the android wear app working on an android marshmallow (API 23) emulator. The reason I'd like to do this, is so that I can pair my android (phone) emulator, with my android wear emulator, with a view to get an automated calabash smoke test running on jenkins. I know this i...
android-emulator|google-play|wear-os|android-6.0-marshmallow|avd
2
2016-05-05T04:28:35.877Z
2,016
5
4
3
2,356
1
3,554
70
5
7
true
false
false
false
false
false
low
37,042,454
Firebase Google Sign In Implementation
<p>I'm a bit confused about what I'm passing through authWithOAuthToken for parameter.</p> <p>Does it mean the web application token provided by google developer console or the Android one?</p> <p>Ex code:</p> <pre><code>if(googleSignInResult.isSuccess()){ Log.d(TAG,"Google Login Successful"); Googl...
I'm a bit confused about what I'm passing through authWithOAuthToken for parameter. Does it mean the web application token provided by google developer console or the Android one? Ex code: [CODE] Constants.GOOGLE_OAUTH_KEY is the key client id provided by Google developer console. Whenever I try to sign in with google ...
android|google-api|firebase|firebase-authentication
0
2016-05-05T04:36:13.667Z
2,016
5
4
3
1,735
3
461
38
4
1
true
false
false
false
false
false
zero
37,042,527
Parsing in Android of WordPress JSON API
<p>I have no error message but the parsing simply doesn't seem to work. Here's the compact JSON response :</p> <p><a href="https://i.stack.imgur.com/RFn2B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RFn2B.png" alt="json response"></a></p> <p>My "WPPost" has a problem :</p> <pre><code> publi...
I have no error message but the parsing simply doesn't seem to work. Here's the compact JSON response : My "WPPost" has a problem : [CODE] The WPPostAttachement getter works well but its structure is different to the custom field structure. [CODE] How should I change the WPPost class to make the parsing work ?
android|json|wordpress|gson|android-volley
1
2016-05-05T04:44:15.223Z
2,016
5
4
3
520
2
311
40
5
2
true
false
false
false
false
false
low
37,042,592
Android Studio Git checkout is a mess
<p>I'm using my NAS server (debian) for git repos keeping to code from 2 PCs. It works great with Android Studio integrated tools if you first make identical copies of a project folder on each PC. However, if I try to create a project on one and push it to my Git server - I cannot seem to get it on the second PC in any...
I'm using my NAS server (debian) for git repos keeping to code from 2 PCs. It works great with Android Studio integrated tools if you first make identical copies of a project folder on each PC. However, if I try to create a project on one and push it to my Git server - I cannot seem to get it on the second PC in any us...
android|git|android-studio
1
2016-05-05T04:49:59.790Z
2,016
5
4
3
117
0
1,016
37
3
0
false
true
false
false
false
false
low
37,042,661
Android Radio Button with Submit Not working
<p>Trying to get My Radio Buttons working, they are in a group so only 1 may be selected at a time, but I want to allow for selecting and instead of that firing the option, rather a submit button collect the results and then call the correct method this is what I have so far:</p> <pre><code> testRm.setOnClickListen...
Trying to get My Radio Buttons working, they are in a group so only 1 may be selected at a time, but I want to allow for selecting and instead of that firing the option, rather a submit button collect the results and then call the correct method this is what I have so far: [CODE] The setReminder Method [CODE] the Toast...
java|android|radio-button
1
2016-05-05T04:56:27.960Z
2,016
5
4
3
162
1
529
44
3
3
true
false
false
false
false
false
low
37,042,684
How to use viewpager inside collapsible toolbar?
<p>I am using Viewpager at the top of my layout and below that there is a frame layout which contains a recycler View. I want to collapse the viewpager when i scroll my recycler view so that it can be viewed full screen.</p> <p>This is how my layout file looks like:</p> <pre><code> &lt;RelativeLayout xmlns:android...
I am using Viewpager at the top of my layout and below that there is a frame layout which contains a recycler View. I want to collapse the viewpager when i scroll my recycler view so that it can be viewed full screen. This is how my layout file looks like: [CODE] I have attached the screenshort also for the same.
android|android-layout
2
2016-05-05T04:58:10.113Z
2,016
5
4
3
5,700
4
314
48
2
1
true
false
true
false
false
false
low
37,042,700
Backend not in sync with the main app in Android Studio
<p>I have added a Google Cloud backend module to my app. It worked fine till yesterday. After that it suddenly refused to recognize any change I make to the backend classes. For example, I have a model class "Match" in my backend which had methods like setId, getId etc. In the app module, I had imported the Match class...
I have added a Google Cloud backend module to my app. It worked fine till yesterday. After that it suddenly refused to recognize any change I make to the backend classes. For example, I have a model class "Match" in my backend which had methods like setId, getId etc. In the app module, I had imported the Match class an...
java|android|google-app-engine|android-studio|gae-backends
0
2016-05-05T04:59:23.163Z
2,016
5
4
3
140
1
1,410
55
5
0
false
false
false
false
false
false
zero
37,042,737
takePicture failed on Android app (Using SensorEventListener to invoke Picture)
<p>I am working on a project in which I am wanting to take a picture as the device moves so as to create a panoramic image per-se. Once the Gyroscopic force exceeds a threshold, I want the camera to take a picture. I have fail safes so only 1 picture is being taken at a time, but I don't know why it is failing. </p> <...
I am working on a project in which I am wanting to take a picture as the device moves so as to create a panoramic image per-se. Once the Gyroscopic force exceeds a threshold, I want the camera to take a picture. I have fail safes so only 1 picture is being taken at a time, but I don't know why it is failing. here is my...
android|camera|computer-vision|sensors
1
2016-05-05T05:02:32.473Z
2,016
5
5
3
133
1
569
79
4
3
true
false
false
false
false
false
low
37,042,911
How to call list view in another class and then clear it
<p>We want to call list view 'm_vwList' in another class, so that when check out button (in another class) is pressed, the list is cleared from Quick Order Class. </p> <p>Can someone pls tell how to call the list view in another class and then clear it after clicking the button. we know the button functionality but no...
We want to call list view 'm_vwList' in another class, so that when check out button (in another class) is pressed, the list is cleared from Quick Order Class. Can someone pls tell how to call the list view in another class and then clear it after clicking the button. we know the button functionality but not sure of ho...
java|android|listview|android-fragments
2
2016-05-05T05:16:53.763Z
2,016
5
5
3
648
1
346
56
4
1
true
false
false
false
false
false
low
37,042,967
show the listItem related information from database on ListItemclick on new Activity
<p>I am making one Android Application and I am Stuck at One Point and need help for it.</p> <p>I have the List Of Doctors. each list row contains only DoctorName and Speciality.</p> <p>I want to show each Doctors Information Like his Address,Phone number etc.on its ItemClick in new Layout.</p> <p>How to Pass this t...
I am making one Android Application and I am Stuck at One Point and need help for it. I have the List Of Doctors. each list row contains only DoctorName and Speciality. I want to show each Doctors Information Like his Address,Phone number etc.on its ItemClick in new Layout. How to Pass this two Parameters(DocName,Speci...
android
-1
2016-05-05T05:21:13.273Z
2,016
5
5
3
25
2
635
84
1
1
true
false
false
false
false
true
negative
37,042,991
Timer not working well in ADAPTER
<pre><code> public class ItemMemberAdapter extends BaseAdapter{ ArrayList&lt;Item&gt; objects; Context context; Item itm; MyHolder holder; //timer long starttime = 0L; long timeInMilliseconds = 0L; long timeSwapBuff = 0L; long updatedtime = 0L; ...
[CODE] This is my adapter, now issue is that when i am clicking on start Button then timer is starts and i can see Log but that LOG value is not set on textView...
java|android|timer
0
2016-05-05T05:22:58.377Z
2,016
5
5
3
72
1
163
33
3
1
true
false
false
false
false
false
zero
37,043,039
Adding different onClickListener to dynamically creataed Views
<p>I am creating an android application, where I am creating 2 imageViews and 2 buttons dynamically , and I want to assign onClickListeners to them and I want to perform different functions for each of them. I have searched all over the internet but there is not information on how to make the views do their own functio...
I am creating an android application, where I am creating 2 imageViews and 2 buttons dynamically , and I want to assign onClickListeners to them and I want to perform different functions for each of them. I have searched all over the internet but there is not information on how to make the views do their own functions ...
android|click|views|listeners|setting
0
2016-05-05T05:27:24.783Z
2,016
5
5
3
616
5
416
62
5
1
true
false
false
false
false
false
zero
37,043,116
android.provider.Telephony.SMS_RECEIVED not Working
<p>My application is unable to catch android.provider.Telephony.SMS_RECEIVED , I tried changing priority but still not working .</p> <p>AndroidManifest.xml ` </p> <pre><code>&lt;uses-permission android:name="android.permission.RECEIVE_SMS"/&gt; &lt;uses-permission android:name="android.permission.READ_SMS"/&gt...
My application is unable to catch android.provider.Telephony.SMS_RECEIVED , I tried changing priority but still not working . AndroidManifest.xml ` [CODE] ` MyReceiver.java` [CODE]
android
0
2016-05-05T05:33:11.343Z
2,016
5
5
3
1,779
1
180
51
1
2
true
false
false
false
false
false
zero
37,043,120
How to add item to menu while long pressing text in android
<p>I am pretty new to android. I went through some tutorials and articles to work in android development. Just started to develop the app. I am progressing with texts and buttons etc. </p> <p>I am showing some texts in view. If I long press the text in app, it shows the options for cut, copy etc.,</p> <p>I just want ...
I am pretty new to android. I went through some tutorials and articles to work in android development. Just started to develop the app. I am progressing with texts and buttons etc. I am showing some texts in view. If I long press the text in app, it shows the options for cut, copy etc., I just want to add one more item...
android|menu
1
2016-05-05T05:33:21.187Z
2,016
5
5
3
1,018
1
617
59
2
1
true
false
false
false
false
false
low
37,043,405
text wrapping in two lines - recyclerview
<p>i am designing the app having expected UI like this </p> <p><a href="https://i.stack.imgur.com/iXIaHl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iXIaHl.png" alt="Expected"></a></p> <p>i am using RecyclerView with</p> <pre><code>StaggeredGridLayoutManager manager=new StaggeredGridLayoutMana...
i am designing the app having expected UI like this i am using RecyclerView with [CODE] and this is the row xml file [CODE] using this much i am getting the output as i don't want tags to go into second line. i am aware about the fact that i have used the span count as 3 and so getting 3 tags in one line but is there a...
android|textview|android-recyclerview
1
2016-05-05T05:56:13.317Z
2,016
5
5
3
1,035
2
367
41
3
2
true
false
false
false
false
false
low
37,043,525
Getting White page Before my Webview loads in Android Webview App
<p>I am beginner in Android development,I am facing issue that I am getting white page before my webview loads.So I would like to remove this white page so that after the splash screen it will load webview instead of white page , please help me in fixing this .</p> <p>Here is my Mainactivity.java Source Code :</p> <p...
I am beginner in Android development,I am facing issue that I am getting white page before my webview loads.So I would like to remove this white page so that after the splash screen it will load webview instead of white page , please help me in fixing this . Here is my Mainactivity.java Source Code : [CODE] Here is my ...
android|webview
0
2016-05-05T06:05:33.843Z
2,016
5
6
3
780
1
350
65
2
2
true
false
false
false
false
false
zero
37,043,563
Adapter, Timer and concurrency in Android
<p><strong>Main goal</strong>: android app-messendger for chating with company support.</p> <p><strong>Task</strong>: To impliment timers of waiting response from operator or client in listview.</p> <p><strong>Trouble</strong>: In all listview items rendering one of all timer, and then application is listing some tim...
Main goal : android app-messendger for chating with company support. Task : To impliment timers of waiting response from operator or client in listview. Trouble : In all listview items rendering one of all timer, and then application is listing some timers for a moment are rendering for correctly result, but when they ...
android|listview|timer|concurrency|android-adapter
1
2016-05-05T06:08:28.287Z
2,016
5
6
3
332
1
455
41
5
1
true
false
false
false
false
false
low
37,043,739
How to get facebook fan page feed
<p>I want to get fan page news/feeds without user login and without access token. in <a href="https://stackoverflow.com/questions/27836175/create-facebook-access-token-without-logging-in">this</a> question I found that you don't need any access token. if you have App-ID and App-Secret. This solution works on browser bu...
I want to get fan page news/feeds without user login and without access token. in this question I found that you don't need any access token. if you have App-ID and App-Secret. This solution works on browser but doesn't on Android app. Here is my code sample: [CODE] Here my response: [CODE] } Why this happen?
android|facebook|facebook-graph-api
0
2016-05-05T06:20:27.093Z
2,016
5
6
3
504
0
310
33
3
2
true
true
false
false
false
false
zero
37,043,758
Android JNI ndk-build error: 'jni' has not been declared
<p>I want to use dynamic registration in native method, so I need set <code>JNI_onLoad</code> function. I just write a function to get sum of two numbers. But, it can't build correctly. How can I correct the error?</p> <ul> <li><p>This is my *.cpp file, I name this file <code>jni.cpp</code></p> <pre><code>#include &l...
I want to use dynamic registration in native method, so I need set JNI_onLoad function. I just write a function to get sum of two numbers. But, it can't build correctly. How can I correct the error? This is my *.cpp file, I name this file jni.cpp [CODE] Android.mk [CODE] When I use ndk-build command, it's wrong. But I ...
android|c++|android-ndk|java-native-interface
0
2016-05-05T06:22:18.873Z
2,016
5
6
3
1,150
2
422
56
4
3
true
false
false
false
false
false
zero