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,928,952 | How to force an Android camera to display in portrait mode, or for me to do the rotation instead | <p>I'm new to posting so please be nice! I have looked at practically all the other questions related to this and tried most, but am completely frustrated. I simply want to have my Android phone display the camera in portrait mode, not landscape. I am simply modifying the ImageManipulations sample that is provided w... | I'm new to posting so please be nice! I have looked at practically all the other questions related to this and tried most, but am completely frustrated. I simply want to have my Android phone display the camera in portrait mode, not landscape. I am simply modifying the ImageManipulations sample that is provided with op... | java|android|opencv|camera|image-rotation | 4 | 2016-04-29T03:15:25.993Z | 2,016 | 4 | 3 | 4 | 1,998 | 1 | 1,996 | 96 | 5 | 5 | true | false | false | false | false | false | low |
36,929,162 | Create an XML from an Image | <p>Hi there I have the following image as a background: </p>
<p><a href="https://i.stack.imgur.com/sE9l3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sE9l3.png" alt="Background Image"></a> and I would like to know if it possible to create an xml file to replace it, so the idea would be to use a g... | Hi there I have the following image as a background: and I would like to know if it possible to create an xml file to replace it, so the idea would be to use a gradient from some position to the top and the rest just a solid colour (black)... is that possible?? Thanks in advance! EDIT: First of all thanks for your help... | android|xml|mask | 0 | 2016-04-29T03:42:42.260Z | 2,016 | 4 | 3 | 4 | 4,206 | 2 | 760 | 27 | 3 | 1 | true | false | true | false | false | false | zero |
36,929,214 | BroadcastReceiver registered in a activity never get called | <p>I have 2 Activity one is sending a broadcust and another receiving. But receiver never get called -</p>
<p><strong>MainActivity</strong></p>
<pre><code>public class MainActivity extends AppCompatActivity {
public static String BROADCAST_ACTION = "com.aj.SHOWTOAST";
@Override
protected void onCreate(Bundle saved... | I have 2 Activity one is sending a broadcust and another receiving. But receiver never get called - MainActivity [CODE] ToastDisplay [CODE] Manifest [CODE] | android|broadcastreceiver | -2 | 2016-04-29T03:49:02.150Z | 2,016 | 4 | 3 | 4 | 1,594 | 3 | 155 | 59 | 2 | 3 | true | false | false | false | false | true | negative |
36,929,487 | Error on configureWiFi method alljoyn framework | <p>I see this error when passing the target and onboardee wifinetwork configurations to the onboarding sdk.</p>
<p>This is the piece of code where the error occurs.</p>
<pre><code> ConfigureWifiMode res1 = this.onboardingClient.configureWiFi(this.onboardingConfiguration.getTarget().getSSID(), passForConfigureN... | I see this error when passing the target and onboardee wifinetwork configurations to the onboarding sdk. This is the piece of code where the error occurs. [CODE] Here is my Logcat: [CODE] Any help will be great! Thanks! | android|alljoyn | 0 | 2016-04-29T04:21:35.783Z | 2,016 | 4 | 4 | 4 | 124 | 1 | 219 | 47 | 2 | 2 | true | false | false | false | false | false | zero |
36,929,565 | RxJava/Android: Construct an Observable as the combination of original item and transformed item | <p>Here is the example:</p>
<pre><code>Student[] students = ...;
Subscriber<Course> subscriber = new Subscriber<Course>() {
@Override
public void onNext(Course course) {
Log.d(tag, course.getName());
}
...
};
Observable.from(students)
.flatMap(new Func1<Student, Observable<... | Here is the example: [CODE] It's easy to observe courses, but what if I want to print out the pair of student-course? Is that necessary to change Observable<Course> to Observable<Pair<Student, Course>> ? This method could be very tedious, because we could have multiple operators during transforming, but we don't want t... | android|rx-java|reactive-programming | 0 | 2016-04-29T04:28:55.630Z | 2,016 | 4 | 4 | 4 | 114 | 2 | 468 | 96 | 3 | 1 | true | false | false | false | false | false | zero |
36,929,573 | listview hide on orientation change android | <p>I am using custom list view inside fragment(From Api). on orientation change data is still in array list and also list view get notified but it hides when screen rotates.
here is the code:</p>
<pre><code>public class FragNotice extends Fragment implements View.OnClickListener {
ListAdapter listAdapter;
Lis... | I am using custom list view inside fragment(From Api). on orientation change data is still in array list and also list view get notified but it hides when screen rotates. here is the code: [CODE] | android|listview|fragment | 0 | 2016-04-29T04:30:20.177Z | 2,016 | 4 | 4 | 4 | 126 | 4 | 195 | 43 | 3 | 1 | true | false | false | false | false | false | zero |
36,929,603 | WebView GetHitTestResult() shows previous node when simulating mouse clicks | <p>I need to simulate clicking on nodes in HTML pages inside an Android WebView, then log which node was clicked. However, when I call <code>GetHitTestResult</code> from <code>OnTouchEvent</code> in my subclassed WebView, instead of showing the node that was just clicked on, it shows the node that had been clicked on j... | I need to simulate clicking on nodes in HTML pages inside an Android WebView, then log which node was clicked. However, when I call GetHitTestResult from OnTouchEvent in my subclassed WebView, instead of showing the node that was just clicked on, it shows the node that had been clicked on just before this click. (i.e.:... | android|xamarin.android|android-webview|motionevent | 2 | 2016-04-29T04:32:46.027Z | 2,016 | 4 | 4 | 4 | 234 | 0 | 1,494 | 75 | 4 | 2 | true | true | false | false | false | false | low |
36,929,626 | ToggleButton code in Android Studio unexpectedly crashes the App | <p>My project is a music player that has a ToggleButton for play/pause.</p>
<p>I tried to run a code in Android Studio, but it unexpectedly crashes the App. </p>
<p>I am trying to follow up some tutorials on the internet and YouTube guides, but nothing works so far.</p>
<p>Here is the code that I'm running in the Ma... | My project is a music player that has a ToggleButton for play/pause. I tried to run a code in Android Studio, but it unexpectedly crashes the App. I am trying to follow up some tutorials on the internet and YouTube guides, but nothing works so far. Here is the code that I'm running in the MainActivity: [CODE] | android-togglebutton | 1 | 2016-04-29T04:35:12.697Z | 2,016 | 4 | 4 | 4 | 278 | 1 | 310 | 64 | 1 | 1 | true | false | false | false | false | false | low |
36,929,723 | SQLite many to many join and group | <p>This is a very normal setup for many-to-many relational tables.</p>
<ol>
<li><code>product</code> list and <code>category</code> list.</li>
<li>Each <code>product</code> belongs to <code>(0,n)</code> <code>category</code>.</li>
<li>Each <code>category</code> contains <code>(0,n)</code> <code>product</code>.</li>
</... | This is a very normal setup for many-to-many relational tables. product list and category list. Each product belongs to (0,n) category . Each category contains (0,n) product . TABLES [CODE] PRODUCT table [CODE] CATEGORY table [CODE] PRODUCT_CATEGORY table [CODE] Question I would like to know how to query for product by... | android|sqlite|android-sqlite | 0 | 2016-04-29T04:43:56.323Z | 2,016 | 4 | 4 | 4 | 79 | 2 | 923 | 34 | 3 | 7 | true | false | false | false | false | false | zero |
36,929,742 | Should CardView always wrap a layout first? | <p>I have a cardview with only one textview.</p>
<pre><code><android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/card_view"
android:layout_width="match_parent"
android:layout_height="... | I have a cardview with only one textview. [CODE] Apparently the LinearLayout does nothing other than wrapping the TextView. However if I remove the LinearLayout, having the CardView wrap just the TextView, my entire TextView disappear. Is this not allowed? Is it possible to remove the LinearLayout? I want to reduce my ... | android|xml|android-layout|android-studio|android-cardview | 0 | 2016-04-29T04:45:20.613Z | 2,016 | 4 | 4 | 4 | 361 | 1 | 366 | 43 | 5 | 1 | true | false | false | false | false | false | zero |
36,929,909 | keep getting error Gradle Build failed with an exception : java.exe' finished with non-zero exit value 2 after adding library | <p>I keep getting below error when i add new library into gradle:</p>
<blockquote>
<p>Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
com.android.build.transform.api.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'comm... | I keep getting below error when i add new library into gradle: Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.transform.api.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\j... | java|android|android-gradle-plugin | 0 | 2016-04-29T05:02:00.990Z | 2,016 | 4 | 5 | 4 | 608 | 2 | 573 | 125 | 3 | 1 | true | false | false | false | false | false | zero |
36,929,954 | How to display Relative layout content from top of the screen | <p>I am having following layout in file mylayout.xml.</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@color/yellow"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_width="wrap_content"
android:layout_h... | I am having following layout in file mylayout.xml. [CODE] With this layout when i am doing setContentView(R.layout.mylayout) for my activity, which has transparent theme, my layout is getting displayed in the center of the screen. I want to change this layout positioning dynamically, so center(default) and bottom(by us... | android|android-layout|android-relativelayout | 0 | 2016-04-29T05:05:38.363Z | 2,016 | 4 | 5 | 4 | 929 | 3 | 501 | 61 | 3 | 2 | true | false | false | false | false | false | zero |
36,930,001 | Greet the user on startup using speech | <p>I want to greet the user with speech everytime they open the app.</p>
<p>But when i start the app, I don't hear anything.</p>
<p>Here's my code:</p>
<pre><code>public class MainActivity extends AppCompatActivity {
TextToSpeech textToSpeech;
@Override
protected void onCreate(Bundle savedInstanceState) {
sup... | I want to greet the user with speech everytime they open the app. But when i start the app, I don't hear anything. Here's my code: [CODE] | android|speech-recognition|text-to-speech|speech-to-text|speech | 0 | 2016-04-29T05:09:56.197Z | 2,016 | 4 | 5 | 4 | 70 | 1 | 137 | 38 | 5 | 1 | true | false | false | false | false | false | zero |
36,930,047 | How to make fragment layout inside activity? | <p>How to make activity and fragment layouts?</p>
<p>I have main activity layout, wich contains 4 fragments (they are staggered).
I write two of them. They are similar.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<GridLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="h... | How to make activity and fragment layouts? I have main activity layout, wich contains 4 fragments (they are staggered). I write two of them. They are similar. [CODE] So, i write code of fragment: [CODE] But, when i run app- it looks very bad: Image button looks very small. As i understand, width of ImageButton will be ... | android|android-layout|android-fragments | -3 | 2016-04-29T05:13:16.937Z | 2,016 | 4 | 5 | 4 | 680 | 2 | 500 | 44 | 3 | 2 | true | false | false | false | false | true | negative |
36,930,122 | Android StackView - get top element from stack | <p>I have a StackView widget in my App. Basically I created this widget using the tutorial at <a href="http://www.broculos.net/2011/12/android-101-how-to-create-stackview.html#.VyLvpfl95D9" rel="nofollow">How to create a StackView widget</a> and modified it a bit for my needs.</p>
<p>Now I want to get the top element ... | I have a StackView widget in my App. Basically I created this widget using the tutorial at How to create a StackView widget and modified it a bit for my needs. Now I want to get the top element for calling a function with this element as soon as the user changes the top element. The user can "swipe" down or swipe up, b... | android|android-widget|stackview | 1 | 2016-04-29T05:20:07.987Z | 2,016 | 4 | 5 | 4 | 151 | 0 | 877 | 46 | 3 | 1 | true | true | false | false | false | false | low |
36,930,124 | Volley OutOfMemoryError even after using single instance | <p>I make repeated requests using a <code>Timer</code>. I get <code>OutOfMemoryError</code> after a while. I extend Application class to get a single instance. But I still get the error and app crashes. It works again after I clear the cache.</p>
<p>I programmatically clear the cache every few seconds, but when I do t... | I make repeated requests using a Timer . I get OutOfMemoryError after a while. I extend Application class to get a single instance. But I still get the error and app crashes. It works again after I clear the cache. I programmatically clear the cache every few seconds, but when I do that I get NegativeArraySizeException... | android|android-volley | 0 | 2016-04-29T05:20:14.397Z | 2,016 | 4 | 5 | 4 | 74 | 1 | 403 | 56 | 2 | 2 | true | false | false | false | false | false | zero |
36,930,141 | How to extract and display field in android | <p>Please fins Main.java code below</p>
<pre><code>public class Main extends Activity implements OnClickListener {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
findViewById(R.id.my_button).setOnClickListener(this);
}
@Overri... | Please fins Main.java code below [CODE] I am getting the JSON data from REST API, it is as shown below [CODE] How to extract only Nama of Host that is "u1" and display in text box in android. I am new to it please help | javascript|java|android|node.js|rest | -2 | 2016-04-29T05:21:49.450Z | 2,016 | 4 | 5 | 4 | 54 | 1 | 218 | 43 | 5 | 2 | true | false | false | false | false | true | negative |
36,930,188 | Refresh ArrayList to show new Data into RecyclerView using Click on Spinner Item | <p>Clicking on <code>Spinner</code> Item adding new data into <code>RecyclerView</code> without removing old ones.</p>
<p>Like, I have <code>two</code> Items in a <strong>Spinner</strong> : <code>Appliances</code> and <code>Accessories</code>.</p>
<p>By default, I am showing <code>Appliances</code> data into <strong>... | Clicking on Spinner Item adding new data into RecyclerView without removing old ones. Like, I have two Items in a Spinner : Appliances and Accessories . By default, I am showing Appliances data into RecyclerView , but whenever I do tap on Accessories - It is showing Accessories data into RecyclerView , but below Applia... | java|android|arraylist|android-recyclerview|spinner | 4 | 2016-04-29T05:26:18.637Z | 2,016 | 4 | 5 | 4 | 992 | 2 | 450 | 80 | 5 | 2 | true | false | false | false | false | false | low |
36,930,200 | Could not find class 'android.app.Application$OnProvideAssistDataListener' | <p>I am using android studio 2.1. When I run the app i am getting this type of errors. </p>
<pre><code>04-29 10:47:50.870 20286-20286/com.demo.a_fatal E/Trace: error opening trace file: No such file or directory (2)
04-29 10:47:50.910 20286-20286/com.demo.a_fatal E/InstantRun: Could not find slices in APK; aborting.
0... | I am using android studio 2.1. When I run the app i am getting this type of errors. [CODE] How can i solved this error? | android|android-activity|dialog | 0 | 2016-04-29T05:27:23.810Z | 2,016 | 4 | 5 | 4 | 7,072 | 2 | 119 | 74 | 3 | 1 | true | false | true | false | false | false | zero |
36,930,305 | How do I return the ListView item I clicked on using an MvxListView? | <p>I have an MvxListView that properly works and displays the information I need. I even have my ItemClick commands working properly. What I can't figure out right now is how to get the view cell that the user clicked on. I would like to expand the view cell that the user clicked on. Here are some code examples of what... | I have an MvxListView that properly works and displays the information I need. I even have my ItemClick commands working properly. What I can't figure out right now is how to get the view cell that the user clicked on. I would like to expand the view cell that the user clicked on. Here are some code examples of what I'... | android|listview|xamarin|mvvmcross | 0 | 2016-04-29T05:34:57.467Z | 2,016 | 4 | 5 | 4 | 228 | 3 | 614 | 68 | 4 | 4 | true | false | false | false | false | false | zero |
36,930,333 | How send String Array in MultipartEntity | <p>I want to send String[] with file path in Multipart-Entity I got that <a href="https://stackoverflow.com/questions/2017414/post-multipart-request-with-android-sdk">link</a> (My code is too big to post so i post reference link) in which @rohit mandiwal code works for for single image without string[], but now i have ... | I want to send String[] with file path in Multipart-Entity I got that link (My code is too big to post so i post reference link) in which @rohit mandiwal code works for for single image without string[], but now i have send multiple images with string[] My Server side code for that service is something like that [CODE]... | android|web-services|multipartform-data | 1 | 2016-04-29T05:36:50.917Z | 2,016 | 4 | 5 | 4 | 1,160 | 1 | 450 | 40 | 3 | 2 | true | false | false | false | false | false | low |
36,930,719 | DrawerLayout must be measured with MeasureSpec.EXACTLY while using scroll view | <p>I am getting this error <code>java.lang.IllegalArgumentException: DrawerLayout must be measured with MeasureSpec.EXACTLY.</code></p>
<p>I need to ask why i need to give a specific width and height while using scroll view?
This is my xml :</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<ScrollView ... | I am getting this error java.lang.IllegalArgumentException: DrawerLayout must be measured with MeasureSpec.EXACTLY. I need to ask why i need to give a specific width and height while using scroll view? This is my xml : [CODE] I actually need a scroll view. Its working if i give a specific width and height but i donot w... | android|listview|navigation-drawer | 0 | 2016-04-29T06:06:34.490Z | 2,016 | 4 | 6 | 4 | 461 | 0 | 392 | 78 | 3 | 1 | true | true | false | false | false | false | zero |
36,930,772 | Why RecyclerView Adapter doesn't instantly initialize its items on manual scroll? | <p>I am using 2 RecyclerViews inside a Dialogue. One of the RecyclerView further uses a nested list inside it. Everything's alright till now (no height issues).</p>
<p>However, from the other RecyclerView, I drag an image/view and inside another RecyclerView i wish to drop it. </p>
<p>This functionality works fine bu... | I am using 2 RecyclerViews inside a Dialogue. One of the RecyclerView further uses a nested list inside it. Everything's alright till now (no height issues). However, from the other RecyclerView, I drag an image/view and inside another RecyclerView i wish to drop it. This functionality works fine but problem occurs her... | android|drag-and-drop|android-recyclerview | 1 | 2016-04-29T06:10:32.747Z | 2,016 | 4 | 6 | 4 | 684 | 0 | 1,818 | 81 | 3 | 1 | true | true | false | false | false | false | low |
36,930,778 | I don't want my app to appear on the chooser dialog when opening URL's | <p>I have an action button on my action bar that opens a fixed url when clicked, it works fine, but I dont want my own app to appear on the chooser dialog "complete action using", it should just appears the phone default browsers (like Chrome or Mozilla), actually It appears Chrome and my app as options to open the ur... | I have an action button on my action bar that opens a fixed url when clicked, it works fine, but I dont want my own app to appear on the chooser dialog "complete action using", it should just appears the phone default browsers (like Chrome or Mozilla), actually It appears Chrome and my app as options to open the url. I... | java|android|xml | 4 | 2016-04-29T06:10:51.183Z | 2,016 | 4 | 6 | 4 | 1,889 | 1 | 496 | 70 | 3 | 2 | true | false | false | false | false | false | low |
36,930,891 | player.SetDataSource media play both of tracks at the same time? | <pre><code>protected override void OnCreate (Bundle savedInstanceState)
{
base.OnCreate (savedInstanceState);
player = new MediaPlayer ();
//Next item event
imgNext.Click+= delegate(object sender, EventArgs e) {
NextTracks(mPosition);
};
</code></pre>
<p>}</p>
<p>public... | [CODE] } public void StartMedia(string url_string) { [CODE] Media play both old track and new track at the same time. How to set it as null. Updated add code | xamarin|xamarin.android | 0 | 2016-04-29T06:18:45.680Z | 2,016 | 4 | 6 | 4 | 46 | 1 | 157 | 64 | 2 | 2 | true | false | false | false | false | false | zero |
36,931,126 | Android volley error request code 415 with Rest API? | <h1>Server side:</h1>
<pre><code> import flask
import flask.ext.sqlalchemy
import flask.ext.restless
app = flask.Flask(__name__)
app.config['DEBUG'] = True
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db'
SQLALCHEMY_TRACK_MODIFICATIONS=True
db = flask.ext.sqlalchemy... | Server side: [CODE] Client Side : Using volley post [CODE] Output from log: 04-29 11:42:24.556 1890-1946/? I/Icing: Indexing done F3642025687382E430F3465743F12480D56AAC66 04-29 11:43:32.123 3147-3196/? E/Volley: [157] BasicNetwork. performRequest: Unexpected response code 415 for http://IP:5000/api/person 04-29 11:43:3... | android|android-volley | 1 | 2016-04-29T06:33:27.697Z | 2,016 | 4 | 6 | 4 | 9,184 | 3 | 475 | 52 | 2 | 2 | true | false | true | false | false | false | low |
36,931,207 | CardView inserts dark line at bottom | <p>I'm using <code>com.android.support:cardview-v7:23.3.0.</code></p>
<p>On <strong>API < 21</strong> my CardView insists on placing a dark line at the bottom as shown here</p>
<p><a href="https://i.stack.imgur.com/qx4ku.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qx4ku.jpg" alt="enter image... | I'm using com.android.support:cardview-v7:23.3.0. On API < 21 my CardView insists on placing a dark line at the bottom as shown here This is my layout. [CODE] I've tried various things to remove it. If I delete the line containing "card_view:cardCornerRadius="30dp"" here's what I see: I see exactly the same as above if... | android|android-studio|android-appcompat|android-library|android-cardview | 6 | 2016-04-29T06:39:10.910Z | 2,016 | 4 | 6 | 4 | 1,886 | 1 | 811 | 36 | 5 | 1 | true | false | false | false | false | false | medium |
36,931,226 | android Unable to get all editext values using in listview inside custom dialog | <p>I have one <code>listview</code> inside the Custom Dialog. In that list i have one Text field and one <code>Edittext</code> for each row. I am using <code>editTextWatcher</code> for handling all <code>edittext</code> values on exact position. Up to this working fine. I have one save button on that dialog under the <... | I have one listview inside the Custom Dialog. In that list i have one Text field and one Edittext for each row. I am using editTextWatcher for handling all edittext values on exact position. Up to this working fine. I have one save button on that dialog under the listView . After click on save i want to post the all ed... | java|android|listview|dialog|custom-adapter | 3 | 2016-04-29T06:40:15.863Z | 2,016 | 4 | 6 | 4 | 247 | 2 | 490 | 79 | 5 | 3 | true | false | false | false | false | false | low |
36,931,324 | android Setting style to programmatically created spinner | <p>I have a spinner which is created programmatically like this:</p>
<pre><code>spinnerLogger = new Spinner(context);
spinnerLogger.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));
SpinnerAdapter spinnerAdapter = new ArrayAdapter<>(... | I have a spinner which is created programmatically like this: [CODE] in my code I also use xml created spinners which use a style to make sure the user understands they are spinners: [CODE] I want to apply the Widget.AppCompat.Spinner.Underlined style to the programmatically created spinner but can't seem to find how I... | android|xml|spinner | 0 | 2016-04-29T06:46:43.163Z | 2,016 | 4 | 6 | 4 | 1,168 | 1 | 594 | 57 | 3 | 4 | true | false | false | false | false | false | zero |
36,931,339 | How can I parse the JSON response using retrofit | <p>I have to parse two things JSON array and JSON element. How to parse the JSON element using <code>retrofit</code>. </p>
<p>JSON Responce Example:</p>
<pre><code>{
"trip_id": "trip101",
"itinerary": [
{
"day": 1,
"name": "Arrive Srinagar 5200ft"
},
{
"day": 2,
"name": "Procee... | I have to parse two things JSON array and JSON element. How to parse the JSON element using retrofit . JSON Responce Example: [CODE] Here is my pojo class: [CODE] Another class: [CODE] Adapter: [CODE] MainActivity: [CODE] How can I parse the JSON response using this code ? | android|json|retrofit | -5 | 2016-04-29T06:47:19.827Z | 2,016 | 4 | 6 | 4 | 338 | 1 | 273 | 48 | 3 | 5 | true | false | false | false | false | true | negative |
36,931,382 | Delete SQLite row by using floating context menu | <p>i just made an application with SQLite database. I want an option that when user holds on specific item, he gets and option to delete it from a listView and database. I should use floating context menu, but i dont know how to. Maybe someone could give me directions please.</p>
<p><strong>DBAdapter.java</strong></p>... | i just made an application with SQLite database. I want an option that when user holds on specific item, he gets and option to delete it from a listView and database. I should use floating context menu, but i dont know how to. Maybe someone could give me directions please. DBAdapter.java [CODE] MainActivity.java [CODE] | android|sqlite|listview|contextmenu | 0 | 2016-04-29T06:49:31.103Z | 2,016 | 4 | 6 | 4 | 308 | 1 | 320 | 48 | 4 | 2 | true | false | false | false | false | false | zero |
36,931,448 | LatLang through Json NullPointer | <p>i received LatLang through Json but now i want to show then on Maps in Postexecute method this is my code</p>
<pre><code> ServiceHandler serviceClient = new ServiceHandler();
Log.d("url: ", "> " + URL_ITEMS);
String json = serviceClient.makeServiceCall(URL_ITEMS, ServiceHandler.GET);
// p... | i received LatLang through Json but now i want to show then on Maps in Postexecute method this is my code [CODE] so how can i show markers on the map i receive all lat and lang in log but its show nullpointer in logcat dfdfd | android|json|google-maps | 0 | 2016-04-29T06:52:40.397Z | 2,016 | 4 | 6 | 4 | 44 | 2 | 224 | 32 | 3 | 1 | true | false | false | false | false | false | zero |
36,931,473 | I used third party library for slider image, but for offline mode images are displayed in image sliderview | <p>I used third party library for sliding images, but for offline storage i used SQLite whole JSON data sent into SQLite.IF sqlite there is only image url when internet is not available that time images cannot be display in imageslider, but all images are displayed in imageslider.i don't know only url
in SQLite ... | I used third party library for sliding images, but for offline storage i used SQLite whole JSON data sent into SQLite.IF sqlite there is only image url when internet is not available that time images cannot be display in imageslider, but all images are displayed in imageslider.i don't know only url in SQLite how it is ... | android|android-layout|android-fragments|android-studio|android-imageview | 0 | 2016-04-29T06:53:55.600Z | 2,016 | 4 | 6 | 4 | 345 | 1 | 586 | 106 | 5 | 1 | true | false | false | false | false | false | zero |
36,931,519 | Inflating LinearLayout in a LinearLayout with navigation drawer issue | <p>I am trying to inflate a LinearLayout inside a LinearLayout. But I am not able to see the new linearlayout (with navigation drawer) on the screen. Kindly advice
By any chance is the listview inside my LinearLayout a cause of issue?</p>
<p><strong>activity_feed.xml</strong></p>
<pre><code><android.support.v4.wi... | I am trying to inflate a LinearLayout inside a LinearLayout. But I am not able to see the new linearlayout (with navigation drawer) on the screen. Kindly advice By any chance is the listview inside my LinearLayout a cause of issue? activity_feed.xml [CODE] fragment_submit_post.xml [CODE] Below is the java code that I h... | android|android-linearlayout|layout-inflater | 0 | 2016-04-29T06:56:12.080Z | 2,016 | 4 | 6 | 4 | 136 | 0 | 523 | 69 | 3 | 3 | true | true | false | false | false | false | zero |
36,931,717 | Using YouTube Data API v3 to get YouTube title/views/thumbnail | <p>I'm new to the whole YouTube Data API v3 in android. So far, I'm using AsyncTask<code>HttpURLConnection</code> and <code>BufferedReader</code> to build a string response from API and then parsing it to JSON Object. I've read that there's a library that I can use instead of this, but I found no android examples of u... | I'm new to the whole YouTube Data API v3 in android. So far, I'm using AsyncTask HttpURLConnection and BufferedReader to build a string response from API and then parsing it to JSON Object. I've read that there's a library that I can use instead of this, but I found no android examples of using it. Here's my code so fa... | android|android-youtube-api|youtube-data-api | 0 | 2016-04-29T07:05:46.757Z | 2,016 | 4 | 7 | 4 | 361 | 0 | 329 | 62 | 3 | 1 | true | true | false | false | false | false | zero |
36,931,839 | I can't read my JSON in my application | <p>Actually i want to make a MCQ for a medical application in Android ! So i want to get question and my possible choice from my database but i have a problem when i try to get my question witch him choice. My error is showed by the JSONException and i don't know why :(</p>
<p>I check my JSON with jsonlint.com so i th... | Actually i want to make a MCQ for a medical application in Android ! So i want to get question and my possible choice from my database but i have a problem when i try to get my question witch him choice. My error is showed by the JSONException and i don't know why :( I check my JSON with jsonlint.com so i think it's ok... | java|android|json | 0 | 2016-04-29T07:11:58.107Z | 2,016 | 4 | 7 | 4 | 89 | 4 | 436 | 38 | 3 | 2 | true | false | false | false | false | false | zero |
36,931,965 | How to run a timer in the background ? | <p>I have code for a timer , but if i change fragment the timer was reset to 00:00 i want that timer still count after i click stop or pause or that mean this timer still count in the background
how to do it ?
this is my code, </p>
<pre><code>public class TimerFragment extends BaseFragment {
private Button start... | I have code for a timer , but if i change fragment the timer was reset to 00:00 i want that timer still count after i click stop or pause or that mean this timer still count in the background how to do it ? this is my code, [CODE] thank you anyway | android|android-studio | 3 | 2016-04-29T07:18:11.800Z | 2,016 | 4 | 7 | 4 | 11,126 | 1 | 247 | 38 | 2 | 1 | true | false | true | false | false | false | low |
36,931,989 | A simple case of date logic. Calculate intervals | <p>I am having issues coming up with the right way to calculate an accurate value. Here is the problem. I have a resource that can be priced weekly, daily and hourly.</p>
<p>Lets assume it cost £5 per hour, £20 per day, and £150 a week.</p>
<p>What I want to do is calculate the cost to book the resource so if someone... | I am having issues coming up with the right way to calculate an accurate value. Here is the problem. I have a resource that can be priced weekly, daily and hourly. Lets assume it cost £5 per hour, £20 per day, and £150 a week. What I want to do is calculate the cost to book the resource so if someone made a booking for... | java|android|datetime|jodatime | 0 | 2016-04-29T07:19:20.287Z | 2,016 | 4 | 7 | 4 | 56 | 1 | 578 | 48 | 4 | 1 | true | false | false | false | false | false | zero |
36,932,076 | Two ListView in activity _main.xml . I am not getting both same at a same time | <p>I have activity_main.xml in app. which consist of two listview. one is responsible for json data view as a list with customlist adapter another one is for displaying content of side menu .
Via one listview i am getting json data but not getting side menu content by second listview if i have declared in activity_main... | I have activity_main.xml in app. which consist of two listview. one is responsible for json data view as a list with customlist adapter another one is for displaying content of side menu . Via one listview i am getting json data but not getting side menu content by second listview if i have declared in activity_main.xm... | android|json|xml|listview|slider | 0 | 2016-04-29T07:22:58.303Z | 2,016 | 4 | 7 | 4 | 71 | 1 | 503 | 78 | 5 | 4 | true | false | false | false | false | false | zero |
36,932,361 | Editing musics tag with myid3 library | <p>I'm trying to edit musics tag with MyId3 library with this code:</p>
<pre><code> Intent intent = getIntent();
path = intent.getStringExtra("path");
Log.d("path",path);
name = (EditText) findViewById(R.id.song_name);
album = (EditText) findViewById(R.id.song_album);
artist = (EditText) findVie... | I'm trying to edit musics tag with MyId3 library with this code: [CODE] but I'm getting this error and application forceclosed: [CODE] String path is /storage/15D5-14F7/Musics/Music/Dream On.mp3 . How can i fix this? | java|android | 2 | 2016-04-29T07:35:42.600Z | 2,016 | 4 | 7 | 4 | 422 | 1 | 216 | 37 | 2 | 2 | true | false | false | false | false | false | low |
36,932,407 | Android recent activity displayed after intent filter activity is finished | <p>So my app has a problem with 2 activities - <code>MainActivity</code> and <code>ShareActivity</code>. As you might guess, the <code>MainActivity</code> is the main activity and does most of the work. <code>ShareActivity</code> has an intent filter for receiving files. When i share something from another app, the <co... | So my app has a problem with 2 activities - MainActivity and ShareActivity . As you might guess, the MainActivity is the main activity and does most of the work. ShareActivity has an intent filter for receiving files. When i share something from another app, the ShareActivity is launched and it does it's work (user has... | android|android-intent|android-activity|xamarin | 0 | 2016-04-29T07:38:24.710Z | 2,016 | 4 | 7 | 4 | 101 | 1 | 760 | 74 | 4 | 1 | true | false | false | false | false | false | zero |
36,932,423 | How to get response from HttpPost | <p>I want to get response from the httppost request. I get the network response like 200,405,404 but i don't get the value which is coming from server. I am trying a lot but i don't get response. Please help...</p>
<p>My code is below-</p>
<p>private void UploadPost() {</p>
<pre><code> SharedPreferences share... | I want to get response from the httppost request. I get the network response like 200,405,404 but i don't get the value which is coming from server. I am trying a lot but i don't get response. Please help... My code is below- private void UploadPost() { [CODE] I want to response from the httppost.i get the network resp... | java|android | 1 | 2016-04-29T07:39:17.903Z | 2,016 | 4 | 7 | 4 | 3,101 | 2 | 436 | 33 | 2 | 1 | true | false | true | false | false | false | low |
36,932,527 | Trouble with intent in RecyclerView | <p>I started in the android programming and and I encountered a problem when i tried to send data from my Adapter to an another activity
.
I want to show the content of "<code>description</code>" in my other activity when I click on an item.</p>
<p><strong>MyAdapter class :</strong></p>
<pre><code>public class MyAdap... | I started in the android programming and and I encountered a problem when i tried to send data from my Adapter to an another activity . I want to show the content of " description " in my other activity when I click on an item. MyAdapter class : [CODE] Can someone help me? | android|android-recyclerview|android-adapter | 0 | 2016-04-29T07:44:29.530Z | 2,016 | 4 | 7 | 4 | 128 | 3 | 273 | 35 | 3 | 1 | true | false | false | false | false | false | zero |
36,932,534 | java.lang.NoClassDefFoundError: com.amazon.android.Kiwi | <p>I am making app for Amazon Fire tablets. I am getting this error. Please help me to sort out this error. Thanks!`</p>
<pre><code>04-26 00:16:59.470: E/AndroidRuntime(29646): FATAL EXCEPTION: main
04-26 00:16:59.470: E/AndroidRuntime(29646): java.lang.NoClassDefFoundError: com.amazon.android.Kiwi
04-26 00:16:59.470:... | I am making app for Amazon Fire tablets. I am getting this error. Please help me to sort out this error. Thanks!` [CODE] | android|amazon|kindle-fire | 2 | 2016-04-29T07:44:54.547Z | 2,016 | 4 | 7 | 4 | 372 | 1 | 120 | 55 | 3 | 1 | true | false | false | false | false | false | low |
36,932,624 | Mvvmcross Location Plugin current and last seen locations are null | <p>I'm trying to get location in my application using mvvmcross location plugin, but it's always throw null reference exception because <code>CurrentLocation</code> and <code>LastSeenLocation</code> are always null. GPS service is enabled on real android device and permisions has been configured in android manifest. I'... | I'm trying to get location in my application using mvvmcross location plugin, but it's always throw null reference exception because CurrentLocation and LastSeenLocation are always null. GPS service is enabled on real android device and permisions has been configured in android manifest. I've tested app on genymotion, ... | xamarin|gps|xamarin.android|mvvmcross | 0 | 2016-04-29T07:50:00.943Z | 2,016 | 4 | 7 | 4 | 681 | 1 | 461 | 66 | 4 | 1 | true | false | false | false | false | false | zero |
36,932,637 | Xamarin in VS - Unable to install Android Support v4 | <p>I installed Visual Studio 2015 to try out Xamarin that comes with the community version, but I have not been able to open a single project. I have downloaded a few projects from GitHub that I want to try out, but they all get the same error. First, it says I am missing a reference/assembly, and I figured this was th... | I installed Visual Studio 2015 to try out Xamarin that comes with the community version, but I have not been able to open a single project. I have downloaded a few projects from GitHub that I want to try out, but they all get the same error. First, it says I am missing a reference/assembly, and I figured this was the X... | c#|android|visual-studio|xamarin|xamarin.android | 0 | 2016-04-29T07:50:33.310Z | 2,016 | 4 | 7 | 4 | 3,180 | 2 | 1,355 | 52 | 5 | 1 | true | false | true | false | false | false | zero |
36,932,662 | Android: How to call ndk function from Kotlin? | <p>This code works on Java. But after migration to Kotlin, compiler higlits method <code>native fun stringFromNative(): String</code> as error with following text:</p>
<blockquote>
<p>Function without a body must be abstract</p>
</blockquote>
<pre><code>class MainActivity : AppCompatActivity() {
override fun onCreat... | This code works on Java. But after migration to Kotlin, compiler higlits method native fun stringFromNative(): String as error with following text: Function without a body must be abstract [CODE] Thanks @KenVanHoeylandt! Andswer is: [CODE] If you wish to use this native function in another class you can specify the cla... | android|android-ndk|kotlin | 15 | 2016-04-29T07:51:50.990Z | 2,016 | 4 | 7 | 4 | 10,137 | 2 | 354 | 46 | 3 | 3 | true | false | true | false | true | false | medium |
36,932,667 | Appearance of items under header on onClick event in SectionedRecyclerview | <p>In my android project I am using <a href="https://github.com/luizgrp/SectionedRecyclerViewAdapter" rel="nofollow">SectionedRecyclerview</a>
to Create headers in recyclerview. And I have also achieved to adding and removing items dynamically by improving code like below.</p>
<p>CODE :</p>
<pre><code> public cl... | In my android project I am using SectionedRecyclerview to Create headers in recyclerview. And I have also achieved to adding and removing items dynamically by improving code like below. CODE : [CODE] What I want to do is,only all the headers should appear when activity starts, the items under each header should not app... | android|android-recyclerview|android-animation|android-transitions | 3 | 2016-04-29T07:52:04.257Z | 2,016 | 4 | 7 | 4 | 634 | 1 | 501 | 74 | 4 | 1 | true | false | false | false | false | false | low |
36,932,747 | Search api using Retrofit | <p>I need to implement searching functionality in my android app. The API is not a proper search API and it is like this</p>
<pre><code>https://example.com/api/list/photos/?start=0&end=30&search=something
</code></pre>
<p>So, basically, I have to query the backend for each letter of search query and the endpo... | I need to implement searching functionality in my android app. The API is not a proper search API and it is like this [CODE] So, basically, I have to query the backend for each letter of search query and the endpoint is paginated so that I can control how many entries to display. I read some code that uses RxJava to ad... | android|retrofit|rx-java | 4 | 2016-04-29T07:56:39.983Z | 2,016 | 4 | 7 | 4 | 2,715 | 2 | 1,293 | 25 | 3 | 2 | true | false | true | false | false | false | low |
36,932,781 | DonutProgressBar value is fluctuating when I set progress value for second time | <p>i have created a donutprogressBar and i am setting the progressbar value and its working fine for the first time but when i set the value for second time than the progressbar gets fluctuating between the first value and the second value , i want the progressbar to be set conatsntant to the second value </p>
<pre><c... | i have created a donutprogressBar and i am setting the progressbar value and its working fine for the first time but when i set the value for second time than the progressbar gets fluctuating between the first value and the second value , i want the progressbar to be set conatsntant to the second value [CODE] | java|android | 0 | 2016-04-29T07:58:17.500Z | 2,016 | 4 | 7 | 4 | 65 | 1 | 310 | 79 | 2 | 1 | true | false | false | false | false | false | zero |
36,932,804 | How to get data from Json in android | <p>My json like this:</p>
<pre><code>{"Results":
"orderList":[{
"Orderid":"5","Amount":"250.00","Date":"2016-04-21 08:27:43.0","
Items":["North Indian Veg-1","North Indian NonVeg-1","South Indian Veg-1","South Indian Non Veg-1"]}]}
</code></pre>
<p>I know how to get "Orderid","Amount","Date" from "orderLi... | My json like this: [CODE] I know how to get "Orderid","Amount","Date" from "orderList". But, I want to get Items also. How to get Items from above json. Code here: [CODE] Please anyone help me.. Thanks in advance | java|android | -1 | 2016-04-29T07:59:48.553Z | 2,016 | 4 | 7 | 4 | 78 | 2 | 212 | 36 | 2 | 2 | true | false | false | false | false | true | negative |
36,932,816 | How to process a JSON with multiple array s | <p>The is my JSON string . </p>
<pre><code> {
"server_response":
{
"source_response" :
[
{"stoppage_name":"sealdah","bus_no":"43@230@234/1@30_A"}
] ,
"destination_response" :
... | The is my JSON string . [CODE] I think there would be a '[' after "server_response" , but not sure . I am trying to retrieve the data but the code is not working . [CODE] Where I am making wrong . I am new to JSON and Android. | android|json | 0 | 2016-04-29T08:00:29.830Z | 2,016 | 4 | 8 | 4 | 80 | 5 | 226 | 43 | 2 | 2 | true | false | false | false | false | false | zero |
36,932,917 | How to detect cache is existed for the webview in android? | <p>In my android application need to detect cache is existed or not. Currently i am loading webpages if internet is available. If internet is not available loading pages from caches by using the following code. </p>
<pre><code>if (networkInfo.isConnected()) {
webView.getSettings().setCacheMode(WebSettings.... | In my android application need to detect cache is existed or not. Currently i am loading webpages if internet is available. If internet is not available loading pages from caches by using the following code. [CODE] In the above code i need to add one more condition for internet is not available and cache also not avail... | android|webview|android-webview|android-websettings | 3 | 2016-04-29T08:05:12.123Z | 2,016 | 4 | 8 | 4 | 4,469 | 3 | 932 | 58 | 4 | 1 | true | false | true | false | false | false | low |
36,933,240 | FFmpeg.execute.FFmpegExecuteResponseHandler on a null object reference | <p>My Code:</p>
<pre><code>submit.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
execFFmpegBinary( " -i" + newFile.getAbsolutePath() + " -codec:v libx264 -profile:v high -preset slow -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=-1:480 -threads 0 -pa... | My Code: [CODE] Show this error: [CODE] | java|android|ffmpeg | 1 | 2016-04-29T08:22:34.030Z | 2,016 | 4 | 8 | 4 | 1,414 | 2 | 39 | 70 | 3 | 2 | true | false | false | false | false | false | low |
36,933,252 | Could not find method multiDexEnabled() for arguments [true] | <p>I follow this tutorial <a href="https://github.com/ologic/Tango/wiki/Getting-Started-with-Tango-and-ROS" rel="nofollow">https://github.com/ologic/Tango/wiki/Getting-Started-with-Tango-and-ROS</a> to import the project. </p>
<p>When I try to make the project with catkin_make, I have this error:</p>
<pre><code> U... | I follow this tutorial https://github.com/ologic/Tango/wiki/Getting-Started-with-Tango-and-ROS to import the project. When I try to make the project with catkin_make, I have this error: [CODE] I try many issue to fix it, whit no result. the project's build.gradle : [CODE] and subproject's build.gradle which poses probl... | android|gradle|build.gradle|ros|google-project-tango | 0 | 2016-04-29T08:23:15.070Z | 2,016 | 4 | 8 | 4 | 3,149 | 1 | 388 | 60 | 5 | 3 | true | false | true | false | false | false | zero |
36,933,422 | GetView Called Multiple times | <p>I have seen several other questions regarding GetView being called in an adapter several times and causing performance issues. However, this question is not a duplicate.</p>
<p>All of the answers I have found mention that having a <strong>ListView</strong> with a height of <em>wrap_content</em> will cause such beha... | I have seen several other questions regarding GetView being called in an adapter several times and causing performance issues. However, this question is not a duplicate. All of the answers I have found mention that having a ListView with a height of wrap_content will cause such behavior, but I am using an adapter to po... | android|gridview|getview | 1 | 2016-04-29T08:32:52.713Z | 2,016 | 4 | 8 | 4 | 1,217 | 1 | 721 | 29 | 3 | 2 | true | false | false | false | false | false | low |
36,933,469 | trying to pass putextras with intent and trying to get the same values on textviews on nxt page | <ol>
<li><p>here I am passing an intent in <code>show()</code> with a bundle of data from the
database</p>
<p>Mainactivity.java</p>
<pre><code>import android.app.AlertDialog; import android.content.Intent;
import android.database.Cursor; import android.support.v7.app.AppCompatActivity; import android.os.Bundle;
impor... | here I am passing an intent in show() with a bundle of data from the database Mainactivity.java [CODE] here m trying to display the buddle values as text view by accepting values passed through an intent. unable to display anything on showdb activity Showdb.java [CODE] | java|android|android-intent | 0 | 2016-04-29T08:35:00.723Z | 2,016 | 4 | 8 | 4 | 53 | 1 | 269 | 95 | 3 | 2 | true | false | false | false | false | false | zero |
36,933,569 | Populate two Json Array items in a one Json object in a RecyclerView | <p>I am getting a Json Object from the server and that Json object cantained two Json arrays. I know how to put data in to the recyclerview in a json array. But i don't know how to put two json array data to the recyclerview. And there is another thing, One Json array contained <strong>rep, name, name1</strong>. Here <... | I am getting a Json Object from the server and that Json object cantained two Json arrays. I know how to put data in to the recyclerview in a json array. But i don't know how to put two json array data to the recyclerview. And there is another thing, One Json array contained rep, name, name1 . Here name means name1's i... | android|arrays|json|android-recyclerview | 0 | 2016-04-29T08:39:51.387Z | 2,016 | 4 | 8 | 4 | 666 | 0 | 920 | 68 | 4 | 4 | true | true | false | false | false | false | zero |
36,933,649 | RelativeLayout ignoring size set by child | <p>I have a layout that looks roughly like this:</p>
<pre><code><RelativeLayout>
<TextView
layout_width="match_parent"
layout_height="50dp"
layout_alignParentTop="true"
id="@+/A"/>
<TextView
layout_width="match_parent"
layout_height="46dp"
layout_alignParentBottom="true"
... | I have a layout that looks roughly like this: [CODE] The intention is that A and B should go at the top and bottom with fixed heights, and CustomView should take as much of the remaining space as it can subject to a constraint on its aspect ratio. (Note I can't use LinearLayout because of some other children I have omi... | android|android-layout | -1 | 2016-04-29T08:43:55.960Z | 2,016 | 4 | 8 | 4 | 478 | 2 | 1,117 | 41 | 2 | 1 | true | false | false | false | false | true | negative |
36,933,656 | Am getting this error sendUserActionEvent() mView == null | <p>Am a rookie,I had this code working before when I implemented this login, suddening I started getting this error sendUserActionEvent() mView == null
in my logcat and i wasnt able to login in my app again, I have google quite a bit without a solution</p>
<pre><code> public class Activity_Login extends Activity impl... | Am a rookie,I had this code working before when I implemented this login, suddening I started getting this error sendUserActionEvent() mView == null in my logcat and i wasnt able to login in my app again, I have google quite a bit without a solution [CODE] | android|authentication|null | 0 | 2016-04-29T08:44:25.153Z | 2,016 | 4 | 8 | 4 | 516 | 0 | 256 | 57 | 3 | 1 | true | true | false | false | false | false | zero |
36,933,708 | AppBarLayout scrolling behavior not working for nested fragments | <p>I have a <code>MainActivity</code> with a <code>FrameLayout</code> placeholder where I switch in/out fragments based on the NavigationView selection. I want to be able to have the MainActivity Toolbar scroll off screen when it encounters a scroll behavior in <em>any</em> fragment it contains (even nested fragments).... | I have a MainActivity with a FrameLayout placeholder where I switch in/out fragments based on the NavigationView selection. I want to be able to have the MainActivity Toolbar scroll off screen when it encounters a scroll behavior in any fragment it contains (even nested fragments). It works well for HomeFragment (1) , ... | android|android-fragments|android-recyclerview|android-coordinatorlayout|android-appbarlayout | 0 | 2016-04-29T08:46:50.610Z | 2,016 | 4 | 8 | 4 | 1,695 | 1 | 859 | 64 | 5 | 4 | true | false | false | false | false | false | zero |
36,933,755 | Activity is SingleTask and is root in task, reStart activity of top is destroyed? | <ul>
<li>A Activity is SingleTask </li>
<li><p>B Activity and C Activity is Standard,</p>
<p>A -> B -> C, Then press Home, re-press the application icon, Why B,C destroy? Why B destroyed firstly, C destroyed later?</p>
<pre><code><activity
android:name=".Main1Activity"
android:launchMode="singleTask">... | A Activity is SingleTask B Activity and C Activity is Standard, A -> B -> C, Then press Home, re-press the application icon, Why B,C destroy? Why B destroyed firstly, C destroyed later? [CODE] [CODE] | android | -1 | 2016-04-29T08:49:10.047Z | 2,016 | 4 | 8 | 4 | 266 | 2 | 199 | 81 | 1 | 2 | true | false | false | false | false | true | negative |
36,933,787 | Android - java.lang.IndexOutOfBoundsException: Invalid item position 0(0). Item count:0 | <p>I am getting this exception in my log - </p>
<pre><code> java.lang.IndexOutOfBoundsException: Invalid item position 0(0). Item count:0
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4622)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPo... | I am getting this exception in my log - [CODE] I am getting this error on the line - [CODE] Here, in this method of custom LinearLayoutManager - [CODE] Previously, it was working well. I recently changed the targetSdkVersion to 23 (Marshmallow), and as well as the versions of support lib. May be the issue is for the sa... | android|android-recyclerview|indexoutofboundsexception|android-6.0-marshmallow|target-sdk | 12 | 2016-04-29T08:50:49.313Z | 2,016 | 4 | 8 | 4 | 4,993 | 2 | 364 | 87 | 5 | 3 | true | false | true | false | true | false | medium |
36,933,797 | Use existing WebView JavascriptInterface with React-Native | <p>Can I use existent javascript interface, currently attached to the WebView in my android and iOS projects, within React-Native app?</p>
<p>React-Native does not use WebView for itself to run. But I can create it <a href="https://facebook.github.io/react-native/docs/webview.html" rel="nofollow">React WebView</a>. My... | Can I use existent javascript interface, currently attached to the WebView in my android and iOS projects, within React-Native app? React-Native does not use WebView for itself to run. But I can create it React WebView . My question is about using existing javascript interface, perhabs attach it to the created in React... | javascript|android|webview|react-native | 0 | 2016-04-29T08:51:07.230Z | 2,016 | 4 | 8 | 4 | 2,773 | 1 | 1,489 | 58 | 4 | 0 | false | false | true | false | false | false | zero |
36,933,831 | How can I insert a Title row in my custom adaptor list | <p>I want to create a custom row adapter to my Android application.
So I have build this:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
androi... | I want to create a custom row adapter to my Android application. So I have build this: [CODE] Now I have build this adaptor class "MedicationAdapter.java": [CODE] Now if I try to run my Android application, I can see my activity like this: Now I want to insert a title Text in the head of this list, and I want to insert... | java|android | -1 | 2016-04-29T08:53:05.257Z | 2,016 | 4 | 8 | 4 | 50 | 3 | 384 | 54 | 2 | 2 | true | false | false | false | false | true | negative |
36,934,059 | Stop two threads when the condition is meet | <p>I want do the following: 2 thread execute the same <code>Runnable</code> object. They will generate a random number. Write the number into the log. If the number dividable by 7, stop both thread and a broadcast is sent and the broadcast receiver place the final number on the log with a new tag. I tried both <code>in... | I want do the following: 2 thread execute the same Runnable object. They will generate a random number. Write the number into the log. If the number dividable by 7, stop both thread and a broadcast is sent and the broadcast receiver place the final number on the log with a new tag. I tried both interrupt() and volatile... | java|android|multithreading|broadcastreceiver|android-broadcastreceiver | 0 | 2016-04-29T09:02:43.737Z | 2,016 | 4 | 9 | 4 | 142 | 1 | 478 | 43 | 5 | 2 | true | false | false | false | false | false | zero |
36,934,137 | AsyncTask delegate string issue | <p>I have an issue with delegating String from my AsyncTask.</p>
<p>Here's the code:</p>
<p>AsyncTask:</p>
<pre><code> protected void onPostExecute(String strings) {
super.onPostExecute(strings);
delegate.TaskCompletionResult(strings);
}
</code></pre>
<p>Delegate interface:</p>
<pre><code>public interfac... | I have an issue with delegating String from my AsyncTask. Here's the code: AsyncTask: [CODE] Delegate interface: [CODE] and Main Activity: [CODE] My error: [CODE] I've tried to push some hardcoded strings, but the result is the same. @EDIT: I have this also in my AsyncTask: [CODE] and my MainActivity implements TaskDel... | android|android-asynctask | 1 | 2016-04-29T09:06:35.693Z | 2,016 | 4 | 9 | 4 | 633 | 1 | 325 | 31 | 2 | 5 | true | false | false | false | false | false | low |
36,934,157 | customize select texts actions in android? | <p>please help me how can I do this:
I have textView in my project and I want do this:</p>
<ul>
<li>select text</li>
<li>do some actions like copy,save,... on texts</li>
</ul>
<p>I find out this code for <strong>selecting</strong> part:</p>
<pre><code> text= (TextView) findViewById(R.id.speech);
registerForCo... | please help me how can I do this: I have textView in my project and I want do this: select text do some actions like copy,save,... on texts I find out this code for selecting part: [CODE] and the default Sellection texs with copy and select all actions are shown. now my question is that how can I customize it and add o... | android|select|textview|action | 1 | 2016-04-29T09:07:25.653Z | 2,016 | 4 | 9 | 4 | 1,807 | 1 | 380 | 42 | 4 | 3 | true | false | false | false | false | false | low |
36,934,236 | how to make a progress bar show on top of a button in android | <p>Ok this is something I can do in iOS in like five minutes.. but I can't seem to get it for android:</p>
<p>i simply want to show a progress bar ontop of a button. I managed to render the progress bar just fine <em>beside</em> the button like so</p>
<p><a href="https://i.stack.imgur.com/6MSIn.png" rel="noreferrer">... | Ok this is something I can do in iOS in like five minutes.. but I can't seem to get it for android: i simply want to show a progress bar ontop of a button. I managed to render the progress bar just fine beside the button like so using this code [CODE] however i can't seem to be able to do this: i tried stuff like this ... | java|android|layout|android-widget|android-relativelayout | 7 | 2016-04-29T09:11:18.210Z | 2,016 | 4 | 9 | 4 | 9,254 | 4 | 556 | 61 | 5 | 3 | true | false | true | false | false | false | medium |
36,934,281 | I can't load image from gallery and set it into ImageView | <p>I try set image into ImageView from gallery.</p>
<pre><code>public class CollageCreateActivity extends AppCompatActivity {
private static final String TAG ="MyLogs" ;
Draw2d draw2d;
static final int GALLERY_REQUEST = 1;
private final int TAKE_PICTURE_CAMERA = 2;
private Uri mOutputFileUri;
A... | I try set image into ImageView from gallery. [CODE] When i try set image from folder "drawrable" it's work, but if i try load image and set from gallery it's don't work, all i have "W/EGL_genymotion: eglSurfaceAttrib not implemented" in logs | android|imageview | 0 | 2016-04-29T09:13:10.377Z | 2,016 | 4 | 9 | 4 | 573 | 1 | 241 | 57 | 2 | 1 | true | false | false | false | false | false | zero |
36,934,397 | Get Position value of Dynamically added view in layout android | <p>I m trying this tutorial : <a href="http://android-er.blogspot.in/2014/01/get-text-from-dynamically-added-view.html" rel="nofollow">http://android-er.blogspot.in/2014/01/get-text-from-dynamically-added-view.html</a> \
where i m trying to edit the text when user click the insert button, it works fine only if i put po... | I m trying this tutorial : http://android-er.blogspot.in/2014/01/get-text-from-dynamically-added-view.html \ where i m trying to edit the text when user click the insert button, it works fine only if i put position as static value. but when i try to get position this app unfortunat stop. [CODE] So here, i used to get p... | java|android|view | 1 | 2016-04-29T09:18:32.813Z | 2,016 | 4 | 9 | 4 | 689 | 0 | 456 | 62 | 3 | 2 | true | true | false | false | false | false | low |
36,934,429 | HorizontalScrollView strange behaviour | <p>I'm trying to create a HorizontalScrollView which holds a LinearLayout inside , which then holds a bunch of small ImageButton's acting as "items" or "products" to scroll through. Issue is that you can scroll another "length" of the scrollview once you've reached the final item in the LinearLayout.</p>
<pre><code>&l... | I'm trying to create a HorizontalScrollView which holds a LinearLayout inside , which then holds a bunch of small ImageButton's acting as "items" or "products" to scroll through. Issue is that you can scroll another "length" of the scrollview once you've reached the final item in the LinearLayout. [CODE] So it holds 5 ... | android|scrollview | 0 | 2016-04-29T09:20:18.603Z | 2,016 | 4 | 9 | 4 | 58 | 0 | 805 | 38 | 2 | 1 | true | true | false | false | false | false | zero |
36,934,500 | The issue is about MPAndroidChart-markerview | <p>My project uses the lib mpandroidchart,I need the markerview,so I custom the my markerview it has two textview,the one shows xAxis value and another shows yAxis value.my xAxis is date of string type,for example "2016-4-29",my yAxis is the value of float.the question is the xAxis value can't show at the markerview li... | My project uses the lib mpandroidchart,I need the markerview,so I custom the my markerview it has two textview,the one shows xAxis value and another shows yAxis value.my xAxis is date of string type,for example "2016-4-29",my yAxis is the value of float.the question is the xAxis value can't show at the markerview like ... | android|mpandroidchart | 0 | 2016-04-29T09:23:21.643Z | 2,016 | 4 | 9 | 4 | 203 | 1 | 473 | 44 | 2 | 1 | true | false | false | false | false | false | zero |
36,934,506 | Connect to a bluetooth device using stored MAC address through service | <p>I am new to Android and I am trying to understand the working of Bluetooth connection. For that I have used used the wiced sense app to understand the working. </p>
<p>Here I want to connect to a particular device with respect to their MAC address. I have managed to store and retrieve the MAC address through Shared... | I am new to Android and I am trying to understand the working of Bluetooth connection. For that I have used used the wiced sense app to understand the working. Here I want to connect to a particular device with respect to their MAC address. I have managed to store and retrieve the MAC address through Shared preferences... | android|android-activity|service|bluetooth|sharedpreferences | 3 | 2016-04-29T09:23:53.077Z | 2,016 | 4 | 9 | 4 | 11,270 | 2 | 655 | 70 | 5 | 2 | true | false | true | false | false | false | low |
36,934,637 | Up Button in Toolbar doesn't do anything | <p>I set up Toolbar in my app (for the first time) but the I can't set the Home (/Up) button to do anything when clicked.
I have 3 activitives (MainActivity , Second , Third) and I've defined the toolbar in all 3 but nothing happens when I click the Home button in each of the activitis I want the button to do his (in m... | I set up Toolbar in my app (for the first time) but the I can't set the Home (/Up) button to do anything when clicked. I have 3 activitives (MainActivity , Second , Third) and I've defined the toolbar in all 3 but nothing happens when I click the Home button in each of the activitis I want the button to do his (in my u... | android|android-studio|android-toolbar | 1 | 2016-04-29T09:29:48.073Z | 2,016 | 4 | 9 | 4 | 97 | 4 | 1,263 | 40 | 3 | 8 | true | false | false | false | false | false | low |
36,934,826 | function that takes an ArrayList<ArrayList<String>> and returns a ArrayList<ArrayList<String>> throws errors | <p>I have a function <code>insertQuestions()</code>, which inserts a few Entries into a <code>ArrayList<ArrayList<String>></code> and later returns the changed <code>ArrayList<ArrayList<String>></code>.</p>
<p>Here is the code </p>
<pre><code>public static ArrayList<ArrayList<String>&... | I have a function insertQuestions() , which inserts a few Entries into a ArrayList<ArrayList<String>> and later returns the changed ArrayList<ArrayList<String>> . Here is the code [CODE] now i do realise that this function doesnt do anything yet, but the problem is, it fails to compile, because it "Expects an expressio... | android|string|arraylist | 0 | 2016-04-29T09:37:42.647Z | 2,016 | 4 | 9 | 4 | 38 | 0 | 756 | 108 | 3 | 1 | true | true | false | false | false | false | zero |
36,934,872 | Copy Image from FilePicker/Intent to another Directory | <p>I am trying to copy Image i receive from Intent to another directory. But I am unable to get it working yet. Need Help.</p>
<p>My Logcat:</p>
<pre><code>04-29 14:56:22.778 31620-31620/com.example.krupal.sqlitetest I/Choreographer: Skipped 42 frames! The application may be doing too much work on its main thread.
0... | I am trying to copy Image i receive from Intent to another directory. But I am unable to get it working yet. Need Help. My Logcat: [CODE] Source: [CODE] Copy Method: [CODE] GetPath Method: [CODE] But this is giving me NullPointerException. What needs to be changed? | android|android-intent|copy|android-bitmap | 0 | 2016-04-29T09:40:02.713Z | 2,016 | 4 | 9 | 4 | 271 | 1 | 265 | 54 | 4 | 4 | true | false | false | false | false | false | zero |
36,934,907 | How to filter TWO strings in customAdapter of AutoCompleteTextView in android | <p>Im new to Android Development please help me. These past few days I've been working on application that involves searching of recipe by ingredient. So Ive created an interface that lets the user add an ingredient and the app suggests as the user types. </p>
<p>For many hours of searching here and there, Ive got the... | Im new to Android Development please help me. These past few days I've been working on application that involves searching of recipe by ingredient. So Ive created an interface that lets the user add an ingredient and the app suggests as the user types. For many hours of searching here and there, Ive got the AutoComplet... | android|autocompletetextview | 0 | 2016-04-29T09:41:37.753Z | 2,016 | 4 | 9 | 4 | 92 | 0 | 892 | 77 | 2 | 3 | true | true | false | false | false | false | zero |
36,934,965 | Xamarin Google Maps centering | <p>I made a Xamarin App with Google Maps. I added on that map multiple markers that show shops around the location of the device. And when I open the app I made it center on the nearest shop. </p>
<p>The problem is that when I try to swipe the map to see what is around, it comes back centering to the closest marker. I... | I made a Xamarin App with Google Maps. I added on that map multiple markers that show shops around the location of the device. And when I open the app I made it center on the nearest shop. The problem is that when I try to swipe the map to see what is around, it comes back centering to the closest marker. I want to dis... | android|google-maps|xamarin.android | 2 | 2016-04-29T09:44:20.400Z | 2,016 | 4 | 9 | 4 | 668 | 0 | 578 | 29 | 3 | 2 | true | true | false | false | false | false | low |
36,934,998 | For my quiz app how I can I match the answer and increase the count if it is correct? | <p><em>I am fetching JSON data</em></p>
<p>JSON data is as below:</p>
<pre><code> {
"results":[
{
"id":4,
"ps":"Besides gases, air also contains",
"op1":"Smoke",
"op2":"Water vapour",
"op3":"Dust particles",
"op4":"All of these",
"resType":"multiple",
"ans1":nu... | I am fetching JSON data JSON data is as below: [CODE] I am storing all received data in ArrayList as below: [CODE] on each button click I have done something like this: [CODE] Every time my count is =0 | android|json | -2 | 2016-04-29T09:45:56.370Z | 2,016 | 4 | 9 | 4 | 97 | 1 | 201 | 85 | 2 | 3 | true | false | false | false | false | true | negative |
36,935,082 | Android ViewPager FragmentStatePagerAdapter issue | <p>I'm building an app that uses a Viewpager with a FragmentStatePagerAdapter.
The FragmentStatePagerAdapter gets an array of objects witch is later used to map each object data to a fragment.</p>
<p>The adapter loads 3 fragments into memory (onCreateView is called 3 times when I'm on a page), it loads the current fra... | I'm building an app that uses a Viewpager with a FragmentStatePagerAdapter. The FragmentStatePagerAdapter gets an array of objects witch is later used to map each object data to a fragment. The adapter loads 3 fragments into memory (onCreateView is called 3 times when I'm on a page), it loads the current fragment and t... | android|android-viewpager|fragmentstatepageradapter | 0 | 2016-04-29T09:50:17.320Z | 2,016 | 4 | 9 | 4 | 270 | 1 | 1,030 | 49 | 3 | 2 | true | false | false | false | false | false | zero |
36,935,333 | after update my sdk, app crash with android.view.InflateException: Binary XML file line #36: Error inflating class android.support.v7.widget.Toolbar | <p>I have developed android app using android-support-v7-appcompat on Eclipse and it worked fine. Today i've updated the SDK to the latest version available. All works fine but when i launch one of my application i get this error.</p>
<pre><code>FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activit... | I have developed android app using android-support-v7-appcompat on Eclipse and it worked fine. Today i've updated the SDK to the latest version available. All works fine but when i launch one of my application i get this error. [CODE] And this is HomeActivity.java [CODE] activity_home.xml [CODE] toolbar.xml [CODE] Plea... | android|eclipse | 0 | 2016-04-29T10:00:44.807Z | 2,016 | 4 | 10 | 4 | 193 | 2 | 360 | 148 | 2 | 4 | true | false | false | false | false | false | zero |
36,935,518 | Integrate Google Place AutoCompleteAPI in Action bar Search? | <p>I have successfully Integrated <code>Google Place Autocomplete API</code> in <code>Activity</code>. New flow should be like this:</p>
<ul>
<li>User click on <code>Menu search</code> icon.</li>
<li>Search box of <code>Google place autocomplete</code> should be align with it.</li>
<li>Whatever user had choose from <c... | I have successfully Integrated Google Place Autocomplete API in Activity . New flow should be like this: User click on Menu search icon. Search box of Google place autocomplete should be align with it. Whatever user had choose from autocomplete . It should update the Menu search Icon . Here is following code: Menu_item... | java|android|google-maps|google-places-api | 0 | 2016-04-29T10:08:45.283Z | 2,016 | 4 | 10 | 4 | 813 | 1 | 612 | 60 | 4 | 2 | true | false | false | false | false | false | zero |
36,935,540 | Xamarin RestSharp: Json object send to Azure Web API with result null response | <p>I am using RestSharp on Xamarin to communicate with WebAPI using POST. I can send something and get a response but the outcome wasn't what I expected.</p>
<p>This is my code on Xamarin.</p>
<pre><code> var request = new RestSharp.RestRequest ("api/device/stats", RestSharp.Method.POST);
r... | I am using RestSharp on Xamarin to communicate with WebAPI using POST. I can send something and get a response but the outcome wasn't what I expected. This is my code on Xamarin. [CODE] On my WebAPI : [CODE] UsageLogModel is : [CODE] Somehow the response is "Fail" which MAC is null. I scratched my head but have no idea... | android|json|xamarin|restsharp | 0 | 2016-04-29T10:09:59.080Z | 2,016 | 4 | 10 | 4 | 269 | 1 | 339 | 78 | 4 | 3 | true | false | false | false | false | false | zero |
36,935,610 | Invalid column deleted while trying to query a column | <p>I am trying to execute the following query in my android app:</p>
<pre><code>private static final String[] PROJECTION =
{
Data.CONTACT_ID, Data.MIMETYPE,
Data.DISPLAY_NAME, Phone.NUMBER,
Phone.TYPE, StructuredName.GIVEN_NAME,
... | I am trying to execute the following query in my android app: [CODE] But I get the following error: [CODE] I want to know if the contact that I am reading is deleted or not, so the Data.DELETED column is needed for me and that seems to be causing the error. But when I checked the Android documentation , DELETED does se... | android|sqlite|android-sqlite | 9 | 2016-04-29T10:13:32.647Z | 2,016 | 4 | 10 | 4 | 544 | 1 | 378 | 53 | 3 | 2 | true | false | false | false | false | false | medium |
36,935,709 | IndexOutOfBoundsException when trying to populate data in recyclerview from two json arrays in a one json object | <p>I am getting a Json Object from the server and that Json object contained two Json arrays. I know how to put data in to the recyclerview in a json array. But i don't know how to put two json array data to the recyclerview. One Json array contained rep, name, name1. Here name means name1's id(codeID). Next array cont... | I am getting a Json Object from the server and that Json object contained two Json arrays. I know how to put data in to the recyclerview in a json array. But i don't know how to put two json array data to the recyclerview. One Json array contained rep, name, name1. Here name means name1's id(codeID). Next array contain... | android|arrays|json|android-recyclerview|indexoutofboundsexception | 0 | 2016-04-29T10:17:58.583Z | 2,016 | 4 | 10 | 4 | 281 | 1 | 863 | 112 | 5 | 4 | true | false | false | false | false | false | zero |
36,935,723 | Android custom dialog not fill the entire dialog layout | <p>I build a custom dialog to pop up an image with close button like this:</p>
<p><a href="https://i.stack.imgur.com/EyRiu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EyRiu.png" alt="result"></a></p>
<p>As you can see the dialog is not fitting the dialog layout and there's this white borer on t... | I build a custom dialog to pop up an image with close button like this: As you can see the dialog is not fitting the dialog layout and there's this white borer on the top and on the right, so how can i get rid the white border thing and make my custom dialog fit? [CODE] | java|android|xml|layout|dialog | 1 | 2016-04-29T10:18:37.970Z | 2,016 | 4 | 10 | 4 | 607 | 3 | 270 | 55 | 5 | 1 | true | false | false | false | false | false | low |
36,935,733 | Notification does not displayed on wear, but displayed on hand held | <p>I am trying to create a notification for android device. This is the code written on the mobile. It shows the notification on the mobile phone but does not show up in <strong>android wear</strong>. Am I missing out on something?</p>
<pre><code>button.setOnClickListener(new View.OnClickListener() {
public vo... | I am trying to create a notification for android device. This is the code written on the mobile. It shows the notification on the mobile phone but does not show up in android wear . Am I missing out on something? [CODE] | android|notifications|wear-os | 0 | 2016-04-29T10:18:59.187Z | 2,016 | 4 | 10 | 4 | 64 | 0 | 219 | 67 | 3 | 1 | true | true | false | false | false | false | zero |
36,935,756 | AndroidTest does not use test application | <p>Hi I faced that when I rewrite application in androidTest manifest file, it does not work. This is my <code>AndroidManifest.xml</code> file in <code>androidTest</code> folder:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
... | Hi I faced that when I rewrite application in androidTest manifest file, it does not work. This is my AndroidManifest.xml file in androidTest folder: [CODE] This is part of original AndroidManifest.xml from main folder: [CODE] In fact I debugged it, and called getApplication() from breakpoint in activity under test, it... | android|android-gradle-plugin|android-testing | 4 | 2016-04-29T10:20:13.900Z | 2,016 | 4 | 10 | 4 | 1,636 | 2 | 466 | 41 | 3 | 2 | true | false | false | false | false | false | low |
36,935,794 | Android emulator hates me | <p>Sorry for this title but I'm just so mad because not any of the emulators seem to be working for me. Here are the reasons:</p>
<ol>
<li><p>Built-in Android Emulator - too slow, it won't even deploy the application, stuck at <code>Starting emulator ...</code>, mostly gets the error <code>Emulator cannot be started w... | Sorry for this title but I'm just so mad because not any of the emulators seem to be working for me. Here are the reasons: Built-in Android Emulator - too slow, it won't even deploy the application, stuck at Starting emulator ... , mostly gets the error Emulator cannot be started with VS (unknown provider) Genymotion -... | android|xamarin|android-emulator|xamarin.android | 3 | 2016-04-29T10:21:59.493Z | 2,016 | 4 | 10 | 4 | 2,056 | 2 | 1,226 | 25 | 4 | 0 | false | false | false | false | false | false | low |
36,935,941 | Action Bar Search in collapsing Toolbar Layout | <p>I have a CollapsingToolbarLayout with recycler view. In my actionbar I have a search menu item. But whenever I click search icon, the edittext layout do not appear. </p>
<p>Screenshots:-
A) When search is not clicked
<a href="https://i.stack.imgur.com/0S7lB.png" rel="nofollow noreferrer"><img src="https://i.stack.... | I have a CollapsingToolbarLayout with recycler view. In my actionbar I have a search menu item. But whenever I click search icon, the edittext layout do not appear. Screenshots:- A) When search is not clicked B) When Search icon is clicked My main_activity.xml code:- [CODE] In my activity.java the search item is handle... | android|android-actionbar|menuitem|android-menu|android-collapsingtoolbarlayout | 1 | 2016-04-29T10:29:29.463Z | 2,016 | 4 | 10 | 4 | 5,013 | 4 | 510 | 46 | 5 | 2 | true | false | true | false | false | false | low |
36,935,957 | I want to filter category and word matching in query method | <p>I want to filter category and word in query method.
and now i make query filler word matching.
This is SQL code </p>
<pre><code>@Override
public List<Word> getWordListMatchingInCategoryInternet(String matching) {
String TABLE = Util.getTableName();
String[] FIELD = new String[]{DictionaryDatabase.COLU... | I want to filter category and word in query method. and now i make query filler word matching. This is SQL code [CODE] I want to filter category with word mathching . What will I do? by DictionaryDatabase.COLUMN_CATEGORY = "internet" | android|sqlite|android-studio | 0 | 2016-04-29T10:29:58.353Z | 2,016 | 4 | 10 | 4 | 31 | 0 | 233 | 59 | 3 | 1 | true | true | false | false | false | false | zero |
36,935,974 | android: Use Color Array in XML | <p>As I have seen many post there is way to get <strong>String</strong> Array from XML and bind directly to <strong><code>RecyclerView</code></strong> or any other control like <strong>Spinner</strong>.</p>
<p>Especially in <a href="http://developer.android.com/intl/es/tools/data-binding/guide.html" rel="nofollow nore... | As I have seen many post there is way to get String Array from XML and bind directly to RecyclerView or any other control like Spinner . Especially in Android Databinding String Array binding with RecylerView using app:entries="@{@stringArray/fi} like: [CODE] Is there any way to do it for color array? | android|arrays|xml | 5 | 2016-04-29T10:30:31.373Z | 2,016 | 4 | 10 | 4 | 568 | 1 | 302 | 31 | 3 | 1 | true | false | false | false | false | false | low |
36,936,039 | Asynchronous Loopj - AsyncHttpClient: missing method "setCoookieStore()" | <p>I'm trying to implement the <a href="https://github.com/empatica/empalink-sample-project-android" rel="nofollow noreferrer">sample android app provided here.</a></p>
<p>I've installed all the dependencies as directed, but when I run the code on an actual phone, the error messages suggests (I think!) that the method... | I'm trying to implement the sample android app provided here. I've installed all the dependencies as directed, but when I run the code on an actual phone, the error messages suggests (I think!) that the method setCoookieStore() doesn't exist and that's leading to problems down the road. Is this actually a problem with ... | android|rest|http|asynchronous|loopj | 0 | 2016-04-29T10:34:06.190Z | 2,016 | 4 | 10 | 4 | 223 | 1 | 809 | 72 | 5 | 1 | true | false | false | false | false | false | zero |
36,936,054 | Android Studio: Why is Release Build debuggable? | <p>I've been trying for hours to generate a release build with Android Studio that is <strong>not debuggable</strong> so that I can upload it to Google Play. But sadly this is not working. When I try to upload the apk I get the following error:</p>
<pre><code>You uploaded a debuggable APK. For security reasons you nee... | I've been trying for hours to generate a release build with Android Studio that is not debuggable so that I can upload it to Google Play. But sadly this is not working. When I try to upload the apk I get the following error: [CODE] This is not a duplicate. I have tried everything suggested in related questions... Updat... | android|android-studio|android-gradle-plugin|build.gradle|android-studio-2.0 | 3 | 2016-04-29T10:34:41.503Z | 2,016 | 4 | 10 | 4 | 3,701 | 1 | 564 | 48 | 5 | 3 | true | false | true | false | false | false | low |
36,936,133 | How to read error details from REST API | <p>I am trying to register a user to my Web Server. If i send valid details to the server then i get 201 code in response which stands for "created". But when i send wrong credentials to the server i.e same username as before then i get 400 FileNotFoundException. I need to interpret error details not only 400 code. Bec... | I am trying to register a user to my Web Server. If i send valid details to the server then i get 201 code in response which stands for "created". But when i send wrong credentials to the server i.e same username as before then i get 400 FileNotFoundException. I need to interpret error details not only 400 code. Becaus... | java|android|http|curl|httpresponse | 0 | 2016-04-29T10:38:56.120Z | 2,016 | 4 | 10 | 4 | 728 | 1 | 1,235 | 39 | 5 | 2 | true | false | false | false | false | false | zero |
36,936,370 | AOSP not booting on Nexus 5 | <p>I am trying to boot my Nexus 5 hammerhead device with the Android Source code(android-5.1.1_r3). The following are the steps I followed:</p>
<ul>
<li>$ repo init -u <a href="https://android.googlesource.com/platform/manifest" rel="nofollow">https://android.googlesource.com/platform/manifest</a> -b android-5.1.1_r3<... | I am trying to boot my Nexus 5 hammerhead device with the Android Source code(android-5.1.1_r3). The following are the steps I followed: $ repo init -u https://android.googlesource.com/platform/manifest -b android-5.1.1_r3 repo sync After this I downloaded the following binaries for android-5.1.1_r3 (LMY48B) https://dl... | android|android-source|nexus-5 | 3 | 2016-04-29T10:49:43.847Z | 2,016 | 4 | 10 | 4 | 774 | 1 | 1,471 | 27 | 3 | 1 | true | false | false | false | false | false | low |
36,936,414 | TransformException: java.util.zip.ZipException: duplicate entry: com/google/gson/JsonPrimitive.class | <p><strong>Scenario:</strong> build.gradle</p>
<pre><code>dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.android.support:design:23.1.1'
... | Scenario: build.gradle [CODE] Error: [CODE] Problem: [CODE] Both odoo-rpc and digits above,have a gson module in it as a result of which its showing duplicate error. Solutions attempted: attempt no. 1 I excluded the gson module from digit using this: [CODE] but another miracle happened (Uncaught translation error: java... | java|android|android-gradle-plugin|openerp|twitter-digits | 1 | 2016-04-29T10:51:19.280Z | 2,016 | 4 | 10 | 4 | 794 | 0 | 905 | 100 | 5 | 6 | true | true | false | false | false | false | low |
36,936,700 | Android View with same ActionBar elevation | <p>I am trying to get a view (LinearLayout) to feel like an extension of the ActionBar. I am using AppCompat objects btw.</p>
<p>This is my xml:</p>
<pre><code><android.support.design.widget.CoordinatorLayoutt xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/... | I am trying to get a view (LinearLayout) to feel like an extension of the ActionBar. I am using AppCompat objects btw. This is my xml: [CODE] And now the content_register layout: [CODE] What am I trying to do with represented in the following image: And this is what I am getting. Any ideas on how I can fix this layout?... | android | 1 | 2016-04-29T11:05:22.650Z | 2,016 | 4 | 11 | 4 | 768 | 2 | 419 | 42 | 1 | 2 | true | false | false | false | false | false | low |
36,936,714 | Opengl-es : How to access corners of a texel | <p>I have a texel (rectangle) and I need to access its 4 corners.</p>
<pre><code>vec2 offset = vec2(1,1)/vec2(texWidth, texHeight)
texture2D (texSource, texCoord + 0.5 * offset * ???? )
</code></pre>
<p>what should I fill here to get both top 2 and bottom 2 corners.?</p>
<p>[Edit] : Code as per Tommy's answer</p>
... | I have a texel (rectangle) and I need to access its 4 corners. [CODE] what should I fill here to get both top 2 and bottom 2 corners.? [Edit] : Code as per Tommy's answer [CODE] | android|opengl-es|textures|shader | 0 | 2016-04-29T11:05:55.500Z | 2,016 | 4 | 11 | 4 | 125 | 1 | 177 | 44 | 4 | 2 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.