**** BEGIN LOGGING AT Wed Nov 26 02:59:58 2014 Nov 26 03:08:13 Anyone know of a method for converting a path into a bitmap? My original solution was to simply draw the path to the canvas and capture it using the setBitmap method.. but when I try setting the bitmap to the canvas (after drawing the path) the bitmap remains blank Nov 26 03:22:38 I wish there were some sort of table generator or visual way to quickly make tables. this takes me back to HTML notepad days haha Nov 26 03:24:12 create a canvas object with the bitmap you wanna draw to, use that canvas objects draw methods to draw. it draws on the bitmap you create the canvas with Nov 26 03:25:28 or is there something I am missing out on? Nov 26 03:28:13 I wish I could make it in HTML, and convert it directly to tablelayout Nov 26 03:29:03 you could just make an html5 app ;) Nov 26 03:29:23 not quite what this app is intended for haha Nov 26 03:29:43 ugh, I really have to create new notification icons for -v21? Nov 26 03:29:45 ?? Nov 26 03:29:45 :( Nov 26 03:29:52 no, i mean an app written in html5. Nov 26 03:30:02 i've come too far Nov 26 03:30:14 * lewellyn cues the bad song that came to mind Nov 26 03:34:07 whatitis: excellent solution-- thanks Nov 26 03:52:49 this is gonna be the death of me Nov 26 03:57:15 i think that all the time :/ Nov 26 03:57:53 I am trying to access the other elements in a row of a listfragment on clicking one of the elements, so for example if I select a button I would like to also be able to get the state of checkboxes in the row as well as get the rows position. Does anyone know where I can find examples of this? Nov 26 03:58:14 tables are so clunky and don't center right and you have to manually enter every row/column Nov 26 03:58:35 Hello. Any idea or references on how to implement Check-in Places feature using Google Maps & Places API? I'm new to Google Maps API. I also searched across the web but can't see any implementation of Check-in places. Thank you. Nov 26 03:59:20 im half tempted to go the sloppy route and use an image of a table ;) Nov 26 04:17:16 ugh, action bar items can't have checkable states? Nov 26 04:31:19 I am trying to access the other elements in a row of a listfragment on clicking one of the elements, so for example if I select a button I would like to also be able to get the state of checkboxes in the row as well as get the rows position. Does anyone know where I can find examples of this? Nov 26 04:35:03 simple way: in your adapter, make a final CheckBox reference to the checkbox and use it in your onclickhandler for the button Nov 26 04:35:19 more complex, ultimately better way - learn about viewholders and use them. You'll have to for recyclerview. Nov 26 04:35:54 Anyone know why my ArrayAdapter is throwing an UnsupportedOperationException when calling clear() or remove() on it, even if I instantiated the adapter with a list? Nov 26 04:36:28 dragorn, do you have any good examples for the second option, that would cover my use? Nov 26 04:36:54 ckoch786: not off the top of my head; i've only used viewholders with recylcerviews, but they can be used with listviews (and should for very large lists) Nov 26 04:37:07 a recylcerview tutorial should show you how to use a viewholder Nov 26 04:37:13 it says it's trying to call remove() on an AbstractList Nov 26 04:37:20 thanks Nov 26 04:37:22 it's just a class with resolved variables of things in your view Nov 26 04:37:51 (recycled with the list item so that it prevents constantly searching for view references) Nov 26 04:38:15 so you make your viewholder instance for that row available to your onclickhandler for your button and reference the checkbox that way Nov 26 04:39:21 but really on your view setup in your adapter it should be as simple as final CheckBox foo = (CheckBox) v.findViewById(R.id.whatever); Button b = v.findView(...); b.setOnClickHandler(new OnClickHandler() { onClick(...) { if foo.isChecked(); } } Nov 26 04:39:31 something like that Nov 26 04:39:54 so if I want to register any state changes(check boxes checked) should I require the user to click the row to register the changes? Nov 26 04:40:31 up to you; usually clicking a row sets a single state or launches info about that row; you could also expand the row to show your checkboxes or something on click of the row Nov 26 04:42:04 that is what I was thinking as well, was not sure if adding an expander to the list and using the on click for that would give me the same access that the rows onclick provides Nov 26 04:42:42 so by implementing a custom adapter I will have access to everything in the row? Nov 26 04:42:42 would one still use CheckedTextView within a recyclerview, or is that old-school from ListView? Nov 26 04:42:58 I hate checkedtextview, I wish I wouldn't use it anymore Nov 26 04:43:30 pfn did it misbehave, look funny ? Nov 26 04:43:35 or something else ? Nov 26 04:43:50 it has weird checked logic, dunno why Nov 26 04:44:09 heh yeah, i think it was a helper for listview choice mode multiple Nov 26 04:44:20 but yeah, it's a piece of shit Nov 26 04:44:36 isChecked/setChecked etc. behave so weird and in different ways depending on api level Nov 26 04:44:45 and in response to clicking Nov 26 04:45:05 i just found it for an easy way of putting text left, checbox right :D Nov 26 04:45:19 yeah, that's what I used it for in this particular case, but it's a piece of shit Nov 26 04:45:42 it behaves strangely when retrieving the value of isChecked during onClick, etc. Nov 26 04:46:39 yeah screw that, i'll just use checkbox Nov 26 04:52:41 So today I learned a fun thing Nov 26 04:53:16 Arrays.asList() is an AbstractList, apparently, which seems not able to be modified Nov 26 04:54:01 But new ArrayList<>().addAll(Arrays.asList()) can Nov 26 04:55:01 Anyone know of a single-step process to make an ArrayLIst, similar to Arrays.asList()? Nov 26 04:55:23 i think you messed up Nov 26 04:55:47 me? Nov 26 04:56:40 oh interesting http://stackoverflow.com/questions/7885573/remove-on-list-created-by-arrays-aslist-throws-unsupportedexception Nov 26 04:57:42 hmm, good enough Nov 26 04:58:51 and a better explanation that I'd otherwise found Nov 26 04:58:52 thanks Nov 26 04:59:44 huh, do imagebuttons not ripple in L? Nov 26 04:59:47 or did I do something wrong... Nov 26 05:00:07 Arrays.asList is an ArrayList Nov 26 05:00:14 ;) Nov 26 05:00:14 no, it's not Nov 26 05:00:18 it's an Arrays.ArrayList Nov 26 05:00:20 yes it is! Nov 26 05:00:25 same thing Nov 26 05:00:29 namespace Nov 26 05:00:54 still the same thing Nov 26 05:01:11 I have two hours of UnsupportedOperationExceptions that say otherwise Nov 26 05:01:20 no it doesn't Nov 26 05:01:46 you just require disambiguation Nov 26 05:01:54 and a time machine to punch someone in the face from a decade ago Nov 26 05:03:12 can you clarify what you mean by disambiguation? Nov 26 05:16:37 I disagree, name collisions are perfectly fine, so long as they're properly namespaced Nov 26 05:18:54 JakeWharton i don't know what i do, but i keep pulling this result in searches once every few months https://twitter.com/jakewharton/status/385898996884971520 Nov 26 05:19:42 "I hate it all. Schema migrations, content providers, content values, uri matchers, cursors, column interfaces, sql builders." Nov 26 05:20:07 maybe its because every few months, i search for ways to replace loaders with rxjava Nov 26 05:20:21 pfn: but this one's stupid Nov 26 05:20:55 g00s why search? Nov 26 05:21:08 i'm not coming up with anything i like Nov 26 05:21:12 what is unsolved? Nov 26 05:22:16 JakeWharton, the colliding array list name? no, it's an internal implementation detail that never matters Nov 26 05:22:17 two things, (1) transactions and (2) how to handle notifications of data changes (and subsequent requiries, etc) Nov 26 05:22:51 loaders suck Nov 26 05:23:07 ugliest api ever Nov 26 05:23:22 yeah... Nov 26 05:23:28 i don't think a generic solution is really good for loading Nov 26 05:23:53 i'm not following the transaction thing though Nov 26 05:24:02 pfn: except in stacktraces where you'll find a bunch of stack overlows Nov 26 05:24:18 Also its behavior is dumb Nov 26 05:24:31 hmm, can I not overlap open/close of readable and writable databases? Nov 26 05:25:52 hm, cwac-loaderex "THIS PROJECT IS DISCONTINUED. Use it at your own risk." Nov 26 05:26:37 waiting for cwac-merge for recycleview :) Nov 26 05:28:12 how are you managing to overflow arrays list? Nov 26 05:28:13 lol at droidcon he was talking about how you should aggressively deprecate libs Nov 26 05:28:15 JacobTabak is there a way to make a horizontal divider in my recyclerview / linearlayoutmanager that doesn't involved 50+ lines of code ? Nov 26 05:28:32 lol you mean without a decorator? Nov 26 05:28:42 no, not really Nov 26 05:28:42 uh, yeah i guess Nov 26 05:28:48 it's not 50 lines though Nov 26 05:29:10 43 by my count! Nov 26 05:29:16 i'm looking at DividerItemDecorator, its like 70 Nov 26 05:29:22 http://pastebin.com/GGGRsfu5 Nov 26 05:29:27 and trying to understand it too :D Nov 26 05:29:28 oops Nov 26 05:29:32 i have my package name in there Nov 26 05:29:40 busted Nov 26 05:30:14 that's rather benign Nov 26 05:30:18 JacobTabak why do you have to iterate over the children ? Nov 26 05:30:35 because the drawing is not done per item Nov 26 05:30:38 its for the whole view Nov 26 05:31:22 ie, there are no item-specific decorations since it can be between them Nov 26 05:31:35 or not item-based at all Nov 26 05:31:40 yeah , i don't understand it well enough. no idea. ok Nov 26 05:32:00 i hate android ui shit Nov 26 05:32:30 just give me widgets that work out of the box :) Nov 26 05:34:51 maybe its built in now? Nov 26 05:35:27 i guess not Nov 26 05:38:56 i wonder what Josh Bloch thinks of the android APIs Nov 26 05:40:20 oh he's no longer at google Nov 26 05:50:05 hm, interesting OnErrorThrowable Nov 26 05:52:15 what is the ID for the "menu" button which normally display menu when clicked Nov 26 05:52:22 I would like to open the drawer instead Nov 26 05:55:51 Marlinski: options menu you do it with createOptionsMenu or prepareOptionsMenu Nov 26 05:56:39 or I should say onCreateOptionsMenu and onPrepareOptionsMenu Nov 26 05:57:09 shmooz: I want my left drawer to open when option menu is clicked Nov 26 05:58:37 you can't and don't do that Nov 26 05:58:55 well, you could fake it, but still, don't do that Nov 26 05:59:28 pfn did you copy my name Nov 26 05:59:33 I know it is not in the guideline but I do like the feeling with twidere app Nov 26 05:59:35 no Nov 26 05:59:47 so it must be possible Nov 26 05:59:50 pfn = pointer to fn :) Nov 26 05:59:54 oh Nov 26 06:00:16 why would I copy your nick Nov 26 06:00:56 hey guys Nov 26 06:01:27 Around android I see a lot of something happening but I don't know the name. Nov 26 06:01:46 fragmentation ? Nov 26 06:02:02 an example I can give is in the new contacts dialer Nov 26 06:02:05 sexy-time? Nov 26 06:02:25 on the right there are the first letter of the contacts Nov 26 06:02:40 but when the next letter comes up it pushes the other out of the way Nov 26 06:02:59 when you say 'new contacts dialer' do you mean in 5.0? Nov 26 06:03:06 yeah! Nov 26 06:04:06 that's in aosp, refer to it Nov 26 06:04:38 pfn, do you know what it's called so I can look it up? Nov 26 06:05:43 the contacts app Nov 26 06:05:44 are you talking about the animation, or the letters being displayed? Nov 26 06:06:18 I'm talking about that type of scrolling Nov 26 06:06:27 like I have a category that displays at the top Nov 26 06:06:44 and when I'm done scrolling through that category, the next one pushes it up off the screen and replaces it Nov 26 06:10:15 I think JacobTabak made a widget that does what you want fancyfetus Nov 26 06:10:39 you can just look at the contacts app source in aosp and call it a day Nov 26 06:10:45 https://github.com/timehop/sticky-headers-recyclerview ? Nov 26 06:11:11 thanks JacobTabak I couldn't remember the name :) Nov 26 06:11:42 That is exactly what I had in mind! Nov 26 06:11:57 There is no built in vanilla way of doing this? Nov 26 06:12:09 there isn't even a built in way to do dividers Nov 26 06:12:11 lol Nov 26 06:12:25 darn :P Nov 26 06:12:34 That looks good, though! Nov 26 06:12:35 Thanks! Nov 26 06:37:30 I had just run a function for projectmanager.setComponentEnabledSetting(new ComponentName(this, classname.class),PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP); Nov 26 06:38:25 and suddenly I see error as did you declare this activity in Manifest fiel Nov 26 06:38:30 why is it so? Nov 26 07:01:16 Does anyone have experience working with the Google Play Saved Games service? Nov 26 07:01:50 I'm trying to find information about how I can use it to send and receive data from/to my server via HTTP. Nov 26 07:01:58 but I'm drawing a blank. Nov 26 07:05:25 So has anyone messed with Nintendo's Amiibo figures yet? Nov 26 07:06:54 I can't find any app capable of writing to, or fully reading from, them. Nov 26 07:19:37 I'm trying to get person from google+. But this is always null (Plus.PeopleApi.getCurrentPerson(googleApiClient)) What I'm doing wrong https://bpaste.net/show/633616214ade ??? Nov 26 07:25:50 hi, anyone use android studio on linux? Nov 26 07:29:13 hi guys, what is the best way to measure the height of a line in a textview without creating a textview? Nov 26 07:33:23 Cervantes: yes Nov 26 07:37:15 slani: hey, do you notice the padding of the cursor or highlight of a line in the text editor is not symmetrical with the text? Nov 26 07:38:26 slani: if you look at android-studio on mac (https://www.youtube.com/watch?v=cTg_ocVFmcs), you see that the line hihglight fits the whole line Nov 26 07:39:37 slani: oh, nevermind, nvm. its the Inconsolata font that messed it up. Nov 26 07:40:42 slani: what font do you use? Nov 26 07:49:06 JakeWharton why .... https://github.com/ReactiveX/RxAndroid/issues/72 Nov 26 07:49:22 i can only think of instantiation by reflection, but who would do that ? Nov 26 07:49:25 idiots Nov 26 07:49:37 which is why we save them from being idiots Nov 26 07:52:32 or at least attempt to defer if Nov 26 07:52:36 s/if/it/ Nov 26 07:54:49 Cervantes: I'm using default font of Dracula theme Nov 26 07:54:59 Why not just have a system exit. That'll teach em. Nov 26 07:55:31 ha, that would also be a good one Nov 26 07:56:00 nah, rm -fr / Nov 26 07:56:47 JakeWharton are you going to start working on rxandroid ? Nov 26 07:57:04 i got asked to, yes Nov 26 07:57:06 or do more Nov 26 07:57:09 h Nov 26 07:57:21 *ah :) Nov 26 07:57:28 I would much prefer to see a better multimedia library coming from JakeWharton/Square Nov 26 07:57:38 One where videos actually play on android, and stream Nov 26 07:57:50 without waiting a billion hours for it to fill its hardcoded buffer Nov 26 07:57:52 thanks google. Nov 26 07:57:59 use the one from YouTube Nov 26 07:58:01 ExoPlayer Nov 26 07:58:02 thanks android MediaPlayer Nov 26 07:59:52 i've been picking around rxandroid but still haven't found anything outside the schedulers useful. Nov 26 08:00:10 JakeWharton! big fan here, you saved me a lot of boiler playte copy paste with a vertical view pager ;) Nov 26 08:00:13 While you are here JakeWharton, com.viewpagerindicator:library:2.4.1 is giving me a funny build error . It's complaining about multiple AndroidManifests Nov 26 08:00:26 but i'm looking at the sample now, maybe i missed some stuff Nov 26 08:00:26 c03: i didn't know anyone used that Nov 26 08:00:35 c03: that project was like 4 years ago Nov 26 08:01:18 JakeWharton what things would you like to add/change to rxandroid ? Nov 26 08:01:35 I don't know. I've never used it. Nov 26 08:01:39 I barely know what's in it. Nov 26 08:01:49 I would change all the bad programming practices first Nov 26 08:02:10 so many leaky implementation details, public non-final classes, bad documenting Nov 26 08:02:21 build system is screwed up Nov 26 08:02:35 at least i wish their build - yeah, didn't depend on android jav 4.x O.o Nov 26 08:02:41 *jar Nov 26 08:02:59 i'm fixing that Nov 26 08:03:12 but the stupid rxjava plugins they use screw everything up Nov 26 08:04:17 they don't use a master branch which annoys me since all my bash and git aliases assume it as the main branch Nov 26 08:05:05 the whole project is so strange Nov 26 08:05:11 everyone wants it to be something different Nov 26 08:05:39 thats why they called in the JakeWharton , catastrophe disentanglement expert ! Nov 26 08:06:12 I'm using com.viewpagerindicator and getting a duplicate manifest Nov 26 08:06:17 any ideas how to resolve this? Nov 26 08:06:27 kevel1: i have no idea. that project hasn't been touched in 2+ years :( Nov 26 08:06:37 my least favorite project of all time Nov 26 08:06:41 :( Nov 26 08:06:52 its wrecking me Nov 26 08:07:07 which indicator are you using? Nov 26 08:07:32 JakeWharton: care to make fork of javarx? ;) Nov 26 08:08:31 no Nov 26 08:08:36 kevel1: which indicator do you use? Nov 26 08:08:53 the circle one Nov 26 08:09:03 this isnt my project, im just jumping on to sort out an issue or two Nov 26 08:09:12 this isnt the issue, but it has become one -_- Nov 26 08:09:57 when we used that I just copy/pasted it into our tree Nov 26 08:10:00 skip the dependency Nov 26 08:10:14 maybe as your Christmas present I'll fix up all the broken crap and release a 3.0 aar Nov 26 08:10:16 no promises Nov 26 08:10:55 I skipp the dependency for support-v4 Nov 26 08:10:56 Hello Nov 26 08:11:00 so that stopped moaning Nov 26 08:11:10 then the multiple manifest came along and had its turn Nov 26 08:11:19 Best. Christmas. Ever. Nov 26 08:11:20 :p Nov 26 08:11:58 JakeWharton: It's very useable! Well at least as long as there isn't any alternative from google =) Nov 26 08:13:06 c03: it's based on like the r4 ViewPager Nov 26 08:13:07 so old Nov 26 08:13:13 but hey, if it works Nov 26 08:13:30 works like a charm Nov 26 08:16:44 for some reason, swiping notifications on lollipop devices do nothing for me Nov 26 08:16:46 any thoughts? Nov 26 08:19:28 JakeWharton: that was a joke, dont worry Nov 26 08:26:42 Is there a way to make the exclude 'some.file' only work on one of the included libraries (.aar) not globally on the package? Nov 26 08:30:50 I am currently running into a strange race condition. I have an activity that manages 2 fragments. The activity binds to a service and retrieves data to be displayed after binding is established. After receiving actual data from the service it should tell the fragments to update their content. Unfortunatly the binding seems to be finished before the fragments are beeing created completly. Nov 26 08:30:50 Therefore the Update-Method I have implemented in my fragment causes lots of exceptions. Nov 26 08:31:19 how to handle such situations correctly? Nov 26 08:33:21 The fragment is beeing created via XML definition Nov 26 08:35:07 this is my fragment code: http://pastebin.com/FpzKHkUM Nov 26 08:36:06 And here my activity: http://pastebin.com/nmpXJ1hM Nov 26 08:39:55 Are the fragments dependent on the data or not? Nov 26 08:43:53 yes they do Nov 26 08:44:52 The ListFragment I am using is initialized with an empty list, that shoul dbe populated after the activity has bound to service correctly Nov 26 09:01:09 what is the correct way to manage fragments in a navigationdrawer? Nov 26 09:02:01 right now I create a new fragment instance every time a one is selected from the drawer Nov 26 09:06:40 Anyone know if it's possible to use compile('somelibrary:1.0') { exclude ???? } to strip all res/ files from the library? The docs here talk of "transitive dependencies" http://www.gradle.org/docs/current/javadoc/org/gradle/api/artifacts/ModuleDependency.html#exclude(java.util.Map) but I'm unsure what constitutes a module or group in this context Nov 26 09:07:53 hello Nov 26 09:08:45 I woud like to open a new fragment into my main view when clicking on an item from the navigation drawer. Thing is I don't want to use a static order list Nov 26 09:09:05 I would like each item to carry its own fragment but without instantiate every Fragment Nov 26 09:09:26 can I do that ? like Fragment1.class but then how to get a new instance from it ? Nov 26 09:12:57 Marlinski: in your main view, if you've got some layout, you can put your fragment into it with a FragmentTransation replace http://developer.android.com/reference/android/app/FragmentTransaction.html#replace(int, android.app.Fragment, java.lang.String) - you instantiate the fragment through your static newInstance(foo, bar) function for the Fragment - see newInstance here http://developer.android.com/reference/android/app/Fragment.html Nov 26 09:15:18 what is the proper way to retain state in a navigation drawer? Nov 26 09:15:59 Do i manage fragments myself when selecting them? do I save instance state in bundles and create new fragments for each selection? Nov 26 09:16:17 the google guide on this just makes a new instance for every click http://developer.android.com/training/implementing-navigation/nav-drawer.html Nov 26 09:21:01 hi Nov 26 09:21:15 hi Nov 26 09:22:23 I started a new activity from current activity, then closed it after doing some work with it Nov 26 09:23:44 c03: I actually have the same question Nov 26 09:24:49 the question is every time i press the back button of my phone , the later activity shows again where it should be quitting the applicaiton Nov 26 09:26:36 what should i do to make my app quit immediately rather than show the previous activity Nov 26 09:29:01 Marlinski: I found this http://stackoverflow.com/questions/24186781/android-navigation-drawer-fragment-state Nov 26 09:31:37 Marlinski: either that, or we should handle it by finding fragments by tag?? ? Nov 26 09:38:45 snowpong: dont know if it's possible Nov 26 09:43:50 I now officially hate our analytics provider Nov 26 09:44:00 gordon_: OK Nov 26 09:44:00 https://documentation.appboy.com/Advanced_Use_Cases/Deep_Linking_to_In-App_Resources/Android_and_FireOS#news_feed_deep_link Nov 26 09:44:22 but giving a custom URL scheme won't work because their expecting intent:// as the scheme Nov 26 09:44:27 assholes! Nov 26 09:45:14 https://github.com/Appboy/appboy-android-sdk/blob/master/android-sdk-ui/src/com/appboy/ui/actions/ActionFactory.java#L14 Nov 26 09:45:19 Looks like they screwed the pooch Nov 26 09:45:26 yep Nov 26 09:45:49 wait Nov 26 09:45:53 maybe I was wrong Nov 26 09:45:55 :S Nov 26 09:48:56 Is it common for custom software keyboards (swipe etc.) to not respect flagNoFullScreen? I don't want tablet keyboards to take over the whole fraking view... Nov 26 09:57:37 c03: so what is your solution at the end ? Nov 26 09:58:05 I just did a commercial project where I used the solution as you saw in the stack overflow link Nov 26 09:58:22 and I think I might do it again, as I think I enjoy that solution the most. Nov 26 09:58:38 The fragments will take a dive if the activity does. Nov 26 09:58:48 ops didn't see the link Nov 26 09:59:03 http://stackoverflow.com/questions/24186781/android-navigation-drawer-fragment-state Nov 26 09:59:35 hi, i want to create an application which save all my sms (sent/received) and calls to my website.. any way to create a listener application without gui ? the goal is to backup my sms because i often flash my phone Nov 26 10:00:50 hello Nov 26 10:00:56 c03: thanks, looks neat indeed Nov 26 10:01:13 Marlinski: the other way is to manage the fragments yourself, with the fragment manager Nov 26 10:01:25 that way you can get them even if the activity was destroyed Nov 26 10:01:38 but I don't know if that's a good idea, I guess that depends on your app design Nov 26 10:01:52 but I don't see, where are the "new" (instanciation) ? Nov 26 10:02:26 he uses findFragmentById Nov 26 10:02:35 because he's already created the fragments in XML Nov 26 10:02:56 just do a newInstance(...) there instead =) Nov 26 10:03:10 so in the MainAcitity's onCreate Nov 26 10:03:25 oh well yes Nov 26 10:03:39 alright so the solution is to create them all from the begining and "hide" them somehow Nov 26 10:03:45 I hope it won't be too bulky Nov 26 10:04:26 yea Nov 26 10:08:39 snowpong: but for removing resources new gradle plugin does that, no ? Nov 26 10:08:57 gordon_: you can do exclude on the whole package Nov 26 10:09:13 gordon_: I wanted to explicitly strip from one .aar before it's compiled in Nov 26 10:09:53 c03: other solution would be to instantiate it once, and keep the fragment in an array Nov 26 10:09:59 gordon_: I'll just exclude from whole package with a pattern I hope don't overlap with res/ from any other libs or the app itself Nov 26 10:10:09 c03: if null then instantiate, if not then transaction Nov 26 10:10:21 Marlinski: that's basically what he's doing Nov 26 10:10:25 how can i tell proguard to obfuscate code in a class, but not the field names? Nov 26 10:10:41 it would still be the activity having the references Nov 26 10:10:43 Marlinski: create them on demand, you're only showing one fragment at the time yes? Nov 26 10:10:44 receivers in android need a gui ? can i receive broadcast without have application started? Nov 26 10:10:52 snowpong: yes Nov 26 10:11:04 Marlinski: so create them on user-click Nov 26 10:11:19 snowpong: but as c03, there might be state and such Nov 26 10:11:25 database access Nov 26 10:11:40 don't want to perform a request every time it refresh the window Nov 26 10:12:13 Marlinski: then you can use http://developer.android.com/reference/android/support/v4/app/FragmentStatePagerAdapter.html and turn of animations when it swaps between views Nov 26 10:12:36 snowpong: will look at it, thanks Nov 26 10:12:45 (assuming you don't want it to animate when you click on a drawer) Nov 26 10:13:07 (I don't) Nov 26 10:14:17 snowpong that's not a bad idea Nov 26 10:14:28 that was the fragmentmanager stuff will be taken care of Nov 26 10:14:37 and we don't have to fetch the fragment manually Nov 26 10:14:49 we don't have to hold field varialbe references in the activity either. Nov 26 10:15:12 c03: and it caches the last used fragments (and you can set how many that should be) Nov 26 10:15:20 or actually neighbour fragments, but whatever Nov 26 10:15:43 well basically it has to be all of them if I want to avoid re-fetching data over the network again Nov 26 10:16:23 it just feels a bit hackish... Nov 26 10:21:39 I think I found the answer of my question even though there may be better one. Nov 26 10:22:50 so it's a different issue :( Nov 26 10:23:33 I am passing a service a deep link URI from a web service that creates an intent with ACTION_VIEW and sets the data to the URI Nov 26 10:23:58 however just before the activity should start, I fail with Intent.resolveActivity Nov 26 10:24:02 to prevent opening previous activity by pressing back button , you need call finish() right after you start a new activity and make sure you overide the onBackPressed()method to call finish() of the current activity Nov 26 10:24:06 any good reason why this should happen? Nov 26 10:24:35 c03: if you use some sort of http cache on the JSON endpoints, and some sort of memory (and or disk) cache like Picasso for the images, then going back should use local cached data Nov 26 10:25:23 just make sure the server gives back sensible Cache-Control headers Nov 26 10:25:44 any thoughts? Nov 26 10:27:07 snowpong: yea my datasource will save stuff in a hashmap.. but.. feels wrong Nov 26 10:29:24 c03: well, either you keep the whole fragment in memory (use fragmentpageradapter for example), or you save what is needed in onSaveInstanceState(..) and re-use that when re-created by FragmentStatePagerAdapter for example Nov 26 10:30:36 my fragments onSaveInstanceState is not called when I switch the container in my MainActivity Nov 26 10:30:49 then I'd have to call it manually I guess? Nov 26 10:31:26 which is weird Nov 26 10:32:11 c03: what are they contained in at the moment (the fragments?) - onSaveInstanceState is not called unless onDestroy is called I belive Nov 26 10:33:33 snowpong: a FrameLayout Nov 26 10:33:39 onDestroy is called Nov 26 10:33:47 but onSaveInstanceState is not Nov 26 10:34:02 my app makes numerous http get requests in more than one class. id like to define a public static variable to define the User-Agent. where should i define that variable? my main activity? Nov 26 10:34:28 how can I set my own isChecked, setChecked for my item in my ListView in NavigationDrawer ? Nov 26 10:34:38 cause I use a classic ImageView + TextView Nov 26 10:36:04 guys Nov 26 10:36:06 I can not connect via cable or TCPIP to my sgs2 Nov 26 10:36:16 confirmation window doesn't pop up Nov 26 10:36:24 o I am limited to unauthorized device connection. Nov 26 10:36:34 Ok ok I am connecting but it's unauthorize Nov 26 10:36:43 I checked the /data/misc/adb and it's empty Nov 26 10:36:46 any other clues? Nov 26 10:42:17 anyone know if crashlytics/fabric are actively sending invites out? Nov 26 11:23:24 Hi, sendBroadcast is said to have an asynchronous call. so it returns immediately while the receivers are run is what the docs say. but i noticed receivers run in the main thread only, so does the receivers execute after the current execution stack of sendbroadcast is completed? Nov 26 11:24:04 Hello Nov 26 11:24:52 Is it normal for android default cam to not have options for the actual highest resolution video the cam hardware is capable of ? Nov 26 11:25:46 If the question makes sense... Nov 26 11:26:43 I see via code that my cam can do higher video taking resolutions than the option in the default cam program allows. Then I wrote a program and set it higher than that program allows and it works... Nov 26 11:33:05 SwipeRefreshLayout in 21 version of support so ugly Nov 26 11:33:33 is there a way to force set style to 20? Nov 26 11:34:16 or any library recommend? Nov 26 12:02:21 If i want to only read from a file on the ext.storage on a device, do I still need to use the „android.permission.WRITE_EXTERNAL_STORAGE” permission? Or is that, as the name probably suggest, only used when writing to ext.storage ? Nov 26 12:11:27 Strat: you might need http://developer.android.com/reference/android/Manifest.permission.html#READ_EXTERNAL_STORAGE depending on where you want to read and what api level the device is at. Nov 26 12:12:31 i see, thnx appel1 ! Nov 26 12:12:47 note that this starts from api 19, kitkat Nov 26 12:13:01 before you dont need special permission to read from external storage Nov 26 12:13:45 Yes, indeed, just read it in the link (stupid me, had to check out the android docs first before asking this simple question here, but thnx anyway!) Nov 26 12:14:26 hello friends. i need information about developer account. is it's possible i can use other person card information for my account ? Nov 26 12:14:49 hello friends. i need information about developer account. is it's possible i can use other person card information for my account for paying fee ? Nov 26 12:15:04 why wouldn't it be? Nov 26 12:35:51 Does the ASMDEX library hook to app code at compile time or something? I read the tutorial which mentioned directly modifying classes.dex (new signature obviously) but still not sure how to do this in practice. I'm reviewing some utils and trying to establish a workflow for patching existing apps (no source). Would appreciate any recommendations. Nov 26 12:43:33 http://asm.ow2.org/doc/tutorial-asmdex.html Nov 26 12:44:47 Shouldn't adding exclude 'res/drawable-nodpi-v4/i21001_1_5x.png' Nov 26 12:44:48 inside android { packagingOptions { .... } } remove that file from the .apk? Nov 26 13:04:51 awe awe Nov 26 13:16:52 Hey there, I don't know if here's the right place to ask.Any way!I have a C source.Now how can I compile it to android?It uses : "libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev" Nov 26 13:17:07 for android* Nov 26 13:20:07 Gforce: https://developer.android.com/tools/sdk/ndk/index.html I think that might be what you are looking for Nov 26 13:20:23 You can use JNI for that Gforce, or if you mean it's your own code and it's not loads of it you're probably best off rewriting it in Java Nov 26 13:20:53 Mrdarknezz:Thanks.The problem is it's not written with NDK. Nov 26 13:21:38 VnM:Not my code.What about the libs? Nov 26 13:22:23 By the way, it's a linux CLI software. Nov 26 13:23:14 is it doable to program for android without an ide/eclipse? Nov 26 13:23:15 Think there is a loadLibrary function to load libraries along with it, I haven't worked with it personally Nov 26 13:23:27 day yes it is Nov 26 13:23:30 you can use notepad Nov 26 13:23:32 or vi Nov 26 13:23:35 or what ever Nov 26 13:23:51 well the text editing is the easiest part Nov 26 13:24:03 but what about: logging, project folder creation etc... Nov 26 13:24:16 you can make that yourself (directories) Nov 26 13:24:17 day: I guess your still learning right? Nov 26 13:24:21 and use adb to get the logs Nov 26 13:24:23 yes Nov 26 13:24:40 build it with gradle Nov 26 13:24:49 day:I guess using a simple editor might teach you a lot. Nov 26 13:25:11 Notepad+ or Gedit might be good. Nov 26 13:25:23 i achieved master lvl on nano :P Nov 26 13:26:02 im just thinking about ssh'ing onto my home pc to program android Nov 26 13:26:29 day: :) that's good.maybe vim or gedit + snippet(Or s.th like that) plugin is good. Nov 26 13:27:36 But won't you have an IDE installed on your home pc day? You could just create the project structure there and edit the java files seperately from wherever no? Would save a lot of hassle Nov 26 13:29:11 Why it is not possible to just compile a native code for android.I mean using s.th like C/C++ or assembly? Nov 26 13:30:13 It is possible. Nov 26 13:30:55 If you want to use external libraries, you have to compile those for android as well, and link your library against those Nov 26 13:31:05 like you have to for any other program you write in C/C++ for any platform Nov 26 13:31:40 However, doing so for android is rarely a good idea, since I don't think all the APIs are available from the NDK, unless you plan going through JNI and invoking the respective java apis through native code Nov 26 13:32:02 sonOfRa:Alright.How can I compile a simple hello world with C++ for android?I mean pure C++. Nov 26 13:33:24 I guess for that I have to get involve with working with kernel if I don't find any cout api.Am I right? Nov 26 13:33:43 What the hell do you even want to do? Nov 26 13:33:58 sonOfRa: Make fun I guess. Nov 26 13:34:27 sonOfRa: Was that right? Nov 26 13:34:28 it's really pointless to just compile random code for android, it won't help you at all since you can't run it, unless you package it properly in an apk Nov 26 13:34:43 Go on. Nov 26 13:34:56 That's all Nov 26 13:35:07 http://bit.ly/11uwYNR this should help Nov 26 13:35:12 Can't I run it via cli? Nov 26 13:35:28 i thought that most 3d android games all run large C/C++ fragments? Nov 26 13:35:44 day:NDK.;) Nov 26 13:36:21 day: yes, but they still package them as an .apk Nov 26 13:36:35 And that's really not the stuff you do if you ask for a simple hello world. Nov 26 13:36:46 day, you still need an activity that represents actual app and sets up view surface and other book keeping Nov 26 13:37:04 also most Android API is available only via Java Nov 26 13:37:28 That API's work with kernel? Nov 26 13:38:17 Mavrik: ^ Nov 26 13:38:45 what does that even mean? Nov 26 13:39:06 day:Talking to me? Nov 26 13:39:11 yeah Nov 26 13:39:48 Gforce, what do you mean Nov 26 13:39:49 ? Nov 26 13:39:50 the api is just an interface that provides functions. Nov 26 13:40:11 functionality* Nov 26 13:40:12 to an application Nov 26 13:40:23 Yes, And functions can work with both kernel space and user space. Nov 26 13:40:36 through programming Nov 26 13:41:31 for example the functions that work with openning and clothing files work with the kernel. Nov 26 13:41:49 but the available java apis work with the OS apis. So you cant access them directly with your java program (at least thats how i think it works) Nov 26 13:42:30 any idea why my device wouldn't be show up via adb devices? Nov 26 13:42:39 and what i can do to make it show up Nov 26 13:42:56 day:OS includes 2 parts. Nov 26 13:43:05 userspace and kernel space. Nov 26 13:43:12 on windows: install drivers. on linux: appropriate udev rules. in any case: enable adb in the developer settings Nov 26 13:43:39 day:This might help. http://en.wikipedia.org/wiki/User_space Nov 26 13:44:02 Gforce: most people here probably know what an operating system is. You're still not making any sense though. Nov 26 13:44:18 sonOfRa, drivers installed, adb integration activated Nov 26 13:44:47 there wasn't any RSA key authorisation, but i might have used the phone on this pc before Nov 26 13:44:51 Syzygy: https://www.youtube.com/watch?v=p85xwZ_OLX0 Nov 26 13:45:17 sonOfRa: Yep I guess!Ok let's Imagine i want to write the app totally from scratch.Now What should I do? Nov 26 13:45:44 You should reconsider doing this, because it is tremendously stupid. Nov 26 13:45:54 And a complete waste of your time Nov 26 13:46:21 And really, how "from scratch" are we talking here? Nov 26 13:46:30 ldi r16 Geforce Nov 26 13:46:32 sonOfRa:Well, I'm not going to do that!but i want to know what really goes on down there. Nov 26 13:47:33 day:What? Nov 26 13:47:47 you said from scratch :D Nov 26 13:48:06 day:What does that mean?:/ Nov 26 13:48:12 day9 Nov 26 13:48:17 watch him on youtube Nov 26 13:48:26 well its wrong. but it would load the content into the register 16 Nov 26 13:48:27 such a personality Nov 26 13:48:35 Aha Nov 26 13:48:46 im not day9. and i dont want to be compared to him :< Nov 26 13:52:29 hahaha Nov 26 13:56:04 Is there a way for me to get remote stack traces for other apps on my android device? e.g. the Google Maps app? Nov 26 14:00:44 hello Nov 26 14:06:51 <[ESphynx]> hey guys, I'm having strange issues on the Nexus 10... Using GL ES 1.2/FFP and only objects close to the camera seems to be illuminated? Nov 26 14:11:07 Is it possible replace fragments that have been created via XML defintion? Nov 26 14:11:19 Can you tell me a bit about JNI?Do I need to learn anything about how android works?I mean just like java that you have to learn about activities etc? Nov 26 14:11:48 In my case the initially created fragmet still is visabled under the replacment Nov 26 14:12:07 Weird how Spannable.setSpan takes an Object. Would've thought they'd have some superclass or interface prepared. Nov 26 14:13:27 With JNI I still have to learn about android sdk APIs right? Nov 26 14:13:36 makani: I only got part of what you said. Are you replacing a Fragment defined in XML? Nov 26 14:14:50 I have a fragment that is beeing created via XML definition. And I want this to be replaced programatically Nov 26 14:14:55 You can't do that. Nov 26 14:15:00 You have to add it at runtime and replace it at runtime. Nov 26 14:15:26 Else you get the issue you're currently seeing (the replacement Fragment appearing on top of the old one). Nov 26 14:15:49 that exactly is the issue :) Nov 26 14:15:50 tanks Nov 26 14:16:50 hi Nov 26 14:17:21 there are apps out there imitating a lockscreen. in fact they even manage to disable the softbuttons -- any idea how they do it? Nov 26 14:17:59 i though they would simply extend the activity to cover the softbuttons and use the flag TYPE_SYSTEM_OVERLAY. but when i do it the activity still wont disable the softbuttons Nov 26 14:18:05 (navigation bar) Nov 26 14:18:14 disable as in hide? Nov 26 14:18:26 nope disable as in still there but not touchable Nov 26 14:21:15 Hi there. I'm trying to build-in TabHost into fragment(without using ActionBar). I need it only in one fragment. Google recommends to use FragmentTabHost but it requires android.support.v4.app. Is it right to mix android.app.Fragment and android.support.v4? Nov 26 14:22:22 thana: didn't think it possible, but perhaps by somehow abusing the Draw over other apps permission? Nov 26 14:23:28 appel1: yes that what i guess. but obviously there is still something missing as i couldnt make my app to draw over the soft buttons yet ;) Nov 26 14:23:59 pixraider: I've not used FragmentTabHost, but I know that in general support Fragments and non-support Fragments don't mix. Nov 26 14:24:13 pixraider: Note that it's a good idea to always use support Fragments. Nov 26 14:24:29 Then you get consistent behaviour on various Android versions. Nov 26 14:24:36 Anyone know how to create a placeholder drawable that fits the imageview exactly with Picasso? I've got a layer drawable of a certain size with a bitmap inside it, thing is - unless the drawable fits the imageview it gets scaled Nov 26 14:26:07 TacticalJoke: probably, but I've already developed mainly part of my app using non-support Fragments ( Nov 26 14:31:05 Ugh, that was a mistake Nov 26 14:32:08 pixraider: Here's an SO question about your issue: http://stackoverflow.com/questions/20847199/something-similar-to-fragmenttabhost-without-supportv4-library Not sure how much it helps. Nov 26 14:33:56 is there any way to kill a background thread with a command Nov 26 14:34:02 Thread.stop says it is depricated Nov 26 14:34:17 kill a blocked thread? No. Nov 26 14:34:32 you can set a 'die now' variable and have your thread event loop check it every time through Nov 26 14:34:48 and you can interrupt a waiting thread (and set a variable or similar to tell it to die now that it's interrupted) Nov 26 14:35:00 but if a thread is blocked, it's going to sit there Nov 26 14:38:02 Can you tell me a bit about JNI?Do I need to learn anything about how android works?I mean just like java that you have to learn about activities etc? With JNI I still have to learn about android sdk APIs right? Nov 26 14:38:21 dragorn: problem is my thread is a wrapper for a function Nov 26 14:38:27 I cant interrupt Nov 26 14:38:30 it is 3rd party code Nov 26 14:38:30 ChrisUK: What is your thread doing? Downloading stuff? Nov 26 14:38:32 ChrisUK: that's a problem for you Nov 26 14:38:41 processing a jpg Nov 26 14:38:46 reducing its size Nov 26 14:38:51 ChrisUK: there is no mechanism to kill a thread outside of the thread deciding to die Nov 26 14:38:58 ok Nov 26 14:39:00 You'd have to tell the processing thing to stop. Nov 26 14:39:06 so basically the only option is to set some flag? Nov 26 14:39:08 You have to basically stop the work. Nov 26 14:39:10 yeah Nov 26 14:39:14 ok Nov 26 14:39:24 you might have to change the UX Nov 26 14:39:28 so it's an indefinite progress bar Nov 26 14:39:30 UX? Nov 26 14:39:35 and don't let the user think they can cancel Nov 26 14:39:42 if it's an operation that's basically atomic at that leel Nov 26 14:39:43 level Nov 26 14:39:48 User experience. Nov 26 14:43:25 yo Nov 26 14:43:55 TacticalJoke: thanks, it cleared my vision Nov 26 14:44:57 SpannableStringBuilder is so lame before 21. No way to just append bolded text or something. Gotta setSpan in retrospect. Nov 26 14:45:29 And one could easily create a nice API with methods such as "appendBold", "appendItalic", etc. Nov 26 14:47:36 TacticalJoke, https://github.com/pfn/android-common/blob/master/src/main/scala/AndroidConversions.scala#L272 Nov 26 14:47:56 rewrite in Java as appropriate Nov 26 14:50:43 Yeah, that's the key. I'll be writing something like that. Nov 26 14:57:19 How might I try and read what T is in a class like MyClass? Nov 26 14:57:48 like, if I wanted to know what the name of T class was from within MyClass Nov 26 15:03:19 you cannot Nov 26 15:03:37 only if you reify it Nov 26 15:04:38 pfn: what id you do something like MyClass> (syntax probably wrong) Nov 26 15:05:08 samskiter, that defeats the purpose Nov 26 15:05:20 ah yes, brain far Nov 26 15:05:22 t Nov 26 15:05:24 and makes for a shitty api Nov 26 15:06:46 yes, this is the pattern i was thinking of: http://stackoverflow.com/questions/1090458/instantiating-a-generic-class-in-java still not great Nov 26 15:08:06 I think I ended up using that Nov 26 15:09:06 actually, i used the factory Nov 26 15:09:08 you can access the type parameters when it's concrete, never when it's still a placeholder Nov 26 15:10:01 yes, a little dissapointing. especially when you want to make instances (as I did) Nov 26 15:10:12 very noddy factory Nov 26 15:13:25 Neither compile(...) { exclude(...) } nor packageOptions { exclude '...' } seems to work in the Android gradle plugin to remove res/ files.... from a library (.aar) Nov 26 15:18:19 why are you trying to remove them Nov 26 15:18:42 Can anyone recommend a program or library that reads a layout.xml file and displays the estimated resulting layout? I don't want to have to use android studio, and I don't want to write xml from a drag-drop type layout builder Nov 26 15:19:14 Eclipse and intellij Nov 26 15:19:48 Thanks. I should have said I don't want to use an IDE rather than just android studio. Are there any alternatives? Nov 26 15:20:00 no Nov 26 15:20:30 Hm, I thought that was going to be the answer. Nov 26 15:20:49 can you set the priority of a thread after it has started? Nov 26 15:22:20 I wonder how difficult it would be to create such a standalone 'layout preview' program... Nov 26 15:22:27 The NavigationDrawer has a massive stutter in it when loading a new fragment while it is closing Nov 26 15:22:34 is there a way to avoid this? Nov 26 15:25:35 pfn: The .aar comes with some placeholder map icons I don't want shown on the map. And I don't intend to replace them either. Nov 26 15:26:21 hello everybody Nov 26 15:26:35 hello fernandopaiva Nov 26 15:26:57 I'm trying send an image using HttpPost and MultiPart Nov 26 15:27:02 here: http://pastebin.com/kiqft1Uz Nov 26 15:28:27 the problem is that no send post to webservice Nov 26 15:30:00 and I don't no why its happen Nov 26 15:49:36 snowpong, removing the resources won't make it go away, it'll only make your app crash Nov 26 15:50:25 pfn: actually not in this case, it checks for the resource and gracefully handles it. Nov 26 15:51:08 what library is this... Nov 26 15:53:16 pfn: http://www.fasterimaging.com/ Nov 26 15:54:35 if they support this use case then they should provide directions on how to exclude resources Nov 26 15:55:48 Checking for resources at run-time is the ugliest hack ever Nov 26 16:01:03 pfn: I'll tell them you said so Nov 26 16:01:30 c03: you could override the drawer closing so that the new fragment calls it whenits done instantiating Nov 26 16:02:21 c03: (or more specifically, don't close the drawer during the handler that makes the new fragment, and let the fragment close it. you could even pass an argument to the fragment to tell it to close the drawer, if you want to be really fancy and think there might be a case where you don't want to.) Nov 26 16:25:16 if i have 2 fragments inflated with the same layout resource Nov 26 16:25:34 what id will have the items of the second created fragment Nov 26 16:26:10 ? Nov 26 16:29:14 The same ids Nov 26 16:29:30 but when i call Nov 26 16:29:49 activity.findViewById(R.id.someId) it just gets the first fragment view Nov 26 16:30:03 so how do i find the view from the second fragment SimonVT Nov 26 16:30:06 It gets the first view with that id it finds in the view hierarchy Nov 26 16:30:07 I want to add slidingdrawers to my app, does anyone know why the hell Google abandoned it and why there was no alternative suggested? Nov 26 16:30:18 Multiple views can have the same ids Nov 26 16:30:36 You shouldn't be touching your fragments views from your activity Nov 26 16:30:50 Viperz28, do you m ean drawer layout? sliding drawer isn't what you want Nov 26 16:31:03 and how should i access the views then? SimonVT Nov 26 16:31:16 I want a window that slide in and out Nov 26 16:31:18 Have your fragment handle its views Nov 26 16:31:27 Viperz28, sliding drawer is not the widget you're looking for Nov 26 16:31:35 http://developer.android.com/reference/android/widget/SlidingDrawer.html Nov 26 16:31:51 which one is? Nov 26 16:31:58 I would love to find a replacement Nov 26 16:32:07 drawer layout Nov 26 16:32:57 got it, can I place them on both sides and can they lock in place? Nov 26 16:33:38 and multiple ? Nov 26 16:33:46 yes Nov 26 16:33:59 cool I will look into that Nov 26 16:34:03 thanks **** BEGIN LOGGING AT Wed Nov 26 16:50:22 2014 Nov 26 16:59:36 god, I hope intellij fixes my bug, so damn annoying Nov 26 17:03:16 https://youtrack.jetbrains.com/issue/SCL-7908 Nov 26 17:03:17 grrr Nov 26 17:11:32 that's the penalty for using windows Nov 26 17:12:55 * pfn shrugs Nov 26 17:12:58 I hate osx Nov 26 17:13:02 and I hate linux on the desktop Nov 26 17:13:34 got linux Nov 26 17:13:37 its better on a laptop or phone? Nov 26 17:13:38 hate osx too Nov 26 17:13:41 got it at work ;) Nov 26 17:14:14 good linux is good - from definition Nov 26 17:14:18 why dont you just use android studio Nov 26 17:14:34 isnt it basically intellij optimized for android Nov 26 17:14:43 because he uses scala ? Nov 26 17:14:49 ahh Nov 26 17:15:01 anyway Nov 26 17:15:09 all patches from android studio comes to intellij Nov 26 17:15:15 so I dont see problem with using intellij Nov 26 17:15:29 intellij doesnt have the UI stuff though Nov 26 17:15:37 not that i personally use it much Nov 26 17:15:37 what stuff? Nov 26 17:15:41 previews Nov 26 17:15:45 and stuff Nov 26 17:16:21 so my intellij must be strange ;) Nov 26 17:16:26 ok i need to lie down... i was awake 30+ hours then only 4 hours sleep last night Nov 26 17:16:27 because it does preview Nov 26 17:16:31 i see Nov 26 17:17:44 anyway intellij just wants to download gradle plugin 0.14.2 Nov 26 17:17:51 so guess I'm stuck :) Nov 26 17:18:12 intellij includes all features from android studio Nov 26 17:18:25 it's currently at feature-parity minus the latest gradle crap Nov 26 17:18:34 not really Nov 26 17:18:47 android studio uses older gradle plugin Nov 26 17:18:54 intellij now wants to use newer one Nov 26 17:19:14 preview is useless anyway Nov 26 17:19:18 anyway AS is now in 1.0 RC Nov 26 17:19:21 why ? Nov 26 17:19:26 they're nice I would say Nov 26 17:19:55 so why does android studio exist Nov 26 17:20:06 ask google Nov 26 17:20:07 there must be something about it which makes it more accessible Nov 26 17:20:13 maybe they had reason for that Nov 26 17:20:43 maybe they wanted to get their own development cycle ? Nov 26 17:21:22 i wish the sdk didnt take up 10gb of my drive Nov 26 17:21:32 iv got under 3gb left on my laptop Nov 26 17:22:04 njcomsec: How big is your hard drive? Nov 26 17:22:06 I got 34 :D Nov 26 17:22:10 about 100gb Nov 26 17:22:17 somehow windows 8 seems to take up 50gb Nov 26 17:39:44 only ? Nov 26 17:49:19 http://stackoverflow.com/questions/22927655/java-lang-unsupportedoperationexception-cant-convert-to-dimension-type-0x12 Nov 26 17:49:21 * ravilov 's OS installation, complete with eclipse, android SDK, and tons of other stuff, takes up about 9 GB ;) Nov 26 17:49:22 ugh, that was annoying Nov 26 17:50:48 ravilov: same Nov 26 17:54:45 That feeling when you accidentally started the emulator. Nov 26 17:56:05 so ignore it? Nov 26 17:56:10 or kill it? Nov 26 17:56:27 that feeling when you find good post with tutorial and it's not working as expected ;) Nov 26 18:01:35 Has Facebook entirely stopped filtering for ACTION_SEND now? :/ Nov 26 18:05:19 Can I create a span for text size using sp units? Nov 26 18:12:18 pfn: Yeah, values-vX that shit to make sure you don't have attributes in your theme on platform versions where they don't exist Nov 26 18:12:52 SimonVT, yeah, I mistakenly thought it'd be ignored on old versions Nov 26 18:13:50 The problem is when the resource id was a private attribute before it was used for a public attribute Nov 26 18:14:55 http://siliconvalleyjobtitlegenerator.tumblr.com/ Nov 26 18:14:58 Not going to catch that with the emulator Nov 26 18:43:37 Hi, I have a question with my code, is this a good place to ask? Nov 26 18:44:44 yes but use pastebin Nov 26 18:47:51 public BaseTicket(Context context) { Nov 26 18:47:51 super(context); Nov 26 18:47:52 } Nov 26 18:47:52 public BaseTicket(Context context, AttributeSet attrs) { Nov 26 18:47:54 super(context, attrs); Nov 26 18:47:54 } Nov 26 18:47:56 public BaseTicket(Context context, AttributeSet attrs, int defStyle) { Nov 26 18:47:56 super(context, attrs, defStyle); Nov 26 18:47:58 } Nov 26 18:47:58 shit sorry Nov 26 18:48:16 I am using this code: http://pastebin.mozilla.org/7566626 to load objects from SharedPreferences in one class, and it works fine. The problem is I want to move it to my Team.java and in there it is giving me error:cannot find symbol method getString(int) Nov 26 18:48:50 getString is an activity method Nov 26 18:48:55 why can't it resolve this API level1 call from my Team class? Nov 26 18:49:00 oh Nov 26 18:49:06 nergar: In team.java you need to do context.getResources().getString() Nov 26 18:49:29 cool hwrdprkns Nov 26 18:51:35 Anyone know of a method for subtracting two bitmaps from each other and quantifying the difference based on what's left? For example, if a circle is subtracted from an image of the same circle with a triangle on top then the difference would be relative to the size of the triangle (and whether it's a stroke or filled triangle) Nov 26 18:53:24 hwrdprkns: yep, that did it. many thanx Nov 26 18:53:45 Spynxic: yeah, use PorterDuff.Filter Nov 26 18:54:54 I think you want... SRC_OVER iirc? I always have to look at docs to remember which is src and which is dest Nov 26 18:57:11 hwrdprkns: Thank you. Nice to avoid an NDK-involved solution Nov 26 19:01:16 hi guys Nov 26 19:01:44 I am looking for a tutorial on Samsung Galaxy widgets Nov 26 19:01:57 Please help Nov 26 19:03:05 HikaruBG, what's Samsung Galaxy-specific about them? Nov 26 19:04:59 Smsung Galaxy Edge has a Coctail screen. How to place a widget there? Nov 26 19:05:18 Note Edge* Nov 26 19:05:26 has a screen that other phones don't Nov 26 19:06:10 HikaruBG: you'd need the samsung sdk for that probably Nov 26 19:06:48 I have an Andorid game which Im porting to iOS, and I have a very basic question: Im registering a new “bundle” on iTunes Connect and I have to set a “Bundle ID”, which seems to be similar to Android’s package… anyone knows what are the best practices here? Should I use the exact same as the Android package name such as com.corp.mygame on both? Or should I separate into 2 different names such as: com.corp.mygame.android and com.corp.mygame.ios Nov 26 19:07:01 OK, still I need a tutorial on how to create a widget (because I am a rookie) Nov 26 19:07:21 HikaruBG: Rookie's can still be Odell Beckham Jr. Nov 26 19:07:25 rottz either would work. for my apps i've used the same package name Nov 26 19:07:27 *Rookies Nov 26 19:08:25 hwrdprkns, American dream never dies, huh? :) Nov 26 19:08:45 that's why I am digging into mobile apps development Nov 26 19:08:46 :) Nov 26 19:08:47 rottz i don't see too many package names with either ios or droid in the name yet that app exists on both, so it seems like std practice is to consolidate Nov 26 19:09:08 https://twitter.com/felixpotvin/status/536707773254225920/photo/1 Nov 26 19:10:41 sarbs: thanks! good idea, I could just go and check 5 famous games for their bundle id and package name… doh :) Nov 26 19:12:57 it doesn't matter what you choose, really Nov 26 19:13:06 up to your own organization practice Nov 26 19:15:20 yeah, that’s what I wanted to know… I was afraid that by selecting the same name on both (which initially seems to be the best practice) could make me run into problems in the future (such as an ad lib complaining that the app already exists) Nov 26 19:22:04 What is it with SO answers trying to get people to set appearance stuff with Java code? Like, damn, we have an entire XML presentation system. Nov 26 19:22:59 I wouldn't mind if those answers didn't have 163 upvotes and a checkmark. Nov 26 19:27:23 hey guys, I have a quick question ... I have a layout which I already use for multiple things (based on the intent extra I pass) ... and I'm wondering if I could use the same layout but for another thing and I also need to modify it just a little bit ... could I do that from the code ? or it's better to just make a new layout and just use that ? Nov 26 19:27:51 like adding another button/tableview/etc ... Nov 26 19:28:18 TacticalJoke i hate that shit Nov 26 19:28:44 Does anyone know how to implement ripple and selectors for older versions of android without having to basically copy the selector into the ripple and have duplicate code? Nov 26 19:28:51 anytime i have to do ui setup (transitions don't necessarily count) in code i feel dirty Nov 26 19:29:17 Yeah. Nov 26 19:37:55 TIL people still wear watches. Nov 26 19:40:47 guys, question! Is it worth modifying a layout I already, have through, code to add/remove UI elements so that I can use it for another function other that the one I created it for? I need another layout which like 70% of it would be the same as the one I already have, but I need a few adjustments ... is it worth the hassle of doing it throught code or should I just make another layout and activity? Nov 26 19:41:07 this is a question more about efficiency rather than how to do it. Nov 26 19:43:30 I'm not sure what's best, questioning, but have you heard of the thing? Nov 26 19:43:47 I'd probably be tempted to just create a new XML layout, but I'm not sure. Nov 26 19:44:07 The idea of varying it through code doesn't sound appealing to me. Nov 26 19:44:22 no... I acutally just did a google search in the meantime and stumbled uppon that ... Nov 26 19:45:04 um, the only reason I woundnt do another layout is because of the many similar elements and the naming of those >.< ... I pretty much have to get the IDs kinda similar and I wanted to avoid that ... hm Nov 26 19:45:51 Why is it that you need 70% of the previous layout with adjustments? Nov 26 19:45:58 I wonder about custom views or fragments. Nov 26 19:46:04 I'd probably have to do it like bAdd1 in the first layout and bAdd2 in the second or smth like that ... Nov 26 19:46:09 well it's not a custom view Nov 26 19:46:32 to get the overall picture ... I made a layout with a couple of EditTexts and a button I use for adding items to a database Nov 26 19:46:40 I think that IDs of Views in layouts don't have to be globally unique. Nov 26 19:47:24 but I also use that layout for when I want ot modify an entry from the database ... so based on the intent extras I pass, I prepopulate or not the edittexts and modify the button behaviour Nov 26 19:47:52 not I pretty much need the same layout to add a couple of those entries from a table to another .. ofc with a couple of modifications ... Nov 26 19:50:16 TacticalJoke ... so you're saying I could use the same id's on a different layout and considering I use setContentView on that layout the device will know to use the elements on that layout? Nov 26 19:50:30 Yeah, I think so. Nov 26 19:51:04 I think they need to be unique only within the tree given to Activity.setContentView or LayoutInflater.inflater or whatever. Nov 26 19:51:45 that could work now that I think about it but I was asking my question because I think it would be more efficient storage wise to use a layout for multyple things if you can ... hm ... Nov 26 19:52:17 I wonder about the thing, but I've never tried it. Nov 26 19:52:18 Hmm. Nov 26 19:52:34 well guess I'll just make another layout then and I'll see ... maybe in the future I might find a better option. I'll have a look at first tho .. I just saw it for the first time too Nov 26 19:52:55 Are you concerned about APK size? Nov 26 19:53:09 (Is that what you mean by 'efficiency'?) Nov 26 19:53:37 yeah Nov 26 19:54:17 I'm currently using an external database because I need it to be prepopulated and that might get pretty fat in the future lol Nov 26 19:54:25 I know that XML layouts are compiled into some binary format. I don't know how small it is, though. Nov 26 19:54:31 thought I think when that comes I might switch to cloud or smth Nov 26 19:56:44 I downloaded a game recently that was (I think) 500MB in size. Nov 26 19:56:49 It runs really fast. Nov 26 19:56:56 The only slowness was in the actual download. Nov 26 19:57:18 yes but that 500mb kills lower end devices :D Nov 26 19:57:22 How big is the layout you're worrying about? Nov 26 19:57:26 in terms of storage not actual performance Nov 26 19:58:18 I'm following pretty much this for a custom style of a RatingBar: https://stackoverflow.com/questions/9356799/android-custom-ratingbar-image-artifacts Nov 26 19:58:36 but my ratingbar only shows 1 filled in drawable Nov 26 19:58:42 anyway I was asking because i stumbled upon this problem and I tought I might learn something new and also make it more efficient any way I can ... it's not really a big deal considering that is not a game or smth to hit a lots of mb :D Nov 26 19:58:47 despite numOfStars = 4 Nov 26 19:59:14 questioning: I guess the ideal solution would be layout inheritance, but it seems that Android doesn't support it. Nov 26 19:59:24 Googling "android layout inheritance" yields a lot of relevant results, though. Nov 26 20:01:16 uh so how should you put breaks in javadocs in java 8? Nov 26 20:01:30 error: self-closing element not allowed

Nov 26 20:01:40 warning: empty

ta Nov 26 20:01:40 I'll look into that too. Anyway thanks for the advices/help ^.^ have a good day Nov 26 20:01:52 I guess the second one is just a warning only Nov 26 20:02:06 You can just use "

" with no closing tag, can't you? Nov 26 20:03:52 AS 1.0 rc 2 Nov 26 20:04:03 ah of course, thanks Nov 26 20:04:28 I haven't used JDK 8, but I do that in JDK 7. :) Nov 26 20:05:06 "There are no new features; we are only fixing critical bugs at this point." Nov 26 20:05:15 I hope that doesn't mean no JVM unit testing in 1.0. :[ Nov 26 20:05:50 (Though I'm sure there'll be none in 1.0.) Nov 26 20:11:03 why can't you just create a normal java project in android studio? Nov 26 20:11:10 normal java project -> jvm unit tests Nov 26 20:11:11 easy Nov 26 20:11:20 you keep bringing it up like it's a problem Nov 26 20:11:30 does ratingbar only work with bitmap drawables? Nov 26 20:11:38 can I use a shape drawable? Nov 26 20:12:15 pfn: That works only if the code-to-be-tested is in a plain Java module, I think. Nov 26 20:12:24 TacticalJoke, nope Nov 26 20:12:33 TacticalJoke, works fine regardless Nov 26 20:12:41 Here's the bug: https://code.google.com/p/android/issues/detail?id=65186 Nov 26 20:12:44 It seems to be a Gradle problem. Nov 26 20:12:46 just set the test module as being dependent on the android module Nov 26 20:12:48 ignore gradle Nov 26 20:14:09 * pfn hates waiting for fedex truck Nov 26 20:14:13 I really need to install a doorbell at home Nov 26 20:14:23 I wonder if there are any wifi connected doorbells Nov 26 20:14:37 I use Amazon Locker as much as possible. Nov 26 20:14:43 Though it's for small items only, of course. Nov 26 20:14:55 http://www.amazon.com/SkyBell-Wi-Fi-Doorbell-Motion-Sensor/dp/B00G3DDBVI 2.5/5 Nov 26 20:14:56 ouch Nov 26 20:19:27 The cool thing about making a Reddit client is that (some of) the testing involves simply resting and doing what you'd usually do if you were bored and too tired to move around. Nov 26 20:21:08 Apparently even if I used image drawables, I only get one star... Nov 26 20:22:19 im building a cardboard app. and Im trying to send data from my activity to a CardboardActivity via intents and putExtra. When I try and use getIntExtra(), it is null, and I cannot figure out why Nov 26 20:22:45 getIntExtra("string key", defaultValue) Nov 26 20:22:52 mantazer: Could you post to pastebin? Nov 26 20:23:07 TacticalJoke: sure! one sec Nov 26 20:23:38 ViewRootImpl #2 Surface is not valid. ??? Nov 26 20:24:46 TacticalJoke: http://pastebin.com/VgvYcD2m Nov 26 20:24:52 it always goes to the default value Nov 26 20:26:10 Are you sure that 'strongestLevel' is an int? Nov 26 20:26:48 I want my listview to be taller than it's parent (only by a small amount) if and only if it has enough items to fill the screen plus more. any ideas on ways to do this efficiently? Nov 26 20:27:02 TacticalJoke: yes Nov 26 20:27:27 Anyone know of a way to quantify the amount of a bitmap which is filled relative to the overall size of the bitmap? Nov 26 20:29:34 int totalPixels = getWidth() * getHeight(); foreach (pixel in pixels) count += pixel.isTransparent() ? 1 : 0 Nov 26 20:29:34 filled or empty* Nov 26 20:29:37 like that ^ ? Nov 26 20:29:38 actually, i think i might see an issue Nov 26 20:29:39 brbr Nov 26 20:32:11 hwrdprkns: exactly -- but is there a method that iterates through an image pixel by pixel? Nov 26 20:34:11 Spynxic: no.. but there is a method that allows you to get a row/col of pixels at once Nov 26 20:34:19 TacticalJoke: i found my error and fixed it. Nov 26 20:34:32 What was it, if I can ask? Nov 26 20:34:34 Just curious. :) Nov 26 20:34:39 i was sending it to wrong activity. derp :( Nov 26 20:34:44 Dough! Nov 26 20:34:51 I did consider that. lol Nov 26 20:35:00 lol i should have in the first place Nov 26 20:35:24 :D Nov 26 20:40:37 hwrdprkns: Does the getPixel method actually return a 0 or 1 based on whether a pixel is part of the background or the drawing on the bitmap? Nov 26 20:44:57 TacticalJoke i keep saying, just use instrumentation tests Nov 26 20:45:11 JUnit 3. :/ Nov 26 20:45:35 what killer feature from Junit 4 do you need ? Nov 26 20:45:39 g00s: Why though? I feel like smoke tests and activityinstrumentationtestcase2 should be hella separated Nov 26 20:45:40 like show stopper Nov 26 20:46:00 I'm seriously OC about naming. I hate the 'test' prefix. Nov 26 20:46:15 so what do you need, annotations ? Nov 26 20:46:21 Yeah, for tests. Nov 26 20:46:36 hwrdprkns i don't even know what smoke tests are Nov 26 20:46:38 heh Nov 26 20:48:01 I use naming such as "displaysPostsInCorrectOrder". Nov 26 20:48:06 The 'test' thing ruins that. lol Nov 26 20:48:13 ugh Nov 26 20:48:41 so many things in android are a pita, that should be the least of your worries :D Nov 26 20:48:54 @Test vs testThis is just aesthetics Nov 26 20:49:06 "testDisplaysPostsInCorrectOrder" could be taken as "test **that the subject** displays posts in the correct order", but it does make stuff longer. Nov 26 20:49:09 @RunWith is p legit tho Nov 26 20:49:19 Yeah, it's minor, but it drives me crazy. Nov 26 20:49:24 @RunWith/@Config is $$$ Nov 26 20:49:40 Does JUnit 3 support parameterized tests? Nov 26 20:49:48 (Not that JUnit 4's are good or anything.) Nov 26 20:49:59 I don't think J3 does Nov 26 20:50:03 K. Nov 26 20:50:53 TacticalJoke also you realize, junit 3 is baked into android itself right ? Nov 26 20:50:58 Yeah. Nov 26 20:51:22 not sure if they could have done differently, seems poor decision :( Nov 26 20:51:52 I think they should focus on testing. It's such a big deal. I've seen so many Android projects with zero automated tests. Nov 26 20:52:12 i find testing on android painful, but not because of android 3 Nov 26 20:52:16 i mean, junit 3 Nov 26 20:52:26 Robolectric looks quite nice. Nov 26 20:52:29 i have unit tests for my parsers, etc - but almost nothing for the UI Nov 26 20:52:35 Yeah. Nov 26 20:52:38 I'm the same. Nov 26 20:52:44 The thing is, the UI is quite malleable. Nov 26 20:52:50 Writing tests for it can be a complete waste of time. Nov 26 20:52:59 You're basically trying to lock the UI down the moment you write a test for it. Nov 26 20:53:10 when the app becomes 90% calls into android, its hard to disentangle that. and some of the things, i can't even characterize for mocking like bluetooth Nov 26 20:53:10 Unless we're talking smoke tests, I guess. :) Nov 26 20:53:47 but yeah, i do like to design for simplcity first, then testability Nov 26 20:54:07 I remember reading that book Test Drive Design: By Example (or whatever it's called). Nov 26 20:54:17 I thought TDD was amazing. But, my god, actually using TDD in a project... Nov 26 20:54:24 since i'm not good at testing on android, i spend a lot of time reviewing my code, keeping things simple, elegant, and having a very strong architectural vision Nov 26 20:54:58 when i look at my code, there should be no weird shit. 6 mos from now, when i look at it, my reaction should be : of course, how the fuck else would it be done? thats simple Nov 26 20:55:04 Yeah. Nov 26 20:55:07 Simplicity is key. Nov 26 20:55:07 excuse me JakeWharton, is there any doc on butterknife's @OnTextChanged? My java-fu is not that good so I can't really understand the source. I see I can just decorate a function to be the onTextChanged one, but the code suggest I could put the other methods as well Nov 26 20:55:21 It's the WTFs-per-minute thing, I guess. Nov 26 20:55:32 http://jakewharton.github.io/butterknife/javadoc/butterknife/OnTextChanged.html Nov 26 20:55:42 The thing is, we humans are dumb. We can only concentrate on a small handful of simple things at once. Nov 26 20:55:49 So we have to write code to account for this. Nov 26 20:55:51 TDD isn't amazing... Nov 26 20:56:04 Yeah, I learned that the moment I tried actually using it. Nov 26 20:56:16 I think it's good for stuff with a non-changing specification. That's about it. Nov 26 20:56:22 JakeWharton: I see, thanks. So what about beforeTextChanged? I can see that on the source, but no idea what it does Nov 26 20:56:26 anyway, I think there are hacks to run your instrumentation tests inside a junit 4 runner Nov 26 20:56:33 you basically wrap a junit4 runner inside a junit3 runner Nov 26 20:57:10 (if it gives support for that or not) Nov 26 20:57:50 There are people who still recommend TDD today. Nov 26 20:57:53 Like, for anything. Nov 26 20:58:12 yeah, too many tests becomes inertial and slow you down when the design is in the air Nov 26 20:58:12 If you do TDD, you end up with mountains of useless tests that just lock you into some behaviour. Nov 26 20:58:18 TDD is for people who can't see their nose on their face Nov 26 20:58:33 that need a step-by-step process to achieving their goal Nov 26 20:58:46 The one cool idea from the TDD book, though, is incremental development. That is so important. Nov 26 20:58:54 don't get me wrong, i loved having tests working on legacy IT shit. good to know refactoring didn't break stuff, etc Nov 26 20:59:02 Yeah, regression tests are awesome. Nov 26 20:59:09 but TDD + ADD is a nighmare Nov 26 20:59:11 g00s, having tests is separate from TDD Nov 26 20:59:23 TDD is designed for the ADD crowd Nov 26 20:59:32 you can't pay attention? here's a cookie to get you to pay attention Nov 26 20:59:54 thats funny, because when i have an idea i need to impl asap; if i fuck around with tests it may slip away Nov 26 20:59:55 (cookie = another passing test) Nov 26 21:00:21 the design process is too sloppy and organic to straightjacket yourself into dogma like TDD Nov 26 21:00:26 Ya. Nov 26 21:00:49 but hey, whatever works for you and your team Nov 26 21:01:13 So many people want dogma. I think that's part of why TDD is so popular. Nov 26 21:01:24 I guess life is confusing and stressful. Dogma pretends that it isn't. Nov 26 21:01:26 if i recall TDD came about the time of XP Nov 26 21:01:39 those were dogmatic days :) Nov 26 21:01:50 Foxandxss: what about it? Nov 26 21:01:53 that's an enum on the annotation Nov 26 21:01:57 XP was late 90's Nov 26 21:02:02 you can pick which method on the callback is bound Nov 26 21:02:03 TDD was popularized late 00's Nov 26 21:02:37 i think since TDD was key in XP, it got much more attention then Nov 26 21:03:17 just like pair programming wasn't invented by XP Nov 26 21:03:17 I always found it hard to read programming books while working on projects. I became obsessive about following the book's advice. Nov 26 21:03:28 I tended to read books only when there were no active projects. Nov 26 21:03:35 but became a requirement for tacit knowledge xfer Nov 26 21:04:13 JakeWharton: oh, that makes sense now, thanks Nov 26 21:05:48 can anyone tell me what I'm doing wrong trying to make a custom rating bar with circles instead of stars? https://gist.github.com/shekibobo/4d303a595aa2367b6311 Nov 26 21:06:52 God, this laptop is so dumb. It has weird keyboard shortcuts (e.g., Ctrl+Shift+Fn+Right Arrow) that cause the screen to change orientation. Nov 26 21:07:15 Every now and then I accidentally hit that shortcut (somehow) and struggle to remember how to fix it. Nov 26 21:08:03 any ideas on this: http://stackoverflow.com/questions/27132554/adb-shell-am-broadcast-checkjni-on-an-unrooted-note-4-att Nov 26 21:08:14 did anyone ever had trouble with Log.i() within doInBackground? They seem to spill out garbage/ or dont output anything. I have one Log.i() at the beginning and one at the end of the task. Sometimes the last one outputs something but the first one didnt and vice versa Nov 26 21:08:23 I'm trying to build https://github.com/nhaarman/ListViewAnimations using gradlew, and it fails with Could not find com.android.support:support-annotations:20.0.0 even though I have that library installed in the android sdk. Nov 26 21:08:38 Anyone have any idea what I'm doing wrong? Nov 26 21:09:03 day: I've had no issues with using Log in background thread. I'm not sure whether it's thread-safe, though. Nov 26 21:09:06 threads* Nov 26 21:09:17 (I build my own projects with sbt, because Scala.) Nov 26 21:09:38 day: Are you trying to output null? I think that's a case that doesn't actualy do anything (which is weird). Nov 26 21:10:12 also, http://stackoverflow.com/questions/26725049/cordova-and-startresolutionforresult-vs-startactivityforresult <-- 50 point bounty Nov 26 21:10:24 TacticalJoke: no, i was trying to print a variable (which is definitely set to something at that point) Nov 26 21:10:55 Also, has anyone used Google Play for saving games? Nov 26 21:11:04 What I am seeing is that you can only save one data blob Nov 26 21:11:13 That's kind of sucky.. am I seeing it right? Nov 26 21:11:17 I have ANDROID_HOME set correctly (other build tools work). Nov 26 21:11:28 Oh, it's when you try to log an empty string that nothing happens. Nov 26 21:11:44 day: Is it an empty string? Nov 26 21:12:16 In other words, if you say [Log.i("Foo", "");], nothing will appear in the log. Nov 26 21:12:17 Agamemnus, no? Nov 26 21:12:18 TacticalJoke: no, its definitely a filled string Nov 26 21:12:26 Agamemnus, first example has parameter to show multiple savegames? Nov 26 21:12:33 I would say "Use log to check that", but... :D Nov 26 21:12:37 :D Nov 26 21:12:44 show multiple savegames? Nov 26 21:13:03 What if you say [Log.i("day", myString + "<----");]? Nov 26 21:13:06 TacticalJoke: well as long as i do it outside the backgroundprocess no problem :p Nov 26 21:13:40 day: If you post the code, I'll look. I'm wondering whether there's some bug somewhere. Nov 26 21:14:01 Mavrik, I'm looking at this: https://developers.google.com/games/services/android/savedgames Nov 26 21:14:15 so uh yes Nov 26 21:14:23 you can have multiplesaved games Nov 26 21:14:35 I want to save only part of the data Nov 26 21:14:56 are you suggesting I hax it to make multiple save games as multiple pieces of data? Nov 26 21:16:07 I'm not suggesting anything because I have no idea what your issue is. Nov 26 21:16:14 Well ok. Nov 26 21:16:37 So consider that my player data has many different individual components Nov 26 21:16:41 Mavrik are you using rx for sqlite stuff by any chance ? Nov 26 21:16:48 first there is some general player data. Nov 26 21:16:49 g00s, nop, not yet Nov 26 21:17:02 Then there is player data for each puzzle, for saving the state of that puzzle. Nov 26 21:17:13 It's crazy that Log won't show empty strings. Any [Log.i("Whatever", variableUnderTest);] might not show if variableUnderTest is a String. Nov 26 21:17:19 trying to come up with some idea of how to do it. maybe 4 operators, query, update, delete, insert Nov 26 21:17:23 Hey all. Nov 26 21:17:24 Porting an Android app with SDL_sound, It wants an SDL config file, and despite using --with-sdl-prefix=/home/desktop/Downloads/SDL_sound/cross-android/sdl-config, no dice. Any ideas? Nov 26 21:17:25 But that kinda defeats the whole "testing" thing. Nov 26 21:17:36 I'm estimating this to be at least 4 megabytes of data Nov 26 21:17:42 as a maximum Nov 26 21:18:09 Right now I am saving the entire data to the server when the user closes the game... but I want it to be more fine-grained Nov 26 21:18:31 And the example Google gives seems to indicate that I can only save data to a blob Nov 26 21:18:36 not individual components Nov 26 21:18:46 Yes. Nov 26 21:18:52 Savegame is a full snapshot always. Nov 26 21:18:54 I see Nov 26 21:18:57 :| Nov 26 21:19:04 Which represents game status at certain time... 4MB is a huge amount of data tho Nov 26 21:19:09 Are you using flatbuffers or something like that? Nov 26 21:19:28 I am compressing my data Nov 26 21:19:38 I guess it will be better compressed with more data Nov 26 21:19:45 OK maybe 2-3MB Nov 26 21:20:02 interesting, never heard of flatbuffers. so many in this space, like capn'proto Nov 26 21:20:30 Yeah, protobuf, flatbuffers, cap'n'proto, msgpack being the most used ones Nov 26 21:20:36 they're slightly different from usecase to usecase Nov 26 21:20:46 didn't google release a new one in the past 30 days ? Nov 26 21:20:47 I'm using something called lz-string.js Nov 26 21:20:56 http://pieroxy.net/blog/pages/lz-string/index.html Nov 26 21:21:07 At the moment I'm actually just saving to my own server via POST. Nov 26 21:21:19 I'm just about to add in the example code Nov 26 21:21:45 oh, thats it https://news.ycombinator.com/item?id=8507176 Nov 26 21:21:54 now i remember Nov 26 21:22:34 Agamemnus, compressing strings seems like a horribly inefficient way of storing state data :/ Nov 26 21:22:43 Basically it's an outside limit Nov 26 21:22:54 yes i can use some heuristical data to make it more efficient Nov 26 21:22:57 i suppose Nov 26 21:23:02 i will consider that later Nov 26 21:23:24 i mean, I know where I can cut the fat, though it will be more unwieldy Nov 26 21:23:43 A player will use maybe 4 KB of data for a normal-sized jigsaw puzzle Nov 26 21:24:14 but there are 4 difficulty levels, and the bigger puzzles need more data usage Nov 26 21:24:44 and 58 puzzle images right now, which I plan to double in the forseeable future... Nov 26 21:24:55 4 KB of data per puzzle still seems excessive Nov 26 21:25:07 do you have 2000 pieces? Nov 26 21:25:32 I'm saving the positioning of the pieces as well as the structure Nov 26 21:25:48 although maybe i can use an rnd seed instead.. Nov 26 21:26:06 i mean the shape Nov 26 21:26:10 the shape and positioning Nov 26 21:26:28 it is somewhere between 12 and 200 pieces Nov 26 21:26:56 and the positioning is down to 3 decimal points, maybe excessive Nov 26 21:27:09 Dear all , i have this error message : 11-14 15:42:26.420 W/SQLiteConnectionPool(15763): A SQLiteConnection object for database '/data/data/com.bookscars.src.v65/databases/AppDbStoreroot7' was leaked! Please fix your application to end transactions in progress properly and to close the database when it is no longer needed. and the only class calling AppDbStoreroot7 data is this one : Nov 26 21:27:09 http://pastebin.com/19GGhszr Nov 26 21:27:10 the enter key is not a punctuation mark Nov 26 21:27:23 i should probably use a 0 to 1 value for positioning... Nov 26 21:29:14 Mavrik: I have another question. Can I use HTTP to send save game data? I couldn't find any information about it. Nov 26 21:29:48 You guys know anything about SDL for Android? Nov 26 21:30:06 g00s: you were talking about expansions a few months ago. Have you implemented them before? Nov 26 21:30:20 bankai_au expansions ? Nov 26 21:30:26 Agamemnus why wouldn't you? you can send anything over http Nov 26 21:30:40 please use https tho ;) Nov 26 21:30:43 apk expansion files Nov 26 21:30:43 with 16bits per x/y position you can support resolutions up to 65536 x 65536. so you need 32bits per piece Nov 26 21:31:00 bankai_au: I have.. Nov 26 21:31:08 bankai_au no, that wasn't me Nov 26 21:31:09 sarbs: Like zombo.com. Nov 26 21:31:28 + rotation - say, 2 bits for 0/90/180/270 Nov 26 21:31:32 Agamemnus: what does it look like to the user? Nov 26 21:31:45 Sculptor: I don't have rotation but i do have some inefficient json going on Nov 26 21:32:21 bankai_au: well, you see the download bar twice in your notifications area Nov 26 21:32:32 TacticalJoke omg i love this Nov 26 21:32:32 and then... well, then the game opens Nov 26 21:32:40 shekibobo: Is the 'size' thing wrong there/ Nov 26 21:32:42 ?* Nov 26 21:32:42 TacticalJoke: i think i found the issue. Apparently the gridview getView() function can be called multiple times on the same object. That creates an utter mess of Logs :/ Nov 26 21:32:49 sarbs: I couldn't find the interface.. Nov 26 21:33:05 bankai_au: not exactly sure what you want to know Nov 26 21:33:07 Agamemnus: what if the extension pack doesn't download Nov 26 21:33:09 Sculptor, of course, most packing formats like cap'n'proto use variable length encoding which can be even more efficient Nov 26 21:33:15 especially after compression Nov 26 21:33:16 :) Nov 26 21:33:27 day: Ah, okay. Nov 26 21:33:32 bankai_au: there should be an error message. Theoretically. All that stuff is up to your code. Nov 26 21:33:45 TacticalJoke: is that a bug? or a feature? Because it seems widely spread Nov 26 21:33:57 i know how to handle it in code, i want to know what it looks like to the user. I've never used an app that's used one Nov 26 21:34:00 google provides a basic framework... that is horrific Nov 26 21:34:20 day: Were you getting log messages displayed in parts? Nov 26 21:34:27 well, you might see a small thin grey bar in your phone Nov 26 21:34:31 I'd expect Log.i (or whatever) to be atomic, but who knows. Nov 26 21:34:49 and a message that says the download failed. But this is for updates, not initial installs Nov 26 21:35:00 Actually it could be for both. Nov 26 21:35:11 TacticalJoke: nah i got 10messages for the first object. then maybe non for the second etc. Now i wrapped the object creation into an If clause that checks if the object already exists. But thats kinda messy Nov 26 21:35:12 I'm gonna look at the code. Nov 26 21:35:18 It really depends on your code. But the small grey bar is thhe default look... Nov 26 21:35:23 Weird. Nov 26 21:35:32 please advice Nov 26 21:35:36 you really dont want to do that :D its chaos Nov 26 21:35:56 It calls println_native, which is (of course) native. Nov 26 21:36:04 bankai_au: you're not using Cordova, are you? I made a plugin for that... Nov 26 21:36:22 no Nov 26 21:36:45 TacticalJoke: even if I take size out of the shapes, I still have the problme Nov 26 21:37:01 By the way, take note that their main/patch code stuff has a bug. Nov 26 21:37:43 http://code.google.com/p/android/issues/detail?id=73894 Nov 26 21:38:03 My plugin actually ignores the version numbers, though... Nov 26 21:39:02 shekibobo: Sorry, I don't know much about this topic. Nov 26 21:39:12 shekibobo: Have you googled a lot? Nov 26 21:39:22 yeah Nov 26 21:39:35 I even pulled out the code that android itself uses Nov 26 21:39:45 modified it to point to my resources Nov 26 21:39:48 both images and shapes Nov 26 21:40:07 damn thing still shows just one dot Nov 26 21:40:35 So maybe it's just not getting the correct size? Nov 26 21:40:42 Could you try to force it to be big? Nov 26 21:41:21 if I take size out of the shapes, I still get the same issue Nov 26 21:41:40 if I get rid of the height restrictions on style, it just stretches the resource to be tall Nov 26 21:41:47 still just one, though Nov 26 21:42:38 Ok, never mind. I found it Nov 26 21:42:59 in the sdk manager, what is "google repository" ? i thought that was Play Services ... Nov 26 21:43:20 "/appstate/v1/states/0" or something like that... for save game states... Nov 26 21:44:00 'android auto api simulators" hm Nov 26 21:44:17 g00s, it's the gradle repo for everything google provided Nov 26 21:44:26 for some reason they refuse to publish to maven/jcentral Nov 26 21:44:44 Mavrik but not everything, right? there is still the support library repository Nov 26 21:44:56 hmm Nov 26 21:45:01 they need to consolidate this shit Nov 26 21:45:20 I think they just keep their propriatery stuff and AOSP stuff separate Nov 26 21:45:24 which is a good thing Nov 26 21:45:48 i think they should just host their own m2 repo, and we point to it - downloading repo snapshots seems silly Nov 26 21:45:56 and then, those get removed from sdk manager Nov 26 21:46:03 they can leave some 'standalone dl verions' for people Nov 26 21:46:13 I hate the way Ctrl+Tab works in Java IDEs. Nov 26 21:46:15 which are just the jars, if using ant or something Nov 26 21:46:18 Just let me go to the next tab. :[ Nov 26 21:46:26 TacticalJoke try Ctrl-e Nov 26 21:46:38 or command-e Nov 26 21:46:39 That doesn't seem to work in Eclipse. Nov 26 21:46:45 oh, hah eclipse nm Nov 26 21:46:46 lol Nov 26 21:46:50 I can do Ctrl+Page Down. Nov 26 21:47:04 Eclipse isn't that bad! Nov 26 21:47:34 no it isnt Nov 26 21:48:09 any advice ?:( Nov 26 21:48:13 I'm surprised that I defend Eclipse nowadays, though. I used to despise it. Nov 26 21:49:08 its got some killer tools, like xtext Nov 26 21:49:19 It's annoying that we can't declare static members in non-static inner classes. Nov 26 21:49:26 Alright, I'm going to be offline for a bit, but if anyone knows how to make customized RatingBar styles, please comment on this gist with a solution: https://gist.github.com/shekibobo/4d303a595aa2367b6311 Nov 26 21:49:27 And totally arbitrary. Nov 26 21:50:03 also, when eclipse guys heard of the applause when google said they would support AS i think that kinda lit a fure under them --- but they are under staffed Nov 26 21:50:37 for example, they didn't have enough people to do perf testing Nov 26 21:51:00 Is ADT even developed anymore? Nov 26 21:51:09 I think they fix bugs only. Nov 26 21:51:18 Since it looked like it's just on life support until Gradle/AS gets to 1.0 Nov 26 21:52:09 God, I hope AS ends up being good. Nov 26 21:52:11 Like, really good. Nov 26 21:52:21 Otherwise, we all suffer. Nov 26 21:52:44 it is pretty good Nov 26 21:52:44 it was good on the day they forked from IntelliJ Nov 26 21:53:03 it was good even when it was just IDEA Nov 26 21:53:09 TacticalJoke its the other tools that blow, like everything in 'monitor' Nov 26 21:53:21 That monitor is just th eplace where tools go to die Nov 26 21:53:27 It's so slow for me. Just typing is laggy. Nov 26 21:53:32 I would kill for something like Instruments from iOS Nov 26 21:53:34 I think it may be Gradle. Nov 26 21:53:57 What might cause Android Studio to fail to convert valid XML in drawable file to a drawable? Nov 26 21:54:19 Installation component missing? Nov 26 21:54:48 oh i think i get that too. no idea Nov 26 21:55:18 I'm trying to make/use a shape for use as separator in LinearLayout Nov 26 21:56:44 FlipBill: What do you mean when you say it fails to convert the XML to a drawable? Nov 26 21:57:54 Anyone have any experience adding the Google Maps for Business SDK to a gradle built project? Nov 26 21:58:21 TacticalJoke, 5 line shape def, Preview window in AStudio emits: "Failed to convert @drawable/simplediv into a drawable" Nov 26 21:58:36 I don't know what to use to obtain more detailed diagnositc message Nov 26 21:58:37 Oh, the preview thing. Nov 26 21:58:41 Yes, that Nov 26 21:59:07 Wondering what it calls that I might invoke directly for more clue Nov 26 21:59:31 Corresponding ref in layout fails as a result. Nov 26 22:00:37 Also says: Couldn't resolve resource resource @drawable/simplediv Nov 26 22:01:15 Correction: Couldn't resolve resource @drawable/simplediv Nov 26 22:01:39 Under: Rendering problems Nov 26 22:02:06 But no ref to syntactical problems or anything of the sort. Just says "couldn't" Nov 26 22:06:58 To answer my question above: there's a reasonable change that Log.i is thread-safe. There's a reasonable chance that it calls System.out.println, which is threadsafe. Nov 26 22:07:06 thread-safe* (on Android, anyway) Nov 26 22:07:12 Does anyone have any idea why gradlew wouldn't be able to find support libraries? Nov 26 22:09:13 The treatment of the supprt libraries seems rather odd to me. I wonder why they aren't in Maven Central. (Vert old ones are.) Nov 26 22:09:37 Yes, Log.anything is thread safe and reasonably atomic Nov 26 22:10:02 J1m, grab the two repositories in Android SDK Manager Nov 26 22:10:03 J1m: Have you installed the Support Repository thing. Nov 26 22:10:05 it's dumb yes. Nov 26 22:10:32 I hate when a class is thread-safe and the documentation doesn't state this. Nov 26 22:10:47 Mavrik, TacticalJoke yes, they're installed in the SDK. Nov 26 22:11:04 and ANDROID_HOME is set correctly. Nov 26 22:11:14 TacticalJoke, hmm, yes, but there's really little reason to think why a static logging library wouldn't be thread safe. Nov 26 22:11:45 The project has a requirement: provided 'com.android.support:support-annotations:20.0.0' Nov 26 22:12:06 and I have rev20 of the support libraries installed. Nov 26 22:18:03 I have an 8.3" tablet, and if I'm reading Reddit I set the client to never show two Fragments. Nov 26 22:18:05 Is that unusual? Nov 26 22:18:16 Even in landscape, it feels weird. Nov 26 22:18:36 I'm not sure what to do about tablets with my app. Nov 26 22:19:53 My ANDROID_HOME is /Users/jim/i/android/sdk, and I have /Users/jim/i/android/sdk/extras/android/support/annotations/android-support-annotations.jar Nov 26 22:20:01 Is there any way I can save an app's state (which I'm assuming is just the data entered, radio buttons chosen, etc) when I need to before quit or should it be done on the fly? Nov 26 22:20:03 J1m, install support repository Nov 26 22:21:27 Hi pfn. I didn't know there was such a thing, but looking... Nov 26 22:21:31 AnDaghdha: What do you mean? Nov 26 22:21:37 of course there's such a thing... Nov 26 22:22:13 J1m: Did you just say you've got that installed? Nov 26 22:22:50 TacticalJoke, sorry, I didn't realize that there was such a thing distinct from library. Trying... Nov 26 22:23:21 And that fixed it! Nov 26 22:23:25 Thanks all. Nov 26 22:25:13 I'm told to "Save the App State when quitting. Restore on re-launch". The only components that can be altered are two EditTexts and a RadioButtonGroup of two RadioButtons. I'm assuming I must keep the user's inputs if they close out of the app. Should they be stored on the fly as they are altered or can it be done when needs be? Or am I misunderstanding what must be done? Nov 26 22:25:35 It's for a uni assignment Nov 26 22:25:59 You could do it in Activity.onPause, I think. Nov 26 22:27:46 are most android processors multiple core? Nov 26 22:28:29 is there a way to set a TextView to link to a website without having to type the URL into the string? Nov 26 22:28:45 so basically it would say "Click Here" rather than "www.google.com" Nov 26 22:28:54 ChrisUK: I don't know, but why do you ask? Nov 26 22:28:56 I'll try that out. Thanks, TacticalJoke Nov 26 22:29:16 Tactical: want to know if there are performance advantages to multithreading Nov 26 22:31:36 there are always advantages in UI apps with multithreading Nov 26 22:31:41 even on single cpu devices Nov 26 22:31:44 There are totally advantages to mlutithreading... every computer does it Nov 26 22:31:48 (good computer) Nov 26 22:41:06 ChrisUK: Are you comparing using only one thread (your UI thread) against using two threads (UI + background), or are you comparing using two threads (UI + background) against using several threads (UI + multiple backgrounds)? Just curious. Nov 26 22:48:09 nothing I find works Nov 26 22:48:13 Rob_TheRetroGuy: Just set an OnClickListener for that TextView and open the url there Nov 26 22:48:32 doesnt work Nov 26 22:49:02 hey guys Nov 26 22:49:13 If we have a text view Nov 26 22:49:26 how can we dynamically display a list of results starting with what is in the text view? Nov 26 22:50:09 Rob_TheRetroGuy: what about it doesn't work? Nov 26 22:51:02 cannot resolve method for findViewById Nov 26 22:51:15 We have methods that return the correct results, I just dont know how to make a dynamic list Nov 26 22:51:40 fancyfetus: How do you mean? Nov 26 22:52:54 Like if we have a search field, we'd like to take whatever text is in there and search for everything starting with it. Nov 26 22:53:15 Searching is easy, but how can you display a dynamically changing list of stuff Nov 26 22:56:58 Rob_TheRetroGuy: well, that's a different problem Nov 26 22:57:12 fancyfetus: So you're asking how to display a list of results? Nov 26 22:57:24 Or, more generally, a list of items. Nov 26 22:58:04 what enables this? Nov 26 22:58:29 java Nov 26 22:58:38 there's no magic in java Nov 26 22:58:40 findViewById is a method of the Activity class. Nov 26 22:58:45 am I missing an import? Nov 26 22:59:42 In which method are you calling findViewById? Nov 26 22:59:47 ah, seem Im using a fragment Nov 26 22:59:49 anyone have idea how to tint Buttons on Android 5.0 ? If I set background to single color, android:background="#fff", I'm able to use android:backgroundTint="#0f0", the button will turn greyish green. But I'm not able to tint the default button background ! Nov 26 23:00:10 the color just will not turn Nov 26 23:00:20 setTint in code? Nov 26 23:00:26 Rob_TheRetroGuy: you're simply trying to call a method that doesn't exist on the class you're trying to call it from Nov 26 23:00:34 You can say "getActivity().findViewById". Nov 26 23:00:38 ah have to use getView() Nov 26 23:01:34 hwrdprkns: there is no "setTint()" on Button Nov 26 23:01:46 Though it seems like you're doing something wrong, Rob_TheRetroGuy. Nov 26 23:01:55 Shouldn't you be finding this within onCreateView or something? Nov 26 23:02:08 getActivity was right Nov 26 23:02:19 What is the name of the method in which you are calling findViewById? Nov 26 23:02:24 aolin: mButton.get(Background)Drawable().setTint()? Nov 26 23:02:25 it is oncreateview Nov 26 23:02:49 but its within a fragment so I had to use getActivity()findViewById Nov 26 23:03:03 I think that's wrong. Nov 26 23:03:42 You should use the View returned by inflater.infate. Nov 26 23:03:44 inflate* Nov 26 23:03:50 thatView.findViewById Nov 26 23:04:02 public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){ Nov 26 23:04:08 GGG haha Nov 26 23:04:18 E/AudioRecord(31709): start() status -38 Nov 26 23:04:26 anyone have exp with this error? Nov 26 23:04:58 JakeWharton, perhaps? Nov 26 23:05:02 wat Nov 26 23:05:05 no Nov 26 23:05:44 okie dokey, thanks :) Nov 26 23:05:48 Rob_TheRetroGuy: View layoutView = inflater.inflate(whatever); TextView textView = (TextView) layoutView.findViewById(R.id.whatever_else); Nov 26 23:05:51 hwrdprkns: that does not work either Nov 26 23:06:01 hwrdprkns: it has no effect on the button color Nov 26 23:06:26 hwrdprkns: unless I replace the background with a solid color 0_o Nov 26 23:06:29 TacticalJoke, it works without having to change all that Nov 26 23:06:36 Rob_TheRetroGuy: Don't use getActivity(). Nov 26 23:06:41 That's Doing It Wrong[tm]. Nov 26 23:07:05 you havent seen my entire code, how do you know it's wrong? Nov 26 23:07:19 There are two options: 1. That's wrong. 2. That's right. Nov 26 23:07:22 Im returning the inflater with the rest of the info Nov 26 23:07:22 If #2, something else is wrong. Nov 26 23:07:33 if its wrong, then why does it work? Nov 26 23:08:27 Rob_TheRetroGuy: Where is the view you're finding? In the layout for the Activity or in the layout for the Fragment? Nov 26 23:09:11 in the fragment Nov 26 23:09:27 Then it makes more sense to call viewReturnedFromInflate.findViewById. Nov 26 23:09:31 Even if the other way works. Nov 26 23:10:15 doesnt work Nov 26 23:11:36 No doubt using exactly "viewReturnedFromInflate" won't work. There's a tiny chance that you used an identifier with that exact name. :) Nov 26 23:11:50 tLink = (TextView) viewReturnedFromInflate.findViewById(R.id.ToS); cannot resolve for viewReturnedFromInflate Nov 26 23:11:53 :D Nov 26 23:12:18 See that line "inflater.inflate"? Nov 26 23:12:27 Above the one you posted. Nov 26 23:12:51 Use the view returned from there ("the view returned from inflate"). Nov 26 23:14:31 * Rob_TheRetroGuy is now confused Nov 26 23:14:48 there has to be a different way to just make a link clickable Nov 26 23:16:13 and I dont want to use an ugly button Nov 26 23:16:28 It's googleable, I think. Nov 26 23:16:42 every mothod I've tried doesnt seem to work Nov 26 23:16:57 You should probably just post code. Nov 26 23:23:58 I have nothing to post since nothing works Nov 26 23:24:50 I set the link with strings.xml Terms of Service Nov 26 23:25:02 the link is underlined like a URL link, but it doesnt open anything Nov 26 23:28:33 oh god, I think I forgot to disable acra in one of my production apps :( Nov 26 23:30:05 Stack Overflow people are useless Nov 26 23:30:29 setTextMovementMethod Nov 26 23:33:31 tried that but its not recognizing my textview Nov 26 23:34:04 ToS.setText( Html.fromHtml("Terms of Service")); Nov 26 23:34:05 ToS. setMovementMethod(LinkMovementMethod.getInstance()); Nov 26 23:34:23 my TextView Id is ToS Nov 26 23:36:43 any ideas? Nov 26 23:40:21 I tried TextView ToS = (TextView) getActivity().findViewById(R.id.ToS); Nov 26 23:40:21 ToS.setMovementMethod(LinkMovementMethod.getInstance()); and it crashes Nov 26 23:41:06 how does it crash? Nov 26 23:41:27 npe? ;) Nov 26 23:42:16 http://pastebin.com/edqbBydZ Nov 26 23:42:34 when I start the fragment this link is on Nov 26 23:42:39 it crashes Nov 26 23:45:21 Rob, AboutFragment line 20 Nov 26 23:45:34 what I dont get is there are 10000 links on google asking the same thing and their solutions work, but mine wont no matter the method Nov 26 23:45:35 something there is null Nov 26 23:45:50 can you paste your code? Nov 26 23:46:11 ToS.setMovementMethod(LinkMovementMethod.getInstance()); Nov 26 23:46:32 no I mean the whole thing Nov 26 23:46:40 in pastebin Nov 26 23:46:54 ToS or LinkMovementMethod is null Nov 26 23:47:03 is getInstance() returning null? Nov 26 23:47:12 if not then ToS is null somehow Nov 26 23:47:24 getActivity() also might be null if the fragment is not attached Nov 26 23:47:28 ^ Nov 26 23:47:38 http://pastebin.com/mFqbxCUa Nov 26 23:47:47 which would lead to a NPE on ToS Nov 26 23:48:02 if I remove all the link part I just added the fragment works perfect Nov 26 23:48:04 oh heh, the picture is complete Nov 26 23:48:26 put this in your code after line 13 Nov 26 23:49:24 Log.d(“Activity”,getActivity()); Log.d(“Instance”,LinkMovementMethod.getInstance()); Nov 26 23:49:40 then run it and check your logcat Nov 26 23:50:02 better yet set a breakpoint and debug it Nov 26 23:50:03 I have to change the activity and instance part correct? Nov 26 23:50:15 You could do that too Nov 26 23:50:25 and no resolved symbol for Log Nov 26 23:50:35 does `R.id.ToS` belong to `R.layout.about_fragment`? Nov 26 23:50:43 import android.util.Log; Nov 26 23:50:51 not sure why you need to call `getActivity` there... Nov 26 23:51:04 because its in a fragment Nov 26 23:51:14 http://stackoverflow.com/questions/24881384/getactivity-is-null-inside-alertdialog-of-a-fragment Nov 26 23:51:29 Rob implement that answer in your code to make sure getActivity() doesn’t return null Nov 26 23:51:33 yes, I know it is a fragment, read my previous question :) Nov 26 23:52:12 this is just frustrating me to the point I just need to find another method Nov 26 23:52:23 You’re super close lol, don’t give up Nov 26 23:52:25 seems to bee 1,000 ways to do this.. one of them has to work Nov 26 23:52:27 yeah, getActivity() can be null at the time onCreateView is being executed Nov 26 23:52:31 ^ Nov 26 23:52:42 I just want a link to open a URL lol Nov 26 23:52:47 which would cause your answer Nov 26 23:52:49 err problem Nov 26 23:53:26 if `R.layout.about_fragment` contains `R.id.ToS`, you can first inflate the layout and then get the view Nov 26 23:53:35 no need for getActivity then Nov 26 23:53:59 but I have no idea on how you're structuring your layouts, so I leave it up to you Nov 26 23:54:05 how do I do that? Nov 26 23:54:36 rob you can try this: http://pastebin.com/4abCLRiV Nov 26 23:54:40 or… sec Nov 26 23:55:15 View view = inflater.inflate(R.layout.about_fragment, container, false); Nov 26 23:55:15 TextView myTextView = view.findViewById(R.id.ToS); Nov 26 23:55:35 http://pastebin.com/VzTSVtfu Nov 26 23:55:48 exactly Nov 26 23:55:53 this one contains whitekamenrider’s example Nov 26 23:56:13 other one will stop your Activity from being null if you ever need getActivity() again Nov 26 23:56:16 huh, so, for an sqlitedatabase, can I have multiple cursors open concurrently? Nov 26 23:56:19 It’s probably a good Idea just to include it Nov 26 23:56:32 but, instead of calling getActivity, just do inflated.findViewById Nov 26 23:56:33 I think so, because the Cursors are not attached to the DB Nov 26 23:56:43 oh yeah sorry Nov 26 23:56:45 your example will still crash :) Nov 26 23:56:46 forgot to take that out Nov 26 23:57:04 http://pastebin.com/B54i07g4 Nov 26 23:57:31 cant use findviewbyid Nov 26 23:57:49 ah yeah you need a context then Nov 26 23:57:56 (weirdly) Nov 26 23:57:58 no Nov 26 23:57:59 http://pastebin.com/b2tvgQtE Nov 26 23:58:31 there we go Nov 26 23:58:34 nice one StringRay_ Nov 26 23:58:57 I think I like the diff tool on pastebin Nov 26 23:59:15 there we go, thanks so much everyone Nov 26 23:59:31 so I needed to use that view inflated line with it Nov 26 23:59:35 thats what was throwing it off Nov 26 23:59:41 yaaaaay! Nov 26 23:59:49 you guys rock haha Nov 26 23:59:56 <-- still an andy newb Nov 27 00:00:02 it’s because the layout about_fragment contains the TextView you need Nov 27 00:01:00 so by inflating it you can use the findViewById Nov 27 00:01:46 pfn of course you can Nov 27 00:01:56 StingRay_ did you see that CM theme designer ? Nov 27 00:02:03 g00s, ok Nov 27 00:02:21 I could code a PagerTabStrp ListView but couldnt get a simple inflater to work Nov 27 00:02:31 * Rob_TheRetroGuy needs a good android 101 book lol Nov 27 00:02:39 yeah because now your code knows where to look for it. You had to tell it to look in that layout by inflated.findViewById(...) Nov 27 00:03:03 Are you familliar with programming already, Rob? Nov 27 00:03:40 also, @Rob_TheRetroGuy make sure that `LinkMovementMethod.getInstance()` can't ever return null, otherwise you will see another NPE at some point Nov 27 00:03:53 if it does, it is better to add a check Nov 27 00:04:03 * tricknology always adds checks Nov 27 00:04:06 and elses Nov 27 00:04:20 even if it’s “else return null;" Nov 27 00:04:38 its kinda weird , that fresh AS install wizard installs build-tools 21.0.2 not 21.1.1 Nov 27 00:05:17 Rob_TheRetroGuy: http://nimooli.com/blog/best-android-books-2014/ Nov 27 00:05:45 #1 is good if you’re new to coding, #2 if you want something a lot more in depth Nov 27 00:06:08 #2 has lots of examples on GitHub Nov 27 00:06:23 If I use a pure-black background, do Amoled users save battery? Nov 27 00:06:41 AMOLED* Nov 27 00:07:00 I would think so.. because physics Nov 27 00:07:08 TacticalJoke i think its white for normal apps, black for entertainment Nov 27 00:07:18 http://www.greenbot.com/article/2834583/how-much-power-does-a-black-interface-really-save-on-amoled-displays.html Nov 27 00:07:41 pixels are made of RGB. white is all RGB Nov 27 00:08:14 According to that link, TacticalJoke, black beans pixels off Nov 27 00:08:18 means* Nov 27 00:08:35 Cool. Nov 27 00:08:45 I wonder how many apps use a pure-black background. Nov 27 00:08:49 Hi, I have a GridView filled with ImageButtons. Is there a way to use a Contextual Action Bar and enable the user to "select" some of these buttons? Nov 27 00:08:51 I'm thinking of using it for at least one theme. Nov 27 00:09:02 And not just as an AMOLED thing -- as a normal thing. Nov 27 00:09:19 not a bad idea Nov 27 00:09:28 I suck at art, though. Nov 27 00:09:31 the whold thing with non-amoled displays though is that there is a backlight Nov 27 00:09:39 That's part of it. Black is simpler than other stuff, I guess. Nov 27 00:09:43 Yeah. Nov 27 00:09:44 TacticalJoke: fwiw the app I work on does, specifically for AMOLED phones (and because zomg, EVERYONE wants dark themes, it seems) Nov 27 00:10:02 I like dark themes for a Reddit client and for programming. Nov 27 00:10:04 Not sure why. Nov 27 00:10:09 It just feels easy to look at, or something. Nov 27 00:10:17 I use rainbowdrops or whatever Nov 27 00:10:22 it’s amazing Nov 27 00:10:22 definitely nicer when phone-ing in the dark. Nov 27 00:10:29 I can’t look at a white IDE anymore Nov 27 00:10:30 Ya. Nov 27 00:10:39 tricknology: Same here. Looks so ugly. Nov 27 00:10:41 rainbowdrops? Nov 27 00:10:45 darker is hard to read in sun Nov 27 00:11:01 http://eclipsecolorthemes.org/?view=theme&id=24587 Nov 27 00:11:09 rainbowdrope^ Nov 27 00:11:12 I wish phone screens were less reflective. Nov 27 00:11:15 for eclipse Nov 27 00:11:23 If they were then their transmittence wouldn’t be as good :( Nov 27 00:11:26 give/take Nov 27 00:11:31 tricknology: ah. that's a pretty nice one... Nov 27 00:11:35 I use this colour theme: http://eclipsecolorthemes.org/?view=theme&id=118 Nov 27 00:11:43 TacticalJoke: I wish my laptop had an e-ink screen option :( Nov 27 00:11:52 Nice, probably easier on the eyes all solarized Nov 27 00:11:56 It looks better IRL than in those screenshots. Nov 27 00:12:37 I've not used e-ink screens much, but I like the concept. Nov 27 00:12:44 E-ink? Nov 27 00:12:53 Screens that look like paper and ink, I think. Nov 27 00:12:54 aaaaah Nov 27 00:12:56 kindle thing Nov 27 00:12:58 yep Nov 27 00:12:59 magnets Nov 27 00:13:01 how do they work? Nov 27 00:13:03 fantabulous in sunlight Nov 27 00:13:11 Miracles. Nov 27 00:13:22 http://www.engadget.com/2014/11/26/sony-is-making-new-things/ Nov 27 00:13:23 sweet Nov 27 00:13:37 Wow. Nov 27 00:13:38 That looks neat. Nov 27 00:16:00 g00s no had not seen it, I'm angry my mac pro cant do handoff thing with BLEv4... I wanted to make calls from it...now gotta find updated card or usb Nov 27 00:16:45 If I wanna develop a colour palette for my app, is there some tool that can help? Nov 27 00:16:51 Something that helps me to see which colours work together. Nov 27 00:16:55 yes Nov 27 00:17:14 https://color.adobe.com/ Nov 27 00:17:21 or many apps depending on what you want Nov 27 00:17:33 dont forget there are many types of pallets and relationships too Nov 27 00:17:35 Cool. Thanks. Nov 27 00:17:43 not just complementary Nov 27 00:17:43 now to figure out how to add a gallery to my app using pre-defined images. Basically a thumbnail the user taps and it opens a larger image possibly with the ability to add description to it Nov 27 00:17:50 I wanna make something black and, I think, blue. I hope it's not gonna be too hard. Nov 27 00:18:05 Maybe some white text and grey text. Nov 27 00:18:12 Ha.. so we whitelabel the app that I work on at work.. There is a company who changed their password and has not given us the new one Nov 27 00:18:17 So they’re like 4 updates behind now.. Nov 27 00:18:21 Wow, this tool looks great. Nov 27 00:18:36 anyone know where I can find android jobs? I live in a third-world country, so it would be remote, or relocation help… (since not many jobs about android exist on my country it seems) Nov 27 00:18:57 hm, chrome 39 for mac is 64 bit now Nov 27 00:18:59 TacticalJoke there are apps you can use too Nov 27 00:19:30 speeder, one of the biggest problems is relocation assistance since they require visas. A lot of companies are unwilling to go that far. Nov 27 00:19:36 that mean I can have 96GB of webpages open and in mem :) Nov 27 00:19:37 Maybe look to see if there is any outsourcing? Nov 27 00:19:45 (insourcing in your case) Nov 27 00:20:03 tricknology: I am from Brazil unfortunately (ie: not China or India) Nov 27 00:20:16 StingRay_ can you even for 96GB in a computer these days? Nov 27 00:20:18 fit* Nov 27 00:20:25 Brazil has to have some options, speeder Nov 27 00:20:34 128gb here Nov 27 00:20:37 mac pro Nov 27 00:20:46 How many sticks of RAM? Nov 27 00:20:51 jesus.. Nov 27 00:20:53 well no I dont have that, currently I have 32, soon 96 Nov 27 00:20:57 tricknology: I am sending resume for months already, people don’t even invite me to interview, and I do have experience (first mobile job was in 2009) Nov 27 00:21:17 You better have a SSD StingRay_ Nov 27 00:21:20 96 is the practical limit for BSD though Nov 27 00:21:37 I have PCI-E SSD + mSATA + fibre Nov 27 00:21:39 so ya Nov 27 00:21:53 also our economy is failing (expected GDP growth this year of 0.3% and expected inflation this year of 6.6%) Nov 27 00:22:06 400+mb/sec :) Nov 27 00:22:19 speeder, which economy? Nov 27 00:22:31 Agamemnus: Brazil Nov 27 00:22:40 I will hire you, but I can only pay you 1 cent an hour. Nov 27 00:22:48 ¬¬ Nov 27 00:23:39 speeder, do you know any iOS stuff? Nov 27 00:23:52 Agamemnus: yes... Nov 27 00:24:01 I make games for both iOS and Android Nov 27 00:24:05 Is there some sort of tool that facilitates android game dev? Nov 27 00:24:12 For 2d games. Nov 27 00:24:14 speeder, do you have a portfolio? Nov 27 00:24:15 (right now using Lua though… company did not wanted to develop native twice) Nov 27 00:24:29 Unreal Engine ports to android as does Unity I believe Nov 27 00:24:38 Agamemnus: www.kidoteca.com is my most recent stuff Nov 27 00:24:41 A portfolio should help. In theory. Nov 27 00:24:44 you can make a 2d game in the engine and create an android game with it Nov 27 00:24:59 ok.. Nov 27 00:25:14 phao I used to make 2D games, I used Corona SDK and Gideros SDK Nov 27 00:25:18 Nice speeder.. Nov 27 00:25:23 ok. Nov 27 00:25:23 haha did you make those on contract or by yourself? Nov 27 00:25:46 Agamemnus: I am co-owner of Kidoteca, but we ran out of money Nov 27 00:26:02 I also tried moai SDK (too confusing to compile) and Marmalade (horribly broken and the company staff is frequently infighting instead of helping the costumer, also expensive) Nov 27 00:26:04 I see a few obvious things here Nov 27 00:26:15 i take it it is not profitable? Nov 27 00:26:23 the games you made Nov 27 00:26:27 speeder, what did you use to port them for both android and iOS? Nov 27 00:26:30 I see a few obvious problems Nov 27 00:26:39 Agamemnus: nope, we underestimated the importance of having media connections Nov 27 00:27:00 Rob_TheRetroGuy Corona SDK and Gideros SDK Nov 27 00:27:07 You have 14K likes! Nov 27 00:27:09 the artwork reminds me of neopets Nov 27 00:27:10 both use Lua (awesome language) Nov 27 00:27:11 StingRay_: This is what I'm working on: http://i.imgur.com/qJ1qi61.png Not great to look at right now, but just getting started. Nov 27 00:27:20 Do you think that's a good general base? Nov 27 00:27:26 Or should I go completely in another direction. Nov 27 00:27:43 Agamemnus: our competitors that are profitable, even with lower quality products, had personal connections to important journalists or connections inside apple and google Nov 27 00:27:57 Oh boy Nov 27 00:28:01 There'll be thumbnails later. And images next to the comment count on the right. Nov 27 00:28:04 I have to say Nov 27 00:28:15 everyone else (even people with quality that is really, really good) just fail Nov 27 00:28:17 I don't know everything but that doesn't sound like a reason Nov 27 00:28:44 No offense but I see this paranoid attitude from Brazillians all the time.. Nov 27 00:29:10 Agamemnus: kids games are not something that lots of parents seek out of boredom or personal need. most of our sales came from very specific searches. Nov 27 00:29:13 Did you put your submit your game as an education app on Google Play? Nov 27 00:29:30 New RedditIsFun? Nov 27 00:29:35 most of our proftiable competitor sales came from media talking about them a lot, and showing very high on the downloads rankings Nov 27 00:29:39 is tehre an API for Reddit? Nov 27 00:29:44 Does reddit is fun look like that? I've not used it in ages. Nov 27 00:29:44 Agamemnus: we tried MANY categories Nov 27 00:29:49 Yeah, it has an API. Nov 27 00:29:56 Agamemnus: also Google Brazil requested Google US to put our stuff as featured, but that never happened Nov 27 00:30:00 No, I mean you can specifically submit it as an educational app. Nov 27 00:30:00 https://github.com/reddit/reddit/wiki/JSON Nov 27 00:30:05 It looks similar.. Nov 27 00:30:10 Okay. Nov 27 00:30:12 Agamemnus: we tried that Nov 27 00:30:20 I've tried to avoid using other Reddit clients because I don't wanna be too influenced. Nov 27 00:30:21 Agamemnus: also on iOS we submitted as specific kids app too after they put that Nov 27 00:30:29 Though it's probably worth looking at some point. Nov 27 00:30:33 don’ t changed our numbers, at all Nov 27 00:30:37 for the better or worse Nov 27 00:30:55 Let me ask you Nov 27 00:31:01 It's kinda ugly-ish right now. Nov 27 00:31:02 I think yours has the potential to look nicer though Nov 27 00:31:08 thank RIF Nov 27 00:31:11 rhan* Nov 27 00:31:14 than** Nov 27 00:31:14 how do you make money Nov 27 00:31:17 lol Nov 27 00:31:21 Okay. Nov 27 00:31:21 no ads, no in-app purchases Nov 27 00:31:31 How do you make money if it's free? Nov 27 00:31:35 https://play.google.com/store/apps/details?id=com.kidoteca.xmasglobe Nov 27 00:32:01 Agamemnus: that one was made in one week, just for xmas promo Nov 27 00:32:14 you have a lot of installs Nov 27 00:32:15 I’m guessing you don' Nov 27 00:32:15 the others use a “demo/full” scheme, with the demo being labelled free Nov 27 00:32:19 t do the graphic design lol Nov 27 00:32:22 guess what Nov 27 00:32:27 you need to get with the program Nov 27 00:32:40 * tricknology grabs popcorn Nov 27 00:32:41 How do you mean? lol Nov 27 00:32:42 paid games/apps are <2% of sales on Google Play Nov 27 00:32:55 speeder even Rovio is laying people off. Games on mobile is very hard. you might get lucky, once or twice, but repeating that is almost impossible it seems Nov 27 00:32:58 You should just add ads. Nov 27 00:33:05 Ads are yucky. Nov 27 00:33:07 Agamemnus: I know, most of our sales come from android sidechannel installs and Apple Store Nov 27 00:33:17 nobody cares if ads are yucky, they pay the bills. Or don't. Nov 27 00:33:23 Agamemnus: ads in games for 3 year olds :/ Nov 27 00:33:27 lolol Nov 27 00:33:27 yes, damnit. Nov 27 00:33:39 make them accidentally click it Nov 27 00:33:42 most of your ads are going to be accidental clicks Nov 27 00:33:43 I keep getting an ad about sex education in MX Player. Nov 27 00:33:46 you don't NEED to make them Nov 27 00:33:50 (do you still get paid for click-throughs?) Nov 27 00:33:51 they will just click anyway Nov 27 00:33:55 hey guys, sorry I disconnected earlier and didn't see any potential answers. Nov 27 00:34:00 I don't want people to see the word 'sex' on my phone as I'm using it. Nov 27 00:34:05 fancyfetus, whats the prob? Nov 27 00:34:11 fancyfetus: Use a ListView. Nov 27 00:34:12 lol Tactical, sounds like a personal problem Nov 27 00:34:14 Agamemnus: the company investors won’t do that sort of unethical stuff Nov 27 00:34:18 speeder: you should add ads. Nov 27 00:34:20 What else do you use your phone for? o.O Nov 27 00:34:22 Ads are not unethical. Nov 27 00:34:23 lol Nov 27 00:34:24 and so, this is why I am looking for a job Nov 27 00:34:26 Wait what investors? Nov 27 00:34:29 I thought you owned 50% Nov 27 00:34:32 Agamemnus: ads for 3 year olds are not unethical? Nov 27 00:34:36 I use my phone for browsing Reddit and listening to music, mostly. Nov 27 00:34:36 nope Nov 27 00:34:37 How can I go about making a "suggestions" thing while searching. I want to see results starting with what I've already typed into the field. Nov 27 00:34:43 cuz.. aren’t ads customized based on your browsing history? Nov 27 00:34:44 "mostly" Nov 27 00:34:45 fancyfetus: ListView. Nov 27 00:34:52 I doubt these ads are. Nov 27 00:34:52 I’m just playin with you Nov 27 00:34:53 Agamemnus: you realize that 3 year olds cannot separate what is an ad from reality, right? Nov 27 00:34:53 searchview Nov 27 00:34:54 TacticalJoke, I think the main problem is dynamically updating it Nov 27 00:34:55 I don't google "sex education". Nov 27 00:35:02 fancyfetus: What's the problem with that? Nov 27 00:35:08 speeder: s/33 year olds Nov 27 00:35:20 fancyfetus not a listView a autoCompleteTextView Nov 27 00:35:25 Agamemnus: example: if someone put up a ad that says you can buy a cape and jump from your window to fly, a 3 year old will do exactly that Nov 27 00:35:32 if you want suggestions in the box Nov 27 00:35:35 Whoa, didn't know that existed. Nov 27 00:35:45 pfn did you get anywhere with luaj ? Nov 27 00:35:50 StingRay_: Did you see my screenshot? Nov 27 00:35:55 no Nov 27 00:35:55 I basically wanted you to tell me how to design. Nov 27 00:35:58 StingRay_: Nov 27 00:36:00 speeder: ok Nov 27 00:36:02 http://i.imgur.com/qJ1qi61.png Nov 27 00:36:04 g00s, not working on it yet Nov 27 00:36:07 is it unethical to be poor? I think it is Nov 27 00:36:09 This is the very first draft. It doesn't look great. Nov 27 00:36:17 I don't know what to do, though. Nov 27 00:36:23 Other than randomly try various colours and so on. Nov 27 00:36:34 I;ll look into it :) Nov 27 00:36:45 Heres some screens of the app I'm working on. Not all the screens but a couple: http://imgur.com/a/PiTsn Nov 27 00:36:47 TacticalJoke do something that google dont, design for purpose Nov 27 00:36:48 Heyo, that's reddit! Nov 27 00:36:52 speeder, anyway. Nov 27 00:37:14 TacticalJoke so design is all about answering questions, thats it basically, you need to figure out the questions 1st Nov 27 00:37:17 there is a potential project my friends' clients have Nov 27 00:37:22 Mhmm. Nov 27 00:37:29 Yeah, I have a good picture of the use of this app. Nov 27 00:37:36 Though I don't know which colours to put together and stuff. Nov 27 00:37:40 speeder, do you speak Spanish or just Portugese? Just wondering Nov 27 00:37:50 Portuguese Nov 27 00:38:02 Also Nov 27 00:38:05 who did the art? Nov 27 00:38:20 That's a Tesco Hudl 2 screenshot, BTW. :D Nov 27 00:38:24 not you I assume Nov 27 00:38:48 StingRay_: Can I do blue and black together? Red and black seems easy, but blue and black seems kinda delicate. Nov 27 00:38:57 TacticalJoke holy shit, thats a big spinner :) Nov 27 00:38:59 speeder, mind if I PM you? Nov 27 00:39:10 nope :) Nov 27 00:39:13 you can PM me Nov 27 00:39:13 Yeah, I added a really-long subreddit name for testing. lol Nov 27 00:39:16 Made it wide. Nov 27 00:39:28 I also don't know whether to go with a spinner. Nov 27 00:39:40 Agamemnus: oh, and I did only the coding, the artist was another of the company founders, plus lots of interns Nov 27 00:39:43 interns Nov 27 00:40:37 TacticalJoke maybe put the subreddits in a navdrawer Nov 27 00:41:01 Yeah, I might end up doing that. Nov 27 00:41:07 I like that Google has allowed you to give others access to your developer console.. updating 7 apps at a time is now a little easier Nov 27 00:41:09 Though, to be honest, I'm not a huge fan of nav drawers. Hmm. Nov 27 00:41:11 i guess the nav is quite similar to Youtube Nov 27 00:41:19 True. They have subscriptions in there. Nov 27 00:41:23 maybe at least favorite subreddits go to nav drawer Nov 27 00:42:08 I guess nav drawers are the rage these days. Nov 27 00:42:23 The spinner does look kinda weird. Especially with long subreddit names. Nov 27 00:42:25 i find doing their impl is pretty clunky Nov 27 00:43:00 never do something that is either "the rage" "google said so" or "everyone is doing it" TacticalJoke it needs to have a reason Nov 27 00:43:04 :) Nov 27 00:43:26 K. lol Nov 27 00:44:01 Is there anything other than a spinner and a nav drawer? Nov 27 00:44:06 Without leaving the current activity. Nov 27 00:45:04 I have such a hard time understanding android problems... Nov 27 00:45:16 welcome to the club Nov 27 00:45:28 this is actually a support group for people who have a hard time understanding android problems Nov 27 00:45:31 "error: No resource identifier found for attribute 'showAsAction' in package 'com.ermanager.activities'" Nov 27 00:45:36 I got 99 problems and Android is definitely one. Nov 27 00:45:40 Or 99. Nov 27 00:45:41 R.id.whatever Nov 27 00:45:46 that is a resource id Nov 27 00:46:05 I do see this as a support group. Nov 27 00:46:14 http://stackoverflow.com/questions/5819369/error-no-resource-identifier-found-for-attribute-adsize-in-package-com-googl Nov 27 00:46:15 I have android-security-v7-appcompat.jar is imported Nov 27 00:46:20 fancyfatus^ Nov 27 00:46:38 is your R. not resolving? Nov 27 00:47:14 fancyfetus make sure its the right namespace, app:showAsAction or foo:showAsAction Nov 27 00:47:26 and make sure you use MenuItemCompat Nov 27 00:47:27 Oh, the mother fucker.... Nov 27 00:47:30 I just found it. Nov 27 00:47:35 HAHAHA Nov 27 00:47:38 Man I'm supposed to be doing back end stuff. Nov 27 00:47:45 But my partner is incompetent. Nov 27 00:47:47 I love it when that happens Nov 27 00:47:50 so now I'm doing front end too Nov 27 00:47:52 8< Nov 27 00:48:01 better than incontinent Nov 27 00:48:31 lmao Nov 27 00:48:48 tools:context= had some random path Nov 27 00:49:47 LOL this tab 10 has been in my drawer for a week and the battery is still good Nov 27 00:50:45 Happy Thanksgiving everyone, I’m otu Nov 27 00:50:55 Is it hard to do runtime themes? Nov 27 00:51:02 I mean letting the user pick a theme at runtime. Nov 27 00:51:30 define hard Nov 27 00:52:33 well, not for me, I dont use styles/xml and do a per view theme pass... so probably not the best person to answer, I needed themes that have size/color/grads/drawables/masks/filters etc Nov 27 00:52:56 and needed the user to be able to control/create their own Nov 27 00:53:22 Okay. Just wondering whether I can easily dynamically load styles from a styles.xml file. Nov 27 00:54:17 still the same problem. Nov 27 00:55:39 oh my, Amazon is hiring clojure devs Nov 27 00:55:42 tools:context was pointing to some random package. i fixed that so that it's pointing to com.ermanager.activties.MainActivity Nov 27 00:55:57 neat, don't have to rebuild apps to api 21 to get material on lollipop, nice Nov 27 00:57:17 at least that's api 14+ Nov 27 00:57:47 which support package is it? i haven't looked at material yet Nov 27 00:58:48 noo, tricknology left. I can't use his link, I don't have the same xmlns stuff as they do. Nov 27 01:01:00 is there a way to seamlessly "switch" scrolling context for nested scrolling? a perfect example of this is the Phone app on Lollipop. Nov 27 01:04:49 TacticalJoke i think reddit is down Nov 27 01:04:55 now is a good time to test that aspect :) Nov 27 01:05:17 oh too late Nov 27 01:09:34 where is jacob :( Nov 27 01:13:43 * capella Mango *may* not work tomorrow and just stuff turkey in his pie hole Nov 27 01:14:39 heh Nov 27 01:15:02 whats the marketplace lke for $1 app w/o ads ... do u have to put out a free version to lure users in ? Nov 27 01:15:07 :D But will probably immerse into Graph excercies Nov 27 01:15:13 or can u jsut put out a $1 version and hope that attracts buyers ? Nov 27 01:15:19 *exercises ... Nov 27 01:15:21 no Nov 27 01:15:22 forget it Nov 27 01:15:35 $1 is too much Nov 27 01:15:48 you need a way for users to let other users know about your app Nov 27 01:15:51 incentives Nov 27 01:15:57 and just add interstitial ads Nov 27 01:16:11 not video ads though because they pay less than text ads ._. Nov 27 01:17:21 wow they wont risk $1 for something that looks like it does what they want ? Nov 27 01:17:34 It's hard to get people to download an app even when it's free... Nov 27 01:18:13 are there any sites that have statistics on this kind of thing ? Nov 27 01:18:29 maybe you have this opinion because your apps dont actually do anything useful Nov 27 01:18:36 nobody will pay $1 for flashlight app Nov 27 01:19:29 k0nichiwa best to do IAP Nov 27 01:19:33 I only pay for apps that are on the top paid list and don't look stupid. Nov 27 01:19:38 http://www.appbrain.com/stats/free-and-paid-android-applications Nov 27 01:19:42 and yeah, there is plenty of data scattered around Nov 27 01:20:20 what is iap ...interstial ad p... Nov 27 01:20:26 in app purchase Nov 27 01:20:28 in app purchases Nov 27 01:20:38 yeah, definitely not interstitial :) Nov 27 01:21:13 God damn. Could the emulator stop opening on its own. Nov 27 01:23:40 i mostly buy games Nov 27 01:23:40 i guess u could make it free for 1 week trial and in-app purchase to kee pusing it Nov 27 01:23:41 not apps Nov 27 01:23:44 myself Nov 27 01:23:57 mobile games suck Nov 27 01:24:02 you suck Nov 27 01:24:05 :p Nov 27 01:24:08 You're probably not going to make any money with a paid app Nov 27 01:24:28 i found some really good quality one time fee paid games Nov 27 01:24:46 probably a lot of android users arent even set up to get anythign but free Nov 27 01:24:55 There's Hoplite Nov 27 01:25:00 or does it work like that ? iphone pracitalcyy forces u to provide a credit card Nov 27 01:25:09 no it doesn't work like that Nov 27 01:25:12 it works like ios Nov 27 01:25:38 you must have a CC on file Nov 27 01:25:42 to get anything Nov 27 01:25:52 even free Nov 27 01:27:04 k0nichiwa: statistically speaking iOS users are more likely to buy apps than android apps Nov 27 01:34:58 Hello everyone so I am trying to use AppCompat v7 for android version 21. However I get an error saying "android.support.v7.widget.Toolbar" cannot be instantiated here is a screenshot for the error http://prntscr.com/5ajj82 Nov 27 01:43:33 This ActivityRecognition thing is weird Nov 27 01:43:39 deaded irc Nov 27 01:43:39 why don't they just use broadcast intents?! Nov 27 01:47:39 JakeWharton loved your science article on appcompat and chris banes commits :D Nov 27 01:48:21 git fame ftw Nov 27 01:49:08 yeah those comments were lame Nov 27 01:49:14 felt the need to crush them with data Nov 27 01:57:07 I love this set of animations and transitions: https://d262ilb51hltx0.cloudfront.net/max/800/1*jSCtVcpUQnYNwxck1Pcp1w.gif Nov 27 01:57:31 Has anyone spotted a tutorial or sample to recreate that? Nov 27 02:02:20 The actually implemented transitions and ripples when the floating + icon is pressed in Today calendar app is even more wonderful Nov 27 02:03:10 looks like a circular reveal and translation Nov 27 02:07:06 i'm curious about this scrolling behavior: https://dl.dropboxusercontent.com/u/244748/recording.mp4 ... definately seems like nested scrolling mechanism. What I'd like to know is how the "scrolling context" gets switched from the parent scrollview to the child listview... Nov 27 02:07:38 anybody know of an effective way to implement a CPI calculator into my app? I dont need user input More like "In 1972 it was $xx.xx, Today it would cost $xx.xx" Nov 27 02:08:38 hm, i wonder if i can make a custom rx scheduler that would work like intentservice or goro Nov 27 02:11:56 just wrapping my head around how to even do this is puzzling Nov 27 02:20:08 I have a customizable thing for users to set the size of some view--anyone have recomendation on how to define it? So like, I have smallest (which is based on minimum button size as recomended by android docs) up to the equivalent of "match_parent" which fits the view to the screen width.. So one way is to do like small/medium/large which are hardocded dp values, with a percent modifier (90% - 150% etc) another way is to do it based Nov 27 02:20:08 on % of screen width... Nov 27 02:21:01 Rob that's a sticky divider listview with custom header Nov 27 02:21:30 https://github.com/emilsjolander/StickyListHeaders Nov 27 02:21:51 then you stick a permanent top header, that expands/contracts with animation based on first visible position or something Nov 27 02:22:01 ? Nov 27 02:22:13 what what? Nov 27 02:22:21 list header? for what? Nov 27 02:23:30 oops Nov 27 02:23:34 that was for alexfu Nov 27 02:23:35 sorry ;p Nov 27 02:23:50 I was like, how does that help me at all.. hahah Nov 27 02:24:50 but if you happen to know how to accomplish my task? ... ;) Nov 27 02:26:01 umm number picker? Nov 27 02:26:21 https://code.google.com/p/android-wheel/ Nov 27 02:26:32 https://github.com/derekbrameyer/android-betterpickers Nov 27 02:26:42 your question is a little vague Nov 27 02:26:45 I dont need user input, I just need it to give the value for inflation Nov 27 02:27:14 does not compute, or it seems straightforward to me? Nov 27 02:27:23 say something cost $149.99 in 1972 I need it to tell me what the cost today would be using the CPI table http://inflationdata.com/inflation/Consumer_Price_Index/HistoricalCPI.aspx?reloaded=true Nov 27 02:27:33 using the table and formula Nov 27 02:28:04 sure Nov 27 02:28:10 natural log Nov 27 02:28:12 yearly Nov 27 02:28:20 or monthly Nov 27 02:28:23 blahblah numbers Nov 27 02:28:28 id probably have to use a DB or something Nov 27 02:30:09 basically what http://data.bls.gov/cgi-bin/cpicalc.pl this does, but minus user input Nov 27 02:36:17 http://www.commitstrip.com/wp-content/uploads/2014/11/Strip-Side-project-650-finalenglish.jpg Nov 27 02:36:21 always.. Nov 27 02:36:52 dead Nov 27 02:39:16 gordon_ everybody knows the last 10% work takes 90% of the time :) Nov 27 02:40:25 i give up for now.. need food for thought Nov 27 02:47:50 g00s: true ;) Nov 27 02:56:22 alexfu: API 21 introduced nested scrolling **** ENDING LOGGING AT Thu Nov 27 02:59:59 2014