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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28,635,414 | Android: Unable to display thumbnail of video | <p>I am trying to display thumbnail of a video but I am not able to generate the thumbnail for the video.</p>
<p>My activity_main contains</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:... | I am trying to display thumbnail of a video but I am not able to generate the thumbnail for the video. My activity_main contains [CODE] My Main Activity has the following code [CODE] Its displaying nothing . How can I display the thumbnail of video? | android|android-video-player|android-videoview | 0 | 2015-02-20T18:05:28.007Z | 2,015 | 2 | 18 | 4 | 787 | 1 | 249 | 45 | 3 | 2 | true | false | false | false | false | false | zero |
28,635,470 | Android Studio "Waiting For Process" only when used with a wearable device | <p>I'm having an incredibly frustrating time using Android Studio with wearable devices.
The problem is that when I try to run or debug the wearable app Android Studio doesn't do anything most of the time, it hangs there with the last message being
"Waiting for process: com.name of my wearable app".</p>
<p>I can get ... | I'm having an incredibly frustrating time using Android Studio with wearable devices. The problem is that when I try to run or debug the wearable app Android Studio doesn't do anything most of the time, it hangs there with the last message being "Waiting for process: com.name of my wearable app". I can get it to work m... | android|android-studio|adb|wear-os | 3 | 2015-02-20T18:08:13.980Z | 2,015 | 2 | 18 | 4 | 1,448 | 2 | 1,914 | 74 | 4 | 0 | false | false | false | false | false | false | low |
28,635,540 | Android button with transparent text | <p>I have a button on an image. I would like to have this button with a solid background color and transparent text (to display the back image). Is it possible to make it have only transparent text?</p> | I have a button on an image. I would like to have this button with a solid background color and transparent text (to display the back image). Is it possible to make it have only transparent text? | java|android|android-button|android-shape | 2 | 2015-02-20T18:12:44.077Z | 2,015 | 2 | 18 | 4 | 1,433 | 3 | 195 | 36 | 4 | 0 | false | false | false | false | false | false | low |
28,635,546 | Adding event to Android default Calendar automatically | <p>I'm trying to insert new event onto default calendar. So far I have tried two methods:</p>
<p><strong>1. Adding calendar event (but not showing on Default Calendar App)</strong></p>
<p>The code is using somekind like below</p>
<pre><code> ContentValues event = new ContentValues();
event.put... | I'm trying to insert new event onto default calendar. So far I have tried two methods: 1. Adding calendar event (but not showing on Default Calendar App) The code is using somekind like below [CODE] 2. Using Intent which open up the Calendar App Eventhough this open up the calendar app, but it didn't store automaticall... | android|events|calendar | 1 | 2015-02-20T18:13:26.327Z | 2,015 | 2 | 18 | 4 | 2,006 | 1 | 676 | 54 | 3 | 2 | true | false | false | false | false | false | low |
28,635,687 | Android contextual action bar displays incorrect | <p>I use Appcompat v21.0.3.0</p>
<p>On Genymotion (Android 4.0.5), Samsung GT-I8730 (4.1.2) and Sony Xperia Z3 (5.0.2) <a href="http://i.stack.imgur.com/pwspf.png" rel="nofollow">contextual action bar displays as expected</a>.</p>
<p>But on Samsung Galaxy Note 2 (4.4.2) and Samsung Galaxy S4 (4.4.4) <a href="http://i... | I use Appcompat v21.0.3.0 On Genymotion (Android 4.0.5), Samsung GT-I8730 (4.1.2) and Sony Xperia Z3 (5.0.2) contextual action bar displays as expected . But on Samsung Galaxy Note 2 (4.4.2) and Samsung Galaxy S4 (4.4.4) it displays strange . What could be causing this? | android|xamarin|xamarin.android | 0 | 2015-02-20T18:23:06.787Z | 2,015 | 2 | 18 | 4 | 206 | 1 | 270 | 48 | 3 | 0 | false | false | false | false | false | false | zero |
28,635,719 | Launch setting battery stats activity | <p>I would like to know how I can open an activity of the phone setting application with an intent. I would like to oppen battery stats activity with a button.
Thank you !</p> | I would like to know how I can open an activity of the phone setting application with an intent. I would like to oppen battery stats activity with a button. Thank you ! | java|android|button|android-intent|setting | -1 | 2015-02-20T18:24:49.930Z | 2,015 | 2 | 18 | 4 | 99 | 1 | 168 | 37 | 5 | 0 | false | false | false | false | false | true | negative |
28,635,760 | how to setup proguard for my android project | <p>i am not able to configure proguard for my project. Following are the error that i am getting while i am trying to compile.</p>
<pre><code>[2015-02-20 23:42:12 - PsiphonAndroid] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager
[2015-02-20 ... | i am not able to configure proguard for my project. Following are the error that i am getting while i am trying to compile. [CODE] This is my proguard properties file: [CODE] | android|proguard | -1 | 2015-02-20T18:28:19.453Z | 2,015 | 2 | 18 | 4 | 920 | 1 | 174 | 44 | 2 | 2 | true | false | false | false | false | true | negative |
28,635,770 | Xamarin: Close Alert Dialog when back button pressed | <p>I'm new on Xamarin Android. I have a Activity and when the textview is pressed an alert is showed.
The code of AlertDialog is:</p>
<pre><code>textView1.Click += (sender, e) =>
{
AlertDialog.Builder alert = new AlertDialog.Builder(this);
alert.SetTitle("title");
... | I'm new on Xamarin Android. I have a Activity and when the textview is pressed an alert is showed. The code of AlertDialog is: [CODE] I need when the Back Button be pressed, this event close the AlertDialog. Thank You. PD: I'm dev on Visual Studio 2012 + Plugin Xamarin Editing (ρяσѕρєя K's Solution): [CODE] This contin... | c#|android|visual-studio-2012|xamarin|onbackpressed | 1 | 2015-02-20T18:29:05.823Z | 2,015 | 2 | 18 | 4 | 8,712 | 1 | 394 | 52 | 5 | 2 | true | false | true | false | false | false | low |
28,635,773 | google map api v2 - first steps | <p>I am new in using google map api v2.
i do every thing base on this tutorial:
<a href="http://code.tutsplus.com/tutorials/android-sdk-working-with-google-maps-application-setup--mobile-15771" rel="nofollow">Android SDK: Working with Google Maps - Application Setup
</a></p>
<p>but in 5 :</p>
<blockquote>
<ol star... | I am new in using google map api v2. i do every thing base on this tutorial: Android SDK: Working with Google Maps - Application Setup but in 5 : Add a Map to the App when i add fragment to may layout, i got some rendering error in my preview and show me stack overflow error. and when I Run my code this i see this erro... | android|google-maps|android-fragments | -1 | 2015-02-20T18:29:09.733Z | 2,015 | 2 | 18 | 4 | 158 | 1 | 420 | 31 | 3 | 2 | true | false | false | false | false | true | negative |
28,635,911 | failed to load ad:2 in android using admob | <p>i have trying to get test ad on my device from last 3 weeks but still no ad.
plz help me .
my logcat details is:</p>
<pre><code>01-04 14:09:22.099: D/WebView(1677): onSizeChanged - w:480 h:75
01-04 14:10:30.957: W/IInputConnectionWrapper(1677): getSelectedText on inactive InputConnection
01-04 14:10:30.957: W/IInpu... | i have trying to get test ad on my device from last 3 weeks but still no ad. plz help me . my logcat details is: [CODE] and main.java is: [CODE] and activity_main.xml is [CODE] and my mainfest.xml is: [CODE] plz help me to get out from this problem.... | android | 1 | 2015-02-20T18:37:33.683Z | 2,015 | 2 | 18 | 4 | 5,607 | 2 | 252 | 42 | 1 | 4 | true | false | true | false | false | false | low |
28,635,929 | Android - Send Email using JavaMail and OAuth2 | <p>I'm developing a basic email sender app that sends emails only to Gmail. After some time i figured out the hole scheme of the OAuth2 that Google now requires for authentication using the <code>getToken()</code> method from the <code>GoogleAuthUtil</code> API.</p>
<p>I've searched on the web for the JavaMail code to... | I'm developing a basic email sender app that sends emails only to Gmail. After some time i figured out the hole scheme of the OAuth2 that Google now requires for authentication using the getToken() method from the GoogleAuthUtil API. I've searched on the web for the JavaMail code to send the email using the token that ... | java|android|email | 4 | 2015-02-20T18:38:33.133Z | 2,015 | 2 | 18 | 4 | 2,368 | 1 | 538 | 46 | 3 | 1 | true | false | false | false | false | false | low |
28,635,945 | Processing: createShape returns null when called inside setup from eclipse | <p>I am migrating a working processing code into an Eclipse project because I want to use some android features which aren't easily available from PDE. Now I keep getting this nasty error:</p>
<pre><code>02-20 21:51:01.852: E/AndroidRuntime(19768): FATAL EXCEPTION: Animation Thread
02-20 21:51:01.852: E/AndroidRuntime... | I am migrating a working processing code into an Eclipse project because I want to use some android features which aren't easily available from PDE. Now I keep getting this nasty error: [CODE] The stack trace is simple, inside setup, I'm initializing a Board class: [CODE] Which in turn initializes a List of Cells. for ... | java|android|eclipse|processing | 0 | 2015-02-20T18:39:21.297Z | 2,015 | 2 | 18 | 4 | 295 | 1 | 1,124 | 74 | 4 | 6 | true | false | false | false | false | false | zero |
28,635,981 | Unable to send image to other apps via Intent | <p>I have saved image on the sdcard and then I am trying to send the image via Intent to other applications. however when I try the below code, other apps are not receiving image and also they appear to be crashing. Here str1 is the path to that image on the sdcard. What am I doing wrong here? Need help
Thanks</p>
<pr... | I have saved image on the sdcard and then I am trying to send the image via Intent to other applications. however when I try the below code, other apps are not receiving image and also they appear to be crashing. Here str1 is the path to that image on the sdcard. What am I doing wrong here? Need help Thanks [CODE] | android | 0 | 2015-02-20T18:41:20.507Z | 2,015 | 2 | 18 | 4 | 268 | 1 | 315 | 45 | 1 | 1 | true | false | false | false | false | false | zero |
28,635,992 | How does findViewById works on a multi hierarchy tree with many IDs from a Custom View? | <p>I have a quite complex View with many hierarchies. Within that, I have a CustomView called ExpandableText, in which I have a RelativeLayout and a TextView inside it with "expandable_text" as ID.</p>
<p>In my main view, I'm creating multiple instances of ExpandableView with the code:</p>
<pre><code><include layo... | I have a quite complex View with many hierarchies. Within that, I have a CustomView called ExpandableText, in which I have a RelativeLayout and a TextView inside it with "expandable_text" as ID. In my main view, I'm creating multiple instances of ExpandableView with the code: [CODE] These ExpandableViews are within a L... | android|tree | 0 | 2015-02-20T18:41:56.023Z | 2,015 | 2 | 18 | 4 | 1,457 | 1 | 1,292 | 87 | 2 | 1 | true | false | false | false | false | false | zero |
28,636,027 | WebView renders layout too small on the first page load | <p>When I open a webview from within the app and load this <a href="http://app.anne-eli.at/index.php?id=151" rel="nofollow noreferrer">page</a> for the first time, it is rendered in the wrong way: the content is rendered in a really thin column. See here: </p>
<p><img src="https://i.stack.imgur.com/s5wq1.png" alt="ent... | When I open a webview from within the app and load this page for the first time, it is rendered in the wrong way: the content is rendered in a really thin column. See here: As soon as I reload the webview or leave and open the fragment again, everything is fine: Killing the app (cleanup memory) makes the bug reproducib... | android|webview | 1 | 2015-02-20T18:43:48.950Z | 2,015 | 2 | 18 | 4 | 1,905 | 5 | 458 | 55 | 2 | 2 | true | false | false | false | false | false | low |
28,636,040 | App for phone and tablet | <p>I generated a test application and published in the Play Store (Google).</p>
<p>But when looking for the app in Play Store, using a tablet, it does not appear! If you use the phone, the application appears available.</p>
<ul>
<li>In the development environment, I can run the same application on both devices.</li>
... | I generated a test application and published in the Play Store (Google). But when looking for the app in Play Store, using a tablet, it does not appear! If you use the phone, the application appears available. In the development environment, I can run the same application on both devices. The images requested in google... | android|delphi|google-play|tablet|delphi-xe7 | 1 | 2015-02-20T18:44:41.770Z | 2,015 | 2 | 18 | 4 | 273 | 1 | 647 | 24 | 5 | 0 | false | false | false | false | false | false | low |
28,636,045 | Renderscript generating corrupted result without using CPU driver on some devices | <p>I have written an algorithm to generate HSV color wheel programatically by using Renderscript.</p>
<p>The renderscript implemenation is generating nice results on most devices, but on some devices (for example Moto E) I need to switch to CPU driver by using shell command</p>
<pre><code>adb shell setprop debug.rs.d... | I have written an algorithm to generate HSV color wheel programatically by using Renderscript. The renderscript implemenation is generating nice results on most devices, but on some devices (for example Moto E) I need to switch to CPU driver by using shell command [CODE] Can any one explain me why I need to do this, an... | android|renderscript | 0 | 2015-02-20T18:44:52.523Z | 2,015 | 2 | 18 | 4 | 59 | 0 | 367 | 81 | 2 | 1 | true | true | false | false | false | false | zero |
28,636,186 | Android Lollipop Patterns.WEB_URL wrong behavior | <p>I am validating a URL before to open using Patterns.WEB_URL. It works perfect until lollipop that return true to "<a href="http://www.google" rel="nofollow">http://www.google</a>" url for example.</p>
<pre><code>final String registrationUrl = "http://www.google";
final Pattern urlPattern = Patterns.WEB_URL;
Boo... | I am validating a URL before to open using Patterns.WEB_URL. It works perfect until lollipop that return true to " http://www.google " url for example. [CODE] Any idea how to validate a URL? URLUtil.isValidUrl() dont work for me. | android|url|design-patterns|android-5.0-lollipop | 1 | 2015-02-20T18:52:56.437Z | 2,015 | 2 | 18 | 4 | 579 | 0 | 229 | 48 | 4 | 1 | true | true | false | false | false | false | low |
28,636,242 | Warning: Degraded allocation. Consider increasing nursery-size if the warning persists | <p>I have suddenly the error in the subject but have no idea how to set this in VS2012.
Found this answer but dont get it exact how to adjust it:
<a href="https://stackoverflow.com/questions/18464295/degraded-allocation-consider-increasing-nursery-size-if-the-warning-persists">Degraded allocation. Consider increasing n... | I have suddenly the error in the subject but have no idea how to set this in VS2012. Found this answer but dont get it exact how to adjust it: Degraded allocation. Consider increasing nursery-size if the warning persists This is my complete error code: GC_OLD_BRIDGE num-objects 0 num_hash_entries 0 sccs size 0 init 0.0... | c#|android|mono|xamarin | 1 | 2015-02-20T18:56:57.370Z | 2,015 | 2 | 18 | 4 | 1,515 | 1 | 953 | 86 | 4 | 0 | false | false | false | false | false | false | low |
28,636,284 | Jsoup multiple connections - using already parsed element for URL | <p>Here's my PocetnaFragment.java: </p>
<pre><code>package gimbi.edu.ba;
import java.util.ArrayList;
import java.util.HashMap;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import android.app.Fragment;
import android.content.Context;
impor... | Here's my PocetnaFragment.java: [CODE] As usually, I'm parsing some data with jsoup within an AsyncTask. Now, I need to parse another url that should contain an element or w/e, e.g. aRightPostTekst.attr("href") . Could I do it inside the same asynctask or should I make a new one? Basically I need my url to be: "http://... | java|android|html|android-asynctask|jsoup | 0 | 2015-02-20T18:59:23.517Z | 2,015 | 2 | 18 | 4 | 1,415 | 2 | 829 | 65 | 5 | 1 | true | false | false | false | false | false | zero |
28,636,350 | Java Android - Set items in Alert Box | <p>I am trying to add string items into an alert dialog, but it doesn’t let me.
This is my Alert Box.</p>
<pre><code> AlertDialog.Builder builder2 = new AlertDialog.Builder(this);
builder2.setTitle("Make a choice from the list:");
builder2.setCancelable(false);
builder2.setItems(abb... | I am trying to add string items into an alert dialog, but it doesn’t let me. This is my Alert Box. [CODE] abbrev is just getting the first letters of each word. [CODE] Any Ideas? It doesn't let me Set Items to addrev. Error 1 : [CODE] Error 2 : [CODE] | java|android|android-alertdialog | 0 | 2015-02-20T19:02:42.373Z | 2,015 | 2 | 19 | 4 | 714 | 1 | 251 | 37 | 3 | 4 | true | false | false | false | false | false | zero |
28,636,367 | Is there a way to limit the time the screen is on with FLAG_KEEP_SCREEN_ON on Android? | <p>I don't want to use a WakeLock.
Is there a simple way to limit the time the screen is on using <a href="https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_KEEP_SCREEN_ON" rel="nofollow"><code>FLAG_KEEP_SCREEN_ON</code></a></p> | I don't want to use a WakeLock. Is there a simple way to limit the time the screen is on using FLAG_KEEP_SCREEN_ON | android|android-wake-lock | 0 | 2015-02-20T19:03:25.173Z | 2,015 | 2 | 19 | 4 | 334 | 1 | 114 | 86 | 2 | 0 | false | false | false | false | false | false | zero |
28,636,377 | Ripple effect over a RecyclerView item containing ImageView | <p>I have a <code>RecyclerView</code> that expands the following grid item :</p>
<pre><code><RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:l... | I have a RecyclerView that expands the following grid item : [CODE] But the ripple effect doesn't appear unless I set the SquareImageView's visibility to invisible. It seems the ripple effect is drawn below the SquareImageView . How can I can I make it drawn over the SquareImageView ? | android|android-recyclerview|ripple | 42 | 2015-02-20T19:03:59.967Z | 2,015 | 2 | 19 | 4 | 35,046 | 6 | 285 | 59 | 3 | 1 | true | false | true | true | true | false | high |
28,636,435 | How to rotate the bitmap properly? | <p>I've been having a lot of trouble with rotating the bitmaps.
The code below works, but it is 4-6 times slower than the Gallery app that comes with the Galaxy Note 2 phone.</p>
<p>Code:</p>
<pre><code> File DirectoryFile = new File(Image_Path);
Bitmap bitmap = BitmapFactory.decodeFile(DirectoryFile.getAbsol... | I've been having a lot of trouble with rotating the bitmaps. The code below works, but it is 4-6 times slower than the Gallery app that comes with the Galaxy Note 2 phone. Code: [CODE] Can someone please please guide me on this? How can I make it work like Gallery app? | android|matrix|bitmap|image-rotation | 5 | 2015-02-20T19:07:20.040Z | 2,015 | 2 | 19 | 4 | 347 | 1 | 269 | 34 | 4 | 1 | true | false | false | false | false | false | low |
28,636,581 | Is it possible to use Content URIs on a wearable to refer to content on the phone? | <p>If I have a <code>URI</code> referring to local content on a phone, such as <code>content://com.myapp/someimage</code> then using this url on a wearable device doesn't work (such as passing it to <code>ImageView</code>'s <code>setImageURI()</code> or using it with an <code>InputStream</code> in conjunction with a <c... | If I have a URI referring to local content on a phone, such as content://com.myapp/someimage then using this url on a wearable device doesn't work (such as passing it to ImageView 's setImageURI() or using it with an InputStream in conjunction with a BitmapFactory , stuff that does work if executed on the phone). I gue... | android|wear-os | 0 | 2015-02-20T19:18:08.377Z | 2,015 | 2 | 19 | 4 | 30 | 1 | 507 | 82 | 2 | 0 | false | false | false | false | false | false | zero |
28,636,592 | Fading a ImageView | <p>So I am trying to set an <code>ImageView</code> alpha. I am trying to make it compatible with api 14 so I have to use <code>.setAlpha()</code></p>
<p>Anyway the issue is simple I want it to fade in a viewable fashion but the thread i have doesn't allow the UI to update. I need to run it on the UI Thread but I need ... | So I am trying to set an ImageView alpha. I am trying to make it compatible with api 14 so I have to use .setAlpha() Anyway the issue is simple I want it to fade in a viewable fashion but the thread i have doesn't allow the UI to update. I need to run it on the UI Thread but I need to have the thread pause for a bit so... | java|android|multithreading | 0 | 2015-02-20T19:18:53.017Z | 2,015 | 2 | 19 | 4 | 86 | 1 | 594 | 18 | 3 | 1 | true | false | false | false | false | false | zero |
28,636,597 | Android - Activity constructor | <p>I noticed that using the shortcut <code>Alt + Insert</code> and selecting the builders, it tries to create a constructor with each private property (e.g. <code>cManager</code> and <code>mTextView</code>). I remember I already created projects without it and worked correctly.</p>
<p>The error happens when I run the ... | I noticed that using the shortcut Alt + Insert and selecting the builders, it tries to create a constructor with each private property (e.g. cManager and mTextView ). I remember I already created projects without it and worked correctly. The error happens when I run the application, following the full logcat and the Ac... | java|android|android-activity|constructor|android-lifecycle | 0 | 2015-02-20T19:19:14.517Z | 2,015 | 2 | 19 | 4 | 7,129 | 4 | 396 | 30 | 5 | 2 | true | false | true | false | false | false | zero |
28,636,600 | Dynamic row layout for ListView | <p>I have a ListView where I send data from a database using <code>SimpleCursorAdapter</code>, but I need to have dynamic row layout, because every table can have different number of columns.</p>
<p>Let's say I create <code>TextViews</code> according to the number of columns:</p>
<pre><code> public int getColumnNu... | I have a ListView where I send data from a database using SimpleCursorAdapter , but I need to have dynamic row layout, because every table can have different number of columns. Let's say I create TextViews according to the number of columns: [CODE] What I'm basically looking for, is a way to get these TextViews passed ... | android|android-layout|listview|textview | 1 | 2015-02-20T19:19:22.473Z | 2,015 | 2 | 19 | 4 | 1,150 | 1 | 1,110 | 31 | 4 | 3 | true | false | false | false | false | false | low |
28,636,621 | Replacing fragments blocks the animation of the drawer | <p>I've added a navigation drawer to my applicaton, it's one single activity that manage 3 fragments.
Now when I click in an item from the navigation drawer list, I get the position of selected item and I call the following method to display the selected fragment :</p>
<pre><code>private void displayView(int position)... | I've added a navigation drawer to my applicaton, it's one single activity that manage 3 fragments. Now when I click in an item from the navigation drawer list, I get the position of selected item and I call the following method to display the selected fragment : [CODE] and here is the replaceFragment() method : [CODE] ... | android|android-fragments|android-animation|navigation-drawer | 2 | 2015-02-20T19:20:58.650Z | 2,015 | 2 | 19 | 4 | 721 | 1 | 745 | 54 | 4 | 2 | true | false | false | false | false | false | low |
28,636,636 | How to enable location and enable toolbar inside of a fragment_map.xml? | <p>I have been able to display Google Maps to display inside the fragment, but I cannot do anything else with it! I just have the main activity pointing to the MapFragment.java file which points to the map_fragment.xml file.</p>
<p>fragment_map.xml</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<fragm... | I have been able to display Google Maps to display inside the fragment, but I cannot do anything else with it! I just have the main activity pointing to the MapFragment.java file which points to the map_fragment.xml file. fragment_map.xml [CODE] this is the MapFragment.java file [CODE] } Can anyone tell me where I am g... | java|android|xml|google-maps | 0 | 2015-02-20T19:22:05.770Z | 2,015 | 2 | 19 | 4 | 249 | 1 | 331 | 71 | 4 | 2 | true | false | false | false | false | false | zero |
28,636,690 | how to get the text of a edit text when after pressing a key | <p>I want to search a ListView when user types a text in a EditText. after pressing a key I need to get the typed part of text to begin the search. so is there any method I can use?? simple help is highly appreciated. </p> | I want to search a ListView when user types a text in a EditText. after pressing a key I need to get the typed part of text to begin the search. so is there any method I can use?? simple help is highly appreciated. | android|android-listview|textview|keylistener|android-event | 1 | 2015-02-20T19:25:02.400Z | 2,015 | 2 | 19 | 4 | 3,235 | 4 | 214 | 60 | 5 | 0 | false | false | true | false | false | false | low |
28,636,694 | Why RecyclerView.OnScrollListener is not an interface but an abstract class? | <p>To implement Endless Scroll pattern in to the <code>RecyclerView</code> I want to create a class like </p>
<pre><code>public class EndlessScrollAdapter<VH extends ViewHolder>
extends RecyclerView.Adapter<VH> implements RecyclerView.OnScrollListener {
}
</code></pre>
<p>Because <code>EndlessScr... | To implement Endless Scroll pattern in to the RecyclerView I want to create a class like [CODE] Because EndlessScrollAdapter should be responsible for both of the data and scroll event handling, this is the most convenient way to implement it. But, because in recyclerview-v7-21.0.3 , OnScrollListener declared like this... | android|android-recyclerview|endlessscroll | 18 | 2015-02-20T19:25:24.217Z | 2,015 | 2 | 19 | 4 | 13,403 | 4 | 541 | 76 | 3 | 2 | true | false | true | true | true | false | medium |
28,636,714 | NullPointerException after Closing App with Service still running | <p>When I close my application, the service that had been started is supposed to continue running in the background. For some reason, the application crashes and throws a NullPointerException upon closing it.</p>
<p>I am using a MQTTConstants class to keep all the Constants in one place, and within that class I have a... | When I close my application, the service that had been started is supposed to continue running in the background. For some reason, the application crashes and throws a NullPointerException upon closing it. I am using a MQTTConstants class to keep all the Constants in one place, and within that class I have a Hashset de... | java|android|multithreading|service|nullpointerexception | 0 | 2015-02-20T19:26:35.403Z | 2,015 | 2 | 19 | 4 | 638 | 1 | 1,675 | 65 | 5 | 5 | true | false | false | false | false | false | zero |
28,636,717 | Embed YouTube videos are downloading on Android phone instead of playing | <p>I have an AngularJS app that shows an embed Youtube video at the top of the page. The user can click buttons to change the video, which just updates the <code>ng-src</code>.</p>
<p>This works fine when viewed on a mobile website with a computer, or when viewed on my friends iPhone, but when I view the mobile site w... | I have an AngularJS app that shows an embed Youtube video at the top of the page. The user can click buttons to change the video, which just updates the ng-src . This works fine when viewed on a mobile website with a computer, or when viewed on my friends iPhone, but when I view the mobile site with my Android device i... | android|ios|angularjs|youtube | 1 | 2015-02-20T19:26:44.373Z | 2,015 | 2 | 19 | 4 | 238 | 0 | 1,015 | 72 | 4 | 2 | true | true | false | false | false | false | low |
28,636,836 | Ionic $ionicScrollDelegate.scrollBottom() closes keyboard on Android | <p>After call $ionicScrollDelegate.scrollBottom(); inside of a controller while the keyboard on Android is visible, then, the keyboard is automaticaly closed.</p>
<p>The keyboard should keep visible.</p>
<p>Anyone can help me to find out how to avoid this behavior?</p>
<p>A little piece of code:</p>
<pre><code>call... | After call $ionicScrollDelegate.scrollBottom(); inside of a controller while the keyboard on Android is visible, then, the keyboard is automaticaly closed. The keyboard should keep visible. Anyone can help me to find out how to avoid this behavior? A little piece of code: [CODE] Thanks | android|angularjs|keyboard|ionic-framework | 0 | 2015-02-20T19:35:21.927Z | 2,015 | 2 | 19 | 4 | 968 | 1 | 286 | 68 | 4 | 1 | true | false | false | false | false | false | zero |
28,636,955 | How to fix: java.lang.ClassCastException: java.util.ArrayList cannot be cast to double[] | <p>I encountered a problem when I tried to run the following code:</p>
<p>When I trying to get item from <code>ArrayList<double[]> list</code> but it throws <code>ClassCastException</code></p>
<p>Method <code>list.get(i)</code> also throws excexption</p>
<pre><code>public void drawRoutes(ArrayList<String>... | I encountered a problem when I tried to run the following code: When I trying to get item from ArrayList<double[]> list but it throws ClassCastException Method list.get(i) also throws excexption [CODE] method getRoutes() : [CODE] Full stacktrace is: [CODE] When I used this method everythink worked: [CODE] | java|android|generics|classcastexception | 4 | 2015-02-20T19:42:18.887Z | 2,015 | 2 | 19 | 4 | 5,518 | 1 | 306 | 88 | 4 | 4 | true | false | true | false | false | false | low |
28,636,958 | Is my Service working properly? | <p>I am attempting to familiarize myself with the android <a href="http://developer.android.com/reference/android/app/Service.html" rel="nofollow noreferrer" title="http://developer.android.com/reference/android/app/Service.html">Service</a>, for the purpose of overlaying the screen and drawing to it/interacting with t... | I am attempting to familiarize myself with the android Service , for the purpose of overlaying the screen and drawing to it/interacting with the user outside of the app. I know services aren't meant to interact with the user, but I can't find another way of accomplishing this. I have found some resources that were quit... | android|android-service | 1 | 2015-02-20T19:42:32.177Z | 2,015 | 2 | 19 | 4 | 60 | 1 | 1,286 | 31 | 2 | 3 | true | false | false | false | false | false | low |
28,636,981 | Git plugin for Android Studio without any additional external programs | <p>With Eclipse I was able to install just <a href="http://crunchify.com/how-to-configure-bitbucket-git-repository-in-you-eclipse/" rel="nofollow">a simple plugin</a>, that allowed me to use BitBucket with it. Everything I needed was inside Eclipse.
Is there such a plugin for Android Studio too? I still want to use Bit... | With Eclipse I was able to install just a simple plugin , that allowed me to use BitBucket with it. Everything I needed was inside Eclipse. Is there such a plugin for Android Studio too? I still want to use BitBucket for my projects, and I don't want to install any additional programs, like SourceTree, Mercurial, or wh... | android-studio|mercurial|bitbucket | 0 | 2015-02-20T19:44:00.407Z | 2,015 | 2 | 19 | 4 | 175 | 1 | 326 | 70 | 3 | 0 | false | false | false | false | false | false | zero |
28,637,037 | Pushing new content to emulator | <p>English is not my mother language </p>
<p>I have a problem with Unity.
I connect my Nexus 5 to computer and try to build and run my app to my phone (USB debugging in enabled). But it saying "Pushing new content to device emulator 5554". When I disconnect and reconnect phone or clicked "end task" adb.exe in Task Ma... | English is not my mother language I have a problem with Unity. I connect my Nexus 5 to computer and try to build and run my app to my phone (USB debugging in enabled). But it saying "Pushing new content to device emulator 5554". When I disconnect and reconnect phone or clicked "end task" adb.exe in Task Manager it work... | unity3d|android-emulator|adb | 0 | 2015-02-20T19:47:28.780Z | 2,015 | 2 | 19 | 4 | 310 | 1 | 379 | 31 | 3 | 0 | false | false | false | false | false | false | zero |
28,637,046 | IllegalArgumentException: No view found for id in fragments | <p>I tried searching all SO questions but seems its because missing setContentView or need clean the project, my issue its i got java.lang.IllegalArgumentException: No view found for id but its "random" i can't figure out why some devices throw this exception i have
Activity->FragmentA->Nested fragment
and works great... | I tried searching all SO questions but seems its because missing setContentView or need clean the project, my issue its i got java.lang.IllegalArgumentException: No view found for id but its "random" i can't figure out why some devices throw this exception i have Activity->FragmentA->Nested fragment and works great but... | android|android-fragments|fragment|fragmenttransaction | 1 | 2015-02-20T19:47:58.333Z | 2,015 | 2 | 19 | 4 | 1,675 | 1 | 691 | 59 | 4 | 2 | true | false | false | false | false | false | low |
28,637,151 | The method that sends e-mail works, but how to prevent the amount of spam received emails come? | <p>I have a method that sends email in back ground that works well, but I need to find a way that as the amount of incoming emails do not see spam. Already researched the JMS framework (Java Message Service) but not found a way to make this work and did not find an example.</p>
<p>The idea is to call this frame work a... | I have a method that sends email in back ground that works well, but I need to find a way that as the amount of incoming emails do not see spam. Already researched the JMS framework (Java Message Service) but not found a way to make this work and did not find an example. The idea is to call this frame work and spend th... | android|email|smtp|jms|spam-prevention | 0 | 2015-02-20T19:55:03.057Z | 2,015 | 2 | 19 | 4 | 46 | 0 | 633 | 95 | 5 | 1 | true | true | false | false | false | false | zero |
28,637,209 | Material design: Where to place elevation in android styles? | <p>I want to set item elevation in some of my app's styles. Now elevation is only 21 and higher with no support library, so my natural inclination was to just create a styles-v21 xml and place it in there:</p>
<pre><code><style name="Widget.MyApp.Drawer" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
<it... | I want to set item elevation in some of my app's styles. Now elevation is only 21 and higher with no support library, so my natural inclination was to just create a styles-v21 xml and place it in there: [CODE] The problem with this is any changes I make to Widget.MyApp.Drawer in the regular styles.xml file will be over... | android|android-styles | 3 | 2015-02-20T19:58:32.310Z | 2,015 | 2 | 19 | 4 | 2,351 | 1 | 1,580 | 60 | 2 | 3 | true | false | false | false | false | false | low |
28,637,267 | Upload Free App for specific countries | <p>I published a paid App in Google play store, but i need the same App to be available free for specific countries, is this possible and how to do it ?</p> | I published a paid App in Google play store, but i need the same App to be available free for specific countries, is this possible and how to do it ? | android|google-play | 0 | 2015-02-20T20:01:54.143Z | 2,015 | 2 | 20 | 4 | 165 | 1 | 149 | 38 | 2 | 0 | false | false | false | false | false | false | zero |
28,637,339 | What's practical purpose of cursorLoader? | <p>I saw some articles about <code>CursorLoader</code> like <a href="https://d.android.com/reference/android/content/CursorLoader" rel="nofollow noreferrer">this</a>, but I still don't understand the particular purpose of using it.</p>
<p>I developed apps with SQL and cursor retrieving. The point is it was very fast. ... | I saw some articles about CursorLoader like this , but I still don't understand the particular purpose of using it. I developed apps with SQL and cursor retrieving. The point is it was very fast. I queried and parsed cursor with >500 record and 8 columns by a few millisecond. So didn't notice any delay event on old pho... | android|android-sqlite|android-cursor|android-cursorloader | 0 | 2015-02-20T20:07:51.687Z | 2,015 | 2 | 20 | 4 | 2,897 | 4 | 352 | 41 | 4 | 0 | false | false | true | false | false | false | zero |
28,637,472 | Filter Edittext to accept word or number that doesn't start with 0 | <p>what I'm trying to do is to make Editext except only word or number that not start with zero so I did this </p>
<pre><code>mPatentNameET.setFilters(new InputFilter[] {
new InputFilter() {
public CharSequence filter(CharSequence src, int start,
... | what I'm trying to do is to make Editext except only word or number that not start with zero so I did this [CODE] but didn't work well, I want from EditText to accept for example "Test" or "546" , sorry for my bad English | java|android|filter|android-edittext | 0 | 2015-02-20T20:17:08.357Z | 2,015 | 2 | 20 | 4 | 216 | 2 | 221 | 66 | 4 | 1 | true | false | false | false | false | false | zero |
28,637,570 | Android L devices not sending notification card to Android Wear SmartWatch | <p>I'm trying to send a notification to an Android Wear SmartWatch when a button is clicked. It's working in all devices I have tested, except for the ones with Android L. Does anyone have any idea about what may be the problem? I have even paired the devices with an Android Wear SmartWatch emulator, but, again, it doe... | I'm trying to send a notification to an Android Wear SmartWatch when a button is clicked. It's working in all devices I have tested, except for the ones with Android L. Does anyone have any idea about what may be the problem? I have even paired the devices with an Android Wear SmartWatch emulator, but, again, it does n... | android|notifications|android-5.0-lollipop|wear-os | 3 | 2015-02-20T20:24:29.323Z | 2,015 | 2 | 20 | 4 | 325 | 0 | 647 | 74 | 4 | 3 | true | true | false | false | false | false | low |
28,637,644 | Run method on tap | <p>I am trying to build an application, similar to cookie clicker, and I cannot get any onclick to work. I do not mind what it ends up having to do. </p>
<p>I've had a look around, and couldn't find anything that worked for me. This includes numerous DuckDuckGo searches, countless searches on-site, and my melted brain... | I am trying to build an application, similar to cookie clicker, and I cannot get any onclick to work. I do not mind what it ends up having to do. I've had a look around, and couldn't find anything that worked for me. This includes numerous DuckDuckGo searches, countless searches on-site, and my melted brain. mainactivi... | java|android | 0 | 2015-02-20T20:29:18.133Z | 2,015 | 2 | 20 | 4 | 66 | 2 | 624 | 17 | 2 | 3 | true | false | false | false | false | false | zero |
28,637,670 | Toast background color changed after changing app background color from styles | <p>I have changed the background color of my app by adding "#FFFFFF" to my styles.xml file. The problem is, that the background color of Toasts in my app have changed as well.</p>
<p>Is there any way to change it back or to prevent the overriding of the background color of the Toast?</p>
<p>Cheers!</p>
<p>styles.xml... | I have changed the background color of my app by adding "#FFFFFF" to my styles.xml file. The problem is, that the background color of Toasts in my app have changed as well. Is there any way to change it back or to prevent the overriding of the background color of the Toast? Cheers! styles.xml: [CODE] | java|android|themes|android-toast | 0 | 2015-02-20T20:31:45.523Z | 2,015 | 2 | 20 | 4 | 661 | 1 | 301 | 78 | 4 | 1 | true | false | false | false | false | false | zero |
28,637,679 | How To Format A Decimal Number With Exponential factor? | <p>I have this number</p>
<blockquote>
<p>1.2345679E6</p>
</blockquote>
<p>How can I format it to
1.23E6 using <code>DecimalFormat</code>?</p>
<pre><code> DecimalFormat df = new DecimalFormat("#.##");
</code></pre> | I have this number 1.2345679E6 How can I format it to 1.23E6 using DecimalFormat ? [CODE] | java|android|decimal|decimalformat | 2 | 2015-02-20T20:32:13.200Z | 2,015 | 2 | 20 | 4 | 422 | 1 | 89 | 55 | 4 | 1 | true | false | false | false | false | false | low |
28,637,690 | Android Immersive mode not working properly with SlidingMenu | <p>Hi guys I have a problem with android Immersive mode, the problem is that it works perfect with every activity I have except one that have SlidingMenu setup.</p>
<p>Here is my code that I use.</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-... | Hi guys I have a problem with android Immersive mode, the problem is that it works perfect with every activity I have except one that have SlidingMenu setup. Here is my code that I use. [CODE] Here is my ScreenShot that Immersive mode works perfect. And Here is my ScreenShot from activity that has SlidingMenu and rises... | android|slidingmenu|android-fullscreen | 1 | 2015-02-20T20:32:57.913Z | 2,015 | 2 | 20 | 4 | 272 | 0 | 394 | 60 | 3 | 1 | true | true | false | false | false | false | low |
28,637,695 | AsyncTask toString() method does not work | <p>I am trying to create a domain in AWS-SimpleDB inside an AsyncTask class, but the App crashes every time I execute it. The code snippet for the case where it works and it crashes are below:</p>
<p>This works:</p>
<pre><code> protected Void doInBackground(Param... params) {
private static final String... | I am trying to create a domain in AWS-SimpleDB inside an AsyncTask class, but the App crashes every time I execute it. The code snippet for the case where it works and it crashes are below: This works: [CODE] But, when I wanted to add the Date String to the Domain name, the app crashes: [CODE] What am I doing wrong her... | android|amazon-web-services|android-asynctask|tostring|amazon-simpledb | 0 | 2015-02-20T20:33:17.260Z | 2,015 | 2 | 20 | 4 | 87 | 1 | 383 | 41 | 5 | 2 | true | false | false | false | false | false | zero |
28,637,706 | How do I connect my Android app to a remote MySQL database? | <p>I'm new to android app development. </p>
<p>Can I connect directly to a remote MySQL database?</p>
<p>If not, do I need to send a <code>POST</code> or <code>GET</code> request to a URL that'll handle the database instead?</p>
<p>Is it dangerous to connect directly to a remote MySQL database since you'd put the us... | I'm new to android app development. Can I connect directly to a remote MySQL database? If not, do I need to send a POST or GET request to a URL that'll handle the database instead? Is it dangerous to connect directly to a remote MySQL database since you'd put the username and password in your code where anyone can see ... | java|android|mysql | 1 | 2015-02-20T20:34:04.910Z | 2,015 | 2 | 20 | 4 | 1,026 | 1 | 323 | 59 | 3 | 0 | false | false | false | false | false | false | low |
28,637,731 | When phone is offline GCM stores a LIST of messages or only the last one, just like APNS? | <p>When phone is offline GCM stores a LIST of messages or only the last one, just like APNS?</p>
<p>I've read a lot about it, but as the documentation says:<br/>
1. The GCM connection server enqueues and stores the message if the device is offline.<br/>
2. When the device is online, the GCM connection server <strong>s... | When phone is offline GCM stores a LIST of messages or only the last one, just like APNS? I've read a lot about it, but as the documentation says: 1. The GCM connection server enqueues and stores the message if the device is offline. 2. When the device is online, the GCM connection server sends the message to the devic... | android|push-notification|apple-push-notifications|google-cloud-messaging | 1 | 2015-02-20T20:35:59.993Z | 2,015 | 2 | 20 | 4 | 1,883 | 2 | 421 | 89 | 4 | 0 | false | false | false | false | false | false | low |
28,637,822 | Android: How to center a component in a custom view in action bar? | <p>I have a layout like this :</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_height="50dp" >
<TextView
android:id="@+id/title_text"
android:l... | I have a layout like this : [CODE] Now I added it successfuly as a custom view for action bar . But the problem is i cannot center the TextView , I have used a lot of way like android:gravity="center" , android:layout_centerHorizontal="true" , but it doesn't work. It always float to the left. How can I center it? | android|layout|view|center | 0 | 2015-02-20T20:43:21.823Z | 2,015 | 2 | 20 | 4 | 419 | 1 | 314 | 66 | 4 | 1 | true | false | false | false | false | false | zero |
28,637,995 | findViewById problems for webview in navigation drawer | <p>I'm getting something wrong with setcontentview & findviewbyid. I'm trying to pull up a webpage when the user, using the navigation drawer, clicks on the blackboard button.</p>
<p>fragment.java</p>
<pre><code>import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import andr... | I'm getting something wrong with setcontentview & findviewbyid. I'm trying to pull up a webpage when the user, using the navigation drawer, clicks on the blackboard button. fragment.java [CODE] and the xml file: [CODE] I have been stuck on this for the past couple of days. Thanks in advance!!! -David | java|android|xml|android-fragments|webview | 1 | 2015-02-20T20:54:06.247Z | 2,015 | 2 | 20 | 4 | 755 | 1 | 301 | 54 | 5 | 2 | true | false | false | false | false | false | low |
28,638,018 | Run windows CMD from Android over USB | <p>I was wondering if it is possible to run a windows cmd.exe command from an android phone which is connected to the target PC via USB. Taking the same effect as <code>Runtime.getRuntime.exec("explorer.exe");</code> in java on a windows PC. Is it even possible to do? And is it possible to do this on USB connection?</p... | I was wondering if it is possible to run a windows cmd.exe command from an android phone which is connected to the target PC via USB. Taking the same effect as Runtime.getRuntime.exec("explorer.exe"); in java on a windows PC. Is it even possible to do? And is it possible to do this on USB connection? | android|windows|cmd|usb | 0 | 2015-02-20T20:55:28.010Z | 2,015 | 2 | 20 | 4 | 751 | 1 | 301 | 37 | 4 | 0 | false | false | false | false | false | false | zero |
28,638,022 | Create a GridView with Two Different Columns | <p>I'm trying to create a GridView that will have two different types of items. </p>
<p>The first few items will take up one entire row. As the user continues to scroll, there will start to show two items per row like this:</p>
<p><a href="http://imgur.com/YFSUxVI" rel="nofollow">http://imgur.com/YFSUxVI</a></p>
<p>... | I'm trying to create a GridView that will have two different types of items. The first few items will take up one entire row. As the user continues to scroll, there will start to show two items per row like this: http://imgur.com/YFSUxVI How can I achieve this type of grid view? With iOS's UICollectionView it's easy to... | android|gridview|android-recyclerview|gridlayoutmanager | 1 | 2015-02-20T20:55:49.420Z | 2,015 | 2 | 20 | 4 | 687 | 1 | 425 | 44 | 4 | 0 | false | false | false | false | false | false | low |
28,638,077 | Android ListView multiple Headers | <p>I would like to create a ListView like this, for example:</p>
<pre><code>JOHN ANDREW LUKE
01 15 55
10 25 60
12 30
</code></pre>
<p>that is, each column with its data, in practice each name must be the header of each column ....... | I would like to create a ListView like this, for example: [CODE] that is, each column with its data, in practice each name must be the header of each column .... how can I set the Adapter? Do you have any idea? I looked around but I could not find examples. Thank You | android|listview|adapter | 0 | 2015-02-20T20:58:21.983Z | 2,015 | 2 | 20 | 4 | 460 | 1 | 267 | 33 | 3 | 1 | true | false | false | false | false | false | zero |
28,638,192 | Change custom title bar height in code for specific screens | <p>I want to set custom title height in code in begining of Activity life cycle insted of doing it in the styles section.</p>
<pre><code>getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,
R.layout.customtitlebar);
</code></pre>
<p>Now I want to set height atttribute.</p>
<p>The reason... | I want to set custom title height in code in begining of Activity life cycle insted of doing it in the styles section. [CODE] Now I want to set height atttribute. The reason is that I want certaing titles to contain more data then others. | android|android-titlebar|custom-titlebar | 1 | 2015-02-20T21:06:44.790Z | 2,015 | 2 | 21 | 4 | 147 | 0 | 238 | 59 | 3 | 1 | true | true | false | false | false | false | low |
28,638,239 | Creating a crop view | <p>I am trying to implement my own cropping screen.</p>
<p>See below image:</p>
<p><img src="https://s1.postimg.org/4cc64olen/desired_crop_screen.jpg" alt="screen sample"></p>
<p>The layout has a background and the image has listeners to move around the screen and zoom. I have a framelayout for the 'cropping transpa... | I am trying to implement my own cropping screen. See below image: The layout has a background and the image has listeners to move around the screen and zoom. I have a framelayout for the 'cropping transparency layer' and frame. This is what I have so far: [CODE] I am not the most familiar with drawable. What I am doing... | android|android-layout|android-drawable | 0 | 2015-02-20T21:10:13.527Z | 2,015 | 2 | 21 | 4 | 559 | 1 | 628 | 20 | 3 | 1 | true | false | false | false | false | false | zero |
28,638,242 | How to get current location in android from google services? | <p>I want to get the current location in a background service from google services.<br>
I know there's the <code>getLastLocation()</code> method, but its states on android developer website that it</p>
<blockquote>
<p>Returns the best most recent location currently available. If a
location is not available, which ... | I want to get the current location in a background service from google services. I know there's the getLastLocation() method, but its states on android developer website that it Returns the best most recent location currently available. If a location is not available, which should happen very rarely, null will be retur... | android | -1 | 2015-02-20T21:10:41.890Z | 2,015 | 2 | 21 | 4 | 94 | 2 | 466 | 60 | 1 | 0 | false | false | false | false | false | true | negative |
28,638,297 | Repeated random number questions | <p>I have the following class which needs to display random questions to the user.</p>
<p>However my issue is that the class displays only one question rather than asking questions continuously .
How can I repeat user questions in order to keep their! score?
See image below - <img src="https://i.stack.imgur.com/3Ltd2.... | I have the following class which needs to display random questions to the user. However my issue is that the class displays only one question rather than asking questions continuously . How can I repeat user questions in order to keep their! score? See image below - [CODE] | android|random|textview | 0 | 2015-02-20T21:12:59.823Z | 2,015 | 2 | 21 | 4 | 56 | 1 | 273 | 32 | 3 | 1 | true | false | false | false | false | false | zero |
28,638,386 | My obfuscates not work? | <p>I try make obfuscate to my android code but when I try decompile my <code>.Dex</code> file after export my project to .Apk, I found all my <code>class</code> and <code>field</code> name not changed.
I read article from developer.android and enable my Enabling <code>ProGuard</code> but obfuscate not work.<br>
Content... | I try make obfuscate to my android code but when I try decompile my .Dex file after export my project to .Apk, I found all my class and field name not changed. I read article from developer.android and enable my Enabling ProGuard but obfuscate not work. Contents of my proguard.cfg : [CODE] contents of project.propertie... | android|obfuscation | 0 | 2015-02-20T21:18:53.647Z | 2,015 | 2 | 21 | 4 | 47 | 1 | 330 | 23 | 2 | 2 | true | false | false | false | false | false | zero |
28,638,452 | android get an integer from a spinner similar to that of the method used for strings | <p>In two parts of my app I have spinners. One spinner provides a set of strings, and the one I'm currently working on is supposed to allow the user to select a preset number (10, 25, 50, 100) of questions to take a practice test with that many questions.</p>
<p>I figured it'd be a simple copy/paste of the current sp... | In two parts of my app I have spinners. One spinner provides a set of strings, and the one I'm currently working on is supposed to allow the user to select a preset number (10, 25, 50, 100) of questions to take a practice test with that many questions. I figured it'd be a simple copy/paste of the current spinner that w... | java|android|xml|integer|spinner | 1 | 2015-02-20T21:23:15.287Z | 2,015 | 2 | 21 | 4 | 2,806 | 1 | 829 | 84 | 5 | 3 | true | false | true | false | false | false | low |
28,638,467 | how to obfuscation android application with ProGuard | <p>I watched <a href="https://www.youtube.com/watch?v=5lRpIvCNX9s" rel="nofollow">this link</a> and My application use google play services. I added this lines </p>
<pre><code>-keep class * extends java.util.ListResourceBundle {
protected Object[][] getContents();
}
-keep public class com.google.android.gms.commo... | I watched this link and My application use google play services. I added this lines [CODE] but when i export my application gives this error: [CODE] I'm new on using proguard. I will publish my first android application. I dont understand these errors so any help? | android|proguard | 2 | 2015-02-20T21:23:50.610Z | 2,015 | 2 | 21 | 4 | 286 | 1 | 264 | 52 | 2 | 2 | true | false | false | false | false | false | low |
28,638,522 | Select all values except repetitive | <p>I have three tables.
First. Name: ExTable. Column: id(integer), name(text)</p>
<pre><code>--------------------
| id | name |
--------------------
| 1 | exA |
| 2 | exB |
| 3 | exC |
--------------------
</code></pre>
<p>Second: Name: CerTable. Column: id(integer), name(text)</p>
<p... | I have three tables. First. Name: ExTable. Column: id(integer), name(text) [CODE] Second: Name: CerTable. Column: id(integer), name(text) [CODE] Third: Name: CerExTable. Column: id(integer), id_cer(integer) from CerTable, id_ex(integer) - from ExTable. [CODE] So, I want to select data with id_cer = 2 and id_ex !=(not e... | android|sql|sqlite | 0 | 2015-02-20T21:27:26.070Z | 2,015 | 2 | 21 | 4 | 55 | 1 | 684 | 35 | 3 | 6 | true | false | false | false | false | false | zero |
28,638,528 | how to use wordpress authentication for user login in my android app | <p>I've build wordpress site and users can register and access their own data that is stored on different DB (WP using just as platform and users DB). now I like to add android application that retrieve some data from mySQL db (not WP DB). is it possible to use the wordpress authentication in order to login to the andr... | I've build wordpress site and users can register and access their own data that is stored on different DB (WP using just as platform and users DB). now I like to add android application that retrieve some data from mySQL db (not WP DB). is it possible to use the wordpress authentication in order to login to the android... | android|wordpress | 5 | 2015-02-20T21:27:33.167Z | 2,015 | 2 | 21 | 4 | 9,959 | 2 | 357 | 68 | 2 | 0 | false | false | true | false | false | false | low |
28,638,550 | NFC tag security - Android | <p>I'm working on application to work with nfc tags. Is there any way to secure a tag that only my application can write on it? Is there any good tutorial on this? I cant find anything about that.</p> | I'm working on application to work with nfc tags. Is there any way to secure a tag that only my application can write on it? Is there any good tutorial on this? I cant find anything about that. | android|security|nfc | 1 | 2015-02-20T21:29:13.980Z | 2,015 | 2 | 21 | 4 | 756 | 1 | 193 | 26 | 3 | 0 | false | false | false | false | false | false | low |
28,638,689 | Android - Read properties file without using context | <p>I have a simple class which is not an activity, so I don't have access to context, but I want to read a properties file in my project (rather than on sd card).</p>
<pre><code>MyClass {
public static void readProperties(){
Properties props=new Properties();
InputStream inputStream = this.getClas... | I have a simple class which is not an activity, so I don't have access to context, but I want to read a properties file in my project (rather than on sd card). [CODE] When I run the code though, I get a null pointer exception: 02-20 15:32:38.396: E/AndroidRuntime(27473): java.lang.NullPointerException: in == null 02-20... | java|android|eclipse | 1 | 2015-02-20T21:39:37.700Z | 2,015 | 2 | 21 | 4 | 1,301 | 1 | 790 | 52 | 3 | 1 | true | false | false | false | false | false | low |
28,638,798 | Absolute css positioning shows white space on android html | <p>When displaying the result of this HTML code on my galaxy tab 2, with "html viewer", there is a small empty white space between the header and content div, in portrait mode.</p>
<p><a href="http://jsfiddle.net/jkvuwn2h/" rel="nofollow">http://jsfiddle.net/jkvuwn2h/</a></p>
<p>(On this fiddle the space will not app... | When displaying the result of this HTML code on my galaxy tab 2, with "html viewer", there is a small empty white space between the header and content div, in portrait mode. http://jsfiddle.net/jkvuwn2h/ (On this fiddle the space will not appear ;) HTML: [CODE] CSS: [CODE] Do you have any idea how to fix this? Thanks i... | android|html|css | 0 | 2015-02-20T21:47:37.253Z | 2,015 | 2 | 21 | 4 | 155 | 1 | 330 | 58 | 3 | 2 | true | false | false | false | false | false | zero |
28,638,809 | Android NDK UnsatisfiedLinkError: "dlopen failed: empty/missing DT_HASH" | <p>I am tracking down crashes with our Android application (which uses the NDK to load a custom C++ library) using a crash reporting service. A small number of users are experiencing the following crash:</p>
<pre><code>java.lang.UnsatisfiedLinkError: dlopen failed: empty/missing DT_HASH in "cpplibrary.so" (bu... | I am tracking down crashes with our Android application (which uses the NDK to load a custom C++ library) using a crash reporting service. A small number of users are experiencing the following crash: [CODE] The couple of mentions of this error I can find on the internet (for example this Google Groups post ) discuss p... | android|c++|android-ndk|linker|java-native-interface | 13 | 2015-02-20T21:48:27.423Z | 2,015 | 2 | 21 | 4 | 11,875 | 8 | 999 | 72 | 5 | 3 | true | false | true | true | true | false | medium |
28,638,862 | Android and SQLite: Trigger is not updating? | <p>I'm programming in Android and I'm facing a problem when I try to insert a value.
I have 2 tables, GASTOS and DESPESAS.
Every time I insert a row in DESPESAS I have a TRIGGER to update a field in GASTOS, col_DESPESA (but this is not happening) although <strong>despesa.getQuantia()</strong> has the right value.</p>
... | I'm programming in Android and I'm facing a problem when I try to insert a value. I have 2 tables, GASTOS and DESPESAS. Every time I insert a row in DESPESAS I have a TRIGGER to update a field in GASTOS, col_DESPESA (but this is not happening) although despesa.getQuantia() has the right value. getGasto() is a method th... | android|android-sqlite | 0 | 2015-02-20T21:52:18.030Z | 2,015 | 2 | 21 | 4 | 59 | 0 | 599 | 44 | 2 | 1 | true | true | false | false | false | false | zero |
28,638,958 | Android capture photo putExtra(MediaStore.EXTRA_OUTPUT,Uri.fromFile(photoFile)); data is null | <pre><code> private File createImageFile() throws IOException {
// Create an image file name
String timeStamp = new SimpleDateFormat("yyyyMMdd_HHmmss").format(new Date());
String imageFileName = "JPEG_" + timeStamp + "_";
File storageDir = Environment.getExternalStoragePublicDirectory(
"MyIm... | [CODE] static final int REQUEST_TAKE_PHOTO = 1; [CODE] main.xml [CODE] Hi, I want to take photo and save to file "MyImages" which is I create, and i want to view the photo imageview. I can take photo and save it but i cant view with imageview. putExtra(MediaStore.EXTRA_OUTPUT,Uri.fromFile(photoFile)); data is null beca... | android|nullpointerexception|camera | 5 | 2015-02-20T21:59:37.307Z | 2,015 | 2 | 21 | 4 | 5,315 | 1 | 364 | 93 | 3 | 3 | true | false | true | false | false | false | low |
28,638,971 | PendingIntent and camera | <p>I have an Android app and I want to access the Camera from one of the activities. Besides, I want to store the photo inside the application internal directory (<code>data/data/package...</code>).</p>
<p>However the camera doesn't have the permission to write in this directory. I don't want to use my own implementa... | I have an Android app and I want to access the Camera from one of the activities. Besides, I want to store the photo inside the application internal directory ( data/data/package... ). However the camera doesn't have the permission to write in this directory. I don't want to use my own implementation of camera because ... | java|android|android-intent | 0 | 2015-02-20T22:00:32.660Z | 2,015 | 2 | 22 | 4 | 192 | 1 | 776 | 24 | 3 | 1 | true | false | false | false | false | false | zero |
28,639,001 | Android-compiler can't find meta data even though it is exist in the manifest file | <p>I am trying to run Google Cloud messaging system , logcat shows me that the
metadata is should include android name and android value, which is already
exist inside the manifest </p>
<pre><code>3016-3016/com.icanappz.gcmimplementation E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.icanappz.gcmimpl... | I am trying to run Google Cloud messaging system , logcat shows me that the metadata is should include android name and android value, which is already exist inside the manifest [CODE] that was the logcat and this is the mainfiest: [CODE] | java|android|android-studio | 0 | 2015-02-20T22:02:23.190Z | 2,015 | 2 | 22 | 4 | 1,189 | 3 | 238 | 82 | 3 | 2 | true | false | false | false | false | false | zero |
28,639,214 | Is there a list of Intellij keystrokes that aren't already used? | <p>I'm looking to a nice shortcut to open an external tool and everything easy seems like it is in use?</p>
<p>Is there a list somewhere of shortcuts reserved for users to add. Maybe just one so that I can use that as the first keystroke and have second keystrokes available to map a wide range of things.</p>
<p>Also ... | I'm looking to a nice shortcut to open an external tool and everything easy seems like it is in use? Is there a list somewhere of shortcuts reserved for users to add. Maybe just one so that I can use that as the first keystroke and have second keystrokes available to map a wide range of things. Also if you have one you... | intellij-idea|android-studio | 0 | 2015-02-20T22:18:44.200Z | 2,015 | 2 | 22 | 4 | 18 | 1 | 357 | 64 | 2 | 0 | false | false | false | false | false | false | zero |
28,639,295 | HTML5 geolocation in facebook app browser - no allow/block prompt | <p>I have a website which uses HTML5 geolocation. It works very well except through the Android Facebook in-app browser. This is the internal app browser that opens when a link is clicked in the Facebook app.</p>
<p>Normally when accessing the page a user would get a use location prompt (Allow / Block) but in the Face... | I have a website which uses HTML5 geolocation. It works very well except through the Android Facebook in-app browser. This is the internal app browser that opens when a link is clicked in the Facebook app. Normally when accessing the page a user would get a use location prompt (Allow / Block) but in the Facebook app no... | android|html|facebook|browser|geolocation | 8 | 2015-02-20T22:24:33.687Z | 2,015 | 2 | 22 | 4 | 1,084 | 3 | 699 | 65 | 5 | 0 | false | false | false | false | false | false | medium |
28,639,375 | Populate a GridView with 3 Lists | <p>I have 3 lists and i would like them to populate a gridview when the button is clicked.</p>
<p>In Layout.xml the griView has <code>numColumns</code> of 3</p>
<pre><code>private List<Strings> list1;
private List<Strings> list2;
private List<Strings> list3;
public void buttonOnClick(View v)
{
... | I have 3 lists and i would like them to populate a gridview when the button is clicked. In Layout.xml the griView has numColumns of 3 [CODE] I want the GridView to print like this [CODE] | java|android|gridview | 0 | 2015-02-20T22:29:57.920Z | 2,015 | 2 | 22 | 4 | 168 | 2 | 186 | 32 | 3 | 2 | true | false | false | false | false | false | zero |
28,639,437 | Home Button that doesn't work only while my own app is in foreground | <p>I have created a Home Screen replacement app. As per some of the suggestions here on SO, I approached this by creating the following two activities:</p>
<pre><code><activity
android:name=".Activities.GhostLauncherActivity"
android:enabled="false"
android:label="@string/title_activity_ghos... | I have created a Home Screen replacement app. As per some of the suggestions here on SO, I approached this by creating the following two activities: [CODE] Then toggling their enabled state as follows: [CODE] This works like a charm. Every time I run the Java code above, the user is prompted to select a Home Screen app... | android|homescreen|android-homebutton | 1 | 2015-02-20T22:35:37.293Z | 2,015 | 2 | 22 | 4 | 1,028 | 1 | 1,510 | 68 | 3 | 3 | true | false | false | false | false | false | low |
28,639,508 | Android, get real-world dimensions (inches, cm) from pixel difference? | <p>I have two image views that the user can move around on the screen:</p>
<pre><code><ImageView
android:layout_width="35dp"
android:layout_height="match_parent"
android:id="@+id/leftRulerView"/>
<ImageView
android:layout_width="35dp"
android:layout_... | I have two image views that the user can move around on the screen: [CODE] The are initialized in the following way: [CODE] When either is moving, I am calculating the actual physical distance between the two views (this will be used for measuring real-world objects). rightRulerView is ALWAYS to the right of the left, ... | android|dpi | 0 | 2015-02-20T22:43:13.197Z | 2,015 | 2 | 22 | 4 | 1,772 | 3 | 1,472 | 70 | 2 | 4 | true | false | false | false | false | false | zero |
28,639,580 | How to efficiently display images in Android | <p>I'm making a simple 2d game in android. However, even with only a few images on screen, I'm running into problems with fps(its around 15-25 and quite stuttery). </p>
<p>Currently I use canvas, and simply set up an image each frame with everything I need to display on it. </p>
<p>Here's some of my render code: </p>... | I'm making a simple 2d game in android. However, even with only a few images on screen, I'm running into problems with fps(its around 15-25 and quite stuttery). Currently I use canvas, and simply set up an image each frame with everything I need to display on it. Here's some of my render code: [CODE] This code runs for... | android|animation|canvas|graphics | -1 | 2015-02-20T22:48:09.700Z | 2,015 | 2 | 22 | 4 | 95 | 3 | 551 | 44 | 4 | 1 | true | false | false | false | false | true | negative |
28,639,636 | Phonegap 4.2.0 doesn't produce APK | <p>I'm trying to compile a simple Hello World phonegap application.</p>
<pre><code>phonegap create hello com.example.hello HelloWorld
phonegap cordova platform add android
</code></pre>
<p>I have JAVA installed, and Android SDK installed so everything works up until this point.</p>
<p>I then try to produce simple AP... | I'm trying to compile a simple Hello World phonegap application. [CODE] I have JAVA installed, and Android SDK installed so everything works up until this point. I then try to produce simple APK, by running [CODE] according to documentation it should appear in platform/android/bin but it just doesn't, I've tried variou... | android|cordova | 0 | 2015-02-20T22:54:18.663Z | 2,015 | 2 | 22 | 4 | 220 | 1 | 509 | 34 | 2 | 3 | true | false | false | false | false | false | zero |
28,639,816 | Android Studio library runtime error Stub! at com.amazon.device.messaging.ADMMessageReceiver.<init>() | <p>I have android-device-messaging-1.0.1.jar in the libs folder of my android library project. In my main project I am using this library project, when I am trying to run the program, I am getting the Stub error. Although I used the provided scope, the jar is included in the main application. How do i fix this am I doi... | I have android-device-messaging-1.0.1.jar in the libs folder of my android library project. In my main project I am using this library project, when I am trying to run the program, I am getting the Stub error. Although I used the provided scope, the jar is included in the main application. How do i fix this am I doing ... | android|android-gradle-plugin|amazon-device-messaging | 1 | 2015-02-20T23:11:47.887Z | 2,015 | 2 | 23 | 4 | 260 | 0 | 457 | 101 | 3 | 2 | true | true | false | false | false | false | low |
28,639,965 | AngularJs, Phonegap, Router and uiRouter | <p>This is driving me crazy.</p>
<p>I have a HREF within one of my pages </p>
<pre><code><a href="#/EventAdd">Click me ## ;)</a>
</code></pre>
<p>Which works fine on chrome but not within PhoneGap on android.</p>
<p>I have searched around and cannot find a solution any where.</p>
<p>State provider conf... | This is driving me crazy. I have a HREF within one of my pages [CODE] Which works fine on chrome but not within PhoneGap on android. I have searched around and cannot find a solution any where. State provider config for EventAdd shown below. [CODE] It displays no errors and just doesn't navigate off the screen. any tip... | javascript|android|angularjs|cordova|angular-ui-router | 0 | 2015-02-20T23:26:05.727Z | 2,015 | 2 | 23 | 4 | 96 | 1 | 322 | 40 | 5 | 2 | true | false | false | false | false | false | zero |
28,640,012 | Installing Android Studio in several Windows computers | <p>I am Java developer who is learning Android. I installed Android Studio in my machine, but it takes half an hour to download and install the packages I need.</p>
<p>Since I am a teacher and I eventually want to install Android Studio for my students, I wonder if there is a way to install Android Studio (with the pa... | I am Java developer who is learning Android. I installed Android Studio in my machine, but it takes half an hour to download and install the packages I need. Since I am a teacher and I eventually want to install Android Studio for my students, I wonder if there is a way to install Android Studio (with the packages and ... | android|android-studio | 0 | 2015-02-20T23:30:36.847Z | 2,015 | 2 | 23 | 4 | 73 | 1 | 502 | 54 | 2 | 0 | false | false | false | false | false | false | zero |
28,640,088 | How to break up string response? | <p>I am receiving a String response from the following @Override method</p>
<pre><code>@Override
publc void onSuccess(String response) {
....
}
</code></pre>
<p>The conflict I am facing is that I do not know how to break up this response into key value pairings. This is an example of the response.</p>
<p>{"action":{... | I am receiving a String response from the following @Override method [CODE] The conflict I am facing is that I do not know how to break up this response into key value pairings. This is an example of the response. {"action":{"generic_message":"test generic message"},"domains":{"key_example_one":"https:/google.com","api... | android|json|rest | 0 | 2015-02-20T23:38:14.747Z | 2,015 | 2 | 23 | 4 | 135 | 2 | 621 | 32 | 3 | 3 | true | false | false | false | false | false | zero |
28,640,116 | how to store Android database with variable number of attributes per row | <p>For my Android app, I want to save data using sqlite with this format:</p>
<p>name, date, attr1, attr2, attr3,...</p>
<p>These are the requirements:</p>
<ol>
<li>each date can only contain each name once</li>
<li>there can be a variable number of attributes(numbers) for each name</li>
<li>each specific name has t... | For my Android app, I want to save data using sqlite with this format: name, date, attr1, attr2, attr3,... These are the requirements: each date can only contain each name once there can be a variable number of attributes(numbers) for each name each specific name has the same number of attributes The app will be used t... | android|database|sqlite | 0 | 2015-02-20T23:40:12.713Z | 2,015 | 2 | 23 | 4 | 268 | 2 | 556 | 72 | 3 | 0 | false | false | false | false | false | false | zero |
28,640,180 | App makes the apps screen slow | <p>I am making a basic app in which the users can check their "dinning balance", i managed to do this by parsing the proper web page. </p>
<p>My app works just fine, but i found that when i exit it, the Current Running Apps Screen (Android app manager) goes really slow, even laggy, when my app is being displayed. </p>... | I am making a basic app in which the users can check their "dinning balance", i managed to do this by parsing the proper web page. My app works just fine, but i found that when i exit it, the Current Running Apps Screen (Android app manager) goes really slow, even laggy, when my app is being displayed. I tried to kill ... | android|performance|background|android-background | 3 | 2015-02-20T23:47:05.117Z | 2,015 | 2 | 23 | 4 | 1,094 | 1 | 624 | 30 | 4 | 1 | true | false | false | false | false | false | low |
28,640,189 | Comments missing from classes and methods from .aar file module | <p>I have a library project that I'm using to generate an .aar file and use with other projects but when I add the .aar file to a new studio project as a module I no longer can see the comments in the original code base. </p>
<p>When you create a library .aar file does it no longer keep the original code base's commen... | I have a library project that I'm using to generate an .aar file and use with other projects but when I add the .aar file to a new studio project as a module I no longer can see the comments in the original code base. When you create a library .aar file does it no longer keep the original code base's comments? | android|android-studio|android-library | 1 | 2015-02-20T23:47:29.780Z | 2,015 | 2 | 23 | 4 | 456 | 1 | 311 | 63 | 3 | 0 | false | false | false | false | false | false | low |
28,640,203 | Google Map api v2 Marker not moving until I rotate the phone and the map "refreshes" | <p>I have the following code :</p>
<p>public class MapsActivity extends FragmentActivity implements
GoogleApiClient.ConnectionCallbacks,
GoogleApiClient.OnConnectionFailedListener,
LocationListener {</p>
<pre><code>private GoogleMap mMap; // Might be null if Google Play services APK is not av... | I have the following code : public class MapsActivity extends FragmentActivity implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener, LocationListener { [CODE] I want the marker to move when the phone moves but it doesnt move until i rotate the phone and the screen rotates then the ... | java|android|google-maps|location|marker | 0 | 2015-02-20T23:49:06.830Z | 2,015 | 2 | 23 | 4 | 144 | 1 | 515 | 84 | 5 | 1 | true | false | false | false | false | false | zero |
28,640,233 | RecyclerView, GridLayoutManager and dynamic Spans count | <p>I encountered a strange bug with the <code>recyclerview</code>. I set and resize spans dynamically to fit with the informations downloaded from an AsyncTask.</p>
<p>Sometimes it doesn't display properly. It seems like it displays over the screen.!</p>
<p><a href="https://i.stack.imgur.com/ulzgT.png" rel="nofollow ... | I encountered a strange bug with the recyclerview . I set and resize spans dynamically to fit with the informations downloaded from an AsyncTask. Sometimes it doesn't display properly. It seems like it displays over the screen.! Then after one or more reload it displays correctly. It seems to go out the screen but I ca... | android|android-asynctask|android-recyclerview | 2 | 2015-02-20T23:53:40.177Z | 2,015 | 2 | 23 | 4 | 6,013 | 1 | 458 | 55 | 3 | 1 | true | false | true | false | false | false | low |
28,640,314 | Android Studio fails to debug with error org.gradle.process.internal.ExecException | <p>I am trying to run the app in debug mode but I get the following error:</p>
<pre><code>Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_11\bin\java.exe'' finished with no... | I am trying to run the app in debug mode but I get the following error: [CODE] Below is my build.gradle file: [CODE] Can anyone please help as this error is driving me crazy. My code is hitting 65k limit so I added multiDexEnabled option. EDIT My project architecture Thanks | android|android-studio|gradle | 45 | 2015-02-21T00:03:47.493Z | 2,015 | 2 | 0 | 5 | 73,421 | 3 | 274 | 82 | 3 | 2 | true | false | true | true | true | false | high |
28,640,380 | insterstitial ads not showing from google admob after app is published | <p>Im using admob to dipslay ads on my game which is published on the play store. During the first 3 days the interstitial ads showed fine but now it just shows a black screen.</p>
<p><a href="http://i.stack.imgur.com/jMk1A.png" rel="nofollow">What app shows instead of interstitial ad</a></p>
<p>That is what the scre... | Im using admob to dipslay ads on my game which is published on the play store. During the first 3 days the interstitial ads showed fine but now it just shows a black screen. What app shows instead of interstitial ad That is what the screen looks like. If you wanna see for yourself the game is delta shooter from delta p... | android|admob|google-play-services|ads | 0 | 2015-02-21T00:11:17.270Z | 2,015 | 2 | 0 | 5 | 533 | 1 | 403 | 70 | 4 | 0 | false | false | false | false | false | false | zero |
28,640,436 | How to use Socket as Intent extra in Android? | <p>I want to start a service which needs to send and receive somthing through an open <code>Socket</code> connection. That <code>Socket</code> is a field of an object, like this:</p>
<pre><code>public class A implements Serializable {
Socket socket;
}
</code></pre>
<p>I was planning to pass this object as an Inte... | I want to start a service which needs to send and receive somthing through an open Socket connection. That Socket is a field of an object, like this: [CODE] I was planning to pass this object as an Intent extra: [CODE] Of course, A is serializable, because it needs to be, in order to put it as an intent extra. But wait... | android|sockets|android-intent | 1 | 2015-02-21T00:16:16.953Z | 2,015 | 2 | 0 | 5 | 528 | 1 | 800 | 45 | 3 | 2 | true | false | false | false | false | false | low |
28,640,513 | Android Studio steps into wrong sdk source | <p>I've got the following build.gradle settings.</p>
<pre><code>compileSdkVersion 21
buildToolsVersion '21.1.1'
defaultConfig {
minSdkVersion 18
targetSdkVersion 21
}
</code></pre>
<p>The problem is that when I step into Android SDK source on an KitKat device (19 on Genymotion or Device), it still insists on... | I've got the following build.gradle settings. [CODE] The problem is that when I step into Android SDK source on an KitKat device (19 on Genymotion or Device), it still insists on stepping into Android-21 source instead of 19. Changing any of the above settings simply breaks the compilation of my app since I have v21 co... | android|debugging|android-studio | 44 | 2015-02-21T00:24:29.440Z | 2,015 | 2 | 0 | 5 | 10,616 | 3 | 482 | 42 | 3 | 1 | true | false | true | false | true | false | high |
28,640,548 | git: cherry-picking a newer gerrit patch | <p>I'm working with android development, so I'm cherry-picking some commits from other gerrits.</p>
<p>EDIT: Here in this picture you can see what I'm talking about:</p>
<p><a href="http://i.imgur.com/1oHgqVM.png" rel="nofollow">http://i.imgur.com/1oHgqVM.png</a> (Sorry I can't post images here)</p>
<p>I have cherry... | I'm working with android development, so I'm cherry-picking some commits from other gerrits. EDIT: Here in this picture you can see what I'm talking about: http://i.imgur.com/1oHgqVM.png (Sorry I can't post images here) I have cherry pick into my sources patch 1 and I uploaded to my github. Now I see they have uploaded... | android|git | 2 | 2015-02-21T00:29:11.703Z | 2,015 | 2 | 0 | 5 | 593 | 1 | 582 | 40 | 2 | 0 | false | false | false | false | false | false | low |
28,640,559 | how to putExtra and intent class together with one intent | <p>i want use one intent that intent class with put extra </p>
<pre><code> case R.id.button_6:
{
Intent intent = new Intent(this, class_);
this.startActivity(intent);
Intent i = new Intent(getApplicationContext(), class_.class);
i.putExtra("data",data);
startActivity(i);
... | i want use one intent that intent class with put extra [CODE] | android|android-intent | 0 | 2015-02-21T00:30:39.660Z | 2,015 | 2 | 0 | 5 | 63 | 3 | 61 | 57 | 2 | 1 | true | false | false | false | false | false | zero |
28,640,744 | "Jar mismatch! Fix your dependencies" error appears every new android project | <p>I'm getting the following errors every time create a new android application project</p>
<pre><code>Found 2 versions of android-support-v4.jar in the dependency list, but not all the versions are identical (check is based on SHA-1 only at this time). All versions of the libraries must be the same at this time. Vers... | I'm getting the following errors every time create a new android application project [CODE] I know that just deleting the jar file from the project's lib folder will remove the errors but do i have to do that every damn time i create a new project? Can this be permanently fixed no? I'm new to android development | java|android | 0 | 2015-02-21T00:51:27.133Z | 2,015 | 2 | 0 | 5 | 47 | 1 | 313 | 77 | 2 | 1 | true | false | false | false | false | false | zero |
28,640,773 | Java/Android Share variable between UI and Rendering threads (inconsistent results) | <p>The problem I'm facing is that I have some floats set up and these are:</p>
<pre><code>private volatile float yFromUI;
private volatile float yFromRenderThread;
private volatile float oldYFromUI;
private volatile float oldYFromRenderThread;
</code></pre>
<p>Within my <strong>onTouch</strong> method, my <em>ACTION_... | The problem I'm facing is that I have some floats set up and these are: [CODE] Within my onTouch method, my ACTION_MOVE case records the current and previous positions (I'm only concerned with Y coordinates). Like so: [CODE] Then, in my rendering thread (within my main Game-loop as this app is a game) - I grab a 'snaps... | android|multithreading|variables|synchronized|volatile | 0 | 2015-02-21T00:56:45.653Z | 2,015 | 2 | 0 | 5 | 144 | 1 | 1,348 | 83 | 5 | 3 | true | false | false | false | false | false | zero |
28,640,777 | Launching and Getting a String value from other application using ResultOfActivity | <p>I have two application in android: app 1 and app 2, from my app 1, i want to call the app 2 to perform some activity and return a string value using result of activity. Now my problem is, i already perform to call the app 2 from my app 1, but from my on Result Activity, when the app 2 is finish (), there is no value... | I have two application in android: app 1 and app 2, from my app 1, i want to call the app 2 to perform some activity and return a string value using result of activity. Now my problem is, i already perform to call the app 2 from my app 1, but from my on Result Activity, when the app 2 is finish (), there is no value re... | android | 1 | 2015-02-21T00:57:39.623Z | 2,015 | 2 | 0 | 5 | 32 | 0 | 490 | 82 | 1 | 4 | 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.