**** BEGIN LOGGING AT Sat Dec 17 03:00:00 2016 Dec 17 05:54:41 I am stuck in Gradle dependency hell. I have an app A referencing an Android module B. Both A and B reference the same Jar. So when I build my project I get a lovely Gradle error message about duplicate entries. How can I include module B but prevent module B from sucking in the jar? Dec 17 06:00:04 IronMike: http://stackoverflow.com/questions/30648172/gradle-library-duplicates-in-dependencies Dec 17 06:00:56 I've seen many entries similar to this one but they all seem to be talking about Maven/Gradle repo entries and not Jars specifically Dec 17 06:01:13 Both A and B build files contain compile files('libs/supportlibrary-1.0.jar') Dec 17 06:01:22 if that changes anything Dec 17 06:21:09 How to display small Circular Progress bar in AppCompatActivity toolbar Dec 17 06:21:42 I've loaded my Activity as a dialog Dec 17 06:24:05 Also I have tried supportRequestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); along with setSupportProgressBarIndeterminateVisibility(true); Dec 17 06:24:34 But can't see the progress.... What am I missing ? Dec 17 06:35:36 guys -- Dec 17 06:36:09 anyone prefers RxJava 1.0 vs 2.0? Dec 17 07:10:59 shipit: do you prefer RxJava 1.0 over 2.0? Dec 17 07:11:18 Melatonina I worked w/ 1.0 while back Dec 17 07:11:30 working with 2.0 now Dec 17 07:11:41 rx-streams look super interesting Dec 17 07:11:49 looking into backpressure Dec 17 07:18:56 guys anyone here know about how to display progress in an action bar in Activity ? Dec 17 07:38:31 Hi all could someone please help me solve this issue. http://stackoverflow.com/questions/41196461/join-and-display-the-results-of-two-tables-in-oncreateloader-android-content-p. I am trying to create an Activity that displays the results from this query: Select * from TableA, TABLEB where TableA._ID = TABLEB.productid Dec 17 08:17:50 .. Dec 17 08:17:54 hello? Dec 17 08:18:20 I don't know what I am doing, is this where there are android developers? Dec 17 08:18:53 I have a question about using this API to send commands to some BLE juggling balls Dec 17 08:18:59 can anybody help me? Dec 17 08:35:25 what is the syntax for sending byte commands for BLE in android studio? I have this API for some LED juggling balls that I am trying to use: Dec 17 08:35:27 http://www.juggglow.com/downloads/juggglow_api_v1.0_2015-07.pdf Dec 17 08:48:05 where do I go to ask a question about developing for android? Dec 17 08:50:35 Stackoverflow Dec 17 08:50:42 But saturday morning probably isn't the best time there either Dec 17 09:56:21 jugglerVein: yes, this is the channel for Android development. Saturday is not very active. I don't know anything about your problem. Sorry Dec 17 10:03:43 Ok, thank you. I will be sure to try back at a more primetime Dec 17 10:20:05 Android Studio icon became ORANGE! Dec 17 10:47:07 I have an On Boot Background service that creates a Notification. I want to display a screen when the notification is clicked. Dec 17 10:48:49 What do I need to do? Dec 17 11:55:52 Hey :) I am adding a switch in my App to trigger nightmode using AppCompat. When should I read the preference and apply it to AppCompatDelegate? the static-block doesnt work as I cant access sharedPrefs from there Dec 17 14:00:46 hey, anyone here familiar with including apps win a cyanogenmod build? Dec 17 14:36:21 anyone? Dec 17 14:56:09 does anyone know how I can connect to a BLE device? Dec 17 15:01:30 does anyone know how i can make a child element (of a gridview with 5 columns) appear all the way to the right/end? layout_gravity doesn't seem to do anything Dec 17 15:02:10 gridlayout* Dec 17 15:22:58 android studio seems to be replacing good text (the word "between") with bad text ("bet' ") and then failing build. I correct the text and rebuild, it's back to the old, wrong version. Any idea what's going on? Dec 17 15:25:21 Have you tried turning it off and on again? Dec 17 15:25:36 twice SimonVT :( Dec 17 15:26:03 I'm all out of ideas then Dec 17 15:26:05 However, I think I've found the problem. My text is in strings.xml and as is complaining about it in values.xml Dec 17 15:26:30 It makes a copy and then takes that as the real thing?? Hmm, looks like it, it's just built Dec 17 15:26:38 :/ Dec 17 15:26:41 SOrry 'bout tha Dec 17 15:26:42 t Dec 17 15:27:21 Yeah, change your source, not whatever is in build/ Dec 17 15:28:23 hmm, why does it complain about it in build and not in the source? It doesn't usually do that... does it? Dec 17 15:31:43 Not usually, no Dec 17 15:48:44 anyone have any idea why 'BluetoothAdapter.java' would have 161 errors? I never did anything to it. Dec 17 15:50:30 I am trying anything I can to get some code that can detect BLE devices. I know my phone can handle it because I am able to use BLE scanner apps with no problem, but building my own project that does it alwys fails. Dec 17 15:51:19 Hello. i can i test a android library that handles db connections without having to actually have to write an activity? I just want to know if the db operations are working properly Dec 17 15:54:13 <_rm> tsousa: yes Dec 17 15:54:51 <_rm> tsousa: here's a (bad) example, in kotlin https://github.com/superjohan/pfm/blob/develop/app/src/androidTest/java/com/aerodeko/pfm/model/EventManagerTest.kt Dec 17 15:55:21 <_rm> but the same principle Dec 17 15:55:39 <_rm> you just need to get a Context from InstrumentationRegistry Dec 17 15:55:46 <_rm> then the world is your oyster Dec 17 16:12:53 jugglerVein, https://github.com/googlesamples/android-BluetoothLeGatt Dec 17 16:21:49 thanks bitKiller, I'll check it out **** BEGIN LOGGING AT Sat Dec 17 19:15:58 2016 Dec 17 19:16:01 Well, that's probably true Dec 17 19:16:43 raoul11 yes Dec 17 19:16:46 :) Dec 17 19:17:48 Dagmar: I've done # chown -R harwiltz /opt/android-sdk, but it seems like some of the directories are still not owned by me Dec 17 19:19:42 And now I'm getting Error: Cannot create directory /home/harwiltz/app/app/build/intermediates/.../zip-cache Dec 17 19:21:02 Ah nvm I think I got it Dec 17 19:25:06 I've really no idea how you wound up with files in /opt to begin with Dec 17 19:25:14 A mere user account shoudln't be able to write to /opt. Dec 17 19:25:45 AS works just fine when installed with your normal user rights, by simply installing everything in your homedir Dec 17 19:26:10 There's no need to try to stick the files elsewhere on the system unless it's a multi-user machine where more than one person is using Android Studio Dec 17 19:30:39 does anybody have any idea why no BLE code is able to detect devices, but when I download any random scanner app on my phone they detect BLE devices just fine? Dec 17 19:32:00 I am fairly certain that his is the line that won't work for me " mBluetoothAdapter.startLeScan(mLeScanCallback);" Dec 17 19:35:34 I have an external service that's accessed using an API key, I've put the key in my app... how easy would it be for someone to extract the key from the APK? Dec 17 19:36:02 Pretty easy Dec 17 19:36:17 Damn, so what would be the better way to do this? Dec 17 19:36:37 I was thinking maybe pass it to a server I control which can pass it onto the API Dec 17 19:38:01 but unsure if there is a better way? Dec 17 19:38:46 I don't think anyone concerns themselves with it.. api keys aren't exactly secret Dec 17 19:39:08 They're just used to identify the source app, not provide security or anything Dec 17 19:39:31 Well, identify the source app when one starts running amok Dec 17 19:39:33 SimonVT: Ah no I mean the app accesses an external service Dec 17 19:39:42 with my API key for that service Dec 17 19:39:53 Yes Dec 17 19:41:01 Hm.. so with the API key and secret, you can essentially become a user on my account with AWS Dec 17 19:41:50 so I'd ideally not want someone getting that information Dec 17 19:42:09 hey folks, anyone have any guesses as to why no project I make is able to detect BLE devices on my phone yet any BLE scanner app I download from the play store works fine? Dec 17 19:42:56 I feel like I have tried everything, but I just can't get code I compile to actually detect any devices. Dec 17 19:43:36 That doesn't sound right. api keys just identify, they shouldn't provide access to any confidential information Dec 17 19:43:52 You can compile any app that uses fabric and copy their api key directly from the manifest Dec 17 19:43:58 Can't exactly use it for anything tho Dec 17 19:44:10 this is the most recent project i have tried with no luck: https://github.com/googlesamples/android-BluetoothLeGatt Dec 17 19:44:33 jugglerVein: I'm guessing you have android.permission.BLUETOOTH in the manifest? Dec 17 19:44:58 yeah nvm Dec 17 19:45:00 just saw Dec 17 19:45:17 yes, and android.permission.BLUETOOTH_ADMIN" Dec 17 19:46:25 the code is exactly as is posted on github, I have had this same issue with several different projects that are posted online and everyone acts like they work, I just import them and send them off to my phone, they run, but detect nothing. Dec 17 19:48:01 Are you running it on >=marshmallow? Dec 17 19:50:20 it is marshmallow Dec 17 19:50:52 Did you merge the pull request? Dec 17 19:51:18 The one that adds support for api 23 (marshmallow) Dec 17 19:52:10 no i don't think so, how do i do that? Dec 17 19:52:37 The usual git way Dec 17 19:53:51 ok, i am at the git page and i clicked 'pull requests' there are 5 options, I don't see anything for merging. I'll go look into it. Dec 17 19:55:37 You need to add his repo as a remote on your local repo, then merge the commits that adds support Dec 17 19:56:26 There are probably guides somewhere on the internet on how to locally merge pull requests Dec 17 19:57:23 it looks like merging has to do with changing code, I am just trying to run the code as is, I havn't added anything myself. Dec 17 20:00:30 I have run code from github in the past and it just worked without adding repos or merging or anything. I am having trouble finding anything about how to add repos as remotes on local repos. Dec 17 20:03:35 That's why it's a good idea to check issues and pull requests of github repos, would have told you it doesn't work on api 23+ right away Dec 17 20:07:21 the build.gradle says ' targetSdkVersion 25' is that something different? Dec 17 20:12:17 See requesting runtime permissions in the documentation Dec 17 20:12:39 Androids documentation Dec 17 20:14:13 hello Dec 17 20:15:56 oh man! i was reading through the issues and someone said to add location permissions(go figure) and I did and it worked! I have been stuck on this for countless hours! thank you so much SimonVT! Dec 17 20:17:39 I've got a widget composed by a linearlayout , and inside it there are an imagebutton and an imageview Dec 17 20:19:02 Hello, I would like to add some new physical keyboard layout of different language to android. Is it possible by editing some files? (including system files) Dec 17 20:20:41 I've set a minimal padding currently, but it's not displayed with same tickness at both four sides. Screenshot: pastebin.com/dbqayQTW Dec 17 20:21:22 sorry, this is widget.xml Dec 17 20:22:06 Here is the screenshot: imgur.com/a/vN5hS Dec 17 20:24:29 Why top and left sides are bigger than bottom and right sides (I've set android:padding property in ImageButton, though)? Dec 17 20:24:44 Any ideas? Dec 17 20:26:20 Are you making changes to the ImageButton in your code, like assigning a new image to it? Dec 17 20:26:29 i give up Dec 17 20:27:01 There's an annoying bug that I know happens with 4.x that causes padding to get obliterated when you make certain changes to the item later from within java Dec 17 20:31:26 Dagmar: ok, I've set only the xml layout, I've not done nothing (currently) at java code about this widget Dec 17 20:31:57 Dagmar: I mean, I've only set the initial layout of the widget in the xml file Dec 17 20:34:04 Dagmar: I can increase size of the padding, but I've immediately noticed this issue Dec 17 20:34:12 Dagmar: any ideas? Dec 17 20:46:12 anyone? Dec 17 20:46:53 syao: I think #android either #android-root Dec 17 21:24:57 Hi all i have simple navigation drawer with 3 menus. the problem is if I go to menu3 and rotate my device it goes back to menu1. How do I save my fragments on rotate?. I tried setRetainInstance(true); in my oncreateaView but no luck Dec 17 21:25:02 here's my code: https://github.com/probelalkhan/android-navigation-drawer-example/tree/master/app/src/main/java/net/simplifiedcoding/navigationdrawerexample Dec 17 21:25:46 Fragments are restores by default Dec 17 21:26:01 But you show menu1 in oncreate: https://github.com/probelalkhan/android-navigation-drawer-example/blob/master/app/src/main/java/net/simplifiedcoding/navigationdrawerexample/MainActivity.java#L40 Dec 17 21:27:11 thanks @simonVT. ah how should i fix that should i just remove that line? Dec 17 21:27:43 just testing it now Dec 17 21:27:52 Don't show if restoring from state (e.g. check if the saved state is null or not) Dec 17 21:28:17 thanks is there any example? Dec 17 21:28:56 Just null check Dec 17 21:29:57 in my oncreate? Dec 17 21:30:34 if(savedInstanceState != null){ displaySelectedScreen(R.id.nav_menu1); } Dec 17 21:32:15 Hey I'm trying to implement a list that hosts a set of labels, where the number of labels per row will be dynamically set depending on available width (first row: Hello These Are Labels secondRow: A Bug In A Rug Dec 17 21:32:24 Is there a conventional view to do this? Dec 17 21:32:41 I looked at recycler's view grid/staggeredgrid but they preset the columns Dec 17 21:33:20 thanks @SimonVt Dec 17 21:33:22 it works Dec 17 21:47:09 Does anyone know how to get the caller at compile time in Java? Dec 17 21:47:20 I don't want to use getStackTrace() since that's a runtime performance hit Dec 17 21:51:42 Pass a string.. Otherwise you probably have to create a gradle plugin that does bytecode rewriting or something (not sure how well that works with jack tho) Dec 17 22:06:09 I'm trying to read a property of a class in another class. It isn't working. Dec 17 22:06:38 public class AutoStartUp extends Service { Dec 17 22:06:39 public String strCharge = ""; Dec 17 22:07:11 This doesn't work. Dec 17 22:07:12 AutoStartUp.strCharge; Dec 17 22:09:28 What am I doing wrong? Dec 17 22:24:14 Can I get some help with accessing properties of a class? Dec 17 22:26:43 Why doesn't this work? Dec 17 22:26:44 //in AutoStartUp.java Dec 17 22:26:44 public class AutoStartUp extends Service { Dec 17 22:26:44 public String strCharge = ""; Dec 17 22:26:44 // in MainActivity.java Dec 17 22:26:44 AutoStartUp.strCharge; Dec 17 22:33:18 You might be looking for a "public static String" instead. (For a non-static field like that, you would need to have an object of that class to get at it.) Dec 17 22:50:17 fizzie: How would have an object of a service that is running? Dec 17 22:51:03 fizzie: or does the object already exist for me to access somehow? Dec 17 23:13:12 Jackie.chan().subscribe(observer).to(user); lol Dec 17 23:34:07 I started building my navigation drawer but the problem now is when I click on item from my list to go to DetailActivity I dont see the back-arrow button that allows me to go back to parent actvity Dec 17 23:34:13 here's my code https://github.com/probelalkhan/android-navigation-drawer-example/tree/master/app/src/main/java/net/simplifiedcoding/navigationdrawerexample Dec 17 23:34:32 please can anyone suggest how to fix that Dec 17 23:36:21 something like setNavigationUpEnabled(true) Dec 17 23:38:47 thanks lasserix. do I put that in oncreate in my detailactivity? Dec 17 23:39:27 if it works you'd do it in oncreate of mainactivity Dec 17 23:39:32 on the toolbar i think Dec 17 23:41:15 like here: https://github.com/probelalkhan/android-navigation-drawer-example/blob/master/app/src/main/java/net/simplifiedcoding/navigationdrawerexample/MainActivity.java#L25 Dec 17 23:41:23 ye Dec 17 23:47:15 lasserix okay it didnt work. it doesnt recognise the synxt Dec 17 23:47:18 syntax Dec 17 23:47:28 yeah it is something like that Dec 17 23:47:40 you have to findView the Toolbar then set navigationupenabled or something like that Dec 17 23:47:45 i think you can also set it as a xml attribute Dec 17 23:47:52 in the toolbar declaration Dec 17 23:48:24 * setDisplayHomeAsUpEnabled Dec 17 23:48:28 https://developer.android.com/training/implementing-navigation/ancestral.html Dec 18 02:17:14 is there any way to open the main settings page from an HTML link? **** ENDING LOGGING AT Sun Dec 18 02:59:59 2016