id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37,134,631 | Android: Move Fragment and add to backstack | <p>I have a two pane layout.</p>
<p>I have a fragment on the left and a fragment on the right. Now I want to replace the left with the one on the right and create a new one on the right (i.e. I want to <em>move</em> the one on the right to the left, and create a new one on the right):</p>
<pre><code>private FragmentM... | I have a two pane layout. I have a fragment on the left and a fragment on the right. Now I want to replace the left with the one on the right and create a new one on the right (i.e. I want to move the one on the right to the left, and create a new one on the right): [CODE] Now at this point I get a IllegalStateExceptio... | android|android-fragments | 0 | 2016-05-10T09:38:33.073Z | 2,016 | 5 | 9 | 1 | 280 | 1 | 669 | 43 | 2 | 3 | true | false | false | false | false | false | zero |
37,134,653 | ViewPager view doesn't update page | <p>I currently have a <code>ViewPager</code> with a lot of pages. Now I also have an array full of strings to fill a <code>TextView</code> on each page. But when I load the strings in the <code>TextView</code> it doesn't show the string. But when I swipe to the next page and back it will be there. But the next page doe... | I currently have a ViewPager with a lot of pages. Now I also have an array full of strings to fill a TextView on each page. But when I load the strings in the TextView it doesn't show the string. But when I swipe to the next page and back it will be there. But the next page doesn't have the string either until I swipe ... | android|android-viewpager | 0 | 2016-05-10T09:39:28.423Z | 2,016 | 5 | 9 | 1 | 75 | 0 | 479 | 34 | 2 | 2 | true | true | false | false | false | false | zero |
37,134,693 | android gradle Copy task is not getting executed? | <p>this is my build.gradle</p>
<pre><code>apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
buildscript {
}
repositories {
android {
signingConfigs {
release_config {
}
}
compileSdkVersion 22
buildToolsVersion '22'
defaultConfig {
applicationId... | this is my build.gradle [CODE] these three are not getting executed why ? afterEvaluate switchToDebug switchToRelease What I am doing wrong ? | android|android-gradle-plugin|build.gradle|gradle-task | 0 | 2016-05-10T09:40:47.437Z | 2,016 | 5 | 9 | 1 | 338 | 1 | 141 | 49 | 4 | 1 | true | false | false | false | false | false | zero |
37,134,750 | Add items to android toolbar | <p>In my activity_main.xml i have this toolbar:</p>
<pre><code><android.support.v7.widget.Toolbar
android:id="@+id/my_toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="#770000ff"
android:elevation="4dp"
androi... | In my activity_main.xml i have this toolbar: [CODE] In Manifest there is that in <application> : [CODE] In res/values/style.xml i have <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> The MainActivity.java file is that: [CODE] Now, the toolbar has only the application name and nothing else. How can ... | android|toolbar | 10 | 2016-05-10T09:43:15.450Z | 2,016 | 5 | 9 | 1 | 27,691 | 5 | 386 | 28 | 2 | 3 | true | false | true | true | true | false | medium |
37,134,801 | how to store the data in hindi font in android | <p>I have trouble sending hindi characters from my android application to the server. </p>
<p>I have tried it several ways, but the result for an input like <code>अगस्ता वेस्टलैंड का मामला आजकल</code> is <code>?????? ????????? ??</code> on the backend. </p>
<p>Invoking the service manually works just fine though. </... | I have trouble sending hindi characters from my android application to the server. I have tried it several ways, but the result for an input like अगस्ता वेस्टलैंड का मामला आजकल is ?????? ????????? ?? on the backend. Invoking the service manually works just fine though. Below you find the relevant part of my code, pleas... | java|php|android|mysql | -3 | 2016-05-10T09:45:23.407Z | 2,016 | 5 | 9 | 1 | 402 | 1 | 368 | 46 | 4 | 2 | true | false | false | false | false | true | negative |
37,134,804 | How to show the latest time and date from this JSON on google maps? | <p>I am building an app where i need track persons.I track them with their email ids.I need your help in showing a marker on Google Map. I need to show different users and their latest position. I am able to parse JSON but I am showing all the objects. I only want to show the latest position and email id.</p>
<p>Track... | I am building an app where i need track persons.I track them with their email ids.I need your help in showing a marker on Google Map. I need to show different users and their latest position. I am able to parse JSON but I am showing all the objects. I only want to show the latest position and email id. Tracking.JSON [C... | android|json|google-maps | 0 | 2016-05-10T09:45:34.730Z | 2,016 | 5 | 9 | 1 | 50 | 1 | 352 | 67 | 3 | 2 | true | false | false | false | false | false | zero |
37,134,847 | Hyperlink doesn't work in textview | <p>In a certain activity, I made an hyperlink in the middle of a textview. In a new activity, i wanted to do the same thing. However, with the exact same code, just another website, it doesn't work.
Does anyone have a solution for this? This is my strings.xml code, the activity "afspraak" is the one where i'm trying t... | In a certain activity, I made an hyperlink in the middle of a textview. In a new activity, i wanted to do the same thing. However, with the exact same code, just another website, it doesn't work. Does anyone have a solution for this? This is my strings.xml code, the activity "afspraak" is the one where i'm trying to ge... | android|hyperlink | 0 | 2016-05-10T09:47:18.573Z | 2,016 | 5 | 9 | 1 | 58 | 5 | 458 | 34 | 2 | 2 | true | false | false | false | false | false | zero |
37,134,861 | C++ Builder bccarm error when calling std::vector::push_back with TObject descendant | <p>I have some simple C++ code which won't be compiled by the Clang based C++11 compiler bccaarm of C++ Builder 10.1 Berlin.</p>
<p>This is the code:</p>
<pre><code>TComponent* Comp = new TComponent(this);
std::vector<TComponent*> Comps;
Comps.push_back(Comp);
</code></pre>
<p>And this is the error:</p>
<bloc... | I have some simple C++ code which won't be compiled by the Clang based C++11 compiler bccaarm of C++ Builder 10.1 Berlin. This is the code: [CODE] And this is the error: [bccaarm error] stl_iterator.h(963): rvalue reference to type 'value_type' (aka 'System: classes::TComponent * __strong') can not be bound to lvalue o... | android|c++|c++builder|firemonkey|c++builder-10.1-berlin | 1 | 2016-05-10T09:47:57.907Z | 2,016 | 5 | 9 | 1 | 483 | 1 | 801 | 84 | 5 | 1 | true | false | false | false | false | false | low |
37,134,891 | App got crash sometimes when opening my app | <p>suddenly when opening my app i got one crash and i uploaded the crash log below.But it happens sometime only not every time and every device.</p>
<p>Can anyone help me to understand the crash log and why its happening for sometimes and some devices. what is main reason for the below crash?</p>
<pre><code> ... | suddenly when opening my app i got one crash and i uploaded the crash log below.But it happens sometime only not every time and every device. Can anyone help me to understand the crash log and why its happening for sometimes and some devices. what is main reason for the below crash? [CODE] | android|android-logcat|android-log | 3 | 2016-05-10T09:49:09.297Z | 2,016 | 5 | 9 | 1 | 483 | 1 | 290 | 43 | 3 | 1 | true | false | false | false | false | false | low |
37,134,947 | Multi List Column is not align properly in android when i retrive data from sqlite | <p>i am using multi column list view for display data from SQLite in my android Project. but when i view the list activity the column is not showing properly that i have set.
my code is here.</p>
<p>grid_item.xml</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://s... | i am using multi column list view for display data from SQLite in my android Project. but when i view the list activity the column is not showing properly that i have set. my code is here. grid_item.xml [CODE] Report_View.xml [CODE] when i run the the column of list is not properly by width. list screen shot is here Li... | android|sqlite|listview | -1 | 2016-05-10T09:51:18.487Z | 2,016 | 5 | 9 | 1 | 46 | 1 | 347 | 82 | 3 | 2 | true | false | false | false | false | true | negative |
37,134,960 | Removing Stopwords from String | <p>I need to remove stopwords from a string. I use the following code to remove stopwords and setting the final output in a textView. But when i run the code it always give the output "bugs". In other words it always give me the last string word as output. Please Check my code and Help!</p>
<pre><code>public class Tes... | I need to remove stopwords from a string. I use the following code to remove stopwords and setting the final output in a textView. But when i run the code it always give the output "bugs". In other words it always give me the last string word as output. Please Check my code and Help! [CODE] | android|string|stop-words|removeall | -1 | 2016-05-10T09:51:53.297Z | 2,016 | 5 | 9 | 1 | 272 | 2 | 291 | 30 | 4 | 1 | true | false | false | false | false | true | negative |
37,134,992 | Maintain Parent Activity on Push Notifications Event | <p>I have an Activity A (Splash Activity), Activity B (Home Activity), Activity C(Offers Activity), Activity D (Miscellaneous Activity). I want to create appropriate Landings to Offers Activity in two scenarios:</p>
<p>General App flow:
<strong>Activity A-> Activity B -> Activity C-> Activity D</strong></p>
<p><stron... | I have an Activity A (Splash Activity), Activity B (Home Activity), Activity C(Offers Activity), Activity D (Miscellaneous Activity). I want to create appropriate Landings to Offers Activity in two scenarios: General App flow: Activity A-> Activity B -> Activity C-> Activity D Scenario A : When the application is close... | android|push-notification|google-cloud-messaging|android-pendingintent | 1 | 2016-05-10T09:53:01Z | -1 | -1 | -1 | -1 | 448 | 1 | 1,130 | 52 | 4 | 2 | true | false | false | false | false | false | low |
37,135,041 | change navigation drawer selected item on fragment backstack change | <p>I have two fragments <code>FragmentHome</code> and <code>FragmentAbout</code>, I have added <code>NavigationDrawer</code> to app when I click <code>Home</code> it opens <code>FragmentHome</code> and <code>About</code> opens <code>FragmentAbout</code>, when I open <code>FragmentAbout</code> I am also adding it to bac... | I have two fragments FragmentHome and FragmentAbout , I have added NavigationDrawer to app when I click Home it opens FragmentHome and About opens FragmentAbout , when I open FragmentAbout I am also adding it to backstack. This is working fine. Now the problem is when I click on About and press back button it goes to t... | android|android-fragments|navigation-drawer|fragmenttransaction|fragment-backstack | 13 | 2016-05-10T09:55:09.340Z | 2,016 | 5 | 9 | 1 | 6,851 | 3 | 716 | 67 | 5 | 2 | true | false | true | false | true | false | medium |
37,135,091 | Combine ios (Push notification) and android (GCM) API (webservice) for notification | <p>I am a android developer so i don't know that much about PHP. </p>
<p>we are developing exam paper app in Android and IOS. and create notification functionality its works perfectly. But problem is IOS use Push notification and android use GCM. And these two are use different api. </p>
<p>My question is how to com... | I am a android developer so i don't know that much about PHP. we are developing exam paper app in Android and IOS. and create notification functionality its works perfectly. But problem is IOS use Push notification and android use GCM. And these two are use different api. My question is how to combine these two api. I ... | php|android|ios|web-services|notifications | 1 | 2016-05-10T09:57:03.467Z | 2,016 | 5 | 9 | 1 | 3,367 | 4 | 693 | 83 | 5 | 2 | true | false | true | false | false | false | low |
37,135,093 | Error:(4, 28) No resource found that matches the given name (at 'layout_height' with value '@dimen/nav_header_height') | <p>here i attached my program.In this Program 2
errors are there. I don't know how to clear those errors...</p>
<p>
</p>
<pre><code><android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay"/>
... | here i attached my program.In this Program 2 errors are there. I don't know how to clear those errors... [CODE] [CODE] | android|android-studio | 0 | 2016-05-10T09:57:05.467Z | 2,016 | 5 | 9 | 1 | 2,442 | 1 | 118 | 118 | 2 | 2 | true | false | false | false | false | false | zero |
37,135,220 | How to implement Click Listener in ExpandableListView | <p>I have a custom adapter, which extends <code>BaseExpandableListAdapter</code>.</p>
<p>I want my <code>ExpandableList</code> to expand and collapse when I'm clicking some <code>TextView</code>.</p>
<p>How should I implement it? </p>
<p>I suppose, i have to add <code>OnClickListener</code> to methods <code>getGroup... | I have a custom adapter, which extends BaseExpandableListAdapter . I want my ExpandableList to expand and collapse when I'm clicking some TextView . How should I implement it? I suppose, i have to add OnClickListener to methods getGroupView and getChildView . And I see, there is boolean flag isExpanded . So it should l... | android|expandablelistview|expandablelistadapter | 0 | 2016-05-10T10:01:49.003Z | 2,016 | 5 | 10 | 1 | 919 | 2 | 527 | 53 | 3 | 1 | true | false | false | false | false | false | zero |
37,135,306 | How to manage async task in Android | <p>In my activity, I use a thread to call a server and receive an XML response I put on internal storage.</p>
<p>After this call, I read this xml file to parse it and show information about this xml file to the user but when I add this file in my InputStream, this InputStream is null.</p>
<p>I guess my activity conti... | In my activity, I use a thread to call a server and receive an XML response I put on internal storage. After this call, I read this xml file to parse it and show information about this xml file to the user but when I add this file in my InputStream, this InputStream is null. I guess my activity continue the simple exec... | java|android|multithreading | 0 | 2016-05-10T10:05:20.843Z | 2,016 | 5 | 10 | 1 | 883 | 5 | 931 | 35 | 3 | 1 | true | false | false | false | false | false | zero |
37,135,362 | Android - Adding Effects to Videos like Instagram | <p>I am in need of a idea to apply filters to video like Instagram, video trimming and fetching images from the video. I have researched a lot and all I can come up with is the following ways to achieve what I want : </p>
<ol>
<li><a href="http://androidwarzone.blogspot.in/2011/12/ffmpeg4android.html" rel="nofollow">F... | I am in need of a idea to apply filters to video like Instagram, video trimming and fetching images from the video. I have researched a lot and all I can come up with is the following ways to achieve what I want : FFMPEG Open CV Camera2 API FFMPEG : As far as FFMPEG is considered, majority of the average level droid de... | android|opencv|video|ffmpeg|android-ndk | 2 | 2016-05-10T10:07:43.877Z | 2,016 | 5 | 10 | 1 | 426 | 0 | 1,552 | 49 | 5 | 0 | false | true | false | false | false | false | low |
37,135,408 | login in android with php and mysql | <p>I am trying create a login and registration in my android app but the problem I am facing is like, I am able to do my registration in the table but I am not able to login with those registered values. It is showing me 'failure' message of my login php script. Below is my "login.php" file</p>
<pre><code> <?php
... | I am trying create a login and registration in my android app but the problem I am facing is like, I am able to do my registration in the table but I am not able to login with those registered values. It is showing me 'failure' message of my login php script. Below is my "login.php" file [CODE] And this is my android J... | php|android|mysql | 0 | 2016-05-10T10:09:37.963Z | 2,016 | 5 | 10 | 1 | 886 | 1 | 348 | 35 | 3 | 2 | true | false | false | false | false | false | zero |
37,135,579 | Unable to instrument file: java.lang.NoClassDefFoundError android/content/ComponentCallbacks | <p>I am trying to generate Cobertura coverage reports for the (multi module) Android project I'm working on.
The project was already there when I started implementing code coverage. The app that is the result of this project runs fine on all used devices. </p>
<p>We start Gradle tasks from the command line, so that we... | I am trying to generate Cobertura coverage reports for the (multi module) Android project I'm working on. The project was already there when I started implementing code coverage. The app that is the result of this project runs fine on all used devices. We start Gradle tasks from the command line, so that we can also ex... | android|gradle|code-coverage|cobertura|android-instrumentation | 3 | 2016-05-10T10:17:21.307Z | 2,016 | 5 | 10 | 1 | 1,626 | 1 | 1,244 | 92 | 5 | 3 | true | false | false | false | false | false | low |
37,135,595 | Rounded gradient in custom Progress Bar | <p>How would you make rounded gradient for <code>ProgressBar</code> like on screen? </p>
<p><a href="https://i.stack.imgur.com/yVaBm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yVaBm.png" alt="enter image description here"></a></p>
<p>What I have now:</p>
<p><a href="https://i.stack.imgur.com/... | How would you make rounded gradient for ProgressBar like on screen? What I have now: pb_shape.xml : [CODE] [CODE] I already tried to add android:gradientRadius="12dip" to pb_shape but it takes no effect. | android|android-layout|progress-bar|android-progressbar | 3 | 2016-05-10T10:18:09.707Z | 2,016 | 5 | 10 | 1 | 4,870 | 1 | 203 | 39 | 4 | 2 | true | false | true | false | false | false | low |
37,135,650 | sliding panel from bottom like Google Play Music using View pager + RecycleView inside the main content | <p>I want to make sliding panel from bottom like Google Play Music so i am using Umano Library but View pager inside the main content not scrollable. Please help me out.
I have view Pager which loads data from server and set in recycler view but the view pager tabs not scrolling and the sliding layout data not showing.... | I want to make sliding panel from bottom like Google Play Music so i am using Umano Library but View pager inside the main content not scrollable. Please help me out. I have view Pager which loads data from server and set in recycler view but the view pager tabs not scrolling and the sliding layout data not showing. [C... | android|android-viewpager|android-recyclerview|slidingpanelayout | 0 | 2016-05-10T10:20:15.733Z | 2,016 | 5 | 10 | 1 | 791 | 0 | 356 | 103 | 4 | 2 | true | true | false | false | false | false | zero |
37,135,675 | Android Camera Saving Pictures in Portrait Mode | <p>I'm trying to use a camera in my app and I want to be able to use it in landscape and portrait mode. I'm having no difficulty creating pictures in landscape mode, but I haven't found a good way to save pictures in portrait mode.</p>
<p>When I want to make a picture in portrait mode I need to set the displayorientat... | I'm trying to use a camera in my app and I want to be able to use it in landscape and portrait mode. I'm having no difficulty creating pictures in landscape mode, but I haven't found a good way to save pictures in portrait mode. When I want to make a picture in portrait mode I need to set the displayorientation to port... | java|android|camera|android-camera | 3 | 2016-05-10T10:21:15.740Z | 2,016 | 5 | 10 | 1 | 1,648 | 1 | 980 | 47 | 4 | 3 | true | false | false | false | false | false | low |
37,135,787 | Ereza CustomActivityOnCrash startActivity with Intent | <p>I've been trying to implement an custom UncaughtExceptionHandler into my application and I've discovered the library Ereza/CustomActivityOnCrash. </p>
<p>I have added all the code as described in the README (<a href="https://github.com/Ereza/CustomActivityOnCrash" rel="nofollow">https://github.com/Ereza/CustomActiv... | I've been trying to implement an custom UncaughtExceptionHandler into my application and I've discovered the library Ereza/CustomActivityOnCrash. I have added all the code as described in the README ( https://github.com/Ereza/CustomActivityOnCrash ) but I still can't seem to get it to work. When I force my app to crash... | android|android-intent|start-activity|uncaughtexceptionhandler | 0 | 2016-05-10T10:25:47.280Z | 2,016 | 5 | 10 | 1 | 943 | 3 | 488 | 53 | 4 | 2 | true | false | false | false | false | false | zero |
37,135,810 | Currency converter is not working. I have added edit text.after entering a number conversion is not working | <p>Currency converter is not working. I have added editText. After entering a number conversion is not working. app is crasing. Please see code below. i have attached image also.</p>
<p><a href="http://i.stack.imgur.com/5GIKc.png" rel="nofollow"> image</a></p>
<p>Error : FATAL EXCEPTION: main</p>
<pre><code> ... | Currency converter is not working. I have added editText. After entering a number conversion is not working. app is crasing. Please see code below. i have attached image also. image Error : FATAL EXCEPTION: main [CODE] currencyConverter.java [CODE] currencyconverter.xml [CODE] | android|fragment | 0 | 2016-05-10T10:26:31.763Z | 2,016 | 5 | 10 | 1 | 63 | 0 | 277 | 107 | 2 | 3 | true | true | false | false | false | false | zero |
37,135,845 | Parsing in Fragment. Application closed | <p>I cant find my mistake.</p>
<pre><code> public class FragmentParsing extends Fragment implements MyTask.OnTaskComplete{
private ArrayList<String> arrayList=new ArrayList<>();
private ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_li... | I cant find my mistake. [CODE] Error Logs: [CODE] Something wrong in line - [CODE] And in this line - [CODE] Here is TabAdapter [CODE] My application is closing i choose not first tab. If class FragmentParsing is empty - application works without problems. EDIT: After changes requested in the comments. [CODE] Error Log... | android|json|listview|parsing | -3 | 2016-05-10T10:28:23.807Z | 2,016 | 5 | 10 | 1 | 36 | 1 | 329 | 39 | 4 | 7 | true | false | false | false | false | true | negative |
37,135,850 | shared preferences and onPause doesn't work | <p>if i check a checkbox and go on tab without list view with checkbox and came to previous tab, i see checkbox checked previously...but if i click on another tab with list view with checkbox, my program crash...why?
now i post my code...
I hope that you can help me!</p>
<p>Thanks in advance!</p>
<p>ADAPTER CLASS:</p... | if i check a checkbox and go on tab without list view with checkbox and came to previous tab, i see checkbox checked previously...but if i click on another tab with list view with checkbox, my program crash...why? now i post my code... I hope that you can help me! Thanks in advance! ADAPTER CLASS: [CODE] FIRST FRAGMENT... | android|listview|android-fragments|android-studio|checkbox | 0 | 2016-05-10T10:28:29.227Z | 2,016 | 5 | 10 | 1 | 208 | 2 | 469 | 43 | 5 | 5 | true | false | false | false | false | false | zero |
37,135,942 | How to customize oxypolt pie chart in xamarin.android? | <p>My code for simple oxyplot pie chart is this</p>
<pre><code> var plotView = new PlotView (this);
plotView.Model = PieViewModel();
this.AddContentView (plotView,
new ViewGroup.LayoutParams (ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent));
public P... | My code for simple oxyplot pie chart is this [CODE] Now i want to customize this chart like highchart(Pie chart ) Like this: http://www.highcharts.com/demo/pie-basic How can i do this need your help? Note: I need this chart for xamarin.android and xamarin.IOS Thanks | android|charts|xamarin|xamarin.android|oxyplot | 2 | 2016-05-10T10:32:25.433Z | 2,016 | 5 | 10 | 1 | 330 | 0 | 266 | 54 | 5 | 1 | true | true | false | false | false | false | low |
37,135,960 | isLogin Function returning Null Pointer | <p>I am trying to handle the session management but whenever I run my app it throws NullPointer Exception in Login Activity</p>
<pre><code> @Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
l... | I am trying to handle the session management but whenever I run my app it throws NullPointer Exception in Login Activity [CODE] The above code is of Login Activity and the below code is about session management [CODE] The error log is shown as below [CODE] The error is thrown at line if (sessionManager.isLoggedIn()) { | android | 0 | 2016-05-10T10:33:16.150Z | 2,016 | 5 | 10 | 1 | 336 | 2 | 319 | 39 | 1 | 3 | true | false | false | false | false | false | zero |
37,136,080 | Delay in android step counter | <p>I am developing an android step counter that starts counting when i press a button and stops when i press the button again. The problem is that the counter always misses the first few steps i am using the step counter sensor introduced in android kitkat 4.4. I also tried the step detector sensor but had the same res... | I am developing an android step counter that starts counting when i press a button and stops when i press the button again. The problem is that the counter always misses the first few steps i am using the step counter sensor introduced in android kitkat 4.4. I also tried the step detector sensor but had the same result... | android|android-sensors | 1 | 2016-05-10T10:38:52.580Z | 2,016 | 5 | 10 | 1 | 3,204 | 1 | 692 | 29 | 2 | 3 | true | false | true | false | false | false | low |
37,136,102 | Permission Denial while reading content Uri of chrome images through openInputStream() | <p>I am trying to share images from chrome browser to my application using implicit intent ACTION_SEND.</p>
<p>While sharing searched images, app receives intent with a Content URI like this: content://com.android.chrome.FileProvider/images/screenshot/1457448067808912906311.jpg</p>
<p>Using <strong>ContentResolver</s... | I am trying to share images from chrome browser to my application using implicit intent ACTION_SEND. While sharing searched images, app receives intent with a Content URI like this: content://com.android.chrome.FileProvider/images/screenshot/1457448067808912906311.jpg Using ContentResolver and openInputStream() to read... | android|google-chrome|android-intent|inputstream|android-contentresolver | 1 | 2016-05-10T10:40:00.463Z | 2,016 | 5 | 10 | 1 | 968 | 1 | 637 | 86 | 5 | 1 | true | false | false | false | false | false | low |
37,136,124 | Android: seekbar.setProgress() gives Nullpointer exception | <p>I have used <code>seekbar</code> like quite a few times but never faced problem. Yesterday I was dealing with Fragments which I am not too familiar with but implemented successfully. But at the end of the day when I included seekbar to the fragment and problems started. Not sure this is coz of fragments or what. Her... | I have used seekbar like quite a few times but never faced problem. Yesterday I was dealing with Fragments which I am not too familiar with but implemented successfully. But at the end of the day when I included seekbar to the fragment and problems started. Not sure this is coz of fragments or what. Here is my code. fr... | java|android|android-fragments|fragment|seekbar | 0 | 2016-05-10T10:40:59.980Z | 2,016 | 5 | 10 | 1 | 359 | 2 | 529 | 58 | 5 | 2 | true | false | false | false | false | false | zero |
37,136,131 | Rendering CDATA HTML tag from KML file in android map api v2 not working | <p>In my project I am using KML file from raw folder to render in MapView API V2. But it is not rendering ![CDATA] tag with value of given variable instead it display variable itself.
Following is my KML file :</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2"&g... | In my project I am using KML file from raw folder to render in MapView API V2. But it is not rendering ![CDATA] tag with value of given variable instead it display variable itself. Following is my KML file : [CODE] It display infowindow with variable name $[name],$[description] and [geDirections] itself.Following is th... | android|google-maps|google-maps-android-api-2|kml | 0 | 2016-05-10T10:41:22.153Z | 2,016 | 5 | 10 | 1 | 529 | 1 | 392 | 72 | 4 | 1 | true | false | false | false | false | false | zero |
37,136,196 | Sinch call hangup not working in onDestroy() | <p>I am working on sinch app to app call API, have integrated incoming and outgoing call screen.</p>
<p>My issue is, if call is ongoing and user removes application from backgroud, what will happen?</p>
<p>to overcome this issue, i have written <code>call.hangup()</code> in <code>onDestroy()</code> of activity, but i... | I am working on sinch app to app call API, have integrated incoming and outgoing call screen. My issue is, if call is ongoing and user removes application from backgroud, what will happen? to overcome this issue, i have written call.hangup() in onDestroy() of activity, but it's neither hangingup sinch call nor giving a... | android|sinch|android-sinch-api | 2 | 2016-05-10T10:43:55.303Z | 2,016 | 5 | 10 | 1 | 130 | 0 | 496 | 44 | 3 | 2 | true | true | false | false | false | false | low |
37,136,308 | RejectedExecutionException in Android Studio | <p>My app (using HERE Android SDK) crashes while doing the simulated turn-by-turn navigation, the exception log is as below, please tell how to resolve it.</p>
<blockquote>
<p>device model:SM-G9008V<br>
SDK:5.0-----------java.util.concurrent.RejectedExecutionException:
Task android.os.AsyncTask$3@36d584c9 reject... | My app (using HERE Android SDK) crashes while doing the simulated turn-by-turn navigation, the exception log is as below, please tell how to resolve it. device model:SM-G9008V SDK:5.0-----------java.util.concurrent.RejectedExecutionException: Task android.os.AsyncTask$3@36d584c9 rejected from java.util.concurrent.Threa... | android|sdk|navigation|here-api | 0 | 2016-05-10T10:48:25.020Z | 2,016 | 5 | 10 | 1 | 1,387 | 3 | 1,460 | 44 | 4 | 0 | false | false | false | false | false | false | zero |
37,136,461 | manage imageviews when set visability | <p><strong>manage imageview when set visability</strong></p>
<p><strong>i know its hard to get my problem i tried to explain that i could</strong></p>
<p><strong>Explanation:</strong></p>
<p>First of all i have 4 <code>imageviews</code> in for the first time only 2 <code>imageviews</code> are visible to user. When u... | manage imageview when set visability i know its hard to get my problem i tried to explain that i could Explanation: First of all i have 4 imageviews in for the first time only 2 imageviews are visible to user. When user clicks on one of them gallery open and user pick image and i set picked image to visible imageview t... | android|android-layout|android-linearlayout|android-imageview | 0 | 2016-05-10T10:54:57.970Z | 2,016 | 5 | 10 | 1 | 45 | 0 | 1,078 | 37 | 4 | 2 | true | true | false | false | false | false | zero |
37,136,484 | making activity_main.xml as splash screen | <p>i m new in android.
what if I want to make current view which I have made yet, of my app as splash screen for 5 seconds.
is it possible or not ?</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_paren... | i m new in android. what if I want to make current view which I have made yet, of my app as splash screen for 5 seconds. is it possible or not ? [CODE] | android|xml | 0 | 2016-05-10T10:55:53.963Z | 2,016 | 5 | 10 | 1 | 112 | 5 | 151 | 41 | 2 | 1 | true | false | false | false | false | false | zero |
37,136,542 | Android notification in background continue previous intent | <pre><code>sendNotification('Hello', 0, 1);
private void sendNotification(String message, int id, int notification_num) {
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
Intent intent = new Intent(this, Main.class);
intent.setData(new Uri.Builder().scheme("d... | [CODE] When application is opened intent.putExtra works fine, but when I close app (kill proccess), notification is coming but not with it extra than with new intent extra. Problem is also with multiple notification, when app is closed, there are no grouping like I want it to be. notificationBuilder.setNumber is always... | android|android-intent|push-notification|notifications|android-notifications | 1 | 2016-05-10T10:57:48.683Z | 2,016 | 5 | 10 | 1 | 146 | 1 | 419 | 59 | 5 | 1 | true | false | false | false | false | false | low |
37,136,548 | HTTP response is never returned | <p>I am building an app in Xamarin.Android ! which determines my Address using google Maps API when given a latitude and longitude. However my App fails to deliver an HTTP response. I don't receive any runtime errors and VS debugger behaves as if my App has hanged.</p>
<p>1> I don't know whether this is an issue of Xa... | I am building an app in Xamarin.Android ! which determines my Address using google Maps API when given a latitude and longitude. However my App fails to deliver an HTTP response. I don't receive any runtime errors and VS debugger behaves as if my App has hanged. 1> I don't know whether this is an issue of Xamarin.Andro... | c#|android|xamarin|httprequest | 0 | 2016-05-10T10:58:13.527Z | 2,016 | 5 | 10 | 1 | 293 | 1 | 490 | 31 | 4 | 1 | true | false | false | false | false | false | zero |
37,136,574 | How to solve error: Could not find method onClick(View) in a parent or ancestor Context for android:onClick | <p>I have seen that there's been some similar questions but the answers to those haven't helped me so far. The full error:</p>
<blockquote>
<p>java.lang.IllegalStateException: Could not find method onClick(View)
in a parent or ancestor Context for android:onClick attribute defined
on view class android.support.... | I have seen that there's been some similar questions but the answers to those haven't helped me so far. The full error: java.lang.IllegalStateException: Could not find method onClick(View) in a parent or ancestor Context for android:onClick attribute defined on view class android.support.v7.widget.AppCompatButton with ... | java|android|xml | 8 | 2016-05-10T10:59:51.807Z | 2,016 | 5 | 10 | 1 | 25,040 | 5 | 647 | 107 | 3 | 2 | true | false | true | true | false | false | medium |
37,136,658 | Android custom dialog displays extra space | <p>My custom dialog adds extra space after the Cancel and Save button. I have made a couple of custom dialogs in this app, but this problem appears only in this case. I've colored the view's background to blue, so I think it should be okay.</p>
<p><a href="https://i.stack.imgur.com/iPNAy.png" rel="nofollow noreferrer"... | My custom dialog adds extra space after the Cancel and Save button. I have made a couple of custom dialogs in this app, but this problem appears only in this case. I've colored the view's background to blue, so I think it should be okay. layout: [CODE] Displaying the dialog: [CODE] I've compared the layout file with th... | android|android-alertdialog | 1 | 2016-05-10T11:03:12.653Z | 2,016 | 5 | 11 | 1 | 550 | 1 | 386 | 42 | 2 | 2 | true | false | false | false | false | false | low |
37,136,688 | Android Fragment java.lang.IllegalStateException: No host | <p>I do a lot of search about this problem but no answer helps me.
I saw a same question in <a href="https://stackoverflow.com/questions/33210617/fragmentmanager-illegalstateexception-no-host">here</a> but it can not help, so I post my question with the hope that any guy can help me. It's serious to me.
I have an <code... | I do a lot of search about this problem but no answer helps me. I saw a same question in here but it can not help, so I post my question with the hope that any guy can help me. It's serious to me. I have an Activity (called activity A, it's MainActivity) with TabLayout and ViewPager , which contains 5 Fragments . In no... | java|android|fragment|fragmentmanager | 3 | 2016-05-10T11:04:20.440Z | 2,016 | 5 | 11 | 1 | 1,735 | 0 | 2,004 | 57 | 4 | 1 | true | true | false | false | false | false | low |
37,136,692 | Android API 23 Read_external_storage Permission Issue | <p>I am using the codes below. But nothing happends when I click the add photo button. Int the println's I see number 4 and number 5. Am I doing something wrong. I am using the code inside a fragment. Any help would be great.</p>
<pre><code>int MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE;
// define in class
if (Cont... | I am using the codes below. But nothing happends when I click the add photo button. Int the println's I see number 4 and number 5. Am I doing something wrong. I am using the code inside a fragment. Any help would be great. [CODE] The call back part is as below: [CODE] Edit: I edite my code as below, now I see number 4,... | android|android-camera|android-permissions | 0 | 2016-05-10T11:04:46.673Z | 2,016 | 5 | 11 | 1 | 2,261 | 1 | 692 | 53 | 3 | 4 | true | false | false | false | false | false | zero |
37,136,724 | Google maps on android studio not marking the LatLng I coded | <p>So I did this:
File Build.gradle:</p>
<p>compile 'com.google.android.gms:play-services:4.2.42'</p>
<p>Manifest:</p>
<pre><code><uses-permission android:name="com.example.angyy.home3.permissions.MAPS_RECEIVE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-p... | So I did this: File Build.gradle: compile 'com.google.android.gms:play-services:4.2.42' Manifest: [CODE] Main: [CODE] the map is showing and the gestures are working, but it's not going to the location I put there.. What am I missing? (No errors...) | java|android|google-maps|maps | 0 | 2016-05-10T11:06:28.730Z | 2,016 | 5 | 11 | 1 | 270 | 1 | 249 | 60 | 4 | 2 | true | false | false | false | false | false | zero |
37,136,736 | Android Database sync with MSSQL | <p>I am developing an android application which have</p>
<ul>
<li>SQLite on the mobile</li>
<li>MS SQL on the Windows server</li>
</ul>
<p>I want the mobile data to sync with the MSSQL database whenever a new entry is added. The sync data should remain in the mobile and work even if the mobile internet is offline.</p... | I am developing an android application which have SQLite on the mobile MS SQL on the Windows server I want the mobile data to sync with the MSSQL database whenever a new entry is added. The sync data should remain in the mobile and work even if the mobile internet is offline. The MSSQL database will have two identical ... | android|sql-server|json|sqlite | 1 | 2016-05-10T11:06:46.623Z | 2,016 | 5 | 11 | 1 | 1,586 | 1 | 1,056 | 32 | 4 | 0 | false | false | false | false | false | false | low |
37,136,888 | onClickListener on button in fragment does nothing | <p>I have a fragment that has a button in and have added a button listener and this is not giving any errors, but the onClick doesn't seem to be called when I click the button. I have tried adding the button listener in the onActivityCreated function but this still doesn't work.
Thanks.</p>
<pre><code>package com.aar... | I have a fragment that has a button in and have added a button listener and this is not giving any errors, but the onClick doesn't seem to be called when I click the button. I have tried adding the button listener in the onActivityCreated function but this still doesn't work. Thanks. [CODE] | android|android-fragments|button|onclicklistener|android-fragmentactivity | -2 | 2016-05-10T11:12:52.247Z | 2,016 | 5 | 11 | 1 | 690 | 1 | 291 | 50 | 5 | 1 | true | false | false | false | false | true | negative |
37,136,905 | Facebook Checkin using Graph API in Android | <p>I would like to check-in into Facebook using graph API(Or what ever method available), I have latitude and longitude of the place, please anyone help me in addressing following questions.
<br> </p>
<h1>1) Which permission is required for getting place_id and for check-in?</h1>
<p>(I am currently using "publish_act... | I would like to check-in into Facebook using graph API(Or what ever method available), I have latitude and longitude of the place, please anyone help me in addressing following questions. 1) Which permission is required for getting place_id and for check-in? (I am currently using "publish_actions") 2) I have Latitude a... | android|facebook|facebook-sdk-4.0|facebook-checkins|facebook-graph-api-v2.6 | 2 | 2016-05-10T11:13:34.237Z | 2,016 | 5 | 11 | 1 | 499 | 0 | 756 | 43 | 5 | 2 | true | true | false | false | false | false | low |
37,136,915 | How to get running application icons programatically in android | <p>I am working on an application where I want to get running application icons in my app but I am unable to do this. I want to generate these icons in order.</p>
<p>Below I have the code.</p>
<pre><code> public void getAllICONS() {
List<Drawable> icons = null;
PackageManager pm = getPackageManager();
... | I am working on an application where I want to get running application icons in my app but I am unable to do this. I want to generate these icons in order. Below I have the code. [CODE] I am getting the error at icons.add(ico) line. | android | 0 | 2016-05-10T11:13:54.233Z | 2,016 | 5 | 11 | 1 | 63 | 1 | 232 | 63 | 1 | 1 | true | false | false | false | false | false | zero |
37,136,981 | Draw path on google map based on lat lang | <p>i want to draw path on google map.</p>
<p>Basically what i am tracking user locaion after specfic time interval. when user reach to some destination then i need to draw the path which he followed to reach that destination. </p>
<p>It is working fine but the problem is it is showing zigzag path. See the image below... | i want to draw path on google map. Basically what i am tracking user locaion after specfic time interval. when user reach to some destination then i need to draw the path which he followed to reach that destination. It is working fine but the problem is it is showing zigzag path. See the image below. What i want: I wan... | android|google-maps | 12 | 2016-05-10T11:17:29.817Z | 2,016 | 5 | 11 | 1 | 1,866 | 4 | 719 | 41 | 2 | 1 | true | false | false | false | true | false | medium |
37,137,021 | Task 'run' not found in root project 'myProject' | <p>I am trying to integrate gcm. I have applied code and done all things instructed at <a href="https://developers.google.com/cloud-messaging/android/start" rel="nofollow">https://developers.google.com/cloud-messaging/android/start</a>. But when I run below code in terminal,</p>
<pre><code>.\gradlew.bat run -Pmsg="<... | I am trying to integrate gcm. I have applied code and done all things instructed at https://developers.google.com/cloud-messaging/android/start . But when I run below code in terminal, [CODE] it gives FAILURE: Build failed with an exception. * What went wrong: Task 'run' not found in root project 'myProject'. Try: Run ... | android|gradle|google-cloud-messaging|gradlew | 0 | 2016-05-10T11:19:38.840Z | 2,016 | 5 | 11 | 1 | 3,746 | 0 | 640 | 48 | 4 | 2 | true | true | true | false | false | false | zero |
37,137,032 | wifi Manager wifiManager.addNetwork Stops my UI | <p>i'm connecting to a wifi network in my app
and while i do that i show a user a costume dialog that has animation in it.</p>
<p>problem is that while i do this line > </p>
<pre><code>wifiManager.addNetwork(conf);
</code></pre>
<p>my animation in the dialog get's stuck and sometimes my app goes to not responding.</... | i'm connecting to a wifi network in my app and while i do that i show a user a costume dialog that has animation in it. problem is that while i do this line > [CODE] my animation in the dialog get's stuck and sometimes my app goes to not responding. any idea on how to fix that ? and if i can't show a dialog while conne... | android|wifi | 0 | 2016-05-10T11:20:26.960Z | 2,016 | 5 | 11 | 1 | 408 | 1 | 487 | 47 | 2 | 3 | true | false | false | false | false | false | zero |
37,137,276 | Unable to reference `fragment` using `R.id.myFirstFragment` | <p>Here is the class of fragment</p>
<pre><code>package com.hfad.chapter7;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class WorkoutDetailFragment extends Fragment {
private long workoutID;
... | Here is the class of fragment [CODE] And the layout it's using is: [CODE] My MainActivity is: [CODE] And layout of MainActivity is: [CODE] Problem is when I use this.getFragmentManager().findFragmentById(R.id.myFirstFragment) in onCreate of AppCompatActivity I get Fragment though I should get WorkoutDetailFragment as s... | android|android-fragments|r.java-file | -1 | 2016-05-10T11:31:06.697Z | 2,016 | 5 | 11 | 1 | 146 | 3 | 416 | 59 | 3 | 4 | true | false | false | false | false | true | negative |
37,137,316 | Volley request works only after visiting page on desktop browser | <p>So. My problem is extremely weird (for me). I'm using Volley to send HTTP requests to <a href="http://laakeinfo.fi/" rel="nofollow">this</a> site. Using the same code I get 3 types of responses. One is full of weird symbols (WRÄÕΨäxúD©zíÿ&ôÂD...), second one is the page's own error page and the third type is th... | So. My problem is extremely weird (for me). I'm using Volley to send HTTP requests to this site. Using the same code I get 3 types of responses. One is full of weird symbols (WRÄÕΨäxúD©zíÿ&ôÂD...), second one is the page's own error page and the third type is the one I want: the medicine's page. The only way I have go... | android|http|android-volley | 0 | 2016-05-10T11:32:50.440Z | 2,016 | 5 | 11 | 1 | 140 | 1 | 1,182 | 64 | 3 | 1 | true | false | false | false | false | false | zero |
37,137,336 | JSONException not caught | <p>I have this piece of code:</p>
<pre><code>HJRestClient.post(path, params, new JsonHttpResponseHandler() {
@Override
public void onSuccess(int statusCode, Header[] headers, JSONObject response) {
try {
JSONArray array = response.getJSONArray("tags");
if (a... | I have this piece of code: [CODE] It is crashing on the line JSONArray array = response.getJSONArray("tags"); with exception W/System.err: org.json.JSONException: No value for tags While I have written code for catching the exception, it's not getting caught and causing the app to crash. I have 2 devices Samsung Galaxy... | android|jsonexception | 1 | 2016-05-10T11:33:44.930Z | 2,016 | 5 | 11 | 1 | 364 | 2 | 565 | 24 | 2 | 2 | true | false | false | false | false | false | low |
37,137,470 | android 4.4 simpledateformate parse error | <p>I want to parse a string date using simpledateformate,but I got a wrong time in android 4.4 api</p>
<p><strong>here is my code</strong></p>
<pre><code> String notificationDateStr = "";
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSSSSZ");
try {
Date notificationDat... | I want to parse a string date using simpledateformate,but I got a wrong time in android 4.4 api here is my code [CODE] my data is 2016-05-10T08:41:13.325679+00:00 2016-05-10T08:39:42.754822+00:00 2016-05-10T08:36:02.098456+00:00 2016-05-10T08:31:03.787253+00:00 but the result is 16:46 16:52 16:37 16:44 why for this? ho... | android | 0 | 2016-05-10T11:40:20.163Z | 2,016 | 5 | 11 | 1 | 128 | 1 | 404 | 41 | 1 | 1 | true | false | false | false | false | false | zero |
37,137,488 | how can i pass the image URL from activity to Alert Dialog box as a imageview? | <p>Here is my <code>CartRowHolder</code></p>
<pre><code>class CartRowHolder {
ImageView icon;
TextView txtprice,txttitle,personalize;
TextView txtquantity;
ImageView imgdelete,imgedit,image;
public CartRowHolder(View v) {
icon=(ImageView)v.findViewById(R.id.imageicon);
txtprice=(TextView)v.findViewBy... | Here is my CartRowHolder [CODE] Now in the ListView a ImageView and Delete Button, Edit button is there So as i click on the Edit a Dialogbox is open and in the Dialogbox i want to pass the imageView.....and i have the ImageUrl [CODE] | android|json|listview|android-intent|android-alertdialog | 0 | 2016-05-10T11:40:43.683Z | 2,016 | 5 | 11 | 1 | 688 | 2 | 234 | 78 | 5 | 2 | true | false | false | false | false | false | zero |
37,137,564 | AppsFlyerLib StringIndexOutOfBoundsException | <p>Hi I faced next exception in logcat simetimes from AppsFlyer:</p>
<pre><code>E/AppsFlyer_4.3.6: length=12; regionStart=0; regionLength=13
java.lang.StringIndexOutOfBoundsException: length=12; regionStart=0; regionLength=13
at java.lang.String.startEndAndLength(S... | Hi I faced next exception in logcat simetimes from AppsFlyer: [CODE] Does anyone know something about this error in logcat? This is my initialization code: [CODE] and this one i use to track events: [CODE] | android|appsflyer|appsflyer-android-sdk | 0 | 2016-05-10T11:44:35.417Z | 2,016 | 5 | 11 | 1 | 246 | 1 | 205 | 44 | 3 | 3 | true | false | false | false | false | false | zero |
37,137,565 | Proguard not minifying when debuggable set to true | <p>I am trying to test my app which has passed the 64K limit.</p>
<p>I have set minify on but it doesn't work when debuggable is enabled. However, if I build a version with debuggable off then it shrinks it by 2/3!</p>
<p>Am I missing something? This is the relevant part of my Gradle file:</p>
<pre><code> buildTy... | I am trying to test my app which has passed the 64K limit. I have set minify on but it doesn't work when debuggable is enabled. However, if I build a version with debuggable off then it shrinks it by 2/3! Am I missing something? This is the relevant part of my Gradle file: [CODE] proguard-rules.pro: [CODE] | android|android-proguard | 0 | 2016-05-10T11:44:35.623Z | 2,016 | 5 | 11 | 1 | 605 | 1 | 307 | 50 | 2 | 2 | true | false | false | false | false | false | zero |
37,137,574 | Ionic splash screen not loading | <p>I have checked and double checked Stack Overflow for an answer on this and i really can't find one. I am building an app using the ionic framework and although i have never had this issue before, for some reason the splash screen will not work. I'm just getting a completely white screen followed by a delay before th... | I have checked and double checked Stack Overflow for an answer on this and i really can't find one. I am building an app using the ionic framework and although i have never had this issue before, for some reason the splash screen will not work. I'm just getting a completely white screen followed by a delay before the i... | android|ios|ionic-framework|screen|splash-screen | 1 | 2016-05-10T11:45:05.173Z | 2,016 | 5 | 11 | 1 | 859 | 2 | 1,033 | 31 | 5 | 1 | true | false | false | false | false | false | low |
37,137,602 | Can’t find elements on a webview page of an android Native app using Appium and Python | <p><a href="https://i.stack.imgur.com/63yAI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/63yAI.png" alt="<img src="/uploads/appium/original/2X/4/4e4e0f0b473a5ec945553a9fc37a25d453f718a4.png" width="690" height="387">"></a></p>
<p>I am not able to find the eleme... | I am not able to find the elements from android.webkit.WebView in my native app. I was able to retrieve the username and password field attributes by setting setWebContentsDebuggingEnabled to TRUE, and then by opening the webview in DevTools chrome://inspect/#devices I have written the Python script to run the app : [C... | android|python|webview|automation | 3 | 2016-05-10T11:45:49.160Z | 2,016 | 5 | 11 | 1 | 939 | 0 | 632 | 86 | 4 | 2 | true | true | false | false | false | false | low |
37,137,624 | How to use Shared Preferences in MVP without Dagger and not causing Presenter to be Context dependent? | <p>I'm trying to implement MVP without Dagger (for learning purposes). But I got to the problem - I use Repository patter to get raw data either from cache (Shared Preferences) or network:</p>
<pre><code>Shared Prefs|
|<->Repository<->Model<->Presenter<->View
Network|
</code><... | I'm trying to implement MVP without Dagger (for learning purposes). But I got to the problem - I use Repository patter to get raw data either from cache (Shared Preferences) or network: [CODE] But to put my hands on Shared Preferences I have to put somewhere line like [CODE] I use onRetainCustomNonConfigurationInstance... | android|dependency-injection|dependencies|sharedpreferences|mvp | 41 | 2016-05-10T11:46:53.163Z | 2,016 | 5 | 11 | 1 | 14,017 | 4 | 508 | 102 | 5 | 3 | true | false | true | true | true | false | high |
37,137,703 | Link present in XML should open in webview | <p>I have code which displays Terms & Condition in app. In the first line i have a link. I want that link to be loaded in webview.</p>
<p>Following is the Fragment Code:</p>
<pre><code>String[] tncList = getResources().getStringArray(R.array.tnc_text_array);
for(int i=0;i < tncList.length;i++)
{
LinearLay... | I have code which displays Terms & Condition in app. In the first line i have a link. I want that link to be loaded in webview. Following is the Fragment Code: [CODE] Following is the String array from the resource file: [CODE] By using the above code link is generated and user can click the link and open it in browser... | android|android-fragments|android-intent|webview|android-resources | 0 | 2016-05-10T11:50:24.793Z | 2,016 | 5 | 11 | 1 | 58 | 1 | 459 | 42 | 5 | 2 | true | false | false | false | false | false | zero |
37,137,833 | onActivityResult is asynchronous and my ProgressBar is not shown | <p>I am starting a <code>ACTION_GET_CONTENT</code> intent from a <code>DialogFragment</code> where the user can select files.
When the files are selected, the activity finishes and <code>onActivityResult</code> is executed with the result.</p>
<p>In <code>onActivityResult</code> I am reading the inputstream of the fil... | I am starting a ACTION_GET_CONTENT intent from a DialogFragment where the user can select files. When the files are selected, the activity finishes and onActivityResult is executed with the result. In onActivityResult I am reading the inputstream of the files which could take a while because some files are downloaded f... | android|android-progressbar | 1 | 2016-05-10T11:56:13.417Z | 2,016 | 5 | 11 | 1 | 982 | 3 | 615 | 64 | 2 | 1 | true | false | false | false | false | false | low |
37,137,923 | On Demand downloading levels in HTML5 Mobile Application | <p>So after spending some time with Meteor, I found that this is probably the best isomorphic data-centric framework to build web applications.</p>
<p>I am currently trying to build an HTML5 mobile application for Kids (Under 5 Years), the content of the application should get updated as the child progresses solving a... | So after spending some time with Meteor, I found that this is probably the best isomorphic data-centric framework to build web applications. I am currently trying to build an HTML5 mobile application for Kids (Under 5 Years), the content of the application should get updated as the child progresses solving and interact... | javascript|android|html|cordova|meteor | 2 | 2016-05-10T12:00:14.873Z | 2,016 | 5 | 12 | 1 | 31 | 0 | 1,135 | 56 | 5 | 0 | false | true | false | false | false | false | low |
37,137,990 | onOptionsItemSelected(MenuItem item) opens wrong activity | <p>I have a menu on action bar that should open a specific activity on click, im calling the activity that i want to open (MaininsertActivity.java) but the view i get to see its activity_main2.xml</p>
<p><strong>MainActivity.java</strong></p>
<pre><code> package com.example.bugdroid.trabalhoapp1;
import android.c... | I have a menu on action bar that should open a specific activity on click, im calling the activity that i want to open (MaininsertActivity.java) but the view i get to see its activity_main2.xml MainActivity.java [CODE] MaininsertActivity.java [CODE] Main2Activity.java [CODE] This is my project tree: https://gyazo.com/e... | java|android | 0 | 2016-05-10T12:03:03.410Z | 2,016 | 5 | 12 | 1 | 157 | 5 | 351 | 57 | 2 | 3 | true | false | false | false | false | false | zero |
37,138,057 | Unit testing method which is instantiating final unmockable class | <p>This is a bit Android specific but it can be applicable to non-Android projects.</p>
<p>I have this class which maps a <code>FilterEntity</code> to <code>ContentValues</code>. <code>FilterEntity</code> is a data structure that I created and control while <code>ContentValues</code> is a final class from the Android ... | This is a bit Android specific but it can be applicable to non-Android projects. I have this class which maps a FilterEntity to ContentValues . FilterEntity is a data structure that I created and control while ContentValues is a final class from the Android SDK which will throw a RuntimeException if it is not mocked. [... | java|android|unit-testing|mocking|android-sqlite | 0 | 2016-05-10T12:06:09.870Z | 2,016 | 5 | 12 | 1 | 177 | 1 | 995 | 65 | 5 | 2 | true | false | false | false | false | false | zero |
37,138,102 | Loading images from sdcard into a gridview throwing Out of memory exception? | <p>Well from 2 days i am struggling, please someone help me to solve this issue.</p>
<p>I want to load the list of all images in the external storage into my gridview.</p>
<p>I was able to get the list of images from the system using this method.</p>
<pre><code> public static ArrayList<String> getFilePaths(Ac... | Well from 2 days i am struggling, please someone help me to solve this issue. I want to load the list of all images in the external storage into my gridview. I was able to get the list of images from the system using this method. [CODE] Now the trickiest part comes, i know that i cannot load the actual images as it eat... | android|image|gridview|bitmap | 0 | 2016-05-10T12:08:08.133Z | 2,016 | 5 | 12 | 1 | 106 | 2 | 969 | 76 | 4 | 5 | true | false | false | false | false | false | zero |
37,138,154 | How to get Current open Application package name in android Lollipop and marshmallow | <p>i am trying to get Currently open application package name and i got in kitkat but it will not work in android lollipop, it will every time return the my install application package name i don't know why this happening, code </p>
<pre><code>private void getAppInfoLowerLolipop(Context aContext) {
ActivityManager... | i am trying to get Currently open application package name and i got in kitkat but it will not work in android lollipop, it will every time return the my install application package name i don't know why this happening, code [CODE] and for the android lollipop and marshmallow [CODE] And in manifest file i give permissi... | android|android-recents | 0 | 2016-05-10T12:09:59.043Z | 2,016 | 5 | 12 | 1 | 474 | 0 | 351 | 84 | 2 | 3 | true | true | false | false | false | false | zero |
37,138,201 | Selector doesn't change color on API higher then 21 | <p>I need to change color of the ImageButton when user pressing it. It works as I expect on APIs 19 and 21 but on API higher then 21 it doesn't and I can't understand why.</p>
<p>Here is XML of selector:</p>
<pre><code><selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:st... | I need to change color of the ImageButton when user pressing it. It works as I expect on APIs 19 and 21 but on API higher then 21 it doesn't and I can't understand why. Here is XML of selector: [CODE] | android|selector | 0 | 2016-05-10T12:12:21.250Z | 2,016 | 5 | 12 | 1 | 222 | 2 | 200 | 51 | 2 | 1 | true | false | false | false | false | false | zero |
37,138,211 | mediaplayer start/stop button error | <p>i've read other questions asked before but still have a problem.
my media player gives me an NPE error when i open my activity and the app crashes. </p>
<p>i'm a beginner. and keep in mind that i have 14 other activities that use mp1, mp2, mp3 and ... . the problem is with my button i guess, i need it to: when cli... | i've read other questions asked before but still have a problem. my media player gives me an NPE error when i open my activity and the app crashes. i'm a beginner. and keep in mind that i have 14 other activities that use mp1, mp2, mp3 and ... . the problem is with my button i guess, i need it to: when clicked start pl... | java|android|eclipse | 0 | 2016-05-10T12:12:50.573Z | 2,016 | 5 | 12 | 1 | 220 | 1 | 564 | 35 | 3 | 1 | true | false | false | false | false | false | zero |
37,138,213 | progressDialog in wrong tab | <p>I have 4 tabs in my application. One of them is for json parsing with progress dialog. But i see progres dialog at another tab.
<a href="https://i.stack.imgur.com/qvKWm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qvKWm.png" alt="enter image description here"></a></p>
<pre><code> @Override
... | I have 4 tabs in my application. One of them is for json parsing with progress dialog. But i see progres dialog at another tab. [CODE] And i want to see icons to left of text. Not above. Code from MainActivity [CODE] | android|tabs|progressdialog | 1 | 2016-05-10T12:13:03.627Z | 2,016 | 5 | 12 | 1 | 870 | 4 | 216 | 27 | 3 | 2 | true | false | false | false | false | false | low |
37,138,310 | How to override Theme.AppCompat.Light.DarkActionBar theme for edittext | <p>I am trying to create a style for EditText (MyEditText), which inherits from base theme and added extra property settings.</p>
<pre><code><style name="MyMaterialTheme" parent="MyMaterialTheme.Base">
<item name="homeAsUpIndicator">@drawable/ic_back_indicator</item>
</style>
<style nam... | I am trying to create a style for EditText (MyEditText), which inherits from base theme and added extra property settings. [CODE] When applied MyEditText style to EditText control, existing styles (from theme) seems to be overridden (like line under EditText vanished). Same thing happens when background is changed for ... | android|material-design | 1 | 2016-05-10T12:17:32.400Z | 2,016 | 5 | 12 | 1 | 1,096 | 2 | 537 | 70 | 2 | 2 | true | false | false | false | false | false | low |
37,138,424 | Android Button Animation spin 180 degree | <p>I have a simple android project that is a blank activity page with a button at the center . I want when i click on button it spin 180 degree (Like the image matching game when click the button return and the background show ).</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/andro... | I have a simple android project that is a blank activity page with a button at the center . I want when i click on button it spin 180 degree (Like the image matching game when click the button return and the background show ). [CODE] Sorry for my bad english and my easy question . Thanks. | android | 0 | 2016-05-10T12:21:59.903Z | 2,016 | 5 | 12 | 1 | 761 | 2 | 289 | 40 | 1 | 1 | true | false | false | false | false | false | zero |
37,138,426 | Soft keyboard covering EditText Fields android | <p>I have number of Edit Texts in the layout file, the soft keyboard is covering some of the Edit texts. I want whole Edit texts should scroll up if user clicks on first edit text so that all the fields should be visible at a time. I tried adding ScroolView,isScrollContainer,orientation:vertical, requestFocus, android:... | I have number of Edit Texts in the layout file, the soft keyboard is covering some of the Edit texts. I want whole Edit texts should scroll up if user clicks on first edit text so that all the fields should be visible at a time. I tried adding ScroolView,isScrollContainer,orientation:vertical, requestFocus, android:ime... | android-layout|scroll|android-edittext|soft-keyboard | 0 | 2016-05-10T12:22:02.027Z | 2,016 | 5 | 12 | 1 | 507 | 1 | 567 | 46 | 4 | 3 | true | false | false | false | false | false | zero |
37,138,453 | How do I prevent or avoid the soft keyboard from pushing my view up? | <p>I have two relative layout at the top of my app, and a linear layout which contains edit text and one button at the bottom of bottom of my app, when i click the edit text to input some words the soft keyboard show and pushes the top of layout up. </p>
<p>This is normal status view :<a href="https://i.stack.imgur.co... | I have two relative layout at the top of my app, and a linear layout which contains edit text and one button at the bottom of bottom of my app, when i click the edit text to input some words the soft keyboard show and pushes the top of layout up. This is normal status view : Normal status This is keyboard pop up view: ... | android|layout|keyboard|scrollview | 0 | 2016-05-10T12:22:53.767Z | 2,016 | 5 | 12 | 1 | 524 | 0 | 892 | 68 | 4 | 1 | true | true | false | false | false | false | zero |
37,138,485 | How to set ToolBar instead of ActionBar | <p>I have implemented in one Android application a Drawer Navigation with Action bar. Now, I want insert Toolbar instead of Action bar, because it is deprecated. But I'm not able to do this.</p>
<pre><code>public class AndroidNavDrawerActivity extends AppCompatActivity
implements NavigationDrawerFragment.Navig... | I have implemented in one Android application a Drawer Navigation with Action bar. Now, I want insert Toolbar instead of Action bar, because it is deprecated. But I'm not able to do this. [CODE] This is NavigationDrawerFragment.java [CODE] fragment_main.xml [CODE] | android|android-actionbar|android-toolbar | 0 | 2016-05-10T12:24:14.873Z | 2,016 | 5 | 12 | 1 | 5,871 | 2 | 264 | 39 | 3 | 3 | true | false | true | false | false | false | zero |
37,138,540 | Android app camera preview stopped working (using deprecated `setType` method) | <p>I have a camera app that had a Camera Preview which worked. The app was developed some years ago (2012) and i decided to reuse parts of its code, but, upon testing again (on same hardware i9100, different OS 4.4 vs 3.0), my camera preview image has a problem</p>
<p><a href="https://i.stack.imgur.com/wrCdw.png" rel... | I have a camera app that had a Camera Preview which worked. The app was developed some years ago (2012) and i decided to reuse parts of its code, but, upon testing again (on same hardware i9100, different OS 4.4 vs 3.0), my camera preview image has a problem when i move the phone, i see the image change and it responds... | android|android-camera | -1 | 2016-05-10T12:26:38.950Z | 2,016 | 5 | 12 | 1 | 452 | 2 | 471 | 78 | 2 | 1 | true | false | false | false | false | true | negative |
37,138,597 | How to populate data in AutoCompleteTextView? | <p>I have to show two section in <code>AutoCompleteTextView</code> (Something like this):</p>
<p><a href="https://i.stack.imgur.com/gyjcS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gyjcS.png" alt="enter image description here"></a></p>
<p>I have created a <code>custom layout</code> which have ... | I have to show two section in AutoCompleteTextView (Something like this): I have created a custom layout which have two CardViews and each CardView have three TextViews . Right now I am not distributing the section on the basis of type . The whole data is loaded into one section. Activity [CODE] AutocompleteLocalityAda... | android|android-layout|android-recyclerview|android-adapter|autocompletetextview | 3 | 2016-05-10T12:28:58.880Z | 2,016 | 5 | 12 | 1 | 626 | 1 | 662 | 45 | 5 | 2 | true | false | false | false | false | false | low |
37,138,661 | create multiple table using sqlite | <p>i try to create 3 table in my databse using sqlite, I navigate between the fragment through drawer navigation ,
DVD table works but for the CD table
i have an error : Caused By : SQL(query) error or missing database.
(no such table: CD (... | i try to create 3 table in my databse using sqlite, I navigate between the fragment through drawer navigation , DVD table works but for the CD table i have an error : Caused By : SQL(query) error or missing database. (no such table: CD (code 1): , while compiling: SELECT * FROM CD) [CODE] Fragment dvd [CODE] fragment C... | android|database|sqlite|android-fragments | -1 | 2016-05-10T12:31:25.140Z | 2,016 | 5 | 12 | 1 | 608 | 1 | 328 | 34 | 4 | 3 | true | false | false | false | false | true | negative |
37,138,752 | Keystore SHA1 different from cert.rsa SHA1 from APK | <p>I have an android app (and its production keystore) that was first created with Adobe Air. Long time ago the company switched to the regular Android SDK to develop the app but as the app was already in production, the keystore we use is still the same one (created then by Adobe Air).</p>
<p>I used keytool to extrac... | I have an android app (and its production keystore) that was first created with Adobe Air. Long time ago the company switched to the regular Android SDK to develop the app but as the app was already in production, the keystore we use is still the same one (created then by Adobe Air). I used keytool to extract the SHA1 ... | android|ssl|air|keystore|android-keystore | 6 | 2016-05-10T12:35:56.833Z | 2,016 | 5 | 12 | 1 | 1,812 | 4 | 1,216 | 51 | 5 | 3 | true | false | false | false | false | false | medium |
37,138,768 | RSA Encryption Decryption Android | <p>I have a settings screen where I want the user to fill personal details.
I want to keep them in sharedpreferences.
I would like to encrypt the data before saving in Sharedpreferences.
Only when it is used, it's in another application activity decrypt what exists in sharedpreferences and use it.
For this purpose I en... | I have a settings screen where I want the user to fill personal details. I want to keep them in sharedpreferences. I would like to encrypt the data before saving in Sharedpreferences. Only when it is used, it's in another application activity decrypt what exists in sharedpreferences and use it. For this purpose I encry... | android|sharedpreferences|rsa | -1 | 2016-05-10T12:36:37.640Z | 2,016 | 5 | 12 | 1 | 318 | 1 | 714 | 33 | 3 | 4 | true | false | false | false | false | true | negative |
37,138,795 | My Android App starts automatically | <p>EDIT: found out its a problem with my messagereceiving service for push notifications. if i stop service on closing the app the problem doesn't appear anymore but if i click on the received notification in my phone, it starts my app from the wrong activity...
in my messagereceivingservice.java i do</p>
<pre><code> ... | EDIT: found out its a problem with my messagereceiving service for push notifications. if i stop service on closing the app the problem doesn't appear anymore but if i click on the received notification in my phone, it starts my app from the wrong activity... in my messagereceivingservice.java i do [CODE] so is this th... | android|restart | 0 | 2016-05-10T12:37:33.420Z | 2,016 | 5 | 12 | 1 | 91 | 2 | 1,002 | 35 | 2 | 3 | true | false | false | false | false | false | zero |
37,139,060 | AndroidManifest complains Element Application(and MultiDexApplication) is not allowed here | <p>I am sorry if this seems like a duplicate post. Trust me it is not. I have searched all over stackoverflow and the internet but couldn't find any helpful solution.</p>
<p>Everything was fine till i added this line to my android studio</p>
<pre><code>compile 'com.dlazaro66.qrcodereaderview:qrcodereaderview:1.0.0'
c... | I am sorry if this seems like a duplicate post. Trust me it is not. I have searched all over stackoverflow and the internet but couldn't find any helpful solution. Everything was fine till i added this line to my android studio [CODE] Then i realised that the app fails to build. Something about duplicate method declara... | android|android-activity|android-gradle-plugin|android-multidex | 0 | 2016-05-10T12:49:00.217Z | 2,016 | 5 | 12 | 1 | 239 | 2 | 791 | 90 | 4 | 3 | true | false | false | false | false | false | zero |
37,139,117 | Sending JSON in POST request with retrofit | <p>I've seen this questions many times and tried many solutions but without resolving my problem, I'm trying to send a json in a POST request using retrofit, I'm not an expert in programming so I may miss something obvious.</p>
<p>My JSON is in a string and looks like that:</p>
<pre><code>{"id":1,"nom":"Hydrogène","s... | I've seen this questions many times and tried many solutions but without resolving my problem, I'm trying to send a json in a POST request using retrofit, I'm not an expert in programming so I may miss something obvious. My JSON is in a string and looks like that: [CODE] My Interface (called APIService.java ) looks lik... | java|android|json|post|retrofit | 14 | 2016-05-10T12:51:07.210Z | 2,016 | 5 | 12 | 1 | 22,615 | 1 | 605 | 42 | 5 | 4 | true | false | true | true | true | false | medium |
37,139,233 | Android Gcm onMessage().. Recived "null" on some devices why? | <p>Android Gcm onMessage().. Received "null" on some devices Like "Android 4.4 LG GPad 1.0" and "Android 6.0 Lg G4"..
But in some devices Gcm recives correct message Like "Android 5.1 Samsung J5 and J2"...
What is the issue which i cant get ....
Here is the code...</p>
<pre><code> protected void onMessage(Context con... | Android Gcm onMessage().. Received "null" on some devices Like "Android 4.4 LG GPad 1.0" and "Android 6.0 Lg G4".. But in some devices Gcm recives correct message Like "Android 5.1 Samsung J5 and J2"... What is the issue which i cant get .... Here is the code... [CODE] | android|push-notification|google-cloud-messaging|android-notifications | -2 | 2016-05-10T12:56:18.177Z | 2,016 | 5 | 12 | 1 | 393 | 2 | 269 | 61 | 4 | 1 | true | false | false | false | false | true | negative |
37,139,235 | android studio programming , error in the classes | <pre><code>package rms.example.com.rms;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class CaddActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView... | [CODE] please help me in my code as i receive error in cadd (cannot resolve symbol cadd) . my other classes also have the same problem. this is my uni project and i am new to android programming thank you for your support | android | -3 | 2016-05-10T12:56:32.893Z | 2,016 | 5 | 12 | 1 | 43 | 5 | 221 | 49 | 1 | 1 | true | false | false | false | false | true | negative |
37,139,377 | Progress Dialog for AsyncTask Implementation in sending multiple sms | <p><br/><br/> I m working on SMS feature of android and I can send users location and address via sms to a limited number of contacts as its my apps requirement , now i want to implement Progress dialog so when users click on the send button the progress dialog should be appear and after sending sms to all contacts the... | I m working on SMS feature of android and I can send users location and address via sms to a limited number of contacts as its my apps requirement , now i want to implement Progress dialog so when users click on the send button the progress dialog should be appear and after sending sms to all contacts the progress dial... | java|android|android-asynctask|sms|progressdialog | 0 | 2016-05-10T13:02:40.017Z | 2,016 | 5 | 13 | 1 | 529 | 2 | 704 | 68 | 5 | 1 | true | false | false | false | false | false | zero |
37,139,397 | How to vertically extend or fill the screen with custom ExpandedListView | <p>I have a custom 3 - level <code>ExpandableListView</code> with 2 custom <code>ExpandableListAdapter</code>.</p>
<p>In the <code>ParentAdapter</code> inside <code>getChildView</code> I create an instance of <code>CustomExpandableListView</code> and setting my <code>ChildAdapter</code> to it like this:</p>
<pre><cod... | I have a custom 3 - level ExpandableListView with 2 custom ExpandableListAdapter . In the ParentAdapter inside getChildView I create an instance of CustomExpandableListView and setting my ChildAdapter to it like this: [CODE] Some screenshots: This is what I get when my China regions are hidden: And this one when they a... | android|android-layout|expandablelistview | 0 | 2016-05-10T13:03:31.167Z | 2,016 | 5 | 13 | 1 | 81 | 1 | 1,029 | 72 | 3 | 3 | true | false | false | false | false | false | zero |
37,139,525 | Firebase chat app: query messages, optimize query that should be OR, or improve NoSQL db structure | <p>I'm developing an app on Android using Firebase that should embed a chat.</p>
<p>My issue is that to fetch messages, I need to query all the messages which have my uid either in sender or receiver field. This would be extremely easy to do in MySQL, but in Firebase (I must stick onto Firebase) looks kinda pain.</p>
... | I'm developing an app on Android using Firebase that should embed a chat. My issue is that to fetch messages, I need to query all the messages which have my uid either in sender or receiver field. This would be extremely easy to do in MySQL, but in Firebase (I must stick onto Firebase) looks kinda pain. I cannot just f... | java|android|firebase|firebase-realtime-database|nosql | 1 | 2016-05-10T13:08:40.140Z | 2,016 | 5 | 13 | 1 | 1,329 | 1 | 1,331 | 98 | 5 | 0 | false | false | false | false | false | false | low |
37,139,682 | How to configure Media Codec AAC Decoder (Audio sent with Gstreamer) | <p>I want to build an app that plays AAC audio stream sent by my <strong>Raspberry Pi</strong> with <strong>Gstreamer</strong>. This is the pipeline I set in Gstreamer:</p>
<pre><code>gst-launch-1.0 audiotestsrc ! faac "bitrate=64000" ! "audio/mpeg, mpegversion=4, rate = 44100, channels = 1" ! mux. mpegtsmux name=mux!... | I want to build an app that plays AAC audio stream sent by my Raspberry Pi with Gstreamer . This is the pipeline I set in Gstreamer: [CODE] It encodes the audio data in AAC LC as mp4 with a bitrate of 64000, a sample rate of 44100 and 1 channel in a mpeg ts container. I set my decoder with the following code: [CODE] I ... | android|gstreamer|audio-streaming|android-mediacodec|aac | 5 | 2016-05-10T13:16:05.087Z | 2,016 | 5 | 13 | 1 | 1,781 | 0 | 584 | 68 | 5 | 4 | true | true | false | false | false | false | low |
37,139,750 | swipe ViewPager error | <p>i am creating a swipe view pager and i gave downloaded a demo and i am using it in my project , but the problem is that this part of my code:</p>
<pre><code>public class ViewPagerDemo extends Activity implements ViewPager.OnPageChangeListener, View.OnClickListener{
protected View view;
private ImageButton btnNext,... | i am creating a swipe view pager and i gave downloaded a demo and i am using it in my project , but the problem is that this part of my code: [CODE] @override and the R.layout ....container gets a red underline and this part intro_images.setOnPageChangeListener(this); has a line on it . so when i run the project i get ... | android|android-viewpager | 1 | 2016-05-10T13:18:34.420Z | 2,016 | 5 | 13 | 1 | 103 | 1 | 382 | 21 | 2 | 3 | true | false | false | false | false | false | low |
37,139,929 | GeoFence alert does not show | <p>After adding a geofence using below code, Notification is not showing.Even onResult callback is returing the success.</p>
<p>Adding geofence in <code>GoogleApiClientApi onConnected()</code> callback method:</p>
<pre><code>public void onConnected(Bundle bundle) {
LocationServices.GeofencingApi.addGeofences(... | After adding a geofence using below code, Notification is not showing.Even onResult callback is returing the success. Adding geofence in GoogleApiClientApi onConnected() callback method: [CODE] Requesting Geofence: [CODE] onResult() callback; [CODE] Intent Service which triggers the Notification: [CODE] I think the Int... | android|google-maps|android-maps-v2|geofencing|android-geofence | 0 | 2016-05-10T13:24:56.457Z | 2,016 | 5 | 13 | 1 | 778 | 1 | 368 | 28 | 5 | 4 | true | false | false | false | false | false | zero |
37,139,979 | NullpointerException while using RealM | <p>I am using the RealM Library to store my values in the database.
The problem is that since RealM does not support AutoIncrement i am trying to implement it by my own.</p>
<p>This is my modal class:</p>
<pre><code>public class User extends RealmObject{
@PrimaryKey
private int id;
private String name;
... | I am using the RealM Library to store my values in the database. The problem is that since RealM does not support AutoIncrement i am trying to implement it by my own. This is my modal class: [CODE] I my main class i have a function named insertValues in which i am inserting the data in the database. [CODE] My Logcat: [... | java|android|realm | 1 | 2016-05-10T13:26:57.453Z | 2,016 | 5 | 13 | 1 | 884 | 2 | 325 | 38 | 3 | 3 | true | false | false | false | false | false | low |
37,140,086 | How can I create a properly displayed view with multiple lines? | <p>I use a list for displaying a bunch of items with multiple texts. I want to have 2 TextView objects inside each item. My problem is that I can't adjust the properties to be able to stay proper when the user changes the text sizes (e.g.: when the user has eye problems, he might increase the system font size.) and it ... | I use a list for displaying a bunch of items with multiple texts. I want to have 2 TextView objects inside each item. My problem is that I can't adjust the properties to be able to stay proper when the user changes the text sizes (e.g.: when the user has eye problems, he might increase the system font size.) and it tot... | android|user-interface | -1 | 2016-05-10T13:31:37.597Z | 2,016 | 5 | 13 | 1 | 32 | 1 | 842 | 63 | 2 | 1 | true | false | false | false | false | true | negative |
37,140,141 | New Fragment is not Opening | <p>i'm trying to open a new fragment from recyclerview adapter<br>
but when i click on the item ... my app crashes </p>
<p>i've tried some solution but they didn't work
and i'm totally newbee in coding and android</p>
<p>here is my adapter class</p>
<pre><code>public class RecyclerViewDataAdapter extends RecyclerVi... | i'm trying to open a new fragment from recyclerview adapter but when i click on the item ... my app crashes i've tried some solution but they didn't work and i'm totally newbee in coding and android here is my adapter class [CODE] } here is the logcat [CODE] here is the class where i called the adapter [CODE] } Here is... | android|fragment|android-recyclerview | 0 | 2016-05-10T13:33:53.357Z | 2,016 | 5 | 13 | 1 | 1,422 | 2 | 335 | 27 | 3 | 4 | true | false | false | false | false | false | zero |
37,140,151 | loading recycler/listview items efficiently | <p>I have an app that loads items from a <code>sql database</code> on my phone, what I do is I load the items from the <code>onResume()</code> method but looking at things its not the most efficient way, I can always see the items loading while when I look at other applications like <code>whatsApp</code> or <code>conta... | I have an app that loads items from a sql database on my phone, what I do is I load the items from the onResume() method but looking at things its not the most efficient way, I can always see the items loading while when I look at other applications like whatsApp or contacts App one cannot even see the items loading. W... | android|sqlite|android-recyclerview | 0 | 2016-05-10T13:34:19.773Z | 2,016 | 5 | 13 | 1 | 177 | 1 | 601 | 43 | 3 | 2 | true | false | false | false | false | false | zero |
37,140,159 | Leaked window in android webview progress dialog | <p>I am getting leaked window due to progress dialog. Already tried progress.dismiss (one of given answer) upon finishing the loading of page. Couldnt figure out the reason of crash :/
If you get any idea, please share. </p>
<pre><code>public class Webview3 extends Activity {
private WebView webView;
ProgressDialog pr... | I am getting leaked window due to progress dialog. Already tried progress.dismiss (one of given answer) upon finishing the loading of page. Couldnt figure out the reason of crash :/ If you get any idea, please share. [CODE] This is my error log which tells the area of problem are progressDialog.show(); and progressDial... | android|webview|progressdialog | 0 | 2016-05-10T13:34:33.783Z | 2,016 | 5 | 13 | 1 | 331 | 2 | 360 | 48 | 3 | 2 | true | false | false | false | false | false | zero |
37,140,167 | Socket.io java client get same message more than one time | <p>I am using <strong>socket.io</strong> on my android chat application. In order to keep connection alive, I am connecting socket in a service which is started in main activity. And I check if socket is connected. If it is not, I make socket connection. Here is my codes:</p>
<pre><code>try {
mSocket = IO.sock... | I am using socket.io on my android chat application. In order to keep connection alive, I am connecting socket in a service which is started in main activity. And I check if socket is connected. If it is not, I make socket connection. Here is my codes: [CODE] Connections works perfectly. My service sends message using ... | java|android|socket.io|client | 1 | 2016-05-10T13:34:54.393Z | 2,016 | 5 | 13 | 1 | 936 | 1 | 775 | 57 | 4 | 4 | true | false | false | false | false | false | low |
37,140,210 | View overlay on android | <p>I have problem with overlaying view. It's styling in react-native (v0.24)
A picture says more:
<a href="https://i.stack.imgur.com/ki4VM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ki4VM.png" alt="enter image description here"></a></p>
<p>On ios all work good. Bud android is always broken.
... | I have problem with overlaying view. It's styling in react-native (v0.24) A picture says more: On ios all work good. Bud android is always broken. View arrow spills over the edge. It is well. But Android can not do it. Do you know what is wrong? Thanks for the reply [CODE] .... [CODE] | android|react-native | 0 | 2016-05-10T13:36:21.843Z | 2,016 | 5 | 13 | 1 | 72 | 0 | 285 | 23 | 2 | 2 | true | true | false | false | false | false | zero |
37,140,222 | Two requests per ListItem to load image in RecyclerView | <p>I have a RecyclerView.Adapter with Artists. I use the artist's name to look it up on Spotify (<a href="https://developer.spotify.com/web-api/search-item/" rel="nofollow">https://developer.spotify.com/web-api/search-item/</a>) to get a thumbnail for each artist. Then I use the url of the thumbnail to fetch the image.... | I have a RecyclerView.Adapter with Artists. I use the artist's name to look it up on Spotify ( https://developer.spotify.com/web-api/search-item/ ) to get a thumbnail for each artist. Then I use the url of the thumbnail to fetch the image. At the moment I'm using Glide for ImageLoading and Caching. The problem is that ... | android|image|android-recyclerview|retrofit|spotify | 0 | 2016-05-10T13:36:41.863Z | 2,016 | 5 | 13 | 1 | 413 | 1 | 788 | 55 | 5 | 1 | true | false | false | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.