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,976,011 | How to change material designed dialog positive button background correctly | <p>I have the following dialog</p>
<p><a href="https://i.stack.imgur.com/odAEM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/odAEM.png" alt="enter image description here"></a></p>
<p>It is created by using the following code</p>
<pre><code>@Override
public Dialog onCreateDialog(Bundle savedInstanceState)... | I have the following dialog It is created by using the following code [CODE] Since, we want to draw user attention on the positive button (RATE 5 STARS). We tend to Have a white button text color Have a blue button background color We add the following code, just before returning dialog [CODE] We get the following outc... | android | 5 | 2016-05-02T06:14:23.213Z | 2,016 | 5 | 6 | 0 | 3,091 | 3 | 775 | 75 | 1 | 2 | true | false | true | false | false | false | low |
36,976,130 | Error in adding file to MultipartEntityBuilder in android | <p>In my Android project I'm using MultipartEntityBuilder in uploading files to backend using an AsyncTask. I'm using httpmime-4.5.2 in my project.my doInBackground method in uploading AsyncTask is as below.</p>
<pre><code>@Override
protected String doInBackground(String... params) {
try {
... | In my Android project I'm using MultipartEntityBuilder in uploading files to backend using an AsyncTask. I'm using httpmime-4.5.2 in my project.my doInBackground method in uploading AsyncTask is as below. [CODE] but when the AsyncTask is executing it gives me following error. [CODE] so whats wrong with this code. how c... | android|http|android-asynctask | 0 | 2016-05-02T06:24:45.960Z | 2,016 | 5 | 6 | 0 | 1,737 | 1 | 354 | 57 | 3 | 2 | true | false | false | false | false | false | zero |
36,976,163 | Push icons away when expandig searchview in android toolbar | <p>I'm facing this particular behaviour and I don't know how to fix it..</p>
<p>In my activity I have this toolbar:</p>
<p><a href="https://i.stack.imgur.com/5mjTT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5mjTT.png" alt="enter image description here"></a></p>
<p>And when you click on the search icon... | I'm facing this particular behaviour and I don't know how to fix it.. In my activity I have this toolbar: And when you click on the search icon it expands and pushes the other icon to out of the view. I want to know how could I keep the icon on the right and reduce the search view space. This is my menu layout: [CODE] ... | android|layout|android-toolbar|android-menu | 6 | 2016-05-02T06:27:21.153Z | 2,016 | 5 | 6 | 0 | 1,721 | 3 | 564 | 59 | 4 | 4 | true | false | false | false | false | false | medium |
36,976,174 | How to show image and text in textview from json in Android | <p>I want to develop android application for one website and I want read website posts from <code>json</code> and show then in <code>RecyclerView</code>. <br>
I want show image ( <code><img></code> ) into <code>TextView</code>! My mean has show Text and Image in TextView.<br>
<strong>JSON code :</strong> </p>
<p... | I want to develop android application for one website and I want read website posts from json and show then in RecyclerView . I want show image ( <img> ) into TextView ! My mean has show Text and Image in TextView. JSON code : [CODE] Json code for show text and image : [CODE] Activity codes: [CODE] I want show image an... | android|json | 2 | 2016-05-02T06:27:54.387Z | 2,016 | 5 | 6 | 0 | 597 | 2 | 526 | 59 | 2 | 3 | true | false | false | false | false | false | low |
36,976,375 | When I come back from other screens to ViewPager, then ViewPager is totally Blank, What could be the cause? | <p>This my ViewPagerAdapter where I am setting all my three fragments tabs
This my ViewPagerAdapter where I am setting all my three fragments tabs
if anyone there is to help me out.
if anyone there is to help me out.
if anyone there is to help me out.</p>
<pre><code>public class ViewPagerAdapter extends FragmentStateP... | This my ViewPagerAdapter where I am setting all my three fragments tabs This my ViewPagerAdapter where I am setting all my three fragments tabs if anyone there is to help me out. if anyone there is to help me out. if anyone there is to help me out. [CODE] | android|android-viewpager | 0 | 2016-05-02T06:42:25.647Z | 2,016 | 5 | 6 | 0 | 58 | 2 | 255 | 107 | 2 | 1 | true | false | false | false | false | false | zero |
36,976,382 | Getting error in android spinner in marshmallow | <p>I have used spinner to fetch all the schoolnames from database. as well as textbox to filter the schoolnames.It works well in all android versions except in android 6.o.
When i run the program in android 6.0 i am getting the following error:</p>
<p>Error: </p>
<blockquote>
<p>java.lang.RuntimeException: Unable... | I have used spinner to fetch all the schoolnames from database. as well as textbox to filter the schoolnames.It works well in all android versions except in android 6.o. When i run the program in android 6.0 i am getting the following error: Error: java.lang.RuntimeException: Unable to start activity ComponentInfo{penc... | android|filter|textview|android-spinner | 0 | 2016-05-02T06:43:21.153Z | 2,016 | 5 | 6 | 0 | 1,033 | 2 | 2,776 | 47 | 4 | 1 | true | false | false | false | false | false | zero |
36,976,531 | Nothing gets typed in EditText | <p>If focus changes from first EditText i.e mTxtFirstName and focus goes to mTxtEmail then validate if mTxtFirstName is empty.So following steps i do:-</p>
<blockquote>
<ol>
<li><p>The new focussed mTxtEmail will lose focus i.e mTxtEmail.ClearFocus() </p></li>
<li><p>mTxtFirstName will get focus again i.e mTxtF... | If focus changes from first EditText i.e mTxtFirstName and focus goes to mTxtEmail then validate if mTxtFirstName is empty.So following steps i do:- The new focussed mTxtEmail will lose focus i.e mTxtEmail.ClearFocus() mTxtFirstName will get focus again i.e mTxtFirstName.RequestFocus() mTxtFirstName shows error i.e mTx... | c#|android|xamarin|android-edittext | 0 | 2016-05-02T06:51:57.773Z | 2,016 | 5 | 6 | 0 | 105 | 2 | 849 | 30 | 4 | 2 | true | false | false | false | false | false | zero |
36,976,619 | URLConnection does not finish getting InputStream | <p>I create a connection to an authentication server (OAuth 2.0) to get an Token. The method which does this is the following: </p>
<pre><code>public static async Task<String> GetToken(string username, string password)
{
String response = null;
await Task.Run(() =>
... | I create a connection to an authentication server (OAuth 2.0) to get an Token. The method which does this is the following: [CODE] Unfortunately when I debug the code it always gets stuck at var stream = urlConnection.InputStream; and from there on nothing happens anymore (I tried waiting 15 minutes and using Postman t... | android|xamarin|oauth-2.0|httpurlconnection | 1 | 2016-05-02T06:57:27.697Z | 2,016 | 5 | 6 | 0 | 858 | 2 | 665 | 49 | 4 | 1 | true | false | false | false | false | false | low |
36,976,676 | Customize FlippableStackView | <p>I found <a href="https://github.com/blipinsk/FlippableStackView" rel="nofollow noreferrer">this</a> library and I'm trying to customize it. What I'm trying to do is to change the swipe from left-right to right left.
This is an image of what I want.</p>
<p><a href="https://i.stack.imgur.com/YjZ5h.png" rel="nofollow... | I found this library and I'm trying to customize it. What I'm trying to do is to change the swipe from left-right to right left. This is an image of what I want. I also found that others are trying to do the same thing, as you can read here . I triend to modify the onLayout method in OrientedViewPager [CODE] but I fail... | android|android-viewgroup|stackview|android-pagetransformer | 1 | 2016-05-02T07:00:12.743Z | 2,016 | 5 | 7 | 0 | 465 | 1 | 1,289 | 28 | 4 | 4 | true | false | false | false | false | false | low |
36,976,808 | How to get a table from SQLite DataBase stored in external memory | <p>I am working with DB in android. my db has three tables and i want to get a single table from them.Now I am reading my sqlite file success fully and writing into my desired place to some modification. but issue is that I do not know how to get a single table from database.db file. now i am getting db by using this p... | I am working with DB in android. my db has three tables and i want to get a single table from them.Now I am reading my sqlite file success fully and writing into my desired place to some modification. but issue is that I do not know how to get a single table from database.db file. now i am getting db by using this prog... | android|database|sqlite | -1 | 2016-05-02T07:08:00.920Z | 2,016 | 5 | 7 | 0 | 83 | 1 | 400 | 65 | 3 | 1 | true | false | false | false | false | true | negative |
36,976,961 | JSON Response is coming on Genymotion (Emulator) but not on actual device (My android phone) | <p>This is my async task which is retrieving JSON, it works fine on Emulator but when I try to retrieve it on actual phone it does not work</p>
<pre><code>public class BackgroundTask extends AsyncTask<Void,Void,String>
{
String Json_url;
String json_String;
@Override
protected voi... | This is my async task which is retrieving JSON, it works fine on Emulator but when I try to retrieve it on actual phone it does not work [CODE] This is were the result is shown when its running on gennymotion the result is shown but when on actual device the result is not shown in the textview , not showing any error n... | android|json|android-studio | 1 | 2016-05-02T07:17:33.020Z | 2,016 | 5 | 7 | 0 | 128 | 1 | 343 | 92 | 3 | 2 | true | false | false | false | false | false | low |
36,976,979 | ActivityCompat.requestPermissions not invoked | <p>I am checking permission using the following code. I always reach the part where shouldShowRequestPermissionRationale is true. Then the Toast is shown but the permission dialog is not shown.</p>
<pre><code>// checking permission
if (ContextCompat.checkSelfPermission(this,
"android.permission.WRITE_S... | I am checking permission using the following code. I always reach the part where shouldShowRequestPermissionRationale is true. Then the Toast is shown but the permission dialog is not shown. [CODE] Here's my app module: [CODE] In Manifest, I have declared the permission: [CODE] The app works fine in Lollipop device. I ... | android|permissions|request|runtime | 0 | 2016-05-02T07:18:38.010Z | 2,016 | 5 | 7 | 0 | 522 | 1 | 373 | 45 | 4 | 3 | true | false | false | false | false | false | zero |
36,977,041 | Retrofit - @Body parameters cannot be used with form or multi-part encoding. (parameter #1) | <p>I want to send the local gallery image to api. I have added that images as a multipart typedfile and iam also sending some string data in the same api as a multipart typedstring.</p>
<p>So when i hit the api am getting this response.</p>
<blockquote>
<p>@Body parameters cannot be used with form or multi-part enc... | I want to send the local gallery image to api. I have added that images as a multipart typedfile and iam also sending some string data in the same api as a multipart typedstring. So when i hit the api am getting this response. @Body parameters cannot be used with form or multi-part encoding. (parameter #1) My code: [CO... | android|retrofit | 1 | 2016-05-02T07:21:59.700Z | 2,016 | 5 | 7 | 0 | 12,787 | 2 | 560 | 91 | 2 | 2 | true | false | true | true | false | false | low |
36,977,058 | GridLayout does not expand elements evenly | <p>i am trying to use GridView to divide the screen into six equal pieces. The problem is that it displays properly in the emulator but when i view it from the phone then the space is distributed unevenly. What could cause this behavior? </p>
<p>I have tested this with API 21 & API 22 phones.</p>
<p>Emulator vs P... | i am trying to use GridView to divide the screen into six equal pieces. The problem is that it displays properly in the emulator but when i view it from the phone then the space is distributed unevenly. What could cause this behavior? I have tested this with API 21 & API 22 phones. Emulator vs Phone: This is my xml: [C... | android|grid-layout | 2 | 2016-05-02T07:22:55.517Z | 2,016 | 5 | 7 | 0 | 268 | 1 | 324 | 42 | 2 | 1 | true | false | false | false | false | false | low |
36,977,070 | How to access systems live wallpaper in my own launcher | <p>When I am calling the service it is not opening the live wallpaper selector.</p>
<p>Here is my code for selection the live wallpaper : </p>
<pre><code>public class LiveWallpaper extends WallpaperService {
@Override
public Engine onCreateEngine() {
return new WallpaperEngine();
}
private class WallpaperEngine ... | When I am calling the service it is not opening the live wallpaper selector. Here is my code for selection the live wallpaper : [CODE] And here is how I am calling the service [CODE] Is there some problem in my code? Thanks in advance :) | android|live-wallpaper|wallpaper|android-wallpaper | 2 | 2016-05-02T07:23:41.173Z | 2,016 | 5 | 7 | 0 | 90 | 0 | 237 | 55 | 4 | 2 | true | true | false | false | false | false | low |
36,977,139 | How to display documents from URL without external app? | <p>In my app I am getting URLs of the documents, and I want to display them in my app, not in any external app. </p>
<p>This is the code I have used.</p>
<pre><code>public class Doc_webview extends Activity implements AdvancedWebView.Listener{
private AdvancedWebView mWebView;
String tag="doc";
@Override
... | In my app I am getting URLs of the documents, and I want to display them in my app, not in any external app. This is the code I have used. [CODE] I only want to display them, not open them for editing. | android|url|document | -2 | 2016-05-02T07:27:25.670Z | 2,016 | 5 | 7 | 0 | 275 | 1 | 201 | 55 | 3 | 1 | true | false | false | false | false | true | negative |
36,977,202 | How to get opencv samples to work with Android Studio 2.1 | <p>I'm having a hell of a time trying to get opencv to work with Android Studio. I've followed all of the obvious tutorials, but can't get the opencv version 2.4.11 sample code to work at all.</p>
<p>The app compiles, but when trying to run it I simply get an error message on the phone:</p>
<pre><code>Unfortunately ... | I'm having a hell of a time trying to get opencv to work with Android Studio. I've followed all of the obvious tutorials, but can't get the opencv version 2.4.11 sample code to work at all. The app compiles, but when trying to run it I simply get an error message on the phone: [CODE] and logcat: [CODE] I'm trying to wo... | android|opencv | 0 | 2016-05-02T07:30:45.027Z | 2,016 | 5 | 7 | 0 | 332 | 1 | 710 | 57 | 2 | 3 | true | false | false | false | false | false | zero |
36,977,220 | AlarmManager RTC_WAKEUP drains battery | <p>I have a service running in the background which periodically downloads data from the server. I need to download the data after every one hour. But the battery is draining fast. The code is as below. How do I make the alarm power efficient? </p>
<pre><code>public class BackgroundFetchService extends Service {
... | I have a service running in the background which periodically downloads data from the server. I need to download the data after every one hour. But the battery is draining fast. The code is as below. How do I make the alarm power efficient? [CODE] | android|android-service|alarmmanager | 1 | 2016-05-02T07:31:48.690Z | 2,016 | 5 | 7 | 0 | 794 | 1 | 247 | 38 | 3 | 1 | true | false | false | false | false | false | low |
36,977,225 | Android Fragment SetTitle() is not working | <p>setTitle(menuItem.getTitle()) is not working whenever a fragment is called it is not setting up.Whenever I tried to change or jump from one fragment to another at that time action bar is set with app name only.</p>
<pre><code> public class MainActivity extends AppCompatActivity {
Toolbar mToolBar;
Navig... | setTitle(menuItem.getTitle()) is not working whenever a fragment is called it is not setting up.Whenever I tried to change or jump from one fragment to another at that time action bar is set with app name only. [CODE] | android|android-fragments | 0 | 2016-05-02T07:32:30.540Z | 2,016 | 5 | 7 | 0 | 379 | 2 | 217 | 42 | 2 | 1 | true | false | false | false | false | false | zero |
36,977,284 | Unexpected response code 429 when using Volley in Android? | <p>I'm able to fetch JSON information from a URL for a few minutes, however eventually it'll give me "Unexpected response code 429". The link is from Steam, I'm wondering if this is a problem with Volley or Steam? Here is my current implementation as it could be possible I'm missing something from my code.</p>
<pre><c... | I'm able to fetch JSON information from a URL for a few minutes, however eventually it'll give me "Unexpected response code 429". The link is from Steam, I'm wondering if this is a problem with Volley or Steam? Here is my current implementation as it could be possible I'm missing something from my code. [CODE] | java|android|http|android-volley | 1 | 2016-05-02T07:35:25.090Z | 2,016 | 5 | 7 | 0 | 2,101 | 1 | 311 | 58 | 4 | 1 | true | false | false | false | false | false | low |
36,977,374 | Android Studio NDK: Compile with ndk-build and get native support with Gradle Experimental | <p>In order to get indexing in the Android Studio editor I should add the following code in build.gradle:</p>
<pre><code>ndk {
moduleName "MyModule"
CFlags.add("-I${file("src/main/jni/headers1")}".toString())
CFlags.add("-I${file("src/main/jni/headers2")}".toString())
}
</code></pre... | In order to get indexing in the Android Studio editor I should add the following code in build.gradle: [CODE] but then gradle ignores my Android.mk, If I will remove this code from build.gradle, then I won't get proper indexing in the editor since all the header files are in those 2 folders. Is anyone knows how to make... | android|android-studio|java-native-interface|android-gradle-plugin|ndk-build | 2 | 2016-05-02T07:40:38Z | -1 | -1 | -1 | -1 | 1,286 | 1 | 488 | 90 | 5 | 2 | true | false | false | false | false | false | low |
36,977,396 | How to resolve "Cannot resolve method 'Insertdata'" in Java? | <p>I'm try to insert data to SQLite. But something are wrong in AddActivity.java. My concept is insert data to SQLite. After read data from data show list.</p>
<p>When click list on data list it will be show detail of this list.</p>
<p><img src="https://i.stack.imgur.com/MkwBY.png" alt="Click here to see a picture.">... | I'm try to insert data to SQLite. But something are wrong in AddActivity.java. My concept is insert data to SQLite. After read data from data show list. When click list on data list it will be show detail of this list. Here is the error: [CODE] myDBClass.java [CODE] AddActivity.java [CODE] DetailActivity.java [CODE] Sh... | android|sqlite|android-studio|crud|lang | -3 | 2016-05-02T07:42:03.823Z | 2,016 | 5 | 7 | 0 | 1,310 | 2 | 342 | 60 | 5 | 5 | true | false | false | false | false | true | negative |
36,977,531 | "ClassNotFoundException: android.support.v7.widget.GridLayout" even if it is actually imported | <p>I have quite an odd problem. I'm using Android Studio 2.1 on Ubuntu 15.10.</p>
<p>I'm trying to implement the <code>GridLayout</code> from v7 support libraries. I installed the <code>Android Support Library</code> and <code>Android Support Repository</code> from the SDK Manager and added the gridlayout to my apps b... | I have quite an odd problem. I'm using Android Studio 2.1 on Ubuntu 15.10. I'm trying to implement the GridLayout from v7 support libraries. I installed the Android Support Library and Android Support Repository from the SDK Manager and added the gridlayout to my apps build.gradle dependencies: [CODE] When adding it to... | android|classnotfoundexception|android-gridlayout | 0 | 2016-05-02T07:50:38.383Z | 2,016 | 5 | 7 | 0 | 546 | 3 | 1,035 | 94 | 3 | 3 | true | false | false | false | false | false | zero |
36,977,551 | NavigationView NotSerializableException while pushing fragment | <p>I am getting NotSerializableException when pushing one of my fragments in my app. I am using navigation view in my activity for side menu.</p>
<pre><code> Caused by: java.io.NotSerializableException: android.support.design.widget.NavigationView
</code></pre>
<p>I have a ProfileFragment in my MainActivity. I am ... | I am getting NotSerializableException when pushing one of my fragments in my app. I am using navigation view in my activity for side menu. [CODE] I have a ProfileFragment in my MainActivity. I am re using my EntriesList fragment inside ProfileFragment. On clicking an item in EntriesList, the EntryDetailsFragment is bei... | android|android-fragments|serialization|navigation-drawer|navigationview | 0 | 2016-05-02T07:52:03.420Z | 2,016 | 5 | 7 | 0 | 596 | 1 | 4,362 | 62 | 5 | 1 | true | false | false | false | false | false | zero |
36,977,646 | NullPointerException with using ButterKnife | <p>I enable annotation processing like <a href="https://stackoverflow.com/a/26741086/5322183">this</a> and follow this code:</p>
<pre><code>public class MainFragment extends Fragment implements WeatherUpdater.AsyncResponse {
@BindView(R.id.temperature_max) TextView temperature_max;
@Override
public View onCreateView(... | I enable annotation processing like this and follow this code: [CODE] I have complex structure: [CODE] This LOGCAT: [CODE] Oh, yeah, I use this gradle version -> 'com.jakewharton:butterknife:8.0.1' But I don't know why arise NullPointerException. I searched through Internet in search of a problem, but solutions and hav... | android|butterknife | 0 | 2016-05-02T07:57:24.910Z | 2,016 | 5 | 7 | 0 | 798 | 2 | 364 | 43 | 2 | 3 | true | false | false | false | false | false | zero |
36,977,655 | Displaying recyclerView on MainActivity | <p>I'm trying to display my recyclerView on MainActivity, but can't seem to do it.
This is my code: (which compiles with no errors)</p>
<pre><code>private RecyclerView recyclerView;
private MyAdapter adapter;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
se... | I'm trying to display my recyclerView on MainActivity, but can't seem to do it. This is my code: (which compiles with no errors) [CODE] And myActivity Class: [CODE] } All I'm trying to do now is that when I run the emulator, I will see the contents of the recyclerView. But, I've been stuck on this for a while as nothin... | java|android | 0 | 2016-05-02T07:57:51.660Z | 2,016 | 5 | 7 | 0 | 1,996 | 3 | 413 | 39 | 2 | 2 | true | false | false | false | false | false | zero |
36,977,747 | Collapsing toolbar not visible | <p>I don't know whats happening but when i load data in first fragment and scroll down the toolbar collapses as expected but when i scroll up the toolbar appears but no content is visible(Image 1) and when i switch tab the nit appears as it should (Image 2)</p>
<p>Image 1
<a href="https://i.stack.imgur.com/YGBQe.png" ... | I don't know whats happening but when i load data in first fragment and scroll down the toolbar collapses as expected but when i scroll up the toolbar appears but no content is visible(Image 1) and when i switch tab the nit appears as it should (Image 2) Image 1 Image 2 and here's the code [CODE] | android|toolbar|android-collapsingtoolbarlayout | 1 | 2016-05-02T08:02:33.173Z | 2,016 | 5 | 8 | 0 | 211 | 0 | 297 | 30 | 3 | 1 | true | true | false | false | false | false | low |
36,977,776 | What happens to my Singletons when memory is low or when I get a notification while the app is not running | <p>In my app I used the singleton pattern for objects which serve other classes and not more than one instance of them is needed. LocalstorageManager for example:</p>
<pre><code>public class LocalStorage {
private Context context;
private static LocalStorage instance = null;
protected LocalStorage() {
... | In my app I used the singleton pattern for objects which serve other classes and not more than one instance of them is needed. LocalstorageManager for example: [CODE] In this app I am using a BroadcastReceiver that responds to GSM notifications: [CODE] Should I check whether my singletons state is set before using them... | java|android|singleton | 0 | 2016-05-02T08:04:06.387Z | 2,016 | 5 | 8 | 0 | 114 | 1 | 549 | 106 | 3 | 2 | true | false | false | false | false | false | zero |
36,977,807 | how to solve java.lang.NoClassDefFoundError: okio.Okio? | <p>I have an app that work very well but some times when I add some class and code to my program my app crashes. In my logcat error is for this:</p>
<pre><code> 8871-8929/com.example.first E/AndroidRuntime﹕ FATAL EXCEPTION: pool-4-thread-1
java.lang.NoClassDefFoundError: okio.Okio
at com.squareup.okhttp.internal.h... | I have an app that work very well but some times when I add some class and code to my program my app crashes. In my logcat error is for this: [CODE] My gradle: [CODE] | android|web-services|okhttp|okio | 2 | 2016-05-02T08:05:59.333Z | 2,016 | 5 | 8 | 0 | 13,524 | 1 | 166 | 55 | 4 | 2 | true | false | true | true | false | false | low |
36,977,835 | database inserting null value | <p>I want to insert a value into my web hosting database from my android app.It triggers my create.php script but it doesn't insert the value into the title column that I typed from my edit text.</p>
<p><a href="https://i.stack.imgur.com/RubDv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RubDv.pn... | I want to insert a value into my web hosting database from my android app.It triggers my create.php script but it doesn't insert the value into the title column that I typed from my edit text. This is how I insert [CODE] On my android studio log cat, the reflects that the connection status is ok. I also did some debugs... | php|android | 0 | 2016-05-02T08:07:37.110Z | 2,016 | 5 | 8 | 0 | 108 | 3 | 445 | 29 | 2 | 3 | true | false | false | false | false | false | zero |
36,977,836 | Timepicker with DialogFragment xamarin android | <p>I am opening timepicker in dialogfragment in my fragment class.</p>
<pre><code>var dialog = new TimePickerDialogFragment(_activity, DateTime.Now, new OnTimeSetListener());
dialog.Cancelable = false;
dialog.Show(_fg, null);
</code></pre>
<p>Here TimePickerDialogFragment exte... | I am opening timepicker in dialogfragment in my fragment class. [CODE] Here TimePickerDialogFragment extends DialogFragment. [CODE] Here is my listener class [CODE] Now I want to update the title as soon as user selects a new time while the pop up is opened. The OnTimeSet is called when I click on set button on popup.I... | android|xamarin|timepicker|android-timepicker|timepickerdialog | 0 | 2016-05-02T08:07:37.157Z | 2,016 | 5 | 8 | 0 | 1,049 | 1 | 499 | 46 | 5 | 3 | true | false | false | false | false | false | zero |
36,977,918 | boolean variable unavailable in getView() | <p>I never understand the <code>getView()</code> method fully. Here is a case:</p>
<p><a href="https://i.stack.imgur.com/fRQLx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fRQLx.png" alt="enter image description here"></a></p>
<p>Here I have <code>isNoticeRead</code> which is false you can see. ... | I never understand the getView() method fully. Here is a case: Here I have isNoticeRead which is false you can see. But the line gets executed! And when the line in the if statement is executing, isNoticeRead is not found anywhere! If I even place my cursor over it, nothing happens (no tooltip). And it happens for the ... | android|baseadapter | 0 | 2016-05-02T08:13:07.033Z | 2,016 | 5 | 8 | 0 | 87 | 2 | 413 | 41 | 2 | 1 | true | false | false | false | false | false | zero |
36,977,992 | Android implement navigation | <p>I am trying to learn Android development and have stumbled across the following thing I cannot solve.</p>
<p>I have imported <a href="https://github.com/roughike/BottomBar" rel="nofollow noreferrer">Bottom Bar Navigation</a> via Gradle to my app and have managed to set it up according to instructions. Here is what m... | I am trying to learn Android development and have stumbled across the following thing I cannot solve. I have imported Bottom Bar Navigation via Gradle to my app and have managed to set it up according to instructions. Here is what my screen looks like now. As you can see, I have three tabs at the bottom that I am tryin... | android|navigation | 0 | 2016-05-02T08:18:29.423Z | 2,016 | 5 | 8 | 0 | 67 | 1 | 1,030 | 28 | 2 | 2 | true | false | false | false | false | false | zero |
36,978,016 | Google Plus Integration with Android App | <p>With help from the google documentation, I'm trying to implement a 'Google Sign In' integration. I have done everything from creating the developer console project, pasted in the SHA1 code, and downloaded the google-services.json and put this into my project.</p>
<p>When i click on the sign in button, the screen fl... | With help from the google documentation, I'm trying to implement a 'Google Sign In' integration. I have done everything from creating the developer console project, pasted in the SHA1 code, and downloaded the google-services.json and put this into my project. When i click on the sign in button, the screen flashes quick... | java|android | 0 | 2016-05-02T08:20:05.433Z | 2,016 | 5 | 8 | 0 | 124 | 1 | 591 | 40 | 2 | 2 | true | false | false | false | false | false | zero |
36,978,048 | Android throws the error: Unfortunately camera has stopped in android emulator | <p>I have created an AVD on my Windows 7 notebook with CPU: ARM (armeabi-v7a) and set the front and back camera options to "Webcam0".</p>
<p>When I start the Emulator and click on the camera button it's showing "Unfortunately camera has stopped"</p>
<p>I followed all the answers posted on SO on this matter, but none ... | I have created an AVD on my Windows 7 notebook with CPU: ARM (armeabi-v7a) and set the front and back camera options to "Webcam0". When I start the Emulator and click on the camera button it's showing "Unfortunately camera has stopped" I followed all the answers posted on SO on this matter, but none worked for me. 1) I... | android|android-emulator|android-camera|avd | 4 | 2016-05-02T08:22:04.543Z | 2,016 | 5 | 8 | 0 | 1,687 | 2 | 615 | 78 | 4 | 1 | true | false | false | false | false | false | low |
36,978,085 | How can I send data to PHP script from SharedPreferences and display JSON in listview? | <p>I want to display data from MySQL to listview.</p>
<p>Here is my PHP script:</p>
<p>home.php?s_id= </p>
<pre><code><?php
$con= new mysqli("localhost","root","","studentbuzz");
$user_id = $_GET['s_id'];
$res=mysqli_query($con,"SELECT class.c_id,class.c_name,c... | I want to display data from MySQL to listview. Here is my PHP script: home.php?s_id= [CODE] Here is my SharedPreferences data: [CODE] JSON output: [CODE] | android | 1 | 2016-05-02T08:24:30.567Z | 2,016 | 5 | 8 | 0 | 71 | 1 | 153 | 86 | 1 | 3 | true | false | false | false | false | false | low |
36,978,191 | Kaazing JMS Client Fails to connect | <p>I'm able to connect my hybrid android app with Kaazing using the following lines:</p>
<pre><code> var jmsConnectionFactory;
jmsConnectionFactory = new JmsConnectionFactory("ws://10.0.2.2:8888/jms");
var connectionFuture = jmsConnectionFactory.createConnection(null, null, function () {/*something is done here*/}
<... | I'm able to connect my hybrid android app with Kaazing using the following lines: [CODE] lines of the gateway-config.xml are: [CODE] This is the error [CODE] The worst part is that it was working fine, and I was able to connect but now it is not working. What I did was upgraded my nodejs installed cordova to upgrade it... | android|cordova|hybrid|kaazing | 0 | 2016-05-02T08:32:06.433Z | 2,016 | 5 | 8 | 0 | 376 | 1 | 378 | 35 | 4 | 3 | true | false | false | false | false | false | zero |
36,978,216 | JSON Unterminated object at character android | <p>I have a <code>.json</code> file that contains JSON data. I created this file by simply Ctrl + C and Ctrl + V (from server output) Here's part of my file </p>
<pre><code>[{
"ID": "109",
"objectTypeID": "1",
"names": [{
"ID": 1,
"code": "lt",
"value": "Trak\u0173 salos pilis "
... | I have a .json file that contains JSON data. I created this file by simply Ctrl + C and Ctrl + V (from server output) Here's part of my file [CODE] I have saved this file with utf-8 encoding As you can see there are lot of Unicode Characters and html elements like <div> , <strong> and so on.... Now I want to parse this... | java|android|json|parsing | 1 | 2016-05-02T08:33:23.927Z | 2,016 | 5 | 8 | 0 | 1,363 | 1 | 574 | 45 | 4 | 2 | true | false | false | false | false | false | low |
36,978,323 | How to show image after downloaded in Android | <p>I want develop android application for one site, in <code>MainActivity</code> i show post image and post title and i want show this datas in another <code>Activity</code>.<br>
I can show this datas in another activity, i send this data with <code>putExtra</code> in <code>MainActivity</code> to another <code>Activity... | I want develop android application for one site, in MainActivity i show post image and post title and i want show this datas in another Activity . I can show this datas in another activity, i send this data with putExtra in MainActivity to another Activity ! but when use this way, first show datas (text and base image)... | java|android | 0 | 2016-05-02T08:40:22.830Z | 2,016 | 5 | 8 | 0 | 56 | 1 | 827 | 45 | 2 | 5 | true | false | false | false | false | false | zero |
36,978,341 | Problems between Adapter and Array in RecyclerView | <p>My adapter does not seem to take my Array as a parameter ..</p>
<pre><code>public class MyAdapter extends RecyclerView.Adapter<MyAdapter.MyViewHolder> {
List<Character> characters;
public MyAdapter(List<Character> list) {
this.characters = list;
}
@Override
public int getItemCount() {
... | My adapter does not seem to take my Array as a parameter .. [CODE] } and my MainActivity : [CODE] } and this is the log : [CODE] I tried to pass List in argument but without success. Someone can help me? edit: my 1st problem is solved but now , i have a Fatal Exeption : FATAL EXCEPTION: main Process: ad.training.repert... | android|android-recyclerview|adapter | 2 | 2016-05-02T08:41:39.850Z | 2,016 | 5 | 8 | 0 | 1,052 | 2 | 831 | 50 | 3 | 3 | true | false | false | false | false | false | low |
36,978,410 | Open inappbrowser with post data | <p>I want to know how to open inappbrowser with post dataI've try like this:</p>
<pre><code>var myWindow = window.open('', 'NewFile');
myWindow.doSomething = function () {
var form = document.createElement('form');
form.action = "https://somesite.jsp";
form.method = 'POST';
form.target = 'NewFile';
... | I want to know how to open inappbrowser with post dataI've try like this: [CODE] When I try it on the emulator, it works well, It will open a new window then the page is redirected to the form action url (still same window). But when I test it on real device, It will open new browser, but then after call form.submit(),... | android|cordova | 0 | 2016-05-02T08:45:19.813Z | 2,016 | 5 | 8 | 0 | 570 | 0 | 646 | 32 | 2 | 1 | true | true | false | false | false | false | zero |
36,978,484 | How to zoom out in WebView on Android TV [SDK 22]? | <p>I am having problems in zooming out the content of a WebView which is too large for the default scale.</p>
<p>I am developing for a 720p Android TV and I followed all the possible suggestions out there:</p>
<pre><code> webView = (WebView) findViewById(R.id.main_wv);
webView.setInitialScale(1);
webView.g... | I am having problems in zooming out the content of a WebView which is too large for the default scale. I am developing for a 720p Android TV and I followed all the possible suggestions out there: [CODE] This is my current setup, I tried enabling some of them and not others but still no change. This is my XML: [CODE] Am... | android|webview|android-tv | 0 | 2016-05-02T08:49:21.533Z | 2,016 | 5 | 8 | 0 | 394 | 1 | 659 | 50 | 3 | 2 | true | false | false | false | false | false | zero |
36,978,669 | implementing a button inside a popup window for android | <p>bellow you can see a script that displays the data from a SQLite database in a popup window. My question is that how can I implement a button inside that window to accomplish some tasks</p>
<p>here is the code:</p>
<pre><code>package com.example.asus.sqlliteproject;
import android.app.AlertDialog;
import android.... | bellow you can see a script that displays the data from a SQLite database in a popup window. My question is that how can I implement a button inside that window to accomplish some tasks here is the code: [CODE] and here is a screen shot of the app and what I want to implement: Click here for image | android|android-popupwindow | 1 | 2016-05-02T09:00:42.403Z | 2,016 | 5 | 9 | 0 | 1,480 | 6 | 298 | 55 | 2 | 1 | true | false | false | false | false | false | low |
36,978,683 | I want to fetch data from facebook's profile. I am able to login but its not calling the onSuccess(). in Android studio | <p>I want to fetch data of user like name, email and other details. I am able to login using facbook API. But I foound out the onSuccess() method is not executing. however it shows me log in.</p>
<pre><code>public class SignInUpActivity extends AppCompatActivity {
private CallbackManager callbackManager;
Logi... | I want to fetch data of user like name, email and other details. I am able to login using facbook API. But I foound out the onSuccess() method is not executing. however it shows me log in. [CODE] I am a begginer please help me solve the problem. | android|facebook | 0 | 2016-05-02T09:01:50.847Z | 2,016 | 5 | 9 | 0 | 41 | 1 | 245 | 119 | 2 | 1 | true | false | false | false | false | false | zero |
36,978,750 | Bus seat reservation management | <p>Currently I am getting this below <strong>XML data format from URL</strong>-</p>
<pre><code><Seat>
<ColumnNo>0</ColumnNo>
<Deck>2</Deck>
<Height>2</Height>
<IsAvailable>1</IsAvailable>
<RowNo>0</RowNo>
<SeatLabel>E</SeatLabel>
<Width&g... | Currently I am getting this below XML data format from URL - [CODE] And i have made image of layout the bus in which i want to make click on vacant seats and disable the seats in which available is 0 ( <IsAvailable>0</IsAvailable> ) I am confused as to how should I make the below layout and make then populate with the ... | android|android-recyclerview|android-gridlayout|gridlayoutmanager | 2 | 2016-05-02T09:05:32.220Z | 2,016 | 5 | 9 | 0 | 7,966 | 2 | 692 | 31 | 4 | 1 | true | false | true | false | false | false | low |
36,978,796 | OpenGL Android Translate object on y Axis 2D | <p>I cannot seem to get my object to move on the y axis, it just stays at its current location.</p>
<p>To my current knowledge I know to use</p>
<pre><code>Matrix.translateM()
</code></pre>
<p>However it does not seem to work and I am not sure what step I am missing.</p>
<p>In my renderer the OnDrawFrame Method is ... | I cannot seem to get my object to move on the y axis, it just stays at its current location. To my current knowledge I know to use [CODE] However it does not seem to work and I am not sure what step I am missing. In my renderer the OnDrawFrame Method is as follows: [CODE] My Circle class is as follows [CODE] I can't se... | java|android|android-studio|opengl-es | 1 | 2016-05-02T09:08:17.067Z | 2,016 | 5 | 9 | 0 | 402 | 1 | 530 | 44 | 4 | 3 | true | false | false | false | false | false | low |
36,978,818 | In Xamarin ExpandableListView, how to consume groupclick? | <p>I have an ExpandableListView where I need to consume the GroupClick and prevent the default expand/collapse actions from happening.</p>
<p>Using "the C# way":</p>
<pre><code>listView.GroupClick += (s, e) =>
{
return true;
};
</code></pre>
<p>it's not even valid, because GroupClicks are expected to be void ... | I have an ExpandableListView where I need to consume the GroupClick and prevent the default expand/collapse actions from happening. Using "the C# way": [CODE] it's not even valid, because GroupClicks are expected to be void and thus can't return true and consume the click. If I try "the Java way" (which I would prefer ... | c#|android|xamarin|expandablelistview | 0 | 2016-05-02T09:09:04.130Z | 2,016 | 5 | 9 | 0 | 354 | 1 | 946 | 57 | 4 | 2 | true | false | false | false | false | false | zero |
36,978,966 | Regex <img > Tag parsing with src, width, height | <p>You may react to this saying that H<strong>TML Parsing using regex is a totally bad idea</strong>, following <a href="https://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454">this</a> for example, and you are right. </p>
<p>But in my case, the following htm... | You may react to this saying that H TML Parsing using regex is a totally bad idea , following this for example, and you are right. But in my case, the following html node is created by our own server so we know that it will always look like this, and as the regex will be in a mobile android library , I don't want to us... | java|android|html|regex | 7 | 2016-05-02T09:16:38.853Z | 2,016 | 5 | 9 | 0 | 5,689 | 3 | 820 | 48 | 4 | 0 | false | false | true | false | false | false | medium |
36,979,010 | How to display same image in ImageView if I click on the horizontal images in android | <p>I have the list of images in horizontal LinearLayout If I click particular image the same image will appear on the above of single image view.
How can I get the position of Images in Image View.</p>
<p>CODE</p>
<pre><code>JSONArray multipleimage = alertObj.getJSONArray(PRODUCT_IMAGES);
/*JSONObject singleimage =... | I have the list of images in horizontal LinearLayout If I click particular image the same image will appear on the above of single image view. How can I get the position of Images in Image View. CODE [CODE] How to solve this problem Thanks in Advance. | android|android-layout|android-studio|android-imageview | 0 | 2016-05-02T09:19:04.287Z | 2,016 | 5 | 9 | 0 | 69 | 2 | 251 | 85 | 4 | 1 | true | false | false | false | false | false | zero |
36,979,059 | Cross Correlation: Android AudioRecord create sample data for TDoA | <p>On one side with my Android smartphone I'm recording an audio stream using AudioRecord.read(). For the recording I'm using the following specs</p>
<ul>
<li>SampleRate: 44100 Hz</li>
<li>MonoChannel</li>
<li>PCM-16Bit</li>
<li>size of the array I use for AudioRecord.read(): 100 (short array)
<ul>
<li>using this sma... | On one side with my Android smartphone I'm recording an audio stream using AudioRecord.read(). For the recording I'm using the following specs SampleRate: 44100 Hz MonoChannel PCM-16Bit size of the array I use for AudioRecord.read(): 100 (short array) using this small size allows me to read every 0.5ms (mean value), so... | java|android|signal-processing|audio-recording|cross-correlation | 1 | 2016-05-02T09:22:51.007Z | 2,016 | 5 | 9 | 0 | 643 | 1 | 1,924 | 66 | 5 | 0 | false | false | false | false | false | false | low |
36,979,103 | OkHttp image type | <p>When I upload an image okHttp only accepts <code>PNG</code>? When I try <code>jpg</code> it denies. </p>
<p>This is my code:</p>
<pre><code>public static Boolean uploadFile(final File file, final Context context) {
AsyncTask.THREAD_POOL_EXECUTOR.execute(new Runnable() {
@Override
pu... | When I upload an image okHttp only accepts PNG ? When I try jpg it denies. This is my code: [CODE] What am I doing wrong? | android|okhttp | 2 | 2016-05-02T09:26:07.647Z | 2,016 | 5 | 9 | 0 | 3,985 | 1 | 121 | 17 | 2 | 1 | true | false | true | false | false | false | low |
36,979,151 | How to get view from Adapter based on position and set selected as true in android? | <p>I have a <code>ListView</code> and an <code>Adapter</code>. I want to get listItem from
adapter, and set <code>selected</code> as <code>true</code>. How to do it?
Inside the Activity, i have position, based on position i need to highlight that position row in listview.</p>
<pre><code>MyActivity.java
if(drugNames... | I have a ListView and an Adapter . I want to get listItem from adapter, and set selected as true . How to do it? Inside the Activity, i have position, based on position i need to highlight that position row in listview. [CODE] But i am unable to highlight ListView row based on position in activity. [CODE] | android|listview|listitem | 1 | 2016-05-02T09:29:22.353Z | 2,016 | 5 | 9 | 0 | 1,558 | 1 | 306 | 83 | 3 | 2 | true | false | false | false | false | false | low |
36,979,163 | Redirect a call back to original url twilio | <p>I am using the Twilio php library to implement the calling .. I am running through an issue .. the issue is that .. I am using the following code to redirect the call to a particular url</p>
<pre><code>require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library
$sid = "ACXXXXX";
$token = "YYYYY"... | I am using the Twilio php library to implement the calling .. I am running through an issue .. the issue is that .. I am using the following code to redirect the call to a particular url [CODE] and after redirecting, I am telling the machine to speak particular text using the following code [CODE] but t he problem is t... | android|twilio|twilio-php|twilio-click-to-call | 0 | 2016-05-02T09:29:50.273Z | 2,016 | 5 | 9 | 0 | 482 | 1 | 588 | 43 | 4 | 2 | true | false | false | false | false | false | zero |
36,979,230 | Android hide NavigationView header | <p>I am working on an android app and it requires <strong>DrawerLayout</strong> below the <strong>ToolBar</strong>. I've achieved that but NavigationView's header i.e <code>Status Bar 24dp</code> is visible even after removing the header.
Is there a way to remove that?</p>
<p><img src="https://i.stack.imgur.com/8YI9e... | I am working on an android app and it requires DrawerLayout below the ToolBar . I've achieved that but NavigationView's header i.e Status Bar 24dp is visible even after removing the header. Is there a way to remove that? XML file: [CODE] | android|material-design | 2 | 2016-05-02T09:34:44.867Z | 2,016 | 5 | 9 | 0 | 2,621 | 5 | 237 | 34 | 2 | 1 | true | false | true | false | false | false | low |
36,979,293 | POSTing from an Android Application | <p>I'm currently attempting to write an Android Application which quite simply POSTs data to a server on button press. </p>
<p>I've followed other posts on here to attempt to get this working but it doesn't want to play ball. I just seem to be wrestling with Android Studio and the java language at the minute, which is... | I'm currently attempting to write an Android Application which quite simply POSTs data to a server on button press. I've followed other posts on here to attempt to get this working but it doesn't want to play ball. I just seem to be wrestling with Android Studio and the java language at the minute, which is a shame bec... | java|android|http|post | 0 | 2016-05-02T09:38:29.450Z | 2,016 | 5 | 9 | 0 | 41 | 1 | 795 | 35 | 4 | 1 | true | false | false | false | false | false | zero |
36,979,379 | AutoCompleteTextView drop down not showing weirdly | <p>Suggestions are stored in an <code>ArrayList<String>.</code> The <code>getSuggestions()</code> method returns the right list of <code>String</code>, the point is that I replace special chars with casual ones. I.E. when I type <code>xeres</code>, I'd like to have the same results as if I had typed <code>xérès</... | Suggestions are stored in an ArrayList<String>. The getSuggestions() method returns the right list of String , the point is that I replace special chars with casual ones. I.E. when I type xeres , I'd like to have the same results as if I had typed xérès , which is what happens but the problem here is that when I type x... | android|android-arrayadapter|autocompletetextview|textwatcher|unicode-normalization | 2 | 2016-05-02T09:42:23.627Z | 2,016 | 5 | 9 | 0 | 93 | 1 | 553 | 50 | 5 | 3 | true | false | false | false | false | false | low |
36,979,419 | ClassNotFoundException: Didn't find class "android.support.design.widget.AppBarLayout" | <p>I'm using AppBarLayout and NestedScrollview in my code .But I get a error. The code compile successfully but crash with the stacktrace</p>
<pre><code>05-02 17:10:17.255 31335 31335 E AndroidRuntime: FATAL EXCEPTION: main
05-02 17:10:17.255 31335 31335 E AndroidRuntime: Process: com.android.settings, PID: 31335
05-0... | I'm using AppBarLayout and NestedScrollview in my code .But I get a error. The code compile successfully but crash with the stacktrace [CODE] I develop with intellij .thanks for any suggestion. | android|material-design|classnotfoundexception | 7 | 2016-05-02T09:44:20.907Z | 2,016 | 5 | 9 | 0 | 12,313 | 2 | 193 | 86 | 3 | 1 | true | false | true | true | false | false | medium |
36,979,557 | BuildConfingField string not set correctly | <p>I am trying to create a BuildConfingField in my gradle script here my code</p>
<pre><code>def VERSION_NAME = "3.1.0b"
def VERSION=VERSION_NAME+"-"+getDate();
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
minSdkVersion 10
targetSdkVersion 23
setProper... | I am trying to create a BuildConfingField in my gradle script here my code [CODE] What I get is: [CODE] This brings compilation error. Anyone can help on getting the string defined correctly? | android|gradle|android-gradle-plugin | 0 | 2016-05-02T09:52:40.947Z | 2,016 | 5 | 9 | 0 | 39 | 1 | 191 | 42 | 3 | 2 | true | false | false | false | false | false | zero |
36,979,638 | Taking byte[] value for EditText String input by user | <p>I want to input a String and I want to get the byte[] value for it If I give a fixed value to the String like this:</p>
<pre><code>String myinput = "SampleString";
byte[] keyValue = myinput.getBytes();
</code></pre>
<p>I am able to get the byte[] value but if i take input from edit text like: </p>
<pre><code>Stri... | I want to input a String and I want to get the byte[] value for it If I give a fixed value to the String like this: [CODE] I am able to get the byte[] value but if i take input from edit text like: [CODE] Then i do not get the byte[] value. Here is one section of the code where byte[] value is needed: [CODE] This is wo... | java|android | -3 | 2016-05-02T09:56:03.967Z | 2,016 | 5 | 9 | 0 | 309 | 2 | 473 | 53 | 2 | 3 | true | false | false | false | false | true | negative |
36,979,650 | getting this error sendUserActionEvent() mView == null | <p>am a rookie so I have looked for a solution to this question and I have gotten an answer. I implemented a login system which was working fine using the code below, but I just started getting this error sendUserActionEvent() mView == null, and i couldnt login again.</p>
<pre><code> public class Activity_Login exte... | am a rookie so I have looked for a solution to this question and I have gotten an answer. I implemented a login system which was working fine using the code below, but I just started getting this error sendUserActionEvent() mView == null, and i couldnt login again. [CODE] 05-02 11:20:52.500 4397-4397/com.soultracker D/... | android|authentication|null | 0 | 2016-05-02T09:56:41.083Z | 2,016 | 5 | 9 | 0 | 710 | 0 | 1,594 | 54 | 3 | 1 | true | true | false | false | false | false | zero |
36,979,889 | how to add buttons that appear dynamically in a dialog using android studio | <p>I have a dialog that shows an error message,
i know i can take that error message and just make it invisible, and visible in the code,
but then the Dialog would still save room in it and it will just show as a white space.</p>
<p>I want the error message to be added dynamical so if no error message will be shown t... | I have a dialog that shows an error message, i know i can take that error message and just make it invisible, and visible in the code, but then the Dialog would still save room in it and it will just show as a white space. I want the error message to be added dynamical so if no error message will be shown the dialog wi... | android|dialog | -1 | 2016-05-02T10:08:00.043Z | 2,016 | 5 | 10 | 0 | 485 | 2 | 424 | 75 | 2 | 2 | true | false | false | false | false | true | negative |
36,979,905 | navigation drawer hidden in my fragment | <p>I have a big problem with my fragments
In the first fragment(List2) (navigation drawer) I have a listview. But in the User fragment the navigation drawer doesn't appear Can you help me please
Account--> List2 --> User
Account.java</p>
<pre><code>public class Account extends AppCompatActivity
implements Navi... | I have a big problem with my fragments In the first fragment(List2) (navigation drawer) I have a listview. But in the User fragment the navigation drawer doesn't appear Can you help me please Account--> List2 --> User Account.java [CODE] List2.java [CODE] User.java [CODE] But the classe User seems never used. Why? Than... | android|android-fragments | 2 | 2016-05-02T10:09:00.057Z | 2,016 | 5 | 10 | 0 | 95 | 0 | 333 | 39 | 2 | 3 | true | true | false | false | false | false | low |
36,979,954 | android space under appbar | <p>I'm trying to place two <code>Fragments</code> next to each other, but I can't get rid of a space between the <code>ActionBar</code> and my application contents :</p>
<p><img src="https://i.stack.imgur.com/egTe1.png" alt="Toolbar spacing screenshot"></p>
<p>Here is my <code>XML</code></p>
<pre><code><?xml vers... | I'm trying to place two Fragments next to each other, but I can't get rid of a space between the ActionBar and my application contents : Here is my XML [CODE] I already tried to change margins and padding for the Toolbar and AppBarLayout | android|android-toolbar | 2 | 2016-05-02T10:11:50.957Z | 2,016 | 5 | 10 | 0 | 1,566 | 2 | 237 | 26 | 2 | 1 | true | false | false | false | false | false | low |
36,980,008 | put buttons on an image which looks the same in different displays | <p>I have a map and wanna put some <code>Button</code>s on it as pointers. Here is my </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/karte"
android:background="@drawable/my_map"
android:layout_width... | I have a map and wanna put some Button s on it as pointers. Here is my [CODE] I have set layout_margin in px or dp or progremmatically in percentage of the display_size: [CODE] but in all of these methods Button s change their position when I use different display size. Is there any idea how to fix Buttons to make thei... | android|margin | 0 | 2016-05-02T10:14:12.407Z | 2,016 | 5 | 10 | 0 | 34 | 1 | 363 | 66 | 2 | 2 | true | false | false | false | false | false | zero |
36,980,068 | Not able to open pre-installed database using Sqlite AssetHelper library | <p>I am working on pre-installed database and using <a href="https://github.com/jgilfelt/android-sqlite-asset-helper" rel="nofollow noreferrer">SqliteAssetHelper</a> library for that.</p>
<p>This is my db code</p>
<pre><code>public class DBController extends SQLiteAssetHelper {
private static final String DATABA... | I am working on pre-installed database and using SqliteAssetHelper library for that. This is my db code [CODE] Error: Missing databases/user.db file (or .zip, .gz archive) in assets, or target folder not writable and when I change my code to SQLiteDatabase mySqliteDb = getReadableDatabase(); I am getting android.databa... | android|sqlite | 1 | 2016-05-02T10:17:25.257Z | 2,016 | 5 | 10 | 0 | 79 | 1 | 593 | 72 | 2 | 1 | true | false | false | false | false | false | low |
36,980,081 | How to open a layout whith setOnClickListener | <p>I have an Activity that open others which each other open a layaout, is it posible my first activity to open the layout (with the touch of buton) whithout the existance of the others activitys?</p>
<p>Activity1.java</p>
<pre><code>import android.app.Activity;
import android.content.Intent;
import android.os.Bundle... | I have an Activity that open others which each other open a layaout, is it posible my first activity to open the layout (with the touch of buton) whithout the existance of the others activitys? Activity1.java [CODE] } This is one of the in-between activities Activity_Photo1.java [CODE] and this is one of the layouts ph... | android|button|android-activity|layout|click | 0 | 2016-05-02T10:18:09.143Z | 2,016 | 5 | 10 | 0 | 237 | 1 | 335 | 45 | 5 | 3 | true | false | false | false | false | false | zero |
36,980,231 | whenever i run the app on emulator it says unfortunately the app has stopped working and the log reads the below lines | <p>The MainActivity file</p>
<pre><code>package com.example.intel.dualboot;
import android.annotation.TargetApi;
import android.app.AlertDialog;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.res... | The MainActivity file [CODE] I am getting this error [CODE] activity_main.xml file [CODE] | android | -2 | 2016-05-02T10:28:04.243Z | 2,016 | 5 | 10 | 0 | 76 | 2 | 89 | 118 | 1 | 3 | true | false | false | false | false | true | negative |
36,980,395 | Using RecyclerView adapter notifyDataSetChanged in ViewPager fragment | <p>ViewPager has four fragment. In first fragment I use RecyclerView for show list of prudacts. In second fagment I manupulate of data that shows in first fragment(for example I can delete some data or add, it have to shows in first fragment Recycler view). And when I swipe to first fragment I have to see changing. For... | ViewPager has four fragment. In first fragment I use RecyclerView for show list of prudacts. In second fagment I manupulate of data that shows in first fragment(for example I can delete some data or add, it have to shows in first fragment Recycler view). And when I swipe to first fragment I have to see changing. For th... | android|android-viewpager|android-recyclerview | 0 | 2016-05-02T10:36:18.633Z | 2,016 | 5 | 10 | 0 | 704 | 0 | 582 | 69 | 3 | 2 | true | true | false | false | false | false | zero |
36,980,397 | not showing full text in textview in a fragment android | <p>I developing an Android App in <code>Eclipse</code> and i'm using <code>framelayout</code> as a container to my <code>fragment</code>... and the <code>fragment</code> doesn't showing full text... half of the text is hiding...
Please help me out...!!!
Thanks in advance...</p>
<p>activty_main.xml `</p>
<pre><code> ... | I developing an Android App in Eclipse and i'm using framelayout as a container to my fragment ... and the fragment doesn't showing full text... half of the text is hiding... Please help me out...!!! Thanks in advance... activty_main.xml ` [CODE] fragment_about.xml [CODE] original fragment is Original but the output co... | java|android|eclipse|performance|android-fragments | 0 | 2016-05-02T10:36:22.873Z | 2,016 | 5 | 10 | 0 | 209 | 2 | 382 | 55 | 5 | 2 | true | false | false | false | false | false | zero |
36,980,416 | Callback listener inside android Service not working - FATAL EXCEPTION: AsyncTask #1 | <p>I am trying to implement a callback listener inside my GcmListenerService. I need to refresh a chat conversation as a new message arrives.</p>
<p>I proceed as usual, set up the listener inside the host activity, and the service, but I get the following error when the my callback listener starts showing results:</p>
... | I am trying to implement a callback listener inside my GcmListenerService. I need to refresh a chat conversation as a new message arrives. I proceed as usual, set up the listener inside the host activity, and the service, but I get the following error when the my callback listener starts showing results: [CODE] What co... | android|service|callback|google-cloud-messaging|listener | 0 | 2016-05-02T10:37:14.010Z | 2,016 | 5 | 10 | 0 | 573 | 1 | 442 | 84 | 5 | 3 | true | false | false | false | false | false | zero |
36,980,438 | Calling Fragment Method in Activity | <p>I want to call Fragment Method in my MainActivity. The Fragment is attached to ViewPager in my MainActivity</p>
<p>I have called the method in my MainActivity</p>
<pre><code>mViewPager = (ViewPager) findViewById(R.id.pager);
setupViewPager(mViewPager);
private void setupViewPager(ViewPager mViewPager) {
... | I want to call Fragment Method in my MainActivity. The Fragment is attached to ViewPager in my MainActivity I have called the method in my MainActivity [CODE] This my SectionsPagerAdapter [CODE] This is the method I am calling from my Fragment [CODE] This is the resource id I am calling the fragment with [CODE] Here is... | java|android|android-fragments | 0 | 2016-05-02T10:38:05.250Z | 2,016 | 5 | 10 | 0 | 3,449 | 3 | 375 | 35 | 3 | 5 | true | false | true | false | false | false | zero |
36,980,448 | Android - How to show character count on top of EditText...? | <p>In my application i am showing live character count below a TextInputLayout, using a class.
This is the class</p>
<pre><code>public class CharacterCountErrorWatcher
implements TextWatcher
{
private final TextInputLayout mTextInputLayout;
private final ForegroundColorSpan mNormalTextAppearance;
private final For... | In my application i am showing live character count below a TextInputLayout, using a class. This is the class [CODE] And this is how i set this class on the TextInputLayout [CODE] UPDATE my Layout file : [CODE] And it is working fine. This is the result i get As you can see the count is shown below the EditText. But wh... | java|android|android-edittext|charactercount | 1 | 2016-05-02T10:38:27.797Z | 2,016 | 5 | 10 | 0 | 1,980 | 0 | 797 | 60 | 4 | 3 | true | true | false | false | false | false | low |
36,980,489 | Android menu icons - not all visible? | <p>please help me,
why some icons are not displayed on the menu? How to make so that all the icons are visible? On the pictures I painted my menu.</p>
<p><a href="https://i.stack.imgur.com/NGeth.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NGeth.png" alt="enter image description here"></a></p>
<... | please help me, why some icons are not displayed on the menu? How to make so that all the icons are visible? On the pictures I painted my menu. [CODE] Thanks. | android|android-toolbar|android-menu | 0 | 2016-05-02T10:40:42.467Z | 2,016 | 5 | 10 | 0 | 2,257 | 4 | 158 | 37 | 3 | 1 | true | false | false | false | false | false | zero |
36,980,503 | android : NestedScrollview bottom two button attached | <p>I am trying to create Android product layout. In footer have two buttons it is fixed button. you can see images when I am scrolling up bottom two buttons attached in my layout. Please help how can i do?</p>
<p><strong>Image 1</strong></p>
<p><a href="https://i.stack.imgur.com/yIEy3.png" rel="noreferrer"><img src="... | I am trying to create Android product layout. In footer have two buttons it is fixed button. you can see images when I am scrolling up bottom two buttons attached in my layout. Please help how can i do? Image 1 Image 2 after scrolling xml [CODE] | android|button|layout|android-nestedscrollview | 7 | 2016-05-02T10:41:19.390Z | 2,016 | 5 | 10 | 0 | 11,147 | 5 | 245 | 53 | 4 | 1 | true | false | true | false | false | false | medium |
36,980,512 | I select and then deselect a row in listview it returned as selected | <p>I am facing problem in ListView with selecting and then deselecting Checkbox. I have a button in which i am bypassing all the selected items of a list. But i check and then uncheck, it returned as checked.I am using sparse boolean array.
Here is my code-</p>
<pre><code>@Override
public void onClick(View v) {
i... | I am facing problem in ListView with selecting and then deselecting Checkbox. I have a button in which i am bypassing all the selected items of a list. But i check and then uncheck, it returned as checked.I am using sparse boolean array. Here is my code- [CODE] here is my adapter class`private Context context; [CODE] | android|listview | 0 | 2016-05-02T10:41:51.703Z | 2,016 | 5 | 10 | 0 | 54 | 0 | 318 | 68 | 2 | 2 | true | true | false | false | false | false | zero |
36,980,525 | Network state changed delay | <p>Trying to monitor the offline state of the app by using a broadcast receiver on <code>android.net.conn.CONNECTIVITY_CHANGE</code> but I’m experiencing a huge delay in the connection change when switching on and off the airplane mode, 20 - 30 seconds, is there any faster way? (without polling the connection)</p>
<p>... | Trying to monitor the offline state of the app by using a broadcast receiver on android.net.conn.CONNECTIVITY_CHANGE but I’m experiencing a huge delay in the connection change when switching on and off the airplane mode, 20 - 30 seconds, is there any faster way? (without polling the connection) Manifest: [CODE] Receive... | android | 0 | 2016-05-02T10:42:34.333Z | 2,016 | 5 | 10 | 0 | 226 | 0 | 671 | 27 | 1 | 2 | true | true | false | false | false | false | zero |
36,980,534 | RecyclerView item showing inconsistent data | <p>While debugging my app, I noticed that my RecyclerView display is inconsistent with the data provided, i.e.</p>
<ul>
<li><p>If I set an alarm (TextView in RecyclerView has date set) then scroll my RecyclerView, the date shows up in the wrong positions e.g If I set the date on the 4th item, then the 3rd item <strong... | While debugging my app, I noticed that my RecyclerView display is inconsistent with the data provided, i.e. If I set an alarm (TextView in RecyclerView has date set) then scroll my RecyclerView, the date shows up in the wrong positions e.g If I set the date on the 4th item, then the 3rd item also has the date set as we... | android|android-recyclerview | 0 | 2016-05-02T10:43:05.327Z | 2,016 | 5 | 10 | 0 | 459 | 2 | 732 | 43 | 2 | 1 | true | false | false | false | false | false | zero |
36,980,585 | File upload using MultipartEntityBuilder gives an Error | <p>In my android app I'm using AsyncTask to upload a file to the backend. In there I use MultipartEntityBuilder in my doInBackground method. my doInBackground part is as follows, </p>
<pre><code>@Override
protected String doInBackground(String... params) {
try {
String serverLoaction = params[0];
... | In my android app I'm using AsyncTask to upload a file to the backend. In there I use MultipartEntityBuilder in my doInBackground method. my doInBackground part is as follows, [CODE] This show me no syntax errors. but when I run the code an exception throws and the app stops. the error log is as below. [CODE] it tells ... | android|android-asynctask|multipartentity | 0 | 2016-05-02T10:46:11.573Z | 2,016 | 5 | 10 | 0 | 1,496 | 2 | 607 | 55 | 3 | 3 | true | false | false | false | false | false | zero |
36,980,600 | How can I figure out if Realm exists | <p>I want to change the Realmconfiguration for an allready existing realm database. In my app I'm using until now:</p>
<pre><code>new RealmConfiguration.Builder(this).name("db10").build();
</code></pre>
<p>After publishing the app on Playstore I found out that I could use a custom Migration to change an already exist... | I want to change the Realmconfiguration for an allready existing realm database. In my app I'm using until now: [CODE] After publishing the app on Playstore I found out that I could use a custom Migration to change an already existing Database like so: [CODE] But I can not change the Realmconfiguration for an already e... | android|realm|realm-migration | 0 | 2016-05-02T10:47:12.330Z | 2,016 | 5 | 10 | 0 | 632 | 0 | 648 | 36 | 3 | 3 | true | true | false | false | false | false | zero |
36,980,638 | Error when trying save data in sqlite | <p>Hi guys i just got this error when trying to create database and save data in the table Please Help </p>
<blockquote>
<p>(Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()')</p>
</blockquote>
<p>Database.java</p>
<pre><code>public class Database extends SQLiteOpenHelper ... | Hi guys i just got this error when trying to create database and save data in the table Please Help (Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()') Database.java [CODE] } BodyMeasure.java [CODE] } body_measure.xml [CODE] | java|android|sqlite | -1 | 2016-05-02T10:49:24.463Z | 2,016 | 5 | 10 | 0 | 43 | 2 | 265 | 37 | 3 | 3 | true | false | false | false | false | true | negative |
36,980,732 | saving frame layout as bitmap with its subViews but imageView(subView) giving blackscreen | <p>I have a framelayout.
it includes a button.
At runtime I click the button to pick an image from the gallery.</p>
<p>I create a imageView ,set the chosen image from the gallery on the imageView and add the imageView to framelayout.</p>
<p>then i save the entire view(framelayout) as a bitmap.
But the saved bitmap on... | I have a framelayout. it includes a button. At runtime I click the button to pick an image from the gallery. I create a imageView ,set the chosen image from the gallery on the imageView and add the imageView to framelayout. then i save the entire view(framelayout) as a bitmap. But the saved bitmap only shows the button... | android|view|bitmap | 0 | 2016-05-02T10:54:45.067Z | 2,016 | 5 | 10 | 0 | 1,853 | 2 | 436 | 89 | 3 | 1 | true | false | false | false | false | false | zero |
36,980,750 | How to add AsynTask on AutoCompleteTextView | <p>The bellows code if running successfully now how to add AsynTask on this.</p>
<pre><code>import android.app.Activity;
import android.os.Bundle;
import android.os.StrictMode;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Auto... | The bellows code if running successfully now how to add AsynTask on this. [CODE] } People Class [CODE] People Adapter [CODE] | java|android|asynchronous | 1 | 2016-05-02T10:56:01.490Z | 2,016 | 5 | 10 | 0 | 54 | 0 | 124 | 43 | 3 | 3 | true | true | false | false | false | false | low |
36,980,904 | not able to save 2nd fragment state as it goes to new activity | <p>i have 2 fragments (1,2).
after a button click on (fragment 1) transition happens to (fragment 2) .now from (fragment 2) if a button is clicked i go to the (new_activity ).my problem is when i return from (new_activity) i want to go back to (fragment 2) & then to (fragment 1) but it directly goes to fragment 1 .... | i have 2 fragments (1,2). after a button click on (fragment 1) transition happens to (fragment 2) .now from (fragment 2) if a button is clicked i go to the (new_activity ).my problem is when i return from (new_activity) i want to go back to (fragment 2) & then to (fragment 1) but it directly goes to fragment 1 .i am no... | android|android-fragments | 0 | 2016-05-02T11:03:50.513Z | 2,016 | 5 | 11 | 0 | 20 | 1 | 376 | 62 | 2 | 1 | true | false | false | false | false | false | zero |
36,980,944 | Couldn't Expand Remote View | <p>I am using remote view to generate a custom notification for media player. But getting this following exception when I called showNotification() method.</p>
<pre><code>android.app.RemoteServiceException: Bad notification posted from package com.sample.acv3:
Couldn't expand RemoteViews for:... | I am using remote view to generate a custom notification for media player. But getting this following exception when I called showNotification() method. [CODE] My Java code to generate custom notification. [CODE] XML Code (player_notification.xml) [CODE] I have also read the post on stack overflow about this exception ... | android|android-notifications|remoteview|android-remoteview | 1 | 2016-05-02T11:05:34.420Z | 2,016 | 5 | 11 | 0 | 172 | 0 | 450 | 27 | 4 | 3 | true | true | false | false | false | false | low |
36,980,952 | Working with dialog alert in android | <p>I am trying to create a dialogAlert to check if the user wants to delete a workout but I can't figure out where everything should go in relation to my <code>onclicklistner</code>. I have tried moving onclicklistener around but don't know where it should be </p>
<p>Here is my AndroidListViewCursorAdaptorActivity cl... | I am trying to create a dialogAlert to check if the user wants to delete a workout but I can't figure out where everything should go in relation to my onclicklistner . I have tried moving onclicklistener around but don't know where it should be Here is my AndroidListViewCursorAdaptorActivity class: [CODE] | android|dialog | 0 | 2016-05-02T11:06:02.470Z | 2,016 | 5 | 11 | 0 | 135 | 4 | 306 | 36 | 2 | 1 | true | false | false | false | false | false | zero |
36,980,970 | android adapter Onclick open new activty | <p>I am using this code for make new listener for every new item </p>
<p>first the xml </p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="... | I am using this code for make new listener for every new item first the xml [CODE] I just parse the JSON array response and make new item depend on array length after that I add listener to the .. RelativeLayout with id showonmap and when click on its it open new activity the code of Onclick [CODE] here I am using [COD... | java|android|android-layout | 0 | 2016-05-02T11:07:09.277Z | 2,016 | 5 | 11 | 0 | 98 | 1 | 511 | 40 | 3 | 5 | true | false | false | false | false | false | zero |
36,981,171 | can not resolve method getProjection() and getMapCenter() | <p>i am implementing long click to get latlang on mapview,
i referred <a href="http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/" rel="nofollow">this</a> tutorial. but i am getting error</p>
<p>here is my code:</p>
<pre><code>import com.google.android.gms.vision.barcode.Barcode... | i am implementing long click to get latlang on mapview, i referred this tutorial. but i am getting error here is my code: [CODE] here my getProjection() and getMapCenter() cant resolve, i want to know why its happening, is this method deprecated, or what method i have to use instead, and i also want to know that why it... | android|google-maps-android-api-2 | 1 | 2016-05-02T11:18:52.880Z | 2,016 | 5 | 11 | 0 | 440 | 1 | 372 | 57 | 2 | 2 | true | false | false | false | false | false | low |
36,981,245 | Activity is opening multiple times using broadcast receiver | <p>I am developing android app which work as battery indicator, open activity when battery low or full.</p>
<p>It works fine when i call finish() in Main activity from onCreate event after start of service.</p>
<p>but when i comment finish method it open activity multiple times, which i open from BroadCast receiver.<... | I am developing android app which work as battery indicator, open activity when battery low or full. It works fine when i call finish() in Main activity from onCreate event after start of service. but when i comment finish method it open activity multiple times, which i open from BroadCast receiver. Here is MainActivit... | java|android|android-activity|broadcast|android-broadcastreceiver | 0 | 2016-05-02T11:23:11.093Z | 2,016 | 5 | 11 | 0 | 1,135 | 1 | 602 | 59 | 5 | 4 | true | false | false | false | false | false | zero |
36,981,265 | Android-android.database.sqlite.SQLiteException: unknown error (code 0): INTEGER data in nativeGetBlob | <p>I am working on database and exporting data from database to xml file but i faced this error in this line <code>byte[] s = cur.getBlob(idx);</code>. before I was using this line. <code>String s=cur.getString(idx);</code>. But it was also throwing error. Then I found solution to change it in <code>blob</code> type. H... | I am working on database and exporting data from database to xml file but i faced this error in this line byte[] s = cur.getBlob(idx); . before I was using this line. String s=cur.getString(idx); . But it was also throwing error. Then I found solution to change it in blob type. Here is my code. Please give some suggest... | android|sqlite | 0 | 2016-05-02T11:24:28.230Z | 2,016 | 5 | 11 | 0 | 2,421 | 3 | 370 | 102 | 2 | 2 | true | false | false | false | false | false | zero |
36,981,271 | Changing the default listViews item clicked to StringBuffer instead (displays popup by default) | <p>I have a <code>ListView</code> that displays a list of items and I want to display further more details when any item is clicked using <code>StringBuffer</code>. But I'm having an issue because android default <code>setOnItemClickListener</code> bypasses the <code>StringBuffer</code> view that I'm defining inside th... | I have a ListView that displays a list of items and I want to display further more details when any item is clicked using StringBuffer . But I'm having an issue because android default setOnItemClickListener bypasses the StringBuffer view that I'm defining inside the click event, and just displays the the item view in ... | android|listview | -1 | 2016-05-02T11:24:50.173Z | 2,016 | 5 | 11 | 0 | 56 | 1 | 561 | 95 | 2 | 2 | true | false | false | false | false | true | negative |
36,981,373 | Android: Flurry Banner Ad is not displaying | <p>I have integrated Flurry banner ad on my app. On logcat it says <code>BannerAdObject</code> created, but ad is not displayed. I've attached the code and logcat. I have not found any solution for this issue . </p>
<pre><code>mBanner =(RelativeLayout)view.findViewById(R.id.banner);
mFlurryAdBanner = new Flur... | I have integrated Flurry banner ad on my app. On logcat it says BannerAdObject created, but ad is not displayed. I've attached the code and logcat. I have not found any solution for this issue . [CODE] Logcat [CODE] | android|flurry | 0 | 2016-05-02T11:29:35.607Z | 2,016 | 5 | 11 | 0 | 391 | 0 | 215 | 43 | 2 | 2 | true | true | false | false | false | false | zero |
36,981,384 | Notification everyday at specific time not notifying | <p>I want to generate notification everyday at 8:00 AM. I have created the code for simple notification but I am not getting the notification following is the code for NotifyService Class</p>
<pre><code> public class NotifyService extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedIn... | I want to generate notification everyday at 8:00 AM. I have created the code for simple notification but I am not getting the notification following is the code for NotifyService Class [CODE] And this is the code written in the MainActivity class onCreate method [CODE] Don't know where I am getting wrong | java|android | 1 | 2016-05-02T11:29:59.623Z | 2,016 | 5 | 11 | 0 | 122 | 3 | 305 | 52 | 2 | 2 | true | false | false | false | false | false | low |
36,981,523 | how to read content description for an alert dialog in android | <p>I am alerting the user after some action and showing alert dialog but when accessibility is on it is not reading full alert dailog header and body. It is reading only header. I found this issue in samsung galaxy s5.
Please help me solving this issue.</p>
<pre><code>public class TransactionDialog extends DialogFragm... | I am alerting the user after some action and showing alert dialog but when accessibility is on it is not reading full alert dailog header and body. It is reading only header. I found this issue in samsung galaxy s5. Please help me solving this issue. [CODE] Here i am using the txndialog class for creating the alert dia... | android|accessibility|android-alertdialog | 5 | 2016-05-02T11:38:05.817Z | 2,016 | 5 | 11 | 0 | 1,871 | 0 | 331 | 62 | 3 | 2 | true | true | false | false | false | false | low |
36,981,559 | Add different Images to my Adapter and show them in ListView | <p>I am new to android..and my question is:</p>
<p>I am making one android Application in which I have one <code>RadioGroup</code> with two <code>Radiobutton</code>
btnA and btnB along with some other Parameters.
if btnA is Checked than value in database is 1 and if btnB is selected then Value in Database is 0.
I am r... | I am new to android..and my question is: I am making one android Application in which I have one RadioGroup with two Radiobutton btnA and btnB along with some other Parameters. if btnA is Checked than value in database is 1 and if btnB is selected then Value in Database is 0. I am retrieving Data from database while sh... | android|listview|android-radiogroup|android-radiobutton | 1 | 2016-05-02T11:40:12.727Z | 2,016 | 5 | 11 | 0 | 69 | 2 | 662 | 60 | 4 | 2 | true | false | false | false | false | false | low |
36,981,564 | Applying Effects to HD Images | <p>I am developing an app that deals with images and applying filters, borders etc to the image..(like photo editing app).</p>
<p>I am facing issue when applying filters or borders to HD images (as images will be of different size and resolution).</p>
<p>My Question is how do I apply filters without changing the size... | I am developing an app that deals with images and applying filters, borders etc to the image..(like photo editing app). I am facing issue when applying filters or borders to HD images (as images will be of different size and resolution). My Question is how do I apply filters without changing the size or dimension of th... | java|android | 0 | 2016-05-02T11:40:29.673Z | 2,016 | 5 | 11 | 0 | 65 | 1 | 548 | 29 | 2 | 1 | true | false | false | false | false | false | zero |
36,981,674 | java.lang.NullPointerException: Attempt to read from null array - in sliding menu | <p>I am trying to write an app with a sliding menu but i keep getting this error:</p>
<pre><code> java.lang.RuntimeException: Unable to start activity ComponentInfo{}: java.lang.NullPointerException: Attempt to read from null array
</code></pre>
<p>this is my Main activity</p>
<pre><code> package com.noxel.shahre... | I am trying to write an app with a sliding menu but i keep getting this error: [CODE] this is my Main activity [CODE] the error is on line : navDrawerItems.add(new NavDrawerItem(navMenuTitles[0],navMenuIcons.getResourceId(0, -1))); this is my stacktrace : [CODE] | java|android|nullpointerexception|stack-trace|slidingmenu | 0 | 2016-05-02T11:46:41.610Z | 2,016 | 5 | 11 | 0 | 26 | 0 | 262 | 81 | 5 | 3 | true | true | false | false | false | false | zero |
36,981,699 | how can i use 3 fragment in a sliding tab layout with 3 tabs | <p>I want to make an activity that have a toolbar on top and below the <code>toolbar</code> there is an sliding <code>tablayout</code> with 3 tabs.
i want to use a <code>fragment</code> in each tab. like this: </p>
<p>fragment 1 inside tab1<br>
fragment 2 inside tab2<br>
fragment 3 inside tab3 </p>
<p>how can i ... | I want to make an activity that have a toolbar on top and below the toolbar there is an sliding tablayout with 3 tabs. i want to use a fragment in each tab. like this: fragment 1 inside tab1 fragment 2 inside tab2 fragment 3 inside tab3 how can i define it. my own pagerAdapter code with 3 different fragment is below bu... | android|fragment | 0 | 2016-05-02T11:47:55.643Z | 2,016 | 5 | 11 | 0 | 590 | 1 | 363 | 60 | 2 | 1 | true | false | false | false | false | false | zero |
36,981,734 | Opening Activity from custom scheme not working in all browsers except Firefox | <p>I have an app wherein I want to open one of its <code>Activities</code> through a custom scheme. Here is my activity in the Manifest:</p>
<pre><code><activity
android:name=".activity.ResetPasswordActivity">
<intent-filter
android:autoVerify="true">
<action android:name="androi... | I have an app wherein I want to open one of its Activities through a custom scheme. Here is my activity in the Manifest: [CODE] In iOs, I can open the particular screen on the app by simply clicking on the link from my Gmail: monicaaa://reg/password/reset/confirm/ , but in Android, I can only open the ResetPasswordActi... | android|deep-linking|url-scheme | 1 | 2016-05-02T11:50:12.807Z | 2,016 | 5 | 11 | 0 | 1,035 | 2 | 683 | 78 | 3 | 2 | true | false | false | false | false | false | low |
36,981,771 | Xamarin how to open another layout by clicking on new resource layout | <p>I am new with Xamarin, but I am training by creating parking application. Now I got issue by trying to access to another layout.</p>
<p>This is my MainActivity.cs</p>
<pre><code> [Activity(Label = "CustomActionBarParking", MainLauncher = true, Icon = "@drawable/icon", Theme ="@style/CustomActionBarTheme")]
... | I am new with Xamarin, but I am training by creating parking application. Now I got issue by trying to access to another layout. This is my MainActivity.cs [CODE] Here I am accessing from my menu, by clicking on "Zones" action bar. And open "zones list" layout. From here I want to access to another Layout: vehicle_not_... | c#|android|android-layout|xamarin|xamarin.android | 2 | 2016-05-02T11:52:06.597Z | 2,016 | 5 | 11 | 0 | 3,652 | 1 | 792 | 69 | 5 | 2 | true | false | true | false | false | false | low |
36,981,789 | How to display details of listview selected item on another activity? | <p>Here is my code... which i displayed listview data... Now i want to fetch other details under this id</p>
<p>I want to fetch from database based on the Growers ID. Which is get from the listview</p>
<pre><code> public class FarmerDetails extends Activity implements OnClickListener
{
private TextView tv;
... | Here is my code... which i displayed listview data... Now i want to fetch other details under this id I want to fetch from database based on the Growers ID. Which is get from the listview [CODE] In my code only ID is displaying... fetching is not performing.. Plz help!! | android|mysql|listview|android-volley | 0 | 2016-05-02T11:52:49.573Z | 2,016 | 5 | 11 | 0 | 369 | 1 | 270 | 69 | 4 | 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.