**** BEGIN LOGGING AT Sun Jan 26 02:59:59 2014 Jan 26 03:37:45 Jesus, finally!! There was nothing wrong with the C++ code, it was a bug in Eclipse/CDT flagging includes as missing when the code was compiling fine. Doing a complete clean/rebuild and restarting eclipse and it finally built it ok. So that's a couple of hours lost :) Jan 26 03:40:48 ah, Eclipse and the infamous "Clean" button strikes again Jan 26 03:42:06 I swear I clicked "clean" bout 20 times - it was restarting eclipse that finally did it. Was driving me nuts :) Jan 26 03:42:16 lol Jan 26 03:44:15 intelliJ++ Jan 26 03:46:23 Heh, I think I'll try that for my next project. Just need to get this one finished now - got a week to do 2 week's worth of work (which is why I'm working at 03:46 on a Sunday morning!) Jan 26 04:24:51 quick question Jan 26 04:25:08 for mNewValues.put(UserDictionary.Words.APP_ID, "example.user"); Jan 26 04:25:25 if i add words to the userdictionary how do I know what my app id is? Jan 26 04:25:36 getpackagename seems to be incorrect Jan 26 05:25:06 anybody have experience with the userdictionary content provider? Jan 26 05:25:17 i've insterted words with an app_id Jan 26 05:25:36 but if i try to delete them with the same app id, it never finds anything to delete Jan 26 05:45:21 it's the uid... Jan 26 05:46:31 Docs.... they're out there ... http://developer.android.com/reference/android/provider/UserDictionary.Words.html Jan 26 05:46:48 http://en.wikipedia.org/wiki/Universally_unique_identifier Jan 26 05:47:47 not uuid Jan 26 05:47:55 uid Jan 26 05:48:34 in every case it was 0 Jan 26 05:48:44 even though if I insert with a contentvalue Jan 26 05:48:54 that has app_id = myPackageName Jan 26 05:49:45 based on the docs, the APP_ID is supposed to identify the app that did the insert Jan 26 05:49:50 because package name is absolutely wrong Jan 26 05:50:20 why is reading the docs so difficult... Jan 26 05:50:31 well i DID read them, but maybe i misunderstood them Jan 26 05:50:40 in the example they use "example.user" Jan 26 05:50:50 http://developer.android.com/guide/topics/providers/content-provider-basics.html#Query Jan 26 05:50:56 *frack* - messed up on my wiki-fu Jan 26 05:50:58 public static final String APP_ID Jan 26 05:51:08 hmm Jan 26 05:51:25 I wonder what that looks like Jan 26 05:51:28 oh is see public static final String APP_ID Jan 26 05:51:28 Added in API level 3 Jan 26 05:51:29 The uid of the application that inserted the word. Jan 26 05:51:29 TYPE: INTEGER Jan 26 05:51:44 so it's an int, not a string Jan 26 05:51:50 right, why so hard to read... Jan 26 05:51:54 (confusing) Jan 26 05:52:08 esp b/c in the example they use a string app_id Jan 26 05:52:40 examples are just that Jan 26 05:52:45 never canonical Jan 26 05:53:04 file a docs bug for that example Jan 26 05:53:25 so the correct behavior is: Jan 26 05:53:45 app_id should be a integer uniquely identifiying the app that added the row Jan 26 05:54:41 uid Jan 26 05:54:51 not an arbitrary int Jan 26 05:55:25 ok, i'll try with an int and we'll see what happens Jan 26 05:55:32 thanks for the help thus far, pfn Jan 26 05:55:47 public static final String APP_ID = "appid"; Jan 26 05:55:49 string, Int part is wrong Jan 26 05:56:02 not any int Jan 26 05:56:12 this int http://developer.android.com/reference/android/os/Process.html#myUid() Jan 26 05:56:46 oh i see. i was just going to generate a UUID Jan 26 06:03:44 a uuid is too big for an int Jan 26 06:04:31 but not too big for an integer value in sql Jan 26 06:06:23 so use a long instead of an int Jan 26 06:17:01 is there a way to notice the user that he can slide the viewpager? Jan 26 06:17:58 Have you seen the Galaxy Nexus lock screen? Jan 26 06:18:55 It shows sort of square brackets ( [ and ] ) at each side of the screen when the screen is shown, which fades out Jan 26 06:19:21 which android version? Jan 26 06:19:31 4.2.1 I think Jan 26 06:20:45 well, i have nexus 4, but I don't remember this animation Jan 26 06:23:30 Yeah, it's not on the N5 either, but I vividly remember it on the GN =) Either way, I found it a nice way to indicate swiping, some simple, very visible, graphic on the side that fades out Jan 26 06:25:35 hello I have a Mainclass that has a class inside which contains a number I want to store. how can I go about doing that? Jan 26 06:25:48 that number I want to use outside of that class but inside the Mainclass Jan 26 06:25:56 I'll tell you why I need it. I have 2 fragment in tabs navigation that could be 1 fragment if the device screen is bigger then 4 inch (it a waste of tab in 4 inch+). Jan 26 06:27:03 there is also third tab. so there are 2 tabs in 4 inch+. the problem it that the tab length it to demn long (first tab: Short URL, second tab: Upload image >> Short Url and Upload image) Jan 26 06:35:00 I ahve swipes and tabs and one button that I want to change functionality for each tab. how can I do that? Jan 26 06:40:55 haha got it! Jan 26 07:11:02 ugh, stupid AS clobbered my manifest when I created an activity Jan 26 07:11:31 and gave it the wrong name its considerably more difficult to swipe when you have peanut butter on your fingers Jan 26 07:34:50 is it chunky? Jan 26 07:35:00 in fact, it is Jan 26 07:35:18 :-). . . . Jan 26 07:35:58 * g00s is embarrassed to mention, he's reading a book on android fragments Jan 26 07:36:10 a fing book on fragments! Jan 26 07:36:36 easy stuff, just can't figure out how to make something out of a pile of fragments though. still. Jan 26 07:36:38 * g00s sucks Jan 26 07:38:48 oh wtf, AS created a whole directory structure in the wrong place Jan 26 07:39:03 all i did was 'create android activity' Jan 26 07:39:16 Is there bourbon in the peanut butter?? Jan 26 07:40:00 no, bacon would be good Jan 26 07:40:34 mmmm .... bacon ............ Jan 26 07:43:17 the problem with gradle, google, AS … gradle is so flexible, its integration into intellij has to be difficult to test Jan 26 07:44:10 my project was pretty basic , but simply making an activity resulted in a whole new src/ tree in the wrong spot Jan 26 07:44:26 this is the template feature Jan 26 07:44:57 ah ... new project from scratch? Jan 26 07:45:12 no thats what i'm saying Jan 26 07:45:20 i had an existing project ... Jan 26 07:45:29 and then said "New -> Android Activity" Jan 26 07:45:44 from there, selected "Settings Activity" Jan 26 07:45:50 and all fuck broke loose Jan 26 07:46:11 new directories were made, new manifest Jan 26 07:46:27 hundreds of compiler errors, bad package names starting with ............. Jan 26 07:47:04 capella kjeldahl is right, its best to use emacs, vim, or ST Jan 26 07:47:17 i'm just trying to get the courage up to use emacs + java Jan 26 07:48:30 I use intelliJ for development of my small personal apps, for large stuff like mozilla projects I use the ST Jan 26 07:48:59 though we can load into AS Jan 26 07:51:00 If I have a string that contains html tags in it and I want to reflect those in a view. Is the best way to do that to insert it into a webview? Jan 26 07:51:36 for simple html, use Html.fromHtml Jan 26 07:51:43 webview is pretty heavy ... Jan 26 07:51:57 yeah, bold, italic work Jan 26 07:52:33 What would be the limitations of .fromHtml? Jan 26 07:52:59 nvm, dumb question.. ill check the docs Jan 26 07:53:42 * pfn shrugs, 100% happy with intellij Jan 26 07:54:02 I rarely use vim for Android now Jan 26 07:54:20 only for browsing aosp source Jan 26 07:54:54 i like ST for browsing source, with its little file explorer panel Jan 26 07:55:03 although, vim ctrl-p works nice too Jan 26 07:55:27 no idea what that is, I just :e dir Jan 26 07:55:38 netrw has tree mode with preview recently Jan 26 07:55:39 "file explorer" ? The sliding view on the right? Jan 26 07:55:50 wutever that is :) Jan 26 07:56:01 I don't use it or something Jan 26 07:56:13 I use very few vim features Jan 26 07:56:24 That things nice, but it always makes my code look like theres 5 times more of it than there is Jan 26 07:56:47 netrw is pretty buggy; ol dr chip :) Jan 26 07:56:50 * pfn uses primarily old school vi features only Jan 26 07:57:28 i think :e is netrw Jan 26 07:57:31 yeah Jan 26 07:57:46 ideavim is one of the reasons I'm 100% happy with intellij Jan 26 07:57:57 anyone know why I'm getting this? java.lang.ClassCastException: android.widget.ImageView cast to android.widget.button Jan 26 07:58:10 that and the sbt and scala plug-ins Jan 26 07:58:12 Worked before now its giving me this. Jan 26 07:58:23 Let me know if you need to see the code. Jan 26 07:58:23 because you're casting wrong Jan 26 07:59:28 here is my casting code : Jan 26 08:00:07 / Instantiate the preview button to button. Button button = ((Button rootView.findViewById(R.id.Preview)); Jan 26 08:00:44 next // Instantiate the imageview1 to image ImageView image = ((ImageView) rootView.findViewById(R.id.imageView1)); Jan 26 08:00:55 (Button)rootview.findViewById(...) Jan 26 08:01:28 you have ( … ) around everything Jan 26 08:02:11 ok I took those extra parens out it still isn't working Jan 26 08:02:29 next mistake? Jan 26 08:02:46 Preview isn't a button... Jan 26 08:02:54 I named it that way Jan 26 08:02:56 What's the error? Jan 26 08:02:57 ClassCastException? So that should be pretty obvious. Jan 26 08:03:08 yes, it is obvious Jan 26 08:03:14 Preview isn't a button Jan 26 08:03:29 The thing you've found is not a button. Double-check your layout. Jan 26 08:03:50 sometimes R gets fucked up too, maybe clean Jan 26 08:04:03 happened a lot with eclipse / adt Jan 26 08:04:04 End o' story. Jan 26 08:04:35 That can happen too. Jan 26 08:04:39 I'm black Jan 26 08:04:58 you're purple to me Jan 26 08:05:17 And I just remembered I need to play with Kotlin some time. Jan 26 08:05:17 pfn is purple to me too, Nilium is red. Jan 26 08:05:35 I don't know my own color Jan 26 08:05:43 I should be purple. Jan 26 08:05:43 Freesia was purple, therefore I should be purple. Jan 26 08:05:57 you're red to me Jan 26 08:06:05 where's an environment that R doesn't fuck up like this g00s Jan 26 08:06:15 This is like that eye color on an island test except with random colors for everyone. Jan 26 08:06:22 skinkitten_ well, first make sure its not eclipse :) Jan 26 08:06:26 got all red when I cleaned it Jan 26 08:06:40 what do you use? Jan 26 08:06:49 Doesn't fuck up when I use sbt and IntelliJ. Jan 26 08:07:00 agree Jan 26 08:07:41 sbt is scala Jan 26 08:08:02 It can also do Java. Jan 26 08:08:10 do you guys remember that bug? in eclipse, if you added something with @+id sometimes the R file indexes were OBO or something, and you would findView on the wrong ID and shit explodes at runtime Jan 26 08:08:28 And I'd guess probably anything else, if you decided to write something for it. Jan 26 08:09:03 Dunno. I never used Eclipse. Jan 26 08:09:03 and cleaning the project would fix it O.o Jan 26 08:09:11 I started Android dev with TextMate and I ended up with IntelliJ/Sublime. Jan 26 08:09:33 I use sbt on a bunch of Java Android projects Jan 26 08:09:37 I've avoided Eclipse since my Windows days of using it for C++ stuff. Jan 26 08:09:39 works flawlessly Jan 26 08:10:07 * capella used eclipse for 4 hours, realized it was pos dumped it for intelliJ Jan 26 08:10:31 "clean" button ... XD Jan 26 08:10:42 And then there are the scary people who use netbeans Jan 26 08:11:10 I don't have buttons. I just have really weird key bindings. Jan 26 08:11:42 I've made logical keybindings Jan 26 08:11:44 ⌘b⌘⇧c for clean, in my case. Jan 26 08:11:53 Which actually does nothing in IntelliJ other than launch an AppleScript that writes "clean" to the terminal window I keep sbt in Jan 26 08:11:59 ^r for run Jan 26 08:12:16 Nilium, you can run it in intellij now... Jan 26 08:12:31 oh yeah, i forgot about Nilium excursion with applescript :| Jan 26 08:12:33 dude updated the plug-in a few months back Jan 26 08:12:50 I _can_ but I got so used to the applescript thing 'cause I could keep it on another screen without accidentally closing the sbt tool window and not being able to see it Jan 26 08:13:23 Plus this way IntelliJ can't take sbt with it on the random occasion I break it Jan 26 08:14:03 Really wish tool windows in IntelliJ didn't close when I press their shortcut key to leave them and return to the editor Jan 26 08:14:52 I wish there was a go to editor keystroke Jan 26 08:14:59 I think Eclipse has almost the correct behavior there, but then Eclipse also has severely broken tool windows Jan 26 08:15:10 There isn't? Jan 26 08:15:38 there isnt Jan 26 08:16:00 otherwise you wouldn't use the toolwindow keystroke to return to editor Jan 26 08:16:25 do you guys use PreferenceActivity or PreferenceFragment ? Jan 26 08:16:38 Yeah, Eclipse still does one thing wrong: if I detach a panel into a separate window then drag the main window, it also moves the panel window. Jan 26 08:16:43 i dont think i have seen any apps that show a pref fragment alongside anything else Jan 26 08:16:51 depends on minsdk Jan 26 08:17:08 afaik preferencefragment is not present in the support libarary? Jan 26 08:17:15 is not Jan 26 08:17:19 no - im minsdk=16 Jan 26 08:17:20 Well, Ascension 2 uses PreferenceFragment since the minSdk is 14 and I use a custom layout for the activity showing preferences Jan 26 08:17:32 ok new question, with live wallpapers is there a way to use an Activity for the settings instead of PreferencesActivity, and have the live wallpaper "preview" restart after the settings activity ends? Jan 26 08:17:45 And so far as I know, PreferenceActivity doesn't really like it when you use custom layouts (in my case, displaying PreferenceFragments in a ViewPager). Jan 26 08:17:53 erdos: Yes, that would be what I do. Jan 26 08:17:54 i'm just calling finish() in my settings activity but the preview is still using the old values Jan 26 08:18:15 you have to tell the preview to update... Jan 26 08:18:17 Does your service listen for changes to the preferences? Jan 26 08:18:38 hmm, no it doesn't Jan 26 08:18:50 Easiest way to handle that is to just make the service a listener for changes to your shared preferences. Jan 26 08:18:51 Just make sure to shut that off if it's not active. Jan 26 08:19:12 excellent thank you :) Jan 26 08:19:56 Now if only my live wallpaper actually sold. Jan 26 08:20:10 hehe what's your live wallpaper? Jan 26 08:20:40 https://play.google.com/store/apps/details?id=net.spifftastic.ascension2 ⇐ That. Jan 26 08:21:03 the price is a bit steep imo Jan 26 08:21:03 It basically fell off the top paid list and never recovered. Jan 26 08:21:28 so I tried to clean it and now the R file isn't recognized Jan 26 08:21:31 oh but you were on the top paid list! that's pretty good, did you get some sales back then? Jan 26 08:21:34 Could lower it, but that wouldn't change anything now. Jan 26 08:21:43 Nilium how easy / hard is ascension on battery life ? Jan 26 08:21:43 do you promote? Jan 26 08:21:54 it looks pretty cool Jan 26 08:22:06 g00s: Fairly light. Jan 26 08:22:06 I was on the top paid list after release, tried promoting, didn't really do much, etc. Jan 26 08:22:11 any ideas? Jan 26 08:22:17 And then some jerk came along, gave it a two-star review 'cause it didn't work on some experimental Chinese ROM, and it plummeted Jan 26 08:22:26 :( Jan 26 08:22:38 So I've mostly decided the project's dead. Jan 26 08:23:17 Tried doing updates for a while to get it back up, but that did nothing, so it's not worth the time I could be spending on other things. Jan 26 08:23:43 Nilium, I suggestion if I may, add a video of it on the device. I see how I could tweak it but I didn't see how it would look Jan 26 08:23:51 * one Jan 26 08:24:21 Have any suggestions for how to do that? Jan 26 08:24:23 on the real screen, with icons Jan 26 08:25:15 once I clicked on you link my first thought was - would it look messy underneath icons? Jan 26 08:25:19 *your Jan 26 08:25:23 Nilium: Well, perhaps your primary market was some experimental Chinese Rom devices... Jan 26 08:25:27 'Cause I've thought of it, but the problem is mostly that I have no good way to actually do a recording of a physical device. Jan 26 08:25:36 If I did anything, it would be an extremely shaky camera. Jan 26 08:25:39 this will be my first app on the store, so i'll be happy with just a few sales Jan 26 08:25:51 Actually the video looks nice. Is it sped up? It looks a little busy for a background. Jan 26 08:26:11 If it says "#x" in the corner, it's sped up. Jan 26 08:26:51 the app looks very neat though. I reckon all you need is to promote it Jan 26 08:27:19 genymotion can do video, doesn't the regular emu also ? Jan 26 08:27:26 you could also make a free version with disabled options Jan 26 08:27:33 oh there is a video :) Jan 26 08:28:08 I'm not doing a free version, so let's not get into that discussion Jan 26 08:28:36 fair enough Jan 26 08:28:55 Version 1 had a free edition, and if it had any effect on sales for the two years or so it was available, it wasn't positive Jan 26 08:29:11 btw, your dev webpage is down Jan 26 08:29:25 Dev webpage? Jan 26 08:29:38 Nilium: looks really configurable. Have you measured the power draw of this? Jan 26 08:29:39 developer's website Jan 26 08:29:52 CaptainFarrell: Works for me. Jan 26 08:30:17 hraf: I ran it through a bunch of profiling stuff back when I was still working on it, but I can't remember any specifics. Jan 26 08:30:21 i get redirected to http://www.spifftastic.net/ and nothing happens Jan 26 08:30:37 i use google chrome Jan 26 08:30:50 I would suggest that is something on your end. Jan 26 08:31:04 That doesn't really say anything about network issues Jan 26 08:31:43 Nilium if its really tweakable maybe have a website where people could share their setups Jan 26 08:31:50 if you say so, the rest of the internet works perfectly Jan 26 08:32:28 g00s: Cost doesn't really justify it Jan 26 08:33:26 rewrite it in kotlin :D Jan 26 08:33:36 CaptainFarrell: I do say so. → http://dl.dropbox.com/u/31892/Screenshots/0g1z.png Jan 26 08:33:57 you know, you're acting a bit anal for a person who asked for feedback Jan 26 08:34:10 Also forgot to enable javascript in Firefox. Jan 26 08:34:10 So I'm surprised it looks fine despite that. Jan 26 08:34:16 I didn't ask for feedback -_- Jan 26 08:34:43 And I'm appreciate of the feedback, I'm just saying, my site ain't down. Jan 26 08:35:12 Nilium: Is the Ascension name a throwback to old school demo fests or just a random name? Jan 26 08:35:17 I've got it open in three browsers and other folks are saying it's up, so my advice with a lot of things where sites are inaccessible is to assume it's your problem first Jan 26 08:35:31 hraf: Just a name I chose a while back. Jan 26 08:35:51 I never got into the demo scene Jan 26 08:41:23 well i'll be dammed http://blog.jetbrains.com/kotlin/2013/08/working-with-kotlin-in-android-studio/ Jan 26 08:41:55 Yeah, it's pretty simple to set up. Jan 26 08:42:29 It's also got some nice language features. It's like Scala at times, but manages to be a little less verbose Jan 26 08:42:41 thats … nice :) Jan 26 08:43:04 Though in either case - scala or kotlin - you end up having way nicer code than if you used java. Jan 26 09:11:07 Nilium: is it possible to just restart the wallpaper service when the preferences change? i'm calling stopSelf() but it's not doing anything Jan 26 09:11:30 my settings activity overwrites an image that's loaded by the wallpaper service... very frustrating! Jan 26 09:11:33 No. Jan 26 09:11:37 heh rats Jan 26 09:12:03 So notify the service that it needs to reload the image? Jan 26 09:12:54 yeah... i guess that's what i'll do, just thought it would be easier to reload it Jan 26 09:12:56 thanks :) Jan 26 09:13:41 Could probably just use LocalBroadcastManager for that. Jan 26 09:14:16 That way you can broadcast an intent, the service receives it, handles it if it needs to, etc. Jan 26 09:15:23 sorry, i'd need to do more reading of the docs before i understand how that would work, i think i'll just make the app reload the image since i'd like to get this done tonight Jan 26 09:15:33 i'll make a note to look into that in my tickets though :) Jan 26 09:15:53 Are you on Mac OS? Jan 26 09:16:51 yeah Jan 26 09:17:23 how come? Jan 26 09:17:32 Then you should probably buy Dash so you can browse Android docs more easily. Jan 26 09:17:57 never heard of it Jan 26 09:18:07 Because you're going to be referring to them a lot. Jan 26 09:18:18 oh wow, this looks good! Jan 26 09:18:35 http://kapeli.com/dash ⇐ That would be Dash. Jan 26 09:19:10 I basically just recommend it to everyone because it's one of the most useful tools I keep open 24/7. Jan 26 09:19:49 do you use alfred? i wonder if there's an integration between the two Jan 26 09:19:55 No. Jan 26 09:20:17 have you heard of it? Jan 26 09:20:17 I could never get into alfred/launchbar/etc. Jan 26 09:20:20 Yes. Jan 26 09:21:28 I do use ShortCat, but that's a different kind of bar thingy Jan 26 09:21:56 ok i'm getting this, thanks for the tip! Jan 26 09:23:55 downloading android studio Jan 26 09:24:10 did a trick that fixed that R bug Jan 26 09:24:16 re-add the R import Jan 26 09:26:12 Step 1) convince people to use the same tools I do, step 2) convince them to use the same programming languages I do, step 3) rule the world Jan 26 09:27:22 I thought you were using jetbrains Jan 26 09:27:48 I use vim, Sublime Text, and IntelliJ, depending on what I feel like. Jan 26 09:36:49 ah Jan 26 09:40:02 i need to find a good mac epub reader Jan 26 09:41:16 i find it annoying intellij can't seem to use font weights; i prefer light or extra light in dark themes because the AA seems to make the fonts thicker Jan 26 09:41:30 well, at least for the code editor Jan 26 09:42:19 What always brings vim back is working with 10 different codebases each with their own style-guides and emacs' dtrt mode isn't quite up to snuff in adapting to it all. Jan 26 09:49:07 What always brings vim back for me is I do a lot of stuff in a shell and it's habit to just type 'vim filename' to edit something Jan 26 09:50:13 Although I do find it a little weird that I always use :wq instead of ZZ. Jan 26 09:50:40 Like, ZZ is there, it's clearly less work, but habit Jan 26 09:54:11 Hello. I'm developing a social client app, which makes use of oauth2 with custom provider. This is my first android app. On launch I'm showing the main activity, displaying what I have in cache, then connect to the server and check if my token is still valid. If yes, I connect and sync the data of the listview, if not, I skip to the authenticating activity with the form in webview. Am I doing the right thing? I'm new to the android dev and the concep Jan 26 09:56:03 Does it work? Jan 26 09:56:21 oh man, this app is doing weird things.. when i reload the image in the wallpaper service, it turns up somehow in my settings activity :P Jan 26 09:56:29 Actually, it is a concept in my head. I wanted to check my thughts before implementing. Jan 26 09:56:48 and the preview still has the old image... Jan 26 09:56:58 Maybe there is just a better pattern for this. Jan 26 09:57:08 I have no opinion then Jan 26 09:57:24 hey folks! I have problem with ndk. Here are my errors and config files: http://pastebin.com/1aXaurPP Where is my mistake ? Jan 26 09:57:43 Maybe. Might be a good idea to consider just designing it without worrying about whether the design is a pattern. Jan 26 09:58:04 Okay, will give it a try. Thanks a lot. Jan 26 10:05:05 JohnPoison: Without having used the NDK, I'd say it _looks_ like you're either not linking to a system library or somehow not linking to a C++ standard library that includes atomics Jan 26 10:06:03 Either way, you're obviously not linking to something Jan 26 10:10:16 Nilium, thread is in STL and I supposed it should be linked Jan 26 10:11:31 Thread? Jan 26 10:18:45 Nilium, header Jan 26 10:19:23 Well, the issue is with atomics. Jan 26 10:19:26 looks like I forgot to add -stdlib=libc++ Jan 26 10:23:13 Does any one know quality threshold to push the application over the air from my web application?. The quality threshold is not published in the docs Jan 26 10:24:09 o.o Jan 26 10:25:30 As I guess it depends on the rating, reviews, number of install of the application and app must be free. Let me know if any other criteria for this Jan 26 10:43:12 where do you guys prototype your gui? eclipse or mock up services? Jan 26 10:43:33 On a device. Jan 26 10:44:42 * Nilium watches TGMCians from both IRC and room 15. Jan 26 10:49:29 Does relativeview not like to play nice with scrollview? Jan 26 10:49:38 I was not aware of this. Jan 26 10:51:31 Also I may have been misled, where's the noob help channel? Jan 26 10:51:51 Because this place is about as lively as my alcoholic great grandmother. Jan 26 10:52:08 Nothing likes to play nice with scrollviews. Jan 26 10:52:22 That makes me sad. Jan 26 10:52:31 Also, it's 2:50am in the US. Not going to be that lively. Jan 26 10:52:47 Oh, shit, I forgot not many aussies are on here. Jan 26 10:53:09 Anyway, is your scrollview's height set to match_parent? Jan 26 10:53:09 <_rm> and it's sunday :) Jan 26 10:53:16 Yeah mate. Jan 26 10:53:31 I think it's a size issue, I keep getting java exceptions in the eclipse renderer. Jan 26 10:53:42 And is your relative layout's height set to something other than match_parent Jan 26 10:53:46 Size must be greater than zero. Thing is, I have the scrollview wrapping, so. Jan 26 10:53:51 Well, ignore the eclipse thing. Jan 26 10:54:00 Oop. Jan 26 10:54:09 Test it on a device. Jan 26 10:54:10 Oh, ignore the java exception in eclipse Jan 26 10:54:26 I will, does it sometimes fuck up in eclipse but work elsewhere? Jan 26 10:54:45 This would have been good to know a while ago. Jan 26 10:54:52 aren't you supposed to be wasted, Immaterial ? Jan 26 10:54:53 In fact, avoid visual UI editor things for Android altogether if you can help it. They're buggy and not particularly friendly at best and misleading at worst. Jan 26 10:55:14 I know farrel, staya day and all. Jan 26 10:55:18 Not everyone celebrates aussie day. Jan 26 10:55:51 I could spout a bunch of shit about celebrating a police state but really, I have to finish this program. Jan 26 10:55:53 Urgently. Jan 26 10:55:56 Or, as my australian friend calls it, aboriginal genocide day. Jan 26 10:55:59 So I have no time to get drunk. Jan 26 10:56:22 So, yeah, opinions. Jan 26 10:56:39 Nilium; Don't forget about all the kids the entirety of the white race stole. Jan 26 10:57:07 :P Jan 26 10:57:30 I'm not australian, so my knowledge of its history/culture is extremely limited Jan 26 10:57:35 Ah. Jan 26 10:57:54 Stolen generation, our ancestors stole a bunch of aboriginal kids and tried to breed the black out of them. Jan 26 10:57:58 I just hear a lot about wogs lately. Jan 26 10:58:06 i dunno, guys, i think you're too serious. nothing bad about having holidays as long as you don't use the opportunity to cause troubles Jan 26 10:58:33 Well, that's disturbing, but sounds about par for the course for racist past generations Jan 26 10:58:35 Which apparently makes it okay to blame white people generations later. Jan 26 10:58:49 Which is strange. Jan 26 10:58:50 imo, it's not that fair as half the population moved there later and should not have that white guilt at all Jan 26 10:59:15 history is history Jan 26 10:59:24 I'm iffy with white guilt, I don't think anyone should feel bad about something they had no part of. Jan 26 10:59:37 Well, it's history once it's not ongoing, and my understanding is that it's still not exactly cleared up Jan 26 10:59:44 Moving on though, nilium, I've just been editing the XML from text, checking the UI to see how it turned out. Jan 26 10:59:54 plus, not all whites are anglo-saxon Jan 26 11:00:07 Yeah, best you can do there is build it quickly and test it on a device Jan 26 11:00:16 Or in the emulator. Emulator's mostly sufficient for layout testing. Jan 26 11:00:32 It takes too long to load and it's laggy as hell on my machine. Jan 26 11:00:44 getting back to my previous question. i've tried using fluidui.com several times Jan 26 11:00:57 I've just been going with the device for testing. I remember attempting an export but t did crash. Jan 26 11:01:09 That's the emulator on all machines. Jan 26 11:01:10 Genymotion apparently helps, but I've actually never used it Jan 26 11:01:11 and found their widget library very limiting Jan 26 11:01:34 Ah. Jan 26 11:01:42 I've found that I don't really care all that much since building and installing on a device is fairly fast. Jan 26 11:01:45 Well, nil, thanks for the help and I'll give it a go. Jan 26 11:02:49 Advice: sledgehammer. Jan 26 11:02:55 It solves problems like nothing else. Jan 26 11:03:11 Tried fire. Jan 26 11:06:08 Maybe throw a potted plant out a window next. Jan 26 11:26:39 Greetings, folks! Can anyone please tell me what am I doing wrong? I have layouts with white background color, which is okay in Eclipse XML layout editor and on couple of HTCs, but if I run this via simulator or some samsungs (ace/ace 2/note 2), those layouts does take their parent's color (something like gray) Jan 26 11:52:22 Ridiculous... background of layout is #FFFFFF, i've made a button which outputs background color to log, it says #000000, while background is #F2F2F2 (detected by photoshop). After this log output, I've made setBackgroundColor with Color.WHITE as parameter, and... background really became white and outputs #FFFFFF to log. What the hell is with this? Jan 26 11:54:53 I can't even google anything Jan 26 11:55:22 hey ppl i am trying to build my eclipse project in visual studio, everything works except: Jan 26 11:55:53 when i create view using setContentView all views working, only Jan 26 11:56:08 below that findViewById aint work Jan 26 11:56:23 causes a nullpointer reference Jan 26 11:56:59 so why would setContentView(R.layout.activity_main) work and findViewById not? Jan 26 11:57:24 im 100% sure that the id im using is there i can actualy see it Jan 26 11:57:45 it must be something with the R id file? Jan 26 11:58:04 is this maybe regererated with new int id's ? Jan 26 12:09:08 Fucking scrollview. Jan 26 12:10:17 Anyone every get "Exception raised during rendering: width and height must be > 0" when adding a scrollview to encapsulate their relativelayout? Jan 26 12:10:38 And it's not just in eclipse, the app's now crashing. Jan 26 12:23:41 This upsets me. Jan 26 12:30:54 GAAAAHHHH Jan 26 12:34:37 my app makes a new image on the external storage, it can check that the file exists, but it can't actually load the file properly until the next time the app runs Jan 26 12:34:40 why would that be?! Jan 26 12:42:59 Erdos. Jan 26 12:43:04 Did you close and flush? Jan 26 12:44:04 And if you're talking about an imageview, are you invalidating it and allowing it to redraw? Jan 26 12:45:48 nah, it's drawing straight to the canvas Jan 26 12:46:19 Ah. Jan 26 12:46:43 ...Well, if it's doing that, shouldn't the image be on the canvas anyway...? Jan 26 12:47:09 Why do you need to load the saved image of the thing that's already on the canvas? Jan 26 12:48:32 well... it's a live wallpaper, everything works fine, EXCEPT when the user changes their selected image in the settings activity, the wallpaper service doesn't seem to be able to pick up the new image Jan 26 12:49:12 i can notify the service that there's been a change by implementing the preferences listener Jan 26 12:49:27 but the newly saved image just shows up black Jan 26 12:49:32 so confusing :P Jan 26 12:49:41 ...I am actually having that same problem. Jan 26 12:49:42 LOL. Jan 26 12:49:50 In a different context. Jan 26 12:49:59 maaan! Jan 26 12:50:13 what could it possibly be? Jan 26 12:50:26 From whhat I've read it has to do with invalidate() being called, then the programm hanging on a loop and being unable to call ondraw() to finish the action. Jan 26 12:50:34 Therefore leaving the view black. Jan 26 12:50:51 hmmmmm Jan 26 12:51:25 If you solve it before I do, let me know what the hell happened. Jan 26 12:51:29 I'm fucking stumped. Jan 26 12:51:31 hehehe will do Jan 26 12:52:12 it's fucked, i'm using an opengl wrapper, and i can draw other stuff on command, like i can draw some text saying "the image has changed", i just can't draw the new image Jan 26 12:52:55 i spent about 2 hrs making the live wallpaper, and literally like 100+ hours trying to make android do it's thing Jan 26 12:55:44 God I know that feeling. Jan 26 12:56:10 Eros though, why not just toast "The image has changed"? Jan 26 12:56:16 Erdos* Jan 26 12:56:41 just to test that i could change what was being sent to opengl Jan 26 12:57:16 wtf now it's not loading the new image, but a fucking bitmap font used somewhere else in the project Jan 26 12:57:18 ...Is the image huge? Jan 26 12:57:26 hugeish Jan 26 12:57:36 regular size that the camera takes Jan 26 12:58:06 Also, lol on the bitmap font Jan 26 12:58:40 i don't even know how that is possible Jan 26 12:58:47 http://www.wearysloth.com/Gallery/ActorsH/52702-15365.gif Jan 26 12:58:50 ^Java Jan 26 12:59:10 lol Jan 26 12:59:27 Is how. Jan 26 13:00:06 And now, to figure out expandable list views. Jan 26 13:00:13 gl Jan 26 13:00:20 Might have to get my crying bucket. Jan 26 13:01:07 same Jan 26 13:01:13 time to git stash Jan 26 13:01:18 start again Jan 26 13:06:54 Hello, Is there a way to hide the top status bar (the one that contains the Debugging Indicator) in a JellyBean Android Tablet ? Or do I have to root the device to access such feature ? Jan 26 13:08:18 um Jan 26 13:08:25 just set your app window as fullscreen? Jan 26 13:08:47 you can also just use one of the fullscreen themes and your app will run without status bar Jan 26 13:10:02 Mavrik: Ok thanks I'll search for fullscreen themes Jan 26 13:11:01 em, search for? Jan 26 13:11:20 R4md4c, you are developing your own app and are asking for that right? Jan 26 13:11:46 Yeah ofcourse, I'll try the android:theme="@android:style/Theme.NoTitleBar.Fullscreen" attribute Jan 26 13:12:09 mhm :) Jan 26 13:22:05 I am trying to create the listview which has the facebook sharing button on each row Jan 26 13:22:11 this is my list adapter https://gist.github.com/bubuzzz/8e7d4dc71c721526fef1 Jan 26 13:22:41 everytime I press on the button, it keeps asking me about facebook login instead of showing the share dialog Jan 26 13:22:55 anyone has suggestion about this ? Jan 26 13:23:44 Mavrik: Thanks It is working now after I extended my AppTheme in the style.xml and added the windowFullScreen item with true value Jan 26 13:23:57 good to hear :) Jan 26 14:42:22 how can i open and read files in assets folder in android? Jan 26 14:43:26 fly2web: http://developer.android.com/reference/android/content/res/AssetManager.html Jan 26 14:43:43 R4md4c: thanks very much Jan 26 14:46:15 i think i need some help. the behaviour of the webview appears to be completely messed up on android 4.4.2. this http://jsfiddle.net/S3Hr7/ should show a completely yellow surface with text. on android 4.4.2 it shows a blue surface with a purple line at the top in which the text is. which makes... absolutely no sense at all since there is absolutely no way in hell the text could be a direct child of in (purple), but it is. Jan 26 14:46:22 i checked the document that explains what needs to be changed for html based apps to work on 4.4, but it doesn't appear to mention anything related to the problem at hand Jan 26 14:48:11 guys, is there any benefit of using NUMERIC affinity in sqlite? AFAIK it can store numbers as text which could cause problems Jan 26 14:54:15 is there a time this channel isn't asleep? xD Jan 26 14:55:14 Any day that isn't a sunday? =) Anyhow, what was the issue? wrong color shows up in webview? Jan 26 14:57:38 Thorbear, basically my whole app is borked. what i mentioned above is just the closest i've gotten to tracking what's wrong. problem is i'm no closer to finding a solution and haven't gotten any closer for weeks Jan 26 14:58:16 when i launch the app with adb i get a flash of what SHOULd be displayed, and then the whole screen goes purple (background colour of html and body elements) Jan 26 15:07:02 hmm this could help Jan 26 15:07:02 https://developers.google.com/chrome-developer-tools/docs/remote-debugging#debugging-webviews Jan 26 15:16:40 I need to initialize the sqlite db in the oncreate of the launcher activity (creating helper object, executing queries for table creation), also I want to keep the code clean. Is it okay to just keep it there? When do I know when it is too much? Jan 26 15:17:19 *how Jan 26 15:17:55 I have a problem with my TabWidget inside my HorizontalScrollView.. When all of the tabs in the TabWidget arent "enabled" the TabWidget doesnt stretch to fill the empty space? Jan 26 15:33:31 Anyone here? Jan 26 15:54:47 Hey, I'm new to Android. I get this upon launching the App on my device: "You need to use a Theme.AppCompat theme (or descendant) with this activity." Minimum sdk level is 14, using android studio. Any ideas? Jan 26 15:54:51 to save json files in python, every one use json.dumps and json.loads. but i want open it in the android then json.dumps is necessary? Jan 26 16:13:40 yorrd Jan 26 16:14:01 That should be an option in your manifest, or alternatively select it when creating the project. Jan 26 16:15:07 Or; Jan 26 16:15:08 http://stackoverflow.com/questions/18063395/actionbarcompat-java-lang-illegalstateexception-you-need-to-use-a-theme-appcom Jan 26 16:15:53 Anyone care to shed some light on why my layout's having a seizure? Jan 26 16:15:58 Immaterial: why do I need an appcompat theme for an API 14+ app though? I want to avoid having two values files for now, just to keep everything simple for personal testing Jan 26 16:17:18 You don't, but for some reason you chose to use appcompat Jan 26 16:18:09 This. Jan 26 16:18:33 And when you use appcompat, you need to use its themes Jan 26 16:18:53 Now that that's explained. Jan 26 16:18:59 I have a problem with my TabWidget inside my HorizontalScrollView.. When only some of the tabs in the TabWidget is "enabled" the TabWidget doesnt stretch to fill the empty space? Jan 26 16:19:22 so set warp_content? Jan 26 16:19:26 Wrap* Jan 26 16:19:39 or fill_parent? Jan 26 16:20:43 It is set to wrap content Jan 26 16:21:46 http://stackoverflow.com/questions/12071774/android-tab-icon-are-not-occupying-full-space Jan 26 16:21:48 Is this it? Jan 26 16:22:07 yorrd, do not use appcompat Jan 26 16:22:29 SimonVT Immaterial pfn: I didn't choose it o.o what do I have to change to get rid of it?! Jan 26 16:22:48 I even chose api level 14 when creating the project, I was never asked about appcompat Jan 26 16:23:08 Values/themes and an entry in the manifest Jan 26 16:23:10 nvm i fixed it Jan 26 16:23:24 Afaik. Jan 26 16:24:35 Can anybody tell me just how I fucked my layout? It renders just how I want it to look in eclipse, but when I take it to a tablet it straight up freaks the fuck out and the top two rows of checkboxes bunch up under the first textview. Jan 26 16:24:45 She's buggered, cap Jan 26 16:24:51 yorrd: Remove it as a dependency Jan 26 16:31:22 SimonVT this is what I get when trying to run: https://gist.github.com/anonymous/8635300 Jan 26 16:32:15 You're trying to use resources defined in AppCompat Jan 26 16:32:22 It tells you which Jan 26 16:39:45 SimonVT happens when you brainlessly follow tutorials... ;D thanks for your patience, I think I solved everything for now :) Jan 26 17:00:10 cargo cults ftw! Jan 26 17:01:38 cargo pants are pretty nifty but i wouldn't go as far as joining a cult for them, regardless of how much storage capacity they provide Jan 26 17:06:49 hey quick question I have a search activity where parameters are entered for the search, then the results activity will show a list of them. Would I be better to Perform the Server call on the results page showing some kind of loader rather that do it between the search form activity and the results activity? Jan 26 17:14:54 I'm trying to use an icon from the ActionBar Icon Pack in my test app. Should I be moving over all variations of the icon into their respective 'res/drawable-xxxx' folders manually? Jan 26 17:16:13 SunPowered: yep Jan 26 17:16:26 SunPowered: don't move all icons, just the ones you're going to use Jan 26 17:20:21 funkbox: does android-studio have any helper functions to facilitate this better? Jan 26 17:20:30 no Jan 26 17:20:37 k, thx Jan 26 17:20:37 it's generally fairly straightforward to do Jan 26 17:26:15 i really wish they just packaged those into android proper Jan 26 17:27:08 I'm glad they didn't Jan 26 17:27:13 SimonVT: why not ? Jan 26 17:27:31 They'd only be available on certain api levels Jan 26 17:27:43 well that's true of anything new Jan 26 17:28:11 It's unnecessary. You'd just have to copy them from the framework instead Jan 26 17:28:36 for a while yes Jan 26 17:29:13 "a while"? Jan 26 17:29:15 Like years Jan 26 17:29:24 until that API level was the base Jan 26 17:29:25 yes Jan 26 17:29:49 So you gain nothing by them being available in the framework Jan 26 17:29:57 for a few yers Jan 26 17:30:02 but i see your point Jan 26 17:48:58 smaller app, sure, and you can set minsdk Jan 26 17:49:24 there's lots of new stuff that could have come in 11 14 etc Jan 26 17:52:56 yeah, new stuff in api is good Jan 26 18:08:51 Hi guys, when i click my button it should connect to ftp sever. now when the server is unavailable it catch an exception, but when i click it again (while server is offline) the app crashes. How can i prevent app to fall when the server is busy, unvailable e.t.c. ?Thanks Jan 26 18:13:28 by reading the error message Jan 26 18:13:34 and then fixing the bug. Jan 26 18:15:37 hm Jan 26 18:27:15 hey guuuys Jan 26 18:27:29 anyone of you using the fadingactionbar library? Jan 26 18:29:19 is it good to use for ftp connection at the total end of AsyncTask ending by return null ? Jan 26 18:46:55 What do `adb reboot recovery` and `adb reboot bootloader` actually do? Jan 26 18:47:23 um, what they say really Jan 26 18:47:32 they reboot the phone into recovery mode Jan 26 18:47:37 or bootloader mode Jan 26 18:47:41 reboot the phone either into (usually fastboot-compatible) bootloader and/or into recovery mode Jan 26 18:47:59 No, no, I get that. But, how do they do that? Jan 26 18:48:56 I've got a Nook Simple Touch, which uses u-boot as its bootloader, and the source to the bootloader contains references to fastboot, but I can't seem to get into fastboot mode. Jan 26 18:49:13 `adb reboot bootloader` doesn't help. Jan 26 18:49:22 that's almost certanly device specific Jan 26 18:49:37 probably some flag on a partition/NAND Jan 26 18:50:31 Hi, quick question. What is the easyest way of adding a custom tiled map to an application. It should work the same way as google maps, but with custom tile (and probably no, or very little zoom) Jan 26 18:50:51 Mavrik: How would that work if a device had no partitions other than /boot? Jan 26 18:50:57 Or, even, no partitions at all. Jan 26 18:51:19 I've heard of a devices internal eMMC card failing, and the user being left with nothing but fastboot. Jan 26 18:52:17 drewbug, see this: http://stackoverflow.com/questions/5472761/how-does-the-bootloader-pick-up-the-command-after-a-restarting-system-with-comm Jan 26 18:53:03 Mavrik: Thank you so much! Jan 26 18:53:10 Can't believe I couldn't find that. Jan 26 18:57:44 any idea why i can't get my statusbar in actionbarsherlock transparent? Jan 26 18:57:47 or translucent? Jan 26 19:01:08 no one? Jan 26 19:02:57 what have you tried ? Jan 26 19:05:59 https://github.com/ManuelPeinado/FadingActionBar/blob/master/samples/actionbarsherlock/res/values/themes.xml Jan 26 19:06:11 am trying to implement fadingactionbar Jan 26 19:06:28 but i just can't get the actionbar translucent.. Jan 26 19:06:29 what have you set your activity's theme to ? Jan 26 19:07:27 to my custom theme.. Jan 26 19:13:20 hello Jan 26 19:13:34 i want to make an own preference Jan 26 19:14:29 it shall be like a listview but with images next to the items (and maybe searchable) Jan 26 19:15:09 best of luck Jan 26 19:15:23 also, why ? Jan 26 19:15:38 the question is: is there a similar functionality builtin? :D Jan 26 19:15:47 yes, the preference stuff Jan 26 19:15:50 funkbox: why the preference? Jan 26 19:15:57 actually its for choosing timezones Jan 26 19:16:24 but and next to the timezonenames there shall be the corresponding flag Jan 26 19:17:42 weltio, PreferenceActivity Jan 26 19:21:44 Mavrik: so i would rely on ListPreference for the image,text pairs? Jan 26 19:21:54 mhm Jan 26 19:22:19 aloah there Jan 26 19:27:52 Does it make sense to use AsyncTask for writing to a File form a Buffer? Jan 26 19:28:20 If so, would i pass the array on AT init? Jan 26 19:29:06 jaDule, is it a one time task? Jan 26 19:29:23 Yes Jan 26 19:29:25 Are you going to close the file after you write to it or keep it open for more writes? Jan 26 19:29:43 Well i would have to reopen and append.. Jan 26 19:30:25 In that case, it might be better to use a Thread. Jan 26 19:30:35 I have a Service launched from an activity.. in that service i have a SensorEventListener - i want to process the sensor data in batches and then write the processed data to a single file.. Jan 26 19:31:34 I would use a Thread for that Jan 26 19:32:32 mh ok thanks let me investigate Jan 26 19:50:29 rdnt you think a HandlerThread might do the job? Jan 26 19:52:45 Its advantage is when you want to have multiple handlers in a separate thread Jan 26 19:53:23 but yeah, you could use it to send messages (i.e. write batch of data to file) Jan 26 19:54:32 :) ok will give it a try - thanks again Jan 26 20:00:14 forgot to say brb Jan 26 20:25:01 hey everybody Jan 26 20:27:20 nick9998: hello Jan 26 20:28:02 licksjp: how are you today Jan 26 20:28:23 nick9998: I am Max fine,but a little sleepy Jan 26 20:28:51 you are maximum fine? Jan 26 20:29:05 yes Jan 26 20:29:33 cool cool, i am functioning within established parameters Jan 26 20:30:16 nick9998: r u Android developer? Jan 26 20:30:43 no i am an unemployed hobbyist, u? Jan 26 20:31:45 I am Android developer Jan 26 20:32:14 https://play.google.com/store/apps/developer?id=licks&hl=ja Jan 26 20:32:20 my appli list Jan 26 20:33:23 cool, have you ever used GL10.GL_POINTS before on android? Jan 26 20:34:21 nick9998: no Jan 26 20:34:47 licksjp: there is actually some burn-in on my nexus-4, can you beleve it? Jan 26 20:35:20 its 2014 for crying out loud Jan 26 20:35:47 * nick9998 *COL* Jan 26 20:36:41 does it make sense to feed sensordata from onSensorChanged() directly to a Handler as Msg for further processing? Jan 26 20:38:12 (the handler has a looper from a running thread) Jan 26 20:39:43 nick9998, oled screens burn in Jan 26 20:39:53 it's a disadvantage of oled vs lcd Jan 26 20:40:35 pfn: ah, i see Jan 26 20:48:07 I've been doing some research on instant messaging, looks like xmpp / smack is the way to go at the moment isn't it? Any opinions? Jan 26 20:55:04 what are all these random emulator errors that fill up the logcat? is there some way to fix all of these ? things such as 'Couldn't load memtrack module (No such file or directory)' Jan 26 20:56:14 cigarshark: good question Jan 26 20:56:38 u could filter on log-level using grep, that might help u Jan 26 20:56:39 very annoying that all this crap is in there with an out-of-the-box emulator Jan 26 20:56:51 its like that on my phone too Jan 26 20:56:58 I'm sure I can filter so that I only see my app's msgs but geez Jan 26 20:57:39 Strange, I don't see much of that on eclipse Jan 26 20:57:54 in android studio you can filter logcat by application Jan 26 20:58:10 but then, I never use an emulator Jan 26 20:59:22 emulator is pretty good w/ hardware acceleration installed Jan 26 20:59:46 but it can be a waste of screen real estate Jan 26 21:00:19 still easier to do design work on emulator than actual device Jan 26 21:00:35 proper dev has multiple displays anyway :) Jan 26 21:02:32 yeah, i'm def not proper. working from home these days and miss my 3 monitors. Jan 26 21:03:26 hello Jan 26 21:03:44 is BackupManager good way to save data ? Jan 26 21:04:15 if someone does a factory reset, i believe they can restore your app to normal if you use that Jan 26 21:04:24 Baluse:how many stars does it have?? Jan 26 21:06:44 <|0xD34D|> nick9998: I don't think there is a star rating system for classes in the android API Jan 26 21:06:52 <|0xD34D|> I could be wrong though Jan 26 21:15:49 |0xD34D|: lol, no you're probably right Jan 26 21:16:53 ol Jan 26 21:43:06 is there a way to get the progress of threadpool executor/ Jan 26 21:46:53 is there a source "de-tab" function in intellij do you know? Jan 26 21:52:13 I still only ever develop with 1 monitor... Jan 26 21:53:58 pfn: same here Jan 26 21:54:32 * Mavrik gives pfn a cookie. Jan 26 21:54:56 i use virtual desktops...only need 1 monitor Jan 26 21:55:49 i dislike virtual desktops Jan 26 21:56:01 it can get confusing Jan 26 21:56:40 virtual desktops are awesome Jan 26 21:56:48 way better than multiple monitors for nearly everything Jan 26 21:57:26 not nearly Jan 26 21:57:44 I like to have video and docs in one montiro Jan 26 21:57:55 monitor, and development in another Jan 26 21:58:06 i think that leads to distraction Jan 26 21:58:12 you should be doing one thing Jan 26 21:58:22 i flip desktops between docs and working space instantly Jan 26 21:58:33 never Jan 26 21:58:43 I have doctor who on one screen and all others stuff on the other monitor Jan 26 21:58:51 That really leads to disctraction. Jan 26 21:58:55 exactly Jan 26 21:59:16 also with the typical 2 monitor setup, what's in the central part of your vision when looking straight ahead? a big split between two monitors Jan 26 21:59:19 ridiculous Jan 26 21:59:28 Oh and i have a game running on my tablet between those two monitors... Jan 26 21:59:32 that's where i want my main focus to be, not dead space Jan 26 21:59:38 that depends on how you layout your monitors Jan 26 21:59:48 just put the primary one in front Jan 26 21:59:50 i had a 2 monitor setup with one off to the side Jan 26 21:59:55 then i had to turn my head too much Jan 26 22:00:05 so i'm back to a single monitor (although it's currently a 22" so not exactly tiny) Jan 26 22:00:12 too small Jan 26 22:00:27 I want a 27+ 4k Jan 26 22:00:28 covers nearly my entire field of vision Jan 26 22:00:32 need more dots Jan 26 22:00:39 i move whatever i need into that field with hotkeys Jan 26 22:00:45 not alt-tab either Jan 26 22:01:25 i can't be productive without virtual desktops. i make each one a task; communication; surfing; work, etc Jan 26 22:01:33 exactly g00s Jan 26 22:01:44 g00s: +1 Jan 26 22:01:52 along with screen for multiplexing terminals i can get a lot of things going and still have structure Jan 26 22:02:56 too much context switching by using virtual desktops Jan 26 22:03:20 I want it all in front of me in one context Jan 26 22:05:26 pfn did you find a 4k monitor yet ? Jan 26 22:06:46 I'm not actually shopping for one Jan 26 22:07:07 how silly. If you use virtual desktops theres no reason you could "hate" multiple monitors. You could use multiple monitors with VDs. best of both worlds. Full screen editing and debugger and other monitor dedicated to graphical output. Cant be beat. Jan 26 22:07:32 rgr: i hate VDs Jan 26 22:07:35 and a very good reason to use a proper tiling WM like xmonad. Jan 26 22:07:55 contexts and workspaces there at the flick of a key. Jan 26 22:08:06 u always have to test for that Jan 26 22:08:19 I understand some peopel dont like them. but then some people also thought a full screen editor was for noobs. Jan 26 22:09:37 I use a full screen editor, but split a zillion ways Jan 26 22:10:50 * pfn cleans out le coffee grinder Jan 26 22:11:13 me too sometimes, but thend more to use differen srceens rather than split them in emacs. Much prefer to swap workspaces (all with different layouts). e.g I have left monitor with android emulator running and center one wth emacs/intellij but swap between them and firefox/terminal etc. Jan 26 22:11:31 works well. Jan 26 22:12:02 rgr you use emacs for android dev ? Jan 26 22:15:55 just switch, g00s Jan 26 22:16:06 rgr, mhm, that's what I mostly do Jan 26 22:16:10 It'll make you a better developer Jan 26 22:16:12 one screen for emulation / documentation Jan 26 22:16:22 other screen for everything else between different VDs Jan 26 22:16:33 e.g. VD with a browser, VD with an IDE, VD with chat stuff Jan 26 22:16:35 stop being plagued by indecision and uncertainty Jan 26 22:17:08 yep and plagued by non-productivness :P Jan 26 22:17:20 +1 Jan 26 22:17:24 yes its the whole church of emacs vs. cult of vi- thing all over again. Jan 26 22:17:55 no no, i just get curious about how emacs is set up for java dev. it never seemed very well suited Jan 26 22:18:12 tried a few things but they were unsatisfactory Jan 26 22:18:46 if you need completion it will always be unsatisfactory Jan 26 22:18:51 * pfn doeant Jan 26 22:18:54 doesn't Jan 26 22:19:12 so just about everything is satisfactory, provided keybindings are good Jan 26 22:19:24 hmm Jan 26 22:19:45 is their call heirachey? Jan 26 22:26:29 hey to access a db do you need a content provider and a loader? Jan 26 22:27:20 no Jan 26 22:29:55 < pfn> too much context switching by using virtual desktops Jan 26 22:30:06 the context switch is looking at another app/activity Jan 26 22:30:25 a desktop view is not a context Jan 26 22:31:03 for you Jan 26 22:31:48 I don't work effectively by staring at a single window Jan 26 22:31:56 probably make me shoot myself Jan 26 22:32:40 there's CEDET for intellisense-style completion in emacs, and some other things, tho i haven't set that up or used it yet Jan 26 22:32:52 @pfn was that to me? Jan 26 22:33:10 also haven't used the emacs mode for eclipse yet to pass any judgement on it Jan 26 22:33:13 or eclim Jan 26 22:33:22 there's certainly no shortage of approaches to the problem Jan 26 22:33:29 trying to figure out what I need to do now, I got the sql class up Jan 26 22:33:48 eg mylyn in Eclipse, not effective for me Jan 26 22:34:03 and was just going to call to it... but not sure if a "loader or a content provider" is really needed Jan 26 22:55:22 just imported a Deitel project (meant for eclipse) into intellij and it looks awful. cant for the life of me see how to force a proper reformat with tab/space correction. C-M-L doesnt do diddly. Any ideas? Compiles and runs fine. Its purely a mess in the editor. Jan 26 22:59:41 anyone making REST requests w/ basic auth from Anroid? if so, what libs did you use, or did you just use the native android libs ? Jan 26 23:00:02 i am asking because Spring has their Android rest client, but I'm wondering if its worth incorporating Jan 26 23:04:12 basic auth is just a simple header Jan 26 23:06:18 yea, i'm thinking of a lib which just smooths the whole process w/ slightly less verbose code Jan 26 23:07:04 i guess a better question would be, is anyone here using Spring Android? Jan 26 23:07:47 are ids self generated in sqlite or do i have to create it Jan 26 23:08:09 depends on how the column is set up Jan 26 23:08:18 normally you'd want the db to generate it in an auto increment column Jan 26 23:09:23 right if it is in auto increment (assuming I have that set, when a user creates a new item, how do I pass that in Jan 26 23:10:00 like right now I am calling db notes = new db(id, name) Jan 26 23:10:06 for name i find he user input value Jan 26 23:10:06 you don't Jan 26 23:10:09 for id what do i do Jan 26 23:10:31 i dont pass in anything? or i just pass in the variable id Jan 26 23:10:50 omit the id column from the insert Jan 26 23:10:51 I obviously need something there otherwise name will be id Jan 26 23:10:57 ? Jan 26 23:11:05 or does it just know? Jan 26 23:11:17 what is "it" Jan 26 23:11:30 well i created a database help class and a Jan 26 23:11:33 class for the table Jan 26 23:11:59 now i am trying to say when user clicks add I want this to be added to the db Jan 26 23:12:21 this row... so in order to pass it I need to include the id? Jan 26 23:12:28 and name Jan 26 23:12:35 or at least that is what is in the constructor Jan 26 23:12:51 when inserting, you omit the id from the sql statement Jan 26 23:13:25 i don't know what else to tell you. you're speaking in very abstract terms that mean nothing to me since i have no idea what you're doing Jan 26 23:13:31 hm ok Jan 26 23:13:35 http://www.androidhive.info/2013/09/android-sqlite-database-with-multiple-tables/ Jan 26 23:13:45 i am following this tutorial for example but trying to understand it as well Jan 26 23:13:51 and I am looking at the test file Jan 26 23:14:24 but i see it is omited Jan 26 23:14:27 so nevermind thanks Jan 26 23:15:16 heh Jan 26 23:25:22 hey so this splits on the comma Jan 26 23:25:22 List language_list = Arrays.asList(language.split(",")); Jan 26 23:25:22 Jan 26 23:25:47 but I want to after call each one split and trying language_list[0]; etc does not work? Jan 26 23:26:09 and it makes sense since it is not an array... but how do i select the split-ted strings Jan 26 23:34:21 how secure are private preferences, would storing an api key this way be insecure Jan 26 23:39:14 this was helpfull http://stackoverflow.com/questions/14570989/best-practice-for-storing-private-api-keys-in-android Jan 26 23:39:30 rooted devices will have access to app preferences Jan 26 23:39:32 perhaps there is a way to use something like a yubikey to protect the api keys Jan 26 23:39:58 you can use encryption/hashing Jan 26 23:49:20 is anyone here experienced with the Nabi tablets? I wanted to make a game for my little brother but it fails to install on his Jan 26 23:52:48 Hello, I'm working on a school project and I need to be able to integrate the swipe pattern widget (from the lockscreen) into this app. What's the best way to do this? Jan 26 23:56:31 I am adding a new field in the settings menu... Can someone please guide me.. Jan 26 23:57:59 does querying a sqlite id return an integer? Jan 27 00:03:35 Lones Yes and no. The standard autoincreasing field will be an sqlite integer, which translates to a long in Java Jan 27 00:03:40 LoneSoldier728 Jan 27 00:08:58 ok got it but now I added the elements to an array Jan 27 00:09:11 am i not able to call it like so array[0]; Jan 27 00:09:12 ... Jan 27 00:09:41 Because I am trying to set a new variable to each of the elements in the array but for some reason it is not working Jan 27 00:42:50 fastest way to learn to make android apps Jan 27 00:49:42 <_Auron_> webscrapper1: by trying Jan 27 00:49:55 By paying someone else to. Jan 27 00:50:51 <_Auron_> he said to learn to, not just make Jan 27 01:00:20 hey so this is a tough question Jan 27 01:00:28 how do i dynamically create buttons based on a query Jan 27 01:00:51 I know it will go inside a for loop but how do I create the buttons Jan 27 01:03:30 by creating them... Jan 27 01:03:59 well this is the code and I am trying to create a new button for each dictionary Jan 27 01:04:06 for(db_dictionary dictionary_found : allDictionaries) { Jan 27 01:04:11 least helpful irc forum ever Jan 27 01:04:50 webscrapper1 if you are trying to learn just follow a tutorial Jan 27 01:04:54 and try understanding it Jan 27 01:05:01 do you know any languages? Jan 27 01:05:31 if not then you have to learn the fundamental of programming first to at least grasp some basic concepts Jan 27 01:06:00 then create a button for each dictionary, then Jan 27 01:06:11 start by reading the api docs for button Jan 27 01:06:27 tutorials are the worst way to learn to program Jan 27 01:07:08 once you do the hello world tutorial, you should stop and learn to read docs Jan 27 01:08:42 pfn i understand buttons, i am just having a hard time knowing how to setup the create a button for a dictionary, like how do i make each one unique, i was thinking of naming the button after the id of each dictionary somehow Jan 27 01:09:15 so this way if it was clicked then I can say take it to this page with this id Jan 27 01:09:56 and to make it more clear, should I have a list array or something that each button gets thrown into or what am i doing inside the for loop right off the bat to initiate the new Button Jan 27 01:11:22 this was my attempt but not sure if it is right Jan 27 01:11:23 Button dictionary_button = new Button(this); Jan 27 01:19:53 http://stackoverflow.com/questions/21371536/how-to-dynamically-add-rows-from-a-table-sqlite-to-layout-android Jan 27 01:19:59 if someone can answer that Jan 27 01:34:35 Hi all Good Morning Jan 27 01:35:59 Need Help, what is the best way around for connecting to a MySql.. Jan 27 01:36:32 using a webservice Jan 27 01:43:54 Thanks bankai, JAX-WS or JAX-RS?? Jan 27 01:44:37 Anything you want. You'll be talking to it via HTTP Jan 27 01:44:42 so it doesn't even need to be java Jan 27 01:46:24 i should have said protobufs... is it too late to change my answer? Jan 27 01:49:03 bankai, what's protobufs Jan 27 01:50:03 ok googled it Jan 27 01:51:16 what is a good place to establish db connection in a webservice?, don't see good examples of it online... any suggestions?? Jan 27 01:51:33 why are you connecting directly to a db? Jan 27 01:51:48 This is almost always a terrible idea, because you are giving out credentials to your database with your application Jan 27 01:56:54 hello Jan 27 01:58:42 how can i read json files in assets folder? Jan 27 02:09:45 sonOfRa, will connect webservice to db... Jan 27 02:18:30 anything else you can recommend? Jan 27 02:28:13 stream ? Jan 27 02:32:09 ok thanks all, bye 4 now... Jan 27 02:53:25 fly2web: get an asset manager instance, call open, and then read the input stream. Jan 27 02:53:40 JakeWharton: thanks **** ENDING LOGGING AT Mon Jan 27 03:00:00 2014