id int64 28.5M 73.8M | title stringlengths 15 150 | question_body stringlengths 69 39.4k | body_text stringlengths 6 29.2k | tags stringlengths 7 120 | score int64 -19 384 | creation_date stringlengths 20 24 | year int64 -1 2.02k | month int64 -1 12 | hour int64 -1 23 | dayofweek int64 -1 6 | view_count int64 3 367k | answer_count int64 0 34 | body_len int64 6 29.2k | title_len int64 15 150 | tag_count int64 1 6 | code_block_cnt int64 0 17 | has_code bool 2
classes | is_unanswered bool 2
classes | is_popular bool 2
classes | is_viral bool 2
classes | is_highly_voted bool 2
classes | is_negative bool 2
classes | score_bucket stringclasses 5
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37,140,232 | Issues in List view Retrieve from MYSQL Database | <p>My issue is when i am running the application unfortunately app has stopped error occurred can any one give solution to this.Fatal exception occurred in main What is this error.please help me to fin out this solution?</p>
<pre><code> public class JSONPrser extends ListActivity
{
/**
* Called when the activit... | My issue is when i am running the application unfortunately app has stopped error occurred can any one give solution to this.Fatal exception occurred in main What is this error.please help me to fin out this solution? [CODE] Logcat [CODE] Xml code [CODE] | java|android|mysql|json | 0 | 2016-05-10T13:36:58.730Z | 2,016 | 5 | 13 | 1 | 25 | 1 | 254 | 48 | 4 | 3 | true | false | false | false | false | false | zero |
37,140,298 | Cordova/Phonegap load external site in main Cordova webview | <p><strong><em>What i want</em></strong></p>
<p>I have external web-resource that i want cordova webview to simple open and be able to navigate through its inner navigation.</p>
<p><strong><em>Description</em></strong></p>
<p>InAppBrowser docs said</p>
<blockquote>
<p>The InAppBrowser window behaves like a standa... | What i want I have external web-resource that i want cordova webview to simple open and be able to navigate through its inner navigation. Description InAppBrowser docs said The InAppBrowser window behaves like a standard web browser, and can't access Cordova APIs. For this reason, the InAppBrowser is recommended if you... | javascript|android|ios|cordova|webview | 8 | 2016-05-10T13:39:35.327Z | 2,016 | 5 | 13 | 1 | 8,029 | 2 | 1,134 | 59 | 5 | 2 | true | false | true | false | false | false | medium |
37,140,351 | looper.prepare an ui thread | <p>I am trying to use an SDK that seems to need to create a handler into my service.</p>
<p>A error message appeared saying that I can't create handler if the thread has not called <code>Looper.prepare()</code>, so I do call <code>Looper.prepare()</code> and this problem disappear.
However, this service need to start ... | I am trying to use an SDK that seems to need to create a handler into my service. A error message appeared saying that I can't create handler if the thread has not called Looper.prepare() , so I do call Looper.prepare() and this problem disappear. However, this service need to start an activity after a while, and this ... | android|user-interface|looper | -1 | 2016-05-10T13:42:03.857Z | 2,016 | 5 | 13 | 1 | 877 | 1 | 750 | 27 | 3 | 1 | true | false | false | false | false | true | negative |
37,140,416 | How to force gradle to use a specific appcompat-v7 version? | <p>In my gradle file I have this</p>
<pre><code>dependencies {
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.android.support:design:23.0.0'
...
}
</code></pre>
<p>But then, running <code>gradle dependencies</code> I see something like this</p>
<... | In my gradle file I have this [CODE] But then, running gradle dependencies I see something like this [CODE] What may indicates that it is automatically using 23.1.1 . This causes problems with libraries depending on 23.0.0 . I get errors like this error: cannot find symbol variable dialog_fixed_height_major error: cann... | android|android-studio|gradle | 2 | 2016-05-10T13:45:11.350Z | 2,016 | 5 | 13 | 1 | 400 | 1 | 711 | 59 | 3 | 2 | true | false | false | false | false | false | low |
37,140,435 | Shape padding not working pre 6 Android | <p>Seems like shape padding doesn't work on pre 6 Android. I'm trying to add padding to custom <code>ProgressBar</code> background gradient and that what I have:</p>
<p>Android 6.0:</p>
<p><a href="https://i.stack.imgur.com/hpIHb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hpIHb.png" alt="enter... | Seems like shape padding doesn't work on pre 6 Android. I'm trying to add padding to custom ProgressBar background gradient and that what I have: Android 6.0: Android 5.0 and below: pb_shape.xml : [CODE] I've already tried to wrap those both items in distinct xml files and set padding there like that but it takes no ef... | android|android-layout|android-progressbar|android-shape | -1 | 2016-05-10T13:46:17.237Z | 2,016 | 5 | 13 | 1 | 658 | 1 | 400 | 39 | 4 | 2 | true | false | false | false | false | true | negative |
37,140,519 | ActivityCompat.requestPermissions does not show prompt | <p>I'm attempting to request <code>ACCESS_FINE_LOCATION</code> permissions in order to get the user's current location.</p>
<p>My logging indicates that my app does not currently have this permission when querying <code>ContextCompat.checkSelfPermission()</code>, but when calling <code>ActivityCompat.requestPermission... | I'm attempting to request ACCESS_FINE_LOCATION permissions in order to get the user's current location. My logging indicates that my app does not currently have this permission when querying ContextCompat.checkSelfPermission() , but when calling ActivityCompat.requestPermissions() nothing is displayed. My Google map co... | java|android|google-maps|android-fragments|android-permissions | 8 | 2016-05-10T13:50:15.437Z | 2,016 | 5 | 13 | 1 | 9,004 | 4 | 864 | 54 | 5 | 1 | true | false | true | false | false | false | medium |
37,140,559 | ActivityInstrumentationTestCase2 vs ActivityTestRule | <p>I need to test a single activity in my Android app. The documentation of <code>ActivityInstrumentationTestCase2</code> says:</p>
<blockquote>
<p>This class provides functional testing of a single activity.</p>
</blockquote>
<p>And the documentation of <code>ActivityTestRule</code> says:</p>
<blockquote>
<p>Th... | I need to test a single activity in my Android app. The documentation of ActivityInstrumentationTestCase2 says: This class provides functional testing of a single activity. And the documentation of ActivityTestRule says: This rule provides functional testing of a single activity. Almost the same words. Besides the two ... | android|unit-testing|junit4|junit3 | 7 | 2016-05-10T13:51:59.443Z | 2,016 | 5 | 13 | 1 | 3,638 | 1 | 711 | 52 | 4 | 2 | true | false | true | false | false | false | medium |
37,140,597 | Android ListView notifyDataSetChanged not working properly | <p>Hi I am creating a chat application I am uploading, downloading images, videos etc. Everything working fine. I want the user to notify that the percentage of downloading/uploading. Now my issue is when I call notifyDataSetChanged list reach the last position of the list. I find out this is because of my all the list... | Hi I am creating a chat application I am uploading, downloading images, videos etc. Everything working fine. I want the user to notify that the percentage of downloading/uploading. Now my issue is when I call notifyDataSetChanged list reach the last position of the list. I find out this is because of my all the list it... | android|listview|notifydatasetchanged | 0 | 2016-05-10T13:53:34.893Z | 2,016 | 5 | 13 | 1 | 116 | 0 | 658 | 58 | 3 | 2 | true | true | false | false | false | false | zero |
37,140,655 | Save state of Fragment with FragmentPagerAdapter | <p>I had create an FragmentPagerAdapter to display many question with the same Fragment.</p>
<p>This is the fragment :</p>
<p><a href="https://i.stack.imgur.com/cCnQu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cCnQu.png" alt="QuestionFragment"></a></p>
<p>When answer is give and validate, I d... | I had create an FragmentPagerAdapter to display many question with the same Fragment. This is the fragment : When answer is give and validate, I disable button and EditText. But when I slide of two Fragment and come back to this, EditText and Button are no longer disable and the user can change value of the edit text. ... | android|android-fragments | 0 | 2016-05-10T13:55:33.820Z | 2,016 | 5 | 13 | 1 | 2,921 | 3 | 554 | 48 | 2 | 3 | true | false | true | false | false | false | zero |
37,140,713 | Why not works ClickListeners for Toolbar? | <p>I use MaterialDrawer and code MainActivity is:</p>
<pre><code>public class MainActivity extends AppCompatActivity implements KitchenFragment.CallbackOne {
public static final String TAG = "myLogTag";
private Toolbar mToolbar;
private Drawer drawer;
private FragmentManager fm;
@Override
pro... | I use MaterialDrawer and code MainActivity is: [CODE] I'm trying to trace a Click in mToolbar.setNavigationOnClickListener and withOnDrawerNavigationListener and onOptionsItemSelected . None of the listeners not reacted for clicking. How you see i use Activity that launches Fragment (1), which in turn lets Fragment (2 ... | android|android-fragments|materialdrawer | 0 | 2016-05-10T13:58:01.800Z | 2,016 | 5 | 13 | 1 | 130 | 2 | 566 | 41 | 3 | 1 | true | false | false | false | false | false | zero |
37,140,777 | android - Retrofit 2:Correct way of Parsing JSON with multiple arrays | <p>I have started using retrofit:2.0.2 first time into my new project and I have done with first service call using retrofit but am not sure is it correct way or not here is what i have done </p>
<p>web services response </p>
<pre><code>{
"status": true,
"message": "",
"data": {
"schools": [ { "id": "1", "n... | I have started using retrofit:2.0.2 first time into my new project and I have done with first service call using retrofit but am not sure is it correct way or not here is what i have done web services response [CODE] created 3 model classes to map above response [CODE] and then made a service call using Retrofit2 [CODE... | android|json|retrofit2 | 0 | 2016-05-10T14:00:43.080Z | 2,016 | 5 | 14 | 1 | 1,420 | 2 | 676 | 69 | 3 | 3 | true | false | false | false | false | false | zero |
37,140,805 | Creating a callback on a class method | <p>I'm struggling with a network connection class I've created. The result of the <code>Runnable</code> I create returns a JSON object that contains all the information needed from the server. The thread runs, and receives the data perfectly, but of course, the program keeps running in the meantime, which results in a ... | I'm struggling with a network connection class I've created. The result of the Runnable I create returns a JSON object that contains all the information needed from the server. The thread runs, and receives the data perfectly, but of course, the program keeps running in the meantime, which results in a JSONException as... | java|android | 0 | 2016-05-10T14:01:45.203Z | 2,016 | 5 | 14 | 1 | 155 | 2 | 815 | 37 | 2 | 2 | true | false | false | false | false | false | zero |
37,140,887 | Android studio project app launch error | <p>I have a big issue with a project i'm working on.
It's a project that use bluetooth to communicate with an arduino, the app have to detect color on an object.</p>
<p>I don't have an android phone so I'm using the emulator ( Nexus5_API_23 ), but when i'm trying to launch the app i getting an error message and what's... | I have a big issue with a project i'm working on. It's a project that use bluetooth to communicate with an arduino, the app have to detect color on an object. I don't have an android phone so I'm using the emulator ( Nexus5_API_23 ), but when i'm trying to launch the app i getting an error message and what's following ... | android|bluetooth | 2 | 2016-05-10T14:05:03.610Z | 2,016 | 5 | 14 | 1 | 550 | 1 | 493 | 39 | 2 | 1 | true | false | false | false | false | false | low |
37,140,929 | How to open another xamarin forms page form a item-click in a list view | <p>Hello I have a List View that I made in Xamarin forms and all I want it to do is when the user clicks a option in the List View it take them to another Xamarin forms page in my case it would be ContactInfo </p>
<p>heres my xaml: </p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="ht... | Hello I have a List View that I made in Xamarin forms and all I want it to do is when the user clicks a option in the List View it take them to another Xamarin forms page in my case it would be ContactInfo heres my xaml: [CODE] here's my code behind: [CODE] I very new to Xamarin Forms so any help would be amazing :) Th... | c#|xaml|xamarin|xamarin.ios|xamarin.android | 1 | 2016-05-10T14:07:00.787Z | 2,016 | 5 | 14 | 1 | 11,626 | 2 | 336 | 71 | 5 | 2 | true | false | true | true | false | false | low |
37,140,955 | Navbar-toggle button for my hamburger menu doesnt show up on tablets | <p>im really new to the bootstrap web programming and im trying to teach myself this amazing type of website design, while working on my recent project I have run into a problem. I have 2 different master pages, 1 for any computer/laptop and one for Phones/tablets (this is mainly to alter the way the menu is displayed)... | im really new to the bootstrap web programming and im trying to teach myself this amazing type of website design, while working on my recent project I have run into a problem. I have 2 different master pages, 1 for any computer/laptop and one for Phones/tablets (this is mainly to alter the way the menu is displayed) no... | android|jquery|html|css|twitter-bootstrap | 0 | 2016-05-10T14:08:22.417Z | 2,016 | 5 | 14 | 1 | 472 | 1 | 695 | 68 | 5 | 1 | true | false | false | false | false | false | zero |
37,141,056 | Xamarin Admob RewardedVideoAd Code Error 0 & 3 | <p>I try to use AdMob in my Xamarin project. I aim at displaying a rewarded video on my app. I have issues I can't resolve and that I would like to share with you. Here is my environment : </p>
<ul>
<li>Xamarin v4.0.1.96 </li>
<li>Xamarin Android v6.0.1.10</li>
<li>Xamarin.GooglePlayServices.Ads v27.0.0</li>
</ul>
<p... | I try to use AdMob in my Xamarin project. I aim at displaying a rewarded video on my app. I have issues I can't resolve and that I would like to share with you. Here is my environment : Xamarin v4.0.1.96 Xamarin Android v6.0.1.10 Xamarin.GooglePlayServices.Ads v27.0.0 I always execute the project on a real device. In c... | c#|android|xamarin|xamarin.android | 1 | 2016-05-10T14:12:35.327Z | 2,016 | 5 | 14 | 1 | 854 | 1 | 950 | 46 | 4 | 2 | true | false | false | false | false | false | low |
37,141,110 | Why doesn't android recognize the locale as RTL when set programmatically? | <p>I have written a multi-lingual app.</p>
<p>I have different <code>values</code> folder for different languages like <code>values-fa</code> and <code>values-ru</code>. As some of these languages like Farsi and Arabic are RTL, I used a different layout design by putting some other layout <em>.xml</em> files in a fold... | I have written a multi-lingual app. I have different values folder for different languages like values-fa and values-ru . As some of these languages like Farsi and Arabic are RTL, I used a different layout design by putting some other layout .xml files in a folder layout-ldrtl beside the main layout folder. I also put ... | android|localization|locale|globalization|right-to-left | 5 | 2016-05-10T14:14:43.600Z | 2,016 | 5 | 14 | 1 | 1,570 | 1 | 1,664 | 74 | 5 | 3 | true | false | false | false | false | false | low |
37,141,188 | How to unzip bigger zip on Android? | <p>I unzip files in my Android Studio project like <a href="http://developer.android.com/reference/java/util/zip/ZipInputStream.html" rel="nofollow">this</a>:</p>
<pre><code> InputStream is = ...
ZipInputStream zis = new ZipInputStream(new BufferedInputStream(is));
try {
ZipEntry ze;
while ((ze = zis.getNe... | I unzip files in my Android Studio project like this : [CODE] The original zip file is approx. 30 MB big and contains just *.txt files. Two of those text files are > 100 MB, so that I get this error message: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.myapp, PID: 15821 java.lang.OutOfMemoryError: Faile... | android|performance|unzip|zipinputstream | 0 | 2016-05-10T14:17:50.460Z | 2,016 | 5 | 14 | 1 | 178 | 0 | 1,585 | 35 | 4 | 1 | true | true | false | false | false | false | zero |
37,141,190 | How to use both GPS & NETWORK_PROVIDER, and with almost no error in their results | <p>I am developing an Android application in which I am using current location of my device. I am using <code>requestLocationUpdates("gps", 5000, 0, new LocationDetector());</code> method of <code>LocationManager</code> for getting updates. And inside <code>onLocationChanged()</code> method of <code>LocationListener</c... | I am developing an Android application in which I am using current location of my device. I am using requestLocationUpdates("gps", 5000, 0, new LocationDetector()); method of LocationManager for getting updates. And inside onLocationChanged() method of LocationListener I am making use of my device's current location. N... | android|gps|android-gps | -2 | 2016-05-10T14:18:04.023Z | 2,016 | 5 | 14 | 1 | 158 | 1 | 1,052 | 81 | 3 | 0 | false | false | false | false | false | true | negative |
37,141,308 | compare if 2 very long strings are equal | <p>I know in java we can use the .equals method to compare if two strings are equal. But what if the 2 strings are extremely long such as the following:</p>
<pre><code>String s1 = "t was her sister Josephine who told her, in broken sentences; veiled hints that revealed in half concealing. Her husband's friend Richards... | I know in java we can use the .equals method to compare if two strings are equal. But what if the 2 strings are extremely long such as the following: [CODE] will .equals still work if the strings being compared are huge? is there any limit? I need to know what is the BEST way to compare 2 long strings. | java|android|algorithm|performance | -11 | 2016-05-10T14:22:29.190Z | 2,016 | 5 | 14 | 1 | 5,916 | 2 | 303 | 40 | 4 | 1 | true | false | true | false | false | true | negative |
37,141,382 | Handling application crashes with Robotium | <p>I'm using Robotium to execute automation tests on Android.
The problem is that when executing a bunch of tests, if any test causes application crash - no further tests will be executed. Only this message will appear "Test failed to run to completion. Reason: 'Instrumentation run failed due to 'Process crashed.''. Ch... | I'm using Robotium to execute automation tests on Android. The problem is that when executing a bunch of tests, if any test causes application crash - no further tests will be executed. Only this message will appear "Test failed to run to completion. Reason: 'Instrumentation run failed due to 'Process crashed.''. Check... | android|robotium | 0 | 2016-05-10T14:25:55.537Z | 2,016 | 5 | 14 | 1 | 103 | 1 | 722 | 42 | 2 | 1 | true | false | false | false | false | false | zero |
37,141,524 | Bitmap not displaying on canvas | <p>Hi apologies for such a basic question. I've been trying to decode my image resource into a bitmap and draw it onto my canvas within my customView.</p>
<p>I've compared this issue to several similar Stackoverflow questions and have tried other methods but have had no luck displaying the image. </p>
<pre><code>publ... | Hi apologies for such a basic question. I've been trying to decode my image resource into a bitmap and draw it onto my canvas within my customView. I've compared this issue to several similar Stackoverflow questions and have tried other methods but have had no luck displaying the image. [CODE] | android|view|bitmap|android-canvas|android-bitmap | 1 | 2016-05-10T14:32:06.257Z | 2,016 | 5 | 14 | 1 | 111 | 0 | 294 | 31 | 5 | 1 | true | true | false | false | false | false | low |
37,141,621 | Insert of rows in android database not working | <p>I have a serious problem with my android studio's app!</p>
<p>I have created a db with two table. The problem happen when I insert the data. Infact, when I insert the data in the form, the previous one are deleted!</p>
<p>------------For example-------------------</p>
<p><strong>First insertion:</strong></p>
<p>... | I have a serious problem with my android studio's app! I have created a db with two table. The problem happen when I insert the data. Infact, when I insert the data in the form, the previous one are deleted! ------------For example------------------- First insertion: Name --> a Password --> a Second insertion: Name -->... | java|android|database | 0 | 2016-05-10T14:36:01.373Z | 2,016 | 5 | 14 | 1 | 163 | 1 | 499 | 46 | 3 | 2 | true | false | false | false | false | false | zero |
37,141,669 | How to mock a retrofit service observable calling onError? | <p>I am testing this code.</p>
<pre><code>service.getProducts()
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Subscriber<Result<Catalog<SoajsProductPreview>>>() {
@Override
public void onErr... | I am testing this code. [CODE] Testing that view.showProducts() the mocked service returns results works fine. I do [CODE] Now I want to test that view.ShowErrorView() is called when the service throws an error but I can't find a way to do that: Obviously the following doesn't compile [CODE] And this throws an exceptio... | unit-testing|mockito|rx-java|retrofit2|rx-android | 4 | 2016-05-10T14:38:06.063Z | 2,016 | 5 | 14 | 1 | 3,021 | 1 | 432 | 58 | 5 | 4 | true | false | true | false | false | false | low |
37,141,778 | how to load 4 images from url in android? | <p>I want to load four images in four imageview in android
I try this code and it is run vary good
but it is load o... | I want to load four images in four imageview in android I try this code and it is run vary good but it is load one image>>>>>>>> How can I do to load 4 images>> I think I need to use array but how?? [CODE] | android | 0 | 2016-05-10T14:41:39.503Z | 2,016 | 5 | 14 | 1 | 33 | 1 | 205 | 41 | 1 | 1 | true | false | false | false | false | false | zero |
37,141,797 | How to add a multi-line dynamic listview with alternate colors? | <p>I want to add a list-view dynamically where i can put heading in line 1 and the corresponding text in line 2.
I have used a simple adapter to put values in listview. </p>
<p>This is my java activity:</p>
<pre><code> String serverResponse = "";
@Override
protected void onCreate(Bundle savedInstanceState) {
su... | I want to add a list-view dynamically where i can put heading in line 1 and the corresponding text in line 2. I have used a simple adapter to put values in listview. This is my java activity: [CODE] } This is my XML File: [CODE] | android|android-layout|listview|dynamic | 0 | 2016-05-10T14:42:46.993Z | 2,016 | 5 | 14 | 1 | 49 | 1 | 228 | 63 | 4 | 2 | true | false | false | false | false | false | zero |
37,141,891 | how to get android version of my device programmatically when debugging via usb | <p>How to get android version of my device programmatically when debugging via usb? I saw a link with this line of code but I reckon this gets the build/version number of the app and not that of the OS of the actual device</p>
<pre><code>packageinfo = getPackageManager().getPackageInfo(getPackageName(), 0);
Version = ... | How to get android version of my device programmatically when debugging via usb? I saw a link with this line of code but I reckon this gets the build/version number of the app and not that of the OS of the actual device [CODE] in my code this is what I have for application names etc , within here I would like to get an... | java|android|mobile | 0 | 2016-05-10T14:46:07.803Z | 2,016 | 5 | 14 | 1 | 82 | 1 | 407 | 79 | 3 | 2 | true | false | false | false | false | false | zero |
37,141,925 | Delay when loading image from Internet into CircleImageView in Android | <p>I want load image from <code>JSON</code> into <code>Imageview</code>. When I use basic android <code>Imageview</code> there is no delay and it shows image quickly, but when I use <strong><code>CircleImageView</code></strong> the images are delayed and sometimes don't show the image.</p>
<p>I use <code>Glide</code> ... | I want load image from JSON into Imageview . When I use basic android Imageview there is no delay and it shows image quickly, but when I use CircleImageView the images are delayed and sometimes don't show the image. I use Glide library for showing images in ImageView . My CircleImageView class : [CODE] CircleImageview ... | android|android-imageview | -2 | 2016-05-10T14:47:20.307Z | 2,016 | 5 | 14 | 1 | 256 | 2 | 435 | 70 | 2 | 1 | true | false | false | false | false | true | negative |
37,142,073 | Could not find class 'android.os.PersistableBundle' | <p>My IDE is Android Studio 2.0. SDK is 23<br>
This is my error log(there are so many same logs and I list only one):</p>
<blockquote>
<p>05-10 22:19:21.430 1835-1835/edu.jazzy.testconsumer E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method edu.jazzy.testconsumer.MipcaActivityCap... | My IDE is Android Studio 2.0. SDK is 23 This is my error log(there are so many same logs and I list only one): 05-10 22:19:21.430 1835-1835/edu.jazzy.testconsumer E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method edu.jazzy.testconsumer.MipcaActivityCapture.access$super my build.gra... | java|android|android-studio | 1 | 2016-05-10T14:53:07.050Z | 2,016 | 5 | 14 | 1 | 5,092 | 1 | 407 | 51 | 3 | 1 | true | false | true | false | false | false | low |
37,142,180 | Activity Does not Work for resultCode 4 5 6 | <p>My Activity for selecting images from gallery and showing on imagebuttons does not work for request code 3 4 5 here is my activity result code</p>
<pre><code>protected void onActivityResult(int requestCode, int resultCode,Intent data) {
//getting uri from intent extras
Uri selectedImage = data.getDa... | My Activity for selecting images from gallery and showing on imagebuttons does not work for request code 3 4 5 here is my activity result code [CODE] | android|camera | 1 | 2016-05-10T14:57:39.400Z | 2,016 | 5 | 14 | 1 | 28 | 0 | 149 | 43 | 2 | 1 | true | true | false | false | false | false | low |
37,142,201 | GetText from Fragment returns null but setText works | <p>In my <code>MainActivity</code> I call a Fragment and set the boolean <code>mFragment</code> to true when its active. Now I set some Text in the <code>TextViews</code> declared in the Fragment and it works fine. But when a <code>Button</code> declared in the Fragment calls a Method in the <code>MainActivity</code> s... | In my MainActivity I call a Fragment and set the boolean mFragment to true when its active. Now I set some Text in the TextViews declared in the Fragment and it works fine. But when a Button declared in the Fragment calls a Method in the MainActivity suddently mFragment is false and I can't use getText from the TextVie... | java|android|android-fragments | -1 | 2016-05-10T14:58:31.123Z | 2,016 | 5 | 14 | 1 | 630 | 3 | 413 | 52 | 3 | 2 | true | false | false | false | false | true | negative |
37,142,275 | Android Studio 2.1 debugger does not show local variables | <p>I am trying to debug over network in Android Studio. I connected via port 5555 and generally it is possible step through break points. But it often takes minutes just to execute one line of code and the other thing is that I don't see any variables which are no members. All I see is the <code>this</code> object, but... | I am trying to debug over network in Android Studio. I connected via port 5555 and generally it is possible step through break points. But it often takes minutes just to execute one line of code and the other thing is that I don't see any variables which are no members. All I see is the this object, but no variables fr... | android|android-studio|debugging|android-studio-2.1 | 29 | 2016-05-10T15:01:39.063Z | 2,016 | 5 | 15 | 1 | 18,772 | 9 | 685 | 57 | 4 | 0 | false | false | true | true | true | false | high |
37,142,282 | OpenCV native integration in Android NDK with Gradle | <p>I'm trying to use some code in C++ that uses the openCV library in an android project.
I'm using Android studio 2.1 and Gradle version 2.1.0 (experimental 0.7.0).
The problem is that the compiler can't find the opencv libraries. For example in this code:</p>
<pre><code>#include <string.h>
#include <jni.h&g... | I'm trying to use some code in C++ that uses the openCV library in an android project. I'm using Android studio 2.1 and Gradle version 2.1.0 (experimental 0.7.0). The problem is that the compiler can't find the opencv libraries. For example in this code: [CODE] this is the error: [CODE] Here my gradle files: built.grad... | c++|opencv|gradle|android-ndk|java-native-interface | 1 | 2016-05-10T15:02:13.220Z | 2,016 | 5 | 15 | 1 | 472 | 1 | 622 | 52 | 5 | 6 | true | false | false | false | false | false | low |
37,142,318 | Dynamically inserting list items to listview in android | <p>Friends i'm new to android and learning on my own. I was creating invoice manager app for learning. Here products are added by the admin and that is working fine. User has only permission to create invoice. When user arrives into create_invoice activity he has set of frame layouts in which one is for adding items. W... | Friends i'm new to android and learning on my own. I was creating invoice manager app for learning. Here products are added by the admin and that is working fine. User has only permission to create invoice. When user arrives into create_invoice activity he has set of frame layouts in which one is for adding items. When... | android|listview | 1 | 2016-05-10T15:03:40.010Z | 2,016 | 5 | 15 | 1 | 273 | 3 | 1,078 | 55 | 2 | 4 | true | false | false | false | false | false | low |
37,142,373 | Daily alarm not triggered after 2 or 3 days | <p>I want to trigger a daily alarm in my application. I can see the alarm being triggered daily at the correct time for 2 or 3 days but it does not trigger after that. For example if I set alarm to trigger at 08:00 AM, it will trigger at 8 AM daily for 2 or 3 days and after that there is no alarm triggered. There is no... | I want to trigger a daily alarm in my application. I can see the alarm being triggered daily at the correct time for 2 or 3 days but it does not trigger after that. For example if I set alarm to trigger at 08:00 AM, it will trigger at 8 AM daily for 2 or 3 days and after that there is no alarm triggered. There is no ap... | android|alarmmanager|android-alarms | 0 | 2016-05-10T15:06:08.350Z | 2,016 | 5 | 15 | 1 | 967 | 1 | 995 | 43 | 3 | 1 | true | false | false | false | false | false | zero |
37,142,718 | Ionic build failed | <p>I have been having this problem for a while now and i tried all the solutions on the internet but none of them helped.
I have this error whenever I run : <code>Ionic run android</code>:</p>
<pre><code>FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':processDebugResources'.
com... | I have been having this problem for a while now and i tried all the solutions on the internet but none of them helped. I have this error whenever I run : Ionic run android : [CODE] When running gradlew.bat --info build clean : [CODE] I made sure to verify tools\23.0.3\aapt.exe is there. Anybody can help me fix this? | android|ionic-framework | 0 | 2016-05-10T15:21:26.603Z | 2,016 | 5 | 15 | 1 | 413 | 0 | 317 | 18 | 2 | 2 | true | true | false | false | false | false | zero |
37,142,912 | Make Activity FrameLayout background visible under fragment layout | <p>I would like to set a background image on my activities setContentView() layout, and have that same image consistently be visible underneath my fragment views. I tried setting the background image on my root layout and set the background to transparent on child layouts, but it is not working as expected.</p>
<p>Ps.... | I would like to set a background image on my activities setContentView() layout, and have that same image consistently be visible underneath my fragment views. I tried setting the background image on my root layout and set the background to transparent on child layouts, but it is not working as expected. Ps. Sorry for ... | android|android-layout|android-fragments|picasso|android-databinding | 0 | 2016-05-10T15:28:38.067Z | 2,016 | 5 | 15 | 1 | 779 | 1 | 674 | 66 | 5 | 6 | true | false | false | false | false | false | zero |
37,142,969 | ANdroid - Two Receive Share Intent for Mime Type Image | <p>I am trying have two diff activities (say A & B) show up in share menu when someone sends image via sending <code>android.intent.action.SEND</code>. A & B have separate function and different label (which should show in the share menu).</p>
<p>The expected behaviour is like twitter: You can share image via... | I am trying have two diff activities (say A & B) show up in share menu when someone sends image via sending android.intent.action.SEND . A & B have separate function and different label (which should show in the share menu). The expected behaviour is like twitter: You can share image via Tweet or DM. How can I do this?... | android|android-intent | 0 | 2016-05-10T15:30:58.417Z | 2,016 | 5 | 15 | 1 | 306 | 0 | 621 | 54 | 2 | 2 | true | true | false | false | false | false | zero |
37,143,016 | Android - FTPClient - mlistFile is returning null | <p>I'm working on an app that needs to be connected at a FTP server. Then, I need to get the size of a particular file called "new_order.txt". So I'm using the method mlistFile(String filePath) which was working perfectly the last time I was working on that app. But now, mlistFile is returning null, and when I use getS... | I'm working on an app that needs to be connected at a FTP server. Then, I need to get the size of a particular file called "new_order.txt". So I'm using the method mlistFile(String filePath) which was working perfectly the last time I was working on that app. But now, mlistFile is returning null, and when I use getSize... | android|ftp | 1 | 2016-05-10T15:32:45.407Z | 2,016 | 5 | 15 | 1 | 1,347 | 2 | 634 | 49 | 2 | 2 | true | false | false | false | false | false | low |
37,143,029 | How to change position of close search button at the toolbar in android and animate when expand? | <p>I have search field at the toolbar,but when I tap something the <strong>Close button</strong> appears not on the right side. Also when I tap to <strong>Search button</strong> there are no any animation..</p>
<p>It has some margin.How I can set the position of this <strong>Close button</strong> exactly on the right ... | I have search field at the toolbar,but when I tap something the Close button appears not on the right side. Also when I tap to Search button there are no any animation.. It has some margin.How I can set the position of this Close button exactly on the right side of the toolbar? And how add animations when this field is... | android|material-design|toolbar | 2 | 2016-05-10T15:33:24.223Z | 2,016 | 5 | 15 | 1 | 696 | 1 | 373 | 96 | 3 | 2 | true | false | false | false | false | false | low |
37,143,134 | Android: nesting FrameLayouts - what is the exact performance overhead? | <p>In order to implement a clean architecture with separate and reusable UI components, I need to have hierarchies of nested <code>FrameLayouts</code> (up to 3-4 nested <code>FrameLayouts</code>), all of which have both <code>layout_width</code> and <code>layout_height</code> set to <code>match_parent</code> (the gener... | In order to implement a clean architecture with separate and reusable UI components, I need to have hierarchies of nested FrameLayouts (up to 3-4 nested FrameLayouts ), all of which have both layout_width and layout_height set to match_parent (the general idea behind that architecture is described in this answer ). I c... | android|performance|listview|android-framelayout | 6 | 2016-05-10T15:37:37.827Z | 2,016 | 5 | 15 | 1 | 216 | 0 | 1,497 | 71 | 4 | 0 | false | true | false | false | false | false | medium |
37,143,170 | Xamarin.Designer.DesignerException in Axml Designer | <p>My xml layout:</p>
<pre><code><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="192dp"
android:background="?attr/colorPrimaryDark"
android:padding="16dp"
android:theme="@style/ThemeOverlay.AppCompat.Dark"
an... | My xml layout: [CODE] Exception message: Bridge [resources.resolve] Couldn't resolve resource @style/ThemeOverlay.AppCompat.DarkBridge [resources.resolve] Couldn't resolve resource @style/ThemeOverlay.AppCompat.Darkjava.lang.NumberFormatException: Attribute '?attr/colorPrimaryDark' not found. Are you using the right th... | android|xamarin|xamarin.android | 0 | 2016-05-10T15:39:44.570Z | 2,016 | 5 | 15 | 1 | 718 | 1 | 3,065 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
37,143,365 | Azure Notification Hub on Android. How to send to specific user? | <p>I want to create a little application to send notification to my Android Device.</p>
<p>I made a WPF Application and an Android Application and I use Azure Notification Hub and GCM for notif.</p>
<p>I can send a notification for all my android device but not for ONE device.</p>
<p>And i come here to get your help... | I want to create a little application to send notification to my Android Device. I made a WPF Application and an Android Application and I use Azure Notification Hub and GCM for notif. I can send a notification for all my android device but not for ONE device. And i come here to get your help to do this. My WPF Applica... | c#|android|wpf|azure|azure-notificationhub | 0 | 2016-05-10T15:48:36.250Z | 2,016 | 5 | 15 | 1 | 2,006 | 1 | 628 | 64 | 5 | 2 | true | false | false | false | false | false | zero |
37,143,464 | android:layout_below not working in RelativeLayout | <p>I am posting my code please help me.I am using relative layout with vertical orientation.</p>
<pre><code><Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Next"
android:id="@+id/next"
android:layout_marginTop="170dp"
android:layout_alignParentR... | I am posting my code please help me.I am using relative layout with vertical orientation. [CODE] | android | 0 | 2016-05-10T15:53:47.060Z | 2,016 | 5 | 15 | 1 | 1,106 | 1 | 96 | 50 | 1 | 1 | true | false | false | false | false | false | zero |
37,143,601 | when i change my virtual device to render in android studio my components get rearranged | <p><a href="http://i.stack.imgur.com/22VIe.jpg" rel="nofollow">This is Nexus 6 virtual device with which I have rendered my activity_.xml</a></p>
<p><a href="http://i.stack.imgur.com/xX3d3.jpg" rel="nofollow">This is the device when I change it automatically edits the components(for example the CLEAR button in the app... | This is Nexus 6 virtual device with which I have rendered my activity_.xml This is the device when I change it automatically edits the components(for example the CLEAR button in the app) Following is my activity_main.xml file which I have used in the project: [CODE] When I switch between devices I want my design to be ... | android|xml|android-layout|android-studio|virtual-device-manager | 0 | 2016-05-10T15:59:42.810Z | 2,016 | 5 | 15 | 1 | 156 | 0 | 501 | 88 | 5 | 1 | true | true | false | false | false | false | zero |
37,143,711 | Phonegap push notfication plugin - Token Refreshed | <p>I use phonegap push notfication plugin that can be found here:
<a href="https://github.com/phonegap/phonegap-plugin-push" rel="nofollow">https://github.com/phonegap/phonegap-plugin-push</a></p>
<p>and with this plugin i use GCM API.</p>
<p>My scenario is that:
any user in my application have a list of tokens that... | I use phonegap push notfication plugin that can be found here: https://github.com/phonegap/phonegap-plugin-push and with this plugin i use GCM API. My scenario is that: any user in my application have a list of tokens that indicate the phone/phones he work with: [CODE] user can have multiple tokens but tokens can have ... | android|cordova|push-notification|google-cloud-messaging|phonegap-plugins | 0 | 2016-05-10T16:04:49.073Z | 2,016 | 5 | 16 | 1 | 511 | 1 | 916 | 50 | 5 | 1 | true | false | false | false | false | false | zero |
37,143,968 | How to handle image capture with MediaProjection on orientation change? | <p>I wrote test application for capturing the images with MediaProjection class.</p>
<pre><code>imageReader = ImageReader.newInstance(currentWidth, currentHeight, PixelFormat.RGBA_8888, 2);
imageReader.setOnImageAvailableListener(this, null);
virtualDisplay = mediaProjection.createVirtualDisplay("captureDisplay",
... | I wrote test application for capturing the images with MediaProjection class. [CODE] // DisplayManager flags are trails only and in onImageAvailable(ImageReader reader) method i tried to get the image as follows: [CODE] Till now I am OK and I am getting correct Image when my app is in landscape orientation. Problem fac... | android|android-mediaprojection | 0 | 2016-05-10T16:17:32.347Z | 2,016 | 5 | 16 | 1 | 2,117 | 1 | 751 | 71 | 2 | 2 | true | false | false | false | false | false | zero |
37,144,016 | Android recyclerview Dynamically Add and Remove Views using Java code | <p>I have a recylerview item as</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:... | I have a recylerview item as [CODE] onclicking id sample1 i want to insert a layout file sample3.xml inside linearlayout id insertat . sample3.xml is as follows [CODE] in the onBindview i am trying this code [CODE] I have 10 items in the recyclerview. When i click on the sample1 of the first item in the recyclerview, t... | android|insert|android-recyclerview | 1 | 2016-05-10T16:20:18.107Z | 2,016 | 5 | 16 | 1 | 579 | 0 | 604 | 69 | 3 | 3 | true | true | false | false | false | false | low |
37,144,059 | Image might be corrupt after saving with FileOutputStream | <p>So, i managed to download a file and saved successfully using FileOutputStream, i can see the image if i choose it via file manager but the thumbnail is not displayed also that image is not appear on gallery. I don't know if it corrupted or not since i can see the image when i choose it. So what's my fault?</p>
<p>... | So, i managed to download a file and saved successfully using FileOutputStream, i can see the image if i choose it via file manager but the thumbnail is not displayed also that image is not appear on gallery. I don't know if it corrupted or not since i can see the image when i choose it. So what's my fault? This is the... | android|fileoutputstream | 0 | 2016-05-10T16:23:15.930Z | 2,016 | 5 | 16 | 1 | 94 | 1 | 333 | 57 | 2 | 1 | true | false | false | false | false | false | zero |
37,144,203 | Build Firefox on Android | <p>Trying to build Firefox on Android by referring to this page.
<a href="https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_for_Android_build" rel="nofollow noreferrer">Simple Firefox for Android build</a></p>
<p>However, the build command <em>./mach build</em> fails wit... | Trying to build Firefox on Android by referring to this page. Simple Firefox for Android build However, the build command ./mach build fails with the error [CODE] However autoconf is already installed on the system. [CODE] Here's the pastebin of the error. Thanks. | android|firefox|fennec | 0 | 2016-05-10T16:31:05.760Z | 2,016 | 5 | 16 | 1 | 199 | 1 | 264 | 24 | 3 | 2 | true | false | false | false | false | false | zero |
37,144,221 | Google In-app billing: Can't query subscription details | <p>I have a really strange problem with Google In-app billing API. </p>
<p>I want to get the details of my available subscriptions to show their localised price on the UI. I'm using the IabHelper to query the details of the SKUs I specify, but the result contains no products, but after I purchase the subscription it's... | I have a really strange problem with Google In-app billing API. I want to get the details of my available subscriptions to show their localised price on the UI. I'm using the IabHelper to query the details of the SKUs I specify, but the result contains no products, but after I purchase the subscription it's working, ev... | android|in-app-purchase | 2 | 2016-05-10T16:32:08.587Z | 2,016 | 5 | 16 | 1 | 1,087 | 1 | 645 | 55 | 2 | 1 | true | false | false | false | false | false | low |
37,144,291 | Android .putExtra (not responding) | <p>I need to pass a String created from 'Activity A' to 'Activity B' so that I can display it in a TextView.
The problem is that the code causes Android to not respond, its identical to the other tutorials online. </p>
<p>Thanks for any feedback.</p>
<p><strong>Activity A.onCreate()</strong></p>
<pre><code>check_but... | I need to pass a String created from 'Activity A' to 'Activity B' so that I can display it in a TextView. The problem is that the code causes Android to not respond, its identical to the other tutorials online. Thanks for any feedback. Activity A.onCreate() [CODE] Activity B.onCreate() [CODE] stack trace: [CODE] | android|string|put|extra | 0 | 2016-05-10T16:36:03.810Z | 2,016 | 5 | 16 | 1 | 45 | 4 | 313 | 34 | 4 | 3 | true | false | false | false | false | false | zero |
37,144,312 | Android Studio Terminal has invisible text | <p>When i turn on my notebook with windows 8.1 64 bit today, I realised that text in Android Studio Terminal is invible after half of screen. How can I solve this problem?</p>
<p>when I use gradlew from cmd, works correctly.</p>
<p><a href="https://i.stack.imgur.com/POtL1.png" rel="nofollow noreferrer"><img src="http... | When i turn on my notebook with windows 8.1 64 bit today, I realised that text in Android Studio Terminal is invible after half of screen. How can I solve this problem? when I use gradlew from cmd, works correctly. EDIT: I found this log about IDE error, looks like a theme error: [CODE] | android-studio | 3 | 2016-05-10T16:37:15.400Z | 2,016 | 5 | 16 | 1 | 208 | 0 | 287 | 42 | 1 | 1 | true | true | false | false | false | false | low |
37,144,413 | No resource found that matches the given name (at 'theme' with value '@style/AppTheme.AppBarOverlay') | <p>Some issue in this program. I don't know what is the problem.</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="ht... | Some issue in this program. I don't know what is the problem. [CODE] Can anyone explain whats the problem in this? | android|android-studio | 13 | 2016-05-10T16:43:01.163Z | 2,016 | 5 | 16 | 1 | 35,469 | 4 | 114 | 101 | 2 | 1 | true | false | true | true | true | false | medium |
37,144,516 | ListView not shown when trying to go back | <p>I have tested my app with the emulator and everything works as expected. now im debugging the app via usb debugging. This is when i get this issue. I have a <strong>ListView</strong> in my app. When the user press a List Item it starts a new activity. My issue is, after the user press the back button, the <strong>L... | I have tested my app with the emulator and everything works as expected. now im debugging the app via usb debugging. This is when i get this issue. I have a ListView in my app. When the user press a List Item it starts a new activity. My issue is, after the user press the back button, the ListView is not generated agai... | android|listview | 0 | 2016-05-10T16:48:39.940Z | 2,016 | 5 | 16 | 1 | 36 | 0 | 782 | 41 | 2 | 2 | true | true | false | false | false | false | zero |
37,144,570 | Cordova returns photo in landscape with black region top and bottom | <p>Is there a way to configure the <a href="http://ngcordova.com/docs/plugins/camera/" rel="nofollow noreferrer">Cordova camera plugin</a> to return photos without the black bands outside of the target height?</p>
<p>E.g.,
<a href="https://i.stack.imgur.com/j6Vw6.jpg" rel="nofollow noreferrer"><img src="https://i.sta... | Is there a way to configure the Cordova camera plugin to return photos without the black bands outside of the target height? E.g., is returned when options set thus: [CODE] I have tried removing the targetWidth and targHeight parameters. One issue that you can't know ahead of time whether the photo is landscape or port... | android|ios|cordova|ionic-framework|cordova-plugins | 2 | 2016-05-10T16:51:45.057Z | 2,016 | 5 | 16 | 1 | 364 | 1 | 439 | 67 | 5 | 1 | true | false | false | false | false | false | low |
37,144,657 | Switch flash in Camera2 API | <p>My problem is when I switch between different flashmodes and then want to capture an image, my captureBuilder won't set the chosen flashmode. It only works when i close and reopen the camera.</p>
<p>I took the <a href="https://github.com/googlesamples/android-Camera2Basic" rel="nofollow">https://github.com/googlesa... | My problem is when I switch between different flashmodes and then want to capture an image, my captureBuilder won't set the chosen flashmode. It only works when i close and reopen the camera. I took the https://github.com/googlesamples/android-Camera2Basic as a starting point. my method: [CODE] This is the setCurrentFl... | android|android-camera|android-camera2|camera-flash | 4 | 2016-05-10T16:56:34.663Z | 2,016 | 5 | 16 | 1 | 3,959 | 1 | 565 | 27 | 4 | 3 | true | false | true | false | false | false | low |
37,144,740 | Google Map View is leaking very much | <p>I've previously used the MapFragment, but it was slow for my needs. The MapView is almost instantly and fits my needs exactly. But there is one thing they both have in common:</p>
<p>Huge memory leaking.
I've 'destroyed' the MapView like I should when exiting the activity and it still leaks. The MapView is in an ac... | I've previously used the MapFragment, but it was slow for my needs. The MapView is almost instantly and fits my needs exactly. But there is one thing they both have in common: Huge memory leaking. I've 'destroyed' the MapView like I should when exiting the activity and it still leaks. The MapView is in an activity that... | android|google-maps|memory-leaks | 3 | 2016-05-10T17:01:24.193Z | 2,016 | 5 | 17 | 1 | 1,430 | 1 | 707 | 36 | 3 | 0 | false | false | false | false | false | false | low |
37,144,770 | Hide android ToolBar | <p>I am developing a tabbed application and for some tabs I want to hide the toolbar. I am setting the visibility as gone to accomplish that. Below is my XML file,</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout android:id="@+id/main_content"
... | I am developing a tabbed application and for some tabs I want to hide the toolbar. I am setting the visibility as gone to accomplish that. Below is my XML file, [CODE] But I am seeing some item still on the top section of the screen. please check the screen shot. Am i doing it correctly? Is there any better way to hide... | android|android-toolbar | 1 | 2016-05-10T17:03:01.163Z | 2,016 | 5 | 17 | 1 | 311 | 2 | 337 | 20 | 2 | 1 | true | false | false | false | false | false | low |
37,144,849 | Getting drawable identifier for name | <p>Hi I cant find the solutiıon for my question.
I take name of the images from db. And then I should give tat string to image.setImageResource. There are lots of answers which include <code>getResources().getIdentifier(</code>
But getResoruces() is not work. I get error like:
Error:(40, 21) error: cannot find symbol ... | Hi I cant find the solutiıon for my question. I take name of the images from db. And then I should give tat string to image.setImageResource. There are lots of answers which include getResources().getIdentifier( But getResoruces() is not work. I get error like: Error:(40, 21) error: cannot find symbol method getResourc... | android | 0 | 2016-05-10T17:08:05.317Z | 2,016 | 5 | 17 | 1 | 365 | 3 | 412 | 36 | 1 | 1 | true | false | false | false | false | false | zero |
37,144,883 | Android - GPS location does not update after register | <p>I am making an application that samples data periodically. I have trouble getting GPS data for some reason.
Here is what I got:</p>
<p>Manifest:</p>
<pre><code><uses-permission android:name="android.permission.ACCESS_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />... | I am making an application that samples data periodically. I have trouble getting GPS data for some reason. Here is what I got: Manifest: [CODE] Code: [CODE] The issue is, I am not getting ANY updates whatsoever. I tried this code on 3 different devices, and no results at all. I tried using breakpoints to make sure the... | android|gps|geolocation | 0 | 2016-05-10T17:10:10.663Z | 2,016 | 5 | 17 | 1 | 878 | 1 | 726 | 53 | 3 | 2 | true | false | false | false | false | false | zero |
37,144,886 | Android API 21+ DatePicker Can't Hide Fields | <p>I'm trying to show only day of month and month fields in DatePicker in AlertDialog. On previous API's from API 21, i can do it with code below.But when i try to do it in API21+ "getDeclaredFields()" doesn't even returns like "mYearPicker" or "mYearSpinner" fields.Does anyone have any idea how can i just show Day and... | I'm trying to show only day of month and month fields in DatePicker in AlertDialog. On previous API's from API 21, i can do it with code below.But when i try to do it in API21+ "getDeclaredFields()" doesn't even returns like "mYearPicker" or "mYearSpinner" fields.Does anyone have any idea how can i just show Day and Mo... | android|datepicker|show-hide|android-api-levels | -1 | 2016-05-10T17:10:25.257Z | 2,016 | 5 | 17 | 1 | 517 | 1 | 466 | 44 | 4 | 1 | true | false | false | false | false | true | negative |
37,144,890 | Android- RadioGroup setOnCheckedChangeListener() doesn't work | <p>i'm trying to do a listener for a RadioGroup. I don't know why, but the listener is never call when i check anyone of the radio buttons. I want to do a simple menu to select the language.
Thanks in advance!!</p>
<pre><code>public class Language extends AppCompatActivity {
private static final String TAG = Menu.clas... | i'm trying to do a listener for a RadioGroup. I don't know why, but the listener is never call when i check anyone of the radio buttons. I want to do a simple menu to select the language. Thanks in advance!! [CODE] This is my XML file [CODE] | android|radio-group | 0 | 2016-05-10T17:10:38.750Z | 2,016 | 5 | 17 | 1 | 5,185 | 1 | 241 | 61 | 2 | 2 | true | false | true | false | false | false | zero |
37,144,974 | Do I need an API key for each API I use? | <p>I'm trying to use both google maps API and places API in my android app (includes a map and a place autocomplete activity),
but the API key I got for google maps doesn't seem to be working for the place autocomplete activity, I tried getting another key for the Places API but I have no idea how to include it in my p... | I'm trying to use both google maps API and places API in my android app (includes a map and a place autocomplete activity), but the API key I got for google maps doesn't seem to be working for the place autocomplete activity, I tried getting another key for the Places API but I have no idea how to include it in my proj... | android|google-maps-android-api-2|google-places-api | 1 | 2016-05-10T17:15:33.007Z | 2,016 | 5 | 17 | 1 | 761 | 3 | 403 | 40 | 3 | 1 | true | false | false | false | false | false | low |
37,145,042 | How can I bind my own serial device with a driver? | <p>I am currently building a device and its driver in an embedded Android. </p>
<p>The device is basically an embedded Linux behaving like a touchscreen.
The device and the embedded Android are connected with UART. (I am using Lemaker Guitar eval boards). The communication is working : I receive data sent on /dev/tty... | I am currently building a device and its driver in an embedded Android. The device is basically an embedded Linux behaving like a touchscreen. The device and the embedded Android are connected with UART. (I am using Lemaker Guitar eval boards). The communication is working : I receive data sent on /dev/ttyS0 (using min... | android|linux-kernel|embedded|uart|input-devices | 1 | 2016-05-10T17:19:17.730Z | 2,016 | 5 | 17 | 1 | 706 | 0 | 1,844 | 50 | 5 | 0 | false | true | false | false | false | false | low |
37,145,109 | How can change 4 images load from url in android? | <p>I have four buttons....
Each button is a picture....
I want to change the pictures when I press the next button,,,
... | I have four buttons.... Each button is a picture.... I want to change the pictures when I press the next button,,, How can do this? because my project it is about change 10 photos loading from url>>>>>thanks for help :) [CODE] | android | 0 | 2016-05-10T17:22:42.343Z | 2,016 | 5 | 17 | 1 | 43 | 1 | 226 | 49 | 1 | 1 | true | false | false | false | false | false | zero |
37,145,350 | How to display a dynamic textview in fragment Android | <p>It drives me crazy. I have made research for one day, although I tried everything, nothing work.</p>
<p>this is my xml code:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_... | It drives me crazy. I have made research for one day, although I tried everything, nothing work. this is my xml code: [CODE] My java's code is: [CODE] I should see the text in my fragment, but I don't see anything. Why? | java|android|android-fragments|textview|fragment | 0 | 2016-05-10T17:35:40.283Z | 2,016 | 5 | 17 | 1 | 653 | 2 | 219 | 53 | 5 | 2 | true | false | false | false | false | false | zero |
37,145,351 | Android Segmentation fault Tombstone debug 6.0.1, 6.0.0 | <p>Steps to take to try and debug this will be greatly appreciated.
The bug only happens on android 6.0.0 and android 6.0.1, at random times so my only hope is to try to debug the app.
My code is written entirely in native Android Java.</p>
<p>05-10 10:31:15.471 15933-15933/com.ragemods A/libc: Fatal signal 11 (SIGSE... | Steps to take to try and debug this will be greatly appreciated. The bug only happens on android 6.0.0 and android 6.0.1, at random times so my only hope is to try to debug the app. My code is written entirely in native Android Java. 05-10 10:31:15.471 15933-15933/com.ragemods A/libc: Fatal signal 11 (SIGSEGV), code 1,... | android|tombstone | 2 | 2016-05-10T17:35:55.957Z | 2,016 | 5 | 17 | 1 | 205 | 0 | 562 | 55 | 2 | 1 | true | true | false | false | false | false | low |
37,145,539 | NavigationView item selection not updated on tab change | <p>I have an app with a NavigationView and two tabs <code>a</code> and <code>b</code>. Two MenuItems in the NavigationView correspond to tab <code>a</code> and <code>b</code> so that, when tab <code>a</code> is selected, NavigationView MenuItem <code>A</code> should be selected, and the same for MenuItem <code>B</code>... | I have an app with a NavigationView and two tabs a and b . Two MenuItems in the NavigationView correspond to tab a and b so that, when tab a is selected, NavigationView MenuItem A should be selected, and the same for MenuItem B . Selecting MenuItem A and B should also change tab to a and b correspondingly. Selected her... | android|navigationview | 1 | 2016-05-10T17:45:28.460Z | 2,016 | 5 | 17 | 1 | 1,352 | 1 | 1,463 | 55 | 2 | 4 | true | false | false | false | false | false | low |
37,145,597 | how can i save the state of my webview when changing orientation using a webviewfragment | <p>I have a small webView in one of my layouts that act as a news feed from my website.Every time I changed rotation it would reload the web page. </p>
<p>so I edited the code to include a on config change and on restore state.Then adjusted my android manifest to include the config changes which from the dev site says... | I have a small webView in one of my layouts that act as a news feed from my website.Every time I changed rotation it would reload the web page. so I edited the code to include a on config change and on restore state.Then adjusted my android manifest to include the config changes which from the dev site says to include ... | java|android|savestate | 6 | 2016-05-10T17:48:10.833Z | 2,016 | 5 | 17 | 1 | 938 | 3 | 1,085 | 88 | 3 | 2 | true | false | false | false | false | false | medium |
37,145,676 | Listview views don't take requested width in Android | <p>I'm having an issue in which I place two views inside a LinearLayout which is the row of a listview, and the items don't take the width they should.</p>
<p>The result appears as if the first inserted element takes a width equal to <code>wrap_content</code>, and the second takes whatever width is left. My guess is t... | I'm having an issue in which I place two views inside a LinearLayout which is the row of a listview, and the items don't take the width they should. The result appears as if the first inserted element takes a width equal to wrap_content , and the second takes whatever width is left. My guess is that these child views a... | android|listview|baseadapter | 0 | 2016-05-10T17:52:36.833Z | 2,016 | 5 | 17 | 1 | 70 | 0 | 1,190 | 52 | 3 | 3 | true | true | false | false | false | false | zero |
37,145,709 | RAW image data to Android Bitmap | <p>I've been working on an extension of a current application to stream webcam data to an Android device. I can obtain the raw image data, in the form of a RGB byte array. The color space is sRGB. I need to send that array over the network to an Android client, who constructs it into a Bitmap image to display on the sc... | I've been working on an extension of a current application to stream webcam data to an Android device. I can obtain the raw image data, in the form of a RGB byte array. The color space is sRGB. I need to send that array over the network to an Android client, who constructs it into a Bitmap image to display on the scree... | java|android|image|networking|bitmap | 0 | 2016-05-10T17:55:02.080Z | 2,016 | 5 | 17 | 1 | 827 | 0 | 1,104 | 32 | 5 | 3 | true | true | false | false | false | false | zero |
37,145,713 | Why is my: MySQL connection not working? | <p>I want to make connection with MySQL, but it doesn't work!</p>
<p>The error that I get: Unhandled Exception:</p>
<blockquote>
<p>System.InvalidOperationException: Connection must be valid and open.</p>
</blockquote>
<p>This is my code:</p>
<pre><code>protected override void OnCreate(Bundle savedInstanceState)
... | I want to make connection with MySQL, but it doesn't work! The error that I get: Unhandled Exception: System.InvalidOperationException: Connection must be valid and open. This is my code: [CODE] Yours sincerely, Sander | c#|android | 0 | 2016-05-10T17:55:20.720Z | 2,016 | 5 | 17 | 1 | 71 | 1 | 218 | 40 | 2 | 1 | true | false | false | false | false | false | zero |
37,145,759 | Power saving mode causes no network connection when app returns from background | <p>I use an observer pattern to monitor when there is a change in network connectivity. The issue I am experiencing is that if power saving mode is enabled on any device, returning from the background to the foreground of my application will trigger "no network" momentarily when checking for connectivity. Because of th... | I use an observer pattern to monitor when there is a change in network connectivity. The issue I am experiencing is that if power saving mode is enabled on any device, returning from the background to the foreground of my application will trigger "no network" momentarily when checking for connectivity. Because of the n... | android|networking|broadcastreceiver | 8 | 2016-05-10T17:57:52.270Z | 2,016 | 5 | 17 | 1 | 832 | 0 | 990 | 79 | 3 | 1 | true | true | false | false | false | false | medium |
37,145,900 | Android studio always rebuilds application | <p>I'm working on 2 applications.
One is a bootloader for another which is a main app.</p>
<p>They both have technically the same gradle settings (except package names).</p>
<p>The problem I have is that Android studio always rebuilds entire application for main, but for bootloader app, it just makes changes.</p>
<p... | I'm working on 2 applications. One is a bootloader for another which is a main app. They both have technically the same gradle settings (except package names). The problem I have is that Android studio always rebuilds entire application for main, but for bootloader app, it just makes changes. For example: When I press ... | android|gradle|android-studio-2.1 | 4 | 2016-05-10T18:05:49.377Z | 2,016 | 5 | 18 | 1 | 847 | 1 | 1,051 | 42 | 3 | 2 | true | false | false | false | false | false | low |
37,145,989 | Expected receiver of type, but got android.support.v7.widget.TintContextWrapper | <p>I have tried a lot to find solution. As <a href="https://stackoverflow.com/q/18071592/1318946">Same Question</a> found but It doesn't have answer what I want.</p>
<h2>I have following XML File:</h2>
<pre><code><LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://s... | I have tried a lot to find solution. As Same Question found but It doesn't have answer what I want. I have following XML File: [CODE] I am getting Errors like: [CODE] I don't know why it happens. Is there any solution? Thank you. | android|android-activity|android-appcompat|appcompatactivity | 6 | 2016-05-10T18:11:29.117Z | 2,016 | 5 | 18 | 1 | 9,250 | 4 | 229 | 79 | 4 | 2 | true | false | true | false | false | false | medium |
37,146,029 | Android how to use recyclerview to scroll horizontally in large vertical data set | <p>I want to use recylerview to show a large vertical data set with a large amount of data on each row</p>
<p>I am currently using the LinearLayoutManager</p>
<h2>Each row has it's own ViewHolder where I hold a "RowView" object. Each RowView is a fixed width.</h2>
<pre><code>public class EventsRecylerAdapter extends... | I want to use recylerview to show a large vertical data set with a large amount of data on each row I am currently using the LinearLayoutManager Each row has it's own ViewHolder where I hold a "RowView" object. Each RowView is a fixed width. [CODE] Here is the code in my "EventsView" container that has the [CODE] Since... | android|android-recyclerview|horizontal-scrolling|vertical-scrolling | 0 | 2016-05-10T18:13:18.170Z | 2,016 | 5 | 18 | 1 | 1,383 | 1 | 1,040 | 81 | 4 | 2 | true | false | false | false | false | false | zero |
37,146,279 | Replace String in Manifest in build time doesn't work on Gradle 2.1 | <p>I am getting <code>INSTALL_PARSE_FAILED_MANIFEST_MALFORMED</code> error.
Problem is that String that should be replaced in Android Manifest in build time is not. All started after I updated Gradle version 2.1
Before update to Gradle 2.1 (from 2.0) my code was working. Now I am getting following error log:</p>
<pre>... | I am getting INSTALL_PARSE_FAILED_MANIFEST_MALFORMED error. Problem is that String that should be replaced in Android Manifest in build time is not. All started after I updated Gradle version 2.1 Before update to Gradle 2.1 (from 2.0) my code was working. Now I am getting following error log: [CODE] Code that I am usin... | android|android-gradle-plugin | 2 | 2016-05-10T18:29:27.600Z | 2,016 | 5 | 18 | 1 | 567 | 2 | 683 | 67 | 2 | 2 | true | false | false | false | false | false | low |
37,146,298 | How to set event start date to a text view | <p>I am finding it difficult to set the Value of the start date which i get from my device calendar on click of a textfield.
I have a textfield as Date and when I click on the textfield it open up event calendar of my device. What i want to achieve is to set the Start date to the textfield when saved its clicked on the... | I am finding it difficult to set the Value of the start date which i get from my device calendar on click of a textfield. I have a textfield as Date and when I click on the textfield it open up event calendar of my device. What i want to achieve is to set the Start date to the textfield when saved its clicked on the ev... | java|android|android-calendar | -1 | 2016-05-10T18:30:26.667Z | 2,016 | 5 | 18 | 1 | 238 | 1 | 582 | 42 | 3 | 2 | true | false | false | false | false | true | negative |
37,146,367 | Android Camera.takePicture callback never called | <p>I know this question was asked multiple times already, but I couldn't find the answer that would work in my case. What I am trying to do is to call <code>takePicture()</code> on click event as follows:</p>
<pre><code> FrameLayout take_picture_btn = (FrameLayout) view.findViewById(R.id.take_picture_btn);
mPict... | I know this question was asked multiple times already, but I couldn't find the answer that would work in my case. What I am trying to do is to call takePicture() on click event as follows: [CODE] From other posts I figured out that the camera.stopPreview() or camera.release() should not be called too early and therefor... | android|android-camera | 0 | 2016-05-10T18:34:23.457Z | 2,016 | 5 | 18 | 1 | 414 | 0 | 1,022 | 48 | 2 | 2 | true | true | false | false | false | false | zero |
37,146,425 | sharedPreferences.getString() return null | <p>Im trying to display the user email in a textView using SharedPreferences.</p>
<p>Shared preferences is created in loginActivity.
I try to access it from mainActivity.</p>
<p>My session using sharedPreference work well (with a login boolean saved in sharedPreferences files).</p>
<p>So what's wrong?
- A context er... | Im trying to display the user email in a textView using SharedPreferences. Shared preferences is created in loginActivity. I try to access it from mainActivity. My session using sharedPreference work well (with a login boolean saved in sharedPreferences files). So what's wrong? - A context error? - Because I try to acc... | java|android|android-studio | 1 | 2016-05-10T18:38:13.720Z | 2,016 | 5 | 18 | 1 | 7,484 | 2 | 462 | 41 | 3 | 2 | true | false | true | false | false | false | low |
37,146,525 | Build error as soon as I enable dataBinding for Android Library Project | <p>I am getting a build error as soon as I enable dataBinding for my library project:</p>
<p>AAPT: No resource type specified (at 'text' with value '@{user.name}')</p>
<p>If I enable <strong>dataBinding</strong> for the <strong>application</strong> module, it works <strong>fine</strong>.
But if I enable dataBinding ... | I am getting a build error as soon as I enable dataBinding for my library project: AAPT: No resource type specified (at 'text' with value '@{user.name}') If I enable dataBinding for the application module, it works fine . But if I enable dataBinding for my lib project, I get the above error . build.gradle of applicatio... | android|data-binding|android-library | 3 | 2016-05-10T18:43:00.670Z | 2,016 | 5 | 18 | 1 | 2,413 | 2 | 536 | 71 | 3 | 5 | true | false | false | false | false | false | low |
37,146,576 | How to prohibit android navigation bar from appearing after soft keyboard is displayed | <p>I researched and found several attempts to prohibit the navigation bar from displaying when the soft keyboard is on screen... to no avail. But I encountered a side issue as well. I am using the commonly referred method of using "immersive mode" in my base activity's OnResume().</p>
<pre><code> public void HideTh... | I researched and found several attempts to prohibit the navigation bar from displaying when the soft keyboard is on screen... to no avail. But I encountered a side issue as well. I am using the commonly referred method of using "immersive mode" in my base activity's OnResume(). [CODE] But this code seems to get "overri... | android|keyboard|android-actionbar | 2 | 2016-05-10T18:45:17.827Z | 2,016 | 5 | 18 | 1 | 418 | 1 | 692 | 86 | 3 | 1 | true | false | false | false | false | false | low |
37,146,656 | NullPointerException void io.realm.RealmChangeListener.onChange() | <p>I'm trying to implement Realm database in my project, I have a class with methods to add items in the database, I use that class to store those methods and call them in my fragment, but when I do that I get an error:</p>
<pre><code>java.lang.NullPointerException: Attempt to invoke interface method 'void io.realm.Re... | I'm trying to implement Realm database in my project, I have a class with methods to add items in the database, I use that class to store those methods and call them in my fragment, but when I do that I get an error: [CODE] What am I doing wrong here? [CODE] Fragment: [CODE] Global: [CODE] | android|nullpointerexception|realm|realm-migration | 0 | 2016-05-10T18:50:28.650Z | 2,016 | 5 | 18 | 1 | 435 | 1 | 290 | 65 | 4 | 4 | true | false | false | false | false | false | zero |
37,146,800 | Error in TextView when button is cliecked at runtime | <blockquote>
<p>In this program. I m getting error related to TextView. This code is about returning value "1" when the button is clicked. but the problem is when i click the button. the error get generated. Can someone solve this problem.</p>
</blockquote>
<pre><code>public class Calculator extends Activity impleme... | In this program. I m getting error related to TextView. This code is about returning value "1" when the button is clicked. but the problem is when i click the button. the error get generated. Can someone solve this problem. [CODE] logcat [CODE] | android | 0 | 2016-05-10T18:58:04.407Z | 2,016 | 5 | 18 | 1 | 21 | 1 | 244 | 52 | 1 | 2 | true | false | false | false | false | false | zero |
37,146,803 | Add a draggable image view to an existing relative view | <p>At the moment I have the below code. It adds an imageview to an existing background. However after the image is created the programme crashes when I try to drag it... Anyone got any ideas as to why it doesn't work?</p>
<pre><code>ballbutton.setOnClickListener (new View.OnClickListener(){
@Override
p... | At the moment I have the below code. It adds an imageview to an existing background. However after the image is created the programme crashes when I try to drag it... Anyone got any ideas as to why it doesn't work? [CODE] The log is as follows: --------- beginning of crash E/AndroidRuntime: FATAL EXCEPTION: main Proces... | android|imageview | 0 | 2016-05-10T18:58:10.617Z | 2,016 | 5 | 18 | 1 | 50 | 1 | 3,391 | 55 | 2 | 1 | true | false | false | false | false | false | zero |
37,146,854 | Creating a callback function using AsyncTask | <p>I've created an AsyncTask class to handle sending and receiving from my server. What I'm trying to do is fire an event or callback when the data is received so I can use said data to manipulate the UI.</p>
<p>AsyncTask class:</p>
<pre><code>public class DataCollectClass extends AsyncTask<Object, Void, JSONObjec... | I've created an AsyncTask class to handle sending and receiving from my server. What I'm trying to do is fire an event or callback when the data is received so I can use said data to manipulate the UI. AsyncTask class: [CODE] This is working, it prints an expected line of JSON into the log. It's called from the Activit... | java|android | 2 | 2016-05-10T19:01:29.733Z | 2,016 | 5 | 19 | 1 | 1,556 | 3 | 964 | 44 | 2 | 4 | true | false | false | false | false | false | low |
37,146,994 | PhoneGap reading and writing files won't work | <p>I'm trying to understand the file system of android with PhoneGap, but whatever I try, it won't really do much.
Here's an example I found on the internet (I changed console log to writing because I can't see the logs):</p>
<pre><code><!DOCTYPE html>
<html>
<head>
<title>FileReader Exam... | I'm trying to understand the file system of android with PhoneGap, but whatever I try, it won't really do much. Here's an example I found on the internet (I changed console log to writing because I can't see the logs): [CODE] I really hope you can help me! I need to write a certain file and read that later when the use... | javascript|android|html|cordova|phonegap-plugins | 0 | 2016-05-10T19:08:37.643Z | 2,016 | 5 | 19 | 1 | 48 | 1 | 464 | 45 | 5 | 1 | true | false | false | false | false | false | zero |
37,147,143 | Can't update vertical seekbar programmatically (Without touching it) | <p>I have been stuck on this problem since a long time. I left it then came back to it but so far I haven't found a working solution. Problem is simple, I have a vertical seekbar and I want to update it programmatically without touching it, but it doesn't happen. This is my vertical seekbar code</p>
<pre><code>public ... | I have been stuck on this problem since a long time. I left it then came back to it but so far I haven't found a working solution. Problem is simple, I have a vertical seekbar and I want to update it programmatically without touching it, but it doesn't happen. This is my vertical seekbar code [CODE] This is how the see... | android|android-seekbar|android-vertical-seekbar | 1 | 2016-05-10T19:17:41.357Z | 2,016 | 5 | 19 | 1 | 293 | 1 | 603 | 68 | 3 | 3 | true | false | false | false | false | false | low |
37,147,191 | onScrollListener for WebViewClient Android | <p>I have an Android WebView, and I want to detect scrolls in it to hide a bar I have at the bottom of the screen, but I cannot even seem to detect the scroll listener.</p>
<p>Firstly, this declares my webview</p>
<pre><code>mWebView.setWebViewClient(new myWebViewClient());
</code></pre>
<p>And in my layout I have</... | I have an Android WebView, and I want to detect scrolls in it to hide a bar I have at the bottom of the screen, but I cannot even seem to detect the scroll listener. Firstly, this declares my webview [CODE] And in my layout I have [CODE] And then in here, I presume I should be able to detect on scroll changes, but it d... | android|scroll|webview | 0 | 2016-05-10T19:20:26.833Z | 2,016 | 5 | 19 | 1 | 6,164 | 1 | 778 | 42 | 3 | 5 | true | false | true | false | false | false | zero |
37,147,262 | Android Delete file from ListView and from a folder in storage | <p>I am trying to build an app that will Delete a file from a ListView
and from a folder in storage, at the same time.</p>
<p>When I run this app a ListView displays the files in the folder.
A long click on a file in the ListView displays the Toast message
but the Dialog Fails to display. The file is not removed fro... | I am trying to build an app that will Delete a file from a ListView and from a folder in storage, at the same time. When I run this app a ListView displays the files in the folder. A long click on a file in the ListView displays the Toast message but the Dialog Fails to display. The file is not removed from the ListVie... | android|listview|android-alertdialog | 2 | 2016-05-10T19:25:03.333Z | 2,016 | 5 | 19 | 1 | 1,247 | 2 | 422 | 62 | 3 | 1 | true | false | false | false | false | false | low |
37,147,584 | How can I find out what's in the Android LG device "Clip Tray"? | <p>LG phones have a "Clip Tray" that contains several recent cuts. </p>
<p><a href="https://i.stack.imgur.com/Pu6SF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pu6SF.png" alt="enter image description here"></a></p>
<p>I have found it useful in one context. And it overlaps the Android clipboard ... | LG phones have a "Clip Tray" that contains several recent cuts. I have found it useful in one context. And it overlaps the Android clipboard in that that if I add a String to the Android clipboard (via addToClipboard , below), that String also goes onto the top of the LG Clip Tray. How to add a String , s , for example... | android|clipboard | 1 | 2016-05-10T19:43:51.223Z | 2,016 | 5 | 19 | 1 | 4,423 | 0 | 1,376 | 63 | 2 | 2 | true | true | true | false | false | false | low |
37,147,619 | Screen size for android app | <p>i am developing an android application targeting only phones( not tablets). i want to know that how may type of layout do i have to define out of the four layout- small, large, normal, x-large. i saw in android studio that whenever i switch my app layout to large the nexus 7 device comes up. so do i have to make lar... | i am developing an android application targeting only phones( not tablets). i want to know that how may type of layout do i have to define out of the four layout- small, large, normal, x-large. i saw in android studio that whenever i switch my app layout to large the nexus 7 device comes up. so do i have to make large ... | android | 0 | 2016-05-10T19:46:12.580Z | 2,016 | 5 | 19 | 1 | 94 | 3 | 503 | 27 | 1 | 1 | true | false | false | false | false | false | zero |
37,147,628 | Center Vertical | <p>I have this xml file to represent an element of my list:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<ItemList
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@android:color/transparent">
... | I have this xml file to represent an element of my list: [CODE] It contains one ImageView and one TextView. I want them to be centered vertically to each other. When TextView has a large text it is fine, but when the text has just one line the elements are not centered vertically. How can I make this? | android | 0 | 2016-05-10T19:46:44.017Z | 2,016 | 5 | 19 | 1 | 44 | 1 | 302 | 15 | 1 | 1 | true | false | false | false | false | false | zero |
37,147,657 | exportedHeaders DSL does not seem to include the headers | <p>I am trying to make use of the "<a href="http://tools.android.com/tech-docs/new-build-system/gradle-experimental" rel="nofollow noreferrer">Multiple NDK Projects</a>" feature of the experimental gradle plugin. I am using Android Studio 2.1 and gradle plugin 0.7.0 stable. The blog seems to say that the header files s... | I am trying to make use of the " Multiple NDK Projects " feature of the experimental gradle plugin. I am using Android Studio 2.1 and gradle plugin 0.7.0 stable. The blog seems to say that the header files specified in the exportedHeaders section of the native library will be included during compilation [CODE] This doe... | android|android-ndk|gradle-plugin|android-studio-2.1|android-studio-plugin | 1 | 2016-05-10T19:48:01.940Z | 2,016 | 5 | 19 | 1 | 674 | 0 | 929 | 56 | 5 | 7 | true | true | false | false | false | false | low |
37,147,665 | Android: Receive and forward text message from service | <p>I am trying to make a simple app that will forward all messages with particular body to another number.</p>
<p>Broadcast receiver in my class is not being called. Any leads will be appreciated</p>
<p>MainActivity.java</p>
<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate... | I am trying to make a simple app that will forward all messages with particular body to another number. Broadcast receiver in my class is not being called. Any leads will be appreciated MainActivity.java [CODE] SMSService.java [CODE] } Manifest.xml [CODE] | java|android|sms|android-broadcast | 1 | 2016-05-10T19:48:23.223Z | 2,016 | 5 | 19 | 1 | 1,497 | 1 | 255 | 54 | 4 | 3 | true | false | false | false | false | false | low |
37,147,705 | ImageView shown as a Circle taking file from parse | <p>I´ve searched around but could not make it work.
<strong>I need to find a way to show an image as a Circle while images are taken from Parse.</strong><br><br>
I´m having trouble because I have some code on MainActivity, doInBackground(), to get my parse data, left image(Albany) and in ListViewAdapter, in the getView... | I´ve searched around but could not make it work. I need to find a way to show an image as a Circle while images are taken from Parse. I´m having trouble because I have some code on MainActivity, doInBackground(), to get my parse data, left image(Albany) and in ListViewAdapter, in the getView() I set the bitmap to turn ... | android|parsing|bitmap|imageview | 0 | 2016-05-10T19:50:52.970Z | 2,016 | 5 | 19 | 1 | 100 | 2 | 660 | 50 | 4 | 5 | true | false | false | false | false | false | zero |
37,147,737 | Write value to GPIO on android | <p>Using <code>adb</code>, I'm having trouble setting the value of a GPIO pin high on my android device. There is no problem changing the direction from in to out and back again yet whenever I try to write the value it does not seem to change. This can be seen here:</p>
<p><code>root@android:/sys/class/gpio # ls
expor... | Using adb , I'm having trouble setting the value of a GPIO pin high on my android device. There is no problem changing the direction from in to out and back again yet whenever I try to write the value it does not seem to change. This can be seen here: root@android:/sys/class/gpio # ls export gpio101 gpio112 gpiochip0 g... | android|linux|unix|adb|gpio | 1 | 2016-05-10T19:52:31.307Z | 2,016 | 5 | 19 | 1 | 1,267 | 0 | 978 | 30 | 5 | 0 | false | true | false | false | false | false | low |
37,147,802 | How do I "convert" System.out.println into variable.getText(); android | <p>I have written a Java program which I want to make into an android application, </p>
<p>I have a class called TowersOfHanoi in the java program where output is done this way:</p>
<p>System.out.println("Move disk " + n + " from " + start + " to " + end); </p>
<p>and I have a mainActivity file where I am calling To... | I have written a Java program which I want to make into an android application, I have a class called TowersOfHanoi in the java program where output is done this way: System.out.println("Move disk " + n + " from " + start + " to " + end); and I have a mainActivity file where I am calling TowersOfHanoi from however I do... | java|android | 0 | 2016-05-10T19:55:38.973Z | 2,016 | 5 | 19 | 1 | 1,082 | 3 | 454 | 70 | 2 | 2 | true | false | false | false | false | false | zero |
37,147,946 | How to simulate the Facebook Swipe to dismiss effect in images with Android? | <p>I'm using the Fresco library, <em>com.facebook.fresco:fresco:0.10.0</em>.
I'm trying to combine two effects that use the Facebook Application.</p>
<ol>
<li>Zoom To Point</li>
<li>Swipe To Close</li>
</ol>
<p>I created DoubleTapZoomableController class which extends of DefaultZoomableController that makes the effec... | I'm using the Fresco library, com.facebook.fresco:fresco:0.10.0 . I'm trying to combine two effects that use the Facebook Application. Zoom To Point Swipe To Close I created DoubleTapZoomableController class which extends of DefaultZoomableController that makes the effect to zoom correctly, but I don't know how to make... | android|android-event|facebook-app-requests | 3 | 2016-05-10T20:04:08.900Z | 2,016 | 5 | 20 | 1 | 408 | 0 | 817 | 76 | 3 | 1 | true | true | false | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.