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,807,580 | Fragments not refreshing on swiping tabs in TabLayout | <p>We are working on a project where there are four tabs inside a tablayout.Each of the four tabs are Fragments and have web services called in them on their loading.We need the web service to be called again so that we can refresh the Fragments on swiping. But when the first fragment is loaded and when I swipe the tab... | We are working on a project where there are four tabs inside a tablayout.Each of the four tabs are Fragments and have web services called in them on their loading.We need the web service to be called again so that we can refresh the Fragments on swiping. But when the first fragment is loaded and when I swipe the tabs a... | java|android | 0 | 2016-04-23T06:41:49.600Z | 2,016 | 4 | 6 | 5 | 1,989 | 1 | 765 | 53 | 2 | 2 | true | false | false | false | false | false | zero |
36,807,586 | android - how fit google map image to screen width | <p>I am trying to display an image of google map in my app so it match width of screen.
I used DisplayMetrics as following code and pass it to google to get image in that size (see url parameters). but as you can see in screenshot, it display wrong width. how fix it? I think what I send in parameters for google is not ... | I am trying to display an image of google map in my app so it match width of screen. I used DisplayMetrics as following code and pass it to google to get image in that size (see url parameters). but as you can see in screenshot, it display wrong width. how fix it? I think what I send in parameters for google is not cor... | java|android | 0 | 2016-04-23T06:42:48.617Z | 2,016 | 4 | 6 | 5 | 361 | 3 | 385 | 50 | 2 | 2 | true | false | false | false | false | false | zero |
36,807,692 | Capturing event if power button is pressed for 3 seconds or clicked 3 times inside Service | <p>I want to capture <code>Power button press event</code> in my app and that too <strong>inside a Service</strong> that runs in background. For this I used following code with <strong>Broadcast Receiver</strong>.</p>
<pre><code>private static final String ACTION="android.intent.action.SCREEN_ON";
private BroadcastRec... | I want to capture Power button press event in my app and that too inside a Service that runs in background. For this I used following code with Broadcast Receiver . [CODE] onReceive() Method: [CODE] With this code I am able to detect button's press event inside receiver. Now I want to detect that whether power button w... | android|android-service|android-broadcastreceiver | 3 | 2016-04-23T06:56:26.463Z | 2,016 | 4 | 6 | 5 | 1,215 | 1 | 680 | 90 | 3 | 3 | true | false | false | false | false | false | low |
36,807,721 | Attempt to invoke virtual method when displaying TOAST? | <p>when you click a button in my activity it starts/displays a <code>DatePickerDialog</code>. When the user selects a date and clicks "ok" i want to run an <code>AsyncTask</code> in the original class (the activity where the button was clicked). Everything works but i want to display to the user a TOAST when the AsyncT... | when you click a button in my activity it starts/displays a DatePickerDialog . When the user selects a date and clicks "ok" i want to run an AsyncTask in the original class (the activity where the button was clicked). Everything works but i want to display to the user a TOAST when the AsyncTask is finished but it keep ... | java|android|android-fragments|android-asynctask|android-dialogfragment | -2 | 2016-04-23T07:00:39.133Z | 2,016 | 4 | 7 | 5 | 1,429 | 1 | 610 | 55 | 5 | 4 | true | false | false | false | false | true | negative |
36,807,768 | How do I call an ArrayAdapter function from my Utility class? | <p>Hi in my ArrayAdapter class when I click on button I'm showing Alert dialog box. </p>
<p>This alert dialog box and all related coding part is written in my "Common utility" class as like below.</p>
<p>My requirement is when I tap on alert dialogue box <code>OK</code> and <code>CANCEL</code> buttons I want to hand... | Hi in my ArrayAdapter class when I click on button I'm showing Alert dialog box. This alert dialog box and all related coding part is written in my "Common utility" class as like below. My requirement is when I tap on alert dialogue box OK and CANCEL buttons I want to handle that click events in my Adapter class how ca... | android|android-alertdialog|android-adapter | -3 | 2016-04-23T07:05:09.480Z | 2,016 | 4 | 7 | 5 | 57 | 2 | 405 | 61 | 3 | 2 | true | false | false | false | false | true | negative |
36,807,837 | Display image in GridView using Picasso | <p>I want to build an app that displays images in a gridview by using the picasso library. This is my code. The image didn't load. In Picasso log, after request it always error to load. Can you help me ?Please Thank you</p>
<p><strong>UPDATE</strong></p>
<p>CustomGridViewAdapter.Java</p>
<pre><code>import android.ap... | I want to build an app that displays images in a gridview by using the picasso library. This is my code. The image didn't load. In Picasso log, after request it always error to load. Can you help me ?Please Thank you UPDATE CustomGridViewAdapter.Java [CODE] MainActivity.Java [CODE] | java|android|gridview|picasso | -1 | 2016-04-23T07:12:24.363Z | 2,016 | 4 | 7 | 5 | 1,453 | 3 | 282 | 39 | 4 | 2 | true | false | false | false | false | true | negative |
36,807,841 | I'm not able to transfer JSON data to Database | <p>I've written a routine to transfer data from JSON to SQLite database in Android,but for some reason,its not getting transferred,am i missing something?
This is my OncreateInstance</p>
<pre><code> try
{
JSONObject jsonObject=new JSONObject(ParsingDta);
JSONArray jsonArray= jsonObject.getJSONArray... | I've written a routine to transfer data from JSON to SQLite database in Android,but for some reason,its not getting transferred,am i missing something? This is my OncreateInstance [CODE] This is my ParsingData contents [CODE] And Following is my DataBaseHelperClass for insertData function [CODE] This has been driving m... | android|json|android-sqlite | 0 | 2016-04-23T07:12:40.090Z | 2,016 | 4 | 7 | 5 | 74 | 0 | 359 | 46 | 3 | 3 | true | true | false | false | false | false | zero |
36,807,935 | Android support:design won't import | <p>Trying to install the design support libraries to use TabLayout, but despide a successful gradle sync they do not appear in the external libraries section nor are they usable. Here are the relevant sections of the build.gradle:</p>
<pre><code>android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
de... | Trying to install the design support libraries to use TabLayout, but despide a successful gradle sync they do not appear in the external libraries section nor are they usable. Here are the relevant sections of the build.gradle: [CODE] As you can see, I've installed a lot to try to fix this and I'm no longer sure what i... | android | 0 | 2016-04-23T07:23:29.053Z | 2,016 | 4 | 7 | 5 | 216 | 1 | 368 | 35 | 1 | 1 | true | false | false | false | false | false | zero |
36,807,952 | SetRetainInstance in Xamarin not showing | <p>i've searched google for this but i really can't. i'm so desparete i've even searched second page.</p>
<p>intelliense does not know any <code>setRetainInstance</code>
my fragment is not in backstack, and when I change the screen orientation, the app crashes, please tell me how to implement the <code>setRetainInceta... | i've searched google for this but i really can't. i'm so desparete i've even searched second page. intelliense does not know any setRetainInstance my fragment is not in backstack, and when I change the screen orientation, the app crashes, please tell me how to implement the setRetainIncetance in xamarin i know that it ... | xamarin.android | 1 | 2016-04-23T07:25:05.833Z | 2,016 | 4 | 7 | 5 | 451 | 1 | 467 | 40 | 1 | 1 | true | false | false | false | false | false | low |
36,808,069 | Track impression of items in an android ListView | <p>I have a <strong>ListView</strong> and an <strong>ArrayAdapter < CustomListViewItem ></strong> set as its adapter. I would like to track number of impressions of each <strong>CustomListViewItem</strong> item. </p>
<p>Whenever a ListView item comes into view that should count as one impression. When it goes out o... | I have a ListView and an ArrayAdapter < CustomListViewItem > set as its adapter. I would like to track number of impressions of each CustomListViewItem item. Whenever a ListView item comes into view that should count as one impression. When it goes out of view and then again comes into view the impression count increme... | android|listview | 0 | 2016-04-23T07:41:00.390Z | 2,016 | 4 | 7 | 5 | 973 | 1 | 1,204 | 48 | 2 | 0 | false | false | false | false | false | false | zero |
36,808,109 | Issue with setting android's appBar/toolbar title multiple times | <p>I'm developing an android app and I'm stuck in organizing the layout in a input form activity. I would like to organize the layout of my activity like this sample (found in google android's docs): <a href="https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0Bzhp5Z4wHba3Skg2b19UV... | I'm developing an android app and I'm stuck in organizing the layout in a input form activity. I would like to organize the layout of my activity like this sample (found in google android's docs): https://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0Bzhp5Z4wHba3Skg2b19UVS1LSmc/compo... | android|android-toolbar|android-appbarlayout | 1 | 2016-04-23T07:46:01.237Z | 2,016 | 4 | 7 | 5 | 1,548 | 4 | 1,459 | 64 | 3 | 3 | true | false | false | false | false | false | low |
36,808,114 | How to make style="?attr/actionButtonStyle" workable for rectangle toolbar button | <p>In our previous holo designed app (<code>targetSdkVersion</code> 21, with theme <code>Theme.Sherlock.Light.DarkActionBar</code>), we are using system style attribute <strong><code>attr/actionButtonStyle</code></strong> to define our custom action bar button style.</p>
<h2>actionbar_custom_view_done_discard.xml</h2>... | In our previous holo designed app ( targetSdkVersion 21, with theme Theme.Sherlock.Light.DarkActionBar ), we are using system style attribute attr/actionButtonStyle to define our custom action bar button style. actionbar_custom_view_done_discard.xml [CODE] actionbar_done_button.xml [CODE] StockAlertFragmentActivity.jav... | android | 5 | 2016-04-23T07:46:15.503Z | 2,016 | 4 | 7 | 5 | 2,470 | 1 | 1,268 | 81 | 1 | 5 | true | false | false | false | false | false | low |
36,808,125 | How to load more pages data from JSON in Android? | <p>I want develop android application for one website! in this site ever pages show 10 posts, and other posts go to pages. I can just show 10 posts (page 1), and <strong><em>i want when scroll down, show more post on the following pages will display the 10 entries</em></strong>.<br>
For show posts, i use <code>Recycler... | I want develop android application for one website! in this site ever pages show 10 posts, and other posts go to pages. I can just show 10 posts (page 1), and i want when scroll down, show more post on the following pages will display the 10 entries . For show posts, i use RecyclerView component. Json (from site) : [CO... | android|json | 0 | 2016-04-23T07:47:18Z | -1 | -1 | -1 | -1 | 66 | 1 | 546 | 49 | 2 | 2 | true | false | false | false | false | false | zero |
36,808,183 | Deleting and editing list items in android? | <p>I have a list view with two buttons edit and delete.On click of these buttons I either update or delete the items in the list view from my custom adapter.But the problem is if I add a new item to the list my previous changes are discarded and old values are displayed.</p>
<blockquote>
<p>The following is my code ... | I have a list view with two buttons edit and delete.On click of these buttons I either update or delete the items in the list view from my custom adapter.But the problem is if I add a new item to the list my previous changes are discarded and old values are displayed. The following is my code for the adapter. [CODE] Th... | android|arrays|json|android-arrayadapter | 4 | 2016-04-23T07:53:55.573Z | 2,016 | 4 | 7 | 5 | 352 | 0 | 785 | 43 | 4 | 4 | true | true | false | false | false | false | low |
36,808,199 | Position of elements inside layout change because screen size | <p>I have this layout and when I run the application on the first emulator the layout show all of the element as i want. But when I launch it on the Second emulator which has smaller screen the elements of the layout are getting missed and not arranged. </p>
<p><strong>My Question:</strong> How to make the layout inde... | I have this layout and when I run the application on the first emulator the layout show all of the element as i want. But when I launch it on the Second emulator which has smaller screen the elements of the layout are getting missed and not arranged. My Question: How to make the layout independent for all the Devices b... | android|android-layout|layout|android-linearlayout|android-relativelayout | 0 | 2016-04-23T07:56:14.670Z | 2,016 | 4 | 7 | 5 | 446 | 2 | 600 | 61 | 5 | 1 | true | false | false | false | false | false | zero |
36,808,317 | how to save an image file in android? | <p>I want save an image file in android, and the system gallery can view it or delete it. I use the following code, but found gallery could not find it,let alone view it or delete it. Any suggestion?</p>
<pre><code>private void saveImage(Bitmap finalBitmap){
String root = Environment.getExternalStoragePublicDirect... | I want save an image file in android, and the system gallery can view it or delete it. I use the following code, but found gallery could not find it,let alone view it or delete it. Any suggestion? [CODE] | android | 0 | 2016-04-23T08:10:03.563Z | 2,016 | 4 | 8 | 5 | 51 | 2 | 203 | 37 | 1 | 1 | true | false | false | false | false | false | zero |
36,808,319 | How to send data from list adapter to activity in android? | <p>I have a custom list adapter I would like to pass values from this list adapter to an activity where I set the adapter.
This is my Adapter code.</p>
<pre><code>public class RoleList extends ArrayAdapter<String>
{
private ArrayList<String> name;
private ArrayList<String> username;
priva... | I have a custom list adapter I would like to pass values from this list adapter to an activity where I set the adapter. This is my Adapter code. [CODE] Log for Null pointer exception. 04-23 14:59:16.462 24919-24919/org.bordetuts.com.goldmine E/AndroidRuntime: FATAL EXCEPTION: main 04-23 14:59:16.462 24919-24919/org.bor... | java|android|listadapter | 3 | 2016-04-23T08:10:08.460Z | 2,016 | 4 | 8 | 5 | 2,012 | 1 | 2,305 | 58 | 3 | 1 | true | false | false | false | false | false | low |
36,808,361 | Not be able to update the list view, after removing some items | <p>I have to update the list after optimizing the running apps ....</p>
<pre><code> m_optimizeBtn.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
launchProgressRing(OptimizationActivity.this);
listAdaptor.notifyDataSetChanged();
... | I have to update the list after optimizing the running apps .... [CODE] Killing the running process in a seprate thread.... [CODE] listAdaptor.notifyDataSetChanged() is not working ,don't know why ??? | java|android|listview|arraylist | 0 | 2016-04-23T08:14:09.760Z | 2,016 | 4 | 8 | 5 | 40 | 2 | 200 | 62 | 4 | 2 | true | false | false | false | false | false | zero |
36,808,430 | Android: How to call non static method of an activity from AsyncTask (via doInBackground) | <p>I have a <code>class</code> that takes care of performing background tasks.</p>
<pre><code>public class BackgroundTask extends AsyncTask<Void, Void, Void>
{
private ProgressDialog dialog;
public BackgroundTask(AppCompatActivity activity)
{
dialog = new ProgressDialog(activity);
}
... | I have a class that takes care of performing background tasks. [CODE] In my activity MyActivity (derived from AppCompatActivity ) whenever there are time consuming task, I call it like this: [CODE] And then displays waiting animation in dialog which is perfectly fine. I like to know: How can I pass non static method (t... | android|android-asynctask | 0 | 2016-04-23T08:22:46.063Z | 2,016 | 4 | 8 | 5 | 1,322 | 2 | 481 | 89 | 2 | 2 | true | false | false | false | false | false | zero |
36,808,437 | posting data from android to localhost | <p>I am making a simple application where user responses for three questions are taken with the help of radio buttons and submitted to be stored in a database I have created on my localhost wamp server.
i have no errors in my logcat but still the localhost database doesnot update data when I add entry to it.i.e the ch... | I am making a simple application where user responses for three questions are taken with the help of radio buttons and submitted to be stored in a database I have created on my localhost wamp server. i have no errors in my logcat but still the localhost database doesnot update data when I add entry to it.i.e the change... | php|android|json|server|http-post | 0 | 2016-04-23T08:23:32.623Z | 2,016 | 4 | 8 | 5 | 496 | 0 | 452 | 38 | 5 | 5 | true | true | false | false | false | false | zero |
36,808,622 | Can't get current location android on location changed | <p>whats wrong with my PC i am using and android studio (macbook).
i had tried different ways to get current location but every time i failed i followed different tutorials using different procedure to get location but had no luck. i followed <a href="http://www.androidhive.info/2012/07/android-gps-location-manager-tut... | whats wrong with my PC i am using and android studio (macbook). i had tried different ways to get current location but every time i failed i followed different tutorials using different procedure to get location but had no luck. i followed this tutorial but it doesn't worked for me but i downloaded the source code it w... | android|android-studio|locationmanager | 0 | 2016-04-23T08:46:16.017Z | 2,016 | 4 | 8 | 5 | 8,994 | 2 | 675 | 54 | 3 | 1 | true | false | true | false | false | false | zero |
36,808,658 | Why Does I Cannot Call onReceive() in android studio | <p>I made a project in Android Studio, when I call someone to show a log, But it doesn't work.
<strong>BroadcastReceiver.java</strong>
</p>
<pre><code>package com.example.callphone.call;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
i... | I made a project in Android Studio, when I call someone to show a log, But it doesn't work. BroadcastReceiver.java [CODE] AndroidManifest.xml [CODE] I cannot see the log on logcat when I calling a number. But I type the same code in Eclipse , and it works. there is code in Eclipse : AndroidManifest.xml [CODE] callPhone... | android|eclipse|android-studio|android-broadcastreceiver | 0 | 2016-04-23T08:50:47.820Z | 2,016 | 4 | 8 | 5 | 184 | 0 | 459 | 52 | 4 | 4 | true | true | false | false | false | false | zero |
36,808,806 | Android, fast video processing | <p>I have troubles in my current project which requires video processing. Basically crop function (video should be squared), trimming (video shouldn't be longer than 30 seconds) and quality reduction (bitrate should be equal 713K).<br>
I've succesfully embedded FFmpeg into application, all functions are working quite f... | I have troubles in my current project which requires video processing. Basically crop function (video should be squared), trimming (video shouldn't be longer than 30 seconds) and quality reduction (bitrate should be equal 713K). I've succesfully embedded FFmpeg into application, all functions are working quite fine exc... | android|video|ffmpeg | 2 | 2016-04-23T09:09:09.427Z | 2,016 | 4 | 9 | 5 | 1,769 | 1 | 1,868 | 30 | 3 | 0 | false | false | false | false | false | false | low |
36,808,833 | I want to create a sample project using Sqlite plugin (Cordova) in Hybrid Mobile Apllication? | <p>I referred the code mentioned in <a href="https://github.com/litehelpers/Cordova-sqlite-storage" rel="nofollow">https://github.com/litehelpers/Cordova-sqlite-storage</a>. Database file is not generated. Any help should be appreciated.</p>
<pre><code>document.addEventListener('deviceready', onDeviceReady, false);
f... | I referred the code mentioned in https://github.com/litehelpers/Cordova-sqlite-storage . Database file is not generated. Any help should be appreciated. [CODE] | javascript|android|html|sqlite|cordova | 0 | 2016-04-23T09:12:34.920Z | 2,016 | 4 | 9 | 5 | 486 | 1 | 159 | 93 | 5 | 1 | true | false | false | false | false | false | zero |
36,808,919 | How to get phone number type label from given phone number in android | <p>I tried to print Contact name(Eg. "Jose") & Contact phone number type value(Eg. "Home","Work",etc.,) from phone contact for given particular phone number(Eg. "9600515852")</p>
<p>for this i used bellow code. but i can able get Contact name only. i am getting app crash when i am trying to get the phone number ty... | I tried to print Contact name(Eg. "Jose") & Contact phone number type value(Eg. "Home","Work",etc.,) from phone contact for given particular phone number(Eg. "9600515852") for this i used bellow code. but i can able get Contact name only. i am getting app crash when i am trying to get the phone number type. Please guid... | android|android-contacts|phone-number | 0 | 2016-04-23T09:22:25.980Z | 2,016 | 4 | 9 | 5 | 1,149 | 3 | 332 | 69 | 3 | 1 | true | false | false | false | false | false | zero |
36,808,984 | Value <br of type java.lang.String cannot be converted to JSONObject// php error | <p>I want to access Android apps through Web-Service. In the web service the new registration is performed. In the android apps, the xml file for the new registration is made. The data is saved successfully in SQL server database and it save properly by web service and return data get in jason string.</p>
<p>But when ... | I want to access Android apps through Web-Service. In the web service the new registration is performed. In the android apps, the xml file for the new registration is made. The data is saved successfully in SQL server database and it save properly by web service and return data get in jason string. But when string is c... | php|android|sql-server|json | 0 | 2016-04-23T09:28:51Z | -1 | -1 | -1 | -1 | 15 | 0 | 519 | 80 | 4 | 4 | true | true | false | false | false | false | zero |
36,809,000 | Android Studio: Unable to Start AVD | <p>I have installed Android Studio, but I am Unable to start run any of the sample applications on the net. Under AVD Manager after selecting the AVD to run, it shows the AVD dialog with a black screen and the word "android" at the centre of the screen. When I try to run the sample applications, it takes a long time (a... | I have installed Android Studio, but I am Unable to start run any of the sample applications on the net. Under AVD Manager after selecting the AVD to run, it shows the AVD dialog with a black screen and the word "android" at the centre of the screen. When I try to run the sample applications, it takes a long time (abou... | android|android-studio|avd|qemu | 2 | 2016-04-23T09:30:07.323Z | 2,016 | 4 | 9 | 5 | 3,186 | 3 | 653 | 35 | 4 | 1 | true | false | true | false | false | false | low |
36,809,050 | My onResume depends on `onViewCreated`. How can I redesign it? | <p>I have a fragment and <code>onViewCreated</code> an AsyncTask is started that loads some data in the background and in <code>onPostExecute</code> it loads the data to an <code>ArrayAdapter</code> to be displayed to a list in the UI.<br>
Now <code>onResume</code> I need to load some other data that needs to be loaded... | I have a fragment and onViewCreated an AsyncTask is started that loads some data in the background and in onPostExecute it loads the data to an ArrayAdapter to be displayed to a list in the UI. Now onResume I need to load some other data that needs to be loaded in a background thread. So I can use start an AsyncTask fo... | java|android|multithreading|android-fragments|android-asynctask | 1 | 2016-04-23T09:34:02.197Z | 2,016 | 4 | 9 | 5 | 491 | 1 | 1,014 | 62 | 5 | 0 | false | false | false | false | false | false | low |
36,809,152 | ionic build android failed; 'failed to find Build Tools revision 22.0.1' | <p>I'm getting this error when trying to build my ionic project for Android.
AILURE: Build failed with an exception.</p>
<ul>
<li>What went wrong:
Execution failed for task ':CordovaLib:preBuild'.</li>
</ul>
<blockquote>
<blockquote>
<p>failed to find Build Tools revision 22.0.1</p>
</blockquote>
<ul>
... | I'm getting this error when trying to build my ionic project for Android. AILURE: Build failed with an exception. What went wrong: Execution failed for task ':CordovaLib:preBuild'. failed to find Build Tools revision 22.0.1 Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to g... | android|cordova|ionic-framework | 1 | 2016-04-23T09:45:12.280Z | 2,016 | 4 | 9 | 5 | 598 | 0 | 836 | 72 | 3 | 0 | false | true | false | false | false | false | low |
36,809,170 | Local Notifications in an Android Library | <p>I'm writing here because I'm facing a probleme that I could not resolve even after many researches and tries.</p>
<p>I'm currently developing an Android Library which consists only of java classes and fragment. The problem is I need to send Local Notifications to the user, and clicking on the notifications should s... | I'm writing here because I'm facing a probleme that I could not resolve even after many researches and tries. I'm currently developing an Android Library which consists only of java classes and fragment. The problem is I need to send Local Notifications to the user, and clicking on the notifications should send the use... | java|android|android-intent|notifications|android-pendingintent | 1 | 2016-04-23T09:47:34.060Z | 2,016 | 4 | 9 | 5 | 952 | 3 | 1,604 | 41 | 5 | 2 | true | false | false | false | false | false | low |
36,809,245 | How to access a zipEntry from a streamed zip file in memory | <p>I'm currently implementing an Ereader library (<a href="http://skyepub.net/" rel="nofollow noreferrer">skyepub</a>) that requires that I implement a method that checks if a zipEntry exists or not. In their demo version, the solution is simple: </p>
<pre><code>public boolean isExists(String baseDirectory,String cont... | I'm currently implementing an Ereader library ( skyepub ) that requires that I implement a method that checks if a zipEntry exists or not. In their demo version, the solution is simple: [CODE] So as you can see, you can access the ZipEntry in question in O(1) time using getZipEntry(contentPath); However, in my case I c... | java|android|zip|compression|skyepub | 1 | 2016-04-23T09:55:34.207Z | 2,016 | 4 | 9 | 5 | 2,068 | 3 | 836 | 59 | 5 | 2 | true | false | false | false | false | false | low |
36,809,271 | Tracking down java.lang.ArrayIndexOutOfBoundsException in Android | <p>When running my app in Android Studio I am getting an error:</p>
<p><code>Throwing new exception 'length=55; index=66' with unexpected pending exception: java.lang.ArrayIndexOutOfBoundsException: length=55; index=66 at void cz.alois_seckar.vseadventrura.DialogueActivity.onCreate(android.os.Bundle) (DialogueActivity... | When running my app in Android Studio I am getting an error: Throwing new exception 'length=55; index=66' with unexpected pending exception: java.lang.ArrayIndexOutOfBoundsException: length=55; index=66 at void cz.alois_seckar.vseadventrura.DialogueActivity.onCreate(android.os.Bundle) (DialogueActivity.java:26) The pro... | java|android|debugging | 1 | 2016-04-23T09:58:00.447Z | 2,016 | 4 | 9 | 5 | 2,629 | 3 | 1,760 | 65 | 3 | 0 | false | false | true | false | false | false | low |
36,809,272 | Error:(23, 26) String types not allowed (at 'src' with value 'pen').? | <p>So i'm trying to learn android development and im trying this program but its giving me the error <code>Error:(23, 26) String types not allowed (at 'src' with value 'pen').</code> when i try to run it on my Nexus 6.</p>
<p>Java Code:
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;... | So i'm trying to learn android development and im trying this program but its giving me the error Error:(23, 26) String types not allowed (at 'src' with value 'pen'). when i try to run it on my Nexus 6. Java Code: import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.Button; i... | java|android|xml|android-layout|android-studio | 0 | 2016-04-23T09:58:09.853Z | 2,016 | 4 | 9 | 5 | 1,000 | 1 | 423 | 69 | 5 | 3 | true | false | false | false | false | false | zero |
36,809,284 | MapView.onMapReady never called in Fragment for load Google Map in MapView | <p>I'll try to show a map in my Android application on a fragment named <code>RoeteFragment</code>. If I debug my code I see that the method <code>onMapReady</code> is never called so that the map will not load.</p>
<p>The fragment implements <code>OnMapReadyCallback</code> like needed and in the <code>onCreateView</c... | I'll try to show a map in my Android application on a fragment named RoeteFragment . If I debug my code I see that the method onMapReady is never called so that the map will not load. The fragment implements OnMapReadyCallback like needed and in the onCreateView I get the MapView and call getMapAsync . If I place a bre... | android|google-maps|android-mapview | 8 | 2016-04-23T09:58:46.810Z | 2,016 | 4 | 9 | 5 | 14,778 | 6 | 596 | 74 | 3 | 2 | true | false | true | true | false | false | medium |
36,809,340 | How to Decode values in listView/cursor/adapter(from Database) / modify every item in list in android ? | <p>i working on my first app for android and i trying do this.
I have database with task info like name, deadline, etc. I have Encoded this data with rsa. Now i want show all task from database but i need to decode every value from list/cursor/adapter. I know how to do this when i select one item from DB, but when i se... | i working on my first app for android and i trying do this. I have database with task info like name, deadline, etc. I have Encoded this data with rsa. Now i want show all task from database but i need to decode every value from list/cursor/adapter. I know how to do this when i select one item from DB, but when i selec... | java|android|listview|rsa | 1 | 2016-04-23T10:04:22.983Z | 2,016 | 4 | 10 | 5 | 66 | 0 | 645 | 103 | 4 | 2 | true | true | false | false | false | false | low |
36,809,393 | Error while accessing network state | <p>I want to connect my app to the internet so i put in the permission check for connecting to the internet and accessing network state:-
</p>
<pre><code><application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
... | I want to connect my app to the internet so i put in the permission check for connecting to the internet and accessing network state:- [CODE] I have tried all the solutions previously posted like adding user-permission again and also clean build but nothing seems to work. I use API 22. I would really appreciate some he... | java|android|security|permissions|user-permissions | 0 | 2016-04-23T10:09:18.257Z | 2,016 | 4 | 10 | 5 | 440 | 1 | 355 | 35 | 5 | 2 | true | false | false | false | false | false | zero |
36,809,451 | Sending a parameter from activity1 to Activity2 | <p>In my android application i want to send the value of EditText from an Activity1 to Activity2 to be used there ..What can i do please??</p>
<p>//This is my first Activity </p>
<pre><code>public class registrer extends Activity {
EditText ET_USER_NAME,ET_USER_PASS,ET_USER_CONFIRM;
Button btsuivant;
@Override
... | In my android application i want to send the value of EditText from an Activity1 to Activity2 to be used there ..What can i do please?? //This is my first Activity [CODE] // the CreerCV3 [CODE] //xml of the textviex [CODE] //xml of the editText (regiter) seems like everthing is ok but when i run the app there is no tex... | android|android-studio | 0 | 2016-04-23T10:14:49.670Z | 2,016 | 4 | 10 | 5 | 98 | 3 | 336 | 47 | 2 | 3 | true | false | false | false | false | false | zero |
36,809,453 | Why doesn't the following piece of code input data properly? | <pre><code>package com.example.my.galgu;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
TextView textView;
long first=1, second=1, answer;
... | [CODE] A method for each of the buttons from one to zero. The problem lies somewhere in the below method where the first and second are stored. The method first checks if any of the +,-,*,/ buttons are pressed and then stores the value in either the first or second variable. The last digit for the first variable is omi... | java|android|android-layout | 0 | 2016-04-23T10:14:52.047Z | 2,016 | 4 | 10 | 5 | 30 | 0 | 353 | 60 | 3 | 2 | true | true | false | false | false | false | zero |
36,809,467 | RxAndroid - retry observable on click | <p>I'm using rxAndroid and rxKotlin in my Android app to handle network requests asynchronously. Now I would like to retry a failed network request only after click on Snackbar button.</p>
<p>My code now:</p>
<pre><code>val citiesService = ApiFactory.citiesService
citiesService.cities()
.subscribeOn(Schedulers.n... | I'm using rxAndroid and rxKotlin in my Android app to handle network requests asynchronously. Now I would like to retry a failed network request only after click on Snackbar button. My code now: [CODE] Cities interface for retrofit: [CODE] Api factory: [CODE] How can I restart the observable in such way? | android|rx-java|retrofit2|rx-android|rx-kotlin | 6 | 2016-04-23T10:16:23.700Z | 2,016 | 4 | 10 | 5 | 2,070 | 1 | 305 | 37 | 5 | 3 | true | false | false | false | false | false | medium |
36,809,491 | Android Custom Checkbox selector issue | <p>I have to customize a checkbox to show 2 different state while checked, i am using the following 2 images : </p>
<p><a href="https://i.stack.imgur.com/8uA9N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8uA9N.png" alt="enter image description here"></a></p>
<p><a href="https://i.stack.imgur.co... | I have to customize a checkbox to show 2 different state while checked, i am using the following 2 images : My custom selector is defined as follows: [CODE] But thing is i am not getting proper result as in the image does not fills my checkbox view properly if i change the height and width of the checkbox which i have ... | android|layout|checkbox | -1 | 2016-04-23T10:18:33.357Z | 2,016 | 4 | 10 | 5 | 819 | 2 | 497 | 38 | 3 | 2 | true | false | false | false | false | true | negative |
36,809,497 | Converting JSON Array from Server API request to objects in retrofit2 | <p>I have a server where I query to get a list of topics in a forum. The data returned via <code>curl</code> is something like this - </p>
<pre><code>[
{
"id": 728,
"date": "2016-01-01T13:01:51",
"date_gmt": "2016-01-01T07:31:51",
....
},
{
"id": 556,
"date": "2015-06-07T21:16:59",
"d... | I have a server where I query to get a list of topics in a forum. The data returned via curl is something like this - [CODE] Here every JSONObject is a data about forum topic. [CODE] I want to display this data in a ListView in an Android app. However, since I am using retrofit2 and gson to create the objects for the L... | java|android|json|gson|retrofit2 | 0 | 2016-04-23T10:19:39.643Z | 2,016 | 4 | 10 | 5 | 831 | 1 | 563 | 69 | 5 | 3 | true | false | false | false | false | false | zero |
36,809,639 | Got null response body on Post retrofit2 | <p>i wanna make a post a to server, and get the response body to display it
but still always got the null string</p>
<p>this is my interface class </p>
<pre><code> @POST("peserta/cek")
Call<CekPeserta> cekPeserta(@Body String kode_tiket);
class Factory {
private static PesertaAPI service;
... | i wanna make a post a to server, and get the response body to display it but still always got the null string this is my interface class [CODE] and the mainClass [CODE] | android|response|retrofit2 | -1 | 2016-04-23T10:33:37.710Z | 2,016 | 4 | 10 | 5 | 632 | 1 | 168 | 40 | 3 | 2 | true | false | false | false | false | true | negative |
36,809,652 | SSL peer shut down incorrectly: Getting error in Android Studiio, while building build.gradle of libGDX | <p>I am novice to libGDX, and while setting it for android studio, I encountered following issue:</p>
<pre><code>FAILURE: Build failed with an exception.
</code></pre>
<ul>
<li><p>What went wrong:
A problem occurred configuring root project 'FirstGame'.</p>
<blockquote>
<p>Could not resolve all dependencies for co... | I am novice to libGDX, and while setting it for android studio, I encountered following issue: [CODE] What went wrong: A problem occurred configuring root project 'FirstGame'. Could not resolve all dependencies for configuration ':classpath'. Could not download robovm-dist-compiler.jar (org.robovm:robovm-dist-compiler:... | java|android|maven|ssl|libgdx | 0 | 2016-04-23T10:34:07.420Z | 2,016 | 4 | 10 | 5 | 5,015 | 0 | 1,393 | 103 | 5 | 2 | true | true | true | false | false | false | zero |
36,809,678 | How to use database method within broadcast sms reciever | <p>I have a code that should import into a database when sms is received.
My problem is that i don't know how to call database method within the broadcast receiver class
I want to call something like this:
<code>TouliosDB.eisagoghfititi(temaxismeno_sms[1],temaxismeno_sms[2],temaxismeno_sms[3],temaxismeno_sms[4])... | I have a code that should import into a database when sms is received. My problem is that i don't know how to call database method within the broadcast receiver class I want to call something like this: TouliosDB.eisagoghfititi(temaxismeno_sms[1],temaxismeno_sms[2],temaxismeno_sms[3],temaxismeno_sms[4]); where i got it... | java|android|android-studio | 1 | 2016-04-23T10:37:11.450Z | 2,016 | 4 | 10 | 5 | 141 | 1 | 506 | 56 | 3 | 3 | true | false | false | false | false | false | low |
36,809,843 | My index parameter is not working | <p>I have been looking around for the answer but no luck on this. to resume</p>
<p>the id of my button is correct
Activity names are correct, but for some reason the Bundle is returning null and crashing my App, This is my Main Activity, please help.</p>
<p>Check the OnClick Listener I think I am using the correct fo... | I have been looking around for the answer but no luck on this. to resume the id of my button is correct Activity names are correct, but for some reason the Bundle is returning null and crashing my App, This is my Main Activity, please help. Check the OnClick Listener I think I am using the correct form Main Activity [C... | java|android|sqlite | 1 | 2016-04-23T10:53:39.330Z | 2,016 | 4 | 10 | 5 | 38 | 1 | 324 | 33 | 3 | 1 | true | false | false | false | false | false | low |
36,809,848 | Cannot POST multipart data from retrofit 2 | <p>I have to send a post request in this format.</p>
<pre><code>--__X_PAW_BOUNDARY__
Content-Disposition: form-data; name="user_photo[image]"; filename="file.jpg"
Content-Type: image/jpeg
ÿØÿàJFIFHHÿáLExifMM*i
ÿí8Photoshop 3.08BIM8BIM%ÔÙ²é ìøB~ÿÀ
"ÿÄ
ÿĵ}!1AQa"q2¡#B±ÁRÑð$3br
%&'()*456789:CDEFGHIJST... | I have to send a post request in this format. [CODE] I am basically trying to send a photo in post request with name user_photo[image] like the one on the image shown below: Here are snippets of the solutions I have considered: [CODE] This is the okhttp log: [CODE] Also: Solutions I have referred: https://github.com/sq... | android|retrofit|multipartform-data|multipart|retrofit2 | 7 | 2016-04-23T10:54:03.517Z | 2,016 | 4 | 10 | 5 | 9,072 | 5 | 649 | 42 | 5 | 3 | true | false | true | false | false | false | medium |
36,809,852 | Unit Testing with Firebase | <p>I am building an android app which uses Firebase as the back-end and an model, view, presenter architecture. However, the fact that Firebase is a cloud service complicates the automated testing in my android app. So far I have built most of the authentication system, but am unable to see how to implement unit tests ... | I am building an android app which uses Firebase as the back-end and an model, view, presenter architecture. However, the fact that Firebase is a cloud service complicates the automated testing in my android app. So far I have built most of the authentication system, but am unable to see how to implement unit tests for... | android|unit-testing|firebase|automated-tests|integration-testing | 31 | 2016-04-23T10:54:21.040Z | 2,016 | 4 | 10 | 5 | 19,818 | 2 | 795 | 26 | 5 | 1 | true | false | true | true | true | false | high |
36,809,887 | How do you find out/calculate which w<N>, h<N> or sw<N> a phone uses and which steps to use? | <p>I am working on optimising layouts for multiple screens, and I'm stuck on how to define the different <code>dimens</code> files. So, it says on android developer that you should use <code>sw<N></code>, <code>w<N></code> or <code>h<N></code>, but how can I find out in advance which one a given phone... | I am working on optimising layouts for multiple screens, and I'm stuck on how to define the different dimens files. So, it says on android developer that you should use sw<N> , w<N> or h<N> , but how can I find out in advance which one a given phone will use? I have an Sony LT26i, which has screen resolution 720 x 1280... | android|xml|android-layout|sony|screen-density | 0 | 2016-04-23T10:57:18.993Z | 2,016 | 4 | 10 | 5 | 44 | 0 | 1,281 | 92 | 5 | 0 | false | true | false | false | false | false | zero |
36,809,994 | Android animation view right to left | <p>I make a little app and im new in android animations/transition. </p>
<p>What i want:
If you pressed a button the background(view) should slide out and another should come in, but i dont want to start a other activity, i only want to change the background from the existing. </p>
<p>This is exactly what i want: <a... | I make a little app and im new in android animations/transition. What i want: If you pressed a button the background(view) should slide out and another should come in, but i dont want to start a other activity, i only want to change the background from the existing. This is exactly what i want: https://www.polymer-proj... | android|animation|view|transition | 2 | 2016-04-23T11:06:03.400Z | 2,016 | 4 | 11 | 5 | 4,563 | 3 | 1,820 | 36 | 4 | 3 | true | false | true | false | false | false | low |
36,810,145 | Using my php scripts in Android to access database | <p>I need some major help in setting up my android app to add/receive data to/from my database. I'm using Amazon's RDS service in connection with xampp's phpMyAdmin. I've already successfully connected my DB instance to the database in phpMyAdmin. Also, I've written my php scripts to do basic CRUD (Create, Read, Update... | I need some major help in setting up my android app to add/receive data to/from my database. I'm using Amazon's RDS service in connection with xampp's phpMyAdmin. I've already successfully connected my DB instance to the database in phpMyAdmin. Also, I've written my php scripts to do basic CRUD (Create, Read, Update, D... | php|android | 0 | 2016-04-23T11:22:01.317Z | 2,016 | 4 | 11 | 5 | 120 | 1 | 1,442 | 50 | 2 | 2 | true | false | false | false | false | false | zero |
36,810,210 | ListView Custom Adapter OnClick launch URL link | <p>Hi so I'm trying to create an onclick event which will send the user to a link. However I couldn't figure out how to get it to work. </p>
<p>This is my Custom Adapter getview function</p>
<pre><code> public View getView(int position, View convertView, ViewGroup parent) {
ViewHolder holder = null;
... | Hi so I'm trying to create an onclick event which will send the user to a link. However I couldn't figure out how to get it to work. This is my Custom Adapter getview function [CODE] I have an ArrayList with url strings in it. This ArrayList is called linkData. I have tried multiple ways but couldnt figure out how to m... | java|android|listview|android-studio | 0 | 2016-04-23T11:27:05.993Z | 2,016 | 4 | 11 | 5 | 1,137 | 1 | 712 | 47 | 4 | 4 | true | false | false | false | false | false | zero |
36,810,223 | What's wrong with this Recyclerview Logic? | <p>In my app, I am saving URL links(<strong>around 4000 url's having images in an Arraylist</strong> ) from a URL and displaying them in recyclerview... It is working <strong>but taking alot of time to display images.</strong> I have used <em>Picasso and Universal Image Loader library</em> with different alterations bu... | In my app, I am saving URL links( around 4000 url's having images in an Arraylist ) from a URL and displaying them in recyclerview... It is working but taking alot of time to display images. I have used Picasso and Universal Image Loader library with different alterations but cannot remove the lag/delay in image loadin... | java|android|android-recyclerview|picasso|universal-image-loader | 2 | 2016-04-23T11:28:42Z | -1 | -1 | -1 | -1 | 85 | 0 | 767 | 42 | 5 | 3 | true | true | false | false | false | false | low |
36,810,278 | Xamarin Android Player : Camera error Cant connect to Camera | <p>I am trying to use the camera capability in my xamarin android app using the below code.</p>
<pre><code>Intent intent = new Intent(MediaStore.ActionImageCapture);
StartActivityForResult(intent, 0);
</code></pre>
<p>I have enabled camera in the Android Manifest and followed all that is mentioned in this <a href="ht... | I am trying to use the camera capability in my xamarin android app using the below code. [CODE] I have enabled camera in the Android Manifest and followed all that is mentioned in this tutorial . However on running the code I get this error Camera Error : Cant connect to the Camera. Also I get the same error when openi... | android|camera|xamarin.android | 1 | 2016-04-23T11:34:32.227Z | 2,016 | 4 | 11 | 5 | 1,408 | 1 | 771 | 60 | 3 | 1 | true | false | false | false | false | false | low |
36,810,315 | ADD items to listView | <p>I created a List View in a notification page and i want to add items to this ListView from DateTimePickerDemo : so this is my DateTimePickerDemo java code and my Anotification java code</p>
<p><a href="https://i.stack.imgur.com/y0T5r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y0T5r.png" al... | I created a List View in a notification page and i want to add items to this ListView from DateTimePickerDemo : so this is my DateTimePickerDemo java code and my Anotification java code And this this is my code [CODE] } | android|listview | 0 | 2016-04-23T11:37:40.893Z | 2,016 | 4 | 11 | 5 | 53 | 0 | 219 | 21 | 2 | 1 | true | true | false | false | false | false | zero |
36,810,430 | javah error: package does not exist with gradle and Android Studio | <p>I'm facing an error when compiling my Java sources to produce C++ headers recently: <code>javah</code> spits a <code>package does not exist</code> error for some file. </p>
<p><strong>tl;dr:</strong> <code>javah</code> works fine for a Java source but not another one – which import clauses are pretty close; <code>g... | I'm facing an error when compiling my Java sources to produce C++ headers recently: javah spits a package does not exist error for some file. tl;dr: javah works fine for a Java source but not another one – which import clauses are pretty close; gradle does not process some libraries but even the packages of the process... | android-studio|gradle|android-ndk|javah | 0 | 2016-04-23T11:50:59.467Z | 2,016 | 4 | 11 | 5 | 1,916 | 2 | 1,467 | 66 | 4 | 2 | true | false | false | false | false | false | zero |
36,810,441 | Not getting json response from online server | <p>So I came over this tutorial right here <a href="https://www.youtube.com/watch?v=mdAXqQoADt8" rel="nofollow">https://www.youtube.com/watch?v=mdAXqQoADt8</a> (last part of it) everything is working absolutly fine when I'm refering to my local server. </p>
<p>Now I switched it up to an online server/database to test ... | So I came over this tutorial right here https://www.youtube.com/watch?v=mdAXqQoADt8 (last part of it) everything is working absolutly fine when I'm refering to my local server. Now I switched it up to an online server/database to test if it works the same way. Also here everything is working fine except of the json res... | php|android|json|android-studio|background-task | 0 | 2016-04-23T11:51:55.707Z | 2,016 | 4 | 11 | 5 | 139 | 1 | 737 | 44 | 5 | 1 | true | false | false | false | false | false | zero |
36,810,518 | Why is only one rectangle being drawn when calling canvas.drawRect in android? | <p>I'm trying to draw a rectangle for every string in an ArrayList using a foreach loop but it seems to only be drawing the last rectangle. </p>
<p>I've looked at similar questions but they had issues such as bottom of rectangle being higher than the top and calling drawPaint - but I do neither of these.</p>
<p><stro... | I'm trying to draw a rectangle for every string in an ArrayList using a foreach loop but it seems to only be drawing the last rectangle. I've looked at similar questions but they had issues such as bottom of rectangle being higher than the top and calling drawPaint - but I do neither of these. MainActivity.java [CODE] ... | java|android|android-canvas|draw|rect | 0 | 2016-04-23T11:59:34.633Z | 2,016 | 4 | 11 | 5 | 445 | 0 | 427 | 78 | 5 | 3 | true | true | false | false | false | false | zero |
36,810,533 | Android Asynchronous Http Client - Can't install on Mac OS 10.10.5 | <p>I just downloaded the main Java Jar file directly from here: <a href="http://loopj.com/android-async-http/" rel="nofollow">http://loopj.com/android-async-http/</a>
Double-clicked the jar file and got this error message pop up:</p>
<pre><code>"The Java JAR file "android-async-http-1.4.9.jar" could not be launched.
C... | I just downloaded the main Java Jar file directly from here: http://loopj.com/android-async-http/ Double-clicked the jar file and got this error message pop up: [CODE] In the console, it had the following 4 messages pop up: [CODE] For reference, I've confirmed that in my mac security, I've switched it to "allow apps do... | android|rest|http|asynchronous|loopj | 0 | 2016-04-23T12:00:49.867Z | 2,016 | 4 | 12 | 5 | 54 | 1 | 634 | 66 | 5 | 2 | true | false | false | false | false | false | zero |
36,810,559 | Scrollview not working just in relative layout | <p>I'm creating custom view in android (I want to do it dynamically with Java code). And I extended Relative Layout to that class. And when I use Scroll View for this Relative Layout, it doesn't work(not scrolling and just showing one of the buttons from Relative Layout).</p>
<p>But when I change the Relative Layout t... | I'm creating custom view in android (I want to do it dynamically with Java code). And I extended Relative Layout to that class. And when I use Scroll View for this Relative Layout, it doesn't work(not scrolling and just showing one of the buttons from Relative Layout). But when I change the Relative Layout to Linear La... | android|android-layout|layout|android-linearlayout|android-relativelayout | 0 | 2016-04-23T12:03:36.037Z | 2,016 | 4 | 12 | 5 | 780 | 2 | 626 | 46 | 5 | 2 | true | false | false | false | false | false | zero |
36,810,578 | How to stop button1 song when button2 song played & viceversa | <pre><code>package com.example.mymediaplayer;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.widget.Button;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.MediaControlle... | [CODE] My XML file is [CODE] | android | -2 | 2016-04-23T12:04:57.730Z | 2,016 | 4 | 12 | 5 | 44 | 1 | 28 | 61 | 1 | 2 | true | false | false | false | false | true | negative |
36,810,632 | No sound in Android TTS - wrong context? | <p>I have a class <code>DistanceAnnouncer</code>, which uses Android Text-to-speech engine to announce distance between two locations. It is constructed like this:</p>
<pre><code>public class DistanceAnnouncer {
private TextToSpeech speaker;
public DistanceAnnouncer(Context context) {
speaker = new Te... | I have a class DistanceAnnouncer , which uses Android Text-to-speech engine to announce distance between two locations. It is constructed like this: [CODE] Distance is spoken to user by this method: [CODE] In my MainActivity I create a class-level object... [CODE] Which is then used in anonymous method when clicking a ... | java|android|android-context|google-text-to-speech | 1 | 2016-04-23T12:10:00.200Z | 2,016 | 4 | 12 | 5 | 399 | 1 | 1,219 | 40 | 4 | 6 | true | false | false | false | false | false | low |
36,810,670 | Refactoring an standard Android code into Reactive code | <p>So, I am a newbie Android programmer trying to learn RxJava/RxAndroid. </p>
<p>The App I am developing to study has a local database (using Cupboard) that is backed by an API. It has two screens: one showing a list of items and other the items details. Whenever I need to show the items I call this method to load th... | So, I am a newbie Android programmer trying to learn RxJava/RxAndroid. The App I am developing to study has a local database (using Cupboard) that is backed by an API. It has two screens: one showing a list of items and other the items details. Whenever I need to show the items I call this method to load them from my l... | java|android|rx-java|rx-android | 1 | 2016-04-23T12:14:16.150Z | 2,016 | 4 | 12 | 5 | 154 | 1 | 831 | 55 | 4 | 1 | true | false | false | false | false | false | low |
36,810,681 | Android parsing 2 jsonarray | <p>I wanna parse 2 JasonArray. I don't use listview, i use spinner and textboxes to show data.</p>
<p>this is where my information is</p>
<pre><code>public class Config {
//JSON URL
public static final String DATA_URL = "http://bitirmeprojem.tk/data.php";
//Tags used in the JSON String
public static final String TAG... | I wanna parse 2 JasonArray. I don't use listview, i use spinner and textboxes to show data. this is where my information is [CODE] and this is where i parse it: [CODE] I tried to create getData2() , but it crashes the app. What else i can do? | android|arrays|json|parsing | 0 | 2016-04-23T12:15:33.727Z | 2,016 | 4 | 12 | 5 | 128 | 2 | 242 | 27 | 4 | 2 | true | false | false | false | false | false | zero |
36,810,722 | EOF exception while trying to upload images to server in retrofit 2.0.2 | <p>I am getting an IO Exception while trying to upload image to server using retrofit 2.0.2 and okhttp 3.2.0</p>
<pre><code>at okhttp3.internal.http.Http1xStream.readResponse(Http1xStream.java:199 at okhttp3.internal.http.Http1xStream.readRes... | I am getting an IO Exception while trying to upload image to server using retrofit 2.0.2 and okhttp 3.2.0 [CODE] I used [CODE] And in the request class [CODE] What may be the issue | android|retrofit2 | 3 | 2016-04-23T12:18:49.627Z | 2,016 | 4 | 12 | 5 | 2,116 | 1 | 180 | 71 | 2 | 3 | true | false | false | false | false | false | low |
36,810,845 | Android MediaStore - SQLiteException: No Such Column: Title | <p>I am trying to get a list of songs to fill a recyclerview. I have every other tab sorted, but for all songs, It refuses to work. I am using <code>MediaStore.Audio.Media.TITLE</code>.</p>
<p>This is my stack trace:</p>
<pre><code>java.lang.RuntimeException: An error occurred while executing doInBackground()
at andr... | I am trying to get a list of songs to fill a recyclerview. I have every other tab sorted, but for all songs, It refuses to work. I am using MediaStore.Audio.Media.TITLE . This is my stack trace: [CODE] My cursor method is as so: [CODE] So what is the right string to fetch? All other topics suggest to use MediaStore.Aud... | android|android-mediaplayer|mediastore | 0 | 2016-04-23T12:29:57.010Z | 2,016 | 4 | 12 | 5 | 1,083 | 1 | 419 | 59 | 3 | 2 | true | false | false | false | false | false | zero |
36,810,850 | Android picasso imageloader listview item image getting swapped | <p>I am using picasso library to load image in <code>listview</code> for fast loading image it working fine but when we scrolling listview images getting swap.</p>
<p>Please refer below code and let me know where I am going wrong</p>
<pre><code>public static class ViewHolder {
@Bind(R.id.userNameTV)
T... | I am using picasso library to load image in listview for fast loading image it working fine but when we scrolling listview images getting swap. Please refer below code and let me know where I am going wrong [CODE] | android|listview|picasso | 1 | 2016-04-23T12:30:23.877Z | 2,016 | 4 | 12 | 5 | 149 | 0 | 213 | 63 | 3 | 1 | true | true | false | false | false | false | low |
36,810,873 | Navbar overlapping last ListView item (Android) | <p><a href="https://i.stack.imgur.com/xFVWw.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/xFVWw.jpg" alt="enter image description here"></a></p>
<p>My problem is similar to above Image</p>
<p>I am getting this issue in Nexus Devices. I added margin from bottom by getting <strong>Bottom Navigation Bar</str... | My problem is similar to above Image I am getting this issue in Nexus Devices. I added margin from bottom by getting Bottom Navigation Bar height. But my application is showing extra margin from the bottom on a tablet. I do not want to change anything in my style file. [CODE] The drop_down_overlay_container in this fra... | android|android-layout|android-sdk-tools | 23 | 2016-04-23T12:32:35.457Z | 2,016 | 4 | 12 | 5 | 11,284 | 10 | 363 | 47 | 3 | 1 | true | false | true | false | true | false | high |
36,810,927 | Anonymous Bug in Intent | <p>I am populating Recyclerview items by reading Text (.txt) files from Raw
Folder.It is populated as good.Having 10 Title. </p>
<p>When I click the 1st Title, the related data is shown in Next Activity through an Intent(Intent has value). </p>
<p>But when I click any RecyclerViewItem except 1st Title,Next Activity... | I am populating Recyclerview items by reading Text (.txt) files from Raw Folder.It is populated as good.Having 10 Title. When I click the 1st Title, the related data is shown in Next Activity through an Intent(Intent has value). But when I click any RecyclerViewItem except 1st Title,Next Activity is opened,but respecti... | android|android-intent|android-recyclerview | -1 | 2016-04-23T12:38:43.723Z | 2,016 | 4 | 12 | 5 | 89 | 1 | 589 | 23 | 3 | 2 | true | false | false | false | false | true | negative |
36,810,938 | Starting an activity with an intent and getting the reference | <p>I am currently using an <strong>application project</strong> in android which <strong>includes a library.</strong> </p>
<p><strong>This library was an application by itself</strong>, because I want to make it integrated into the main application I added it as an external library.</p>
<p>Everything works fine and I... | I am currently using an application project in android which includes a library. This library was an application by itself , because I want to make it integrated into the main application I added it as an external library. Everything works fine and I use this code to start up the library application. [CODE] The problem... | android|android-studio|android-intent|android-library | 1 | 2016-04-23T12:40:01.970Z | 2,016 | 4 | 12 | 5 | 1,301 | 1 | 1,340 | 61 | 4 | 1 | true | false | false | false | false | false | low |
36,811,027 | Scrolling issues using RadioGroup in Listview? | <p>In My activity which contain on List view. Listview row contain one Textview and three Radiobutton in RadioGroup. when i select first radiobutton in first row after scrolling listView after ten (10) row the first radiobutton automatically selected appear.this will happen after every ten(10) row i don't know how?</p>... | In My activity which contain on List view. Listview row contain one Textview and three Radiobutton in RadioGroup. when i select first radiobutton in first row after scrolling listView after ten (10) row the first radiobutton automatically selected appear.this will happen after every ten(10) row i don't know how? Custom... | android | 0 | 2016-04-23T12:48:36.037Z | 2,016 | 4 | 12 | 5 | 335 | 1 | 382 | 46 | 1 | 1 | true | false | false | false | false | false | zero |
36,811,037 | Class not found when unmarshalling: android.support.v7.widget.Toolbar$SavedState | <p>i am using Maps API to create a simple android app and i get a wierd error i can't solve. It usually happens when i rotate my device. I'm using google services 8.4.0</p>
<pre><code>4-23 15:39:47.503 9419-9419/com.licenta.vladut.mmap E/Parcel: Class not found when unmarshalling: android.support.v7.widget.Toolbar$Sa... | i am using Maps API to create a simple android app and i get a wierd error i can't solve. It usually happens when i rotate my device. I'm using google services 8.4.0 [CODE] My MainActivity.java is [CODE] Activity_main.xml is [CODE] activity_map.xml is [CODE] and finally, toolbar.xml is [CODE] | java|android|xml|api|maps | 10 | 2016-04-23T12:49:39.650Z | 2,016 | 4 | 12 | 5 | 9,437 | 4 | 293 | 80 | 5 | 5 | true | false | true | false | true | false | medium |
36,811,101 | Passthrough intent filter and activity | <p>I have an implicit intent filter that handles <code>magnet:</code> scheme links by opening an intent to view with the default web browser. Currently this has the effect that clicking a magnet link throws the user out of the browser into my activity, which immediately throws them back into the browser with a new URI.... | I have an implicit intent filter that handles magnet: scheme links by opening an intent to view with the default web browser. Currently this has the effect that clicking a magnet link throws the user out of the browser into my activity, which immediately throws them back into the browser with a new URI. How do I hide t... | android|android-intent|android-activity|intentfilter | 2 | 2016-04-23T12:54:19.263Z | 2,016 | 4 | 12 | 5 | 97 | 1 | 974 | 38 | 4 | 1 | true | false | false | false | false | false | low |
36,811,116 | Android -How to use custom list view for this list view | <p>I'm a beginner in Android development. I have populated a listview from a prepopulated SQLite DB. But I need use a custom list view , because in here it only shows the main item and I need to populate a value to subitem on this list view. Please help me to do this task. </p>
<p>This is the java where list view is a... | I'm a beginner in Android development. I have populated a listview from a prepopulated SQLite DB. But I need use a custom list view , because in here it only shows the main item and I need to populate a value to subitem on this list view. Please help me to do this task. This is the java where list view is assigned. [CO... | java|android|sqlite | 0 | 2016-04-23T12:55:02.603Z | 2,016 | 4 | 12 | 5 | 50 | 2 | 405 | 55 | 3 | 3 | true | false | false | false | false | false | zero |
36,811,308 | java.lang.object cannot be cast to Data.Links when copying code from Eclipse to Android Studio | <p>I try to move a project from eclipse to android studio and the same code gives me an error:</p>
<pre><code>java.lang.object cannot be cast to Data.Links
</code></pre>
<p>On Eclipse its works well.</p>
<p>The code and android studio screen shoot attach in order to see the overal picture of the project <a href="htt... | I try to move a project from eclipse to android studio and the same code gives me an error: [CODE] On Eclipse its works well. The code and android studio screen shoot attach in order to see the overal picture of the project code and android studio screen shoot I also attach the code [CODE] | java|eclipse|android-studio|casting | 0 | 2016-04-23T13:14:08.063Z | 2,016 | 4 | 13 | 5 | 35 | 0 | 290 | 94 | 4 | 2 | true | true | false | false | false | false | zero |
36,811,369 | text Input layout for edittexts created programmatically | <p>I have created edittexts programmatically in android activity.java file. I want to add the textinputlayout for the edittexts. Is there any way to do that. I have wrapped the edittext in the xml file . I wish to do the same for the edittexts created programmatically.</p>
<p>thanks in advance. </p>
<pre><code>public... | I have created edittexts programmatically in android activity.java file. I want to add the textinputlayout for the edittexts. Is there any way to do that. I have wrapped the edittext in the xml file . I wish to do the same for the edittexts created programmatically. thanks in advance. [CODE] | android|android-support-library|android-textinputlayout | 3 | 2016-04-23T13:19:15.943Z | 2,016 | 4 | 13 | 5 | 7,112 | 2 | 292 | 56 | 3 | 1 | true | false | true | false | false | false | low |
36,811,531 | AdMob Banner appears 960x150 instead of 320x50 in libGdx - what's wrong here? | <p>I am a bit helpless with this strange effect from AdMob.</p>
<p>AdView is instanciated in code and so is the relative layout and libGdx view.</p>
<pre><code> View view = initializeForView(Engine.createEngine(G.SPRITE_BATCH_SIZE, G.WORLD_SIZE_X, G.WORLD_SIZE_Y, MainMenuScreen.class,
"backgrounds/load... | I am a bit helpless with this strange effect from AdMob. AdView is instanciated in code and so is the relative layout and libGdx view. [CODE] First, I add the view from libGdx init, then I create the adView, centered on top. The adSize is BANNER. When I start the game, everything works as it should, a banner is display... | java|android|libgdx|admob | 0 | 2016-04-23T13:35:16.017Z | 2,016 | 4 | 13 | 5 | 247 | 2 | 582 | 77 | 4 | 1 | true | false | false | false | false | false | zero |
36,811,613 | Theme not working in android | <p>I added theme changing Preference i.e changing dark theme,primary color,accent color.When i select dark theme it only changes setting activity theme not in whole app and primary color and accent color also not changing.
Code are given below.</p>
<p><strong>setting activity.java</strong> </p>
<pre><code>import andr... | I added theme changing Preference i.e changing dark theme,primary color,accent color.When i select dark theme it only changes setting activity theme not in whole app and primary color and accent color also not changing. Code are given below. setting activity.java [CODE] Base theme activity [CODE] | android|android-theme | 0 | 2016-04-23T13:45:03.433Z | 2,016 | 4 | 13 | 5 | 223 | 1 | 297 | 28 | 2 | 2 | true | false | false | false | false | false | zero |
36,811,712 | EmguCV issue with Android Xamarin Studio | <p>i would like to some assistance in a code that i am doing on Xamarin studio with emgu CV wrapper. i am developing an android app using opencv(emgucv) with C#.</p>
<ol>
<li>In my code header area it gives error of namespace of emgucv (namespace using Emgu.CV;)</li>
<li>it work fine if i change it to - using Emgu.CV;... | i would like to some assistance in a code that i am doing on Xamarin studio with emgu CV wrapper. i am developing an android app using opencv(emgucv) with C#. In my code header area it gives error of namespace of emgucv (namespace using Emgu.CV;) it work fine if i change it to - using Emgu.CV; . After this i get some a... | c#|android|opencv|xamarin|xamarin.android | 0 | 2016-04-23T13:55:22.100Z | 2,016 | 4 | 13 | 5 | 814 | 0 | 1,327 | 40 | 5 | 0 | false | true | false | false | false | false | zero |
36,811,719 | ListFragment not displaying data | <p>I'm new to android development and cant figure out why the data is not being shown in the list view. It is storing it to the Array list because when i check to see if it is null, it returns false (meaning that it has information) any help would be great! thanks in advanced!</p>
<p>Main Activity</p>
<pre><code>pack... | I'm new to android development and cant figure out why the data is not being shown in the list view. It is storing it to the Array list because when i check to see if it is null, it returns false (meaning that it has information) any help would be great! thanks in advanced! Main Activity [CODE] The fragment that is not... | java|android | 0 | 2016-04-23T13:56:07.813Z | 2,016 | 4 | 13 | 5 | 74 | 1 | 367 | 32 | 2 | 3 | true | false | false | false | false | false | zero |
36,811,763 | Cordova build android failed | <p>I am working on linux 14.04 OS and using Cordova to develop cross platform mobile apps </p>
<p>my system info is </p>
<blockquote>
<p>Cordova CLI: 6.1.1<br>
Ionic CLI Version: 1.7.14<br>
Ionic App Lib Version: 0.7.0<br>
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS<br>
Node Version: v5.10.1<... | I am working on linux 14.04 OS and using Cordova to develop cross platform mobile apps my system info is Cordova CLI: 6.1.1 Ionic CLI Version: 1.7.14 Ionic App Lib Version: 0.7.0 OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS Node Version: v5.10.1 I installed all android sdk required tools for API 20,21,22,... | android|linux|cordova|phonegap-build | 0 | 2016-04-23T14:01:01.493Z | 2,016 | 4 | 14 | 5 | 719 | 1 | 6,475 | 28 | 4 | 2 | true | false | false | false | false | false | zero |
36,811,876 | Getting Google Spreadsheet Cell Value in Android | <p>This would be just a simple JSON parsing which is confusing for me as it works in Javascript but I don't know how to work it out in Java.
I have got the response at the end of the post (put it there to keep the question clean) and trying to get these values from that string (you can find in the response):</p>
<bloc... | This would be just a simple JSON parsing which is confusing for me as it works in Javascript but I don't know how to work it out in Java. I have got the response at the end of the post (put it there to keep the question clean) and trying to get these values from that string (you can find in the response): "This is firs... | android|arrays|json | 0 | 2016-04-23T14:11:10.077Z | 2,016 | 4 | 14 | 5 | 153 | 1 | 595 | 48 | 3 | 3 | true | false | false | false | false | false | zero |
36,811,993 | Database schema issue - dev studio 2.0 Marshmallow | <p>I have an application designed and running on Android nexus 5 running marshmallow. The application was developed using android studio 2.0. Recently refactored one of the database tables to use Integers instead of Reals. As part of the refactoring, I changed the database version number in my db helper class. </p>... | I have an application designed and running on Android nexus 5 running marshmallow. The application was developed using android studio 2.0. Recently refactored one of the database tables to use Integers instead of Reals. As part of the refactoring, I changed the database version number in my db helper class. Querying th... | java|android|database|android-studio|refactoring | 0 | 2016-04-23T14:21:26.740Z | 2,016 | 4 | 14 | 5 | 33 | 0 | 1,045 | 50 | 5 | 0 | false | true | false | false | false | false | zero |
36,812,131 | Google map still not showing in Android app | <p>I have an Android app that when run in debug mode, shows Google map fine. But when run in release mode (by clicking very bottom left menu icon and selecting Build variants -> Release) does not display the map. Have hard-coded API key into manifest.xml and google_maps_api.xml as recommended by others in related posts... | I have an Android app that when run in debug mode, shows Google map fine. But when run in release mode (by clicking very bottom left menu icon and selecting Build variants -> Release) does not display the map. Have hard-coded API key into manifest.xml and google_maps_api.xml as recommended by others in related posts bu... | android|google-maps | 0 | 2016-04-23T14:34:31.767Z | 2,016 | 4 | 14 | 5 | 315 | 2 | 1,094 | 43 | 2 | 5 | true | false | false | false | false | false | zero |
36,812,164 | Switch Arabic Numbers To English In String | <p>I'm getting the time in my device, It's returning the time in GMT, and i'm converting it to Local .</p>
<p>The time i'm getting is for example : 23:00, When switching to Locale it returns in Arabic numbers, When i take the time from JSON, it doesn't switch it to Arabic .</p>
<p>Code : </p>
<pre><code> private ... | I'm getting the time in my device, It's returning the time in GMT, and i'm converting it to Local . The time i'm getting is for example : 23:00, When switching to Locale it returns in Arabic numbers, When i take the time from JSON, it doesn't switch it to Arabic . Code : [CODE] I tried the following, but didn't work : ... | java|android | 1 | 2016-04-23T14:36:58.697Z | 2,016 | 4 | 14 | 5 | 798 | 1 | 663 | 42 | 2 | 2 | true | false | false | false | false | false | low |
36,812,204 | Cannot create a html table based on a string in Android | <p>I want to create a table with html tags as strings, passing in the source code values from a 2d array.
I create a string and inside it I pass my variables
The desired format of the table data part is the following</p>
<pre><code><tr><td><td>CONTACT1&nbsp;</td><td>125&nbsp;</... | I want to create a table with html tags as strings, passing in the source code values from a 2d array. I create a string and inside it I pass my variables The desired format of the table data part is the following [CODE] But instead of this I get the following [CODE] I am trying with the following for loop [CODE] How I... | javascript|android|html | 0 | 2016-04-23T14:40:56.173Z | 2,016 | 4 | 14 | 5 | 40 | 2 | 419 | 55 | 3 | 3 | true | false | false | false | false | false | zero |
36,812,227 | FragmentManager.popBackStack() adds fragment below the current one | <p>I'm learning how to use fragments properly.
I have 4 fragments:</p>
<ul>
<li>A</li>
<li>B</li>
<li>Loading</li>
<li>Complete</li>
</ul>
<p>It should replace each other in this sequence:</p>
<p><strong>A</strong> ==> <strong>Loading</strong> ==> <strong>B</strong> ==> <strong>Loading</strong> ==> <strong>Complete... | I'm learning how to use fragments properly. I have 4 fragments: A B Loading Complete It should replace each other in this sequence: A ==> Loading ==> B ==> Loading ==> Complete Method that change my Fragment A into Loading: [CODE] Changing Fragment B into Loading looks similarly (only arguments are changed obviously) M... | android|android-fragments | 0 | 2016-04-23T14:42:31.707Z | 2,016 | 4 | 14 | 5 | 925 | 2 | 778 | 66 | 2 | 2 | true | false | false | false | false | false | zero |
36,812,265 | Xamarin.Forms Taking picture with Plugin.Media not working | <p>I'm using the Plugin.Media from @JamesMontemagno version 2.4.0-beta (which fixes picture orientation), it's working on Adroind 4.1.2 (Jelly Bean) and Marshmallow, but NOT on my Galaxy S5 Neo with Android version 5.1.1.</p>
<p>Basically when I take a picture it never returns back on the page from where I started the... | I'm using the Plugin.Media from @JamesMontemagno version 2.4.0-beta (which fixes picture orientation), it's working on Adroind 4.1.2 (Jelly Bean) and Marshmallow, but NOT on my Galaxy S5 Neo with Android version 5.1.1. Basically when I take a picture it never returns back on the page from where I started the process; a... | plugins|xamarin|xamarin.android|xamarin.forms | 3 | 2016-04-23T14:47:05.383Z | 2,016 | 4 | 14 | 5 | 4,732 | 1 | 1,150 | 58 | 4 | 1 | true | false | true | false | false | false | low |
36,812,328 | Android floating button change drawable image | <p>I have an floating button in my app. The xml layout of my floating button is the below</p>
<pre><code><android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_content"
android:layout_width... | I have an floating button in my app. The xml layout of my floating button is the below [CODE] What i want is to change the floating button image src programatically when somethings happens. What i tried so far is [CODE] But i always get this error I/FloatingActionButton: Setting a custom background is not supported. Wh... | java|android|android-button|floating-action-button | 3 | 2016-04-23T14:53:32.147Z | 2,016 | 4 | 14 | 5 | 5,670 | 3 | 440 | 45 | 4 | 2 | true | false | true | false | false | false | low |
36,812,480 | how do i print the output from another class in android? | <p>i am doing this project. when user choose the location in spinner and click next, it will show the result which is from another class. but when i run, it didnt do anything. in fact, the button also didnt even function. i dont know what is the problem. if you guys can help me it would be great. thanks. this is my sou... | i am doing this project. when user choose the location in spinner and click next, it will show the result which is from another class. but when i run, it didnt do anything. in fact, the button also didnt even function. i dont know what is the problem. if you guys can help me it would be great. thanks. this is my source... | java|android|class|fragment | -1 | 2016-04-23T15:06:34.693Z | 2,016 | 4 | 15 | 5 | 37 | 1 | 431 | 56 | 4 | 2 | true | false | false | false | false | true | negative |
36,812,527 | Unable to detect ibeacon with android beacon library | <p>I am not able to detect ibeacon presence with the android beacon library. This is my code</p>
<pre><code>BeaconManager beaconManager = BeaconManager.getInstanceForApplication(this);
beaconManager = BeaconManager.getInstanceForApplication(this);
if (beaconManager != null && !beaconManager.isB... | I am not able to detect ibeacon presence with the android beacon library. This is my code [CODE] And in the onBeaconServiceConnect method [CODE] I also added this permissions in my AndroidManifest.xml [CODE] In the output [CODE] I tried the code with two different phones and it's not working on anyone of them. This out... | android|ibeacon-android|altbeacon | 0 | 2016-04-23T15:11:38.017Z | 2,016 | 4 | 15 | 5 | 1,106 | 1 | 462 | 52 | 3 | 5 | true | false | false | false | false | false | zero |
36,812,552 | Check internet connection on application launch in android | <p>found a code that will check internet connectivity <a href="https://stackoverflow.com/questions/6493517/detect-if-android-device-has-internet-connection/25816086#25816086">here</a></p>
<p>but I do not have any idea how to implement or call this class or method as I am still studying android programming using androi... | found a code that will check internet connectivity here but I do not have any idea how to implement or call this class or method as I am still studying android programming using android studio. Please see my code below and kindly let me know how to arrange it in a way that it will fire on application launch plus includ... | java|android | -2 | 2016-04-23T15:14:24.227Z | 2,016 | 4 | 15 | 5 | 2,168 | 3 | 386 | 58 | 2 | 1 | true | false | false | false | false | true | negative |
36,812,567 | Android: Draw text on ImageView with finger touch | <p>i completed the drawing text on ImageView and i saved the final image in sd card. My problem is, when i am touching the screen to draw the text, my image in the ImageView is disappearing.</p>
<p><strong>Code</strong></p>
<pre><code>import java.io.File;
import java.io.FileOutputStream;
import android.net.Uri;
impor... | i completed the drawing text on ImageView and i saved the final image in sd card. My problem is, when i am touching the screen to draw the text, my image in the ImageView is disappearing. Code [CODE] Manifest [CODE] By using this code i am writing the text on ImageView but image in the ImageView is disappearing. So, pl... | android|bitmap|imageview|android-canvas|draw | 1 | 2016-04-23T15:15:26.817Z | 2,016 | 4 | 15 | 5 | 2,936 | 2 | 372 | 49 | 5 | 2 | true | false | true | false | false | false | low |
36,812,665 | Undo drawing image editor android? | <p>for my app I am creating an image editor which currently works fine but I want to implement un undo button which basically goes back to the previous state of the image. I am trying to do this by using an ArrayList of bitmaps. At first I use this code to open an image from gallery and set canvas:</p>
<pre><code>Bitm... | for my app I am creating an image editor which currently works fine but I want to implement un undo button which basically goes back to the previous state of the image. I am trying to do this by using an ArrayList of bitmaps. At first I use this code to open an image from gallery and set canvas: [CODE] At some point of... | java|android|android-studio|bitmap|android-canvas | 0 | 2016-04-23T15:23:49.980Z | 2,016 | 4 | 15 | 5 | 816 | 1 | 858 | 34 | 5 | 3 | true | false | false | false | false | false | zero |
36,812,679 | How to close notification when user clicks on it | <p>I'm having difficulties closing my notification once a user clicks on it from the notification bar. I'm aware of the setAutoCancel method but it doesn't seem to work. Here is my code nevertheless.</p>
<p><b>MondayNotificationService.class</b></p>
<pre><code>@Override
public void onReceive(Context context, Intent i... | I'm having difficulties closing my notification once a user clicks on it from the notification bar. I'm aware of the setAutoCancel method but it doesn't seem to work. Here is my code nevertheless. MondayNotificationService.class [CODE] Monday.class [CODE] Also when the notification expires after 5 minutes, and I open t... | android|notifications | 1 | 2016-04-23T15:25:44.337Z | 2,016 | 4 | 15 | 5 | 725 | 2 | 534 | 48 | 2 | 2 | true | false | false | false | false | false | low |
36,812,734 | RelativeLayout-LayoutParams cannot be cast to FrameLayout-LayoutParams | <p>I am trying to add images dynamically because imageview sources arechangeable also image counts are changeable.</p>
<pre><code>public class MatchingGame extends AppCompatActivity {
String TAG = "Chic";
RelativeLayout rLayout;
@Override
protected void onCreate(Bundle savedInstanceState) {
Log... | I am trying to add images dynamically because imageview sources arechangeable also image counts are changeable. [CODE] But I got this error: [CODE] It is about this line i guess [CODE] I need put left center an image, andto other side, other images so i need align parent and also size rule. But it gives errors. I have ... | android|android-layout | -1 | 2016-04-23T15:31:48.203Z | 2,016 | 4 | 15 | 5 | 754 | 1 | 619 | 70 | 2 | 4 | true | false | false | false | false | true | negative |
36,812,873 | Google play developer console tablet optimization tips-how to fix? | <p>I published my app in play market and I received a message:Your APK should include custom drawables assets for common tablet screen densities,category:Use Assets Designed for Tablet Screens.</p>
<p>1-I have a size of (hdpi,mdpi,xhdpi,xxhdpi,xxxhdpi) launcher icons in a directory
mipmap</p>
<p>2-manifest code:
<cod... | I published my app in play market and I received a message:Your APK should include custom drawables assets for common tablet screen densities,category:Use Assets Designed for Tablet Screens. 1-I have a size of (hdpi,mdpi,xhdpi,xxhdpi,xxxhdpi) launcher icons in a directory mipmap 2-manifest code: <supports-screens andro... | android | 0 | 2016-04-23T15:42:49.283Z | 2,016 | 4 | 15 | 5 | 228 | 0 | 613 | 66 | 1 | 1 | true | true | false | false | false | false | zero |
36,812,913 | dalvikvm: Could not find class 'android.* | <p><a href="http://i.stack.imgur.com/mhHhY.png" rel="nofollow">enter image description here</a>At the time of development,Application on the Android 5 system can be used normally,But in 5 the following system will Application no response .But I don't know what the reason is.The error log is as follows:</p>
<pre><code>... | enter image description here At the time of development,Application on the Android 5 system can be used normally,But in 5 the following system will Application no response .But I don't know what the reason is.The error log is as follows: [CODE] | java|android | 3 | 2016-04-23T15:46:02.227Z | 2,016 | 4 | 15 | 5 | 8,959 | 1 | 244 | 41 | 2 | 1 | true | false | true | false | false | false | low |
36,812,949 | cordova android compile failure | <p>I've been fighting with this all week and am at my wits end.</p>
<p>I have a Cordova project. It runs on Android and iPhone.</p>
<p>The iPhone project builds and runs.</p>
<p>The android project has the following error:</p>
<pre><code>-compile:
[javac] Compiling 9 source files to /Users/markj/myProj/platforms... | I've been fighting with this all week and am at my wits end. I have a Cordova project. It runs on Android and iPhone. The iPhone project builds and runs. The android project has the following error: [CODE] I thought it was related to the version of cordova - i had recently upgraded to v6, so I downgraded to v3 - the ve... | android|cordova | 2 | 2016-04-23T15:49:23.997Z | 2,016 | 4 | 15 | 5 | 34 | 0 | 835 | 31 | 2 | 1 | true | true | false | false | false | false | low |
36,812,959 | RecyclerView: new loaded items will not be added to top | <p>I am receiving new item data from server and set it to adapter of my RecyclerView. When I first start the async-task to get data then the fetched data is displayed from top. But when I start async-task again to get new data then the new data is attached below the (invisible) old ones, although I am setting <code>ada... | I am receiving new item data from server and set it to adapter of my RecyclerView. When I first start the async-task to get data then the fetched data is displayed from top. But when I start async-task again to get new data then the new data is attached below the (invisible) old ones, although I am setting adapter = nu... | android|android-asynctask|android-recyclerview|adapter | 0 | 2016-04-23T15:50:12.057Z | 2,016 | 4 | 15 | 5 | 479 | 1 | 1,005 | 55 | 4 | 2 | true | false | false | false | false | false | zero |
36,813,053 | how to draw svg line on canvas in sequence? | <p>the idea is, i want to make animated kanji letter (in sequence) like this project <a href="http://nippongrammar.appspot.com/" rel="nofollow">HTML5 Stroke Animation</a>. And my problem is, when i call onDraw method my canvas just draw simultaneously. I couldn't find much info about it on the internet, so any clue wou... | the idea is, i want to make animated kanji letter (in sequence) like this project HTML5 Stroke Animation . And my problem is, when i call onDraw method my canvas just draw simultaneously. I couldn't find much info about it on the internet, so any clue would be much appreciated if you have already come across the same s... | android|svg|android-canvas|draw | 1 | 2016-04-23T15:57:27.953Z | 2,016 | 4 | 15 | 5 | 891 | 0 | 355 | 43 | 4 | 1 | true | true | 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.