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,549,767 | What am I missing here, basic Twilio outgoing call? (Very descriptive) | <p>So I am editing the Android Twilio Test Client to ensure that my server and TwiML is set up properly before adding it to my other mobile app. This is my first time using Twilio so I would greatly appreciate some guidance.</p>
<p>I set up my server using heroku, the mobile app is set to point to "../herokuurl/token"... | So I am editing the Android Twilio Test Client to ensure that my server and TwiML is set up properly before adding it to my other mobile app. This is my first time using Twilio so I would greatly appreciate some guidance. I set up my server using heroku, the mobile app is set to point to "../herokuurl/token". I used ht... | android|heroku|twilio | 0 | 2015-02-16T20:28:09.667Z | 2,015 | 2 | 20 | 0 | 551 | 0 | 1,417 | 70 | 3 | 0 | false | true | false | false | false | false | zero |
28,549,882 | On Android: How to calculate row height prior to TextView creation? | <p>Can anyone explain correlation between <code>Paint.setTextSize()</code> and <code>TextView.setTextSize()</code> ?</p>
<p>I have code like this:</p>
<pre><code>Rect bounds = new Rect();
paint.setStyle(Paint.Style.FILL);
paint.setColor(Color.WHITE);
paint.setTextAlign(Paint.Align.LEFT);
paint.setTextSize(48);
paint.... | Can anyone explain correlation between Paint.setTextSize() and TextView.setTextSize() ? I have code like this: [CODE] but final text size in TextView is way bigger than rowHeight calculated. I guess, my question is: Is there any way to calculate rowHeight prior to TextView creation so that text fits by HEIGHT not width... | java|android|layout|textview|paint | 1 | 2015-02-16T20:36:33.730Z | 2,015 | 2 | 20 | 0 | 97 | 0 | 328 | 67 | 5 | 1 | true | true | false | false | false | false | low |
28,549,887 | Can I create the GUI in Swift and do all the processing in C and call it in Swift? | <p>I have code implemented for NDK in Android and I want to port it to iOS. Can I do that with a minor changes to the C and just call that in swift?</p> | I have code implemented for NDK in Android and I want to port it to iOS. Can I do that with a minor changes to the C and just call that in swift? | android|ios|c|xcode|swift | 0 | 2015-02-16T20:36:40.377Z | 2,015 | 2 | 20 | 0 | 55 | 0 | 145 | 82 | 5 | 0 | false | true | false | false | false | false | zero |
28,549,897 | Fragment switching when clicked on a texview Android | <p>I am trying to change the display on my android screen when you click on a <code>textview</code>. This <code>textview</code> is inside a tab which is inside a <code>tabhost</code>. I created a fragment which would overlay on top of this tab when you click on it but having issues doing. </p>
<p>In my main activity I... | I am trying to change the display on my android screen when you click on a textview . This textview is inside a tab which is inside a tabhost . I created a fragment which would overlay on top of this tab when you click on it but having issues doing. In my main activity I got this code; [CODE] This is the code that I ha... | java|android|xml|android-fragments | 0 | 2015-02-16T20:37:03.903Z | 2,015 | 2 | 20 | 0 | 59 | 1 | 762 | 52 | 4 | 3 | true | false | false | false | false | false | zero |
28,549,940 | GCM registration step conflicts when using 3rd party library and separate GCM implementation for same app? | <p>I am curious to know if there might be any conflicts when using a 3rd party library for push notifications (such as Parse in this case) along side a separate GCM implementation for the same app? </p>
<p>At startup I can see (by routing all broadcasts through the same receiver) that Parse receives a GCM registration... | I am curious to know if there might be any conflicts when using a 3rd party library for push notifications (such as Parse in this case) along side a separate GCM implementation for the same app? At startup I can see (by routing all broadcasts through the same receiver) that Parse receives a GCM registrationToken ("A") ... | android|parse-platform|push-notification|google-cloud-messaging | 0 | 2015-02-16T20:40:38.137Z | 2,015 | 2 | 20 | 0 | 494 | 1 | 876 | 106 | 4 | 0 | false | false | false | false | false | false | zero |
28,550,257 | What is a good ratio of Activity : Fragment? | <p>I have a simple App with a few views. Theres the main view which is first loaded and displays the information, then from there I call the other view depending on what they click.</p>
<p>Would it be wise to have one activity calling all the other fragments? Or should I have multiple activities for a few fragments? W... | I have a simple App with a few views. Theres the main view which is first loaded and displays the information, then from there I call the other view depending on what they click. Would it be wise to have one activity calling all the other fragments? Or should I have multiple activities for a few fragments? What is a go... | android|android-activity|android-fragments|android-fragmentactivity | 1 | 2015-02-16T21:00:55.333Z | 2,015 | 2 | 21 | 0 | 103 | 2 | 352 | 44 | 4 | 0 | false | false | false | false | false | false | low |
28,550,331 | Printing Arabic string usin Sewoo Lk-p41 Printer? | <p>I have a Sewoo Lk-p41 Printer, I have connected it to my android app using Bluetooth and it worked for printing English String, now I have to print Arabic String and it prints a question marks instead.
I have tried this and still not working!</p>
<pre><code>byte ptext[] = toPrint[i].getBytes("UTF-8");
value = new ... | I have a Sewoo Lk-p41 Printer, I have connected it to my android app using Bluetooth and it worked for printing English String, now I have to print Arabic String and it prints a question marks instead. I have tried this and still not working! [CODE] | android|printing|utf-8|bluetooth|arabic | 0 | 2015-02-16T21:05:27.983Z | 2,015 | 2 | 21 | 0 | 1,500 | 1 | 249 | 49 | 5 | 1 | true | false | false | false | false | false | zero |
28,550,370 | How to detect whether android app is running UI test with Espresso | <p>I am writing some Espresso tests for Android. I am running in the the following problem:</p>
<p>In order for a certain test case to run properly, I need to disable some features in the app. Therefore, in my app, I need to detect whether I am running Espresso test so that I can disable it. However, I don't want to u... | I am writing some Espresso tests for Android. I am running in the the following problem: In order for a certain test case to run properly, I need to disable some features in the app. Therefore, in my app, I need to detect whether I am running Espresso test so that I can disable it. However, I don't want to use BuildCon... | android|android-espresso|ui-testing | 31 | 2015-02-16T21:08:36.523Z | 2,015 | 2 | 21 | 0 | 15,245 | 10 | 652 | 66 | 3 | 0 | false | false | true | true | true | false | high |
28,550,390 | Answer phone call | <p>I need to accept automatically phone calls (depending on source phone number). At this time, I can end incoming calls, but can't accept'em.</p>
<p>I've found several examples and this is what I have at this moment.</p>
<p>Add to AndroidManifest:</p>
<pre><code> <permission android:name="android.permission.MODI... | I need to accept automatically phone calls (depending on source phone number). At this time, I can end incoming calls, but can't accept'em. I've found several examples and this is what I have at this moment. Add to AndroidManifest: [CODE] And this is my code: [CODE] I can successfully end calls with this code, but I ne... | android|telephonymanager | 2 | 2015-02-16T21:09:40.170Z | 2,015 | 2 | 21 | 0 | 924 | 1 | 581 | 17 | 2 | 2 | true | false | false | false | false | false | low |
28,550,418 | GridView scrolling ends at half the screen when translated | <p>Whatever i do i cant get this to work. I have a method to set the layout for the header of the view (which really is the whole view)...</p>
<pre><code>private KenBurnsSupportView mHeaderSupportView;
private View mHeader;
private int mMinHeaderHeight;
private int mHeaderHeight;
private int mMinHeaderTranslation;
pr... | Whatever i do i cant get this to work. I have a method to set the layout for the header of the view (which really is the whole view)... [CODE] This uses this view : [CODE] What ever i do i cant get the gridView to end its view at the bottom of the device : ![Scroll ends at somewhat half of the screen][1] http://i.stack... | java|android|gridview|view|scroll | 0 | 2015-02-16T21:10:49.543Z | 2,015 | 2 | 21 | 0 | 203 | 0 | 610 | 58 | 5 | 4 | true | true | false | false | false | false | zero |
28,550,622 | Android ListView ArrayAdapter doesn't work properly | <p>I am trying to do an Android ListView with my own, custom and so called "widgets". </p>
<p>This is my Widget parent-class:</p>
<pre><code>public class Widget {
protected Context context;
protected int layout;
protected int headlineId;
protected int leftButtonId;
protected int rightButtonId;
protected int headlin... | I am trying to do an Android ListView with my own, custom and so called "widgets". This is my Widget parent-class: [CODE] I am using this class in extension with my widget subclasses, like this (extract): [CODE] The idea behind the widget class: Everything (including the view with all data) is saved in this class and c... | java|android|listview|android-listview | 0 | 2015-02-16T21:25:13.563Z | 2,015 | 2 | 21 | 0 | 734 | 1 | 1,341 | 51 | 4 | 5 | true | false | false | false | false | false | zero |
28,550,647 | Draw image in xml | <p>I was able to draw a cross button like this with a lot of code and effort:</p>
<p><img src="https://i.stack.imgur.com/xxCiq.png" alt="enter image description here"></p>
<p>This little cross took me all of this code:</p>
<p></p>
<pre><code><item >
<shape android:shape="rectangle">
<soli... | I was able to draw a cross button like this with a lot of code and effort: This little cross took me all of this code: [CODE] I would like to ask someone experienced how to draw the following picture more easily: | android|xml|android-layout|android-xml | 1 | 2015-02-16T21:26:31.567Z | 2,015 | 2 | 21 | 0 | 2,276 | 3 | 212 | 17 | 4 | 1 | true | false | false | false | false | false | low |
28,550,667 | Android, setstring to listview | <p>I have the following code that is saving a list of variables named <code>savedlist</code>, to <code>sharedprefs</code>. I have been trying to get the values saved (which should be a list of URLs) to display in a ListView (lv).</p>
<pre><code>public class saveSearch extends Activity {
private String urlString =... | I have the following code that is saving a list of variables named savedlist , to sharedprefs . I have been trying to get the values saved (which should be a list of URLs) to display in a ListView (lv). [CODE] | java|android|listview | 0 | 2015-02-16T21:28:10.693Z | 2,015 | 2 | 21 | 0 | 87 | 1 | 209 | 30 | 3 | 1 | true | false | false | false | false | false | zero |
28,550,736 | Calibrating the magnetic field sensor | <p>How do I calibrate the magnetic field sensor?</p>
<p>I know it is done by software.<br>
Can I get the Java API code?</p> | How do I calibrate the magnetic field sensor? I know it is done by software. Can I get the Java API code? | java|android|sensors|magnetometer | 0 | 2015-02-16T21:33:55.527Z | 2,015 | 2 | 21 | 0 | 131 | 0 | 105 | 37 | 4 | 0 | false | true | false | false | false | false | zero |
28,550,815 | Capture or select picture and select area to crop to make it square | <p>I have a problem concerning capturing or selecting a profile picture in the app, <strong>which should be square</strong>.
(When I'm talking about 'capturing the picture' in this post I always also mean selecting a picture from the gallery, this should work the same)</p>
<p>Until now I've just used the basic MediaS... | I have a problem concerning capturing or selecting a profile picture in the app, which should be square . (When I'm talking about 'capturing the picture' in this post I always also mean selecting a picture from the gallery, this should work the same) Until now I've just used the basic MediaStore.ACTION_IMAGE_CAPTURE in... | android|camera|android-camera|crop | 1 | 2015-02-16T21:39:19.790Z | 2,015 | 2 | 21 | 0 | 488 | 0 | 1,129 | 67 | 4 | 0 | false | true | false | false | false | false | low |
28,550,831 | java.lang.NoSuchMethodError in Android Application | <p>I'm trying to connect to my Neo4j Server using Java JDBC driver through an Android Application (using Android Studio). It works fine in Eclipse, however here I'm getting an error: <code>java.lang.NoSuchMethodError</code>. I have added the JDBC jar file, I was searching and seems that Android is using outdated versio... | I'm trying to connect to my Neo4j Server using Java JDBC driver through an Android Application (using Android Studio). It works fine in Eclipse, however here I'm getting an error: java.lang.NoSuchMethodError . I have added the JDBC jar file, I was searching and seems that Android is using outdated version of HttpClient... | java|android|jdbc|neo4j|nosuchmethoderror | 0 | 2015-02-16T21:41:18.880Z | 2,015 | 2 | 21 | 0 | 783 | 1 | 510 | 50 | 5 | 2 | true | false | false | false | false | false | zero |
28,550,892 | What's a safe way to store data in Android? | <p>I've been using singletons to store data that is loaded when my application started. This data is used throughout the lifetime of my app, but doesn't need to be persisted for future launches. I've started hitting the issue though that my singletons are garbage collected and their data is wiped. Does the singleton... | I've been using singletons to store data that is loaded when my application started. This data is used throughout the lifetime of my app, but doesn't need to be persisted for future launches. I've started hitting the issue though that my singletons are garbage collected and their data is wiped. Does the singleton patte... | android|garbage-collection|singleton | 0 | 2015-02-16T21:46:47.017Z | 2,015 | 2 | 21 | 0 | 82 | 2 | 517 | 43 | 3 | 0 | false | false | false | false | false | false | zero |
28,550,897 | How to get file path of any text file and read it from SD card in Android? | <p>I have got so many links related to image file but didn't get any text related. There is solution for specific text file to open but I need general solution and not hard coded file location on SD card. I'm building an Android app that gets (copyies) the link of the file in <code>TextView</code> and reads the content... | I have got so many links related to image file but didn't get any text related. There is solution for specific text file to open but I need general solution and not hard coded file location on SD card. I'm building an Android app that gets (copyies) the link of the file in TextView and reads the content of that file in... | java|android|sd-card | 1 | 2015-02-16T21:46:56.453Z | 2,015 | 2 | 21 | 0 | 932 | 0 | 634 | 74 | 3 | 3 | true | true | false | false | false | false | low |
28,550,981 | Material navigation drawer header dimensions | <p>I'm trying to implement the latest style of navigation drawer according to the material design guidelines. I would like to use custom background picture for the header background.
The problem is that I was not able to find any information about recommended picture size or aspect ratio for different pixel densities.... | I'm trying to implement the latest style of navigation drawer according to the material design guidelines. I would like to use custom background picture for the header background. The problem is that I was not able to find any information about recommended picture size or aspect ratio for different pixel densities. I'v... | android|navigation-drawer|material-design | 1 | 2015-02-16T21:53:07.737Z | 2,015 | 2 | 21 | 0 | 5,160 | 1 | 474 | 44 | 3 | 0 | false | false | true | false | false | false | low |
28,551,006 | Android applications size > 50Mb. assets with jar libs? | <p>my application reached the 50 Mb limit and I read about using assets at googles dev site and similar posts here but its still unclear for me what I can do if my app has more than 50Mb without having large resource files.
What I read about assets are that they meant to be used with audio files, pngs, textures, things... | my application reached the 50 Mb limit and I read about using assets at googles dev site and similar posts here but its still unclear for me what I can do if my app has more than 50Mb without having large resource files. What I read about assets are that they meant to be used with audio files, pngs, textures, things li... | java|android | 0 | 2015-02-16T21:54:23.747Z | 2,015 | 2 | 21 | 0 | 73 | 0 | 419 | 55 | 2 | 0 | false | true | false | false | false | false | zero |
28,551,011 | Working with radius in Google Map Android API 2 | <p>Is it possible to show a message on my android application when a user is with a given radius of a location (latitude and longitude). I am using Google map API 2.</p>
<p>For example, given this latitude and longitude 40.218835, -74.000666, and if the user is within 10 kilometres radius of this location then I want ... | Is it possible to show a message on my android application when a user is with a given radius of a location (latitude and longitude). I am using Google map API 2. For example, given this latitude and longitude 40.218835, -74.000666, and if the user is within 10 kilometres radius of this location then I want a message t... | android|google-maps|location|radius | 0 | 2015-02-16T21:54:34.677Z | 2,015 | 2 | 21 | 0 | 1,671 | 2 | 561 | 47 | 4 | 0 | false | false | false | false | false | false | zero |
28,551,140 | Android systrace/atrace is missing events, impossible states in traces | <p>I'm currently using atrace on Android to record and analyze the state of the OS during a video workload. Specifically, I'm monitoring the system's BufferQueue sizes throughout the execution. atrace logs the sizes of these buffers as they are queued/acquired over time.</p>
<p>However, in some of my traces, this lead... | I'm currently using atrace on Android to record and analyze the state of the OS during a video workload. Specifically, I'm monitoring the system's BufferQueue sizes throughout the execution. atrace logs the sizes of these buffers as they are queued/acquired over time. However, in some of my traces, this leads to imposs... | android|graphics|systrace|surfaceflinger | 0 | 2015-02-16T22:03:02.280Z | 2,015 | 2 | 22 | 0 | 515 | 1 | 555 | 70 | 4 | 1 | true | false | false | false | false | false | zero |
28,551,142 | Clear Memory After Using Google Maps | <p>I have a question.</p>
<p>I have an app which has 2 Activities. Both of them are ActionBarActivity.</p>
<p>When I start The Map activity like this:</p>
<pre><code> Intent i = new Intent();
i.setClass(MainActivity.this,MapsActivity.class);
startActivity(i);
finish();
... | I have a question. I have an app which has 2 Activities. Both of them are ActionBarActivity. When I start The Map activity like this: [CODE] After this in the map activty the map is loaded, everything's fine when I press the back button I call this: [CODE] I have a problem there, because when I start the map activity I... | android|google-maps|android-activity|out-of-memory | 1 | 2015-02-16T22:03:06.350Z | 2,015 | 2 | 22 | 0 | 1,601 | 1 | 738 | 36 | 4 | 2 | true | false | false | false | false | false | low |
28,551,226 | ActiveAndroid and Groovy | <p>I'm using (or trying to use) Groovy language with Android Studio using this plugin: <a href="https://github.com/groovy/groovy-android-gradle-plugin" rel="nofollow">https://github.com/groovy/groovy-android-gradle-plugin</a></p>
<p>Everything works fine, but when I add ActiveAndroid (<a href="https://github.com/pardo... | I'm using (or trying to use) Groovy language with Android Studio using this plugin: https://github.com/groovy/groovy-android-gradle-plugin Everything works fine, but when I add ActiveAndroid ( https://github.com/pardom/ActiveAndroid ) and call: [CODE] I'm getting the following error: [CODE] My build.gradle is like bell... | android|groovy|android-studio|android-gradle-plugin|activeandroid | 0 | 2015-02-16T22:09:04.273Z | 2,015 | 2 | 22 | 0 | 167 | 0 | 340 | 24 | 5 | 3 | true | true | false | false | false | false | zero |
28,551,241 | How to calculate Android screen aspect ratio mathematically | <p>One of the device screen properties that Android lets an app query is it's aspect ratio. In the examples that I have seen this property seems to have only two values - <strong><em>long</em></strong> and <strong><em>notlong</em></strong>.</p>
<p>I am trying to reverse engineer the logic being used by Android to clas... | One of the device screen properties that Android lets an app query is it's aspect ratio. In the examples that I have seen this property seems to have only two values - long and notlong . I am trying to reverse engineer the logic being used by Android to classify a device as having one of the two aspect ratios. To get s... | android|screen|aspect-ratio | 16 | 2015-02-16T22:09:48.173Z | 2,015 | 2 | 22 | 0 | 20,232 | 5 | 731 | 59 | 3 | 0 | false | false | true | true | true | false | medium |
28,551,243 | can't include JSONParser in Android Studio Project | <p>So I am trying to build a Project using JSON. So as explained <a href="https://stackoverflow.com/questions/2591098/how-to-parse-json-in-java">here</a>, I included the Java file as dependency in my build.gradle. Importing the Json package, I still can't use the JSONParser. While syncing my Project (after including js... | So I am trying to build a Project using JSON. So as explained here , I included the Java file as dependency in my build.gradle. Importing the Json package, I still can't use the JSONParser. While syncing my Project (after including json lib), I am getting two warnings: [CODE] I just don't know how to handle those warni... | java|android|json | 1 | 2015-02-16T22:09:51.027Z | 2,015 | 2 | 22 | 0 | 4,809 | 1 | 324 | 50 | 3 | 1 | true | false | true | false | false | false | low |
28,551,265 | sendMultipartTextMessage doesn't send arabic messages | <p>the next function takes the message from resources By calling getString(R.string.invitation_format). invitation_format is my message, When it is in English, all work fine, but when invitation_format in Arabic the message will not be send..
note: the values in the variable "parts" is correct even if it in Arabic </p>... | the next function takes the message from resources By calling getString(R.string.invitation_format). invitation_format is my message, When it is in English, all work fine, but when invitation_format in Arabic the message will not be send.. note: the values in the variable "parts" is correct even if it in Arabic [CODE] | android|unicode|smsmanager | 1 | 2015-02-16T22:11:39.403Z | 2,015 | 2 | 22 | 0 | 230 | 0 | 319 | 53 | 3 | 1 | true | true | false | false | false | false | low |
28,551,322 | How To Set OnClickListener (Android) | <p>I know this is a very simple and maybe stupid question but I am having trouble putting an OnClickListener for my Floating Action Button. I have never done one for a button I did not make myself (Using a library) and I just need some help. Here is the code that I am using: <a href="https://gist.github.com/VirusThePan... | I know this is a very simple and maybe stupid question but I am having trouble putting an OnClickListener for my Floating Action Button. I have never done one for a button I did not make myself (Using a library) and I just need some help. Here is the code that I am using: https://gist.github.com/VirusThePanda/20320afd3... | java|android|xml|onclick | 3 | 2015-02-16T22:16:01.617Z | 2,015 | 2 | 22 | 0 | 3,884 | 1 | 748 | 36 | 4 | 0 | false | false | true | false | false | false | low |
28,551,340 | Xamarin Forms: Why FormsApplicationActivity extends from Activity instead of FragmentActivity? | <p>Because of that, I can’t use ViewPager with Xamarin Forms.</p>
<p>In the custom android renderer I need to get a reference from FragmentActivity to set the Fragment Adapter. But I can’t do it because the parent is an Activity.</p>
<p>So, CarouselPage does not fit the most basics requirements for a gallery/pager, b... | Because of that, I can’t use ViewPager with Xamarin Forms. In the custom android renderer I need to get a reference from FragmentActivity to set the Fragment Adapter. But I can’t do it because the parent is an Activity. So, CarouselPage does not fit the most basics requirements for a gallery/pager, but also it is impos... | xamarin|android-viewpager | 0 | 2015-02-16T22:17:14.930Z | 2,015 | 2 | 22 | 0 | 1,222 | 1 | 466 | 94 | 2 | 0 | false | false | false | false | false | false | zero |
28,551,421 | BitmapFactory.decodeStream returns NULL values | <p>This function returns Null in some images, the image extension is webp, in the emulator and I don't have problems, but one client has a Lenovo S6000 and some pages return NULL values... </p>
<p>The question is: Does another method exist to read images from a given URL? Somebody please help me.</p>
<pre><code> ... | This function returns Null in some images, the image extension is webp, in the emulator and I don't have problems, but one client has a Lenovo S6000 and some pages return NULL values... The question is: Does another method exist to read images from a given URL? Somebody please help me. [CODE] | android|android-asynctask|bitmapfactory|webp | 0 | 2015-02-16T22:22:38.237Z | 2,015 | 2 | 22 | 0 | 394 | 0 | 293 | 46 | 4 | 1 | true | true | false | false | false | false | zero |
28,551,428 | Android ContentProvider Uri Issue ( Unknown URL content ) | <p>Haloa ^^ I have the following issue : </p>
<pre><code>02-16 21:08:13.550 2350-2350/com.tutos.android.content.provider E/ActivityThread﹕ Failed to find provider info for com.tutos.android.content.provider.androidprovider
02-16 21:08:13.550 2350-2350/com.tutos.android.content.provider D/AndroidRuntime﹕ Shutting... | Haloa ^^ I have the following issue : [CODE] As you can see , Android Studio fail to find the provider. Here is my manifest : [CODE] And here is my provider class : [CODE] The main activity code : [CODE] I tried a lot of composition with Lower and Upper cases but still nothing :( Can you guys please help ? I'm using an... | java|android|android-studio|android-contentprovider | 0 | 2015-02-16T22:23:48.043Z | 2,015 | 2 | 22 | 0 | 3,201 | 2 | 476 | 57 | 4 | 4 | true | false | true | false | false | false | zero |
28,551,433 | Android Listview - scrolling removes highlight from row | <p>I have a ListView with 10 Items. So when I click on the first Item and scroll to the end, the highlight of the first Item removed.</p>
<p>Some code:</p>
<p>my ListView</p>
<pre><code><ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/listVi... | I have a ListView with 10 Items. So when I click on the first Item and scroll to the end, the highlight of the first Item removed. Some code: my ListView [CODE] simplerow [CODE] selecter [CODE] Activity [CODE] | android|listview|android-studio | 1 | 2015-02-16T22:24:14.157Z | 2,015 | 2 | 22 | 0 | 340 | 0 | 209 | 55 | 3 | 4 | true | true | false | false | false | false | low |
28,551,493 | Android Studio - how to have it generate an interface's stubbed function(s)? | <p>Since I've recently switched to A.S. I'm still getting accustomed to it, hence, this basic question...</p>
<p>I'll be coding a class that implements an interface</p>
<pre><code>public class SomeClass implements SomeInterface {}
</code></pre>
<p>Now, Android Studio will detect that I haven't yet implements concret... | Since I've recently switched to A.S. I'm still getting accustomed to it, hence, this basic question... I'll be coding a class that implements an interface [CODE] Now, Android Studio will detect that I haven't yet implements concrete functions for the interface. Great, just like Eclipse ! It'll show the message class So... | android | 3 | 2015-02-16T22:28:13.550Z | 2,015 | 2 | 22 | 0 | 1,509 | 1 | 736 | 76 | 1 | 1 | true | false | false | false | false | false | low |
28,551,497 | Getting Android SDK Tools to work on Raspberry PI | <p>I am currently attempting to start developing for Android on the Raspberry PI 2. I have already ruled out the posibility of using an IDE such as Eclipse or Android Studios (yes I know the RPI isn't even meant to be able to run it) so I am now looking at developing from the command line. </p>
<p>What I have so far:<... | I am currently attempting to start developing for Android on the Raspberry PI 2. I have already ruled out the posibility of using an IDE such as Eclipse or Android Studios (yes I know the RPI isn't even meant to be able to run it) so I am now looking at developing from the command line. What I have so far: An arm porte... | linux|raspberry-pi|android-sdk-tools | 7 | 2015-02-16T22:28:35.503Z | 2,015 | 2 | 22 | 0 | 12,172 | 1 | 850 | 49 | 3 | 1 | true | false | true | true | false | false | medium |
28,551,547 | Is it OK to share my server's certificate with an Android app? | <p>I developed an API for our system, so it could be used by an Android app.
The Android app is developed by another member of the team.
As the server uses SSL, the android app cannot connect without a certificate.</p>
<p>I should mention that this is a self-signed certificate.</p>
<p>What is the practice in this cas... | I developed an API for our system, so it could be used by an Android app. The Android app is developed by another member of the team. As the server uses SSL, the android app cannot connect without a certificate. I should mention that this is a self-signed certificate. What is the practice in this case? Give the Android... | android|security|ssl|asp.net-web-api|ssl-certificate | -2 | 2015-02-16T22:31:52.203Z | 2,015 | 2 | 22 | 0 | 108 | 1 | 505 | 62 | 5 | 0 | false | false | false | false | false | true | negative |
28,551,560 | How to make android WebView adaptive? | <p>I have html5 with JS. It looks pretty good but is too big for (Nexus 5) screen and WebView becomes scrollable.
I am looking long time for solution to make this view adaptive.</p>
<pre><code>WebView mWebView;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | I have html5 with JS. It looks pretty good but is too big for (Nexus 5) screen and WebView becomes scrollable. I am looking long time for solution to make this view adaptive. [CODE] | android|html|web|webview | 1 | 2015-02-16T22:33:36.077Z | 2,015 | 2 | 22 | 0 | 322 | 1 | 181 | 37 | 4 | 1 | true | false | false | false | false | false | low |
28,551,575 | FrameLayout vs Relative Layout for Image overlays | <p>Is there an advantage to using the FrameLayout over the RelativeLayout for image overlays? Would it make sense to use one over the other if I plan to have the background image static , and the foreground image dragged and scaled by the user?</p> | Is there an advantage to using the FrameLayout over the RelativeLayout for image overlays? Would it make sense to use one over the other if I plan to have the background image static , and the foreground image dragged and scaled by the user? | android|android-framelayout|android-relativelayout | 0 | 2015-02-16T22:35:12.400Z | 2,015 | 2 | 22 | 0 | 1,232 | 1 | 241 | 49 | 3 | 0 | false | false | false | false | false | false | zero |
28,551,577 | Is it possible to add custom buttons to Android actionbar? | <p>I'm looking to add two buttons for a list and Map like this.</p>
<p><img src="https://i.stack.imgur.com/BbUKa.png" alt="Action bar with List and Map Buttons"></p> | I'm looking to add two buttons for a list and Map like this. | android|user-interface | -1 | 2015-02-16T22:35:29.147Z | 2,015 | 2 | 22 | 0 | 847 | 2 | 60 | 58 | 2 | 0 | false | false | false | false | false | true | negative |
28,551,599 | Android 5.0 only - UnsatisfiedLinkError | <p>We've got a very odd problem. Our native app is throwing an "UnsatisfiedLinkError" for any native call we make - But only on Android 5.0 and only on the Galaxy S5. The app works fine on all other devices, but only exhibits this crash on this device (It's been downloaded nearly 1 million times). </p>
<p>The app has ... | We've got a very odd problem. Our native app is throwing an "UnsatisfiedLinkError" for any native call we make - But only on Android 5.0 and only on the Galaxy S5. The app works fine on all other devices, but only exhibits this crash on this device (It's been downloaded nearly 1 million times). The app has a native act... | android|native|unsatisfiedlinkerror|s5 | 0 | 2015-02-16T22:37:39.437Z | 2,015 | 2 | 22 | 0 | 226 | 0 | 1,570 | 39 | 4 | 0 | false | true | false | false | false | false | zero |
28,551,635 | Android - Get First Screenshot from Play Store App with URL | <p>I am trying to Apply the Screenshot of an App on the Playstore to an Image View based on a URL. I have YouTube and Some other sites working, for Example YouTube:</p>
<pre><code>final ImageView webImage = (ImageView) view.findViewById(R.id.webImage);
String url = (item.link);
String imgUrl = "";
... | I am trying to Apply the Screenshot of an App on the Playstore to an Image View based on a URL. I have YouTube and Some other sites working, for Example YouTube: [CODE] Now is it Possible to do something Similar with the Google Play Store? Because on Facebook for example it embeds the Image when you post a URL from the... | android | 0 | 2015-02-16T22:40:11.640Z | 2,015 | 2 | 22 | 0 | 285 | 1 | 341 | 59 | 1 | 1 | true | false | false | false | false | false | zero |
28,551,683 | ElasticSearch: 1 index vs 2 indices | <p>I currently am developing a solution for a system that uses BLE technology on mobile phones, to post check-in/checkout data through beacons to a server. The server then sends the check-in/checkout data to an ElasticSearch instance, which is then queried at will. I currently have two indices: One for the check-in dat... | I currently am developing a solution for a system that uses BLE technology on mobile phones, to post check-in/checkout data through beacons to a server. The server then sends the check-in/checkout data to an ElasticSearch instance, which is then queried at will. I currently have two indices: One for the check-in data, ... | elasticsearch|ibeacon-android | 0 | 2015-02-16T22:45:16.230Z | 2,015 | 2 | 22 | 0 | 122 | 1 | 1,339 | 35 | 2 | 0 | false | false | false | false | false | false | zero |
28,551,744 | Android Support Library Toolbar not resizing on orientation change | <p>I have my toolbar declared like that:</p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/toolbar"
app:theme="@style/ThemeOver... | I have my toolbar declared like that: [CODE] On orientation change its height remains the same (despite that fonts change size and widgets inside rearrange upwards). How can I fix this so it behaves properly, like an Action Bar? | android|android-support-library|android-toolbar | 2 | 2015-02-16T22:51:57.650Z | 2,015 | 2 | 22 | 0 | 501 | 1 | 228 | 66 | 3 | 1 | true | false | false | false | false | false | low |
28,551,792 | Setting <access> whitelist on Config.xml corrupted | <p>I am having problem with setting elements for whitelisting protocols. Following directions from <a href="http://cordova.apache.org/docs/en/3.6.0/guide_appdev_whitelist_index.md.html#Whitelist%20Guide" rel="nofollow">Cordova Whitelist Guide</a>, under External Application Whitelist, I am setting the tag with launc... | I am having problem with setting elements for whitelisting protocols. Following directions from Cordova Whitelist Guide , under External Application Whitelist, I am setting the tag with launch-external attribute to allow phone numbers to request the dialer: [CODE] However, if I open the config.xml helper window, say to... | android|cordova|visual-studio-2013|visual-studio-cordova | 0 | 2015-02-16T22:57:05.773Z | 2,015 | 2 | 22 | 0 | 382 | 1 | 718 | 50 | 4 | 1 | true | false | false | false | false | false | zero |
28,551,794 | Connection very slow with HttpClient or HttpURLConnection in emulator or smarthphone | <p>I'm riding a url and sending my server for after submitting via post, read the json . I'm having an error where there is a big delay to make the </p>
<pre><code> //VERY SLOW HERE =( 1 a 5 min
httpURLConnection c = ( HttpURLConnection ) u.openConnection ();
//or
response = httpclient.execute(httpget); //get or po... | I'm riding a url and sending my server for after submitting via post, read the json . I'm having an error where there is a big delay to make the [CODE] and What can be ? How to solve ? Below the code snippets that make the operation. These lines are within the doInBackgrund method asynktask . The emulator is 4.4.2 goog... | android|android-activity|android-asynctask|connection|httpclient | 1 | 2015-02-16T22:57:11.980Z | 2,015 | 2 | 22 | 0 | 333 | 0 | 503 | 84 | 5 | 3 | true | true | false | false | false | false | low |
28,551,830 | Save Spinner with SharedPreferences in fragment (OnItemSelectedListener) | <p>I am new to Android programming and at the moment I am trying to make some spinners with four array elements (string-array), and then save the current state with shared preferences. I've already done a lot of research, but most of the solutions only work for activities, and I am working in a fragment.</p>
<p>The co... | I am new to Android programming and at the moment I am trying to make some spinners with four array elements (string-array), and then save the current state with shared preferences. I've already done a lot of research, but most of the solutions only work for activities, and I am working in a fragment. The code now is a... | android|fragment|sharedpreferences|spinner|onitemselectedlistener | 0 | 2015-02-16T23:00:25.990Z | 2,015 | 2 | 23 | 0 | 876 | 1 | 554 | 72 | 5 | 3 | true | false | false | false | false | false | zero |
28,551,878 | How to build PhoneGap apps with Cloud 9? | <p>I have been playing around with PhoneGap, and as Cloud 9 is my IDE of choice, wondering if it's possible to use it, along with the PhoneGap native app for previews.</p>
<p>However, when i attempt the simple "Hello World" template, after <code>phonegap serve</code> i cannot access from the app in my phone, and the s... | I have been playing around with PhoneGap, and as Cloud 9 is my IDE of choice, wondering if it's possible to use it, along with the PhoneGap native app for previews. However, when i attempt the simple "Hello World" template, after phonegap serve i cannot access from the app in my phone, and the static IP on browser retu... | android|cordova|cloud9-ide | 3 | 2015-02-16T23:05:08.093Z | 2,015 | 2 | 23 | 0 | 2,188 | 3 | 362 | 40 | 3 | 1 | true | false | false | false | false | false | low |
28,551,932 | jQuery mobile routing solution? | <p>I have a mobile app which was build with jquery mobile in a classic way - on every page transition html content is loaded via AJAX request and inserted into <code>data-role="content"</code> element.</p>
<p>What I want to refactor is client-side, there's an ugly code that finds specifc id in DOM in order to differen... | I have a mobile app which was build with jquery mobile in a classic way - on every page transition html content is loaded via AJAX request and inserted into data-role="content" element. What I want to refactor is client-side, there's an ugly code that finds specifc id in DOM in order to differentiate pages and run url ... | android|jquery|jquery-mobile|dom|routing | 0 | 2015-02-16T23:08:43.367Z | 2,015 | 2 | 23 | 0 | 105 | 0 | 457 | 31 | 5 | 1 | true | true | false | false | false | false | zero |
28,551,940 | Icon launcher generated via Playstore is restarting my app on Android 4.4 | <p>i have an strange issue,</p>
<p>My Icon launcher generated via Plays Store installation is restarting my app, it happens when my app is in background, however my Icon launcher inside my "Apps" sections just open the application on a normal way.</p>
<p>this only happen with my signed app downloaded from Playstore, ... | i have an strange issue, My Icon launcher generated via Plays Store installation is restarting my app, it happens when my app is in background, however my Icon launcher inside my "Apps" sections just open the application on a normal way. this only happen with my signed app downloaded from Playstore, what would be the r... | android|android-activity|android-manifest|splash-screen|android-4.4-kitkat | 1 | 2015-02-16T23:09:22.037Z | 2,015 | 2 | 23 | 0 | 79 | 1 | 548 | 73 | 5 | 1 | true | false | false | false | false | false | low |
28,551,989 | Tests fail after Espresso 2 upgrade (failed: Instrumentation run failed due to 'java.lang.IllegalAccessError') | <p>After upgrading Espresso to version 2 none of my unit tests will run on pre-lollipop devices. See the trace below:</p>
<pre><code>15:07:07.627 [WARN] [org.gradle.api.Project] Tests on Samsung Galaxy S3 - 4.3 - API 18 - 720x1280 - 4.3 failed: Instrumentation run failed due to 'java.lang.IllegalAccessError'
15:07:07... | After upgrading Espresso to version 2 none of my unit tests will run on pre-lollipop devices. See the trace below: [CODE] The stack trace is equally unhelpful [CODE] My gradle dependencies [CODE] } What's strange is it work on 5.0 devices no problem. | android|gradle|android-4.4-kitkat|android-espresso | 12 | 2015-02-16T23:13:14.713Z | 2,015 | 2 | 23 | 0 | 6,901 | 3 | 250 | 110 | 4 | 3 | true | false | true | false | true | false | medium |
28,552,115 | Call Camera Service inside fragment, how to handle the callback? | <p>Normally to call the camera we use the code like:</p>
<pre><code>startActivityForResult(intent, REQUEST_CAMERA);
</code></pre>
<p>to start camera services. And use the onActivityResult to get the return photo uri. It works well in the activity. However, for the fragment, the call back is only trigger in Main Activ... | Normally to call the camera we use the code like: [CODE] to start camera services. And use the onActivityResult to get the return photo uri. It works well in the activity. However, for the fragment, the call back is only trigger in Main Activity instead of the fragment, how to setup the callback? Notice the fragment is... | android|android-fragments|android-camera|android-camera-intent | 1 | 2015-02-16T23:24:45.890Z | 2,015 | 2 | 23 | 0 | 693 | 1 | 531 | 64 | 4 | 3 | true | false | false | false | false | false | low |
28,552,207 | Samsung Galaxy S5 won't record video at low res/frame rate | <p>I have an application that uses MediaRecorder for recording video and I have a problem with low resolution recording on the Samsung Galaxy S5 SM-G900F (only this device - recording at the lowest supported video resolution works fine on everything else I have tested with).</p>
<p>I firstly interrogate the camera par... | I have an application that uses MediaRecorder for recording video and I have a problem with low resolution recording on the Samsung Galaxy S5 SM-G900F (only this device - recording at the lowest supported video resolution works fine on everything else I have tested with). I firstly interrogate the camera parameters (wi... | android|video|video-capture|samsung-mobile|android-mediarecorder | 3 | 2015-02-16T23:33:51.623Z | 2,015 | 2 | 23 | 0 | 1,700 | 2 | 1,926 | 58 | 5 | 2 | true | false | false | false | false | false | low |
28,552,471 | Apply navigation drawer show/hide mecanism to sidebar layout | <p>I have a layout at the <strong>right</strong> side of the screen that I would like to hide and show by dragging in a navigation drawer fashion but I don't want it to be a navigation layout, just the usual layout. Can this be done? How exactly?</p> | I have a layout at the right side of the screen that I would like to hide and show by dragging in a navigation drawer fashion but I don't want it to be a navigation layout, just the usual layout. Can this be done? How exactly? | java|android | 1 | 2015-02-17T00:00:19.773Z | 2,015 | 2 | 0 | 1 | 68 | 1 | 226 | 60 | 2 | 0 | false | false | false | false | false | false | low |
28,552,511 | NoClassDefFoundError: com.google.android.gms.analytics.Tracker | <p>I'm trying to use the new RecyclerView but when I put it on my project it give me this error in JellyBean 4.1.2</p>
<pre><code>E/dalvikvm﹕ Could not find class 'com.google.android.gms.analytics.Tracker', referenced from method com.redtab.android.MyApplication.getTracker
</code></pre>
<p>and when I take out the Rec... | I'm trying to use the new RecyclerView but when I put it on my project it give me this error in JellyBean 4.1.2 [CODE] and when I take out the RecyclerView it does work. here is my gradle [CODE] And in my MyApplication I have this: [CODE] I have test it with 4.1.2 and it doesn't work & with 5.0.2 and it works. Using An... | android|google-analytics|google-play-services|android-appcompat|android-recyclerview | 2 | 2015-02-17T00:04:18.533Z | 2,015 | 2 | 0 | 1 | 822 | 1 | 338 | 62 | 5 | 3 | true | false | false | false | false | false | low |
28,552,659 | bottom-border + border-radius not working Galaxy S4 | <p>This is being made using phonegap/cordova and the emulators are from Genymotion.</p>
<p>I am trying to add a border to just the bottom, and then round the edges so I get a result like this:</p>
<p><img src="https://i.stack.imgur.com/xrQ0D.png" alt="enter image description here"></p>
<p>As you can see, it works ju... | This is being made using phonegap/cordova and the emulators are from Genymotion. I am trying to add a border to just the bottom, and then round the edges so I get a result like this: As you can see, it works just fine on a Google Nexus 7 emulator. But when I try to run it on a generic android phone emulator, it ends up... | android|css|cordova | 0 | 2015-02-17T00:19:23.263Z | 2,015 | 2 | 0 | 1 | 242 | 1 | 400 | 51 | 3 | 1 | true | false | false | false | false | false | zero |
28,552,701 | Change toolbar like gmail Android? | <p>Gmail shows us an feature that it changes the toolbar color and button , and also highlight the recycleView when we click on the circle. Is there anyway I can implement this feature? </p>
<p>To make thing clear, I have added 2 images to show what I meant(notice on the 3rd row). </p>
<p>Before :
<img src="https://... | Gmail shows us an feature that it changes the toolbar color and button , and also highlight the recycleView when we click on the circle. Is there anyway I can implement this feature? To make thing clear, I have added 2 images to show what I meant(notice on the 3rd row). Before : After : | android|android-recyclerview|android-toolbar | 1 | 2015-02-17T00:23:26.570Z | 2,015 | 2 | 0 | 1 | 1,748 | 1 | 287 | 34 | 3 | 0 | false | false | false | false | false | false | low |
28,552,778 | how to display array from php to android listview? | <p>in my logcat im returning some arrays, and i want to list them in android listview, i dont know how it works because im new to this android stuff</p>
<p>thnx in advance :)</p>
<p>my php code:</p>
<pre><code><?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "android_sms";
date_defau... | in my logcat im returning some arrays, and i want to list them in android listview, i dont know how it works because im new to this android stuff thnx in advance :) my php code: [CODE] my android code: [CODE] in my log cat im returning these arrays [CODE] how can i disolay them in list view? tnx in advance | php|android|arrays|listview | -1 | 2015-02-17T00:32:22.467Z | 2,015 | 2 | 0 | 1 | 866 | 1 | 307 | 50 | 4 | 3 | true | false | false | false | false | true | negative |
28,552,796 | Recalculation of datetime in Java Thread | <p>What's the best way determining the datetime inside a Java Thread (in Android)?</p>
<p>I have the following snippet:</p>
<pre><code>public void repeatedlyPrintTheTime() {
final Handler handler = new Handler();
mR = new Runnable() {
public void run() {
System.out.println("Time 1 is " + ... | What's the best way determining the datetime inside a Java Thread (in Android)? I have the following snippet: [CODE] Time 1 repeatedly prints the same time, but Time 2 updates on every iteration. Do I really have to get a new instance of GregorianCalendar every time I want to check what the time is? | java|android|multithreading|time | 1 | 2015-02-17T00:34:31.480Z | 2,015 | 2 | 0 | 1 | 76 | 2 | 300 | 40 | 4 | 1 | true | false | false | false | false | false | low |
28,552,810 | connect to Neo4j through Android - impossible task? | <p>Is there any way I can connect to a remote Neo4j server from an Android Project <strong>at all</strong> ? I have used several approaches: JDBC driver and through REST API using Jersey Client however none of these approaches are successful. All of these work in a pure Java project but fail miserably in Android. At th... | Is there any way I can connect to a remote Neo4j server from an Android Project at all ? I have used several approaches: JDBC driver and through REST API using Jersey Client however none of these approaches are successful. All of these work in a pure Java project but fail miserably in Android. At this stage I lost hope... | java|android|neo4j|httpurlconnection | 1 | 2015-02-17T00:36:06.777Z | 2,015 | 2 | 0 | 1 | 269 | 1 | 466 | 51 | 4 | 0 | false | false | false | false | false | false | low |
28,552,827 | How to remove seconds of HTML5 input type time | <p>I'm developing HTML5 app for both Android and IOS and encountering some sort of buggy issue.
What I want to achieve is to get <code>HH:MM</code> format of <code><input type="time"></code></p>
<p>According to W3C
<a href="http://www.w3.org/TR/html5/forms.html#time-state-(type=time)" rel="nofollow">http://www.w... | I'm developing HTML5 app for both Android and IOS and encountering some sort of buggy issue. What I want to achieve is to get HH:MM format of <input type="time"> According to W3C http://www.w3.org/TR/html5/forms.html#time-state-(type=time) Default attribute of step is 60s. This means users would never be able to select... | android|css|html|google-chrome | 2 | 2015-02-17T00:39:03.650Z | 2,015 | 2 | 0 | 1 | 4,928 | 2 | 734 | 46 | 4 | 0 | false | false | true | false | false | false | low |
28,552,871 | JSoup Getting Image Google Play Listing? | <p>I am attempting to get the Header Image of a Google Play App by Using the Jsoup Library. Here is the Code:</p>
<pre><code>public static String getGooglePlayURL(String urlP) {
// LOAD IMAGE URL
Document doc = null;
try {
doc = Jsoup.connect("https://play.google.com/store/apps/details?id=tbs.searc... | I am attempting to get the Header Image of a Google Play App by Using the Jsoup Library. Here is the Code: [CODE] However it seems to return an Empty String every time. What am I doing wrong or what are the alternatives? Thank you very Much. | android|jsoup | 0 | 2015-02-17T00:44:10.780Z | 2,015 | 2 | 0 | 1 | 135 | 0 | 241 | 40 | 2 | 1 | true | true | false | false | false | false | zero |
28,552,918 | How to test a RetrofitSpiceRequest? | <p>I'm trying to unit test a <code>RetrofitSpiceRequest</code> using Square's <code>MockWebServer</code>. The problem is that in the current <code>RoboSpice</code> implementation, the <code>server url</code> is passed through a subclass method, which makes it difficult, if not impossible, to inject a different base url... | I'm trying to unit test a RetrofitSpiceRequest using Square's MockWebServer . The problem is that in the current RoboSpice implementation, the server url is passed through a subclass method, which makes it difficult, if not impossible, to inject a different base url in runtime as the services are initialized by the Spi... | android|retrofit|robospice | 1 | 2015-02-17T00:50:36Z | -1 | -1 | -1 | -1 | 221 | 0 | 523 | 35 | 3 | 1 | true | true | false | false | false | false | low |
28,552,934 | getting contact number from contactlist in Android but dont work equals() | <p>I'm really confused .
I want to get the phone numbers and save a arrays</p>
<p>To do this I use the following function </p>
<pre><code>public void PickContact(){
Cursor phones = BaseContext.getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null,null,null, null);
NameCont... | I'm really confused . I want to get the phone numbers and save a arrays To do this I use the following function [CODE] This method works properly I would , if the contact name with a particular name , A message will display . Part of the code [CODE] but No message is displayed!! The statement if, any time is not true!!... | android | 0 | 2015-02-17T00:52:20.263Z | 2,015 | 2 | 0 | 1 | 23 | 1 | 489 | 73 | 1 | 2 | true | false | false | false | false | false | zero |
28,552,946 | ICS (iCal) PUBLISH/REQUEST/CANCEL | <p>I'm having a lot of trouble getting entries in a .ics file generated from PHP to update. Here's an example of what I'm using:</p>
<pre><code><?php
header('Content-type: text/calendar; charset=utf-8');
header('Content-Disposition: attachment; filename=calendar.ics');
$time = time();
$dtstamp = date('Ymd', $time)... | I'm having a lot of trouble getting entries in a .ics file generated from PHP to update. Here's an example of what I'm using: [CODE] So this is to output the events to a URL that can be hit in an Android or iOS device and added to the calendar. The next step would be to update the event items when needed. I've been try... | php|android|ios|icalendar | 0 | 2015-02-17T00:54:11.970Z | 2,015 | 2 | 0 | 1 | 17,471 | 1 | 898 | 33 | 4 | 2 | true | false | true | true | false | false | zero |
28,552,970 | How to run a Video Presentation on Android in loop? | <p>I have a group of Android Tablets and I need them to only run a Video Presentation as Company Gift Card.</p>
<p>The idea of this project is the same of usually Company's Gift PENs, where the Company give to their presentation audience the information in the PEN, but this case we will have on an Android Tablet.</p>
... | I have a group of Android Tablets and I need them to only run a Video Presentation as Company Gift Card. The idea of this project is the same of usually Company's Gift PENs, where the Company give to their presentation audience the information in the PEN, but this case we will have on an Android Tablet. So this reason ... | android|video|boot|presentation | 0 | 2015-02-17T00:57:31.970Z | 2,015 | 2 | 0 | 1 | 508 | 1 | 685 | 51 | 4 | 0 | false | false | false | false | false | false | zero |
28,552,994 | How to set bitmap to canvas? | <p>I am trying to create an unique shape using Path, Path.quadTo and Canvas and then pass a bitmap to this unique shape. The idea is that the square bitmap will transform to the unique shape of the canvas. I am not sure if this is possible, but this is what I am trying to accomplish and this is how I have interpreted t... | I am trying to create an unique shape using Path, Path.quadTo and Canvas and then pass a bitmap to this unique shape. The idea is that the square bitmap will transform to the unique shape of the canvas. I am not sure if this is possible, but this is what I am trying to accomplish and this is how I have interpreted the ... | android|canvas|android-canvas | 0 | 2015-02-17T01:00:09.430Z | 2,015 | 2 | 1 | 1 | 2,496 | 2 | 727 | 28 | 3 | 2 | true | false | false | false | false | false | zero |
28,553,010 | httpclient.execute(httppost) doesn't work | <p>I am trying to insert data in mysql database from my Android app using php file. I don´t know what I am doing wrong, here is my android code:</p>
<p>cargar_preguntas.java</p>
<pre><code>package com.example.nico.leercomentariosbdremota2;
import android.app.Activity;
import android.app.ProgressDialog;
import androi... | I am trying to insert data in mysql database from my Android app using php file. I don´t know what I am doing wrong, here is my android code: cargar_preguntas.java [CODE] And my Insertar_Preguntas.php? [CODE] ?> Thanks | java|php|android|mysql | -1 | 2015-02-17T01:02:31.060Z | 2,015 | 2 | 1 | 1 | 678 | 1 | 218 | 41 | 4 | 2 | true | false | false | false | false | true | negative |
28,553,056 | How to launch a click event of a button? | <p>I hope to launch a click event of the button btnAdd if the app is run for the first time.</p>
<p>I have read <a href="https://stackoverflow.com/questions/17610578/how-can-i-click-a-button-to-launch-an-itemselected-event-of-spinner-control">How can I click a button to launch an ItemSelected event of spinner control?... | I hope to launch a click event of the button btnAdd if the app is run for the first time. I have read How can I click a button to launch an ItemSelected event of spinner control? How can I do? Thanks! [CODE] | android | 0 | 2015-02-17T01:07:36.770Z | 2,015 | 2 | 1 | 1 | 71 | 2 | 207 | 40 | 1 | 1 | true | false | false | false | false | false | zero |
28,553,082 | Unfortunately Application name has stopped | <p>i have problem starting my app, trying to find problem 4hours. I'm new to android development. Curently trying making splash screen for app and then loading webview website.
Here is my Code.</p>
<p><em>AndroidManifest.xml</em></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="... | i have problem starting my app, trying to find problem 4hours. I'm new to android development. Curently trying making splash screen for app and then loading webview website. Here is my Code. AndroidManifest.xml [CODE] activity_unique.xml [CODE] myMainScreen.java [CODE] import android.app.Activity; import android.os.Bun... | java|android|eclipse|webview | -1 | 2015-02-17T01:09:49.747Z | 2,015 | 2 | 1 | 1 | 57 | 1 | 417 | 42 | 4 | 6 | true | false | false | false | false | true | negative |
28,553,116 | Android AsyncTask take param from TextView | <p>I'm trying to follow this tutorial:
<a href="http://www.androidhive.info/2012/01/android-json-parsing-tutorial/" rel="nofollow">http://www.androidhive.info/2012/01/android-json-parsing-tutorial/</a></p>
<p>I have a problem to add param in my url string, I need the url to be:</p>
<pre><code>http://api.androidhive.i... | I'm trying to follow this tutorial: http://www.androidhive.info/2012/01/android-json-parsing-tutorial/ I have a problem to add param in my url string, I need the url to be: [CODE] and params is that the contents of a TextView, I'm trying to take params like that: [CODE] but after how and where should I use this paramet... | json|android-asynctask|parameters | 0 | 2015-02-17T01:13:41.580Z | 2,015 | 2 | 1 | 1 | 122 | 2 | 522 | 42 | 3 | 5 | true | false | false | false | false | false | zero |
28,553,139 | setup alarm in android | <p>I'm trying to work with <code>AlarmManager</code> in android. I have the following code which should set the alarm for 3 secs from when the button was clicked. I do not receive any errors but the code in my <code>AlarmReceiver</code> is never triggered.</p>
<p>Here is my activity:</p>
<pre><code>public class MainA... | I'm trying to work with AlarmManager in android. I have the following code which should set the alarm for 3 secs from when the button was clicked. I do not receive any errors but the code in my AlarmReceiver is never triggered. Here is my activity: [CODE] And here is my receiver: [CODE] And this is my manifest: [CODE] ... | android|alarmmanager | 0 | 2015-02-17T01:16:05.507Z | 2,015 | 2 | 1 | 1 | 89 | 0 | 498 | 22 | 2 | 3 | true | true | false | false | false | false | zero |
28,553,208 | Precisely determine how far a finger has moved in Android during ACTION_MOVE | <p>In my <strong>onTouchEvent</strong> method's <strong>ACTION_MOVE</strong> I'm attempting to find out how many pixels the users finger has moved during a touch gesture - this amount will be updated every frame and an object on the screen will be moved
by the same amount.</p>
<p>This is what I'm doing so far:</p>
<p... | In my onTouchEvent method's ACTION_MOVE I'm attempting to find out how many pixels the users finger has moved during a touch gesture - this amount will be updated every frame and an object on the screen will be moved by the same amount. This is what I'm doing so far: [CODE] I'm only really concerned with movement in th... | java|android|touch|gesture|touch-event | 0 | 2015-02-17T01:23:39.497Z | 2,015 | 2 | 1 | 1 | 293 | 1 | 1,447 | 76 | 5 | 2 | true | false | false | false | false | false | zero |
28,553,291 | overflow hidden not working on Android 4.3 and below | <p>I'm trying to clip a picture to be round on the page. It doesn't work on Android 4.3 build-in browser and below. </p>
<pre><code><div class="clipper">
<img class="profilePicture" src="http://excample.com/picture"/>
</div>
</code></pre>
<p>and css:</p>
<pre><code>.clipper {
height: 140px;
... | I'm trying to clip a picture to be round on the page. It doesn't work on Android 4.3 build-in browser and below. [CODE] and css: [CODE] Someone said it was because on Android the overflow:hidden wouldn't work when the position is relative or absolute. I tried to fix it by wrapping the whole thing in a div and make its ... | android|html|css|android-browser|mobile-browser | 0 | 2015-02-17T01:32:50.820Z | 2,015 | 2 | 1 | 1 | 328 | 0 | 499 | 52 | 5 | 2 | true | true | false | false | false | false | zero |
28,553,409 | Android Camera app crashes in KitKat | <p>I 'm building a camera app.It runs normally on my Sony Experia phone.But it crashes on KitKat when I am going to take picture.Please give me some help.</p>
<p>Here is my camera preview class............</p>
<pre><code>package com.hnjcreations.cameratest;
import java.io.IOException;
import android.annotation.Sup... | I 'm building a camera app.It runs normally on my Sony Experia phone.But it crashes on KitKat when I am going to take picture.Please give me some help. Here is my camera preview class............ [CODE] here is my Picture taking class......... [CODE] Logcat: [CODE] | java|android|eclipse | 0 | 2015-02-17T01:48:04.053Z | 2,015 | 2 | 1 | 1 | 419 | 0 | 265 | 36 | 3 | 3 | true | true | false | false | false | false | zero |
28,553,418 | BroadcastReceiver, one activity over, won't receive message | <p>I have the activity SingleSpecial where a user clicks to share and initiates the actions below:</p>
<pre><code> inviteFriend.setOnClickListener(new View.OnClickListener() {
public void onClick(View arg0) {
// Send broadcast of the sharedId to the SharingAction
Intent i = new Int... | I have the activity SingleSpecial where a user clicks to share and initiates the actions below: [CODE] The InviteFriendOrGroup.class is intended to open and the user selects a person to share with. Upon selecting the person to share, the SharingAction class will open and is supposed to accept the Broadcast from the act... | android|android-intent|broadcastreceiver | 0 | 2015-02-17T01:49:18.847Z | 2,015 | 2 | 1 | 1 | 195 | 2 | 675 | 59 | 3 | 3 | true | false | false | false | false | false | zero |
28,553,476 | BufferedWriter in Android performance | <p>I'm writing data to a file (received via BLE) in Android. </p>
<p>Is there a performance difference between multiple calls to the BufferedWriter such as: </p>
<pre><code>_writer.write(String.valueOf(sampleNumber));
_writer.write(",");
_writer.write(String.valueOf(characteristic.getIntValue(formatU8, 0)));
_writer.... | I'm writing data to a file (received via BLE) in Android. Is there a performance difference between multiple calls to the BufferedWriter such as: [CODE] versus building a String and then calling BufferedWriter once per data item received. [CODE] Or should I use StringBuilder instead? | java|android|file-io|bufferedwriter | 0 | 2015-02-17T01:58:09.920Z | 2,015 | 2 | 1 | 1 | 129 | 1 | 284 | 37 | 4 | 2 | true | false | false | false | false | false | zero |
28,553,497 | How to control the displayed order of the Intent windows? | <p>I hope my app display intent0 window first, after I click OK or Cancel in intent0 window, then the intent1 will be displayed.</p>
<p>But in fact, the intent1 displayed first, then intent0 displayed.</p>
<p>How can I do? thanks!</p>
<pre><code> if (MonitorWiFi_Helper.IsEnableAdmin(getApplicationContext())==fals... | I hope my app display intent0 window first, after I click OK or Cancel in intent0 window, then the intent1 will be displayed. But in fact, the intent1 displayed first, then intent0 displayed. How can I do? thanks! [CODE] | android | 0 | 2015-02-17T02:00:59.887Z | 2,015 | 2 | 2 | 1 | 34 | 0 | 220 | 57 | 1 | 1 | true | true | false | false | false | false | zero |
28,553,514 | Android BluetoothSocket outputstream writes too slow | <p>Basically, I've been working on a wireless mouse that utilizes bluetooth OR wifi. I've gotten everything working including reading and writing messages. However, the rate at which data transfers through bluetooth is too slow to compensate. I've looked all over the place and I can't figure out what is causing this sp... | Basically, I've been working on a wireless mouse that utilizes bluetooth OR wifi. I've gotten everything working including reading and writing messages. However, the rate at which data transfers through bluetooth is too slow to compensate. I've looked all over the place and I can't figure out what is causing this speed... | java|android|bluetooth|outputstream|bluecove | 3 | 2015-02-17T02:03:27.293Z | 2,015 | 2 | 2 | 1 | 1,370 | 1 | 527 | 52 | 5 | 2 | true | false | false | false | false | false | low |
28,553,523 | Display Watch Face in android activity | <p>I'd like to display a watch face I've developed in my app and have it appear live as though it was on a watch. The class and engine already exist so i feel like it shouldn't be too hard to get it to appear within an activity. Does anyone have experience with this or have a suggestions as to which path to take in att... | I'd like to display a watch face I've developed in my app and have it appear live as though it was on a watch. The class and engine already exist so i feel like it shouldn't be too hard to get it to appear within an activity. Does anyone have experience with this or have a suggestions as to which path to take in attemp... | android|wear-os | 0 | 2015-02-17T02:04:29.677Z | 2,015 | 2 | 2 | 1 | 76 | 1 | 330 | 38 | 2 | 0 | false | false | false | false | false | false | zero |
28,553,568 | Input type "textVisiblePassword" vs "text": what's the difference? | <p>Short and sweet: I have no idea what the difference between <code>textVisiblePassword</code> and <code>text</code> is, in regards to <code>inputType</code> on an EditText. According to the docs, <code>textVisiblePassword</code> is "text that is a password that should be visible", where password is unhelpfully "text... | Short and sweet: I have no idea what the difference between textVisiblePassword and text is, in regards to inputType on an EditText. According to the docs, textVisiblePassword is "text that is a password that should be visible", where password is unhelpfully "text that is a password". What's the diff? Why use textVisib... | android | 1 | 2015-02-17T02:09:04.010Z | 2,015 | 2 | 2 | 1 | 2,466 | 2 | 331 | 66 | 1 | 0 | false | false | false | false | false | false | low |
28,553,614 | Module missing in Android Studio and Gradle sync fails | <p>I have set up a brand new project in Android Studio 1.1 RC 1:</p>
<ul>
<li>Created an Android project [app] (because there is no way to create an App Engine backend project right away).</li>
<li>Added an existing backend module by first creating a new App Engine module and then manually importing the files [backend... | I have set up a brand new project in Android Studio 1.1 RC 1: Created an Android project [app] (because there is no way to create an App Engine backend project right away). Added an existing backend module by first creating a new App Engine module and then manually importing the files [backend]. Removed the Android app... | android-studio|gradle | 0 | 2015-02-17T02:14:21.597Z | 2,015 | 2 | 2 | 1 | 1,933 | 2 | 1,412 | 54 | 2 | 4 | true | false | false | false | false | false | zero |
28,553,628 | How we get the previous data of fragment in android? | <p>In my application Main_Activity contain four fragments. In one fragment (called mobile_fragment) whenever i click the button in fragment it will move to another activity, in that i need to get the one value and need to send that data to that fragment(mobile_fragment).</p>
<p>what i done is:
whenever i click the ... | In my application Main_Activity contain four fragments. In one fragment (called mobile_fragment) whenever i click the button in fragment it will move to another activity, in that i need to get the one value and need to send that data to that fragment(mobile_fragment). what i done is: whenever i click the button in frag... | android|android-fragments | 0 | 2015-02-17T02:16:51.887Z | 2,015 | 2 | 2 | 1 | 56 | 1 | 715 | 52 | 2 | 1 | true | false | false | false | false | false | zero |
28,553,646 | AdMob with no internet connection | <p>How can I use AdMob in android if I cannot connect to internet? Is there any way of simulating a google service on own my laptop so I can test my application even if I cannot connect to internet? </p> | How can I use AdMob in android if I cannot connect to internet? Is there any way of simulating a google service on own my laptop so I can test my application even if I cannot connect to internet? | android|admob|cocos2d-x|ads | 2 | 2015-02-17T02:19:29.290Z | 2,015 | 2 | 2 | 1 | 2,790 | 1 | 195 | 33 | 4 | 0 | false | false | true | false | false | false | low |
28,553,692 | Dynamically adding a border on a TextView | <p>I'm trying to append styles to TextViews in a TableLayout through code.</p>
<p>However, I keep getting a white background, even though the color is a transparent black in the XML and the color I want was set previously.</p>
<p>Essentially:</p>
<ol>
<li>highlight a value using the <code>table_cell_bold style</code... | I'm trying to append styles to TextViews in a TableLayout through code. However, I keep getting a white background, even though the color is a transparent black in the XML and the color I want was set previously. Essentially: highlight a value using the table_cell_bold style else, use table_cell apply the background co... | android | 0 | 2015-02-17T02:25:42.090Z | 2,015 | 2 | 2 | 1 | 961 | 2 | 954 | 41 | 1 | 9 | true | false | false | false | false | false | zero |
28,553,752 | Android - Random int isn't random | <p>Currently, I have three different sets of images that are produced randomly with a random integer string. str2 and str3 work fine but for some reason when I use rnd.nextInt(1), it only returns 0. Not 0 and 1, only 0. I sampled it hundreds of times and every time it is nothing but 0. Again, the other two strings retu... | Currently, I have three different sets of images that are produced randomly with a random integer string. str2 and str3 work fine but for some reason when I use rnd.nextInt(1), it only returns 0. Not 0 and 1, only 0. I sampled it hundreds of times and every time it is nothing but 0. Again, the other two strings return ... | android|random|int | 0 | 2015-02-17T02:31:51.867Z | 2,015 | 2 | 2 | 1 | 85 | 1 | 514 | 33 | 3 | 1 | true | false | false | false | false | false | zero |
28,553,804 | Authorizing Drive and Sheets API on Android | <p>Okay so my Android app needs to access a users Google drive account and edit spreadsheets on that account. I'm using the Google Sheets API version 3.0 to edit the spreadsheets and Drive API Client Library for Java for drive access.<br>Now i know that the user needs to give permission for my app to access their infor... | Okay so my Android app needs to access a users Google drive account and edit spreadsheets on that account. I'm using the Google Sheets API version 3.0 to edit the spreadsheets and Drive API Client Library for Java for drive access. Now i know that the user needs to give permission for my app to access their information... | java|android|google-drive-api|google-sheets | 3 | 2015-02-17T02:38:21.690Z | 2,015 | 2 | 2 | 1 | 683 | 1 | 1,605 | 43 | 4 | 1 | true | false | false | false | false | false | low |
28,553,866 | Application restarts after pressing login button | <p>I am trying to create a login script in Android. When I press the login button using the incorrect password, the app shuts down immediately. It is happening when I try to login using the wrong password. Find the code below:</p>
<pre><code> public void onClick(View arg0) {
String pass = txtpass.getText().... | I am trying to create a login script in Android. When I press the login button using the incorrect password, the app shuts down immediately. It is happening when I try to login using the wrong password. Find the code below: [CODE] | android | 0 | 2015-02-17T02:47:59.650Z | 2,015 | 2 | 2 | 1 | 43 | 0 | 230 | 48 | 1 | 1 | true | true | false | false | false | false | zero |
28,553,867 | Keystore for Android app | <p>I exported application for the first time and I'm a little bit confused about keystore. </p>
<p>I want to use one keystore for all next apps. So in Eclipse I will make new keystore but what to put in Alias? Can I put there app name or what? Because I want make universal keystore for all kinds of apps. Can I will pu... | I exported application for the first time and I'm a little bit confused about keystore. I want to use one keystore for all next apps. So in Eclipse I will make new keystore but what to put in Alias? Can I put there app name or what? Because I want make universal keystore for all kinds of apps. Can I will put different ... | android|eclipse|keystore|android-keystore | 0 | 2015-02-17T02:48:04.380Z | 2,015 | 2 | 2 | 1 | 128 | 2 | 499 | 24 | 4 | 0 | false | false | false | false | false | false | zero |
28,553,873 | Android Contextual Action bar in adapter? | <p>Im trying to implement contextual actionbar in my app. However, when I try to let the Startactionmode method in my adapter, I could not find a way to do so. </p>
<p>I have tried : </p>
<pre><code>mActionMode = ((MainActivity)c).startActionMode(new MyActionModeCallback());
</code></pre>
<p>and it gives me an error... | Im trying to implement contextual actionbar in my app. However, when I try to let the Startactionmode method in my adapter, I could not find a way to do so. I have tried : [CODE] and it gives me an error java.lang.NullPointerException: Attempt to invoke virtual method ' at CustomerListAdapter$ViewHolder$1.onClick(Custo... | android|android-toolbar|contextual-action-bar | 1 | 2015-02-17T02:48:44.110Z | 2,015 | 2 | 2 | 1 | 2,571 | 2 | 904 | 41 | 3 | 8 | true | false | false | false | false | false | low |
28,553,903 | Sending Byte array to Galaxy Gear Live from the mobile | <p>I have been developing an app to read serial data from the micro usb port of the Samsung S4 using OTG cable. Now I want to send these data to the Android wear app runs on Galaxy Gear Live.
The problem I face is that, I know we can send Strings to the android wear app using the message API, but how can I send a byt... | I have been developing an app to read serial data from the micro usb port of the Samsung S4 using OTG cable. Now I want to send these data to the Android wear app runs on Galaxy Gear Live. The problem I face is that, I know we can send Strings to the android wear app using the message API, but how can I send a byte arr... | android|wear-os|serial-communication|android-wear-data-api|samsung-galaxy-gear | 0 | 2015-02-17T02:51:47.223Z | 2,015 | 2 | 2 | 1 | 169 | 1 | 376 | 54 | 5 | 0 | false | false | false | false | false | false | zero |
28,553,935 | java.lang.RuntimeException: Binary XML file line #10: You must supply a layout_width attribute | <p>This is CountryDrawerListAdapter at inflation time in getView() I'm getting java.lang.RuntimeException: Binary XML file line #10: You must supply a layout_width attribute.</p>
<pre><code> public class CountryDrawerListAdapter extends BaseAdapter implements Filterable {
private Context mContext;
... | This is CountryDrawerListAdapter at inflation time in getView() I'm getting java.lang.RuntimeException: Binary XML file line #10: You must supply a layout_width attribute. [CODE] This is the Xml that will be inflate by adapter. [CODE] This my log Cat for display error. [CODE] | android|android-layout|android-activity | 1 | 2015-02-17T02:56:51.687Z | 2,015 | 2 | 2 | 1 | 754 | 1 | 276 | 94 | 3 | 3 | true | false | false | false | false | false | low |
28,554,018 | Android SQLite cursor getType appears to be crashing app | <p>When inserting temporary values to all of the columns in my table it appears to work. See method below and log below. But when I test if the column exists with my test method below, it returns a false that the column exists!!</p>
<p>Also you can see in the log that the getType is returning 0 for the columns excep... | When inserting temporary values to all of the columns in my table it appears to work. See method below and log below. But when I test if the column exists with my test method below, it returns a false that the column exists!! Also you can see in the log that the getType is returning 0 for the columns except the name co... | android|mysql|sqlite | 1 | 2015-02-17T03:08:44.380Z | 2,015 | 2 | 3 | 1 | 697 | 1 | 808 | 56 | 3 | 5 | true | false | false | false | false | false | low |
28,554,054 | android.view.InflateException Error inflating class fragment | <p>I am trying to solve this problem from 5 days, but still I didn't get it solved. </p>
<p><strong>Main Java Code</strong></p>
<pre><code>package com.beproject.ourway;
import android.app.Fragment;
import android.app.FragmentManager;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.... | I am trying to solve this problem from 5 days, but still I didn't get it solved. Main Java Code [CODE] Main XML File [CODE] fragment_home.xml [CODE] fragment_places.xml [CODE] LogCat [CODE] When I click on Home menu item from navigation drawer then it works fine. But when I click again on Home after then I get this exc... | java|android|android-layout|android-fragments|google-maps-android-api-2 | 0 | 2015-02-17T03:15:36.707Z | 2,015 | 2 | 3 | 1 | 1,494 | 1 | 416 | 60 | 5 | 6 | true | false | false | false | false | false | zero |
28,554,197 | What is the difference between the animator class and animation class in android? | <p>I was wondering what is the difference between the animation and animator class in android.</p>
<p>If I use the animation class to animate a FragmentTransaction.replace() by using a fade-in and fade-out animation, it causes an error and crashes the app,</p>
<pre><code>ft.setCustomAnimations(android.R.anim.fade_in,... | I was wondering what is the difference between the animation and animator class in android. If I use the animation class to animate a FragmentTransaction.replace() by using a fade-in and fade-out animation, it causes an error and crashes the app, [CODE] but when I use the animator class [CODE] It works perfectly fine. ... | android|animation | 2 | 2015-02-17T03:34:52.783Z | 2,015 | 2 | 3 | 1 | 782 | 0 | 459 | 81 | 2 | 2 | true | true | false | false | false | false | low |
28,554,223 | Widget not showing JSON result | <p>I'm creating a widget that is supposed to get weather information from a website that provides a JSON service and show it. Here is the code</p>
<p>Widget:</p>
<pre><code>public class MainActivity extends AppWidgetProvider {
public static void onUpdate(Context context, AppWidgetManager appWidgetManager,int appWi... | I'm creating a widget that is supposed to get weather information from a website that provides a JSON service and show it. Here is the code Widget: [CODE] } class dados that gets the service: public class Dados extends AsyncTask { [CODE] } Config: [CODE] } I don't get any errors but the widget only shows the textViews ... | android|json|android-widget | 0 | 2015-02-17T03:37:37.047Z | 2,015 | 2 | 3 | 1 | 45 | 2 | 383 | 30 | 3 | 3 | true | false | false | false | false | false | zero |
28,554,277 | Unable to use Filtering while using google Places API (Android) | <p>I'm trying to use Google Places API on my Android and fail in the filtering process.
I've used the code shown in this guide:
<a href="https://developers.google.com/places/training/autocomplete-android" rel="nofollow">https://developers.google.com/places/training/autocomplete-android</a></p>
<p>-My API key is fine ... | I'm trying to use Google Places API on my Android and fail in the filtering process. I've used the code shown in this guide: https://developers.google.com/places/training/autocomplete-android -My API key is fine (I've tested it in the browser and it worked fine). -Also, the URL I'm giving is fine (tested it in the brow... | android|api|filtering | 0 | 2015-02-17T03:43:59.167Z | 2,015 | 2 | 3 | 1 | 346 | 1 | 683 | 63 | 3 | 1 | true | false | false | false | false | false | zero |
28,554,319 | Android Wear Communicate With Phone Hardware | <p>Hi I have this simple code on Android Wear I need a bit of help everything works well if I'm using the phone alone the problem I have is that I taught Android wear will use automatically the Phone hardware for sound and all that good stuff.
Here is my test code</p>
<pre><code>protected void onCreate(Bundle savedIns... | Hi I have this simple code on Android Wear I need a bit of help everything works well if I'm using the phone alone the problem I have is that I taught Android wear will use automatically the Phone hardware for sound and all that good stuff. Here is my test code [CODE] It call the sound but because watches doesn't have ... | java|android|wear-os | 0 | 2015-02-17T03:49:16.850Z | 2,015 | 2 | 3 | 1 | 550 | 1 | 428 | 44 | 3 | 1 | true | false | false | false | false | false | zero |
28,554,332 | Volley throws error response when parsing JSON in Android | <p>My volley throw error response when trying to parse JSON data inside listview. Is is because of my JSON data in object node, not array node.</p>
<p>JSON data</p>
<pre><code>{
"users": [{
"userId": 1,
"name": "Dya Vega",
"profilePhoto": "https://graph.facebook.com/1301454197/picture?type... | My volley throw error response when trying to parse JSON data inside listview. Is is because of my JSON data in object node, not array node. JSON data [CODE] Code [CODE] | android|json|android-volley | 0 | 2015-02-17T03:51:38.310Z | 2,015 | 2 | 3 | 1 | 8,819 | 3 | 169 | 57 | 3 | 2 | true | false | true | false | false | false | zero |
28,554,370 | Android Wear API breaks Play Services if app not installed | <p>This is definitely some sort of bug, but I don't know where to file this, and I want to see if other developers have a workaround.</p>
<p>I made this weather app and both my dad and sister downloaded it. It seemed to work for a while. Then my dad got a new phone (Moto E from Republic Wireless). Oddly, it gave an er... | This is definitely some sort of bug, but I don't know where to file this, and I want to see if other developers have a workaround. I made this weather app and both my dad and sister downloaded it. It seemed to work for a while. Then my dad got a new phone (Moto E from Republic Wireless). Oddly, it gave an error when th... | android|google-play-services|wear-os | 0 | 2015-02-17T03:55:03.200Z | 2,015 | 2 | 3 | 1 | 610 | 1 | 1,416 | 58 | 3 | 2 | true | false | false | false | false | false | zero |
28,554,387 | How to scale effectively in libgdx? | <p>I currently have my libgdx game as 720x1280. I totally forgot when making the game that different screen sizes will affect the resolution and how the game looks. All of my rendering is done in pixels so I am wondering if there is a simple way to scale my game so that the game reads it as 720x1280 and then scales it ... | I currently have my libgdx game as 720x1280. I totally forgot when making the game that different screen sizes will affect the resolution and how the game looks. All of my rendering is done in pixels so I am wondering if there is a simple way to scale my game so that the game reads it as 720x1280 and then scales it dow... | android|libgdx | 1 | 2015-02-17T03:56:33.620Z | 2,015 | 2 | 3 | 1 | 72 | 0 | 526 | 35 | 2 | 0 | false | true | false | false | false | false | low |
28,554,528 | Calculate percentage for single record in SQLITE | <p>I have <code>Register</code> table and in this I have following fields like:</p>
<p><code>r_id , f_name , l_name , isactive , pkg</code></p>
<p><strong>pkg</strong> field can have values of 1,2,3,4. I want to find out percentage of how many user has <code>pkg</code> value 1 and 2 and 3 and 4.
I used following quer... | I have Register table and in this I have following fields like: r_id , f_name , l_name , isactive , pkg pkg field can have values of 1,2,3,4. I want to find out percentage of how many user has pkg value 1 and 2 and 3 and 4. I used following query, but it is not work for me. [CODE] | android|sqlite|aggregate-functions|percentage | 1 | 2015-02-17T04:14:34.507Z | 2,015 | 2 | 4 | 1 | 4,937 | 2 | 281 | 48 | 4 | 1 | true | false | true | false | false | false | low |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.