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,824,254 | Android - How to inflate xml in onCreate( ) | <p>I am just staring off with Android app development and have a question on inflating layout in onCreate() of MainActivity. May be I am not asking the right question. But basically I have 2 Tabs. I have a calculate button on the first tab that once clicked should populate a table on the 2nd tab</p>
<pre><code>public ... | I am just staring off with Android app development and have a question on inflating layout in onCreate() of MainActivity. May be I am not asking the right question. But basically I have 2 Tabs. I have a calculate button on the first tab that once clicked should populate a table on the 2nd tab [CODE] Here is activity_ma... | android|android-layout | 1 | 2016-04-24T14:16:40.633Z | 2,016 | 4 | 14 | 6 | 2,186 | 2 | 579 | 43 | 2 | 5 | true | false | false | false | false | false | low |
36,824,270 | how to get package name using android toolchain on c++? | <p>I have a process that attempts to get the package name from another process.
I am using C++ code and compiling it using Android toolchain.
I have its socket fd and ip address, however, I didn't find in the api a function that will return a string containing the package name.
I have the socket fd and the address, if ... | I have a process that attempts to get the package name from another process. I am using C++ code and compiling it using Android toolchain. I have its socket fd and ip address, however, I didn't find in the api a function that will return a string containing the package name. I have the socket fd and the address, if it ... | android|c++|sockets|toolchain|package-name | 0 | 2016-04-24T14:18:10.437Z | 2,016 | 4 | 14 | 6 | 322 | 1 | 491 | 55 | 5 | 1 | true | false | false | false | false | false | zero |
36,824,278 | org.apache.http.util.ByteArrayBuffer alternative | <p>I am very new to android development (few hours).</p>
<p>I am having problem with this import:</p>
<pre><code>import org.apache.http.util.ByteArrayBuffer
</code></pre>
<p>I am using this as</p>
<pre><code> ByteArrayBuffer bytes = new ByteArrayBuffer(hex.length() / 2);
for (int i = 0; i < hex.length(); ... | I am very new to android development (few hours). I am having problem with this import: [CODE] I am using this as [CODE] but,It gives me this error: can't resolve 'ByteArrayBuffer' Here are SDK Versions I am using: [CODE] All I need to know is alternative to this problem. Using Android Studio 2.0 | java|android|android-studio | 0 | 2016-04-24T14:18:38.390Z | 2,016 | 4 | 14 | 6 | 1,849 | 2 | 297 | 48 | 3 | 3 | true | false | false | false | false | false | zero |
36,824,348 | ListView didn't change text on app | <p>I'm building an app and I was trying to set a ListView of Items defined on a xml file. Not that hard, I thought, but I came in a very strange problem (I never figured this out) and I don't know how to solve this, although I looked up on the forum and on the net too, without any solving clue. I'll post here my code a... | I'm building an app and I was trying to set a ListView of Items defined on a xml file. Not that hard, I thought, but I came in a very strange problem (I never figured this out) and I don't know how to solve this, although I looked up on the forum and on the net too, without any solving clue. I'll post here my code and ... | android|xml|android-layout|listview|android-studio | 0 | 2016-04-24T14:24:31.797Z | 2,016 | 4 | 14 | 6 | 41 | 2 | 1,065 | 34 | 5 | 3 | true | false | false | false | false | false | zero |
36,824,364 | Android Smartwatch sampling frequency | <p>I've been using Sony Smartwatch 3 for recording accelerometer data on long time periods (8 hour on average). Below is the main code block: ax,ay and az are arraylists for storing the sensor values and ta is an arraylist with the corresponding timestamps.</p>
<pre><code>private void startMeasurement() {
mSensorM... | I've been using Sony Smartwatch 3 for recording accelerometer data on long time periods (8 hour on average). Below is the main code block: ax,ay and az are arraylists for storing the sensor values and ta is an arraylist with the corresponding timestamps. [CODE] When taking a look at the time difference between samples ... | java|android|accelerometer|sampling | 0 | 2016-04-24T14:25:41.663Z | 2,016 | 4 | 14 | 6 | 188 | 1 | 567 | 37 | 4 | 1 | true | false | false | false | false | false | zero |
36,824,390 | Gradle: How to have a 'mock' buildType depend on a 'mock' buildType of another android library project? | <p>I have two gradle modules</p>
<ul>
<li><code>:app</code> (android application)</li>
<li><code>:data</code> (android library)</li>
</ul>
<p><code>:app</code> depends on <code>:data</code>. I created an additional <code>buildType</code> for both modules called <code>mock</code>. When I build <code>:app</code> in the... | I have two gradle modules :app (android application) :data (android library) :app depends on :data . I created an additional buildType for both modules called mock . When I build :app in the mock buildType , I want :data to be automatically built in the mock buildType . How can I achieve this? I tried with something li... | android|gradle|android-gradle-plugin | 0 | 2016-04-24T14:27:53.693Z | 2,016 | 4 | 14 | 6 | 237 | 1 | 488 | 103 | 3 | 2 | true | false | false | false | false | false | zero |
36,824,436 | "Could not find mandroid!" VS Community xamarin | <p>I Just downloaded VS Community which includes Xamarin 4.0.3214 , and when I create an empty android project then trying to build it I got the following errors and warning :</p>
<pre><code>Could not find mandroid!
The referenced component 'System.Core' could not be found.
The referenced component 'System.Xml.Linq' c... | I Just downloaded VS Community which includes Xamarin 4.0.3214 , and when I create an empty android project then trying to build it I got the following errors and warning : [CODE] and other like errors. I tried to remove xamarin and install it again but invain. Update : when i checked log as suggested i found some erro... | xamarin|visual-studio-2015|xamarin.android|xamarin.forms | 0 | 2016-04-24T14:32:04.800Z | 2,016 | 4 | 14 | 6 | 1,540 | 1 | 331 | 47 | 4 | 2 | true | false | false | false | false | false | zero |
36,824,499 | install google api java client for android using Gradle | <p>I'm trying to install the google api java client for android</p>
<p>according to the <a href="https://github.com/google/google-api-java-client" rel="nofollow noreferrer">documentation</a>, it should be easy,
just add this 2 lines to your build.gradle file:</p>
<pre><code>repositories {
mavenCentral()
}
depende... | I'm trying to install the google api java client for android according to the documentation , it should be easy, just add this 2 lines to your build.gradle file: [CODE] this is how my build gradle file looks like: [CODE] but when I try to run it I get an error: [CODE] following this post : I tried to clean, and added t... | java|android|gradle | 0 | 2016-04-24T14:37:00.910Z | 2,016 | 4 | 14 | 6 | 671 | 0 | 439 | 55 | 3 | 5 | true | true | false | false | false | false | zero |
36,824,536 | Serialize ArrayList of custom class to JSON using Gson and send data over HTTP | <p>I would like to convert the data in an ArrayList to JSON and then send it to my webserver. The list <code>mTeamDataList</code> is of type <code>ArrayList<TeamData></code>.</p>
<p>The <code>TeamData</code> class is:</p>
<pre><code>public class TeamData
{
String mFullName;
String mShortName;
String... | I would like to convert the data in an ArrayList to JSON and then send it to my webserver. The list mTeamDataList is of type ArrayList<TeamData> . The TeamData class is: [CODE] I have a addTeamsToDB() method that is responsible for writing the data in the array to the webserver. Here is what I have so far: [CODE] I fou... | java|android|json|post|gson | 0 | 2016-04-24T14:39:26.007Z | 2,016 | 4 | 14 | 6 | 8,916 | 2 | 894 | 78 | 5 | 2 | true | false | true | false | false | false | zero |
36,824,539 | Post in retrofit | <p>I have an error when I try to use <code>POST</code> method through Retrofit 2 library. I want to ligon in vid.me service. This is the API of that service <a href="https://docs.vid.me/#api-Oauth-Authorize" rel="nofollow">https://docs.vid.me/#api-Oauth-Authorize</a>
but when I try to do this I have error:</p>
<pre><c... | I have an error when I try to use POST method through Retrofit 2 library. I want to ligon in vid.me service. This is the API of that service https://docs.vid.me/#api-Oauth-Authorize but when I try to do this I have error: [CODE] my API class: [CODE] my fragment: [CODE] | android|retrofit2 | 2 | 2016-04-24T14:39:29.260Z | 2,016 | 4 | 14 | 6 | 1,724 | 1 | 269 | 16 | 2 | 3 | true | false | false | false | false | false | low |
36,824,543 | Transferring data from bluetooth to the android app | <p>I have the following code in android studio, we have a arduino with a bluetooth module HC-05 and we are trying to send a data from a sensor via the bluetooth to the android app:</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R... | I have the following code in android studio, we have a arduino with a bluetooth module HC-05 and we are trying to send a data from a sensor via the bluetooth to the android app: [CODE] } The code works for the second time only, so when i press the button in the app for the first time it does not show the data, but when... | android|arduino | 0 | 2016-04-24T14:40:23.307Z | 2,016 | 4 | 14 | 6 | 132 | 0 | 392 | 51 | 2 | 1 | true | true | false | false | false | false | zero |
36,824,558 | Creating multiple instances of xml android layout | <p>hope you fine and well,</p>
<p>i have the following XML layout file :</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
... | hope you fine and well, i have the following XML layout file : [CODE] simply, it contains Textview and Image view. and i have the following function which receive an arraylist as follows: [CODE] what i want to do is to loop in the received (students) array list to create a new instance of the xml layout which will cont... | android|xml|layout|arraylist | 1 | 2016-04-24T14:41:57.317Z | 2,016 | 4 | 14 | 6 | 2,179 | 1 | 504 | 49 | 4 | 4 | true | false | false | false | false | false | low |
36,824,688 | How to get songs from a particular artist? | <p>I'm trying to get songs from a particular artist and i don't how i would do this. The artist will change depending on user input, so it shouldn't be hard coded. Currently, i'm using a <code>MediaStore</code> to query all the songs from a device, but i don't know how i would make it so that it only gets songs from th... | I'm trying to get songs from a particular artist and i don't how i would do this. The artist will change depending on user input, so it shouldn't be hard coded. Currently, i'm using a MediaStore to query all the songs from a device, but i don't know how i would make it so that it only gets songs from the selected artis... | java|android|mediastore | 0 | 2016-04-24T14:52:11.053Z | 2,016 | 4 | 14 | 6 | 203 | 1 | 503 | 42 | 3 | 1 | true | false | false | false | false | false | zero |
36,824,823 | Change RelativeLayout height as user scrolls in scrollview | <p>I'm trying to change the height of RelativeLayout as user scrolls, so it smoothly moves up. It's kinda working but its all flickering and glitching. </p>
<p>I tried to use setTranslationY, but that doesn't move the scrollview with the RelativeLayout. </p>
<pre><code>int top = mScrollView.getScrollY();
int maxRelat... | I'm trying to change the height of RelativeLayout as user scrolls, so it smoothly moves up. It's kinda working but its all flickering and glitching. I tried to use setTranslationY, but that doesn't move the scrollview with the RelativeLayout. [CODE] This is how it looks http://imgur.com/7PL6Yt5 If you have any better i... | android|android-layout | 1 | 2016-04-24T15:02:49.163Z | 2,016 | 4 | 15 | 6 | 1,620 | 2 | 415 | 58 | 2 | 2 | true | false | false | false | false | false | low |
36,824,836 | Scaling FrameLayout using gestures | <p>I am trying to make two(or more) <strong>movable TextViews</strong> and make the whole set scalable using pinch-to-zoom. I have custom layout extending from FrameLayout:</p>
<pre><code>public class BublinkyLayout extends FrameLayout {
private ScaleGestureDetector mScaleDetector;
private float mScaleFactor = 1.f;
pr... | I am trying to make two(or more) movable TextViews and make the whole set scalable using pinch-to-zoom. I have custom layout extending from FrameLayout: [CODE] But when I use the 'pinch-to-zoom' and zoom out, the child TextViews don't have the 'touch zone' (the zone where I can touch them and move them around) alligned... | android|scaling|android-framelayout | 0 | 2016-04-24T15:04:25.140Z | 2,016 | 4 | 15 | 6 | 1,102 | 1 | 603 | 34 | 3 | 2 | true | false | false | false | false | false | zero |
36,825,071 | Android JSON Exception when parsing | <p>I have this PHP script that I am using it for a json array in android application, but I am getting this message </p>
<blockquote>
<p>Android Value … of type java.lang.String cannot be converted to JSONArray</p>
</blockquote>
<p>each time I run the android application </p>
<p><strong>PHP</strong> script:</p>
<... | I have this PHP script that I am using it for a json array in android application, but I am getting this message Android Value … of type java.lang.String cannot be converted to JSONArray each time I run the android application PHP script: [CODE] and this s my json code in the android [CODE] And this is my json format: ... | java|php|android|json | 0 | 2016-04-24T15:22:06.403Z | 2,016 | 4 | 15 | 6 | 29 | 0 | 360 | 35 | 4 | 3 | true | true | false | false | false | false | zero |
36,825,115 | Android - Google analytics INSTALL_REFERRER not firing | <p>I'm trying to track my campaigns on google analytics, I've followed the tutorial but it is not working :( This is my manifest:</p>
<pre><code> <service android:name="com.google.android.gms.analytics.CampaignTrackingService" />
<receiver android:name="com.google.android.gms.analytics.CampaignTracking... | I'm trying to track my campaigns on google analytics, I've followed the tutorial but it is not working :( This is my manifest: [CODE] When I try to test this and I send this command through the console it does nothing: [CODE] The only thing I see is that if I send it twice it says: [CODE] So I guess that the app receiv... | android|google-analytics|install-referrer | 9 | 2016-04-24T15:25:42.890Z | 2,016 | 4 | 15 | 6 | 1,496 | 4 | 564 | 54 | 3 | 5 | true | false | false | false | false | false | medium |
36,825,139 | Detecting beacons more efficiency | <p>I use these method to detect beacons </p>
<pre><code> @Override
public void onBeaconServiceConnect() {
BeaconManager beaconManager = BeaconManager.getInstanceForApplication(this);
beaconManager.setRangeNotifier(new RangeNotifier() {
@Override
public void didRangeBeaconsI... | I use these method to detect beacons [CODE] I am using two beacon, one estimoe beacon and one virtual beacon simulated with bluez. The UUID of the beacons in the output were changed.The detection is working but sometimes as you can see in the output, the onBeaconServiceConnect function is called with only one detected ... | android|ibeacon|ibeacon-android|android-ibeacon | 0 | 2016-04-24T15:27:42.627Z | 2,016 | 4 | 15 | 6 | 228 | 1 | 599 | 33 | 4 | 2 | true | false | false | false | false | false | zero |
36,825,172 | No android device found in unity | <p>When I am building a game for android, I get this message:</p>
<blockquote>
<p>No Android device found!
Make sure USB debugging has been enabled.
Check your device. In most cases there should be a small icon in the status bar telling you if the USB connection is available.
If you are sure that your device i... | When I am building a game for android, I get this message: No Android device found! Make sure USB debugging has been enabled. Check your device. In most cases there should be a small icon in the status bar telling you if the USB connection is available. If you are sure that your device is attached then it might be your... | android|unity3d|sdk|adb | 22 | 2016-04-24T15:29:54.960Z | 2,016 | 4 | 15 | 6 | 86,803 | 17 | 734 | 32 | 4 | 0 | false | false | true | true | true | false | high |
36,825,225 | Not getting any profile information from Facebook API on android | <p>I am trying to learn Facebook API for android. I tried to login and it's logging it. But I am not able to get any information from the user profile. It is not returning anything in the textview that is intended to show the name of the Facebook user logged in.</p>
<pre><code>public class ProfileScreenFragment extend... | I am trying to learn Facebook API for android. I tried to login and it's logging it. But I am not able to get any information from the user profile. It is not returning anything in the textview that is intended to show the name of the Facebook user logged in. [CODE] This is what I get in logcat: [CODE] How do I obtain ... | android|facebook|android-fragments|textview | 1 | 2016-04-24T15:33:20.817Z | 2,016 | 4 | 15 | 6 | 71 | 1 | 409 | 64 | 4 | 2 | true | false | false | false | false | false | low |
36,825,234 | NPE error using Retrofit | <p>I want to login in some service called vid.me,<a href="https://api.vid.me/oauth/authorize" rel="nofollow">https://api.vid.me/oauth/authorize</a> with POST.But when I try to get data from log I have NullPointerException.I tryed to make Toast and have this error too.I'm trying to get response code to see I did this ri... | I want to login in some service called vid.me, https://api.vid.me/oauth/authorize with POST.But when I try to get data from log I have NullPointerException.I tryed to make Toast and have this error too.I'm trying to get response code to see I did this right or no. my API class: [CODE] my fragment: [CODE] | android|retrofit|retrofit2 | 1 | 2016-04-24T15:34:10.520Z | 2,016 | 4 | 15 | 6 | 141 | 1 | 305 | 24 | 3 | 2 | true | false | false | false | false | false | low |
36,825,282 | How to communicate Android app to mysql DB via a web service? | <p>I am making an Android app for Smart Shopping system. I want to:-</p>
<ol>
<li><p>Make a web app which can create QR code of info about products (i.e. QR code having unique ID of products). All this info should be stored in MySQL</p></li>
<li><p>This QR code will contain a URL like
<a href="http://localhost:8080/M... | I am making an Android app for Smart Shopping system. I want to:- Make a web app which can create QR code of info about products (i.e. QR code having unique ID of products). All this info should be stored in MySQL This QR code will contain a URL like http://localhost:8080/Mysupermarket/index.jsp/pid=1 (Something like t... | java|android|web-services|tomcat|axis2 | 0 | 2016-04-24T15:37:27.837Z | 2,016 | 4 | 15 | 6 | 86 | 1 | 952 | 61 | 5 | 1 | true | false | false | false | false | false | zero |
36,825,309 | Saved data disappears from cell phone | <p>I have made an app for Android which saves results for skeet shooting. During a session, the user either presses hit or miss. When the session is over, the user press save and the new result is appended to the json-object. After that the result is appended, it is saved to the phone via </p>
<pre><code> public st... | I have made an app for Android which saves results for skeet shooting. During a session, the user either presses hit or miss. When the session is over, the user press save and the new result is appended to the json-object. After that the result is appended, it is saved to the phone via [CODE] Now, my friend who has my ... | android|android-memory | 0 | 2016-04-24T15:39:55.793Z | 2,016 | 4 | 15 | 6 | 27 | 1 | 1,352 | 37 | 2 | 1 | true | false | false | false | false | false | zero |
36,825,456 | Listview filter adapter.getFilter().filter(by more than one value) | <p>I have created a list view in android and I already implement search filter by using searchview and charsequence as parameter like this </p>
<pre><code>searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {
@Override
public boolean onQueryTextSubmit(String query) {
... | I have created a list view in android and I already implement search filter by using searchview and charsequence as parameter like this [CODE] now how can I get the filter result by more than one value? adapter.getFilter().filter("example" || "example" || example); is it possible to do that? or maybe can I using adapte... | android|listview|android-search|android-filter|android-filterable | 2 | 2016-04-24T15:52:38.090Z | 2,016 | 4 | 15 | 6 | 2,787 | 2 | 384 | 66 | 5 | 2 | true | false | true | false | false | false | low |
36,825,480 | How to get the getArguments data from a fragment? | <p>I am using a fragment for my application.and I also add a bundle into my fragments but when I want to get the added String from the bundle the compiler shows me a null pointer error like as follows </p>
<pre><code>Process: com.softmaker.gazi_opu.personalhealthcare, PID: 3253
java.lang.NullPointerException: Att... | I am using a fragment for my application.and I also add a bundle into my fragments but when I want to get the added String from the bundle the compiler shows me a null pointer error like as follows [CODE] And my added code and getting the added data code are given bellow [CODE] Now for getting data from the this fragme... | android|android-fragments|android-bundle | 3 | 2016-04-24T15:55:17.123Z | 2,016 | 4 | 15 | 6 | 8,779 | 2 | 402 | 49 | 3 | 3 | true | false | true | false | false | false | low |
36,825,485 | Parsing json data from while loop | <p>I am working on a little project for school and for this project i need to parse data from a database that is encoded into json. Now i have been succesfull to encode just one object but not all that are being retrieved.</p>
<p>Code to transfer one object:</p>
<pre><code>Response.Listener<String> responseList... | I am working on a little project for school and for this project i need to parse data from a database that is encoded into json. Now i have been succesfull to encode just one object but not all that are being retrieved. Code to transfer one object: [CODE] Then there is the code i made to have it parse all data returned... | php|android|json | 0 | 2016-04-24T15:55:48.553Z | 2,016 | 4 | 15 | 6 | 319 | 1 | 771 | 33 | 3 | 4 | true | false | false | false | false | false | zero |
36,825,487 | Paint textview opacity and size from seekbar Android | <p>I'm developing a simple watermark apps where user will upload an image and is able to edit the opacity and text size of the watermark textview by using Seekbar. After finished edit, user will press the save button to save the edited textview. The final result should be a new image with included watermark textview ed... | I'm developing a simple watermark apps where user will upload an image and is able to edit the opacity and text size of the watermark textview by using Seekbar. After finished edit, user will press the save button to save the edited textview. The final result should be a new image with included watermark textview edite... | android|canvas|seekbar|watermark | 0 | 2016-04-24T15:55:51.720Z | 2,016 | 4 | 15 | 6 | 836 | 0 | 740 | 52 | 4 | 2 | true | true | false | false | false | false | zero |
36,825,580 | Buttons on MainActivity do not register click when it(Main Activity) extends a BaseActivity with Navigation Drawer | <p>I have a Base Activity which sets up Navigation drawer. My Main activity extends this <code>BaseActivtity</code>. The navigation drawer works perfectly fine but when I add any buttons on Main Activity, the <code>onClick</code> of the button doesn't get called.</p>
<p>Here is the Base Activity.</p>
<pre><code>priva... | I have a Base Activity which sets up Navigation drawer. My Main activity extends this BaseActivtity . The navigation drawer works perfectly fine but when I add any buttons on Main Activity, the onClick of the button doesn't get called. Here is the Base Activity. [CODE] The MainActivity class [CODE] I can see the button... | java|android|button | 0 | 2016-04-24T16:03:48.587Z | 2,016 | 4 | 16 | 6 | 97 | 1 | 849 | 114 | 3 | 4 | true | false | false | false | false | false | zero |
36,825,664 | Unable to start activity ComponentInfo : android.view.InflateException: Binary XML file line #7: Error inflating class fragment | <p>I'm getting the below error when trying out the Fragments in Android Studio. The below exception occurs when launching the app :</p>
<pre><code>04 - 24 21: 02: 16.830 21108 - 21108 / com.example.user.samplefragments E / AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity Compo... | I'm getting the below error when trying out the Fragments in Android Studio. The below exception occurs when launching the app : [CODE] This is my MainActvity.java : [CODE] As you can see, the error I'm getting : java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.user.samplefragments/com.exa... | android|android-fragments | 0 | 2016-04-24T16:11:04.937Z | 2,016 | 4 | 16 | 6 | 6,651 | 2 | 572 | 127 | 2 | 2 | true | false | true | false | false | false | zero |
36,825,861 | proctect slim rest api using username and password | <p>i am pretty new in slim framework and trying to build a json based api. all i want to ask how i can protect my api so only those app will call api functions who have a username and password </p>
<p>this is the code of my rest api </p>
<pre><code>require __DIR__ . '/vendor/autoload.php';
$app = new Slim\App();
//... | i am pretty new in slim framework and trying to build a json based api. all i want to ask how i can protect my api so only those app will call api functions who have a username and password this is the code of my rest api [CODE] i just build a simple get route and it work but how i can secure this so that if app have a... | php|android|api|rest|slim | 0 | 2016-04-24T16:29:09.630Z | 2,016 | 4 | 16 | 6 | 1,916 | 2 | 376 | 50 | 5 | 1 | true | false | false | false | false | false | zero |
36,825,917 | google map not showing current location in andorid? | <p>I want to show the current location of user on google map but as of now i am not able to show the location.I have a Fragment in which i am writing the code.</p>
<pre><code> @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
... | I want to show the current location of user on google map but as of now i am not able to show the location.I have a Fragment in which i am writing the code. [CODE] initgmap function [CODE] All permissions: [CODE] Above code i have used for showing location but i does not working.I have also button of current location b... | java|android|google-maps|gps | 0 | 2016-04-24T16:34:55.137Z | 2,016 | 4 | 16 | 6 | 489 | 1 | 377 | 51 | 4 | 3 | true | false | false | false | false | false | zero |
36,825,942 | How to Extract the needed data in this Html using Jsoup | <p>I am new to Jsoup library. And this piece of HTML is giving me hell parsing iy.</p>
<p><strong>Remote HTML</strong></p>
<pre><code>//Skipped the meta and header because I don't need it.
...
<body class="sin">
<div class="ks">
<div class="wrap">
<div class="content-right-sidebar-wr... | I am new to Jsoup library. And this piece of HTML is giving me hell parsing iy. Remote HTML [CODE] This how I am parsing it: [CODE] And this what I'm getting Wriiten by Johnnie Adams. 1 comment For the postAuthorUrl nothing is showing. What I want Written by Johnnie Adams on April 23rd, 2002 11:18 PM https://ohniee.com... | android|html|jsoup | 0 | 2016-04-24T16:37:36.117Z | 2,016 | 4 | 16 | 6 | 206 | 2 | 401 | 55 | 3 | 3 | true | false | false | false | false | false | zero |
36,826,131 | cursor.getCount() return 0 while table is not empty | <p>I have a table in SQLite that hold only one entry - the version number of my database.
currently using DB Browser for SQLite I can see that the table has one row.</p>
<p>but when I run the following code, it shows that cursor.getCount() is 0
WHY??</p>
<pre><code>private boolean checkVersion(DBmanipulation currentD... | I have a table in SQLite that hold only one entry - the version number of my database. currently using DB Browser for SQLite I can see that the table has one row. but when I run the following code, it shows that cursor.getCount() is 0 WHY?? [CODE] | android|sqlite|cursor | 0 | 2016-04-24T16:55:04.490Z | 2,016 | 4 | 16 | 6 | 788 | 0 | 247 | 51 | 3 | 1 | true | true | false | false | false | false | zero |
36,826,139 | How to load bitmap without loading from URL | <pre><code>@Override
public void onBindViewHolder(final RecyclerItemViewHolder holder, final int position) {
holder.mPersonName.setText(mPersons.get(position).getName());
holder.mPersonDescription.setText(mPersons.get(position).getDescription());
holder.mPersonLocation.setText(mPersons.get(position).getLoc... | [CODE] On the .load() how can I reference the bitmap in my code? | java|android|picasso | 0 | 2016-04-24T16:55:29.153Z | 2,016 | 4 | 16 | 6 | 84 | 0 | 64 | 43 | 3 | 1 | true | true | false | false | false | false | zero |
36,826,154 | android studio " inserting app " method gettext must be called from the ui thread | <p>i'm trying to create android app with inserting information
but i get this error " method gettext must be called from the ui thread "
and i get red lines under editTextName.getText() and under editTextAdd.getText()
this is my code how can i fix it explain to me with details please
thanks for helping</p>
<pre><code... | i'm trying to create android app with inserting information but i get this error " method gettext must be called from the ui thread " and i get red lines under editTextName.getText() and under editTextAdd.getText() this is my code how can i fix it explain to me with details please thanks for helping [CODE] | android | 0 | 2016-04-24T16:56:26.993Z | 2,016 | 4 | 16 | 6 | 195 | 2 | 307 | 81 | 1 | 1 | true | false | false | false | false | false | zero |
36,826,207 | Force close when try to Invoke method | <p>I have a problem when I try to set up the client, I got the message: toString() failure in the factory.build.
Method threw 'java.lang.IllegalArgumentException' exception. Cannot evaluate $Proxy1.toString() then when i call</p>
<pre><code>ApiClientFactory factory = new ApiClientFactory();
factory.apiKey("xXxxXXXxxXX... | I have a problem when I try to set up the client, I got the message: toString() failure in the factory.build. Method threw 'java.lang.IllegalArgumentException' exception. Cannot evaluate $Proxy1.toString() then when i call [CODE] and when i try invoke the method Places place = client.placesGet(); force close happens [C... | android|sdk|aws-sdk|gateway|aws-api-gateway | 6 | 2016-04-24T17:00:18.763Z | 2,016 | 4 | 17 | 6 | 1,120 | 2 | 457 | 37 | 5 | 3 | true | false | false | false | false | false | medium |
36,826,283 | How to customize x-axis in GraphView in android | <p>I am trying to draw a line graph using GraphView in android.
I am able to print labels in the y axis, but the labels in the x-axis don't get displayed, also the points are not plotted correctly with respect to the x-axis. Can someone please help.</p>
<p>Please find my xml code below</p>
<pre><code><?xml version... | I am trying to draw a line graph using GraphView in android. I am able to print labels in the y axis, but the labels in the x-axis don't get displayed, also the points are not plotted correctly with respect to the x-axis. Can someone please help. Please find my xml code below [CODE] The activity code is as follows. [CO... | android|android-graphview | 1 | 2016-04-24T17:06:13.180Z | 2,016 | 4 | 17 | 6 | 6,331 | 3 | 915 | 47 | 2 | 2 | true | false | true | false | false | false | low |
36,826,326 | Android: Uploading a photo in Cloudinary with progress callback in HttpURLConnection | <p>I'm trying to modify the open source library of cloudinary so that I can listen to the progress of the upload of my photo. The library class contains a MultipartUtility java class that I modified to listen to the progress of the upload.</p>
<p>The original code before modifications can be found on github: <a href="... | I'm trying to modify the open source library of cloudinary so that I can listen to the progress of the upload of my photo. The library class contains a MultipartUtility java class that I modified to listen to the progress of the upload. The original code before modifications can be found on github: https://github.com/c... | java|android|httpurlconnection|image-uploading|cloudinary | 8 | 2016-04-24T17:09:36.797Z | 2,016 | 4 | 17 | 6 | 1,351 | 2 | 2,064 | 84 | 5 | 5 | true | false | false | false | false | false | medium |
36,826,395 | Why are two permissions always requested during installation? | <p>I'm building a tiny dummy app using the command line (no gradle) with just a single blank activity, no permissions, no support libraries (or any other libraries, Google Play, etc) and yet Android always prompts for these two permissions during installation:</p>
<p><a href="https://i.stack.imgur.com/MKjC7.png" rel="... | I'm building a tiny dummy app using the command line (no gradle) with just a single blank activity, no permissions, no support libraries (or any other libraries, Google Play, etc) and yet Android always prompts for these two permissions during installation: I understand how and why permissions get merged in when other ... | android|android-permissions | 2 | 2016-04-24T17:15:21.167Z | 2,016 | 4 | 17 | 6 | 83 | 1 | 958 | 61 | 2 | 1 | true | false | false | false | false | false | low |
36,826,447 | Unable to connect to android server via android client using Unity 5 | <p>I am making an Android multiplayer game using WiFi in Unity 5. </p>
<p>I open a hotspot on one Android device and connect the other Android device to it via WiFi. Then I start the game on both devices, host the game on one device and try to connect to the game through the other device, but I'm unable to connect to ... | I am making an Android multiplayer game using WiFi in Unity 5. I open a hotspot on one Android device and connect the other Android device to it via WiFi. Then I start the game on both devices, host the game on one device and try to connect to the game through the other device, but I'm unable to connect to the game. Th... | android|unity3d|android-wifi|multiplayer|unity3d-unet | 0 | 2016-04-24T17:19:54.410Z | 2,016 | 4 | 17 | 6 | 1,104 | 0 | 350 | 68 | 5 | 1 | true | true | false | false | false | false | zero |
36,826,473 | Not allowed to load local resource: file:///android_asset/... with Crosswalk 16+ | <p>I have Android project with Crosswalk 16.45.421.19.</p>
<pre><code><uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission a... | I have Android project with Crosswalk 16.45.421.19. [CODE] I have index.html [CODE] [CODE] When this file is on the server: [CODE] And: [CODE] | android|crosswalk|xwebview | 1 | 2016-04-24T17:22:17.547Z | 2,016 | 4 | 17 | 6 | 1,623 | 1 | 142 | 80 | 3 | 5 | true | false | false | false | false | false | low |
36,826,623 | How to stop my RecyclerView reuse the view | <p>My question is: when I scroll my page , some views will appear in a new place , not all my content from the adapter will be display but only some sort of them .
below is my adapter class:</p>
<pre><code>import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
impor... | My question is: when I scroll my page , some views will appear in a new place , not all my content from the adapter will be display but only some sort of them . below is my adapter class: [CODE] } Thank you so much | android|android-arrayadapter|android-recyclerview | 0 | 2016-04-24T17:35:15.510Z | 2,016 | 4 | 17 | 6 | 5,999 | 1 | 214 | 42 | 3 | 1 | true | false | true | false | false | false | zero |
36,826,829 | Display content under toolbar | <p>Hello I'm attempting to simply put my content below the toolbar but at the moment when I run my application some of the content is hidden behind it when it should be below it.</p>
<p>I have read up about using a frame layout to attempt to separate it but I have come a little stuck. I'm currently using a basic andro... | Hello I'm attempting to simply put my content below the toolbar but at the moment when I run my application some of the content is hidden behind it when it should be below it. I have read up about using a frame layout to attempt to separate it but I have come a little stuck. I'm currently using a basic android studio n... | android|xml|android-layout|toolbar|android-toolbar | 22 | 2016-04-24T17:55:17.933Z | 2,016 | 4 | 17 | 6 | 22,995 | 3 | 504 | 29 | 5 | 2 | true | false | true | true | true | false | high |
36,826,832 | How to check which button is Clicked with android? | <p>I have 2 activities, the first activity include two buttons and the second activity also include 2 buttons. I need when I click on the first button of the first activity, the second activity started and the first button of the second activity become "invisible" and the second button "visible". again if the user back... | I have 2 activities, the first activity include two buttons and the second activity also include 2 buttons. I need when I click on the first button of the first activity, the second activity started and the first button of the second activity become "invisible" and the second button "visible". again if the user back to... | java|android|oop | 0 | 2016-04-24T17:55:24.673Z | 2,016 | 4 | 17 | 6 | 962 | 5 | 970 | 50 | 3 | 1 | true | false | false | false | false | false | zero |
36,826,881 | Loading Bitmaps doesn't work correct, while scrolling in RecyclerView | <p>I'm loading the Album-Artworks in my Music-App. Because I couldn't load them on Main-Thread, I'm using Threads, and they get muddled up!</p>
<p>Sometimes the Image isn't loaded in the correct size or it is shown as a brown square. These issues appear if I scroll fast. If I scroll slow, it works!</p>
<p>The importa... | I'm loading the Album-Artworks in my Music-App. Because I couldn't load them on Main-Thread, I'm using Threads, and they get muddled up! Sometimes the Image isn't loaded in the correct size or it is shown as a brown square. These issues appear if I scroll fast. If I scroll slow, it works! The important methods of my Mu... | java|android|bitmap|android-recyclerview|bitmapfactory | 1 | 2016-04-24T17:59:25.370Z | 2,016 | 4 | 17 | 6 | 107 | 1 | 552 | 69 | 5 | 2 | true | false | false | false | false | false | low |
36,826,924 | How to display gridview Images in Tabs fragment | <p>I am trying to make a tab where I have to display images in gridview, so I made normal tabs from one of the library and made an adapter to display the images in my main activity code.</p>
<pre><code>class TestAdapter extends FragmentPagerAdapter {
public TestAdapter (FragmentManager manager) {
super(manager);
}... | I am trying to make a tab where I have to display images in gridview, so I made normal tabs from one of the library and made an adapter to display the images in my main activity code. [CODE] my fragment class. [CODE] I have set my adapter as follow [CODE] I am able to make a grid view in an activity but in that I use t... | android|android-fragments|android-gridview|android-image|android-studio-2.0 | 0 | 2016-04-24T18:03:41.823Z | 2,016 | 4 | 18 | 6 | 1,346 | 1 | 621 | 47 | 5 | 4 | true | false | false | false | false | false | zero |
36,826,982 | Retrofit : Retrieved list size is always zero though my pojo classes are right | <p>Having a bit of problem with retrofit. I'm trying to get the data's from the below json : </p>
<pre><code>{
"items": [
{
"badge_counts": {
"bronze": 127,
"silver": 66,
"gold": 16
},
"account_id": 448874,
"is_employee": false,
"last_modified_date": 14554477... | Having a bit of problem with retrofit. I'm trying to get the data's from the below json : [CODE] But the returned list size is always 0. I don't know where is the problem exactly. My Pojo classes : ProfileData : http://hastebin.com/ebihiyufif.java Item : http://hastebin.com/haquqazefi.java BadgeCount : http://hastebin.... | android|json|list|retrofit2|stackexchange-api | -1 | 2016-04-24T18:09:15.633Z | 2,016 | 4 | 18 | 6 | 528 | 1 | 430 | 78 | 5 | 3 | true | false | false | false | false | true | negative |
36,827,041 | Authentication using Android Volley and ASP .NET Web API | <p>I have sent a volley request and got AccessToken, then ovveride getheaders() method and put token on the headers:</p>
<pre><code>private void login(String username,String password)
{
JsonObjectRequest jsObjRequest = new JsonObjectRequest(Request.Method.POST, URL,
new Response.Listener<... | I have sent a volley request and got AccessToken, then ovveride getheaders() method and put token on the headers: [CODE] but i can't accsses my Authorized Method [CODE] can anyone give me tips how to solve this issue? | android|asp.net|authorization|android-volley | 0 | 2016-04-24T18:14:26.783Z | 2,016 | 4 | 18 | 6 | 587 | 0 | 217 | 56 | 4 | 2 | true | true | false | false | false | false | zero |
36,827,049 | Updating TextVIew with Handler only showing last change | <p>I am trying to update a TextView every 3 seconds with a different string. I have a handler and runnable set up, but when I run it, it automatically shows the last setText. I have tried changing the ms to 3000, 6000, etc., and have also tried removeCallbacks before running. Any help would be greatly appreciated!</... | I am trying to update a TextView every 3 seconds with a different string. I have a handler and runnable set up, but when I run it, it automatically shows the last setText. I have tried changing the ms to 3000, 6000, etc., and have also tried removeCallbacks before running. Any help would be greatly appreciated! [CODE] | android|handler|runnable | 0 | 2016-04-24T18:15:18.757Z | 2,016 | 4 | 18 | 6 | 64 | 1 | 319 | 55 | 3 | 1 | true | false | false | false | false | false | zero |
36,827,095 | ScrollView inside ViewPager does not scroll on Android 4.x | <p>I have a problem that seems to only impact Android 4.x versions and may be also device specific (i.e. it does not exist on my Huawei G630@4.3, but do exists on a Samsung Ace2@4.4.4).
I have a <code>ScrollView</code> that contains a <code>RelativeLayout</code> that has 4 <code>CardView</code>s. Now on some 4.x device... | I have a problem that seems to only impact Android 4.x versions and may be also device specific (i.e. it does not exist on my Huawei G630@4.3, but do exists on a Samsung Ace2@4.4.4). I have a ScrollView that contains a RelativeLayout that has 4 CardView s. Now on some 4.x devices, the scroll event simply does not happe... | android|android-scrollview|android-4.2-jelly-bean | 5 | 2016-04-24T18:19:44.697Z | 2,016 | 4 | 18 | 6 | 4,726 | 4 | 1,546 | 58 | 3 | 4 | true | false | true | false | false | false | low |
36,827,302 | Android Speech Recognition stops listening immediately | <p>I developed a program with fully functioning speech recognition based off an example on the Android website. </p>
<p>I've made no changes to the code and it just suddenly stopped working. It starts to listen (you can hear the noise), then instantly it stops (you hear the ending noise).</p>
<p>Has anyone else had t... | I developed a program with fully functioning speech recognition based off an example on the Android website. I've made no changes to the code and it just suddenly stopped working. It starts to listen (you can hear the noise), then instantly it stops (you hear the ending noise). Has anyone else had this problem or have ... | java|android|speech-recognition | 4 | 2016-04-24T18:39:07.683Z | 2,016 | 4 | 18 | 6 | 2,255 | 2 | 722 | 54 | 3 | 1 | true | false | false | false | false | false | low |
36,827,347 | How to prevent recreation of a singleTask activity on back button press? | <p>I have a simple launcher app, that doesn't launch any apps, just shows a WebView. It is set as the default launcher. I don't use any other apps on this tablet. When I restart the tablet, this launcher starts as expected. My problem is if I press the back button of the device, the activity is destroyed, and it is cre... | I have a simple launcher app, that doesn't launch any apps, just shows a WebView. It is set as the default launcher. I don't use any other apps on this tablet. When I restart the tablet, this launcher starts as expected. My problem is if I press the back button of the device, the activity is destroyed, and it is create... | android|android-launcher|launchmode | 1 | 2016-04-24T18:42:33.487Z | 2,016 | 4 | 18 | 6 | 426 | 1 | 1,024 | 72 | 3 | 0 | false | false | false | false | false | false | low |
36,827,352 | Android AES (with Keystore) produces different cipher text with same plain text | <p>I'm trying to make the Keystore help me generate a key for AES encryption, and use it to encrypt the plain text I put in. So here are my codes. I call the createKey() method only once in the onCreate() method of another activity, and then call the printCipherText() method many times with the same keyAlias and same p... | I'm trying to make the Keystore help me generate a key for AES encryption, and use it to encrypt the plain text I put in. So here are my codes. I call the createKey() method only once in the onCreate() method of another activity, and then call the printCipherText() method many times with the same keyAlias and same plai... | java|android|encryption|aes|android-keystore | 0 | 2016-04-24T18:43:11.597Z | 2,016 | 4 | 18 | 6 | 1,794 | 1 | 528 | 79 | 5 | 1 | true | false | false | false | false | false | zero |
36,827,477 | Random Values, SharedPreferences | <p>I am getting random values starting with B@. I am not sure about what is happening
in my code, and I would greatly appreciate it if you could help me figure out what is going on and would greatly appreciate it if you could give me a solution. Here is the code:</p>
<p>to read:</p>
<pre><code> public List displa... | I am getting random values starting with B@. I am not sure about what is happening in my code, and I would greatly appreciate it if you could help me figure out what is going on and would greatly appreciate it if you could give me a solution. Here is the code: to read: [CODE] to save: [CODE] to delete: [CODE] | android|sharedpreferences | 0 | 2016-04-24T18:52:56.333Z | 2,016 | 4 | 18 | 6 | 109 | 1 | 310 | 32 | 2 | 3 | true | false | false | false | false | false | zero |
36,827,513 | Universal Image Loader: Get Original height and width onClick | <p>I use Universal Image Loader to load images in a Jsoup parsed html. The <code><img></code> tags doesn't have a static position, they can appear anywhere in the Html element. And since I want them to appear in the positions where the <code><img></code> are, I can't give them an image view.</p>
<p><strong... | I use Universal Image Loader to load images in a Jsoup parsed html. The <img> tags doesn't have a static position, they can appear anywhere in the Html element. And since I want them to appear in the positions where the <img> are, I can't give them an image view. This is the class that I'm using to load the images [COD... | android|html|universal-image-loader | 1 | 2016-04-24T18:56:02.090Z | 2,016 | 4 | 18 | 6 | 119 | 0 | 459 | 61 | 3 | 1 | true | true | false | false | false | false | low |
36,827,645 | Saving image in SQLite database | <p>I am trying to create diary where the user saves some text and an image.
I have managed to save the text (title and body) however i am a beginner so i am unsure how to save the image ,can someone help? this is my code, i have created notes where i tried to get the image in the code but i dont know how to make it wo... | I am trying to create diary where the user saves some text and an image. I have managed to save the text (title and body) however i am a beginner so i am unsure how to save the image ,can someone help? this is my code, i have created notes where i tried to get the image in the code but i dont know how to make it work A... | java|android|sqlite | 0 | 2016-04-24T19:08:20.617Z | 2,016 | 4 | 19 | 6 | 50 | 1 | 403 | 31 | 3 | 3 | true | false | false | false | false | false | zero |
36,827,691 | Android Fatal signal 11 (SIGSEGV) onFinish | <p>I'm having this exception 5 seconds (approx) when I finish my app:</p>
<pre><code>04-24 20:05:17.293 ... E/Surface: getSlotFromBufferLocked: unknown buffer: 0xe89c73f0
04-24 20:05:22.296 ... A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x695fa3bc in tid 31152 (FinalizerDaemon)
</code></pre>
<p>If I kill i... | I'm having this exception 5 seconds (approx) when I finish my app: [CODE] If I kill it nothing happens, but if I press "back" until it closes and goes to background, a few seconds later or if I open it again it crashes... I've just noticed this suddenly, I don't know which code is causing it, I've already comment a lot... | android|segmentation-fault|finalizer | 2 | 2016-04-24T19:11:41.223Z | 2,016 | 4 | 19 | 6 | 907 | 1 | 744 | 42 | 3 | 2 | true | false | false | false | false | false | low |
36,827,774 | Event on the button with Radio Button | <p>How can I make several events in one single button? I am not able, do another event on the same button.</p>
<p><a href="http://i.stack.imgur.com/BvhOd.png" rel="nofollow">enter image description here</a></p>
<p>And for example, according to 1 radion button:</p>
<pre><code>public void onRadioButtonLetterA(View vie... | How can I make several events in one single button? I am not able, do another event on the same button. enter image description here And for example, according to 1 radion button: [CODE] And on the button: [CODE] That is, if the count == 0 , and click the Button, and radion button being selected, will determine such a ... | java|android | 0 | 2016-04-24T19:21:01.283Z | 2,016 | 4 | 19 | 6 | 26 | 1 | 451 | 37 | 2 | 2 | true | false | false | false | false | false | zero |
36,827,879 | Bring to front a view over foreground image of a frameLayout | <p>I have a frame layout with a foreground image shown below.In my frame layout i have a text view but it is not seen because it stays behind of foreground image.How to take it front over foreground image?</p>
<pre><code><FrameLayout
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="ma... | I have a frame layout with a foreground image shown below.In my frame layout i have a text view but it is not seen because it stays behind of foreground image.How to take it front over foreground image? [CODE] | android|android-relativelayout|android-framelayout|background-foreground|bringtofront | 1 | 2016-04-24T19:29:49.963Z | 2,016 | 4 | 19 | 6 | 1,213 | 1 | 209 | 60 | 5 | 1 | true | false | false | false | false | false | low |
36,827,889 | Sync with Gradle for project 'HelloWorld' failed: Exception thrown while executing model rule: NdkComponentModelPlugin.Rules#createNativeBuildModel | <p>I have just upgraded Android Studio to version 2.0 and am getting the following error message</p>
<blockquote>
<p>Sync with Gradle for project 'HelloWorld' failed: Exception thrown while executing model rule: NdkComponentModelPlugin.Rules#createNativeBuildModel</p>
</blockquote>
<p>The build file looks like </p>... | I have just upgraded Android Studio to version 2.0 and am getting the following error message Sync with Gradle for project 'HelloWorld' failed: Exception thrown while executing model rule: NdkComponentModelPlugin.Rules#createNativeBuildModel The build file looks like [CODE] | android-studio|android-gradle-plugin|android-studio-2.0 | 0 | 2016-04-24T19:30:35.703Z | 2,016 | 4 | 19 | 6 | 1,246 | 1 | 274 | 147 | 3 | 1 | true | false | false | false | false | false | zero |
36,827,924 | Facebook Login Button crashing app without error message | <p>This issue suddenly popped up this morning after working great for weeks. </p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
FacebookSdk.sdkInitialize(getApplicationContext());
setContentView(R.layout.activity_login);
callbackManager =... | This issue suddenly popped up this morning after working great for weeks. [CODE] Somewhere in there, the app crashes. None of the callback methods are run, and nothing is printed to logcat. I just see a loading spinner for a split second and then the app force closes with no message. Edit: I did find this log actually,... | android|facebook|facebook-android-sdk | 3 | 2016-04-24T19:32:31.247Z | 2,016 | 4 | 19 | 6 | 1,227 | 1 | 359 | 56 | 3 | 2 | true | false | false | false | false | false | low |
36,827,984 | applidium/HeaderListView not working correct | <p>I'm trying to implement <a href="https://github.com/applidium/HeaderListView" rel="nofollow">applidium/HeaderListView</a> and having still troubles. It worked - nothing changed and now it doesn't work anymore...</p>
<p>I have 4 sections and CheckedTextViews as row contents...
I succeeded in preventing <code>NullPoi... | I'm trying to implement applidium/HeaderListView and having still troubles. It worked - nothing changed and now it doesn't work anymore... I have 4 sections and CheckedTextViews as row contents... I succeeded in preventing NullPointerException s, but after scrolling the list goes crazy... Here my 2 adapter methods: [CO... | android|listview | 0 | 2016-04-24T19:37:11.383Z | 2,016 | 4 | 19 | 6 | 76 | 1 | 565 | 44 | 2 | 1 | true | false | false | false | false | false | zero |
36,828,006 | Undefined reference to vtable SFML Android | <p>I am compiling a program that uses SFML on android. It compiles normally when I compile it with g++. When I run ndk-build in the android project directory I get the following error:</p>
<pre><code>/home/engineer/Desktop/android_ndk/android-ndk-r11c/toolchains/arm- linux-androideabi-4.9/prebuilt/linux-x86_64/bin/... | I am compiling a program that uses SFML on android. It compiles normally when I compile it with g++. When I run ndk-build in the android project directory I get the following error: [CODE] I have an abstract class jar and 2 class sandyJar and sandjar that both inherit it. However, I don't understand why it compiles for... | c++|android-ndk|sfml | 1 | 2016-04-24T19:39:23.140Z | 2,016 | 4 | 19 | 6 | 1,169 | 1 | 504 | 42 | 3 | 5 | true | false | false | false | false | false | low |
36,828,011 | Tests for Android Content Provider strange behavior | <p>I wrote a ContentProvider to deal with <code>query/insert/update/delete</code> on a local sqlite database. </p>
<p>For testing purposes I wrote couple of tests:</p>
<pre><code>TestMovieContract.java : for testing MovieContract class
TestMovieDBHelper.java : for testing MovieDBHelper class
TestUriMatcher.java : ... | I wrote a ContentProvider to deal with query/insert/update/delete on a local sqlite database. For testing purposes I wrote couple of tests: [CODE] When I run each of these tests separately, they all get passed but when I run all of them one of the tests fails. The assert statement which it fails is: [CODE] When I check... | java|android|sqlite | 1 | 2016-04-24T19:39:45.227Z | 2,016 | 4 | 19 | 6 | 311 | 2 | 991 | 51 | 3 | 4 | true | false | false | false | false | false | low |
36,828,042 | Dagger 2 - Injecting class to declared interface | <p>I have a dependency on a class (User) in my ApiService. I have already a <code>provideUser</code> in my Component class. I'm trying to inject with same provideUser my User class to 2 fields. The problem is that one field is a class and the second is an interface like this:</p>
<pre><code>@Inject
User user;
@Inject... | I have a dependency on a class (User) in my ApiService. I have already a provideUser in my Component class. I'm trying to inject with same provideUser my User class to 2 fields. The problem is that one field is a class and the second is an interface like this: [CODE] And component code: [CODE] Other elements of the equ... | java|android|dependency-injection|dagger-2 | 2 | 2016-04-24T19:42:33.467Z | 2,016 | 4 | 19 | 6 | 1,261 | 1 | 492 | 48 | 4 | 4 | true | false | false | false | false | false | low |
36,828,097 | how to read a byte array from sqlite database and convert to bmp and store in an int array | <ol>
<li><p>i am looking to read from a sqlite database. database holds byte array info from an image(blob type).</p>
<ol start="2">
<li>convert the byte array into a bmp.</li>
<li>store that bmp in an int array.</li>
</ol>
<p>Story: i have entered an image into a database from an image view when the image changes in... | i am looking to read from a sqlite database. database holds byte array info from an image(blob type). convert the byte array into a bmp. store that bmp in an int array. Story: i have entered an image into a database from an image view when the image changes in that image view i can save it to the sqlite database. i con... | java|android|arrays|sqlite|android-viewpager | 0 | 2016-04-24T19:47:15.837Z | 2,016 | 4 | 19 | 6 | 1,192 | 0 | 1,003 | 90 | 5 | 3 | true | true | false | false | false | false | zero |
36,828,201 | When clicked to a page it opens in the browser. I want it in the app | <p>When I try to run this code in Android Studio it opens the pages in the app, my phone also open the pages in the app when clicking. However, other users say that when they click to open a page it opens in their browsers. How can i solve this problem?</p>
<p><div class="snippet" data-lang="js" data-hide="false">
<di... | When I try to run this code in Android Studio it opens the pages in the app, my phone also open the pages in the app when clicking. However, other users say that when they click to open a page it opens in their browsers. How can i solve this problem? [CODE] | android | 0 | 2016-04-24T19:56:21.933Z | 2,016 | 4 | 19 | 6 | 31 | 1 | 257 | 68 | 1 | 1 | true | false | false | false | false | false | zero |
36,828,219 | String Request on android volley returning null | <p>sorry if I'm a little inexperienced on android programming and if the question is stupid, but I need help with volley on android I've made to register a user with the REST API on PHP, its working fine by the way tested with phpunit and postman. Here's the code:</p>
<pre><code>public void newUser(final String name, ... | sorry if I'm a little inexperienced on android programming and if the question is stupid, but I need help with volley on android I've made to register a user with the REST API on PHP, its working fine by the way tested with phpunit and postman. Here's the code: [CODE] So looks like the params or the strReq is returning... | php|android|json|rest|android-volley | 1 | 2016-04-24T19:57:43.680Z | 2,016 | 4 | 19 | 6 | 440 | 0 | 590 | 47 | 5 | 1 | true | true | false | false | false | false | low |
36,828,296 | Calling a method in the background to retrieve data every couple of minutes | <p>I am developing an android app to retrieve data through php,mysql,json from a database. I need to create a service or any way to call <strong><em>getData()</em></strong> method every 10 minutes. I tried placing these 2 methods in a broadcast receiver and used alarm manager to repeat every 10 mins but it didn't run p... | I am developing an android app to retrieve data through php,mysql,json from a database. I need to create a service or any way to call getData() method every 10 minutes. I tried placing these 2 methods in a broadcast receiver and used alarm manager to repeat every 10 mins but it didn't run properly, it worked only for T... | android|service|broadcastreceiver | 0 | 2016-04-24T20:03:35.487Z | 2,016 | 4 | 20 | 6 | 825 | 2 | 468 | 75 | 3 | 1 | true | false | false | false | false | false | zero |
36,828,370 | Pocketsphinx null pointer exception? | <p>I am implementing voice recognition in my service, but am getting a null pointer exception:</p>
<pre><code>java.lang.NullPointerException: Attempt to invoke virtual method 'void edu.cmu.pocketsphinx.SpeechRecognizer.addListener(edu.cmu.pocketsphinx.RecognitionListener)' on a null object reference
</code></pre>
<p>... | I am implementing voice recognition in my service, but am getting a null pointer exception: [CODE] (Full error posted below) Here is the relevant portion of my service: [CODE] Here is the full error FATAL EXCEPTION: main Process: com.example.ruchirb.appName, PID: 1520 java.lang.RuntimeException: Unable to create servic... | java|android|nullpointerexception|speech-recognition|cmusphinx | 1 | 2016-04-24T20:10:27.250Z | 2,016 | 4 | 20 | 6 | 350 | 0 | 2,346 | 36 | 5 | 2 | true | true | false | false | false | false | low |
36,828,404 | Android error with setAdapter in android ArrayAdapter | <p>I have been stuck on this problem for the last few hours so any help will be very much appreciated.
Im getting this error
Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference</p>
<p>ArrayAdapter class</p>
<pre><code>public class Locatio... | I have been stuck on this problem for the last few hours so any help will be very much appreciated. Im getting this error Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference ArrayAdapter class [CODE] } activity_maps.xml [CODE] location_list.x... | android | 0 | 2016-04-24T20:13:31.243Z | 2,016 | 4 | 20 | 6 | 850 | 1 | 355 | 53 | 1 | 4 | true | false | false | false | false | false | zero |
36,828,430 | What produces "finished with non-zero exit value 1"? | <p>I am trying to use aliases to reference <code>drawables</code> in my <code>XML</code> files, and the first one is defined as follows:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/portrait_a_3" />
<... | I am trying to use aliases to reference drawables in my XML files, and the first one is defined as follows: [CODE] The file is named portrait_a.xml , stored in a drawable-sw320dp-xhdpi . It refers to a file in the drawable-nohdpi and works fine. However, when I add a second file (in the same folder), that's identical s... | android|error-handling|android-xml|android-drawable | 0 | 2016-04-24T20:16:13Z | -1 | -1 | -1 | -1 | 39 | 1 | 541 | 52 | 4 | 2 | true | false | false | false | false | false | zero |
36,828,437 | End of input at character 0 error during json parsing | <p>I am new to the android, so what is happening that when i am trying to parse the json which am getting from the mysql database using the below code:</p>
<pre><code>public ParseJSON(String json){
this.json = json;
}
protected void parseJSON(){
JSONObject jsonObject=null;
try {
... | I am new to the android, so what is happening that when i am trying to parse the json which am getting from the mysql database using the below code: [CODE] i am getting the following error as mentioned below: Error: [CODE] list_view where i fetch the data [CODE] | java|android | 1 | 2016-04-24T20:16:51.490Z | 2,016 | 4 | 20 | 6 | 1,047 | 2 | 262 | 53 | 2 | 3 | true | false | false | false | false | false | low |
36,828,456 | Email composer plugin phonegap android | <p>I try to use the email plugin cordova. I follow the documentation on <a href="https://github.com/katzer/cordova-plugin-email-composer" rel="nofollow">https://github.com/katzer/cordova-plugin-email-composer</a></p>
<p>I create a js like this:</p>
<pre><code> openDraft = function (isHtml) {
if (isHt... | I try to use the email plugin cordova. I follow the documentation on https://github.com/katzer/cordova-plugin-email-composer I create a js like this: [CODE] I add on config.xml: I write on mail .html: [CODE] and i include my script. But nothing is display. THANKS | android|cordova|email | 1 | 2016-04-24T20:18:18.023Z | 2,016 | 4 | 20 | 6 | 87 | 0 | 263 | 38 | 3 | 2 | true | true | false | false | false | false | low |
36,828,496 | Google map is showing up blank, app throws "Could not find method" exceptions | <p>I had Google Maps V2 integrated with my app and it was working perfectly fine. I am facing this issue from today - Exceptions on methods not found and a blank checkered screen instead of map. Please let me know how to fix this, appreciate your help.</p>
<pre><code>04-25 01:48:47.711: I/dalvikvm(28543): Could not fi... | I had Google Maps V2 integrated with my app and it was working perfectly fine. I am facing this issue from today - Exceptions on methods not found and a blank checkered screen instead of map. Please let me know how to fix this, appreciate your help. [CODE] | android|google-maps | 0 | 2016-04-24T20:22:34.170Z | 2,016 | 4 | 20 | 6 | 73 | 1 | 256 | 77 | 2 | 1 | true | false | false | false | false | false | zero |
36,828,583 | Passing ArrayList from AsyncTask to PagerAdapter | <p>hope you fine and well,</p>
<p>i have the following main class : </p>
<pre><code>public class MainActivity extends AppCompatActivity {
Activity activity;
ViewPager viewPager;
CustomAdapter adapter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInst... | hope you fine and well, i have the following main class : [CODE] when i run the app, this main activity will use another class to read json data from link as follows: [CODE] now this class will return the data to the following class : [CODE] this line : ((MainActivity)activity).DisplyOnTextView(students); will return t... | android|android-asynctask|android-viewpager | 0 | 2016-04-24T20:30:25.160Z | 2,016 | 4 | 20 | 6 | 1,231 | 1 | 628 | 48 | 3 | 5 | true | false | false | false | false | false | zero |
36,828,590 | Android- Null pointer exception from getStringExtra using intent send a value to another activity by button click | <p>I am facing the problem when I use Intent to send a value to another activity by click a button. I have tried to solve it in many ways but it always show NullPointerException although I declared it clearly.</p>
<p>Here is my code.</p>
<p>Manufacturer.java</p>
<pre><code>package com.example.student.macheckcar;
i... | I am facing the problem when I use Intent to send a value to another activity by click a button. I have tried to solve it in many ways but it always show NullPointerException although I declared it clearly. Here is my code. Manufacturer.java [CODE] Showcarprice.java [CODE] And the error: [CODE] Please help. | java|android|android-intent|nullpointerexception | 0 | 2016-04-24T20:31:09.650Z | 2,016 | 4 | 20 | 6 | 1,214 | 3 | 308 | 113 | 4 | 3 | true | false | false | false | false | false | zero |
36,828,666 | Update data into existing sql database | <p>I have an app that lets users register and saves their data to a web server however I'm having trouble accessing the users saved data after they have registered. What I want to do is let them register and after that they can then update more information about themselves, here is my register class php file that is ca... | I have an app that lets users register and saves their data to a web server however I'm having trouble accessing the users saved data after they have registered. What I want to do is let them register and after that they can then update more information about themselves, here is my register class php file that is calle... | php|android | 1 | 2016-04-24T20:40:01.050Z | 2,016 | 4 | 20 | 6 | 50 | 1 | 557 | 38 | 2 | 1 | true | false | false | false | false | false | low |
36,828,706 | Android ViewPager Won't Show Second Page? | <p>I'm using a ViewPager to swipe just part of a screen (as opposed to the whole View/Page).</p>
<p>I can hack isViewFromObject to just return true and then my first image appears but my second image won't load. Any thoughts on what I'm missing here? I'm thinking there's either still something wrong with my isViewFrom... | I'm using a ViewPager to swipe just part of a screen (as opposed to the whole View/Page). I can hack isViewFromObject to just return true and then my first image appears but my second image won't load. Any thoughts on what I'm missing here? I'm thinking there's either still something wrong with my isViewFromObject meth... | android|android-viewpager|android-pageradapter | 0 | 2016-04-24T20:44:45.197Z | 2,016 | 4 | 20 | 6 | 1,213 | 2 | 535 | 41 | 3 | 2 | true | false | false | false | false | false | zero |
36,828,711 | How to format the following string in strings.xml | <p>I have the following string:</p>
<p>☑ REKT</p>
<p>☑ Really Rekt</p>
<p>☑ Tyrannosaurus Rekt</p>
<p>I copy and pasted this into the <code>strings.xml</code> file but when it is displayed on screen it ends up looking like a jumbled mess.</p>
<p><a href="https://i.stack.imgur.com/bjkVt.png" rel="nofollow noreferre... | I have the following string: ☑ REKT ☑ Really Rekt ☑ Tyrannosaurus Rekt I copy and pasted this into the strings.xml file but when it is displayed on screen it ends up looking like a jumbled mess. How can I format this in strings.xml so it maintains its original list look. (Ignore the hand at the beginning, that was from... | android|formatting|android-xml | 0 | 2016-04-24T20:45:37.170Z | 2,016 | 4 | 20 | 6 | 200 | 1 | 563 | 49 | 3 | 0 | false | false | false | false | false | false | zero |
36,828,737 | using Android MediaCodec for Adaptive Streaming | <p>I have used MediaCodec for playing avc video files. now I am trying to play video from a stream, I couldn't find any example or good documentations regarding using MediaCodec for adaptive streaming. I was wondering if anyone can lead me to a good example or just post what I need to do?</p>
<p>some code:</p>
<pre><... | I have used MediaCodec for playing avc video files. now I am trying to play video from a stream, I couldn't find any example or good documentations regarding using MediaCodec for adaptive streaming. I was wondering if anyone can lead me to a good example or just post what I need to do? some code: [CODE] Notice that I d... | android|video-streaming|android-mediacodec|adaptive-bitrate | 2 | 2016-04-24T20:48:13.513Z | 2,016 | 4 | 20 | 6 | 607 | 0 | 503 | 47 | 4 | 2 | true | true | false | false | false | false | low |
36,828,889 | SectionedRecyclerView over Write first item | <p>I'm Trying to use : SimpleSectionedRecyclerViewAdapter , i have arrayList that have 30 elements with strings , i'm going to group every 10 elements with header Title ,
first item should be "Item0" with header name "First 10 elements start"
but when doing that i get :</p>
<p>"First 10 elements start" // header ti... | I'm Trying to use : SimpleSectionedRecyclerViewAdapter , i have arrayList that have 30 elements with strings , i'm going to group every 10 elements with header Title , first item should be "Item0" with header name "First 10 elements start" but when doing that i get : "First 10 elements start" // header titile "Item1" <... | java|android|listview|android-recyclerview | 0 | 2016-04-24T21:06:12.637Z | 2,016 | 4 | 21 | 6 | 181 | 1 | 489 | 43 | 4 | 2 | true | false | false | false | false | false | zero |
36,828,925 | GoogleApiClient not connected in Service class Android | <p>Hello i want to make a service class that uses Google places with GoogleApiClient, it seems that is not connecting and therefore can't get places from it. </p>
<p>i have the method callPlaceDetectionApi to get those places, in an activity it worked fine but in Service class don't</p>
<pre><code>public class Locati... | Hello i want to make a service class that uses Google places with GoogleApiClient, it seems that is not connecting and therefore can't get places from it. i have the method callPlaceDetectionApi to get those places, in an activity it worked fine but in Service class don't [CODE] this is how im building the GoogleApliCl... | java|android|android-studio|google-places-api | 2 | 2016-04-24T21:09:55.930Z | 2,016 | 4 | 21 | 6 | 315 | 0 | 855 | 54 | 4 | 4 | true | true | false | false | false | false | low |
36,829,054 | Why ARToolKit Android show object in wrong position and perspective on Moto X 2nd Gen? | <p>I runned the project "ARSimpleNativeCarsProj" from ARToolKit Android SDK examples following this tutorial <a href="https://www.youtube.com/watch?v=GAWyUQ1xaNs" rel="nofollow noreferrer">https://www.youtube.com/watch?v=GAWyUQ1xaNs</a>.</p>
<p>Ok, I dont changed the code and it works, but the problem is when I run th... | I runned the project "ARSimpleNativeCarsProj" from ARToolKit Android SDK examples following this tutorial https://www.youtube.com/watch?v=GAWyUQ1xaNs . Ok, I dont changed the code and it works, but the problem is when I run this application sample on Motorola Moto X (2nd Generation), it looks funny, it is looking wrong... | java|android|android-studio|artoolkit | 0 | 2016-04-24T21:24:28.353Z | 2,016 | 4 | 21 | 6 | 493 | 2 | 969 | 86 | 4 | 0 | false | false | false | false | false | false | zero |
36,829,135 | How to refresh a listview that presents SQLite database | <p>I have a quiz application that stores the result of the user and their username, the topic and the timestamp and have a small issue I am stuck on with putting this data into a listview. </p>
<p>I have noticed that the listview never refreshes, as you can see from the timestamps in the first photo, I have taken 4 qu... | I have a quiz application that stores the result of the user and their username, the topic and the timestamp and have a small issue I am stuck on with putting this data into a listview. I have noticed that the listview never refreshes, as you can see from the timestamps in the first photo, I have taken 4 quizzes but it... | java|android|sqlite|listview | 0 | 2016-04-24T21:33:37.337Z | 2,016 | 4 | 21 | 6 | 47 | 2 | 597 | 55 | 4 | 2 | true | false | false | false | false | false | zero |
36,829,176 | How to delete app cache for all apps in Android M? | <p>Is there an option to delete the cache of all Apps or certain Apps in Android M ? </p>
<p>Seems like most ways don't work anymore in Android M. </p>
<p>As a reference I used this Code out of this discussion :
<a href="https://stackoverflow.com/questions/14507092/android-clear-cache-of-all-apps/14509140?noredirect... | Is there an option to delete the cache of all Apps or certain Apps in Android M ? Seems like most ways don't work anymore in Android M. As a reference I used this Code out of this discussion : Android: Clear Cache of All Apps? [CODE] Combined with this permission [CODE] This Code works fine on devices lower than Androi... | android|caching|delete-file | 13 | 2016-04-24T21:37:19.767Z | 2,016 | 4 | 21 | 6 | 7,396 | 2 | 1,352 | 50 | 3 | 4 | true | false | true | false | true | false | medium |
36,829,334 | Null pointer exception during ParseJSON | <p>When i am trying to parse the json, its throwing a null pointer exception. Also nothing is showing when i am trying to display the values.</p>
<p>code:</p>
<pre><code>public class ParseJSON {
//public static String[] ids;
public static String[] names;
public static String[] message;
public static ... | When i am trying to parse the json, its throwing a null pointer exception. Also nothing is showing when i am trying to display the values. code: [CODE] but when i am trying to display the the parse values, i am displaying it in a separate page, there if i can try to display values using LOG.d, it is showing values. lis... | java|android | -2 | 2016-04-24T21:54:12.990Z | 2,016 | 4 | 21 | 6 | 75 | 1 | 364 | 39 | 2 | 3 | true | false | false | false | false | true | negative |
36,829,473 | How to get exact index of selected item from filtered adapter? | <p>I am trying to develop android app and i am using AutoCompleteTextView with custom adapter. I am showing places to user. User can type in textview to find destination text. I added onItemClickListener to autocompletetextview in MainActivity and filled data to array adapter.<br></p>
<p>For example i typed 'somethin... | I am trying to develop android app and i am using AutoCompleteTextView with custom adapter. I am showing places to user. User can type in textview to find destination text. I added onItemClickListener to autocompletetextview in MainActivity and filled data to array adapter. For example i typed 'something' and values li... | java|android | 0 | 2016-04-24T22:13:12.343Z | 2,016 | 4 | 22 | 6 | 174 | 1 | 626 | 62 | 2 | 3 | true | false | false | false | false | false | zero |
36,829,491 | Image Failed to Load with Picasso | <p>I want to display image in gridview using picasso. But the image always failed to load. It always show the error picture. Can anyone help me?
I am using</p>
<pre><code>compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.squareup.okhttp3:okhttp:3.0.1'
</code></pre>
<p>CustomGridViewAdapter.java</p>
<pre><cod... | I want to display image in gridview using picasso. But the image always failed to load. It always show the error picture. Can anyone help me? I am using [CODE] CustomGridViewAdapter.java [CODE] MainActivity.java [CODE] This is How it looks like | java|android|gridview|picasso | 1 | 2016-04-24T22:14:31.600Z | 2,016 | 4 | 22 | 6 | 149 | 0 | 244 | 33 | 4 | 3 | true | true | false | false | false | false | low |
36,829,549 | how to connecting to sqlite by qt and run it on android | <p>I want to connect sqlite database and write an Android app.<br>
but,when i run the app i give an error which said: database not open.</p>
<pre><code>#include "csqlconnect.h"
#include <QFile>
#include <QSqlQuery>
#include <QMessageBox>
#include <QDebug>
#include <QSql>
#include <QSql... | I want to connect sqlite database and write an Android app. but,when i run the app i give an error which said: database not open. [CODE] } [CODE] query2.prepare("INSERT INTO person (id,firstname,lastname,age)VALUES(:ID,:FIRSTNAME,:LASTNAME,:AGE)"); query2.bindValue(":ID",1); query2.bindValue(":FIRSTNAME","ali"); query2... | android|database|qt|sqlite|connection | 0 | 2016-04-24T22:20:45.113Z | 2,016 | 4 | 22 | 6 | 262 | 1 | 549 | 55 | 5 | 3 | true | false | false | false | false | false | zero |
36,829,555 | Android Studio Error: Can't create handler inside thread that has not called Looper.prepare() | <p>I am trying to run a section of code every X seconds in an AsyncTask Activity and it is crashing before getting into any print statements. I am not sure why it is crashing, but I also posted the error I am getting. Anyone have any ideas? Thank you so much! </p>
<pre><code>public class AppListener extends AsyncTask&... | I am trying to run a section of code every X seconds in an AsyncTask Activity and it is crashing before getting into any print statements. I am not sure why it is crashing, but I also posted the error I am getting. Anyone have any ideas? Thank you so much! [CODE] MY ERROR Caused by: java.lang.RuntimeException: Can't cr... | java|android|asynchronous|handler|runtimeexception | 0 | 2016-04-24T22:21:06.263Z | 2,016 | 4 | 22 | 6 | 618 | 1 | 611 | 93 | 5 | 2 | true | false | false | false | false | false | zero |
36,829,705 | Why BROADCAST receiver registration causing error. My app just crashing because of this "android:exported="true" | <p>If i remove this "android:exported="true"" or make it FALSE, then BroadCast receiver does not work. :-/
How to solve this error, while me trying to perform some action on receiving SMS !! </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/andr... | If i remove this "android:exported="true"" or make it FALSE, then BroadCast receiver does not work. :-/ How to solve this error, while me trying to perform some action on receiving SMS !! [CODE] | android|broadcast | 0 | 2016-04-24T22:37:36.750Z | 2,016 | 4 | 22 | 6 | 340 | 1 | 194 | 112 | 2 | 1 | true | false | false | false | false | false | zero |
36,829,733 | why edit text style appears different in different phones | <p>I am trying to change my edit text style in android studio. I changed it in @drawable/edittext_design.xml folder. When I run the app on Nexus 5, it exactly runs the same as I expected. However, it runs in Google Nexus S phone different. </p>
<p>This is how it looks on Nexus 5:</p>
<p><a href="http://i.stack.imgur.... | I am trying to change my edit text style in android studio. I changed it in @drawable/edittext_design.xml folder. When I run the app on Nexus 5, it exactly runs the same as I expected. However, it runs in Google Nexus S phone different. This is how it looks on Nexus 5: nexus_5 This is how it looks on Nexus S nexus_s My... | android|android-studio|android-edittext | 1 | 2016-04-24T22:42:53.250Z | 2,016 | 4 | 22 | 6 | 72 | 1 | 541 | 57 | 3 | 2 | true | false | false | false | false | false | low |
36,829,802 | disableKeyguard call on application freezes phone | <p>On an Android 6.0 project, I am trying to unlock the phone using the proximity sensor.</p>
<p>This what I have for OnSensorChanged event:</p>
<pre><code> public void onSensorChanged(SensorEvent event) {
proxValue = (event.values[0]); //sensor value stored in proxValue
keyguardManager = (... | On an Android 6.0 project, I am trying to unlock the phone using the proximity sensor. This what I have for OnSensorChanged event: [CODE] On my ScreenReceiver I have: [CODE] The problem occurs when I call lock.disableKeyguard(). It unlocks and wakes up the phone successfully but phone freezes when I press the home butt... | android|android-sensors|keyguard | 1 | 2016-04-24T22:51:39.940Z | 2,016 | 4 | 22 | 6 | 107 | 1 | 479 | 49 | 3 | 2 | true | false | false | false | false | false | low |
36,829,836 | How to get my button to open a second activity in Android Studio? | <p>I have read many other forums from others' questions related to this issue and still cannot get my code to work. I cannot find anything wrong with my code yet I am getting an error on the back end (Java page) and the layout page. </p>
<p>For the Java page it is saying: "Could not find method buttonAbout1(View) in a... | I have read many other forums from others' questions related to this issue and still cannot get my code to work. I cannot find anything wrong with my code yet I am getting an error on the back end (Java page) and the layout page. For the Java page it is saying: "Could not find method buttonAbout1(View) in a parent or a... | java|android|button|click | 0 | 2016-04-24T22:55:32.923Z | 2,016 | 4 | 22 | 6 | 513 | 3 | 717 | 65 | 4 | 3 | true | false | false | false | false | false | zero |
36,829,837 | Native Android WebRTC application development | <p>I am trying to create an android application for video chat and messaging by using WebRTC Native APIs. I have been through several links and found out that most of the documentation for android is vague, specially if you dont know where to start from. I followed the following links,</p>
<p><a href="https://webrtc.or... | I am trying to create an android application for video chat and messaging by using WebRTC Native APIs. I have been through several links and found out that most of the documentation for android is vague, specially if you dont know where to start from. I followed the following links, https://webrtc.org/native-code/andro... | android|webrtc|libjingle|signaling|openwebrtc | 30 | 2016-04-24T22:55:46.163Z | 2,016 | 4 | 22 | 6 | 26,128 | 5 | 1,586 | 45 | 5 | 1 | true | false | true | true | true | false | high |
36,829,871 | cordova/phonegap onclick doesn't work | <p>I try to create button which starts an alert after a click event. Something like that : </p>
<pre><code> <body>
<div class="app">
<h1>Apache Cordova</h1>
<div id="deviceready" class="blink">
<p class="event listening">Connecting to Device</p&... | I try to create button which starts an alert after a click event. Something like that : [CODE] but the problem is that my onclick doesn't work. A lot of people tell me to try it on javascript so I've decided to write something like that : [CODE] But this is the same thing. Any ideas ? | javascript|android|cordova|onclick|listener | 2 | 2016-04-24T23:00:06.400Z | 2,016 | 4 | 23 | 6 | 20,455 | 8 | 285 | 37 | 5 | 2 | true | false | true | true | false | false | low |
36,829,886 | How to call AsyncTask from another AsyncTask? | <p>I have two AsyncTask: first looking for a prime number and if is successfully, I must call second AsyncTask that displays word "Yop!" (add this word to array list, and displays in AsyncTask three).</p>
<p>If I call second AsyncTask from onProgressUpdate, I have error:</p>
<pre><code>Process: com.egoriku.asynctask,... | I have two AsyncTask: first looking for a prime number and if is successfully, I must call second AsyncTask that displays word "Yop!" (add this word to array list, and displays in AsyncTask three). If I call second AsyncTask from onProgressUpdate, I have error: [CODE] MyTaskOne: [CODE] MyTaskTwo [CODE] | android|android-asynctask | 2 | 2016-04-24T23:02:49.917Z | 2,016 | 4 | 23 | 6 | 1,153 | 2 | 303 | 45 | 2 | 3 | true | false | false | false | false | false | low |
36,829,958 | java.lang.ClassCastException: android.widget.AbsListView$LayoutParams cannot be cast to android.widget.LinearLayout$LayoutParams | <p>I am trying to put message n date below it in same bubble Messeage TextView.
so i used LayoutParams to make bubble left or right.</p>
<p>But I'm getting this error.</p>
<pre><code>FATAL EXCEPTION: main
Process: com.rana.sahaj.myyu, PID: 18103
... | I am trying to put message n date below it in same bubble Messeage TextView. so i used LayoutParams to make bubble left or right. But I'm getting this error. [CODE] The getView() is this of SingleMessageRoom Activity. [CODE] | android|android-layout|listview|classcastexception|layoutparams | 0 | 2016-04-24T23:11:36.333Z | 2,016 | 4 | 23 | 6 | 892 | 0 | 224 | 128 | 5 | 2 | true | true | false | false | false | false | zero |
36,829,998 | Class must either be declared abstract or implement abstract method? | <p>It loos like i'm doing everything right here but I must be missing something. Hoping to get explanation about why I'm getting that error in the first line of my code and what I should do to fix this type of problem? I'm new to android dev. </p>
<pre><code>public class page2 extends AppCompatActivity implements OnC... | It loos like i'm doing everything right here but I must be missing something. Hoping to get explanation about why I'm getting that error in the first line of my code and what I should do to fix this type of problem? I'm new to android dev. [CODE] } I know that View.OnClickListener must implement the function onClick().... | java|android|android-studio|abstract-class|onclicklistener | 4 | 2016-04-24T23:16:43.620Z | 2,016 | 4 | 23 | 6 | 39,966 | 2 | 341 | 68 | 5 | 1 | true | false | true | true | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.