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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36,856,208 | Android: How to force reverse portrait orientation even if the device auto-rotate screen is off? | <p>I'm working on an app/game that should switch between <code>portrait</code> and <code>reversePortrait</code> in multiplayer mode. (Mainly because each player might use the keyboard on his/her turn while the device is fixed on the table between them.)</p>
<p>My app works fine when the auto-rotate is ON.. But the <co... | I'm working on an app/game that should switch between portrait and reversePortrait in multiplayer mode. (Mainly because each player might use the keyboard on his/her turn while the device is fixed on the table between them.) My app works fine when the auto-rotate is ON.. But the reversePortrait orientation is NEVER ach... | android|rotation|portrait|autorotate | 2 | 2016-04-26T05:46:44.793Z | 2,016 | 4 | 5 | 1 | 3,571 | 2 | 925 | 96 | 4 | 2 | true | false | true | false | false | false | low |
36,856,257 | Video stretches horizontally while capturing | <p>I m trying to record a video but when i start recording it using media recorder it gets stretched horizontally.I have tried to applied lot of soltuion but nothing works for my code yet.
This is what i have tried to do so far to resolve this issue. Can anyone suggest any solution.Thanks</p>
<pre><code> public class ... | I m trying to record a video but when i start recording it using media recorder it gets stretched horizontally.I have tried to applied lot of soltuion but nothing works for my code yet. This is what i have tried to do so far to resolve this issue. Can anyone suggest any solution.Thanks [CODE] | android|video-capture | 3 | 2016-04-26T05:50:00.390Z | 2,016 | 4 | 5 | 1 | 267 | 1 | 293 | 44 | 2 | 1 | true | false | false | false | false | false | low |
36,856,264 | I want to fetch jsonarray from a json api and show it in listview in android | <p>This is my code, we are using in MainActivity..I am using following code in MainActivity but it showing null pointer exception.</p>
<pre><code>public class MainActivity extends ListActivity {
// URL to get contacts JSON
private static String url = "https://swastianalytics.herokuapp.com/api/v1/fw_f/?access_... | This is my code, we are using in MainActivity..I am using following code in MainActivity but it showing null pointer exception. [CODE] This is http code... [CODE] This is the error that showing in logcat.... 04-26 05:54:40.534 5884-5884/com.example.converbiz.apidemo E/AndroidRuntime: FATAL EXCEPTION: main java.lang.Nul... | android|json | 0 | 2016-04-26T05:50:10.507Z | 2,016 | 4 | 5 | 1 | 146 | 2 | 1,350 | 76 | 2 | 2 | true | false | false | false | false | false | zero |
36,856,265 | Difficulty making reset button work for pedometer | <p>I am working on a pedometer and it runs smoothly. I want to make a button for resetting but its giving me issues.</p>
<p>This is my code below.</p>
<pre><code>public class MainActivity extends Activity implements SensorEventListener {
private TextView textView;
private Button resetButton;
private SensorManager mS... | I am working on a pedometer and it runs smoothly. I want to make a button for resetting but its giving me issues. This is my code below. [CODE] I am connecting the reset method to my button so that when I click it. It resets my pedometer to zero. I have tried different ways but it is not working for me. I am also unsur... | java|android|android-studio|android-sensors | 0 | 2016-04-26T05:50:10.763Z | 2,016 | 4 | 5 | 1 | 305 | 1 | 436 | 49 | 4 | 1 | true | false | false | false | false | false | zero |
36,856,278 | Why does Updated Session Info not access on Hangup call by using quickblox sdk from Website to Android? | <p>I am working on quickblox video calling, I am passing "name" as a key in userinfo from web when creating new session :</p>
<pre><code>$(document).on('click', '.j-call', function(e) {
var recp_login=$("#recipient_login").val();
var recp_id=$("#recipient_id").val();
var params = ... | I am working on quickblox video calling, I am passing "name" as a key in userinfo from web when creating new session : [CODE] On android side I get the name from userinfo inside [CODE] When user closes (hangup) the call I am passing some more info ("state"), I use the following code: [CODE] But on android side inside o... | php|android|quickblox | 0 | 2016-04-26T05:51:12.340Z | 2,016 | 4 | 5 | 1 | 203 | 2 | 465 | 103 | 3 | 4 | true | false | false | false | false | false | zero |
36,856,357 | Shared Preferences in android showing Default value not found | <p>I strucked in storing and getting shared preferences.When a user has been registered if that registration is success then that values has to be stored in his profile nothing but my profile class.I don't know why am getting default value please give me a suggestion.</p>
<p>Thanks in advance.</p>
<p>Please tellmesom... | I strucked in storing and getting shared preferences.When a user has been registered if that registration is success then that values has to be stored in his profile nothing but my profile class.I don't know why am getting default value please give me a suggestion. Thanks in advance. Please tellmesomething Again I upda... | android|sharedpreferences | 1 | 2016-04-26T05:56:58.577Z | 2,016 | 4 | 5 | 1 | 1,080 | 4 | 345 | 61 | 2 | 1 | true | false | false | false | false | false | low |
36,856,368 | How trim a video using FFMPEG in android | <p>I got </p>
<blockquote>
<p>Fatal signal 11(SIGSEGV), code 1, fault addr 0x5 in tid 5823 (e.mypc.videocut)</p>
</blockquote>
<p>When I try to debug the app crashes when I'm reading this line:</p>
<pre><code>vk.run(complexCommand, workFolder, getApplicationContext());
</code></pre>
<p><strong>VideoTrim Screen:</... | I got Fatal signal 11(SIGSEGV), code 1, fault addr 0x5 in tid 5823 (e.mypc.videocut) When I try to debug the app crashes when I'm reading this line: [CODE] VideoTrim Screen: [CODE] | android|android-studio|ffmpeg|android-ndk|java-native-interface | 0 | 2016-04-26T05:57:42.620Z | 2,016 | 4 | 5 | 1 | 1,123 | 1 | 180 | 40 | 5 | 2 | true | false | false | false | false | false | zero |
36,856,435 | java.text.ParseException: Unparseable date: "26/4/2016" (at offset 0) | <p>I have two textview, I am using separate datepicker on textview's onclick listener,I am trying to get difference between selected dates,but I am getting following error</p>
<pre><code>java.text.ParseException: Unparseable date: "26/4/2016" (at offset 0)
</code></pre>
<p>on this line</p>
<pre><code>Date past = for... | I have two textview, I am using separate datepicker on textview's onclick listener,I am trying to get difference between selected dates,but I am getting following error [CODE] on this line [CODE] Following is my code can any one help me with that [CODE] Like this way i am opening datepickers [CODE] | android|datepicker | 0 | 2016-04-26T06:02:48.837Z | 2,016 | 4 | 6 | 1 | 1,232 | 3 | 299 | 69 | 2 | 4 | true | false | false | false | false | false | zero |
36,856,451 | How to use volley inside alert dialog? | <p>Here let me explain my issue need to add volley inside alertdialog which i have done successfully its like pinging the entered Url its working fine but what I need to do is in onErrorResponse method alert dialog gets hide suppose when user enter wrong url it will go to onErrorResponse method in this my alertdialog ... | Here let me explain my issue need to add volley inside alertdialog which i have done successfully its like pinging the entered Url its working fine but what I need to do is in onErrorResponse method alert dialog gets hide suppose when user enter wrong url it will go to onErrorResponse method in this my alertdialog gets... | android|android-volley|android-alertdialog | 0 | 2016-04-26T06:03:54.570Z | 2,016 | 4 | 6 | 1 | 1,033 | 1 | 604 | 38 | 3 | 1 | true | false | false | false | false | false | zero |
36,856,454 | Opening a new activity from a button | <p>I am new to development and I am trying to create a new activity (new page) on the click of a button. I am really stuck. Here is the code for my main activity but I cannot get rid of the error...</p>
<pre><code>package com.example.android.buttons;
import android.content.Intent;
import android.os.Bundle;
import and... | I am new to development and I am trying to create a new activity (new page) on the click of a button. I am really stuck. Here is the code for my main activity but I cannot get rid of the error... [CODE] The error shows up on the startActivity(intent) line... The word intent has the red underline?? with a caption saying... | android | -6 | 2016-04-26T06:04:00.120Z | 2,016 | 4 | 6 | 1 | 1,342 | 4 | 352 | 36 | 1 | 1 | true | false | false | false | false | true | negative |
36,856,547 | SQLite where clause Issue | <p>I have around <code>30</code> records into SQLite table, where <code>10</code> records belongs to source from <strong>Online</strong> and rest <code>20</code> records belongs to source from <strong>Offline</strong>.</p>
<p>Now, I want to get all the <code>records</code> that belongs to <strong>source</strong> from ... | I have around 30 records into SQLite table, where 10 records belongs to source from Online and rest 20 records belongs to source from Offline . Now, I want to get all the records that belongs to source from Online , for that I wrote this: [CODE] But by using above query, I am getting all the records available in databa... | android|sqlite|where-clause | -2 | 2016-04-26T06:09:43.960Z | 2,016 | 4 | 6 | 1 | 210 | 3 | 705 | 25 | 3 | 3 | true | false | false | false | false | true | negative |
36,856,558 | HorizontalScrollView cannot work with android:weightSum? | <p>My layout as follows, If I remove the <code>android:weightSum="3"</code> then everything is ok, but if I put <code>android:weightSum="3"</code> in LinearLayout(so each TextView has 1/3 width of the screen), the HorizontalScrollView seems cannot be scrolled, anyone knows why? thx</p>
<pre><code><HorizontalScrollV... | My layout as follows, If I remove the android:weightSum="3" then everything is ok, but if I put android:weightSum="3" in LinearLayout(so each TextView has 1/3 width of the screen), the HorizontalScrollView seems cannot be scrolled, anyone knows why? thx [CODE] | android|horizontalscrollview | 0 | 2016-04-26T06:10:17.807Z | 2,016 | 4 | 6 | 1 | 141 | 2 | 260 | 56 | 2 | 1 | true | false | false | false | false | false | zero |
36,856,651 | Broadcast receiver does not receive sms in android? | <p>I am using broadcast receiver in my app to read OTP sent from server, I did not mention any permission in manifest.xml, but it does not read OTP . I don't know where the problem is. Can someone help me to rectify it?Please help me.</p>
<pre><code>public BroadcastReceiver br = new BroadcastReceiver() {
@Overrid... | I am using broadcast receiver in my app to read OTP sent from server, I did not mention any permission in manifest.xml, but it does not read OTP . I don't know where the problem is. Can someone help me to rectify it?Please help me. [CODE] | android | -2 | 2016-04-26T06:16:06.677Z | 2,016 | 4 | 6 | 1 | 986 | 3 | 238 | 51 | 1 | 1 | true | false | false | false | false | true | negative |
36,856,675 | Gradle Sync issue | <p>Out of no where, my project shows the message</p>
<pre><code>Gradle files have changed since last project sync. A project sync might be necessary for the IDE to work properly
</code></pre>
<p>With the link "Sync now" after it. (Although I haven't edited the gradle file)</p>
<p>However, no matter how many times I ... | Out of no where, my project shows the message [CODE] With the link "Sync now" after it. (Although I haven't edited the gradle file) However, no matter how many times I click on Sync now, rebuild the project, or make it, it just display s the same message again, and it shows: [CODE] and when I check the log it just says... | android|android-studio|android-gradle-plugin | 0 | 2016-04-26T06:17:15.373Z | 2,016 | 4 | 6 | 1 | 517 | 1 | 522 | 17 | 3 | 3 | true | false | false | false | false | false | zero |
36,856,728 | NullPointerException on database insert | <p>I have an android app that has an incoming and outgoing call methods. </p>
<p>When I run the following method in PhonecallReceiver:</p>
<pre><code>db.insert("CALLINCOME", null, messageValues);
</code></pre>
<p>I get an exception (see below). I have verified that the creation is successful. So, why does it crash o... | I have an android app that has an incoming and outgoing call methods. When I run the following method in PhonecallReceiver: [CODE] I get an exception (see below). I have verified that the creation is successful. So, why does it crash on insert? note : Database created successfully [CODE] The following are the codes: [C... | java|android|sqlite|jdbc|sql-insert | 0 | 2016-04-26T06:20:08.090Z | 2,016 | 4 | 6 | 1 | 1,134 | 1 | 396 | 39 | 5 | 5 | true | false | false | false | false | false | zero |
36,856,741 | Opimizing Code in android | <p>I am implementing a calendar app where i can add events to this calendar.
I have two button where previous button shows the previous month and next button shows the next month.
Each button click compile the below code:</p>
<pre><code>private void makingCalenderDataList(int mm, int yy) {
// clear previous data
... | I am implementing a calendar app where i can add events to this calendar. I have two button where previous button shows the previous month and next button shows the next month. Each button click compile the below code: [CODE] It works fine but my problem is that if i click frequently in the two buttons then the calenda... | java|android|performance | 0 | 2016-04-26T06:20:49.277Z | 2,016 | 4 | 6 | 1 | 38 | 0 | 414 | 25 | 3 | 1 | true | true | false | false | false | false | zero |
36,856,801 | how to show current date in edit text view | <p>THIS MY CODE</p>
<pre><code>package com.clip.android;
/**
*
* @author abhishek
*
*/
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundl... | THIS MY CODE [CODE] ERROR:- [CODE] What Set current date as default date and i want to allow user 15 days behind from current date not below than that date.Please help to resolve this. | android | -1 | 2016-04-26T06:24:14.170Z | 2,016 | 4 | 6 | 1 | 1,913 | 4 | 184 | 42 | 1 | 2 | true | false | false | false | false | true | negative |
36,856,820 | how to get response body in okhttp when code is 401 | <p>i am using okHttp 3.2.0 and here is code for building request object</p>
<pre><code>MediaType JSON = MediaType.parse(AppConstants.CONTENT_TYPE_VALUE_JSON);
RequestBody body = RequestBody.create(JSON, requestBody);
HttpUrl url = new HttpUrl.Builder()
.scheme("http")
... | i am using okHttp 3.2.0 and here is code for building request object [CODE] And here is how i parse the response [CODE] This is the ideal response(from web rest client) when authentication is failed. [CODE] EDIT: response.toString() returns [CODE] response.body().toString() returns [CODE] i want to fetch the 'msgDesc' ... | android|okhttp | 11 | 2016-04-26T06:25:18.607Z | 2,016 | 4 | 6 | 1 | 8,896 | 3 | 397 | 51 | 2 | 5 | true | false | true | false | true | false | medium |
36,856,864 | Unable to show multiple location on google map | <p>I'm trying to pass my address via <code>intent.putExtra()</code> from other activity to <code>MapActivity</code> and inside the <code>MapActivity</code> i have done the Geocode. It has no error but when I run, it doesn't show the location. Can anyone tell me what am I missing or do wrong? </p>
<p>FYI: I have alrea... | I'm trying to pass my address via intent.putExtra() from other activity to MapActivity and inside the MapActivity i have done the Geocode. It has no error but when I run, it doesn't show the location. Can anyone tell me what am I missing or do wrong? FYI: I have already pass the address from Listview Activity to Displa... | android|google-maps|android-activity | 2 | 2016-04-26T06:27:35.827Z | 2,016 | 4 | 6 | 1 | 62 | 2 | 529 | 46 | 3 | 4 | true | false | false | false | false | false | low |
36,856,893 | Sqlite database insert query issue inside 'try catch' block | <p>I am developing an app(requires person's location) that stores location coordinates against the consumerIds, I have created three fields,namely 1)key_Con_ID, 2) key_Latitude, 3)key_Longitude.</p>
<p>The insert code is inside a 'try' and 'catch'. The 'try' part returns true after successful insert whereas the 'catch... | I am developing an app(requires person's location) that stores location coordinates against the consumerIds, I have created three fields,namely 1)key_Con_ID, 2) key_Latitude, 3)key_Longitude. The insert code is inside a 'try' and 'catch'. The 'try' part returns true after successful insert whereas the 'catch' part retu... | android|sqlite|try-catch|android-debugging | 2 | 2016-04-26T06:28:58.137Z | 2,016 | 4 | 6 | 1 | 1,723 | 0 | 868 | 59 | 4 | 2 | true | true | false | false | false | false | low |
36,856,919 | populatin a ListView through network operation. (Multiple threads? or just one?) | <p>I'm doing some <code>HTML</code> parsing using <code>Jsoup</code> and populatin my <code>ListView</code> with the parsing results. Now I doubted to myself what would be better. Using multiple <code>Thread</code>s (Each one parse other site) or just one <code>Thread</code> that will parse from all the sites I use?</p... | I'm doing some HTML parsing using Jsoup and populatin my ListView with the parsing results. Now I doubted to myself what would be better. Using multiple Thread s (Each one parse other site) or just one Thread that will parse from all the sites I use? The question arises because 1 : my Thread operation takes a lot of ti... | android|multithreading|listview|user-interface|garbage-collection | 2 | 2016-04-26T06:30:54.083Z | 2,016 | 4 | 6 | 1 | 34 | 0 | 770 | 80 | 5 | 0 | false | true | false | false | false | false | low |
36,856,973 | How to add authorization in my request header? | <p>I need to add Authorization Header to my request,that must look like this:</p>
<pre><code>"Authorization: Basic Zm9vOmJhcg=="
</code></pre>
<p>I have value of my username and password, how can I add this to request in <code>Retrofit 2</code>? This looked very simple,but I dont know <em>where I can initialize this... | I need to add Authorization Header to my request,that must look like this: [CODE] I have value of my username and password, how can I add this to request in Retrofit 2 ? This looked very simple,but I dont know where I can initialize this header in my Fragment ? my Fragment class: [CODE] my API interface: [CODE] | android|retrofit|retrofit2 | 1 | 2016-04-26T06:33:19.213Z | 2,016 | 4 | 6 | 1 | 1,780 | 1 | 312 | 46 | 3 | 3 | true | false | false | false | false | false | low |
36,857,005 | How to use spinner in robotium? | <p>Register.xml file,</p>
<pre><code><RelativeLayout
android:id="@+id/spinner_relay"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_below="@id/fd_register_header"
android:layout_marginBottom="@dimen/dm_5dp"
android:layout_marginLeft="@dimen/dm_10dp"
andro... | Register.xml file, [CODE] if i used this code, [CODE] getting error, cannot resolve symbol getCurrentSpinner | android|spinner|robotium | 0 | 2016-04-26T06:35:08.077Z | 2,016 | 4 | 6 | 1 | 130 | 1 | 108 | 31 | 3 | 2 | true | false | false | false | false | false | zero |
36,857,015 | Runtime Execption java.lang.NoClassDefFoundError: retrofit2.Platform in Android | <p>i am using Rtofit to handling the Serverside Data from Mobile After Implementing the Retrofit I am Getting the below Exception any know about this issue tell me where i am did wrong</p>
<p><strong>Init Retrofit:</strong> </p>
<pre><code>mRetrofit = new Retrofit.Builder()
.baseUrl(AppConstance.A... | i am using Rtofit to handling the Serverside Data from Mobile After Implementing the Retrofit I am Getting the below Exception any know about this issue tell me where i am did wrong Init Retrofit: [CODE] Gradle File [CODE] Stacktrace [CODE] | android|retrofit|noclassdeffounderror|retrofit2 | 5 | 2016-04-26T06:35:39.413Z | 2,016 | 4 | 6 | 1 | 7,930 | 3 | 240 | 79 | 4 | 3 | true | false | true | false | false | false | low |
36,857,025 | Android Animation disabled EditText | <p>i add the Bounce effect to Linear layout.This linear layout contain 2 EditTexts and one button.but when animation complete Edittexts and Button are Disabled.I cant use them.how can i enable Edittexts and Button.</p>
<p><code>XML</code></p>
<pre><code><LinearLayout android:background="@drawable/login_grd" xmlns:... | i add the Bounce effect to Linear layout.This linear layout contain 2 EditTexts and one button.but when animation complete Edittexts and Button are Disabled.I cant use them.how can i enable Edittexts and Button. XML [CODE] LoginActivity.class [CODE] | android|android-layout | 0 | 2016-04-26T06:36:08.693Z | 2,016 | 4 | 6 | 1 | 850 | 2 | 249 | 35 | 2 | 2 | true | false | false | false | false | false | zero |
36,857,291 | How to send notifications when app was closed | <p>I am creating an android app that consists of android push notifications.Here i need the push notifications that will run even when the app was closed. I had achieved it by calling the notification in a service. But here when i was running the code in the android >5.x devices my code was running perfectly even when ... | I am creating an android app that consists of android push notifications.Here i need the push notifications that will run even when the app was closed. I had achieved it by calling the notification in a service. But here when i was running the code in the android >5.x devices my code was running perfectly even when app... | android|notifications | 1 | 2016-04-26T06:49:37.680Z | 2,016 | 4 | 6 | 1 | 740 | 0 | 771 | 45 | 2 | 4 | true | true | false | false | false | false | low |
36,857,354 | xlsx reading through apache poi | <p>I just need to select a XLSX file from my sd card and read it through apache poi. here is my intent call to sd card and choose the xlsx file</p>
<pre><code> Intent intent = new Intent();
intent.setType("*/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.... | I just need to select a XLSX file from my sd card and read it through apache poi. here is my intent call to sd card and choose the xlsx file [CODE] Here is code for receiving the path of selected .xlsx file here is the error generating i think its on calling the workbook but i cant clear it [CODE] my error list given b... | android|apache-poi|watchdog | 0 | 2016-04-26T06:52:22.723Z | 2,016 | 4 | 6 | 1 | 204 | 1 | 363 | 31 | 3 | 3 | true | false | false | false | false | false | zero |
36,857,436 | Android marshmallow WifiManager leaking IntentReceiver | <p>Here's the scenario, I have a <code>LoginActivity</code> that makes use of the <code>WifiManager</code> to obtain the <strong>IP address</strong> like this:</p>
<pre><code>WifiManager wifiManager = (WifiManager)getSystemService(Context.WIFI_SERVICE);
String ipAddress = wifiManager.getConnectionInfo().getIpAddress()... | Here's the scenario, I have a LoginActivity that makes use of the WifiManager to obtain the IP address like this: [CODE] I do not register any receiver to receive any WiFi updates. I use the WifiManager to obtain the IP Address only and nothing else . Now when I complete login, I call finish() in LoginActivity and star... | android|android-6.0-marshmallow|wifimanager|android-6.0.1-marshmallow | 1 | 2016-04-26T06:56:53.183Z | 2,016 | 4 | 6 | 1 | 744 | 1 | 737 | 54 | 4 | 1 | true | false | false | false | false | false | low |
36,857,509 | Idling resource exits even when isIdleNow() returns false in espresso | <p>I have an idling resource which is supposed to tell espresso to wait for 140 seconds. the first time i run the test, it was working. but subsequent runs fails. that is, my test exist without waiting for 140 seconds even when <code>isIdleNow()</code> returns false. what could be the cause?</p>
<pre><code>@RunWith(An... | I have an idling resource which is supposed to tell espresso to wait for 140 seconds. the first time i run the test, it was working. but subsequent runs fails. that is, my test exist without waiting for 140 seconds even when isIdleNow() returns false. what could be the cause? [CODE] My idling resource [CODE] | android|android-testing|android-espresso | 2 | 2016-04-26T07:00:25.660Z | 2,016 | 4 | 7 | 1 | 532 | 0 | 309 | 69 | 3 | 2 | true | true | false | false | false | false | low |
36,857,523 | Issue with background image | <p>I try to create background with full screen image, but only have a grey square.</p>
<p><a href="https://i.stack.imgur.com/fHB1y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fHB1y.png" alt="enter image description here"></a></p>
<p><strong>The correc timage:</strong>
<a href="https://i.stack.... | I try to create background with full screen image, but only have a grey square. The correc timage: I add image in project using the new/image Asset of android studio. activity layout [CODE] Manifest // I change the theme [CODE] EDIT I try add directly png file, in android image button. but have a sema issue, the image ... | android | 1 | 2016-04-26T07:01:27.033Z | 2,016 | 4 | 7 | 1 | 79 | 2 | 343 | 27 | 1 | 2 | true | false | false | false | false | false | low |
36,857,529 | how to pass a value for a Callable function in android studio? | <p>i'm trying to pass a value to a callback function in my code,
i'm passing my <code>callback</code>to another function and i want it to return the <code>callback</code> a state, </p>
<p>here is my function I'm sending out > </p>
<pre><code>wifiWrapper myWifiWrapper = new wifiWrapper(); //- INIZILIZING WIFI
... | i'm trying to pass a value to a callback function in my code, i'm passing my callback to another function and i want it to return the callback a state, here is my function I'm sending out > [CODE] here is my end function in the wifiWrapper class > [CODE] and here is my Callable that i'm passing > [CODE] PROBLEM IS I wa... | android|android-studio|callable-statement | 0 | 2016-04-26T07:01:34.960Z | 2,016 | 4 | 7 | 1 | 728 | 1 | 461 | 62 | 3 | 4 | true | false | false | false | false | false | zero |
36,857,759 | OnBackPressed and onOptionsItemSelected not working in Lollipop | <p>I have one activity that will simply call the previous activity once onBackPressed was called or the onOptionsItemSelected. My code is working on Kitkat, Ice cream, and Marshmallow. It is only not working in <strong>Lollipop</strong>. Why is that? </p>
<p>My Activity </p>
<pre><code>@Override
public void onBackPr... | I have one activity that will simply call the previous activity once onBackPressed was called or the onOptionsItemSelected. My code is working on Kitkat, Ice cream, and Marshmallow. It is only not working in Lollipop . Why is that? My Activity [CODE] Android Manifest [CODE] build.grade [CODE] | android|android-5.0-lollipop|android-xml | 0 | 2016-04-26T07:11:48.477Z | 2,016 | 4 | 7 | 1 | 529 | 1 | 293 | 63 | 3 | 3 | true | false | false | false | false | false | zero |
36,857,765 | Tooltips Android | <p>I am working to show tool tip (Help Overlay) for Android. </p>
<p>Actually, I have an activity with view pager and view pager is having <code>Fragments</code>. One of the fragment has <code>RecyclerView</code> with <code>Grid Layout</code>. </p>
<p>I have to show tool tip for the items in this <code>grid view</cod... | I am working to show tool tip (Help Overlay) for Android. Actually, I have an activity with view pager and view pager is having Fragments . One of the fragment has RecyclerView with Grid Layout . I have to show tool tip for the items in this grid view . I want to access the view holder of the particular item in the gri... | android|android-fragments|android-recyclerview | 1 | 2016-04-26T07:12:00.980Z | 2,016 | 4 | 7 | 1 | 704 | 2 | 963 | 16 | 3 | 0 | false | false | false | false | false | false | low |
36,857,783 | Share website url on whats app using android studio | <p>I have tried following for sharing website url on whatsapp. I got error of please try again. I refers the code from <a href="http://techzog.com/development/android-share-to-whatsapp-code-for-developers/" rel="nofollow">http://techzog.com/development/android-share-to-whatsapp-code-for-developers/</a> Dose anyone kno... | I have tried following for sharing website url on whatsapp. I got error of please try again. I refers the code from http://techzog.com/development/android-share-to-whatsapp-code-for-developers/ Dose anyone know how do i do that? [CODE] | android|whatsapp | 0 | 2016-04-26T07:13:00.457Z | 2,016 | 4 | 7 | 1 | 2,714 | 1 | 235 | 51 | 2 | 1 | true | false | true | false | false | false | zero |
36,857,931 | Viewpager can only be swiped from the edge of the screen | <p>I have implemented two viewpagers, one viewpager from android for swiping horizontally left and right fragments. and second is custom vertical viewpager within the fragment to swipe image up and down. i can swipe vertically any where, but i cannot swipe viewpager horizontally. horizontal viewpager can only be swiped... | I have implemented two viewpagers, one viewpager from android for swiping horizontally left and right fragments. and second is custom vertical viewpager within the fragment to swipe image up and down. i can swipe vertically any where, but i cannot swipe viewpager horizontally. horizontal viewpager can only be swiped fr... | android|android-viewpager|gesture | 0 | 2016-04-26T07:20:31.410Z | 2,016 | 4 | 7 | 1 | 938 | 2 | 465 | 56 | 3 | 1 | true | false | false | false | false | false | zero |
36,857,936 | set OnItemClickListener to Navigation Drawer's ListView | <p>I came across an online example which demonstrated building a Navigation Drawer without implementing changing of <code>Fragment</code>(s). I tried adding this but got no success so far. The tutorial used a <code>ListView</code> and a custom adapter. </p>
<p><em>Here is what I have so far:</em></p>
<p><strong>Activ... | I came across an online example which demonstrated building a Navigation Drawer without implementing changing of Fragment (s). I tried adding this but got no success so far. The tutorial used a ListView and a custom adapter. Here is what I have so far: Activity [CODE] NavigationDrawerAdapter [CODE] FragmentDrawer [CODE... | android|listview|android-fragments|android-recyclerview | 1 | 2016-04-26T07:20:37.053Z | 2,016 | 4 | 7 | 1 | 164 | 0 | 525 | 55 | 4 | 4 | true | true | false | false | false | false | low |
36,857,984 | How to fix position of Textview in RelativeLayout | <p>I am having this problem where I want to fix the position of my layout. I want to fix it in the center of my layout but every time I click on <code>EditText</code> which makes a keyboard pop up, the <code>TextView</code> shifts up and I don't want that to happen. Here is my code: </p>
<p>comment.xml: </p>
<pre><co... | I am having this problem where I want to fix the position of my layout. I want to fix it in the center of my layout but every time I click on EditText which makes a keyboard pop up, the TextView shifts up and I don't want that to happen. Here is my code: comment.xml: [CODE] Comments.java: [CODE] AndroidManifest.xml: [C... | java|android|android-layout|android-relativelayout | 0 | 2016-04-26T07:23:21.473Z | 2,016 | 4 | 7 | 1 | 1,394 | 4 | 658 | 49 | 4 | 3 | true | false | false | false | false | false | zero |
36,858,086 | Remove an item in RecyclerView- Android | <p>I am facing a problem, I could not remove an Item in RecyclerView.
I am trying to search in Internet, but could not see any solution
I am following to this post
<a href="https://stackoverflow.com/questions/26076965/android-recyclerview-addition-removal-of-items">Android RecyclerView addition & removal of items</... | I am facing a problem, I could not remove an Item in RecyclerView. I am trying to search in Internet, but could not see any solution I am following to this post Android RecyclerView addition & removal of items But I still could not remove the item selected Below is my code for my adapter and fragement RecyclerViewAdapt... | android|android-recyclerview|removechild | 5 | 2016-04-26T07:28:14.400Z | 2,016 | 4 | 7 | 1 | 26,429 | 2 | 439 | 39 | 3 | 2 | true | false | true | true | false | false | low |
36,858,109 | Android:TextView Movement in Vertical direction attached with button click listener | <p>How to move textview in vertical direction when I tap on button?</p>
<pre><code>msgtxt.setOnTouchListener(new OnTouchListener() {
@SuppressLint("ClickableViewAccessibility") public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
drag(event... | How to move textview in vertical direction when I tap on button? [CODE] As you can see above code, I can move the textview using onTouchListener but here the text in the textview is also moving that I don't want. I am sharing an image where I have mentioned my requirement. | java|android|textview | 4 | 2016-04-26T07:29:01.363Z | 2,016 | 4 | 7 | 1 | 56 | 0 | 273 | 83 | 3 | 1 | true | true | false | false | false | false | low |
36,858,110 | What makes QBluetoothDeviceDiscoveryAgent::finished() be called? | <p>I'm using <a href="http://doc.qt.io/qt-5/qbluetoothdevicediscoveryagent.html" rel="nofollow">QBluetoothDeviceDiscoveryAgent</a> to search BLE devices on an Android phone.</p>
<p>I request device search to be started by calling <a href="http://doc.qt.io/qt-5/qbluetoothdevicediscoveryagent.html#start" rel="nofollow">... | I'm using QBluetoothDeviceDiscoveryAgent to search BLE devices on an Android phone. I request device search to be started by calling QBluetoothDeviceDiscoveryAgent::start() . After a few seconds, QBluetoothDeviceDiscoveryAgent::finished() is emitted, but I did not call QBluetoothDeviceDiscoveryAgent::stop() . At this p... | android|c++|qt|bluetooth|bluetooth-lowenergy | 3 | 2016-04-26T07:29:06.977Z | 2,016 | 4 | 7 | 1 | 476 | 1 | 874 | 64 | 5 | 0 | false | false | false | false | false | false | low |
36,858,132 | Caused by: java.lang.IllegalArgumentException: Binary XML file line #28: Duplicate id | <p>I get following exception:</p>
<blockquote>
<p>Caused by: java.lang.IllegalArgumentException: Binary XML file line #28: Duplicate id 0x7f0f018d, tag null, or parent id 0x7f0f012a with another fragment for com.google.android.gms.maps.MapFragment...</p>
</blockquote>
<p>This is my fragment code:</p>
<pre><code>pu... | I get following exception: Caused by: java.lang.IllegalArgumentException: Binary XML file line #28: Duplicate id 0x7f0f018d, tag null, or parent id 0x7f0f012a with another fragment for com.google.android.gms.maps.MapFragment... This is my fragment code: [CODE] I am stuck here for the last 3 days and I'd appreciate any ... | android|android-fragments | 0 | 2016-04-26T07:29:50.963Z | 2,016 | 4 | 7 | 1 | 250 | 0 | 325 | 85 | 2 | 1 | true | true | false | false | false | false | zero |
36,858,175 | How to switch fragment from with cardview click | <p>I am trying to change the current fragment to another fragment by clicking a cardview in the current fragment. I have this method in my main activity for switching fragments when a list is clicked and it works fine</p>
<pre><code>private void ListItemClicked(int position)
{
Android.Support.V4.App.Fragment fragm... | I am trying to change the current fragment to another fragment by clicking a cardview in the current fragment. I have this method in my main activity for switching fragments when a list is clicked and it works fine [CODE] Now I am tried this in my fragment [CODE] But it gives an activity destroyed error Please any idea... | c#|android-fragments|xamarin|xamarin.android | 0 | 2016-04-26T07:31:34.957Z | 2,016 | 4 | 7 | 1 | 165 | 1 | 430 | 47 | 4 | 2 | true | false | false | false | false | false | zero |
36,858,210 | No view found for fragment in 1. Nav Drawer | <p>Hello guys I created 2 navigation drawers and like 2 main activties in my app (1 for logged users and other for not logged users). Now when user Login and want to see news it works great it open a new fragment where is a list of news and when user choose particular news it open it's details and it's working awesome.... | Hello guys I created 2 navigation drawers and like 2 main activties in my app (1 for logged users and other for not logged users). Now when user Login and want to see news it works great it open a new fragment where is a list of news and when user choose particular news it open it's details and it's working awesome. Bu... | java|android|android-layout|android-fragments | 0 | 2016-04-26T07:32:56.787Z | 2,016 | 4 | 7 | 1 | 36 | 1 | 669 | 43 | 4 | 2 | true | false | false | false | false | false | zero |
36,858,237 | Error converting bytecode to dex - Android Studio 2.0 | <p>I'm trying to use the Pcap library in my app. I'm getting an error in my build.gradle file when I try to compile my dependency:</p>
<pre><code>compile 'io.pkts:pkts-core:2.0.3'
</code></pre>
<p>My build.gradle file now looks like:</p>
<pre><code>apply plugin: 'com.android.application'
android {
compileSdkVer... | I'm trying to use the Pcap library in my app. I'm getting an error in my build.gradle file when I try to compile my dependency: [CODE] My build.gradle file now looks like: [CODE] Everything else is set to the default 'Hello World' settings when you create a new project. Error: [CODE] It seems like this is a newer issue... | android|android-studio | 1 | 2016-04-26T07:34:23.197Z | 2,016 | 4 | 7 | 1 | 239 | 0 | 399 | 53 | 2 | 3 | true | true | false | false | false | false | low |
36,858,294 | Request through Retrofit like open API | <p>I want to build POST request like open API what I try to use.But I have error,bad request,code==400.What Im doing wrong and how build right request?
Example of this request in API:</p>
<pre><code>curl -X POST
-H "Authorization: Basic Zm9vOmJhcg=="
-d "username=foo&password=bar" https://api.vid.me/auth... | I want to build POST request like open API what I try to use.But I have error,bad request,code==400.What Im doing wrong and how build right request? Example of this request in API: [CODE] my interface class: [CODE] Fragment: [CODE] stack trace: [CODE] | android|retrofit|retrofit2 | 2 | 2016-04-26T07:36:46.883Z | 2,016 | 4 | 7 | 1 | 346 | 1 | 251 | 38 | 3 | 4 | true | false | false | false | false | false | low |
36,858,329 | binding 111 port fails in android application | <p>In the Android application,call the native method by the <code>jni</code> to create a <code>socket-server</code>.In native method, it failed in binding 111 port. when binding <code>8080</code> port,it successful.I don't know the reason,and how to resolve the problem.</p>
<hr>
<p>in server.c file:</p>
<pre><code>... | In the Android application,call the native method by the jni to create a socket-server .In native method, it failed in binding 111 port. when binding 8080 port,it successful.I don't know the reason,and how to resolve the problem. in server.c file: [CODE] in jni file : [CODE] | android | 1 | 2016-04-26T07:38:39.747Z | 2,016 | 4 | 7 | 1 | 46 | 0 | 275 | 45 | 1 | 2 | true | true | false | false | false | false | low |
36,858,343 | How to set the about page library in android studio | <p>I am trying to set the about page library with </p>
<p>compile 'com.github.medyo:android-about-page:1.0.2'</p>
<p>But I am getting a run time error I have set as it is given in the github
here is my java code:</p>
<pre><code>import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android... | I am trying to set the about page library with compile 'com.github.medyo:android-about-page:1.0.2' But I am getting a run time error I have set as it is given in the github here is my java code: [CODE] } Can some one tell me what changes will I do in my code to set the support library.I am trying to import library from... | android|android-support-library|android-studio-2.0 | 0 | 2016-04-26T07:39:24.293Z | 2,016 | 4 | 7 | 1 | 3,665 | 1 | 499 | 51 | 3 | 4 | true | false | true | false | false | false | zero |
36,858,385 | FATAL EXCEPTION: main java.lang.VerifyError: net/sqlcipher/database/SQLiteDatabase from SQLCipher | <p>I am using <code>SQLCipher</code> as db in my project.My app is running successfully in phones with OS lollipop and above. but having issues from OS 4.4.4 and below. I am using SQLCipher jar files (not the latest one).on application start, I am getting the following error:</p>
<pre><code>04-26 12:50:04.940 18598-18... | I am using SQLCipher as db in my project.My app is running successfully in phones with OS lollipop and above. but having issues from OS 4.4.4 and below. I am using SQLCipher jar files (not the latest one).on application start, I am getting the following error: [CODE] app/build.gradle : [CODE] contentProvider.java [CODE... | android|sqlcipher|sqlcipher-android | 1 | 2016-04-26T07:41:33.887Z | 2,016 | 4 | 7 | 1 | 1,312 | 4 | 457 | 97 | 3 | 4 | true | false | false | false | false | false | low |
36,858,496 | Handle asynchronous messages in ejabberd | <p>I have <a href="https://www.ejabberd.im/" rel="nofollow">ejabberd</a> as my local server and <a href="http://www.igniterealtime.org/projects/smack/" rel="nofollow">smack</a> as the android side api.</p>
<p>When user comes online and there is number of offline messages to deliver , the ejabberd server just floods me... | I have ejabberd as my local server and smack as the android side api. When user comes online and there is number of offline messages to deliver , the ejabberd server just floods me with the messages .and i get every message but the order is just not perfect. the order in which message is sent and saved in server is not... | java|android|ejabberd|smack | 0 | 2016-04-26T07:46:51.550Z | 2,016 | 4 | 7 | 1 | 354 | 2 | 1,171 | 40 | 4 | 1 | true | false | false | false | false | false | zero |
36,858,595 | Text disappears when I insert a hyperlink | <p>In my android project, whenever I insert an hyperlink in my text, the hyperlink works, but the rest of my text just disappears. The hyperlink is shown in the middle of the screen, there is no text visible around it, while I clearly have a lot of text written in my <code>strings.xml</code>.</p>
<p>This is a screensh... | In my android project, whenever I insert an hyperlink in my text, the hyperlink works, but the rest of my text just disappears. The hyperlink is shown in the middle of the screen, there is no text visible around it, while I clearly have a lot of text written in my strings.xml . This is a screenshot on how it looks like... | java|android|layout|hyperlink | 0 | 2016-04-26T07:50:38.243Z | 2,016 | 4 | 7 | 1 | 312 | 1 | 626 | 41 | 4 | 2 | true | false | false | false | false | false | zero |
36,858,654 | Truncated Logcat Exception Message | <p>I'm trying to debug an android app error (in AS2.1beta3) but the logcat message seems to be truncated at the point where it would give me the info on what caused the problem.</p>
<p>Error message:</p>
<pre><code>com.firebase.client.FirebaseException: Failed to bounce to type
at com.firebase.client.DataSnapshot... | I'm trying to debug an android app error (in AS2.1beta3) but the logcat message seems to be truncated at the point where it would give me the info on what caused the problem. Error message: [CODE] Sometimes it shows an additional period at the end i.e. com.fasterxml. What can I do to see the whole message? This is driv... | android|firebase|logcat|firebase-realtime-database | 5 | 2016-04-26T07:53:28.050Z | 2,016 | 4 | 7 | 1 | 930 | 1 | 332 | 34 | 4 | 1 | true | false | false | false | false | false | low |
36,858,686 | How to selectively add srcDir to flavor depending on a custom extension variable in Android build? | <p>Suppose I have an app that shows locations on a map.
Now I want to make several different variations of this app, one showing shops, one showing restaurants, etc.</p>
<p>In some of these apps I want to include ads, in others I don't.</p>
<p>How can I selectively add certain srcDirs to one flavor but not another? ... | Suppose I have an app that shows locations on a map. Now I want to make several different variations of this app, one showing shops, one showing restaurants, etc. In some of these apps I want to include ads, in others I don't. How can I selectively add certain srcDirs to one flavor but not another? I tried the followin... | android|gradle | 2 | 2016-04-26T07:54:40.180Z | 2,016 | 4 | 7 | 1 | 1,006 | 1 | 992 | 98 | 2 | 2 | true | false | false | false | false | false | low |
36,858,702 | gradle cannot specific jar file in Jar Type task | <p>here is my <a href="https://github.com/roroco/ro-adr/tree/jar-doesnot-work" rel="nofollow">full code</a>, I make my jar like:</p>
<pre><code>task roJar(type: Jar, dependsOn: assembleRelease) << {
destinationDir = new File("/tmp/ro-adr")
archiveName = "ro-adr.jar"
from(new File(buildDir, "intermedi... | here is my full code , I make my jar like: [CODE] when i invoke roJar and check output jar file, it doesn't exist, the full output is: [CODE] update even i simplify task: [CODE] it still doesn't work, I doesn't find any jar update I find the reason is "<<", when i rm it, everything work, can anyone tell me why? | java|android|gradle|jar | 0 | 2016-04-26T07:55:32.890Z | 2,016 | 4 | 7 | 1 | 48 | 1 | 312 | 48 | 4 | 3 | true | false | false | false | false | false | zero |
36,858,738 | Audio lags or stutters playing Youtube videos in a floating WebView based on Chromium | <p>I'm working on an Android application with a floating WebView that plays Youtube videos using the Youtube's IFrame API. The floating view is implemented as a Service and it's always open while the user navigates through the different activities of the application, it also floats when the application is minimized.</p... | I'm working on an Android application with a floating WebView that plays Youtube videos using the Youtube's IFrame API. The floating view is implemented as a Service and it's always open while the user navigates through the different activities of the application, it also floats when the application is minimized. The i... | android|webview|youtube|chromium | 0 | 2016-04-26T07:57:28.830Z | 2,016 | 4 | 7 | 1 | 874 | 1 | 1,583 | 85 | 4 | 2 | true | false | false | false | false | false | zero |
36,858,816 | Make Custom View to Wrap_content | <p>I am using library OnBarCodeGenerate for android. This draws barcode in a Custom View. How should i write my custom View's onMeasure method in a way that it takes as much as space it requires. The same behaviour as wrap_content for both height and width. ?</p>
<p>For now onMeasure Method of my Custom View is follow... | I am using library OnBarCodeGenerate for android. This draws barcode in a Custom View. How should i write my custom View's onMeasure method in a way that it takes as much as space it requires. The same behaviour as wrap_content for both height and width. ? For now onMeasure Method of my Custom View is following. in whi... | android|height|width|android-custom-view|android-wrap-content | 2 | 2016-04-26T08:01:00.350Z | 2,016 | 4 | 8 | 1 | 1,303 | 0 | 359 | 32 | 5 | 1 | true | true | false | false | false | false | low |
36,858,903 | How to show other objects from json in Android | <p>I want develop android application for one website. I read website posts from <code>json</code> and show its in <code>RecyclerView</code> every 10 posts.<br>
I can show title, description and thumbnail. but i want show <strong>medium</strong> from <strong>thumbnail_images</strong> instance of <strong>thumbnail</stro... | I want develop android application for one website. I read website posts from json and show its in RecyclerView every 10 posts. I can show title, description and thumbnail. but i want show medium from thumbnail_images instance of thumbnail . I don't know how to read images from medium ?! My Json Link : Link AsyncTaskCo... | android|json | 0 | 2016-04-26T08:04:59.260Z | 2,016 | 4 | 8 | 1 | 32 | 1 | 378 | 46 | 2 | 1 | true | false | false | false | false | false | zero |
36,858,928 | Android GCM notification : no title | <p>I'am building an Android app and currently working on notifications. I'm using the Google Cloud Messaging service, for which I wrote the following PHP code :</p>
<pre><code><?php
define('API_ACCESS_KEY', 'blablabla');
$registrationIds = array($this->deviceId);
$data = array
(
'title' => 'My Title',
... | I'am building an Android app and currently working on notifications. I'm using the Google Cloud Messaging service, for which I wrote the following PHP code : [CODE] When i execute this php file, I receive the notification on my Android device, as you can see on the following screenshot. The message text is ok. android ... | php|android|notifications|google-cloud-messaging|payload | 0 | 2016-04-26T08:06:42.413Z | 2,016 | 4 | 8 | 1 | 958 | 1 | 793 | 35 | 5 | 2 | true | false | false | false | false | false | zero |
36,858,958 | Android rotate map based on user heading and bearing while navigation | <p>I want to rotate map while user navigation based on his direction/heading and and his current segment(current location to next). I have route drawn on map and i am calculating bearing between two points using method <code>current.bearingTo(destination)</code>. I have followed <a href="https://stackoverflow.com/ques... | I want to rotate map while user navigation based on his direction/heading and and his current segment(current location to next). I have route drawn on map and i am calculating bearing between two points using method current.bearingTo(destination) . I have followed this link but results are not as i was expecting. What ... | android|google-maps|rotation|location|android-mapview | 0 | 2016-04-26T08:08:18.213Z | 2,016 | 4 | 8 | 1 | 1,563 | 0 | 759 | 69 | 5 | 1 | true | true | false | false | false | false | zero |
36,859,021 | Populate android spinner with json query and php | <p>I am trying to populate a spinner with some data( names of different locations) I have stored on phpMyAdmin database with.</p>
<p>The main Activity is:</p>
<pre><code> package com.example.transgoods;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.A... | I am trying to populate a spinner with some data( names of different locations) I have stored on phpMyAdmin database with. The main Activity is: [CODE] The php file: [CODE] I am getting this error [CODE] | php|android|json|android-spinner | 0 | 2016-04-26T08:11:21.777Z | 2,016 | 4 | 8 | 1 | 541 | 1 | 203 | 48 | 4 | 3 | true | false | false | false | false | false | zero |
36,859,158 | How to follow a person from the registered twitter account in the device using Twitter SDK | <p>I am working on a project wherein i have a requirement to follow a person using Twitter. For that purpose I am using Twitter SDK along with the OAuth <code>ConsumerKey</code>, <code>ConsumerSecret</code>, <code>AccessToken</code> and <code>AccessTokenSecret</code>. Everything works fine but I am completely stuck up ... | I am working on a project wherein i have a requirement to follow a person using Twitter. For that purpose I am using Twitter SDK along with the OAuth ConsumerKey , ConsumerSecret , AccessToken and AccessTokenSecret . Everything works fine but I am completely stuck up with the things to follow the user based on the regi... | android|twitter|oauth|twitter4j|twitter-fabric | 2 | 2016-04-26T08:18:22.300Z | 2,016 | 4 | 8 | 1 | 35 | 0 | 866 | 90 | 5 | 1 | true | true | false | false | false | false | low |
36,859,232 | Linear Acceleration values increasing over time | <p>Im developing an application where im collecting linear acceleration values with my android device. Therefore I use Sensor.TYPE_LINEAR_ACCELERATION I also calculate device orientation with an sensor fusion approach using MAGNETOMETER ACCELERATION and GYROSKOP</p>
<pre><code> public void initListeners(){
mSensor... | Im developing an application where im collecting linear acceleration values with my android device. Therefore I use Sensor.TYPE_LINEAR_ACCELERATION I also calculate device orientation with an sensor fusion approach using MAGNETOMETER ACCELERATION and GYROSKOP [CODE] In the method myLinearAcceleration, im writing linear... | android-studio|accelerometer|android-sensors | 0 | 2016-04-26T08:21:45.193Z | 2,016 | 4 | 8 | 1 | 561 | 1 | 1,318 | 47 | 3 | 3 | true | false | false | false | false | false | zero |
36,859,254 | Text by code dissapear after scrolling trough tabs in Xamarin Android | <p>I'm having some troubles with text, which I edit by code with a REST API service, is disappearing after I scroll trough the tabs.</p>
<p><a href="https://www.youtube.com/watch?v=NjqO-O-SDaQ" rel="nofollow noreferrer">I'VE MADE A VIDEO OF MY PROBLEM</a></p>
<p>I've set up <strong>Tablayout</strong> (android.support.d... | I'm having some troubles with text, which I edit by code with a REST API service, is disappearing after I scroll trough the tabs. I'VE MADE A VIDEO OF MY PROBLEM I've set up Tablayout (android.support.design.widget.TabLayout) and a Viewpager (android.support.v4.view.ViewPager) on my ArtikelDetailActivity . ArtikelDetai... | android|xamarin|textview|fragment | 0 | 2016-04-26T08:22:42.730Z | 2,016 | 4 | 8 | 1 | 136 | 1 | 993 | 69 | 4 | 3 | true | false | false | false | false | false | zero |
36,859,262 | gradle unable to establish connection behind proxy | <p>I am trying to run the react native examples for androind on windows. My system is setup behind a corporate proxy. i am unable to get gradle to work though.
Following proxy settings are defined in the global gradle.properties.</p>
<pre><code>systemProp.http.proxyHost=<proxy.url>
systemProp.http.proxyPort=8080... | I am trying to run the react native examples for androind on windows. My system is setup behind a corporate proxy. i am unable to get gradle to work though. Following proxy settings are defined in the global gradle.properties. [CODE] I tried running the build from android studio(2.0), same story. My network proxy is pr... | android|android-studio|gradle|proxy|react-native | 1 | 2016-04-26T08:22:56.687Z | 2,016 | 4 | 8 | 1 | 295 | 0 | 700 | 50 | 5 | 2 | true | true | false | false | false | false | low |
36,859,311 | Saving the version of my database in SharedPreferences | <p>I'm trying to add a version to my database. I followed <a href="https://stackoverflow.com/a/11601770/3021054">this answer</a> to do so. Problem is, every time I call <code>GetDefaultSharedPreferences</code>, it doesn't seem to find the version I stored. Here's my code:</p>
<pre><code>public Database() {
var dbP... | I'm trying to add a version to my database. I followed this answer to do so. Problem is, every time I call GetDefaultSharedPreferences , it doesn't seem to find the version I stored. Here's my code: [CODE] When I run the code for the first time after building, dbVersion is always 0. Doesn't matter if I change DATABASE_... | android|sqlite|xamarin|xamarin.android|android-sqlite | 1 | 2016-04-26T08:25:00.683Z | 2,016 | 4 | 8 | 1 | 312 | 3 | 619 | 54 | 5 | 1 | true | false | false | false | false | false | low |
36,859,528 | Java.lang.NoClassDefFoundError with Espresso and Proguard | <p>I'm not very experienced with Espresso, but I finally succeed to run it.</p>
<p>I have an app that need to be shrink by Proguard in order to be under the 56K methods.</p>
<p>The app starts with a 3 sec animation, so I need to wait until this animation is over in order to continue. This is what I tried to do with t... | I'm not very experienced with Espresso, but I finally succeed to run it. I have an app that need to be shrink by Proguard in order to be under the 56K methods. The app starts with a 3 sec animation, so I need to wait until this animation is over in order to continue. This is what I tried to do with the method waitFor(l... | java|android|junit|android-testing|android-espresso | 4 | 2016-04-26T08:35:25.237Z | 2,016 | 4 | 8 | 1 | 869 | 0 | 5,404 | 57 | 5 | 2 | true | true | false | false | false | false | low |
36,859,535 | How to send dtmf with pjsip on Android? | <p>I'm trying to send dtmf during voip call.
In order to do it I'm using </p>
<pre><code>mCall.dialDtmf(String.valueOf(dtmf));
</code></pre>
<p>mCall it is call form PjSip.
When this function is called I catch exception:</p>
<pre><code>04-25 16:03:57.867 19670-19670/kphoneapp.kymera.kvoip.myapplication W/System.err:... | I'm trying to send dtmf during voip call. In order to do it I'm using [CODE] mCall it is call form PjSip. When this function is called I catch exception: [CODE] How can I fix it? | android|sip|voip|pjsip | 3 | 2016-04-26T08:35:55.113Z | 2,016 | 4 | 8 | 1 | 2,090 | 1 | 178 | 39 | 4 | 2 | true | false | false | false | false | false | low |
36,859,673 | Android camera2 exposure issue. Preview is overexposed in case of YUV ImageReader use | <p>Very strange issue founded on Nexus 5x.</p>
<p>I have ordinary set of surfaces for camera app:
- SurfaceHolder for on-screen preview
- ImageReader in YUV format for preview frames data
- ImageReader in YUV or JPEG format (depends on internal application mode selected) for capturing still images .</p>
<p>When JPEG ... | Very strange issue founded on Nexus 5x. I have ordinary set of surfaces for camera app: - SurfaceHolder for on-screen preview - ImageReader in YUV format for preview frames data - ImageReader in YUV or JPEG format (depends on internal application mode selected) for capturing still images . When JPEG ImageReader is used... | android|image|android-camera|nexus-5|android-camera2 | 2 | 2016-04-26T08:41:42.273Z | 2,016 | 4 | 8 | 1 | 828 | 1 | 832 | 85 | 5 | 0 | false | false | false | false | false | false | low |
36,859,710 | Run long task when onDestroy() is called | <p>I want to run a long operation task from onDestroy() from a fragment. My goal is to call a network call to delete some data in case the user closes the application by swiping it from recent apps. I wish to start an intent when onDestroy() is called.</p>
<p>At the moment, whenever i try to initiate the intent, i loo... | I want to run a long operation task from onDestroy() from a fragment. My goal is to call a network call to delete some data in case the user closes the application by swiping it from recent apps. I wish to start an intent when onDestroy() is called. At the moment, whenever i try to initiate the intent, i loose the cont... | android|android-lifecycle|android-ondestroy | 0 | 2016-04-26T08:43:39.650Z | 2,016 | 4 | 8 | 1 | 724 | 2 | 970 | 40 | 3 | 1 | true | false | false | false | false | false | zero |
36,859,711 | Parsing multiple JSONs from ByteBuffer | <p>I've got pure and simple Java Nio Socket Server. Data transfer realized with JSON. With 1 clien all work fine, but when i am trying to start workload test - some problem appeared. Here is my method for parsing incoming ByteBuffer (MessageFromBuffer is just a wrapper for byte[]):</p>
<pre><code>private JSONObject pa... | I've got pure and simple Java Nio Socket Server. Data transfer realized with JSON. With 1 clien all work fine, but when i am trying to start workload test - some problem appeared. Here is my method for parsing incoming ByteBuffer (MessageFromBuffer is just a wrapper for byte[]): [CODE] When buffer cosists of only one j... | java|android|sockets | 1 | 2016-04-26T08:43:42.107Z | 2,016 | 4 | 8 | 1 | 2,504 | 1 | 687 | 38 | 3 | 2 | true | false | false | false | false | false | low |
36,859,801 | Text is not in emulator is not showing, where it is in Graphic Layout | <p>In my graphic layout, I have a lot of text, with at the very end a hyperlink. Cause the text doesn't completely fit in my layout, I've added a scrollview. Now when I start my emulator, the only thing that gets shown is the hyperlink. No text at all.</p>
<p>This is what I see in my graphic layout before I run my pro... | In my graphic layout, I have a lot of text, with at the very end a hyperlink. Cause the text doesn't completely fit in my layout, I've added a scrollview. Now when I start my emulator, the only thing that gets shown is the hyperlink. No text at all. This is what I see in my graphic layout before I run my project: This ... | java|android|layout|hyperlink | 1 | 2016-04-26T08:47:39.590Z | 2,016 | 4 | 8 | 1 | 286 | 1 | 425 | 69 | 4 | 2 | true | false | false | false | false | false | low |
36,859,855 | Cordova build error code 1 | <p>I am trying to build android project by cordova but I still always having error . here is the terminal output:</p>
<pre><code>tobe@tobe-laptop:~/DemoProject$ cordova build android
ANDROID_HOME=/home/tobe/android-sdk-linux
JAVA_HOME=/home/tobe/java/jdk1.8.0_91
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDeb... | I am trying to build android project by cordova but I still always having error . here is the terminal output: [CODE] FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':CordovaLib:processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.Exec... | android|linux|cordova|phonegap-cli | 1 | 2016-04-26T08:49:40.847Z | 2,016 | 4 | 8 | 1 | 450 | 0 | 814 | 26 | 4 | 1 | true | true | false | false | false | false | low |
36,859,858 | Store intent for one activity but start a different activity | <p>I am new to android and I have a problem. I want to store intent for an activity but start a different activity. I have a backgroundworker activity that has to store intent for postAnnotationActivity, but has to start InstructionsActivity. If I use <code>intentID.getStringExtra</code> in PostAnnotationActivity then ... | I am new to android and I have a problem. I want to store intent for an activity but start a different activity. I have a backgroundworker activity that has to store intent for postAnnotationActivity, but has to start InstructionsActivity. If I use intentID.getStringExtra in PostAnnotationActivity then the output = nul... | java|android|android-intent|android-activity | 0 | 2016-04-26T08:49:47.590Z | 2,016 | 4 | 8 | 1 | 141 | 3 | 644 | 60 | 4 | 2 | true | false | false | false | false | false | zero |
36,859,860 | JsonArray post from Android to Laravel Rest Error | <p>I am trying to post some data form android app to Laravel rest api. The data is converted and posted as jsonArray.<br></p>
<p>The code works fine in HttpRequester (Firefox extension) but throws 500 Internal Server Error when posted from Android.</p>
<p><strong>Android</strong></p>
<pre><code>public static int che... | I am trying to post some data form android app to Laravel rest api. The data is converted and posted as jsonArray. The code works fine in HttpRequester (Firefox extension) but throws 500 Internal Server Error when posted from Android. Android [CODE] Laravel 5.0 [CODE] This is what i should get (HttpRequester also retur... | android|arrays|post|httpurlconnection | 0 | 2016-04-26T08:49:51.693Z | 2,016 | 4 | 8 | 1 | 271 | 1 | 339 | 49 | 4 | 3 | true | false | false | false | false | false | zero |
36,859,889 | Unfortunately My Webview App has stopped in Marshmallow | <p>I am developing a WebView application in android. It works fine in android Lollipop or it's lower versions. But when I try to run the same application in Marshmallow it gives the error "Unfortunately stopped".</p>
<p>Note:I have updated the question with my code. </p>
<p>This is my Manifest page.</p>
<pre><code>&... | I am developing a WebView application in android. It works fine in android Lollipop or it's lower versions. But when I try to run the same application in Marshmallow it gives the error "Unfortunately stopped". Note:I have updated the question with my code. This is my Manifest page. [CODE] This is build.gradle file [COD... | java|android|android-studio|webview|android-6.0-marshmallow | 0 | 2016-04-26T08:51:36.740Z | 2,016 | 4 | 8 | 1 | 2,354 | 1 | 355 | 55 | 5 | 3 | true | false | false | false | false | false | zero |
36,860,019 | Can't pass Android custom meta-data in Titanium app | <p>I have a requirement where I need to add custom meta-data to an Android app for it to be run on a device.</p>
<p>I created the following file: <code>platform/android/AndroidManifest.xml</code></p>
<p><code>
<?xml version="1.0" encoding="UTF-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/... | I have a requirement where I need to add custom meta-data to an Android app for it to be run on a device. I created the following file: platform/android/AndroidManifest.xml <?xml version="1.0" encoding="UTF-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.bizname.androidtest"> <app... | javascript|android|xml|appcelerator|appcelerator-titanium | 0 | 2016-04-26T08:56:47.477Z | 2,016 | 4 | 8 | 1 | 140 | 1 | 815 | 51 | 5 | 0 | false | false | false | false | false | false | zero |
36,860,021 | Gradle build: Execution failed for task ':app:lint' | <p>I'm using Android Studio 2.0 and I was trying to running my program when something strange happened. I ran the build command of the gradle and I got this error:</p>
<pre><code>FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lint'.
> Lint found errors in the project; a... | I'm using Android Studio 2.0 and I was trying to running my program when something strange happened. I ran the build command of the gradle and I got this error: [CODE] And so... What the hell is that? I'm supposed to do to solve this problem adding the code to the gradle.build, but the question is: why I got this error... | android|android-studio|gradle|android-gradle-plugin|android-studio-2.0 | 52 | 2016-04-26T08:56:53.477Z | 2,016 | 4 | 8 | 1 | 76,043 | 11 | 350 | 51 | 5 | 1 | true | false | true | true | true | false | high |
36,860,208 | Android getSimOperator() crashes on missing permission | <p>When running the following code:</p>
<pre><code>try {
TelephonyManager telephonyManager = (TelephonyManager) MainApplication.getAppContext()
.getSystemService(Context.TELEPHONY_SERVICE);
String simMCCMNC = telephonyManager.getSimOpera... | When running the following code: [CODE] The app crashes with the following log: Non-fatal Exception: java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10076 nor current process has android.permission.READ_PHONE_STATE. at android.os.Parcel.readException(Parcel.java:1546) at android.os.Parcel.readExcep... | android|android-permissions | 6 | 2016-04-26T09:03:57.067Z | 2,016 | 4 | 9 | 1 | 1,402 | 2 | 2,123 | 54 | 2 | 1 | true | false | false | false | false | false | medium |
36,860,249 | Fab gets focus only sometimes | <p>I have a problem testing the focusability of my App with D-pad. Here there are two screenshots of my App:</p>
<p><a href="https://i.stack.imgur.com/RC9kU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RC9kU.png" alt="enter image description here"></a>
<a href="https://i.stack.imgur.com/6v4KM.png... | I have a problem testing the focusability of my App with D-pad. Here there are two screenshots of my App: In the picture of the left side, the fab is "outside(or below)" the list and after the last element it gets the focus when navigating down, so everything is ok in this case. The problem comes with the image of the ... | android|d-pad | 1 | 2016-04-26T09:05:47.130Z | 2,016 | 4 | 9 | 1 | 584 | 1 | 870 | 29 | 2 | 2 | true | false | false | false | false | false | low |
36,860,413 | SQLite database and ListView : NullPointerExeption | <p>I am developing a simple registration page. Data will be stored in <code>SQLite</code> on clicking save button. There is another button Show to show the <code>SQLite</code> data in a <code>ListView</code>. Here are my all java files.</p>
<p><strong>MainActivity.java</strong></p>
<pre><code>public class MainActivit... | I am developing a simple registration page. Data will be stored in SQLite on clicking save button. There is another button Show to show the SQLite data in a ListView . Here are my all java files. MainActivity.java [CODE] ListPage.java [CODE] DatabaseHelper.java [CODE] CustomAdapter.java [CODE] On clicking Show button I... | android|sqlite|android-arrayadapter | 1 | 2016-04-26T09:12:20.787Z | 2,016 | 4 | 9 | 1 | 72 | 2 | 390 | 50 | 3 | 5 | true | false | false | false | false | false | low |
36,860,449 | Android how to add a switch widget in Actionbar overflow? | <p>I need to add switch widget in my actionbar menu. The switch widget is appearing properly in the actionbar. But it is not visible in the action bar overflow. Could someone please help me to find out a solution?</p>
<p>Here is my menu.xml</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<menu xmlns:an... | I need to add switch widget in my actionbar menu. The switch widget is appearing properly in the actionbar. But it is not visible in the action bar overflow. Could someone please help me to find out a solution? Here is my menu.xml [CODE] Here is my onCreateOptionsMenu.. [CODE] | android|android-studio | 0 | 2016-04-26T09:13:58.323Z | 2,016 | 4 | 9 | 1 | 619 | 0 | 277 | 57 | 2 | 2 | true | true | false | false | false | false | zero |
36,860,696 | Android studio git using private key | <p>A have an address of git repository.<br>
Also I have a private key in open-ssh format.<br><br>
Is it possible for git in Android Studio to use it?<br>
I tried to search some info, but no luck at this time.<br><br>
Thanks for any useful information!</p>
<p><strong>Edit.</strong> My steps:<br>
1. I put my private key... | A have an address of git repository. Also I have a private key in open-ssh format. Is it possible for git in Android Studio to use it? I tried to search some info, but no luck at this time. Thanks for any useful information! Edit. My steps: 1. I put my private key in .ssh folder (Users/user). 2. In Android studio I run... | git|android-studio|ssh|private-key | 14 | 2016-04-26T09:24:33.683Z | 2,016 | 4 | 9 | 1 | 45,231 | 5 | 692 | 36 | 4 | 0 | false | false | true | true | true | false | medium |
36,860,742 | How to get text in EditText with ListView and adapter | <p>I am having problem in getting text from EditText in the listview adapter. For example, when I click "9", it doesn't give me 9. Instead, I always get 3. I am unable to figure the reason behind this. Please inform me where I am going wrong.</p>
<p>This is my code for your perusal. Thank you in advance!</p>
<pre><co... | I am having problem in getting text from EditText in the listview adapter. For example, when I click "9", it doesn't give me 9. Instead, I always get 3. I am unable to figure the reason behind this. Please inform me where I am going wrong. This is my code for your perusal. Thank you in advance! [CODE] | android|listview|android-edittext|listadapter | 2 | 2016-04-26T09:26:59.927Z | 2,016 | 4 | 9 | 1 | 2,468 | 3 | 302 | 53 | 4 | 1 | true | false | false | false | false | false | low |
36,860,751 | Set the time of time picker dialogue to the selected time | <p>I have a time picker dialogue in my settings screen. When user clicks on the time a time picker dialogue appears and user select the time. But when user clicks on the time picker again the time picker dialogue is showing the current time instead of the selected time.
Here is what i have done so far.</p>
<pre><code>... | I have a time picker dialogue in my settings screen. When user clicks on the time a time picker dialogue appears and user select the time. But when user clicks on the time picker again the time picker dialogue is showing the current time instead of the selected time. Here is what i have done so far. [CODE] Can someone ... | android | 0 | 2016-04-26T09:27:17.937Z | 2,016 | 4 | 9 | 1 | 779 | 1 | 411 | 57 | 1 | 1 | true | false | false | false | false | false | zero |
36,860,756 | Telerik Listview for android swipe clossing automatically | <pre><code>public class SwipeExecuteListener : Java.Lang.Object, SwipeExecuteBehavior.ISwipeExecuteListener
{
private ListViewAdapter listViewAdapter;
public SwipeExecuteListener(ListViewAdapter adapter)
{
listViewAdapter = adapter;
}
public void OnSwipeStarted(int position)
{
}
... | [CODE] I am working on listview example using telerik UI for android. but when am i swiping my control left/right its is not showing delete or edit buttons [CODE] this is i am using my listener class please tell me how can i resolve the issue. | android|listview|xamarin|telerik|xamarin.android | 0 | 2016-04-26T09:27:28.570Z | 2,016 | 4 | 9 | 1 | 117 | 1 | 243 | 57 | 5 | 2 | true | false | false | false | false | false | zero |
36,860,950 | Java API Mail Android | <p>I am trying to send an email to a user once they request one, I am using Java Mail API, and I am getting errors which I don't understand, can anyone help?</p>
<p>The code callas a AsyncTask class called RetrieveFeedTask, but when I try and execute the task. The catch find an error with something wrong with the doIn... | I am trying to send an email to a user once they request one, I am using Java Mail API, and I am getting errors which I don't understand, can anyone help? The code callas a AsyncTask class called RetrieveFeedTask, but when I try and execute the task. The catch find an error with something wrong with the doInBackground.... | java|android|email | 2 | 2016-04-26T09:35:34.553Z | 2,016 | 4 | 9 | 1 | 29 | 0 | 422 | 21 | 3 | 3 | true | true | false | false | false | false | low |
36,860,984 | android basic auth okhttpclient | <p>I am connecting to my rest api using retrofit and okHttp client. When I disable Basic authentication on Tomcat everything works flawlessly.
When Basic Auth is enabled on Tomcat I get 404 Page not found.
Here is my authentication and error output.</p>
<pre><code> okHttpClient.setAuthenticator(new Authenticator()... | I am connecting to my rest api using retrofit and okHttp client. When I disable Basic authentication on Tomcat everything works flawlessly. When Basic Auth is enabled on Tomcat I get 404 Page not found. Here is my authentication and error output. [CODE] Error log [CODE] | android|tomcat|retrofit|basic-authentication|okhttp | 2 | 2016-04-26T09:36:59.257Z | 2,016 | 4 | 9 | 1 | 896 | 1 | 270 | 31 | 5 | 2 | true | false | false | false | false | false | low |
36,861,227 | Starting on a new line doesn't work after adding hyperlink | <p>I've added a hyperlink to my layout, which is full of text. In my <code>xml</code> file, I have a lot of text with a link in it. Everytime I want to start on a new line, I add \n or \n\n to it, which used to work. Now that I added the hyperlink in my XML using <code><a href='https://www.rkz.nl'> </a></co... | I've added a hyperlink to my layout, which is full of text. In my xml file, I have a lot of text with a link in it. Everytime I want to start on a new line, I add \n or \n\n to it, which used to work. Now that I added the hyperlink in my XML using <a href='https://www.rkz.nl'> </a> , the enters are gone. Everything is ... | android|xml|hyperlink | 1 | 2016-04-26T09:47:04.800Z | 2,016 | 4 | 9 | 1 | 117 | 2 | 553 | 58 | 3 | 1 | true | false | false | false | false | false | low |
36,861,256 | ListView Out of Memory Exception | <p>Hello i'm developing an app. I'm using listview with customadapter to load images as well as text. Now when i scroll the listview the app crashes giving out of memory exception. I don't know what to do at this stage and how to handle this.Below i'm posting the code segment please go through it.</p>
<p>Near.class</p... | Hello i'm developing an app. I'm using listview with customadapter to load images as well as text. Now when i scroll the listview the app crashes giving out of memory exception. I don't know what to do at this stage and how to handle this.Below i'm posting the code segment please go through it. Near.class [CODE] Custom... | android|listview | 1 | 2016-04-26T09:48:05.137Z | 2,016 | 4 | 9 | 1 | 297 | 5 | 385 | 32 | 2 | 4 | true | false | false | false | false | false | low |
36,861,349 | How to continue an Android instrumentation test run after exception? | <p>Apparently an instrumentation test run is stopped when on exception occurs in the instrumented application:</p>
<blockquote>
<p>Test failed to run to completion. Reason: 'Instrumentation run failed due to 'Exception''. Check device logcat for details</p>
</blockquote>
<p>Is this the desired behavior or a misconf... | Apparently an instrumentation test run is stopped when on exception occurs in the instrumented application: Test failed to run to completion. Reason: 'Instrumentation run failed due to 'Exception''. Check device logcat for details Is this the desired behavior or a misconfiguration in a custom instrumentation runner? I'... | android|android-testing|cucumber-jvm | 17 | 2016-04-26T09:51:35.140Z | 2,016 | 4 | 9 | 1 | 5,292 | 3 | 872 | 68 | 3 | 0 | false | false | true | false | true | false | medium |
36,861,423 | Error while building webrtc native on ubuntu | <p>As per the steps given in <code>webrtc-blueprints</code> book. I was downloading the <code>WebRTC</code> code from the <code>repo</code> using following command -</p>
<pre><code>gclient config http://webrtc.googlecode.com/svn/trunk
</code></pre>
<p><strong>Command resulted into following error.</strong></p>
<pre>... | As per the steps given in webrtc-blueprints book. I was downloading the WebRTC code from the repo using following command - [CODE] Command resulted into following error. [CODE] | android|webrtc|ubuntu-15.04 | 1 | 2016-04-26T09:54:54.387Z | 2,016 | 4 | 9 | 1 | 134 | 0 | 176 | 44 | 3 | 2 | true | true | false | false | false | false | low |
36,861,446 | SVG image is not shown immediately on mobile screen | <p>I have the below <code>SVG</code> image</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLa... | I have the below SVG image [CODE] I want to display this SVG but when I run this code the SVG image not displayed on my mobile screen. when I touch on mobile screen 15 t0 20 times then it displays as expected. How can I fix this? Why is image getting late on mobile screen? [CODE] } | c#|android|xamarin|xamarin.android | 1 | 2016-04-26T09:55:51.283Z | 2,016 | 4 | 9 | 1 | 826 | 1 | 282 | 51 | 4 | 2 | true | false | false | false | false | false | low |
36,861,458 | How to show other Json objects in RecylerView on Android | <p>I want develop android application for one website. I read website posts from <code>json</code> and show its in <code>RecyclerView</code> every 10 posts.<br>
I can show title, description and thumbnail. but i want show <strong>medium</strong> from <strong>thumbnail_images</strong> instance of <strong>thumbnail</stro... | I want develop android application for one website. I read website posts from json and show its in RecyclerView every 10 posts. I can show title, description and thumbnail. but i want show medium from thumbnail_images instance of thumbnail . I don't know how to read images from medium ?! My Json Link : Link AsyncTaskCo... | android|json | 0 | 2016-04-26T09:56:13.733Z | 2,016 | 4 | 9 | 1 | 43 | 1 | 513 | 56 | 2 | 2 | true | false | false | false | false | false | zero |
36,861,557 | EditText focus not going after finishing activity | <p>In my form activity, I've 3 fields. After confirming the form to the server it finishes and go to the previous activity. But the problem , After finish the keyboard is still pop up and the previous activity has no input field.
Here is the layout file. </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
&l... | In my form activity, I've 3 fields. After confirming the form to the server it finishes and go to the previous activity. But the problem , After finish the keyboard is still pop up and the previous activity has no input field. Here is the layout file. [CODE] Here what actually happening. i also set the android:windowSo... | android | 0 | 2016-04-26T09:59:23.190Z | 2,016 | 4 | 9 | 1 | 192 | 4 | 462 | 49 | 1 | 1 | true | false | false | false | false | false | zero |
36,861,640 | How to map device co-ordinate system to world co-ordinate system in android | <p>I get the vector (Ax,Ay,Az) from the accelerometer. I know my phone co-ordinate system and world co-ordinate system matches when my phone is lying on table with top facing the north. But when i change the position of the phone the co-ordinate system is not same and needs a remap. For that purpose i need a rotation m... | I get the vector (Ax,Ay,Az) from the accelerometer. I know my phone co-ordinate system and world co-ordinate system matches when my phone is lying on table with top facing the north. But when i change the position of the phone the co-ordinate system is not same and needs a remap. For that purpose i need a rotation matr... | android|android-sensors | 1 | 2016-04-26T10:02:44.250Z | 2,016 | 4 | 10 | 1 | 110 | 1 | 838 | 75 | 2 | 0 | false | false | false | false | false | false | low |
36,861,660 | How to keep same image size on different devices in android | <p>I use a <code>imageView</code> to show an image on activity . This image size shouldn't change according to the device screen . But This is not working . I want use the actual size of the image for every device. Below is what I have tried .</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLay... | I use a imageView to show an image on activity . This image size shouldn't change according to the device screen . But This is not working . I want use the actual size of the image for every device. Below is what I have tried . [CODE] How could I use same image size without scaling on each device screen ? Have any idea... | android|android-imageview|image-scaling | 0 | 2016-04-26T10:03:19.057Z | 2,016 | 4 | 10 | 1 | 1,977 | 7 | 333 | 59 | 3 | 1 | true | false | false | false | false | false | zero |
36,861,676 | Need a Android Studio/OSMDroid Guide for a school project | <p>I'm currently developping an App in a school/exam purpose.
I'm using Android Studio 2.0 and an OPO with 5.1.1 on it and a Nexus 7 with 6.0.1 !</p>
<p>The goal is to display the location of the device on a map, and to trace a route passing by waypoints (cultural buildings).</p>
<p>I have no problem displaying the m... | I'm currently developping an App in a school/exam purpose. I'm using Android Studio 2.0 and an OPO with 5.1.1 on it and a Nexus 7 with 6.0.1 ! The goal is to display the location of the device on a map, and to trace a route passing by waypoints (cultural buildings). I have no problem displaying the map (I'm able to cen... | android|gps|location|maps|osmdroid | 2 | 2016-04-26T10:04:12.327Z | 2,016 | 4 | 10 | 1 | 260 | 1 | 515 | 57 | 5 | 2 | true | false | false | false | false | false | low |
36,861,747 | Android working with URIs | <p>I am writing an app that can upload files. The files are either received by using <code>StartActivityForResult</code> or received via share menu from other apps.</p>
<p>I have run into some problems with receiving files via share menu, specifically determining the file info. Before an upload i need to know the name... | I am writing an app that can upload files. The files are either received by using StartActivityForResult or received via share menu from other apps. I have run into some problems with receiving files via share menu, specifically determining the file info. Before an upload i need to know the name and size of the file. W... | android|file|upload|uri | 0 | 2016-04-26T10:06:52.070Z | 2,016 | 4 | 10 | 1 | 117 | 1 | 764 | 25 | 4 | 1 | true | false | false | false | false | false | zero |
36,861,827 | Android Custom Bar: draw over status bar | <p><a href="http://i.stack.imgur.com/MTBp7.png" rel="nofollow">Picture link</a></p>
<p><a href="https://drive.google.com/open?id=0BzztGXNdAHKNOWdZRHQwNEN0aEU" rel="nofollow">Video link</a></p>
<hr>
<p><strong>Question:</strong><br>
When i user my custom view in the activity.and then i change translationY of custom v... | Picture link Video link Question: When i user my custom view in the activity.and then i change translationY of custom view.And then, the custom view draw over the status bar. When i delete the code, canvas.clipRect(0, 0, getWidth(), getHeight(), Region.Op.REPLACE); in CustomView.java, it's will be ok. But in the real s... | android|custom-view|android-statusbar | 1 | 2016-04-26T10:10:18.850Z | 2,016 | 4 | 10 | 1 | 642 | 1 | 492 | 40 | 3 | 3 | true | false | false | false | false | false | low |
36,861,868 | How to loop large bitmaps smootly in Android | <p>I am creating an Android Application for TV & Tablet devices which shows kind of advertisements in form of images. </p>
<p>I'm using following <a href="http://developer.android.com/training/displaying-bitmaps/load-bitmap.html" rel="nofollow">method to load</a> <code>Bitmaps</code> which I had stored in cache us... | I am creating an Android Application for TV & Tablet devices which shows kind of advertisements in form of images. I'm using following method to load Bitmaps which I had stored in cache using Universal-image-loader library: [CODE] This is how loading Bitmap : [CODE] My problem is app image rotation isn't smooth and ima... | android|memory-management|bitmap|universal-image-loader | 1 | 2016-04-26T10:12:28.847Z | 2,016 | 4 | 10 | 1 | 376 | 2 | 492 | 44 | 4 | 3 | true | false | false | false | false | false | low |
36,861,974 | Array index out of bounds in Android Studio | <p>I am trying to create an app that takes values from a database created using SQLite and plotted using AndroidPlot. The portion that is creating trouble in the MainActivity.java is as follows:</p>
<pre><code>protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
DatabaseAcce... | I am trying to create an app that takes values from a database created using SQLite and plotted using AndroidPlot. The portion that is creating trouble in the MainActivity.java is as follows: [CODE] There is no error while building the code. However, when run on the emulator, it states "java.lang.ArrayIndexOutOfBoundsE... | java|android-studio|android-emulator|android-sqlite | -1 | 2016-04-26T10:16:30.503Z | 2,016 | 4 | 10 | 1 | 2,012 | 1 | 467 | 43 | 4 | 2 | true | false | false | false | false | true | negative |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.