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,540,983 | Android - MediaRecorder start() throw IllegalStateException start-failed-2147483648 | <p>I am working on an App that requires recording a audio</p>
<p>Here's my partial code</p>
<pre><code>private MediaRecorder myAudioRecorder;
private String outputFile = null;
private Button start, stop, play;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | I am working on an App that requires recording a audio Here's my partial code [CODE] The above code threw IllegalStateException. I have every permission entered in AndroidManifest.xml , I am very sure there's nothing wrong in AndroidManifest.xml. I have read several solution but none of them working. How can I solve th... | android | 0 | 2015-02-16T12:00:32.023Z | 2,015 | 2 | 12 | 0 | 378 | 0 | 340 | 83 | 1 | 2 | true | true | false | false | false | false | zero |
28,541,030 | Debugging custom CordovaPlugin | <p>This is my first question here.</p>
<p>I am using Cordova 3.4.0-0.1.3 and would like to write a custom Android plugin. After some tutorials, I have managed to call my custom plugin from my Cordova app by executing "cordova run android" command. The app starts and with my remote debug console I can see my own "Hell... | This is my first question here. I am using Cordova 3.4.0-0.1.3 and would like to write a custom Android plugin. After some tutorials, I have managed to call my custom plugin from my Cordova app by executing "cordova run android" command. The app starts and with my remote debug console I can see my own "Hello world" mes... | android|cordova | 0 | 2015-02-16T12:03:14.603Z | 2,015 | 2 | 12 | 0 | 87 | 1 | 926 | 30 | 2 | 1 | true | false | false | false | false | false | zero |
28,541,114 | Android viewPager onPageSelected can't get correct database id with respect to viewPager position | <p>I have created the module for loading database record with id=1,2,3,4,5,... by getting the position of the viewPage Swiped as position index +1 . It has been implemented in OnPageChangeListener onPageSelected method. When it comes to the testing, it shows that the index shows zero at the beginning as 0,2,3,4 inst... | I have created the module for loading database record with id=1,2,3,4,5,... by getting the position of the viewPage Swiped as position index +1 . It has been implemented in OnPageChangeListener onPageSelected method. When it comes to the testing, it shows that the index shows zero at the beginning as 0,2,3,4 instead of... | android-fragments|android-viewpager|ormlite | 1 | 2015-02-16T12:08:41.257Z | 2,015 | 2 | 12 | 0 | 156 | 0 | 635 | 97 | 3 | 2 | true | true | false | false | false | false | low |
28,541,129 | how to store access token for facebook in social auth | <p>I am using social auth for integration of social app like facebook, google and many more. I successfully authorized and access token is printed in logcat but i want to store them for send to api.</p>
<pre><code>class SignUp extends Activity
{
SocialAuthAdapter adapter;
public void onCreate(Bundle SavedBundleIns... | I am using social auth for integration of social app like facebook, google and many more. I successfully authorized and access token is printed in logcat but i want to store them for send to api. [CODE] By This code i get the access token in logcat but dont know how to store it. | android|facebook|integration|socialauth | 0 | 2015-02-16T12:09:33.703Z | 2,015 | 2 | 12 | 0 | 2,139 | 2 | 279 | 53 | 4 | 1 | true | false | false | false | false | false | zero |
28,541,157 | Is it possible to connect wear emulator to android ICS 4.0 device? | <p>Is it possible to connect wear emulator to android ICS 4.0 device without downloading android wear app from play store on ICS device?</p> | Is it possible to connect wear emulator to android ICS 4.0 device without downloading android wear app from play store on ICS device? | android|wear-os|android-developer-api | -1 | 2015-02-16T12:11:12.280Z | 2,015 | 2 | 12 | 0 | 184 | 1 | 133 | 66 | 3 | 0 | false | false | false | false | false | true | negative |
28,541,182 | Add Elements to ArrayList that is inside LinkedHashMap [Android] | <p>I have a list of <code>User</code>s, each with a list of their <code>Group</code>s. Something like this:</p>
<pre><code>John -->[GroupA]
Peter --> [GroupB, GroupC]
Bob --> [GroupC]
Tom --> [GroupA,GroupB]
Jack --> []
</code></pre>
<p>Then I have my own list of groups:</p>
<pre><code>Me -->[G... | I have a list of User s, each with a list of their Group s. Something like this: [CODE] Then I have my own list of groups: [CODE] So what I want is to put the users in a "bucket" that matches their groups with mine. If the user has no groups, their will be added to a Generic group, in the list. So the result has to be ... | java|android|arraylist|linkedhashmap | 1 | 2015-02-16T12:12:33.570Z | 2,015 | 2 | 12 | 0 | 548 | 1 | 642 | 64 | 4 | 7 | true | false | false | false | false | false | low |
28,541,253 | Android Theme.AppCompat not found - but Google instructions respected | <p>I am fighting against Android and compatibility library AppCompat and I am loosing. I come here crying for help.</p>
<p>Since I would like to use a <code>NavigationDrawer</code> (using the code automatically generated by Android Studio) I have to start using the AppCompat library. My app does not work any more beca... | I am fighting against Android and compatibility library AppCompat and I am loosing. I come here crying for help. Since I would like to use a NavigationDrawer (using the code automatically generated by Android Studio) I have to start using the AppCompat library. My app does not work any more because the builder cannot f... | android | 1 | 2015-02-16T12:16:21.873Z | 2,015 | 2 | 12 | 0 | 150 | 4 | 1,033 | 69 | 1 | 4 | true | false | false | false | false | false | low |
28,541,280 | How to trust all ssl certificates on Worklight 6.2 | <p>My issue is how to connect between client and worklight server via https.</p>
<p>I've use self-signed ssl (without CA) and i want somehow to trust all certificates by pass the SSLHandshakeError.</p>
<p>Environments:</p>
<ul>
<li>Worklight 6.2</li>
<li>Android platform</li>
</ul>
<p>It is possible to use "single... | My issue is how to connect between client and worklight server via https. I've use self-signed ssl (without CA) and i want somehow to trust all certificates by pass the SSLHandshakeError. Environments: Worklight 6.2 Android platform It is possible to use "single-tone" HttpClientManager.getInstance().getHttpClient() lik... | android|cordova|ssl|https|ibm-mobilefirst | -1 | 2015-02-16T12:17:46.933Z | 2,015 | 2 | 12 | 0 | 323 | 1 | 694 | 50 | 5 | 0 | false | false | false | false | false | true | negative |
28,541,291 | ServerSocket while not breaks on image data inputstream | <p>I tried to send an image from One device to other Device using Bluetooth.For that I take Android Bluetooth chat application source code and it works fine when I send String.But If i send image as byte array the while loop not breaks or EOF not reached when read from Inputstream.</p>
<p><strong>Model:1</strong></p>
... | I tried to send an image from One device to other Device using Bluetooth.For that I take Android Bluetooth chat application source code and it works fine when I send String.But If i send image as byte array the while loop not breaks or EOF not reached when read from Inputstream. Model:1 It receives image properly.But h... | java|android|io|java-io | 0 | 2015-02-16T12:18:39.110Z | 2,015 | 2 | 12 | 0 | 215 | 1 | 685 | 55 | 4 | 2 | true | false | false | false | false | false | zero |
28,541,308 | How to remove fadding effect in VisualizerView | <p>I am using <a href="https://github.com/felixpalmer/android-visualizer" rel="nofollow noreferrer">felix library</a> for Bar Graph Visualization. And it is working fine. But <strong>i only want to remove the fading effect</strong>. Instead need a simple one Color BarGraph Animation. Just replace fading effect with Sim... | I am using felix library for Bar Graph Visualization. And it is working fine. But i only want to remove the fading effect . Instead need a simple one Color BarGraph Animation. Just replace fading effect with Simple Color. I tried by removing mFadePaint from VisualizerView but it is not Working properly then i try by re... | android|graph|porter-duff | 0 | 2015-02-16T12:19:41.893Z | 2,015 | 2 | 12 | 0 | 436 | 1 | 434 | 46 | 3 | 1 | true | false | false | false | false | false | zero |
28,541,352 | AlertDialog NullPointerException in Android source code | <p>A user reported a <code>NullPointerException</code> happening on the line of <code>onClick</code> of my AlertDialog:</p>
<pre><code>new AlertDialog.Builder(this)
.setTitle(getString(R.string.dialog_error))
.setMessage(getString(R.string.create_failed_error))
.setCancelable(false)
.se... | A user reported a NullPointerException happening on the line of onClick of my AlertDialog: [CODE] The error is thus rooted in the android.internal.app.AlertController on Line 160 : [CODE] From what I can guess mDialog is null here, but how can this happen? From the implementation we learn the dialog is stored in a weak... | java|android|garbage-collection|android-alertdialog|weak-references | 0 | 2015-02-16T12:22:18.930Z | 2,015 | 2 | 12 | 0 | 463 | 1 | 544 | 55 | 5 | 5 | true | false | false | false | false | false | zero |
28,541,447 | android mysql database returning null only in one field | <p>I'm pulling data from a database using JSON and MySQL in my android app. It successfully pulls the "Title" and "Image_URL" fields from my database. But my "Content" field, which contains large paragraphs of text, returns null. When I type in some short text, it shows up. But when copy/pasting my long paragraphs it r... | I'm pulling data from a database using JSON and MySQL in my android app. It successfully pulls the "Title" and "Image_URL" fields from my database. But my "Content" field, which contains large paragraphs of text, returns null. When I type in some short text, it shows up. But when copy/pasting my long paragraphs it retu... | php|android|mysql|json|database | 0 | 2015-02-16T12:27:23.520Z | 2,015 | 2 | 12 | 0 | 144 | 0 | 681 | 55 | 5 | 1 | true | true | false | false | false | false | zero |
28,541,459 | Getting 403 forbidden when using Twitter Fabric to get user_timeline | <p>I've been trying to implement Fabric to get a list of the 5 latest tweet from a user. It worked great for a few hours and then it stopped working. I would like to do this without having the user log in, and as far as I can tell the API allows guest-logins to read tweets, but maybe this has a greater effect on the Ra... | I've been trying to implement Fabric to get a list of the 5 latest tweet from a user. It worked great for a few hours and then it stopped working. I would like to do this without having the user log in, and as far as I can tell the API allows guest-logins to read tweets, but maybe this has a greater effect on the Rate ... | android|twitter|twitter-fabric | 4 | 2015-02-16T12:27:47.060Z | 2,015 | 2 | 12 | 0 | 3,042 | 3 | 672 | 68 | 3 | 1 | true | false | true | false | false | false | low |
28,541,508 | Google Plus SDK delete account and revokeAccessAndDisconnect | <p><a href="https://developers.google.com/+/mobile/android/sign-in#revoking_access_tokens_and_disconnecting_the_app" rel="nofollow">Here</a> it says:</p>
<blockquote>
<p>To comply with the terms of the Google+ developer policies, you must
offer users that signed in with Google the ability to disconnect from
your... | Here it says: To comply with the terms of the Google+ developer policies, you must offer users that signed in with Google the ability to disconnect from your app. If the user deletes their account, you must delete the information that your app obtained from the Google APIs. Could that mean that I have also revoke acces... | android|google-plus | 0 | 2015-02-16T12:30:52.783Z | 2,015 | 2 | 12 | 0 | 77 | 1 | 785 | 60 | 2 | 0 | false | false | false | false | false | false | zero |
28,541,525 | Ionic Angularjs ui-calendar fetching the event based on month | <p>Hi I am new to angularjs i am try to use jquery full-calendar <a href="http://angular-ui.github.io/ui-calendar/" rel="nofollow">http://angular-ui.github.io/ui-calendar/</a> of the angular version. My question is I am able to fetch all event on load., Is it possible to fetch the event of click on next or prev (Based... | Hi I am new to angularjs i am try to use jquery full-calendar http://angular-ui.github.io/ui-calendar/ of the angular version. My question is I am able to fetch all event on load., Is it possible to fetch the event of click on next or prev (Based on the month to fetch the event of that particular month)? Code for fetch... | android|angularjs|fullcalendar|ionic-framework | 0 | 2015-02-16T12:32:02.793Z | 2,015 | 2 | 12 | 0 | 1,007 | 1 | 754 | 61 | 4 | 3 | true | false | false | false | false | false | zero |
28,541,581 | Effective way of rendering a lot of quads (LibGDX/OpenGL ES) | <p>I want to ask you what is the most effective or atleast sufficient way to render a lot of quads. I want to render a lot of quads (atleast 150x150) aligned in grid. The quads will not have any textures, just solid background (green,black) but colors can be changed during a runtime. Thanks for your answers.</p> | I want to ask you what is the most effective or atleast sufficient way to render a lot of quads. I want to render a lot of quads (atleast 150x150) aligned in grid. The quads will not have any textures, just solid background (green,black) but colors can be changed during a runtime. Thanks for your answers. | android|graphics|opengl-es|render | 2 | 2015-02-16T12:35:50.917Z | 2,015 | 2 | 12 | 0 | 1,073 | 1 | 306 | 60 | 4 | 0 | false | false | false | false | false | false | low |
28,541,585 | Android : equals between pictures text | <p>iam working on some android app right now and i want to check if the button i clicked on(the text inside him) is equals to the Imageview(the image iam showing)text. (if the flag tahat in the picture is equale to the text in the answer button)and i have a problem
//the notes are in hebrew sorry
the line f = db.getFla... | iam working on some android app right now and i want to check if the button i clicked on(the text inside him) is equals to the Imageview(the image iam showing)text. (if the flag tahat in the picture is equale to the text in the answer button)and i have a problem //the notes are in hebrew sorry the line f = db.getFlag(n... | java|android|database|imageview|equals | 0 | 2015-02-16T12:36:06.640Z | 2,015 | 2 | 12 | 0 | 122 | 3 | 536 | 38 | 5 | 1 | true | false | false | false | false | false | zero |
28,541,594 | How to get objects from a JSON array? | <p>From this JSON array, I have to obtain the values <code>Q8</code> and <code>89</code>? How to get it?</p>
<pre><code>[{
"Policy_Id": "199",
"Status_Eng": "Approved",
"INFO": [
{
"Caption": "Chs No",
"Val": "Q8"
},
{
"Caption": "Reg No",
... | From this JSON array, I have to obtain the values Q8 and 89 ? How to get it? [CODE] My current code: [CODE] | android|arrays|json | -1 | 2015-02-16T12:36:46.300Z | 2,015 | 2 | 12 | 0 | 77 | 5 | 107 | 37 | 3 | 2 | true | false | false | false | false | true | negative |
28,541,598 | android: facebook opengraph , Failed to generate preview for user | <p>before i ask my question I've searched and found these subjects and tried them all</p>
<p><a href="https://stackoverflow.com/questions/20794734/failed-to-generate-preview-for-user">failed to generate preview for user</a></p>
<p><a href="https://stackoverflow.com/questions/21025174/android-facebook-sdf-exception-fa... | before i ask my question I've searched and found these subjects and tried them all failed to generate preview for user Android Facebook-sdf Exception: Failed to generate preview for user Facebook SDK failed to generate preview for user only when opengraphobject.setproperty("og:url") is set Also tried other po... | android|facebook|facebook-opengraph | 1 | 2015-02-16T12:36:55.343Z | 2,015 | 2 | 12 | 0 | 249 | 0 | 1,226 | 65 | 3 | 1 | true | true | false | false | false | false | low |
28,541,637 | Auto Zoom when change portrait to landscape in webview >19 | <p>webview zoom automatically when change orientation.
i want webview as normal screen no matter if it scrolling just want zoom out webview.
how to resolve this.</p>
<p>i played with initialscaling but no changes.</p>
<p>i have created custom webview</p>
<pre><code> package com.myapp.app;
import android.content.C... | webview zoom automatically when change orientation. i want webview as normal screen no matter if it scrolling just want zoom out webview. how to resolve this. i played with initialscaling but no changes. i have created custom webview [CODE] and java file like this. [CODE] in onCreate method. [CODE] here is my xml file ... | android | 2 | 2015-02-16T12:39:56.643Z | 2,015 | 2 | 12 | 0 | 889 | 2 | 430 | 58 | 1 | 5 | true | false | false | false | false | false | low |
28,541,644 | How to compare current time with time stored in the database in Android | <p>How to compare current date with value stored in the database? Currently my code looks as follows:</p>
<pre><code>final String dDate = cursor.getString(cursor.getColumnIndex(cursor.getColumnName(4)));
final String dTime = cursor.getString(cursor.getColumnIndex(cursor.getColumnName(5)));
Calendar calendar1 = Calenda... | How to compare current date with value stored in the database? Currently my code looks as follows: [CODE] | java|android | 1 | 2015-02-16T12:40:19.203Z | 2,015 | 2 | 12 | 0 | 4,262 | 2 | 105 | 71 | 2 | 1 | true | false | true | false | false | false | low |
28,541,725 | Android (Studio): Smaller screens issue | <p>I've seen a lot of topics on development for various Android phone screen sizes. I've read about all of the different development pages on this topic such as <a href="http://developer.android.com/guide/practices/screens_support.html#testing" rel="nofollow">this</a> and <a href="http://developer.android.com/guide/top... | I've seen a lot of topics on development for various Android phone screen sizes. I've read about all of the different development pages on this topic such as this and this one , but I'm still experiencing problems. Using Android Studio So let me first recap everything that is in my head right now concerning the differe... | android|android-layout | 0 | 2015-02-16T12:45:35.633Z | 2,015 | 2 | 12 | 0 | 1,806 | 1 | 1,641 | 39 | 2 | 0 | false | false | false | false | false | false | zero |
28,541,776 | Google Maps - Set an different image for a each marker using a drawable resource image | <p>I'm looking to set an different image for a each marker using a drawable resource image.</p>
<p>What I have is this.</p>
<pre><code>public View getInfoContents(Marker marker) {
View v = getLayoutInflater().inflate(R.layout.windowlayout, null);
TextView tv1 = (TextVie... | I'm looking to set an different image for a each marker using a drawable resource image. What I have is this. [CODE] This sets the image for a marker but I want it to be a different image for each marker. I was thinking about an if/else statement like this.. [CODE] Any suggestions are more then welcome. Thanks. Okay so... | android|google-maps|google-maps-android-api-2 | 0 | 2015-02-16T12:49:13.370Z | 2,015 | 2 | 12 | 0 | 1,187 | 5 | 413 | 86 | 3 | 3 | true | false | false | false | false | false | zero |
28,541,783 | Blocking outgoing SMS in Android. (except for default SMS app.) | <p>How can we generate the pop up if any app sending SMS?
I mean is there any way to block outgoing SMS through any app except default SMS app?</p>
<p>Any application can send SMS through android Phone with help of <code>SMSManager</code>. for example.</p>
<pre><code>SmsManager smsManager = SmsManager.getDefault(); ... | How can we generate the pop up if any app sending SMS? I mean is there any way to block outgoing SMS through any app except default SMS app? Any application can send SMS through android Phone with help of SMSManager . for example. [CODE] I want to block such SMS sending process or generate a pop-up on phone that "xyz a... | android|android-intent | 0 | 2015-02-16T12:49:38.963Z | 2,015 | 2 | 12 | 0 | 526 | 0 | 401 | 63 | 2 | 1 | true | true | false | false | false | false | zero |
28,541,804 | requestFeature() must be called before adding content exception | <p>I've seen lots of people asking about this and usually the answer has been something along the lines of: "Do it before </p>
<blockquote>
<p>setContentView(R.layout.test_layout);</p>
</blockquote>
<p>or</p>
<blockquote>
<p>Do it before super.onCreate(savedInstanceState);</p>
</blockquote>
<p>I've tried them b... | I've seen lots of people asking about this and usually the answer has been something along the lines of: "Do it before setContentView(R.layout.test_layout); or Do it before super.onCreate(savedInstanceState); I've tried them both, but putting it before setContentView(R.layout.test_layout); gives the exception, where as... | java|android|layout | 0 | 2015-02-16T12:50:50.300Z | 2,015 | 2 | 12 | 0 | 78 | 1 | 970 | 63 | 3 | 3 | true | false | false | false | false | false | zero |
28,541,809 | Android Studio displaying a warning unchecked call for the following code | <p>what is wrong with this? see code and warning message, can anyone elaborate. </p>
<pre><code>public void chooseBreakfast() {
ArrayAdapter planAdapter1 = new ArrayAdapter(this,
android.R.layout.simple_spinner_item, new Food[]{
new Food(1, "Toast"),
new Food(99, "Cerea... | what is wrong with this? see code and warning message, can anyone elaborate. [CODE] WARNING MESSAGE - Unchecked call to 'ArrayAdapter(Context, int, T[])' as a member of raw type 'android.widget.ArrayAdapter' less... (Ctrl+F1) [CODE] | java|android-studio | 6 | 2015-02-16T12:51:09.820Z | 2,015 | 2 | 12 | 0 | 6,158 | 1 | 232 | 73 | 2 | 2 | true | false | true | false | false | false | medium |
28,541,830 | How use Android supplied (custom) fonts? | <p>According to the <a href="https://developer.android.com/design/style/typography.html" rel="nofollow noreferrer">Android Typography</a> page Roboto font was introduced in Ice Cream Sandwich. I can download the <code>.ttf</code> files there or I can find it (and many others) in the <code><android-sdk>/platforms/... | According to the Android Typography page Roboto font was introduced in Ice Cream Sandwich. I can download the .ttf files there or I can find it (and many others) in the <android-sdk>/platforms/android-x/data/fonts directory (where x is ICS version and higher). If I want to actually use this font in my app do I still ne... | android|fonts|textview|android-assets|android-sdk-2.3 | 1 | 2015-02-16T12:52:07.617Z | 2,015 | 2 | 12 | 0 | 365 | 3 | 942 | 40 | 5 | 0 | false | false | false | false | false | false | low |
28,541,909 | Continuous crossfade of images and out of memory | <p>I have an activity that show some full screen images in crossfade. There are a total of 6 images. To do this I used 2 ImageViews and 2 animation playing at the same time, one that fades out the first image and one that fades in the second. I used this video as a reference <a href="https://www.youtube.com/watch?v=9Xb... | I have an activity that show some full screen images in crossfade. There are a total of 6 images. To do this I used 2 ImageViews and 2 animation playing at the same time, one that fades out the first image and one that fades in the second. I used this video as a reference https://www.youtube.com/watch?v=9XbKMUtVnJA Bec... | android|image | 0 | 2015-02-16T12:56:37.633Z | 2,015 | 2 | 12 | 0 | 356 | 1 | 1,186 | 48 | 2 | 1 | true | false | false | false | false | false | zero |
28,541,920 | Error when inflating CardView | <p>I am using a RecyclerView to hold a list of CardViews. On my device running Lollipop 5.0.2, the app runs fine and the list displays the data correctly. however, on other pre-lollipop devices such as one running 4.4.2, I get the following error:</p>
<pre><code>android.view.InflateException: Binary XML file line #2: ... | I am using a RecyclerView to hold a list of CardViews. On my device running Lollipop 5.0.2, the app runs fine and the list displays the data correctly. however, on other pre-lollipop devices such as one running 4.4.2, I get the following error: [CODE] I've searched up answers on StackOverflow, and most of them say that... | java|android|android-5.0-lollipop|android-support-library|android-cardview | 1 | 2015-02-16T12:57:00.787Z | 2,015 | 2 | 12 | 0 | 977 | 2 | 601 | 29 | 5 | 5 | true | false | false | false | false | false | low |
28,541,982 | mapquest app key error 403 | <p>I am using the mapQuest Android SDK for developing a Navigation app. Whenever I try to create a route with the Route Manager, I get the following error</p>
<p>Status Code: 403[This key is not authorized for this service. If you do not have a key, you can obtain a free key by registering at <a href="http://developer... | I am using the mapQuest Android SDK for developing a Navigation app. Whenever I try to create a route with the Route Manager, I get the following error Status Code: 403[This key is not authorized for this service. If you do not have a key, you can obtain a free key by registering at http://developer.mapquest.com.] This... | android|mapquest | 0 | 2015-02-16T13:00:33.927Z | 2,015 | 2 | 13 | 0 | 490 | 1 | 517 | 26 | 2 | 0 | false | false | false | false | false | false | zero |
28,541,995 | Sign out the user | <p><a href="https://developers.google.com/+/mobile/android/sign-in#sign_out_the_user" rel="nofollow">Here</a> in the code sample provided by Google the connect method is called directly after the disconnect method.</p>
<pre><code>@Override
public void onClick(View view) {
if (view.getId() == R.id.sign_out_button) {
... | Here in the code sample provided by Google the connect method is called directly after the disconnect method. [CODE] This code snippets as discribed should be used to sign user out of Google+. why they reconnect again? Is that code sample wrong? if not what is the explanation and what the connect method really do if no... | android|google-plus | 0 | 2015-02-16T13:01:26.613Z | 2,015 | 2 | 13 | 0 | 88 | 2 | 331 | 17 | 2 | 1 | true | false | false | false | false | false | zero |
28,542,001 | How to capture the flip event for ViewFlipper | <p>I've a ViewFlipper component that is flipping automatically, and I want to handle the event in wich the component does a transition between the current View and the next. Is it possible?</p>
<p>Thanks.</p>
<pre><code>mViewFlipper.setInAnimation(AnimationUtils.loadAnimation(this, android.R.anim.fade_in));
mViewFlip... | I've a ViewFlipper component that is flipping automatically, and I want to handle the event in wich the component does a transition between the current View and the next. Is it possible? Thanks. [CODE] And this is the log: 02-16 14:27:50.860: E/AndroidRuntime(7961): FATAL EXCEPTION: main 02-16 14:27:50.860: E/AndroidRu... | android|listener|viewflipper | 2 | 2015-02-16T13:01:49.533Z | 2,015 | 2 | 13 | 0 | 1,836 | 2 | 2,718 | 45 | 3 | 1 | true | false | false | false | false | false | low |
28,542,020 | I want to compress video in android dynamically | <p>I have video which contains 700mb(5 min duration) size. I want to reduce the file size to less then 30 mb . </p>
<p>I have go through the <a href="http://androidwarzone.blogspot.in/2011/12/ffmpeg4android.html" rel="nofollow">FFMPEG</a> blog and successfully run the samples. But the problem in that library is, it w... | I have video which contains 700mb(5 min duration) size. I want to reduce the file size to less then 30 mb . I have go through the FFMPEG blog and successfully run the samples. But the problem in that library is, it will take too much of time to compress a video file(146 mb take 20 minute). so looking for a good library... | android-ndk|ffmpeg|android-mediarecorder|video-editing | -1 | 2015-02-16T13:02:28.477Z | 2,015 | 2 | 13 | 0 | 1,040 | 1 | 414 | 47 | 4 | 0 | false | false | false | false | false | true | negative |
28,542,048 | How to populate ExpandableListView with data from ArrayList? | <p>I managed to retrive data from the database and store it in ArrayList:</p>
<pre><code>ArrayList<Category> selectCategory = select.all().from(Category.class).execute();
for (Category category: selectCategory) {
builder.append(category.name).append("\n");
}
</code></pre>
<p>Now I want to add t... | I managed to retrive data from the database and store it in ArrayList: [CODE] Now I want to add that data to child element of ExpandableListView. The following code is hardcoded, and I don't want it that way. I want it to get data from database. How do I do that? [CODE] | java|android|arrays|expandablelistview|activeandroid | 2 | 2015-02-16T13:03:58.657Z | 2,015 | 2 | 13 | 0 | 873 | 1 | 270 | 60 | 5 | 2 | true | false | false | false | false | false | low |
28,542,146 | How to upload map xml file to server? | <p>I want to build map and display it on Android phone. Firstly I'm dealing with the map of the program Josm and getting the XML file. Secondly, I need to upload it to the server. (I cant do this updating part)</p>
<p>Can anyone help me please?</p> | I want to build map and display it on Android phone. Firstly I'm dealing with the map of the program Josm and getting the XML file. Secondly, I need to upload it to the server. (I cant do this updating part) Can anyone help me please? | android|dictionary|server|openstreetmap | 0 | 2015-02-16T13:08:56.273Z | 2,015 | 2 | 13 | 0 | 69 | 0 | 234 | 37 | 4 | 0 | false | true | false | false | false | false | zero |
28,542,159 | Transferring int array through intent-Android | <p>I am trying to pass an int array through an Intent to another Activity in Android</p>
<p>On the first side I have : </p>
<pre><code> Intent intent = new Intent(this,StatsPage.class);
intent.putExtra(STATISTICS,NUMBERS_ROLLED);
startActivity(intent);
</code></pre>
<p>On the other side I have:</p>
<pre>... | I am trying to pass an int array through an Intent to another Activity in Android On the first side I have : [CODE] On the other side I have: [CODE] This code keeps crashing on me. Any suggestions? thanks | android|arrays|android-intent | 1 | 2015-02-16T13:09:45.217Z | 2,015 | 2 | 13 | 0 | 462 | 3 | 204 | 45 | 3 | 2 | true | false | false | false | false | false | low |
28,542,162 | Best way to invoke an action when photo or video is taken? | <p>I want to trigger an Asynctask whenever a photo or video is captured, but none of the intents below seem to be fired when I take a photo using the stock camera app on my Galaxy S4:</p>
<pre><code> <action android:name="android.intent.action.CAMERA_BUTTON" />
<action android:name="com.android... | I want to trigger an Asynctask whenever a photo or video is captured, but none of the intents below seem to be fired when I take a photo using the stock camera app on my Galaxy S4: [CODE] So my question is: would it be more reliable to trigger my Asynctask whenever a file is added to a designated folder? (e.g. the DCIM... | android|android-intent|camera | 1 | 2015-02-16T13:10:08.090Z | 2,015 | 2 | 13 | 0 | 491 | 1 | 365 | 58 | 3 | 1 | true | false | false | false | false | false | low |
28,542,168 | OpenGraph - Not receiving all data | <p>I am using Facebook Login Button in my application and requesting following things:</p>
<pre><code>LoginButton facebookLoginButton = (LoginButton) findViewById(R.id.authButton);
facebookLoginButton.setReadPermissions(Arrays.asList(
"email",
"user_birthday",
"user_likes",
"user_location",
"user_r... | I am using Facebook Login Button in my application and requesting following things: [CODE] But I am not getting user_likes in the UserObject, what I get is this: [CODE] I tried some other permissions as well, but I only receive these details. | android|facebook|facebook-graph-api | 0 | 2015-02-16T13:10:27.327Z | 2,015 | 2 | 13 | 0 | 28 | 1 | 242 | 34 | 3 | 2 | true | false | false | false | false | false | zero |
28,542,195 | Notification looses track of activity when cleared from recent apps | <p>My activity looses the track of its notification when the application is removed from the recent apps
My notification code : </p>
<p><code>builder = new NotificationCompat.Builder(this).setContentTitle("Started").setSmallIcon(R.drawable.ic_launcher);
targetIntent = new Intent(getApplicationContext(), MainAc... | My activity looses the track of its notification when the application is removed from the recent apps My notification code : builder = new NotificationCompat.Builder(this).setContentTitle("Started").setSmallIcon(R.drawable.ic_launcher); targetIntent = new Intent(getApplicationContext(), MainActivity.class); targetInten... | android|android-notifications | 1 | 2015-02-16T13:11:47.590Z | 2,015 | 2 | 13 | 0 | 77 | 0 | 798 | 67 | 2 | 0 | false | true | false | false | false | false | low |
28,542,299 | get installed applications into a listView | <p>How can I get all installed applications listed into a <code>listView</code>.
I tried the following code and others but it does not work well</p>
<pre><code>protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
final Intent mai... | How can I get all installed applications listed into a listView . I tried the following code and others but it does not work well [CODE] and I'm still not understanding why to use intent in this manner. | android|listview | -1 | 2015-02-16T13:16:57.413Z | 2,015 | 2 | 13 | 0 | 815 | 1 | 202 | 42 | 2 | 1 | true | false | false | false | false | true | negative |
28,542,375 | MvvmCross binding ObservableCollection<MyItem> to ObservableCollection<object> | <p>I have made a custom view (MyCustomView), which can be used in android layout xml. When you click it, it opens a dialog (MyDialog) containing a list.</p>
<p>MainPageLayout -> MyCustomView -> <em>click</em> -> MyDialog</p>
<p>MyDialog inherits from MvxDialogFragment:</p>
<pre><code>public class MyDialog : MvxDialo... | I have made a custom view (MyCustomView), which can be used in android layout xml. When you click it, it opens a dialog (MyDialog) containing a list. MainPageLayout -> MyCustomView -> click -> MyDialog MyDialog inherits from MvxDialogFragment: [CODE] The ViewModel: [CODE] So far, so good - This works as expected. The b... | c#|android|mvvm|xamarin|mvvmcross | 0 | 2015-02-16T13:20:50.913Z | 2,015 | 2 | 13 | 0 | 1,419 | 2 | 795 | 78 | 5 | 2 | true | false | false | false | false | false | zero |
28,542,387 | Putting expiry time on parse object | <p>I am saving a parse object using these lines:</p>
<pre><code> ParseObject x=new ParseObject("names");
po.put("username", ParseUser.getCurrentUser().getUsername());
po.saveInBackground();
</code></pre>
<p>Is there any way to put an expiry time on this object after which the object will automatically be deleted fr... | I am saving a parse object using these lines: [CODE] Is there any way to put an expiry time on this object after which the object will automatically be deleted from parse.As I am getting a scenario where if this object is not deleted I have to put an extra ParseQuery for deleting the object. | android|parse-platform | 1 | 2015-02-16T13:21:41.887Z | 2,015 | 2 | 13 | 0 | 151 | 2 | 292 | 35 | 2 | 1 | true | false | false | false | false | false | low |
28,542,429 | Open a file audio in R.Raw | <p>I have to open a file that in the <code>/res/raw/</code> folder, but it seems that android, doesn't recognize the path.</p>
<p>Here is my code:</p>
<pre><code>public static void openRec()
{
//this is the wav file that I have to analyze
File file = new File("/res/raw/chirp.wav");
try {
FileInput... | I have to open a file that in the /res/raw/ folder, but it seems that android, doesn't recognize the path. Here is my code: [CODE] EDIT: I have another method openRec in which, the path is passed as argument: [CODE] } I would a method that do the same thing but with the ffile in /res/raw. How do I that? | android|audio | 1 | 2015-02-16T13:23:46.223Z | 2,015 | 2 | 13 | 0 | 431 | 1 | 304 | 26 | 2 | 2 | true | false | false | false | false | false | low |
28,542,482 | How to connect my Android app to youtube | <p>I'm currently developing an android app for my local club. I have set up a youtube channel that will show game highlights. I was wondering is there a way to connect my app to that it will connect to the youtube channel. I know i can connect via URL but is there any other way to do it more efficiently?
Am new to thi... | I'm currently developing an android app for my local club. I have set up a youtube channel that will show game highlights. I was wondering is there a way to connect my app to that it will connect to the youtube channel. I know i can connect via URL but is there any other way to do it more efficiently? Am new to this so... | android|youtube | -1 | 2015-02-16T13:26:14.820Z | 2,015 | 2 | 13 | 0 | 385 | 1 | 357 | 40 | 2 | 0 | false | false | false | false | false | true | negative |
28,542,505 | very basic - about client-server applications | <p>I'm very new to this subject.
I try to build an application server that will interact with clients using Android.</p>
<p>Just before I dive into this field and learn everything, I want to know if there is a proof the design will work.</p>
<p>I build on the fact that the server I want to build can function as well ... | I'm very new to this subject. I try to build an application server that will interact with clients using Android. Just before I dive into this field and learn everything, I want to know if there is a proof the design will work. I build on the fact that the server I want to build can function as well as a client. For ex... | android|client-server | 0 | 2015-02-16T13:27:42.583Z | 2,015 | 2 | 13 | 0 | 26 | 1 | 653 | 45 | 2 | 0 | false | false | false | false | false | false | zero |
28,542,538 | Unable to resize spinner in tablelayout | <p>Running Android Studio 1.0.2 and am having problems resizing a spinner.
I would like the layout to be 50/50 on a single line.</p>
<p>text : spinner.</p>
<p>Strings.xml</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="country_arrays">
<item>... | Running Android Studio 1.0.2 and am having problems resizing a spinner. I would like the layout to be 50/50 on a single line. text : spinner. Strings.xml [CODE] activity_main.xml [CODE] Currently the spinner is taking up about 90% of the width with the textview 10%. | android-layout|android-spinner|android-tablelayout|android-layout-weight | 0 | 2015-02-16T13:28:53.073Z | 2,015 | 2 | 13 | 0 | 607 | 2 | 266 | 39 | 4 | 2 | true | false | false | false | false | false | zero |
28,542,632 | How to fill grid view length wise? | <p>I am using Grid View to display details of 24 students. According to data provided, after I get the name of all students, I will get DOB then address and then ph_no. Is it possible to fill the grid view column wise (i.e. top to bottom and then move to next row) ? Grid View is vertically scrollable.</p>
<p>Structure... | I am using Grid View to display details of 24 students. According to data provided, after I get the name of all students, I will get DOB then address and then ph_no. Is it possible to fill the grid view column wise (i.e. top to bottom and then move to next row) ? Grid View is vertically scrollable. Structure of my layo... | android|gridview | 0 | 2015-02-16T13:34:18.923Z | 2,015 | 2 | 13 | 0 | 160 | 1 | 371 | 34 | 2 | 1 | true | false | false | false | false | false | zero |
28,542,683 | Android Application closes when switching from landscape to portrait | <p>I created a simple android app with Jquerymobile, nothing else, just pages and listview.</p>
<p>If it starts in landscape mode, worked just as well, if you change the Smartphone position, the app automatically closes, and the same happens with the landscape mode.</p>
<p>I do not understand why this behavior.</p>
... | I created a simple android app with Jquerymobile, nothing else, just pages and listview. If it starts in landscape mode, worked just as well, if you change the Smartphone position, the app automatically closes, and the same happens with the landscape mode. I do not understand why this behavior. [CODE] | android|jquery-mobile | 0 | 2015-02-16T13:36:23.237Z | 2,015 | 2 | 13 | 0 | 40 | 0 | 302 | 68 | 2 | 1 | true | true | false | false | false | false | zero |
28,542,696 | ProgressDialog style in non Android project | <p>I need to use xml style for a <strong>ProgressDialog</strong> in non Android project (library for Android).</p>
<p>I've created a styles.xml in Res/values directory, and I'm trying to access my declared style from the code:</p>
<pre><code>final ProgressDialog startDialog;
startDialog = new ProgressDialog(context, ... | I need to use xml style for a ProgressDialog in non Android project (library for Android). I've created a styles.xml in Res/values directory, and I'm trying to access my declared style from the code: [CODE] where the context comes from an Activity (Android project) but I've this error: MyStyle cannot be resolved or is ... | android|resources|styles|progressdialog | 0 | 2015-02-16T13:36:52.460Z | 2,015 | 2 | 13 | 0 | 54 | 1 | 437 | 43 | 4 | 1 | true | false | false | false | false | false | zero |
28,542,711 | App crashing on some random devices | <p>Today I encountered a Strange Problem in my app. SO in first activity, there is a navigation drawer with some items listed in listview (in drawer).there is scrollbar in navigation drawer. now, on some random devices Problems occurs. App is launching correctly but as soon as I scroll ( Inside Navigation drawer) , ap... | Today I encountered a Strange Problem in my app. SO in first activity, there is a navigation drawer with some items listed in listview (in drawer).there is scrollbar in navigation drawer. now, on some random devices Problems occurs. App is launching correctly but as soon as I scroll ( Inside Navigation drawer) , app is... | android|android-fragments|android-listview|android-adapter|android-navigation | 0 | 2015-02-16T13:37:28.637Z | 2,015 | 2 | 13 | 0 | 191 | 1 | 864 | 35 | 5 | 3 | true | false | false | false | false | false | zero |
28,542,726 | Starting service with Alarm Manager on Android? | <p>Hi a read other question retated to this but the responses never resolve my issue.</p>
<p>I want to start a service after a specific time with an Alarm Manager </p>
<pre><code> alarmMgr = (AlarmManager)getApplicationContext().getSystemService(Context.ALARM_SERVICE);
alarmServiceIntent=new Intent(ListActivi... | Hi a read other question retated to this but the responses never resolve my issue. I want to start a service after a specific time with an Alarm Manager [CODE] My service is: [CODE] And I add this on AndroidManifest.xml (The service class is on the sub-package "services"): [CODE] But the service don't start and no log ... | android|service|alarmmanager | 1 | 2015-02-16T13:37:57.523Z | 2,015 | 2 | 13 | 0 | 4,409 | 2 | 464 | 47 | 3 | 3 | true | false | true | false | false | false | low |
28,542,749 | How to find ios phone users that are within 1 mile of me - without polling every user? | <p>We are working on an app with the following requirements:</p>
<ul>
<li>Users will have a Friends list (small subset of users)</li>
<li>User will need to know when a 'Friend' is close to them (aprox < 1 mile)</li>
</ul>
<p>We are currently doing the following:</p>
<ul>
<li><strong>Each User posts there location... | We are working on an app with the following requirements: Users will have a Friends list (small subset of users) User will need to know when a 'Friend' is close to them (aprox < 1 mile) We are currently doing the following: Each User posts there location to a central DB every 15 mins User searches DB for Users that are... | android|ios|location|polling | -2 | 2015-02-16T13:39:32.357Z | 2,015 | 2 | 13 | 0 | 57 | 3 | 459 | 86 | 4 | 0 | false | false | false | false | false | true | negative |
28,542,751 | Change the Swipe direction of View Pager android | <p>I have a <code>gridview</code> which displays thumbnail images from sdcard. If I click on one thumbnail image it displays the fullscreenImage using <code>ImageView</code>. I have used <code>viewPager</code> to swipe inside the <code>imageview</code>. Swipe is working fine, but swipe is not according to the standards... | I have a gridview which displays thumbnail images from sdcard. If I click on one thumbnail image it displays the fullscreenImage using ImageView . I have used viewPager to swipe inside the imageview . Swipe is working fine, but swipe is not according to the standards. Means if I swipe from Left to Right, I should be ab... | android|imageview|android-viewpager | 0 | 2015-02-16T13:39:33.817Z | 2,015 | 2 | 13 | 0 | 861 | 1 | 611 | 48 | 3 | 2 | true | false | false | false | false | false | zero |
28,542,796 | Mark email link to open in web browser and not mobile app | <p>I have an android app and a corresponding web app. I am trying to run an email campaign where email would contain a link which is accessible only on the web and not on mobile app. But when I try to open the link through my mobile, it attempts to open it in the mobile app and then bounces off to the email. Is there a... | I have an android app and a corresponding web app. I am trying to run an email campaign where email would contain a link which is accessible only on the web and not on mobile app. But when I try to open the link through my mobile, it attempts to open it in the mobile app and then bounces off to the email. Is there a wa... | android | -1 | 2015-02-16T13:42:02.433Z | 2,015 | 2 | 13 | 0 | 356 | 1 | 434 | 57 | 1 | 0 | false | false | false | false | false | true | negative |
28,543,028 | Update widget with service when app is closed | <p>I have a widget in my application, but i must update its <code>TextView</code> from a <code>service</code> when app is closed</p>
<p>This is my widget: </p>
<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>public c... | I have a widget in my application, but i must update its TextView from a service when app is closed This is my widget: [CODE] I must update it every second | java|android|service|widget | 0 | 2015-02-16T13:55:15.740Z | 2,015 | 2 | 13 | 0 | 1,112 | 2 | 155 | 45 | 4 | 1 | true | false | false | false | false | false | zero |
28,543,043 | how to add android application to Addmob | <p>Firstly i have read all these links:
<a href="https://developers.google.com/analytics/devguides/collection/android/v4/" rel="nofollow">google developper</a>, <a href="http://bigknol.com/android-google-analytics-api-v4-tutorial/" rel="nofollow">tutorial-1</a>,<a href="https://developers.google.com/analytics/devguides... | Firstly i have read all these links: google developper , tutorial-1 , google developper-2 , tutorial-2 I did following:GpsMapActivity(banner admob should be here)(I dont show whole code here) [CODE] GoogleAnalyticApplcation class [CODE] res/xml files:app_tracker.xml [CODE] ecommerce_tracker.xml [CODE] global_trackker.x... | android|admob | 1 | 2015-02-16T13:55:58.007Z | 2,015 | 2 | 13 | 0 | 152 | 1 | 442 | 40 | 2 | 6 | true | false | false | false | false | false | low |
28,543,104 | How to use pinch zoom with scrollview? | <p>I am writing a code for pinch zoom for textview . Since I am using soo many textviews . I have to use scrollview. If I use scrollview pinch zoom is not working . Otherwise my code is working fine without scrollview. Is there any method to use pinch zoom along with scrollview</p> | I am writing a code for pinch zoom for textview . Since I am using soo many textviews . I have to use scrollview. If I use scrollview pinch zoom is not working . Otherwise my code is working fine without scrollview. Is there any method to use pinch zoom along with scrollview | android | -4 | 2015-02-16T13:59:05.580Z | 2,015 | 2 | 13 | 0 | 299 | 2 | 275 | 38 | 1 | 0 | false | false | false | false | false | true | negative |
28,543,117 | Show Google map in Android without using fragment? | <p>I have seen tutorial to embed Google map in Android with the use of Fragments. But how to display map without using fragment in Layout as well as Java?</p> | I have seen tutorial to embed Google map in Android with the use of Fragments. But how to display map without using fragment in Layout as well as Java? | java|android|android-layout|android-fragments|google-maps-android-api-2 | 0 | 2015-02-16T14:00:04.270Z | 2,015 | 2 | 14 | 0 | 4,399 | 2 | 151 | 50 | 5 | 0 | false | false | true | false | false | false | zero |
28,543,373 | Android NDK Save file | <p>This is a description of my problem:</p>
<p><strong>What I want to do:</strong></p>
<p>I have an app that I want to create a common <strong>cpp</strong> abstraction to a StorageManager class that will handle saving and loading files, for both my IOS app and my Android.</p>
<p>In order to do that, I need to save a... | This is a description of my problem: What I want to do: I have an app that I want to create a common cpp abstraction to a StorageManager class that will handle saving and loading files, for both my IOS app and my Android. In order to do that, I need to save a file from cpp. What I would have wanted: I would want some N... | android|file|android-ndk | 0 | 2015-02-16T14:14:55.567Z | 2,015 | 2 | 14 | 0 | 1,211 | 0 | 1,466 | 21 | 3 | 5 | true | true | false | false | false | false | zero |
28,543,430 | how to mount a ntfs volume for all users with rw permissions with ntfs-3g binary? | <p>I am using a cross compiled binary for android.
I used a command
ntfs-3g /dev/block/mmcblk1 /storage/sdcard0/mysdcard
However when i exit the superuser and become a normal user. I am not able to view the device mounted on sdcard 3. I am only able to browse the filesystem as a root user. How do i mount the drive for... | I am using a cross compiled binary for android. I used a command ntfs-3g /dev/block/mmcblk1 /storage/sdcard0/mysdcard However when i exit the superuser and become a normal user. I am not able to view the device mounted on sdcard 3. I am only able to browse the filesystem as a root user. How do i mount the drive for all... | android|ntfs | 1 | 2015-02-16T14:18:03.180Z | 2,015 | 2 | 14 | 0 | 1,264 | 1 | 336 | 81 | 2 | 0 | false | false | false | false | false | false | low |
28,543,494 | how would i display multiple data from an sqlite database in android | <p>i cant seem to display multiple data from my database. only one data from my database gets printed. </p>
<p>DatabaseHelper:</p>
<pre><code> public Cursor returnData2(String text, String look){
String data;
String where = "_column LIKE '"+look+"%'";
Cursor c = myDataBase.query("translate_metadat... | i cant seem to display multiple data from my database. only one data from my database gets printed. DatabaseHelper: [CODE] activity: [CODE] sorry if its confusing. but i need the help. any suggestion will do. thanks | android|database|sqlite | 0 | 2015-02-16T14:21:05.073Z | 2,015 | 2 | 14 | 0 | 1,103 | 2 | 215 | 68 | 3 | 2 | true | false | false | false | false | false | zero |
28,543,499 | Not able to install APK on Selenium Grid Node | <p>I have set up a Selenium Grid having 1 MAC - 10.9 and 2 Windows Machine- Windows 7.</p>
<p>I am executing Appium scripts on this grid environment. </p>
<p>I am able to execute iPhone scripts on MAC machine but not able to even install the apk file on Windows machine.</p>
<p>I have kept the apk file in the node ma... | I have set up a Selenium Grid having 1 MAC - 10.9 and 2 Windows Machine- Windows 7. I am executing Appium scripts on this grid environment. I am able to execute iPhone scripts on MAC machine but not able to even install the apk file on Windows machine. I have kept the apk file in the node machine and providing its path... | java|android|appium|selenium-grid | 1 | 2015-02-16T14:21:26.073Z | 2,015 | 2 | 14 | 0 | 434 | 1 | 518 | 45 | 4 | 4 | true | false | false | false | false | false | low |
28,543,514 | LogCat errors stopping application from running - Code added | <p>Having trouble with my application when attempting to use the class below, see LogCat and .Java class. Anyone able to explain and diagnose this?</p>
<p>AddActivity.java</p>
<pre><code>02-16 14:17:52.046 1896-1896/com.example.student.neillapp E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.example.stude... | Having trouble with my application when attempting to use the class below, see LogCat and .Java class. Anyone able to explain and diagnose this? AddActivity.java [CODE] This is the java file associated with the CatLog [CODE] | java|android|android-studio | 0 | 2015-02-16T14:22:01.587Z | 2,015 | 2 | 14 | 0 | 792 | 1 | 224 | 60 | 3 | 2 | true | false | false | false | false | false | zero |
28,543,526 | How to locate Textview on Imageview with background | <p>I'm trying to locate text on image like <a href="http://android-developers.blogspot.ru/2009/03/android-layout-tricks-3-optimize-by.html" rel="nofollow">this</a> example.
I tried Merge,FrameLayout,RelativeLayout but I got </p>
<blockquote>
<p>cannot cast error</p>
</blockquote>
<p>I gave layout_weight and height... | I'm trying to locate text on image like this example. I tried Merge,FrameLayout,RelativeLayout but I got cannot cast error I gave layout_weight and height, but it does not solve my problem. Here is my layout: [CODE] I want to locate @+id/timestamp over @+id/feedImage1 . These are listview items, and some child has imag... | android|xml|android-layout | -2 | 2015-02-16T14:22:36.963Z | 2,015 | 2 | 14 | 0 | 135 | 1 | 529 | 51 | 3 | 2 | true | false | false | false | false | true | negative |
28,543,569 | Paho MQTT Android Service Issue | <p>I am implementing the Paho MQTT Android Service within an application I am developing. After testing the sample application provided by Paho, I have found that there are a few things that I would like to change.</p>
<p><a href="https://eclipse.org/paho/clients/android/">https://eclipse.org/paho/clients/android/</a>... | I am implementing the Paho MQTT Android Service within an application I am developing. After testing the sample application provided by Paho, I have found that there are a few things that I would like to change. https://eclipse.org/paho/clients/android/ The applications service appears to shut off once the application ... | android|service|mqtt|paho | 8 | 2015-02-16T14:25:09.840Z | 2,015 | 2 | 14 | 0 | 13,530 | 4 | 977 | 31 | 4 | 1 | true | false | true | true | false | false | medium |
28,543,652 | Creating relative layout (programmatically) with lot of fields | <p>I am trying to create a Relative Layout with java. I would insert logo on TOP, sharing on FOOTER and some info on middle.</p>
<p>For now, all components are getting on FOOTER, even if I pass the parameters to the header is on top.</p>
<p>My java code is:</p>
<pre><code>package com.clubee.vote;
import android.app... | I am trying to create a Relative Layout with java. I would insert logo on TOP, sharing on FOOTER and some info on middle. For now, all components are getting on FOOTER, even if I pass the parameters to the header is on top. My java code is: [CODE] My activity xml is simple... [CODE] | java|android|android-activity|layout|programmatically-created | 0 | 2015-02-16T14:30:27.967Z | 2,015 | 2 | 14 | 0 | 370 | 2 | 283 | 62 | 5 | 2 | true | false | false | false | false | false | zero |
28,543,677 | TextView not getting updated in view pager using countdown timer | <p>I am using a View Pager containing Image and TextView as Item. The layout of the View Pager I have shown below. I want the TextView to appear above the image only after 5 seconds. And when user slides the screen then again it should take 5 seconds for the textview to appear on that particular position. I am using Co... | I am using a View Pager containing Image and TextView as Item. The layout of the View Pager I have shown below. I want the TextView to appear above the image only after 5 seconds. And when user slides the screen then again it should take 5 seconds for the textview to appear on that particular position. I am using Count... | android|android-layout|android-viewpager | 2 | 2015-02-16T14:31:56.120Z | 2,015 | 2 | 14 | 0 | 329 | 0 | 742 | 64 | 3 | 2 | true | true | false | false | false | false | low |
28,543,692 | Gestures in fullscreen mode | <p>I have created an Android application for playing videos. These videos are played in fullscreen mode. I'm using this piece of code for enable fullscreen:</p>
<pre><code>if (mActivity != null) {
Window window = mActivity.getWindow();
View decorView = window.getDecorView();
if (android.os.Bui... | I have created an Android application for playing videos. These videos are played in fullscreen mode. I'm using this piece of code for enable fullscreen: [CODE] Note that minimum Android API for my application is set to 14. Everything works well for me. Now, I need to implement new feature - the gestures (like swipe le... | android|fullscreen|gesture | 0 | 2015-02-16T14:33:06.910Z | 2,015 | 2 | 14 | 0 | 792 | 1 | 2,104 | 27 | 3 | 6 | true | false | false | false | false | false | zero |
28,543,697 | Bootstrap Carousel with JQuery does not work on Android but works on iOS & WinOS 8 | <p>I am using <strong>Bootstrap v3.3.2</strong> with <strong>JQuery 2.13</strong> and <strong>JQueryMobile 1.4.5</strong> </p>
<p>The <strong>bootstrap carousel</strong> works smoothly on iPAD & Windows 8 Tablets but it <strong>almost does not work</strong> on <strong>Android</strong> tablets (<strong>v4.4.2</stro... | I am using Bootstrap v3.3.2 with JQuery 2.13 and JQueryMobile 1.4.5 The bootstrap carousel works smoothly on iPAD & Windows 8 Tablets but it almost does not work on Android tablets ( v4.4.2 ) On Android, the swipe event does not fire easily . You have to swipe (left or right) many times and then only one time it fires.... | android|jquery|twitter-bootstrap|cordova|jquery-mobile | 1 | 2015-02-16T14:33:14.417Z | 2,015 | 2 | 14 | 0 | 1,193 | 0 | 493 | 82 | 5 | 3 | true | true | false | false | false | false | low |
28,543,712 | OSMDroid memory consumption in offline/online mode | <p>I'm making app based on the osmdroid sample map viewer (osmdroid-4.3) and I have some performance problems with osm fragment.
I use unpacked offline MapQuest tiles.</p>
<p>I've noticed this strange memory consumption in offline mode, look at screen please. Memory graph becomes flat after switching to online mode. ... | I'm making app based on the osmdroid sample map viewer (osmdroid-4.3) and I have some performance problems with osm fragment. I use unpacked offline MapQuest tiles. I've noticed this strange memory consumption in offline mode, look at screen please. Memory graph becomes flat after switching to online mode. And logcat s... | android|memory-leaks|osmdroid|offline-mode | 1 | 2015-02-16T14:33:55.960Z | 2,015 | 2 | 14 | 0 | 349 | 0 | 1,073 | 50 | 4 | 3 | true | true | false | false | false | false | low |
28,543,760 | How to change individual action item text color in ActionBar PROGRAMMATICALLY? | <p>In my <code>ActionBar</code>, I have a <code>MenuItem</code> that has attribute <code>showAsAction="always"</code> as seen in the image below. Based on the connection a user has to our servers, I will be changing the text as well as color of the item.</p>
<p><img src="https://i.stack.imgur.com/jFHhE.jpg" alt="Curre... | In my ActionBar , I have a MenuItem that has attribute showAsAction="always" as seen in the image below. Based on the connection a user has to our servers, I will be changing the text as well as color of the item. Currently, I am able to change the text of the item very easily in onPrepareOptionsMenu(...) : [CODE] This... | java|android|android-actionbar | 2 | 2015-02-16T14:36:12.370Z | 2,015 | 2 | 14 | 0 | 4,671 | 1 | 658 | 78 | 3 | 1 | true | false | true | false | false | false | low |
28,543,776 | Android shell get foreground app package name | <p>I'm using tasker to automate the SMS sending for which I need to check if the current foreground app package name is x. If it is x then do something else do something else. I tried to use pgrep but it returns the pid even when the app x is in the background. Is there a way to check from shell if x is in foreground?
... | I'm using tasker to automate the SMS sending for which I need to check if the current foreground app package name is x. If it is x then do something else do something else. I tried to use pgrep but it returns the pid even when the app x is in the background. Is there a way to check from shell if x is in foreground? Tha... | android|shell|adb | 11 | 2015-02-16T14:37:18.480Z | 2,015 | 2 | 14 | 0 | 17,260 | 2 | 323 | 45 | 3 | 0 | false | false | true | true | true | false | medium |
28,543,967 | How to count the push Notifications and display them on the home screen app icon | <p>How to count the push Notifications and display them on the home screen app icon </p>
<p>public void onReceive(Context context, Intent intent) {
}</p> | How to count the push Notifications and display them on the home screen app icon public void onReceive(Context context, Intent intent) { } | android | 0 | 2015-02-16T14:46:16.167Z | 2,015 | 2 | 14 | 0 | 422 | 2 | 138 | 80 | 1 | 0 | false | false | false | false | false | false | zero |
28,544,032 | How do I reference a certain fragment from my ViewPager | <p>So I'm trying to communicate between 2 fragments which are organized in a ViewPager (Swipe-tab) by using an interface I created. Like this:</p>
<p>The interface looks like this: </p>
<pre><code> public interface Communicator {
public void respond(String data);
}
</code></pre>
<p>On Fragment A I ... | So I'm trying to communicate between 2 fragments which are organized in a ViewPager (Swipe-tab) by using an interface I created. Like this: The interface looks like this: [CODE] On Fragment A I reference the interface calling it 'comm', the onClick of FragmentA looks like this: [CODE] However - when I go back to my mai... | android|android-fragments|android-studio | 0 | 2015-02-16T14:49:30.973Z | 2,015 | 2 | 14 | 0 | 53 | 1 | 653 | 55 | 3 | 3 | true | false | false | false | false | false | zero |
28,544,077 | Cancel Notification on App Uninstall | <p>In my code, I create a notification that once clicked tries to uninstall an app identified by its package name. I want the notification to be disappear only if the app is successfully uninstalled. If the user clicks "cancel" for app uninstall pop-up, I would like the notification to persist.</p>
<p>Any ideas how I ... | In my code, I create a notification that once clicked tries to uninstall an app identified by its package name. I want the notification to be disappear only if the app is successfully uninstalled. If the user clicks "cancel" for app uninstall pop-up, I would like the notification to persist. Any ideas how I can do that... | android|android-intent|android-activity|android-notifications|android-applicationinfo | 0 | 2015-02-16T14:51:39.360Z | 2,015 | 2 | 14 | 0 | 167 | 1 | 328 | 36 | 5 | 1 | true | false | false | false | false | false | zero |
28,544,097 | How to visualize heatmap for thousands of records | <p>I have a thousands of records (lat,lng) on my java appengine and I'd like to generate a heatmap for it using <a href="https://developers.google.com/maps/documentation/android/utility/heatmap" rel="nofollow" title="Android Heatmap Utility">Android Heatmap Utility</a>. However the raw data set is too big to be transfe... | I have a thousands of records (lat,lng) on my java appengine and I'd like to generate a heatmap for it using Android Heatmap Utility . However the raw data set is too big to be transferred via mobile network. How do you preprocess those records into something small enough so it can be transferred to the device? | java|android|google-app-engine|heatmap | 2 | 2015-02-16T14:52:32.243Z | 2,015 | 2 | 14 | 0 | 620 | 2 | 312 | 49 | 4 | 0 | false | false | false | false | false | false | low |
28,544,112 | Android:How To set set deafult value of Spinner? | <p>I am creating a Dropdown(spinner) in which all days have to shown,but i want to set different Default value.Presently default and first value of spinner are same..Please help me how to do this...Code snippets are appreciated....
My is =></p>
<pre><code>public class MainActivity extends Activity implements AdapterVi... | I am creating a Dropdown(spinner) in which all days have to shown,but i want to set different Default value.Presently default and first value of spinner are same..Please help me how to do this...Code snippets are appreciated.... My is => [CODE] Activity_main.xml [CODE] simple_spinner_item.xml [CODE] String.xml ' [CODE]... | android|spinner|android-spinner | 0 | 2015-02-16T14:53:08.303Z | 2,015 | 2 | 14 | 0 | 3,520 | 3 | 322 | 48 | 3 | 4 | true | false | true | false | false | false | zero |
28,544,170 | Fill Documents directory manually on Android device | <p>I have the following code returning <code>YES</code> in both cases: </p>
<pre><code>File documents = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS);
Log.d("DOCUMENTS", documents.exists() ? "YES" : "NO");
File subdir = new File(Environment.getExternalStoragePublicDirectory(Envi... | I have the following code returning YES in both cases: [CODE] So the Environment.DIRECTORY_DOCUMENTS seems to exist on my device. But how can I add files to it manually for example with the Android File Transfer tool? Where is this directory located on my files system? I can't find it. I can see folders like Music and ... | android|directory|file-transfer|documents|file-access | 0 | 2015-02-16T14:56:12.960Z | 2,015 | 2 | 14 | 0 | 114 | 1 | 360 | 51 | 5 | 1 | true | false | false | false | false | false | zero |
28,544,283 | Android: How to set the ImageView src in a list dynamically | <p>I'm new to android, i have a news <a href="http://www.ana.fm" rel="nofollow">website</a>
and i'm developing an android app, the main activity catches a JSON node from <a href="http://www.ana.fm/api/main/?start=0&count=20" rel="nofollow">this link</a> and displays all the articles in a ListView,
each item in the ... | I'm new to android, i have a news website and i'm developing an android app, the main activity catches a JSON node from this link and displays all the articles in a ListView, each item in the list has an image, title and a teaser of this particular article. now i have written a java code for the title and the descripti... | java|android|json|android-studio|imageview | 0 | 2015-02-16T15:02:01.223Z | 2,015 | 2 | 15 | 0 | 7,056 | 2 | 561 | 59 | 5 | 3 | true | false | true | false | false | false | zero |
28,544,326 | android mkdirs returns false | <p>I've been using the following code to successfully create folders, however on a samsung tab2 Android 4.2.2 (pre kitkat new security) the command returns false even though the new folder does not exist</p>
<p>newfolder is a string variable that comes from a folder choosing dialog, for example the user selects "/mnt/... | I've been using the following code to successfully create folders, however on a samsung tab2 Android 4.2.2 (pre kitkat new security) the command returns false even though the new folder does not exist newfolder is a string variable that comes from a folder choosing dialog, for example the user selects "/mnt/extSdcard" ... | android|mkdir | 0 | 2015-02-16T15:04:52.513Z | 2,015 | 2 | 15 | 0 | 909 | 1 | 965 | 28 | 2 | 2 | true | false | false | false | false | false | zero |
28,544,329 | Recursive objects in snapshot from Firebase | <p>I use firebase to synchronise data on client with server. I have a problem using example FirebaseAdapter. In order to get data from snapshot, I need to explicitly retrieve values for each child node. Is there a way of parametrising firebase <code>getValue()</code> in order to deal with it automatically? Simple examp... | I use firebase to synchronise data on client with server. I have a problem using example FirebaseAdapter. In order to get data from snapshot, I need to explicitly retrieve values for each child node. Is there a way of parametrising firebase getValue() in order to deal with it automatically? Simple example: I have a lis... | android|firebase|firebase-realtime-database | 0 | 2015-02-16T15:05:02.367Z | 2,015 | 2 | 15 | 0 | 511 | 0 | 645 | 43 | 3 | 1 | true | true | false | false | false | false | zero |
28,544,377 | Which is the best way to develop this UI? | <p>I'm trying to develop a particular UI, but I have some problems.
In my UI there are two main blocks of <code>ImageViews</code>and <code>EditTexts</code>and under each block there is an <code>ExpandableListView</code>:
<img src="https://i.stack.imgur.com/pi8jj.png" alt="main UI"></p>
<p>The main problem it's with th... | I'm trying to develop a particular UI, but I have some problems. In my UI there are two main blocks of ImageViews and EditTexts and under each block there is an ExpandableListView : The main problem it's with the ExpandableListView , because i want that when those lists expands and the layout became bigger than the scr... | android|android-layout|expandablelistview | 0 | 2015-02-16T15:07:20.537Z | 2,015 | 2 | 15 | 0 | 58 | 0 | 557 | 41 | 3 | 0 | false | true | false | false | false | false | zero |
28,544,379 | Are Intent objects always necessary to perform any action in Android development? | <p>I've recently started learning the basics of developing for Android phones, and so far it's pretty straight forward. I learned about intents and what their purpose is, and it makes sense that the functionality for emitting and intercepting 'global' events exists.</p>
<p>However, now that I've finished some tutorial... | I've recently started learning the basics of developing for Android phones, and so far it's pretty straight forward. I learned about intents and what their purpose is, and it makes sense that the functionality for emitting and intercepting 'global' events exists. However, now that I've finished some tutorials, the firs... | android-intent | -1 | 2015-02-16T15:07:25.373Z | 2,015 | 2 | 15 | 0 | 58 | 1 | 972 | 81 | 1 | 0 | false | false | false | false | false | true | negative |
28,544,382 | assert Vs if(var != null) which way is better or is correct? | <p>In my app i want to close my cursor in finally statement like this :</p>
<pre><code>Cursor cursor = null;
try {
// some code
} finally {
cursor.close();
}
</code></pre>
<p>My IDE highlight <code>cursor.close();</code> and tell :</p>
<blockquote>
<p>This method can produce <code>nullPointerException</co... | In my app i want to close my cursor in finally statement like this : [CODE] My IDE highlight cursor.close(); and tell : This method can produce nullPointerException And suggest to way to correct it (im using intelij idea) : First: [CODE] Second: [CODE] I want to know what is difference between them and which way is bet... | java|android | 6 | 2015-02-16T15:07:39.210Z | 2,015 | 2 | 15 | 0 | 2,273 | 1 | 334 | 60 | 2 | 3 | true | false | false | false | false | false | medium |
28,544,421 | Slide out effect (translationX) doesn't work with LayoutTransition + ObjectAnimator | <p>I tend to have a slide out effect, when I make a <code>View</code> invisible (Not gone) in <code>LinearLayout</code>.</p>
<p>My expect animation effect are :-</p>
<ol>
<li>The view will fade out slowly (alpha)</li>
<li>The view will slide from left toward right (translationX)</li>
</ol>
<p>I try to achieve such e... | I tend to have a slide out effect, when I make a View invisible (Not gone) in LinearLayout . My expect animation effect are :- The view will fade out slowly (alpha) The view will slide from left toward right (translationX) I try to achieve such effect via LayoutTransition + ObjectAnimator , by referring to official API... | android|android-animation | 2 | 2015-02-16T15:09:44.687Z | 2,015 | 2 | 15 | 0 | 1,639 | 1 | 749 | 83 | 2 | 2 | true | false | false | false | false | false | low |
28,544,477 | How to detect video seek start | <p>I am using VideoView, MediaPlayer provides "setOnSeekCompleteListener" to detect seek completion but I would also like to detect seek starts.</p>
<p>Is there a way to detect seek start?</p> | I am using VideoView, MediaPlayer provides "setOnSeekCompleteListener" to detect seek completion but I would also like to detect seek starts. Is there a way to detect seek start? | android|android-mediaplayer|android-videoview | 2 | 2015-02-16T15:12:23.700Z | 2,015 | 2 | 15 | 0 | 311 | 1 | 178 | 30 | 3 | 0 | false | false | false | false | false | false | low |
28,544,561 | play recorded audio using AudioRecord.write() | <p>I tried to use AudioTrack.write() in order to hear the recorded sound but no output , so the purpose i need is to record audio via AudioRecord and play it back via AudioTrack without save it in sd-card or internal storage,so any help will be appreciated.</p>
<pre><code>public class MainActivity extends Activity {
... | I tried to use AudioTrack.write() in order to hear the recorded sound but no output , so the purpose i need is to record audio via AudioRecord and play it back via AudioTrack without save it in sd-card or internal storage,so any help will be appreciated. [CODE] | android | 0 | 2015-02-16T15:16:42.150Z | 2,015 | 2 | 15 | 0 | 431 | 1 | 261 | 45 | 1 | 1 | true | false | false | false | false | false | zero |
28,544,570 | Android Remove Gap in Settings menu item | <p>How could I remove icons gap in float action menu. I want to have settings without icons.
See images:
<img src="https://i.stack.imgur.com/pi61J.png" alt="enter image description here"></p>
<p>Here menu code
</p>
<pre><code><item
android:id="@+id/menu_delete"
android:icon="@android:drawable/ic_menu_delet... | How could I remove icons gap in float action menu. I want to have settings without icons. See images: Here menu code [CODE] | android | 0 | 2015-02-16T15:17:15.097Z | 2,015 | 2 | 15 | 0 | 133 | 1 | 123 | 40 | 1 | 1 | true | false | false | false | false | false | zero |
28,544,677 | How to make FLAG_SHOW_WHEN_LOCKED work along with TYPE_KEYGUARD_DIALOG | <p>I have been developing an Android App with a Lock Screen Feature, such that once my LockScreen Activity is started the default Lock Screen should be temporarily disabled until the activity exists. </p>
<p>On searching I found it easy to do so by using FLAG_SHOW_WHEN_LOCKED. But when I added TYPE_KEYGUARD_DIALOG so ... | I have been developing an Android App with a Lock Screen Feature, such that once my LockScreen Activity is started the default Lock Screen should be temporarily disabled until the activity exists. On searching I found it easy to do so by using FLAG_SHOW_WHEN_LOCKED. But when I added TYPE_KEYGUARD_DIALOG so as to disabl... | android | 0 | 2015-02-16T15:22:50.320Z | 2,015 | 2 | 15 | 0 | 1,283 | 2 | 560 | 70 | 1 | 2 | true | false | false | false | false | false | zero |
28,544,771 | How to load index page while splash screen loading in phonegap | <p>I'm implementing app in phonegap. I'm using google map service in my application.</p>
<p>google map api script included in my index page.
when network slow, at the time showing white screen for 5 sec after splash screen.
because of problem with loading map api script.</p>
<p>I tried to remove white screen in all p... | I'm implementing app in phonegap. I'm using google map service in my application. google map api script included in my index page. when network slow, at the time showing white screen for 5 sec after splash screen. because of problem with loading map api script. I tried to remove white screen in all possible ways but no... | android|cordova | 0 | 2015-02-16T15:27:17.027Z | 2,015 | 2 | 15 | 0 | 497 | 1 | 595 | 62 | 2 | 2 | true | false | false | false | false | false | zero |
28,544,778 | Is that a good practice to use WebView instead of Textview? | <p>I'm developing a android app and all contents are need to access locally i.e. app does not need internet connection. App is having static contents only. I have already developed app that can access html pages which i have stored locally in assets folder. I just want to Know that using <code>webview</code> for text f... | I'm developing a android app and all contents are need to access locally i.e. app does not need internet connection. App is having static contents only. I have already developed app that can access html pages which i have stored locally in assets folder. I just want to Know that using webview for text formatting is goo... | android|webview|textview|text-formatting | 2 | 2015-02-16T15:27:28.900Z | 2,015 | 2 | 15 | 0 | 2,733 | 3 | 628 | 59 | 4 | 2 | true | false | true | false | false | false | low |
28,544,800 | Create circular reveal for pre-Lollipop devices (Android) | <p>Is it possible to get this new Animator for pre-Lollipop devices?</p>
<p>I am newbie and I am trying to get the java files from its official <a href="https://developer.android.com/reference/android/view/ViewAnimationUtils.html#createCircularReveal(android.view.View,%20int,%20int,%20float,%20float)" rel="noreferrer"... | Is it possible to get this new Animator for pre-Lollipop devices? I am newbie and I am trying to get the java files from its official documentation , but I am really lost, I don't know how to find it, etc. | android|animation|material-design|animator | 29 | 2015-02-16T15:28:51.117Z | 2,015 | 2 | 15 | 0 | 30,367 | 7 | 205 | 57 | 4 | 0 | false | false | true | true | true | false | high |
28,544,821 | how to import javax.swing in android studio | <p>I have just setup Android Studio and started a simple application. Well started is an over statement, I got stuck on first few lines and am unable to import JFrame into android studio. </p>
<p>I have the latest SDK installed aling with LibGDX. I am still not able to setup JFrame. I have searched the net/youtube and... | I have just setup Android Studio and started a simple application. Well started is an over statement, I got stuck on first few lines and am unable to import JFrame into android studio. I have the latest SDK installed aling with LibGDX. I am still not able to setup JFrame. I have searched the net/youtube and no solution... | import|android-studio | 7 | 2015-02-16T15:29:41.413Z | 2,015 | 2 | 15 | 0 | 20,475 | 3 | 676 | 43 | 2 | 1 | true | false | true | true | false | false | medium |
28,544,838 | AID for HID readers | <p>If I want my android phone to emulate a physical card to the following reader:
<a href="http://www.hidglobal.com/products/readers/iclass/rw100" rel="nofollow">http://www.hidglobal.com/products/readers/iclass/rw100</a></p>
<p>Which AID would I have to use? </p>
<p>I was following this example:
<a href="https://deve... | If I want my android phone to emulate a physical card to the following reader: http://www.hidglobal.com/products/readers/iclass/rw100 Which AID would I have to use? I was following this example: https://developer.android.com/guide/topics/connectivity/nfc/hce.html#HceServices But when debugging, my code never reaches th... | android|nfc|apdu|hce|contactless-smartcard | 1 | 2015-02-16T15:30:16.470Z | 2,015 | 2 | 15 | 0 | 980 | 1 | 563 | 19 | 5 | 1 | true | false | false | false | false | false | low |
28,544,905 | android json object string display in textview | <p>I am trying to display data in textviews that are exracted from a json array.</p>
<p>i get a correct server answer and the first toast displays correctly de json array {"android":{"total":4}}</p>
<p>The php page is online <a href="http://www.2w.cl/apps/db/cargar_resultados.php" rel="nofollow">http://www.2w.cl/apps... | I am trying to display data in textviews that are exracted from a json array. i get a correct server answer and the first toast displays correctly de json array {"android":{"total":4}} The php page is online http://www.2w.cl/apps/db/cargar_resultados.php [CODE] the toast "test2" does not display anything. Thanks for he... | android|arrays|json|string | -1 | 2015-02-16T15:33:41.090Z | 2,015 | 2 | 15 | 0 | 2,811 | 2 | 325 | 46 | 4 | 1 | true | false | true | false | false | true | negative |
28,545,181 | just last column in Grid layout gets stretch | <p><img src="https://i.stack.imgur.com/EWTvY.png" alt="enter image description here"></p>
<p>I want to stretch all columns in my grid layout equally , How can I do that ?</p>
<p>I am using this params for every cell </p>
<pre><code>LayoutParams param2 =new LayoutParams();
param2.height = LayoutParams.WRAP_CO... | I want to stretch all columns in my grid layout equally , How can I do that ? I am using this params for every cell [CODE] | android|grid-layout | 1 | 2015-02-16T15:46:29.557Z | 2,015 | 2 | 15 | 0 | 251 | 2 | 122 | 44 | 2 | 1 | true | false | false | false | false | false | low |
28,545,208 | Android - How to set an Accessibility Delegate on a Menu Item? | <p>Is it possible in any way to set an Accessibility Delegate on a Menu Item? My app uses text-to-speech and I want to execute some custom code <strong>before</strong> TalkBack starts speaking the content description of my menu item (which happens when the menu item gets accessibility focus). Otherwise, the text-to-spe... | Is it possible in any way to set an Accessibility Delegate on a Menu Item? My app uses text-to-speech and I want to execute some custom code before TalkBack starts speaking the content description of my menu item (which happens when the menu item gets accessibility focus). Otherwise, the text-to-speech from my app will... | android|accessibility|text-to-speech|android-menu|talkback | 0 | 2015-02-16T15:47:50.357Z | 2,015 | 2 | 15 | 0 | 2,305 | 1 | 1,210 | 62 | 5 | 1 | true | false | false | false | false | false | zero |
28,545,256 | How I can remove items of ListView? | <p>The apk is a memo pad or something like that. First you can put the title and then the note and if you press the button "Save" the note is saved and it saves in database. And if you press the button "Notes", you can view a list with all notes saved in database and you can select all notes and in the top of screen, y... | The apk is a memo pad or something like that. First you can put the title and then the note and if you press the button "Save" the note is saved and it saves in database. And if you press the button "Notes", you can view a list with all notes saved in database and you can select all notes and in the top of screen, you ... | android|android-listview|items | 0 | 2015-02-16T15:50:49.330Z | 2,015 | 2 | 15 | 0 | 422 | 1 | 502 | 35 | 3 | 3 | true | false | false | false | false | false | zero |
28,545,331 | Cannot resolve symbol 'listener' | <p>I have the following error "Cannot resolve symbol 'listener'" in my following code but can't seem to get rid of this. Any ideas of why this error would appear? </p>
<pre><code> public void onClick(View v) {
Spinner spr = (Spinner) findViewById(R.id.planspinner);
EditText editText6 =(EditText)... | I have the following error "Cannot resolve symbol 'listener'" in my following code but can't seem to get rid of this. Any ideas of why this error would appear? [CODE] | java|android|button|listener|calculator | 1 | 2015-02-16T15:54:41.470Z | 2,015 | 2 | 15 | 0 | 4,453 | 1 | 166 | 32 | 5 | 1 | true | false | true | false | false | false | low |
28,545,337 | Remove padding on listview | <p>Hi I have an annoying problem I want to place a button as part of an action bar at the bottom of my listview but there is some padding just above below the last item of the listview I can't get rid of. Here is my code any help would be greatly appreciated.</p>
<pre><code><RelativeLayout xmlns:android="http://sc... | Hi I have an annoying problem I want to place a button as part of an action bar at the bottom of my listview but there is some padding just above below the last item of the listview I can't get rid of. Here is my code any help would be greatly appreciated. [CODE] | android|layout | 1 | 2015-02-16T15:54:54.740Z | 2,015 | 2 | 15 | 0 | 2,253 | 1 | 263 | 26 | 2 | 1 | true | false | 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.