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
28,805,179
Slow scrolling of Qt QGraphicsView
<p>I made a simple 2D game in Qt and deployed it to Android device. Main screen of the game is basically a QGraphicsView. Game world is represented by QGraphicsScene which is larger then the main screen.</p> <p>I used QGraphicsView::ensureVisible(QGraphicsItem, int, int) to scroll the game world and keep player on scr...
I made a simple 2D game in Qt and deployed it to Android device. Main screen of the game is basically a QGraphicsView. Game world is represented by QGraphicsScene which is larger then the main screen. I used QGraphicsView::ensureVisible(QGraphicsItem, int, int) to scroll the game world and keep player on screen when he...
android|qt|game-engine|qgraphicsview|qgraphicsscene
1
2015-03-02T08:13:40.403Z
2,015
3
8
0
399
0
1,117
34
5
0
false
true
false
false
false
false
low
28,805,182
Android sliding drawer from top to bottom
<p>I want to create sliding drawer in android which should be placed on top of the activity and should be open from top to bottom like android notification panel. How to achieve this?</p>
I want to create sliding drawer in android which should be placed on top of the activity and should be open from top to bottom like android notification panel. How to achieve this?
android|slidingdrawer
0
2015-03-02T08:13:53.687Z
2,015
3
8
0
5,332
2
180
41
2
0
false
false
true
false
false
false
zero
28,805,192
How can I parse JSON objects (like folder format ) shows in Android folder format?
<p>My json response should be like this</p> <p>result: [ { apps: [ { PROD_appsr12: [ { ora: [] }, { logs: [] }, { temp: [] }, {}, {}, {}, {}, {}, { pids: [] }, { admin: [] }, { portal: [] }, { appl: [] }, { rgf: [] } ] } ] } ] }</p> <p>How can I parse above <code>JSONArray</code> in dynamically (like folder structure...
My json response should be like this result: [ { apps: [ { PROD_appsr12: [ { ora: [] }, { logs: [] }, { temp: [] }, {}, {}, {}, {}, {}, { pids: [] }, { admin: [] }, { portal: [] }, { appl: [] }, { rgf: [] } ] } ] } ] } How can I parse above JSONArray in dynamically (like folder structure). this is my code`class Getdata...
android|json
0
2015-03-02T08:14:40.630Z
2,015
3
8
0
63
1
361
82
2
1
true
false
false
false
false
false
zero
28,805,252
Android Studio Subversion option
<p>Suddenly subversion option has been gone from my android Studio as marked in image<img src="https://i.stack.imgur.com/nTP52.png" alt="enter image description here"></p> <p>I have re-installed android studio still I cannot see subversion option.</p> <p>any idea regarding this?</p> <p>Thanks.</p>
Suddenly subversion option has been gone from my android Studio as marked in image I have re-installed android studio still I cannot see subversion option. any idea regarding this? Thanks.
android|svn|android-studio
4
2015-03-02T08:19:59.827Z
2,015
3
8
0
648
1
188
32
3
0
false
false
false
false
false
false
low
28,805,305
ListView only printing first value from ArrayList
<p>I've tried searching other questions, and most of them are to do with having the listview inside a scrollview, but I have no scrollview so it wasn't of much help. I'm sure it's something small I'm missing but I can't seem to pinpoint it. The below is supposed to print out the 3 animalNames to the listview, but is on...
I've tried searching other questions, and most of them are to do with having the listview inside a scrollview, but I have no scrollview so it wasn't of much help. I'm sure it's something small I'm missing but I can't seem to pinpoint it. The below is supposed to print out the 3 animalNames to the listview, but is only ...
java|android|listview|arraylist
1
2015-03-02T08:23:53.327Z
2,015
3
8
0
797
1
664
49
4
2
true
false
false
false
false
false
low
28,805,363
Android: Correct Way to Change Launcher Activity (Read Fully)
<p>I'm facing the following issue. I have an app with an established user base, and I wanted to change my default launcher activity for the app. </p> <p>The problem happens only for some users that updated the app via Google Play. Problem does not occur when running via Android Studio.</p> <p>The problem comes into p...
I'm facing the following issue. I have an app with an established user base, and I wanted to change my default launcher activity for the app. The problem happens only for some users that updated the app via Google Play. Problem does not occur when running via Android Studio. The problem comes into play with some of the...
android|android-activity|default|launcher
1
2015-03-02T08:27:57.083Z
2,015
3
8
0
549
1
1,213
61
4
1
true
false
false
false
false
false
low
28,805,385
Android Build.XXX consts standards
<p>I have a few questions about the following consts in the Build class:</p> <p>MANUFACTURER, MODEL, PRODUCT, BRAND, DEVICE</p> <ol> <li>Is there some kind of standard for the values of the above consts?</li> <li>Can I count on the values to exist (not be blank) on all devices?</li> <li>Is there a difference between ...
I have a few questions about the following consts in the Build class: MANUFACTURER, MODEL, PRODUCT, BRAND, DEVICE Is there some kind of standard for the values of the above consts? Can I count on the values to exist (not be blank) on all devices? Is there a difference between the values when the device is bought from d...
android
0
2015-03-02T08:29:20.343Z
2,015
3
8
0
114
2
504
34
1
0
false
false
false
false
false
false
zero
28,805,416
how to stop running app before timeout in eclipse
<p>I created an Android application in Eclipse.</p> <p>When I wanted to run it, it stopped due to timeout. So, I increased the ADB connection timeout to a big number! But after running again, it seems that my application has an error and timeout is not the problem.</p> <p>But the ADB connection timeout is too big for...
I created an Android application in Eclipse. When I wanted to run it, it stopped due to timeout. So, I increased the ADB connection timeout to a big number! But after running again, it seems that my application has an error and timeout is not the problem. But the ADB connection timeout is too big for me to wait! How ca...
android|eclipse|debugging|timeout
0
2015-03-02T08:31:29.787Z
2,015
3
8
0
86
0
423
49
4
0
false
true
false
false
false
false
zero
28,805,542
Bitmap half drawn correctly
<p>I got a problem with making round corners to a custom imageView. here is a snippet of my code and an image to show my issue </p> <p>Original Picture<img src="https://i.stack.imgur.com/IyTec.jpg" alt="original picture"> </p> <p>Wrong drawing<img src="https://i.stack.imgur.com/GtXd6.jpg" alt="wrong drawing"></p> <p...
I got a problem with making round corners to a custom imageView. here is a snippet of my code and an image to show my issue Original Picture Wrong drawing my Code: [CODE]
android|bitmap|crop|ondraw
0
2015-03-02T08:39:18.710Z
2,015
3
8
0
45
0
170
27
4
1
true
true
false
false
false
false
zero
28,805,545
Finding increasing or decreasing trend wrt location in Android
<p>I am using android.location.LocationListener service and want to initiate a event in real-time with following situation 1. User is in motion 2. Different set of action for Increasing trend and Decreasing trend from a fixed Location. </p> <p>How to go about it?</p>
I am using android.location.LocationListener service and want to initiate a event in real-time with following situation 1. User is in motion 2. Different set of action for Increasing trend and Decreasing trend from a fixed Location. How to go about it?
android|location
0
2015-03-02T08:39:30.633Z
2,015
3
8
0
22
0
252
62
2
0
false
true
false
false
false
false
zero
28,805,586
Back button destroys activity in Crosswalk Android
<p>We are using the Crosswalk project to implement a web view in our Android application. As I can understand, Crosswalk will keep track if the application can go back on the website or not (<a href="https://crosswalk-project.org/apis/embeddingapidocs_v2/org/xwalk/core/XWalkView.html#getNavigationHistory()" rel="nofoll...
We are using the Crosswalk project to implement a web view in our Android application. As I can understand, Crosswalk will keep track if the application can go back on the website or not ( getNavigationHistory() ) and if the user is at the root it will simply pause the activity when the user press the back-button one m...
android|webview|back
4
2015-03-02T08:42:34.097Z
2,015
3
8
0
1,476
1
1,323
50
3
1
true
false
false
false
false
false
low
28,805,607
Exclude BuildConfig.class and R.class from Android library jar in Gradle
<p>When building an Android Library Project with Gradle, what's the correct way to exclude BuildConfig.class and R.class from the resulting .jar?</p>
When building an Android Library Project with Gradle, what's the correct way to exclude BuildConfig.class and R.class from the resulting .jar?
android|gradle|android-gradle-plugin
5
2015-03-02T08:43:51.503Z
2,015
3
8
0
9,086
6
142
72
3
0
false
false
true
false
false
false
low
28,805,654
I can not convert JSON to class<T> using GSON
<p>I am using Retrofit library in my project. This library uses Gson library to convert data from JSON. I have a problem. I need to convert Generic class. </p> <pre><code>public class RestResponse&lt;T&gt; { private RestError error; private T response; public RestError getError() { return error; ...
I am using Retrofit library in my project. This library uses Gson library to convert data from JSON. I have a problem. I need to convert Generic class. [CODE] I do so below : [CODE] and [CODE] and [CODE] Retrofit returns good JSON from the server, but Gson doesn't convert this to the object. Here is my JSON string : [C...
java|android|gson|retrofit
1
2015-03-02T08:46:39Z
-1
-1
-1
-1
505
1
374
45
4
7
true
false
false
false
false
false
low
28,805,788
HTTP CONNECT method with Android
<p>I want to extend an existing Android app which sets up a http connection to a remote device which it sends commands to and receives values from.</p> <p>The feature consists of a tunneled connection via a custom proxy server that has been set up. I have the http header format given which should make the proxy server...
I want to extend an existing Android app which sets up a http connection to a remote device which it sends commands to and receives values from. The feature consists of a tunneled connection via a custom proxy server that has been set up. I have the http header format given which should make the proxy server create and...
android|http|proxy|httpclient|connect
2
2015-03-02T08:56:01.663Z
2,015
3
8
0
1,906
1
1,960
32
5
3
true
false
false
false
false
false
low
28,805,825
TabsListener not working as it should be
<p><strong>I am new to Android so please explain in detail</strong></p> <p>I want to build a basic Android app which uses Tabs. I have built a TabListener.</p> <p>But it is showing me an error. How can i fix it?</p> <p>Here is the code:</p> <pre><code>package com.adhish.tabs1; import android.annotation.SuppressLi...
I am new to Android so please explain in detail I want to build a basic Android app which uses Tabs. I have built a TabListener. But it is showing me an error. How can i fix it? Here is the code: [CODE] The error is in the declaration of this class: [CODE] Please help me to workaround this issue.
java|android|android-tabs
1
2015-03-02T08:58:02.697Z
2,015
3
8
0
379
0
297
40
3
2
true
true
false
false
false
false
low
28,805,908
automatically occupy free space
<p>I have one android app in which there is a layout. In this layout two text view is there and one view in between these text view(view is a line).</p> <p>Dynamically text get inserted into text view. I want the line automatically occupy the remaining width.</p> <p>I can make it by using linear layout and giving wei...
I have one android app in which there is a layout. In this layout two text view is there and one view in between these text view(view is a line). Dynamically text get inserted into text view. I want the line automatically occupy the remaining width. I can make it by using linear layout and giving weight to each view bu...
android|android-layout
1
2015-03-02T09:03:09.180Z
2,015
3
9
0
46
1
402
31
2
1
true
false
false
false
false
false
low
28,805,978
https image url not working with picasso android
<p>I am trying to download image from https url.</p> <p>Using following code.</p> <p>Url: <a href="https://bma8.officebrain.com/web/binary/image?model=res.partner&amp;id=81936&amp;field=image_medium&amp;t=1425030983913" rel="nofollow">https://bma8.officebrain.com/web/binary/image?model=res.partner&amp;id=81936&amp;fi...
I am trying to download image from https url. Using following code. Url: https://bma8.officebrain.com/web/binary/image?model=res.partner&id=81936&field=image_medium&t=1425030983913 [CODE] above code not working https url. replace with any http url working fine. Please help me.
android
0
2015-03-02T09:06:42.627Z
2,015
3
9
0
414
0
277
48
1
1
true
true
false
false
false
false
zero
28,806,025
Facebook share description is not shown when on my wall
<p>I am using this code to share user achievements on my app</p> <pre><code> if (FacebookDialog.canPresentShareDialog(getApplicationContext(), FacebookDialog.ShareDialogFeature.SHARE_DIALOG)) { // Publish the post using the Share Dialog try { FacebookDialog shareDialog = new Fa...
I am using this code to share user achievements on my app [CODE] when I am setting the "link" to my app Google Play link after share only content of Google Play link shown on my wall (It looks like I shared the app link), but if I am also want to see "caption" and "description". How to share a story from my app with so...
android|facebook|facebook-graph-api|facebook-share
1
2015-03-02T09:10:17.567Z
2,015
3
9
0
412
2
364
55
4
1
true
false
false
false
false
false
low
28,806,044
Using okhttp Interceptor to check the network connectitivty
<p>Could we use <strong>Interceptor</strong> to check the network connectivity and proceed if only it's connected?</p> <p>NOTICE: I'm talking about how to use okhttp interceptors to unify the network connectivity checking.</p>
Could we use Interceptor to check the network connectivity and proceed if only it's connected? NOTICE: I'm talking about how to use okhttp interceptors to unify the network connectivity checking.
android|okhttp
1
2015-03-02T09:11:40.947Z
2,015
3
9
0
1,675
1
195
59
2
0
false
false
false
false
false
false
low
28,806,078
How to traverse back to activty with some data from webview in android
<p>I want to call web view to do a transaction and after -- completing the transaction or if user cancels the transaction -- I want to traverse back to the activity from which web view get called with some data like of success message if transaction was successful or any other message.</p>
I want to call web view to do a transaction and after -- completing the transaction or if user cancels the transaction -- I want to traverse back to the activity from which web view get called with some data like of success message if transaction was successful or any other message.
android|webview|transactions
0
2015-03-02T09:13:35.677Z
2,015
3
9
0
51
1
283
70
3
0
false
false
false
false
false
false
zero
28,806,144
Material design fixed tabs without toolbar
<p>I have a slight problem figuring out a "bug" in my code. Im not sure if its a bug or not. However, as you can see in the picture 1, the fixed tabs' position is behind the curtain drawer. I cant find/understand why this is. Ive followed several tutorials and they dont seem to have the same problem. Ive tried to googl...
I have a slight problem figuring out a "bug" in my code. Im not sure if its a bug or not. However, as you can see in the picture 1, the fixed tabs' position is behind the curtain drawer. I cant find/understand why this is. Ive followed several tutorials and they dont seem to have the same problem. Ive tried to google i...
tabs|android-actionbar|toolbar|material-design
2
2015-03-02T09:17:34.037Z
2,015
3
9
0
1,288
2
821
42
4
4
true
false
false
false
false
false
low
28,806,205
How do I know the state of the ToggleButton from another activity?
<p>How do I know the state of the ToggleButton from another activity?</p> <p>i have class</p> <pre><code>public class MainScreen extends Activity{ protected ToggleButton tgbutton; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout...
How do I know the state of the ToggleButton from another activity? i have class [CODE] and [CODE] I need in the class SmallprintA determine the state of the ToggleButton tgbutton. This is possible without class inheritance?
java|android
0
2015-03-02T09:20:57.067Z
2,015
3
9
0
41
1
223
66
2
2
true
false
false
false
false
false
zero
28,806,243
Error:Execution failed for task ':app:fabricGenerateResourcesDebug'. > Crashlytics Developer Tools error
<p>Trying to add Twitter Fabric SDK. I have added all dependencies suggested by Twitter.</p> <p>Modified my build.gradle:</p> <pre><code>buildscript { repositories { jcenter() maven { url 'https://maven.fabric.io/repo' } } dependencies { classpath 'com.android.tools.build:gradle:0....
Trying to add Twitter Fabric SDK. I have added all dependencies suggested by Twitter. Modified my build.gradle: [CODE] When tries to synch got this error: [CODE] While project was build successful before modifying build.gradle file for Twitter SDK.
android|twitter-fabric|fabric.io
22
2015-03-02T09:22:42.770Z
2,015
3
9
0
22,896
3
248
104
3
2
true
false
true
true
true
false
high
28,806,261
Getting surveillance camera footage streamed to phone
<p>I am studying computer programming, but I feel that at school we are doing only stuff that work on a computer without having any connection to the outside world and it isn't all that interesting, so I gave myself a challenge. I want to make a program that streams footage from a surveillance camera to a phone. It see...
I am studying computer programming, but I feel that at school we are doing only stuff that work on a computer without having any connection to the outside world and it isn't all that interesting, so I gave myself a challenge. I want to make a program that streams footage from a surveillance camera to a phone. It seems ...
android|iphone|mobile|camera
0
2015-03-02T09:24:01.447Z
2,015
3
9
0
67
1
630
53
4
0
false
false
false
false
false
false
zero
28,806,268
Android: Why TextField is not showing?
<pre><code> TextView t = new TextView(this); t.setX(0); t.setY(0); t.setText("Tap"); t.setTextColor(Color.GREEN); t.setTextSize(25); t.setLayoutParams(new FrameLayout.LayoutParams(100, 100)); setContentView(t); </code></pre> <p>I'am in ActionBarActivity, that why I'am using "this" as con...
[CODE] I'am in ActionBarActivity, that why I'am using "this" as context, can't understand why the textField isn't showing, is here something wrong?
java|android|textview|jtextfield
-1
2015-03-02T09:24:19.207Z
2,015
3
9
0
94
2
147
38
4
1
true
false
false
false
false
true
negative
28,806,373
Android 4.2 ndk: library loading crash: load_library(linker.cpp:750) || soinfo_link_image || libhoudini.so || opencv
<p>I am using a native library that includes opencv. The library builds well and works well in all devices and emulators, but not on Android 4.2 ones. It crashes on <code>System.loadLibrary("mylib");</code>.</p> <p>The library is built for armeabi-v7a armeabi x86 mips (I see in the jnilibs folder that all the so files...
I am using a native library that includes opencv. The library builds well and works well in all devices and emulators, but not on Android 4.2 ones. It crashes on System.loadLibrary("mylib"); . The library is built for armeabi-v7a armeabi x86 mips (I see in the jnilibs folder that all the so files were generated) I am s...
android|opencv|android-ndk|unsatisfiedlinkerror
5
2015-03-02T09:29:47.130Z
2,015
3
9
0
5,341
1
581
116
4
3
true
false
true
false
false
false
low
28,806,413
Send ByteArray with Android volley
<p>There is any way to send a byte array with Volley?</p> <p>Now I'm using this:</p> <pre><code>post.setEntity(new ByteArrayEntity(rawPacket.toByteArray())); try { response = client.execute(post); } catch (IOException e) { e.printStackTrace(); } </code></pre> <p>There is something like this in Volley? There ...
There is any way to send a byte array with Volley? Now I'm using this: [CODE] There is something like this in Volley? There is a method to pass custom object to send with the POST/GET request? [CODE] I need something like protected Map<String, ByteArray> getParams()
android|post|bytearray|android-volley
2
2015-03-02T09:32:54.697Z
2,015
3
9
0
3,559
2
266
34
4
2
true
false
true
false
false
false
low
28,806,435
How to get rid of scroll in listView enenthough there is enough space when given wrap_content?
<p>I am getting scroll in list view in even though there is enough space below list view. height is WRAP_CONTENT. I will not able to give it fill_parent or match_parent due to my design.</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html pre...
I am getting scroll in list view in even though there is enough space below list view. height is WRAP_CONTENT. I will not able to give it fill_parent or match_parent due to my design. [CODE] Sorry, i cant share image due to less reputation
android|listview|scroll
-2
2015-03-02T09:33:57.370Z
2,015
3
9
0
112
1
239
94
3
1
true
false
false
false
false
true
negative
28,806,441
converting string path to inputstream
<p>I am developing a chatting app using Quickblox chat API And currently have done user registration,authentication and basic peer to peer chat and group chat. now implementing video,image and file sending But have stuck up on some part. </p> <ol> <li><p>Selecting image from sd card. returns picture path in string and...
I am developing a chatting app using Quickblox chat API And currently have done user registration,authentication and basic peer to peer chat and group chat. now implementing video,image and file sending But have stuck up on some part. Selecting image from sd card. returns picture path in string and its not converting t...
java|android|string|inputstream|quickblox
3
2015-03-02T09:34:23.283Z
2,015
3
9
0
1,874
1
1,081
37
5
2
true
false
false
false
false
false
low
28,806,476
Failure [INSTALL_FAILED_OLDER_SDK] in Android Studio?
<p>I import a project in my Android Studio and get me bellow error :</p> <pre><code>pkg: /data/local/tmp/mindmine.com.welcometol Failure [INSTALL_FAILED_OLDER_SDK] </code></pre> <p>And Bellow is my <code>build.gradle</code>, I change <code>minSdkVersion 21</code> to <code>minSdkVersion 8</code> but get me error yet:...
I import a project in my Android Studio and get me bellow error : [CODE] And Bellow is my build.gradle , I change minSdkVersion 21 to minSdkVersion 8 but get me error yet: [CODE]
android|android-studio
1
2015-03-02T09:36:14.940Z
2,015
3
9
0
401
1
178
53
2
2
true
false
false
false
false
false
low
28,806,498
Setting vectors in shaders, How does it work? OpenGL GLSL
<p>I am trying to understand how vertex and fragment shaders work in OpenGL ES 2.0.</p> <p>My shaders look like this:</p> <p><em>vertex shader:</em></p> <pre><code>// source code for the vertex shader attribute vec4 vPosition attribute vec2 a_texCoord; varying vec2 v_texCoord; void main() { gl_Position = vPosit...
I am trying to understand how vertex and fragment shaders work in OpenGL ES 2.0. My shaders look like this: vertex shader: [CODE] fragment shader: [CODE] The program that uses those shaders draws a simple 2D rectangle with a texture (an image). First it passes the vertices of the rectangle and the texture coords to the...
android|opengl-es|glsl|opengl-es-2.0|glsles
0
2015-03-02T09:37:14.427Z
2,015
3
9
0
879
1
1,197
57
5
4
true
false
false
false
false
false
zero
28,806,538
Android testing: verify onClickListener using private anonymous class
<p>I am using Robolectric and Mockito and want to verify that async task is started or not. Here is my code:</p> <pre><code> AlertDialog.Builder alert = new AlertDialog.Builder(mContext); alert.setTitle(R.string.warning_text); alert.setMessage(message); alert.setPositiveButton(R.string.ok, yesListener);...
I am using Robolectric and Mockito and want to verify that async task is started or not. Here is my code: [CODE] Here is my test case [CODE] The test fails at verify and getting "Wanted but not invoked" error. However onClick method does fire. But when defining the listener in line like below, it works [CODE] Can any o...
java|android|mockito|robolectric
1
2015-03-02T09:39:17.257Z
2,015
3
9
0
1,154
2
367
69
4
3
true
false
false
false
false
false
low
28,806,573
How to pass an Intent extra from the Intent View Android
<p>I'm using a <code>AdapterView</code> for a <code>ListView</code>, the activity where we can find the list view and an <code>EditText</code>.</p> <p>When we click on one element of the <code>ListView</code> we go to the second activity, and I want to send the data of the selected item as an extra in a <code>intent</...
I'm using a AdapterView for a ListView , the activity where we can find the list view and an EditText . When we click on one element of the ListView we go to the second activity, and I want to send the data of the selected item as an extra in a intent .This data will then be shown in the EditText I tried this code, but...
android|android-intent
0
2015-03-02T09:41:13.313Z
2,015
3
9
0
512
2
526
56
2
2
true
false
false
false
false
false
zero
28,806,587
Android how to create a generic ripple effect?
<p>There's some code that load the ripple when API version is 21 or more.</p> <pre><code>if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.LOLLIPOP) { viewHolder.container.setForeground(context.getResources().getDrawable(type.rippleId)); } </code></pre> <p>But there, I load the drawable for a specifi...
There's some code that load the ripple when API version is 21 or more. [CODE] But there, I load the drawable for a specific type. Here's my type: [CODE] what I'd like to do, is have a generic ripple effect, and load the color from the type. Because if tomorrow I have another type, I need to create another ripple drawab...
android|optimization|enums|android-5.0-lollipop|ripple
0
2015-03-02T09:41:51.553Z
2,015
3
9
0
239
1
590
46
5
2
true
false
false
false
false
false
zero
28,806,618
Start Activity in Adapter
<p>I have <code>Start Activity</code> in <code>Adapter</code> class, I use this code but dose not work. I use <code>Recycler View</code> instead of list view. </p> <p>How to correct this code? </p> <pre><code>public class CardViewDataAdapter_smiley extends RecyclerView.Adapter&lt;CardViewDataAdapter_smiley.ViewHolder...
I have Start Activity in Adapter class, I use this code but dose not work. I use Recycler View instead of list view. How to correct this code? [CODE]
android
1
2015-03-02T09:43:34.377Z
2,015
3
9
0
2,783
1
149
25
1
1
true
false
true
false
false
false
low
28,806,651
Image button in relative layout android not showing the image
<p>I am unable to see the image of the Image button when the image is in relative layout. If i use a different layout, image is working fine. My layout is as follows:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tool...
I am unable to see the image of the Image button when the image is in relative layout. If i use a different layout, image is working fine. My layout is as follows: [CODE] the same image if i set in some other layout things work fine. Can any one give me some pointers where to look out. There are no error or warnings in...
android|user-interface|android-relativelayout
0
2015-03-02T09:46:12.457Z
2,015
3
9
0
443
1
365
61
3
1
true
false
false
false
false
false
zero
28,806,657
Android Facebook get friends graph api example
<p>I would like to know how i get my facebook friends list in android?I want display facebook friends details on my android app with name and UID.</p> <p>Thanks</p>
I would like to know how i get my facebook friends list in android?I want display facebook friends details on my android app with name and UID. Thanks
android|facebook
-1
2015-03-02T09:46:23.647Z
2,015
3
9
0
2,678
2
150
46
2
0
false
false
true
false
false
true
negative
28,806,685
Scale Each Child View in Order
<p>I want to scale each view of a linearlayout in order. I am using the following animation xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;set xmlns:android="http://schemas.android.com/apk/res/android" android:duration="600" android:shareInterpolator="false" &gt; &lt;scale an...
I want to scale each view of a linearlayout in order. I am using the following animation xml [CODE] And applying it in this way [CODE] The problem is that all child views are scaled up together and than 1 by 1 scaled down with no animation. How can I fix that?
android|android-layout|android-animation
0
2015-03-02T09:47:46.973Z
2,015
3
9
0
80
1
260
30
3
2
true
false
false
false
false
false
zero
28,806,834
AlarmManager - Am I doing it right?
<p>I had setup AlarmManager in my <code>MainActivity</code> class.</p> <p>A class called <code>AlarmReceiver</code> gets fired up for every set interval of time.</p> <p>I have to perform an operation when that class is fired up. That code is in in another class <code>Parsing.java</code></p> <p>Now in <strong>AlarmRe...
I had setup AlarmManager in my MainActivity class. A class called AlarmReceiver gets fired up for every set interval of time. I have to perform an operation when that class is fired up. That code is in in another class Parsing.java Now in AlarmReceiver.java , I'm doing this : [CODE] I cannot write the code directly in ...
android|broadcastreceiver|android-service|alarmmanager|android-broadcast
0
2015-03-02T09:55:13.287Z
2,015
3
9
0
59
2
702
35
5
2
true
false
false
false
false
false
zero
28,806,872
Android iterate array inside array
<p>I have an json array from webservice connection. I want to iterate to an array objects that are columns of a table and data of a table. Array is like below:</p> <pre><code>"Table":{ "Columns":[ "ItemCode", "Description", "Value" ], "Data":[{"itemCode": "01", "description": "data", "value": "val"] } </code></pre> <...
I have an json array from webservice connection. I want to iterate to an array objects that are columns of a table and data of a table. Array is like below: [CODE] I am doing: [CODE] But it displays: org.json.JSONException: Valueat Table of type org.json.JSONObject cannot be converted to JSONArray
android|arrays|json
0
2015-03-02T09:57:10.187Z
2,015
3
9
0
45
1
298
34
3
2
true
false
false
false
false
false
zero
28,806,879
Animating drawable alpha property
<p>I want to animate the alpha property of a ViewGroup's background Drawable.</p> <p>I get a reference to the background's drawable using view.getBackground().</p> <p>Then I use the following code (<a href="https://stackoverflow.com/a/26866871">from this thread</a>):</p> <pre><code> if (backgroundDrawable.getAlph...
I want to animate the alpha property of a ViewGroup's background Drawable. I get a reference to the background's drawable using view.getBackground(). Then I use the following code ( from this thread ): [CODE] But the animation always starts from the alpha value 0. (meaning, when I want to animate to 0, it disappears im...
android|android-animation
5
2015-03-02T09:57:18.573Z
2,015
3
9
0
4,842
1
407
33
2
1
true
false
true
false
false
false
low
28,806,889
Android orientation change in video player
<p>I have a Video Player. And want to enable both landscape and portrait orientation. But the problem is that player downloading the file every time, when orientation is changed. I've tried to use "onCofigurationChange", but it is still not working. How I can solve the problem?</p> <p>P.S. I have already changed my An...
I have a Video Player. And want to enable both landscape and portrait orientation. But the problem is that player downloading the file every time, when orientation is changed. I've tried to use "onCofigurationChange", but it is still not working. How I can solve the problem? P.S. I have already changed my AndroidManife...
java|android|orientation
1
2015-03-02T09:57:47.567Z
2,015
3
9
0
2,066
1
417
42
3
2
true
false
false
false
false
false
low
28,806,941
How can I personalize my textView?
<p>Yesterday I asked a question about the TextView. I read and I see that it's very difficult to understand. So, I'm sorry. Now I explain better my problem: I try to personalize my TextView. I tried two different things:</p> <ol> <li>I use photoshop, I made an image text and I use it as a drawable. The image re-sized ...
Yesterday I asked a question about the TextView. I read and I see that it's very difficult to understand. So, I'm sorry. Now I explain better my problem: I try to personalize my TextView. I tried two different things: I use photoshop, I made an image text and I use it as a drawable. The image re-sized isn't with right ...
android|text|textview
-4
2015-03-02T10:00:21.650Z
2,015
3
10
0
114
1
641
34
3
0
false
false
false
false
false
true
negative
28,807,029
How to start activity after some time in Android?
<p>I am developing and android application in that I want to start another application(my second application). I am doing the following code </p> <pre><code> Intent i= new Intent(); i.setComponent(new ComponentName("my second app package","my class name")); startActivity(i); </code></pre> <p>It is working fine. </p...
I am developing and android application in that I want to start another application(my second application). I am doing the following code [CODE] It is working fine. I want to hide the second application after 3 or 5 seconds for that I am following the below code [CODE] But this code is not working as I expected only fo...
android|android-activity
0
2015-03-02T10:05:42.120Z
2,015
3
10
0
7,036
6
586
49
2
2
true
false
true
false
false
false
zero
28,807,054
Take screenshot of an activity on click in android
<p>I want to take screenshot of an activity and show it in next activity on button click. I'm using following code but its not working. <br> Please let me know if anyone knows the answer: </p> <pre><code>choose.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { ...
I want to take screenshot of an activity and show it in next activity on button click. I'm using following code but its not working. Please let me know if anyone knows the answer: [CODE]
android
-1
2015-03-02T10:06:42.947Z
2,015
3
10
0
760
1
186
50
1
1
true
false
false
false
false
true
negative
28,807,080
Get correct id for checkbox for update value in SQlite
<p>I have trouble getting right on my checkbox . My problem is that I do not get the correct id from the database and therefore do not know the ID / series I will update the database. I have tried various suggestions here , but nothing would work. For the most part , I notice that the index is out of ...</p> <p>When I...
I have trouble getting right on my checkbox . My problem is that I do not get the correct id from the database and therefore do not know the ID / series I will update the database. I have tried various suggestions here , but nothing would work. For the most part , I notice that the index is out of ... When I used Array...
java|android|sqlite
0
2015-03-02T10:07:43.700Z
2,015
3
10
0
75
0
574
54
3
2
true
true
false
false
false
false
zero
28,807,095
Main.xml Error About Library
<p>I'm trying use Navigation Drawer. Everything is okay, but there is an error here:</p> <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" tools:context=".MainActivity" &g...
I'm trying use Navigation Drawer. Everything is okay, but there is an error here: [CODE] Red underlined (two)line is: android:showAsAction="ifRoom" Information message is here And This line is grayed. [CODE] Any help can be help!
android|android-library
0
2015-03-02T10:08:13.310Z
2,015
3
10
0
59
1
229
28
2
2
true
false
false
false
false
false
zero
28,807,105
2 questions for Android Toolbar, translation for hide and an icon issue
<p>so i am using a <code>&lt;android.support.v7.widget.Toolbar&gt;</code> which is located at the bottom of my app. What i want to do is to hide it when i am scrolling on my listView which i am doing like this:</p> <pre><code>lv.setOnScrollListener(new AbsListView.OnScrollListener() { int mLastFirstVisibleItem = 0...
so i am using a <android.support.v7.widget.Toolbar> which is located at the bottom of my app. What i want to do is to hide it when i am scrolling on my listView which i am doing like this: [CODE] the thing is it hides and shows properly but it just happens in a second..means its there and then its gone agaon..no animat...
android
1
2015-03-02T10:08:42.993Z
2,015
3
10
0
524
1
909
71
1
3
true
false
false
false
false
false
low
28,807,121
Android icon generator for actionbar and notification not working (grey shape)
<p>I found this <a href="http://romannurik.github.io/AndroidAssetStudio/" rel="noreferrer">Asset Studio</a> to generate icons. It works fine for the launcher icon but for action bar or notification icons it is not working. I put in my png file and want to generate the icons, but Asset Studio is only generating gray cir...
I found this Asset Studio to generate icons. It works fine for the launcher icon but for action bar or notification icons it is not working. I put in my png file and want to generate the icons, but Asset Studio is only generating gray circles. Is there another tool to generate action bar and notification icons?
android|android-studio|icons|android-assets|android-icons
31
2015-03-02T10:09:30.060Z
2,015
3
10
0
35,742
9
312
78
5
0
false
false
true
true
true
false
high
28,807,129
implement drag and double tap on the same view android
<p>I want to implement both drag and double tap event on the <code>EditText</code> but I'm able to implement only either of the two. The idea behind this is as the user double taps the edit text the edit text becomes enable, and with drag he can drag it whereever he wants.</p> <pre><code>text.setOnTouchListener(new On...
I want to implement both drag and double tap event on the EditText but I'm able to implement only either of the two. The idea behind this is as the user double taps the edit text the edit text becomes enable, and with drag he can drag it whereever he wants. [CODE]
android|drag
0
2015-03-02T10:09:47.227Z
2,015
3
10
0
213
1
264
54
2
1
true
false
false
false
false
false
zero
28,807,131
how to set image stored in database to imageView in android?
<p>I want to set image address that is stored in database to image view </p> <p>I have this code but I don't know do it, I get name column to TextView but I can't set image address to imageview</p> <p>Please help me!</p> <p>Source code:</p> <pre><code>@Override public View getView(int arg0, View view, ViewGroup arg...
I want to set image address that is stored in database to image view I have this code but I don't know do it, I get name column to TextView but I can't set image address to imageview Please help me! Source code: [CODE]
android|database|android-imageview
-1
2015-03-02T10:09:50.207Z
2,015
3
10
0
1,681
2
218
60
3
1
true
false
false
false
false
true
negative
28,807,207
A query on background service
<p>In my project I plan to launch a background service on a user action.<BR>My question is:</p> <ol> <li><p>As background service's life cycle is not associated to calling component's life, so if android kills calling component while service is still running then what would happen if a communication has to be done bet...
In my project I plan to launch a background service on a user action. My question is: As background service's life cycle is not associated to calling component's life, so if android kills calling component while service is still running then what would happen if a communication has to be done between service and compon...
android|service|android-asynctask
-2
2015-03-02T10:14:04.587Z
2,015
3
10
0
93
1
655
29
3
0
false
false
false
false
false
true
negative
28,807,224
how to upload multipart request using retrofit library?
<p>i have a web service controller calss like this</p> <pre><code>public class User { private String customer; // JSON string private CommonsMultipartFile photo1; private CommonsMultipartFile photo2; private CommonsMultipartFile photo3; private CommonsMultipartFile photo4; public User() {} ...
i have a web service controller calss like this [CODE] the above create() method accepts object of type User. In client app i am calling this webservice like bellow using retrofit [CODE] But it is giving me no defaut constructor found at controller class in server side. Please check where i am doing wrong. Please solve...
java|android|json|spring-mvc|retrofit
0
2015-03-02T10:14:43.170Z
2,015
3
10
0
223
1
334
55
5
2
true
false
false
false
false
false
zero
28,807,319
Which drawer is being moved in Android?
<p>My project has two Navigation Drawers. One on the <code>left</code> using <code>start</code> and another on the <code>right</code> using <code>end</code>.</p> <p>As it is suggested here <a href="https://stackoverflow.com/questions/19577630/push-activity-on-the-right-when-open-drawer">push activity on the right when...
My project has two Navigation Drawers. One on the left using start and another on the right using end . As it is suggested here push activity on the right when open drawer I got my activity to move right whenever I am opening my drawer. But the problem is it is moving right, on the movement of both the drawers. It make...
android|navigation-drawer|drawerlayout
0
2015-03-02T10:19:22.230Z
2,015
3
10
0
53
1
629
39
3
0
false
false
false
false
false
false
zero
28,807,331
Is it possible to debug native C code (an ndk-build project) with Android Studio?
<p>I need to debug native C code (ndk-build) on the Android platform.</p> <p>Is it possible to debug it in Android Studio, and if so how can I do it ?</p>
I need to debug native C code (ndk-build) on the Android platform. Is it possible to debug it in Android Studio, and if so how can I do it ?
android|c|arm
1
2015-03-02T10:20:04.023Z
2,015
3
10
0
155
3
140
81
3
0
false
false
false
false
false
false
low
28,807,379
Android - detecting user has left the network wireless range and turning off WiFi
<p>I've been doing some research into this feature for a potential app. I want to give the user the option to turn off WiFi (automatically) when they are getting no signal from a specific network, or perhaps when no data has been transmitted over the connected network for a specific amount of time.</p> <p>I've seen a ...
I've been doing some research into this feature for a potential app. I want to give the user the option to turn off WiFi (automatically) when they are getting no signal from a specific network, or perhaps when no data has been transmitted over the connected network for a specific amount of time. I've seen a promising m...
android|wifi|android-wifi|wifimanager
0
2015-03-02T10:22:19.100Z
2,015
3
10
0
533
1
1,059
81
4
0
false
false
false
false
false
false
zero
28,807,403
Running an ANT script from SCONS
<p>Is it possible to run a particular ant script from scons?</p> <p>For example running this script from the command line works</p> <pre><code>/usr/local/bin/ant release -f /Users/dev/pic/src/platform/android/java/build.xml </code></pre> <p>is it possible to have this successfully run in scons? I try this:</p> <pre...
Is it possible to run a particular ant script from scons? For example running this script from the command line works [CODE] is it possible to have this successfully run in scons? I try this: [CODE] but that fails because it doesn't output the local.properties file with the correct SDK location [CODE] But those variabl...
java|android|ant|scons
1
2015-03-02T10:23:36.130Z
2,015
3
10
0
202
1
389
32
4
3
true
false
false
false
false
false
low
28,807,514
Keyboard not getting displayed in Android and BlackBerry on element focus
<p>At the launch of an application I need the keyboard to be appear on the screen. </p> <p>I am able to accomplish this in iOS, where I set the focus on a text field and the keyboard is appearing. However in Android and BlackBerry the keyboard is not getting displayed even though the text field is getting focused.</p...
At the launch of an application I need the keyboard to be appear on the screen. I am able to accomplish this in iOS, where I set the focus on a text field and the keyboard is appearing. However in Android and BlackBerry the keyboard is not getting displayed even though the text field is getting focused. I have used the...
javascript|android|ios|blackberry|ibm-mobilefirst
0
2015-03-02T10:28:20.257Z
2,015
3
10
0
141
1
352
73
5
1
true
false
false
false
false
false
zero
28,807,551
Android lock screen push notification
<p>How can I send lock screen push notification in Android mobile. My code is</p> <pre><code>mNotificationManager = (NotificationManager) this .getSystemService(Context.NOTIFICATION_SERVICE); PendingIntent contentIntent = PendingIntent.getActivity(this, 0, new Intent(this, MainActivity.cla...
How can I send lock screen push notification in Android mobile. My code is [CODE]
android|push-notification|google-cloud-messaging|android-5.0-lollipop|android-4.4-kitkat
0
2015-03-02T10:30:14.803Z
2,015
3
10
0
1,397
1
81
37
5
1
true
false
false
false
false
false
zero
28,807,563
TabListener not working in Android application
<p><strong>I am new to Android so please explain this in detail</strong></p> <p>I am building an App which displays 2 simple Tabs. My code is:</p> <p>ActionBarImpl.java</p> <pre><code>package com.adhish.tabs1; import android.app.ActionBar; import android.app.ActionBar.Tab; import android.app.Fragment; import androi...
I am new to Android so please explain this in detail I am building an App which displays 2 simple Tabs. My code is: ActionBarImpl.java [CODE] MyTabsListener.java [CODE] FirstFragment and SecondFragment.java [CODE] The Fragments contain a TextView to Display. But whenever i run the App, I cannot see any of the tabs at a...
java|android|listener|android-tabs
1
2015-03-02T10:30:45.667Z
2,015
3
10
0
216
1
444
46
4
4
true
false
false
false
false
false
low
28,807,716
size of double array in JNI NDK
<p>I am working on some DSP methods on Android using NDK. I am calling a convolution native method in the main activity like </p> <pre><code> public native int convolution(double[]xreal,double[]ximag,double[]yreal,double[]yimag,double[]outreal,double[]outimag, int n); </code></pre> <p>In the <code>convolution.c</c...
I am working on some DSP methods on Android using NDK. I am calling a convolution native method in the main activity like [CODE] In the convolution.c file: [CODE] The problem is I get the correct sizes of xreal,ximag,yreal,yimag which is 5442, but the size of xr is always 1. Can anyone point out the problem please?
android|android-ndk|signal-processing
0
2015-03-02T10:38:31.347Z
2,015
3
10
0
507
1
316
31
3
2
true
false
false
false
false
false
zero
28,807,770
Why UI is flickering on keyboard dismissal...?
<p>I have created a runtime views as shown in Attachment, when user clicks on any Edittext then keyboard appears, after typing something I am making some operations in aftertextchanged callback. When I dismiss the Keyboard, there is a shifting of layout downwards as shown in attachment.I don't understand why the system...
I have created a runtime views as shown in Attachment, when user clicks on any Edittext then keyboard appears, after typing something I am making some operations in aftertextchanged callback. When I dismiss the Keyboard, there is a shifting of layout downwards as shown in attachment.I don't understand why the system is...
android|performance|android-activity
0
2015-03-02T10:41:02.247Z
2,015
3
10
0
195
1
605
46
3
0
false
false
false
false
false
false
zero
28,807,844
Android: The right way to debug an running application (runtime errors/log)
<p>I am new to Android development. I have been going through the tutorials. </p> <p>I would like to know which is the right way to debug / log an application during its execution. I am guessing I should be able to execute my application directly on my android device and be able to view a log or so to catch runtime er...
I am new to Android development. I have been going through the tutorials. I would like to know which is the right way to debug / log an application during its execution. I am guessing I should be able to execute my application directly on my android device and be able to view a log or so to catch runtime errors and log...
android|debugging|runtime
1
2015-03-02T10:44:55.327Z
2,015
3
10
0
613
1
544
75
3
1
true
false
false
false
false
false
low
28,807,847
AutoCompleteTextView is taking much time to search in huge Sqlite database
<p>I have my own dictionary application WordYard and in that whenever we type in AutoCompleteTextView i am showing the words list in dropdown.</p> <p>In addTextChangedListener of autoCompleteTextView i am querying for written text in sqlite database. Since database is very huge of 1.5 lac words it takes time to make t...
I have my own dictionary application WordYard and in that whenever we type in AutoCompleteTextView i am showing the words list in dropdown. In addTextChangedListener of autoCompleteTextView i am querying for written text in sqlite database. Since database is very huge of 1.5 lac words it takes time to make the arraylis...
android|performance|sqlite|autocompletetextview|custom-adapter
0
2015-03-02T10:45:09.910Z
2,015
3
10
0
938
1
759
74
5
0
false
false
false
false
false
false
zero
28,807,874
Android : Toolbar status bar overlapping
<p>I am working on creating an app with lollipop toolbar with translucent status bar to have the status bar also tinted. It is working fine with the true property.</p> <p>It is just that the toolbar is overlapping with the status bar now which looks messy. What is the option to position the toolbar below the status b...
I am working on creating an app with lollipop toolbar with translucent status bar to have the status bar also tinted. It is working fine with the true property. It is just that the toolbar is overlapping with the status bar now which looks messy. What is the option to position the toolbar below the status bar with main...
android|android-5.0-lollipop|android-4.4-kitkat
7
2015-03-02T10:46:58.810Z
2,015
3
10
0
17,528
6
438
40
3
2
true
false
true
true
false
false
medium
28,807,882
Login Facebook Sdk without Facebook App
<p>I developed android app to share on Facebook. But when Login if Facebook App is installed then my app take credentials from Facebook app.</p> <p>How I can Login to Facebook using Facebook SDK in My app not in Facebook app.</p> <p>login facebook button:</p> <pre><code>loginButton = (LoginButton) findViewById(R.id....
I developed android app to share on Facebook. But when Login if Facebook App is installed then my app take credentials from Facebook app. How I can Login to Facebook using Facebook SDK in My app not in Facebook app. login facebook button: [CODE]
android|facebook-android-sdk|facebook-sdk-3.0
-1
2015-03-02T10:47:24.077Z
2,015
3
10
0
788
3
245
39
3
1
true
false
false
false
false
true
negative
28,807,942
Angular cant find local image on phones
<p>I'm trying to load an image from Angular into an img tag. The image loads find when I type the full path like 'ImageMap.jpg' directly into the src field in html. But when I set the value in Angular it doesnt work, it can't find the image. This happens on all devices I tested on, I included a screenshot of the WP emu...
I'm trying to load an image from Angular into an img tag. The image loads find when I type the full path like 'ImageMap.jpg' directly into the src field in html. But when I set the value in Angular it doesnt work, it can't find the image. This happens on all devices I tested on, I included a screenshot of the WP emulat...
android|ios|angularjs|image|windows-phone
0
2015-03-02T10:51:03.537Z
2,015
3
10
0
485
1
690
39
5
4
true
false
false
false
false
false
zero
28,808,021
Disabling GameObjects in a scene reduces build size in Unity, how?
<p>I know I am probably going to be called "troll", but did you know that disabling GameObjects in a scene in Unity reduces build size in Unity?</p> <p>We have discovered this accidentally while developing our new game (for Android). I was checking some models and forgot to enable GameObjects in the scene and hit "Bui...
I know I am probably going to be called "troll", but did you know that disabling GameObjects in a scene in Unity reduces build size in Unity? We have discovered this accidentally while developing our new game (for Android). I was checking some models and forgot to enable GameObjects in the scene and hit "Build", result...
android|unity3d
2
2015-03-02T10:54:39.690Z
2,015
3
10
0
1,320
0
1,082
66
2
0
false
true
false
false
false
false
low
28,808,029
how to set Roboto font for entire application?
<p>Hi I want to set Roboto font for my entire app. But only 1 text in login screen should be Arial font. Is it possible? Then how? I tried many solutions. But none of them was effective. Please help me.</p>
Hi I want to set Roboto font for my entire app. But only 1 text in login screen should be Arial font. Is it possible? Then how? I tried many solutions. But none of them was effective. Please help me.
android|fonts
2
2015-03-02T10:55:30.070Z
2,015
3
10
0
697
1
199
46
2
0
false
false
false
false
false
false
low
28,808,044
LinearLayout - How to align 2 textviews at runtime in conversation style
<p>I'm currently having some problem with LinearLayout. I have this layout for the ListView:</p> <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; &lt;LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; android:id=&quot;@+id/parent_wrapper&quot; android:la...
I'm currently having some problem with LinearLayout. I have this layout for the ListView: [CODE] it will show something like this: at run time I have this Adapter to turn the listview into conversation: [CODE] it would end up like this is it possible to align the two textviews at runtime so I have the sent message to b...
android|listview|alignment
0
2015-03-02T10:56:11.637Z
2,015
3
10
0
112
1
376
72
3
2
true
false
false
false
false
false
zero
28,808,201
Unable to find an element in Browser of the Android emulator using Appium and C#
<p>I want to automate mobile web site testing on Android emulator using c# and Appium. There is a simple test scenario I want to automate for the start:<br> 1. Start Browser<br> 2. Find an element<br> 3. Clear it<br> 4. Send keys<br></p> <p>I've got a problem with the second step. Every time MSTest tries to execute Fi...
I want to automate mobile web site testing on Android emulator using c# and Appium. There is a simple test scenario I want to automate for the start: 1. Start Browser 2. Find an element 3. Clear it 4. Send keys I've got a problem with the second step. Every time MSTest tries to execute FindElementById line in the code ...
c#|android|appium|android-uiautomator
0
2015-03-02T11:03:57.387Z
2,015
3
11
0
3,935
3
728
80
4
1
true
false
true
false
false
false
zero
28,808,243
Getting a switch Checked event to fire in the same way as a Click event with mvvmcross
<p>I've got an mvvmcross project for Android in development and have recently changed part of the UI to have a switch instead of a button to remove an item from a wish list. By default, the switch is set to On. In the button version, when the button is pressed, the item is removed instantly.</p> <p>The button was boun...
I've got an mvvmcross project for Android in development and have recently changed part of the UI to have a switch instead of a button to remove an item from a wish list. By default, the switch is set to On. In the button version, when the button is pressed, the item is removed instantly. The button was bound using Cli...
c#|xamarin|xamarin.android|mvvmcross
0
2015-03-02T11:06:00.713Z
2,015
3
11
0
331
1
764
86
4
0
false
false
false
false
false
false
zero
28,808,254
Install Android Studio on another PC by copying the folder
<p>I have installed Android Studio and downloaded everything that it needs. I've changed the editor's colors, the shortcuts, etc.</p> <p>Now I want to copy it to my laptop and to another PC, I found Android Studio at <code>C:\Program Files\Android\Android Studio</code> but will it work if I simply copy this folder in...
I have installed Android Studio and downloaded everything that it needs. I've changed the editor's colors, the shortcuts, etc. Now I want to copy it to my laptop and to another PC, I found Android Studio at C:\Program Files\Android\Android Studio but will it work if I simply copy this folder into other systems ?
android-studio
0
2015-03-02T11:06:25.067Z
2,015
3
11
0
2,214
2
313
58
1
0
false
false
false
false
false
false
zero
28,808,280
Fused Location Provider app crashes and Logcat Understanding
<p>I ve made a small module to get current location coordinates using fused location provider.</p> <p>My <strong>MainActivity.java</strong> file looks like this</p> <pre><code>TextView globalCoordinates = null; private GoogleApiClient mGoogleApiClient; private Location mLastLocation; @Override protected void onCreat...
I ve made a small module to get current location coordinates using fused location provider. My MainActivity.java file looks like this [CODE] When I try to run the app on my mobile it gives the following error: Unfortunately, Module01 has stopped. The Logcat looks like this [CODE] How can I resolve this issue?
android|fusedlocationproviderapi
-1
2015-03-02T11:07:47.363Z
2,015
3
11
0
622
1
310
60
2
2
true
false
false
false
false
true
negative
28,808,283
Send file Google Wear to mobile
<p>I'm trying to send a file from my Google wear to my Nexus 5. I've read some tutorials and came up with the following code but my phone isn't receiving a file.</p> <p>Mobile:</p> <pre><code>private GoogleApiClient mGoogleApiClient; private int count = 0; @Override protected void onCreate(Bundle savedInstanceState)...
I'm trying to send a file from my Google wear to my Nexus 5. I've read some tutorials and came up with the following code but my phone isn't receiving a file. Mobile: [CODE] Wear: [CODE] I've made a logger with the methods listed above. Can someone tell me what I'm doing wrong. Thanks in advance.
wear-os|android-wear-data-api
3
2015-03-02T11:07:56.123Z
2,015
3
11
0
868
3
297
31
2
2
true
false
false
false
false
false
low
28,808,403
Scroll TextView automatically to last line in Activity when just started
<p>On start of Activity I want TextView been scrolled down to possible last line.</p> <p>Now when Activity starts I see TextView showing text from top. How I can scroll TextView to the last line and start and show it from bottom?</p> <p>The code I'm currently using</p> <pre><code>@Override protected void initUI(...
On start of Activity I want TextView been scrolled down to possible last line. Now when Activity starts I see TextView showing text from top. How I can scroll TextView to the last line and start and show it from bottom? The code I'm currently using [CODE]
android|android-intent|android-edittext|textview
0
2015-03-02T11:14:15.350Z
2,015
3
11
0
1,274
2
255
72
4
1
true
false
false
false
false
false
zero
28,808,423
How to Move one Screen to Another Screen in LibGDX.?
<p>I am trying to move one screen to another screen using LIBGDX game engine. my first Screen where i have a button, i want when i click on this button screen should be change.</p> <pre><code>package com.mygdx.game; import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.InputProcessor; imp...
I am trying to move one screen to another screen using LIBGDX game engine. my first Screen where i have a button, i want when i click on this button screen should be change. [CODE] This is my 2nd screen code there is nothing on this screen. [CODE] this does not work properly. not showing the 2nd screen.
java|android|libgdx
1
2015-03-02T11:15:08.980Z
2,015
3
11
0
1,603
1
304
52
3
2
true
false
false
false
false
false
low
28,808,442
Listview with radiobutton from server
<p>I am using <a href="http://flowovertop.blogspot.in/2012/09/android-listview-with-radio-button-only.html" rel="nofollow">this</a> tutorial.I have a listview with radio button.when i click listview values all radiobuttons changing checked.i want single selection mode and checked radio button list values when i click s...
I am using this tutorial.I have a listview with radio button.when i click listview values all radiobuttons changing checked.i want single selection mode and checked radio button list values when i click submit button. this is my onpostexecute [CODE] this is listview onclick function in activity [CODE]
android|listview|android-listview|radio-button
0
2015-03-02T11:16:06.393Z
2,015
3
11
0
39
1
302
37
4
2
true
false
false
false
false
false
zero
28,808,470
Android insecure bluetooth connection
<p>I want to connect android mobile to one electronic device,but I want to connect it insecurely.but its giving me the error of "java.io.IOException: read failed, socket might closed or timeout, read ret: -1"</p> <p>here is my code</p> <p>package net.londatiga.android.bluetooth;</p> <pre><code>import java.io.IOExcep...
I want to connect android mobile to one electronic device,but I want to connect it insecurely.but its giving me the error of "java.io.IOException: read failed, socket might closed or timeout, read ret: -1" here is my code package net.londatiga.android.bluetooth; [CODE]
android|bluetooth
5
2015-03-02T11:17:10.423Z
2,015
3
11
0
776
1
269
37
2
1
true
false
false
false
false
false
low
28,808,471
Calendarview set week background color by passing parameter
<p>I want to set the color of the week background by passing specific date.</p> <pre><code> public void initializeCalendar(int year, int month, int day) { calendar = (CalendarView) findViewById(R.id.calendar); // sets whether to show the week number. calendar.setShowWeekNumber(false); // sets the fi...
I want to set the color of the week background by passing specific date. [CODE] } how will i set the background of the specific week.
android|calendarview
0
2015-03-02T11:17:10.853Z
2,015
3
11
0
3,022
1
133
59
2
1
true
false
true
false
false
false
zero
28,808,475
Trying to catch a click on android ListView item
<p>I saw many variation of this question in SO but none of the answers fix my problem so I guess my implementation is a bit different than the rest. (I put all the recommendation like</p> <pre><code>android:descendantFocusability="blocksDescendants" </code></pre> <p>etc.) I am trying to listen to a click event of a ...
I saw many variation of this question in SO but none of the answers fix my problem so I guess my implementation is a bit different than the rest. (I put all the recommendation like [CODE] etc.) I am trying to listen to a click event of a listView item. I managed to listen to longClick event but I couldn't replace it by...
android|listview|android-listview|android-ui|android-event
0
2015-03-02T11:17:13.760Z
2,015
3
11
0
747
3
678
48
5
4
true
false
false
false
false
false
zero
28,808,493
TextView loses text changes when listview is scrolled down
<p>I'm trying to implement the Show More and Show less functionality on my text view, which should expand and collapse on clicking Show More or Show Less text vice versa.</p> <p>Problem is if i expand the text view on clicking Show More &amp; scroll down the list ,it again collapses.</p> <p>Thanks.</p> <pre><code>pr...
I'm trying to implement the Show More and Show less functionality on my text view, which should expand and collapse on clicking Show More or Show Less text vice versa. Problem is if i expand the text view on clicking Show More & scroll down the list ,it again collapses. Thanks. [CODE]
android-listview|textview|android
1
2015-03-02T11:18:05.767Z
2,015
3
11
0
44
0
285
58
3
1
true
true
false
false
false
false
low
28,808,527
Android - how to read first line of the string
<p>i have string with \n, i would like to read first line of the string. i have tried following but its giving error.</p> <pre><code> String lines[] = plain.split("\\r?\\n"); String a = String.parse(lines[0]); String b = String.parse(lines[1]); </code></pre> <p>in same t...
i have string with \n, i would like to read first line of the string. i have tried following but its giving error. [CODE] in same time if someone tells me how to replace first line data with another value would be great. my data is as follows 123456 A B C D p o s j s u w Thanks
android
1
2015-03-02T11:20:19.427Z
2,015
3
11
0
3,158
4
278
46
1
1
true
false
true
false
false
false
low
28,808,533
Android how to filter which preferences are displayed
<p>I have 2 preference pages. Depending on a checkbox displayed on the preference page "one" I want to display a CheckBoxPreference or not display it on the page "two". I know that I should add on the activity of the page "two" a way to handle if the checkbox in the page "one" is checked or not. But i don't know how to...
I have 2 preference pages. Depending on a checkbox displayed on the preference page "one" I want to display a CheckBoxPreference or not display it on the page "two". I know that I should add on the activity of the page "two" a way to handle if the checkbox in the page "one" is checked or not. But i don't know how to re...
android|sharedpreferences|preferences|checkboxpreference
0
2015-03-02T11:20:32.760Z
2,015
3
11
0
145
2
341
53
4
0
false
false
false
false
false
false
zero
28,808,557
Stack overflow while making EditText clickable
<p>I try to make three EditTexts clickable with an onFocusChangeListener, but sometimes I get this:</p> <pre><code>03-02 11:57:06.340: E/InputEventReceiver(24904): Exception dispatching input event. 03-02 11:57:06.342: E/MessageQueue-JNI(24904): Exception in MessageQueue callback: handleReceiveCallback 03-02 11:57:08....
I try to make three EditTexts clickable with an onFocusChangeListener, but sometimes I get this: [CODE] I use this code: [CODE] The Activity I start works perfectly fine, so this can't be se reason. When I tried the same with a normal Button and an onClickListener there was no Problem. I also tried it with an onClickLi...
android|performance|android-edittext|stack-overflow
0
2015-03-02T11:21:45.923Z
2,015
3
11
0
495
1
666
46
4
2
true
false
false
false
false
false
zero
28,808,570
ARM Translation on Genymotion
<p>Okey, BlueStacks is a bit slow on my pc, so I read somewhere in the internet that Genymotion is a bit faster then BlueStacks. Then I downloaded Genymotion and installed it. And after a lot of complex steps I finally understood that I need <a href="http://forum.xda-developers.com/showthread.php?t=2528952" rel="norefe...
Okey, BlueStacks is a bit slow on my pc, so I read somewhere in the internet that Genymotion is a bit faster then BlueStacks. Then I downloaded Genymotion and installed it. And after a lot of complex steps I finally understood that I need ARM translation and Google app for playing Android games. Now, I can understand t...
android|genymotion
8
2015-03-02T11:22:18.157Z
2,015
3
11
0
10,737
2
570
29
2
0
false
false
true
false
false
false
medium
28,808,598
How to make calculator over two activities
<p>I have made an app where the user selects a food type, enters a weight and then the app calculates the calories. This calorie is then moved onto the MainActivity (when the 'Save' button is pressed) where the total calories will be displayed for that day. </p> <p>I need the app to take all calories calculated and ad...
I have made an app where the user selects a food type, enters a weight and then the app calculates the calories. This calorie is then moved onto the MainActivity (when the 'Save' button is pressed) where the total calories will be displayed for that day. I need the app to take all calories calculated and add them onto ...
java|android|android-studio|calculator
0
2015-03-02T11:24:06.773Z
2,015
3
11
0
243
3
485
42
4
2
true
false
false
false
false
false
zero
28,808,612
APQ8064 alsa recording
<p>I have a Nexus 4 device (msm8960 with APQ8064 sound card).<br> I'm trying to record audio from the primary device (pcmC0P0c) using tinyalsa tinycap utility but I encounter the following issues:<br></p> <ul> <li>If I do not modify any mixer control, I get an "Unable to open PCM device - device not found error" </li>...
I have a Nexus 4 device (msm8960 with APQ8064 sound card). I'm trying to record audio from the primary device (pcmC0P0c) using tinyalsa tinycap utility but I encounter the following issues: If I do not modify any mixer control, I get an "Unable to open PCM device - device not found error" When I set one of Multimedia1 ...
android|alsa|nexus-4|tinyalsa
0
2015-03-02T11:25:06.033Z
2,015
3
11
0
505
0
1,021
22
4
1
true
true
false
false
false
false
zero
28,808,619
MKCircle overlay inverted
<p>I've found this post how to draw circle overlay around location</p> <p><a href="https://stackoverflow.com/questions/9056451/draw-a-circle-of-1000m-radius-around-users-location-in-mkmapview">Draw a circle of 1000m radius around users location in MKMapView</a></p> <p>I'm able to set some color, or transparency or wh...
I've found this post how to draw circle overlay around location Draw a circle of 1000m radius around users location in MKMapView I'm able to set some color, or transparency or whatever for overlay. but I'd like to do the same for rest of the map area. F.e outside circle overlay sort of "terra incognita" One possible so...
ios|mapkit|android-mapview|mkoverlay
0
2015-03-02T11:25:25.353Z
2,015
3
11
0
546
1
550
25
4
0
false
false
false
false
false
false
zero
28,808,665
Show cropped image after video record android
<p>When I start to record video and stop a pause.Sometimes show me cropped image preview.How to avoid this behavior.I'm using intent for calling camera.Thanks.</p> <pre><code> Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE); intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); intent.put...
When I start to record video and stop a pause.Sometimes show me cropped image preview.How to avoid this behavior.I'm using intent for calling camera.Thanks. [CODE] My activity in manifest [CODE]
android|android-camera-intent
0
2015-03-02T11:27:36.020Z
2,015
3
11
0
56
0
194
45
2
2
true
true
false
false
false
false
zero
28,808,712
Error When Trying To Run A Cordova Application On An Android Device
<p>I'm trying to run a cordova application on my Android phone using the command 'cordova run'. Everytime I run this with my phone plugged in to my computer I get the following error:</p> <p>Installing app on device...</p> <pre><code>/Users/Rubio/Projects/beaconDemo/platforms/android/cordova/node_modules/q/q.js:126 ...
I'm trying to run a cordova application on my Android phone using the command 'cordova run'. Everytime I run this with my phone plugged in to my computer I get the following error: Installing app on device... [CODE] How can i get around this issue?
android|cordova
4
2015-03-02T11:29:38.440Z
2,015
3
11
0
6,169
1
248
67
2
1
true
false
true
false
false
false
low
28,808,749
How to use a StateListDrawable at runtime?
<p>I have a problem with some code. I want to create a ColorPicker <code>DialogFragment</code>. At the moment I use a <code>GridView</code> and a custom <code>BaseAdapter</code> to show some color shapes. For each color I use a round <code>ShapeDrawable</code>. To set the color of the default state, I use the following...
I have a problem with some code. I want to create a ColorPicker DialogFragment . At the moment I use a GridView and a custom BaseAdapter to show some color shapes. For each color I use a round ShapeDrawable . To set the color of the default state, I use the following code: getView() of my "ColorAdapter" [CODE] That wor...
android|gridview|android-resources|statelistdrawable
0
2015-03-02T11:31:17.537Z
2,015
3
11
0
679
1
885
42
4
2
true
false
false
false
false
false
zero
28,808,758
Which component can I use in Android Studio for the purpose of creating a touchpad?
<p>I've been searching for a View/Component in Android Studio that I could use for creating a touchpad. I need the ability to track mouse movements, so that I use that information on the server side to handle it and emulate mouse movements.</p> <p>What would be the best fit for that purpose?</p>
I've been searching for a View/Component in Android Studio that I could use for creating a touchpad. I need the ability to track mouse movements, so that I use that information on the server side to handle it and emulate mouse movements. What would be the best fit for that purpose?
java|android|android-view|custom-view
0
2015-03-02T11:31:34.027Z
2,015
3
11
0
480
2
282
83
4
0
false
false
false
false
false
false
zero
28,808,813
Can An Android-based app be run on Samsung Gear S?
<p>I hava been developoing an app with gear S which I don't have.Just want to know how to develop an app using gear s</p>
I hava been developoing an app with gear S which I don't have.Just want to know how to develop an app using gear s
android|gears
0
2015-03-02T11:34:07.530Z
2,015
3
11
0
70
1
114
50
2
0
false
false
false
false
false
false
zero
28,808,826
My android application freezes when I subscribe to a channel for parse push notification
<p>Hi I was following the android push notification tutorial, and my application just freezes when I run it and then a time out occurs. But in the application class, if I remove ParsePush.subscribeInBackground, application runs properly. And my application only has one activity that prints hello world. Thanks for help....
Hi I was following the android push notification tutorial, and my application just freezes when I run it and then a time out occurs. But in the application class, if I remove ParsePush.subscribeInBackground, application runs properly. And my application only has one activity that prints hello world. Thanks for help. My...
android|parse-platform|push-notification
0
2015-03-02T11:34:40.523Z
2,015
3
11
0
552
1
404
88
3
3
true
false
false
false
false
false
zero
28,808,888
java.lang.UnsatisfiedLinkError: Couldn't load from loader dalvik.system.PathClassLoader findLibrary returned null
<p>I understand this is asked many times, but I have done thorough research before posting my query.</p> <p>I have updated Android Studio to latest version as of March 2nd 2015, version 1.1.0. I think still grade does not package .so files on its own.</p> <p>I have written NewNDK.c in /jni folder. Ran the ndk-build s...
I understand this is asked many times, but I have done thorough research before posting my query. I have updated Android Studio to latest version as of March 2nd 2015, version 1.1.0. I think still grade does not package .so files on its own. I have written NewNDK.c in /jni folder. Ran the ndk-build script and .so files...
android-ndk
2
2015-03-02T11:38:11.940Z
2,015
3
11
0
7,655
2
930
113
1
2
true
false
true
false
false
false
low
28,808,944
Get context/activity in detached fragment?
<p>There is a <a href="https://stackoverflow.com/questions/20464273/get-the-application-context-in-fragment-in-android">similar question</a> where most answers advice to use <code>getActivity()</code> in order to obtain the context of a fragment, but how to get a reference to the activity/context if the fragment is det...
There is a similar question where most answers advice to use getActivity() in order to obtain the context of a fragment, but how to get a reference to the activity/context if the fragment is detached (in which case, getActivity() returns null)? My situation is that my fragment starts an AsyncTask which, on completion, ...
android|android-fragments|android-asynctask|android-context
5
2015-03-02T11:41:40.733Z
2,015
3
11
0
3,210
2
857
42
4
0
false
false
true
false
false
false
low
28,808,963
Can't load Texture in onActivityResult
<p>This is the Core project :</p> <pre><code>public class GameClass extends Game { public CustomScreen customScreen; public CustomScreen currentScreen; public CustomInterface handler; public static int screenWidth; public static int screenHeight; public GameClass(CustomInterface handler) { ...
This is the Core project : [CODE] And this is the Android project : [CODE] When the render function in the CustomScreen class is called, after I picked a picture in the Android library, instead of displaying the badlogic.jpg texture I was expecting, it displays a black texture. This is what it displays : And this is wh...
java|android|libgdx|textures|onactivityresult
1
2015-03-02T11:42:42.660Z
2,015
3
11
0
79
0
740
38
5
2
true
true
false
false
false
false
low
28,809,078
Android: how can I control volume of ring and music in the same time?
<p>I have problem, I use Text To Speech and also play some sounds with MediaPlayer. I understand that if I want to control volume of MediaPlayer I must set: </p> <pre><code>setVolumeControlStream(AudioManager.STREAM_MUSIC); </code></pre> <p>but I noticed that my TextToSpeech is controlled by ring volume. So w...
I have problem, I use Text To Speech and also play some sounds with MediaPlayer. I understand that if I want to control volume of MediaPlayer I must set: [CODE] but I noticed that my TextToSpeech is controlled by ring volume. So when I set STREAM_MUSIC I can set sfx volume but can't set TTS volume and vice versa when I...
android|audio
1
2015-03-02T11:48:49.340Z
2,015
3
11
0
427
0
749
69
2
3
true
true
false
false
false
false
low
28,809,088
Delete the listitems from database
<p>How to delete the list items from listview contact adapter class and Sqlite database.From listview it deleted successfully.But in database it doesn't delete.if I call the delete method means it shows null ponter exception.And my Listview is in Fragment class and list items are in listview contact adapter class.on th...
How to delete the list items from listview contact adapter class and Sqlite database.From listview it deleted successfully.But in database it doesn't delete.if I call the delete method means it shows null ponter exception.And my Listview is in Fragment class and list items are in listview contact adapter class.on that ...
android
0
2015-03-02T11:49:09.300Z
2,015
3
11
0
76
1
614
34
1
0
false
false
false
false
false
false
zero