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,969,336 | Android App Crashes on trying to use Context.ALARM_SERVICE | <p>I am attempting to create an AndroidStudio app that is able to schedule and send specific text messages to specific people at specific frequencies. I am completely new to the Android API, and after some research, it seemed that the AlarmManager is the best way to do that. For I need to be able to specify the dates a... | I am attempting to create an AndroidStudio app that is able to schedule and send specific text messages to specific people at specific frequencies. I am completely new to the Android API, and after some research, it seemed that the AlarmManager is the best way to do that. For I need to be able to specify the dates and ... | android|android-service|alarmmanager | -1 | 2016-05-01T16:59:04.497Z | 2,016 | 5 | 16 | 6 | 579 | 1 | 6,015 | 58 | 3 | 6 | true | false | false | false | false | true | negative |
36,969,345 | How to keep websockets listening as a background service? | <p>I have a service to handle my websocket events however it stops listening when the UI is closed - however, I can still emit messages (eg. location data). How do I keep websockets running in the background so it will listen for events on boot or when the main UI thread is closed?</p>
<pre><code>public class HomeActi... | I have a service to handle my websocket events however it stops listening when the UI is closed - however, I can still emit messages (eg. location data). How do I keep websockets running in the background so it will listen for events on boot or when the main UI thread is closed? [CODE] This is the service being started... | java|android|websocket|socket.io | 0 | 2016-05-01T16:59:53.577Z | 2,016 | 5 | 16 | 6 | 1,508 | 1 | 352 | 57 | 4 | 2 | true | false | false | false | false | false | zero |
36,969,445 | Why isn't my textview updating? | <p>so I have a textview which I'm trying to update from an asynctask. The message I want to update it to correctly prints to the console but for some reason it doesn't update the textview. Here are the relevant bits of code:</p>
<pre><code>public class MainActivity extends AppCompatActivity{
private MqttClient cli... | so I have a textview which I'm trying to update from an asynctask. The message I want to update it to correctly prints to the console but for some reason it doesn't update the textview. Here are the relevant bits of code: [CODE] I declare the textview here, then I assign it in the onCreate() method: [CODE] Then in my a... | android|android-asynctask|textview | 0 | 2016-05-01T17:10:11.210Z | 2,016 | 5 | 17 | 6 | 75 | 2 | 524 | 31 | 3 | 3 | true | false | false | false | false | false | zero |
36,969,476 | How to play a sound when a user clicks the right answer | <p>I'm creating a quiz in flash using AS3. I'm having trouble trying to include sound when a user clicks a right or wrong answer. </p>
<p>How can I correctly play sound?</p>
<p>This is the code below</p>
<pre><code>import flash.media.Sound;
//button 1, see if the first text field equals the answer, if it does it pl... | I'm creating a quiz in flash using AS3. I'm having trouble trying to include sound when a user clicks a right or wrong answer. How can I correctly play sound? This is the code below [CODE] I've now done this but no luck: [CODE] | android|actionscript-3|flash|audio|animate-cc | 1 | 2016-05-01T17:12:48.460Z | 2,016 | 5 | 17 | 6 | 916 | 2 | 227 | 55 | 5 | 2 | true | false | false | false | false | false | low |
36,969,518 | My App is crashing on startup and i have no clue why. Gradle build runs fine without any errors | <p>I'm making an app that by now should save and then get the value of a numeric Edit Text. When i put to load data from string.xml it went fine, but when i switched to SharedPreferences it didn't even start. Any help finding the problem would be appreciated. BTW .java is below and i'm sure layout .xml is fine.</p>
<p... | I'm making an app that by now should save and then get the value of a numeric Edit Text. When i put to load data from string.xml it went fine, but when i switched to SharedPreferences it didn't even start. Any help finding the problem would be appreciated. BTW .java is below and i'm sure layout .xml is fine. [CODE] I b... | java|android|android-studio | 0 | 2016-05-01T17:15:52.867Z | 2,016 | 5 | 17 | 6 | 35 | 2 | 441 | 95 | 3 | 2 | true | false | false | false | false | false | zero |
36,969,558 | Xamarin.Forms - Toasts(Banners) - Alerts - in iOS and Android in Background | <p>I try to show toasts(banners) notification - while application in the background.</p>
<p>I checked background fetch and push notification. I also received push notification when app in foreground.</p>
<p>But when my app in background - I only see how change my badges count - but i don't see notification</p>
<p>Th... | I try to show toasts(banners) notification - while application in the background. I checked background fetch and push notification. I also received push notification when app in foreground. But when my app in background - I only see how change my badges count - but i don't see notification This is my code: [CODE] and [... | xamarin|xamarin.ios|xamarin.android|xamarin.forms | 0 | 2016-05-01T17:19:29.167Z | 2,016 | 5 | 17 | 6 | 967 | 1 | 566 | 75 | 4 | 2 | true | false | false | false | false | false | zero |
36,969,659 | Robolectric 3 with Fabric Crashlytics | <p>I am trying to ShadowClass Crashlytics/Fabric so that Robotlectric 3 tests do not fail. What I have so far is this:</p>
<p>The custom test runner that adds the Shadow class for Fabric:</p>
<pre><code>public class TestRunner extends RobolectricGradleTestRunner {
public TestRunner(Class<?> klass) throws I... | I am trying to ShadowClass Crashlytics/Fabric so that Robotlectric 3 tests do not fail. What I have so far is this: The custom test runner that adds the Shadow class for Fabric: [CODE] The shadow class for Fabric: [CODE] My application class for my app: [CODE] And here is the test that passes in Debug (because Crashlyt... | android|unit-testing|robolectric|robolectric-gradle-plugin|crashlytics-android | 1 | 2016-05-01T17:27:19.853Z | 2,016 | 5 | 17 | 6 | 1,516 | 1 | 918 | 37 | 5 | 5 | true | false | false | false | false | false | low |
36,969,668 | ViewRootImpl: ViewPostImeInputStage processPointer 0 on OnItemClick of Listview in android | <p>I have a <code>cart_layout</code> like this:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
... | I have a cart_layout like this: [CODE] And the java code for it in Cart.java : [CODE] I just want to make an OnItemClick event but everytime I tap the item, even when the listview.setOnItemClickListener is there or not, Logcat shows ViewRootImpl: ViewPostImeInputStage processPointer 0 ViewRootImpl: ViewPostImeInputStag... | java|android|listview|onitemclicklistener | 41 | 2016-05-01T17:28:10.963Z | 2,016 | 5 | 17 | 6 | 10,350 | 4 | 886 | 90 | 4 | 2 | true | false | true | false | true | false | high |
36,969,787 | Android Espresso matching root view | <p>I'm having trouble with matching toast message in one of my activities. In others it works without any problems but in this particular one it does not. I am not aware of any special layout changes that may cause this behavior. </p>
<p>I'm getting following exception:</p>
<pre><code>java.lang.RuntimeException: Wait... | I'm having trouble with matching toast message in one of my activities. In others it works without any problems but in this particular one it does not. I am not aware of any special layout changes that may cause this behavior. I'm getting following exception: [CODE] I am checking the toast message as following (which d... | android|android-layout|android-espresso | 8 | 2016-05-01T17:38:08.120Z | 2,016 | 5 | 17 | 6 | 5,825 | 0 | 446 | 35 | 3 | 3 | true | true | true | false | false | false | medium |
36,969,790 | Stripe for Android ExceptionInInitializerError | <p>Using the Stripe library and sample <a href="https://github.com/stripe/stripe-android" rel="nofollow">located here</a>. When I attempt to create a token in the release version of our app I get the following stacktrace:</p>
<pre><code> java.lang.RuntimeException: An error occured while executing doInBackground()
... | Using the Stripe library and sample located here . When I attempt to create a token in the release version of our app I get the following stacktrace: [CODE] Seems to work fine using a debug build. I am using proguard and have added the exclusion noted in the docs: [CODE] The card I'm using is a test one which gracefull... | android|stripe-payments | 3 | 2016-05-01T17:38:35.967Z | 2,016 | 5 | 17 | 6 | 543 | 1 | 767 | 46 | 2 | 3 | true | false | false | false | false | false | low |
36,969,893 | how do you add subitems to a listView from a database | <p>I have a database that stores the count of a tally and a name associated with that tally, I've gotten the list view to display the tally count but I can't figure out how to display the name as a sub item.</p>
<p>Here is my code so far.</p>
<p><code>public class SavedScreen extends ListActivity {</code></p>
<pre><... | I have a database that stores the count of a tally and a name associated with that tally, I've gotten the list view to display the tally count but I can't figure out how to display the name as a sub item. Here is my code so far. public class SavedScreen extends ListActivity { [CODE] }` I'm not very good at this yet so ... | java|android|database|listview|subitem | 1 | 2016-05-01T17:49:01.190Z | 2,016 | 5 | 17 | 6 | 31 | 0 | 441 | 53 | 5 | 1 | true | true | false | false | false | false | low |
36,970,003 | How to modify configuration by gradle plugin? | <p>Example <code>build.gradle</code>:</p>
<pre><code>apply plugin: 'com.android.application'
android {
defaultConfig {
applicationId propAppcationId
}
}
</code></pre>
<p>My plugin:</p>
<pre><code>public class AudioMaterialAppConstructorPlugin implements Plugin<Project> {
@Override
publ... | Example build.gradle : [CODE] My plugin: [CODE] My custom task: [CODE] I want to change applicationId before build task . As you can see, I tried to do it via property, but it doesn't work. How can I manage this case? | android|gradle|android-gradle-plugin | 0 | 2016-05-01T17:57:30.780Z | 2,016 | 5 | 17 | 6 | 317 | 1 | 217 | 45 | 3 | 3 | true | false | false | false | false | false | zero |
36,970,022 | why wont my recycler view scroll? | <p><a href="https://i.stack.imgur.com/et84O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/et84O.png" alt="screen"></a></p>
<p>been scowering the internet on this seems to happen a lot for a lot of reasons but I can't solve mine the two recycler views go into the view pagers but will not scroll, iv... | been scowering the internet on this seems to happen a lot for a lot of reasons but I can't solve mine the two recycler views go into the view pagers but will not scroll, ive tried nested scroll views on the view pager and on the fragment holding the recycler view, tried just using the scroll behaviour tags on linear la... | android|android-fragments|scroll|android-viewpager|android-recyclerview | 1 | 2016-05-01T17:58:54.580Z | 2,016 | 5 | 17 | 6 | 5,395 | 3 | 653 | 33 | 5 | 2 | true | false | true | false | false | false | low |
36,970,142 | How to display Layout of Child Activity? | <p>I have created a <code>BaseActivity</code> that just creates a <code>NavigationDrawer</code>.</p>
<p>Then i created a <code>TestActivity</code> that extends <code>BaseActivity</code>.</p>
<p>The <code>TestActivity</code> successfully draws the <code>Drawer</code> that is added in its Parent Activity. </p>
<p>Now ... | I have created a BaseActivity that just creates a NavigationDrawer . Then i created a TestActivity that extends BaseActivity . The TestActivity successfully draws the Drawer that is added in its Parent Activity. Now TestActivity has some of its own features. I have added a couple of button in it, but its not displaying... | android|android-layout|android-fragments|android-activity | 0 | 2016-05-01T18:09:09.110Z | 2,016 | 5 | 18 | 6 | 783 | 2 | 796 | 40 | 4 | 3 | true | false | false | false | false | false | zero |
36,970,143 | Android Studio local lib module issue | <p>I've started a new Android Studio project and created a new module for a lib I'll be working on, but there's a problem when I build the project I'm getting this error:</p>
<pre><code> AGPBI: {"kind":"error","text":"Error converting bytecode to dex:\nCause: java.lang.RuntimeException: Exception parsing classes","... | I've started a new Android Studio project and created a new module for a lib I'll be working on, but there's a problem when I build the project I'm getting this error: [CODE] I created a new project with nothing inside but a MainActivity class on the app module and a simple class on the lib module, and it's the same re... | java|android|android-studio|gradle|dex | 0 | 2016-05-01T18:09:11.170Z | 2,016 | 5 | 18 | 6 | 111 | 1 | 355 | 37 | 5 | 1 | true | false | false | false | false | false | zero |
36,970,229 | Android MarshMallow MediaPlayer cuts off too soon | <p>I have been having an issues playing audio files using <code>MediaPlayer</code> on <em>MarshMallow</em> where it stops too soon like a second or so.</p>
<p>The audio file is a <em>.wav</em> file with a length just under 3 seconds. It has the following properties:</p>
<ul>
<li>Codec: PCM S16 LE(araw) </li>
<li>Chan... | I have been having an issues playing audio files using MediaPlayer on MarshMallow where it stops too soon like a second or so. The audio file is a .wav file with a length just under 3 seconds. It has the following properties: Codec: PCM S16 LE(araw) Channels: Mono Sample rate: 8000 Hz Bit per sample: 16 I have had this... | android|android-mediaplayer|android-6.0-marshmallow | 3 | 2016-05-01T18:16:24.420Z | 2,016 | 5 | 18 | 6 | 749 | 0 | 952 | 49 | 3 | 3 | true | true | false | false | false | false | low |
36,970,445 | Toolbar overlapping with elements in Android | <p>I am implementing a list view in my app. I am trying to build my app for android 6.0 and chosen the theme "DarkActionBar". I am having this code right now in activity_main.xml.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schem... | I am implementing a list view in my app. I am trying to build my app for android 6.0 and chosen the theme "DarkActionBar". I am having this code right now in activity_main.xml. [CODE] I have just added a listview (replacing a textview) in this code. Rest of code was already there when I created my project. Right now I ... | java|android|android-studio | 0 | 2016-05-01T18:37:00.660Z | 2,016 | 5 | 18 | 6 | 713 | 1 | 535 | 44 | 3 | 1 | true | false | false | false | false | false | zero |
36,970,476 | Send data from Activity to fragment in an Android app | <p>In my application I have an Activity (MainScreen) and one Fragment (Orders). I have a string (name) in the Activity and I want to send it to the Fragment. (Under the comment lines you can see my attempt to send the string from the activity to the fragment). I don't know why, but the application crashes with this.</p... | In my application I have an Activity (MainScreen) and one Fragment (Orders). I have a string (name) in the Activity and I want to send it to the Fragment. (Under the comment lines you can see my attempt to send the string from the activity to the fragment). I don't know why, but the application crashes with this. This ... | android|android-activity|fragment | 0 | 2016-05-01T18:39:43.473Z | 2,016 | 5 | 18 | 6 | 344 | 1 | 378 | 53 | 3 | 2 | true | false | false | false | false | false | zero |
36,970,500 | in Async Task : Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference | <p><b> What i want</b></p>
<p>When click on Marker in Map, Show alert dialog with list view (containing text)</p>
<p><b> LogCat Error</b></p>
<pre><code>05-01 23:20:21.098 11392-11654/com.example.talha.atmlocaterproject W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widg... | What i want When click on Marker in Map, Show alert dialog with list view (containing text) LogCat Error [CODE] What i am doing is in OnMarkerClick() is calling AsyncTask to get message from cloud. [CODE] Now in doInBackground() method , i retreive the message from cloud and set adapter [CODE] showDailogListView() [COD... | android|android-intent|android-asynctask|android-alertdialog|android-logcat | 0 | 2016-05-01T18:41:44.257Z | 2,016 | 5 | 18 | 6 | 682 | 3 | 361 | 145 | 5 | 6 | true | false | false | false | false | false | zero |
36,970,582 | Java IndexOutOfBound exception Using arraylist in Android | <p>I am new to android development. I am using a Userdefined Arraylist called Donors in this code but it gives me error. I saw the same error posted here many time but still i am not able to find my solution. Please Help. Thanks</p>
<pre><code>05-01 23:45:10.855 1756-3399/com.donateblood.blooddonation E/AndroidRuntime:... | I am new to android development. I am using a Userdefined Arraylist called Donors in this code but it gives me error. I saw the same error posted here many time but still i am not able to find my solution. Please Help. Thanks [CODE] [CODE] | java|android|arraylist | -2 | 2016-05-01T18:49:47.877Z | 2,016 | 5 | 18 | 6 | 96 | 1 | 239 | 57 | 3 | 2 | true | false | false | false | false | true | negative |
36,970,806 | Worker/Background Thread "smothers" UI thread Android- Why? | <p>So when running the following method in doInBackground() inside of AsyncTask derived class:</p>
<pre><code>void waitUntilButtonClicked(){
while(true){
synchronized (buttonClicked){
if(buttonClicked) return;
}
try{Thread.... | So when running the following method in doInBackground() inside of AsyncTask derived class: [CODE] without the very last line of code which makes the background thread sleep for 1 ms, the User Interface doesn't work (there is an EditText widget which when tapped on doesn't respond at all). I should mention that when wa... | java|android|multithreading | 0 | 2016-05-01T19:12:36.067Z | 2,016 | 5 | 19 | 6 | 348 | 1 | 741 | 59 | 3 | 1 | true | false | false | false | false | false | zero |
36,970,815 | How to include a java 8 subproject into an Android project | <p>I'm working an android project where the model is written in java alone and a dependency for the rest of the project (view, controller), written in "android-java".<br>
I have recently switched from android studio 1.3 to 2.1 and begun to use java 8 in the model.
It compiles fine insofar as rebuilding the project thro... | I'm working an android project where the model is written in java alone and a dependency for the rest of the project (view, controller), written in "android-java". I have recently switched from android studio 1.3 to 2.1 and begun to use java 8 in the model. It compiles fine insofar as rebuilding the project throws no e... | android|android-gradle-plugin | 2 | 2016-05-01T19:13:45.227Z | 2,016 | 5 | 19 | 6 | 1,580 | 1 | 1,589 | 58 | 2 | 6 | true | false | false | false | false | false | low |
36,970,896 | How to create SQLite database in android | <p>I have created a Databasehelper.java class and in that class I have called SQLite database class and implemented all its methods and in the main class when I am calling this class instance and when I am running the app It is showing "Unfortunately your app has stopped"</p>
<p>this is code </p>
<pre><code>package ... | I have created a Databasehelper.java class and in that class I have called SQLite database class and implemented all its methods and in the main class when I am calling this class instance and when I am running the app It is showing "Unfortunately your app has stopped" this is code [CODE] and this is mainactivity.java ... | java|android|sqlite | 0 | 2016-05-01T19:21:58.640Z | 2,016 | 5 | 19 | 6 | 2,117 | 2 | 3,942 | 40 | 3 | 2 | true | false | false | false | false | false | zero |
36,970,921 | Android sort arrays | <p>I'm trying to sort an array in alphabetical order (by word string). After I put this line <code>Arrays.sort(word, String.CASE_INSENSITIVE_ORDER);</code>, the other parallel string arrays such as example and flag don't match with word position anymore.</p>
<p>If <code>word string</code> changes its position after it... | I'm trying to sort an array in alphabetical order (by word string). After I put this line Arrays.sort(word, String.CASE_INSENSITIVE_ORDER); , the other parallel string arrays such as example and flag don't match with word position anymore. If word string changes its position after it is sorted, the others strings shoul... | android|arrays|sorting | -2 | 2016-05-01T19:24:35.720Z | 2,016 | 5 | 19 | 6 | 346 | 3 | 371 | 19 | 3 | 1 | true | false | false | false | false | true | negative |
36,970,968 | RecyclerView changes it's position value in onBindViewHolder after 2-3 notifyDataSetChanged is called | <ul>
<li>How to get correct position value.</li>
<li>Position in onBindViewHolder is changing after notifyDataSetChanged is called 2-3 times in RecyclerView's adapter.</li>
<li>But Scrolling position is same.</li>
</ul>
<p>I am setting different view by getItemViewType. </p>
<pre><code>@Override
public int getItemVie... | How to get correct position value. Position in onBindViewHolder is changing after notifyDataSetChanged is called 2-3 times in RecyclerView's adapter. But Scrolling position is same. I am setting different view by getItemViewType. [CODE] On Clicking Row i have callBackListener for refreshing by hitting service again, bu... | android|callback|android-recyclerview|android-adapter | 0 | 2016-05-01T19:28:00.800Z | 2,016 | 5 | 19 | 6 | 2,345 | 1 | 424 | 101 | 4 | 2 | true | false | false | false | false | false | zero |
36,970,986 | Trying to recreate a recyclerview | <p>I'm trying to recreate a very beutiful recycler view that i found on this github:
<a href="https://github.com/saulmm/Material-Movies" rel="nofollow">https://github.com/saulmm/Material-Movies</a>
The thing is that I even thought i've copy pasted all of the necessary code it seems diferent
Here's a side to side pictur... | I'm trying to recreate a very beutiful recycler view that i found on this github: https://github.com/saulmm/Material-Movies The thing is that I even thought i've copy pasted all of the necessary code it seems diferent Here's a side to side picture of how it is against how it should be. http://i.imgur.com/P4Lqur1.jpg //... | android|android-layout|android-recyclerview | 1 | 2016-05-01T19:29:51.450Z | 2,016 | 5 | 19 | 6 | 307 | 0 | 716 | 33 | 3 | 0 | false | true | false | false | false | false | low |
36,971,016 | Transform HashMap values using RxJava | <p>Is there a some way, by 'way' I mean using rx operators, to transform each HashMap value (setting the hashmap key as a value field) and get into a new Hashmap or ArrList?</p>
<pre><code>Observable<HashMap<String,Allergy>> observable = MyREST.getsAllergiesApi().getAllAllergiesRx();
observable
... | Is there a some way, by 'way' I mean using rx operators, to transform each HashMap value (setting the hashmap key as a value field) and get into a new Hashmap or ArrList? [CODE] | android|rx-java|observable|rx-android|subscriber | 3 | 2016-05-01T19:32:42.157Z | 2,016 | 5 | 19 | 6 | 2,500 | 1 | 177 | 37 | 5 | 1 | true | false | false | false | false | false | low |
36,971,019 | Android seekbar thumb drawable not displayed correctly | <p>I created a custom seekbar thumb, it looks very good on android studio previews, but when running the app on my device, it looks wrong !</p>
<p>what it should look like
<a href="https://i.stack.imgur.com/uXKqF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uXKqF.png" alt="what it should look lik... | I created a custom seekbar thumb, it looks very good on android studio previews, but when running the app on my device, it looks wrong ! what it should look like what it actually look like on my device my seekbar_thumb.xml code [CODE] my seekbar code [CODE] | android|android-studio|seekbar|android-seekbar|seekbar-thumb | 3 | 2016-05-01T19:32:55.910Z | 2,016 | 5 | 19 | 6 | 9,101 | 1 | 257 | 54 | 5 | 2 | true | false | true | false | false | false | low |
36,971,137 | Exception raised during Rendering: android.support.design.widget.CoordinatorLayout cannot be cast to android.view.ViewGroup | <p>Although i was getting preview before, i have not made any changes in the files. As a matter of fact there is not much to change in my code, its just a OK button in app.
Just to tell, i deleted the toolbar from my design in activity_main.xml file.But undo the changes afterwards as i can see it in MainActivity.java f... | Although i was getting preview before, i have not made any changes in the files. As a matter of fact there is not much to change in my code, its just a OK button in app. Just to tell, i deleted the toolbar from my design in activity_main.xml file.But undo the changes afterwards as i can see it in MainActivity.java file... | android|xml|android-studio | 2 | 2016-05-01T19:44:28.177Z | 2,016 | 5 | 19 | 6 | 1,961 | 1 | 408 | 123 | 3 | 1 | true | false | false | false | false | false | low |
36,971,159 | How to release memory of the fragment after I coding getSupportFragmentManager().popBackStack()? I remove it but widgets instantiated as well | <p>I have a question about how to release memory of the fragment after I coding getSupportFragmentManager().popBackStack()?</p>
<h1>QUESTION 1</h1>
<p>There are Fragment A and B.
Define them like this:</p>
<pre><code>Fragment A = new Fragment();
Fragment B = new Fragment();
</code></pre>
<p>change A to B and add A ... | I have a question about how to release memory of the fragment after I coding getSupportFragmentManager().popBackStack()? QUESTION 1 There are Fragment A and B. Define them like this: [CODE] change A to B and add A into the back stack. [CODE] But when I call onBackPress(call the popBackStack), something will wrong.The m... | android|android-fragments | 0 | 2016-05-01T19:46:56.573Z | 2,016 | 5 | 19 | 6 | 911 | 1 | 1,054 | 141 | 2 | 3 | true | false | false | false | false | false | zero |
36,971,167 | NavigationView below Action Bar with AppBarLayout | <p>I want to do NavigationView below Action Bar like this but shadow don't let me to do:</p>
<p><a href="http://i.stack.imgur.com/Evbms.png" rel="nofollow">screenshoot</a></p>
<p>Here is my <strong>activity_main.xml</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.Dr... | I want to do NavigationView below Action Bar like this but shadow don't let me to do: screenshoot Here is my activity_main.xml [CODE] The main goal is removing shadow which is covering AppBarLayout (NOT ALL OF THEM, JUST UNCOVER APPBAR). Anyone can help me ? | android-toolbar|android-coordinatorlayout|drawerlayout|android-appbarlayout|navigationview | 1 | 2016-05-01T19:48:11.243Z | 2,016 | 5 | 19 | 6 | 695 | 1 | 258 | 49 | 5 | 1 | true | false | false | false | false | false | low |
36,971,248 | When I run mediaplayer app on android virtual device error comes saying that unfortunately my app has stopped. | <p>When I run mediaplayer app on android virtual device error comes saying that unfortunately mediaplayer has stopped?What is the error in the code?</p>
<p>When I run mediaplayer app on android virtual device error comes saying that unfortunately mediaplayer has stopped?</p>
<p>****This is manifest of android m... | When I run mediaplayer app on android virtual device error comes saying that unfortunately mediaplayer has stopped?What is the error in the code? When I run mediaplayer app on android virtual device error comes saying that unfortunately mediaplayer has stopped? ****This is manifest of android music player**** [CODE] | android|eclipse|compilation|android-emulator|virtual-machine | 0 | 2016-05-01T19:55:28.300Z | 2,016 | 5 | 19 | 6 | 158 | 1 | 317 | 110 | 5 | 1 | true | false | false | false | false | false | zero |
36,971,270 | Generic printer driver - Android | <p>I am trying to send some files (pdf files) to a network printer using an Android program I am developing but the printer is printing random characters instead of the actual document. Using a different app I was able to print to the same printer using what the app called a "<em>generic printer drive</em>. I could not... | I am trying to send some files (pdf files) to a network printer using an Android program I am developing but the printer is printing random characters instead of the actual document. Using a different app I was able to print to the same printer using what the app called a " generic printer drive . I could not find any ... | android|printing|driver|wireless | 1 | 2016-05-01T19:57:34.263Z | 2,016 | 5 | 19 | 6 | 6,585 | 2 | 556 | 32 | 4 | 1 | true | false | true | false | false | false | low |
36,971,281 | android studio 2.1 issue with NDK | <p>I am trying to use AndEngine with Android Studio 2.1 and I am running issues specifically with the NDK stuff. The version of AndEngine I am trying to use is the GLES2-AnchorCenter for reference. I create my project and add AndEngine as a module, then give my project a dependency on my AndEngine module. What I end up... | I am trying to use AndEngine with Android Studio 2.1 and I am running issues specifically with the NDK stuff. The version of AndEngine I am trying to use is the GLES2-AnchorCenter for reference. I create my project and add AndEngine as a module, then give my project a dependency on my AndEngine module. What I end up wi... | android-ndk|andengine|android-ndk-r5 | 0 | 2016-05-01T19:58:54.243Z | 2,016 | 5 | 19 | 6 | 300 | 2 | 1,067 | 33 | 3 | 1 | true | false | false | false | false | false | zero |
36,971,353 | Kivy store Canvas contents in StringIO | <p>I´m testing following paint app example (<a href="https://kivy.org/docs/tutorials/firstwidget.html" rel="nofollow">https://kivy.org/docs/tutorials/firstwidget.html</a>):</p>
<pre><code>from random import random
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.graphics import Color, Ellipse, Lin... | I´m testing following paint app example ( https://kivy.org/docs/tutorials/firstwidget.html ): [CODE] The example works fine. I´m trying to store the the contents I draw in the canvas to a file, but when I open the file it is completely black and there are no contents. I want to store the canvas contents to a Python Str... | android|canvas|kivy | 0 | 2016-05-01T20:07:05.687Z | 2,016 | 5 | 20 | 6 | 110 | 1 | 626 | 38 | 3 | 1 | true | false | false | false | false | false | zero |
36,971,380 | java.lang.IllegalStateException: Content view not yet created? | <p>I am using a <code>ViewPager</code> with two fragments. When the app is opened the first fragment is set as the default. If the first fragment is not swiped to the next fragment and then the app is closed it crashes. I have tried using <code>onViewCreated</code> as answered in other questions on StackOverflow but st... | I am using a ViewPager with two fragments. When the app is opened the first fragment is set as the default. If the first fragment is not swiped to the next fragment and then the app is closed it crashes. I have tried using onViewCreated as answered in other questions on StackOverflow but still it doesn't seem to work. ... | java|android|android-fragments | 0 | 2016-05-01T20:09:43.313Z | 2,016 | 5 | 20 | 6 | 254 | 0 | 356 | 62 | 3 | 2 | true | true | false | false | false | false | zero |
36,971,409 | Multiply model matrix with vector array, Android OpenGL ES | <p>The following code does not seem to correctly transform a float[] array to be passed as uniform vec4[] to the vertex shader. Why isn't this working?</p>
<pre><code>private static short STRIDE = 4;
private final float[] modelMatrix = new float[16];
private float[] worldVertices = new float[12];
private static fl... | The following code does not seem to correctly transform a float[] array to be passed as uniform vec4[] to the vertex shader. Why isn't this working? [CODE] [compute deltas] [CODE] The worldVertices are then passed to the vertex shader. Replacing the loop with component-wise math produces the correct result. What is the... | java|android|matrix|opengl-es | 0 | 2016-05-01T20:12:03.447Z | 2,016 | 5 | 20 | 6 | 737 | 0 | 557 | 58 | 4 | 3 | true | true | false | false | false | false | zero |
36,971,432 | IntentService does broadcast but onReceive doesn't receive broadcast | <p><strong>(NOTE</strong> that at the end of this Question I have an <strong>EDIT</strong> in which I have replaced one method with what the Answer said to do in order to fix the problem of <code>onReceive</code> never getting called <strong>and</strong> added <code>onDestroy</code> to fix a new problem that cropped up... | (NOTE that at the end of this Question I have an EDIT in which I have replaced one method with what the Answer said to do in order to fix the problem of onReceive never getting called and added onDestroy to fix a new problem that cropped up after fixing first problem. ) Here's how I attempted to capture the broadcast d... | java|android|android-broadcast|android-intentservice|android-broadcastreceiver | 0 | 2016-05-01T20:14:31.143Z | 2,016 | 5 | 20 | 6 | 178 | 1 | 823 | 68 | 5 | 6 | true | false | false | false | false | false | zero |
36,971,519 | Android app debugs for a few seconds then just stops | <p>I'm trying to set up a new Android app development environment at home and I've run into a problem that is a showstopper.</p>
<p>First, here is my environment:</p>
<ol>
<li>Windows 10</li>
<li>Visual Studio Community 2015 with Xamarin platform installed</li>
<li>Test device is: G Pad 7.0 LTE</li>
<li>Android Versi... | I'm trying to set up a new Android app development environment at home and I've run into a problem that is a showstopper. First, here is my environment: Windows 10 Visual Studio Community 2015 with Xamarin platform installed Test device is: G Pad 7.0 LTE Android Version 5.0.2 I'm following this tutorial: MSDN tutorial ... | c#|android|visual-studio | 10 | 2016-05-01T20:22:58.700Z | 2,016 | 5 | 20 | 6 | 5,431 | 4 | 1,631 | 52 | 3 | 0 | false | false | true | false | true | false | medium |
36,971,528 | Android SeekBar talkback, talking too much | <p>(Android) On a music player, you update the seekbar as expected with this:</p>
<pre class="lang-java prettyprint-override"><code>PRECISION_SEEKBAR = 100000;
((SeekBar) findViewById(R.id.seekBar2)).setMax(PRECISION_SEEKBAR);
timerSeekBarUpdate.scheduleAtFixedRate(new TimerTask() {
@Override
public v... | (Android) On a music player, you update the seekbar as expected with this: [CODE] However, if the focus is on the seek bar, talkback steadily and nonstop gives feedback for the progress. Like "seek control 25%", "seek control 25%", "seek control 25%", "seek control 26%", "seek control 26%", "seek control 27%" I'm missi... | java|android|accessibility|talkback | 1 | 2016-05-01T20:24:19.627Z | 2,016 | 5 | 20 | 6 | 1,843 | 2 | 907 | 42 | 4 | 1 | true | false | false | false | false | false | low |
36,971,547 | NullPointerException wrong context? | <p>I cant understand what is wrong?</p>
<p>list_item</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
and... | I cant understand what is wrong? list_item [CODE] fragment_list [CODE] FragmentList.java [CODE] } Why CheckBox checkBox = (CheckBox) v.findViewById(R.id.checkBox) is null? I tried many variations but became stupid (( debug screenshot | android|nullpointerexception|android-context|findviewbyid | 1 | 2016-05-01T20:25:43.450Z | 2,016 | 5 | 20 | 6 | 43 | 2 | 233 | 35 | 4 | 3 | true | false | false | false | false | false | low |
36,971,576 | Combine tab layout and tab swipe | <p>I've implemented tab layout it works, but when I add tab swipe. it freeze I can't use the other tabs in the tab layout. Any suggestions.</p>
<p>Here's my code for the tab layout</p>
<pre><code>public class TabLayoutAdmin extends TabActivity {
private TabHost mTabHost;
@Override
protected void onCreate(Bundle sav... | I've implemented tab layout it works, but when I add tab swipe. it freeze I can't use the other tabs in the tab layout. Any suggestions. Here's my code for the tab layout [CODE] As for tab swipe I used this code http://www.androidhive.info/2013/10/android-tab-layout-with-swipeable-views-1/ Thanks | android|android-tablayout | 0 | 2016-05-01T20:27:50.527Z | 2,016 | 5 | 20 | 6 | 222 | 1 | 297 | 32 | 2 | 1 | true | false | false | false | false | false | zero |
36,971,630 | Get details of an item clicked in a listview in next activity | <p>Hi i am working on a code in which in a listview it shows up some details like name and price , which comes from MySQL database . Now when I want to click on that particular item in that listview, what i want is that I want to move in to next activity the layout to which will be the same , only the data keeps changi... | Hi i am working on a code in which in a listview it shows up some details like name and price , which comes from MySQL database . Now when I want to click on that particular item in that listview, what i want is that I want to move in to next activity the layout to which will be the same , only the data keeps changing ... | android|listview|android-intent | 0 | 2016-05-01T20:34:12.340Z | 2,016 | 5 | 20 | 6 | 1,220 | 5 | 827 | 61 | 3 | 3 | true | false | false | false | false | false | zero |
36,971,636 | How can i count how much data have already sent to server by HttpURLConnection? | <p>I sent a <code>byte[]</code> to server. I can count <code>byte[]</code> size which i am going to send, but how can i get size of <code>byte[]</code> which have already sent? I want implement it in order to show to user a <code>progressBar</code> in % .</p>
<p>Here is the my code : </p>
<pre><code>public static JSO... | I sent a byte[] to server. I can count byte[] size which i am going to send, but how can i get size of byte[] which have already sent? I want implement it in order to show to user a progressBar in % . Here is the my code : [CODE] I try implement smth like ProgressListener() but without succes( How i can make it? | java|android | 1 | 2016-05-01T20:34:48.793Z | 2,016 | 5 | 20 | 6 | 34 | 0 | 313 | 79 | 2 | 1 | true | true | false | false | false | false | low |
36,971,689 | Attempt to invoke virtual method 'void ListView.setAdapter(ListAdapter)' on a null object reference | <p>I'm trying to show an image and text each list view item. I read a few tutorial but I still could not.</p>
<p>I'm getting this error when I try to open TagsActivity:</p>
<blockquote>
<p>Attempt to invoke virtual method 'void
android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a
null object ref... | I'm trying to show an image and text each list view item. I read a few tutorial but I still could not. I'm getting this error when I try to open TagsActivity: Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference In this line: [CODE] TagsActivi... | java|android | 1 | 2016-05-01T20:38:59.537Z | 2,016 | 5 | 20 | 6 | 518 | 2 | 442 | 99 | 2 | 6 | true | false | false | false | false | false | low |
36,971,748 | Android instrumentation tests - "Unable to find instrumentation info for: ComponentInfo" | <p>I'm trying to run instrumentation tests on Android ( or Espresso tests for that matter ). The error that I'm getting both from Android Studio and console is:</p>
<pre><code>Tests on Nexus_5X_API_23_2(AVD) - 6.0 failed: Unable to find instrumentation info for:
ComponentInfo{com.android.example.country1.demo.debug... | I'm trying to run instrumentation tests on Android ( or Espresso tests for that matter ). The error that I'm getting both from Android Studio and console is: [CODE] Here is my build.gradle: [CODE] Note: I know there are a lot of similar questions but after a couple of days of searching and trying solutions I have not f... | android|android-espresso | 5 | 2016-05-01T20:45:30.660Z | 2,016 | 5 | 20 | 6 | 3,494 | 1 | 629 | 88 | 2 | 4 | true | false | true | false | false | false | low |
36,971,765 | Discrete OnTouchListener events | <p>Why does View.OnTouchListener() works so freaky when I just ask it to increment 1?</p>
<pre><code> public class Clicker extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.clicker);
... | Why does View.OnTouchListener() works so freaky when I just ask it to increment 1? [CODE] 1 click increments 2 or 3 points. | android|touch | 2 | 2016-05-01T20:47:10.740Z | 2,016 | 5 | 20 | 6 | 87 | 2 | 123 | 31 | 2 | 1 | true | false | false | false | false | false | low |
36,971,796 | call class with extends TabActivity in the class with extends AppCompatActivity | <p>I wish only to call TabHost in the class RequestsAdd, but result object null. </p>
<p>codes here:</p>
<p>Class RequestsAdd</p>
<pre><code>public class RequestsAdd extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener {
Toolbar toolbar;
@Override
protected void onCreate(Bundle saved... | I wish only to call TabHost in the class RequestsAdd, but result object null. codes here: Class RequestsAdd [CODE] Class NavigationFragmentMenu [CODE] layouts: menu_requests_add.xml call include app_bar_requests_add.xml app_bar_requests_add.xml call include content_requests_add_eat (android:id="@+id/content_requests_La... | java|android|xml | 1 | 2016-05-01T20:50:38.040Z | 2,016 | 5 | 20 | 6 | 391 | 0 | 408 | 79 | 3 | 2 | true | true | false | false | false | false | low |
36,971,810 | IllegalStateException: System services not available to Activities before onCreate() when I'm trying to run my app | <p>I am new to android and I'm trying to make app that save the phone location in database and show the locations in <code>ListView</code>.
but when I'm runing the application I have this Exception: <code>java.lang.IllegalStateException: System services not available to Activities before onCreate()</code></p>
<p>and i... | I am new to android and I'm trying to make app that save the phone location in database and show the locations in ListView . but when I'm runing the application I have this Exception: java.lang.IllegalStateException: System services not available to Activities before onCreate() and i have reference to this line: [CODE]... | android|android-studio | 1 | 2016-05-01T20:52:10.267Z | 2,016 | 5 | 20 | 6 | 228 | 1 | 523 | 114 | 2 | 3 | true | false | false | false | false | false | low |
36,971,839 | TarsosDSP Clap Detection | <p>I decided to try out developing for android studio and designed an app that listens for a clap then performs an action of some sort. My problem lies in using TarsosDSP. </p>
<p>I want to run the <code>Listener</code> class as an <code>IntentService</code>, so I can lock my phone and it still listens. However I'm ha... | I decided to try out developing for android studio and designed an app that listens for a clap then performs an action of some sort. My problem lies in using TarsosDSP. I want to run the Listener class as an IntentService , so I can lock my phone and it still listens. However I'm having trouble setting up the AudioDisp... | java|android|tarsosdsp | 3 | 2016-05-01T20:55:12.040Z | 2,016 | 5 | 20 | 6 | 2,254 | 2 | 678 | 24 | 3 | 1 | true | false | false | false | false | false | low |
36,971,964 | UI canvas Index | <p>I have and script below that does the following:</p>
<p>The player starts with 3 hearts [0] if it suffers damage loses one heart and changes the texture to 2 hearts <a href="https://i.stack.imgur.com/Pa5xK.png" rel="nofollow noreferrer">1</a>, if he wins one extra heart back to the texture [0] .. If you're having o... | I have and script below that does the following: The player starts with 3 hearts [0] if it suffers damage loses one heart and changes the texture to 2 hearts 1 , if he wins one extra heart back to the texture [0] .. If you're having only one heart [ 2] and suffers an injury, the game ends. This code works perfectly, bu... | c#|android-canvas|unityscript|unity3d | 0 | 2016-05-01T21:07:51.817Z | 2,016 | 5 | 21 | 6 | 67 | 1 | 682 | 15 | 4 | 1 | true | false | false | false | false | false | zero |
36,971,993 | How to determine if an ImageView is visible in CollapsingToolbar? | <p>I have a collapsing toolbar layout that looks like this:</p>
<pre><code> <android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/collapsing_toolbar"
android:layout_width="match_parent"
android:layout_height="@dimen/expanded_toolbar_height"
android:fitsSystemWind... | I have a collapsing toolbar layout that looks like this: [CODE] where circle_image_view is [CODE] This is just a standard image view with a circular mask. When the the collapsing toolbar is expanded, the circular Image view is visible and shows like: When collapsed, the image view is no longer visible as follows: Howev... | android|android-imageview|android-collapsingtoolbarlayout | 2 | 2016-05-01T21:10:59.350Z | 2,016 | 5 | 21 | 6 | 1,057 | 3 | 775 | 65 | 3 | 2 | true | false | false | false | false | false | low |
36,972,019 | how to pass two variables from database to display into an array in android | <p>i am new to android programming, i am getting values from database into two variables like below</p>
<pre><code>[
{
"user": "varun",
"message": "hello word, my first message "
},
{
"user": "varun",
"message": "hello word, my first message "
},
{
"user": "rahul",
"message": "hello w... | i am new to android programming, i am getting values from database into two variables like below [CODE] and also to display them in my ListView, am using an array to add them and display. code: [CODE] but this way what is happening, first it is creating username child view and then my message child view. is there any w... | java|android | 0 | 2016-05-01T21:12:59.797Z | 2,016 | 5 | 21 | 6 | 30 | 2 | 507 | 75 | 2 | 2 | true | false | false | false | false | false | zero |
36,972,076 | delete from listview and refresh listview data after delete in android | <p>I am trying to refresh/update my list view after i have deleted and item from it. i cant figure out how to do this, i think i should use notifyDataSetChanged(); but not sure how. any ideas? thanks</p>
<p>heres is my AndroidListViewCursorAdaptorActivity class:</p>
<pre><code>public class AndroidListViewCursorAdapto... | I am trying to refresh/update my list view after i have deleted and item from it. i cant figure out how to do this, i think i should use notifyDataSetChanged(); but not sure how. any ideas? thanks heres is my AndroidListViewCursorAdaptorActivity class: [CODE] here is my DBAdapter class [CODE] | android|listview | 1 | 2016-05-01T21:19:13.353Z | 2,016 | 5 | 21 | 6 | 936 | 2 | 293 | 70 | 2 | 2 | true | false | false | false | false | false | low |
36,972,110 | Unable to get activity facebook share button (SDK 4.0) | <p>I have a <code>ListView</code> inside each item I have a facebook share button </p>
<pre><code><com.facebook.share.widget.ShareButton
android:id="@+id/btnOne"
android:layout_centerInParent="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="... | I have a ListView inside each item I have a facebook share button [CODE] But when I click on the button MediaAdapter.java inside public View getView(final int position, View convertView, ViewGroup parent) [CODE] I get this error: | android|facebook|listview|adapter|share-button | 1 | 2016-05-01T21:22:30.563Z | 2,016 | 5 | 21 | 6 | 143 | 0 | 229 | 54 | 5 | 2 | true | true | false | false | false | false | low |
36,972,335 | What causing this exception java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.view.View] | <p>I'm having a problem with my <code>firebase</code> project.
I followed the steps on <code>firebase</code> GitHub documentation, but I got this exception</p>
<pre><code>java.lang.RuntimeException: java.lang.NoSuchMethodException: <init>
[class android.view.View]
</code></pre>
<p>this is a <code>ViewHolder</co... | I'm having a problem with my firebase project. I followed the steps on firebase GitHub documentation, but I got this exception [CODE] this is a ViewHolder class which is not an inner class. [CODE] and this is the firebase related code [CODE] I'm using firebaseRecyclerView to populate data model, and the viewHolder clas... | android|firebase|android-recyclerview|android-viewholder | 8 | 2016-05-01T21:45:45.787Z | 2,016 | 5 | 21 | 6 | 3,389 | 1 | 439 | 121 | 4 | 3 | true | false | true | false | false | false | medium |
36,972,450 | Width not 100% on Android Mobile | <p>I just made an website that's working perfect in computers, but in mobiles </p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override"><code>.news {
position:relative;
width:100%;
hei... | I just made an website that's working perfect in computers, but in mobiles [CODE] The picture of the problem It has a menu that works perfect the 100%, but he's fixed, and the others I can't put fixed. the footer and the middle is cutting and I can't find out why... [CODE] [CODE] I already tried to put 100vw, I already... | android|html|css | 0 | 2016-05-01T21:58:55.590Z | 2,016 | 5 | 21 | 6 | 876 | 1 | 641 | 32 | 3 | 3 | true | false | false | false | false | false | zero |
36,972,480 | how do i create a new CardView? | <p>i am trying to add a new card view/new card thingy(sorry i'm new) to my app. right now, it all works fine, but how would i add more? i would also like to know how to do it on FAB click. Here is my code</p>
<pre><code>public class WeatherListAdapter extends RecyclerView.Adapter<WeatherListAdapter.ViewHolder>{
... | i am trying to add a new card view/new card thingy(sorry i'm new) to my app. right now, it all works fine, but how would i add more? i would also like to know how to do it on FAB click. Here is my code [CODE] if i need to add more to help you figure it out, just leave a comment. Thanks! WeatherListActivity- [CODE] | java|android|android-layout | 1 | 2016-05-01T22:02:46.140Z | 2,016 | 5 | 22 | 6 | 2,171 | 2 | 315 | 31 | 3 | 2 | true | false | false | false | false | false | low |
36,972,495 | Dynamically create buttons in a ListView [android] | <p>I am trying to make a simple application, where only one button is initially displayed.
What I want to do is whenever the user clicks on it, another (clickable) button appears underneath.
I've been trying with this code but it doesn't seem to work (there's a NullPointerException)... and internet couldn't help.
Here... | I am trying to make a simple application, where only one button is initially displayed. What I want to do is whenever the user clicks on it, another (clickable) button appears underneath. I've been trying with this code but it doesn't seem to work (there's a NullPointerException)... and internet couldn't help. Here's m... | java|android|xml|android-layout|listview | 0 | 2016-05-01T22:04:01.783Z | 2,016 | 5 | 22 | 6 | 743 | 3 | 373 | 50 | 5 | 2 | true | false | false | false | false | false | zero |
36,972,510 | Writing to a file errors - Android Studio | <p>I am trying to write to a certain text file, here is the code I am using to do it</p>
<pre><code> protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button clickButton = (Button) findViewById(R.id.Btn);
if( clickButton != ... | I am trying to write to a certain text file, here is the code I am using to do it [CODE] However I am getting the following errors. [CODE] Would someone be kind enough to correct where I am going wrong :) | java|android | -6 | 2016-05-01T22:06:13.700Z | 2,016 | 5 | 22 | 6 | 74 | 2 | 204 | 41 | 2 | 2 | true | false | false | false | false | true | negative |
36,972,641 | Issue with IAP on Unity Android | <p>Purchases work perfectly on iOS, but on Android they fail.</p>
<p>It doesn't find the product:</p>
<p>04-30 10:39:41.446 14204-14232/? I/Unity: BuyProductID: FAIL. Not purchasing product, either is not found or is not available for purchase</p>
<p>Here you can find the full log, many thanks in advance:</p>
<p>Pu... | Purchases work perfectly on iOS, but on Android they fail. It doesn't find the product: 04-30 10:39:41.446 14204-14232/? I/Unity: BuyProductID: FAIL. Not purchasing product, either is not found or is not available for purchase Here you can find the full log, many thanks in advance: Purchases work perfectly on iOS, but ... | android|android-studio|unity3d|in-app-purchase | 0 | 2016-05-01T22:21:05.437Z | 2,016 | 5 | 22 | 6 | 4,517 | 2 | 1,465 | 31 | 4 | 2 | true | false | true | false | false | false | zero |
36,972,690 | FileNotFoundException on getInputStream from GAE address | <p>I'm doing an Android app with an API with Python. The API is on a Google App Engine cloud and everything works fine when I tested it with Postman.</p>
<p>I'm trying to do a Login with a POST method. That method returns json with the user information I keep getting that error: FileNotFoundException</p>
<p>Here is s... | I'm doing an Android app with an API with Python. The API is on a Google App Engine cloud and everything works fine when I tested it with Postman. I'm trying to do a Login with a POST method. That method returns json with the user information I keep getting that error: FileNotFoundException Here is some of my code: [CO... | java|android|python|google-app-engine | 2 | 2016-05-01T22:26:09.800Z | 2,016 | 5 | 22 | 6 | 82 | 0 | 896 | 56 | 4 | 1 | true | true | false | false | false | false | low |
36,972,820 | google compute engine + socket | <p>I'm running a socket server on a Google compute engine with static IP, heres how I start the server:</p>
<pre><code>public class Server {
private static int port=4800;
public static void main(String argv[]) throws Exception {
System.out.println("STARTED ON PORT 4800!");
@SuppressWarnings("resource")
... | I'm running a socket server on a Google compute engine with static IP, heres how I start the server: [CODE] } [CODE] So using my android app I try to connect to the server, it runs ok on my home PC, but when I try to connect to my Google Compute Engine VM it times out: [CODE] | android|sockets|google-cloud-platform|google-compute-engine | 2 | 2016-05-01T22:42:58.883Z | 2,016 | 5 | 22 | 6 | 1,337 | 1 | 276 | 30 | 4 | 3 | true | false | false | false | false | false | low |
36,972,833 | Activity isn't finishing if it has called other activities | <p>I have this activity:</p>
<pre><code>public class AMLoginActivity extends Activity implements IAsyncResponse {
public static int finished;
private final String TAG = "AMLoginActivity";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | I have this activity: [CODE] Which calls the GDLoginActivity to login to google drive. It can be seen below: [CODE] The issue is that when the GDLoginActivity connects and finish()'s, it should increment finish by 1 and and also finish the AMLoginActivity. It does increment by 1 and call finish() in processFinish(), bu... | android|android-activity|google-drive-api|google-drive-android-api | 0 | 2016-05-01T22:45:01.900Z | 2,016 | 5 | 22 | 6 | 84 | 1 | 875 | 58 | 4 | 2 | true | false | false | false | false | false | zero |
36,972,858 | combineLatest() function on mainThread | <p>I want to combine 2 observables and execute "combine function" on AndroidSchedules.mainThread(). I've added .observeOn(AndroidSchedules.mainThread()) but I am still getting "java.lang.IllegalStateException: Not on the main thread".</p>
<pre><code>Observable<List<Post>> animateCameraAndGetPostsByProjecti... | I want to combine 2 observables and execute "combine function" on AndroidSchedules.mainThread(). I've added .observeOn(AndroidSchedules.mainThread()) but I am still getting "java.lang.IllegalStateException: Not on the main thread". [CODE] | rx-java|rx-android | 1 | 2016-05-01T22:47:34.807Z | 2,016 | 5 | 22 | 6 | 1,570 | 1 | 238 | 38 | 2 | 1 | true | false | false | false | false | false | low |
36,972,962 | Cannot pass variable to object in c# due to protection level | <p>I've got this code, and trying to pass two parameters to LatLng (if hardcoded it works fine), but keep getting is inaccessible due to its protection level - on var location = new LatLng...</p>
<p>What is wrong with my encapsulation?</p>
<pre><code>namespace SomeApp
{
[Activity (Label = "App")]
pu... | I've got this code, and trying to pass two parameters to LatLng (if hardcoded it works fine), but keep getting is inaccessible due to its protection level - on var location = new LatLng... What is wrong with my encapsulation? [CODE] | c#|xamarin|xamarin.android|encapsulation | 0 | 2016-05-01T23:02:17.203Z | 2,016 | 5 | 23 | 6 | 116 | 1 | 232 | 60 | 4 | 1 | true | false | false | false | false | false | zero |
36,973,028 | Android EditText in RelativeLayout expanding too fast | <p>I have a multi-line <code>EditText</code> in my Android application which resides in a <code>RelativeLayout</code>, which is itself a child of a <code>GridLayout</code> with 2 columns. Each <code>RelativeLayout</code> has a columnWeight of 1, which results in 2 <code>EditText</code> each taking up half the screen. T... | I have a multi-line EditText in my Android application which resides in a RelativeLayout , which is itself a child of a GridLayout with 2 columns. Each RelativeLayout has a columnWeight of 1, which results in 2 EditText each taking up half the screen. The width of each layout is set to 0dp in order for the weights to t... | android|android-edittext | 1 | 2016-05-01T23:11:44.310Z | 2,016 | 5 | 23 | 6 | 99 | 1 | 926 | 53 | 2 | 3 | true | false | false | false | false | false | low |
36,973,352 | Bring ProgressBar front, over the ListView | <p>I have a <code>RelativeLayout</code> in which i have a <code>ListView</code> and a <code>ProgressBar</code>. The <code>ListView</code> is below a bunch of other elements and the <code>ProgressBar</code> is centered in the screen.</p>
<p>Now, i use an <code>AsyncTask</code> and load data into the <code>ListView</cod... | I have a RelativeLayout in which i have a ListView and a ProgressBar . The ListView is below a bunch of other elements and the ProgressBar is centered in the screen. Now, i use an AsyncTask and load data into the ListView and i want to show the ProgressBar while doing this. When the list is empty, the ProgressBar is vi... | android|listview|android-asynctask | 0 | 2016-05-02T00:00:43.353Z | 2,016 | 5 | 0 | 0 | 878 | 3 | 963 | 42 | 3 | 2 | true | false | false | false | false | false | zero |
36,973,442 | Trying to route STREAM_MUSIC to speaker and STREAM_VOICE_CALL to Headset/Earbuds | <p>I am trying out the technique proposed by @Michael from this previous SO <a href="https://stackoverflow.com/questions/12017297/playing-sound-over-speakers-while-playing-music-through-headphones">answer</a> but not having any luck. I am trying to simultaneously play a STREAM_MUSIC stream to the speaker while sending ... | I am trying out the technique proposed by @Michael from this previous SO answer but not having any luck. I am trying to simultaneously play a STREAM_MUSIC stream to the speaker while sending STREAM_VOICE_CALL streams to a plugged in earbuds. The result is both sounds play in the earbuds (when plugged in) or otherwise b... | android|audio|android-audiomanager|audio-route | 1 | 2016-05-02T00:11:50.553Z | 2,016 | 5 | 0 | 0 | 305 | 0 | 567 | 80 | 4 | 1 | true | true | false | false | false | false | low |
36,973,460 | How to open FaceBook, GoogleMaps or Dialer with business information? | <p>I want my app to be able to open facebook or the phone dialer when they click on the contact information in my aboutus.xml
How would i go about doing this? Would i need to make the information buttons that are clickable? I am pretty lost with this</p>
<p><strong>MainActivity</strong></p>
<pre><code>package com.exa... | I want my app to be able to open facebook or the phone dialer when they click on the contact information in my aboutus.xml How would i go about doing this? Would i need to make the information buttons that are clickable? I am pretty lost with this MainActivity [CODE] Information to open other apps [CODE] | java|android|android-studio | 0 | 2016-05-02T00:14:40.060Z | 2,016 | 5 | 0 | 0 | 39 | 2 | 305 | 69 | 3 | 2 | true | false | false | false | false | false | zero |
36,973,485 | Socket TIMEOUT when phone is on 3G, and works when on Wifi- Why? | <p>I'm programming a client-server app, my client being an android phone, my server being my laptop.</p>
<p>So my issue is that this one line of code:</p>
<pre><code>Socket connectionToServerSocket = new Socket(hostName, portNumber);
</code></pre>
<p>works perfectly fine when my cellular phone connects to the Intern... | I'm programming a client-server app, my client being an android phone, my server being my laptop. So my issue is that this one line of code: [CODE] works perfectly fine when my cellular phone connects to the Internet with my home wifi connection, and simply times out when connected through 3G (cellular provider) eg it ... | java|android|sockets|3g|4g | 2 | 2016-05-02T00:19:44.570Z | 2,016 | 5 | 0 | 0 | 1,437 | 3 | 877 | 64 | 5 | 1 | true | false | false | false | false | false | low |
36,973,540 | I have multiple recyclerViews ,which should appear after another XML view, | <p>I have multiple recyclerViews ,which should appear after another XML view, but they just don't , am using an adapter class to manage this. after using log.v I found that the the functions itself"in Adappter class" arent called , and i don't know why ??</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
&... | I have multiple recyclerViews ,which should appear after another XML view, but they just don't , am using an adapter class to manage this. after using log.v I found that the the functions itself"in Adappter class" arent called , and i don't know why ?? [CODE] public class Detailed_Movie extends AppCompatActivity { [COD... | java|android|xml|android-recyclerview | 1 | 2016-05-02T00:31:27.533Z | 2,016 | 5 | 0 | 0 | 62 | 0 | 423 | 74 | 4 | 3 | true | true | false | false | false | false | low |
36,973,579 | Store Photographs Taken via Android App in the App Data | <p>I am writing an Android app that uses the device's camera to allow the user to take a photograph. The app does not have a custom activity for using the camera, but rather interacts with the device's native camera UI to acquire the image.</p>
<p>Currently, I am using the following code to acquire photos taken by the... | I am writing an Android app that uses the device's camera to allow the user to take a photograph. The app does not have a custom activity for using the camera, but rather interacts with the device's native camera UI to acquire the image. Currently, I am using the following code to acquire photos taken by the user: [COD... | android | 0 | 2016-05-02T00:39:36.230Z | 2,016 | 5 | 0 | 0 | 18 | 0 | 756 | 55 | 1 | 1 | true | true | false | false | false | false | zero |
36,973,623 | Android BroadcastReceiver NOT working with IntentFilter | <pre><code>The control is not Entering inside the --> receiver = (BroadcastReceiver) (context, intent) -> { ===== loop
</code></pre>
<p>I am trying to lock the screen(android) and its not entering the loop after creating BroadcastReceiver object. I am trying to lock the screen using the proximity sensor. </p>
<... | [CODE] I am trying to lock the screen(android) and its not entering the loop after creating BroadcastReceiver object. I am trying to lock the screen using the proximity sensor. [CODE] | android|broadcastreceiver|screen|intentfilter|proximitysensor | 0 | 2016-05-02T00:47:51.167Z | 2,016 | 5 | 0 | 0 | 367 | 1 | 183 | 55 | 5 | 2 | true | false | false | false | false | false | zero |
36,973,639 | How can FileNotFoundException occur during createNewFile() in this case? | <p>Here is an attempt to write to external storage on my device:</p>
<pre><code>private void extract(ZipInputStream zis) throws IOException {
ZipEntry entry;
while((entry = zis.getNextEntry()) != null) {
if(!entry.isDirectory()) {
writeFile(zis, entry.getName());
}
zis.close... | Here is an attempt to write to external storage on my device: [CODE] A FileNotFoundException is thrown when trying to create the FileOutputStream. I want to see the value of newDirsSuccess, but it does not show up in the debugger window so I'm not sure where this exception is coming from. The "newFile" declaration shou... | java|android|file-io | -2 | 2016-05-02T00:50:45.867Z | 2,016 | 5 | 0 | 0 | 116 | 1 | 552 | 72 | 3 | 1 | true | false | false | false | false | true | negative |
36,973,706 | Weird Icon of Photos APP Being Displayed in Recycler View? | <p>I am making a Recycler View with GridLayoutManager for displaying a set of data stored on Disk. But when I update the first element it randomly shows an icon of my Image with the photos app Icon at the bottom and when I click it, it opens that Image in Photos app. What is happening here?
<a href="https://i.stack.img... | I am making a Recycler View with GridLayoutManager for displaying a set of data stored on Disk. But when I update the first element it randomly shows an icon of my Image with the photos app Icon at the bottom and when I click it, it opens that Image in Photos app. What is happening here? you can see the icon right ther... | android|android-recyclerview | 0 | 2016-05-02T01:01:34.923Z | 2,016 | 5 | 1 | 0 | 36 | 1 | 548 | 58 | 2 | 3 | true | false | false | false | false | false | zero |
36,973,719 | Edittext field getting cut off in RelativeLayout at run time | <p>So when I go to preview in Android Studio's preview tool, I get a layout that looks like: <a href="https://i.stack.imgur.com/EvlCO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EvlCO.png" alt="enter image description here"></a><br>
Exactly how it should look, and all is good. However at run ti... | So when I go to preview in Android Studio's preview tool, I get a layout that looks like: Exactly how it should look, and all is good. However at run time, the first field appears to get somewhat cut off and looks like so: Any text you attempt to enter does not show, not even partially, and I have no idea what is going... | android|android-studio | 0 | 2016-05-02T01:03:14.630Z | 2,016 | 5 | 1 | 0 | 337 | 1 | 563 | 60 | 2 | 1 | true | false | false | false | false | false | zero |
36,973,911 | Getting the visible item inside the RecyclerView | <p>I'm using the code as below to get the visible item inside the recyclerview</p>
<p>In side my Fragment activity I have:</p>
<pre><code>layoutmanager = new LinearLayoutManager(Activity);
adapter = new FeedAdapter(vid, userName, this.Context);
feeditem.SetLayoutManager(layoutmanager);
feedi... | I'm using the code as below to get the visible item inside the recyclerview In side my Fragment activity I have: [CODE] and the event handler class looks like this: [CODE] layoutmanager.FindFirstCompletelyVisibleItemPosition() always returns -1. I wanna setect the item on the list that is visible on the screen and then... | android|xamarin|android-recyclerview|onscrolllistener | 1 | 2016-05-02T01:38:58.347Z | 2,016 | 5 | 1 | 0 | 2,451 | 1 | 440 | 48 | 4 | 2 | true | false | false | false | false | false | low |
36,974,060 | How pubnub handle push notification | <p>I am creating android chat app using PubNub.I am using GCM push gateway with pubnub to publish messages to channel. Let's say User A and User B start a private chat.</p>
<p>case 1 - A and B is connected to internet</p>
<p>App is working perfectly. If "A" sends a message to B, "B" receive it regardless the app is i... | I am creating android chat app using PubNub.I am using GCM push gateway with pubnub to publish messages to channel. Let's say User A and User B start a private chat. case 1 - A and B is connected to internet App is working perfectly. If "A" sends a message to B, "B" receive it regardless the app is in foreground or bac... | android|google-cloud-messaging|pubnub | 1 | 2016-05-02T02:00:28Z | -1 | -1 | -1 | -1 | 739 | 1 | 738 | 35 | 3 | 1 | true | false | false | false | false | false | low |
36,974,084 | How to call $this->get('security.context')->getToken()->getUser() in Android | <p>i am new to android and i am working on one application ,In which i have to add books by posting all book details to pHp server,here i am using httpPost call to send all book details,but in pHp server there is a line,</p>
<pre><code> $this->get('security.context')->getToken()->getUser()
</code></pre>
... | i am new to android and i am working on one application ,In which i have to add books by posting all book details to pHp server,here i am using httpPost call to send all book details,but in pHp server there is a line, [CODE] i cannot able to call it simply by httpPost in android..so i really need help to solve this pro... | java|php|android|android-studio | 1 | 2016-05-02T02:03:45.847Z | 2,016 | 5 | 2 | 0 | 108 | 0 | 485 | 76 | 4 | 3 | true | true | false | false | false | false | low |
36,974,159 | Android : FileNotFoundException when trying to get an image from Uri | <p>I am trying to get an image's width and height in order to rezize it in case it is too big before showing it. My method receive an uri of the image but I always get a FileNotFoundException when trying to decode it using BitmapFactory. </p>
<p>Here is a sample of my code :</p>
<pre><code> Uri myUri;
BitmapF... | I am trying to get an image's width and height in order to rezize it in case it is too big before showing it. My method receive an uri of the image but I always get a FileNotFoundException when trying to decode it using BitmapFactory. Here is a sample of my code : [CODE] Decode File returns throws a FileNotFoundExcepti... | java|android|bitmap|uri|filenotfoundexception | -3 | 2016-05-02T02:18:22.677Z | 2,016 | 5 | 2 | 0 | 977 | 2 | 733 | 68 | 5 | 3 | true | false | false | false | false | true | negative |
36,974,163 | Laravel Rest Authentication when post via HttpClient Android | <p>How can I filter the laravel rest app, just authenticated userid and correct password when I post via android HttpClient?
I try to find the best way, but get no best sample.</p>
<p>This is my code:</p>
<pre><code>public static int LogExceptionError(final ExceptionLog exceptionLog) {
final HttpResponse[] r... | How can I filter the laravel rest app, just authenticated userid and correct password when I post via android HttpClient? I try to find the best way, but get no best sample. This is my code: [CODE] Laravel Controller: [CODE] Service Class: [CODE] | php|android|rest|laravel-4 | 2 | 2016-05-02T02:19:09.743Z | 2,016 | 5 | 2 | 0 | 2,155 | 0 | 246 | 60 | 4 | 3 | true | true | false | false | false | false | low |
36,974,183 | Android View member variable becoming null | <p>I have a custom android View that draws a waveform on the screen.
A variable, cursorTask is a TimerTask that somehow becomes null in between startCursor finishing execution and stopCursor being called. I don't see how this can be happening as it is private and all of the WaveView's startCursor functions are called.<... | I have a custom android View that draws a waveform on the screen. A variable, cursorTask is a TimerTask that somehow becomes null in between startCursor finishing execution and stopCursor being called. I don't see how this can be happening as it is private and all of the WaveView's startCursor functions are called. [CO... | java|android|null | 0 | 2016-05-02T02:22:52.940Z | 2,016 | 5 | 2 | 0 | 148 | 0 | 473 | 42 | 3 | 2 | true | true | false | false | false | false | zero |
36,974,254 | two textviews in two layouts | <p>I want to have two relative layouts side-by-side vertically and put one text view in each layout. I want each layout to take up half of the screen (hence I used android:layout_weight="50". Here is the xml code for the main activity:</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res... | I want to have two relative layouts side-by-side vertically and put one text view in each layout. I want each layout to take up half of the screen (hence I used android:layout_weight="50". Here is the xml code for the main activity: [CODE] But the result displays only the first text view "Hello world 1!" and it does no... | android|layout | 1 | 2016-05-02T02:34:27.183Z | 2,016 | 5 | 2 | 0 | 64 | 7 | 377 | 28 | 2 | 1 | true | false | false | false | false | false | low |
36,974,274 | Get detailed contents of an item clicked in a listview in next activity | <p>Hi i am working on a code in which in a listview it shows up some details like name and price , which comes from MySQL database . Now when I want to click on that particular item in that listview, what i want is that I want to move in to next activity the layout to which will be the same , only the data keeps changi... | Hi i am working on a code in which in a listview it shows up some details like name and price , which comes from MySQL database . Now when I want to click on that particular item in that listview, what i want is that I want to move in to next activity the layout to which will be the same , only the data keeps changing ... | android|listview|android-intent|listviewitem | 0 | 2016-05-02T02:38:25.297Z | 2,016 | 5 | 2 | 0 | 94 | 1 | 928 | 71 | 4 | 3 | true | false | false | false | false | false | zero |
36,974,532 | Intent is not finishing when calling finish() | <p>I am working on an alarm clock and this class is to quickly pick the hour and minute and it will send it back too the intent in came from which i used setForresult() but for some reason when i hit the button to set the time it recreates the activity and i have to input it again but the second time it does what it wa... | I am working on an alarm clock and this class is to quickly pick the hour and minute and it will send it back too the intent in came from which i used setForresult() but for some reason when i hit the button to set the time it recreates the activity and i have to input it again but the second time it does what it was s... | android|android-intent|timepicker | 0 | 2016-05-02T03:21:56.213Z | 2,016 | 5 | 3 | 0 | 450 | 2 | 338 | 45 | 3 | 1 | true | false | false | false | false | false | zero |
36,974,821 | Determine if the CompletedEventArgs returns null (WCF Xamarin VS 2015) | <p>The process here is user inputs a number, then the database will select a name that corresponds to the number. If there's no name or if the inputted number doesn't exist, a text will appear on the textview, <code>Name not found</code>. The problem is this code probably isn't correct because it isn't showing the <cod... | The process here is user inputs a number, then the database will select a name that corresponds to the number. If there's no name or if the inputted number doesn't exist, a text will appear on the textview, Name not found . The problem is this code probably isn't correct because it isn't showing the Name not found , ju... | c#|android|wcf|xamarin | 0 | 2016-05-02T04:04:46.487Z | 2,016 | 5 | 4 | 0 | 172 | 1 | 347 | 70 | 4 | 1 | true | false | false | false | false | false | zero |
36,974,850 | creating db table with foreign key ANDROID | <p>Im trying to created a db that (at the moment) has 4 tables <code>{USERS,TOPICS,GROUPS,CREATED_TOPICS}</code>. I keep getting this error when i try and run it...</p>
<blockquote>
<p>syntax error (code 1): , while compiling: create table
created_topics_table (CREATED_TOPIC_ID INTEGER PRIMARY KEY
AUTOINCREMENT,... | Im trying to created a db that (at the moment) has 4 tables {USERS,TOPICS,GROUPS,CREATED_TOPICS} . I keep getting this error when i try and run it... syntax error (code 1): , while compiling: create table created_topics_table (CREATED_TOPIC_ID INTEGER PRIMARY KEY AUTOINCREMENT, TOPIC_ID INTEGER,USER_ID INTEGER, FOREIGN... | android|sqlite | 1 | 2016-05-02T04:08:47.717Z | 2,016 | 5 | 4 | 0 | 11,734 | 2 | 438 | 42 | 2 | 1 | true | false | true | true | false | false | low |
36,974,898 | how to check AccessibilityService | <p>I want to check my AccessibilityService ,but my code have error,below is my code</p>
<pre><code>public static boolean isAccessibilityOn(Context context) {
int accessibilityEnable = 0;
try {
accessibilityEnable = Settings.Secure.getInt(context.getContentResolver(),
Set... | I want to check my AccessibilityService ,but my code have error,below is my code [CODE] and this is my error [CODE] I run my demo in api22 | java|android | 1 | 2016-05-02T04:14:53.303Z | 2,016 | 5 | 4 | 0 | 2,654 | 1 | 138 | 33 | 2 | 2 | true | false | true | false | false | false | low |
36,974,907 | Unable to get "thumbnailLink" from Google Drive Rest API V3 | <p>I am trying to get all images in a google drive folder. I am able to do so but still not getting the <strong>thumbnailLink</strong>.</p>
<pre><code>FileList result = mService.files().list()
.setPageSize(10)
.setQ("'"+parentFile.getId()+"'" + " in parents and mimeType='image/jpeg' ")
.setFields("nextPageToken,... | I am trying to get all images in a google drive folder. I am able to do so but still not getting the thumbnailLink . [CODE] Here's the Url that is being hit from the code [CODE] The Same data parameters (above) yields the thumbnail when use the API Explorer https://developers.google.com/apis-explorer/#search/drive.file... | android|google-drive-api | 1 | 2016-05-02T04:16:10.333Z | 2,016 | 5 | 4 | 0 | 1,126 | 1 | 354 | 59 | 2 | 2 | true | false | false | false | false | false | low |
36,974,946 | Alarm manager do not dismiss after notification click | <p>I have been trought all the alarm manager codes but i dont manage to see where my error is</p>
<p>What i want to archieve is this, when i open the app it executes the code in the main and set the alarm manager timer to pop up a notification, but when i close the app and wait for the popup to appear is not showing ,... | I have been trought all the alarm manager codes but i dont manage to see where my error is What i want to archieve is this, when i open the app it executes the code in the main and set the alarm manager timer to pop up a notification, but when i close the app and wait for the popup to appear is not showing , but when i... | android|notifications|alarmmanager | 0 | 2016-05-02T04:21:27.957Z | 2,016 | 5 | 4 | 0 | 882 | 1 | 598 | 53 | 3 | 2 | true | false | false | false | false | false | zero |
36,975,008 | How to displaying item details in fragment from listview click | <p>anyone know how to display details item in other fragment detail when everytime im click item from listview? and how to set them? and anyone have an example for this?
<a href="https://i.stack.imgur.com/9d6GQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9d6GQ.jpg" alt="enter image description he... | anyone know how to display details item in other fragment detail when everytime im click item from listview? and how to set them? and anyone have an example for this? in listview only show : - Nama, gambar1, tipe, mainmuscle, othermuscle, alat, rating on details fragment i want to show : -Nama, gambar1, tipe, mainmuscl... | android|android-fragments | 2 | 2016-05-02T04:28:42.657Z | 2,016 | 5 | 4 | 0 | 4,456 | 4 | 422 | 62 | 2 | 1 | true | false | true | false | false | false | low |
36,975,241 | Get Auth AcessToken from Paypal Android sdk | <p>I have tried to get <code>auth Access token</code> using below code.and based on this code ,we will get Full transaction detail of Paypal.
Below code is working fine in Lollipop and above, but when we run my app in lolipop below version then not getting any response from Paypal SDK.I did lot of R&D for this issu... | I have tried to get auth Access token using below code.and based on this code ,we will get Full transaction detail of Paypal. Below code is working fine in Lollipop and above, but when we run my app in lolipop below version then not getting any response from Paypal SDK.I did lot of R&D for this issue.Please give me sol... | java|android|paypal|paypal-sandbox|auth-token | 0 | 2016-05-02T04:57:14.957Z | 2,016 | 5 | 4 | 0 | 198 | 0 | 424 | 43 | 5 | 1 | true | true | false | false | false | false | zero |
36,975,482 | Android Post Json Data to server using Retrofit 2 | <p>Hello I have simple Json to post on server like below</p>
<pre><code>{
"Key":"KEY",
"Token":"",
"Data":
{
"Country": "India",
"CountryCode":"IN",
"MobileNumber":"+91111111111"
}
}
</code></pre>
<p>How can i post this data to server Please help me out
I have created I... | Hello I have simple Json to post on server like below [CODE] How can i post this data to server Please help me out I have created Interface into this i have write [CODE] is this ok? how i can call this? I have Used it like [CODE] But,I am getting this error [CODE] | android|json|retrofit2 | 0 | 2016-05-02T05:25:50.947Z | 2,016 | 5 | 5 | 0 | 3,969 | 2 | 264 | 49 | 3 | 4 | true | false | true | false | false | false | zero |
36,975,528 | Runtime DrawerLayout must be measured with MeasureSpec.EXACTLY excpetion 3 | <p>I am trying to implement a Navigation drawer, but I keep getting the error <code>DrawerLayout must be measured with MeasureSpec.EXACTLY excpetion</code>.
I saw the similar questions but did not work for me. I tried overriding the DrawerLayout's on measure method based on accepted answer in this <a href="https://sta... | I am trying to implement a Navigation drawer, but I keep getting the error DrawerLayout must be measured with MeasureSpec.EXACTLY excpetion . I saw the similar questions but did not work for me. I tried overriding the DrawerLayout's on measure method based on accepted answer in this link . I created a custom class (not... | android|listview|navigation-drawer|drawerlayout | 0 | 2016-05-02T05:30:36.217Z | 2,016 | 5 | 5 | 0 | 221 | 0 | 985 | 74 | 4 | 3 | true | true | false | false | false | false | zero |
36,975,533 | Communication between Service and any Activity | <p>I have a code for send message from service to activity. But I only send message to the activity that create the service.
If I change the activity and service still active i need recive the messages in new activity. how?</p>
<p>I use this code:</p>
<p><strong>Activity</strong></p>
<pre><code>public static Handler... | I have a code for send message from service to activity. But I only send message to the activity that create the service. If I change the activity and service still active i need recive the messages in new activity. how? I use this code: Activity [CODE] Then, I create service passing the handler. [CODE] When change the... | android|android-activity|android-service | 0 | 2016-05-02T05:31:02.427Z | 2,016 | 5 | 5 | 0 | 251 | 1 | 429 | 46 | 3 | 2 | true | false | false | false | false | false | zero |
36,975,668 | Replacement of json url with php url not working | <p>I am working on android app in which a listview with some text retrieve from server The source is here <a href="http://www.androidhive.info/2014/07/android-custom-listview-with-image-and-text-using-volley/" rel="nofollow">source link</a>. This is my php code</p>
<pre><code><?php
require_once("dbConnect.php");
$s... | I am working on android app in which a listview with some text retrieve from server The source is here source link . This is my php code [CODE] and this is my json response [CODE] I have lots of things tried but result is none.the complete source is here: I am not posting here any java file bacause this example is work... | php|android|json|listview|android-volley | 0 | 2016-05-02T05:45:34.110Z | 2,016 | 5 | 5 | 0 | 94 | 2 | 423 | 48 | 5 | 4 | true | false | false | false | false | false | zero |
36,975,827 | Why Android Studio prompt “Method doesn't override its superclass”? | <p>I want to use volley to build http connection with authentication. Following <a href="https://stackoverflow.com/a/18980454/5835947">this answer</a> I add the segment</p>
<pre><code> @Override
public Map<String, String> getHeaders() throws AuthFailureError {
HashMap... | I want to use volley to build http connection with authentication. Following this answer I add the segment [CODE] in Anonymous Inner Class StringRequest , and it looks like: [CODE] However, IDE hints that getHeaders() doesn't override its superclass. Why?I found that StringRequest extends class Request<String> , and th... | java|android|android-studio|overriding | 0 | 2016-05-02T06:00:20.097Z | 2,016 | 5 | 6 | 0 | 275 | 1 | 369 | 67 | 4 | 2 | true | false | false | false | false | false | zero |
36,975,903 | Fragment Add causing me an error | <p>I am trying to figure out why I am suddenly getting an error when I try to add a fragment.</p>
<pre><code>public class MainActivity extends Activity implements Communicator {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView((int) R.layout.ac... | I am trying to figure out why I am suddenly getting an error when I try to add a fragment. [CODE] Just using the import of FragmentTransaction , I haven't made my own class. This is my fragment A code: [CODE] xml for the activity, I am not a hundred percent sure if this will fix it but would raising the API of the proj... | java|android|android-fragments | 1 | 2016-05-02T06:05:54.953Z | 2,016 | 5 | 6 | 0 | 826 | 3 | 358 | 32 | 3 | 3 | true | false | false | false | false | false | low |
36,976,009 | Shared Preference Value not being Saved | <p>I'm developing an app where the user inputs a value in the shared preference and is being retrieved to subtract the number of calories. </p>
<p>Right now, I have my calorie app hard coded to 2000. The user has a limit of 2000 to consume per day. I wanted the user to be able to change the amount consumed with the sh... | I'm developing an app where the user inputs a value in the shared preference and is being retrieved to subtract the number of calories. Right now, I have my calorie app hard coded to 2000. The user has a limit of 2000 to consume per day. I wanted the user to be able to change the amount consumed with the shared prefere... | java|android|listview|android-fragments|sharedpreferences | -1 | 2016-05-02T06:14:13.847Z | 2,016 | 5 | 6 | 0 | 82 | 1 | 490 | 39 | 5 | 3 | true | false | false | false | false | true | negative |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.