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,631,552 | Android drawing chess pieces | <p>I am currently working on developing an android version of chess, but I am having an issue with draw. I have set up a ChessboardView class that extends view and uses another helper class called Tile. The problem is that all of my pieces are being drawn in the correct places (my debugger shows when I click on tiles w... | I am currently working on developing an android version of chess, but I am having an issue with draw. I have set up a ChessboardView class that extends view and uses another helper class called Tile. The problem is that all of my pieces are being drawn in the correct places (my debugger shows when I click on tiles what... | java|android|bitmap|draw | 2 | 2016-04-14T18:49:04.883Z | 2,016 | 4 | 18 | 3 | 1,030 | 1 | 602 | 28 | 4 | 2 | true | false | false | false | false | false | low |
36,631,642 | Glide Doesn't Load Images Into ImageView Until I Scroll | <p>I have a list view and use Glide to load images from URLs. I only see my placeholder image until I scroll past those rows. Once I scroll past those rows so they are off screen and scroll back to them, the images are loaded into the image views.</p>
<p>Adapter:</p>
<pre><code>package kyfb.android.kyfb.com.kyfb;
im... | I have a list view and use Glide to load images from URLs. I only see my placeholder image until I scroll past those rows. Once I scroll past those rows so they are off screen and scroll back to them, the images are loaded into the image views. Adapter: [CODE] Fragment: [CODE] | java|android|listview|android-glide | 3 | 2016-04-14T18:54:36.850Z | 2,016 | 4 | 18 | 3 | 885 | 1 | 277 | 55 | 4 | 2 | true | false | false | false | false | false | low |
36,631,794 | Save Http session on Android with a Symfony API | <p>I am trying to send some requests to an API developed in Symfony.</p>
<p>I connect through it using this :</p>
<pre><code> if (param.getRequestType().equals("post")) {
HttpPost httppost = new HttpPost(url);
try {
httppost.setEntity(new UrlEncodedFormEntity(param.getParam()... | I am trying to send some requests to an API developed in Symfony. I connect through it using this : [CODE] It works well and the API return that I am connected. Then I want to use an other API request (get) but it seems that my session is not saved and it never works. The get request looks like this : [CODE] I think th... | android|symfony|http|session|cookies | 1 | 2016-04-14T19:02:46.107Z | 2,016 | 4 | 19 | 3 | 89 | 0 | 466 | 47 | 5 | 2 | true | true | false | false | false | false | low |
36,631,895 | equals method doesn't work when comparing TextView String | <p>So I'm new to java and I'm trying to make quiz app as exercise. I kinda made one but it doesn't work:</p>
<pre><code>public class QuizActivity extends AppCompatActivity {
TextView QuestionText;
Button button1;
Button button2;
Button button3;
Button button4;
ArrayList<Question> listOfQuestions;
int currentQues... | So I'm new to java and I'm trying to make quiz app as exercise. I kinda made one but it doesn't work: [CODE] object Question is: [CODE] Basically the problem is that App doesn't count the right answers. For some reason it most of the time uses the original text of TextView as ''correctAnswer''. Anyone has any idea what... | java|android|android-studio|textview|equals | 0 | 2016-04-14T19:08:27.623Z | 2,016 | 4 | 19 | 3 | 940 | 1 | 452 | 57 | 5 | 2 | true | false | false | false | false | false | zero |
36,631,918 | i am trying to load the svg file but error is occurring (Error 102 Invalid start tag svg) | <pre><code><?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/... | [CODE] i am trying to load the svg file but error is occurring(Error 102 Invalid start tag svg).The svg file and code is given i am storing svg file in Resources/values folder why this error is occurring [CODE] | c#|svg|xamarin.android | 0 | 2016-04-14T19:09:59.547Z | 2,016 | 4 | 19 | 3 | 240 | 1 | 210 | 89 | 3 | 2 | true | false | false | false | false | false | zero |
36,631,953 | Android : contradiction between 2 HttpUrlConnection | <p>im new android developer and i will try the best to explein my problem
i have <strong>2 activies</strong>
they both have listview's <strong>that use the same custom Adapter</strong>
each acitvity has her own url for server requesting.</p>
<p>This is the class where i send the url and get back the stream data</p>
... | im new android developer and i will try the best to explein my problem i have 2 activies they both have listview's that use the same custom Adapter each acitvity has her own url for server requesting. This is the class where i send the url and get back the stream data [CODE] My first activity works fine and the listew ... | android|url|android-activity | 0 | 2016-04-14T19:12:32.117Z | 2,016 | 4 | 19 | 3 | 373 | 1 | 706 | 51 | 3 | 2 | true | false | false | false | false | false | zero |
36,632,001 | Call method in MainActivity from BroadcastReceiver - Android | <p>I want to call method in Main Activity from Broadcast Receiver. This is my MainActivity</p>
<pre><code> public class MainActivity extends ActionBarActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_... | I want to call method in Main Activity from Broadcast Receiver. This is my MainActivity [CODE] And this is my BroadcastReceiver [CODE] So, everytime my Broadcast have receive it will call the methods in my MainActivity. Thanks in Advance. | android|android-studio|methods|android-broadcastreceiver | 1 | 2016-04-14T19:15:02.793Z | 2,016 | 4 | 19 | 3 | 1,059 | 1 | 238 | 60 | 4 | 2 | true | false | false | false | false | false | low |
36,632,025 | Send data to MapActivity | <p>i have some latitude and logtitute i want to send these to MapActivity is it possible i did many ways but failled</p>
<pre><code>public void setdaata(View view){
HashMap<String, String> hashMap = new HashMap<String, String>();
hashMap.put("key", "value");
Intent intent = new Intent(this, Map... | i have some latitude and logtitute i want to send these to MapActivity is it possible i did many ways but failled [CODE] and receiving code in Mapacitivity [CODE] | android|google-maps | 0 | 2016-04-14T19:16:28.343Z | 2,016 | 4 | 19 | 3 | 248 | 1 | 162 | 24 | 2 | 2 | true | false | false | false | false | false | zero |
36,632,085 | file explorer looks completely different than the pressed file | <p> how can I solve this problem.
In the file explorer, when I hit a video file. something else appears in alertdialog. It theoretically should occur, the file pressed.</p>
<p>How can I solve?
Thank you.
I added 2 photos to better understand the error.</p>
<pre><code> public class file_explorer_fragment extends ... | how can I solve this problem. In the file explorer, when I hit a video file. something else appears in alertdialog. It theoretically should occur, the file pressed. How can I solve? Thank you. I added 2 photos to better understand the error. [CODE] Photo from show 2 videos. Photo 2 show alertdialog, and inside is wrong... | java|android | 2 | 2016-04-14T19:19:39.457Z | 2,016 | 4 | 19 | 3 | 40 | 0 | 326 | 62 | 2 | 1 | true | true | false | false | false | false | low |
36,632,091 | Having trouble with OnItemTouchListener and Updation of RecyclerView in Android | <p>This is my MainActivity RecyclerView addOnItemTouchListener Implementation.</p>
<pre><code>recyclerView.addOnItemTouchListener(new RecyclerViewTouchListener(this, recyclerView, new NewAlbumAdapter.RecyclerViewClickListener() {
@Override
public void onClick(View view, int position) {
... | This is my MainActivity RecyclerView addOnItemTouchListener Implementation. [CODE] This is the RecyclerViewTouchListener I have implemented. [CODE] When I click the item which were previously added in the RecyclerView the clicks works fine. Only 1 time onClick is called. But when I add an item into the RecyclerView and... | android|onclick|android-recyclerview|android-cardview | 1 | 2016-04-14T19:20:08.973Z | 2,016 | 4 | 19 | 3 | 468 | 0 | 1,359 | 79 | 4 | 6 | true | true | false | false | false | false | low |
36,632,111 | error porting gradle:2.0.0 to gradle-experimental:0.7.0-beta1? | <p>I have an android studio project, and I'm trying to port gradle from the stable version 2.0.0 to the experimental version 0.7.0-beta1:</p>
<p>This is the working code inside my android tag module my 2.0.0 gradle code:</p>
<pre><code>android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConf... | I have an android studio project, and I'm trying to port gradle from the stable version 2.0.0 to the experimental version 0.7.0-beta1: This is the working code inside my android tag module my 2.0.0 gradle code: [CODE] Now here is my attempt to rewrite my code for the expermiental pluggin 0.7.0-beta1: [CODE] I'm getting... | android|gradle|gradle-experimental | 1 | 2016-04-14T19:21:09.723Z | 2,016 | 4 | 19 | 3 | 338 | 1 | 919 | 62 | 3 | 4 | true | false | false | false | false | false | low |
36,632,163 | Activity Recognition API unreliable? | <p>I'm trying to use the activity recognition in a project to detect when the user is "IN-VEHICLE".(Driving) The problem is that it is almost impossibly to use it, as mostProbableActivity often report "IN-VEHICLE" even though I've been sitting at my desk for a long time or just walking around in my house. It would be v... | I'm trying to use the activity recognition in a project to detect when the user is "IN-VEHICLE".(Driving) The problem is that it is almost impossibly to use it, as mostProbableActivity often report "IN-VEHICLE" even though I've been sitting at my desk for a long time or just walking around in my house. It would be very... | android|google-play-services|android-sensors | 7 | 2016-04-14T19:23:18.080Z | 2,016 | 4 | 19 | 3 | 3,053 | 2 | 1,210 | 36 | 3 | 2 | true | false | true | false | false | false | medium |
36,632,241 | JSONobject responses to String | <p>I get data from a mysql database and textView them just to make sure I got them. Problem is I can't figure a way to actually use them. eg I want to check if the Code the user inserts equals the code I get from the db. This is the JSON part of the Code.</p>
<p><div class="snippet" data-lang="js" data-hide="false" da... | I get data from a mysql database and textView them just to make sure I got them. Problem is I can't figure a way to actually use them. eg I want to check if the Code the user inserts equals the code I get from the db. This is the JSON part of the Code. [CODE] | java|android|json|android-studio | 0 | 2016-04-14T19:27:33.330Z | 2,016 | 4 | 19 | 3 | 79 | 1 | 259 | 30 | 4 | 1 | true | false | false | false | false | false | zero |
36,632,287 | How can I get selected items on listdialog's click event? | <p>I am implementing listdialog. I want to print a toast message when I click on a particular listitem. I want to print message on toast or else I want to perform some action. My code is like this:</p>
<pre><code>ListView lv;
DbHelper dbh;
final String ar[]={"Delete","Update"};
@Override
protected void onCreate(Bundle... | I am implementing listdialog. I want to print a toast message when I click on a particular listitem. I want to print message on toast or else I want to perform some action. My code is like this: [CODE] Please help; I am confused about the if condition. | java|android|dialog | 0 | 2016-04-14T19:30:15.090Z | 2,016 | 4 | 19 | 3 | 41 | 1 | 252 | 57 | 3 | 1 | true | false | false | false | false | false | zero |
36,632,343 | Faced with Changing Hamburger Button to Home Button | <p>I faced with a problem. I have MainActivity with Fragment1 and Navigation Drawer. There is a button in Fragment1 that replace Fragment1 and Fragment2. When Im replacing, I want to turn off Navigation Drawer, change Hamburger button to Home button("<"). So I have method changeTbOn in MainActivity and call it in o... | I faced with a problem. I have MainActivity with Fragment1 and Navigation Drawer. There is a button in Fragment1 that replace Fragment1 and Fragment2. When Im replacing, I want to turn off Navigation Drawer, change Hamburger button to Home button("<"). So I have method changeTbOn in MainActivity and call it in onCreate... | android|navigation-drawer|android-toolbar|android-homebutton | 1 | 2016-04-14T19:33:34.740Z | 2,016 | 4 | 19 | 3 | 412 | 1 | 556 | 51 | 4 | 2 | true | false | false | false | false | false | low |
36,632,435 | GoogleMap GroundOverlayOptions: Squeeze image to four LatLngBounds | <p>I'm trying to add an image to a Google Map using the Google Maps Android API v2:</p>
<pre><code>mMap = googleMap;
LatLng sw = new LatLng(47.01377857060625, 8.305519705172628);
LatLng ne = new LatLng(47.01395211967171, 8.306270482717082);
LatLng nw = new LatLng(47.014014755501165, 8.305559697328135);
LatLng se = new... | I'm trying to add an image to a Google Map using the Google Maps Android API v2: [CODE] Unfortunately, the LatLng values are not 100% accurate, so the background image doesn't rotate but is skewed according to Google: If the bounds do not match the original aspect ratio, the image will be skewed. Using only LatLng sw a... | android|google-maps|google-maps-android-api-2 | 1 | 2016-04-14T19:38:44.353Z | 2,016 | 4 | 19 | 3 | 1,948 | 2 | 733 | 66 | 3 | 1 | true | false | false | false | false | false | low |
36,632,473 | LayoutManager does not scroll to firstCompletelyVisibleItem | <p>I have a recycler view in my custom layout, which I attach a LinearLayoutManager and my custom adapter.</p>
<pre><code> this.recyclerList = (RecyclerView) findViewById(R.id.custom_number_picker_list);
this.layoutManager = new LinearLayoutManager(getContext());
this.recyclerList.setLayoutManager(layoutMan... | I have a recycler view in my custom layout, which I attach a LinearLayoutManager and my custom adapter. [CODE] I want the layoutManager to scroll to the firstCompletelyVisibleItem position. The command to scroll to this position is just ignored ! But if I query for the first visible (not complete) position via [CODE] ,... | android|android-layout|android-recyclerview | -1 | 2016-04-14T19:40:44.160Z | 2,016 | 4 | 19 | 3 | 77 | 1 | 515 | 59 | 3 | 3 | true | false | false | false | false | true | negative |
36,632,525 | Android 4 returns null to download folder | <p>i'm using the DownloadManager to download files and save in a folder inside downloads folder in my application context folder on internal storage, this works fine in Android 6 but in android 4 the path returns null.
This code works in android 6 but not in android 4</p>
<pre><code>File p = getApplicationContext().ge... | i'm using the DownloadManager to download files and save in a folder inside downloads folder in my application context folder on internal storage, this works fine in Android 6 but in android 4 the path returns null. This code works in android 6 but not in android 4 [CODE] i have change to this and works [CODE] My probl... | android|android-download-manager|download-manager|android-4.1-jelly-bean | 0 | 2016-04-14T19:43:11.763Z | 2,016 | 4 | 19 | 3 | 696 | 0 | 512 | 41 | 4 | 5 | true | true | false | false | false | false | zero |
36,632,588 | pass list<object> from android to php in json format using URLConnection | <p>I am trying to send 2 variables(mobile_no,group_id) and 1 list of JSONObject with name & number arguments.
Somehow I am able to display mobile_no,group_id in toast but cannot display any value from the list objects. Instead i get some error: PHP Error Message</p>
<p>Here is my code:</p>
<pre><code> privat... | I am trying to send 2 variables(mobile_no,group_id) and 1 list of JSONObject with name & number arguments. Somehow I am able to display mobile_no,group_id in toast but cannot display any value from the list objects. Instead i get some error: PHP Error Message Here is my code: [CODE] } And this is my php code : [CODE] P... | php|android|json | 0 | 2016-04-14T19:46:39.187Z | 2,016 | 4 | 19 | 3 | 1,193 | 1 | 379 | 72 | 3 | 2 | true | false | false | false | false | false | zero |
36,632,649 | Running Node.Js on Android | <p>So I know this has been questioned quite a lot. To be exact for example in these questions: </p>
<ol>
<li><a href="https://stackoverflow.com/questions/31111377/run-nodejs-server-in-android">Run NodeJs server in Android</a> </li>
<li><a href="https://stackoverflow.com/questions/11392590/how-to-run-my-node-js-proje... | So I know this has been questioned quite a lot. To be exact for example in these questions: Run NodeJs server in Android How to run my node.js project on android? and NodeJS on IOS/Android Every option presented has a problem though: I want to run it on my normal device so I would like to avoid installing another OS on... | android|node.js|cordova|android-ndk|jxcore | 119 | 2016-04-14T19:49:54.127Z | 2,016 | 4 | 19 | 3 | 190,235 | 6 | 1,416 | 26 | 5 | 0 | false | false | true | true | true | false | high |
36,632,720 | Date JSON Parsing form | <p>I am parsing this JSON : </p>
<pre><code>{
"poster_path":"\/vZpB8ezB1IqpxI9rx553TuGwDzJ.jpg",
"overview":"Thirty years after defeating the Galactic Empire, Han Solo and his allies face a new threat from the evil Kylo Ren and his army of Stormtroopers.",
"release_date":"2015-12-15",
"genre_ids":[ ],
"id":14060... | I am parsing this JSON : [CODE] and I could parse all the attributes I want [CODE] but I had a problem with the user_rating and the release date , but I was able to fix to the user_rating by changing getString method to getDouble but I couldn't do the same with the release date nothing work with it (getDouble,getIntege... | java|android|json|android-studio | 0 | 2016-04-14T19:53:55.370Z | 2,016 | 4 | 19 | 3 | 36 | 1 | 344 | 22 | 4 | 2 | true | false | false | false | false | false | zero |
36,632,795 | ListView shows wrong (double) data | <p>Log shows as a response from API:</p>
<pre><code>{"result":{"list":[
{"id":"8","name":"Girl","last_name":"","username":"girl1_firstname girl1_lastname","photo":"http:\/\/new.mmm.com\/wp-content\/uploads\/dsp_media\/user_photos\/user_8\/thumbs\/thumb_8_girl3.jpg"},
{"id":"9","name":"","last_name":"","usernam... | Log shows as a response from API: [CODE] But in my ListView I see double girl1_firstname girl1_lastname instead of Andrzej12 , why? When I reload data from API I get on last position correct Andrzej12 and a next couple times I saw Andrzej12 in ListView , but sometimes it still shows girl1_firstname girl1_lastname ... D... | android|listview | 0 | 2016-04-14T19:58:07.097Z | 2,016 | 4 | 19 | 3 | 41 | 0 | 511 | 34 | 2 | 2 | true | true | false | false | false | false | zero |
36,632,849 | how to show different hints in editext programmatically | <p>I am using an expandible view where parent is a text view and children are edittext views. I want to show different hints for different edit texts. I tried to do it programmatically but no success at all. Here is my code.</p>
<p>ContactFragment.java</p>
<pre><code>public class ContactFragment extends Fragment {
pr... | I am using an expandible view where parent is a text view and children are edittext views. I want to show different hints for different edit texts. I tried to do it programmatically but no success at all. Here is my code. ContactFragment.java [CODE] ExpandableListAdapter.java [CODE] | java|android | 0 | 2016-04-14T20:01:02.683Z | 2,016 | 4 | 20 | 3 | 61 | 2 | 283 | 55 | 2 | 2 | true | false | false | false | false | false | zero |
36,632,981 | Downloading info from JSON(Xamarin C#) | <p>I am writing Android app in Xamarin C#.</p>
<p>I parse info from JSON and then show it in fields.</p>
<p>I use this code:</p>
<pre><code>string url2 = "http://papajohn.pp.ua/?mkapi=getProductsByCat&cat_id=74";
JsonValue json = await FetchAsync(url2);
private async Task<JsonValue> FetchAsync(str... | I am writing Android app in Xamarin C#. I parse info from JSON and then show it in fields. I use this code: [CODE] But I have one problem. When I open Activity it freezes for 2-3 seconds and then all info shows in fields. Can I make that data download smoothly. First field, then second etc. And if I can, how? | c#|android|json|xamarin|xamarin.android | 3 | 2016-04-14T20:08:14.740Z | 2,016 | 4 | 20 | 3 | 938 | 2 | 310 | 38 | 5 | 1 | true | false | false | false | false | false | low |
36,633,042 | installing android ADT with eclipse | <p>i recently downloaded the android sdk but when i try to create a new android project in eclipse , it always shows the same error </p>
<pre><code>[2016-04-15 01:22:40 - HelloWorld3] C:\Users\Admin\workspace\HelloWorld3\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches t... | i recently downloaded the android sdk but when i try to create a new android project in eclipse , it always shows the same error [CODE] the project is not created. i was using eclipse luna before, i reinstalled eclipse and now i have mars 2. i also deleted the latest packages from SDK manager. these are the only soluti... | java|android|eclipse | 0 | 2016-04-14T20:11:41.897Z | 2,016 | 4 | 20 | 3 | 96 | 2 | 759 | 35 | 3 | 1 | true | false | false | false | false | false | zero |
36,633,127 | I want to use Fabric/Crashlytics with ADT / Eclipse | <p>I have not migrated my project to Android Studio yet, but I still want to use Fabric/Crashlytics to manage crashes of my app. I am using the Android Developer Tools (ADT) 23.</p>
<p>I tried the Fabrics eclipse plugin and it installs and starts fine. Then I login and the plugin presents a "Select kit to install" dia... | I have not migrated my project to Android Studio yet, but I still want to use Fabric/Crashlytics to manage crashes of my app. I am using the Android Developer Tools (ADT) 23. I tried the Fabrics eclipse plugin and it installs and starts fine. Then I login and the plugin presents a "Select kit to install" dialog. But th... | android|adt|eclipse-adt|twitter-fabric | 0 | 2016-04-14T20:16:38.520Z | 2,016 | 4 | 20 | 3 | 554 | 0 | 1,035 | 51 | 4 | 0 | false | true | false | false | false | false | zero |
36,633,310 | SwitchCompat not showing on device | <p>I'm trying to use a SwitchCompat, and it shows up in the Design view in Android Studio, but on my Galaxy S4 (running 5.0.1), it doesn't show up. Here is relevant code:</p>
<p>activity.xml</p>
<pre><code> <RelativeLayout
android:layout_width="wrap_content"
android:layout_height="m... | I'm trying to use a SwitchCompat, and it shows up in the Design view in Android Studio, but on my Galaxy S4 (running 5.0.1), it doesn't show up. Here is relevant code: activity.xml [CODE] build.gradle [CODE] | android|xml|material-design|android-appcompat | 2 | 2016-04-14T20:25:25.023Z | 2,016 | 4 | 20 | 3 | 1,154 | 1 | 207 | 34 | 4 | 2 | true | false | false | false | false | false | low |
36,633,338 | toString() unavailable - no suspended threads and loop stops running - Android Studio | <p>A loop in a code I'm writing in Java at Android Studio stops running sometimes at a different number of iterations and the application just stop working.</p>
<p>I tried to debug it on eclipse. It starts fine but in some point it gets stuck and gives me the error: [toString() unavailable - no suspended threads] </p>... | A loop in a code I'm writing in Java at Android Studio stops running sometimes at a different number of iterations and the application just stop working. I tried to debug it on eclipse. It starts fine but in some point it gets stuck and gives me the error: [toString() unavailable - no suspended threads] when i research... | java|android | 2 | 2016-04-14T20:27:00.500Z | 2,016 | 4 | 20 | 3 | 1,676 | 0 | 585 | 85 | 2 | 1 | true | true | false | false | false | false | low |
36,633,541 | android GCM Push notification crashing | <p>I am working on android GCM to display some notification. It works fine. But when I add a code that could enable me to start the Home activity upon clicking the notification, it crashes. If I remove the PendingIntent It works fine but with no action.</p>
<p>Below is the code I am using</p>
<pre><code>public class ... | I am working on android GCM to display some notification. It works fine. But when I add a code that could enable me to start the Home activity upon clicking the notification, it crashes. If I remove the PendingIntent It works fine but with no action. Below is the code I am using [CODE] } and below is the error log I am... | java|android|push-notification|google-cloud-messaging | 0 | 2016-04-14T20:39:21.500Z | 2,016 | 4 | 20 | 3 | 422 | 1 | 336 | 38 | 4 | 2 | true | false | false | false | false | false | zero |
36,633,546 | ImageView on again click | <p>I want my <code>ImageView</code> to change it's <code>drawable</code> resource as it is pressed. The problem occurs when <code>ImageView</code> is pressed for the second time.</p>
<p>Let me explain, if <code>ImageView</code> is pressed first time, I want it to change from <code>drawable</code> A to <code>drawable</c... | I want my ImageView to change it's drawable resource as it is pressed. The problem occurs when ImageView is pressed for the second time. Let me explain, if ImageView is pressed first time, I want it to change from drawable A to drawable B. If ImageView is pressed again I want it to change from drawable B to drawable A.... | java|android|xml | 0 | 2016-04-14T20:39:49.283Z | 2,016 | 4 | 20 | 3 | 38 | 3 | 384 | 24 | 3 | 1 | true | false | false | false | false | false | zero |
36,633,641 | Need Help on Error with Navigation Drawer | <p>I want to import a Navigation Drawer in my App. I code it in Fragments, but my app crashes on start and I get the following error:</p>
<blockquote>
<p>Error: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.NavigationView.setNavigationItemSelectedListener(androi... | I want to import a Navigation Drawer in my App. I code it in Fragments, but my app crashes on start and I get the following error: Error: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.design.widget.NavigationView.setNavigationItemSelectedListener(android.support.design.widget.Na... | android | -2 | 2016-04-14T20:45:11.907Z | 2,016 | 4 | 20 | 3 | 1,688 | 1 | 1,090 | 41 | 1 | 3 | true | false | false | false | false | true | negative |
36,633,693 | On mobile data webview app opens in chrome. How do I force it in the webview all the time? | <p>I have a simple webview app that stats with a splash screen. As it goes to the MainActivity it will open in Chrome but only while on mobile data. If on wifi it opens in the app. Opening in the app is the intended action. How can I force the page to open in my webview regardless of connection type? See my code below.... | I have a simple webview app that stats with a splash screen. As it goes to the MainActivity it will open in Chrome but only while on mobile data. If on wifi it opens in the app. Opening in the app is the intended action. How can I force the page to open in my webview regardless of connection type? See my code below... ... | android|google-chrome|mobile|webview | 1 | 2016-04-14T20:48:10.380Z | 2,016 | 4 | 20 | 3 | 444 | 0 | 526 | 90 | 4 | 1 | true | true | false | false | false | false | low |
36,633,861 | Android: No shared element transition between RecyclerView and Fragment | <p>I have the following setup: one MainActivity, one AFragment which has a RecyclerView and a BFragment which is used to contain details to elements in AFragment. When the user taps on an item in AFragment, it takes them to BFragment.</p>
<p>The desired effect I want to create is to take the ImageView for the item in A... | I have the following setup: one MainActivity, one AFragment which has a RecyclerView and a BFragment which is used to contain details to elements in AFragment. When the user taps on an item in AFragment, it takes them to BFragment. The desired effect I want to create is to take the ImageView for the item in AFragment a... | android|android-fragments|android-5.0-lollipop | 0 | 2016-04-14T20:57:31.667Z | 2,016 | 4 | 20 | 3 | 958 | 1 | 876 | 71 | 3 | 2 | true | false | false | false | false | false | zero |
36,633,916 | More Blurred With RenderScript In Android | <p>For my project i want to use blurred backgrounds.When i use the following method,it does my background blur but it is not blurred enough for me,i want to do more blurry background.I set the radius as its maximum value 25.Someone can help me ?</p>
<pre><code>private static final float BITMAP_SCALE = 0.9f;
private st... | For my project i want to use blurred backgrounds.When i use the following method,it does my background blur but it is not blurred enough for me,i want to do more blurry background.I set the radius as its maximum value 25.Someone can help me ? [CODE] | android|background|android-drawable|blur|blurry | 1 | 2016-04-14T21:00:59.180Z | 2,016 | 4 | 21 | 3 | 1,618 | 1 | 249 | 41 | 5 | 1 | true | false | false | false | false | false | low |
36,633,936 | android simulate Recycler view on custom view | <p>i'm trying to simulate <code>RecyclerView</code> items on my custom view. i like to create simple TimeLine view and <code>ListView</code> or <code>Recycler View</code> not good for this idea, for example:</p>
<p><a href="https://i.stack.imgur.com/khOzE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.... | i'm trying to simulate RecyclerView items on my custom view. i like to create simple TimeLine view and ListView or Recycler View not good for this idea, for example: basically How can i pick the layouts to root viewgroup? for create above custom layout My xml view: [CODE] My java code: [CODE] child_layout 1 and 2 are s... | android | 0 | 2016-04-14T21:02:04.443Z | 2,016 | 4 | 21 | 3 | 158 | 1 | 359 | 45 | 1 | 4 | true | false | false | false | false | false | zero |
36,634,008 | Why NotificationManagerCompat::cancelAll() gets SecurityException? | <p>Using <code>NotificationManagerCompat</code> to cancel all notification.</p>
<pre><code>NotificationManagerCompat manager =
NotificationManagerCompat.from(ctx.getApplicationContext());
manager.cancelAll();
</code></pre>
<p>It got exception some time (most time works).</p>
<p>on Andoid 6:</p>
<blockquote>
... | Using NotificationManagerCompat to cancel all notification. [CODE] It got exception some time (most time works). on Andoid 6: java.lang.SecurityException: Permission Denial: getCurrentUser() from pid=22994, uid=10184 requires android.permission.INTERACT_ACROSS_USERS [CODE] on Android 5.0, 4.4.2: ava.lang.SecurityExcept... | android|android-notifications|android-securityexception|android-binder | 28 | 2016-04-14T21:06:32.593Z | 2,016 | 4 | 21 | 3 | 2,925 | 2 | 656 | 66 | 4 | 3 | true | false | true | false | true | false | high |
36,634,018 | Android Studio - Using Hashmap to sum declared int of strings | <p>Right, so my problem is that I have 18 spinners (units) which all use the same string array for "Select Grade, Pass, Merit, Distinction" and I would like "Pass, Merit, Distinction" to equal 70, 80, 90 respectively so I can sum the 18 values up and then display this value in a textview called "yourResults". I have cu... | Right, so my problem is that I have 18 spinners (units) which all use the same string array for "Select Grade, Pass, Merit, Distinction" and I would like "Pass, Merit, Distinction" to equal 70, 80, 90 respectively so I can sum the 18 values up and then display this value in a textview called "yourResults". I have curre... | java|android|string|hashmap|integer | 0 | 2016-04-14T21:07:28.190Z | 2,016 | 4 | 21 | 3 | 419 | 2 | 813 | 61 | 5 | 1 | true | false | false | false | false | false | zero |
36,634,042 | android.database.sqlite.SQLiteException: near "tableMy_table": syntax error (code 1), newbie here | <p>i dont know what the problem. sorry im a newbie and not know much about this. </p>
<pre><code>public class DatabaseHelper extends SQLiteOpenHelper {
public static final String DATABASE_NAME = "Class.db";
public static final String TABLE_NAME = "My_table";
public static final String COL_1 = "ID";
public static fi... | i dont know what the problem. sorry im a newbie and not know much about this. [CODE] here the logcat [CODE] | android-studio|android-sqlite | -1 | 2016-04-14T21:08:47.030Z | 2,016 | 4 | 21 | 3 | 106 | 1 | 107 | 97 | 2 | 2 | true | false | false | false | false | true | negative |
36,634,091 | RecyclerView click listener not working | <p>My recycler view click listener not working
also my <code>adapter.setClickListner(this);</code> line in main activity showing error cannot resolve clicklistner , What I am doing wrong here
My adapter class is here :</p>
<pre><code>public class TimeAdaptra extends
RecyclerView.Adapter<TimeAdaptra.Recycler... | My recycler view click listener not working also my adapter.setClickListner(this); line in main activity showing error cannot resolve clicklistner , What I am doing wrong here My adapter class is here : [CODE] My activity in which I am implementing clicklistner is : [CODE] LogCat [CODE] | android|android-recyclerview | 0 | 2016-04-14T21:12:40.060Z | 2,016 | 4 | 21 | 3 | 629 | 1 | 287 | 39 | 2 | 3 | true | false | false | false | false | false | zero |
36,634,185 | Toggle button not toggling on Android | <p>I have a class with toggle buttons defined like so:</p>
<pre><code>public class DeviceControlActivity extends Activity implements View.OnClickListener
private ToggleButton b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInsta... | I have a class with toggle buttons defined like so: [CODE] when I run the app and toggle b2, I always get the Sending OFF result part of the if, even though in the xml the toggle buttons are declared as false and the button doesnt toggle on or off. Why is this happening? | android|android-togglebutton | 1 | 2016-04-14T21:17:22.583Z | 2,016 | 4 | 21 | 3 | 1,748 | 2 | 271 | 37 | 2 | 1 | true | false | false | false | false | false | low |
36,634,222 | MenuItem with animated actionview does not disappear | <p>I have a <code>MenuItem</code> (set in a fragment, though I tried in activity and got pretty much the same results) which is supposed to spin like a <code>ProgressBar</code> until I receive a broadcast.
I animate the Item by settings an <code>ImageView</code> as <code>actionView</code> and starting an animation on i... | I have a MenuItem (set in a fragment, though I tried in activity and got pretty much the same results) which is supposed to spin like a ProgressBar until I receive a broadcast. I animate the Item by settings an ImageView as actionView and starting an animation on it. the problem is when onCreateOptionsMenu() is called ... | android|android-actionbar|android-animation|menuitem|actionview | 0 | 2016-04-14T21:19:52.290Z | 2,016 | 4 | 21 | 3 | 451 | 0 | 609 | 52 | 5 | 1 | true | true | false | false | false | false | zero |
36,634,284 | Java Timer Slideshow | <p>I am building an Android application and attempting to implement a slideshow through using the timer class. The first image loads fine and then my app crashes. Any idea what the issue might be?</p>
<pre><code>import android.app.Service;
import android.content.Intent;
import android.database.Cursor;
import android.d... | I am building an Android application and attempting to implement a slideshow through using the timer class. The first image loads fine and then my app crashes. Any idea what the issue might be? [CODE] I have been struggling with this for quite some time so I really, really appreciate any guidance. Thanks so much! EDIT:... | java|android|timer | 1 | 2016-04-14T21:25:13.013Z | 2,016 | 4 | 21 | 3 | 332 | 1 | 333 | 20 | 3 | 2 | true | false | false | false | false | false | low |
36,634,672 | Android Studio 2.0 - Rebuild backend classes | <p>I'm building an Android app with the backend running on GAE. It all works great, love it. However, if I do any updates to my <code>UserBean</code> class in the <code>backend</code> module, the changes don't get replicated to the <code>app</code> module. I've tried clean, rebuild, make, restarting android studio, and... | I'm building an Android app with the backend running on GAE. It all works great, love it. However, if I do any updates to my UserBean class in the backend module, the changes don't get replicated to the app module. I've tried clean, rebuild, make, restarting android studio, and rebooting machine. For example, my origin... | android|google-app-engine|android-studio-2.0 | 0 | 2016-04-14T21:53:23.013Z | 2,016 | 4 | 21 | 3 | 42 | 1 | 1,149 | 44 | 3 | 0 | false | false | false | false | false | false | zero |
36,634,706 | Android Data Binding on Individual Views Added to LinearLayout Programmatically? | <p>I am able to get "activity-wide" data binding to work without any difficulties whatsoever. However, when I try to setup bindings for specific Views, say inflated Views that I'm programmatically adding to a LinearLayout, nothing I've tried works.</p>
<p>For example, binding data to an Activity's view is trivial. Typ... | I am able to get "activity-wide" data binding to work without any difficulties whatsoever. However, when I try to setup bindings for specific Views, say inflated Views that I'm programmatically adding to a LinearLayout, nothing I've tried works. For example, binding data to an Activity's view is trivial. Typically in t... | android|xml|layout|data-binding|android-inflate | 9 | 2016-04-14T21:57:04.413Z | 2,016 | 4 | 21 | 3 | 5,732 | 1 | 1,452 | 80 | 5 | 1 | true | false | true | false | false | false | medium |
36,634,711 | RecyclerView and Data Binding not working | <p>This is my first attempt at data-binding with a RecyclerView but not my first use of RecyclerView itself.</p>
<p>For some reason none of the adapter methods are called - not even getItemCount().
It could be a stupid problem with my RecyclerView and nothing to do with the data binding at all but I can't see anything... | This is my first attempt at data-binding with a RecyclerView but not my first use of RecyclerView itself. For some reason none of the adapter methods are called - not even getItemCount(). It could be a stupid problem with my RecyclerView and nothing to do with the data binding at all but I can't see anything wrong. [CO... | android|android-custom-view|android-recyclerview|android-databinding | 24 | 2016-04-14T21:57:38.653Z | 2,016 | 4 | 21 | 3 | 20,455 | 2 | 1,049 | 41 | 4 | 4 | true | false | true | true | true | false | high |
36,634,830 | How to catch buttons onClick event in adapter | <p>I have a gridview with images and checkboxes also i have 1 button for deleting selected images. But i cant figured out how i can catch onlick event. I saw many examples for buttons in rows but cant find for outside the list or grid.</p>
<p><strong>My Layout</strong></p>
<pre><code> <?xml version="1.0" encoding=... | I have a gridview with images and checkboxes also i have 1 button for deleting selected images. But i cant figured out how i can catch onlick event. I saw many examples for buttons in rows but cant find for outside the list or grid. My Layout [CODE] And here is my adapter [CODE] | android-adapter|baseadapter | 1 | 2016-04-14T22:05:20.570Z | 2,016 | 4 | 22 | 3 | 82 | 1 | 279 | 45 | 2 | 2 | true | false | false | false | false | false | low |
36,634,916 | Getting an error running the google script api quickstart for android | <p>I have the script and drive apis enabled and also have checked the credentials and all seems ok. Both the script and android clients are in the same project and The scriptId used in the project comes from the published script. This is a generic error. The project does not exist. Any suggestions? I saw one post that... | I have the script and drive apis enabled and also have checked the credentials and all seems ok. Both the script and android clients are in the same project and The scriptId used in the project comes from the published script. This is a generic error. The project does not exist. Any suggestions? I saw one post that ind... | android|google-apps-script | 1 | 2016-04-14T22:11:51.660Z | 2,016 | 4 | 22 | 3 | 857 | 1 | 1,221 | 69 | 2 | 0 | false | false | false | false | false | false | low |
36,634,972 | how to add popup menu to custom listview to each item android | <p>I am stuck at one point.
I want to add popup menu to each item in custom list view.
I have tried but it is only popping up at last position or last item of list.I am getting reason why it is coming at last position but not getting the solution
here i am adding the adapter class </p>
<pre><code>public class Intere... | I am stuck at one point. I want to add popup menu to each item in custom list view. I have tried but it is only popping up at last position or last item of list.I am getting reason why it is coming at last position but not getting the solution here i am adding the adapter class [CODE] I am getting reason that i will ha... | android|listview|android-custom-view | 1 | 2016-04-14T22:16:28.180Z | 2,016 | 4 | 22 | 3 | 2,882 | 2 | 493 | 61 | 3 | 1 | true | false | true | false | false | false | low |
36,635,065 | Null Pointer Exception - Button in Android Fragment | <p>Currently I am working on the communication between Fragment and Activity in Android. What I want to achieve here is set onClickListener on a button in the Fragment. However, NPE occurs and I can not find out why. There are many similar questions on the stack flow but I did not find one that works for me. Following ... | Currently I am working on the communication between Fragment and Activity in Android. What I want to achieve here is set onClickListener on a button in the Fragment. However, NPE occurs and I can not find out why. There are many similar questions on the stack flow but I did not find one that works for me. Following are... | android|android-fragments|nullpointerexception | 1 | 2016-04-14T22:24:33.283Z | 2,016 | 4 | 22 | 3 | 1,822 | 3 | 642 | 51 | 3 | 5 | true | false | false | false | false | false | low |
36,635,172 | ClassCastException while using BackendlessCollection | <p>java.lang.ClassCastException: java.util.HashMap cannot be cast to com.foodonomic.foodonomic.Category</p>
<p>I was working with Backendless.com APIs in one of my app. There when I Tried to call data from server </p>
<p>using this method</p>
<pre><code>//Category is my class whose object I was trying to fetch from ... | java.lang.ClassCastException: java.util.HashMap cannot be cast to com.foodonomic.foodonomic.Category I was working with Backendless.com APIs in one of my app. There when I Tried to call data from server using this method [CODE] I got a Runtime Exception java.lang.ClassCastException: java.util.HashMap cannot be cast to ... | java|android|hashmap|classcastexception|backendless | 0 | 2016-04-14T22:33:03.477Z | 2,016 | 4 | 22 | 3 | 105 | 1 | 720 | 52 | 5 | 1 | true | false | false | false | false | false | zero |
36,635,240 | Error : String types not allowed (at 'theme' with value ") in android studio | <p>When I run android studio, I keep getting this error: </p>
<blockquote>
<p>:app:prepareComAndroidSupportAnimatedVectorDrawable2321Library UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:app:checkDebugManifest
:app:preDebugBuild UP-TO-DATE
:app:preBuild UP-TO-DATE
Information:BUILD FAILED
:app:prepareComAn... | When I run android studio, I keep getting this error: :app:prepareComAndroidSupportAnimatedVectorDrawable2321Library UP-TO-DATE :app:preReleaseBuild UP-TO-DATE :app:checkDebugManifest :app:preDebugBuild UP-TO-DATE :app:preBuild UP-TO-DATE Information:BUILD FAILED :app:prepareComAndroidSupportDesign2321Library UP-TO-DAT... | java|android|string | 0 | 2016-04-14T22:39:50.347Z | 2,016 | 4 | 22 | 3 | 4,242 | 3 | 1,548 | 76 | 3 | 1 | true | false | true | false | false | false | zero |
36,635,286 | Retrieve Contact info from Android Contact Provider | <p>I'm trying to retrieve data from the Contact provider but the data shows seems not query correctly. The code I use is just below:</p>
<pre><code>mCursor = mContext.getContentResolver().query(
ContactsContract.Data.CONTENT_URI, null, null, null, null);
if(mCursor == null){
mListener.onRetrieveError();... | I'm trying to retrieve data from the Contact provider but the data shows seems not query correctly. The code I use is just below: [CODE] The Log shows for example : [CODE] I was expecting : [CODE] I want to be able to get the firstname, lastname, middle name, email type (home/work...) - and all email types listed and a... | android|android-contentprovider|android-contacts|contactscontract | 0 | 2016-04-14T22:43:27.980Z | 2,016 | 4 | 22 | 3 | 541 | 3 | 529 | 51 | 4 | 3 | true | false | false | false | false | false | zero |
36,635,425 | RecyclerView doesn't update at all | <p>I have simple task, but I don't understand why it doesn't work. I need to place <code>images</code> in a <code>GridView</code>. I decided to use the <code>RecyclerView</code>. So I have some where I've placed it:</p>
<pre><code> <LinearLayout
..>
...
<FrameLayout
android:layout_width="match_paren... | I have simple task, but I don't understand why it doesn't work. I need to place images in a GridView . I decided to use the RecyclerView . So I have some where I've placed it: [CODE] In my Activity I declare: [CODE] When All my views and objects are initialized, using Retrofit2 I get data and try to update adapter, cre... | android|android-recyclerview | 1 | 2016-04-14T22:55:43.150Z | 2,016 | 4 | 22 | 3 | 400 | 1 | 804 | 34 | 2 | 3 | true | false | false | false | false | false | low |
36,635,517 | Using setCampaignParamsOnNextHit (Android) and the iOS equivalent to attribute users in Google Analytics | <p>After reading the Android API and iOS setup guide for campaign/user attribution in Google's docs, I'm a little confused with how to read out parameters. We're using a third party library to pull in our campaign data, and so I have a list of keys like utm_source, utm_campaign, etc. that led to the user installing the... | After reading the Android API and iOS setup guide for campaign/user attribution in Google's docs, I'm a little confused with how to read out parameters. We're using a third party library to pull in our campaign data, and so I have a list of keys like utm_source, utm_campaign, etc. that led to the user installing the ap... | android|ios|objective-c|cordova|google-analytics | 4 | 2016-04-14T23:03:22.263Z | 2,016 | 4 | 23 | 3 | 234 | 0 | 1,380 | 104 | 5 | 0 | false | true | false | false | false | false | low |
36,635,634 | Android CardView issue on pre-lollipop devices | <p>Hi I've been working on this app for about a month, today I decided to test it out on pre-lollipop devices and I'm getting diferent results when the CardView is showed. Here's a image of the results <a href="http://imgur.com/D3MS11q" rel="nofollow">link</a></p>
<p>And here's my xml layout</p>
<pre><code><androi... | Hi I've been working on this app for about a month, today I decided to test it out on pre-lollipop devices and I'm getting diferent results when the CardView is showed. Here's a image of the results link And here's my xml layout [CODE] | android|xml | 0 | 2016-04-14T23:14:10.020Z | 2,016 | 4 | 23 | 3 | 142 | 1 | 235 | 46 | 2 | 1 | true | false | false | false | false | false | zero |
36,635,783 | Setting listeners on buttons in a ListView populated by a CursorAdapter from a Fragment | <p>Although a developer for more years than I can remember I'm new to Java/Android and the whole OOP thing... Yes we do still exist... shambling relics of a more sequential age...!!
Anyway I have a fragment which invokes a CursorAdapter to populate a ListView.</p>
<p>The ListView has several TextViews and two buttons... | Although a developer for more years than I can remember I'm new to Java/Android and the whole OOP thing... Yes we do still exist... shambling relics of a more sequential age...!! Anyway I have a fragment which invokes a CursorAdapter to populate a ListView. The ListView has several TextViews and two buttons on each row... | java|android|listview|android-fragments | 0 | 2016-04-14T23:28:37.280Z | 2,016 | 4 | 23 | 3 | 40 | 0 | 842 | 87 | 4 | 4 | true | true | false | false | false | false | zero |
36,635,992 | arraylist with multiple latitude longitude | <p>i have arraylist which have multiple atitude longitude having different </p>
<pre><code>Log.d("try", "in the try");
JSONObject jsonObj = new JSONObject(json);
Log.d("jsonObject", "new json Object");
// Getting JSON Array node
matchFixtu... | i have arraylist which have multiple atitude longitude having different [CODE] i have no idea how to send this to MapActivity [CODE] help me please that how to send this and use in MapActivity | android|google-maps|arraylist|hashmap | 0 | 2016-04-14T23:50:50.577Z | 2,016 | 4 | 23 | 3 | 1,127 | 1 | 192 | 42 | 4 | 2 | true | false | false | false | false | false | zero |
36,636,061 | String cannot convert to json | <p>I am new to php, I develop android to php web services which is work fine in local host. I want to make my app live so I uploaded my php files in <code>byethost17.com</code> in browser, it works fine return json but when I run my app its show </p>
<pre><code>org.json.JSONException: Value script of type java.lang.S... | I am new to php, I develop android to php web services which is work fine in local host. I want to make my app live so I uploaded my php files in byethost17.com in browser, it works fine return json but when I run my app its show [CODE] The code works fine with json parsing from local host, the problem is from free hos... | php|android | 0 | 2016-04-14T23:59:46.280Z | 2,016 | 4 | 23 | 3 | 161 | 2 | 413 | 29 | 2 | 2 | true | false | false | false | false | false | zero |
36,636,186 | How to pass a com.sun.jna.Structure from Java to struct in C, using JNA | <p>I'm going off of <a href="http://www.eshayne.com/jnaex/index.html?example=13" rel="nofollow">this</a> example of how to pass a <a href="https://jna.java.net/javadoc/com/sun/jna/Structure.html" rel="nofollow">com.sun.jna.Structure</a> containing a <a href="https://jna.java.net/javadoc/com/sun/jna/StringArray.html" re... | I'm going off of this example of how to pass a com.sun.jna.Structure containing a com.sun.jna.StringArray from Java into native C code using JNA, and having trouble obtaining the Structure contents successfully in the C code. Note that I can pass a struct from the C code to a Structure in Java successfully, but I'm hav... | java|android|android-ndk|java-native-interface|jna | 2 | 2016-04-15T00:12:32.393Z | 2,016 | 4 | 0 | 4 | 747 | 1 | 1,246 | 71 | 5 | 7 | true | false | false | false | false | false | low |
36,636,260 | Android Studio importing a project from eclipse to Android studio | <p>My laptop crashed couple months back and I kinda lost touch with software development, just got a new PC recently and wanted to start installing my eclipse and I found out new versions of eclipse no longer support android, so here I am struggling with Android Studio. Please note I have never been a fan of Android St... | My laptop crashed couple months back and I kinda lost touch with software development, just got a new PC recently and wanted to start installing my eclipse and I found out new versions of eclipse no longer support android, so here I am struggling with Android Studio. Please note I have never been a fan of Android Studi... | android|eclipse|android-studio|gradle | 0 | 2016-04-15T00:20:30.610Z | 2,016 | 4 | 0 | 4 | 146 | 1 | 1,825 | 65 | 4 | 0 | false | false | false | false | false | false | zero |
36,636,286 | Android Xamarin C#: app runs in emulator but in actual device gets error: [INSTALL_PARSE_FAILED_BAD_MANIFEST] | <p>My app runs perfectly in the android emulator but when I try to deploy in debug configuration it fails and tells me this:</p>
<pre><code>3>:Deployment failed
3>Mono.AndroidTools.InstallFailedException: Unexpected install output: pkg: /data/local/tmp/Mono.Android.DebugRuntime-debug.apk
3>Failure [INSTALL_P... | My app runs perfectly in the android emulator but when I try to deploy in debug configuration it fails and tells me this: [CODE] I can't seem to figure what this error really means, other than it is something to do with the android manifest? This is my manifest: [CODE] EDIT: So when I try to deploy sometimes this error... | c#|android|visual-studio|xamarin | 3 | 2016-04-15T00:22:57.673Z | 2,016 | 4 | 0 | 4 | 3,382 | 1 | 523 | 109 | 4 | 5 | true | false | true | false | false | false | low |
36,636,303 | How to allow Stripe Checkout to proceed in Android WebView? | <p>When I attempt to open the Stripe Checkout inside my webview, I receive an error saying "there was a problem loading Checkout. If this persists, please try a different browser". When I run through the checkout process on Chrome Mobile outside of the Webview, the stripe checkout works flawlessly. It redirects to a we... | When I attempt to open the Stripe Checkout inside my webview, I receive an error saying "there was a problem loading Checkout. If this persists, please try a different browser". When I run through the checkout process on Chrome Mobile outside of the Webview, the stripe checkout works flawlessly. It redirects to a webpa... | java|android|webview|stripe-payments | 0 | 2016-04-15T00:24:41.530Z | 2,016 | 4 | 0 | 4 | 2,335 | 1 | 451 | 59 | 4 | 1 | true | false | false | false | false | false | zero |
36,636,435 | get a count of list item from listview | <p>i was trying to get a count of list item from listview but it didnt worked..</p>
<p>here is my code :</p>
<pre><code>class Ambil_Buku_Keranjang extends AsyncTask<String, String, String> {
@Override
protected String doInBackground(String... params) {
//list item (2 item)
}... | i was trying to get a count of list item from listview but it didnt worked.. here is my code : [CODE] onActivityCreated : [CODE] is there anything wrong in my code ? pls help thanks... | android|listview|fragment | 1 | 2016-04-15T00:42:01.347Z | 2,016 | 4 | 0 | 4 | 1,055 | 1 | 184 | 38 | 3 | 2 | true | false | false | false | false | false | low |
36,636,616 | How to access Arraylist from inside a Fragment? | <p>Having trouble accessing an arraylist I created in another Fragment class. Essentially I passed an Index through an intent and I know that works because I output that value to the screen for testing purposes. But now I want to use that index number to access the arraylist I created in an Application class. </p>
<pr... | Having trouble accessing an arraylist I created in another Fragment class. Essentially I passed an Index through an intent and I know that works because I output that value to the screen for testing purposes. But now I want to use that index number to access the arraylist I created in an Application class. [CODE] | java|android|android-fragments|arraylist | 0 | 2016-04-15T01:04:30.133Z | 2,016 | 4 | 1 | 4 | 270 | 0 | 314 | 47 | 4 | 1 | true | true | false | false | false | false | zero |
36,636,671 | How to set maximum expanded height in android support design bottom sheet? | <p>I already showed my bottom sheet layout with its peek height set to 100dp. But how can I limit my bottom sheet to expand to 500dp only? This is my sample layout:</p>
<pre><code><android.support.design.widget.CoordinatorLayout
android:id="@+id/coordinator"
xmlns:android="http://schemas.android.com/apk/res/android... | I already showed my bottom sheet layout with its peek height set to 100dp. But how can I limit my bottom sheet to expand to 500dp only? This is my sample layout: [CODE] In addition to my question, how can I disallow the user from dragging the bottom sheet up and down? | android|android-support-design | 50 | 2016-04-15T01:12:13.757Z | 2,016 | 4 | 1 | 4 | 63,027 | 6 | 268 | 74 | 2 | 1 | true | false | true | true | true | false | high |
36,636,687 | Infinite Scroll issue using EndlesScroll Android | <p>I am using the <a href="https://github.com/codepath/android_guides/wiki/Endless-Scrolling-with-AdapterViews">this</a> for Pagination. But I have problem that it scrolls the page infinitely. For e.g. If my last page have products less than limit i.e. 4 products are loaded after 2 pages with 20 products each, then tha... | I am using the this for Pagination. But I have problem that it scrolls the page infinitely. For e.g. If my last page have products less than limit i.e. 4 products are loaded after 2 pages with 20 products each, then that 4 products start repeating endlessly. I am using following code to show products: [CODE] My AsyncTa... | android | 9 | 2016-04-15T01:14:23.017Z | 2,016 | 4 | 1 | 4 | 195 | 3 | 400 | 48 | 1 | 3 | true | false | false | false | false | false | medium |
36,636,716 | ListView not displayed in emulator but shows in Android studio? | <p>The listView is displayed in Android Studio XML window but when I run it in GenyMotion, where the listView is supposed to be is empty. I tried adding dummy values but no luck.</p>
<p>add_device.XML</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.andro... | The listView is displayed in Android Studio XML window but when I run it in GenyMotion, where the listView is supposed to be is empty. I tried adding dummy values but no luck. add_device.XML [CODE] ListViewAndroidExample.Java [CODE] This is what I see when I run the emulator. | android|listview|android-studio | 1 | 2016-04-15T01:18:46.167Z | 2,016 | 4 | 1 | 4 | 804 | 1 | 276 | 63 | 3 | 2 | true | false | false | false | false | false | low |
36,636,722 | Dual Android Map/Google Places Details Screen | <p>I am having some real trouble with fragments! I have a Results Activity class that runs two Fragments, lower half map with location and near google place markers, upper half will (or i want it too but it will not ruddy work) hold the address and details too a user selected marker. I got everything, i can select th... | I am having some real trouble with fragments! I have a Results Activity class that runs two Fragments, lower half map with location and near google place markers, upper half will (or i want it too but it will not ruddy work) hold the address and details too a user selected marker. I got everything, i can select the mar... | java|android|google-maps|android-fragments|google-places-api | 1 | 2016-04-15T01:19:26.070Z | 2,016 | 4 | 1 | 4 | 324 | 1 | 1,827 | 45 | 5 | 3 | true | false | false | false | false | false | low |
36,636,747 | Differences and when to use SortedList<T>'s updateItemAt() or recalculatePositionOfItemAt() methods? | <p>Question 1</p>
<p>I was looking at the example code on <a href="https://github.com/android/platform_development/blob/master/samples/Support7Demos/src/com/example/android/supportv7/util/SortedListActivity.java" rel="nofollow">this page</a> that uses SortedList with RecyclerView.</p>
<p>At line 127, after the CheckB... | Question 1 I was looking at the example code on this page that uses SortedList with RecyclerView. At line 127, after the CheckBox status changed, recalculatePositionOfItemAt() method was used. The javadocs for SortedList<T> says that recalculatePositionOfItemAt() is for adjusting item positions without triggering onCha... | android | 2 | 2016-04-15T01:22:42.633Z | 2,016 | 4 | 1 | 4 | 165 | 0 | 1,093 | 100 | 1 | 0 | false | true | false | false | false | false | low |
36,636,778 | Text appear after Splash screen | <p>I want the Layout"authentification" to appear after the Splash screen, in my application it's appear by default please some one help me!!!!!
pleaaase i need help</p>
<pre><code>public class Splash extends Activity {
LinearLayout ln;
@Override
protected void onCreate(Bundle savedInstanceStat... | I want the Layout"authentification" to appear after the Splash screen, in my application it's appear by default please some one help me!!!!! pleaaase i need help [CODE] | java|android|xml|eclipse|android-studio | 1 | 2016-04-15T01:27:25.430Z | 2,016 | 4 | 1 | 4 | 112 | 2 | 168 | 31 | 5 | 1 | true | false | false | false | false | false | low |
36,636,904 | String is posting as an integer in database | <p>So I decided to build login and register activities for my application. The database and server are up and running and the application connects to it perfectly. The only issue that I am running into is that one of the fields that I am posting to the database is showing as an integer instead of a string as intended. ... | So I decided to build login and register activities for my application. The database and server are up and running and the application connects to it perfectly. The only issue that I am running into is that one of the fields that I am posting to the database is showing as an integer instead of a string as intended. The... | java|php|xml|database|android-volley | 1 | 2016-04-15T01:43:12.540Z | 2,016 | 4 | 1 | 4 | 200 | 1 | 1,120 | 43 | 5 | 5 | true | false | false | false | false | false | low |
36,636,966 | Android wear watch face debugging on emulator | <p>Every time I run the watch face to debug on an emulator with android studio, the watch face would change to the default and then I manually need to hold down and select the watch face I'm developing.</p>
<p>It wasn't always like that I would run the watch face and see the changes right away.</p>
<p>I can't figure ... | Every time I run the watch face to debug on an emulator with android studio, the watch face would change to the default and then I manually need to hold down and select the watch face I'm developing. It wasn't always like that I would run the watch face and see the changes right away. I can't figure out why it's happen... | android|android-studio|wear-os | 1 | 2016-04-15T01:52:16.610Z | 2,016 | 4 | 1 | 4 | 620 | 0 | 373 | 45 | 3 | 1 | true | true | false | false | false | false | low |
36,636,989 | How can I process Timer was canceled error? | <p>I use android.
recently I coding a resend data.
but occur illegalstateexception Timer was canceled.</p>
<p>This is my logcat:</p>
<pre><code>java.lang.RuntimeException: Unable to start receiver kr.co.iosystem.blackeyeonandroid.util.NetworkChangeReceiver: java.lang.IllegalStateException: Timer was canceled
... | I use android. recently I coding a resend data. but occur illegalstateexception Timer was canceled. This is my logcat: [CODE] I think this is the part where exception is occuring [CODE] Can i know where i am going wrong? | android | 1 | 2016-04-15T01:54:47.827Z | 2,016 | 4 | 1 | 4 | 1,554 | 1 | 220 | 43 | 1 | 2 | true | false | false | false | false | false | low |
36,637,086 | Event click a item on android.support.design.widget.NavigationView | <p>I'm new student on xamarin android. so I don't know how to create a event click on that.</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code><menu xmlns:android="http://schemas.android.com/apk/res/android">... | I'm new student on xamarin android. so I don't know how to create a event click on that. [CODE] [CODE] I want to when click that item 1 -> fragmenthome(there only listview) I want to when click that item 2 -> fragmentgenres(there only listview) They all be showing up in frameContainer. | android|xamarin|xamarin.android | 3 | 2016-04-15T02:05:48.980Z | 2,016 | 4 | 2 | 4 | 1,074 | 1 | 286 | 66 | 3 | 2 | true | false | false | false | false | false | low |
36,637,095 | RecyclerView Adapter not updating in Fragment | <p>So I've been messing around with RecyclerView, and I've got it working properly and correctly in Activity; but as soon as I try it in a Fragment, it just won't update the UI.</p>
<p>MainActivity.java</p>
<pre><code>import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
im... | So I've been messing around with RecyclerView, and I've got it working properly and correctly in Activity; but as soon as I try it in a Fragment, it just won't update the UI. MainActivity.java [CODE] FragmentAdapter.java [CODE] RecyclerFragment.java [CODE] Logging shows that refreshData receives the input from the Dial... | android|android-fragments | 0 | 2016-04-15T02:06:56.700Z | 2,016 | 4 | 2 | 4 | 1,671 | 2 | 599 | 45 | 2 | 3 | true | false | false | false | false | false | zero |
36,637,129 | Android - Creating an Airbnb-like Horizontal Image Slider | <p>I'm looking to replicate airbnb's app image slider where you have one image at the top of a view that you can horizontally swipe and it automatically goes to the next image upon swipe. I created a horizontalscrollview but it doesn't quite have the right functionality. It doesn't flip from image to image, upon swipe ... | I'm looking to replicate airbnb's app image slider where you have one image at the top of a view that you can horizontally swipe and it automatically goes to the next image upon swipe. I created a horizontalscrollview but it doesn't quite have the right functionality. It doesn't flip from image to image, upon swipe it ... | android|horizontalscrollview | 2 | 2016-04-15T02:10:20.253Z | 2,016 | 4 | 2 | 4 | 1,003 | 2 | 805 | 57 | 2 | 3 | true | false | false | false | false | false | low |
36,637,187 | Android - Getting NullPointerException when a new SQLiteOpenHelper child is instanciate | <p>There is the <code>SQLiteCreate</code> that extends <code>SQLiteOpenHelper</code> to create the database and <code>SQLiteController</code> to control the values. On the debug i saw that the variable "banco" in the SQLiteController constructor is getting <code>NULL</code> when I create an object of SQLiteController.<... | There is the SQLiteCreate that extends SQLiteOpenHelper to create the database and SQLiteController to control the values. On the debug i saw that the variable "banco" in the SQLiteController constructor is getting NULL when I create an object of SQLiteController. SQLiteCreate class: [CODE] SQLiteController class: [COD... | android|sql|database|sqlite|nullpointerexception | 0 | 2016-04-15T02:19:04.367Z | 2,016 | 4 | 2 | 4 | 43 | 0 | 447 | 87 | 5 | 4 | true | true | false | false | false | false | zero |
36,637,262 | onClick cardView it opens an intent with user custom data thats inside of selected cardView | <p>The app I am making is a workout log.I have a recyclerView with a popup dialog for user to a title for user routine. Once enter that goes to recycler cardView. What I am trying to do is when you click on the title it opens and you can write the list of workouts for that title meaning every title will have different ... | The app I am making is a workout log.I have a recyclerView with a popup dialog for user to a title for user routine. Once enter that goes to recycler cardView. What I am trying to do is when you click on the title it opens and you can write the list of workouts for that title meaning every title will have different dat... | javascript|android|android-studio|android-intent|android-recyclerview | 1 | 2016-04-15T02:27:07.433Z | 2,016 | 4 | 2 | 4 | 370 | 0 | 1,172 | 91 | 5 | 5 | true | true | false | false | false | false | low |
36,637,382 | How can I create a recyclerview child in a recycler parent with auto height | <p>I have tried many ways but still not found a suitable solution. We hope anyone can help us here. Thank you very much</p>
<p>My Parent XML:</p>
<pre><code><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
and... | I have tried many ways but still not found a suitable solution. We hope anyone can help us here. Thank you very much My Parent XML: [CODE] My Child XML : [CODE] My Parent Adapter: [CODE] } My Child Adapter: [CODE] } When I set the cardview -> android:layout_height="match_parent" in child xml, I get this : And when I se... | android|height|android-recyclerview | 2 | 2016-04-15T02:41:43.600Z | 2,016 | 4 | 2 | 4 | 1,516 | 0 | 559 | 75 | 3 | 4 | true | true | false | false | false | false | low |
36,637,393 | Prevent tablayout going back to default when putting device horizontal | <p>Hello I am currently working on a viewpage template using the following tutorial:
<a href="http://www.androidhive.info/2015/09/android-material-design-working-with-tabs/" rel="nofollow">http://www.androidhive.info/2015/09/android-material-design-working-with-tabs/</a></p>
<p>I was able to add a filter as well as c... | Hello I am currently working on a viewpage template using the following tutorial: http://www.androidhive.info/2015/09/android-material-design-working-with-tabs/ I was able to add a filter as well as changing color for each tab but I am running into a weird issue. The template with a fab and I added a feature that whene... | android|xml|android-layout|android-viewpager | 1 | 2016-04-15T02:42:50.433Z | 2,016 | 4 | 2 | 4 | 307 | 0 | 714 | 70 | 4 | 2 | true | true | false | false | false | false | low |
36,637,397 | PagerAdapter ClassNotFoundException when unmarshalling: android.support.v4.view.ViewPager$SavedState | <p>I am using a custom view pager with a PagerAdapter and I get the following crash when I have "Don't keep activities" turned on:</p>
<pre><code>android.os.BadParcelableException: ClassNotFoundException when unmarshalling: android.support.v4.view.ViewPager$SavedState
at android.app.ActivityThread.performLaunchActivit... | I am using a custom view pager with a PagerAdapter and I get the following crash when I have "Don't keep activities" turned on: [CODE] instantiateItem from my PagerAdapter looks like this: [CODE] CustomViewPager: [CODE] } xml where custom view pager is being used: [CODE] I have looked at solutions here ClassNotFoundExc... | android|android-viewpager|parcelable|android-pageradapter | 4 | 2016-04-15T02:43:43.177Z | 2,016 | 4 | 2 | 4 | 727 | 0 | 506 | 100 | 4 | 4 | true | true | false | false | false | false | low |
36,637,420 | Get Gravity from Android Accelerometer | <p>I'm working with the Accelerometer Sensor from my Android, but I have a problem.</p>
<p>I need to get only gravity and i don't know how to do.</p>
<p>I read in the official documentation of Android the following method:</p>
<pre><code>public void onSensorChanged(SensorEvent event)
{
// alpha is calculated ... | I'm working with the Accelerometer Sensor from my Android, but I have a problem. I need to get only gravity and i don't know how to do. I read in the official documentation of Android the following method: [CODE] So I guess would be good if I take the gravity[] values. I'm I right? Sensor is: BMA250 3 axis acceleromete... | android|filter|accelerometer|sensors | 4 | 2016-04-15T02:46:28.447Z | 2,016 | 4 | 2 | 4 | 928 | 0 | 350 | 38 | 4 | 1 | true | true | false | false | false | false | low |
36,637,446 | How to troubleshoot Android push notification using notification hub azure error "Manifest merger failed with multiple errors"? | <p>Trying to implement push notification for my android app with the help of Notification Hubs service.
I have followed all the steps given in <a href="https://azure.microsoft.com/en-us/documentation/articles/notification-hubs-android-push-notification-google-gcm-get-started/" rel="nofollow">Push notification in Androi... | Trying to implement push notification for my android app with the help of Notification Hubs service. I have followed all the steps given in Push notification in Android using Notification hub But I am getting following error : Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed with mult... | android|azure|notifications|push|azure-notificationhub | 1 | 2016-04-15T02:49:16.787Z | 2,016 | 4 | 2 | 4 | 90 | 0 | 379 | 127 | 5 | 1 | true | true | false | false | false | false | low |
36,637,447 | com.android.volley.VolleyError: java.lang.NullPointerException | <p>I have read
<a href="https://stackoverflow.com/questions/218384/what-is-a-null-pointer-exception-and-how-do-i-fix-it">What is a NullPointerException, and how do I fix it?</a>
<a href="https://stackoverflow.com/questions/31243401/attempt-to-invoke-virtual-method-int-java-lang-string-length-on-a-null-objec">Attempt to... | I have read What is a NullPointerException, and how do I fix it? Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference and a few more but I have had no luck fixing it. This is the error that I get from volley error listener - com.android.volley.VolleyError: java.lang.NullPo... | android|nullpointerexception|android-volley | 3 | 2016-04-15T02:49:17.760Z | 2,016 | 4 | 2 | 4 | 16,989 | 1 | 636 | 62 | 3 | 1 | true | false | true | true | false | false | low |
36,637,551 | Android - Best way to use colors from JSON file | <p>I'm working on an app that will retrieve a <strong>colors.json</strong> file from server. This file will have the following structure:</p>
<pre><code>[
{"ServerActionButton.background.normal":
{ "red": 29, "green": 188, "blue": 189, "alpha":255}
},
{"ServerActionButton.background.disabled":
... | I'm working on an app that will retrieve a colors.json file from server. This file will have the following structure: [CODE] This JSON should be retrieved on app startup, and I should be able to use these colors throughout the whole app. Question: What's the best way to do this? I've thought about the following options... | android|json|xml|android-resources | 2 | 2016-04-15T03:03:26.647Z | 2,016 | 4 | 3 | 4 | 1,422 | 2 | 650 | 47 | 4 | 1 | true | false | false | false | false | false | low |
36,637,685 | MediaStore permission denied error android | <p>I am trying to access mp3 files in <strong>externalStorage</strong> and this is my code:</p>
<pre><code> public class MainActivity extends AppCompatActivity {
private LinearLayout viewL;
private String[] STAR = { "*" };
String fullpath;
@Override
protected void onCreate(Bundle savedInstanceStat... | I am trying to access mp3 files in externalStorage and this is my code: [CODE] This is my manifestFile: [CODE] This is my logcat: [CODE] As you can see i have added all the permissions required but still I am getting permission Denied error Can someone help me out with this?? ThankYou | android | 2 | 2016-04-15T03:18:22.597Z | 2,016 | 4 | 3 | 4 | 3,996 | 2 | 285 | 42 | 1 | 3 | true | false | true | false | false | false | low |
36,637,694 | Exception in thread "Thread-340" Android + Realm | <p>I have been seeing this error everytime I compile my project. I am currently using Realm but the older version. </p>
<pre><code>Exception in thread "Thread-340" java.lang.NullPointerException
at java.security.MessageDigest.update(MessageDigest.java:323)
at java.security.MessageDigest.digest(MessageDigest.ja... | I have been seeing this error everytime I compile my project. I am currently using Realm but the older version. [CODE] | android|multithreading|realm | 3 | 2016-04-15T03:19:39.287Z | 2,016 | 4 | 3 | 4 | 88 | 1 | 118 | 48 | 3 | 1 | true | false | false | false | false | false | low |
36,637,722 | Android Database of Type java.lang.String cannot be converted to JSONObject | <p>I got the error on this line:</p>
<pre><code>JSONObject jsonResponse = new JSONObject(response);
</code></pre>
<p>Which I think there is error on the PHP file. But I cannot figure out what is the problem in my PHP code.</p>
<pre><code><?php
require "init.php";
require "password.php";
$username = $... | I got the error on this line: [CODE] Which I think there is error on the PHP file. But I cannot figure out what is the problem in my PHP code. [CODE] Some people told me that I got the wrong order for the mysqli_stmt_bind_result , but I have followed the order in the database table. LOGCAT: [CODE] | php|android|mysql|json|mysqli | 0 | 2016-04-15T03:23:42.340Z | 2,016 | 4 | 3 | 4 | 61 | 1 | 298 | 75 | 5 | 3 | true | false | false | false | false | false | zero |
36,637,744 | How to save Push Notification Data in SharedPreferences and display in RecyclerView | <p>I have created an application that receives push notifications from PushBots.</p>
<p>I am successfully receiving the Push Notifications but I want to store the push data in SharedPreferences and display it another activity containing a RecyclerView.</p>
<p>I know Content providers is a better approach, but I want ... | I have created an application that receives push notifications from PushBots. I am successfully receiving the Push Notifications but I want to store the push data in SharedPreferences and display it another activity containing a RecyclerView. I know Content providers is a better approach, but I want to stick with Share... | android|push-notification|broadcastreceiver|sharedpreferences | 1 | 2016-04-15T03:27:41.407Z | 2,016 | 4 | 3 | 4 | 3,392 | 4 | 386 | 83 | 4 | 1 | true | false | true | false | false | false | low |
36,637,818 | Android: How to detect if a point in the line drawn by canvas? | <p>The line is drawn with a color which is different from the background color. Then put the bitmap in canvas in an array. If the color of the given point in the array is the same as line's color, then the point is in the line. In addition, I do not want to display the canvas in my app. </p>
<pre><code>import android.... | The line is drawn with a color which is different from the background color. Then put the bitmap in canvas in an array. If the color of the given point in the array is the same as line's color, then the point is in the line. In addition, I do not want to display the canvas in my app. [CODE] But the four results are all... | android|android-canvas | 1 | 2016-04-15T03:36:48.130Z | 2,016 | 4 | 3 | 4 | 494 | 1 | 396 | 62 | 2 | 1 | true | false | false | false | false | false | low |
36,637,968 | Android - When to call method of Activity from Fragment | <p>I have an <code>Activity</code> which has <code>Toolbars</code>. When I move to <code>Fragment</code> A, the <code>Toolbar</code> needs to be changed specifically for <code>Fragment</code> A.</p>
<p><code>Fragment</code> A contains 4 other <code>Fragments</code> as A is a <code>FragmentPager</code>.</p>
<p>I calle... | I have an Activity which has Toolbars . When I move to Fragment A, the Toolbar needs to be changed specifically for Fragment A. Fragment A contains 4 other Fragments as A is a FragmentPager . I called the method of the Activity like : [CODE] Somehow, the icon doesn't get changed, BUT the title does, along with the colo... | android|android-fragments | 3 | 2016-04-15T03:54:35.613Z | 2,016 | 4 | 3 | 4 | 133 | 2 | 667 | 55 | 2 | 3 | true | false | false | false | false | false | low |
36,638,053 | Why does Checkbox widget not appear on RecyclerView's CardView? | <p>I have a RecyclerView list populated by CardViews. I tried to add a Checkbox to the left side of the CardView and nothing happens. Only the two TextViews appear. What am I missing here?</p>
<p>card_layout.xml:</p>
<pre><code>...
<android.support.v7.widget.CardView
xmlns:card_view="http://schemas.android.... | I have a RecyclerView list populated by CardViews. I tried to add a Checkbox to the left side of the CardView and nothing happens. Only the two TextViews appear. What am I missing here? card_layout.xml: [CODE] DataModel.java: [CODE] Adapter.java: [CODE] | android|android-recyclerview|android-checkbox | 1 | 2016-04-15T04:03:40.130Z | 2,016 | 4 | 4 | 4 | 613 | 1 | 253 | 63 | 3 | 3 | true | false | false | false | false | false | low |
36,638,116 | getText().toString() constant and resource type mismatch | <p>I need help on this. I am getting error on "getText().toString()" it says "getTEXT METHOD SHOULD BE CALLED FROM THE UI THREAD...".. what does this mean?and when submit the data ,data is not saved on the database. Can someone help me please?I am running out of time already :'(. if there is anything required, let me k... | I need help on this. I am getting error on "getText().toString()" it says "getTEXT METHOD SHOULD BE CALLED FROM THE UI THREAD...".. what does this mean?and when submit the data ,data is not saved on the database. Can someone help me please?I am running out of time already :'(. if there is anything required, let me know... | java|php|android|xml | 1 | 2016-04-15T04:10:22.490Z | 2,016 | 4 | 4 | 4 | 769 | 1 | 482 | 56 | 4 | 4 | true | false | false | false | false | false | low |
36,638,152 | I am making a torch App in android | <p>Create a simple Torch application which can put on the Camera Flash and put it off. This application should have a simple UI which can put On the Flash and also put it Off.
After 1 minute of continuous use, the UI should prompt the user he wants to keep use the Torch. If the user says Yes the Torch shall remain on ... | Create a simple Torch application which can put on the Camera Flash and put it off. This application should have a simple UI which can put On the Flash and also put it Off. After 1 minute of continuous use, the UI should prompt the user he wants to keep use the Torch. If the user says Yes the Torch shall remain on for ... | android | 1 | 2016-04-15T04:14:30.423Z | 2,016 | 4 | 4 | 4 | 732 | 4 | 697 | 34 | 1 | 1 | true | false | false | false | false | false | low |
36,638,154 | How to start new activity inside viewpager tab | <p>I am coding a tabbed app in android using ViewPager. Currently, I have an activity, called RSC Activity, that I want to open up inside a tab. (RSCActivity implements onCreateView and has a UI of its own). My main problem is a button that has a click listener set in RSCActivity, cannot be implemented in the tabbed la... | I am coding a tabbed app in android using ViewPager. Currently, I have an activity, called RSC Activity, that I want to open up inside a tab. (RSCActivity implements onCreateView and has a UI of its own). My main problem is a button that has a click listener set in RSCActivity, cannot be implemented in the tabbed layou... | android|android-fragments|android-studio|tabs|android-viewpager | 1 | 2016-04-15T04:14:48.877Z | 2,016 | 4 | 4 | 4 | 610 | 0 | 1,183 | 46 | 5 | 2 | true | true | false | false | false | false | low |
36,638,195 | Error setting up SFML with Android | <p>I'm trying to compile SFML onto android, and am following <a href="https://github.com/SFML/SFML/wiki/Tutorial:-Building-SFML-for-Android" rel="nofollow">this tutorial</a>. I am installing on Ubuntu 64 bit. I am able to run the cmake command. But when I run make after it, and it is building the headers(or something) ... | I'm trying to compile SFML onto android, and am following this tutorial . I am installing on Ubuntu 64 bit. I am able to run the cmake command. But when I run make after it, and it is building the headers(or something) I get this error: [CODE] So basically it has a problem with a macro contained in one the cpp files. T... | android|c++|sfml | 0 | 2016-04-15T04:19:16.020Z | 2,016 | 4 | 4 | 4 | 254 | 1 | 372 | 34 | 3 | 1 | true | false | false | false | false | false | zero |
36,638,213 | RichRelevance SDK internally giving Null Pointer Exception. How to fix it? | <pre><code>// method to set the richRelevance configuration
public static void initializeRichRelevance(Context context) {
final SharedPreference sharedPreference = SharedPreference.getInstance(context);
ClientConfiguration config = new ClientConfiguration(APIKEY, CLIENTKEY);
config.setApiClientSecret("");
... | [CODE] Fatal Exception: java.lang.NullPointerException at com.richrelevance.internal.net.HttpUrlConnectionExecutor.getConnection(HttpUrlConnectionExecutor.java:87) at com.richrelevance.internal.net.HttpUrlConnectionExecutor.execute(HttpUrlConnectionExecutor.java:40) at com.richrelevance.internal.net.WebRequestManager.e... | android|e-commerce | 0 | 2016-04-15T04:21:10.140Z | 2,016 | 4 | 4 | 4 | 67 | 0 | 735 | 74 | 2 | 1 | true | true | false | false | false | false | zero |
36,638,247 | What's the correct way to write a sqlite.query? (Android) | <p>I'm struggling to update and query certain entries to my database.
The code above compares the JobNo to the entries in the db and updates the appropriate one however, when trying to only update that particular component the second line throws an error.</p>
<pre><code> long id = db.update(DatabaseHelper.COMP_TAB... | I'm struggling to update and query certain entries to my database. The code above compares the JobNo to the entries in the db and updates the appropriate one however, when trying to only update that particular component the second line throws an error. [CODE] Simliar when querying to fetch data from the database It thr... | android|sqlite | 2 | 2016-04-15T04:24:38.413Z | 2,016 | 4 | 4 | 4 | 59 | 1 | 476 | 57 | 2 | 4 | true | false | false | false | false | false | low |
36,638,274 | Looping with while loop while fetching records from database is not working properly | <p>Im trying to iterate two arrays simultaneously as follows,</p>
<p>First if countriesIterator has got next element, domain Iterator will be looped.
CountryIterator has got two elements and domain iterator might contain n elements.
when Im looping the domainIterator, Im populating an arraylist with values that I ... | Im trying to iterate two arrays simultaneously as follows, First if countriesIterator has got next element, domain Iterator will be looped. CountryIterator has got two elements and domain iterator might contain n elements. when Im looping the domainIterator, Im populating an arraylist with values that I have looped. an... | android|database|sqlite | 0 | 2016-04-15T04:27:46.190Z | 2,016 | 4 | 4 | 4 | 59 | 1 | 741 | 84 | 3 | 1 | true | false | false | false | false | false | zero |
36,638,280 | Combine String Array and Iterator and sort | <p>I have 2 sets of values in my app - 1 from resources file and 1 from sharedpreferences. Is there an easy way to combine these both and create a Sorted List for the adapter? Here is my code:</p>
<pre><code> Spinner copyFromCity = (Spinner) findViewById(R.id.spinner);
Resources res = getResources();
String... | I have 2 sets of values in my app - 1 from resources file and 1 from sharedpreferences. Is there an easy way to combine these both and create a Sorted List for the adapter? Here is my code: [CODE] Adding readCitiesFromPref() method for clarifying why Iterator is being returned [CODE] | java|android|arrays|sorting | 0 | 2016-04-15T04:28:04.733Z | 2,016 | 4 | 4 | 4 | 70 | 2 | 284 | 42 | 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.