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,700,347 | Add items to ListView from another xml file | <p>hey guys I have a ListView in "main" with DataTimePickerDialog.class and i want from this class to add an Items to the ListView in "activity_notification" with notification.class , this is a picture to main.xml and my code : please help <a href="http://i.stack.imgur.com/PLhpo.png" rel="nofollow">enter image descrip... | hey guys I have a ListView in "main" with DataTimePickerDialog.class and i want from this class to add an Items to the ListView in "activity_notification" with notification.class , this is a picture to main.xml and my code : please help enter image description here [CODE] | android|listview | 0 | 2016-04-18T17:16:30.300Z | 2,016 | 4 | 17 | 0 | 151 | 0 | 272 | 43 | 2 | 1 | true | true | false | false | false | false | zero |
36,700,440 | GridView loads items only when clicked | <p>So I'm trying to create a GridView that loads images from my server that's running Parse API.</p>
<p>The problem that I'm having is when I load the images from the server into the GridView, I have to click on the Fragment to load them onscreen.</p>
<p>I have no idea why this is happening.</p>
<p>This is my AsyncT... | So I'm trying to create a GridView that loads images from my server that's running Parse API. The problem that I'm having is when I load the images from the server into the GridView, I have to click on the Fragment to load them onscreen. I have no idea why this is happening. This is my AsyncTask: [CODE] And this is my ... | android|parse-platform|android-gridview | 0 | 2016-04-18T17:21:32.467Z | 2,016 | 4 | 17 | 0 | 26 | 1 | 737 | 38 | 3 | 2 | true | false | false | false | false | false | zero |
36,700,475 | Getting null value while retrieving the CONTACT NAME from CONTACT EMAIL | <p>I want to retrieve the contact name from the contact email, so what I have done is as follows from <a href="https://stackoverflow.com/a/18064869/5738881">https://stackoverflow.com/a/18064869/5738881</a>.</p>
<pre><code> public static String readContacts(Context context, String email) {
ContentResolver cr = cont... | I want to retrieve the contact name from the contact email, so what I have done is as follows from https://stackoverflow.com/a/18064869/5738881 . [CODE] Then in onCreate(), I have coded as, [CODE] But I am getting the null value. Therefore what could be the soution to fetch contact name, depending upon just the contact... | android|email|android-contacts|android-contentresolver|contactscontract | 1 | 2016-04-18T17:23:28.270Z | 2,016 | 4 | 17 | 0 | 1,036 | 2 | 1,014 | 71 | 5 | 9 | true | false | false | false | false | false | low |
36,700,493 | FATAL EXCEPTION: java.lang.NullPointerException: Attempt to invoke virtual method void on a null object reference onClickItem | <p>I'm making a calendar but when I click on the <strong>calendar days</strong> it crashes.
I check the code several times but it keeps crashing.</p>
<p>I'm gonna post the related codes and logcat.</p>
<p>thank you</p>
<p><strong>MonthNewFragment.JAVA</strong></p>
<pre><code>public class MonthNewFragment extends Fr... | I'm making a calendar but when I click on the calendar days it crashes. I check the code several times but it keeps crashing. I'm gonna post the related codes and logcat. thank you MonthNewFragment.JAVA [CODE] MonthAdapter.JAVA [CODE] Logcat [CODE] | java|android|calendar|onclick|android-logcat | 0 | 2016-04-18T17:24:34.780Z | 2,016 | 4 | 17 | 0 | 1,681 | 2 | 248 | 125 | 5 | 3 | true | false | false | false | false | false | zero |
36,700,580 | error in import com.android.vending.billing.IInAppBillingService; aidl.exe | <p>i'm new newbie, i get i error in
<code>import com.android.vending.billing.IInAppBillingService;</code>
and i search in many website and also in <code>stackoverflow</code> and i can't find solution this error happen to me in all apps who has inapp purchase</p>
<p><code>console</code></p>
<pre><code>[2016-04-18 18:... | i'm new newbie, i get i error in import com.android.vending.billing.IInAppBillingService; and i search in many website and also in stackoverflow and i can't find solution this error happen to me in all apps who has inapp purchase console [CODE] you can see too screenshot of error this is error screenshot | java|android|eclipse | 0 | 2016-04-18T17:29:09.260Z | 2,016 | 4 | 17 | 0 | 626 | 1 | 305 | 74 | 3 | 1 | true | false | false | false | false | false | zero |
36,700,691 | Android : Save Button Instance | <p>Hello i'm working on my android project. I have created an activity where the use gets four buttons, n i want the user to select any one. I have done this by setting other buttons to .setClickable(false). But when I restart or say relaunch the app again all the buttons get enabled. I want that when user selects a bu... | Hello i'm working on my android project. I have created an activity where the use gets four buttons, n i want the user to select any one. I have done this by setting other buttons to .setClickable(false). But when I restart or say relaunch the app again all the buttons get enabled. I want that when user selects a butto... | android | 0 | 2016-04-18T17:35:24.450Z | 2,016 | 4 | 17 | 0 | 322 | 3 | 493 | 30 | 1 | 1 | true | false | false | false | false | false | zero |
36,700,721 | How to stop Glide upscaling? | <p>I am using the <a href="https://github.com/bumptech/glide" rel="noreferrer">Glide image loading library</a> and I'm having issues when it comes to resizing bitmaps. </p>
<p>When using the following code:</p>
<pre><code>Glide.with(getActivity())
.load(images.get(i))
.asBitmap().centerCrop()
.into(new Si... | I am using the Glide image loading library and I'm having issues when it comes to resizing bitmaps. When using the following code: [CODE] Every single bitmap gets resized to the specified dimensions. So, if the image is 400x300, it gets upscaled up to 1200 x 1200 which I do not want. How do I make it so that if the ima... | android|android-glide | 7 | 2016-04-18T17:37:01.183Z | 2,016 | 4 | 17 | 0 | 1,245 | 1 | 623 | 28 | 2 | 1 | true | false | false | false | false | false | medium |
36,700,780 | HttpUrlConnection multipart-form-data return error 422 Unprocessable Entity | <p>I'v tried to use the following 3 class to upload an image using multi-part form data, and the server response return status code 422 Unprocessable Entity, I'm trying to upload a JPG picture.
I'v tried to google it to find the resone of raising this error, but I didn't find a solution.</p>
<p><strong>Code 1:</strong... | I'v tried to use the following 3 class to upload an image using multi-part form data, and the server response return status code 422 Unprocessable Entity, I'm trying to upload a JPG picture. I'v tried to google it to find the resone of raising this error, but I didn't find a solution. Code 1: [CODE] Code 2: [CODE] Code... | android|httpurlconnection | 2 | 2016-04-18T17:40:13.423Z | 2,016 | 4 | 17 | 0 | 1,595 | 1 | 608 | 75 | 2 | 4 | true | false | false | false | false | false | low |
36,700,815 | FirebaseUI-Android with Google Signin | <p>I have read your README.dm from the firebaseui-android library. Can be found <a href="https://github.com/firebase/FirebaseUI-Android" rel="nofollow">https://github.com/firebase/FirebaseUI-Android</a>. This will be the first time that I have used your Authentication for getting a user to login. I am currently only us... | I have read your README.dm from the firebaseui-android library. Can be found https://github.com/firebase/FirebaseUI-Android . This will be the first time that I have used your Authentication for getting a user to login. I am currently only using the Google sign-in, but will add Facebook and Twitter in the future. In th... | android|authentication|firebase|firebaseui | 0 | 2016-04-18T17:42:24.650Z | 2,016 | 4 | 17 | 0 | 454 | 1 | 1,521 | 37 | 4 | 0 | false | false | false | false | false | false | zero |
36,700,831 | Approach to send push notifications via GCM to Android devices using WebView (JavaScript + PHP)? | <p>I want to send push notifications to Android devices. I'm using Google Cloud Messaging (GCM) and I just implemented it with the beginner guide.</p>
<p>So I thought I will have two types of notifications:</p>
<p>1) Notification to all users</p>
<p>2) Notification to specific users on specific events via Ajax</p>
... | I want to send push notifications to Android devices. I'm using Google Cloud Messaging (GCM) and I just implemented it with the beginner guide. So I thought I will have two types of notifications: 1) Notification to all users 2) Notification to specific users on specific events via Ajax So I've stored the GCM Registrat... | javascript|php|android|android-studio|notifications | 1 | 2016-04-18T17:43:02.810Z | 2,016 | 4 | 17 | 0 | 296 | 0 | 1,551 | 96 | 5 | 3 | true | true | false | false | false | false | low |
36,700,960 | Android app crashes upon attempt to switch to a different Activity | <p>I am running into an issue in my app. When my game ends (when <code>life == 0</code>) I am attempting to switch to a game over screen by using a different activity. When the game ends, the app simply crashes. I have included the XML for the activity I am trying to switch from as well as indicating where the app cras... | I am running into an issue in my app. When my game ends (when life == 0 ) I am attempting to switch to a game over screen by using a different activity. When the game ends, the app simply crashes. I have included the XML for the activity I am trying to switch from as well as indicating where the app crashes. If anyone ... | android|android-intent|android-activity | 0 | 2016-04-18T17:49:57.470Z | 2,016 | 4 | 17 | 0 | 487 | 2 | 502 | 66 | 3 | 2 | true | false | false | false | false | false | zero |
36,701,022 | Error Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference | <p>I have been trying to create a module in the app. This module is like create a new user profile. When user taps on the icon in the toolbar it shows the dialog box which has the form. </p>
<p>The form has 5 main input</p>
<ol>
<li>Name --> Used EditText</li>
<li>Gender --> Used RadioGroup</li>
<li>Height --> Used E... | I have been trying to create a module in the app. This module is like create a new user profile. When user taps on the icon in the toolbar it shows the dialog box which has the form. The form has 5 main input Name --> Used EditText Gender --> Used RadioGroup Height --> Used EditText Weight --> Used EditText Age --> Use... | java|android|sqlite | 0 | 2016-04-18T17:53:38.763Z | 2,016 | 4 | 17 | 0 | 39,550 | 3 | 796 | 123 | 3 | 4 | true | false | true | true | false | false | zero |
36,701,047 | one fragment crashes after .add while the other does not | <p>I have been trying to get fragments working but the behavior isn't consistent and it is difficult to debug. I've created two fragments with xml files and class files. As far as I can tell, the two frags are implemented in exactly the same manner.</p>
<p>When I .add "BlankFragment _frag1" in the MainActivity, it r... | I have been trying to get fragments working but the behavior isn't consistent and it is difficult to debug. I've created two fragments with xml files and class files. As far as I can tell, the two frags are implemented in exactly the same manner. When I .add "BlankFragment _frag1" in the MainActivity, it runs. When I .... | java|android | 1 | 2016-04-18T17:55:02.363Z | 2,016 | 4 | 17 | 0 | 44 | 1 | 1,780 | 56 | 2 | 8 | true | false | false | false | false | false | low |
36,701,057 | HH:MM:SS format android studio CountdownTimer | <p>I've been attempting to format a countdown timer and haven't had much success. The timer counts down the correct amount of minutes/hours/seconds as input, however, upon output back to the user instead of a beautiful normal looking countdown timer look I get the following different outputs:
<a href="http://i.stack.i... | I've been attempting to format a countdown timer and haven't had much success. The timer counts down the correct amount of minutes/hours/seconds as input, however, upon output back to the user instead of a beautiful normal looking countdown timer look I get the following different outputs: When attempting to countdown ... | java|android|android-studio|countdowntimer | 0 | 2016-04-18T17:55:37.720Z | 2,016 | 4 | 17 | 0 | 1,147 | 1 | 659 | 45 | 4 | 1 | true | false | false | false | false | false | zero |
36,701,132 | Fragment can be imported with FragmentActivity only, targetting sdk 15? (v4? v7? v13) | <p>this thread says :</p>
<blockquote>
<p>FragmentActivity is for use with the backport of fragments found in
the support-v4 and support-v13 libraries. The native implementation of
fragments was added in API Level 11</p>
</blockquote>
<p>I am using a min sdk of level 15 and I was only able to make the import of... | this thread says : FragmentActivity is for use with the backport of fragments found in the support-v4 and support-v13 libraries. The native implementation of fragments was added in API Level 11 I am using a min sdk of level 15 and I was only able to make the import of fragment work with FragmentActivity and getSupportF... | android|android-fragments | 0 | 2016-04-18T17:59:34.553Z | 2,016 | 4 | 17 | 0 | 142 | 1 | 544 | 85 | 2 | 1 | true | false | false | false | false | false | zero |
36,701,207 | size of the textview is not changing as per display type in android | <p>I am creating the dialog which displays my custom layout. Below is the code</p>
<pre><code> <LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layoutHdr"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizo... | I am creating the dialog which displays my custom layout. Below is the code [CODE] The issue here is if the device font is "Huge" or"Small" or "Large" ,it displays the same font , actually it suppose t display as per device settings | android|dialog|font-size | -1 | 2016-04-18T18:03:40.507Z | 2,016 | 4 | 18 | 0 | 30 | 1 | 232 | 67 | 3 | 1 | true | false | false | false | false | true | negative |
36,701,281 | NullPointerException: Attempt to invoke virtual method 'SupportMapFragment.getMapAsync(OnMapReadyCallback)' on a null object reference | <p>As title says, I'm getting following exception, when I start up this app:</p>
<pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.gms.maps.SupportMapFragment.getMapAsync(com.google.andr... | As title says, I'm getting following exception, when I start up this app: [CODE] The project was created from android template Google Maps. I have activated API key, and copy & paste it to google_maps_api.xml. In my code below, you will also find that I have also set properties regarding access to the internet, and oth... | java|android|google-maps|android-fragments | 0 | 2016-04-18T18:08:04.790Z | 2,016 | 4 | 18 | 0 | 4,046 | 0 | 737 | 134 | 4 | 7 | true | true | true | false | false | false | zero |
36,701,437 | How to get the absolute path to android assets | <p>I'm programming an app for android using libgdx and simplexml to load the levels. Now I want to load the level1.xml file which is located at the android assets file but I don't know how to get the correct path to it. This is my code:</p>
<pre><code>private Level currentLevel;
...
loadLevel(1);
...
private void lo... | I'm programming an app for android using libgdx and simplexml to load the levels. Now I want to load the level1.xml file which is located at the android assets file but I don't know how to get the correct path to it. This is my code: [CODE] But the path I get is just "level1.xml". I know how to do this with [CODE] Beca... | java|android|path|libgdx|simple-framework | 2 | 2016-04-18T18:15:58.733Z | 2,016 | 4 | 18 | 0 | 2,049 | 2 | 499 | 46 | 5 | 2 | true | false | false | false | false | false | low |
36,701,500 | Android: showing dialogFrag on adapter gives NullPointerException | <p>I'm trying to open a dialogFragment through an adapter, I've been all over the documentation and other questions, I can't find the problem. This is the full error line from the log <code>java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.FragmentManager android.app.Activity.getFragmentMana... | I'm trying to open a dialogFragment through an adapter, I've been all over the documentation and other questions, I can't find the problem. This is the full error line from the log java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.FragmentManager android.app.Activity.getFragmentManager()' on... | java|android | 0 | 2016-04-18T18:19:15.840Z | 2,016 | 4 | 18 | 0 | 43 | 2 | 477 | 65 | 2 | 2 | true | false | false | false | false | false | zero |
36,701,518 | Exception when replacing Fragament from within fragment | <p>I have an Activity with a FrameLayout for the fragment.
I add the fragment in the standard way:</p>
<pre><code> FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
ProfileFragmentFirst profileFragmentFirst = new ProfileFragmentFirst();
Bundle args = new Bundle();
args.pu... | I have an Activity with a FrameLayout for the fragment. I add the fragment in the standard way: [CODE] This works perfectly with no problems. Within the fragment I have a button which, when clicked, needs to replace the currently active fragment with another. It calls a method in the activity to do this: [CODE] When I ... | android|android-fragments|android-databinding | 0 | 2016-04-18T18:20:05.393Z | 2,016 | 4 | 18 | 0 | 74 | 2 | 1,213 | 55 | 3 | 5 | true | false | false | false | false | false | zero |
36,701,571 | ID not found when trying to add fragment dynamically in android | <p>I am building an android application which requires fragment transactions. For these to work (replacing, removing, adding fragments) later at runtime, I was told that you need to dynamically add the original fragments to the activity in order to manipulate them later. This doesn't look difficult, yet I am running in... | I am building an android application which requires fragment transactions. For these to work (replacing, removing, adding fragments) later at runtime, I was told that you need to dynamically add the original fragments to the activity in order to manipulate them later. This doesn't look difficult, yet I am running into ... | java|android|android-fragments | 0 | 2016-04-18T18:23:24.350Z | 2,016 | 4 | 18 | 0 | 42 | 2 | 606 | 63 | 3 | 4 | true | false | false | false | false | false | zero |
36,701,622 | java.lang.OutOfMemoryError: GC overhead limit exceeded facing this error while executing android project | <p>Following is the code of app.gradle file. My individual project module works perfectly but while combines every module in single application I am getting this error. I have made this application for android smartphone only.</p>
<p>Which necessary library should include? I have read about this error and enabled <cod... | Following is the code of app.gradle file. My individual project module works perfectly but while combines every module in single application I am getting this error. I have made this application for android smartphone only. Which necessary library should include? I have read about this error and enabled multiDexEnabled... | java|android|android-studio|build.gradle | 0 | 2016-04-18T18:26:51.573Z | 2,016 | 4 | 18 | 0 | 791 | 1 | 474 | 104 | 4 | 2 | true | false | false | false | false | false | zero |
36,701,961 | Unfortunately App has stopped working? VFY: unable to find class referenced in signature | <p>In my app I want to add Facebook SDK. I was following a tutorial after that app has stopped.</p>
<p>Here is my code:
AndroidFacebookActivity</p>
<pre><code>public class AndroidFacebookActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstan... | In my app I want to add Facebook SDK. I was following a tutorial after that app has stopped. Here is my code: AndroidFacebookActivity [CODE] Login Fragment: [CODE] HomeFragment: [CODE] Manifest.XML [CODE] [CODE] and Here is my Log Cat [CODE] | android|facebook|android-studio | 0 | 2016-04-18T18:47:04.417Z | 2,016 | 4 | 18 | 0 | 249 | 1 | 241 | 88 | 3 | 6 | true | false | false | false | false | false | zero |
36,702,000 | Force data sync with firebase server from Android | <p>I'm working on an Android app which has sqlite database. I wanted to add synchronisation for the db with some cloud service and across multiple devices of the same user. There will be login mechanism and data will be different for different users. The synchronisation will be for logged in users only. For others the ... | I'm working on an Android app which has sqlite database. I wanted to add synchronisation for the db with some cloud service and across multiple devices of the same user. There will be login mechanism and data will be different for different users. The synchronisation will be for logged in users only. For others the dat... | android|sqlite|firebase|android-sqlite|firebase-realtime-database | 1 | 2016-04-18T18:49:01.997Z | 2,016 | 4 | 18 | 0 | 2,220 | 1 | 1,438 | 49 | 5 | 0 | false | false | false | false | false | false | low |
36,702,126 | Android: move to a different fragment after X seconds? | <p>I have a section of my UX flow where I want to display a message for the user in a textview for 2 seconds in fragment A, and after that replace fragment A with fragment B. I accomplish this by doing as follows from within fragment A.</p>
<pre><code>someTextView.setText("some message");
Handler mainLooperHandler = ... | I have a section of my UX flow where I want to display a message for the user in a textview for 2 seconds in fragment A, and after that replace fragment A with fragment B. I accomplish this by doing as follows from within fragment A. [CODE] And in my activity the relevant method: [CODE] However this causes a few issues... | android|android-fragments|android-activity|nullpointerexception|fragmenttransaction | 1 | 2016-04-18T18:54:27.550Z | 2,016 | 4 | 18 | 0 | 1,571 | 3 | 987 | 54 | 5 | 2 | true | false | false | false | false | false | low |
36,702,142 | Textview responsive margin/padding | <p>It seems like my Android design is having a problem. Here is the problem:</p>
<p><a href="http://i.stack.imgur.com/iOJlH.png" rel="nofollow">Here is the image</a></p>
<p>As you can see, "http ://LABEL 2 GOES HERE" is right on top of the label 1 text: "This is just a test for label 1......." How can I make it so th... | It seems like my Android design is having a problem. Here is the problem: Here is the image As you can see, "http ://LABEL 2 GOES HERE" is right on top of the label 1 text: "This is just a test for label 1......." How can I make it so that the "http ://LABEL 2 GOES HERE" will always be below "label 1" 30dp no matter ho... | android|android-layout|textview | 0 | 2016-04-18T18:55:23.797Z | 2,016 | 4 | 18 | 0 | 1,900 | 3 | 396 | 34 | 3 | 1 | true | false | false | false | false | false | zero |
36,702,203 | Chat balloons - iOS - Android | <p>I am developing a chat style app. I can't make the balloons grow or shrink according to the text..</p>
<p>Does anyone have an idea of how I can do this? My code currently is as follows:</p>
<pre><code>var scrollTxtResp = Ti.UI.createScrollView({
contentWidth: 'auto',
contentHeight: 'auto',
layout: 'vertical'... | I am developing a chat style app. I can't make the balloons grow or shrink according to the text.. Does anyone have an idea of how I can do this? My code currently is as follows: [CODE] I am using classic Development with SDK 5.2.2 GA ( iOS / Android ) Thanks in advance. | android|ios|appcelerator|appcelerator-titanium | 0 | 2016-04-18T18:59:15.843Z | 2,016 | 4 | 18 | 0 | 246 | 2 | 271 | 29 | 4 | 1 | true | false | false | false | false | false | zero |
36,702,514 | What is com.google.android.gms.persistent and why is it always using the CPU? | <p>Even when nothing else is happening this system process seems to use a steady 1-2% of the CPU. Over the course of a day this drains a significant amount of battery even when the device wasn't used for anything. I haven't been able to correlate it to any other apps because even when they have only used a few seconds... | Even when nothing else is happening this system process seems to use a steady 1-2% of the CPU. Over the course of a day this drains a significant amount of battery even when the device wasn't used for anything. I haven't been able to correlate it to any other apps because even when they have only used a few seconds of ... | android|android-6.0-marshmallow | 40 | 2016-04-18T19:16:49.220Z | 2,016 | 4 | 19 | 0 | 101,922 | 2 | 3,223 | 77 | 2 | 1 | true | false | true | true | true | false | high |
36,702,555 | Fast huffman decode | <p>I have written a huffman compression/decompression in Scala. When decoding small files it takes seconds, but when decoding larger file it takes an extremely long time. Any suggestions for how I could speed this process up?</p>
<pre><code>def lookup(list:List[Int],list2:List[(Char,List[Int])]): Option[String]={
va... | I have written a huffman compression/decompression in Scala. When decoding small files it takes seconds, but when decoding larger file it takes an extremely long time. Any suggestions for how I could speed this process up? [CODE] The code is executing on an Android device so using recursion wasn't an effective option, ... | android|scala|huffman-code | 0 | 2016-04-18T19:18:50.703Z | 2,016 | 4 | 19 | 0 | 552 | 2 | 411 | 19 | 3 | 1 | true | false | false | false | false | false | zero |
36,702,568 | TextView wont work in a custom method, but only in onCreate(); | <p>My textview is not behaving as I want it to.
When <code>newInstance</code> is called from my recyclerView adapter(when pressing on a item) it takes the user to a new Activity to show information about the pressed Item.</p>
<p>But when I use my textviews in the <code>newInstance</code> method, the demo-text "hello" ... | My textview is not behaving as I want it to. When newInstance is called from my recyclerView adapter(when pressing on a item) it takes the user to a new Activity to show information about the pressed Item. But when I use my textviews in the newInstance method, the demo-text "hello" is NOT shown and I get an NullPointer... | android | 0 | 2016-04-18T19:19:32.057Z | 2,016 | 4 | 19 | 0 | 50 | 3 | 468 | 62 | 1 | 3 | true | false | false | false | false | false | zero |
36,702,621 | Getting mobile data usage history using NetworkStatsManager | <p>I want to know the data usage history and noticed the "new" android-6 <a href="http://developer.android.com/reference/android/app/usage/NetworkStatsManager.html" rel="noreferrer"><code>NetworkStatsManager</code></a> which seems positive (I've used <code>TrafficStats</code> a while but that won't cover anything previ... | I want to know the data usage history and noticed the "new" android-6 NetworkStatsManager which seems positive (I've used TrafficStats a while but that won't cover anything previous a reboot). From the API documentation: NOTE: This API requires the permission PACKAGE_USAGE_STATS, which is a system-level permission and ... | android|permissions|android-6.0-marshmallow|networkstatsmanager | 16 | 2016-04-18T19:22:14.627Z | 2,016 | 4 | 19 | 0 | 12,990 | 2 | 1,325 | 59 | 4 | 3 | true | false | true | true | true | false | medium |
36,702,861 | Android Manifest Cannot be Edited | <p>I am new in android development. I am using the Android Studio 1.5.1 to create a registration form. I am at the manifest.xml creation step. I know how to code it, but when I go to my library and open the automatic generated manifest file, I cannot edit it. It has a bunch of symbols that cannot be deleted. </p>
<p>T... | I am new in android development. I am using the Android Studio 1.5.1 to create a registration form. I am at the manifest.xml creation step. I know how to code it, but when I go to my library and open the automatic generated manifest file, I cannot edit it. It has a bunch of symbols that cannot be deleted. They look lik... | android | 0 | 2016-04-18T19:36:10.963Z | 2,016 | 4 | 19 | 0 | 146 | 0 | 1,004 | 33 | 1 | 0 | false | true | false | false | false | false | zero |
36,702,937 | TableLayout - TextView and ImageView inline | <p>I have built an app that dynamically adds TextViews and ImageViews into the TableLayout. I am facing one small issue, I can't get ImageView to be displayed inline with TextView fields. In my fragment I get the results back from a server and display it in the layout. </p>
<p>I have tried several ways such as set... | I have built an app that dynamically adds TextViews and ImageViews into the TableLayout. I am facing one small issue, I can't get ImageView to be displayed inline with TextView fields. In my fragment I get the results back from a server and display it in the layout. I have tried several ways such as setting the gravity... | java|android|android-fragments | 0 | 2016-04-18T19:41:15.910Z | 2,016 | 4 | 19 | 0 | 179 | 1 | 787 | 43 | 3 | 4 | true | false | false | false | false | false | zero |
36,703,108 | Google Play Error -504 INSTALL_PARSE_FAILED_NOT_APK | <p>I have built a release APK of my app. </p>
<p>If I try to install it from Play Store I get <a href="https://i.stack.imgur.com/jzn0E.png" rel="nofollow noreferrer">Error -504</a>. Users have also reported to have the same problem.</p>
<p>I was able to catch logcat from the failure:</p>
<pre><code>04-18 10:22:41.48... | I have built a release APK of my app. If I try to install it from Play Store I get Error -504 . Users have also reported to have the same problem. I was able to catch logcat from the failure: [CODE] Does anyone know what could cause this? Note 1: If I install the APK from external storage it works without problem. Note... | android|google-play | -1 | 2016-04-18T19:51:53.697Z | 2,016 | 4 | 19 | 0 | 2,041 | 1 | 515 | 51 | 2 | 1 | true | false | false | false | false | true | negative |
36,703,333 | Show all ListView items if keyboard is visible | <p>I'm fairly new into Xamarin/Android development and currently facing the following problem:</p>
<p>I have an Activity with a dozen input controls formatted with a TableLayout inside a ScrollView. Also there's a ListView which gets filled with data from an SQLite table onCreate() and rendered as CheckBox-List.
I can... | I'm fairly new into Xamarin/Android development and currently facing the following problem: I have an Activity with a dozen input controls formatted with a TableLayout inside a ScrollView. Also there's a ListView which gets filled with data from an SQLite table onCreate() and rendered as CheckBox-List. I can see all el... | android|xamarin|xamarin.android | 0 | 2016-04-18T20:05:36.630Z | 2,016 | 4 | 20 | 0 | 488 | 2 | 839 | 46 | 3 | 1 | true | false | false | false | false | false | zero |
36,703,369 | How to get and write data with SQLite in Android | <p>I am trying to use SQLite for getting and setting data for a listview. My list must have initial data and user must able to edit it.</p>
<p>I created an Item class</p>
<pre><code>public final class Items implements BaseColumns {
public static final String TABLE_NAME = "items";
public static final String COLUMN_NA... | I am trying to use SQLite for getting and setting data for a listview. My list must have initial data and user must able to edit it. I created an Item class [CODE] } Then I created a DB helper class which have all the methods that I need. (Note that it is a messy class. While I am struggling to getting data for databas... | android|sqlite|listview | -1 | 2016-04-18T20:08:18.237Z | 2,016 | 4 | 20 | 0 | 59 | 1 | 785 | 48 | 3 | 4 | true | false | false | false | false | true | negative |
36,703,467 | OpenCV for Android - Cannot Load Library | <p>I have been trying for hours to try to get either the OpenCV Manager application on Samsung Galaxy S5 to work or a static import of the opencv library and neither have worked. I am using OpenCv 2.4.11.</p>
<p>For the static import I get the following error:</p>
<pre><code> 04-18 20:49:08.591 15911-15911/com.exa... | I have been trying for hours to try to get either the OpenCV Manager application on Samsung Galaxy S5 to work or a static import of the opencv library and neither have worked. I am using OpenCv 2.4.11. For the static import I get the following error: [CODE] For the static implementation I simply used the openCV.initDeb... | java|android|opencv|initialization|opencv4android | 0 | 2016-04-18T20:14:50.193Z | 2,016 | 4 | 20 | 0 | 4,224 | 1 | 870 | 40 | 5 | 2 | true | false | true | false | false | false | zero |
36,703,508 | App crashed after starting an intent using a android on click method | <p>i have an android on click function that that starts a intent using the method startActivaty()
when I executed the function the app crashed over and over again. here is the error code <code>04-18 23:15:09.012 23801-23801/? I/SELinux: Function: selinux_android_load_priority , priority [3] , priority version is VE=SEP... | i have an android on click function that that starts a intent using the method startActivaty() when I executed the function the app crashed over and over again. here is the error code 04-18 23:15:09.012 23801-23801/? I/SELinux: Function: selinux_android_load_priority , priority [3] , priority version is VE=SEPF_SHV-E21... | java|android|xml|android-intent|android-emulator | -1 | 2016-04-18T20:17:36.143Z | 2,016 | 4 | 20 | 0 | 98 | 1 | 3,806 | 68 | 5 | 0 | false | false | false | false | false | true | negative |
36,703,580 | Undesirable � character in webview | <p>When I directly copy the content of my html file and store it in a string, then show it in webview using:</p>
<pre><code>mWebView.loadDataWithBaseURL("file:///android_asset/", myString, "text/html", "UTF-8", null);
</code></pre>
<p>everything is OK! I want to modify content of my html file (programmatically) befo... | When I directly copy the content of my html file and store it in a string, then show it in webview using: [CODE] everything is OK! I want to modify content of my html file (programmatically) before loading to webview, but when I read the html file from asset folder using below code [CODE] and then load it in webview, t... | java|android|regex|webview | 1 | 2016-04-18T20:22:01.463Z | 2,016 | 4 | 20 | 0 | 385 | 1 | 547 | 34 | 4 | 3 | true | false | false | false | false | false | low |
36,703,622 | Gson in Android Studio | <p>I try to save data to object user by gson but have an error:</p>
<pre><code>java.lang.RuntimeException: com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated string at line 1 column 911330 path $.assignedUser.................................................................... | I try to save data to object user by gson but have an error: [CODE] User class is: [CODE] and code where I use gson: [CODE] Problem is in the structure of the string response? | java|android|android-studio|gson | 0 | 2016-04-18T20:24:21.923Z | 2,016 | 4 | 20 | 0 | 1,084 | 2 | 175 | 22 | 4 | 3 | true | false | false | false | false | false | zero |
36,703,660 | Android KeyStoreException: | <p>My app is using Android's keystore to encrypt some data after authenticating with a fingerprint. This seems to work on most devices but I have received error reports of OnePlus2 users with the exception</p>
<pre><code>android.security.KeyStoreException: Signature/MAC verification failed
at android.security.KeyS... | My app is using Android's keystore to encrypt some data after authenticating with a fingerprint. This seems to work on most devices but I have received error reports of OnePlus2 users with the exception [CODE] My code basically does this (Written in Mono for Android): [CODE] Is there anything wrong with the code? What ... | android|encryption|android-fingerprint-api | 18 | 2016-04-18T20:26:59.747Z | 2,016 | 4 | 20 | 0 | 4,017 | 1 | 344 | 26 | 3 | 2 | true | false | true | false | true | false | medium |
36,703,712 | Shared preferences from an intent | <p>I am trying to get the value of my intent saved with shared preferences but struggling. i cant get any values saved. can somebody advise.</p>
<p>I need to take the value from the indent which is launched from the onActivityResult </p>
<p>I could even accept the CharSequence as a string. I need the intent value sav... | I am trying to get the value of my intent saved with shared preferences but struggling. i cant get any values saved. can somebody advise. I need to take the value from the indent which is launched from the onActivityResult I could even accept the CharSequence as a string. I need the intent value saved [CODE] | android | -2 | 2016-04-18T20:29:30.503Z | 2,016 | 4 | 20 | 0 | 452 | 1 | 309 | 33 | 1 | 1 | true | false | false | false | false | true | negative |
36,703,737 | Simple login form with Retrofit | <p>I'm starting to work with Retrofit but I'm stuck on this simple step. I have a login form and I'm trying to authenticate with the server but I just can't send the request.</p>
<p>This is what I've tried:</p>
<p>My Retrofit client:</p>
<pre><code>private static OkHttpClient.Builder httpClient = new OkHttpClient.Bu... | I'm starting to work with Retrofit but I'm stuck on this simple step. I have a login form and I'm trying to authenticate with the server but I just can't send the request. This is what I've tried: My Retrofit client: [CODE] My login interface: [CODE] The LoginCredentials class: [CODE] And the part where I call it: [COD... | android|retrofit2 | 4 | 2016-04-18T20:30:51.407Z | 2,016 | 4 | 20 | 0 | 19,814 | 2 | 468 | 31 | 2 | 4 | true | false | true | true | false | false | low |
36,703,873 | Scrollable TextView within a CardView | <p>I am trying to implement a TextView to scroll vertically within a CardView if the text is too large to fit.</p>
<p>Unfortunately this code does not work as intended. Could you help me please?</p>
<p>
</p>
<pre><code> <LinearLayout
android:layout_width="wrap_content"
android:layout_h... | I am trying to implement a TextView to scroll vertically within a CardView if the text is too large to fit. Unfortunately this code does not work as intended. Could you help me please? [CODE] | android|scrollbar|android-scrollview|android-cardview | 0 | 2016-04-18T20:39:46.867Z | 2,016 | 4 | 20 | 0 | 1,030 | 1 | 191 | 37 | 4 | 1 | true | false | false | false | false | false | zero |
36,703,984 | Rotating Android Camera Preview by 90 degrees on GLSurfaceView using OpenGL 2.0 APIs | <p><strong>Note</strong> I am new to both Android and OpenGL. </p>
<p>I using the code to display Android Camera Preview on the screen. I would like to rotate the Camera angle by 90 degrees using OpenGL 2.0 (to match my camera in portrait resolution since my App is in portrait mode) in the class ' MainRenderer' below.... | Note I am new to both Android and OpenGL. I using the code to display Android Camera Preview on the screen. I would like to rotate the Camera angle by 90 degrees using OpenGL 2.0 (to match my camera in portrait resolution since my App is in portrait mode) in the class ' MainRenderer' below. I have looked into Android c... | android|opengl-es|rotation|android-camera | 3 | 2016-04-18T20:46:02.753Z | 2,016 | 4 | 20 | 0 | 5,608 | 1 | 1,334 | 84 | 4 | 4 | true | false | true | false | false | false | low |
36,703,990 | Java object initialisation in constructor | <p>I am new to Java and stuck on the following Java class: </p>
<pre><code>public class Score {
private Paint paint;
private int score;
// Constructor
public Score(Context color) {
paint = new Paint();
// Set the font face and size of drawing text
paint.setTypeface(Typeface.MONOSPACE);
paint.setTextS... | I am new to Java and stuck on the following Java class: [CODE] I want to initialize the score in the Constructor as mentionned in the TO DO, but anytime I create a new object with [CODE] I run into typecasting issues that I don´t get solved. Anytime, I want to instantiate an object as above, I get the package name as a... | java|android | -1 | 2016-04-18T20:46:29.673Z | 2,016 | 4 | 20 | 0 | 63 | 1 | 546 | 41 | 2 | 2 | true | false | false | false | false | true | negative |
36,704,086 | How to use volley in Android libraries | <p>I have a project in which am using volley library.
I have a <code>MyApplication</code> class :</p>
<pre><code>public class MyApplication extends Application {
public static final String TAG = MyApplication.class
.getSimpleName();
private RequestQueue mRequestQueue;
private static MyApplica... | I have a project in which am using volley library. I have a MyApplication class : [CODE] Now to use that in my project, am adding the class name in my Manifest file. [CODE] Everything is working fine. Coming to main question,am also making a library in which I need to use volley. In my library, I again created a MyAppl... | android|android-volley|android-library | 0 | 2016-04-18T20:52:52.520Z | 2,016 | 4 | 20 | 0 | 463 | 2 | 1,080 | 38 | 3 | 3 | true | false | false | false | false | false | zero |
36,704,162 | W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection error | <p>I am getting a W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection error when I try to login to app.
Had a look at other answers but none solve my issue.I can register a user but I cant login to the app.</p>
<p>Heres the code that connects to the DB for registration and login.From my limited knowl... | I am getting a W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection error when I try to login to app. Had a look at other answers but none solve my issue.I can register a user but I cant login to the app. Heres the code that connects to the DB for registration and login.From my limited knowledge of thi... | android | 1 | 2016-04-18T20:57:15.867Z | 2,016 | 4 | 20 | 0 | 341 | 0 | 381 | 75 | 1 | 2 | true | true | false | false | false | false | low |
36,704,259 | Custom Camera Preview Android | <p>I'm trying to create a custom camera preview like the one used by WhatsApp. To illustrate the problem, I'm adding an image below:</p>
<p><a href="http://i.stack.imgur.com/t8CPw.png" rel="nofollow">Example of Preview</a> </p>
<p>I'm using the following code to open the camera activity:</p>
<pre><code>imgCamera.set... | I'm trying to create a custom camera preview like the one used by WhatsApp. To illustrate the problem, I'm adding an image below: Example of Preview I'm using the following code to open the camera activity: [CODE] And trying the below to show up the preview: [CODE] However, it is not showing up my preview custom activi... | android|android-camera|preview | 0 | 2016-04-18T21:04:12.203Z | 2,016 | 4 | 21 | 0 | 571 | 1 | 386 | 29 | 3 | 2 | true | false | false | false | false | false | zero |
36,704,341 | I want to put IDs of few buttons to an array and then check them in if condition | <p>this is my code:</p>
<p>xml</p>
<pre><code><Button
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="8"
android:id="@+id/button8"
android:layout_alignTop="@+id/button7"
android:layout_toRightOf="@+id/button7"... | this is my code: xml [CODE] as you can see I have buttons (its going to be a calculator) with text(1-9) and id=button 1-9 in MainActivity I made an array: [CODE] And now I want to make specific actions only if those ID buttons were clicked. For example: [CODE] But it does not work. I assume Arrays.asList(numbers).conta... | android|xml | 1 | 2016-04-18T21:09:49.883Z | 2,016 | 4 | 21 | 0 | 65 | 2 | 507 | 80 | 2 | 3 | true | false | false | false | false | false | low |
36,704,401 | Android Two Pane Layout, no view found | <p>Right now my app works fine at regular screen.
I am having a tough time figuring out how I can manage my current UI to handle the two panel layout.</p>
<p>Right now my DetailActivity has some UI elements to load, 3 fragments on separate tabs, controls what each FAB does, FAB animation and a fragment page adapter fo... | Right now my app works fine at regular screen. I am having a tough time figuring out how I can manage my current UI to handle the two panel layout. Right now my DetailActivity has some UI elements to load, 3 fragments on separate tabs, controls what each FAB does, FAB animation and a fragment page adapter for the tab l... | android|android-layout|android-fragments | 0 | 2016-04-18T21:15:01.880Z | 2,016 | 4 | 21 | 0 | 317 | 1 | 908 | 38 | 3 | 3 | true | false | false | false | false | false | zero |
36,704,654 | phonegap-plugin-push in monaca not working when set SENDER_ID in plugin configuration | <p>I am using Monaca to build my application phonegap, everything works fine, now I'm trying to import the plugin phonegap/phonegap-plugin-push. This plugin is an external plugin, then I have upgraded my account to developer plan, in the configuration of the plugin I have set the SENDER_ID like this SENDER_ID=XXXXXXXXX... | I am using Monaca to build my application phonegap, everything works fine, now I'm trying to import the plugin phonegap/phonegap-plugin-push. This plugin is an external plugin, then I have upgraded my account to developer plan, in the configuration of the plugin I have set the SENDER_ID like this SENDER_ID=XXXXXXXXXXXX... | android|cordova|push-notification|monaca | 1 | 2016-04-18T21:30:40.330Z | 2,016 | 4 | 21 | 0 | 258 | 0 | 537 | 85 | 4 | 1 | true | true | false | false | false | false | low |
36,704,782 | How to store data within a callback on a global variable? | <p>I'm trying to write a method to fetch all of the current saved students in my firebase database. But I wasn't able to store these data on the global variable <code>students</code>. How to do that? I couldn't figure out how to fix this scope problem it with OOP's theory. Any brilliant idea, please?</p>
<pre><code> ... | I'm trying to write a method to fetch all of the current saved students in my firebase database. But I wasn't able to store these data on the global variable students . How to do that? I couldn't figure out how to fix this scope problem it with OOP's theory. Any brilliant idea, please? [CODE] Thanks in advance! | java|android|firebase|crud | 1 | 2016-04-18T21:40:24.040Z | 2,016 | 4 | 21 | 0 | 934 | 1 | 312 | 57 | 4 | 1 | true | false | false | false | false | false | low |
36,704,870 | App crashing when using SharedPreferences to carry over final score | <p>My android app is crashing when using SharedPreferences to try and carry the final score over from when the game ends. The app crashes inside the onTouchEvent at the line.</p>
<pre><code>SharedPreferences.Editor editor = mySharedPreferences.edit();
</code></pre>
<p>The idea is when the game ends it final score tha... | My android app is crashing when using SharedPreferences to try and carry the final score over from when the game ends. The app crashes inside the onTouchEvent at the line. [CODE] The idea is when the game ends it final score that is within the SVGameView to carry over into the SVGameOver class and display there. If any... | java|android|android-studio|layout|sharedpreferences | 0 | 2016-04-18T21:46:42.823Z | 2,016 | 4 | 21 | 0 | 41 | 3 | 474 | 67 | 5 | 3 | true | false | false | false | false | false | zero |
36,705,059 | Android Studio application ImageView doesnt show image when take photo | <p>I made an applicattion that uses the camera of the phone to take a picture and show it in ImageView , but it isnt showing.</p>
<p>Here is my java code.</p>
<pre><code>package com.example.gonalo.photoactivitie;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.Drawable;
i... | I made an applicattion that uses the camera of the phone to take a picture and show it in ImageView , but it isnt showing. Here is my java code. [CODE] Here is my xml.file code [CODE] Here is my manifest.file code [CODE] So i think its because i say in java to create a new path when i take a picture but it isnt doing i... | java|android|xml|android-studio | 0 | 2016-04-18T22:01:42.470Z | 2,016 | 4 | 22 | 0 | 433 | 1 | 394 | 70 | 4 | 4 | true | false | false | false | false | false | zero |
36,705,291 | Http Response in Webview Android | <p>I have my activity that loads webview as below </p>
<pre><code> @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// set layout
setContentView(R.layout.activity_webview);
// get loading view
loadingView = findViewById(R.id.loadingView);
loadin... | I have my activity that loads webview as below [CODE] However, I need to look at response of the Url that I load and call to another API URL based on the response. I have looked so far for this URL Loading QUestion but not much helpful under 5.0. Any suggestions on how should I approach? Should I just use Retrofit in s... | android|webview|httpresponse | 1 | 2016-04-18T22:18:17.603Z | 2,016 | 4 | 22 | 0 | 1,055 | 0 | 442 | 32 | 3 | 1 | true | true | false | false | false | false | low |
36,705,330 | Can't reduce size Realm adds to app | <p>I'm trying to encourage the startup I work for to switch from SQLite to Realm. The biggest objection is how large it makes the app. The compiled release APK jumps from 3.5MB to 7.5MB after Realm (a 4MB difference). Post-installation size on a physical device seems to vary, but roams around 19MB on a Nexus 6P (a 6MB ... | I'm trying to encourage the startup I work for to switch from SQLite to Realm. The biggest objection is how large it makes the app. The compiled release APK jumps from 3.5MB to 7.5MB after Realm (a 4MB difference). Post-installation size on a physical device seems to vary, but roams around 19MB on a Nexus 6P (a 6MB dif... | android|realm | 3 | 2016-04-18T22:21:03.250Z | 2,016 | 4 | 22 | 0 | 1,125 | 1 | 1,047 | 35 | 2 | 2 | true | false | false | false | false | false | low |
36,705,374 | simplexml android Can't parse html with non-closing meta tag | <p>I am trying to parse this xml string using simplexml in android:</p>
<pre><code>"<html>
<head>
<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">
</head>
<body>
<doors>
<door id=\"1\" status=\"Closed\">
<door id=\"2\" status=\"Closed\">
<door i... | I am trying to parse this xml string using simplexml in android: [CODE] Yes, I know that the door tags should close immediately instead of after all the door tags have been declared, I have no control over this html!!! I have a Doors class, and a Door class with attributes id and status. (The Doors class has a List) An... | java|android|xml|parsing|simple-framework | 0 | 2016-04-18T22:25:35.473Z | 2,016 | 4 | 22 | 0 | 306 | 1 | 654 | 60 | 5 | 4 | true | false | false | false | false | false | zero |
36,705,417 | Error thrown when running my splash screen | <p>I am trying to run a splash screen for my android application, I have followed several tutorials and now when I try and run the code, the error message below appears. If someone could show me what code I am missing or what needs to be changed, this would be much appreciated.</p>
<p>Error message that appears on my ... | I am trying to run a splash screen for my android application, I have followed several tutorials and now when I try and run the code, the error message below appears. If someone could show me what code I am missing or what needs to be changed, this would be much appreciated. Error message that appears on my android mon... | java|android | 0 | 2016-04-18T22:29:11.513Z | 2,016 | 4 | 22 | 0 | 74 | 0 | 377 | 42 | 2 | 2 | true | true | false | false | false | false | zero |
36,705,498 | Setting ImageView as bitmap in layoutinflator container | <p>I am trying to open my camera via an intent, and store the resulting image as a bitmap. Then, upon clicking a marker in Google Maps, I want to pass this bitmap into another layout that will be used to populate a popup window in the main activities layout. </p>
<p>However, I am getting the error:
"java.lang.NullPoi... | I am trying to open my camera via an intent, and store the resulting image as a bitmap. Then, upon clicking a marker in Google Maps, I want to pass this bitmap into another layout that will be used to populate a popup window in the main activities layout. However, I am getting the error: "java.lang.NullPointerException... | android|bitmap|popup|imageview | 0 | 2016-04-18T22:36:48.660Z | 2,016 | 4 | 22 | 0 | 411 | 1 | 532 | 55 | 4 | 2 | true | false | false | false | false | false | zero |
36,705,510 | Android button.setWidth() not doing anything | <p>I have a <code>inputMethodService</code> that controls a soft keyboard. Here is the relevant part of the </p>
<pre><code>@Override
public View onCreateInputView() {
LayoutInflater lInflate = getLayoutInflater();
Resources res = getResources();
LinearLayout inputView = (LinearLayout) lInflate.inflate(R... | I have a inputMethodService that controls a soft keyboard. Here is the relevant part of the [CODE] The purpose of this code is so that if the screen is large enough the buttons will each be 1/5 of the screen's width. Otherwise if the screen is small, the buttons will just be 100dp (which is fine since they are wrapped ... | android|android-button | 1 | 2016-04-18T22:38:27.253Z | 2,016 | 4 | 22 | 0 | 501 | 2 | 712 | 44 | 2 | 1 | true | false | false | false | false | false | low |
36,705,581 | android tv menu is not selected from d-pad | <p>I tried to fit in a android tv app navigation menu. but it can not be selected. If I use the mouse go. but remote from the nexus player does not work.
can solve? or it is not possible to use remote NavigationView?
Thank you</p>
<p>code:</p>
<pre><code> <?xml version="1.0" encoding="utf-8"?>
<RelativeLa... | I tried to fit in a android tv app navigation menu. but it can not be selected. If I use the mouse go. but remote from the nexus player does not work. can solve? or it is not possible to use remote NavigationView? Thank you code: [CODE] drawer: [CODE] [CODE] | android|android-tv|smart-tv | 2 | 2016-04-18T22:45:03.057Z | 2,016 | 4 | 22 | 0 | 1,617 | 1 | 258 | 42 | 3 | 3 | true | false | false | false | false | false | low |
36,705,602 | Download database File For Google Drive API Android | <p>I am using the drive api to create a database file in the hidden app folder on google drive. The database file is called notes.db I have been able to successfully upload the database file to google drive but I have no idea how to download it back to the user's device. This is what i'm trying to do. My app makes a fo... | I am using the drive api to create a database file in the hidden app folder on google drive. The database file is called notes.db I have been able to successfully upload the database file to google drive but I have no idea how to download it back to the user's device. This is what i'm trying to do. My app makes a folde... | android|mysql|google-drive-android-api | 2 | 2016-04-18T22:47:28.473Z | 2,016 | 4 | 22 | 0 | 1,567 | 3 | 880 | 51 | 3 | 3 | true | false | false | false | false | false | low |
36,705,666 | Execution failed ':app:transformClassesWithDexForDebug' - GC overhead limit exceeded | <p>have a problem with gradle, my app wont compile and appear this error on "0:Messages" tab, here my code on my build.gradle(app)</p>
<pre><code>apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "app.nucleo.com.doctoc"
min... | have a problem with gradle, my app wont compile and appear this error on "0:Messages" tab, here my code on my build.gradle(app) [CODE] screenshot: http://i.stack.imgur.com/6BTaw.png any can help me? | android|android-studio|gradle | 0 | 2016-04-18T22:54:11.810Z | 2,016 | 4 | 22 | 0 | 288 | 2 | 198 | 84 | 3 | 1 | true | false | false | false | false | false | zero |
36,705,728 | How to remove the background image in iFrame : Android | <p>I am loading a video coming from video provider but I keep on seeing a random image (gray play icon image) in the background. How do I remove that image.</p>
<p>This is the code that I am using</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet... | I am loading a video coming from video provider but I keep on seeing a random image (gray play icon image) in the background. How do I remove that image. This is the code that I am using [CODE] | android|iframe|android-webview | 1 | 2016-04-18T22:59:22.897Z | 2,016 | 4 | 22 | 0 | 707 | 1 | 193 | 54 | 3 | 1 | true | false | false | false | false | false | low |
36,705,749 | FloatingActionButton strange press behavior | <p>I have no idea what suddenly caused this, as I don't think I've changed any code (maybe this is an Android Studio 2.0 bug?).</p>
<p>But now when I press a FloatingActionButton, it stays pressed and doesn't do anything when I first click it. If I start clicking it again, it seems to work (but still looks pressed).</... | I have no idea what suddenly caused this, as I don't think I've changed any code (maybe this is an Android Studio 2.0 bug?). But now when I press a FloatingActionButton, it stays pressed and doesn't do anything when I first click it. If I start clicking it again, it seems to work (but still looks pressed). In my OnCrea... | android|android-studio|android-activity|android-xml|floating-action-button | 0 | 2016-04-18T23:00:58.200Z | 2,016 | 4 | 23 | 0 | 222 | 1 | 349 | 43 | 5 | 2 | true | false | false | false | false | false | zero |
36,706,071 | How to set up a SQLite database in Android? | <p>I am a beginner to Android Studio and Database. However, after videos and guide I was able to set up a basic one. </p>
<p>After doing so, I wanted to expand it to create 2 additional tables. However later when I am attempting to input data to those latter tables, the application crashes, and I cannot seem to find w... | I am a beginner to Android Studio and Database. However, after videos and guide I was able to set up a basic one. After doing so, I wanted to expand it to create 2 additional tables. However later when I am attempting to input data to those latter tables, the application crashes, and I cannot seem to find what is wrong... | java|android|database|sqlite | 0 | 2016-04-18T23:37:10.693Z | 2,016 | 4 | 23 | 0 | 244 | 2 | 1,304 | 43 | 4 | 2 | true | false | false | false | false | false | zero |
36,706,095 | Superpowered Library linking doesn't work | <p>I try add superpowered library to new android studio project and I follow example for Android but I still have problems with linking library. </p>
<p>I have this error:</p>
<blockquote>
<p>java.lang.UnsatisfiedLinkError: No implementation found for void com.xxx.audiomixprototype.MainActivity.AudioMixPrototype(ja... | I try add superpowered library to new android studio project and I follow example for Android but I still have problems with linking library. I have this error: java.lang.UnsatisfiedLinkError: No implementation found for void com.xxx.audiomixprototype.MainActivity.AudioMixPrototype(java.lang.String, long[]) (tried Java... | java|android|c++|audio|android-ndk | 1 | 2016-04-18T23:39:43.827Z | 2,016 | 4 | 23 | 0 | 564 | 2 | 914 | 41 | 5 | 0 | false | false | false | false | false | false | low |
36,706,099 | Android app freezing on SQLite db insert | <p>I'm running into a really strange issue trying to insert into a local database. I am adding a record to 2 different tables and the first time I add the value it shows up in the list until the activity is destroyed. I can navigate away and come back and the new value is there but when I close the app and clear it fro... | I'm running into a really strange issue trying to insert into a local database. I am adding a record to 2 different tables and the first time I add the value it shows up in the list until the activity is destroyed. I can navigate away and come back and the new value is there but when I close the app and clear it from t... | android|database|sqlite|cursor | 1 | 2016-04-18T23:40:10.550Z | 2,016 | 4 | 23 | 0 | 1,231 | 2 | 655 | 40 | 4 | 1 | true | false | false | false | false | false | low |
36,706,223 | Obtaining audio data from android microphone using Cordova and JavaScript (without getUserMedia) | <p>I need to obtain frequency/pitch data from the microphone of an android device on the fly using JavaScript.</p>
<p>I have done this for desktop/laptop browsers with getUserMedia and Web Audio API, but these are not supported on the vast majority of Android devices.</p>
<p>I have tried using the cordova-plugin-medi... | I need to obtain frequency/pitch data from the microphone of an android device on the fly using JavaScript. I have done this for desktop/laptop browsers with getUserMedia and Web Audio API, but these are not supported on the vast majority of Android devices. I have tried using the cordova-plugin-media-capture however t... | javascript|java|android|cordova|audio | 1 | 2016-04-18T23:55:12.070Z | 2,016 | 4 | 23 | 0 | 1,521 | 1 | 1,188 | 96 | 5 | 0 | false | false | false | false | false | false | low |
36,706,369 | How to make array size dependent on text file size? | <p>After some effort (I'm a newbie) I've managed to create a method that reads a text file and puts it into a multi dimensional array. However the array size is hard coded and it doesn't deal with blank lines very well so I have the following questions:</p>
<p>1) How do I define my array to be equal to the size of th... | After some effort (I'm a newbie) I've managed to create a method that reads a text file and puts it into a multi dimensional array. However the array size is hard coded and it doesn't deal with blank lines very well so I have the following questions: 1) How do I define my array to be equal to the size of the text file?... | java|android|arrays|text-files|streamreader | 1 | 2016-04-19T00:11:06.640Z | 2,016 | 4 | 0 | 1 | 1,584 | 3 | 566 | 51 | 5 | 1 | true | false | false | false | false | false | low |
36,706,450 | notification message only shows when device connected to USB | <p>The notification message string in my app only shows if the development device is connected to USB. As soon as I disconnect the phone from USB, even with the app open, the notifications for my app no longer shows the message, it is just blank, yet everything else seems to work fine for the notification. </p>
<p>I h... | The notification message string in my app only shows if the development device is connected to USB. As soon as I disconnect the phone from USB, even with the app open, the notifications for my app no longer shows the message, it is just blank, yet everything else seems to work fine for the notification. I have no error... | android|notifications|usb|adb|samsung-mobile | 2 | 2016-04-19T00:23:41.993Z | 2,016 | 4 | 0 | 1 | 1,267 | 1 | 1,270 | 60 | 5 | 2 | true | false | false | false | false | false | low |
36,706,544 | Progress Dialog not showing during a asynctask call | <p>Ok so I am trying to get a progress dialog to show when data is being downloaded from the internet and being applied to the UI. My asynctask is working fine and it runs though all the steps, but it never shows the dialog ever. I don't know what I have done wrong here and I pretty much hit the wall. I even tried to p... | Ok so I am trying to get a progress dialog to show when data is being downloaded from the internet and being applied to the UI. My asynctask is working fine and it runs though all the steps, but it never shows the dialog ever. I don't know what I have done wrong here and I pretty much hit the wall. I even tried to put ... | android|android-asynctask|progressdialog | 2 | 2016-04-19T00:37:00.627Z | 2,016 | 4 | 0 | 1 | 2,803 | 1 | 548 | 51 | 3 | 2 | true | false | true | false | false | false | low |
36,706,672 | Hide InfoWindow from GoogleMaps API but keep the directions icon | <p>I am trying to use the GoogleMap API on android, but I want to hide the infoWindow when a user clicks on a pin that dropped. Yet, I still want the directions and latlog icon to show up.</p>
<p>In other words, the picture should clarify what I need:</p>
<p><a href="https://i.stack.imgur.com/FDYMf.png" rel="nofollow... | I am trying to use the GoogleMap API on android, but I want to hide the infoWindow when a user clicks on a pin that dropped. Yet, I still want the directions and latlog icon to show up. In other words, the picture should clarify what I need: I tried to add a listener to the pins I dropped, but this kills the entire inf... | android|google-maps|google-maps-api-2 | 1 | 2016-04-19T00:54:15.307Z | 2,016 | 4 | 0 | 1 | 770 | 2 | 464 | 64 | 3 | 1 | true | false | false | false | false | false | low |
36,706,687 | Scroll to / set position of custom list preference | <p>I have a custom preferencefragment that contains two custom listpreferences. Due to the dynamic nature of the two lists, each time my parent fragment is loaded, I refresh these two fragments by creating a new instance of the custom preferencefragment:</p>
<pre><code>if(themeListFragment != null) {
themeListFrag... | I have a custom preferencefragment that contains two custom listpreferences. Due to the dynamic nature of the two lists, each time my parent fragment is loaded, I refresh these two fragments by creating a new instance of the custom preferencefragment: [CODE] This works perfectly and renders the custom list preferences.... | java|android|listadapter|listpreference|preferencefragment | 6 | 2016-04-19T00:56:46.870Z | 2,016 | 4 | 0 | 1 | 363 | 1 | 1,037 | 50 | 5 | 3 | true | false | false | false | false | false | medium |
36,706,742 | NativeScript View _createUI Accessing Canvas? | <p>I Would like to access the Canvas Via NativeScript, But i cant seem to find the bridging entry point. as _CreateUI does not pass in the canvas, where onDraw in Java does.</p>
<p>i would like to do the NativeScript Equiv of:</p>
<pre><code>@Override
protected void onDraw(Canvas canvas) {
// floor the border w... | I Would like to access the Canvas Via NativeScript, But i cant seem to find the bridging entry point. as _CreateUI does not pass in the canvas, where onDraw in Java does. i would like to do the NativeScript Equiv of: [CODE] Thanks Phil | android-canvas|nativescript | 0 | 2016-04-19T01:04:23.200Z | 2,016 | 4 | 1 | 1 | 405 | 1 | 235 | 45 | 2 | 1 | true | false | false | false | false | false | zero |
36,706,795 | How to keep session using Retrofit OkHttpClient | <p>With the DefaultHttpClient() you could do </p>
<pre><code>HttpClient client = new DefaultHttpClient();
HttpGet request = new HttpGet(url_login.toURI());
HttpGet request1 = new HttpGet(url_getList.toURI());
HttpGet request2 = new HttpGet(url.getOtherList.toURI());
HttpResponse response = client.execute(request);
Htt... | With the DefaultHttpClient() you could do [CODE] and the client would keep the session, how do I manage the following with retrofit 2 [CODE] 2 restApi call doesn´t work restApi client is not logged in | android|retrofit | 9 | 2016-04-19T01:11:14.087Z | 2,016 | 4 | 1 | 1 | 10,201 | 2 | 200 | 47 | 2 | 2 | true | false | true | false | false | false | medium |
36,706,882 | How to restrict the width of textview in linearlayout for long words | <p>Here is my layout file:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent... | Here is my layout file: [CODE] Here is the layout result: I found the textview will occupy the neighbor relativelayout's space. What I expect is: For long sentence: And for short sentence: That is, I want the width of blue block to be fixed and to be right of the textview. How to to that ? Thanks. | android|android-layout | 0 | 2016-04-19T01:21:09.440Z | 2,016 | 4 | 1 | 1 | 1,043 | 5 | 298 | 68 | 2 | 1 | true | false | false | false | false | false | zero |
36,706,883 | WeChat Immediately Closing Using SDK | <p>I'm trying to send text to WeChat for sharing and it looks like WeChat loads but then immediately closes. The error code I'm getting in WXEntryActivity is -6, which doesn't seem to correspond to anything in the ErrCode enum. </p>
<p>My package name is the same that the app was registered under and I'm building with... | I'm trying to send text to WeChat for sharing and it looks like WeChat loads but then immediately closes. The error code I'm getting in WXEntryActivity is -6, which doesn't seem to correspond to anything in the ErrCode enum. My package name is the same that the app was registered under and I'm building with the signatu... | android|wechat | 0 | 2016-04-19T01:21:10.410Z | 2,016 | 4 | 1 | 1 | 450 | 0 | 603 | 36 | 2 | 2 | true | true | false | false | false | false | zero |
36,707,058 | Protect data so only verified client can read | <p>I am creating a REST server that will be holding a decent amount of proprietary information. I want users to be able to access the information in only the intended way, which is through a map built into an iPhone/Android app. I require a verified email registration to access the server. I will be rate limiting the a... | I am creating a REST server that will be holding a decent amount of proprietary information. I want users to be able to access the information in only the intended way, which is through a map built into an iPhone/Android app. I require a verified email registration to access the server. I will be rate limiting the amou... | android|security | 0 | 2016-04-19T01:42:16.327Z | 2,016 | 4 | 1 | 1 | 30 | 1 | 1,286 | 45 | 2 | 0 | false | false | false | false | false | false | zero |
36,707,064 | Android XML Generating NoSuchFieldError | <p>I recently updated my build.gradle to all of the latest android appCompat libraries and am receiving the below error message. It appears to be related to material design but I really don't understand what is causing the error:</p>
<pre><code>04-18 20:35:57.227 2018-2018/com.sourcey.materialloginexample E/AndroidRun... | I recently updated my build.gradle to all of the latest android appCompat libraries and am receiving the below error message. It appears to be related to material design but I really don't understand what is causing the error: [CODE] Included is the associated XML: [CODE] | java|android|xml|android-layout | 1 | 2016-04-19T01:43:26.447Z | 2,016 | 4 | 1 | 1 | 285 | 0 | 272 | 39 | 4 | 2 | true | true | false | false | false | false | low |
36,707,211 | Serialize an instance of a Fragment | <p>So I'm using the Newtonsoft JSON serializer in Visual Studio 2015 programming for Android with Xamarin..I want to serialize a fragment to store it in a sql database. The fragment is inheriting from Android.Support.V4.App.Fragment and at the point where I'm trying to serialize, the object has already been created and... | So I'm using the Newtonsoft JSON serializer in Visual Studio 2015 programming for Android with Xamarin..I want to serialize a fragment to store it in a sql database. The fragment is inheriting from Android.Support.V4.App.Fragment and at the point where I'm trying to serialize, the object has already been created and th... | c#|android|json|android-fragments|serialization | 1 | 2016-04-19T01:59:48.863Z | 2,016 | 4 | 1 | 1 | 59 | 0 | 1,089 | 35 | 5 | 1 | true | true | false | false | false | false | low |
36,707,222 | onItemClickListener stops working after changing visibility of item child | <pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout /* not important */>
<TextView /* not important */ />
<TextView /* not important */ />
<RelativeLayout
/* not important */
android:id="@+id/detailLayout"
android:visibility="gone">
... | [CODE] . [CODE] First when I click the item, the event fires and detailLayout changes visibility to View.VISIBLE , but then any further attempt to click it results in no event firing. | android|listview|onitemclicklistener | 1 | 2016-04-19T02:00:39.057Z | 2,016 | 4 | 2 | 1 | 124 | 2 | 183 | 73 | 3 | 2 | true | false | false | false | false | false | low |
36,707,258 | Android Auto text reply to phone call not working | <p>I have created an app that initiates a broadcast receiver class that should auto respond to phone calls with a text message. The receiver is working however I get the following exception:</p>
<p><em>java.lang.IllegalArgumentException: Invalid destinationAddress</em></p>
<p>Please help!!! </p>
<p><strong>Main Acti... | I have created an app that initiates a broadcast receiver class that should auto respond to phone calls with a text message. The receiver is working however I get the following exception: java.lang.IllegalArgumentException: Invalid destinationAddress Please help!!! Main Activity: [CODE] Incoming Call Reveiver: [CODE] M... | java|android|string|android-studio | 1 | 2016-04-19T02:04:05.687Z | 2,016 | 4 | 2 | 1 | 165 | 1 | 335 | 49 | 4 | 3 | true | false | false | false | false | false | low |
36,707,301 | Fetch not working on React Native Android debug | <p>I'm trying to create a very simple ReactNative app to play around with GraphQL and RN on an Android (I'm already familiar with getting it to work on an iPhone).</p>
<p>But I'm running into a problem -- my root component places a <code>get</code> request to an API. Although that request works perfectly when I spin u... | I'm trying to create a very simple ReactNative app to play around with GraphQL and RN on an Android (I'm already familiar with getting it to work on an iPhone). But I'm running into a problem -- my root component places a get request to an API. Although that request works perfectly when I spin up an XCode simulator, it... | android|reactjs|react-native|fetch | 3 | 2016-04-19T02:08:19.230Z | 2,016 | 4 | 2 | 1 | 811 | 0 | 1,302 | 47 | 4 | 1 | true | true | false | false | false | false | low |
36,707,378 | Android Loading Error: Performing Stop of Activity that is Not Resumed | <p>I am creating a loading screen for my application, checking with Firebase to see if the user is logged in. Depending on the authentication state of the user, I will load a specific activity within my application.</p>
<p>I am receiving what appears to be a redundant error that is freezing my application and not acces... | I am creating a loading screen for my application, checking with Firebase to see if the user is logged in. Depending on the authentication state of the user, I will load a specific activity within my application. I am receiving what appears to be a redundant error that is freezing my application and not accessing the n... | java|android|android-activity|firebase | 0 | 2016-04-19T02:17:10.770Z | 2,016 | 4 | 2 | 1 | 658 | 1 | 465 | 70 | 4 | 3 | true | false | false | false | false | false | zero |
36,707,483 | SharedPreferences from one Fragment isn't registering data for a Login Activity on another Fragment | <p>I have a fragment called LoginFragment through which a user can Register for the first time by clicking on the Register button. Upon clicking this button a new fragment, called RegisterFragment, opens up where the user chooses and enters a new username and password to be registered. When I run the app and enter the ... | I have a fragment called LoginFragment through which a user can Register for the first time by clicking on the Register button. Upon clicking this button a new fragment, called RegisterFragment, opens up where the user chooses and enters a new username and password to be registered. When I run the app and enter the fie... | android|fragment|sharedpreferences | 0 | 2016-04-19T02:29:57.307Z | 2,016 | 4 | 2 | 1 | 135 | 1 | 916 | 99 | 3 | 2 | true | false | false | false | false | false | zero |
36,707,484 | Android Studio 2.0 Cannot launch AVD in emulator | <p>I can successfully launch AVDs for the targets Android 5.1 (Google APIs) and Android 6.0 (Google APIs), both using CPU=x86. However the AVD I create for Android 4.1 (Google APIs) using CPU=arm cannot be launched. When I try to launch it I see a dialog:</p>
<pre><code>Cannot launch AVD in emulator.
Output:
emulator:... | I can successfully launch AVDs for the targets Android 5.1 (Google APIs) and Android 6.0 (Google APIs), both using CPU=x86. However the AVD I create for Android 4.1 (Google APIs) using CPU=arm cannot be launched. When I try to launch it I see a dialog: [CODE] Since two AVDs do work I'm sure ANDROID_SDK_ROOT is defined.... | android|android-studio|avd | 3 | 2016-04-19T02:30:01.790Z | 2,016 | 4 | 2 | 1 | 971 | 1 | 1,166 | 48 | 3 | 2 | true | false | false | false | false | false | low |
36,707,507 | How to load react-native-map on android application | <p>I have below code to use react-native-map on an android Genymotion simulator. And I followed the instruction from <a href="https://github.com/lelandrichardson/react-native-maps/blob/master/docs/installation.md" rel="nofollow">https://github.com/lelandrichardson/react-native-maps/blob/master/docs/installation.md</a> ... | I have below code to use react-native-map on an android Genymotion simulator. And I followed the instruction from https://github.com/lelandrichardson/react-native-maps/blob/master/docs/installation.md to setup the dependencies. But when I run react-native run-android, it doesn't show the UI. Instead, it shows a while p... | android|react-native | 0 | 2016-04-19T02:32:10.790Z | 2,016 | 4 | 2 | 1 | 229 | 0 | 460 | 51 | 2 | 1 | true | true | false | false | false | false | zero |
36,707,518 | Android Screen Turns Black | <p>I am looking for any reason this could be happening. I am currently writing an image-stitching app for Android. I have decided to use OpenCV4Android and I also had to do some Android NDK stuff in order to get it to work (I am almost sure this is somehow causing my problem). The problem I am having now is that whe... | I am looking for any reason this could be happening. I am currently writing an image-stitching app for Android. I have decided to use OpenCV4Android and I also had to do some Android NDK stuff in order to get it to work (I am almost sure this is somehow causing my problem). The problem I am having now is that when my c... | java|android|c++|opencv|android-ndk | 0 | 2016-04-19T02:34:43.660Z | 2,016 | 4 | 2 | 1 | 207 | 0 | 9,537 | 26 | 5 | 1 | true | true | false | false | false | false | zero |
36,707,526 | Android use vector drawable to replace text in button | <p>Currently I have a button that looks like this:</p>
<p><a href="https://i.stack.imgur.com/3KkkF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3KkkF.png" alt="enter image description here"></a></p>
<p>What I want to do is to be able to replace the text with this vector drawable but keep the blu... | Currently I have a button that looks like this: What I want to do is to be able to replace the text with this vector drawable but keep the blue rectangle background: I looked into doing this but I cannot seem to get it right. I tried the following combination: [CODE] However that just led to a blank blue button with no... | android|android-vectordrawable | 0 | 2016-04-19T02:36:01.340Z | 2,016 | 4 | 2 | 1 | 872 | 1 | 433 | 53 | 2 | 1 | true | false | false | false | false | false | zero |
36,707,591 | Duplicate files copied in APK META-INF | <p>hi im new in android development, i am trying to build my apk but i got this erorr. and i update my gradle and i got duplicate copy. how can i fix this error?</p>
<pre><code>Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> com.android.build.api.transform.TransformException: co... | hi im new in android development, i am trying to build my apk but i got this erorr. and i update my gradle and i got duplicate copy. how can i fix this error? [CODE] and here's my build.gradle is this the error comes? [CODE] | java|android|gradle | 3 | 2016-04-19T02:43:35.100Z | 2,016 | 4 | 2 | 1 | 1,966 | 4 | 224 | 38 | 3 | 2 | true | false | false | false | false | false | low |
36,707,624 | Fragment content gets cut off | <p>I am currently developing an Android game. I have a problem with my content inside a Fragment. The content gets cut off and I am not able to find the problem. I only use the resource directory, where I define the different layouts. That is why I know the problem lies in the layouts. First I thought it has something ... | I am currently developing an Android game. I have a problem with my content inside a Fragment. The content gets cut off and I am not able to find the problem. I only use the resource directory, where I define the different layouts. That is why I know the problem lies in the layouts. First I thought it has something to ... | android|android-layout | 4 | 2016-04-19T02:46:16.523Z | 2,016 | 4 | 2 | 1 | 2,592 | 5 | 998 | 29 | 2 | 2 | true | false | false | false | false | false | low |
36,707,762 | Android WebView Responsive While Zooming | <p>The font size and image in the WebView are able to zoom, but not responsive to screen. It is expected to fit on the width of 100%. It is not applicable on Android 5.0 Lollipop and above. I tried on Kitkat device, it worked. I'm wondering what should I do in order to make it works on 5.0 and above. </p>
<p>I did con... | The font size and image in the WebView are able to zoom, but not responsive to screen. It is expected to fit on the width of 100%. It is not applicable on Android 5.0 Lollipop and above. I tried on Kitkat device, it worked. I'm wondering what should I do in order to make it works on 5.0 and above. I did configure the m... | android|webview|responsive-design | 0 | 2016-04-19T03:02:11.377Z | 2,016 | 4 | 3 | 1 | 173 | 0 | 491 | 40 | 3 | 1 | true | true | false | false | false | false | zero |
36,707,789 | Stuck on Android.os.Bundle with Null Object Reference | <p>I don't know why this error happens. I have checked all the code that link to this one but still doesn't give any solution.</p>
<p>The IDE just gimme error like this :</p>
<blockquote>
<p>java.lang.NullPointerException: Attempt to invoke virtual method 'int android.os.Bundle.getInt(java.lang.String)' on a null o... | I don't know why this error happens. I have checked all the code that link to this one but still doesn't give any solution. The IDE just gimme error like this : java.lang.NullPointerException: Attempt to invoke virtual method 'int android.os.Bundle.getInt(java.lang.String)' on a null object reference at com.gook.rebill... | java|android | 0 | 2016-04-19T03:04:44.773Z | 2,016 | 4 | 3 | 1 | 7,717 | 4 | 559 | 53 | 2 | 2 | true | false | true | false | false | false | zero |
36,707,848 | Android use and intent values from AsyncTask.execute(new Runnable() | <p>I would like to ask, how to use and intent values from AsyncTask.</p>
<p>This is on the top: (<strong>This is the values which I would like to use</strong>)</p>
<pre><code>Double confidence;
String plateNumberTest;
</code></pre>
<p>This is the actual AsyncTask</p>
<pre><code>AsyncTask.execute(new Runnable() {
... | I would like to ask, how to use and intent values from AsyncTask. This is on the top: ( This is the values which I would like to use ) [CODE] This is the actual AsyncTask [CODE] I was trying as I demonstrate in my example, by it's return as null This is my intent, which is on setOnClickListener for button: [CODE] P.S. ... | java|android|android-intent|android-asynctask|return-value | 0 | 2016-04-19T03:11:23.640Z | 2,016 | 4 | 3 | 1 | 374 | 0 | 410 | 67 | 5 | 3 | true | true | false | false | false | false | zero |
36,708,007 | Why wont my calculations show in my app? | <p>I am trying to make a simple ballistic app that calculates bullet drop and time to target. I have everything in place where I need it, but when I test it and wait for my results it doesn't seems to do the calculations I have in there. Any suggestions for me?</p>
<pre><code>package com.example.koryhershock.testapp;
... | I am trying to make a simple ballistic app that calculates bullet drop and time to target. I have everything in place where I need it, but when I test it and wait for my results it doesn't seems to do the calculations I have in there. Any suggestions for me? [CODE] | java|android|android-studio | 0 | 2016-04-19T03:26:51.187Z | 2,016 | 4 | 3 | 1 | 60 | 1 | 265 | 40 | 3 | 1 | true | false | false | false | false | false | zero |
36,708,065 | Failed to sync Gradle project with databinding lib | <p>Recently I'm learning MVP pattern and databinding after the Android Studio being upgraded to ver2.0. And I find a really good sample helping me to understand these.<br>
But as the title I can't gradle it successfully.<br>
It always gaving a message in the monitor like<br>
<em>"Error: Could not find com.android... | Recently I'm learning MVP pattern and databinding after the Android Studio being upgraded to ver2.0. And I find a really good sample helping me to understand these. But as the title I can't gradle it successfully. It always gaving a message in the monitor like "Error: Could not find com.android.databinding:library:1.1.... | android|data-binding|gradle | 0 | 2016-04-19T03:33:45.130Z | 2,016 | 4 | 3 | 1 | 603 | 1 | 896 | 50 | 3 | 0 | false | false | false | false | false | false | zero |
36,708,073 | Unable to use retrofit android library getting error while compiling | <p>I am using the below code to call the API. I have added custom key that wont work: </p>
<pre><code> String API_BASE_URL="http://api.themoviedb.org/3/movie/popular? api_key=adfasdfasd/";
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(API_BASE_URL)
.addConverterFactory(GsonConverter... | I am using the below code to call the API. I have added custom key that wont work: [CODE] I have added below dependencies for retrofit in gradle: [CODE] This is my interface [CODE] I'm getting: Caused by: java.lang.IllegalArgumentException: baseUrl must end in /: http://api.themoviedb.org/3/movie/popular?api_key=adfasd... | android|performance|retrofit|retrofit2 | 1 | 2016-04-19T03:34:38.207Z | 2,016 | 4 | 3 | 1 | 3,570 | 5 | 1,203 | 68 | 4 | 3 | true | false | true | false | false | false | low |
36,708,106 | How to handle app links for a webview app | <p>I'm trying to handle app links in a webview app.
this means if user click on a link something like <code>example.com/example.html</code> the app should show the open with dialogbox.
I've implemented this:</p>
<pre><code> <intent-filter>
<action android:name="android.intent.action.VIEW" />
... | I'm trying to handle app links in a webview app. this means if user click on a link something like example.com/example.html the app should show the open with dialogbox. I've implemented this: [CODE] And my MainActivity.java contains this code: [CODE] But the problem is that when user open the link using the app, it sho... | java|android|xml|webview | 1 | 2016-04-19T03:37:50.903Z | 2,016 | 4 | 3 | 1 | 152 | 0 | 407 | 41 | 4 | 2 | 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.