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,721,268 | Cannot resolve method startActivityforResults in this code | <p>Why cannot resolve this method in a class? This class is out off main android class. If I put the method in main class work fine, but not in other class.</p>
<pre><code>class blu {
public blu(){
}
public boolean comprobarBluetooth(Context context){
CharSequence text = "No ti... | Why cannot resolve this method in a class? This class is out off main android class. If I put the method in main class work fine, but not in other class. [CODE] | java|android | 0 | 2016-04-19T14:24:43.707Z | 2,016 | 4 | 14 | 1 | 2,285 | 3 | 160 | 58 | 2 | 1 | true | false | false | false | false | false | zero |
36,721,431 | How to turn quiz from the text type to the image type in android? | <p>These questions of the text type
I want to turn them into questions type of image
in the sense explained
The question I want to be an image, not (5 + 2),(2+15),....
is that possible???
I am Beginning in android </p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="sni... | These questions of the text type I want to turn them into questions type of image in the sense explained The question I want to be an image, not (5 + 2),(2+15),.... is that possible??? I am Beginning in android [CODE] | android | 1 | 2016-04-19T14:30:49.523Z | 2,016 | 4 | 14 | 1 | 48 | 2 | 217 | 65 | 1 | 1 | true | false | false | false | false | false | low |
36,721,529 | Persist query in SearchView after resuming activity | <p>I have an Activity with a ListView and clickeable items to show details of each of them in a separate Activity. My main activity has a SearchView to filter those items. I want to be able to click on an item (that open's a new activity) and when i press back button, my searchView remains same (with my filtered list).... | I have an Activity with a ListView and clickeable items to show details of each of them in a separate Activity. My main activity has a SearchView to filter those items. I want to be able to click on an item (that open's a new activity) and when i press back button, my searchView remains same (with my filtered list). I ... | android|search|android-activity|searchview | 1 | 2016-04-19T14:35:34.733Z | 2,016 | 4 | 14 | 1 | 580 | 1 | 744 | 51 | 4 | 2 | true | false | false | false | false | false | low |
36,721,648 | How to dynamically get the current compiler target file name in Android.mk's LOCAL_CFLAGS? | <p>I am currently trying to build a native module using Android's NDK. My project consists of several source files (e.g.: <strong>FILENAME</strong>.c) and for each of them I need to declare a define in their CFLAGS (<strong>-DOPERATION_FILENAME</strong>).</p>
<p>In order to do that I need to dynamically fetch the name... | I am currently trying to build a native module using Android's NDK. My project consists of several source files (e.g.: FILENAME .c) and for each of them I need to declare a define in their CFLAGS ( -DOPERATION_FILENAME ). In order to do that I need to dynamically fetch the name of the current target file of the Android... | android|c|makefile|android-ndk|android.mk | 1 | 2016-04-19T14:39:36.653Z | 2,016 | 4 | 14 | 1 | 540 | 1 | 690 | 90 | 5 | 1 | true | false | false | false | false | false | low |
36,721,962 | Nested RecyclerViews in CoordinatorLayout | <p>I have a problem with a <code>View</code> hierarchy in the app I am working on right now. </p>
<p>One of the screens looks like this:</p>
<pre><code><CoordinatorLayout>
<AppBarLayout>
<Toolbar/>
</AppBarLayout>
<RecyclerView>
... items, some of which are ... | I have a problem with a View hierarchy in the app I am working on right now. One of the screens looks like this: [CODE] The whole idea is to have the Toolbar parallax nicely when scrolling down the RecyclerView content. The whole thing works rather nicely, but there is a problem with the mentioned parallax behavior (wh... | android|material-design|android-recyclerview|parallax|android-coordinatorlayout | 0 | 2016-04-19T14:51:43.507Z | 2,016 | 4 | 14 | 1 | 775 | 1 | 875 | 41 | 5 | 1 | true | false | false | false | false | false | zero |
36,721,963 | how to deal with multiple buttons in sharedpreferences | <p>I have 21 togglebuttons and was wondering how to save state of each individual one using sharedpreferences?</p>
<p>i've tried with this: </p>
<pre><code>button = (ToggleButton)findViewById(R.id.btn1);
SharedPreferences sharedPrefs = getSharedPreferences(PREFS_NAME, MODE_PRIVATE);
button.setChecked(sharedPr... | I have 21 togglebuttons and was wondering how to save state of each individual one using sharedpreferences? i've tried with this: [CODE] but how to make it store values for all buttons and can i do it in PREFS_NAME for all of them? ok so i created xml file with those buttons: [CODE] and activity with this code: [CODE] ... | android | 0 | 2016-04-19T14:51:49.127Z | 2,016 | 4 | 14 | 1 | 377 | 1 | 563 | 54 | 1 | 4 | true | false | false | false | false | false | zero |
36,722,023 | How to normalize OpenCV Android matrices? | <p><strong>tl;dr</strong> My KNearest training data and real data don't have the same dimensions and cause my app to crash. I suspect that either my <code>preProces</code> method of the way I instantiate my training data (drawable resource => bitmap => opencv matrix) is the reason for failure. Does any of you know a so... | tl;dr My KNearest training data and real data don't have the same dimensions and cause my app to crash. I suspect that either my preProces method of the way I instantiate my training data (drawable resource => bitmap => opencv matrix) is the reason for failure. Does any of you know a solution? I've been trying to get a... | android|opencv|opencv3.0 | 1 | 2016-04-19T14:54:04.633Z | 2,016 | 4 | 14 | 1 | 521 | 1 | 1,799 | 41 | 3 | 2 | true | false | false | false | false | false | low |
36,722,186 | Make Android Action Bar transparent | <p>I'm trying to make my AppCompatActivity's Action Bar transparent. I'm looking for something <a href="https://lh4.ggpht.com/3dVMsp1ji8hN1fA3o4F6KTJpmdss7B1BiPK_oRLNP2v3IoIcEX6j9Sir1NgzUoe8NKQ=h900-rw" rel="nofollow">like this</a> (from <a href="https://play.google.com/store/apps/details?id=com.gamma.scan" rel="nofoll... | I'm trying to make my AppCompatActivity's Action Bar transparent. I'm looking for something like this (from this app ). I've tried doing this: getWindow().setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION, WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION); But the only thing it does is making views ... | android|android-actionbar|android-appcompat | 3 | 2016-04-19T15:00:02.263Z | 2,016 | 4 | 15 | 1 | 5,955 | 1 | 479 | 35 | 3 | 1 | true | false | true | false | false | false | low |
36,722,254 | Count integer with Thread in Activity and update Canvas in View | <p>I'm developing my first android game without xml files for layouts in eclipse. This is calling MyGameView.class(extends View) from MyGameActivity.class(extends View implements OnTouchListener)</p>
<pre><code> MyGameView myView;
myView = new MyGameView(this);
myView.setOnTouchListener(this);
setContentView(myView... | I'm developing my first android game without xml files for layouts in eclipse. This is calling MyGameView.class(extends View) from MyGameActivity.class(extends View implements OnTouchListener) [CODE] Everytime, I touch (MotionEvent.ACTION_DOWN), I update the Canvas in MyGameView.class with the following code. This is t... | java|android|multithreading|android-canvas | 0 | 2016-04-19T15:02:58.287Z | 2,016 | 4 | 15 | 1 | 163 | 1 | 1,077 | 63 | 4 | 4 | true | false | false | false | false | false | zero |
36,722,452 | How to animate/update just parts of activity? | <p>I'm working on an android application, which get a number from the user and calculate 20/40/60 and 80% of it. </p>
<p>The app has an fixed header part. The other part needs to be updated after pressing the "calculate!"-button. The way I want to implement it is to do a flowing exchange from right to left. </p>
<p>T... | I'm working on an android application, which get a number from the user and calculate 20/40/60 and 80% of it. The app has an fixed header part. The other part needs to be updated after pressing the "calculate!"-button. The way I want to implement it is to do a flowing exchange from right to left. The problem is, I don'... | android|animation|android-studio | 0 | 2016-04-19T15:10:41.057Z | 2,016 | 4 | 15 | 1 | 71 | 1 | 792 | 45 | 3 | 0 | false | false | false | false | false | false | zero |
36,722,502 | i have implemented a method for on click popup menu but my app is crashing on run time | <p>i have implemented popup menu method(openDialogManger) in my activity . Basically i want a popmenu when i click an item in my list view. I have implemented the method but my app is crashing when i click first item in my listview .</p>
<p>This is my Activity where i have implemented this method</p>
<pre><code>packa... | i have implemented popup menu method(openDialogManger) in my activity . Basically i want a popmenu when i click an item in my list view. I have implemented the method but my app is crashing when i click first item in my listview . This is my Activity where i have implemented this method [CODE] And this my log error exc... | android | 0 | 2016-04-19T15:13:01.810Z | 2,016 | 4 | 15 | 1 | 147 | 1 | 383 | 86 | 1 | 3 | true | false | false | false | false | false | zero |
36,722,640 | android - animation doesn't work the second time | <p>I have a button which need to fade in. But it works only the first time. It doesn't work the second time.</p>
<p>Here is my code.</p>
<pre><code> final TextView doctorInfoView = (TextView) rowView.findViewById(R.id.doctorInfo);
final TextView specialtyView = (TextView) rowView.findViewById(R.id.specialty);
... | I have a button which need to fade in. But it works only the first time. It doesn't work the second time. Here is my code. [CODE] Here is fade_in_animate.xml [CODE] I'd appreciated about any feedback. | android | 3 | 2016-04-19T15:18:57.580Z | 2,016 | 4 | 15 | 1 | 1,539 | 1 | 200 | 48 | 1 | 2 | true | false | false | false | false | false | low |
36,722,717 | Error when i try to use a fragment in Android | <p>This is my first Android App and I'm having some issues. I want to use menu_item.xml as a <code>Fragment</code> in teste_menu.xml but I don't know what I'm doing wrong.</p>
<pre><code>E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.nunog.myapplication12, PID: 5342
java.lang.NullPointerExcepti... | This is my first Android App and I'm having some issues. I want to use menu_item.xml as a Fragment in teste_menu.xml but I don't know what I'm doing wrong. [CODE] Menu.class [CODE] MenuItemFragment.class [CODE] teste_menu.XML [CODE] menu_item.XML [CODE] | android | 1 | 2016-04-19T15:21:47.517Z | 2,016 | 4 | 15 | 1 | 69 | 1 | 253 | 45 | 1 | 5 | true | false | false | false | false | false | low |
36,722,826 | Calculate the outer vertices for a border of uniform thickness x drawn around a polygon | <p>I have a polygon defined by a center point C and an array of outer vertices (V<sub>0</sub>, V<sub>1</sub>, .., V<sub>n</sub>) entered in CCW order. For every vertex V<sub>i</sub>, I know the angle formed by vertices V<sub>(i-1)%n</sub>, V<sub>i</sub>, and V<sub>(i+1)%n</sub>, and I can normalize the vector from C to... | I have a polygon defined by a center point C and an array of outer vertices (V 0 , V 1 , .., V n ) entered in CCW order. For every vertex V i , I know the angle formed by vertices V (i-1)%n , V i , and V (i+1)%n , and I can normalize the vector from C to V i . I can also translate a vertex by any given vector. The oute... | android|opengl-es|border|polygon|vertex | 1 | 2016-04-19T15:25:57.700Z | 2,016 | 4 | 15 | 1 | 322 | 1 | 675 | 87 | 5 | 1 | true | false | false | false | false | false | low |
36,722,879 | BottomSheetDialog not showing? | <p>I'm trying to implement the new BottomSheetDialog, but when I call <code>.show()</code> it display the background shadows but not my layout.</p>
<p>This is my code</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.NestedScrollView
xmlns:android="http://schemas.android.co... | I'm trying to implement the new BottomSheetDialog, but when I call .show() it display the background shadows but not my layout. This is my code [CODE] And then: [CODE] How can I fix this issue? | android|material-design|bottom-sheet | 8 | 2016-04-19T15:28:05.627Z | 2,016 | 4 | 15 | 1 | 2,576 | 2 | 193 | 30 | 3 | 2 | true | false | false | false | false | false | medium |
36,722,936 | MediaRecorder output 0 byte file | <p>I wanna record video and audio using MediaRecorder.</p>
<p>It's work.</p>
<p>But when i check output file.</p>
<p>I can't play output video file.</p>
<p>Because,</p>
<p>output filesize is <code>0 byte.</code></p>
<p>also video time is 0 second..</p>
<p>Please check my code.</p>
<pre><code>public class Talk e... | I wanna record video and audio using MediaRecorder. It's work. But when i check output file. I can't play output video file. Because, output filesize is 0 byte. also video time is 0 second.. Please check my code. [CODE] What is problem? | android|mediarecorder | 4 | 2016-04-19T15:30:06.500Z | 2,016 | 4 | 15 | 1 | 1,933 | 1 | 236 | 32 | 2 | 1 | true | false | false | false | false | false | low |
36,722,988 | Android Turkish Character "UTF-8" | <p>I use "UTF-8" for charset in order to contain Turkish characters. In messaging part it is OK and turkish characters is shown but, with same system ,user brief part does not encode turkish character properly. User brief async part code snippet: </p>
<pre><code>public class ServerKullaniciDurum extends AsyncTask<S... | I use "UTF-8" for charset in order to contain Turkish characters. In messaging part it is OK and turkish characters is shown but, with same system ,user brief part does not encode turkish character properly. User brief async part code snippet: [CODE] What is this reason ? How can i overcome it ? | android | 1 | 2016-04-19T15:31:59.073Z | 2,016 | 4 | 15 | 1 | 373 | 0 | 296 | 33 | 1 | 1 | true | true | false | false | false | false | low |
36,723,199 | Get ID database From ListView | <p>I have 1 problem and need help.</p>
<p>I have a Activity SearchNote, and i display data from table on it. </p>
<p>Here is my Activity SearchNote</p>
<pre><code>private void addDataListViewSearchByNote(){
Bundle extras = getIntent().getExtras();
String idUser = extras.getString("IdUser");
C... | I have 1 problem and need help. I have a Activity SearchNote, and i display data from table on it. Here is my Activity SearchNote [CODE] And here is method in DatabaseHelper [CODE] I have Spinner and Data which display on ListView is belong to Spinner. And I'm trying to get ID of item when i clicked on it. My table TAB... | android|listview | 1 | 2016-04-19T15:40:40.053Z | 2,016 | 4 | 15 | 1 | 88 | 0 | 747 | 29 | 2 | 3 | true | true | false | false | false | false | low |
36,723,234 | Retrieve data into EditText from SQL Lite Database | <p>I am currently working on a small application which allows a persons details to be stored in a database and then retrieved into an EditText field. Currently i am able to store a persons name into the database. But i am having trouble retrieving this data.</p>
<p>Any help anyone can give would be greatly appreciated... | I am currently working on a small application which allows a persons details to be stored in a database and then retrieved into an EditText field. Currently i am able to store a persons name into the database. But i am having trouble retrieving this data. Any help anyone can give would be greatly appreciated! Thanks! D... | java|android|sqlite | 1 | 2016-04-19T15:42:13.570Z | 2,016 | 4 | 15 | 1 | 816 | 1 | 411 | 50 | 3 | 4 | true | false | false | false | false | false | low |
36,723,277 | Align all columns in list view | <p>I was wondering how I can manage to align all columns in rows. I am using a <code>ListView</code>, where I display a list of drugs for my game. The columns are different sizes each row. I would like to see that each column has the same width all down to the end of the list, but not have same width overall.</p>
<p><... | I was wondering how I can manage to align all columns in rows. I am using a ListView , where I display a list of drugs for my game. The columns are different sizes each row. I would like to see that each column has the same width all down to the end of the list, but not have same width overall. As you can see from the ... | android|android-layout|listview | 3 | 2016-04-19T15:44:08.283Z | 2,016 | 4 | 15 | 1 | 1,390 | 3 | 1,800 | 30 | 3 | 5 | true | false | false | false | false | false | low |
36,723,335 | Compile Library project with AndroidAnnotations and Fragments | <p>I am currently working on an Android library which is developed with AndroidAnnotations, and uses some Fragments. When it is compiled as an Android application, the code is fine and everything works. When it is compiled as an Android library, it breaks because it can't find any of the AndroidAnnotations generated cl... | I am currently working on an Android library which is developed with AndroidAnnotations, and uses some Fragments. When it is compiled as an Android application, the code is fine and everything works. When it is compiled as an Android library, it breaks because it can't find any of the AndroidAnnotations generated class... | android|android-fragments|android-library|android-annotations | 2 | 2016-04-19T15:46:34.883Z | 2,016 | 4 | 15 | 1 | 463 | 1 | 931 | 61 | 4 | 2 | true | false | false | false | false | false | low |
36,723,358 | Uri Matcher doesn't match uri | <p>Here is my Uri Matcher </p>
<pre><code>static UriMatcher buildUriMatcher() {
UriMatcher mUriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
// Bind uriMatcher int constants and uris
mUriMatcher.addURI(OneSpaceContract.CONTENT_AUTHORITY, OneSpaceContract.PATH_DRIVE, DRIVE_LIST);
mUriMatcher.addURI(On... | Here is my Uri Matcher [CODE] Here is PATH_FILE constant [CODE] UriMatcher doesn't match my uri Uri : content://olexiimuraviov.ua.onespace_diplomaproject/file/drive/11/root Here is an Exception [CODE] I tried to debug and found nothing. Uri pattern looks fine and given uri is fine too, but matcher doesn't match it. Can... | android|uri|android-contentprovider|matcher | 3 | 2016-04-19T15:47:34.417Z | 2,016 | 4 | 15 | 1 | 702 | 1 | 368 | 29 | 4 | 3 | true | false | false | false | false | false | low |
36,723,371 | how to choose the image from gallary and set it to bitmap | <p>I have <code>imageButton</code> in <code>RecyclerView.Adapter</code> which needs to make an <code>intent</code> to choose the image from the image gallery. This is main class where I passed Uri to adapter in a method <code>onImageSelected(uri, getContentResolver())</code></p>
<pre><code>public class MainForSemester... | I have imageButton in RecyclerView.Adapter which needs to make an intent to choose the image from the image gallery. This is main class where I passed Uri to adapter in a method onImageSelected(uri, getContentResolver()) [CODE] This is adapter class: [CODE] } I'm confused how to perform selecting image from gallery in ... | android|bitmap | 1 | 2016-04-19T15:48:09.780Z | 2,016 | 4 | 15 | 1 | 1,733 | 2 | 478 | 57 | 2 | 2 | true | false | false | false | false | false | low |
36,723,423 | Single selected item on recyclerview android | <p>I'm trying to highlight onmy one item on my recyclerview when user click. But I have an unexpected behavior. </p>
<p>When I click on one item, the adapter logs me that that one is selected and hightlighted. But when I scroll, I see that there are other items highlighted.</p>
<p>Any help on that issue will be reall... | I'm trying to highlight onmy one item on my recyclerview when user click. But I have an unexpected behavior. When I click on one item, the adapter logs me that that one is selected and hightlighted. But when I scroll, I see that there are other items highlighted. Any help on that issue will be really appreciate. My cod... | android|android-recyclerview | 0 | 2016-04-19T15:50:37.610Z | 2,016 | 4 | 15 | 1 | 6,092 | 1 | 393 | 44 | 2 | 2 | true | false | true | false | false | false | zero |
36,723,596 | when i pass data from popup menu to main activity nothing show up in the main activity list view | <p><strong>i have added startactivity to done click even but it removes old data when i add new one please help</strong></p>
<p><code>enter code here</code></p>
<p>public class popupmenu extends AppCompatActivity {</p>
<pre><code>@Override
enter code here
protected void onCreate(Bundle savedInstanceState) {
supe... | i have added startactivity to done click even but it removes old data when i add new one please help enter code here public class popupmenu extends AppCompatActivity { [CODE] } public class MainActivity extends AppCompatActivity { [CODE] } public class adapter2 extends BaseAdapter { [CODE] | android|android-layout|listview|android-fragments|popup | 0 | 2016-04-19T15:57:59.517Z | 2,016 | 4 | 15 | 1 | 260 | 0 | 290 | 96 | 5 | 3 | true | true | false | false | false | false | zero |
36,723,604 | Android Studio - setAdapter() - fails | <p>I try to make Bluetooth app and a run into troubles with <code>setAdapter()</code>.</p>
<pre><code>private BluetoothAdapter BA;
ListView listB;
private Set<BluetoothDevice> pairedDevices;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
BA = Bluetooth... | I try to make Bluetooth app and a run into troubles with setAdapter() . [CODE] 04-20 21:52:15.761 17597-17597/com.example.werewolf.deltacontroler W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffCo... | java|android | 0 | 2016-04-19T15:58:20.167Z | 2,016 | 4 | 15 | 1 | 2,101 | 0 | 8,365 | 37 | 2 | 1 | true | true | false | false | false | false | zero |
36,723,728 | Changing text in TextView inside CardView from itself | <p>Imagine a CardView with a button and text field. When I press on a button, text should change in the textfield. Code for my recyclerView is given below, where I am setting the text and a listener for a button:</p>
<pre><code>@Override
public void onBindViewHolder(CategoriesDetailedViewHolder holder, int positio... | Imagine a CardView with a button and text field. When I press on a button, text should change in the textfield. Code for my recyclerView is given below, where I am setting the text and a listener for a button: [CODE] The main problem is with the string: [CODE] It cannot be accessed from an inner class. Is anyone have a... | android|android-recyclerview|android-cardview | 1 | 2016-04-19T16:03:35.570Z | 2,016 | 4 | 16 | 1 | 2,291 | 2 | 388 | 53 | 3 | 3 | true | false | false | false | false | false | low |
36,723,831 | Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object | <p>I am trying to insert some data to textview(In fragment) from database.
Here is the fragment:</p>
<pre><code>SQLiteOpenHelper deck_helper = new DeckDatabaseHelper(getActivity());
SQLiteDatabase db = deck_helper.getReadableDatabase();
TextView name = (TextView) getActivity().findViewById(R.id.textView2);
... | I am trying to insert some data to textview(In fragment) from database. Here is the fragment: [CODE] And DeckDatabaseHelper [CODE] I think that Textview should show "Mage", but get this error java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' ... | java|android|android-fragments | 0 | 2016-04-19T16:08:49.047Z | 2,016 | 4 | 16 | 1 | 48 | 0 | 491 | 112 | 3 | 3 | true | true | false | false | false | false | zero |
36,723,851 | Drawer layout with two navigation views and selected item colours | <p>I have a drawer layout that needs to have two navigation views in it, because there's a couple of options that need to be aligned on top and another on the bottom, with a divider separating them.</p>
<p>I've managed to make it work, but now I have two different problems with my setup.</p>
<p>1) The first one, I ca... | I have a drawer layout that needs to have two navigation views in it, because there's a couple of options that need to be aligned on top and another on the bottom, with a divider separating them. I've managed to make it work, but now I have two different problems with my setup. 1) The first one, I can't change the sele... | android|navigation-drawer|drawerlayout|navigationview | 0 | 2016-04-19T16:09:24.757Z | 2,016 | 4 | 16 | 1 | 1,424 | 1 | 1,124 | 65 | 4 | 5 | true | false | false | false | false | false | zero |
36,723,950 | setExact() don't trigger at time (earlier) | <p>I am using min API 19 and executing in Android 6.0. I have created an alarm with setExact (I want to execute every 5 seconds). For testing it I have just made this (I created it inside a fragment):</p>
<pre><code>Intent intent = new Intent(getActivity(), AlarmReceiver.class);
PendingIntent pendingIntent = PendingIn... | I am using min API 19 and executing in Android 6.0. I have created an alarm with setExact (I want to execute every 5 seconds). For testing it I have just made this (I created it inside a fragment): [CODE] And it calls: [CODE] But when I click button the toast appear 2 or 3 seconds later. If I change the trigger time fr... | android | 0 | 2016-04-19T16:14:02.097Z | 2,016 | 4 | 16 | 1 | 109 | 1 | 553 | 42 | 1 | 2 | true | false | false | false | false | false | zero |
36,723,976 | Adding fragment with animation causes fragment to flash before animation begins | <p>I am adding a fragment and animating it down from the top of the screen. The animation works perfectly, but the whole fragment very quickly appears, then disappears, and then the animation begins. How can I get rid of this flash?</p>
<p>Fragment: ( MyFrameLayout extends FrameLayout to calculate the yFraction )
... | I am adding a fragment and animating it down from the top of the screen. The animation works perfectly, but the whole fragment very quickly appears, then disappears, and then the animation begins. How can I get rid of this flash? Fragment: ( MyFrameLayout extends FrameLayout to calculate the yFraction ) [CODE] showMenu... | android|animation|android-fragments | 2 | 2016-04-19T16:15:00.227Z | 2,016 | 4 | 16 | 1 | 616 | 0 | 504 | 79 | 3 | 3 | true | true | false | false | false | false | low |
36,724,018 | Cordova not finding avd | <p>After following the instructions for setting up Cordova for Android development on the <a href="https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html" rel="nofollow">Cordova documentation</a>, I encountered this error:</p>
<pre><code>Error: No emulator images (avds) found.
1. Download desired... | After following the instructions for setting up Cordova for Android development on the Cordova documentation , I encountered this error: [CODE] Every other post I found only said to add an emulator, but I have already done that. In Android Studio, I have in fact made three! It is also worth mentioning that Cordova used... | android|node.js|cordova|sdk|android-emulator | 1 | 2016-04-19T16:17:06.123Z | 2,016 | 4 | 16 | 1 | 2,140 | 3 | 1,042 | 23 | 5 | 2 | true | false | false | false | false | false | low |
36,724,026 | Android CollapsingToolbarLayout without Toolbar to stop at a certain point and not completely close | <p>I understand that a toolbar is needed so that the CollapsingToolbarLayout does not completely close when you scroll: eg:</p>
<p><a href="http://imgur.com/zQxi1Y8" rel="noreferrer">http://imgur.com/zQxi1Y8</a></p>
<p>I'm trying to figure out if I can get away with the CollapsingToolbarLayout without a Toolbar in it... | I understand that a toolbar is needed so that the CollapsingToolbarLayout does not completely close when you scroll: eg: http://imgur.com/zQxi1Y8 I'm trying to figure out if I can get away with the CollapsingToolbarLayout without a Toolbar in it and still won't completely close? Here's my code: [CODE] Here's my version... | android|android-toolbar|android-collapsingtoolbarlayout | 9 | 2016-04-19T16:17:33.453Z | 2,016 | 4 | 16 | 1 | 6,389 | 1 | 522 | 99 | 3 | 1 | true | false | true | false | false | false | medium |
36,724,057 | java.lang.SecurityException: | <p>I have made an application that opens my gallery when I click a button, when I select an image I want it to display on my screen however when I select a photo I want I get a runtime saying </p>
<pre><code> Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.media.MediaProvider u... | I have made an application that opens my gallery when I click a button, when I select an image I want it to display on my screen however when I select a photo I want I get a runtime saying [CODE] My Code is as fallows [CODE] | java|android|android-studio|android-gallery | -1 | 2016-04-19T16:19:17.253Z | 2,016 | 4 | 16 | 1 | 1,044 | 3 | 224 | 28 | 4 | 2 | true | false | false | false | false | true | negative |
36,724,100 | Error inflating class com.facebook.drawee.view.SimpleDraweeView | <p>I'm trying to use the fresco library. I used it before too and it was working, but now, for some reason I get:</p>
<pre><code>Unable to start activity ComponentInfo{com.example.home.template/com.example.home.template.MainActivity}: android.view.InflateException: Binary XML file line #26: Error inflating class com.f... | I'm trying to use the fresco library. I used it before too and it was working, but now, for some reason I get: [CODE] My xml file: [CODE] MyApplication: [CODE] I have it in my manifest: android:name=".MyApplication" The only problem that I'm having is with the draweeview. I can do all of the other stuff such as logging... | android|facebook|fresco | 8 | 2016-04-19T16:21:24.863Z | 2,016 | 4 | 16 | 1 | 7,982 | 5 | 347 | 63 | 3 | 3 | true | false | true | false | false | false | medium |
36,724,194 | How to correctly send multiple files and params with Koush / Ion | <p>I'm using <a href="https://github.com/koush/ion" rel="nofollow">Koush / Ion</a> library.</p>
<p>I'm trying to send a request with regular parameters and files, like an html multipart form, but seems that don't send anything. Are this the correct way? or i'm doing it a bit weird?</p>
<p>When the request goes with f... | I'm using Koush / Ion library. I'm trying to send a request with regular parameters and files, like an html multipart form, but seems that don't send anything. Are this the correct way? or i'm doing it a bit weird? When the request goes with files it takes more time to run the callback, so I think that is sending the f... | php|android|rest|android-ion|ion-koush | 0 | 2016-04-19T16:26:06.290Z | 2,016 | 4 | 16 | 1 | 773 | 1 | 530 | 64 | 5 | 2 | true | false | false | false | false | false | zero |
36,724,196 | In Bluetooth Master-Slave architecture can a Slave initiate the connection? | <p>My company makes industrial products where Android devices talk to a PC to control an industrial process. Currently they use WiFi but we want to replace that with Bluetooth for some applications. I'm a Bluetooth newbie and I'm trying to learn the basics. I'll be programming the Android side.</p>
<p>My understa... | My company makes industrial products where Android devices talk to a PC to control an industrial process. Currently they use WiFi but we want to replace that with Bluetooth for some applications. I'm a Bluetooth newbie and I'm trying to learn the basics. I'll be programming the Android side. My understanding is that Bl... | android|bluetooth | 1 | 2016-04-19T16:26:18.973Z | 2,016 | 4 | 16 | 1 | 1,157 | 1 | 985 | 75 | 2 | 0 | false | false | false | false | false | false | low |
36,724,386 | Sort custom listview extended ArrayAdapter in Android | <p>I have a custom dynamic listview and at the top of the page, I have a button who can add an item to listview infinitely like this:</p>
<p><strong>Code</strong></p>
<pre><code> btnadd.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
note = new Struct... | I have a custom dynamic listview and at the top of the page, I have a button who can add an item to listview infinitely like this: Code [CODE] 1- how i can sort this listview (the last created item to first created item) 2- how i can set a button in my first page so the user can open the last opened item of listview fr... | java|android|listview | 0 | 2016-04-19T16:36:42.207Z | 2,016 | 4 | 16 | 1 | 314 | 1 | 444 | 53 | 3 | 4 | true | false | false | false | false | false | zero |
36,724,562 | Android : Gradle computes wrong apk name | <p>I am renaming my apk file using following code :</p>
<pre><code> applicationVariants.all { variant ->
android.defaultConfig.versionName = variant.mergedFlavor.versionName;
renameAPK(variant, defaultConfig)
}
def renameAPK(variant, defaultConfig) {
variant.outputs.each { outpu... | I am renaming my apk file using following code : [CODE] This works fine in most cases. However, occasionally, I get an error when trying to install the app on a device which says : Gradle build finished in 1s 615ms 12:37:04 PM EmptyThrowable: The APK file ./build/outputs/apk/Myapp_4.0_debug_18Apr16.apk does not exist o... | android|android-gradle-plugin|gradlew|android-studio-2.0 | 2 | 2016-04-19T16:45:46.237Z | 2,016 | 4 | 16 | 1 | 477 | 2 | 748 | 40 | 4 | 1 | true | false | false | false | false | false | low |
36,724,611 | Android Resources$NotFoundException when inflating activity from library project | <p>What could cause this problem when I added the MuPDF library to my project.</p>
<p>This is the error log:</p>
<pre><code>FATAL EXCEPTION: main
Process: ch.my.app, PID: 18899
java.lang.RuntimeException: Unable to start activity ComponentInfo{ch.my.app/com.artifex.mupdflib.MuPDFActivity}: android.con... | What could cause this problem when I added the MuPDF library to my project. This is the error log: [CODE] I am adding MuPDF library as module, this is the settings.gradle [CODE] And the build.gradle for module app contains: [CODE] And the project gradle: [CODE] Android studio is not showing any problems. This is the co... | android|android-studio|mupdf | 0 | 2016-04-19T16:47:36.730Z | 2,016 | 4 | 16 | 1 | 1,008 | 1 | 683 | 80 | 3 | 7 | true | false | false | false | false | false | zero |
36,724,732 | Android 6.0 - Stuck on First Activity | <p>I have an application that opens with a LoadingActivity and then directs a user to the appropriate activity based on whether they are authenticated.</p>
<p>The app was working perfectly, however recently I updated Android Studio and all of my libraries in build.gradle. My app is now in state where it will not progr... | I have an application that opens with a LoadingActivity and then directs a user to the appropriate activity based on whether they are authenticated. The app was working perfectly, however recently I updated Android Studio and all of my libraries in build.gradle. My app is now in state where it will not progress pass th... | java|android|android-studio|android-activity|android-6.0-marshmallow | 0 | 2016-04-19T16:53:02.850Z | 2,016 | 4 | 16 | 1 | 462 | 0 | 462 | 37 | 5 | 4 | true | true | false | false | false | false | zero |
36,724,807 | Json Post through Android | <p>I know how to parse data through JSON using android, but I have no idea how to send some data through it to the server and then on the basis on this data retrieve data through JSON to android application. This is the code to parse the data to android:</p>
<pre><code>private class GetFixture extends AsyncTask<Vo... | I know how to parse data through JSON using android, but I have no idea how to send some data through it to the server and then on the basis on this data retrieve data through JSON to android application. This is the code to parse the data to android: [CODE] But how do I POST data to PHP and then make some decisions? B... | android|json|database | 0 | 2016-04-19T16:57:28.597Z | 2,016 | 4 | 16 | 1 | 57 | 1 | 562 | 25 | 3 | 1 | true | false | false | false | false | false | zero |
36,724,843 | Adding a range between 2 words in regex | <p>i have the following regex </p>
<p><code>(?i)(?:\\bauthority\\b).*(?i)(?:\\bmilitary\\b)</code></p>
<p>which means two words "authority" and "military" are found in order in which "authority" is the first in the occurrence. </p>
<p>Using the pattern and matcher methods in java, the regex returns true for the foll... | i have the following regex (?i)(?:\\bauthority\\b).*(?i)(?:\\bmilitary\\b) which means two words "authority" and "military" are found in order in which "authority" is the first in the occurrence. Using the pattern and matcher methods in java, the regex returns true for the following string Never question the authority ... | java|android|regex | 0 | 2016-04-19T16:59:57.080Z | 2,016 | 4 | 16 | 1 | 258 | 3 | 925 | 39 | 3 | 0 | false | false | false | false | false | false | zero |
36,724,898 | notifyItemChanged() make the RecyclerView scroll and jump to UP | <p>i have a RecycleView with an adapter that show a list of servers
and the user must select one server.</p>
<p>when i call notifyItemChanged(previousPosition) inside the onClick() method
to make the old server unselected and the new server selected,
that's make the RecycleView list jump to up exactly in the middle of... | i have a RecycleView with an adapter that show a list of servers and the user must select one server. when i call notifyItemChanged(previousPosition) inside the onClick() method to make the old server unselected and the new server selected, that's make the RecycleView list jump to up exactly in the middle of list. and ... | android|android-recyclerview | 25 | 2016-04-19T17:02:39.733Z | 2,016 | 4 | 17 | 1 | 12,358 | 11 | 714 | 63 | 2 | 4 | true | false | true | true | true | false | high |
36,725,069 | Android Camera, Gallery and Mail Handling | <p>I am working on an android project where I click picture from camera or pick from gallery and I need to send that image as an attachment in a mail. Here's my code for getting picture from camera <code>enter code here</code></p>
<pre><code>public void launchCamera(View view){
gallery.setEnabled(false);
Strin... | I am working on an android project where I click picture from camera or pick from gallery and I need to send that image as an attachment in a mail. Here's my code for getting picture from camera enter code here [CODE] Here is the code to get Image from Gallery [CODE] Here is the onActivityResult function [CODE] The cod... | android|email|email-attachments | 0 | 2016-04-19T17:11:23.500Z | 2,016 | 4 | 17 | 1 | 70 | 0 | 629 | 41 | 3 | 5 | true | true | false | false | false | false | zero |
36,725,291 | Enumeration<URL> configs.hasMoreElements() gives false | <p>I am developing a voice-based app in android and facing some problems please see below code,</p>
<p>Java File 1
file = .wav file</p>
<pre><code>public static AudioInputStream getAudioInputStream(File file) throws UnsupportedAudioFileException, IOException {
return getAudioInputStreamImpl(file);
}
private stati... | I am developing a voice-based app in android and facing some problems please see below code, Java File 1 file = .wav file [CODE] Java file 2 (TAudioConfig) [CODE] Java File 3 (TInit) [CODE] Java File 4 (Service) [CODE] getClassLoader().getSystemResources in the Java File 4 (Service) gives me TwoEnumerationsInOne and co... | java|android|voice-recognition | 0 | 2016-04-19T17:21:56.950Z | 2,016 | 4 | 17 | 1 | 240 | 0 | 641 | 54 | 3 | 4 | true | true | false | false | false | false | zero |
36,725,304 | Exception with Install APK programmatically | <p>Am trying to develop a android app for Google Glass which pulls apk from remote server, uninstalls and re-installs.</p>
<p>Glass is rooted, I installed installer app in /system/app, I signed the app by creating keystore file from cert & pk8 files,</p>
<p>keystore files, </p>
<ol>
<li>platform.pk8</li>
<li>pla... | Am trying to develop a android app for Google Glass which pulls apk from remote server, uninstalls and re-installs. Glass is rooted, I installed installer app in /system/app, I signed the app by creating keystore file from cert & pk8 files, keystore files, platform.pk8 platform.x509.pem https://android.googlesource.com... | android|google-glass | 0 | 2016-04-19T17:22:41.673Z | 2,016 | 4 | 17 | 1 | 872 | 1 | 496 | 43 | 2 | 3 | true | false | false | false | false | false | zero |
36,725,410 | Gradle build duplicate entry | <p>I'm building a project with a library <a href="https://github.com/iPaulPro/aFileChooser" rel="nofollow">aFileChooser</a>. I have imported it to my studio, created a "build.gradle" for it (because I had another issue "no configuration named default" or smth like that). With the new build file the build is going ok. B... | I'm building a project with a library aFileChooser . I have imported it to my studio, created a "build.gradle" for it (because I had another issue "no configuration named default" or smth like that). With the new build file the build is going ok. But deploying an apk to launch is not. I'm getting an issue about duplica... | java|android | 0 | 2016-04-19T17:28:21.083Z | 2,016 | 4 | 17 | 1 | 4,192 | 1 | 1,265 | 28 | 2 | 4 | true | false | true | false | false | false | zero |
36,725,428 | phonegap-plugin-push: ServicePackager package did not load | <p>I just added phonegap-plugin-push to my barebones phonegap app. When I build and run the application I receive the error message that the ServicePackager package did not load correctly. It throws an error when calling the following:</p>
<pre><code> pushRegistration.on('notification', function (data, d2) {
... | I just added phonegap-plugin-push to my barebones phonegap app. When I build and run the application I receive the error message that the ServicePackager package did not load correctly. It throws an error when calling the following: [CODE] The activity log shows the following error: - CreateInstance failed for package ... | android|cordova|phonegap-plugins|phonegap-pushplugin | 0 | 2016-04-19T17:29:06.163Z | 2,016 | 4 | 17 | 1 | 52 | 1 | 2,404 | 58 | 4 | 1 | true | false | false | false | false | false | zero |
36,725,556 | Android 6.0 App Not Loading Activity | <p>I recently updated Android Studio and all associated support libraries, and my application is not progressing passed the first screen.</p>
<p>The first screen is a basic LoadingActivity that checks the authentication state of the user. If the user is authenticated, it progresses to the application, otherwise it goe... | I recently updated Android Studio and all associated support libraries, and my application is not progressing passed the first screen. The first screen is a basic LoadingActivity that checks the authentication state of the user. If the user is authenticated, it progresses to the application, otherwise it goes to an act... | java|android|android-studio|gradle|android-6.0-marshmallow | 0 | 2016-04-19T17:35:13.747Z | 2,016 | 4 | 17 | 1 | 541 | 1 | 456 | 36 | 5 | 4 | true | false | false | false | false | false | zero |
36,725,647 | onResponse boolean instance variable is not being set? | <p>I have an on click listener, and in that on click listener, I have an if, else statment, as follows </p>
<pre><code> @Override
public void onClick(View v) {
postMethodRegister();
System.out.println("mSuccess is set to " + mSuccess);
if (mSuccess) {
Intent... | I have an on click listener, and in that on click listener, I have an if, else statment, as follows [CODE] I also have a boolean variable that is by default set to false, private boolean mSuccess; if the onResponse is executed I set it to true, else I set it to false and execute the appropriate response, but for some r... | java|android|json|boolean|response | 0 | 2016-04-19T17:39:57.717Z | 2,016 | 4 | 17 | 1 | 68 | 1 | 498 | 54 | 5 | 2 | true | false | false | false | false | false | zero |
36,725,827 | How to set a circular FAB button | <p><a href="https://i.stack.imgur.com/JTH2t.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JTH2t.jpg" alt="enter image description here"></a>I am trying to set a circular fab button which on clicked display other options in a circular but I am getting some error on setting the setImageDrawable
I am ... | I am trying to set a circular fab button which on clicked display other options in a circular but I am getting some error on setting the setImageDrawable I am using compile time dependency compile 'com.oguzdev:CircularFloatingActionMenu:1.0.2' my java code is [CODE] } What changes will i do to make the sub action butto... | android|floating-action-button | 0 | 2016-04-19T17:48:38.683Z | 2,016 | 4 | 17 | 1 | 2,142 | 1 | 748 | 32 | 2 | 3 | true | false | false | false | false | false | zero |
36,725,835 | OpenFire and GCM communication | <p>Currently I am implementing XMPP chatting functionality with Smack library and OpenFire XMPP server. My goal is to merge the XMPP chatting functionality with GCM, since I've read that improves battery efficiency among other benefits.</p>
<p>Everything seems to be pretty straightforward, but one thing.
I still don'... | Currently I am implementing XMPP chatting functionality with Smack library and OpenFire XMPP server. My goal is to merge the XMPP chatting functionality with GCM, since I've read that improves battery efficiency among other benefits. Everything seems to be pretty straightforward, but one thing. I still don't understand... | php|android|google-cloud-messaging|xmpp|openfire | 1 | 2016-04-19T17:49:09.873Z | 2,016 | 4 | 17 | 1 | 75 | 0 | 983 | 30 | 5 | 0 | false | true | false | false | false | false | low |
36,725,896 | Set text first five seconds then start counting | <p>I want to set a text the first five seconds then after that should the timer on the screen show. So the timer is counting the first five but not showing until five seconds later. Here are some of my code. I have more but just pasted the countdowntimer onTick-part. The timeChosen variable comes from what the user has... | I want to set a text the first five seconds then after that should the timer on the screen show. So the timer is counting the first five but not showing until five seconds later. Here are some of my code. I have more but just pasted the countdowntimer onTick-part. The timeChosen variable comes from what the user has ch... | android|textview|countdowntimer | 0 | 2016-04-19T17:51:53.960Z | 2,016 | 4 | 17 | 1 | 42 | 1 | 350 | 47 | 3 | 1 | true | false | false | false | false | false | zero |
36,725,931 | Null Pointer Exception at line json.getInt("success") | <p>i'm new in android programming and currently developing an apps that requires connection between android and mysql database. I'm done with connection part in php and android but it has nullpointer error when getting success tag. I dunno what's wrong but i do believe it is because fail in connection...any help please... | i'm new in android programming and currently developing an apps that requires connection between android and mysql database. I'm done with connection part in php and android but it has nullpointer error when getting success tag. I dunno what's wrong but i do believe it is because fail in connection...any help please ge... | php|android|json | 0 | 2016-04-19T17:53:45.507Z | 2,016 | 4 | 17 | 1 | 239 | 0 | 471 | 53 | 3 | 5 | true | true | false | false | false | false | zero |
36,725,961 | app crashes when creating view (android.view.InflateException) | <pre><code>public class ChildrensList extends Fragment {
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.childrens_list,container,false);
//return rootVie... | [CODE] I am having some errors appear in the console and struggling with how to resolve them, one of them is a fatal out of memory exception but there is a long list! could someone shed some light on this and help to rid the errors [CODE] | java|android | -1 | 2016-04-19T17:54:51.933Z | 2,016 | 4 | 17 | 1 | 282 | 1 | 238 | 62 | 2 | 2 | true | false | false | false | false | true | negative |
36,725,971 | Why my hashmap is null Android? | <p>i am trying to get the value from the hashmap (from ListViewRestaurants) So i can pass the latitude and longitude to the MapsActivity but for reason my hashmap always return null ... So can Anyone help me.</p>
<pre><code>public class ListViewRestaurants extends Activity {
static ListView listView;
static A... | i am trying to get the value from the hashmap (from ListViewRestaurants) So i can pass the latitude and longitude to the MapsActivity but for reason my hashmap always return null ... So can Anyone help me. [CODE] Here i am trying to retrieve details from the hashamp (latitude and longitude) from the ListViewRestuarants... | android|arraylist|hashmap | 0 | 2016-04-19T17:55:06.403Z | 2,016 | 4 | 17 | 1 | 67 | 1 | 431 | 31 | 3 | 3 | true | false | false | false | false | false | zero |
36,725,994 | Runnable wont stop | <p>I am making a game where if the player intersects with bear, it will stop the runnable thread. but somehow it wont stop at all. So when player intersects with bear, the player should be dead. the dead loop is called but it will not stop the runnable.
I made the runnable loop as below </p>
<pre><code>protected vo... | I am making a game where if the player intersects with bear, it will stop the runnable thread. but somehow it wont stop at all. So when player intersects with bear, the player should be dead. the dead loop is called but it will not stop the runnable. I made the runnable loop as below [CODE] I tried a lot but I will sti... | java|android|multithreading | 0 | 2016-04-19T17:55:57.307Z | 2,016 | 4 | 17 | 1 | 89 | 1 | 506 | 18 | 3 | 3 | true | false | false | false | false | false | zero |
36,726,042 | Scaling drawable resources | <p>I have just done some image editing of my application so now i want to make it fit for every device by scaling them into different sizes.
I have found a site where i put an image then it scales it to different screen densities so when i put in into my project it does not adapt to the screen.</p>
<p>Here's the code... | I have just done some image editing of my application so now i want to make it fit for every device by scaling them into different sizes. I have found a site where i put an image then it scales it to different screen densities so when i put in into my project it does not adapt to the screen. Here's the code: [CODE] EDI... | java|android|drawable | 1 | 2016-04-19T17:58:27.730Z | 2,016 | 4 | 17 | 1 | 33 | 1 | 365 | 26 | 3 | 1 | true | false | false | false | false | false | low |
36,726,052 | SQLite database problems, Really unsure | <p>im trying to create a simple database using SQLite and im coming into an error when running the application. The app runs fine, until i press the button to save data into the database, the error message im getting is.. </p>
<pre><code>04-19 13:47:00.492 26807-26807/com.example.bash1.sqlitediss E/OpenGLRenderer: Get... | im trying to create a simple database using SQLite and im coming into an error when running the application. The app runs fine, until i press the button to save data into the database, the error message im getting is.. [CODE] My Code function is as follows.. [CODE] import android.content.ContentValues; import android.c... | android|sqlite | -1 | 2016-04-19T17:58:55.953Z | 2,016 | 4 | 17 | 1 | 35 | 2 | 438 | 39 | 2 | 3 | true | false | false | false | false | true | negative |
36,726,119 | Listener to map touch outside of the markers | <p>I am using the google map api with some markers. I also overrode the infoWindow as below to show custom text.</p>
<pre><code>public void setUpMap() {
final GoogleMap map = mMapView.getMap();
map.clear();
map.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {
private View mHolder;
... | I am using the google map api with some markers. I also overrode the infoWindow as below to show custom text. [CODE] this works fine and I change the icon of each marker when clicked making them visually selected. However, I want to "unselect" all markers. The problem is that I don't know how to add a listener that get... | android|android-maps-v2|android-maps | 4 | 2016-04-19T18:03:16.337Z | 2,016 | 4 | 18 | 1 | 2,593 | 2 | 624 | 44 | 3 | 1 | true | false | false | false | false | false | low |
36,726,202 | How do I correctly pass information from a long-running thread to the UI thread in Android? | <p>My app has a chat feature. When my app first starts up, I spawn a listener thread to listen for incoming data:</p>
<pre><code>public class MainActivity extends AppCompatActivity {
public static LinkedList<Message> chatList;
protected void onCreate(Bundle savedInstanceState){
super.onCreate(sa... | My app has a chat feature. When my app first starts up, I spawn a listener thread to listen for incoming data: [CODE] My chat feature is a Fragment/Tab within my main activity. It has your standard window for viewing the chat, plus an EditText and Button for sending chats: [CODE] When I send a text, I add it to my main... | android|multithreading | 0 | 2016-04-19T18:08:09.463Z | 2,016 | 4 | 18 | 1 | 24 | 0 | 1,408 | 91 | 2 | 6 | true | true | false | false | false | false | zero |
36,726,268 | Android GridView not responding to OnItemClickListener | <p>I found that some people had this problem as well, but none of the existing solutions worked for me. Essentially I have an Fragment (called HeadlinesFragment), that assigns an OnItemClickListener to a GridView containing images. The images appear fine, but the touch/click event is never fired. I tried with multiple ... | I found that some people had this problem as well, but none of the existing solutions worked for me. Essentially I have an Fragment (called HeadlinesFragment), that assigns an OnItemClickListener to a GridView containing images. The images appear fine, but the touch/click event is never fired. I tried with multiple com... | android|gridview|onclicklistener | 0 | 2016-04-19T18:11:17.527Z | 2,016 | 4 | 18 | 1 | 48 | 1 | 599 | 54 | 3 | 4 | true | false | false | false | false | false | zero |
36,726,325 | ionic 2 blank after splash page under android 4.3 | <p>My question is similar to <a href="https://stackoverflow.com/questions/36643876/ionic-mobile-app-gives-white-screen">ionic-mobile-app-gives-white-screen</a></p>
<p>I have created one ionic app that runs perfectly fine in a browser, but when I convert it into an app I am getting a white screen.</p>
<p>I have alread... | My question is similar to ionic-mobile-app-gives-white-screen I have created one ionic app that runs perfectly fine in a browser, but when I convert it into an app I am getting a white screen. I have already installed the white list plugin and allowed all urls in the config. I also have kept the meta tag. This is one i... | android|ionic-framework|ionic2 | 1 | 2016-04-19T18:14:33.577Z | 2,016 | 4 | 18 | 1 | 479 | 0 | 691 | 49 | 3 | 0 | false | true | false | false | false | false | low |
36,726,491 | Android keyboard for bank account entry [0-9-xX] | <p>I need a editText input type that allows me to increase the experience of the user when he/she is entering a bank account or bank branch. The numbers should follow those rules:</p>
<p>Account: \d{1,5}-\d{1,2}|X --> one to five numeric digits, dash, one or two numeric digits or one X character</p>
<p>Branch: \d{1,5... | I need a editText input type that allows me to increase the experience of the user when he/she is entering a bank account or bank branch. The numbers should follow those rules: Account: \d{1,5}-\d{1,2}|X --> one to five numeric digits, dash, one or two numeric digits or one X character Branch: \d{1,5}(-\d{1,2}|-X)? -->... | android|android-edittext|android-inputtype | 0 | 2016-04-19T18:22:50.837Z | 2,016 | 4 | 18 | 1 | 748 | 1 | 976 | 48 | 3 | 1 | true | false | false | false | false | false | zero |
36,726,508 | JSON Store fails intermittently in MobileFIrst hybrid app | <p>We're trying to store a list of tasks in <code>JSONStore</code> and retrieve it as user clicks on a <code>fetch</code> button.</p>
<p>Observed behavior: We see that intermittently, <code>JSONStore</code> throws an <code>exception</code> and won't fetch the stored tasks at all. Same source code, when re-deployed wor... | We're trying to store a list of tasks in JSONStore and retrieve it as user clicks on a fetch button. Observed behavior: We see that intermittently, JSONStore throws an exception and won't fetch the stored tasks at all. Same source code, when re-deployed works fine. Meaning, tasks are stored and fetched as expected. Exc... | android|json|ibm-mobilefirst|jsonstore | 0 | 2016-04-19T18:23:26.647Z | 2,016 | 4 | 18 | 1 | 125 | 1 | 538 | 57 | 4 | 2 | true | false | false | false | false | false | zero |
36,726,562 | Defining resources for a given region | <p>I want to create resources for a given regions so I created a batch of <code>value-rDE</code> directory for Germany or <code>value-rUS</code> for the USA. Now it seems that those directories won't work. The documentation about <a href="http://developer.android.com/guide/topics/resources/providing-resources.html#tabl... | I want to create resources for a given regions so I created a batch of value-rDE directory for Germany or value-rUS for the USA. Now it seems that those directories won't work. The documentation about Providing Resources , points out that it does only work with languages so it should be e.g. values-de-rDE or values-en-... | android|internationalization|resources|regional-settings | 1 | 2016-04-19T18:26:51.917Z | 2,016 | 4 | 18 | 1 | 34 | 0 | 776 | 37 | 4 | 0 | false | true | false | false | false | false | low |
36,726,565 | How to use a different class from an application's activity? | <p>I created a Java file in the same package as my main activity with a class named <code>sup</code>.</p>
<p>Now, I need to use this class in the main activity file.</p>
<p>mainActivity.java:</p>
<pre><code>package com.example.phy.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bun... | I created a Java file in the same package as my main activity with a class named sup . Now, I need to use this class in the main activity file. mainActivity.java: [CODE] sup.java: [CODE] Do I have to import the class into mainActivity? How? | java|android|class|android-activity | 0 | 2016-04-19T18:26:59.943Z | 2,016 | 4 | 18 | 1 | 54 | 2 | 240 | 60 | 4 | 2 | true | false | false | false | false | false | zero |
36,726,577 | ImageButton in Linear Layout not clicked. Setting Listener from service | <p>This is different from the other post of this nature because I am in a service so I cannot name the <code>onClickListener</code> through XML I have to do it programatically.</p>
<p>I have a <code>ImageButton</code> in this XML file (it is at the very bottom):</p>
<pre><code> <?xml version="1.0" encoding="ut... | This is different from the other post of this nature because I am in a service so I cannot name the onClickListener through XML I have to do it programatically. I have a ImageButton in this XML file (it is at the very bottom): [CODE] I then set the onClickListener in my service like this: [CODE] However the onClickList... | android|android-service|android-imagebutton | 0 | 2016-04-19T18:27:30.567Z | 2,016 | 4 | 18 | 1 | 40 | 1 | 478 | 71 | 3 | 2 | true | false | false | false | false | false | zero |
36,726,633 | android monkeyrunner display height vs. snapshot image height | <p>I run below monkeyrunner script but it seems the display.height not the same as snapshot image height.</p>
<p>In my case, the display .height is 2360 but the snapshot image height is 2560.</p>
<pre><code>#!/usr/bin/env monkeyrunner
import time
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
#---... | I run below monkeyrunner script but it seems the display.height not the same as snapshot image height. In my case, the display .height is 2360 but the snapshot image height is 2560. [CODE] How can I get 2560 (just like the snapshot height) as a property? I guess maybe display.height not means screen height? | android|greasemonkey | 1 | 2016-04-19T18:31:02.743Z | 2,016 | 4 | 18 | 1 | 261 | 0 | 308 | 61 | 2 | 1 | true | true | false | false | false | false | low |
36,726,729 | How to populate a ListView using a FirebaseListAdapter? | <p>I am working on Android project, which will allow users to find nearest petrol pump's name, address, and most importantly their prices. I have a ListView, which I want to populate through Firebase list adapter because I am using Firebase for my project. Now after writing code I am getting nothing from Firebase -- it... | I am working on Android project, which will allow users to find nearest petrol pump's name, address, and most importantly their prices. I have a ListView, which I want to populate through Firebase list adapter because I am using Firebase for my project. Now after writing code I am getting nothing from Firebase -- it's ... | android|listview|firebase|listadapter | 2 | 2016-04-19T18:35:41.707Z | 2,016 | 4 | 18 | 1 | 2,993 | 4 | 704 | 55 | 4 | 3 | true | false | true | false | false | false | low |
36,726,784 | Android JSON POST and then response | <p>I can retrieve data through <code>JSON</code> in <code>listview</code> but I want to show data relative to the user logged in so for that I have to Post username to <code>PHP</code> script. I don't have any idea how to post the username to <code>PHP</code> script and then get respond from web server.</p>
<pre><code... | I can retrieve data through JSON in listview but I want to show data relative to the user logged in so for that I have to Post username to PHP script. I don't have any idea how to post the username to PHP script and then get respond from web server. [CODE] sir this code perfectly show me all data from this server but i... | android|json | 0 | 2016-04-19T18:37:58.427Z | 2,016 | 4 | 18 | 1 | 1,540 | 1 | 546 | 35 | 2 | 1 | true | false | false | false | false | false | zero |
36,726,908 | How to make custom theme in Android Picker (Style) | <p>I'm facing a situation and I can't find the solution, I've a Alloy app, and I've created a 'input' with it's own options, in iOS it shows a popup with a UI.Picker, and in android shows only the UI.Picker like a dropdown, my problem is that the background is dark and the text white, I've tried to add a theme to tiapp... | I'm facing a situation and I can't find the solution, I've a Alloy app, and I've created a 'input' with it's own options, in iOS it shows a popup with a UI.Picker, and in android shows only the UI.Picker like a dropdown, my problem is that the background is dark and the text white, I've tried to add a theme to tiapp.xm... | android|themes|appcelerator|appcelerator-titanium|android-calendar | 0 | 2016-04-19T18:44:28.230Z | 2,016 | 4 | 18 | 1 | 1,691 | 1 | 578 | 50 | 5 | 2 | true | false | false | false | false | false | zero |
36,727,063 | Android connect bluetooth L2CAP device(PS4 Controller), how to do through root? | <p>I try to connect my phone to a L2CAP device (PS4 Controller), that uses L2CAP as bluetooth connection protocol.</p>
<p>Documentation of DualShock 4 controller: <a href="http://www.psdevwiki.com/ps4/DS4-BT" rel="nofollow">http://www.psdevwiki.com/ps4/DS4-BT</a></p>
<p>Android officially does not support L2CAP anymo... | I try to connect my phone to a L2CAP device (PS4 Controller), that uses L2CAP as bluetooth connection protocol. Documentation of DualShock 4 controller: http://www.psdevwiki.com/ps4/DS4-BT Android officially does not support L2CAP anymore. Since android 4+ they 'hide' it. (but can still be found everywhere in the sourc... | android|bluetooth|l2cap | 1 | 2016-04-19T18:52:44.723Z | 2,016 | 4 | 18 | 1 | 2,675 | 0 | 854 | 79 | 3 | 1 | true | true | true | false | false | false | low |
36,727,122 | RxJava and facebook sdk threads trigger periodic cpu load in the background | <p>I observed periodic cpu load after the app was <em>closed</em> with the home button. This load is caused by threads that are part of the facebook android sdk and RxJava.</p>
<hr>
<p>Overview (trace for a period of 2 minutes after app is <em>closed</em> with the home button):</p>
<p><a href="https://i.stack.imgur.... | I observed periodic cpu load after the app was closed with the home button. This load is caused by threads that are part of the facebook android sdk and RxJava. Overview (trace for a period of 2 minutes after app is closed with the home button): Facebook SDK active: RxJava active: I know that these threads are only act... | android|facebook|rx-java|android-facebook|rx-android | 2 | 2016-04-19T18:55:47.603Z | 2,016 | 4 | 18 | 1 | 200 | 0 | 809 | 75 | 5 | 2 | true | true | false | false | false | false | low |
36,727,160 | I have custom certain items in my listview but i want different textview in all the item in textview | <p><a href="http://i.stack.imgur.com/bdDiw.png" rel="nofollow">This is my list view , you can see a same text view in front of all the items , this is what i want to change i want a different textview for every item in the list view.</a></p>
<p>This is my activity which contains three classes Mainactivity1 , singlerow... | This is my list view , you can see a same text view in front of all the items , this is what i want to change i want a different textview for every item in the list view. This is my activity which contains three classes Mainactivity1 , singlerow2 and shivvadapter [CODE] This is single_row2.xml [CODE] and this is how si... | android|listview | 0 | 2016-04-19T18:57:48.777Z | 2,016 | 4 | 18 | 1 | 37 | 1 | 340 | 100 | 2 | 2 | true | false | false | false | false | false | zero |
36,727,187 | Loading a JSoup Document into a webview after auto authentication | <p>I have been working tirelessly to learn and implement auto authentication on a website I use at university. I believe that I have now successfully set up the auto authentication part of my app, however I now do not know how to display the website to them now that they are passed the login stage. I know how I would d... | I have been working tirelessly to learn and implement auto authentication on a website I use at university. I believe that I have now successfully set up the auto authentication part of my app, however I now do not know how to display the website to them now that they are passed the login stage. I know how I would do t... | android|authentication|webview|base64|jsoup | 0 | 2016-04-19T18:59:49.540Z | 2,016 | 4 | 18 | 1 | 749 | 1 | 844 | 65 | 5 | 1 | true | false | false | false | false | false | zero |
36,727,306 | OKHttp Android not connecting to nginx via http2 alpn | <p>I have an android application (4.4.4+) that uses the following libraries:</p>
<pre><code>compile 'com.squareup.okhttp3:okhttp:3.2.0'
compile 'com.squareup.okhttp3:okhttp-urlconnection:3.2.0'
compile 'com.squareup.okio:okio:1.7.0'
</code></pre>
<p>I have nginx (version 1.9.14)
compiled with OpenSSL (version 1.0.2g... | I have an android application (4.4.4+) that uses the following libraries: [CODE] I have nginx (version 1.9.14) compiled with OpenSSL (version 1.0.2g source compiled) usage of openSSL confirmed with nginx -V on centOS 7. Configuration of nginx http2 enabled for the reverse proxy: [CODE] Running command on server: [CODE]... | android|nginx|http2|okhttp|alpn | 2 | 2016-04-19T19:06:11.007Z | 2,016 | 4 | 19 | 1 | 2,601 | 1 | 2,293 | 53 | 5 | 5 | true | false | true | false | false | false | low |
36,727,349 | Android good architecture | <p>I am interested in exploring good architectural patterns for Android applications.</p>
<p>I made several experiments with VIPER and generally Clean Architecture approaches but I would like to get some good material/ideas to investigate from you dear SO fellows.</p>
<p>Here are some important points that should be ... | I am interested in exploring good architectural patterns for Android applications. I made several experiments with VIPER and generally Clean Architecture approaches but I would like to get some good material/ideas to investigate from you dear SO fellows. Here are some important points that should be reflected: It shoul... | java|android|architecture|architectural-patterns | 4 | 2016-04-19T19:09:11.473Z | 2,016 | 4 | 19 | 1 | 1,323 | 1 | 1,170 | 25 | 4 | 0 | false | false | false | false | false | false | low |
36,727,357 | Caused by: java.lang.IllegalArgumentException: value may not be null. when putting data in ParseObject | <p>I am following a course on Udemy and I'm on a section where we created an anonymous user and after an Activity, tried to set the AnonUsername into a put method in ParseObject. I get the above error in the title when I use:</p>
<pre><code>put("riderUsername", ParseObject.getCurrentUser().getUsername());
</code></pre... | I am following a course on Udemy and I'm on a section where we created an anonymous user and after an Activity, tried to set the AnonUsername into a put method in ParseObject. I get the above error in the title when I use: [CODE] But I get the "com.parse.ParseUser...." when i use: [CODE] This is my code for when I pres... | android|parse-platform | 0 | 2016-04-19T19:09:54.893Z | 2,016 | 4 | 19 | 1 | 2,345 | 1 | 565 | 102 | 2 | 4 | true | false | false | false | false | false | zero |
36,727,451 | SQLite database errors with inputting data | <p>I've nearly finished creating my first database, however I think some of the syntax in my <code>oncreate</code> is wrong. I can't figure out where however? I've tried looking at tutorials and tried to tailor my code towards theirs, but nothing seems to be working. </p>
<pre><code>package com.example.bash1.sqlitedis... | I've nearly finished creating my first database, however I think some of the syntax in my oncreate is wrong. I can't figure out where however? I've tried looking at tutorials and tried to tailor my code towards theirs, but nothing seems to be working. [CODE] The error is as follows: Error inserting Name=sss Datereceive... | android|sqlite | -3 | 2016-04-19T19:15:01.127Z | 2,016 | 4 | 19 | 1 | 59 | 2 | 519 | 42 | 2 | 1 | true | false | false | false | false | true | negative |
36,727,515 | Persistent error -Execution failed for task ':app:transformClassesWithJarMergingForDebug' | <p>I am trying to add microsoft azure mobile services to my existing android app. After adding the <code>.jar</code> files in my folder. I am getting error:</p>
<blockquote>
<p>Execution failed for task
':app:transformClassesWithJarMergingForDebug.</p>
</blockquote>
<p>For various file like <code>annotation.class... | I am trying to add microsoft azure mobile services to my existing android app. After adding the .jar files in my folder. I am getting error: Execution failed for task ':app:transformClassesWithJarMergingForDebug. For various file like annotation.class , Gson$5.class and as you can see in the error file it shows ApiJson... | android|android-gradle-plugin|build.gradle|azure-mobile-services | 1 | 2016-04-19T19:18:43.980Z | 2,016 | 4 | 19 | 1 | 968 | 1 | 1,141 | 89 | 4 | 1 | true | false | false | false | false | false | low |
36,727,532 | How to maintain the focus point in a Pan/Zoom Android Layout while zooming? | <p>I have a custom Layout that extends FrameLayout and supports almost everything I need. Scrolling and zooming a child view or layout works well. But one thing I am having trouble with is maintaining the focus point while zooming. The center point between the pinching fingers moves off screen, but I would like it to w... | I have a custom Layout that extends FrameLayout and supports almost everything I need. Scrolling and zooming a child view or layout works well. But one thing I am having trouble with is maintaining the focus point while zooming. The center point between the pinching fingers moves off screen, but I would like it to work... | java|android | 2 | 2016-04-19T19:19:24.777Z | 2,016 | 4 | 19 | 1 | 409 | 0 | 414 | 75 | 2 | 1 | true | true | false | false | false | false | low |
36,727,603 | Where to use SAS Token in Xamarin.Android | <p>I'm making an Android app that will connect to an Azure Storage Account to save information in a table. When I run the app in the simulator, and press the button that opens the page that connects to the database I get an exception stating "Shared Key is not supported using the PCL. Please use a SAS token." </p>
<p>... | I'm making an Android app that will connect to an Azure Storage Account to save information in a table. When I run the app in the simulator, and press the button that opens the page that connects to the database I get an exception stating "Shared Key is not supported using the PCL. Please use a SAS token." So I followe... | xamarin|xamarin.android|azure-storage | 0 | 2016-04-19T19:23:31.103Z | 2,016 | 4 | 19 | 1 | 191 | 1 | 459 | 41 | 3 | 1 | true | false | false | false | false | false | zero |
36,727,713 | How to add map to a tabbed activity (Android) | <p>I have a tabbed activity which uses a SectionsPageAdapter. There are two tabs, each uses a different fragment, one of which is a google map. When I attempt to get the <code>SupportMapFragment</code> from the MapFragment it returns null.</p>
<pre><code>SupportMapFragment mapFragment = (SupportMapFragment) getChildFr... | I have a tabbed activity which uses a SectionsPageAdapter. There are two tabs, each uses a different fragment, one of which is a google map. When I attempt to get the SupportMapFragment from the MapFragment it returns null. [CODE] I have also tried: [CODE] If I create a new GoogleMapsActivity it works just fine, that c... | java|android|google-maps|android-fragments | 2 | 2016-04-19T19:29:03.227Z | 2,016 | 4 | 19 | 1 | 2,192 | 1 | 481 | 45 | 4 | 5 | true | false | false | false | false | false | low |
36,727,854 | PersistInt slowing down button response in custom preference | <p>I've created a custom preference that embeds two buttons (here I have subclassed Button as FastButton). The problem is executing the persistInt to store the preference drastically slows down the response of the button.</p>
<p>I had the notion of only executing the persistInt when the preference's lifecycle is ended... | I've created a custom preference that embeds two buttons (here I have subclassed Button as FastButton). The problem is executing the persistInt to store the preference drastically slows down the response of the button. I had the notion of only executing the persistInt when the preference's lifecycle is ended, but could... | android|android-preferences | 1 | 2016-04-19T19:35:59.083Z | 2,016 | 4 | 19 | 1 | 30 | 1 | 630 | 60 | 2 | 1 | true | false | false | false | false | false | low |
36,727,863 | Android : Error Initilazing the Youtube player | <p>I implementing a YouTube player in my app using <strong>YouTubeAndroidPlayerApi</strong> to play videos I add into my app. It was working all fine till two days back when an error started to show up suddenly. I have been trying to solve this, but have failed. Please help me out.</p>
<p><strong>onCreate</strong></p>... | I implementing a YouTube player in my app using YouTubeAndroidPlayerApi to play videos I add into my app. It was working all fine till two days back when an error started to show up suddenly. I have been trying to solve this, but have failed. Please help me out. onCreate [CODE] onInitializationSuccess [CODE] Error [COD... | android|youtube|youtube-api|youtube-data-api|android-youtube-api | 0 | 2016-04-19T19:36:24.730Z | 2,016 | 4 | 19 | 1 | 927 | 1 | 379 | 46 | 5 | 3 | true | false | false | false | false | false | zero |
36,728,044 | EditText not working in RecyclerView Adapter. Random Data is displayed on device | <p>Im currently making an app that takes movie name as input from user, after that input a new screen will be displayed showing list items of movie, the list of that movie is shown from "<a href="http://www.omdbapi.com/" rel="nofollow">http://www.omdbapi.com/</a>" just like IMDB. On clicking any list item(movie name) d... | Im currently making an app that takes movie name as input from user, after that input a new screen will be displayed showing list items of movie, the list of that movie is shown from " http://www.omdbapi.com/ " just like IMDB. On clicking any list item(movie name) details of that movie will be shown in another screen, ... | android | 0 | 2016-04-19T19:45:44.270Z | 2,016 | 4 | 19 | 1 | 156 | 1 | 680 | 80 | 1 | 5 | true | false | false | false | false | false | zero |
36,728,053 | Android activity in landscape - with fragment or dialog in portrait and landscape | <p>Im building a camerafunction in my application.</p>
<p>I've implemented the function as an activity with a surfaceview, and the activity is set to landscape only. </p>
<p>Here is my problem:</p>
<p>I have various settings that can be changed from within the view eg. Flashmode, resolution, zoom etc.
Whenever the u... | Im building a camerafunction in my application. I've implemented the function as an activity with a surfaceview, and the activity is set to landscape only. Here is my problem: I have various settings that can be changed from within the view eg. Flashmode, resolution, zoom etc. Whenever the user selects the spinner, to ... | android|dialog|fragment|orientation | 1 | 2016-04-19T19:46:13.213Z | 2,016 | 4 | 19 | 1 | 279 | 0 | 1,042 | 81 | 4 | 0 | false | true | false | false | false | false | low |
36,728,092 | Android Volley POST Parameters | <p>I need to call an api that expects a string array as a POST parameter. So for an example of an API definition: </p>
<pre><code>POST api/names
</code></pre>
<p>POST parameter expected is an array of names and some other attributes like below: </p>
<pre><code>{ names: [ "John", "Bill" ], department: "Engineering" }... | I need to call an api that expects a string array as a POST parameter. So for an example of an API definition: [CODE] POST parameter expected is an array of names and some other attributes like below: [CODE] I am currently using a custom Volley framework as described in the Android documentation but it seems like the p... | android|android-volley | 5 | 2016-04-19T19:48:22.190Z | 2,016 | 4 | 19 | 1 | 6,020 | 3 | 741 | 30 | 2 | 3 | true | false | true | false | false | false | low |
36,728,124 | Android: Save view that was added in RecyclerView with SharedPrefs | <p>I'm adding views to a RecyclerView by clicking on a button, I want those views to be saved, preferably in SharedPrefrences how do we do this and do we need a json?</p>
<p><strong>Here's the adapter:</strong></p>
<pre><code>public class SubjectsAdapter extends RecyclerView.Adapter<SubjectsAdapter.ViewHolder> ... | I'm adding views to a RecyclerView by clicking on a button, I want those views to be saved, preferably in SharedPrefrences how do we do this and do we need a json? Here's the adapter: [CODE] I'm adding views from the activity like this adapter.addItem("something"); | java|android | 0 | 2016-04-19T19:50:41.537Z | 2,016 | 4 | 19 | 1 | 335 | 1 | 265 | 66 | 2 | 1 | true | false | false | false | false | false | zero |
36,728,266 | Hi, I am trying to figure out how to pass a string from one class to another | <p>Sorry for all the code. The string I am trying to pass is contents. Let me know if you need any more info</p>
<p>I am new to java so I am probably making silly mistakes. I have tried making different methods to pass the string with no luck. If I was able to get the string to appear in an edittextbox, that would be ... | Sorry for all the code. The string I am trying to pass is contents. Let me know if you need any more info I am new to java so I am probably making silly mistakes. I have tried making different methods to pass the string with no luck. If I was able to get the string to appear in an edittextbox, that would be great. I'm ... | java|android | 0 | 2016-04-19T19:59:08.553Z | 2,016 | 4 | 19 | 1 | 67 | 2 | 423 | 76 | 2 | 2 | true | false | false | false | false | false | zero |
36,728,306 | Getting current view from ViewPager | <p>I'm trying to get current page view from ViewPager with <strong>Viewpager.findViewWithTag</strong>. When try to get current view from ViewPager it returns Null;</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.viewpager... | I'm trying to get current page view from ViewPager with Viewpager.findViewWithTag . When try to get current view from ViewPager it returns Null; [CODE] ... and here's my ViewPageAdapter [CODE] Here's viewpager_main.xml [CODE] and here's viewpager_item.xml [CODE] I don't know where did i do a mistake but couldn't fix it... | android|android-viewpager | 4 | 2016-04-19T20:01:02.040Z | 2,016 | 4 | 20 | 1 | 7,169 | 2 | 328 | 35 | 2 | 4 | true | false | true | false | false | false | low |
36,728,370 | Neo4j OGM Library Driver configuration | <p>I'm trying to use Neo4j OGM library 2.0.1 in my android application.</p>
<p>This is my builde.gradle file:</p>
<pre><code>dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'org.neo4j:neo4j-ogm-co... | I'm trying to use Neo4j OGM library 2.0.1 in my android application. This is my builde.gradle file: [CODE] Then in onCreate() method inside my main activity: [CODE] I got this error: [CODE] | android|neo4j | 0 | 2016-04-19T20:04:42.863Z | 2,016 | 4 | 20 | 1 | 191 | 2 | 189 | 38 | 2 | 3 | true | false | false | false | false | false | zero |
36,728,463 | Android: Application lost the surface when recording to dynamic object | <p>I am in a bit of a pickle. I am trying to display the camera feed while the view is launched from the background service. I am getting a runtime error </p>
<pre><code>04-19 15:00:31.872 31125-31442/csce483.vbox E/Recorder: starting prepare
04-19 15:00:31.872 31125-31442/csce483.vbox E/MediaRecorderJNI: Application ... | I am in a bit of a pickle. I am trying to display the camera feed while the view is launched from the background service. I am getting a runtime error [CODE] when I use a dynamically created view. And a static view is not compatible with Window Manager. In onCreate(): [CODE] Then in my Receiver: [CODE] Starting recorde... | android|surfaceview|android-mediarecorder|android-windowmanager | 1 | 2016-04-19T20:10:28.850Z | 2,016 | 4 | 20 | 1 | 387 | 0 | 337 | 70 | 4 | 4 | true | true | false | false | false | false | low |
36,728,495 | Set String Array to ImageView | <p>I want to set String Array that contain images position to ImageView. The String Array is passed back Activity A to Activity B and set to ImageView in Activity B.
How I should set? Below are the codes :</p>
<p>From Activity A :</p>
<pre><code> String[] outputStrArr = new String[selectedItems.size()];
... | I want to set String Array that contain images position to ImageView. The String Array is passed back Activity A to Activity B and set to ImageView in Activity B. How I should set? Below are the codes : From Activity A : [CODE] From Activity B: [CODE] Thanks for the help ! | android|arrays | 0 | 2016-04-19T20:12:08.863Z | 2,016 | 4 | 20 | 1 | 1,106 | 1 | 273 | 29 | 2 | 2 | true | false | false | false | false | false | zero |
36,728,553 | Setting view height dependent on its width in android in layout xml | <p>Is it possible that a view should make it height same as it's width?</p>
<p>or any other layout for this purpose, because for vector image it's compulsory to provide width and height.</p>
<pre><code><LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
... | Is it possible that a view should make it height same as it's width? or any other layout for this purpose, because for vector image it's compulsory to provide width and height. [CODE] | android|android-layout|android-linearlayout | 1 | 2016-04-19T20:15:22.603Z | 2,016 | 4 | 20 | 1 | 3,121 | 4 | 183 | 67 | 3 | 1 | true | false | true | false | false | false | low |
36,728,668 | Disable ActionBarDrawerToggle's drawer indicator, but keep the hamburger icon | <p>In my main activity I'm getting references to my DrawerLayout and Toolbars like this:</p>
<pre><code> //Set the toolbar
toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
//Set navigation drawer
drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
hamburger = ... | In my main activity I'm getting references to my DrawerLayout and Toolbars like this: [CODE] In one of my fragments, I want to completely disable 1) swiping to open the nav drawer and 2) the hamburger/toggle button to toggle nav drawer opening Currently, I'm doing it like this: [CODE] Swiping is correctly handled - it ... | android|android-fragments|android-actionbar|android-navigation|navigation-drawer | 2 | 2016-04-19T20:21:43.277Z | 2,016 | 4 | 20 | 1 | 3,350 | 1 | 620 | 77 | 5 | 2 | true | false | true | false | false | false | low |
36,728,720 | java.lang.SecurityException: Sending SMS message: permissions not working | <p>I am trying to send a text upon a broadcast of receiving a phone call. Everything is working up until the message is to be sent and it throws this exception.</p>
<p>java.lang.SecurityException: Sending SMS message: uid 10188 does not have android.permission.SEND_SMS.</p>
<p>I realize this is a common issue, but I ... | I am trying to send a text upon a broadcast of receiving a phone call. Everything is working up until the message is to be sent and it throws this exception. java.lang.SecurityException: Sending SMS message: uid 10188 does not have android.permission.SEND_SMS. I realize this is a common issue, but I tried every other p... | java|android|permissions|sms|android-permissions | 0 | 2016-04-19T20:24:21.877Z | 2,016 | 4 | 20 | 1 | 29 | 0 | 373 | 73 | 5 | 1 | true | true | false | false | false | false | zero |
36,728,737 | Error having 2 fragments with SupportMapFragment | <p>So, I have an activity that holds tabs, each tab has a fragment assigned to it, so you can navigate through the fragments using the tabs.
In two of these tabs I have to load a map (with different information on each of them, different pins, etc) the problem is it only loads the first one, I'm using this code for as... | So, I have an activity that holds tabs, each tab has a fragment assigned to it, so you can navigate through the fragments using the tabs. In two of these tabs I have to load a map (with different information on each of them, different pins, etc) the problem is it only loads the first one, I'm using this code for assign... | android|android-fragments|fragmentstatepageradapter|supportmapfragment | 0 | 2016-04-19T20:25:03.833Z | 2,016 | 4 | 20 | 1 | 111 | 0 | 991 | 48 | 4 | 5 | true | true | 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.