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,586,108
Issue while reading from remote Bluetooth device in Android
<p>I want to read data from a Bluetooth device in my application. In app I show a list of Bluetooth devices available &amp; on clicking on any list item I do like this.</p> <pre><code>public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) { mBluetoothAdapter.cancelDiscovery(...
I want to read data from a Bluetooth device in my application. In app I show a list of Bluetooth devices available & on clicking on any list item I do like this. [CODE] Following is the BluetoothService class I am using to interact with paired device. I can see in log that I am able to connect with device but when I ca...
android|bluetooth
0
2015-02-18T14:30:35.797Z
2,015
2
14
2
222
2
528
59
2
2
true
false
false
false
false
false
zero
28,586,111
Android BLE: onCharacteristicChanged never fires
<p>I'm trying to write an Android app that mimics functionality already present in an iOS app I wrote. I am interfacing with 2 different BLE devices:</p> <ol> <li>Blood Pressure Cuff</li> <li>Weight Scale</li> </ol> <p>On iOS, I have both devices working well and reporting data. On Android, I can't get it to work. Af...
I'm trying to write an Android app that mimics functionality already present in an iOS app I wrote. I am interfacing with 2 different BLE devices: Blood Pressure Cuff Weight Scale On iOS, I have both devices working well and reporting data. On Android, I can't get it to work. After hours of research and testing, I thin...
android|bluetooth-lowenergy|android-bluetooth
11
2015-02-18T14:30:56.420Z
2,015
2
14
2
9,379
2
3,891
48
3
5
true
false
true
false
true
false
medium
28,586,160
Android, kill/remove Asynctask at it's onPostExecute()
<p>I'm developing an app that when user clicks on a <code>Button</code> it executes an <code>Asynctask</code> that this class calls a method at it's <code>onPostExecute</code> method that calls another <code>Asynctask</code>! It works when user clicks once, but at the second time it crashes and says <code>Cannot execut...
I'm developing an app that when user clicks on a Button it executes an Asynctask that this class calls a method at it's onPostExecute method that calls another Asynctask ! It works when user clicks once, but at the second time it crashes and says Cannot execute task: the task has already been executed (a task can be ex...
android|android-asynctask
-1
2015-02-18T14:33:41.287Z
2,015
2
14
2
691
1
346
54
2
1
true
false
false
false
false
true
negative
28,586,166
Use Canvas as style of Button
<p>Hello, At First I want to say sorry that my English is not the best.<br> In my Android Project, I have a Canvas Shaped View.<br> My Question is.<br> Is it possible to use the Canvas shaped View as style of a Button?</p>
Hello, At First I want to say sorry that my English is not the best. In my Android Project, I have a Canvas Shaped View. My Question is. Is it possible to use the Canvas shaped View as style of a Button?
java|android|android-layout|wear-os
-2
2015-02-18T14:33:53.807Z
2,015
2
14
2
53
1
203
29
4
0
false
false
false
false
false
true
negative
28,586,175
Starting Instagram application via Intent
<p>Good day, everyone. I've recently got the annoying problem - when i try to start Instagram app through Intent, the Instagram activity starts for a moment, and closes immediately, returning me back to my app. This problem appeared only one or two days ago, and the same code worked before as expected. Does anyone met ...
Good day, everyone. I've recently got the annoying problem - when i try to start Instagram app through Intent, the Instagram activity starts for a moment, and closes immediately, returning me back to my app. This problem appeared only one or two days ago, and the same code worked before as expected. Does anyone met the...
android|android-intent|instagram
0
2015-02-18T14:34:14.913Z
2,015
2
14
2
503
1
365
41
3
0
false
false
false
false
false
false
zero
28,609,792
Start a Windows app without user interaction just after installation on Windows Phone
<p>I <a href="https://stackoverflow.com/questions/8531926/how-to-start-a-service-when-apk-is-installed-for-the-first-time">read that on android all applications</a>, upon installation, are placed in a "stopped" state. This is the same state that the application winds up in after the user force-stops the app from the Se...
I read that on android all applications , upon installation, are placed in a "stopped" state. This is the same state that the application winds up in after the user force-stops the app from the Settings application. While in this "stopped" state, the application will not run for any reason, except by a manual launch of...
android|smartphone|boot|windows-phone
0
2015-02-18T14:34:18.997Z
2,015
2
14
2
113
0
480
85
4
0
false
true
false
false
false
false
zero
28,586,181
Android Database Read From Existing .sqlite FIle
<p>I would like to read database from an existing file.</p> <p>I have copied the .sqlite database to asset folder. I can see the .sqlite file under DDMS explorer in /data/data//databases/</p> <p>However when I run a "c = db.rawQuery("SELECT count(*) FROM sqlite_master WHERE type = 'table'", null);"</p> <p>It only re...
I would like to read database from an existing file. I have copied the .sqlite database to asset folder. I can see the .sqlite file under DDMS explorer in /data/data//databases/ However when I run a "c = db.rawQuery("SELECT count(*) FROM sqlite_master WHERE type = 'table'", null);" It only returns the android_metadata ...
android|database
1
2015-02-18T14:34:43.637Z
2,015
2
14
2
1,626
2
798
48
2
2
true
false
false
false
false
false
low
28,586,206
Is there any way to disable "Watch Next" block at the end of video using YouTube Android Player API?
<p>In my app I'm using YouTube Android Player API library from here <a href="https://developers.google.com/youtube/android/player/" rel="nofollow">https://developers.google.com/youtube/android/player/</a> I have a fragment that extends YouTubePlayerFragment. All works fine, but I need to make some improvements to app.<...
In my app I'm using YouTube Android Player API library from here https://developers.google.com/youtube/android/player/ I have a fragment that extends YouTubePlayerFragment. All works fine, but I need to make some improvements to app. At the end of some videos I see block "Watch Next" with the link to another video, so ...
android|youtube|youtube-api|android-youtube-api
1
2015-02-18T14:35:57.087Z
2,015
2
14
2
2,075
0
610
100
4
0
false
true
false
false
false
false
low
28,586,218
Array operations sometimes throws 'Operation is invalid after previous operation'
<p>In one of my parse subclasses I have a method like this:</p> <pre><code>public void updateCheckpoint(String checkpoint, boolean checked) { if (checked) { addUnique(checkedCheckpoints, checkpoint); } else { removeAll(checkedCheckpoints, Arrays.asList(checkpoint)); } } </code></pre> <p>Th...
In one of my parse subclasses I have a method like this: [CODE] This update is immediately followed by a pinning to the local datastore. Even when adding a ProgressDialog to ensure that the pinning has completed between updates, then sometimes the Operation is invalid after previous operation is thrown. Is there a more...
android|parse-platform
3
2015-02-18T14:36:18.010Z
2,015
2
14
2
1,457
2
358
81
2
1
true
false
false
false
false
false
low
28,586,223
why does Jsoup selector div#id work in netbeans but not in eclipse ADT?
<p>Following code works fine in netbeans, but in eclipse ADT, <code>doc.select("div#tickertape_eng a").size()</code> returns 0.</p> <pre><code>try { Document doc = Jsoup.connect("http://bdnews24.com").get(); if (doc != null) { Elements links = doc.select("div#tickertape_eng a");...
Following code works fine in netbeans, but in eclipse ADT, doc.select("div#tickertape_eng a").size() returns 0. [CODE] In netbeans, I can print link.text() and link.absUrl("href"), but not in eclipse. Eclipse prints doc.title() in logcat fine, but why does doc.select("div#tickertape_eng a") not work? How to make it wor...
android|eclipse|netbeans|jsoup|adt
1
2015-02-18T14:36:39.173Z
2,015
2
14
2
111
2
322
71
5
1
true
false
false
false
false
false
low
28,586,230
Moving data derived from MySQL from one PHP to another
<p>I am creating an Android app where I have a login page and then a page showing data based on who logged in.</p> <p>The login page is as follows:</p> <pre><code> &lt;?php include('listview.php'); $hostname_localhost ="URL"; $database_localhost ="project_test"; $username_localhost ="user"; $pa...
I am creating an Android app where I have a login page and then a page showing data based on who logged in. The login page is as follows: [CODE] And my listview page is: [CODE] In the variable $result I am trying to show only the employees that have the same GroupID as the person who logged in. So: $result = mysql_quer...
php|android
0
2015-02-18T14:37:02.850Z
2,015
2
14
2
103
2
829
54
2
5
true
false
false
false
false
false
zero
28,586,241
Possible to overwrite existing file using Storage Access FrameWork with Google Drive?
<p>I am using the Storage Access Framework in Android with the ACTION_CREATE_DOCUMENT intent to create a text file on Google Drive. Works fine. </p> <p>But if I store a file called for instance "new.txt" and then 5 minutes later another file also called "new.txt" (with different contents) then there are now two files ...
I am using the Storage Access Framework in Android with the ACTION_CREATE_DOCUMENT intent to create a text file on Google Drive. Works fine. But if I store a file called for instance "new.txt" and then 5 minutes later another file also called "new.txt" (with different contents) then there are now two files with the sam...
android|android-intent|google-drive-api|storage-access-framework
4
2015-02-18T14:37:28.900Z
2,015
2
14
2
929
0
935
85
4
0
false
true
false
false
false
false
low
28,586,278
Android socket behaviour after screen_off
<p><strong>Situation:</strong> I'm developing an Android app using a socket for communication with a server via the websocket protocol. The starting point to open the socket is a Service started from the application context. Opening and communicating with the server works fine.</p> <p><strong>Problem / Question:</stro...
Situation: I'm developing an Android app using a socket for communication with a server via the websocket protocol. The starting point to open the socket is a Service started from the application context. Opening and communicating with the server works fine. Problem / Question: The socket is not closed, when the device...
android|sockets
0
2015-02-18T14:39:38.407Z
2,015
2
14
2
96
1
746
41
2
0
false
false
false
false
false
false
zero
28,586,359
Could not allocate CursorWindow '/data/data/com.app/databases/appName.db' of size 123456 due to error -12
<p>I get those error every time on <code>SGS4</code> while using <code>sqlite</code>, and on other devices like <code>SGS3</code> it works pretty good (with no issues).</p> <p>Regards</p>
I get those error every time on SGS4 while using sqlite , and on other devices like SGS3 it works pretty good (with no issues). Regards
java|android|database|sqlite|samsung-mobile
2
2015-02-18T14:44:31.027Z
2,015
2
14
2
545
0
135
105
5
0
false
true
false
false
false
false
low
28,586,388
Application based on qxmpp can't connect to server on Android, but working well on windows
<p>I'm using qxmpp library in my project. I've tried to write simple app to find out if it connects to server. It connects on Windows well. Then I've tried to test it on Android, but it doesn't connect and I don't know why because it shows no error.</p> <p>The app running correctly on Android, but it seems nothing is ...
I'm using qxmpp library in my project. I've tried to write simple app to find out if it connects to server. It connects on Windows well. Then I've tried to test it on Android, but it doesn't connect and I don't know why because it shows no error. The app running correctly on Android, but it seems nothing is going on ab...
android|qt5|qxmpp
1
2015-02-18T14:45:47.457Z
2,015
2
14
2
232
1
733
90
3
5
true
false
false
false
false
false
low
28,586,421
MvvmCross Android Bindings with dependent assembly
<p>Our main android app includes MvxBindingAttributes.xml to provide binding syntax to the android axml. The issue I've run into, is when writing a plugin (dependent android assembly) which also has xaml definitions (the assembly has it's own MvxBindingAttributes.xml defined as a resource)</p> <p>Now when compiling th...
Our main android app includes MvxBindingAttributes.xml to provide binding syntax to the android axml. The issue I've run into, is when writing a plugin (dependent android assembly) which also has xaml definitions (the assembly has it's own MvxBindingAttributes.xml defined as a resource) Now when compiling the app, comp...
android|mvvmcross
0
2015-02-18T14:47:29.063Z
2,015
2
14
2
32
1
542
50
2
0
false
false
false
false
false
false
zero
28,586,424
What is causing the soft keyboard to stop responding?
<p>I'm experiencing something I cannot describe entirely. </p> <p>I somehow keep doing something that messes with the soft keyboard, not just in my application, but on the entire device.</p> <p>So, I'm developing a game with OpenGl ES 2.0. Everything was fine before I implemented the GLSurfaceView, but after that on ...
I'm experiencing something I cannot describe entirely. I somehow keep doing something that messes with the soft keyboard, not just in my application, but on the entire device. So, I'm developing a game with OpenGl ES 2.0. Everything was fine before I implemented the GLSurfaceView, but after that on random occasions the...
android|opengl-es-2.0|keyevent
0
2015-02-18T14:47:35.920Z
2,015
2
14
2
902
1
995
53
3
1
true
false
false
false
false
false
zero
28,586,437
how to write multi language code for dropdown list in spinner
<p>I want to write this soil name in local language but in database it should in English. Normally for string name it works but for dropdown list what to do ? please ,tell me solution..</p> <p>Choose a Soil_Type</p> <pre><code>&lt;string-array name="soiltype_arrays"&gt; &lt;item&gt;Select Item&lt;/item&gt; &l...
I want to write this soil name in local language but in database it should in English. Normally for string name it works but for dropdown list what to do ? please ,tell me solution.. Choose a Soil_Type [CODE]
android|string|drop-down-menu|spinner|multilingual
-2
2015-02-18T14:48:21.280Z
2,015
2
14
2
705
1
208
61
5
1
true
false
false
false
false
true
negative
28,586,443
Android View onSaveInstanceState not called
<p>I am working with CustomView which extends some Android view like FrameLayout. In my layout I use a ViewPager with a custom PagerAdapter. </p> <p>The problem is that my <strong>View</strong> <strong>did not restore it's state</strong> when the fragment is re-attached to the ViewPager/Activity. For example, I have ...
I am working with CustomView which extends some Android view like FrameLayout. In my layout I use a ViewPager with a custom PagerAdapter. The problem is that my View did not restore it's state when the fragment is re-attached to the ViewPager/Activity. For example, I have three fragments, if I swipe to the last one and...
android|android-viewpager|android-view
17
2015-02-18T14:48:48.827Z
2,015
2
14
2
6,774
2
611
43
3
0
false
false
true
false
true
false
medium
28,586,447
Retrofit Response Error with Content type text/html
<p>I am having issue with an API service ,</p> <pre><code>https://api.litzscore.com/rest/v2/recent_matches/ </code></pre> <p>I think the issue is with their Response Header Content type,When i contacted them they said like this </p> <blockquote> <p>Its should be possible to load the response as string and parse it...
I am having issue with an API service , [CODE] I think the issue is with their Response Header Content type,When i contacted them they said like this Its should be possible to load the response as string and parse it as JSON. Your library not understanding our content type. The Content type in response is [CODE] Is the...
android|retrofit|okhttp
3
2015-02-18T14:48:53.850Z
2,015
2
14
2
2,955
1
386
51
3
2
true
false
true
false
false
false
low
28,586,451
Trying to ID the SMS delivery confirmation
<p>I am currently trying to get the confirmation for each sended SMS. I need to be sure that my SMS are send, so I used a <code>BroadCastReceived</code> to get the information :</p> <pre><code>Intent sentIntent = new Intent(SMS_SEND); sentIntent.putExtra("key", idSms); PendingIntent sentPI = PendingIntent.getB...
I am currently trying to get the confirmation for each sended SMS. I need to be sure that my SMS are send, so I used a BroadCastReceived to get the information : [CODE] and use a broadcast receiver like this [CODE] This work like a charm until I try to send multiple messages at the same time, the extra receive is alway...
android|android-intent|sms|smsmanager
0
2015-02-18T14:49:04.107Z
2,015
2
14
2
834
1
847
42
4
2
true
false
false
false
false
false
zero
28,586,453
Android: How to deactivate GPS
<p>'m working on an android app, and i'm quite new to the android development. At the moment i have problems to find a way to deactivate the GPS on the device.</p> <p>What i'm trying to do is to deactivate the GPS when the user clicks a button. As far as i know the only way to do is buy using removeUpdates method from...
'm working on an android app, and i'm quite new to the android development. At the moment i have problems to find a way to deactivate the GPS on the device. What i'm trying to do is to deactivate the GPS when the user clicks a button. As far as i know the only way to do is buy using removeUpdates method from the Locati...
java|android|gps
0
2015-02-18T14:49:07.993Z
2,015
2
14
2
99
1
671
30
3
1
true
false
false
false
false
false
zero
28,586,516
I want to insert data into google fusion table from my android app database using java
<p>I am making an app in android where i am collecting data through form and saving it in the SQLite database in the internal memory. Then i am fetching all the data from the database and i want to insert all the data into Google Fusion Table which i have created. i have created one project in google console and enable...
I am making an app in android where i am collecting data through form and saving it in the SQLite database in the internal memory. Then i am fetching all the data from the database and i want to insert all the data into Google Fusion Table which i have created. i have created one project in google console and enabled t...
java|android|google-fusion-tables
1
2015-02-18T14:52:18.610Z
2,015
2
14
2
405
0
902
86
3
2
true
true
false
false
false
false
low
28,586,578
Hide default text for android switch Button
<p>In my Android application I have used a Switch Button. Is there anyway to hide text of switch button? For API level 21 there is an option to hide (android:showText), but I need to run it on lower level devices. </p> <p>Here is my xml file:</p> <pre><code>&lt;Switch android:layout_width="100dp" andr...
In my Android application I have used a Switch Button. Is there anyway to hide text of switch button? For API level 21 there is an option to hide (android:showText), but I need to run it on lower level devices. Here is my xml file: [CODE]
android|button|switch-statement
12
2015-02-18T14:55:37.560Z
2,015
2
14
2
9,109
2
238
43
3
1
true
false
true
false
true
false
medium
28,586,584
Solving native open cv code error in androd.mk for developing panorama on android
<p>I am trying to develop an android application for generating panoramic images usig feature of image stitching in Open CV.</p> <p>I have used the code give on the site given below.</p> <p><a href="http://ramsrigoutham.com/2012/12/21/panorama-app-on-android-using-stitching-module-opencv/" rel="nofollow">http://ramsr...
I am trying to develop an android application for generating panoramic images usig feature of image stitching in Open CV. I have used the code give on the site given below. http://ramsrigoutham.com/2012/12/21/panorama-app-on-android-using-stitching-module-opencv/ There is an error shown in the log cat shown below. Plea...
java|android|opencv|image-processing|panoramas
0
2015-02-18T14:55:50.027Z
2,015
2
14
2
437
2
845
81
5
3
true
false
false
false
false
false
zero
28,586,658
How to solve nullpointerException?
<pre><code>actionBar.setHomeButtonEnabled(false); </code></pre> <p>this line of code is creating nullpointerException according to logcat, how to solve this ?</p> <pre><code> package com.ftfl.ftflnavigationtab; import android.annotation.SuppressLint; import android.app.ActionBar; import android.app.ActionBar.Tab;...
[CODE] this line of code is creating nullpointerException according to logcat, how to solve this ? [CODE]
android
-2
2015-02-18T14:58:49.440Z
2,015
2
14
2
129
3
105
34
1
2
true
false
false
false
false
true
negative
28,586,689
reading data using a server side script with Azure Mobile Services
<p>Hi guys I have an android application which uses Azure mobile services to store data. I have a query which involves the haversine algorithm. The query works perfectly as it gets the nearest restaurant locations relative to the longitude and latitude inserted into the algorithm. However I have no idea how to use the ...
Hi guys I have an android application which uses Azure mobile services to store data. I have a query which involves the haversine algorithm. The query works perfectly as it gets the nearest restaurant locations relative to the longitude and latitude inserted into the algorithm. However I have no idea how to use the que...
android|azure-mobile-services|haversine
1
2015-02-18T14:59:53.213Z
2,015
2
14
2
170
1
536
66
3
1
true
false
false
false
false
false
low
28,586,709
NodeJS send request without request from client
<p>i'm newbie in nodejs and i want to send data to client without send request from client, for example i want to after create new data in database like with mysql trigger nodjs fetch data from database and send necessary data to client. in other language programing we try to create Thread to fetch such as database or ...
i'm newbie in nodejs and i want to send data to client without send request from client, for example i want to after create new data in database like with mysql trigger nodjs fetch data from database and send necessary data to client. in other language programing we try to create Thread to fetch such as database or sen...
php|android|node.js|laravel
0
2015-02-18T15:01:15.683Z
2,015
2
15
2
2,001
1
389
47
4
1
true
false
false
false
false
false
zero
28,586,733
Urban AirShip PhonegapBuild
<p>I imported the urbanairship plugin in config.xml file:</p> <p></p> <p>But, when I build the app in Adobe PhoneGap Build (build.phonegap.com), the follow error is occurring:</p> <p>BUILD FAILED /home/ec2-user/android-sdk/tools/ant/build.xml:601: The following error occurred while executing this line: /project/com....
I imported the urbanairship plugin in config.xml file: But, when I build the app in Adobe PhoneGap Build (build.phonegap.com), the follow error is occurring: BUILD FAILED /home/ec2-user/android-sdk/tools/ant/build.xml:601: The following error occurred while executing this line: /project/com.urbanairship.phonegap.PushNo...
android|phonegap-plugins|phonegap-build
0
2015-02-18T15:02:17.470Z
2,015
2
15
2
34
1
485
27
3
0
false
false
false
false
false
false
zero
28,586,786
Strange padding not happening on layout in Android
<p>I am creating a registration screen strangely I am facing an issue with padding a layout which has sign up text. </p> <p>I would like to align it according to text box shown in the screen shot below. I am not sure why this giving me this strange issue?</p> <p>Below is the code I have tried:</p> <pre><code>&lt;?xm...
I am creating a registration screen strangely I am facing an issue with padding a layout which has sign up text. I would like to align it according to text box shown in the screen shot below. I am not sure why this giving me this strange issue? Below is the code I have tried: [CODE] Below is the screen shot:
android|android-layout
0
2015-02-18T15:05:04.360Z
2,015
2
15
2
107
1
309
50
2
1
true
false
false
false
false
false
zero
28,586,799
Cannot resolve symbol
<p>I try to mage Google Cloud Messaging.</p> <p>I have follow class:</p> <pre><code>package de.phcom.avs; import android.content.Context; import android.os.AsyncTask; import android.widget.Toast; import com.google.android.gms.gcm.GoogleCloudMessaging; import java.io.IOException; import java.util.logging.Level; imp...
I try to mage Google Cloud Messaging. I have follow class: [CODE] and they say: Cannot resolve symbol 'Registration' Cannot resolve symbol 'AndroidHttp' Cannot resolve symbol 'AndroidJsonFactory' and so on. I have downloaded Google API 19 and 21.
java|android
1
2015-02-18T15:05:57.990Z
2,015
2
15
2
2,308
1
246
21
2
1
true
false
false
false
false
false
low
28,586,822
packageDebug > Failed to seal APK on Android Studio
<p>i added facebook sdk and AndroidMidi and i think i did it ok including dependencies and add model dependency on project structure<br> that is my build file:</p> <pre><code>buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:1.0.1' } } apply plugin: 'android...
i added facebook sdk and AndroidMidi and i think i did it ok including dependencies and add model dependency on project structure that is my build file: [CODE] i can't get it running, i get this error: Error:Execution failed for task ':packageDebug'. Failed to seal APK, help? EDIT thats settings.gradle [CODE] stacktrac...
android|android-studio|gradle
1
2015-02-18T15:07:00.657Z
2,015
2
15
2
804
1
403
51
3
2
true
false
false
false
false
false
low
28,586,882
Jacoco and Unit Tests Code Coverage with android-gradle-plugin >= 1.1
<p>I recently started integrating <code>android-gradle-plugin</code> 1.1.0 in one of my projects. The project uses <code>robolectric 2.4</code> to run unit tests.</p> <p>It's a multi module project with very complex dependencies (Some modules depend on other modules). Something like that:</p> <pre><code>--&gt; applic...
I recently started integrating android-gradle-plugin 1.1.0 in one of my projects. The project uses robolectric 2.4 to run unit tests. It's a multi module project with very complex dependencies (Some modules depend on other modules). Something like that: [CODE] For a more cleared picture please see jacoco-example projec...
android|unit-testing|android-gradle-plugin|jacoco
41
2015-02-18T15:10:12.307Z
2,015
2
15
2
25,173
9
2,053
69
4
3
true
false
true
true
true
false
high
28,586,910
Android Launcher Application keeps being destroyed
<p>I'm developing custom launcher app containing a WebView. When I launch app as a normal app, it works without any issues, after calling startActivity()/ startActivityForResult() (Intent.ACTION_CALL, doesn't occur when using Intent for MediaStore.ACTION_IMAGE_CAPTURE) application calls onPause(), onStop() and other ac...
I'm developing custom launcher app containing a WebView. When I launch app as a normal app, it works without any issues, after calling startActivity()/ startActivityForResult() (Intent.ACTION_CALL, doesn't occur when using Intent for MediaStore.ACTION_IMAGE_CAPTURE) application calls onPause(), onStop() and other activ...
android|android-webview|launcher
0
2015-02-18T15:11:30.793Z
2,015
2
15
2
2,065
2
1,064
50
3
1
true
false
false
false
false
false
zero
28,586,932
How to communicate between java(PC) and android under the WIFI without using modems or access-points?
<p>After searching a lot on the web I can not find obvious answer for my question. I'm trying to send some messages using wifi between my PC and my android phone. My PC runs a java program and in this situation I have only two devices i.e a PC and an android phone. I want to make connection between these two devices <...
After searching a lot on the web I can not find obvious answer for my question. I'm trying to send some messages using wifi between my PC and my android phone. My PC runs a java program and in this situation I have only two devices i.e a PC and an android phone. I want to make connection between these two devices witho...
java|android|networking|wifi|communication
2
2015-02-18T15:12:32.010Z
2,015
2
15
2
4,862
2
716
101
5
0
false
false
true
false
false
false
low
28,586,978
Delete an Image from ImageView Android
<p>I pull paths of images from a database and create an ImageView and then add it to another ImageView which contains all the images.</p> <pre><code> LinearLayout linearContainer = (LinearLayout) findViewById(R.id.linearContainer); ImageView imageViews = new LinearLayout(getApplicationContext()); linearContainer.add...
I pull paths of images from a database and create an ImageView and then add it to another ImageView which contains all the images. [CODE] I've written a click listener for the ImageView images which allows it to edit or delete. [CODE] I need to know the path in order to delete the record from the database. But I do not...
android|imageview|android-imageview|android-image
1
2015-02-18T15:14:54.603Z
2,015
2
15
2
495
1
483
38
4
2
true
false
false
false
false
false
low
28,586,989
Is it possible to change an image of ImageView dynamically?
<p>This my java code how I implemented. </p> <pre><code> new Thread(new Runnable() { public void run() { int count=0; while (true) { if(count&gt;5) count=0; try { Thread.sleep(1000); } catch (Int...
This my java code how I implemented. [CODE] I have created a separate Thread to change the images dynamically
android
0
2015-02-18T15:15:49.553Z
2,015
2
15
2
83
3
109
59
1
1
true
false
false
false
false
false
zero
28,587,034
Spring-MVC : Creating restful controller for posting/retreival of Objects
<p>I am working on an Android application with which I want to connect to a Spring-MVC based webapp. Currently I am working on building a restful controller for the webapp. I tried connecting via Android to the controller method to save an object which I am passing. A null row (with Id ofcourse) in database was create...
I am working on an Android application with which I want to connect to a Spring-MVC based webapp. Currently I am working on building a restful controller for the webapp. I tried connecting via Android to the controller method to save an object which I am passing. A null row (with Id ofcourse) in database was created. I...
spring|spring-mvc|spring-android
0
2015-02-18T15:17:40.950Z
2,015
2
15
2
2,887
1
891
73
3
4
true
false
true
false
false
false
zero
28,587,049
More ready-to-use dialogs for PreferencesFragment
<p>The concept of Android's <code>PreferencesFragment</code> is great, but I soon experienced the limitations of this concept, since there are very few dialogs provided. I can't easily achieve user friendly validating dialogs for</p> <ul> <li>Entering a number in a certain range</li> <li>Entering a String in a certain...
The concept of Android's PreferencesFragment is great, but I soon experienced the limitations of this concept, since there are very few dialogs provided. I can't easily achieve user friendly validating dialogs for Entering a number in a certain range Entering a String in a certain format and length Date/Time selection ...
android|validation|dialog|preferenceactivity|preferencescreen
2
2015-02-18T15:18:23.230Z
2,015
2
15
2
37
0
601
49
5
0
false
true
false
false
false
false
low
28,587,071
device is not defined
<p>Using an existing sencha project and PhoneGap Build, I have the problem that <code>window.device</code> is not defined if I query for it in the <code>microloader/testing.js</code> code.</p> <pre><code>Ext.blink = function(options) { ... Ext.microloaded = true; // Start my microloader enhancement isP...
Using an existing sencha project and PhoneGap Build, I have the problem that window.device is not defined if I query for it in the microloader/testing.js code. [CODE] The config.xml contains the plugin: [CODE] Sencha is uploading everything to PhoneGap Build for me, it is built there, and then I download and adb instal...
android|cordova|sencha-touch-2
0
2015-02-18T15:19:25.297Z
2,015
2
15
2
526
1
464
21
3
2
true
false
false
false
false
false
zero
28,587,204
Call method from another Android app which is acting as an addon
<p>I am developing an android application and I want to split it in two separate downloadable store apps. The first will be the <strong>main one</strong> and the second will act as an <strong>addon</strong>.</p> <p>Users will only need the addon in special cases and I don't want to force them to download data they wil...
I am developing an android application and I want to split it in two separate downloadable store apps. The first will be the main one and the second will act as an addon . Users will only need the addon in special cases and I don't want to force them to download data they will never use - they will get the addon from S...
android|android-intent|android-activity
0
2015-02-18T15:24:59.583Z
2,015
2
15
2
435
1
944
64
3
0
false
false
false
false
false
false
zero
28,587,218
Why is my ListView's Adapter.getCount() returning 0?
<p>I have an <code>adapter.getCount()</code> which is giving me a value of zero. The <code>ListView</code> is not visible.</p> <p>I have no idea why my <code>Adapter</code> is empty . Can anybody suggest a solution? </p> <p><strong>ListActivity:</strong></p> <pre><code>/** * Created by RAMANA on 2/16/2015. */ publ...
I have an adapter.getCount() which is giving me a value of zero. The ListView is not visible. I have no idea why my Adapter is empty . Can anybody suggest a solution? ListActivity: [CODE] RSSFeed: [CODE] MainActivity: [CODE] DOM_Parser: [CODE]
android|listview
1
2015-02-18T15:25:36.330Z
2,015
2
15
2
1,918
2
243
52
2
4
true
false
false
false
false
false
low
28,587,234
Android Studio Update: Some conflicts found in installation area
<p>When I start Android Studio, it shows popup regarding new update of 1.1 release. But when I start updating, After downloading all patch files, while restarting, it shows following error:</p> <p><img src="https://i.stack.imgur.com/aKkWA.jpg" alt="enter image description here"></p> <p>I searched almost everywhere on...
When I start Android Studio, it shows popup regarding new update of 1.1 release. But when I start updating, After downloading all patch files, while restarting, it shows following error: I searched almost everywhere on Google and Stackoverflow. There are already two questions on so: this and this . But none of them are...
android-studio|intellij-idea
80
2015-02-18T15:26:40.220Z
2,015
2
15
2
61,228
18
547
64
2
0
false
false
true
true
true
false
high
28,587,298
upload pictures with a button click(browse)
<p>How can I upload pictures from application UI with a button click. I'm working with titanium classic project in Android platform. Actually, I need this for uploading question's as a image rather than text field. Any suggestion? </p>
How can I upload pictures from application UI with a button click. I'm working with titanium classic project in Android platform. Actually, I need this for uploading question's as a image rather than text field. Any suggestion?
javascript|android|titanium|titanium-mobile|image-uploading
-1
2015-02-18T15:29:45.003Z
2,015
2
15
2
75
1
227
43
5
0
false
false
false
false
false
true
negative
28,587,318
Bad resut reading barcode with ZBar Android
<p>this is my first post here and I will try to explain well my question. I have ZBar(<a href="http://zbar.sourceforge.net/" rel="nofollow">http://zbar.sourceforge.net/</a>) integrated in an Android app and it works but sometimes the reader reads wrong barcodes, i.e., I am reading a real barcode (8410100002026) and the...
this is my first post here and I will try to explain well my question. I have ZBar( http://zbar.sourceforge.net/ ) integrated in an Android app and it works but sometimes the reader reads wrong barcodes, i.e., I am reading a real barcode (8410100002026) and the ZBar reads 8470700008026. Whats the problem? Is there any ...
android|zbar
2
2015-02-18T15:30:42.330Z
2,015
2
15
2
489
1
375
43
2
0
false
false
false
false
false
false
low
28,587,391
Android SignalR java-client: Not receiving all the SignalR messages on the HubConnection
<p>After trying several options, I'm not able to receive all the SignalR messages on my Android application. In my opinion it seems to be something related with the LongPollingTransport, but I can't find the solution... I receive all the longPolling messages, but sometimes it enters the handler and other times it tries...
After trying several options, I'm not able to receive all the SignalR messages on my Android application. In my opinion it seems to be something related with the LongPollingTransport, but I can't find the solution... I receive all the longPolling messages, but sometimes it enters the handler and other times it tries to...
java|android|signalr|java-client
1
2015-02-18T15:33:29.700Z
2,015
2
15
2
4,976
1
610
88
4
2
true
false
true
false
false
false
low
28,587,395
Robotium test method aren't recognised
<p>I'm new to Android testing and have never used Robotium before. When i add a new testing Method or change an old one, it doesn't get compiled. IntelliJ will always use the old one. Only solution is to restart IntelliJ. After the restart all the new Methods get recognised. Why is that?</p>
I'm new to Android testing and have never used Robotium before. When i add a new testing Method or change an old one, it doesn't get compiled. IntelliJ will always use the old one. Only solution is to restart IntelliJ. After the restart all the new Methods get recognised. Why is that?
android|testing|integration-testing|robotium
0
2015-02-18T15:33:42.437Z
2,015
2
15
2
36
1
285
38
4
0
false
false
false
false
false
false
zero
28,587,420
How to make UI responsive even clicking loading button
<p>Can anyone help me out how to make list view responsive even clicking loading button.I am trying with the code below but it crashes when loading is going on &amp; that time if I try to click listview app crashes.</p> <pre><code>protected void onPreExecute() { super.onPreExecute(); new Thread() ...
Can anyone help me out how to make list view responsive even clicking loading button.I am trying with the code below but it crashes when loading is going on & that time if I try to click listview app crashes. [CODE] [CODE]
android|json|android-listview
0
2015-02-18T15:34:53.967Z
2,015
2
15
2
415
1
222
54
3
2
true
false
false
false
false
false
zero
28,587,455
Get the position of the ViewPager on first and last visible fragment
<p>I implemented in my app a <code>ViewPager</code> to slide between fragments. After a long research I discovered that if I want to get the position of the visible fragment I should use:</p> <pre><code>mViewPager.getCurrentItem(); </code></pre> <p>But for some reason, when I'm on the first or the last fragment, the ...
I implemented in my app a ViewPager to slide between fragments. After a long research I discovered that if I want to get the position of the visible fragment I should use: [CODE] But for some reason, when I'm on the first or the last fragment, the position doesn't change. It remains 1 on the first fragment, instead of ...
android
0
2015-02-18T15:36:40.360Z
2,015
2
15
2
2,516
4
786
68
1
1
true
false
false
false
false
false
zero
28,587,502
unfortunately, parseStarterProject has stopped work
<p><strong>ParseApplication firstly adding keys to ParseApplication.java is good but after sdk test show error in device <em>"unfortunately, parseStarterProject has stopped work"</em></strong></p> <p><strong>this is my ParseApplication.java file</strong></p> <pre><code>package com.parse.starter; import android.app.A...
ParseApplication firstly adding keys to ParseApplication.java is good but after sdk test show error in device "unfortunately, parseStarterProject has stopped work" this is my ParseApplication.java file [CODE] Another, ParseStarterProjectActivity.java file is [CODE] this is doing in android studio and it's a starting pr...
java|android|parse-platform
-1
2015-02-18T15:39:01.050Z
2,015
2
15
2
343
2
358
51
3
2
true
false
false
false
false
true
negative
28,587,504
Multiple counters (Listview) android
<p>I want to make a list of independent accountants. The code below adds the counter in the last list item.</p> <pre><code> if (timeWaitBus != null) { Bus bus = eItem.getBus(); nCounter = bus.getTimeWaitBus(bus.getId(), eItem.getIdStopBus()); doTimerTask(); }-- public void doTime...
I want to make a list of independent accountants. The code below adds the counter in the last list item. [CODE]
java|android|listview|timer
0
2015-02-18T15:39:04.600Z
2,015
2
15
2
98
0
111
36
4
1
true
true
false
false
false
false
zero
28,587,557
Android Using different string for ProductFlavor
<p>I have an app with several productFlavors and I have a case where there is a string in the /main/res/values/strings.xml (R.string.foo_title) that for one product flavor I wanted to be a different string.</p> <p>I added a R.string.foo_title under the product flavors res/values/strings.xml and expected the resource m...
I have an app with several productFlavors and I have a case where there is a string in the /main/res/values/strings.xml (R.string.foo_title) that for one product flavor I wanted to be a different string. I added a R.string.foo_title under the product flavors res/values/strings.xml and expected the resource merge to rep...
android|gradle
3
2015-02-18T15:41:25.317Z
2,015
2
15
2
602
1
876
48
2
0
false
false
false
false
false
false
low
28,587,585
Send LatLng to next activity and place the value of it in an edit text box
<p>I have my project set up so that I click n the map and it adds a marker, I now want to try send the co ordinates of that marker into the next activity whereby i can fill in some more details about the location and send it my database. If anyone could help at all it would be very much appreciated.However, every time ...
I have my project set up so that I click n the map and it adds a marker, I now want to try send the co ordinates of that marker into the next activity whereby i can fill in some more details about the location and send it my database. If anyone could help at all it would be very much appreciated.However, every time i t...
android|google-maps
0
2015-02-18T15:42:38.150Z
2,015
2
15
2
509
1
583
74
2
3
true
false
false
false
false
false
zero
28,587,624
Samsung devices and Accessibility Services (ACTION_PASTE, Clipboard)
<p>I try to implement auto-login functionality in third party applications.</p> <p>I try to copy and paste username/password in login page. To achieve it I use Android accessibility services.</p> <p>I am able to paste text on different devices. But on Samsung devices the username/password is pasting in wrong input fi...
I try to implement auto-login functionality in third party applications. I try to copy and paste username/password in login page. To achieve it I use Android accessibility services. I am able to paste text on different devices. But on Samsung devices the username/password is pasting in wrong input fileds. The log shows...
android|clipboard|samsung-mobile|accessibilityservice|clipboardmanager
3
2015-02-18T15:44:11.780Z
2,015
2
15
2
1,414
1
521
68
5
1
true
false
false
false
false
false
low
28,587,700
Exchange data between android devices of one user without cloud programming
<p>i want to program an application that connects different android devices of one user. If happens an event on one device, the other one should be notified (eg. a toast for testing).</p> <p>Is there a service in the world of google that handles the backend for me, without programming my own server/cloud-app?</p> <p>...
i want to program an application that connects different android devices of one user. If happens an event on one device, the other one should be notified (eg. a toast for testing). Is there a service in the world of google that handles the backend for me, without programming my own server/cloud-app? An example would be...
android|google-cloud-messaging|backend
0
2015-02-18T15:46:56.383Z
2,015
2
15
2
73
1
448
75
3
0
false
false
false
false
false
false
zero
28,587,702
EditText space between the line and the input
<p>Hi I was just wondering how to remove the space between the text and the input line on an edittext field?</p> <p>Thanks in advance</p>
Hi I was just wondering how to remove the space between the text and the input line on an edittext field? Thanks in advance
android
0
2015-02-18T15:46:57.643Z
2,015
2
15
2
935
1
123
45
1
0
false
false
false
false
false
false
zero
28,587,713
Image View causing to crash
<p>I just need some quick help. I am using android eclipse making a android application for college when i try to find the image view the emulator crash if i comment it out it works fine.</p> <p>can someone please tell me where i am going wrong</p> <pre><code>package com.example.diceandmusic; import java.util.Random...
I just need some quick help. I am using android eclipse making a android application for college when i try to find the image view the emulator crash if i comment it out it works fine. can someone please tell me where i am going wrong [CODE]
android
0
2015-02-18T15:47:20.833Z
2,015
2
15
2
46
2
241
27
1
1
true
false
false
false
false
false
zero
28,587,728
How can I use my postgresql database to list datas in my jQuery Mobile project that converted to the android application with phonegap?
<p>I am new at this subject I didn't find a way to do it.How can I use my postgresql database to list datas in my jQuery Mobile project that converted to the android application with phonegap? I already converted a html and javaScript to the android with phonegap to test it, but I have a postgresql database and I need ...
I am new at this subject I didn't find a way to do it.How can I use my postgresql database to list datas in my jQuery Mobile project that converted to the android application with phonegap? I already converted a html and javaScript to the android with phonegap to test it, but I have a postgresql database and I need to ...
android|jquery|postgresql|cordova|jquery-mobile
-1
2015-02-18T15:48:06.780Z
2,015
2
15
2
314
1
377
135
5
0
false
false
false
false
false
true
negative
28,587,755
Android source master version build time
<p>I followed the <a href="https://source.android.com/source/building-running.html" rel="nofollow">Building the Sytem guide</a> in order to run the source I have already downloaded.</p> <p>I have a 2-core CPU 3GHz</p> <p>I configured <code>launch aosp_arm-eng</code> and then ran <code>make -j4</code>.</p> <p>It's be...
I followed the Building the Sytem guide in order to run the source I have already downloaded. I have a 2-core CPU 3GHz I configured launch aosp_arm-eng and then ran make -j4 . It's been 1.5 hours and it hasn't finished yet; is this a normal waiting time ? If this is the case will it take that long every time I compile ...
android|time|compilation
1
2015-02-18T15:49:19.377Z
2,015
2
15
2
42
1
324
40
3
0
false
false
false
false
false
false
low
28,587,792
Parse.com saveInBackground not working on all devices
<p>I have a simple piece of code:</p> <pre><code>ParseObject testobject = new ParseObject("Test"); testobject.put("customerName", "John"); testobject.saveInBackground(); </code></pre> <p>If I run this on my emulator, it works, a Test class is made in my Parse project and the value John is added to the Row customernam...
I have a simple piece of code: [CODE] If I run this on my emulator, it works, a Test class is made in my Parse project and the value John is added to the Row customername. If I run this on my mobile phone the result is also succesful. But if I run the exact same program on my Tablet, nothing happens. (the callback = nu...
android|parse-platform|device|background-task
1
2015-02-18T15:50:20.660Z
2,015
2
15
2
733
1
400
53
4
1
true
false
false
false
false
false
low
28,587,794
Android app that writes to a localhost port and reads from the same port
<p>Just for fun, I'm trying to write an app that would write to a port on my phone and read from the same port. I created two sockets, and created a writer for one and a reader for the other. I simply want the reader to tell me that it received a message from the writer, but I can't get it to work. Is there an obvious ...
Just for fun, I'm trying to write an app that would write to a port on my phone and read from the same port. I created two sockets, and created a writer for one and a reader for the other. I simply want the reader to tell me that it received a message from the writer, but I can't get it to work. Is there an obvious fla...
android|sockets|bufferedreader|bufferedwriter
0
2015-02-18T15:50:22.937Z
2,015
2
15
2
109
0
440
72
4
2
true
true
false
false
false
false
zero
28,587,842
Use local install of Cordova
<p>I already have phonegap 4.2 installed globally in my system, but for a project I need to run Cordova 3.6.. I installed cordova 3.6 <strong>locally</strong>. I'm on Win7x64 btw. I can create a project from the node_module/.bin, but can't add a platform to it..</p> <pre><code>c:\test\node_modules\.bin&gt;cordova crea...
I already have phonegap 4.2 installed globally in my system, but for a project I need to run Cordova 3.6.. I installed cordova 3.6 locally . I'm on Win7x64 btw. I can create a project from the node_module/.bin, but can't add a platform to it.. [CODE] How do i add a platform in that case?
javascript|android|cordova
0
2015-02-18T15:52:36.017Z
2,015
2
15
2
27
1
288
28
3
1
true
false
false
false
false
false
zero
28,587,849
Windows Mobile app to start on boot after installation without any user interaction
<p>I <a href="https://stackoverflow.com/questions/8531926/how-to-start-a-service-when-apk-is-installed-for-the-first-time">read that on android all applications</a>, upon installation, are placed in a "stopped" state. This is the same state that the application winds up in after the user force-stops the app from the Se...
I read that on android all applications , upon installation, are placed in a "stopped" state. This is the same state that the application winds up in after the user force-stops the app from the Settings application. While in this "stopped" state, the application will not run for any reason, except by a manual launch of...
android|security|permissions|windows-phone|smartphone
0
2015-02-18T15:52:47.150Z
2,015
2
15
2
90
1
480
83
5
0
false
false
false
false
false
false
zero
28,587,876
PagerSlidingTabStrip - replacing fragments within viewpager
<p><strong>SCOPE</strong></p> <p>I am using the [PagerSlidingTabStrip][1] and I have two tabs (A and B) and a ListFragment in each tab containing 6 list items (1-6) which, when clicked, will transition to another Fragment (C).</p> <p><img src="https://i.stack.imgur.com/RrpGE.png" alt="Sample of Scope"> <img src="http...
SCOPE I am using the [PagerSlidingTabStrip][1] and I have two tabs (A and B) and a ListFragment in each tab containing 6 list items (1-6) which, when clicked, will transition to another Fragment (C). PROBLEM After 4 days of searching StackOverflow/Google and trying various methods I consistently end up with one or two ...
android|android-fragments|android-viewpager|android-listfragment|android-tabstrip
0
2015-02-18T15:53:49.847Z
2,015
2
15
2
560
0
726
59
5
2
true
true
false
false
false
false
zero
28,588,002
How to make ActionMode aligned with custom Toolbar
<p>I have an activity with new support Toolbar and navigation drawer. The Toolbar relates to the content e.g. list of items. Multiple items can be selected - then ActionMode is shown (Context Action Bar). However the system ActionMode position, size and layout order does not correspond to the Toolbar, which would be ap...
I have an activity with new support Toolbar and navigation drawer. The Toolbar relates to the content e.g. list of items. Multiple items can be selected - then ActionMode is shown (Context Action Bar). However the system ActionMode position, size and layout order does not correspond to the Toolbar, which would be appro...
android|navigation-drawer|android-toolbar|android-actionmode
4
2015-02-18T15:59:55.787Z
2,015
2
15
2
2,469
1
1,295
50
4
0
false
false
false
false
false
false
low
28,588,043
HTML5 Canvas Animated Images Don't Load in Mobile Device Browsers
<pre><code>var c = document.getElementById("c"); var ctx = c.getContext("2d"); /*$("canvas").mousemove(function (event) { imj.x = event.pageX - 80; imj.y = event.pageY - 80; });*/ function img(image, x, y, sorc) { image.onload = function () { ctx.drawImage(image, x, y); } image.src = sorc;...
[CODE] When I load this code (along with the HTML), it works fine on my laptop, but on my Nexus 7, the image shows up once and then disappears. And if I make the image stay in place, it does show up on my tablet. Why? (you can try it yourself or see all the code here http://pixelempire.t15.org/mobile.html )
android|html|image|canvas|load
0
2015-02-18T16:01:49.553Z
2,015
2
16
2
102
1
308
65
5
1
true
false
false
false
false
false
zero
28,588,056
Should I use background thread when saving image to android device?
<p>I need to capture an Image from a View(android.webkit.WebView) and save it as a PNG file on the android device.</p> <p>Should I save the image using an AsyncTasks to avoid blocking the UI thread? </p> <p>What code should I leave out of AsyncTask doInBackground method?</p> <p>Code:</p> <pre><code> private void...
I need to capture an Image from a View(android.webkit.WebView) and save it as a PNG file on the android device. Should I save the image using an AsyncTasks to avoid blocking the UI thread? What code should I leave out of AsyncTask doInBackground method? Code: [CODE]
android|multithreading|bitmap|android-asynctask
0
2015-02-18T16:02:13.957Z
2,015
2
16
2
1,963
2
266
67
4
1
true
false
false
false
false
false
zero
28,588,100
Mark a point pdf in android
<p>I need to put a point on a pdf file. For example, I have a plant of a car and if I click on a damaged part, the system put a mark on local selected. The links shows a example that I want.</p> <p>thanks for the reply</p> <p><a href="http://i.stack.imgur.com/qdck1.png" rel="nofollow">example here</a></p>
I need to put a point on a pdf file. For example, I have a plant of a car and if I click on a damaged part, the system put a mark on local selected. The links shows a example that I want. thanks for the reply example here
android|pdf|markers
-1
2015-02-18T16:04:30.217Z
2,015
2
16
2
117
1
221
27
3
0
false
false
false
false
false
true
negative
28,588,129
android pass List<Spreadsheet> between activities
<p>I am working with the google sheets api (<a href="https://developers.google.com/google-apps/spreadsheets/" rel="nofollow">https://developers.google.com/google-apps/spreadsheets/</a>) and I am trying to pass a class that I created that contains only a List, and implements Serializable.</p> <p><strong>here is the Ser...
I am working with the google sheets api ( https://developers.google.com/google-apps/spreadsheets/ ) and I am trying to pass a class that I created that contains only a List, and implements Serializable. here is the SerializableSpreadsheetList class: [CODE] and the code for starting the activity: [CODE] the app crashes ...
android|android-activity|google-spreadsheet-api|serializable
0
2015-02-18T16:06:18.353Z
2,015
2
16
2
68
1
427
49
4
3
true
false
false
false
false
false
zero
28,588,212
How to get PCI info about display device on Android
<p>Morning, folks!</p> <p>I'm porting a desktop OpenGL c++ app to Android. This app is already fairly cross-platform. It requires reliable rendering on all platforms, so it accounts for differences in graphics driver implementations by enabling or disabling certain code paths based on the the host OS and the card's PC...
Morning, folks! I'm porting a desktop OpenGL c++ app to Android. This app is already fairly cross-platform. It requires reliable rendering on all platforms, so it accounts for differences in graphics driver implementations by enabling or disabling certain code paths based on the the host OS and the card's PCI informati...
java|android|c++|c|pci
1
2015-02-18T16:09:33.167Z
2,015
2
16
2
1,843
1
1,626
51
5
0
false
false
false
false
false
false
low
28,588,250
Order a list of files by size in android
<p>I have a code to get all the files in a directory into a list. Now I want to sort this list by size from smallest to biggest. </p> <p>Is there a function or something to do this that's more efficient than writing my own code? If nothing exists, is there an efficient code out there you could point me to?</p> <p>My ...
I have a code to get all the files in a directory into a list. Now I want to sort this list by size from smallest to biggest. Is there a function or something to do this that's more efficient than writing my own code? If nothing exists, is there an efficient code out there you could point me to? My code is: [CODE]
android|list|file|size
1
2015-02-18T16:11:19.943Z
2,015
2
16
2
1,364
4
315
40
4
1
true
false
false
false
false
false
low
28,588,255
No application can perform this action, when send email
<pre><code>Intent sendIntent = new Intent(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, text.getText()); sendIntent.setType("message/rfc822"); startActivity(Intent.createChooser(sendIntent, "Send email with")); </code></pre> <p>this was my code.</p> <p>I tried the sen...
[CODE] this was my code. I tried the send mail in emulator. But it shows the no application can perform this action. if anyone knows means tell me Thanks in advance
android|android-intent
9
2015-02-18T16:11:45.490Z
2,015
2
16
2
13,045
7
164
55
2
1
true
false
true
true
false
false
medium
28,588,345
Volley String post request from a curl command
<p>I am trying get access-token. By using curl/commnad window i can get it but i need to use android volley. Volley shows error says unexpected response code. Here is curl command: </p> <p>$ curl "<a href="https://api">https://api</a>.*****.com/auth/oauth/v2/token" \</p> <p>--insecure \</p> <p>--header "Accept: app...
I am trying get access-token. By using curl/commnad window i can get it but i need to use android volley. Volley shows error says unexpected response code. Here is curl command: $ curl " https://api .*****.com/auth/oauth/v2/token" \ --insecure \ --header "Accept: application/json" \ --header "Content-Type: application/...
android-volley
0
2015-02-18T16:16:17.830Z
2,015
2
16
2
1,839
2
878
46
1
1
true
false
false
false
false
false
zero
28,588,530
How to modify ArrayAdapter' s data from AsyncTask' s postExecute method
<p>I have a fragment and in onCreateView I have an adapter and a listview:</p> <pre><code>mAdapter = new ArrayAdapter&lt;String&gt;(getActivity(), R.layout.list_item, R.id.list_item_textview, new ArrayList&lt;String&gt;()); View rootView = inflater.inflate(R.layout.fragment_mai...
I have a fragment and in onCreateView I have an adapter and a listview: [CODE] I also have a separate AsyncTask class and on its onPostExecute method I want to add items to the mAdapter: [CODE] I execute the AsyncTask in Fragment's onStart method : [CODE] How can I use the Fragment's mAdapter on AsyncTask class to upda...
java|android|listview|android-asynctask
0
2015-02-18T16:24:27.833Z
2,015
2
16
2
1,826
3
361
71
4
3
true
false
false
false
false
false
zero
28,588,550
Query for transient fields via ContentProvider in Android app
<p>For an Android app, I have implemented a ContentProvider for accessing a SQLite database. Now I want to add additional values for a fixed set of non-existing fields to the query. For the consumer, there is no difference between table field an transient field. Because the fields have to be part of the contract. How c...
For an Android app, I have implemented a ContentProvider for accessing a SQLite database. Now I want to add additional values for a fixed set of non-existing fields to the query. For the consumer, there is no difference between table field an transient field. Because the fields have to be part of the contract. How can ...
java|android|sqlite
0
2015-02-18T16:25:29.070Z
2,015
2
16
2
119
1
607
61
3
0
false
false
false
false
false
false
zero
28,588,575
simultaneously use Google Play Location Service and Android platform location APIs
<p>is it possible to simultaneously use Google Play Location Service and Android platform location APIs, to try and acquire the current position. This will be implemented using two LocationChanged listeners. the app will use the location that is got first from any of the listeners.</p>
is it possible to simultaneously use Google Play Location Service and Android platform location APIs, to try and acquire the current position. This will be implemented using two LocationChanged listeners. the app will use the location that is got first from any of the listeners.
android|google-maps|geolocation|locationlistener
0
2015-02-18T16:26:33.480Z
2,015
2
16
2
97
1
279
82
4
0
false
false
false
false
false
false
zero
28,588,734
Custom Spinner dropdown not working
<p>I have a custom simple_spinner_item and simpel_spinner_dropdown_item. I am setting these using the following code:</p> <pre><code>adapter = new ArrayAdapter&lt;Integer&gt;(context, android.R.layout.simple_spinner_item); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); spinner.setAdapt...
I have a custom simple_spinner_item and simpel_spinner_dropdown_item. I am setting these using the following code: [CODE] However, the custom style is not applied. How can I fix this? I am overriding the default android dropdown items in my style. However, it works if I create a new Adapter that extends ArrayAdapter an...
android|drop-down-menu|spinner
0
2015-02-18T16:33:23.403Z
2,015
2
16
2
1,033
3
351
35
3
1
true
false
false
false
false
false
zero
28,588,797
Android view not updating on main thread
<p>I have an array of data model items in the application class. My first activity has a broadcast receiver that alters the values of items in the list (via push if you are curious).</p> <p>I have two kinds of visual representation for a model item and I want to be able to update the view whenever I get a push, regard...
I have an array of data model items in the application class. My first activity has a broadcast receiver that alters the values of items in the list (via push if you are curious). I have two kinds of visual representation for a model item and I want to be able to update the view whenever I get a push, regardless of whe...
android|multithreading|view
1
2015-02-18T16:36:25.923Z
2,015
2
16
2
307
1
627
40
3
1
true
false
false
false
false
false
low
28,588,802
android studio cannot resolve import org.json.JSONObject
<p>I used libgdx to build my project and I am having issues using the <strong>JSONObject</strong> class. When I add <code>import org.json.JSONObject</code>, it says it cannot resolve. How do I add that library to my project? </p> <p>Here is what I have tried without success:</p> <ol> <li>I downloaded the <code>json-s...
I used libgdx to build my project and I am having issues using the JSONObject class. When I add import org.json.JSONObject , it says it cannot resolve. How do I add that library to my project? Here is what I have tried without success: I downloaded the json-simple-1.1.jar and put it in core/build/libs folder. Could not...
android|json|gradle|libgdx|libraries
14
2015-02-18T16:36:33.793Z
2,015
2
16
2
36,566
1
744
56
5
0
false
false
true
true
true
false
medium
28,588,910
FLAG_ACTIVITY_REORDER_TO_TOP causing RuntimeException or black screen on rotation
<p>I have two activities and I want to switch between them without re-creating or duplicating them. Each activity has a button that will send the user to the other using an intent with the FLAG_ACTIVITY_REORDER_TO_TOP. </p> <p>This works great except for the following condition:</p> <ol> <li>start the app fresh after...
I have two activities and I want to switch between them without re-creating or duplicating them. Each activity has a button that will send the user to the other using an intent with the FLAG_ACTIVITY_REORDER_TO_TOP. This works great except for the following condition: start the app fresh after a force close hit the but...
android|android-intent|android-activity
6
2015-02-18T16:41:32.253Z
2,015
2
16
2
591
1
1,053
81
3
1
true
false
false
false
false
false
medium
28,588,938
how to use separate arraylist for listview and AlertDialog using OnListItemClick?
<p>i Have a two Arraylist to use one Listview.... My question when i click row in listview, second arraylist data want execute on AlertDialog popup box My <strong>Main</strong> class</p> <pre><code>public class MainActivity extends ListActivity { @Override public void onCreate(Bundle savedInstanceState) { super.on...
i Have a two Arraylist to use one Listview.... My question when i click row in listview, second arraylist data want execute on AlertDialog popup box My Main class [CODE] ** Two Array List bus_no and bus_routes* Waht i want is when i click 100 in listview first routes want popup in dialog box. i know insight OnListItemC...
java|android|listview|arraylist
0
2015-02-18T16:42:21.903Z
2,015
2
16
2
334
1
451
81
4
2
true
false
false
false
false
false
zero
28,589,049
Android TextView: is there a way to force the marquee animation with short text?
<p>I have a TextView with a some text inside and I want it to animate with the scrolling marquee animation. I saw this <a href="https://stackoverflow.com/questions/1827751/is-there-a-way-to-make-ellipsize-marquee-always-scroll">popular question</a> about forcing the marquee animation, however the code in the answers on...
I have a TextView with a some text inside and I want it to animate with the scrolling marquee animation. I saw this popular question about forcing the marquee animation, however the code in the answers only work if the text is long enough to go outside the bounds of the TextView (and thus the text is truncated), I was ...
android|animation|textview|marquee
8
2015-02-18T16:46:53.697Z
2,015
2
16
2
7,705
6
457
80
4
0
false
false
true
false
false
false
medium
28,589,081
CORS with Crosswalk and OKHttp
<p>I'm trying to use a crosswalk embedded webview to display a web page, with some javascript. Because I need to add some headers to each request, I am intercepting the request with <code>shouldInterceptLoadRequest</code>, and making the request with OkHttp.</p> <pre><code>@Override public WebResourceResponse shouldIn...
I'm trying to use a crosswalk embedded webview to display a web page, with some javascript. Because I need to add some headers to each request, I am intercepting the request with shouldInterceptLoadRequest , and making the request with OkHttp. [CODE] This code works as intended at first, but upon making an Ajax request...
android|http|okhttp|crosswalk-runtime
4
2015-02-18T16:48:38.060Z
2,015
2
16
2
1,687
0
671
30
4
1
true
true
false
false
false
false
low
28,589,123
About Android 5.0 new APIs for screen capturing
<p>Android 5.0 introduced new APIs for screen capture. It also provides an (updated) <a href="https://android.googlesource.com/platform/development/+/lollipop-release/samples/ApiDemos/src/com/example/android/apis/media/projection/MediaProjectionDemo.java" rel="nofollow">sample</a> project on how to use it.</p> <p>I ha...
Android 5.0 introduced new APIs for screen capture. It also provides an (updated) sample project on how to use it. I have two questions: I have run the sample project, it looks like the function which actually render the screen content to SurfaceView is createVirtualDisplay() which returns an instance of VirtualDisplay...
android|android-activity|android-5.0-lollipop
2
2015-02-18T16:50:16.603Z
2,015
2
16
2
1,038
0
822
47
3
0
false
true
false
false
false
false
low
28,589,135
Android: Play Video unable to open content error
<p>I want to make a functionality wherein on click of button video will be played. This video would be located in memory card of mobile.I am unable to assign proper path. Currently I am using this code</p> <pre><code>Uri uri=Uri.parse("/sdcard/media/1.mp4"); </code></pre> <p>How can I give correct path ?</p> <p>Lo...
I want to make a functionality wherein on click of button video will be played. This video would be located in memory card of mobile.I am unable to assign proper path. Currently I am using this code [CODE] How can I give correct path ? Logcat gives: [CODE]
android|android-video-player
1
2015-02-18T16:50:48.667Z
2,015
2
16
2
954
0
256
48
2
2
true
true
false
false
false
false
low
28,589,186
How to create a field whose text changes in android
<p>I am just starting with android. This is what i want to make: <img src="https://s29.postimg.org/atksv7wvr/11002080_10203940425326826_543590466_o.jpg" alt=" What i want to make "></p> <p>Now when you click on From, a new screen would open where you can select places and once you select you will get back to this scre...
I am just starting with android. This is what i want to make: Now when you click on From, a new screen would open where you can select places and once you select you will get back to this screen where instead of "Bangalore" it would be the place you selected. What kind of a field is this ? Text field ? Also if i want t...
android|android-layout
0
2015-02-18T16:53:21.927Z
2,015
2
16
2
38
2
464
51
2
0
false
false
false
false
false
false
zero
28,589,212
Android second activity is ignoring xml file
<p>In my second activity I have a textview that is not responding to the changes in the xml file, I'm trying to change the text size and alignment but nothing I do works, I can only guess that it because in the java file for the activity I have a .setText method changing the text of the textView and that's causing the ...
In my second activity I have a textview that is not responding to the changes in the xml file, I'm trying to change the text size and alignment but nothing I do works, I can only guess that it because in the java file for the activity I have a .setText method changing the text of the textView and that's causing the pro...
java|android|xml|android-4.4-kitkat
0
2015-02-18T16:54:13.453Z
2,015
2
16
2
100
1
433
44
4
2
true
false
false
false
false
false
zero
28,589,230
1st Row of ListView Height
<p>I am trying to make the height of the first row of my listView taller than the remaining. I am able to a apply a different layout for row 1, but I cannot make the height different. I am using a custom adapter...here is my getView that chooses the appropriate row layout:</p> <pre><code>@Override public View getVie...
I am trying to make the height of the first row of my listView taller than the remaining. I am able to a apply a different layout for row 1, but I cannot make the height different. I am using a custom adapter...here is my getView that chooses the appropriate row layout: [CODE] My row layouts are wrapped in a Relative l...
android|android-listview|android-adapterview
0
2015-02-18T16:54:50.177Z
2,015
2
16
2
63
2
388
26
3
1
true
false
false
false
false
false
zero
28,589,397
i need to add map .when i click country it will redirect to new activity
<blockquote> <p>i am creating app that layout has map ..when i click a country in map it will redirect to new activity in the app ..is it possible can u guide me please guide me i am fresher to the app development .. And also need details about how to add a .gif image to splash screen by webveiw</p> </blockqu...
i am creating app that layout has map ..when i click a country in map it will redirect to new activity in the app ..is it possible can u guide me please guide me i am fresher to the app development .. And also need details about how to add a .gif image to splash screen by webveiw [CODE] i am creating app that layout ha...
android
0
2015-02-18T17:02:22.907Z
2,015
2
17
2
42
1
595
72
1
1
true
false
false
false
false
false
zero
28,589,419
Upgrading APK minSDK version
<p>Just a short question. Let's say I've published an app on the Play Store:</p> <ul> <li>versionCode = 1</li> <li>minSdk = 8</li> </ul> <p>The day after I publish the same app but:</p> <ul> <li>versionCode = 2</li> <li>minSkd = 11</li> </ul> <p>How will the users be affected? Devices with API level &lt; 11, will c...
Just a short question. Let's say I've published an app on the Play Store: versionCode = 1 minSdk = 8 The day after I publish the same app but: versionCode = 2 minSkd = 11 How will the users be affected? Devices with API level < 11, will continue see first version, or none? Devices with API level >= 11 will see, only ve...
android|publishing|android-version
2
2015-02-18T17:03:14.260Z
2,015
2
17
2
192
1
350
28
3
0
false
false
false
false
false
false
low
28,589,442
How to setVisibility within class extending FrameLayout?
<p>I have a FAB class extending FrameLayout where I want to have a hide method which implements the reveal effect. Therefore I need to set the visibility to INVISIBLE:</p> <pre><code>public class FloatingActionButton extends FrameLayout implements Checkable { ... private void hide() { ... t...
I have a FAB class extending FrameLayout where I want to have a hide method which implements the reveal effect. Therefore I need to set the visibility to INVISIBLE: [CODE] But I get an error when trying to call setVisibility() on 'this' : "Cannot resolve method 'setVisibilty(int)'".
android|android-framelayout|circularreveal
0
2015-02-18T17:04:13.743Z
2,015
2
17
2
283
1
283
56
3
1
true
false
false
false
false
false
zero
28,589,494
android:noHistory="true" behavior but still catch OnActivityResult?
<p>I have an app that shows the user a profile edit screen the first time he or she uses the app. Within the edit profile activity, I need to allow the user to create a profile image capture an image or select from the gallery.</p> <p>I want to be able to catch OnActivityResult, but once they are done with editing p...
I have an app that shows the user a profile edit screen the first time he or she uses the app. Within the edit profile activity, I need to allow the user to create a profile image capture an image or select from the gallery. I want to be able to catch OnActivityResult, but once they are done with editing profile, I don...
android
1
2015-02-18T17:06:44.890Z
2,015
2
17
2
999
1
692
67
1
0
false
false
false
false
false
false
low
28,589,507
RSA Encryption in Java / Decryption in PHP Fails
<p>I have a PHP script that I have been using do decrypt a session key that I encrypted from iOS. The encryption is done on the client using a 1024-bit public key. Decryption on the server side is done with the corresponding private key. Now I'm trying to write an encryption method for Android. Unfortunately, the decry...
I have a PHP script that I have been using do decrypt a session key that I encrypted from iOS. The encryption is done on the client using a 1024-bit public key. Decryption on the server side is done with the corresponding private key. Now I'm trying to write an encryption method for Android. Unfortunately, the decrypti...
java|php|android|cryptography|rsa
1
2015-02-18T17:07:31.330Z
2,015
2
17
2
2,725
1
852
48
5
2
true
false
true
false
false
false
low
28,589,509
Android E/Parcel﹕ Class not found when unmarshalling (only on Samsung Tab3)
<p>I've been unable to resolve why this error occurs, and only on a Samsung Tab3 device, running 4.4.2? It happens when my MainActivity starts another Activity, and passes a Parcelable class in the intent like so:</p> <pre><code> private void debugTest(TestParcel cfgOptions){ TestParcel cfgOptions = new T...
I've been unable to resolve why this error occurs, and only on a Samsung Tab3 device, running 4.4.2? It happens when my MainActivity starts another Activity, and passes a Parcelable class in the intent like so: [CODE] TestActivity gets the parcelable data like so: [CODE] The class TestParcel: [CODE] Again, I only see t...
android|android-intent|classnotfoundexception|unmarshalling|parcel
64
2015-02-18T17:07:32.113Z
2,015
2
17
2
55,097
8
431
75
5
4
true
false
true
true
true
false
high
28,589,571
Why doesn't the MapView of Google Maps appear in my Android Fragment?
<p>What I am trying to do is display a Google Maps view when I click on a list item in my NavigationDrawer. The way I have it set up is that whenever I click on a list item, then the current fragment is replaced with a new one.</p> <p>So, when I click on "Find Stores" list item, my StoreMapFragment replaces the curren...
What I am trying to do is display a Google Maps view when I click on a list item in my NavigationDrawer. The way I have it set up is that whenever I click on a list item, then the current fragment is replaced with a new one. So, when I click on "Find Stores" list item, my StoreMapFragment replaces the current fragment....
android|android-fragments|google-maps-android-api-2|android-mapview
2
2015-02-18T17:10:34.193Z
2,015
2
17
2
8,098
2
874
69
4
3
true
false
true
false
false
false
low
28,589,592
Android Battery Stats in Fragment Activity
<p>All tutorials on the subject seem to assume you are using a basic activity to retrieve battery information. I am trying to get the information from a fragment activity. I've worked out that this is how to get the things I am looking for in a single activity.</p> <pre><code>public class Main extends Activity { priva...
All tutorials on the subject seem to assume you are using a basic activity to retrieve battery information. I am trying to get the information from a fragment activity. I've worked out that this is how to get the things I am looking for in a single activity. [CODE] However, I am unable to figure out what changes are ne...
java|android|fragment|battery
0
2015-02-18T17:11:32.353Z
2,015
2
17
2
670
2
422
42
4
2
true
false
false
false
false
false
zero
28,589,606
Navbar not getting hidden on specific manufacturer's device
<p>I have an Android device with root privileges (out-of-the-box). I am trying to hide the nav bar so the home and back buttons are not visible. I am performing this task using the following:</p> <pre><code>proc = Runtime.getRuntime().exec(new String[]{"su","-c","service call activity "+ ProcID +" s16 com.android.sy...
I have an Android device with root privileges (out-of-the-box). I am trying to hide the nav bar so the home and back buttons are not visible. I am performing this task using the following: [CODE] This works on my root Samsung Galaxy Tab 2, but does not work on this particular Android device (OS v4.2.2). Any guidance wo...
android|uinavigationbar
0
2015-02-18T17:12:12.257Z
2,015
2
17
2
44
1
411
59
2
1
true
false
false
false
false
false
zero
28,589,717
Set a maximum time for the connection attempt (Socket)
<p>I'm trying to set a maximum time for the connection attempt. I've tried to <code>sleep(5000)</code> and then <code>if(!socket.isConnected)</code>. Unfortunately it didn't work. How can I do this?</p> <p>Code:</p> <pre><code> try { socket = new Socket(SERVER_IP, PORT); ...
I'm trying to set a maximum time for the connection attempt. I've tried to sleep(5000) and then if(!socket.isConnected) . Unfortunately it didn't work. How can I do this? Code: [CODE] Here's the code now. Hope it will help you Thanks in advance
java|android|sockets|connection
1
2015-02-18T17:16:55.260Z
2,015
2
17
2
1,265
1
244
54
4
1
true
false
false
false
false
false
low
28,589,752
How to keep keyboard from pushing action bar off screen
<p>In my android manifest I have the keyboard set to <code>android:windowSoftInputMode="adjustPan"</code>. As a result, when I click on an EditText, it causes the entire screen, including the ActionBar, to move up. But I want my ActionBar to stay put while everything else moves up. How do I do that? My layout is using ...
In my android manifest I have the keyboard set to android:windowSoftInputMode="adjustPan" . As a result, when I click on an EditText, it causes the entire screen, including the ActionBar, to move up. But I want my ActionBar to stay put while everything else moves up. How do I do that? My layout is using a LinearLayout ...
android-layout|android-actionbar|android-softkeyboard
3
2015-02-18T17:18:27.043Z
2,015
2
17
2
755
1
389
55
3
1
true
false
false
false
false
false
low
28,589,788
facebook example deep link
<p>i am trying to create a deep link for my app on facebook.</p> <p>All their examples have been written by people who like words a lot. </p> <p>If my app url is <code>a.b.c</code> and the app is called <code>c</code> what do i put in the purple highlighted box to open the app? Note that i don't care about sending a...
i am trying to create a deep link for my app on facebook. All their examples have been written by people who like words a lot. If my app url is a.b.c and the app is called c what do i put in the purple highlighted box to open the app? Note that i don't care about sending any data to the app - we are just going to open ...
android|facebook|api
1
2015-02-18T17:20:21.613Z
2,015
2
17
2
4,454
1
425
26
3
0
false
false
true
false
false
false
low