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,626,218 | How to prevent closing Navigation drawer by touch outside the drawer | <p>I have an Activity with Navigation Drawer. if user device is table and orientation is landscape - I not need to close drawer by click on item in drawer:</p>
<pre><code>if (!isTablet || context.getResources().getConfiguration().orientation==1) {
mDrawerLayout.closeDrawer(Gravity.START);
}
</code></pre>
<p>It wo... | I have an Activity with Navigation Drawer. if user device is table and orientation is landscape - I not need to close drawer by click on item in drawer: [CODE] It work. But if user touch the screen outside opened drawer - drawer closing. Using DrawerLayout.LOCK_MODE_LOCKED_OPEN is unsuitable bacause I need to save draw... | android|touch|navigation-drawer | 9 | 2015-02-20T10:02:21.803Z | 2,015 | 2 | 10 | 4 | 6,331 | 3 | 432 | 68 | 3 | 1 | true | false | true | false | false | false | medium |
28,626,231 | How to combine 2 columns into a new one in sqlite | <p>I have a table with 3 columns and I have to put the values from 2 columns into one in descending order.</p>
<pre>
+---+---+---+
| A | B | C |
+---+---+---+
| z | 1 | 2 |
| f | 5 | 7 |
| s | 9 | 5 |
+---+---+---+
</pre>
<p>Using this example the output would be putting the values from column B and C into one... | I have a table with 3 columns and I have to put the values from 2 columns into one in descending order. [CODE] Using this example the output would be putting the values from column B and C into one like this: [CODE] My current code: [CODE] How can I do this? Thanks. | android|sqlite | 2 | 2015-02-20T10:03:15.097Z | 2,015 | 2 | 10 | 4 | 4,009 | 1 | 266 | 49 | 2 | 3 | true | false | true | false | false | false | low |
28,626,238 | Android get current count returned by cursor | <p>I need your help. I have a listview and search edittext, when I type to search for a record and matches from db, it displays all records. However, if no record matches it just displays nothing. What I wanna do is to display a message <strong>No Records Found</strong> </p>
<p>This is what I've tried so far:</p>
<pr... | I need your help. I have a listview and search edittext, when I type to search for a record and matches from db, it displays all records. However, if no record matches it just displays nothing. What I wanna do is to display a message No Records Found This is what I've tried so far: [CODE] UPDATE: [CODE] Any ideas? I wo... | android|sql|sqlite | 0 | 2015-02-20T10:03:23.800Z | 2,015 | 2 | 10 | 4 | 206 | 4 | 360 | 44 | 3 | 2 | true | false | false | false | false | false | zero |
28,626,280 | Android bitmap.recycle() doesn't work | <p>I'm trying to load an image from the gallery, but toSave.recycle() doesn't work.
I mean when toSave.recycle() is called the screen becomes white, the app doesn't crash but the image is not shown.
Do you have any suggestions? </p>
<p>Here the code: </p>
<pre><code>@Override
protected void onActivityResult(int requ... | I'm trying to load an image from the gallery, but toSave.recycle() doesn't work. I mean when toSave.recycle() is called the screen becomes white, the app doesn't crash but the image is not shown. Do you have any suggestions? Here the code: [CODE] Here the method that converts bitmap image and save it in Firebase. [CODE... | android|image|bitmap|stream|recycle | 0 | 2015-02-20T10:06:01.040Z | 2,015 | 2 | 10 | 4 | 477 | 1 | 338 | 37 | 5 | 2 | true | false | false | false | false | false | zero |
28,626,284 | Android VideoView as background | <p>I would to use a VideView as background in my layout. </p>
<p>So I would to have this videoView fullscreen and I need to add on this view other 'components' like TextView, EditView, ImageView...etc.</p>
<p>This is an example of my code:</p>
<pre><code><RelativeLayout xmlns:android="http://schemas.android.com/a... | I would to use a VideView as background in my layout. So I would to have this videoView fullscreen and I need to add on this view other 'components' like TextView, EditView, ImageView...etc. This is an example of my code: [CODE] In this way I can't see the other components... only the video... | android|android-fragments|layout|android-videoview | 0 | 2015-02-20T10:06:11.473Z | 2,015 | 2 | 10 | 4 | 1,899 | 1 | 294 | 31 | 4 | 1 | true | false | false | false | false | false | zero |
28,626,288 | Linux - Android Studio 1.1 Beta 3 - Default Activity not found | <p>I am having trouble understanding how to apply a Default Activity to my Android Studio project in order for it to run without showing the 'Default Activity not found' error message in the run screen.</p>
<p>I have tried editing the build.gradle file to include a series of lines that some other Stack Overflow questi... | I am having trouble understanding how to apply a Default Activity to my Android Studio project in order for it to run without showing the 'Default Activity not found' error message in the run screen. I have tried editing the build.gradle file to include a series of lines that some other Stack Overflow questions said to... | java|android|android-studio|gradle | 0 | 2015-02-20T10:06:24.413Z | 2,015 | 2 | 10 | 4 | 187 | 1 | 884 | 62 | 4 | 1 | true | false | false | false | false | false | zero |
28,626,344 | ImageView background with height match_parent doesn't work | <p>There's something that is not working well here.</p>
<p>What I need: fill a part of a <code>RelativeLayout</code> with an <code>ImageView</code> with a pattern background.</p>
<p>What I have done: If i put defined number (in <code>DP</code>) to the <code>ImageView</code> height, it works. But it's not what I need,... | There's something that is not working well here. What I need: fill a part of a RelativeLayout with an ImageView with a pattern background. What I have done: If i put defined number (in DP ) to the ImageView height, it works. But it's not what I need, because the RelativeLayout has a wrap_content height. I need that the... | android|android-layout|imageview|android-relativelayout | 0 | 2015-02-20T10:08:40.447Z | 2,015 | 2 | 10 | 4 | 1,870 | 2 | 678 | 58 | 4 | 2 | true | false | false | false | false | false | zero |
28,626,407 | android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x7f010076 a=2} | <p>Apologies if this is a duplicate, I did try and find any similar answers first and failed as nothing seemed to refer to ImageView? I'm not an Android dev, but we are seeing issues with our app on older OS versions!</p>
<h2>Stack trace:</h2>
<pre><code>02-20 09:56:15.885 11529-11529/com.octer E/AndroidRuntime﹕ FAT... | Apologies if this is a duplicate, I did try and find any similar answers first and failed as nothing seemed to refer to ImageView? I'm not an Android dev, but we are seeing issues with our app on older OS versions! Stack trace: [CODE] I did discover this post on the internet but none of the solutions seems to have fixe... | android | 0 | 2015-02-20T10:11:31.857Z | 2,015 | 2 | 10 | 4 | 8,748 | 2 | 447 | 127 | 1 | 1 | true | false | true | false | false | false | zero |
28,626,409 | ng-keyup does not detect android backspace | <p>I'm trying to use ng-keyup in my application, but there's a problem on android backspace.ng-keyup doesn't seem to detect the android backspace. How can i fix this?
I want to show a error message if a number is started with "3" max length of tht number should be 15. if else can allow 16.</p>
<p>html</p>
<pre><code>... | I'm trying to use ng-keyup in my application, but there's a problem on android backspace.ng-keyup doesn't seem to detect the android backspace. How can i fix this? I want to show a error message if a number is started with "3" max length of tht number should be 15. if else can allow 16. html [CODE] It shows the error m... | javascript|android|angularjs | 1 | 2015-02-20T10:11:37.497Z | 2,015 | 2 | 10 | 4 | 380 | 1 | 522 | 42 | 3 | 1 | true | false | false | false | false | false | low |
28,626,433 | Android WebView blocks redirect from https to http | <p>I have a solution where my Android WebView needs to first open a https url, then it will be redirected to a http url (it might be trying a http POST from the https site). This is not working, and my Android debug log says:</p>
<blockquote>
<p>02-20 11:04:45.079 8538-8538/? E/WebViewCallback﹕ Blocked URL: [bloc... | I have a solution where my Android WebView needs to first open a https url, then it will be redirected to a http url (it might be trying a http POST from the https site). This is not working, and my Android debug log says: 02-20 11:04:45.079 8538-8538/? E/WebViewCallback﹕ Blocked URL: [blocked] The page at ' https://xx... | android|webview|https | 14 | 2015-02-20T10:13:00.003Z | 2,015 | 2 | 10 | 4 | 16,455 | 4 | 678 | 50 | 3 | 0 | false | false | true | true | true | false | medium |
28,626,440 | Android: How to change between finger and spen when drawing | <p>I have developed a drawing app.
Now I need to add a button that, when it is ON, it only allows drawing on the canvas using the spen and when its off it only allows drawing with fingers on the canvas.</p>
<p>My goal is to avoid messing a drawing when I am using the spen and my hand touches the canvas.</p>
<p>Thanks... | I have developed a drawing app. Now I need to add a button that, when it is ON, it only allows drawing on the canvas using the spen and when its off it only allows drawing with fingers on the canvas. My goal is to avoid messing a drawing when I am using the spen and my hand touches the canvas. Thanks | android|canvas | 0 | 2015-02-20T10:13:33.190Z | 2,015 | 2 | 10 | 4 | 129 | 1 | 301 | 59 | 2 | 0 | false | false | false | false | false | false | zero |
28,626,456 | android put the data(s) from an activity to a table in another activity | <p>I am developing an app, I'm still new with eclipse and android.I am making an app about PMT function from excel. Now i am only able to display the results like</p>
<pre><code>First Payment : Monthly Payment
"some calculated result" "some calculated result"
</code></pre>
<p>now, i am using an alert... | I am developing an app, I'm still new with eclipse and android.I am making an app about PMT function from excel. Now i am only able to display the results like [CODE] now, i am using an alert message or toast text to display it. I want it to be displayed on a table on a new activity, but i have no idea how to implement... | android | 0 | 2015-02-20T10:14:22.243Z | 2,015 | 2 | 10 | 4 | 51 | 0 | 1,457 | 71 | 1 | 5 | true | true | false | false | false | false | zero |
28,626,488 | DatePicker in a DialogFragment ignores setCalendarViewShown | <p>I wanted to show a DatePicker in a DialogFragment:</p>
<pre><code>public class DatePickerDialogFragment extends DialogFragment {
private OnDateSetListener dateSetListener = null;
private String title = null;
public DatePickerDialogFragment() {}
public DatePickerDialogFragment(OnDateSetListener dat... | I wanted to show a DatePicker in a DialogFragment: [CODE] Unfortunately datePickerDialog.getDatePicker().setCalendarViewShown(false); is completly ignored. I hate the calendar view because it is ugly and uncomfortable. So how can i disable it? | android|datepicker | 6 | 2015-02-20T10:15:55.250Z | 2,015 | 2 | 10 | 4 | 3,152 | 2 | 243 | 59 | 2 | 1 | true | false | true | false | false | false | medium |
28,626,491 | Populate ListView (With 3 TextViews) From Database | <p>I have defined my DatabaseHelper class and can query the database. I would like to populate 3 columns from the database (name, venue, date) to a <code>ListView</code> with 3 <code>TextViews</code>, somehow I can't get my <code>CustomAdapter</code> right.</p>
<p>This is the error: </p>
<p><code>CustomAdapter adapte... | I have defined my DatabaseHelper class and can query the database. I would like to populate 3 columns from the database (name, venue, date) to a ListView with 3 TextViews , somehow I can't get my CustomAdapter right. This is the error: CustomAdapter adapter = new CustomAdapter(this, myItems_name, myItems_venue, myItems... | android|listview | 0 | 2015-02-20T10:16:09.580Z | 2,015 | 2 | 10 | 4 | 97 | 3 | 502 | 50 | 2 | 3 | true | false | false | false | false | false | zero |
28,626,515 | Reboot device programmatically does'nt work while adb does | <p>In my application there's a function to reboot which works fine with any rooted device... until now. </p>
<p>My newest test device (Android 4.2) doesn't react in any way. But using the adb prompt with the same command does the trick.</p>
<p>First I determine if the device is rooted which returns true:</p>
<pre><c... | In my application there's a function to reboot which works fine with any rooted device... until now. My newest test device (Android 4.2) doesn't react in any way. But using the adb prompt with the same command does the trick. First I determine if the device is rooted which returns true: [CODE] After that i try to execu... | android|root | 0 | 2015-02-20T10:17:10.607Z | 2,015 | 2 | 10 | 4 | 783 | 1 | 473 | 58 | 2 | 3 | true | false | false | false | false | false | zero |
28,626,535 | Android ScrollView, check if currently scrolling | <p>Is there a way to check if a standard ScrollView is currently being scrolled?</p>
<p>Doesn't matter if the direction is upwards or downwards, i only need to check whether it's currently being scrolled at all.</p> | Is there a way to check if a standard ScrollView is currently being scrolled? Doesn't matter if the direction is upwards or downwards, i only need to check whether it's currently being scrolled at all. | java|android|android-listview|android-view|android-scrollview | 2 | 2015-02-20T10:17:57.473Z | 2,015 | 2 | 10 | 4 | 3,176 | 1 | 201 | 48 | 5 | 0 | false | false | true | false | false | false | low |
28,626,572 | DownloadManager, never ending notification | <p>****** Now a have completed the code, but the notification display is running again after cancel !</p>
<p>I'm using the DownloadManager for downloading a file by url, it works fine.
Code creating Manager:</p>
<pre><code>String[] url = {urlsProz,urlsMb};
DownloadManager.Request request = new DownloadManager.Request... | ****** Now a have completed the code, but the notification display is running again after cancel ! I'm using the DownloadManager for downloading a file by url, it works fine. Code creating Manager: [CODE] My code after pressing the cancel-Button: [CODE] The manager is cancelled but the notification display is still run... | android | 0 | 2015-02-20T10:19:50.540Z | 2,015 | 2 | 10 | 4 | 669 | 2 | 402 | 42 | 1 | 2 | true | false | false | false | false | false | zero |
28,626,652 | Impossible to reach TextView from Fragment | <p>I encounter some issue with getting the reference to a Texview inside a Fragment, and I really have no idea why. </p>
<p>Here is my <strong>layout.xml</strong></p>
<pre><code><?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layou... | I encounter some issue with getting the reference to a Texview inside a Fragment, and I really have no idea why. Here is my layout.xml [CODE] And here is the Java Class [CODE] Thing is : I get the text printed to the logcat when swipe to the Fragment, and nothing happened when I click on the TextView. Does anyone have ... | java|android|android-fragments|textview | 0 | 2015-02-20T10:23:50.940Z | 2,015 | 2 | 10 | 4 | 88 | 2 | 334 | 42 | 4 | 2 | true | false | false | false | false | false | zero |
28,626,662 | SSL communication between a C# Server and an Android Client App | <p>I'm using a C# server and a C# tcp client example I extracted from the <a href="https://msdn.microsoft.com/en-us/library/system.net.security.sslstream%28v=vs.110%29.aspx" rel="nofollow">MSDN</a> and I have created a self signed certificate using makecert.exe. I have got this to communicate with one another and it se... | I'm using a C# server and a C# tcp client example I extracted from the MSDN and I have created a self signed certificate using makecert.exe. I have got this to communicate with one another and it seems to be working fine. Similarly I want to build an android tcp client that will communicate with the C# server. Do I nee... | java|c#|android|ssl|ssl-certificate | 2 | 2015-02-20T10:24:17.567Z | 2,015 | 2 | 10 | 4 | 771 | 1 | 429 | 63 | 5 | 0 | false | false | false | false | false | false | low |
28,626,676 | What is the proper method of implementing onPause, onResume, surfaceCreated and surfaceDestroyed when developing a custom camera on Android? | <p>I'm currently developing a custom camera application which takes a video using MediaRecorder for 5 seconds. I have implemented a number countdown overlay which counts down from 5. </p>
<p>My problem is that I am not 100% sure how to implement surface methods and pause/resume methods. If I close my app half way thro... | I'm currently developing a custom camera application which takes a video using MediaRecorder for 5 seconds. I have implemented a number countdown overlay which counts down from 5. My problem is that I am not 100% sure how to implement surface methods and pause/resume methods. If I close my app half way through recordin... | java|android|camera|mediarecorder | 0 | 2015-02-20T10:25:14.820Z | 2,015 | 2 | 10 | 4 | 407 | 1 | 703 | 140 | 4 | 0 | false | false | false | false | false | false | zero |
28,626,768 | how to retrieve same image to android phones with different screen densities+json | <p>I am a beginner to android development field.I need to create an app in which the contents are taken from web.So i need to retrieve images from a url using json.I know how to retrieve image using JSON.But my problem is my app should supports phones and tablets.So the image should fit into the appropriate devices.So ... | I am a beginner to android development field.I need to create an app in which the contents are taken from web.So i need to retrieve images from a url using json.I know how to retrieve image using JSON.But my problem is my app should supports phones and tablets.So the image should fit into the appropriate devices.So my ... | android|json|image | 1 | 2015-02-20T10:30:01.463Z | 2,015 | 2 | 10 | 4 | 227 | 1 | 710 | 81 | 3 | 0 | false | false | false | false | false | false | low |
28,626,841 | Android Samsung wifi issue | <p>have strange issue when try to get available wifi access point programmatically, so that's my test code:</p>
<pre><code>List<ScanResult> wifiList;
wifiManager = (WifiManager) getSystemService(WIFI_SERVICE);
if (!wifiManager.isWifiEnabled()) wifiManager.setWifiEnabled(true);
wifiManager.startScan();
wifiList =... | have strange issue when try to get available wifi access point programmatically, so that's my test code: [CODE] When i'm use for test device like LG-L90, Samsung Nexus, Motorola Nexus, Xiaomi etc, i'm get a correct list of wifi access point. For example log of returned list: [ SSID: WomenHealth, BSSID: 08:60:6e:e9:0b:0... | android|android-wifi|samsung-mobile-sdk | 0 | 2015-02-20T10:34:19.310Z | 2,015 | 2 | 10 | 4 | 1,748 | 1 | 4,204 | 26 | 3 | 1 | true | false | false | false | false | false | zero |
28,626,854 | How can I save a double in values folder on android | <p>I don't want to hardcode a double, so I wanted to put it in the values folder, either in a new XML or in the strings.xml</p>
<p>I know it exists:</p>
<pre><code><string name="a_string">my string</string>
<bool name="is_a_bool">true </bool>
<string-array name="string_array">
&l... | I don't want to hardcode a double, so I wanted to put it in the values folder, either in a new XML or in the strings.xml I know it exists: [CODE] etcetera. but how can I do to add a double?, like this: [CODE] cause I want to use it here: [CODE] | android|xml|double|hardcode | 1 | 2015-02-20T10:35:19.607Z | 2,015 | 2 | 10 | 4 | 1,451 | 2 | 244 | 51 | 4 | 3 | true | false | false | false | false | false | low |
28,626,880 | Load achievements from Google Play without any Unity plugins only native code | <p>It is possible to use this code from Unity samples:</p>
<pre><code>//C#
Social.LoadAchievements (achievements => {
if (achievements.Length > 0) {
Debug.Log ("Got " + achievements.Length + " achievement instances");
string myAchievements = "My achievements:\n";
forea... | It is possible to use this code from Unity samples: [CODE] and get Google Play achievements. Or it's works only for iOs devices and for Android I have to use some plugins? This script as I understood works only for iOs devise not for Android. Why don't use standard Unity Google plugin? - Because they don't teach it to ... | c#|android|ios|unity3d | 3 | 2015-02-20T10:36:06.147Z | 2,015 | 2 | 10 | 4 | 1,422 | 1 | 345 | 77 | 4 | 2 | true | false | false | false | false | false | low |
28,626,888 | Jsonexception while accessing data from 000webhost | <p>I'm fetching data from a table from php server(000webhost) and displaying it in a list view. I following this link to accomplish this :</p>
<blockquote>
<p><a href="http://codeoncloud.blogspot.com/2013/07/android-mysql-php-json-tutorial.html" rel="nofollow noreferrer">http://codeoncloud.blogspot.com/2013/07/andro... | I'm fetching data from a table from php server(000webhost) and displaying it in a list view. I following this link to accomplish this : http://codeoncloud.blogspot.com/2013/07/android-mysql-php-json-tutorial.html For me it's working absolutely right but when I send .apk file to my friend in another country, he's receiv... | php|android|mysql|sql-server|json | -1 | 2015-02-20T10:36:24.567Z | 2,015 | 2 | 10 | 4 | 197 | 1 | 811 | 50 | 5 | 0 | false | false | false | false | false | true | negative |
28,626,893 | Square notification android (with GCM) | <p>I try to put the GCM in place in my Android's app, I finaly succed to receive a "notification" but it's not the good one, just a square like it.</p>
<p><img src="https://i.stack.imgur.com/CuAZh.png" alt="enter image description here"></p>
<p>I don't know if the problem is on my side (android part) or on the other ... | I try to put the GCM in place in my Android's app, I finaly succed to receive a "notification" but it's not the good one, just a square like it. I don't know if the problem is on my side (android part) or on the other side (php) On my side, the only problem can be on the manifest I think : [CODE] GCMReceiver : [CODE] }... | php|android|notifications|push-notification|google-cloud-messaging | 1 | 2015-02-20T10:36:36.710Z | 2,015 | 2 | 10 | 4 | 178 | 1 | 519 | 38 | 5 | 4 | true | false | false | false | false | false | low |
28,626,945 | android listview onitemclick in viewpager | <p>I have a problem with onitemclick listener in my listview.
My app has viewpager. On one (first - index 0) of my pages I have listview. When I click button (search), listview is filled with bluetooth devices. Then I can click on any of them and it works great, onitemclick fires and my viewpager changes view from 1 pa... | I have a problem with onitemclick listener in my listview. My app has viewpager. On one (first - index 0) of my pages I have listview. When I click button (search), listview is filled with bluetooth devices. Then I can click on any of them and it works great, onitemclick fires and my viewpager changes view from 1 page ... | android|listview|android-viewpager|onitemclick | 0 | 2015-02-20T10:39:34.323Z | 2,015 | 2 | 10 | 4 | 269 | 0 | 806 | 41 | 4 | 3 | true | true | false | false | false | false | zero |
28,626,963 | Phonegap screen dimension (android) | <p>I made HTML5 application for Android using Phonegap.
Phone dimension is 480 x 800. Javascript returns screen width 480 (screen.width). But content with 480px width are bigger than screen. When I hard code this element with width = 320 it looks good.</p>
<p>For example:</p>
<pre><code><div style="width:480px;bor... | I made HTML5 application for Android using Phonegap. Phone dimension is 480 x 800. Javascript returns screen width 480 (screen.width). But content with 480px width are bigger than screen. When I hard code this element with width = 320 it looks good. For example: [CODE] Which way I should use to get width? Or there's so... | javascript|android|css|html|cordova | 0 | 2015-02-20T10:40:24.127Z | 2,015 | 2 | 10 | 4 | 65 | 2 | 349 | 35 | 5 | 1 | true | false | false | false | false | false | zero |
28,627,106 | Fetching image from parse | <p>Below is the code for getting imagefile from parse,
but it throws <code>NullPointerException</code>.</p>
<p>Please let me know what is wrong in this code.</p>
<p>ImgFile-->is the class name in parse
Img-->column name in ImgFile </p>
<pre><code> imgItem= (ImageView) findViewById(R.id.imageView);
Log.d("afte... | Below is the code for getting imagefile from parse, but it throws NullPointerException . Please let me know what is wrong in this code. ImgFile-->is the class name in parse Img-->column name in ImgFile [CODE] LogCat error is : [CODE] Allimg.java [CODE] } Thanking you.. | android|parse-platform | 1 | 2015-02-20T10:47:31.570Z | 2,015 | 2 | 10 | 4 | 82 | 0 | 269 | 25 | 2 | 3 | true | true | false | false | false | false | low |
28,627,147 | Android Studio unit testing support vs robolectric | <p>Hitherto I used robolectric unit testing with JUnit 4.x for testing my business logic. In the last version of Android Studio 1.1.0 was announced <a href="http://tools.android.com/tech-docs/unit-testing-support" rel="nofollow">native support</a> of unit testing <code>junit:4.+</code>.<br/></p>
<p>Should I refuse usi... | Hitherto I used robolectric unit testing with JUnit 4.x for testing my business logic. In the last version of Android Studio 1.1.0 was announced native support of unit testing junit:4.+ . Should I refuse using robolectric? Has robolectric some distinct advantages that I might not know? As for me using Android Studio na... | java|android|unit-testing|android-studio|robolectric | 3 | 2015-02-20T10:49:24.313Z | 2,015 | 2 | 10 | 4 | 1,805 | 1 | 660 | 50 | 5 | 0 | false | false | false | false | false | false | low |
28,627,155 | android horizontalscrollview children: one per page | <p>I have this portion of file <code>activity_main.xml</code> that I want to let the horizontalscrollview children be 100% width as the picture shows. </p>
<p><img src="https://i.stack.imgur.com/9uK9S.png" alt="not 100%"></p>
<p>here's my <code>activity_main.xml</code> </p>
<pre><code><FrameLayout
android:layout_... | I have this portion of file activity_main.xml that I want to let the horizontalscrollview children be 100% width as the picture shows. here's my activity_main.xml [CODE] that produces this children size (the image view width) as the xml shows, I have multiple images to being displayed horizontally and let the users scr... | android|android-studio|horizontalscrollview | 1 | 2015-02-20T10:49:50.940Z | 2,015 | 2 | 10 | 4 | 160 | 0 | 427 | 51 | 3 | 1 | true | true | false | false | false | false | low |
28,627,185 | Appengine Sdk for android studio | <p>I wish to use GCM for my project, so I followed the standard google docs and added the App engine backend with GCM. It starts the gradle sync which downloads the appengine sdk from <code>jcenter.bintray.com/com/google/appengine/appengine-java-sdk/1.9.14/appengine-java-sdk-1.9.14.zip</code> which is taking large time... | I wish to use GCM for my project, so I followed the standard google docs and added the App engine backend with GCM. It starts the gradle sync which downloads the appengine sdk from jcenter.bintray.com/com/google/appengine/appengine-java-sdk/1.9.14/appengine-java-sdk-1.9.14.zip which is taking large time to even start d... | google-app-engine|android-studio|google-cloud-messaging | 0 | 2015-02-20T10:51:40.003Z | 2,015 | 2 | 10 | 4 | 599 | 1 | 536 | 32 | 3 | 0 | false | false | false | false | false | false | zero |
28,627,222 | Using Geofence with google api v2 in android | <p>I am trying to create the Geofence in google location api-V2 But class LocationClient is not found in the latest version of google location library.</p>
<p>Is there any way to use Geofence with google api-V2</p> | I am trying to create the Geofence in google location api-V2 But class LocationClient is not found in the latest version of google location library. Is there any way to use Geofence with google api-V2 | android|google-maps-api-2|android-geofence | 0 | 2015-02-20T10:53:27.507Z | 2,015 | 2 | 10 | 4 | 1,368 | 2 | 200 | 44 | 3 | 0 | false | false | false | false | false | false | zero |
28,627,239 | Android : How to fix hindi text cut in android 4.1.1 version? | <p>I am developing an application ,where Hindi font is used. Which display Hindi text in detail. so, I set Hindi typeface in application.In my app Hindi text display perfectly but on right end side,Hindi text display cut.</p>
<p>TextView configs I am using:</p>
<pre><code> <TextView
android:id... | I am developing an application ,where Hindi font is used. Which display Hindi text in detail. so, I set Hindi typeface in application.In my app Hindi text display perfectly but on right end side,Hindi text display cut. TextView configs I am using: [CODE] how can i show complete words with Hindi fonts? Any help would be... | java|android|textview | 2 | 2015-02-20T10:54:21.677Z | 2,015 | 2 | 10 | 4 | 730 | 1 | 352 | 61 | 3 | 1 | true | false | false | false | false | false | low |
28,627,252 | Handle not Allocated on setting form property on Android in Delphi XE7 | <p>I'm having problem opening a new form that i've created in XE7. I have no problems opening the form on my Samsung Galaxt tab2, but when I want to open it on my Sony Xperia ZR I get a Handle not Allocated exception.</p>
<p><strong>Here is the code:</strong></p>
<pre><code>procedure TfrmNocoreDKS.actOpenDocumentExec... | I'm having problem opening a new form that i've created in XE7. I have no problems opening the form on my Samsung Galaxt tab2, but when I want to open it on my Sony Xperia ZR I get a Handle not Allocated exception. Here is the code: [CODE] Code below shows the decleration of the property and the setter: [CODE] Code for... | android|forms|delphi|firemonkey|delphi-xe7 | 0 | 2015-02-20T10:54:50.730Z | 2,015 | 2 | 10 | 4 | 819 | 1 | 374 | 70 | 5 | 3 | true | false | false | false | false | false | zero |
28,627,279 | Not fetching any events using Graph Api | <p>Using This code for getting event:-</p>
<pre><code>new Request(session,"/{event-id}",null,HttpMethod.GET,new Request.Callback() {
public void onCompleted(Response response) {
/* handle the result */
System.out.println("Result: " + response.toString());
}
}).executeAs... | Using This code for getting event:- [CODE] Permission :--- [CODE] And it gave me error :---- [CODE] | android|facebook|sdk|facebook-graph-api-v2.0 | 5 | 2015-02-20T10:55:49.597Z | 2,015 | 2 | 10 | 4 | 937 | 1 | 99 | 39 | 4 | 3 | true | false | false | false | false | false | low |
28,627,289 | Android App, previously successfully loaded, has stopped working. Android Emulator | <p>I had an app successfully deployed (using JDeveloper) onto the emulator and it would run. Now all of a sudden it will not.</p>
<p>All i have changed was the emulators network settings, but reset them back to default after the app stopped loading, it still will not work tho.</p>
<p>I have tried wiping user data fro... | I had an app successfully deployed (using JDeveloper) onto the emulator and it would run. Now all of a sudden it will not. All i have changed was the emulators network settings, but reset them back to default after the app stopped loading, it still will not work tho. I have tried wiping user data from the emulator and ... | android|emulation | -1 | 2015-02-20T10:56:08.077Z | 2,015 | 2 | 10 | 4 | 76 | 1 | 572 | 82 | 2 | 0 | false | false | false | false | false | true | negative |
28,627,346 | Eclipse does not tell me about not compatible Classes for api Level | <p>I know My eclipse is capable to tell me about Classes which needs higher api Level as mentioned in minsdk.. That works.. But Sometimes...mostly it does not Work. Even when I Enter minsdk =2 ot does not give any error, but I know there were Elements which didnt Work with low api Level.. Where could be the solution? ... | I know My eclipse is capable to tell me about Classes which needs higher api Level as mentioned in minsdk.. That works.. But Sometimes...mostly it does not Work. Even when I Enter minsdk =2 ot does not give any error, but I know there were Elements which didnt Work with low api Level.. Where could be the solution? Some... | android | 0 | 2015-02-20T10:58:32.903Z | 2,015 | 2 | 10 | 4 | 15 | 0 | 405 | 67 | 1 | 0 | false | true | false | false | false | false | zero |
28,627,383 | Possible to change ActionBarSherlock to AppCompat in compiled APK? | <p>I have an actionbar-sherlock app, but just the APK.
would it be possible to change the actionbar from sherlock to appcompat(support library) or even the normal Android 5.0 actionbar?</p>
<p>When i decompile the app and getting the smali i could get Java code (~) that is more or less correct, then search for the sh... | I have an actionbar-sherlock app, but just the APK. would it be possible to change the actionbar from sherlock to appcompat(support library) or even the normal Android 5.0 actionbar? When i decompile the app and getting the smali i could get Java code (~) that is more or less correct, then search for the sherlock-thing... | android|actionbarsherlock|apk|decompiling|smali | 1 | 2015-02-20T11:00:24.193Z | 2,015 | 2 | 11 | 4 | 123 | 0 | 496 | 66 | 5 | 0 | false | true | false | false | false | false | low |
28,627,448 | How to enable Seekbar on touch event if it is already disabled, through code in android? | <p>I'm making a code in which i set seekbar disabled when it attains some particular position and after disabled it should get enabled if user touched it again. for that i used onTouch Listener. But it didn't enabled once get disabled, here is the code</p>
<pre><code>seek.setOnTouchListener(new OnTouchListener() {
... | I'm making a code in which i set seekbar disabled when it attains some particular position and after disabled it should get enabled if user touched it again. for that i used onTouch Listener. But it didn't enabled once get disabled, here is the code [CODE] Thanks in advance. Please Help | android|seekbar | -1 | 2015-02-20T11:03:51.177Z | 2,015 | 2 | 11 | 4 | 1,818 | 1 | 287 | 88 | 2 | 1 | true | false | false | false | false | true | negative |
28,627,453 | Plugins are not always added after cordova add platform android and iOs | <p>I need to run <code>ionic platform add android/iOs</code> few times to get the desired result.
Sometimes plugins are added after first run, but usually I have to wipe out the plugins and platform directories and re-run adding the platform cycle few times until all plugins are added to android folder.</p>
<p>Did any... | I need to run ionic platform add android/iOs few times to get the desired result. Sometimes plugins are added after first run, but usually I have to wipe out the plugins and platform directories and re-run adding the platform cycle few times until all plugins are added to android folder. Did anyone else experienced sam... | android|ios|cordova|phonegap-plugins|ionic-framework | 17 | 2015-02-20T11:04:05.037Z | 2,015 | 2 | 11 | 4 | 16,433 | 4 | 395 | 71 | 5 | 0 | false | false | true | true | true | false | medium |
28,627,490 | OrmLite: Difference between Dao.callBatchTasks() and TransactionManager.callInTransaction() | <p>Which is the difference between these methods? I have readed the docs but I don't understand what <code>callBatchTasks</code> method do. Documentation says:</p>
<blockquote>
<p>This will turn off what databases call "auto-commit" mode, run the
call-able and then re-enable "auto-commit".</p>
</blockquote>
<p>Is... | Which is the difference between these methods? I have readed the docs but I don't understand what callBatchTasks method do. Documentation says: This will turn off what databases call "auto-commit" mode, run the call-able and then re-enable "auto-commit". Is't it a transaction? Thanks. | java|android|transactions|ormlite | 4 | 2015-02-20T11:06:00.987Z | 2,015 | 2 | 11 | 4 | 1,839 | 1 | 285 | 91 | 4 | 0 | false | false | false | false | false | false | low |
28,627,493 | Android Fragments onStart seems to start his Code before onCreateView | <p>I got a fragment, that should create some files, iterate through the contactbook and some other pretty long tasks.
The fragment is a pretty simple "Hey, please wait" fragment with a label and a progressbar. I used factory pattern to pass arguments to this fragment.</p>
<p>My fragments code is comparable to the solu... | I got a fragment, that should create some files, iterate through the contactbook and some other pretty long tasks. The fragment is a pretty simple "Hey, please wait" fragment with a label and a progressbar. I used factory pattern to pass arguments to this fragment. My fragments code is comparable to the solution of thi... | android|android-fragments|factory-pattern|onstart | 1 | 2015-02-20T11:06:11.370Z | 2,015 | 2 | 11 | 4 | 1,357 | 2 | 765 | 69 | 4 | 0 | false | false | false | false | false | false | low |
28,627,511 | how to set focus on a specific index in list view? | <p>I am trying to set focus on a specific index on list view. I am trying a scenario where I have buttons for up and down when I press the button Up I want to set the focus on upper index of the list view and the same goes for the down button press. I have researched a lot on the internet but I have not been able to f... | I am trying to set focus on a specific index on list view. I am trying a scenario where I have buttons for up and down when I press the button Up I want to set the focus on upper index of the list view and the same goes for the down button press. I have researched a lot on the internet but I have not been able to find ... | android|listview | -1 | 2015-02-20T11:06:56.797Z | 2,015 | 2 | 11 | 4 | 915 | 1 | 438 | 50 | 2 | 0 | false | false | false | false | false | true | negative |
28,627,664 | Unable to resolve superclass of Landroid/support/v4 | <p>After installing my app, it only runs the first time correctly and after that it crashes every time. All needed dependencies are included and up-to-date. I already tried to clean the project and rebuild it with different version of the libraries and on different devices.</p>
<p>Logcat:</p>
<pre><code>02-20 04:45:5... | After installing my app, it only runs the first time correctly and after that it crashes every time. All needed dependencies are included and up-to-date. I already tried to clean the project and rebuild it with different version of the libraries and on different devices. Logcat: [CODE] Any help would be very appreciate... | android|android-support-library|retrofit|butterknife | 3 | 2015-02-20T11:15:18.233Z | 2,015 | 2 | 11 | 4 | 1,601 | 1 | 322 | 51 | 4 | 1 | true | false | false | false | false | false | low |
28,627,795 | Group adapter items | <p>i need to create a custom adapter for address book, grouping them by first name letter inside a custom layout. How can i achive a result like this?
<img src="https://i.stack.imgur.com/hYcLm.png" alt="enter image description here"></p>
<p>I created an <code>Hashmap<String firstLetter,Arraylist<Contacts>>... | i need to create a custom adapter for address book, grouping them by first name letter inside a custom layout. How can i achive a result like this? I created an Hashmap<String firstLetter,Arraylist<Contacts>> but i dunno how to pass it to an adapter to make EACH SINGLE ELEMENT OF THE LIST clickable. Best solution i've ... | android|listview|adapter|android-arrayadapter | 0 | 2015-02-20T11:23:33.750Z | 2,015 | 2 | 11 | 4 | 1,324 | 2 | 633 | 19 | 4 | 2 | true | false | false | false | false | false | zero |
28,627,806 | Global errorHandling solution with RxJava only when onError is not implemented | <p>I have a general error handling solution in my app which should be invoked whenever <code>onError</code> is called. Instead of implementing <code>onError</code> for every <code>subscribe</code> I have done this inside the <code>Application</code> class:</p>
<pre><code>RxJavaPlugins.getInstance().registerErrorHandle... | I have a general error handling solution in my app which should be invoked whenever onError is called. Instead of implementing onError for every subscribe I have done this inside the Application class: [CODE] However I would like to have the ability to override this by implementing onError , and according to: https://g... | android|observable|rx-java|onerror|subscriber | 4 | 2015-02-20T11:24:10.880Z | 2,015 | 2 | 11 | 4 | 2,200 | 1 | 978 | 78 | 5 | 1 | true | false | false | false | false | false | low |
28,627,817 | cordova crosswalk project migration -- error | <p>I am trying to migrate my cordova project to crosswalk. </p>
<p>I am using [following download] (<a href="https://download.01.org/crosswalk/releases/crosswalk/android/stable/10.39.235.15/arm/crosswalk-cordova-10.39.235.15-arm.zip" rel="nofollow">https://download.01.org/crosswalk/releases/crosswalk/android/stable/1... | I am trying to migrate my cordova project to crosswalk. I am using [following download] ( https://download.01.org/crosswalk/releases/crosswalk/android/stable/10.39.235.15/arm/crosswalk-cordova-10.39.235.15-arm.zip ) of crosswalk. My system is having android 4.4 & 4.3 CLI SDK installed. I want to compile my android app ... | android|cordova|ant|crosswalk-runtime | 0 | 2015-02-20T11:24:45.697Z | 2,015 | 2 | 11 | 4 | 893 | 2 | 680 | 44 | 4 | 4 | true | false | false | false | false | false | zero |
28,627,869 | Navigation drawer´s list header´s typeface | <p>I have an app with navigation drawer. It has a list with header. The header has an image and one text. I want to set Typeface to this text but I don´know how. </p>
<p>My code is like this:</p>
<pre><code>mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
mDrawerList = (ListView) findViewById(... | I have an app with navigation drawer. It has a list with header. The header has an image and one text. I want to set Typeface to this text but I don´know how. My code is like this: [CODE] My header.xml: [CODE] How can I pass the header typeface? Thanks | android|navigation-drawer | 0 | 2015-02-20T11:27:21.243Z | 2,015 | 2 | 11 | 4 | 125 | 2 | 252 | 42 | 2 | 2 | true | false | false | false | false | false | zero |
28,627,928 | Wakelock and wifilock not working | <p>I have read plenty of tutorial and posts here on SO regarding the use of WakeLock and WifiLock, but still didn't get to a solution of my issue.</p>
<p>I'm writing an app that has, when you start it, the only effect of creating and starting a (foreground) service. This service run two threads that are an UDP broadca... | I have read plenty of tutorial and posts here on SO regarding the use of WakeLock and WifiLock, but still didn't get to a solution of my issue. I'm writing an app that has, when you start it, the only effect of creating and starting a (foreground) service. This service run two threads that are an UDP broadcast listener... | java|android|android-wifi|wakelock | 7 | 2015-02-20T11:30:01.870Z | 2,015 | 2 | 11 | 4 | 2,580 | 3 | 2,406 | 33 | 4 | 3 | true | false | false | false | false | false | medium |
28,627,958 | Android - send information to the mainActivity from the onTouch method in a Custom View | <p>I have a custom view (DrawFigures) which has an onTouch method to perform a series of actions. There's a layout that has a few buttons, a TextView and a RelativeView to add the custom view dynamically. Then, in the MainActivity.class, I need to receive the value of some attributes in the DrawFigures when the onTouch... | I have a custom view (DrawFigures) which has an onTouch method to perform a series of actions. There's a layout that has a few buttons, a TextView and a RelativeView to add the custom view dynamically. Then, in the MainActivity.class, I need to receive the value of some attributes in the DrawFigures when the onTouch me... | android|view|ontouch | 3 | 2015-02-20T11:31:47Z | -1 | -1 | -1 | -1 | 506 | 3 | 748 | 87 | 3 | 2 | true | false | false | false | false | false | low |
28,627,994 | Cannot resolve symbol 'Registration' | <p>My imports:</p>
<pre><code>import android.content.Context;
import android.os.AsyncTask;
import android.widget.Toast;
import com.google.android.gms.gcm.GoogleCloudMessaging;
import com.google.api.client.extensions.android.http.AndroidHttp;
import com.google.api.client.extensions.android.json.AndroidJsonFactory;
imp... | My imports: [CODE] Part of the code: [CODE] And they cannot resolve the symbol 'Registration'. I dont know and dont find, what I have to compile. | java|android | 1 | 2015-02-20T11:33:43.333Z | 2,015 | 2 | 11 | 4 | 692 | 0 | 145 | 36 | 2 | 2 | true | true | false | false | false | false | low |
28,628,007 | OpenGL ES context squashed on unlock - landscape to portrait | <p>Working on a game that only runs in Portrait mode, I tried forcing sensorPortrait via the manifest:</p>
<pre><code> android:configChanges="locale|orientation|keyboardHidden|screenSize|screenLayout"
android:screenOrientation="sensorPortrait"
</code></pre>
<p>But when I lock the device in portrait, rotate it ... | Working on a game that only runs in Portrait mode, I tried forcing sensorPortrait via the manifest: [CODE] But when I lock the device in portrait, rotate it to landscape and then unlock it this happens: And this is How it looks in portrait: I think this happens because onSurfaceChanged is called twice but AFAIK there's... | android|opengl-es|screen-orientation|android-context|unlock | 0 | 2015-02-20T11:34:30.670Z | 2,015 | 2 | 11 | 4 | 165 | 1 | 386 | 60 | 5 | 2 | true | false | false | false | false | false | zero |
28,628,035 | save items dynamically added to a listview | <p>I have a listview in which I use an edittext field which adds items to the listview. However when I click off and go back to the listview it doesn't save any of the items I have added. I've looked at ways to achieve this as my item isn't a String I'm unsure how to do this as otherwise I'd use sharedprefrences. My... | I have a listview in which I use an edittext field which adds items to the listview. However when I click off and go back to the listview it doesn't save any of the items I have added. I've looked at ways to achieve this as my item isn't a String I'm unsure how to do this as otherwise I'd use sharedprefrences. My code ... | android|android-listview|android-edittext | 0 | 2015-02-20T11:35:38.830Z | 2,015 | 2 | 11 | 4 | 259 | 1 | 374 | 42 | 3 | 1 | true | false | false | false | false | false | zero |
28,628,059 | Android socket is connected but doesn't send data | <p>I'm developing an Android client app which talks to server via a plain TCP Socket, let's assume that the server ip 192.168.1.2 and the androdi device ip is 192.168.1.3.</p>
<p>I open the socket, i check if socket is connected (i get true as result) and after that i write a presentation message.</p>
<p>Here is my c... | I'm developing an Android client app which talks to server via a plain TCP Socket, let's assume that the server ip 192.168.1.2 and the androdi device ip is 192.168.1.3. I open the socket, i check if socket is connected (i get true as result) and after that i write a presentation message. Here is my code [CODE] When i e... | java|android|sockets|tcp | 0 | 2015-02-20T11:37:10.397Z | 2,015 | 2 | 11 | 4 | 1,257 | 1 | 945 | 49 | 4 | 1 | true | false | false | false | false | false | zero |
28,628,083 | How to make edit text hint label spannable | <p><img src="https://i.stack.imgur.com/8mgMD.png" alt="enter image description here">I am creating a form dynamically. if hint text is large in length it gets cut and not appearing on next line. </p>
<pre><code>SpannableString span = new SpannableString(fieldLabel);
span.setSpan(new RelativeSizeSpan(0.8f), 0, fieldLab... | I am creating a form dynamically. if hint text is large in length it gets cut and not appearing on next line. [CODE] My Main layout is linear layout. What I am missing in the code. | android|android-edittext|spannablestring | 1 | 2015-02-20T11:39:02.907Z | 2,015 | 2 | 11 | 4 | 1,086 | 0 | 180 | 42 | 3 | 1 | true | true | false | false | false | false | low |
28,628,094 | Libgdx popping noise while playing music | <p>I have this problem where when I play this certain music with libgdx, I start hearing some soft popping noise in the background while the music is played. I have tried some different audio formats but It doesn't help. In my code the music is the "endmusic".</p>
<p>Here is my whole code: </p>
<pre><code>public clas... | I have this problem where when I play this certain music with libgdx, I start hearing some soft popping noise in the background while the music is played. I have tried some different audio formats but It doesn't help. In my code the music is the "endmusic". Here is my whole code: [CODE] | java|android|audio|libgdx | 2 | 2015-02-20T11:39:34.083Z | 2,015 | 2 | 11 | 4 | 272 | 0 | 287 | 40 | 4 | 1 | true | true | false | false | false | false | low |
28,628,229 | How can I check language in EditText? | <p>I'm using 3 language(English, Korean, Japanese) in my app.</p>
<p>Is it possible to distinguish String the language in EditText?</p> | I'm using 3 language(English, Korean, Japanese) in my app. Is it possible to distinguish String the language in EditText? | android | 1 | 2015-02-20T11:46:43.520Z | 2,015 | 2 | 11 | 4 | 2,683 | 1 | 121 | 37 | 1 | 0 | false | false | true | false | false | false | low |
28,628,402 | Adding intent filter to listen to ACTION_VIEW on SMS events | <p>I am writing an SMS app and it listens to all the AndroidManifest changes required for SMS apps above Kitkat according to the <a href="http://android-developers.blogspot.co.uk/2013/10/getting-your-sms-apps-ready-for-kitkat.html" rel="nofollow noreferrer">Google blog</a>.
I was trying to ACTION_VIEW requests related ... | I am writing an SMS app and it listens to all the AndroidManifest changes required for SMS apps above Kitkat according to the Google blog . I was trying to ACTION_VIEW requests related to SMS as well. Something of this format. [CODE] This is the screen which shows for this call. For this call other SMS apps are shown i... | android|android-intent|sms|android-manifest|intentfilter | 2 | 2015-02-20T11:55:15.997Z | 2,015 | 2 | 11 | 4 | 2,716 | 1 | 500 | 59 | 5 | 2 | true | false | true | false | false | false | low |
28,628,435 | OnclickListner on a custom listview adapter | <p>I am newbie to Android so you can expect this a little silly but please do help.
I have somewhat like custom <code>listviews</code> of people similar to <em>whatsapp</em> and other <em>IM apps</em> etc. </p>
<p>Now when i click the <code>listview</code> i want to get the respective <code>id</code> of the clicked <c... | I am newbie to Android so you can expect this a little silly but please do help. I have somewhat like custom listviews of people similar to whatsapp and other IM apps etc. Now when i click the listview i want to get the respective id of the clicked listview . How can i possibly do that ? Where will i put the onclicklis... | android|android-listview|android-view|onclicklistener|baseadapter | 1 | 2015-02-20T11:57:35.210Z | 2,015 | 2 | 11 | 4 | 773 | 5 | 363 | 43 | 5 | 1 | true | false | false | false | false | false | low |
28,628,442 | Best way to download remote images without third party libraries? | <p>Welcome</p>
<p>I need to download sycnronously (one at time) a lot of small remote images (between 50kb and 100kb) from a server and to store them as PNG in the device. I need to achieve this without third party libraries and I'm using this code but it is too munch slow:</p>
<pre><code> URL javaUrl = new UR... | Welcome I need to download sycnronously (one at time) a lot of small remote images (between 50kb and 100kb) from a server and to store them as PNG in the device. I need to achieve this without third party libraries and I'm using this code but it is too munch slow: [CODE] The problem is that the download is very slow. W... | java|android|url|inputstream|urlconnection | 0 | 2015-02-20T11:57:59.153Z | 2,015 | 2 | 11 | 4 | 517 | 1 | 617 | 65 | 5 | 1 | true | false | false | false | false | false | zero |
28,628,493 | cordova emulate android error | <p>Hi I have just started on using cordova on windows and i have some problems with it.
When i ran <code>cordova emulate android</code> it kept giving me the error:</p>
<pre><code>Error: Failed to run "ant -version", make sure you have ant installed and added
to your PATH.
at C:\Users\HuiHui\Documents\BasicCalcula... | Hi I have just started on using cordova on windows and i have some problems with it. When i ran cordova emulate android it kept giving me the error: [CODE] And i have no idea what is wrong. I have installed apache-ant and added to PATH variable but it still gave me the same error. Can anyone shed some light on this? | android|cordova|ant | 0 | 2015-02-20T12:00:45.270Z | 2,015 | 2 | 12 | 4 | 244 | 0 | 317 | 29 | 3 | 1 | true | true | false | false | false | false | zero |
28,628,513 | How to parse JSON array without any object in Retrofit? | <p>I am working with Retrofit and GSON. I have a JSON response as a JSON array but I don't know how to parse it by using a model class. My response is as follows:</p>
<pre><code>[
"One",
"Two",
"Three",
"Four",
"Five",
"Six",
"Seven",
"Eight"
]
</code></pre> | I am working with Retrofit and GSON. I have a JSON response as a JSON array but I don't know how to parse it by using a model class. My response is as follows: [CODE] | android|json|gson|retrofit | 9 | 2015-02-20T12:01:32.340Z | 2,015 | 2 | 12 | 4 | 5,033 | 1 | 166 | 55 | 4 | 1 | true | false | true | false | false | false | medium |
28,628,516 | How to capture image with camera and store it in a seperate folder | <p>scene 1: I am having a task in android to capture image from its camera and store the captured image it in a separate folder,</p>
<ul>
<li>scene1 i am now able to do now(means captured image is storing in my
customized folder(example folder name john)).</li>
<li>scene 2: Next task is to show all the captured ima... | scene 1: I am having a task in android to capture image from its camera and store the captured image it in a separate folder, scene1 i am now able to do now(means captured image is storing in my customized folder(example folder name john)). scene 2: Next task is to show all the captured image of my app in a grid format... | android|gridview|gallery | 0 | 2015-02-20T12:01:35.287Z | 2,015 | 2 | 12 | 4 | 252 | 0 | 728 | 66 | 3 | 0 | false | true | false | false | false | false | zero |
28,628,541 | Set custom icon and text in ActionBar | <p>I'm trying to set a custom icon and text in my ActionBar like WhatsApp does (Profile image and username).</p>
<pre><code> ActionBar ab = getSupportActionBar();
BitmapDrawable actionBarBackground = new BitmapDrawable(getResources(), chatPartner.getAvatar(this));
ab.setDisplayUseLogoEnabled(true);
ab.s... | I'm trying to set a custom icon and text in my ActionBar like WhatsApp does (Profile image and username). [CODE] But the logo is not displayed, only the title. | android | 0 | 2015-02-20T12:03:04.017Z | 2,015 | 2 | 12 | 4 | 1,453 | 4 | 159 | 37 | 1 | 1 | true | false | false | false | false | false | zero |
28,628,601 | How to infer travel mode using a mobile phone? | <p>I am writing a travel optimization app. I would like to get some feedback on what would be the best way to decide which mode the user is currently using to travel i.e. walking, bicycle or vehicle.</p>
<p>Currently, I am using GPS data on a regular time interval (1 second) and calculating the distance travelled in t... | I am writing a travel optimization app. I would like to get some feedback on what would be the best way to decide which mode the user is currently using to travel i.e. walking, bicycle or vehicle. Currently, I am using GPS data on a regular time interval (1 second) and calculating the distance travelled in that time in... | android|mobile|gps | 0 | 2015-02-20T12:06:35.787Z | 2,015 | 2 | 12 | 4 | 88 | 1 | 780 | 46 | 3 | 0 | false | false | false | false | false | false | zero |
28,628,648 | How to Create Object Array with For Loop in Android | <p>I'm trying to create an array of objects with a for loop in Android. The array contains a string taken from a database and an image (for the ease of this I have kept the image to the same one throughout).</p>
<p>I started with the following (which does work):</p>
<pre><code>ItemData[] itemsData = {
... | I'm trying to create an array of objects with a for loop in Android. The array contains a string taken from a database and an image (for the ease of this I have kept the image to the same one throughout). I started with the following (which does work): [CODE] I want to create the above within a for loop so that when th... | java|android|arrays | 4 | 2015-02-20T12:09:21.883Z | 2,015 | 2 | 12 | 4 | 1,264 | 1 | 991 | 51 | 3 | 2 | true | false | false | false | false | false | low |
28,628,686 | Adding view dynamically which keeps margin between two child? | <p>I am unable to set margin between two child view which are linear layout
When i give margin in XML file it doesn't show any changes</p> | I am unable to set margin between two child view which are linear layout When i give margin in XML file it doesn't show any changes | android | 0 | 2015-02-20T12:11:04.877Z | 2,015 | 2 | 12 | 4 | 123 | 1 | 131 | 61 | 1 | 0 | false | false | false | false | false | false | zero |
28,628,711 | start app with voice command | <p>I have an application that contains voice commands. I would like to access these
voice commands without pressing any button, only with a voice command .As in Chrome
("Ok google").</p>
<p>In Google developers in the section "adding voice capabilities", to "declare
app-providedvoice actions "explains how to define a ... | I have an application that contains voice commands. I would like to access these voice commands without pressing any button, only with a voice command .As in Chrome ("Ok google"). In Google developers in the section "adding voice capabilities", to "declare app-providedvoice actions "explains how to define a label to st... | android|voice-recognition | -3 | 2015-02-20T12:12:06.167Z | 2,015 | 2 | 12 | 4 | 2,404 | 1 | 387 | 28 | 2 | 0 | false | false | false | false | false | true | negative |
28,628,839 | Share text on Facebook using sdk | <p>I am working on an android app in which I am sharing content on facebook. I am able to share link, image. But i am unable to send when i only post text on facebook. I did not get any thing. I am using following code for share on facebook.</p>
<pre><code>Bundle bundle = new Bundle();
bundle.putString("name", webPa... | I am working on an android app in which I am sharing content on facebook. I am able to share link, image. But i am unable to send when i only post text on facebook. I did not get any thing. I am using following code for share on facebook. [CODE] | java|android|eclipse|facebook | 0 | 2015-02-20T12:18:38.893Z | 2,015 | 2 | 12 | 4 | 636 | 1 | 245 | 32 | 4 | 1 | true | false | false | false | false | false | zero |
28,628,845 | How to get acces to values from another gradle file? | <p>Ok, here is my current build.gradle:</p>
<pre><code>apply plugin: 'com.android.application'
apply from: '../config.gradle'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId ""
minSdkVersion 15
targetSdkVersion 21
versionCode 1
ve... | Ok, here is my current build.gradle: [CODE] and that's the config.gradle: [CODE] The question is: Why can I get access to howManyTables task from config.gradle. But can't get access to defined variable? I want to create custom config.gradle with predefined values. And then use them as variables in my Android app. (like... | gradle|android-gradle-plugin | 9 | 2015-02-20T12:18:54.460Z | 2,015 | 2 | 12 | 4 | 7,796 | 1 | 452 | 52 | 2 | 2 | true | false | true | false | false | false | medium |
28,628,859 | I want to search name from database using edittext | <pre><code>public class SearchActivity extends Activity {
private EditText Search_By_Name;
private ArrayList<Personal_loan> array;
private ArrayAdapter<Personal_loan> adapter;
private ListView listView;
SQLiteDatabase db;
Cursor cursor ;
private DBHelper dbHelper;
Personal_l... | [CODE] This is my updated code, it filtered the data but using the last field, not by name field... it took the last field for filtering, if any know the answer plz do share | android|android-edittext | 3 | 2015-02-20T12:19:30.620Z | 2,015 | 2 | 12 | 4 | 680 | 1 | 173 | 50 | 2 | 1 | true | false | false | false | false | false | low |
28,629,033 | How to not restart my app when the Home button is pressed? | <p>I have an app that uses <code>intent-filters</code> in the <code>AndroidManifest.xml</code> file to start an <code>Activity</code> when the Home button is pressed. Thing is, if my app is on that time in a different activity, the <code>LoginActivity</code> is started again and the user has to log in again. I want the... | I have an app that uses intent-filters in the AndroidManifest.xml file to start an Activity when the Home button is pressed. Thing is, if my app is on that time in a different activity, the LoginActivity is started again and the user has to log in again. I want the Home button to do nothing if my app is on top. How cou... | android|android-homebutton | 0 | 2015-02-20T12:27:59.050Z | 2,015 | 2 | 12 | 4 | 1,219 | 3 | 340 | 58 | 2 | 1 | true | false | false | false | false | false | zero |
28,629,057 | Can't get Ad, Flurry 5.3 with ProGuard | <p>My app can't get <code>flurry</code> ad when build app for release in google play with <code>ProGuard</code>. If i run app without <code>ProGuard</code> everything work fine.
I enable Log and <code>flurry</code> SDK write next information:</p>
<pre><code>02-20 16:31:09.765 8953-8953/? D/FlurryAdServingApp﹕ fetch... | My app can't get flurry ad when build app for release in google play with ProGuard . If i run app without ProGuard everything work fine. I enable Log and flurry SDK write next information: [CODE] I'm not understand why his write Unknown Source if in proguard-project.txt i write next: [CODE] Please, help me. | android|proguard|flurry | 2 | 2015-02-20T12:29:39.163Z | 2,015 | 2 | 12 | 4 | 869 | 1 | 308 | 38 | 3 | 2 | true | false | false | false | false | false | low |
28,629,061 | MPAndroidChart not showing MarkerView | <p>I have the following MarkerView:</p>
<pre><code>public class DiagramLineMarker extends MarkerView {
private TextView textViewValue = null;
public DiagramLineMarker(Context context, int layoutResource) {
super(context, layoutResource);
this.textViewValue = (TextView) this.findViewById(R.id.... | I have the following MarkerView: [CODE] And i set it like it is shown in the LineChartActivity1 example from MPAndroidChart: [CODE] Unfortunately nothing happens when i select a value. Complete implemenation: [CODE] Layout for the Marker: [CODE] | android|mpandroidchart | 3 | 2015-02-20T12:29:52.053Z | 2,015 | 2 | 12 | 4 | 4,041 | 3 | 245 | 37 | 2 | 4 | true | false | true | false | false | false | low |
28,629,070 | how to add drawable xml file into radiobutton that is created using For loop | <p>i know it is silly question but i m searching from 2 days and not able to get answer of this question
i customized RadioButton so it will look good and it is working while i used drawable file into layout but i do not how to use/ get these files into my code. Right now RadioButton is creating using For Loop<br>
her... | i know it is silly question but i m searching from 2 days and not able to get answer of this question i customized RadioButton so it will look good and it is working while i used drawable file into layout but i do not how to use/ get these files into my code. Right now RadioButton is creating using For Loop here is how... | android|android-radiogroup|android-radiobutton | 1 | 2015-02-20T12:30:18.187Z | 2,015 | 2 | 12 | 4 | 100 | 2 | 505 | 76 | 3 | 2 | true | false | false | false | false | false | low |
28,629,091 | how to send email in android eclipse? | <pre><code>private class RetriveTask extends AsyncTask<String,Void,Void>{
@Override
protected void onPreExecute() {
prop = new Properties();
prop.put("mail.smtp.host", "smtp.gmail.com");
prop.put("mail.smtp.socketFactory.port", "465");
prop.put("mail.smtp.socketFactory.cla... | [CODE] Logs: [CODE] | java|android|eclipse|android-asynctask | -2 | 2015-02-20T12:31:20.857Z | 2,015 | 2 | 12 | 4 | 378 | 2 | 19 | 37 | 4 | 2 | true | false | false | false | false | true | negative |
28,629,109 | Android : Retrofit and using dynamic URLS | <p>Good morning. I am pretty new to Retrofit, taking on the project from another. We need to talk to a API that uses a code in the url for each call
E.g <a href="http://www.example.com/CODE/review" rel="nofollow">http://www.example.com/CODE/review</a></p>
<p>I thought I would try the obvious but Retrofit is complain... | Good morning. I am pretty new to Retrofit, taking on the project from another. We need to talk to a API that uses a code in the url for each call E.g http://www.example.com/CODE/review I thought I would try the obvious but Retrofit is complaining about Attribute value must be a constant [CODE] Sorry if I am missing the... | android|retrofit | 0 | 2015-02-20T12:32:20.860Z | 2,015 | 2 | 12 | 4 | 509 | 1 | 331 | 41 | 2 | 1 | true | false | false | false | false | false | zero |
28,629,113 | Is it possible to change the code and see the results right away on Android? | <p>Often I'm making some small changes, within one file, not touching 99% of the code. For example: small refactoring, tweaking parameters, layouts, animations. Changes which take couple of seconds. I just want to quickly experiment with many options and see what is the best.</p>
<p>There is a huge problem - recompila... | Often I'm making some small changes, within one file, not touching 99% of the code. For example: small refactoring, tweaking parameters, layouts, animations. Changes which take couple of seconds. I just want to quickly experiment with many options and see what is the best. There is a huge problem - recompilation and de... | android|compilation|android-gradle-plugin | 0 | 2015-02-20T12:32:30.267Z | 2,015 | 2 | 12 | 4 | 84 | 2 | 808 | 76 | 3 | 0 | false | false | false | false | false | false | zero |
28,629,170 | Details of first purchase of app on Google Play | <p>With the intention to shift an app from paid to free, whilst supporting paid users with additional privileges, I'd like to be able to query Google Play to find out the details of the user's initial purchase of the app - app version at the time of first purchase, or even first download, would be the best information,... | With the intention to shift an app from paid to free, whilst supporting paid users with additional privileges, I'd like to be able to query Google Play to find out the details of the user's initial purchase of the app - app version at the time of first purchase, or even first download, would be the best information, bu... | android|google-play|android-lvl | 0 | 2015-02-20T12:35:16.330Z | 2,015 | 2 | 12 | 4 | 287 | 1 | 900 | 47 | 3 | 0 | false | false | false | false | false | false | zero |
28,629,209 | View pager is not refreshing after notifyDataSetChanged | <p>I spend much time but I can not get this to work. I have view pager in main activty. In this activity when user click on button start new activity where user can add new item to DB. After finish is this activity closed and user is back in main activity. Problem is my view pager dont want refresh when is onResume cal... | I spend much time but I can not get this to work. I have view pager in main activty. In this activity when user click on button start new activity where user can add new item to DB. After finish is this activity closed and user is back in main activity. Problem is my view pager dont want refresh when is onResume called... | java|android|android-listview|android-viewpager|notifydatasetchanged | 0 | 2015-02-20T12:37:25.170Z | 2,015 | 2 | 12 | 4 | 383 | 1 | 838 | 55 | 5 | 3 | true | false | false | false | false | false | zero |
28,629,216 | getting zero passing double android | <p>I'm wondering why do I get zero in my list after I pass double <code>t</code> to method <code>getListe();</code>?</p>
<p>I want my program to print input values to the list, but when I'm adding I'm getting zero as result, I have defined double in<code>onCreate</code> method but I don't think it's used..</p>
<pre><... | I'm wondering why do I get zero in my list after I pass double t to method getListe(); ? I want my program to print input values to the list, but when I'm adding I'm getting zero as result, I have defined double in onCreate method but I don't think it's used.. [CODE] | android | 0 | 2015-02-20T12:37:53.207Z | 2,015 | 2 | 12 | 4 | 38 | 1 | 267 | 35 | 1 | 1 | true | false | false | false | false | false | zero |
28,629,260 | SQLiteDatabase Column does not exist | <p>I have a SQliteDatabase with a column named "MINIATURA" where there is the path of a miniature to set in the listview. If open the database I can see the column with the paths inside, but if I call it in the Cursor adapter it give me error</p>
<pre><code>02-20 13:06:17.099: E/AndroidRuntime(17357): FATAL EXCEPTION:... | I have a SQliteDatabase with a column named "MINIATURA" where there is the path of a miniature to set in the listview. If open the database I can see the column with the paths inside, but if I call it in the Cursor adapter it give me error [CODE] and this is my cursor adapter [CODE] If I change database_ob.MIN in anoth... | android|database|sqlite | 1 | 2015-02-20T12:40:38.233Z | 2,015 | 2 | 12 | 4 | 480 | 3 | 451 | 36 | 3 | 3 | true | false | false | false | false | false | low |
28,629,269 | Cannot get Friends of Friends on facebook | <p>I want to fetch friends of friends from facebook but cannot achieve the same.
I have followed <a href="https://stackoverflow.com/questions/1330123/get-a-list-of-friends-of-a-friend-on-facebook">this</a> link(The one with 3 upvotes).I can get my friendlist.But whenever I try to access friends of a friend facebook is ... | I want to fetch friends of friends from facebook but cannot achieve the same. I have followed this link(The one with 3 upvotes).I can get my friendlist.But whenever I try to access friends of a friend facebook is returning a strange result.Suppose A is a friend of B and B is a friend of C. I have installed my app on al... | android|facebook|facebook-graph-api | -2 | 2015-02-20T12:41:03.453Z | 2,015 | 2 | 12 | 4 | 157 | 1 | 1,213 | 41 | 3 | 3 | true | false | false | false | false | true | negative |
28,629,275 | Android app Locale variable comparison with String | <p>I'm currently trying to test (with an if statement) the value of the current Locale variable.</p>
<p>but the result returned (by checking in Debug mode) is false.</p>
<p>This is the code I'm using:</p>
<pre><code>Locale frLocale = new Locale("fr");
Locale usLocale = new Locale("en");
Locale currentLocale = Locale... | I'm currently trying to test (with an if statement) the value of the current Locale variable. but the result returned (by checking in Debug mode) is false. This is the code I'm using: [CODE] The Toasts are there to help me check (without debug mode) what are the values returned. I'm surprised because: currentLocale.get... | android|if-statement|locale | -1 | 2015-02-20T12:41:37.313Z | 2,015 | 2 | 12 | 4 | 1,969 | 3 | 412 | 50 | 3 | 1 | true | false | false | false | false | true | negative |
28,629,324 | Scaling pixelart bitmap creates abomination | <p>I want to scale this player twice it size with animation: <br/>
<img src="https://i.stack.imgur.com/O3c5F.jpg" alt="enter image description here"></p>
<p>I used this code:</p>
<pre><code>if(sprite.getWidth()<effected.getWidth()*2){
sprite=Bitmap.createScaledBitmap(sprite, sprite.getWidth()+5, sp... | I want to scale this player twice it size with animation: I used this code: [CODE] inside a timer. result with filter (horrible quality): (picture is rotating so its hard to catch it normal - sorry for that) picture without filter (This will give me nightmares): what can I do to change the size of the bitmap with anima... | java|android|bitmap | 0 | 2015-02-20T12:44:46.333Z | 2,015 | 2 | 12 | 4 | 55 | 0 | 352 | 43 | 3 | 1 | true | true | false | false | false | false | zero |
28,629,386 | How to handle live data of Accelerometer in android? | <p>I need to perform Dynamic Time Wrapping(DTW) algorithm with some previously stored data and Accelerometer data. But I am unable to handle the huge amount of data coming from accelerometer. I need to determine a step. In order to do that I have stored a number of data previously and trying to match with the current d... | I need to perform Dynamic Time Wrapping(DTW) algorithm with some previously stored data and Accelerometer data. But I am unable to handle the huge amount of data coming from accelerometer. I need to determine a step. In order to do that I have stored a number of data previously and trying to match with the current data... | android|android-asynctask|accelerometer|android-sensors | 0 | 2015-02-20T12:48:05.173Z | 2,015 | 2 | 12 | 4 | 359 | 2 | 725 | 52 | 4 | 2 | true | false | false | false | false | false | zero |
28,629,415 | Check that JCIFS SMB location is writable? | <p>I'm writing an Android asynctask which needs to write to an SMB share using JCIFS. Before attempting the write, I'd like to check whether the SMB folder has write permissions, and display a message to the user if not. Ideally I'd like to do this without actually writing a file to the destination. Does anyone know ho... | I'm writing an Android asynctask which needs to write to an SMB share using JCIFS. Before attempting the write, I'd like to check whether the SMB folder has write permissions, and display a message to the user if not. Ideally I'd like to do this without actually writing a file to the destination. Does anyone know how/i... | android|file-permissions|jcifs | 0 | 2015-02-20T12:49:57.913Z | 2,015 | 2 | 12 | 4 | 955 | 2 | 345 | 42 | 3 | 0 | false | false | false | false | false | false | zero |
28,629,470 | Name of this Android UI component (img) | <p>I would ask what is name of this UI component:</p>
<p><img src="https://i.stack.imgur.com/hiYpC.jpg" alt="http://postimg.org/image/i6a0bdrjh/"></p>
<p>I need a make something like this in my app., so I will very happy if you answer me :)</p> | I would ask what is name of this UI component: I need a make something like this in my app., so I will very happy if you answer me :) | android | -1 | 2015-02-20T12:52:50.027Z | 2,015 | 2 | 12 | 4 | 40 | 2 | 133 | 39 | 1 | 0 | false | false | false | false | false | true | negative |
28,629,510 | Android How to display Values from array in the Textview | <p>[923332099903,24975924,923332122440,57375]</p>
<p>I am getting the above values in the ArrayList,now i want to display the values in the textview or radiobutton like the following example:</p>
<p>923332099903</p>
<p>923332122440</p>
<p>My Activity is:</p>
<pre><code>private ArrayList<String> AssociatedArr... | [923332099903,24975924,923332122440,57375] I am getting the above values in the ArrayList,now i want to display the values in the textview or radiobutton like the following example: 923332099903 923332122440 My Activity is: [CODE] | android|arraylist|textview | -1 | 2015-02-20T12:54:55.530Z | 2,015 | 2 | 12 | 4 | 651 | 1 | 230 | 56 | 3 | 1 | true | false | false | false | false | true | negative |
28,629,522 | SQLite query is not taking arguments correctly | <p>I'm trying to do an SQLite query in my Android app, but for some reason it doesn't get the arguments correctly. If I hard-code the values, the query works just fine, so I know the overall query is correct and the data is there.</p>
<pre><code>...
public String[][] traerEncuestaPostventa(int idBien,
int idEncues... | I'm trying to do an SQLite query in my Android app, but for some reason it doesn't get the arguments correctly. If I hard-code the values, the query works just fine, so I know the overall query is correct and the data is there. [CODE] Now if I replace the query like this, it works: [CODE] I also tried replacing the ele... | android|database|sqlite | 0 | 2015-02-20T12:55:25.690Z | 2,015 | 2 | 12 | 4 | 108 | 2 | 522 | 46 | 3 | 3 | true | false | false | false | false | false | zero |
28,629,531 | Why should I not use a message bus instead of a Loaders and Services? | <p>In typical Android project where we need to pull data from somewhere (REST, SQL, cache, etc) into the UI in a clean way we commonly use a Loader, Service or (possibly, yuk) an AsyncTask, but I find all these approaches unsatisfactory for several reasons:</p>
<ul>
<li>They're ugly, especially Loaders which have an a... | In typical Android project where we need to pull data from somewhere (REST, SQL, cache, etc) into the UI in a clean way we commonly use a Loader, Service or (possibly, yuk) an AsyncTask, but I find all these approaches unsatisfactory for several reasons: They're ugly, especially Loaders which have an appalling API stru... | android|android-service|android-testing|android-cursor|android-cursorloader | 20 | 2015-02-20T12:55:53.427Z | 2,015 | 2 | 12 | 4 | 2,068 | 3 | 2,879 | 69 | 5 | 0 | false | false | false | false | true | false | medium |
28,629,537 | Can't find Google fit class | <p>I'm trying to copy the official Google Fit sample from here <a href="https://www.youtube.com/watch?v=jwaQaWGLlTo#t=178" rel="nofollow">Setup and Sensors</a>. I'm having problems with the <code>DataSourceListener</code>. When I try to add that class in AndroidStudio it doesn't seem to find it, the class doesn't seem ... | I'm trying to copy the official Google Fit sample from here Setup and Sensors . I'm having problems with the DataSourceListener . When I try to add that class in AndroidStudio it doesn't seem to find it, the class doesn't seem to exist... | java|android|android-studio|google-play-services|google-fit | 0 | 2015-02-20T12:56:22.770Z | 2,015 | 2 | 12 | 4 | 103 | 1 | 238 | 27 | 5 | 0 | false | false | false | false | false | false | zero |
28,629,542 | Making button work in fragment as opposed to activity | <p>I can make a button work in my <b>Activities</b>, but I am having trouble with making a button eventlistener work in my <b>Fragment</b>. Can someone please help me spot where the error is?. I have tried for a long time now. about 4 hours, but I cannot figure out what i do wrong.</p>
<pre><code>package com.fistats.f... | I can make a button work in my Activities , but I am having trouble with making a button eventlistener work in my Fragment . Can someone please help me spot where the error is?. I have tried for a long time now. about 4 hours, but I cannot figure out what i do wrong. [CODE] } This is what happens in the log: [CODE] | android | 0 | 2015-02-20T12:56:35.533Z | 2,015 | 2 | 12 | 4 | 82 | 2 | 316 | 53 | 1 | 2 | true | false | false | false | false | false | zero |
28,629,549 | Transparent background on CardView - Android | <p>I want to do transparent background on CardView.
I know backgroundColor but i have image on my Layout.</p>
<p>Do you know how do it? Or something which work as cardview but i will set a transparent background? </p>
<p>Regards</p> | I want to do transparent background on CardView. I know backgroundColor but i have image on my Layout. Do you know how do it? Or something which work as cardview but i will set a transparent background? Regards | android|background|android-cardview | 106 | 2015-02-20T12:57:06.090Z | 2,015 | 2 | 12 | 4 | 89,894 | 6 | 210 | 44 | 3 | 0 | false | false | true | true | true | false | high |
28,629,615 | Android Studio: Enum auto-completion of switch case | <p>Is there any auto-complete shortcut or code-generation command in Android Studio that creates a stub </p>
<pre><code>switch (myEnum){
}
</code></pre>
<p>statement containing all of the possible <code>case</code> statements for a defined <code>enum</code> as in <a href="https://stackoverflow.com/questions/2618797/... | Is there any auto-complete shortcut or code-generation command in Android Studio that creates a stub [CODE] statement containing all of the possible case statements for a defined enum as in Eclipse ? | autocomplete|enums|android-studio|switch-statement | 21 | 2015-02-20T13:01:06.983Z | 2,015 | 2 | 13 | 4 | 8,083 | 3 | 199 | 51 | 4 | 1 | true | false | true | false | true | false | high |
28,629,616 | Android : Text in ForeGround of a FrameLayout (contain a googleMap) | <p><strong>Hello everyone</strong></p>
<p>To start, sorry for my bad english</p>
<p>I first put you in position:</p>
<p>I'm using Java code for Android, in Eclipse.</p>
<p>My application needs to show a map (Google Maps V2) in a fragment to show the runner location. The map display is already achieved.</p>
<p>Here... | Hello everyone To start, sorry for my bad english I first put you in position: I'm using Java code for Android, in Eclipse. My application needs to show a map (Google Maps V2) in a fragment to show the runner location. The map display is already achieved. Here is my problem: I use a FrameLayout element, which contains ... | java|android|google-maps|android-framelayout|foreground | 0 | 2015-02-20T13:01:07.630Z | 2,015 | 2 | 13 | 4 | 436 | 1 | 781 | 67 | 5 | 1 | true | false | false | false | false | false | zero |
28,629,635 | Android appcompat theme always shows black color actionbar | <p>I generated actionbar style using this web based tool which is very common
<a href="http://jgilfelt.github.io/android-actionbarstylegenerator/" rel="noreferrer">http://jgilfelt.github.io/android-actionbarstylegenerator/</a></p>
<p>I've 'android-support-v7-appcompat' as an individual project in my workspace. I dumpe... | I generated actionbar style using this web based tool which is very common http://jgilfelt.github.io/android-actionbarstylegenerator/ I've 'android-support-v7-appcompat' as an individual project in my workspace. I dumped all the contents of the res folder generated by downloading the zip file from this tool into this p... | android|android-actionbar|android-appcompat | 6 | 2015-02-20T13:02:00.563Z | 2,015 | 2 | 13 | 4 | 6,221 | 4 | 1,093 | 58 | 3 | 2 | true | false | true | false | false | false | medium |
28,629,683 | nutiteq: Button resp. clickable Views not working in Custom ViewLabel | <p>I am able to make a fully customized ViewLabel in Android nutiteq, defining layout design and sizes. However, clickable Views are not working as expected. First I tried to make the whole label clickable by defining the root layout as clickable, but this didn't work. Adding a Button too does not work. How can this pr... | I am able to make a fully customized ViewLabel in Android nutiteq, defining layout design and sizes. However, clickable Views are not working as expected. First I tried to make the whole label clickable by defining the root layout as clickable, but this didn't work. Adding a Button too does not work. How can this probl... | android|custom-view|nutiteq | 3 | 2015-02-20T13:04:41.363Z | 2,015 | 2 | 13 | 4 | 143 | 1 | 362 | 69 | 3 | 2 | true | false | false | false | false | false | low |
28,629,692 | Samsung AT Commands | <p>I have a Galaxy 5 (and also a Galaxy S3 mini), and I'm trying to create an application which makes a communication between the computer and the phone using AT Commands.</p>
<p>Does somebody have a list of these commands? Or I can use the generic ones (i.e. <a href="http://www.communica.se/multitech/gprs_at.pdf" rel... | I have a Galaxy 5 (and also a Galaxy S3 mini), and I'm trying to create an application which makes a communication between the computer and the phone using AT Commands. Does somebody have a list of these commands? Or I can use the generic ones (i.e. this one )? | android|communication|at-command | 0 | 2015-02-20T13:05:05.023Z | 2,015 | 2 | 13 | 4 | 7,223 | 1 | 261 | 19 | 3 | 0 | false | false | true | false | false | false | zero |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.