**** BEGIN LOGGING AT Sun Dec 20 02:59:59 2015 Dec 20 03:01:13 is there any way to make android studio prompt to import classes like eclipse used to do Dec 20 03:01:20 that was the greatest feature ever Dec 20 03:01:35 i hare gaving to hunt down import statements Dec 20 03:08:37 b4b: Are you typing in imports manually? Dec 20 03:09:19 yes, when i used eclipse if i used a class that has been imported it would ask me to import with the click of a button Dec 20 03:09:28 i dont know alot of the packages so i have to hunt them down Dec 20 03:09:32 b4b: Why not auto import? Dec 20 03:09:36 how? Dec 20 03:09:55 Settings->Editor->General-Auto Import Dec 20 03:11:49 cool thanks Dec 20 03:13:24 awesome it worked just pasted DisplayMetrics metrics = new DisplayMetrics(); andi imported Dec 20 03:14:04 Does anyone know where I am suppose to find those Android drawable for action button on Android notification ? Dec 20 03:14:20 (Android Wear Notification) Dec 20 03:19:30 material design icons Dec 20 03:20:56 pfn I meant where ? Dec 20 03:22:00 use Google and search Dec 20 03:22:05 it's like first hit... Dec 20 03:22:32 pfn: Omg I was looking in the android SDK folder Dec 20 03:22:40 pfn: I though it came with Android Dec 20 03:27:11 pfn: Thanks you :) Dec 20 04:43:39 can AS make java programs? export a jar file? Dec 20 05:24:04 AS undo/redo is so fucked up its ridicoulous Dec 20 05:30:49 how to disable binary data logging with retrofit? Dec 20 05:31:12 without changing loglevel Dec 20 05:42:30 You shan't Dec 20 05:42:42 Forbodden! Dec 20 06:34:46 is there a layout that lays things out horizontally one after the other, until the next one can't fit and just wraps underneath, and keep going - like a TextView but not for words, just arbitrary views Dec 20 06:35:23 GridLayout kinda does that, but you have to specify rows and columns Dec 20 06:36:24 flow layout Dec 20 06:38:40 <_genuser_> dang, when you delay paying for your domain and then teh reigstrar's crappy website becomes unresponsive. Dec 20 06:39:08 pfn cool thanks, i see a few on android arsenal Dec 20 06:55:42 pfn cool, i got this to work with GridLayout - just specify columns, no rows \o/ Dec 20 06:55:58 of course, gridlayout measure cells a certain way Dec 20 06:56:05 but thats OK, i just needed a grid of buttons Dec 20 07:04:56 setting the columns doesn't auto wrap, but I can see it doing what you want close enough Dec 20 07:09:39 why cant u use android devices when plugged in but extremely low in batter, iOS devices allow it Dec 20 07:16:58 this is all I needed https://www.udacity.com/course/ud258 Dec 20 07:21:20 I want to share a screenshot of my app. I can save the file to getExternalCacheDir on 19+. Do I need the WRITE_EXTERNAL_STORAGE to share a file on pre-KitKat? Can I place the file somewhere else where other apps can read it? Dec 20 07:27:11 hmm.. looks like I should be using the support libs FileProvider http://developer.android.com/reference/android/support/v4/content/FileProvider.html Dec 20 07:27:14 how annoying Dec 20 08:10:31 Hi all, I flushed out an alert dialog i was working on but I am having a problem. Can someone give me a tip? http://pastebin.com/WFx18XCg thanks Dec 20 08:22:44 where is onCreateLoader called? https://github.com/googlesamples/android-BasicContactables/blob/master/Application/src/main/java/com/example/android/basiccontactables/ContactablesLoaderCallbacks.java#L47 Dec 20 08:22:52 Akayllin, The dialog probably isn't visible yet Dec 20 08:22:57 Is this inside a DialogFragment Dec 20 08:22:58 ? Dec 20 08:23:30 no its a function in mainactivity that is called when a button is pressed Dec 20 08:23:40 ah it's outside the project https://developer.android.com/reference/android/app/LoaderManager.LoaderCallbacks.html Dec 20 08:24:33 It happens with dialog.show(); above or below the textwatcher section of code Dec 20 08:26:46 Akayllin, maybe the text is set on the EditText before the dialog is shown. IDK. Dec 20 08:26:48 Try this Dec 20 08:26:48 http://pastebin.com/KhXPBBwJ Dec 20 08:30:43 idk how but i got the watcher to work Dec 20 08:30:56 now the create item button is crashing though and saying it can't see the edit text box Dec 20 08:37:52 You are calling findViewById on your activity. Change it to Dec 20 08:38:00 final EditText editTextBox = (EditText) alertBody.findViewById(R.id.item_name_dialog_input); Dec 20 08:38:10 and move it after you create alertBody Dec 20 08:40:55 it works! Dec 20 08:40:57 :D <3 Dec 20 08:41:34 ♥ Dec 20 08:42:42 (⊃。•́‿•̀。)⊃━☆゚.*・。゚ ♥ Dec 20 08:44:17 omg i just died laughing at that sparkle wand emoji lo Dec 20 08:44:19 lol* Dec 20 11:08:57 thinking about writing some helper libs abstracting ui flow in my application. So if I have a fragment with an on click method that transitions to a new fragment, I can mark it with @NextFragment(SomeNewFragment.class).. that way I could build up some ghetto storybuilding tool (to show possible user flows within the application) Dec 20 14:32:33 any recommendations for free uml/class diagrams from IJ CE in linux? Dec 20 14:39:08 howdy Dec 20 14:41:05 do i understand it correctly that for out-of-the-box functionality for radio buttons, they must be a direct child of RadioGroup? and if so, that there would be no official way to wrap then in appcompat CardViews? Dec 20 15:03:39 Just put the RadioGroup in a CardView Dec 20 15:05:37 SimonVT, is there a way to do that without breaking the RadioButton functionality? as in, only one can be selected Dec 20 15:05:56 err Dec 20 15:05:59 wait Dec 20 15:06:19 i misread that. I want to put each radio button in a cardview Dec 20 15:06:52 That sounds like a weird choice Dec 20 15:08:52 well, I'm not the designer Dec 20 15:10:13 Make him design a background for the RadioButton that looks like a card Dec 20 15:10:16 maybe there's something else I should be doing. the interface design should be consistent with the web interface which has drop shadows on the radio buttons. is there a better way to acheive shadows on a radio button ? Dec 20 15:10:28 ok Dec 20 15:10:44 hrm... Dec 20 15:11:25 so then the only options are an image background or writing a custom click listener? Dec 20 15:12:52 or changing the design Dec 20 15:14:12 either of those two options sounds like changing the design. Dec 20 15:14:14 Honestly, each radiobutton being a card doesn't sound right.. It's not obvious that they're related Dec 20 15:15:22 hi Dec 20 15:15:46 cant seem t get pass this error Execution failed for task ':Application:processDebugResources'. Dec 20 15:15:46 > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/kingwill101/Documents/android/android-sdk-linux/build-tools/23.0.1/aapt'' finished with non-zero exit value 1 Dec 20 15:17:11 https://bpaste.net/show/0da3483610f2 Dec 20 15:17:17 settings Dec 20 15:19:34 SimonVT, it works from the way they are positioned and styled on the display. Dec 20 16:06:46 kingwill101, run gradlew assembleDebug from command line Dec 20 16:06:52 kingwill101, pastebin full output Dec 20 16:40:32 Hey all. What about using phonegaps for app development? Dec 20 16:44:13 josetd, ? Dec 20 16:44:19 yes Dec 20 16:44:38 phonegaps? Dec 20 16:44:43 yeah Dec 20 16:44:46 no Dec 20 16:44:50 why Dec 20 16:44:52 ? Dec 20 16:44:59 is terrible Dec 20 16:44:59 phonegap.com? Dec 20 16:45:59 @ktwo yes Dec 20 16:46:07 why should one use a framework by adobe to develop in HTML5/Js/CSS? Dec 20 16:46:20 @pfn have u tried developing using it? Dec 20 16:46:31 using it for making an app Dec 20 16:46:39 using html, css and js Dec 20 16:47:03 not interested, js is a garbage language to work in Dec 20 16:47:31 ohh Dec 20 16:47:55 I'm not familiar with native android development Dec 20 16:48:05 and Java not that much Dec 20 16:48:26 so what ? you can just use html5/js and wrap your site into a webview. done. without needing a framework Dec 20 16:49:08 I want to connect to server running node.js Dec 20 16:50:00 also it seems that http://cordova.apache.org/ is the successor Dec 20 16:50:34 phonegap is a distro of cordova Dec 20 16:51:32 its deprecated see: https://en.wikipedia.org/wiki/Apache_Cordova Dec 20 16:51:38 phonegap latest version is from 2014 Dec 20 16:54:27 deprecated? why? Dec 20 16:55:07 well i dont know its what i read on wiki, and checked the dates.. or probably adobe went on to offer services based on cordova Dec 20 16:56:22 latest version is on jun 2015 Dec 20 16:56:58 anyway i dont see the reason why to use the adobe stuff but well you choose :P Dec 20 16:57:41 I'm actually new to android developement and phonegap looked easier for me than native Dec 20 16:58:01 do you want to have your app on multiple platforms at once? Dec 20 16:59:04 nope. only android Dec 20 16:59:48 The reason for selecting phonegaps was I know html,css and js! Dec 20 16:59:53 if you want to target only android i wouldnt use it, the native development is not that hard, and even if you want to go HTML5/JS you dont need this framework, you just code html5/js normally, and at the end, just create a WebView project with Android studio and set your Apps URL Dec 20 17:00:11 Java am not that much familiar Dec 20 17:00:38 http://developer.android.com/guide/webapps/webview.html this is basically all you need to do in Java to create an App which opens a webpage Dec 20 17:01:08 Cool I will check it out Dec 20 17:01:23 My app needs to communicate with server to receive data Dec 20 17:01:55 well you can just do it within your html code, like with ajax requests (jquery offers ways do do this quite easily) Dec 20 17:02:36 but does webview provide a app like user experience? Dec 20 17:03:17 that depends on your coding but in theory you can make it feel like a regular app for most things Dec 20 17:03:43 Ohk Dec 20 17:03:47 sure when it comes to performance (3D stuff) or usage for things like NFC it gets complicated Dec 20 17:04:01 ohh Dec 20 17:04:54 Thank you! Dec 20 17:50:41 In all the geofence tutorials they send the info to an IntentService class on a transition. But how do people trigger things on the main ui when theres a transition ? Like i want to play audio and have a dialog when someone enters a fence ? Dec 20 19:00:23 :( weight is just a suggestion to GridLayout Dec 20 19:05:29 g00s, obviously, it must conform to the constraints of the grid first Dec 20 19:06:11 g00s, weight cannot make an element grow beyond the size of the cells it spans Dec 20 19:07:26 guess i'll have to go back to nested LinearLayouts. i need all the cells to be the same size Dec 20 19:08:02 that's why gridlayout is rarely suitable for complex layouts Dec 20 19:08:12 that or it takes a lot of mental overhead Dec 20 19:08:30 and it's basically the same as you get with gridbaglayout on the jvm Dec 20 19:12:03 would be nice if ActionMenuView had an option to show text + icons for items not in overflow, thats really all i need Dec 20 19:13:19 it does when space is available, usually on tablets Dec 20 19:13:22 and it looks like ass Dec 20 19:14:20 yeah like > 480dp Dec 20 19:15:33 g00s: https://github.com/ApmeM/android-flowlayout ? Dec 20 19:16:42 icedp yeah, pfn pointed those out yesterday, thanks. its not that big of a deal, so many ways to do it. i was just hoping to put all these children in GridLayout, and specify the columns as dimen for different screen sizes, and automagically create a grid like in Google Drive App -> Item Info Dec 20 19:17:48 i'll try that flowlayout since it has weight too Dec 20 19:38:34 So geofence transitions can only be handled by a pending intent or an intent service right? how do you simply do things on the mainActivity if only some other class has all the info about which fence was tripped Dec 20 19:39:19 Ive tried extending mainActivity as an IntentService, but that dosent work Dec 20 19:49:03 Maybe there is a way to send info from the intentService back to MainActivity Dec 20 19:50:14 the only tihng is i dont want to start the activity the activity should be running the entire time Dec 20 19:50:44 what am i missing about this geofence stuff, they make it seem like geofence are only for making push notifications Dec 20 19:54:19 ugh none of this makes sense, i dont know what to google anymore Dec 20 19:54:46 hi guys! :) Dec 20 19:55:04 Enter a geofence>do something on mainActivity ui Dec 20 19:55:20 thats all im tryint to do Dec 20 19:56:24 I need to develop an app which connects to another phone (via socket tcp), to send data "indefinitely" (like a chat app). Should I use a Service or IntentService instead?? Thanks!! Dec 20 19:56:50 JimHawking extending mainactivity as an IntentService ? should have taken that udacity android course :P Dec 20 19:57:22 but that would give me onHandleIntent in mainActivity and solve my problem Dec 20 19:59:54 Is there a way to get info from IntentService to Activity? without restarting that activity Dec 20 20:00:57 i guess i could make the RelativeLayout public static and trigger its visibility from IntentService Dec 20 20:05:19 Hey :) Dec 20 20:05:57 any idea? Dec 20 20:07:04 If I use intentService to tcp connection (for exampel, in a chat app). How can I notify the intentservice that user has wrote new text to be sent? By calling a new intent? Dec 20 20:08:04 sepho you don't use IntentService for long running things, its like a job-queue Dec 20 20:10:31 how do you make an intentService give info to a mainActivity layout Dec 20 20:10:43 g00s: so it's not a good idea for a chat app? Should I use service instead? Dec 20 20:11:53 because intentService runs in the background right? i need to get its info to its mainactivity Dec 20 20:13:20 sepho: use Service. IntentService is one-time Dec 20 20:13:51 JimHawking: you mean you want send results to activity from the intentService Dec 20 20:14:18 thanks guys :) Dec 20 20:14:35 look for Messenger, eventually broadcastReceiver Dec 20 20:14:57 Ashiren yeah the geofence info, without restarting the activity Dec 20 20:16:00 i.e. this https://stackoverflow.com/questions/12997463/send-intent-from-service-to-activity Dec 20 20:19:07 okay, just what about the result callback ? is .setResultCallback and then onResult(Result result) a way ? Dec 20 20:47:00 JimHawking, probably the easiest way is to use a Bus Dec 20 21:01:06 so does onResult have anything to do with onActivityResult ? the only thing in onResult is Result R, which seems empty and has no intent info Dec 20 21:05:46 So where do I have to put my Version number in the manifest before the app gets published? Dec 20 21:09:16 hello all. I have a question. I'm new in Android programming, if I want to pass an argument from a fragment to another fragment in other activity, I have to: (1) pass the arguments to the second activity, and (2) pass the arguments from the second activity to its fragment, is it that right? at least it's working for me Dec 20 21:10:14 but the question is, have I to declarer the final stating string EXTRA_NNNN for the activity and for the fragment? Do I need two constants, one for each one? Dec 20 21:16:18 could be one constant Dec 20 21:16:40 but id use two so i would know which one is which in the future Dec 20 21:27:12 Ashiren thanks alot for that broadcast info ! Ive got it working now thanks Dec 20 21:27:24 wee Dec 20 21:55:39 i think it would be kind of cool if you could define a style in a layout xml file, for use only in that file Dec 20 22:41:45 hello Dec 20 22:41:59 hi passel Dec 20 22:42:04 are there any good alternatives to xda anyone can recommend? with active mods, a large userbase and lots of active developers Dec 20 22:42:16 hi systom404 Dec 20 22:43:29 passel: any questions just fire away if anyone can help im sure theyll pop up Dec 20 22:43:50 I just did Dec 20 22:44:02 thank you :) Dec 20 22:44:39 * passel is still in the process of learning Dec 20 22:45:00 hmm. Dec 20 22:45:07 passel, for development questions? Dec 20 22:45:22 so I'd rather have a forum at hand with newbie questions already asked and answered Dec 20 22:45:32 yes Mavrik Dec 20 22:45:44 StackOverflow is your best bet I guess. Dec 20 22:46:41 thanks I'll check that out Dec 20 23:16:35 I have a variable in android studio Dec 20 23:16:45 that I believe is an array of bytes Dec 20 23:16:51 however, I think in the debugger I am only able to see up to byte 100 Dec 20 23:17:14 and I feel like there are more bytes because of the ellipses at the end and because 100 is too special Dec 20 23:24:35 right click and view all... Dec 20 23:25:07 the ellipsis is an affordance... Dec 21 00:23:01 I've got some issues trying to retrieve data from a somewhat complex sqlite structure (or at least complex to me: http://i.imgur.com/Xpx7FDu.png). I've got the storing of the data down... somewhat... But I can't really figure out how to efficiently get the data back. I've also got a repo with my initial code/try if anyone's interested. Dec 21 00:25:55 I'm having a tricky compilation error that I can't seem to solve. http://hastebin.com/doyutoroli.xml Updated Android Support Repository in Android SDK Manager still get the error. Even copied the appcompat-v7-23.1.1-sources.jar into the libs folder to no avail. Dec 21 00:26:47 Xylon_ luck for you, chris date just updates his awesome book on SQL Dec 21 00:28:52 Ombra go to the SDK manager, and make sure you have 'android support repository' Dec 21 00:29:24 Ombra don't forget, you can use stetho to query your db on device , for experimentation. also there is a #sqlite channel Dec 21 00:29:32 oops, Xylon_ sorry Dec 21 00:30:33 SDK manager shows that it's installed which is why I'm so confused. I've tried doing a clean install of android studio on another computer and no luck Dec 21 00:30:51 Ombra try from command line Dec 21 00:31:03 post your build.gradle(s) somewhere Dec 21 00:32:16 I know in web you can style google maps with javascript. Is there a way to style maps in android maps api? i found a post from 2 years ago that said they dont have it yet Dec 21 00:32:31 http://hastebin.com/gugicuqaqi.vhdl Dec 21 00:33:00 There's my build.gradle Dec 21 00:33:08 g00s thanks, I'm looking his books up. I've actually already got Stetho in there to verify that everyting is being written correctly. But didn't know I could also query from there, that's gonna be a big help Dec 21 00:33:13 pfn what is an affordance Dec 21 00:35:16 Tam_Vu an affordance is a cue that something happens if you act on it Dec 21 00:35:28 oh Dec 21 00:35:30 I mean I tried double clicking on it Dec 21 00:35:32 clicking on it Dec 21 00:35:48 trying again Dec 21 00:38:04 Tam_Vu btw, you don't have to use carriage return as punctuation ;) Dec 21 00:38:31 my doctor said it would be good for me Dec 21 00:38:53 he was wrong Dec 21 00:39:52 Ombra what happens from command line, when you type 'gradle dependencies' Dec 21 00:40:41 g00s when right clicking on ellipses Dec 21 00:40:45 I have options: Dec 21 00:40:48 Mark Object... Dec 21 00:41:00 Jump to source, view as, Add to Watches and Customize Data Views... Dec 21 00:41:05 and only the last one is not grayed out Dec 21 00:43:10 It says that isn't a recognized command, let me locate it and add it to my build path Dec 21 00:45:41 g00s Dec 21 00:53:00 why does git commit not work in 1.5 if you have perform code analysis checked -.- Dec 21 00:55:47 When I ran gradlew dependencies I got this error: Build file 'C:\Users\Tyler\AndroidStudioProjects\ShareText\app\build.gradle' line: 55 * What went wrong: A problem occurred evaluating project ':app'. > Could not resolve all dependencies for configuration ':app:compile'. > Could not find com.android.support:appcompat-v7:23.1.1. Searched in the following locations: https://jcenter Dec 21 00:56:30 weird, why isn't it finding google repository Dec 21 00:59:18 How do I clear SharedPrefernces each time i run my app through AndroidStudio ? Dec 21 01:01:04 I ran the same command with a stack trace and this is what I got: http://hastebin.com/setunahusi.rb Dec 21 01:02:09 Ombra: appcompat-v7:23.1.1 doesn't exist yet, does it? Dec 21 01:04:01 I have it in \android-studio-ides\android-studio\gradle\m2repository\com\android\support\appcompat-v7 and when I try to change it to another version, it can't find it either Dec 21 01:05:27 the gradle plugins are supposed to add that automatically Dec 21 01:10:24 Do you have any troubleshooting tips? Dec 21 01:12:55 Ombra is that your only build.gradle, or do you have a parent Dec 21 01:17:46 Here are the other ones: http://hastebin.com/oputisisaf.vhdl Dec 21 01:18:50 Ombra i don't see a buildscript { } block in your files Dec 21 01:19:33 so you may not be pulling in com.android.library Dec 21 01:19:57 the result of which is - many problems :) Dec 21 01:21:31 Oh! I forgot to include one of the build gradles: Here's the one will the buildscript http://hastebin.com/situtovize.m Dec 21 01:22:11 This is my first time really poking android outside of Unity, I'm a game developer but need to write myself some native code which is proving to be quite a pain Dec 21 01:56:48 hi all Dec 21 01:57:02 I have a string array in java, is there a way to get it on xml? Dec 21 02:07:31 yapme: not that I know of. Why though? Dec 21 02:10:30 nevermind, already solved Dec 21 02:23:44 If I have a fragment that extends a fragment, can I call super.onCreateView from the child fragment onCreateView? Dec 21 02:28:18 That is a yes, confirmed Dec 21 02:33:59 I've narrowed down the problem to changing this: from('build/intermediates/bundles/release/') to this: from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } because I have other modules in the project that need to be included because I was getting noclassdeffound at runtime with the first version **** ENDING LOGGING AT Mon Dec 21 02:59:58 2015