id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37,177,655 | SQLite database insert is somehow vanishing? | <p>I'm having a very strange issue on my Android app wherein when I am inserting a value to a DB table, the first entry is disappearing somehow. However, any subsequent entries are appearing fine.</p>
<p>To be a little more specific, part of my application allows users to create a simple log where they enter some text... | I'm having a very strange issue on my Android app wherein when I am inserting a value to a DB table, the first entry is disappearing somehow. However, any subsequent entries are appearing fine. To be a little more specific, part of my application allows users to create a simple log where they enter some text and when t... | android|database|sqlite|android-alertdialog | 0 | 2016-05-12T05:01:47.960Z | 2,016 | 5 | 5 | 3 | 291 | 2 | 2,524 | 44 | 4 | 4 | true | false | false | false | false | false | zero |
37,177,739 | How to convert arrayList<String> to json object | <p>I want to convert arraylist to json object. I did find everything in stackoverflow but could not get my answer. Here is the format which i want.</p>
<pre><code>$str = '{
"0": {
"product_name 2": "Johnson Baby (Soap)",
"product_total 1": "288"",
"product_quantity": "3"
},
"1": {
"product_name 2": "Jo... | I want to convert arraylist to json object. I did find everything in stackoverflow but could not get my answer. Here is the format which i want. [CODE] But i am unable to achieve this what i am getting is like this. [CODE] I am getting data from sqlite and storing in arraylist here is the code. [CODE] | java|android|json|sqlite | -3 | 2016-05-12T05:09:02.863Z | 2,016 | 5 | 5 | 3 | 4,938 | 3 | 302 | 47 | 4 | 3 | true | false | true | false | false | true | negative |
37,177,755 | Android Face Detection and applying the color on some parts of the face like cheeck,lips etc | <p>Can anyone tell me how to apply color for some part of the body like lips,cheeks,nose.</p>
<ol>
<li><p>I successfully ran the Google mobile vision Api for detecting face and landmarks of face like nose, mouth, cheeks etc.</p></li>
<li><p>My goal is to apply color to lips of the face like makeup lipstick.</p></li>
<... | Can anyone tell me how to apply color for some part of the body like lips,cheeks,nose. I successfully ran the Google mobile vision Api for detecting face and landmarks of face like nose, mouth, cheeks etc. My goal is to apply color to lips of the face like makeup lipstick. I find the mouth of face with RIGHT_MOUTH, LEF... | android|face-detection | 6 | 2016-05-12T05:10:21.960Z | 2,016 | 5 | 5 | 3 | 946 | 0 | 939 | 92 | 2 | 0 | false | true | false | false | false | false | medium |
37,177,759 | When only network connect, another app execute on Android | <p>I want when I start A app.</p>
<p>This my code:</p>
<p>MainActivity</p>
<pre><code>@Override
protected void onCreate(final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
netCheckAutoUpdate();
.
.
.
public void netCheckAutoUpdate() {
ConnectivityManage... | I want when I start A app. This my code: MainActivity [CODE] But now, when connect WIFI, ETHERNET, unable network always start another package app. I want when unable network, not execute another app. How can I do it programmatically? Update: netCheckAutoUpdate is check my device network state. If current network state... | android | 0 | 2016-05-12T05:10:34.427Z | 2,016 | 5 | 5 | 3 | 32 | 0 | 549 | 57 | 1 | 1 | true | true | false | false | false | false | zero |
37,177,831 | LinearLayout not Displaying | <p>Hi I'm learning Android.</p>
<p>Here is the code for my Layout:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height=... | Hi I'm learning Android. Here is the code for my Layout: [CODE] UI Screen shot: How I want my UI to look: Why is the second LinearLayout not showing? Am I doing something wrong? While using layout_width should the parent element have a fixed dimension? Please advice.. Link to my Repo: https://github.com/MukundPradeep/A... | android|xml|android-layout|android-studio|scrollview | 0 | 2016-05-12T05:15:30.157Z | 2,016 | 5 | 5 | 3 | 4,852 | 8 | 338 | 27 | 5 | 1 | true | false | true | false | false | false | zero |
37,177,850 | I can get a folder's path but not the sub folders | <p>Can anyone explain why is this not working?</p>
<p>i get my folder's path like this -</p>
<pre><code>// getting SDcard root path
File myDirectory = new File(Environment.getExternalStorageDirectory()
+ "/SecuDrive/");
</code></pre>
<p>and this is how i replace dots in all the mp3 (audio) file names with "x... | Can anyone explain why is this not working? i get my folder's path like this - [CODE] and this is how i replace dots in all the mp3 (audio) file names with "x" [CODE] for instance- from ninja.mp3 -> ninjaxmp3 but this is not renaming the files in sub directories. it only renames the files in the parent directory (/Secu... | android | 0 | 2016-05-12T05:17:27.513Z | 2,016 | 5 | 5 | 3 | 49 | 2 | 327 | 49 | 1 | 2 | true | false | false | false | false | false | zero |
37,177,853 | What is the best way to copy entire Assets directory (including subfolders and files) to External Storage in Android? | <p>I know this question has been answered before, in so many ways. But I am still missing something.
From <a href="http://www.twodee.org/blog/?p=4518" rel="nofollow">this site</a>, I found (I think) the ideal way to copy entire Assets folder to external storage -</p>
<pre><code>/**
* Copy the asset at the specified p... | I know this question has been answered before, in so many ways. But I am still missing something. From this site , I found (I think) the ideal way to copy entire Assets folder to external storage - [CODE] It works fine (copy both the folder and its contents including subfolders), if I use it as following - [CODE] But, ... | android|assets|android-assets|android-external-storage | 1 | 2016-05-12T05:17:44.437Z | 2,016 | 5 | 5 | 3 | 346 | 0 | 891 | 117 | 4 | 3 | true | true | false | false | false | false | low |
37,177,993 | Android Close Alert Dialog box and Activity together | <p>In my android application I have an alertdialog box will open as sson as the activity is created and based on the text given in that alertdialog search is done and result is displayed in a listview. But when I am clicking the backbutton, alert dialog close first and then again I need to click back button to close th... | In my android application I have an alertdialog box will open as sson as the activity is created and based on the text given in that alertdialog search is done and result is displayed in a listview. But when I am clicking the backbutton, alert dialog close first and then again I need to click back button to close the c... | android|android-activity|android-alertdialog | 0 | 2016-05-12T05:28:25.700Z | 2,016 | 5 | 5 | 3 | 1,328 | 3 | 447 | 52 | 3 | 1 | true | false | false | false | false | false | zero |
37,177,999 | java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference | <p>I have a <code>BlankFragment</code></p>
<pre><code>package com.hfad.addingafragmenttoframelayout;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
... | I have a BlankFragment [CODE] and it's layout is: [CODE] Here is the MainActivity [CODE] and here is the layout of MainActivity [CODE] In the onCreate method of activity I am adding fragment to layout. This works fine unless I try to change the Text using setText method. And I get this error: [CODE] referring to this l... | java|android|android-fragments | 7 | 2016-05-12T05:29:03.607Z | 2,016 | 5 | 5 | 3 | 45,217 | 6 | 382 | 147 | 3 | 6 | true | false | true | true | false | false | medium |
37,178,022 | Including HTML UI in android | <p>I want to include HTML UI for my android application (using android studio). I have taken one webview and included the HTML UI successfully, Now I am able to see the output also. But in the HTML UI there is one button for which I want to write onClick functionality. I tried but I am not getting output. Please help m... | I want to include HTML UI for my android application (using android studio). I have taken one webview and included the HTML UI successfully, Now I am able to see the output also. But in the HTML UI there is one button for which I want to write onClick functionality. I tried but I am not getting output. Please help me o... | javascript|android|html | 2 | 2016-05-12T05:30:21.813Z | 2,016 | 5 | 5 | 3 | 86 | 1 | 784 | 28 | 3 | 3 | true | false | false | false | false | false | low |
37,178,035 | How a item in recycler view is selected and get the item position to my activity | <p>I created a custom dialogfragment it consists of a recyclerview and a button, when I click on a item it is selected,it should highlighted and when clicking on button I want the particular item position or data of particular item get to my main activity. I tried with different code but not getting it, referred differ... | I created a custom dialogfragment it consists of a recyclerview and a button, when I click on a item it is selected,it should highlighted and when clicking on button I want the particular item position or data of particular item get to my main activity. I tried with different code but not getting it, referred different... | android|android-dialogfragment|android-dialog|android-recyclerview | 1 | 2016-05-12T05:31:14.123Z | 2,016 | 5 | 5 | 3 | 1,229 | 1 | 425 | 80 | 4 | 2 | true | false | false | false | false | false | low |
37,178,127 | NullPointerException on ImageView in Fragment in FragmentPagerAdapter | <p>I have a bunch of fragments in a FragmentPagerAdapter with one ImageView in side each fragment. If I swipe really fast this error comes up:</p>
<pre><code>E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.wilsapp.wilsapp, PID: 21319
java.lang.NullPointerException: Attempt to invok... | I have a bunch of fragments in a FragmentPagerAdapter with one ImageView in side each fragment. If I swipe really fast this error comes up: [CODE] If I swipe slowly then it works perfectly fine. Android Code (code is the same for each fragment. Code in AsyncTask): [CODE] Android onCreatView method: [CODE] how can i avo... | java|android|android-fragments|nullpointerexception | 2 | 2016-05-12T05:38:10.607Z | 2,016 | 5 | 5 | 3 | 695 | 3 | 348 | 69 | 4 | 3 | true | false | false | false | false | false | low |
37,178,128 | How to shift between two fragments activities each other in android | <p>I have two fragment activities . Now I want to shift between this .Also I want to do this after end of the first fragment activity.</p>
<p>Here are my fragment activity classes,</p>
<p><strong>MainActivity.java</strong></p>
<pre><code>import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentA... | I have two fragment activities . Now I want to shift between this .Also I want to do this after end of the first fragment activity. Here are my fragment activity classes, MainActivity.java [CODE] SecondActivity.java [CODE] Problem How could I do this? | java|android|android-fragments | 0 | 2016-05-12T05:38:18.827Z | 2,016 | 5 | 5 | 3 | 50 | 1 | 251 | 67 | 3 | 2 | true | false | false | false | false | false | zero |
37,178,153 | Uploaded image and file not open in dropbox | <p>I want upload image and file to DropBox, it's working fine but when I open the uploaded image and file from DropBox it is not opened. It shows <strong>open failed</strong>. How can I solve this problem? My code looks like this:</p>
<pre><code>MainActivity.java
public class MainActivity extends AppCompatActivit... | I want upload image and file to DropBox, it's working fine but when I open the uploaded image and file from DropBox it is not opened. It shows open failed . How can I solve this problem? My code looks like this: [CODE] | java|android|android-studio|file-upload|dropbox | 0 | 2016-05-12T05:40:18.093Z | 2,016 | 5 | 5 | 3 | 43 | 1 | 218 | 43 | 5 | 1 | true | false | false | false | false | false | zero |
37,178,189 | Using azure custom api giving error with POST | <p>I am using azure web service with custom api with POST as following : </p>
<pre><code> mClient = new MobileServiceClient(
"Your web service",
"niHVXXnRXOGVGnvEMvImMIdgnraflH99",
this).withFilter(new ProgressFilter());
loadData();
private void loadData() {
Array... | I am using azure web service with custom api with POST as following : [CODE] and when I run it on device its giving an error like following: [CODE] can anyone tell what is the problem in this ? I am very sure that URL is correct and also parameters are correct but not getting the response. Please help me. | android|azure-mobile-services | 0 | 2016-05-12T05:43:33.200Z | 2,016 | 5 | 5 | 3 | 100 | 0 | 306 | 45 | 2 | 2 | true | true | false | false | false | false | zero |
37,178,306 | Unable to Detect and handle Slow network connection.(WebServices) | <p>I am calling web service in my activity. If I am connected to Internet it calls Web service otherwise loads data from local SqLite. <strong>If I am connected to hi-speed data connection</strong>, it works correct but, if I am connected through a <strong>slow connection</strong> it shows waiting dialog box and movin... | I am calling web service in my activity. If I am connected to Internet it calls Web service otherwise loads data from local SqLite. If I am connected to hi-speed data connection , it works correct but, if I am connected through a slow connection it shows waiting dialog box and moving continuously, finally my app crashe... | android|sdk|http-post | 0 | 2016-05-12T05:51:16.533Z | 2,016 | 5 | 5 | 3 | 331 | 1 | 554 | 65 | 3 | 4 | true | false | false | false | false | false | zero |
37,178,315 | Bitmap not setting in imageView random issue | <p>I am trying to fetch file from device storage and showing it in image view .
Sometimes it is working perfectly fine, but sometimes not. Although bitmap is there but image view remains black.</p>
<p>Kindly suggest.</p>
<h1>storage file Location</h1>
<pre><code> file:/storage/emulated/0/Download/Full-hd-nature-wallpap... | I am trying to fetch file from device storage and showing it in image view . Sometimes it is working perfectly fine, but sometimes not. Although bitmap is there but image view remains black. Kindly suggest. storage file Location [CODE] method which is returning bitmap public static Bitmap convertToBitmap(File file) { [... | android|bitmap|imageview|loading | -2 | 2016-05-12T05:51:54.757Z | 2,016 | 5 | 5 | 3 | 120 | 1 | 346 | 44 | 4 | 3 | true | false | false | false | false | true | negative |
37,178,367 | How do i change the icon size in navigation drawer | <p>I want to change the icon size in navigation drawer. Could anyone tell me, how can i achieve this. here is the xml and java file.</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<group android:id="@+id/title1" android:checkabl... | I want to change the icon size in navigation drawer. Could anyone tell me, how can i achieve this. here is the xml and java file. [CODE] Activity class: [CODE] | java|android | 4 | 2016-05-12T05:56:03.187Z | 2,016 | 5 | 5 | 3 | 6,537 | 2 | 159 | 50 | 2 | 2 | true | false | true | false | false | false | low |
37,178,393 | Showing error Required XML attribute "adSize" was missing | <p>I am implementing banner ads, but getting the error "Required XML attribute "adsize" was missing". I was using <a href="https://developers.google.com/admob/android/quick-start#create_a_new_project" rel="nofollow noreferrer">the developer.google.com link to add admob</a></p>
<p>I also visited other stackoverflow que... | I am implementing banner ads, but getting the error "Required XML attribute "adsize" was missing". I was using the developer.google.com link to add admob I also visited other stackoverflow questions like as Required XML attribute 'adsize' was missing (google play service) and I have already implemented everythi... | android|xml|admob|ads | 1 | 2016-05-12T05:57:28.470Z | 2,016 | 5 | 5 | 3 | 1,830 | 1 | 531 | 57 | 4 | 2 | true | false | false | false | false | false | low |
37,178,428 | Android Support Design library component not added properly to Xamarin Android Project | <p>I've started learning Xamarin for Android in visual studio, few days back. I'm a noob to this.</p>
<p>I need to build a navigation drawer, for which I need Android support v7 component and Android Support Design Component.</p>
<p>I added both of these from Component store.</p>
<p>But the design component shows 'I... | I've started learning Xamarin for Android in visual studio, few days back. I'm a noob to this. I need to build a navigation drawer, for which I need Android support v7 component and Android Support Design Component. I added both of these from Component store. But the design component shows 'Incomplete' in brackets in c... | xamarin.android|android-support-design|xamarin-component | 0 | 2016-05-12T05:59:21.007Z | 2,016 | 5 | 5 | 3 | 656 | 1 | 627 | 86 | 3 | 0 | false | false | false | false | false | false | zero |
37,178,439 | How to parse xml response in android? | <p>In my application i am receiving the below Httpresponse from a webservice in xml format.</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<results>
<result>
<status>0</status>
<messageid>213123</messageid>
<destination>1234567890</destination>
</result&g... | In my application i am receiving the below Httpresponse from a webservice in xml format. [CODE] I tried parsing the response in the below format : [CODE] But i am getting null response as the value. How do i extract the value of the xml header? Please Help ! Thanks in Advance! | android|xml | 2 | 2016-05-12T06:00:50.763Z | 2,016 | 5 | 6 | 3 | 3,289 | 1 | 277 | 37 | 2 | 2 | true | false | true | false | false | false | low |
37,178,483 | Android Volley Error Null using Stored Procedures in EF | <p>Im consuming a RESTful Api builded with ASP EF. I have a procedure in my DB, this is it:</p>
<pre><code>ALTER PROCEDURE [Ventas].[CtasxCobxVendedor]
@AGE CHAR(1),
@VENDEDOR VARCHAR(10)
AS
BEGIN
SET NOCOUNT ON
SELECT
V.CLIENTE Codigo,
C.RazonSocialAnalitico Cliente,
C.DireccionAnalitico Direccio... | Im consuming a RESTful Api builded with ASP EF. I have a procedure in my DB, this is it: [CODE] I created the import function, and the Complex Type on VS. So this is what I got: [CODE] Then I tried to call this SP in one of my controllers, in this case is my Personal controller, like this: [CODE] When I call this metho... | android|entity-framework|stored-procedures|asp.net-web-api|android-volley | 0 | 2016-05-12T06:03:51.533Z | 2,016 | 5 | 6 | 3 | 112 | 1 | 969 | 55 | 5 | 5 | true | false | false | false | false | false | zero |
37,178,489 | Glide missing some images in loading | <p>I have a RecylerView in which each item contains Iamge, to load image I'm using Glide. The problem I'm facing is that some images in the list not showing up and in my onException call back both Exception and model are null for these images. </p>
<p><a href="https://i.stack.imgur.com/xon3B.png" rel="nofollow norefer... | I have a RecylerView in which each item contains Iamge, to load image I'm using Glide. The problem I'm facing is that some images in the list not showing up and in my onException call back both Exception and model are null for these images. if you will see the fourth item in the list images is not showing. Here is how ... | android|android-glide | 0 | 2016-05-12T06:04:17.300Z | 2,016 | 5 | 6 | 3 | 714 | 1 | 396 | 36 | 2 | 2 | true | false | false | false | false | false | zero |
37,178,545 | AlarmManager BroadcastReceiver, onReceive never called | <p>I am making an alarm clock app and I wanted to test AlarmManager Class to schedule an event for me to perform when the app is closed not a regular OS alarm my own custom alarm thats why I'm not using AlarmClock class. for some reason OnReceive() method in my class that extends BroadcastReceiver is never getting call... | I am making an alarm clock app and I wanted to test AlarmManager Class to schedule an event for me to perform when the app is closed not a regular OS alarm my own custom alarm thats why I'm not using AlarmClock class. for some reason OnReceive() method in my class that extends BroadcastReceiver is never getting called?... | java|c#|android|xamarin.android|alarmmanager | 1 | 2016-05-12T06:08:16.373Z | 2,016 | 5 | 6 | 3 | 317 | 1 | 907 | 54 | 5 | 4 | true | false | false | false | false | false | low |
37,178,620 | HTTP post request returns HTML code instead of JSON data | <p>I am trying to develop a simple client-server application in Android. I have a problem while fetching a response from PHP code. It returns an HTML code instead of JSON. Is it a problem with the WAMP server I have used?</p>
<p>Here is the PHP code:</p>
<pre><code><?php
include_once './connect_db.php';
$db = new ... | I am trying to develop a simple client-server application in Android. I have a problem while fetching a response from PHP code. It returns an HTML code instead of JSON. Is it a problem with the WAMP server I have used? Here is the PHP code: [CODE] login.java : [CODE] jsonParser.java : [CODE] | java|php|android|json | 3 | 2016-05-12T06:13:21.083Z | 2,016 | 5 | 6 | 3 | 3,472 | 3 | 292 | 56 | 4 | 3 | true | false | true | false | false | false | low |
37,178,699 | Setting TTL value in android push notification through PHP | <p>I can send push notification through PHP but what I want to know is how would I set the TTL value for same ?</p>
<p>This is the code:</p>
<pre><code><?php
define( 'API_ACCESS_KEY', 'My API key' );
$registrationIds = array( $_GET['id'] );
$msg = array
(
'message' => 'msg',
'title' => 'title',
'lar... | I can send push notification through PHP but what I want to know is how would I set the TTL value for same ? This is the code: [CODE] Couldn't find a way to do so. Any help is much appreciated. | php|android|push-notification|ttl | 1 | 2016-05-12T06:18:42.677Z | 2,016 | 5 | 6 | 3 | 727 | 1 | 193 | 58 | 4 | 1 | true | false | false | false | false | false | low |
37,178,903 | i call another activity in a listview with fragments | <p>hellow my name is carlos
I need help to connect in the listview another activities,all code is well under this part </p>
<pre><code>listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long i... | hellow my name is carlos I need help to connect in the listview another activities,all code is well under this part [CODE] Fragment2.java: [CODE] DiasList.java: [CODE] DiasListAdapter.java: [CODE] dia1.java: [CODE] listview_item.xml: [CODE] The error is : plis help me! [CODE] | android|listview|android-fragments | -4 | 2016-05-12T06:29:58.840Z | 2,016 | 5 | 6 | 3 | 224 | 1 | 276 | 52 | 3 | 7 | true | false | false | false | false | true | negative |
37,179,134 | How to update view pager when click on inner button | <p>I am trying to update listview items. Listview place in view pager. I have two button first is veg and second is non-veg when I click on veg veg item is showing and when click on non veg non veg item is show. but it is not works.</p>
<p>HomeFregment:-</p>
<pre><code>public class HomeFragment extends Fragment {
... | I am trying to update listview items. Listview place in view pager. I have two button first is veg and second is non-veg when I click on veg veg item is showing and when click on non veg non veg item is show. but it is not works. HomeFregment:- [CODE] I am new in android developing pls help me HERE MY EXM:- [CODE] Here... | android|listview|android-viewpager | 2 | 2016-05-12T06:43:01.587Z | 2,016 | 5 | 6 | 3 | 113 | 0 | 371 | 51 | 3 | 3 | true | true | false | false | false | false | low |
37,179,157 | Strange behavior of android theme Theme.AppCompat.Light.NoActionBar in Lollipop+ devices | <p>I am facing a problem while setting the <strong>Theme</strong> to my Activity. Every thing works perfectly in Pre-Lollipop devices.</p>
<p>I want to achieve this layout design :</p>
<p><strong>image:1</strong></p>
<p><a href="https://i.stack.imgur.com/n3D79.png" rel="nofollow noreferrer"><img src="https://i.stack... | I am facing a problem while setting the Theme to my Activity. Every thing works perfectly in Pre-Lollipop devices. I want to achieve this layout design : image:1 I have already done that by this xml : design.xml [CODE] I have specified margins of 1dp to my buttons to see them separated from each other.This layout works... | android|android-layout|android-5.0-lollipop|android-theme | -1 | 2016-05-12T06:44:27.970Z | 2,016 | 5 | 6 | 3 | 231 | 2 | 659 | 88 | 4 | 2 | true | false | false | false | false | true | negative |
37,179,328 | How can I create method for passing values from Activity to other components | <p>I need the <code>chapterId</code> and <code>lessonId</code> value in <code>Tablayout</code> fragments .</p>
<p>one of the solution to send data from activity to fragment is sending value with public method in activity and create a new instance in fragment and give the value in fragments .</p>
<p>I have This activi... | I need the chapterId and lessonId value in Tablayout fragments . one of the solution to send data from activity to fragment is sending value with public method in activity and create a new instance in fragment and give the value in fragments . I have This activity where i get bundle in that . [CODE] Now my question is ... | java|android|android-fragments | -2 | 2016-05-12T06:52:33.253Z | 2,016 | 5 | 6 | 3 | 39 | 2 | 356 | 76 | 3 | 1 | true | false | false | false | false | true | negative |
37,179,381 | Trying to get the MediaRecorder to reset and also to continue running when I change to a different class | <p>Currently I am facing three issues:</p>
<ol>
<li><p>Getting the MediaRecorder to reset instead of release.
I think i need to create a new instance of the MediaRecorder and release() it as well, but I do not know where. </p></li>
<li><p>I want it to keep recording audio until the phone dies and even when the user c... | Currently I am facing three issues: Getting the MediaRecorder to reset instead of release. I think i need to create a new instance of the MediaRecorder and release() it as well, but I do not know where. I want it to keep recording audio until the phone dies and even when the user changes to a different screen (i.e. goi... | java|android|audio|mediarecorder | 0 | 2016-05-12T06:55:17.243Z | 2,016 | 5 | 6 | 3 | 364 | 0 | 559 | 104 | 4 | 1 | true | true | false | false | false | false | zero |
37,179,469 | Android Studio - Trying to program an event driven Checkbox click | <p>So here is the following code
here is the XML for the checkboxes</p>
<pre><code> <CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Remember me"
android:id="@+id/rememberMe"
android:checked="false"
... | So here is the following code here is the XML for the checkboxes [CODE] and here is my function to test if it has been clicked by changing a textbox [CODE] However my program crashes as soon as I click either checkbox Any suggestions on what I am doing wrong? | android-studio|checkbox|ischecked | 0 | 2016-05-12T06:58:50.640Z | 2,016 | 5 | 6 | 3 | 61 | 1 | 259 | 65 | 3 | 2 | true | false | false | false | false | false | zero |
37,179,495 | how to query fts tables on android | <p>I am developing for android. I am using reference <a href="http://sqlite.org/fts3.html" rel="nofollow">http://sqlite.org/fts3.html</a>. I create a fts table as</p>
<pre><code>final String SQL_CREATE_TABLE_SEARCHABLE =
new StringBuilder("CREATE VIRTUAL TABLE ")
.append(SearchableEnt... | I am developing for android. I am using reference http://sqlite.org/fts3.html . I create a fts table as [CODE] COLUMN_DOG_ID is actually Text. It is a string and not a number. In any case I create the table and then I add data to it; seemingly without any trouble. But when I try to query, I always hit a dead end: I get... | android|sqlite|fts4 | 0 | 2016-05-12T06:59:41.403Z | 2,016 | 5 | 6 | 3 | 295 | 1 | 370 | 34 | 3 | 3 | true | false | false | false | false | false | zero |
37,179,623 | How to pull data from server? | <p>My Object is Food. <strong><code>List<Food> contents;</code></strong>; How to pull data from server? How to display Food Name? I use this library.</p>
<ul>
<li>Here TestRecyclerViewAdapter </li>
</ul>
<p><a href="https://github.com/florent37/MaterialViewPager/blob/master/sample/src/main/java/com/github/flore... | My Object is Food. List<Food> contents; ; How to pull data from server? How to display Food Name? I use this library. Here TestRecyclerViewAdapter https://github.com/florent37/MaterialViewPager/blob/master/sample/src/main/java/com/github/florent37/materialviewpager/sample/TestRecyclerViewAdapter.java I change like this... | java|android|android-recyclerview | 1 | 2016-05-12T07:05:09.667Z | 2,016 | 5 | 7 | 3 | 62 | 0 | 555 | 29 | 3 | 2 | true | true | false | false | false | false | low |
37,179,647 | Data is not getting added in arraylist for radiogroup? | <p>I want to add data in ArrayList "arr" according to the checkedId of the radio group.I have 4 radio buttons "a0,a1,a2,a3". So if I chose a1,the array list should add the value of rb2. And after selecting a1 if I select a2 then the previous value in "arr" should get updated (not get added after the first one) and so... | I want to add data in ArrayList "arr" according to the checkedId of the radio group.I have 4 radio buttons "a0,a1,a2,a3". So if I chose a1,the array list should add the value of rb2. And after selecting a1 if I select a2 then the previous value in "arr" should get updated (not get added after the first one) and so on.A... | android|arraylist|radio-button|radio-group | 0 | 2016-05-12T07:06:24.860Z | 2,016 | 5 | 7 | 3 | 125 | 1 | 336 | 54 | 4 | 1 | true | false | false | false | false | false | zero |
37,179,715 | Can't build Xamarin UrhoSharp.Forms sample project in release mode | <p>When i'm trying to build xamarin urhosharp <a href="https://github.com/xamarin/urho-samples/tree/master/FormsSample" rel="nofollow" title="sample project">sample project</a> "FormsSample.Droid" in release mode and i set linking to "Sdk Assemblies Only", i got an error:</p>
<blockquote>
<p>Severity Code Descriptio... | When i'm trying to build xamarin urhosharp sample project "FormsSample.Droid" in release mode and i set linking to "Sdk Assemblies Only", i got an error: Severity Code Description Project File Line Suppression State Error The "LinkAssemblies" task failed unexpectedly. Xamarin.Android.XamarinAndroidException: error XA20... | c#|android|.net|visual-studio|xamarin.android | 0 | 2016-05-12T07:09:52.883Z | 2,016 | 5 | 7 | 3 | 242 | 1 | 1,702 | 66 | 5 | 0 | false | false | false | false | false | false | zero |
37,179,730 | Cannot cast String to my list object | <p>At this line: <code>ListItemsModel listItem = getItem(position);</code> in my adapter class, I get the casting error.</p>
<p>Very strange error, considering I am not at all casting a <code>String</code> to my <code>ListItemsModel</code> object. In fact this code was working just fine, and then I updated my launcher... | At this line: ListItemsModel listItem = getItem(position); in my adapter class, I get the casting error. Very strange error, considering I am not at all casting a String to my ListItemsModel object. In fact this code was working just fine, and then I updated my launcher icons (unrelated) and now I get this error. Any i... | android|listview|arraylist|android-arrayadapter | 0 | 2016-05-12T07:10:19.657Z | 2,016 | 5 | 7 | 3 | 753 | 2 | 420 | 36 | 4 | 4 | true | false | false | false | false | false | zero |
37,179,741 | How to inspect 'class not found' problems in layout files from Android Studio during developing? | <p>After refactoring my project files(including delete files, moving files etc.), the result app have crashed sometimes because of <code>'java.lang.ClassNotFoundException'</code> about some custom widget.
<a href="http://i.stack.imgur.com/uLfUS.png" rel="nofollow">Crash Message: 'class not found during layout inflatin... | After refactoring my project files(including delete files, moving files etc.), the result app have crashed sometimes because of 'java.lang.ClassNotFoundException' about some custom widget. Crash Message: 'class not found during layout inflating...' from logcat screenshot. I know that this is about layout file inflating... | android|android-layout|android-studio|lint|code-inspection | 3 | 2016-05-12T07:10:38.950Z | 2,016 | 5 | 7 | 3 | 110 | 0 | 852 | 96 | 5 | 0 | false | true | false | false | false | false | low |
37,179,759 | Get Type of ParameterizedType from generic | <p>I cannot understand fully how reflect works, so I'm having some trouble trying to register a custom type adapter for my <code>GsonBuilder</code>.</p>
<p>I need to register a type adapter for a <code>List<Something></code> type.</p>
<p>This is a working code:</p>
<pre><code> gsonBuilder.registerTypeAdapte... | I cannot understand fully how reflect works, so I'm having some trouble trying to register a custom type adapter for my GsonBuilder . I need to register a type adapter for a List<Something> type. This is a working code: [CODE] The thing is that I have a lot of classes to register my type adapter, and I have a ListDeser... | java|android|generics|gson | 0 | 2016-05-12T07:11:51.587Z | 2,016 | 5 | 7 | 3 | 1,386 | 1 | 642 | 42 | 4 | 2 | true | false | false | false | false | false | zero |
37,179,938 | Android why NameSpace app not found | <p>I see below code to add actions on Toolbar from this link</p>
<p><a href="https://developer.android.com/training/appbar/actions.html" rel="nofollow noreferrer">https://developer.android.com/training/appbar/actions.html</a></p>
<p>but <code>app:showAsActions</code> error, why this <strong>app</strong> not found?</p... | I see below code to add actions on Toolbar from this link https://developer.android.com/training/appbar/actions.html but app:showAsActions error, why this app not found? [CODE] After i searched i added xmlns:app="http://schemas.android.com/apk/res-auto to menu node, but still got Unexpected namespace prefix 'app' for t... | android|xml | 1 | 2016-05-12T07:21:46.600Z | 2,016 | 5 | 7 | 3 | 4,281 | 1 | 385 | 35 | 2 | 2 | true | false | true | false | false | false | low |
37,179,957 | BroadcastReceiver cannot show notification when app closed/killed | <p>My task is to set a alarm to trigger receiver to show notification a specific time.</p>
<p>And the code works perfectly if app is opened or just in background.</p>
<p>At the time app is being killed, receiver can still be triggered when alarm is executed. </p>
<p>However, no notification was shown.</p>
<p>What c... | My task is to set a alarm to trigger receiver to show notification a specific time. And the code works perfectly if app is opened or just in background. At the time app is being killed, receiver can still be triggered when alarm is executed. However, no notification was shown. What can I do? Alarm function: [CODE] Alar... | android|notifications|broadcastreceiver|alarm|android-broadcastreceiver | 2 | 2016-05-12T07:22:27.090Z | 2,016 | 5 | 7 | 3 | 2,583 | 2 | 356 | 65 | 5 | 3 | true | false | false | false | false | false | low |
37,180,027 | How to detect the long pressed position of an Any View? | <p>I am creating a custom UI component where user can upload an image of a map and then user can specify certain locations and Display a pin. First upon image of the map loaded user will be able to pan and zoom to any position. for this I used following example which works like a charm.
<a href="http://www.c-sharpcorn... | I am creating a custom UI component where user can upload an image of a map and then user can specify certain locations and Display a pin. First upon image of the map loaded user will be able to pan and zoom to any position. for this I used following example which works like a charm. TouchImageView Next part was to add... | java|android|touch | 1 | 2016-05-12T07:25:46.453Z | 2,016 | 5 | 7 | 3 | 73 | 1 | 884 | 55 | 3 | 1 | true | false | false | false | false | false | low |
37,180,076 | MultiAutoCompleteTextView Custom adapter but i m not able to avoid dropdown dismiss | <p><code>MultiAutoCompleteTextView</code> Custom adapter, How to <code>dismissDropDown</code>
my code click listener is not working.</p>
<p><a href="http://i.stack.imgur.com/pSq7F.png" rel="nofollow">output image</a></p>
<p>Fragment </p>
<pre><code>public class ShareDialogFragment extends DialogFragment implements ... | MultiAutoCompleteTextView Custom adapter, How to dismissDropDown my code click listener is not working. output image Fragment [CODE] and My Custom Adapter MultiAutoCompleteTextView Code: [CODE] | android | 1 | 2016-05-12T07:28:05.667Z | 2,016 | 5 | 7 | 3 | 174 | 0 | 193 | 83 | 1 | 2 | true | true | false | false | false | false | low |
37,180,158 | Staggered View with Recyclerview | <p>i am creating staggered view inside RecyclerView and showing SD card folder images.</p>
<p>What i have done : I managed to create folder on SD card and saving all clicked images there . </p>
<p><strong>iSSUE : Now i am unable to show those images in folder on staggered recycler view .</strong> </p>
<p>Recyclervie... | i am creating staggered view inside RecyclerView and showing SD card folder images. What i have done : I managed to create folder on SD card and saving all clicked images there . iSSUE : Now i am unable to show those images in folder on staggered recycler view . Recyclerview layout: [CODE] RecyclerActivity.class [CODE]... | android|android-camera|android-recyclerview|android-sdcard|staggered-gridview | 0 | 2016-05-12T07:32:08.213Z | 2,016 | 5 | 7 | 3 | 1,155 | 1 | 597 | 32 | 5 | 6 | true | false | false | false | false | false | zero |
37,180,220 | POST data using Volley give error in Android | <p>I am try to make a login webside form app, so trying make a app to login webside maybe like wiki or another, but stack at POST username and password for login.</p>
<pre><code>public class LoginActivity extends AppCompatActivity implements View.OnClickListener {
public static final String LOGIN_URL = "https://ex... | I am try to make a login webside form app, so trying make a app to login webside maybe like wiki or another, but stack at POST username and password for login. [CODE] but i get logcat like this [CODE] can anybody tell where i do wrong? | android|android-volley | 1 | 2016-05-12T07:35:08.717Z | 2,016 | 5 | 7 | 3 | 420 | 1 | 235 | 44 | 2 | 2 | true | false | false | false | false | false | low |
37,180,294 | RecyclerView with the design side of xml | <p>When I use RecyclerView in my XML, I have a "parsing error" in the design part of the XML :
<a href="https://i.stack.imgur.com/ORiAO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ORiAO.png" alt="graphical editor"></a></p>
<p>This is my XML :</p>
<pre><code><?xml version="1.0" encoding="utf-... | When I use RecyclerView in my XML, I have a "parsing error" in the design part of the XML : This is my XML : [CODE] In the Gradle I compile these libs : [CODE] And this is the SDK I use : [CODE] This is what I have in my "parsing error" : [CODE] | android|android-recyclerview | 0 | 2016-05-12T07:38:40.537Z | 2,016 | 5 | 7 | 3 | 96 | 1 | 245 | 40 | 2 | 4 | true | false | false | false | false | false | zero |
37,180,378 | Android - OpenCV error: Cannot load info library for OpenCV | <p>I already setup OpenCV SDK in Android Studio (<a href="https://www.learn2crack.com/2016/03/setup-opencv-sdk-android-studio.html" rel="noreferrer">https://www.learn2crack.com/2016/03/setup-opencv-sdk-android-studio.html</a>) but it seems I got this kind of error message.</p>
<pre><code>05-12 03:30:08.819 5480-5480/m... | I already setup OpenCV SDK in Android Studio ( https://www.learn2crack.com/2016/03/setup-opencv-sdk-android-studio.html ) but it seems I got this kind of error message. [CODE] I already include opencv_java3 into JNI folder. | java|android|opencv | 7 | 2016-05-12T07:42:15.153Z | 2,016 | 5 | 7 | 3 | 24,963 | 5 | 223 | 59 | 3 | 1 | true | false | true | true | false | false | medium |
37,180,557 | Android and YoutubePlayer : Error creating YouTubePlayerView | <p>I am facing a problem with YoutubePlayer, I put it inside a fragment like this : </p>
<pre><code>public class VideoFragment extends YouTubePlayerSupportFragment {
public VideoFragment() { }
public static Fragment newInstance(String url) {
VideoFragment f = new VideoFragment();
Bundle b = new Bundle();
... | I am facing a problem with YoutubePlayer, I put it inside a fragment like this : [CODE] And I call it from my other fragment in this way : [CODE] However, i keep getting this error : YouTubeAndroidPlayerAPI: Error creating YouTubePlayerView com.google.android.youtube.player.internal.w$a: Exception thrown by invoked con... | android|android-fragments|youtube|youtube-api|android-youtube-api | 0 | 2016-05-12T07:50:45.667Z | 2,016 | 5 | 7 | 3 | 602 | 1 | 1,093 | 60 | 5 | 2 | true | false | false | false | false | false | zero |
37,180,578 | image uploading to server along with username in android | <p>I am making a demo app which would store values along with image in MYSQL, my problem is I am able to upload image in database but when I try to add username through editText to that table on Submit button it gives in Toast</p>
<p>This is my php file </p>
<pre><code><?php
if($_SERVER['REQUEST_METHOD']=='POST')... | I am making a demo app which would store values along with image in MYSQL, my problem is I am able to upload image in database but when I try to add username through editText to that table on Submit button it gives in Toast This is my php file [CODE] This is my Java file MainActivity.jav [CODE] This is my RequestHandle... | php|android|mysql | 0 | 2016-05-12T07:51:40.140Z | 2,016 | 5 | 7 | 3 | 71 | 0 | 380 | 56 | 3 | 4 | true | true | false | false | false | false | zero |
37,180,591 | Android app launch first time launch is taking more time even some time 30 sec and more | <p>Below is log when app is first time installing:</p>
<blockquote>
<p>05-12 13:16:23.632 28250-28250/com.app.projectName W/System: ClassLoader referenced unknown path: /data/app/com.app.projectName-1/lib/arm
05-12 13:16:59.041 28250-28250/com.app.projectName W/System: ClassLoader referenced unknown path: /data/ap... | Below is log when app is first time installing: 05-12 13:16:23.632 28250-28250/com.app.projectName W/System: ClassLoader referenced unknown path: /data/app/com.app.projectName-1/lib/arm 05-12 13:16:59.041 28250-28250/com.app.projectName W/System: ClassLoader referenced unknown path: /data/app/com.app.projectName-1/lib/... | android|delay|android-multidex | 10 | 2016-05-12T07:52:03.203Z | 2,016 | 5 | 7 | 3 | 4,370 | 2 | 1,192 | 87 | 3 | 1 | true | false | true | false | true | false | medium |
37,180,665 | Android: Delete all sqlite rows NOT IN top 5 | <p>I have a database for my leaderboard. Currently, I insert all scores into my leaderboard, and select the 5 highest scores to show on my app. I think it would take up too much room to never delete the other scores, so I would like to delete them. How can I do this?</p>
<p>Here's how I select the top 5 scores, ranked... | I have a database for my leaderboard. Currently, I insert all scores into my leaderboard, and select the 5 highest scores to show on my app. I think it would take up too much room to never delete the other scores, so I would like to delete them. How can I do this? Here's how I select the top 5 scores, ranked first by s... | java|android|sqlite | 1 | 2016-05-12T07:55:02.110Z | 2,016 | 5 | 7 | 3 | 111 | 2 | 605 | 44 | 3 | 4 | true | false | false | false | false | false | low |
37,180,873 | Failing bluetooth sequence | <p>I'm trying to make a simple connection sequence to a serial bluetooth device at the beginning of my app. Right now, all of this is inside <code>onCreate ()</code>:</p>
<pre><code> BT = BluetoothAdapter.getDefaultAdapter();
BT.enable();
if(!BT.isEnabled()) {
Intent enabler = new Intent(BluetoothA... | I'm trying to make a simple connection sequence to a serial bluetooth device at the beginning of my app. Right now, all of this is inside onCreate () : [CODE] The goal is to connect to the first available paired device. So far it always displays "Failed." even when I have an unconnected paired device sitting next to th... | android|bluetooth | 0 | 2016-05-12T08:06:12.300Z | 2,016 | 5 | 8 | 3 | 33 | 2 | 488 | 26 | 2 | 1 | true | false | false | false | false | false | zero |
37,180,876 | Android RecyclerView inside popupwindow is not working? | <h1>popup_layout</h1>
<pre><code><android.support.v7.widget.CardView
android:id="@+id/cardView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="2dp"
app:cardUseCompatPadding="true">
<android.support.v7.widget.R... | popup_layout [CODE] Above code is design for How PopUpWindow will look like. I am opening this PopWindows on EditText.addTextChangedListener.onTextChanged() by calling following method: [CODE] But what I can see through above code is : A blank PopUpWindow on Text change listener. What I am doing wrong here? edit Adding... | java|android|android-layout|android-activity|popupwindow | 5 | 2016-05-12T08:06:20.390Z | 2,016 | 5 | 8 | 3 | 2,220 | 0 | 359 | 55 | 5 | 3 | true | true | false | false | false | false | low |
37,180,879 | Getting System.InvalidCastException in c# | <p>I'm trying to access global activity variables (which I can't make as static) from a BroadcastReceiver . For that, I create a instance of the activity this way:</p>
<pre><code>class wifiReceiver : BroadcastReceiver
{
public override void OnReceive(Context context, Intent intent)
{
MainActivity activ... | I'm trying to access global activity variables (which I can't make as static) from a BroadcastReceiver . For that, I create a instance of the activity this way: [CODE] But i get System.InvalidCastException: Specified cast is not valid. in instance creation line. What am i doing wrong? EDIT: Some code of my activity [CO... | c#|android|xamarin|broadcastreceiver | 0 | 2016-05-12T08:06:30.970Z | 2,016 | 5 | 8 | 3 | 507 | 1 | 378 | 41 | 4 | 3 | true | false | false | false | false | false | zero |
37,180,910 | Could not create Android emulator: Failed to parse AVD config file | <p>Headless Linux 64-bit. Jenkins is trying to create android emulator but fails with these settings:</p>
<pre><code>[android] Using Android SDK: /opt/android-sdk-linux
[android] Creating Android AVD: /var/lib/jenkins/.android/avd/hudson_en-US_120_768x1200_Google_Inc._Google_APIs_23_google_apis-x86.avd
[android] /opt/... | Headless Linux 64-bit. Jenkins is trying to create android emulator but fails with these settings: [CODE] Also tried other ABI's for same device: armeabi_v7 and google_apis/x86 I am trying to create this device like that because I need Google Play Services. I was able to create and run emulator with following settings:... | android|jenkins|emulation | 5 | 2016-05-12T08:08:06.650Z | 2,016 | 5 | 8 | 3 | 3,344 | 2 | 437 | 66 | 3 | 2 | true | false | true | false | false | false | low |
37,180,950 | Dialog show() not working in MainActivity | <p>I am loading some data in MainActivity and trying to show a splash screen while loading. I can't use another activity as I am loading data in main activity only, so I am using dialogs to display a picture.</p>
<pre><code>protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState)... | I am loading some data in MainActivity and trying to show a splash screen while loading. I can't use another activity as I am loading data in main activity only, so I am using dialogs to display a picture. [CODE] But the dialog is not displaying untill the oncreate method is done. If I run this I can't see the dialog s... | android|dialog|splash-screen | 1 | 2016-05-12T08:09:58.627Z | 2,016 | 5 | 8 | 3 | 991 | 3 | 694 | 41 | 3 | 1 | true | false | false | false | false | false | low |
37,180,960 | An error occurred while installing json (1.8.3), and Bundler cannot continue on windows 7 | <p>I am getting the following error while trying to install
<strong>gem install -v '1.8.3'</strong>
sys conf: windows 7 64 bit 8 gb Ram </p>
<blockquote>
<p>gem install json -v '1.8.3' Temporarily enhancing PATH to include
DevKit... Building native extensions. This could take a while...
ERROR: Error installin... | I am getting the following error while trying to install gem install -v '1.8.3' sys conf: windows 7 64 bit 8 gb Ram gem install json -v '1.8.3' Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing json: ERROR: Failed to build gem native extension... | ruby|xamarin|rubygems|xamarin.android | 0 | 2016-05-12T08:10:51.160Z | 2,016 | 5 | 8 | 3 | 549 | 1 | 13,321 | 89 | 4 | 1 | true | false | false | false | false | false | zero |
37,181,112 | All checkbox in listview is not getting visible from invisible state when button is clicked from Mainactivity | <p>I am new to android. I am struggling with the checkbox in listview. By default I made my checkbox in listview to be in INVISIBLE mode when the button is clicked from MainActivity. I want to all checkbox in listview to be in VISIBLE mode but when I am clicking the button check box is VISIBLE in only one list row in a... | I am new to android. I am struggling with the checkbox in listview. By default I made my checkbox in listview to be in INVISIBLE mode when the button is clicked from MainActivity. I want to all checkbox in listview to be in VISIBLE mode but when I am clicking the button check box is VISIBLE in only one list row in all ... | java|android|listview|checkbox | 0 | 2016-05-12T08:17:43.443Z | 2,016 | 5 | 8 | 3 | 79 | 2 | 401 | 109 | 4 | 1 | true | false | false | false | false | false | zero |
37,181,113 | LinearLayout scroll to the top | <p>I write a RecyclerViewRefresh follow SwipeRefreshLayout.class. When I pull the view until it doesn't move and then release,the view reset to the original. The issue is that view should trigger Timer and then that Timer reset the view. I couldn't find the reason.</p>
<p>Please tell me why offsetTopAndBottom() can ma... | I write a RecyclerViewRefresh follow SwipeRefreshLayout.class. When I pull the view until it doesn't move and then release,the view reset to the original. The issue is that view should trigger Timer and then that Timer reset the view. I couldn't find the reason. Please tell me why offsetTopAndBottom() can make the view... | android | 5 | 2016-05-12T08:17:45.763Z | 2,016 | 5 | 8 | 3 | 1,001 | 2 | 543 | 30 | 1 | 1 | true | false | false | false | false | false | low |
37,181,158 | unable to open activity on notification click | <p>I want to open different classes depending upon notification content which i have received. I am able to open MainActivity class on notification click but not OpenActivityOne. Don't know the reason why. </p>
<pre><code>private void sendNotification(String msg) {
Log.d(TAG, "Preparing to send notification...: " + ms... | I want to open different classes depending upon notification content which i have received. I am able to open MainActivity class on notification click but not OpenActivityOne. Don't know the reason why. [CODE] OpenActivityOne.java [CODE] | android|android-activity|push-notification|google-cloud-messaging | 0 | 2016-05-12T08:19:59.250Z | 2,016 | 5 | 8 | 3 | 340 | 1 | 237 | 45 | 4 | 2 | true | false | false | false | false | false | zero |
37,181,243 | Contact name not showing in Notifications when Sms receives | <p>I am making an app in which when a new SMS receives from known number i.e. if the number is saved in contact list then push notification show. Now the problem is that the notification is not showing display name of contact. It can show message number and message content but not showing display name for that contact.... | I am making an app in which when a new SMS receives from known number i.e. if the number is saved in contact list then push notification show. Now the problem is that the notification is not showing display name of contact. It can show message number and message content but not showing display name for that contact. My... | android|push-notification|broadcastreceiver|title | 1 | 2016-05-12T08:24:10.457Z | 2,016 | 5 | 8 | 3 | 171 | 1 | 886 | 59 | 4 | 6 | true | false | false | false | false | false | low |
37,181,285 | SharedPreferences to save more than one values returning null while retriving | <pre><code>public abstract class CartSharedPrefrences {
public static boolean addFavoriteItem(Activity activity,String favoriteItem){
//Get previous favorite items
String favoriteList = getStringFromPreferences(activity,null,"favorites");
// Append new Favorite item
if(favoriteList!=... | [CODE] i have tried out above solution, while debugging it saves data to shared preferences but when i am trying to retrieve data from shared preferences it will returning null, while adding data to shared preferences it is retrieving the method to check if previously any data available in shared preferences or not, at... | android|null|sharedpreferences | -1 | 2016-05-12T08:26:10.100Z | 2,016 | 5 | 8 | 3 | 117 | 1 | 526 | 77 | 3 | 1 | true | false | false | false | false | true | negative |
37,181,322 | Combining gestures with Cardboard navigation | <p>I have a Rajawali Cardboard renderer (texture painted on a sphere, similar to the example), and it works totally fine with sensor-based navigation. I'm also getting touch input, and accumulating in two variables the total angular horizontal and vertical movement. In monocular view, the idea is to allow both forms ... | I have a Rajawali Cardboard renderer (texture painted on a sphere, similar to the example), and it works totally fine with sensor-based navigation. I'm also getting touch input, and accumulating in two variables the total angular horizontal and vertical movement. In monocular view, the idea is to allow both forms of na... | android|opengl-es|google-cardboard|rajawali|rajawalivr | 1 | 2016-05-12T08:27:59.917Z | 2,016 | 5 | 8 | 3 | 112 | 0 | 896 | 44 | 5 | 1 | true | true | false | false | false | false | low |
37,181,329 | Unlisted Videos won't play | <p>My unlisted (not private, just unlisted!) videos won't play. Setting the PlayerStateChangeListener revealed, that the videos won't play because of an <code>INTERNAL_ERROR</code>: </p>
<pre><code>YouTubePlayerSupportFragment fragment = YouTubePlayerSupportFragment.newInstance();
getChildFragmentManager()
.b... | My unlisted (not private, just unlisted!) videos won't play. Setting the PlayerStateChangeListener revealed, that the videos won't play because of an INTERNAL_ERROR : [CODE] More about errors can be found here . Any public video id I set for MY_VIDEO_ID plays without any problem so far. Has anyone played unlisted video... | android|youtube-api | 2 | 2016-05-12T08:28:12.470Z | 2,016 | 5 | 8 | 3 | 1,112 | 0 | 342 | 26 | 2 | 1 | true | true | false | false | false | false | low |
37,181,362 | Issues Resolving Overdraw in Android | <p>I have massive overdraw issues in my app, worst part is its the entire window even my toolbar is affected, I have trimmed down my layouts to the lowest possible hierarchy I can come up with but to no avail, here is a screenshot of my app<a href="https://i.stack.imgur.com/YQMMz.png" rel="nofollow noreferrer"><img src... | I have massive overdraw issues in my app, worst part is its the entire window even my toolbar is affected, I have trimmed down my layouts to the lowest possible hierarchy I can come up with but to no avail, here is a screenshot of my app I have an activity which am inflating in it a fragment with a recyclerview Here is... | android|android-layout|android-fragments | 1 | 2016-05-12T08:29:44.933Z | 2,016 | 5 | 8 | 3 | 458 | 2 | 584 | 36 | 3 | 4 | true | false | false | false | false | false | low |
37,181,389 | OnItemClickListener not working but OnItemLongClickListener is working on GridView | <p>I am having a problem with a clickListener on my gridview. The LongClickListener works without issue. But I cannot seem to get any response from the click Listener.</p>
<p>My code is below.</p>
<p>Im confused as to why the long click works but not the normal click,</p>
<p>Any pointers would be appreciated</p>
<p... | I am having a problem with a clickListener on my gridview. The LongClickListener works without issue. But I cannot seem to get any response from the click Listener. My code is below. Im confused as to why the long click works but not the normal click, Any pointers would be appreciated Thanks [CODE] grid_view is [CODE] ... | android|gridview|onitemclicklistener | 13 | 2016-05-12T08:30:55.493Z | 2,016 | 5 | 8 | 3 | 3,106 | 7 | 839 | 82 | 3 | 4 | true | false | true | false | true | false | medium |
37,181,430 | Android SDK does not show the Android support library | <p>I am new to Android development. I just installed Android SDK and with required packages. </p>
<p>In eclipse, I created my first Android project and came through all the steps of the wizard until the final step. In the last step, when I finish the creation of the project, the wizard does not disappear, but the proj... | I am new to Android development. I just installed Android SDK and with required packages. In eclipse, I created my first Android project and came through all the steps of the wizard until the final step. In the last step, when I finish the creation of the project, the wizard does not disappear, but the project gets cre... | android|eclipse|android-support-library|android-sdk-2.3 | 1 | 2016-05-12T08:33:02.153Z | 2,016 | 5 | 8 | 3 | 4,971 | 1 | 931 | 53 | 4 | 0 | false | false | true | false | false | false | low |
37,181,492 | Catering for devices running Jelly bean as well as versions later than Jelly bean when obtaining application data usage | <p>I would like to cater for devices running on jelly bean version and below as well as versions above Jelly Bean.</p>
<p>My method is supposed to get app usage/traffic for all applications based on the application ID. Please take note
of this line <code>rx = Long.parseLong(String.valueOf(id));</code> on the first if ... | I would like to cater for devices running on jelly bean version and below as well as versions above Jelly Bean. My method is supposed to get app usage/traffic for all applications based on the application ID. Please take note of this line rx = Long.parseLong(String.valueOf(id)); on the first if clause which caters for ... | java|android|android-studio | 9 | 2016-05-12T08:35:51.303Z | 2,016 | 5 | 8 | 3 | 167 | 1 | 837 | 119 | 3 | 2 | true | false | false | false | false | false | medium |
37,181,503 | set fetched data from database to a textview after calling intent | <p>I've created a <code>Textview</code> with a <code>null</code> value and button in my my <code>Mainactivity</code> and fetched some data from <code>sql database server</code> using <code>AsyncTask</code> method on button click and stored in to my <code>textview</code>. <br>Then I called an intent to another <code>ac... | I've created a Textview with a null value and button in my my Mainactivity and fetched some data from sql database server using AsyncTask method on button click and stored in to my textview . Then I called an intent to another activity activity2 to show something and I returned to my Mainactivity using intent.But I can... | android|database|android-intent | 0 | 2016-05-12T08:36:18.193Z | 2,016 | 5 | 8 | 3 | 518 | 2 | 617 | 65 | 3 | 6 | true | false | false | false | false | false | zero |
37,181,553 | How to make users auto update application using google play store | <p>I am working in a small organization where we develop our own applications to be used by our own employees in the field. Already 150 employees installed our application in their tablets from SDcard.</p>
<p>We realized some changes required so we developed another version of our application.Now we want application t... | I am working in a small organization where we develop our own applications to be used by our own employees in the field. Already 150 employees installed our application in their tablets from SDcard. We realized some changes required so we developed another version of our application.Now we want application to be update... | android|cordova|google-play | 0 | 2016-05-12T08:38:35.127Z | 2,016 | 5 | 8 | 3 | 200 | 2 | 1,048 | 65 | 3 | 0 | false | false | false | false | false | false | zero |
37,181,580 | Button onClick, Cycle through Colors/Backgrounds | <p>I am using Android Studio<br>
I'm wanting to change the color of my button, with each click.<br>
To cycle it through around 10 colors and start over again in a continuous loop. </p>
<p>For example I'm using <code>setBackgroundResource(@drawable/oval)</code></p>
<pre><code>oval = blue circle button
oval2 = red c... | I am using Android Studio I'm wanting to change the color of my button, with each click. To cycle it through around 10 colors and start over again in a continuous loop. For example I'm using setBackgroundResource(@drawable/oval) [CODE] So far I have it that button1 starts as oval(blue) and onClick turns into oval2(red)... | android|android-studio|android-button | 2 | 2016-05-12T08:39:48.623Z | 2,016 | 5 | 8 | 3 | 857 | 1 | 491 | 48 | 3 | 3 | true | false | false | false | false | false | low |
37,181,748 | exception when click on listview before image loads | <p>There is a custom listview which displays image and text. I am using Glide image library to load the image. So when i search the image and text displays in listview but before image loads if i click on it Java Null Pointer exception is seen. How to avoid making click before image loads or any change is required to ... | There is a custom listview which displays image and text. I am using Glide image library to load the image. So when i search the image and text displays in listview but before image loads if i click on it Java Null Pointer exception is seen. How to avoid making click before image loads or any change is required to done... | android|listview|onitemclicklistener|android-glide|onitemclick | 0 | 2016-05-12T08:47:09.313Z | 2,016 | 5 | 8 | 3 | 195 | 2 | 616 | 51 | 5 | 3 | true | false | false | false | false | false | zero |
37,181,867 | How to add CardView in RecyclerView Dynamically in Android??? | <blockquote>
<p>I am working on a application where I have to add <em>cardView</em> to
<em>recyclerView</em> <em>dynamically</em>, but it is not working.</p>
<p>This is my code :-</p>
</blockquote>
<pre><code>Button okBTN;
EditText enterCornerNumberET;
private RecyclerView mRecyclerView;
privat... | I am working on a application where I have to add cardView to recyclerView dynamically , but it is not working. This is my code :- [CODE] Please have a look and let me know what mistake I am doing here. Thanks in advance. :) | android|android-recyclerview | -2 | 2016-05-12T08:51:50.047Z | 2,016 | 5 | 8 | 3 | 1,299 | 2 | 224 | 61 | 2 | 1 | true | false | false | false | false | true | negative |
37,181,870 | Running a service with Calendar time checking | <p>I'm writing an application about notification. I want to notify user at 6PM everyday (no matter minute or sec) even if they closed app. I used a Service to let my program run and cannot be close (Service -> onStartCommand -> STICKY).
I know in function onStartCommand can help me check the time. But it only can check... | I'm writing an application about notification. I want to notify user at 6PM everyday (no matter minute or sec) even if they closed app. I used a Service to let my program run and cannot be close (Service -> onStartCommand -> STICKY). I know in function onStartCommand can help me check the time. But it only can check 1 ... | android|service|timer | 0 | 2016-05-12T08:51:55.127Z | 2,016 | 5 | 8 | 3 | 52 | 2 | 467 | 45 | 3 | 1 | true | false | false | false | false | false | zero |
37,181,942 | Unable to receive push notification in Android using Parse | <p>In Parse console it shows Delivery report as successful, but onPushReceive is not getting called at all. What am I missing here? any help would be appreciated. </p>
<p>Below is my code.
Manifest code: </p>
<pre><code> <receiver
android:name="com.google.android.gms.gcm.GcmReceiver"
android:pe... | In Parse console it shows Delivery report as successful, but onPushReceive is not getting called at all. What am I missing here? any help would be appreciated. Below is my code. Manifest code: [CODE] PushReceiver class: [CODE] | android|parse-platform|push-notification | 7 | 2016-05-12T08:55:27.703Z | 2,016 | 5 | 8 | 3 | 751 | 6 | 226 | 58 | 3 | 2 | true | false | false | false | false | false | medium |
37,181,967 | Attempt to invoke virtual method 'void android.widget.ListView.clearTextFilter()' on a null object reference | <p>Now im making searchview in my listview </p>
<p>and here is my code</p>
<pre><code>package intikom.streammobile.Customer;
import android.app.ProgressDialog;
import android.app.SearchManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.... | Now im making searchview in my listview and here is my code [CODE] and this is the XMl Layout menu [CODE] and in logcat says : Attempt to invoke virtual method 'void android.widget.ListView.clearTextFilter()' on a null object reference Can you tell me where i am wrong? | java|android|searchview | 1 | 2016-05-12T08:56:37.480Z | 2,016 | 5 | 8 | 3 | 2,699 | 1 | 269 | 108 | 3 | 2 | true | false | true | false | false | false | low |
37,181,992 | Android Studio NDK Build trouble Error:Execution failed for task ':app:ndkBuild' | <p>I'm using the latest android studio build 1.5 ,since i want to import an eclipse project that needs NDK. My project is working. i try to import org.apache.tools.ant.taskdefs.condition.Os But it's working when i built APK, It's make error:</p>
<pre><code>Error:Execution failed for task ':app:ndkBuild'.
> A proble... | I'm using the latest android studio build 1.5 ,since i want to import an eclipse project that needs NDK. My project is working. i try to import org.apache.tools.ant.taskdefs.condition.Os But it's working when i built APK, It's make error: [CODE] My build.gradle: [CODE] My local.properties: [CODE] Please help my fix err... | android|android-ndk|build.gradle | 1 | 2016-05-12T08:57:49.817Z | 2,016 | 5 | 8 | 3 | 3,438 | 1 | 343 | 80 | 3 | 3 | true | false | true | false | false | false | low |
37,182,048 | How can I add colors, background or animation to a listview | <p>Hello I have a simple listview in my android fragment How can I add colors, background or animation
thanks</p>
<p>Edit
I want to add 2 alternating background images exp:
row1 image1, row2 image2, row3 image1, row4:image2........
The first error is : cannot resolve symbol arrayList</p>
<pre><code>public View onCrea... | Hello I have a simple listview in my android fragment How can I add colors, background or animation thanks Edit I want to add 2 alternating background images exp: row1 image1, row2 image2, row3 image1, row4:image2........ The first error is : cannot resolve symbol arrayList [CODE] fragment_user.xml [CODE] list_row.xml ... | android|listview|fragment | 0 | 2016-05-12T09:00:14.117Z | 2,016 | 5 | 9 | 3 | 219 | 2 | 498 | 59 | 3 | 5 | true | false | false | false | false | false | zero |
37,182,062 | How to create a large blurred shadow behind a TextView? | <p>I would like to create a quite large, soft shadow below my TextView. However I am not able to use a large enough shadow radius, as Android will crash if I set it to more than 25.0. </p>
<p><a href="https://i.stack.imgur.com/2GnnR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2GnnR.jpg" alt="Thi... | I would like to create a quite large, soft shadow below my TextView. However I am not able to use a large enough shadow radius, as Android will crash if I set it to more than 25.0. The first of the images above is from our iOS app, and shows the shadow beneath the text as I want it. As you can see I'm not able to recre... | android|textview|material-design|shadow | 4 | 2016-05-12T09:00:51.197Z | 2,016 | 5 | 9 | 3 | 2,325 | 1 | 688 | 55 | 4 | 4 | true | false | false | false | false | false | low |
37,182,132 | android HTTP post issue with send data | <p>i want to pass data from android to web through http post.i have try but when i click on send button it does not show on the web help me to solve my problem.
here is the main activity code.</p>
<pre><code>public class HttpPostExample extends Activity {
TextView content;
EditText fname,email,login,pass;
... | i want to pass data from android to web through http post.i have try but when i click on send button it does not show on the web help me to solve my problem. here is the main activity code. [CODE] here main xml code. [CODE] this is my php script Httppost.php [CODE] When i click on save on web it does not show on the we... | php|android|http|android-studio | 0 | 2016-05-12T09:04:07.817Z | 2,016 | 5 | 9 | 3 | 41 | 1 | 322 | 38 | 4 | 3 | true | false | false | false | false | false | zero |
37,182,187 | Looped Accelerometer Data Calculations Android SDK | <p>I've been struggling with an app for fall detection for quite some time now. The app runs, but it will freeze up at times, and then resume 10-15 seconds after.
My approach is to do integral calculations (which means I had to import a third party library: Apache Commons). For these integral calculations I need norm v... | I've been struggling with an app for fall detection for quite some time now. The app runs, but it will freeze up at times, and then resume 10-15 seconds after. My approach is to do integral calculations (which means I had to import a third party library: Apache Commons). For these integral calculations I need norm valu... | java|android|arraylist|accelerometer|apache-commons | 0 | 2016-05-12T09:06:27.513Z | 2,016 | 5 | 9 | 3 | 30 | 0 | 1,113 | 50 | 5 | 3 | true | true | false | false | false | false | zero |
37,182,212 | action bar menu item are showing but not working | <p>Menu icon on actionbar are not working. Icon is showing but not clickable . I also apply different theme but not helpful.</p>
<p>Style</p>
<pre><code><resources>
<!-- Base application theme. -->
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.DayNig... | Menu icon on actionbar are not working. Icon is showing but not clickable . I also apply different theme but not helpful. Style [CODE] my main activity [CODE] android Manifest [CODE] this is my menu.xml file [CODE] i update my code and include menu.xml | android | 0 | 2016-05-12T09:07:16.597Z | 2,016 | 5 | 9 | 3 | 1,098 | 2 | 252 | 48 | 1 | 4 | true | false | false | false | false | false | zero |
37,182,309 | NullPointerException on setMenuVisibility | <p>I'm following the next tutorial to insert a tab <a href="http://www.truiton.com/2015/06/android-tabs-example-fragments-viewpager/" rel="nofollow">http://www.truiton.com/2015/06/android-tabs-example-fragments-viewpager/</a>. My problem is that I'm trying to insert it in a fragment not in an activity, but I'm getting ... | I'm following the next tutorial to insert a tab http://www.truiton.com/2015/06/android-tabs-example-fragments-viewpager/ . My problem is that I'm trying to insert it in a fragment not in an activity, but I'm getting the next error. [CODE] The fragment that contains the tabhost and the viewpager is the next: [CODE] And ... | android|android-fragments|tabs | -3 | 2016-05-12T09:11:27.827Z | 2,016 | 5 | 9 | 3 | 3,457 | 1 | 350 | 41 | 3 | 3 | true | false | true | false | false | true | negative |
37,182,385 | Android ExpandableListView inside ScrollView not expand full height | <p>I'm developing an Android app with a left slide menu contains some <code>LinearLayout</code> and a <code>ExpandableListview</code> in the middle like this image </p>
<p><a href="https://i.stack.imgur.com/xVJe7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xVJe7.png" alt="enter image description... | I'm developing an Android app with a left slide menu contains some LinearLayout and a ExpandableListview in the middle like this image The child view of ExpandableListview contains a TextView and a ListView below, ListView's visibility is gone in default. When click on the TextView , ListView will be visible. The probl... | android|android-layout|listview|expandablelistview | 0 | 2016-05-12T09:14:45.110Z | 2,016 | 5 | 9 | 3 | 3,223 | 2 | 766 | 67 | 4 | 1 | true | false | true | false | false | false | zero |
37,182,509 | Android: How to calculate height from which device is fall down using accelerometer? | <p>I have trying to calculate height from which device is fall down using accelerometer sensor but no luck.</p>
<p>I could able to detect the device fall.</p>
<p>Please share thoughts or workaround for the ask if any of you tried the same.</p>
<p>Below is code i tried.</p>
<p>'private void handleSensorChanged(Sens... | I have trying to calculate height from which device is fall down using accelerometer sensor but no luck. I could able to detect the device fall. Please share thoughts or workaround for the ask if any of you tried the same. Below is code i tried. 'private void handleSensorChanged(SensorEvent event) { if (event.sensor.ge... | java|android | 0 | 2016-05-12T09:19:27.573Z | 2,016 | 5 | 9 | 3 | 366 | 1 | 383 | 84 | 2 | 1 | true | false | false | false | false | false | zero |
37,182,561 | BLE: HID input device together with ancs service | <p>I'm working with ANCS compatible android BLE app. The ANCS content consumer is nRF52-based thingie that listens for ANCS notifications and (should) also be able to adjust phone volume.</p>
<p>I've got the ANCS as solicitated UUID in the advertisement package and the HID device UUID in the advertisement response pac... | I'm working with ANCS compatible android BLE app. The ANCS content consumer is nRF52-based thingie that listens for ANCS notifications and (should) also be able to adjust phone volume. I've got the ANCS as solicitated UUID in the advertisement package and the HID device UUID in the advertisement response package. All i... | android|hid|bluetooth-lowenergy | 0 | 2016-05-12T09:21:18.510Z | 2,016 | 5 | 9 | 3 | 804 | 1 | 1,261 | 48 | 3 | 0 | false | false | false | false | false | false | zero |
37,182,645 | Titanium module version mismatch and setup failure | <p>When I run <code>appc setup</code>, it always fails.</p>
<pre><code>$ appc setup
Finding latest version ...5.2.2 ✓
Version 5.2.2 already installed.
? Do you plan on developing Titanium apps? Yes
Checking your environment...
You have the latest Titanium SDK release 5.2.2.GA
2016-05-12T08:52:33.552Z | ERROR | tita... | When I run appc setup , it always fails. [CODE] Although appc new and appc ti build -p ios works (with warning), [CODE] appc ti build -p android doesn't. [CODE] How can I fix this? | android|ios|titanium|titanium-mobile|appcelerator-titanium | 1 | 2016-05-12T09:24:07.633Z | 2,016 | 5 | 9 | 3 | 234 | 0 | 180 | 50 | 5 | 3 | true | true | false | false | false | false | low |
37,182,696 | Make TextView not move when keyboard is on screen | <p>I have a <code>TextView</code> that keeps moving every time I tap on my <code>EditText</code> and open my soft input keyboard. The <code>EditText</code> is located at the bottom of the page. I want it so that the <code>TextView</code> that I have doesn't move when the keyboard appears. In my case, the <code>TextView... | I have a TextView that keeps moving every time I tap on my EditText and open my soft input keyboard. The EditText is located at the bottom of the page. I want it so that the TextView that I have doesn't move when the keyboard appears. In my case, the TextView is called No comments to display. Here is an example of what... | android|android-layout|keyboard|android-edittext | 0 | 2016-05-12T09:26:02.853Z | 2,016 | 5 | 9 | 3 | 2,156 | 5 | 1,015 | 49 | 4 | 1 | true | false | false | false | false | false | zero |
37,182,725 | Can't position an hyperlink in my layout textview | <p><a href="http://i.stack.imgur.com/ggtYk.png" rel="nofollow">Edit, this might show it better. Click this for the picture.</a></p>
<p>In my layout, I've lately added an information button in the top right. This caused all of my text to go upwards a bit. I downwarded that, but now the hyperlink that was in the bottom ... | Edit, this might show it better. Click this for the picture. In my layout, I've lately added an information button in the top right. This caused all of my text to go upwards a bit. I downwarded that, but now the hyperlink that was in the bottom is gone. It's still there, but not shown cause the sizes or heights or some... | android|layout|hyperlink | 0 | 2016-05-12T09:27:15.473Z | 2,016 | 5 | 9 | 3 | 46 | 1 | 1,090 | 49 | 3 | 2 | true | false | false | false | false | false | zero |
37,182,728 | how to print the email in android | <p>I am not able to send the email through editText .If I typed the email abc@gmail.com then I am able to print the email like abc. How I can read the full email abc@gmail.com.I am using this library <a href="https://github.com/splitwise/TokenAutoComplete/" rel="nofollow">https://github.com/splitwise/TokenAutoComplete/... | I am not able to send the email through editText .If I typed the email abc@gmail.com then I am able to print the email like abc. How I can read the full email abc@gmail.com.I am using this library https://github.com/splitwise/TokenAutoComplete/ and I am using following code in activity.How I can print the entered editT... | java|android | 0 | 2016-05-12T09:27:25.360Z | 2,016 | 5 | 9 | 3 | 86 | 1 | 387 | 33 | 2 | 1 | true | false | false | false | false | false | zero |
37,182,840 | how write and read on/from file only the checkbox checked? | <p>i have a problem:if i check a checkbox and after i click on another tab and after i cambeback to previous tab, the checkbox before checkked now is not checked...so i think to save and read on/from file only the checkbox checked.
I used shared preferences but it doesn't work....
So, my question is:</p>
<p>how can i ... | i have a problem:if i check a checkbox and after i click on another tab and after i cambeback to previous tab, the checkbox before checkked now is not checked...so i think to save and read on/from file only the checkbox checked. I used shared preferences but it doesn't work.... So, my question is: how can i write and r... | android|android-studio|checkbox | -1 | 2016-05-12T09:31:56.193Z | 2,016 | 5 | 9 | 3 | 73 | 3 | 471 | 58 | 3 | 2 | true | false | false | false | false | true | negative |
37,182,912 | Unable to Inflate A Simple TextView | <p>My mainactivity file does not have a single line of code, other than only setContentView & onCreate methods. But I am still getting exception at run time. Drawable folder does not have any png or xml file. </p>
<p>Here is my gradle dependencies:</p>
<pre><code>dependencies {
compile fileTree(dir: 'libs', inclu... | My mainactivity file does not have a single line of code, other than only setContentView & onCreate methods. But I am still getting exception at run time. Drawable folder does not have any png or xml file. Here is my gradle dependencies: [CODE] Here is XML: [CODE] Here is LogCat [CODE] | java|android|view|textview | 0 | 2016-05-12T09:34:42.787Z | 2,016 | 5 | 9 | 3 | 162 | 0 | 286 | 35 | 4 | 3 | true | true | false | false | false | false | zero |
37,182,918 | android 4.4 ionic hardware button back close keyboard | <p>I used ionic framework and build a app in android 4.4.
when I put a input field on some view, and make focus in it, the keybord is showing,but when I press the hardware back button, I want it to hide the keyboard,but it close the current view and go back history view, how can I let it to hide keyboard and don`t to ... | I used ionic framework and build a app in android 4.4. when I put a input field on some view, and make focus in it, the keybord is showing,but when I press the hardware back button, I want it to hide the keyboard,but it close the current view and go back history view, how can I let it to hide keyboard and don`t to clos... | android|ionic-framework | 1 | 2016-05-12T09:34:55.480Z | 2,016 | 5 | 9 | 3 | 758 | 1 | 547 | 53 | 2 | 1 | true | false | false | false | false | false | low |
37,182,979 | SearchView Filter doesn't produce the expected result | <p>After I solved my question in <a href="https://stackoverflow.com/questions/37181967/attempt-to-invoke-virtual-method-void-android-widget-listview-cleartextfilter/37182139#37182139">here</a> the search filter still doesn't work when I put text in the searchbox.</p>
<p>This is my code:</p>
<p><div class="snippet" da... | After I solved my question in here the search filter still doesn't work when I put text in the searchbox. This is my code: [CODE] my adapter [CODE] and the menu [CODE] here is before type the text enter image description here After filter enter image description here Any help is appreciated. | java|android|searchview | 1 | 2016-05-12T09:37:18.617Z | 2,016 | 5 | 9 | 3 | 324 | 1 | 292 | 53 | 3 | 3 | true | false | false | false | false | false | low |
37,183,139 | How to send Email with attachment using only email apps? | <p><strong>There are two requirements:</strong></p>
<ul>
<li>Email with attachment</li>
<li>In the <code>Intent</code> chooser, there should be only Email apps.</li>
</ul>
<p><strong>What I have known/done:</strong></p>
<ul>
<li><p><code>Intent.ACTION_SENDTO</code> with <code>intent.setData(Uri.parse("mailto:"))</co... | There are two requirements: Email with attachment In the Intent chooser, there should be only Email apps. What I have known/done: Intent.ACTION_SENDTO with intent.setData(Uri.parse("mailto:")) can make sure that there are only Email apps in Intent chooser but it will not bring attachment(For some apps like Gmail it wil... | android|email|android-intent | 12 | 2016-05-12T09:44:00.140Z | 2,016 | 5 | 9 | 3 | 1,446 | 2 | 1,245 | 56 | 3 | 1 | true | false | false | false | true | false | medium |
37,183,184 | Passing lat lng to another activity in Android | <p>I am trying to enable the user to long click on a map and, instead of creating a marker, the new activity should open. It should contain latitude and longitude, i.e. the location on which the user clicked.</p>
<p>I know data transfer is easy when I use dialogs, but I don't want to use dialog fragment in this part o... | I am trying to enable the user to long click on a map and, instead of creating a marker, the new activity should open. It should contain latitude and longitude, i.e. the location on which the user clicked. I know data transfer is easy when I use dialogs, but I don't want to use dialog fragment in this part of my app. M... | android|google-maps|android-activity | 3 | 2016-05-12T09:45:38.707Z | 2,016 | 5 | 9 | 3 | 6,938 | 6 | 530 | 46 | 3 | 2 | true | false | true | false | false | false | low |
37,183,258 | how to get email from Facebook sdk 4.0 | <p>I'm working on android Login with Facebook After login i want to save the data from Facebook i want to save the following data from Facebook</p>
<ol>
<li>First Name</li>
<li>Middle Name</li>
<li>Last Name</li>
<li>User id</li>
<li>profile picture</li>
<li>Email</li>
<li>Profile Name</li>
</ol>
<p>I tried some code... | I'm working on android Login with Facebook After login i want to save the data from Facebook i want to save the following data from Facebook First Name Middle Name Last Name User id profile picture Email Profile Name I tried some code which following [CODE] From above code i successfully get other all but can't get ema... | android|facebook|android-studio|facebook-sdk-4.0 | 2 | 2016-05-12T09:48:18.017Z | 2,016 | 5 | 9 | 3 | 2,226 | 1 | 450 | 38 | 4 | 1 | true | false | false | false | false | false | low |
37,183,330 | Fragment getting detached from Activity without obvious reason | <p>My problem: When i close my app via long-pressing home button (Samsung S4) in the app manager, everything works fine on the next startup.</p>
<p>But, when i close the app in onBackPressed when its time to close it, i get a crash on the next start of the app, because "getActivty" returns null.</p>
<p>I checked mult... | My problem: When i close my app via long-pressing home button (Samsung S4) in the app manager, everything works fine on the next startup. But, when i close the app in onBackPressed when its time to close it, i get a crash on the next start of the app, because "getActivty" returns null. I checked multiple times which li... | android|android-activity|fragment|lifecycle | 2 | 2016-05-12T09:51:18.593Z | 2,016 | 5 | 9 | 3 | 678 | 0 | 957 | 62 | 4 | 3 | true | true | false | false | false | false | low |
37,183,420 | android.view.InflateException:Binary xml file Error inflating class org.xwalk.core.Xwalkview | <p>I am trying to build hybrid app using xwalkview but continuosly getting this error. I have added crosswalk-webview-arm library and appcompat-v7 libarary and 2 jars. android-support-v4 jar and xwalk-core-library.jar. Removing any one of them is creating complie time error.</p>
<p>android_main.xml</p>
<pre><code><... | I am trying to build hybrid app using xwalkview but continuosly getting this error. I have added crosswalk-webview-arm library and appcompat-v7 libarary and 2 jars. android-support-v4 jar and xwalk-core-library.jar. Removing any one of them is creating complie time error. android_main.xml [CODE] NewMainActivity.java [C... | android|crosswalk|android-jsinterface | 2 | 2016-05-12T09:54:47.437Z | 2,016 | 5 | 9 | 3 | 2,558 | 2 | 324 | 92 | 3 | 2 | true | false | false | false | false | false | low |
37,183,432 | How to make onclicklistener for new menu item in android | <p>I am adding a menu item for texts selection. normally it shows cut,copy,share, etc.. I added a one more item to this menu and named the item as "Mark". </p>
<p>For this I added the following code in my Activity.Java</p>
<pre><code>@Override
public void onActionModeStarted(ActionMode mode) {
if (mActionMode == ... | I am adding a menu item for texts selection. normally it shows cut,copy,share, etc.. I added a one more item to this menu and named the item as "Mark". For this I added the following code in my Activity.Java [CODE] I am able to get my menu item while long press on texts.. Below is the screen, which reflects my menu ite... | android | 1 | 2016-05-12T09:55:13.733Z | 2,016 | 5 | 9 | 3 | 2,189 | 3 | 1,035 | 56 | 1 | 6 | true | false | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.