**** BEGIN LOGGING AT Sun Sep 01 02:59:59 2013 Sep 01 04:45:39 http://i.imgur.com/Z2lOrrj.gif Sep 01 05:21:10 Hello. Sep 01 05:21:45 Is this channel active? Sep 01 05:27:25 WolfAkela, نعم yes it's Sep 01 05:27:47 WolfAkela, looking for help? just shoot it out Sep 01 05:37:32 How do I build https://github.com/donnfelker/android-bootstrap with the target sdk 18? Sep 01 05:44:31 nm, got it working Sep 01 05:58:09 superlinux-hp, sorry I had to go out for a bit. I'm wondering how you do something like this: http://i.imgur.com/9mMtJL8.jpg Sep 01 05:58:22 just a sec Sep 01 05:58:49 this is a Listview Sep 01 05:58:50 I can do it fine if I'm just setting the title, but I can't figure out how to set the subtitle Sep 01 05:59:08 use ArrayAdapter Sep 01 05:59:33 and make a layout. Sep 01 06:00:05 same with spinner I have.. just a sec Sep 01 06:00:18 Aight. Sep 01 06:00:23 Yeah, it's how I made it so far. Sep 01 06:00:40 ah great then so you did. Sep 01 06:00:46 I created a layout with textviews, then used it with ArrayAdapter like this: http://pastebin.com/7WHXMHAj Sep 01 06:01:02 add the rest of views too Sep 01 06:01:06 it must work Sep 01 06:01:12 My problem is that I don't know how to say "set the R.id.text_subtitle too" Sep 01 06:01:57 shouldn't you have done a List<> object? Sep 01 06:03:01 ArrayAdapter(Context context, int resource, List objects) <---- this one? Sep 01 06:04:01 yes I think so Sep 01 06:04:34 Does that mean I have to insert the views via code instead of defining them on the XML? Sep 01 06:04:39 WolfAkela, cos this is how populate a spinner from a database Sep 01 06:05:39 someone knows how to handle onTouchEnd onMouseUp correctly with javascript? when i touch a element, and move my finger away no event for mouseUp or touchEnd gets fired ;( Sep 01 06:05:42 if you want the spinner items for example to wrap,you have to it in java and NOT XML Sep 01 06:07:16 superlinux-hp, thanks. I'll try it. brb Sep 01 06:08:10 WolfAkela, just try any of the adapters and see which works for you Sep 01 06:16:30 Using Akka on Android with ProGuard seems to be rather painful experience. Sep 01 06:18:00 +a Sep 01 06:28:57 how common is using maven with android development? Sep 01 06:30:13 or what should I use instead? Or is it best to just use eclipse? Sep 01 07:42:50 sqlite stores a date in UTC, is it possible to have it auto convert to localtime when using a content provider? Sep 01 07:43:49 "datetime("+Constants.COLUMN_TIME+", 'localtime')", worked when just reading straight from the db with a query but doesn't work when using a content provider link Sep 01 07:54:13 Mrono its usually best to jus store epoch time in db Sep 01 10:26:43 is there a better IDE for android dev than Eclipse? Sep 01 10:33:21 Android Studio / IntelliJ IDEA Sep 01 10:36:28 hm, is Android Studio ready?\ Sep 01 10:37:18 Still in beta, but it works Sep 01 10:37:21 also, C++ support seems rather incomplete. I have some errors that originate in boost libraries Sep 01 10:37:28 is there anything I can do? Sep 01 10:38:03 particularly, there is a problem with limits.h Sep 01 10:41:18 ooo ipv6 RustyShackleford Sep 01 10:44:14 Hi. Any idea why i get (sometimes) this error while showing a dialog? http://pastebin.com/B2LtRQ1Z Sep 01 11:10:04 hi.. how do I open a file when path starts with file://? Sep 01 11:12:29 Intent i = new Intent(); i.setAction(androic.content.Intent.ACTION_VIEW); i.setDataAndType(Uri.fromFile(yourfile), "datatype.."); startActivity(i); Sep 01 11:12:58 smth like that depending on the file you want to open (text, image, video, website, audio, whatever) Sep 01 11:51:21 what's the best way to learn android development? am using android studio but most tutorials are based on eclipse, and I've come across a few problems, haven't had much experience in Java so should I learn that first, or is it ok to learn java through android development? Sep 01 11:59:56 weendox: I started with eclipse Sep 01 12:00:08 just moved everything to android studio recently Sep 01 12:00:27 using eclipse at first was nice because all the tutorials were the same Sep 01 12:00:43 but as soon as you get a grasp of the basics you won't need to use a certain one Sep 01 12:01:35 Mrono yeah that's what I'm finding, no tutorials are using AS, mostly all eclipse Sep 01 12:02:14 yep Sep 01 12:02:19 though I didn't use any tutorials Sep 01 12:02:25 too impatient Sep 01 12:02:37 i usually rip out the code and try it on my own Sep 01 12:04:42 seems like so much to learn though haha Sep 01 12:04:50 i hardly have patience for tutorials either Sep 01 12:04:53 just wanna get into it Sep 01 12:04:56 but no idea what it all does Sep 01 12:07:31 yeah Sep 01 12:07:57 it's taken me a long time to finally get a grasp of it Sep 01 12:08:15 and i'm talking about giving up a few times and coming back to it months later Sep 01 12:09:34 yeah Sep 01 12:10:39 i'm only just now actually making good progress Sep 01 12:11:09 how long has it been for you? Sep 01 12:12:12 what is this error in android Sep 01 12:12:12 java.lang.NullPointerException Sep 01 12:12:12 ? Sep 01 12:12:47 bing give you many resources for that exception Sep 01 12:12:57 check Sep 01 12:13:28 shur: I know what it is in java. Sep 01 12:13:36 I dont have any error in my code now Sep 01 12:13:53 I only rename the project name Sep 01 12:15:45 check all settings files of the project and use "close" and "open" project, and "restart eclipse", fix mistakes, eventually will build ok Sep 01 12:16:25 sometimes projects from the internet are several years aged and must be heavily fixed Sep 01 12:18:07 shur: hah.. it is my own code Sep 01 12:19:05 I hate null pointer exceptions Sep 01 12:19:09 if you make project metadata, class names, etc. match, it builds ok Sep 01 12:19:16 weendox since what Sep 01 12:19:18 Hi. Any idea why i get (sometimes) this error while showing a dialog? http://pastebin.com/B2LtRQ1Z Sep 01 12:19:30 Mrono to get the hang of it Sep 01 12:19:58 mmm a year and a half? Sep 01 12:20:31 ok :) is that from no experience to making apps? Sep 01 12:20:31 but about 2 weeks ago I sat down and really dug into it, I was essentially starting fresh since it'd been so long since I gave up Sep 01 12:21:08 so far i've got a custom array adapter, content provider with sql database, GCM listener Sep 01 12:21:13 essentially Sep 01 12:23:46 ok cool :) Sep 01 12:31:22 shur: I cleared everything except setContentView(R.layout.activity_main); but still not working Sep 01 12:31:55 I also tried restarting eclipse and rebuilding Sep 01 12:41:46 Quick question, since I'm having a reeeeally hard time deciding on design and navigation pattern here, someone might give me a hand? Sep 01 12:42:28 Basically, the app I'm developing for myself has two major sections, a library and a marketplace. The marketplace is kinda self explained, has a search, some categories and what not. Sep 01 12:42:41 The library has several lists that I need to be able to switch between. Sep 01 12:42:54 Now I just can't think of a pattern that suites my needs as I want. Sep 01 12:44:18 At first I was going for a Navigation Tabs for switching between Library and Marketplace, and a Drop-down navigation to switch Listing in Library. But mixing these two seems kind of ... Messy Sep 01 12:44:51 I do like the Navigation Drawer though, but that seems a bit excessive for just two major functions in an entire app. Sep 01 13:16:31 shadej, null pointer exceptions are exactly the same as in java Sep 01 13:16:45 and they're the easiest ones to fix... Sep 01 13:17:12 the only reason to hate them is because you suck... Sep 01 13:17:16 pfn: yeah, but it was weired error Sep 01 13:17:37 it's never weird Sep 01 13:18:09 it was to mean the emulator was disconnected you suck now :[ Sep 01 13:19:15 disconnected emulator doesn't result in an npe in android Sep 01 13:19:28 you're being awfully shady and vague Sep 01 13:20:13 pfn: it was I fixed it by restaring the emulator Sep 01 13:20:50 so you say Sep 01 13:21:21 you never clearly showed the problem, so I can't believe you Sep 01 13:24:54 Does anyone know how to change a Text View? Sep 01 13:25:19 that's a wierd question. Sep 01 13:25:35 I've tried textview.setText("text"); Sep 01 13:25:40 but it doesn't change it Sep 01 13:25:56 sure it does. Sep 01 13:26:03 it just means you messed up something else :) Sep 01 13:26:19 Well, I tried textview.setText(string); Sep 01 13:26:26 Guessing I need a "" in front of the string? Sep 01 13:26:27 markyosullivan, It's probably not bound properly, setText() is the proper method for it. Could you verify that it's actually bound? Sep 01 13:26:46 markyosullivan, A "" in front of the string? Sep 01 13:26:51 When you say bound what you mean jonet Sep 01 13:26:59 Yeah, "" + string Sep 01 13:27:25 huh, this is not javascript :P Sep 01 13:27:30 My text view is originally £0.00, if I hit the calculate button, it changes Sep 01 13:27:45 However I'm trying to remove the button and have automatic calculations yet it's not working Sep 01 13:27:45 By bound I mean, did you retrieve the reference to the actual TextView accordingly? Most of the time that involves a findViewById(). Sep 01 13:28:16 Mavrik, However "" + string is a perfectly fine syntax, if the variable string is a string that is. Sep 01 13:28:20 Yep, initialised all the variables, one of the first things I checked Sep 01 13:28:46 But markyosullivan, if string is in fact the type of a String, then concatenating "" is quite redundant. Sep 01 13:28:50 just tried setText("text"); used a toast to check, toast = text, yet the Text View doesn't change Sep 01 13:28:50 jonet, it's still an ugly javascriptism for which I'll hit my devs any day ;) Sep 01 13:29:00 we have other methods of converting strings Sep 01 13:29:03 Mavrik, True. Sep 01 13:29:12 Can I use the ATT "basic" phone data through android? Sep 01 13:29:32 markyosullivan, It would really help if you posted the actual code instead of hinting what you're trying to achieve. Sep 01 13:29:34 markyosullivan: Did you forget what we discussed about asking smart questions? Sep 01 13:29:43 :/ Sep 01 13:29:55 And if you're going to post the code, _please_ post it as a gist! Sep 01 13:29:59 Okay, hold on I'll post the code and try to explain what I'm trying to achieve Sep 01 13:30:19 markyosullivan, https://gist.github.com/ Sep 01 13:30:27 Just in case you didn't know Sep 01 13:31:26 http://pastebin.com/u51DNb5L Sep 01 13:31:36 Always use pastebin, don't know why Sep 01 13:32:21 Okay, so the text view I'm looking to change is the Weekly Balance number called tBalanceNum Sep 01 13:33:10 it's set as £0.00 in the XML layout but I update it after doing a calculation (balance = income - expense) Sep 01 13:33:50 All of my code worked perfectly fine when I used a 'calculate' button which was essentially just the same code that I'm using atm Sep 01 13:34:29 So where are you calling it now then? Sep 01 13:34:52 I've converted the text view to a string called 'sBalanceText' which is compared to a string called 'sBalance' which contains the correct Balance amount Sep 01 13:35:05 Calling it onCreate SimonVT Sep 01 13:36:11 Because my Income and Expense values are imported, so everything I need to calculate the Weekly Balance is already there Sep 01 13:36:56 Your pastebin really isn't very useful, the only additional info is how you construct the string.. Sep 01 13:38:11 markyosullivan, Just what SimonVT said. You need to paste the entire Activity for us to understand exactly what matters. Sep 01 13:39:22 Also, _always_ use String.equals() when comparing strings. Using == when comparing two strings is to compare the actual reference, and I doubt they're the same strings so that will always return false. Sep 01 13:39:38 Maybe I should try that Sep 01 13:39:39 hold on Sep 01 13:40:01 I think I did have .equals originally Sep 01 13:40:06 but changed it because it wasn't working Sep 01 13:40:11 I really really doubt that, but yeah go ahead. And while you're at it, do post the entire Activity. Sep 01 13:40:37 Still not working Sep 01 13:40:42 http://pastebin.com/7eH6dXHL Sep 01 13:41:12 The thing is though, the toast is saying that the text view has the correct amount, but it hasn't changed on the display Sep 01 13:43:51 markyosullivan, What as it you're trying to achieve again? Sep 01 13:44:25 tBalanceNum to display a Weekly Balance num Sep 01 13:44:46 And you want that to happen as soon as you alter a TextField? Sep 01 13:44:58 Just on create Sep 01 13:45:18 Want it to calculate it as soon as the activity is opened Sep 01 13:45:41 You can see my old calculate button - cal.setOnClickListener Sep 01 13:46:13 You're resetting the text onResume again Sep 01 13:46:27 hello everyone! I have a question regarding GridView Sep 01 13:47:10 First, in onCreate you're setting the text accordingly, but then in onResume you're retrieving the previously stored balance from SharedPreferences and sets that instead. Even though you haven't saved anything in the preference. Sep 01 13:47:18 I have a GridView displaying ImageViews, and I would like to refresh only one of the items at a given time Sep 01 13:47:39 markyosullivan, Comment out line 211 - 213 and see if that makes a difference. Sep 01 13:48:18 shibakaneki, So get a reference to that item in your adapter and update it? Sep 01 13:48:42 that is what I am doing but it is not refreshing on the screen Sep 01 13:48:58 You need to notify the view that a change has occured in the adapter Sep 01 13:49:02 jonet: it works now :) Sep 01 13:49:10 markyosullivan, Good Sep 01 13:49:13 i see many examples on stackoverflow using notifyDataSetChanged Sep 01 13:49:23 So I don't need onResume()? Sep 01 13:49:27 Eh? Sep 01 13:50:17 Depends on what you want to do with the data, but I would probably just move the balance calculation to onResume. Sep 01 13:50:44 shibakaneki, Yes, that tells the view to refresh the loaded data. Sep 01 13:51:26 ugh, I can't import google api's into android studio Sep 01 13:51:42 it's so much better but it doesn't interface with google very well Sep 01 13:51:48 Mrono, Then you have a missconfiguration, mine works fine. Sep 01 13:51:58 thx Jonet, I will digg a bit around that Sep 01 13:51:59 Hello Sep 01 13:52:00 Any1 know about the Amazon apps store? I am trying to use the app store app and when I go to my apps it is blank(black). I want to be able to buy something on the computer when I see it without having to try and find it in the ap store Sep 01 13:52:26 Okay, will try it out now Sep 01 13:52:26 LLckfan, That has nothing to do with Android Development whatsoever. Sep 01 13:52:58 from a dev angle, is the Amazon app store identical to the Play store? Sep 01 13:53:38 packaging is the same, there aren't app store keys involved in limiting apps based on where they came from, etc. are there? Sep 01 13:54:30 and i guess the same question applies to apps on the cyanogen app store Sep 01 13:54:36 Oh wait, LLckfan did you mean "my apps" as in the applications you have published on Amazon? Sep 01 13:55:42 unrelated: are there forums that are more design oriented? i want to connect up with a designer or a forum Sep 01 13:55:51 NO Sep 01 13:56:00 as in the ones I have brought Sep 01 13:56:30 Then no, that is not related to Android Development and you'd be better of asking that question on any support forum that deals with Amazon App Store or similar. Sep 01 13:56:43 There is n one Sep 01 13:56:56 Do I need to use Fragment for ActionBar.onNavigationItemSelected()? Sep 01 13:57:42 Nope Sep 01 13:58:31 jonet: Big thanks for helping me with that :) Sep 01 13:58:41 markyosullivan, No worries. Sep 01 13:58:57 and big thanks to everyone else who has helped, pretty sure my app is basically ready to be tested one last time before Beta release :) Sep 01 13:59:09 *alpha tested before beta Sep 01 13:59:25 markyosullivan, Glad to hear, good luck and all the best! Sep 01 13:59:28 How many apps has everyone in here made? Sep 01 13:59:37 markyosullivan, Personally or professionally? Sep 01 14:00:04 Is it fine to use if statements on the onNavigationItemSelected() and then use an Intent to start a new Activity? Sep 01 14:00:05 Both :) Sep 01 14:00:34 Profesionally, 6 or 7. Personally, none. I hate having to come up with a design, or even now just figuring out what navigation pattern to go with >.> Sep 01 14:01:30 I'm not happy with the way I navigate through activities :\ Sep 01 14:01:59 I use a drop-down menu, but I'm considering switching to a Main Menu, would probably be a lot better Sep 01 14:02:40 Yeh, anyway, best of luck. I'm off! Sep 01 14:06:15 i'm not even happy with making those decisions myself yet, about navigation and design. spoiled, i guess. i've seen it done so well i would just hate to go do a crappy job of it. Sep 01 14:06:48 i can code like a fiend when i know where i'm going but nailing down a design for that purpose has always been The Hard Part Sep 01 14:17:27 anyone using android studio ? Sep 01 14:25:53 atm, unfortunately yes Sep 01 14:30:28 Why do I still get the app name and a Spinner when I try to use dropdown navigation? Sep 01 14:36:53 Java HTTP client retries failed requests a few times by default? Sep 01 14:36:57 cute Sep 01 14:37:13 it does? Sep 01 14:38:38 apache httpclient ? Sep 01 14:39:41 apache yes Sep 01 14:40:10 3 retries by default Sep 01 14:40:43 unless i am high and misunderstanding this which is entirely possible Sep 01 14:41:49 that's apache httpclient then Sep 01 14:42:18 yeah... do most ppl use something else? im mucking in older code right now Sep 01 14:43:09 oh you're commenting on the fact that I said "Java HTTP Client", yes i stand corrected there Sep 01 14:47:25 and yeah, most people use HttpURLConnection Sep 01 14:48:43 I wonder how difficult it is to implement keepass sync/merging Sep 01 14:58:48 meh, not worth implementing right now Sep 01 15:45:03 so dead today Sep 01 15:46:08 it's sunday :P Sep 01 15:46:13 * Mavrik fires up his PS3. Sep 01 15:49:50 in eclipse, if you hover a method the android docs are shown, is this also possible in android studio? Sep 01 15:53:42 * hackkitten fires up her PS4 Sep 01 15:54:12 spobat: doubt it if it's anything like the editor it's based on Sep 01 15:54:28 ok Sep 01 15:54:33 :[ Sep 01 15:54:34 I haven't been able to try android studio, though Sep 01 15:54:39 since it's 32-bit Java only Sep 01 15:54:43 does google already recommend android studio? Sep 01 15:54:46 nope Sep 01 15:54:53 it's still termed 'unstable' Sep 01 15:55:02 ADT is still the way to go for now Sep 01 15:55:33 okay :) Sep 01 15:55:39 :) Sep 01 15:58:51 how is android studio different to ADT? Sep 01 15:59:54 intellij :: eclipse Sep 01 15:59:57 that's how it's different Sep 01 16:00:36 pfn: that's how it's different? Sep 01 16:00:45 yes Sep 01 16:00:52 how is it different to eclipse/ADT? Sep 01 16:01:05 google how is intellij different from eclipse Sep 01 16:01:12 alright Sep 01 16:02:12 most sites say android studio/intellij is bette r:/ Sep 01 16:02:14 better* :/ Sep 01 16:02:59 * pfn headscratches Sep 01 16:03:01 but because it's still an 'early access preview' it's unstable Sep 01 16:03:11 why doesn't my share activity when I share Sep 01 16:03:15 show up Sep 01 16:10:32 hi Sep 01 16:10:44 how to change sim serial (imsi) code in emu ? Sep 01 16:12:45 hackkitten: are there yet any speculations about when it will probably become stable? Sep 01 16:16:20 is it correct to say android uses the java language but compile it for a different vm? Sep 01 16:18:54 yes Sep 01 16:23:40 ok Sep 01 16:28:53 how to change sim serial (imsi) code in emu ? Sep 01 16:34:06 Why do I still get the app name and a Spinner when I try to use dropdown navigation? Sep 01 16:38:23 Good evening devs, I'm just starting off with Android Development and was wondering if someone could point to an appropriate library or function for "on new sim card insertion" event handling. Sep 01 16:38:33 spobat: at the rate at which it's progressing I'd easily give it a few more years Sep 01 16:39:25 impedancee: I have used both IntelliJ and Android Studio and I must say I prefer Eclipse/ADT still =/ Sep 01 16:40:50 Is it ok to start a new activity each time the onNavigationItemSelected() method is triggered? Sep 01 16:43:12 Oh nvm, I got my answer on SO. :D Sep 01 16:44:47 SO FTW :) Sep 01 16:45:29 zyngawow: in general it's okay to start a new activity. Just make sure you aren't polluting the back stack or creating circular paths Sep 01 16:51:16 Heya, I have the sdk installed. I have eclipse setup with the sdk. I'd like to be able to debug/test the app on my phone. I can "adb shell" in from the commandline. But the eclipse build doesn't generate an apk. I can build on the commandline via ant. How can I tell eclipse to build the apk for the app? Also, how do I control the name of the generated apk? Sep 01 16:51:30 sorry for the wall of text. if there's a faq i'm missing, clue me in Sep 01 16:53:00 Fah plug your phone in, when you run it go run configure and select the project you want to run then click run, a dialog box should show up with your phone in it, select your phone. Sep 01 16:53:55 Well, it wont run because right now eclipse isn't generating an apk when I hit build Sep 01 16:54:20 don't build just run / run config Sep 01 16:54:23 but i know adb is working, i can use it to push/pull on the commandline Sep 01 16:54:24 ok Sep 01 16:55:08 if that doesn't work go to the sdk manager and install some stuff Sep 01 16:55:20 at least one of the sdk versions of android Sep 01 16:58:00 Yeah, now I'm back full circle to R.class not getting generated Sep 01 16:58:22 I can build things on the cmdline with ant Sep 01 16:58:36 I must have something setup wrong in eclipse, but I pretty much just followed the guide online Sep 01 17:01:03 and i think that was it. I really hate how eclipse poops files with state serialized into them in more than one place. Old workspace. New workspace is behaving better. Sep 01 17:03:16 much closer. The project is building correctly now without help from ant :) Sep 01 17:04:33 sweet, my workspace was somehow trying to use an old no longer valid sdk path. Thanks for the help, I can launch apps correctly n ow Sep 01 17:04:53 you're welcome Sep 01 18:06:38 anyone got good ideas for geometry based Health meter, its for a mobile FPS game, and the full screen blood effect causes performance issues on slower devices. Sep 01 18:09:14 whats a geometry based health meter? are you talking about collision detection? Sep 01 18:09:35 and yeah, you'll want to scale down the effects on the slower hardware Sep 01 18:09:51 tripknotix: fillrate is probably pretty bad on some devices Sep 01 18:10:18 yeah Sep 01 18:10:22 no Fah Sep 01 18:10:33 tripknotix: you could try twiddling the vertex color instead, idk Sep 01 18:10:42 im talking about, maybe making a gear out of geometry, and then taking away peices of that gear as health goes up or down Sep 01 18:11:00 it was a persistent effect before zing Sep 01 18:11:03 but i like how your thinking Sep 01 18:12:55 tripknotix: if you have a image you're showing via full-screen quad or so that doesn't actually cover the whole screen, do make sure you have alpha testing enabled too (source alpha) Sep 01 18:13:11 ok heres the issue Sep 01 18:13:14 its using alpha testing Sep 01 18:13:16 and its full screne Sep 01 18:13:24 so when you get to about 90 damage, we run into almost the same issue Sep 01 18:13:28 i need something WITHOUT alpha Sep 01 18:13:31 litterally geometry based Sep 01 18:13:34 ah yeah Sep 01 18:13:36 and im hoping someone has some good ideas ont hat Sep 01 18:14:20 i'm kinda surprised one quad would affect performance that much tbqh Sep 01 18:14:29 i guess it shouldn't, but eh :P Sep 01 18:14:37 erh, shouldn't surprise me that much Sep 01 18:14:48 well i have other effects that are enable-able Sep 01 18:14:49 bloom Sep 01 18:14:53 lens glare effect Sep 01 18:14:54 fog Sep 01 18:15:01 ...ect Sep 01 18:15:09 bloom's going to kill your fillrate on lesser devices too Sep 01 18:15:10 every single one takes a performance hit Sep 01 18:15:21 even the blood, on a game iwth 30 players on screen Sep 01 18:15:30 its weird, if i onyl have 1 player on screen the blood doesnt effect much Sep 01 18:15:33 but with 30 its super slow Sep 01 18:15:38 BUT if i turn of fblood, it runs smooth with 30 players Sep 01 18:15:42 i do not understand it Sep 01 18:15:49 it must be the way alpha is handled Sep 01 18:16:04 could be the amount of texture memory you're using Sep 01 18:16:06 that the more geometry there is, the longer it takes because it takes into consideration the alpha up front Sep 01 18:16:16 very low texture memory, this is on the lowest settings Sep 01 18:16:26 on highest its 1024x1024on lowest it goes down to 256x256 Sep 01 18:16:28 are you batching things w/ the same texture? Sep 01 18:16:35 it might hel if u try the game https://play.google.com/store/apps/details?id=net.RealDefinition.FutureOpsOnlineAlpha Sep 01 18:16:37 yes Sep 01 18:16:42 im batching buildings, crates Sep 01 18:16:51 players probably get dynamically batches at run time too Sep 01 18:16:51 blood? :P Sep 01 18:17:02 switching textures can be incredibly slow Sep 01 18:17:23 and if you run out of texture memory, it's going to crawl :P Sep 01 18:17:24 with blood turns off for like, blood coming out of zombies, those are actually turned off with a blood effects option... the blood im worired about is the full screen health indicator texture Sep 01 18:17:25 which is blood Sep 01 18:17:29 nope Sep 01 18:17:32 no memory issues Sep 01 18:17:38 tripknotix: how can you be sure? Sep 01 18:17:43 becuase im using profiler Sep 01 18:17:46 for android Sep 01 18:17:50 tripknotix: it doesn't profile the graphics memory Sep 01 18:18:02 3d texture memory is entirely different from system memory Sep 01 18:18:24 at highest texture settings, with a few 2048x2048 and many 1024x1024 i dont have issues, but regardless i turn the settings down to low quality to give 256x256 and that eliminates the possibility of it having to do with the alpha issue Sep 01 18:18:31 vram Sep 01 18:18:36 ok Sep 01 18:18:36 is what im concentrating on Sep 01 18:18:38 not system ram Sep 01 18:18:53 i keep system ram down by only placing resources needed in each scene Sep 01 18:19:03 idk, if you're batching the stuff properly, i guess it can only be the fillrate issue Sep 01 18:19:13 if it's a fillrate issue, it will happen even with no texture at all Sep 01 18:19:27 so with no texture at all it runs smooth as butter Sep 01 18:19:30 with 30+ players Sep 01 18:19:33 and with hd textures Sep 01 18:19:38 but using vertex rendering Sep 01 18:19:48 insteead of forward, because my device doesnt like my fancy speculars in forward rendering =P Sep 01 18:19:56 but everyone else seems to love that specular stuff Sep 01 18:19:57 regardless Sep 01 18:20:04 well Sep 01 18:20:10 in vertex rendering mode, using ambient lit objects, the game runs smooth with 30+ players Sep 01 18:20:13 probably not fillrate then Sep 01 18:20:19 but as soon as i turn on that single full screen alpha, BAM Sep 01 18:20:21 =/ Sep 01 18:20:39 hmmm Sep 01 18:20:42 weird Sep 01 18:20:42 its not noticeable if your just walking, but as soon s youstart turning Sep 01 18:20:44 it chugs Sep 01 18:20:51 maybe you're hitting some sort of software fallback? Sep 01 18:20:59 idk Sep 01 18:21:02 the turns is like 5fps for half a second, i mean i have it designed to skip the frames Sep 01 18:21:04 something funky going on there Sep 01 18:21:07 but your talking about alot of skipped frames Sep 01 18:21:31 well when i have blod on i can walk around everything looks smooth i can turn if no players are in sight, but when i look at the 30+ players shooting eachother =/ Sep 01 18:21:32 ... skip frames? o_O silly game designers :P Sep 01 18:21:39 yes no vsync Sep 01 18:21:42 i turned it off Sep 01 18:21:55 devices have their own syncing enforcements Sep 01 18:22:05 but disabling it on my side, it allows me to render less, and let them worry about what to display Sep 01 18:22:18 smoother gameplay basically Sep 01 18:22:28 proper engine design (which no game designer actually uses) doesn't have any skipped frames. it renders when it can, end of story :P Sep 01 18:23:05 im not skipping the frames... Sep 01 18:23:17 im talking about the difference between vsync on and off Sep 01 18:23:35 its set to off Sep 01 18:23:44 the device itself will enforce its own syncing rules Sep 01 18:23:50 depending on if ios, android, version..ect Sep 01 18:24:05 if it's set to off, it presumably will not synchronize at all Sep 01 18:24:10 exactly Sep 01 18:24:13 it renders what it can Sep 01 18:24:26 if it cant render the scene, it feels like missed frames Sep 01 18:24:32 but doesnt actually skip Sep 01 18:24:37 do u know what im talking about Sep 01 18:24:40 yes Sep 01 18:24:46 instead of going 1 , 15, 30, 45, 60 Sep 01 18:24:48 that isn't what you said earlier though, sorry for misunderstanding :) Sep 01 18:24:54 im going, 1 38, 50, Sep 01 18:24:59 no i understand Sep 01 18:25:04 i said it wrong Sep 01 18:25:11 but i meant, its missing frames Sep 01 18:25:15 which is wha ti want Sep 01 18:25:20 so you get the most up to date frame right away Sep 01 18:25:28 i dont want a player to wait for frame 45 to see frame 38 Sep 01 18:25:34 or frame 60 to see 50 Sep 01 18:26:00 hm anyone can tell me how to start "forensic" why android is not booting due to something in /data ? Sep 01 18:26:02 i have cyanogenmod on the device, it boots with an empty /data .... Sep 01 18:26:04 but some data from some app (or whatever .. you cant tell with android :/ ) gets it stuck at the cyanogenmod boot animation Sep 01 18:26:09 the /data is from some samsung galaxy s that had broken internal memory, move to another samsung galaxy s that was working Sep 01 18:26:12 but now, which logs to read or whatever? "Normal" linux systems are so much easier to grasp ... with useful error messages :/ Sep 01 18:26:21 in any case... rendering with only a single alpha-blend texture, and only going slow when that texture is rendered fullscreen /and/ you are turning would be very very weird behavior for video hardware Sep 01 18:26:25 anyone has a clue on that? Sep 01 18:26:29 Hi. Any idea why i get (sometimes) this error while showing a dialog? http://pastebin.com/B2LtRQ1Z Sep 01 18:27:17 you dont find much on that ... seems only the app development is documented, the system itself is kind of closed ... Sep 01 18:27:38 bluesceada: try #cyanogenmod Sep 01 18:27:42 zinx it only happens as soon as 30 players are on screen with that full screen alpha on Sep 01 18:27:49 if i turn it off, it rusn smooth as butter with those 30 players Sep 01 18:28:07 also, it doesnt happe if only 5 players are on screen Sep 01 18:28:10 with the full screen texture on Sep 01 18:28:17 like i said Sep 01 18:28:27 it seems to be the way mobile devices handle alpha Sep 01 18:28:27 zinx: ok .. even if this shouldnt be cyanogenmod specific? Sep 01 18:28:40 but .. thanks, i will try Sep 01 18:29:08 tripknotix: try w/ alpha blending disabled Sep 01 18:29:17 tripknotix: obviously you won't be able to see anything, but.. Sep 01 18:29:52 hmm, is there any extra that tells me where ACTION_SEND came from? Sep 01 18:29:58 tripknotix: leave alpha testing on though Sep 01 18:30:10 the shaders i can choose from are alpha blending, alpha cut out, and alpha additive and alpha multiply Sep 01 18:30:17 oh i just found that "adb logcat" might also help here, and I got Failed to mkdir(/data/media/0): No such file or directory Sep 01 18:30:20 repeating... Sep 01 18:30:21 :-) Sep 01 18:30:29 tripknotix: o_O Sep 01 18:30:34 anyway i will rather ask in the cyanogenmod channel further Sep 01 18:30:49 tripknotix: sounds like some engine specific thing :) Sep 01 18:31:02 tripknotix: "alpha cut out" would be what i'm suggesting Sep 01 18:31:11 tripknotix: but if it's a shader, who the f' knows what it's doing Sep 01 18:31:41 i though alpha cut out has issues on low er end devices Sep 01 18:31:47 opengles2 does not make alpha cut out a requirement Sep 01 18:31:50 only alpha blend Sep 01 18:31:54 it makes it part of the spec Sep 01 18:32:01 tripknotix: then disable alpha blending entirely.. Sep 01 18:32:03 but only opengles3 has enforced requirements of the entire spec Sep 01 18:32:11 the image has alpha... Sep 01 18:32:14 its a png Sep 01 18:32:19 tripknotix: this is for testing. Sep 01 18:32:20 it would just be black Sep 01 18:32:26 tripknotix: yes, that's fine for testing. Sep 01 18:32:30 oh man Sep 01 18:32:33 i get what you want to test Sep 01 18:32:42 but i really gotta focus on getting some geometry going Sep 01 18:32:48 ok Sep 01 18:32:56 but what you're describing doesn't make much sense to me Sep 01 18:33:04 i understand Sep 01 18:33:09 if you have an android device, https://play.google.com/store/apps/details?id=net.RealDefinition.FutureOpsOnlineAlpha Sep 01 18:33:10 just test Sep 01 18:33:17 start turning on effects int he options Sep 01 18:33:21 to me, it sounds like a problem with the engine design rather than the hardware capabilities Sep 01 18:33:26 msaa x8 ...ect Sep 01 19:06:30 How can I use drop-down navigation without Fragments? Sep 01 19:09:21 why my application didn't show arabic fonts correctly in android 2.2 ? Sep 01 19:10:18 it works fine in android 4.0 Sep 01 19:14:57 alsum: there were improvements for arabic fonts in 4.0 Sep 01 19:19:11 is there arabic fonts support for android 2.2 ? Sep 01 19:22:06 Hi. Any idea why i get (sometimes) this error while showing a dialog? http://pastebin.com/B2LtRQ1Z Sep 01 19:23:38 i am also new to android Sep 01 19:23:42 so i cant help much Sep 01 19:23:48 Use DialogFragment Sep 01 19:23:49 but what does your error say? Sep 01 19:24:17 Unless you know how to manually manage dialogs properly, you shouldn't do it Sep 01 19:29:52 https://lh4.googleusercontent.com/-tRyf_4nkpU0/UiOVdSQqHwI/AAAAAAAAFGw/kPLYK-64_6o/w351-h562-no/13+-+1 Sep 01 19:29:55 almost donessssss Sep 01 19:30:02 I did something to my res/values/strings.xml file and now all the names have "class or interface expected" Sep 01 19:33:49 pfn: you're writing a lastpass app? Sep 01 19:34:14 JesusFreke, no Sep 01 19:34:30 JesusFreke, I'm enhancing keepassdroid to be able to send passwords from anywhere with a share action Sep 01 19:34:35 maybe add a global search provider, too Sep 01 19:34:47 err, keepass app*. but yeah. Sep 01 19:37:41 JesusFreke, https://github.com/bpellin/keepassdroid/pull/38 I submitted that pull request the other day Sep 01 19:38:24 Hi could someone help me to debug or fix the widget in http://stackoverflow.com/questions/18561990/extend-analogclock-and-widget Sep 01 19:38:27 nice Sep 01 19:38:59 now I'm haxoring on the contentprovider client Sep 01 19:39:09 which I'll publish as a for-sale app, in addition to making open source Sep 01 19:39:50 elec29a: You can't use custom views in app widgets Sep 01 19:40:26 oh crap and there is no way ? Sep 01 19:40:33 No Sep 01 19:40:38 cry Sep 01 19:40:42 you can use drawables to simulate custom views Sep 01 19:40:52 The docs tell you which views are supported in app widgets Sep 01 19:40:54 as long as they're entirely in your resources Sep 01 19:40:55 elec29a: the widget has to be hosted in another process Sep 01 19:41:15 it would be a huge security hole if you were able to run your own code in another app's process Sep 01 19:41:25 which is why you can't use custom views Sep 01 19:42:14 I'm struggling with the NDK. I think my problems might be with Eclipse Sep 01 19:42:42 Wouldn't that mean you're actually struggling with Eclipse then? :) Sep 01 19:43:01 I'm trying to use Boost. Eclipse compains about a bunch of errors originating in Boost Sep 01 19:43:25 However, ndk-build runs without error Sep 01 19:46:17 then ignore eclipse :p Sep 01 19:47:22 https://developer.android.com/guide/topics/resources/string-resource.html when i try and use getString it fails, I assume I need to import something that isn't mentioned in the article Sep 01 19:48:05 pfn can you point me to a sample for using drawables in widget ? Sep 01 19:48:11 you need a context Sep 01 19:48:18 RiotingPacifist Sep 01 19:49:34 elec29a, no Sep 01 19:49:44 go read xml drawables in d.android.com Sep 01 19:50:13 zhulikas: I put a hardcoded value into res/vales/strings.xml but when I try and retrieve it into java using the sample that i linked to getString can't be resolved Sep 01 19:50:18 well the problem with eclipse - I can't install the app to my phone if eclipse thinks there are errors Sep 01 19:50:38 hmm, what should I use to communicate with my server, GCM CCS or HTTP Sep 01 19:50:49 I suppose I could just use a plain text editor. I like IDE's though Sep 01 19:51:11 RustyShackleford: if you're looking for a good IDE check out sublime text Sep 01 19:51:26 notepad++ is good and emacs Sep 01 19:51:49 Sublime Test is a great text editor. It is NOT an IDE Sep 01 19:51:52 Hi. Any idea why i get (sometimes) this error while showing a dialog? http://pastebin.com/B2LtRQ1Z Sep 01 19:52:14 Do you really write android apps without an IDE? Sep 01 19:52:41 the specific line i get the issue on is private string ResourceID = getString(R.string.resourceID);, I don't have any imports beyond import android.* Sep 01 19:53:03 I guess now that you mention it i've just been calling it an IDE when it isn't Sep 01 19:53:13 amazing text editor though Sep 01 19:53:46 after working with android studio I wish it had some of the stuff in there, the bits that tell you about stuff Sep 01 19:54:11 maybe android studio coexists with the NDK better? Sep 01 19:54:59 i believe my problem boils down to "intellisense" not finding the appropriate stdc++ libraries Sep 01 19:55:16 I'm not a big fan of C++ Sep 01 19:55:24 and less so of java Sep 01 19:56:10 at least we found the mythical Ada guy! Sep 01 19:56:18 last* Sep 01 19:57:22 Mrono, for both of those I find an IDE to be extremely helpful. Those are painful languages to write in a basic text editor Sep 01 19:57:48 also debugging: does anyone use a commandline debugger? Sep 01 19:58:00 gdb Sep 01 19:58:27 i've used gdb frontends (like qt creator), but it looks horribly tedious to use gdb on the command line Sep 01 20:00:44 It is powerful enough Sep 01 20:01:14 That is the reason why it keeps being that way Sep 01 20:01:21 It is raw, but powerful Sep 01 20:11:41 what's so tedious Sep 01 20:11:47 hit enter a shitton of times Sep 01 20:11:51 type list on occasion Sep 01 20:12:50 I think "do something a shitton of times" is pretty much the definition of tedious :) Sep 01 20:12:59 hackkitten: alright :) Sep 01 20:13:27 :) Sep 01 20:14:05 it's also fun debugging android apps using jdb Sep 01 20:14:18 even without source :D Sep 01 20:15:05 I have an Activity, which uses a fragment. The Fragment kicks off an AsyncTask, and reports some data back to the fragment, who in turn will send a signal to the activity. the activity may already be destroyed at this stage Sep 01 20:15:23 Should my fragment hold a reference to the activity? should this be a weak reference? Sep 01 20:15:32 fucking awesome, intellij is smoking crack on me Sep 01 20:15:50 it's highlighting everything as an error in the android sdk even though it's setup correctly... Sep 01 20:16:03 pfn: that can also be caused by the user smoking crack Sep 01 20:16:05 just sayin' :) Sep 01 20:17:23 maybe Sep 01 20:17:27 intellij's make runs fine Sep 01 20:19:23 i has that problem installing AS Sep 01 20:19:28 hi g00s o/ Sep 01 20:19:40 (the last one). just deleted all of its volatile prefs / data Sep 01 20:19:43 hey hackkitten Sep 01 20:19:49 :) Sep 01 20:20:04 .idea , .iml, etc Sep 01 20:20:13 * hackkitten slithers off to bed~ Sep 01 20:20:30 oh htc, http://www.theverge.com/2013/8/31/4679260/htc-top-designers-reportedly-in-custody-after-stealing-trade-secrets Sep 01 20:21:34 * pfn headscratches Sep 01 20:21:36 wtf intellij Sep 01 20:21:45 Hi! Is there a onClick-method you can use on infoWindows() (Google Maps API v2)? Sep 01 20:21:47 even regenerating my project files doesn't restore its state Sep 01 20:22:24 pfn clear cache? Sep 01 20:22:36 what cache Sep 01 20:22:58 File -> Invalidate Caches Sep 01 20:23:18 ah, lets see if that does anything Sep 01 20:24:13 appears to have fixored it Sep 01 20:24:28 my box crashed, must have trashed the cache Sep 01 20:24:29 thanks for that Sep 01 20:24:30 hi, I want a group of people to test my app (group I mean 4), is there a way for then to DL the app and install it on the device without using Google Play ? Sep 01 20:24:57 * pfn wonders why his box crashed... hmm Sep 01 20:25:05 I wonder if the era of instability has begun and it's time to buy a new box Sep 01 20:26:26 Napalm: :) ? Sep 01 20:27:17 anyone here who worked with renderscript? Sep 01 20:27:46 I want to run some computations in renderscript instead of 'for each pixel'. Is it possible? How do I go about doing this? Sep 01 20:27:59 some computations on complete images* Sep 01 20:33:22 Does the android Canvas/Bitmap have convolutions? Sep 01 20:37:11 (I mean native convolutions) Sep 01 20:39:09 Can I change formatting after using "setText" on the textView ? Sep 01 20:39:29 JesusFreke can you think of a way, in ragel, using semantic conditions, to leave submachine active but disable their actions? Sep 01 20:39:37 bluesm_, setText again Sep 01 20:39:39 OR I need to setText again. Sep 01 20:40:06 g00s: It's been too long since I've used ragel :) Sep 01 20:40:21 pfn: Ehh. Even If TextView will hold a lot of words ? There is no other way ? Sep 01 20:40:35 bluesm_, if you getText and it's an Editable, you can edit it Sep 01 20:40:47 all of that knowledge has been paged out Sep 01 20:41:04 hrm, so... now that I've gotten url info into my share activity, what's a good way to get it back to chrome Sep 01 20:41:06 * pfn ponders Sep 01 20:41:06 pfn: And change formatting ? Sep 01 20:41:15 bluesm_, yes Sep 01 20:41:28 JesusFreke :( #ragel has zed shaw, and 2 other guys that are never around Sep 01 20:41:29 pfn: I need to set Spannable, and then change formatting of this pannable on the go. Sep 01 20:41:37 bluesm_, if it's an editable, you can do that Sep 01 20:41:45 bluesm_, maybe if it's a spannable, but dunno Sep 01 20:42:45 pfn: The getText returns CharSequence Sep 01 20:42:54 bluesm_, check instanceof Sep 01 20:43:11 CharSequence can be String, StringBuilder, SpannableStringBuilder, SpannableString, Editable, etc. Sep 01 20:44:17 g00s: I don't even remember what the ragel stuff looks like offhand :) Sep 01 20:44:31 heh Sep 01 20:44:51 I guess I'll start a service and post a notification Sep 01 20:45:22 It's one of those things I could pick back up easily if/when I need to use it again, but in the meantime, it's mostly gone. Sep 01 20:46:32 actually, when i had to look at that code again, i found myself re - reading the whole 70 page pdf Sep 01 20:47:01 there are definitely subtleties :) Sep 01 20:47:16 how did it take you to create a full app ? Sep 01 20:47:21 with networking Sep 01 20:50:34 pfn: It's all true (Editable and Spannable) Sep 01 20:52:21 bluesm_, there you go Sep 01 20:52:28 bluesm_, then just set your styling on those directly Sep 01 20:52:44 bluesm_, and trigger the textview to know that it's changed if it doesn't automatically Sep 01 20:52:54 pfn: But how I could get separate spans I've set ? Sep 01 20:53:18 pfn: Sorry. Sep 01 20:53:40 bluesm_, read the apidoc and figure that out yourself Sep 01 20:54:18 what apilevel did rich notifications get added again? 16? Sep 01 20:55:08 pfn: I need to keep the start char and and char number of the part of string I want to format ? Sep 01 20:55:19 bluesm_, that's how spannables work, yes Sep 01 20:55:34 api16 it is Sep 01 20:56:02 pfn: So there is no way to work like with "DOM" where I could make object out of the span ? Sep 01 20:56:20 no Sep 01 20:56:33 read the api and see what you can do Sep 01 20:57:08 pfn: Ok. Thank you for your time :) Api of the Spannable ? Sep 01 20:57:43 api of all the classes you have access to Sep 01 20:57:52 Ok. Thank you :) Sep 01 20:57:59 hey bluesm_ Sep 01 20:58:37 Napalm: hi:) Sep 01 21:04:40 anyone got any comments on my question ? Sep 01 21:05:32 Damo2k, no, your fragment should not hold a reference to an activity Sep 01 21:05:40 that's a shortcut to memoryleakwille Sep 01 21:05:56 Population +inf Sep 01 21:06:08 I know, thats why I mentoined if I should use WeakReference, or is there a different approach I should use altogether Sep 01 21:06:21 no, WeakReferences don't work as you should Sep 01 21:06:30 no? Sep 01 21:06:31 use getActivity() Sep 01 21:06:35 weakreferences are a great way to bring nondeterministic behavior to your program Sep 01 21:06:38 check if it's still there. Sep 01 21:06:48 suddenly whether you have an instance or not depends on the rate of GC cycles among other things Sep 01 21:06:52 It's fine to hold a reference to the Activity in your Fragment, unless the fragment is retained (via setRetained) Sep 01 21:07:01 if possible, decouple the asynctask logic from UI Sep 01 21:07:10 fragment is retained! Sep 01 21:07:23 Then don't! Sep 01 21:07:26 I'm getting a null from this if the activity is destroyed and not re-created Sep 01 21:07:27 SharedPreferences sharedPref = getSherlockActivity().getApplicationContext().getSharedPreferences( "damo.three.ie.previous_usage", Context.MODE_PRIVATE); Sep 01 21:07:42 Or at least clear the reference in onDetached Sep 01 21:07:50 ! Sep 01 21:08:02 maybe i will ujst check if returns are null explicitely Sep 01 21:08:49 Damo2k, retain the app context rather if you must Sep 01 21:11:29 hmm at this stage, i can silently lt the fragment run its course. thre is nothing more it should do if it has no parent activity Sep 01 21:12:35 hmm, how can I force a notification to expand? Sep 01 21:14:17 To show the big text thing? Sep 01 21:14:38 yeah Sep 01 21:14:45 I don't think you can Sep 01 21:14:47 I mean programmatically, like if the user taps on an ongoing notification Sep 01 21:14:57 because most users don't know to pull to expand :-/ Sep 01 21:15:45 Mavrik: holding onto the application context is safer? Sep 01 21:18:27 hmm, what does CursorAdapter.getItem do... Sep 01 21:19:24 ah, it returns the cursor already at the position Sep 01 21:19:24 handy Sep 01 21:19:55 hello Sep 01 21:47:37 https://lh3.googleusercontent.com/-9jPSMxW3We0/UiO11jNFkXI/AAAAAAAAFHk/qeFP_UmPaQU/w346-h554/photo.jpg Sep 01 21:47:38 getting close Sep 01 21:48:05 I wonder if any of the default views have a close button, like on google music Sep 01 21:50:54 I wish chronometer could count down instead of up... Sep 01 21:51:39 I really don't want to be updating my notification every second... Sep 01 21:57:10 Anyone thats active here now, what all apps do you design? Sep 01 21:57:25 I'm currently working on https://github.com/DamienOReilly/PrepayCredit Sep 01 22:00:44 https://lh3.googleusercontent.com/-9jPSMxW3We0/UiO11jNFkXI/AAAAAAAAFHw/SD55x0YWS_A/w346-h554/photo.jpg Sep 01 22:00:50 https://lh3.googleusercontent.com/-tRyf_4nkpU0/UiOVdSQqHwI/AAAAAAAAFG8/CQrnSNyZOKw/w346-h554/photo.jpg Sep 01 22:00:54 ^^ what I'm hacking on currently Sep 01 22:02:40 I would suggest implementing the quassel protocol Sep 01 22:02:48 but its a bit annoying Sep 01 22:03:12 through thetrr is an open source client - quasseldroid Sep 01 22:03:20 ? Sep 01 22:03:23 pfn, your doing what ? Sep 01 22:13:37 is someone here familiar with renderscript kernel prototype? Sep 01 22:14:28 First I was having a single asynctask and my app was working now I divided the single asynctask to 2 asynctasks . but my application is crashing saying "the app may be doing too much work on the main thread.." Sep 01 22:15:48 any 2 async tasks? Sep 01 22:15:50 See this question, http://stackoverflow.com/questions/11999260/check-if-menuitem-is-in-actionbar-overflow does anyone have a better solution to this? Sep 01 22:18:07 Solution: don't try? Sep 01 22:24:02 has anyone used jaxb to generate classes from xsd scheme using gradle/android studio? Sep 01 22:35:16 SpearThruster i haven't but its probably similar to what i do with ragel; hook into the various variants and create a dependency of type exec task which takes your xsd and chucks it into build/generrated-src/jaxb/com/spearthruster. then add that path to your sourceset Sep 01 22:35:53 i dont know anything about jaxb though Sep 01 22:39:46 jesus christ java, I know I commented out that line and nothing throws that exception type right now, LEAVE IT ALONE Sep 01 22:40:18 hello Sep 01 22:40:54 also "{\"name\":\"test\",\"key1\":\"value\"}" is valid json, stop saying it's not! Sep 01 22:42:45 g00s, yeah sure the thing is I know nothing about gradle Sep 01 22:43:01 but been toying around with Android (and hence Android Studio) Sep 01 22:43:14 which apparently uses gradle as its build system Sep 01 22:43:23 so I am kinda at a loss of how to go about this thing :d Sep 01 22:43:39 just modify your gradle.build. AS will pick up the new classpath Sep 01 22:44:06 then sync the model to AS, that little button on the top that has the gradle symbol with a down arrow Sep 01 22:56:01 When working with maps, I need the ability to occasionally delete markers. I currently have it setup, if the correct flag is set, to delete the marker clicked onMarkerClick. The marker deletes correctly, however, it still shows the infoWindow in place. I tried setting hideInfoWindow at the moment of deletion, but had no luck. I have also tried modifying a infoWindowAdapter, but it didn't work. Sep 01 22:56:11 Does anyone have any suggestions? Sep 01 22:56:55 Execution failed for dexDebug Sep 01 22:57:00 what the heck is this crap Sep 01 22:57:01 :< Sep 01 22:58:38 SpearThruster: sorry, wish I could help with that one Sep 01 22:59:05 epsilonorion, have you experienced it? Sep 01 22:59:39 a long time ago, but I don't think I ever really found a solution for it, just got lucky Sep 01 23:00:42 now I am just banding my head against changing code from maps v1 to v2 Sep 01 23:00:45 epsilonorion, there seems to be no solution either Sep 01 23:00:55 heh, I am doing google maps project as well Sep 01 23:00:55 :D Sep 01 23:01:02 I have the integration done Sep 01 23:01:11 but gradle and AS are getting the best of me Sep 01 23:01:32 I had found that before as well. I reverted alot of code, recreating parts slowly to find the error. In the process, I must have removed it but never specifically found it Sep 01 23:01:47 I finally got past that part myself. Also using Gradle and AS Sep 01 23:01:56 have multiple fragments, including a viewpager setup Sep 01 23:02:03 Big Ranch Nerd author says in his book, "We write apps to be compatible with Gingerbread and Froyo devices". Is it better to learn android programing from Android 4 and above? or should I continue with this book? Sep 01 23:02:40 epsilonorion, did you had the chance to encounter Sep 01 23:02:51 the no map namespace prefix in the views? :D Sep 01 23:03:01 Anyone? Sep 01 23:03:35 node: covering that stuff is fine... you should target for.. say ... API 8 if you can Sep 01 23:03:56 node: I believe it is honestly up to you. A lot of the tools for Gingerbread and Froyo transfer over. For me, I simply just jumped into development and read what I needed for the versions I needed. I wouldn't say that is the best option Sep 01 23:03:57 I found out what seems to be the issue Sep 01 23:03:59 'javax.xml.bind:jaxb-api:2.1' Sep 01 23:04:01 target api9 Sep 01 23:04:05 this library is causing problems Sep 01 23:04:05 don't even bother with 8 Sep 01 23:04:06 :((( Sep 01 23:04:22 SpearThruster: interesting. I did not have that exact issue Sep 01 23:05:53 bankai_ epsilonorion, For no reason I'd like to start with more modern stuff, but because this book has too good reviews, it's tempting to start with it Sep 01 23:06:05 books are overrated Sep 01 23:06:07 read d.android.com Sep 01 23:06:10 much better Sep 01 23:06:44 But books have more examples. Sep 01 23:06:44 Error: abnormal build process termination Sep 01 23:06:44 rofl Sep 01 23:06:49 there are a bazillion examples on d.android.com Sep 01 23:06:50 node: books are nice if you are in a situation where you are lost or need direction. I have found if I know what I want to do it is best to follow that path first. You sometimes learn more since it is in your direction Sep 01 23:07:09 I then use the books and sites as additional information and examples Sep 01 23:07:51 I get many GC_FOR_ALLOC while my app running. is this normal? Sep 01 23:08:03 epsilonorion: That's very true. I just thought if I go through at least one book, I might get a good idea on what to use when I start developing an app. I may then explore however my needs are Sep 01 23:08:22 under: windows ? Sep 01 23:08:33 yes Sep 01 23:09:02 what's the matter with windows? Sep 01 23:09:19 the only windows machine i have access to is XP and it pains me to use it, i get those errors all the time. Linux ( or really anything else ) is much nicer with android stuff IMO Sep 01 23:10:00 come to think of it it's probably memory if it's an 'alloc' error Sep 01 23:10:00 under: I bounce between windows 8 and linux. I have those errors, but it does not seem to affect my program Sep 01 23:10:14 I also get: I/dalvikvm-heap(32701): Grow heap (frag case) to 10.306MB for 62096-byte allocation Sep 01 23:10:15 (not many) Sep 01 23:10:16 but it is typically related to your memory as you run your app Sep 01 23:10:34 under, that's absolutely normal Sep 01 23:11:46 mmmh ok Sep 01 23:11:46 you will see it quite often with no affect to your application's ability Sep 01 23:12:32 ok i was worried a bit, thanks Sep 01 23:13:18 How can i get notifications, when I click on them, to take me to the saved instance of my activity? Sep 01 23:13:34 yaodin, you pass extras along with your pendingintent Sep 01 23:13:39 yaodin, restoring state is up to you Sep 01 23:15:02 node how old is that book ? Sep 01 23:15:03 anyone have an idea on how to not show the infoWindow when you delete a marker on a google map. I currently delete the marker if a flag is set in the onMarkerClick function. Sep 01 23:15:10 pfn, what is the method to do that? Sep 01 23:15:32 setLastestEventInfo isn't working Sep 01 23:16:24 yaodin, you set extras on the Intent Sep 01 23:26:18 thanks pfn Sep 01 23:26:39 g00s: The new edition Sep 01 23:26:55 g00s, are you a keepass user? keepassdroid? Sep 01 23:28:35 I need a 1Password client for Android that doesn't suck immensely. Sep 01 23:29:05 my new keepass share thing is working out nicely Sep 01 23:29:47 pfn i just use keepassx Sep 01 23:30:54 g00s, yeah, because you absolutely refuse to use a modern device :p Sep 01 23:30:57 that's too bad Sep 01 23:31:10 pfn i just maintain my app. i dont even use android. Sep 01 23:31:22 g00s, yeah, I know, do you use any mobile OS at all? Sep 01 23:31:27 iOS Sep 01 23:31:33 oh, did you get yourselfa n iphone Sep 01 23:31:39 no, kist iPod touch Sep 01 23:31:47 and you use that regularly? yuck Sep 01 23:31:48 i dont use phones either Sep 01 23:31:51 I need to ditch mine Sep 01 23:31:55 I see Sep 01 23:32:20 google music all access has totally made my ipod so useless Sep 01 23:41:56 https://github.com/pfn/keepshare Sep 01 23:41:57 weee Sep 01 23:42:00 what is the name of that blue effect that is showed, e.g in a listview, at top and in a bottom when you reach the limits? Sep 01 23:42:07 overflow thingy Sep 01 23:42:12 overscroll Sep 01 23:42:23 thanks Sep 01 23:46:40 ok, time to get dressed to go out Sep 01 23:54:30 hello, world Sep 02 00:01:23 I want to include boost in my NDK project Sep 02 00:01:33 where should I put the source files? Sep 02 00:01:58 I'm having a hard time getting eclipse to work with boost in the jni/ folder Sep 02 00:08:33 Anyone familiar with google maps, markers, and infoWindows. I am trying to handle the removal of a single marker. I currently have it happening when a marker is clicked, but the InfoWindow still shows. How can I stop it? Sep 02 00:21:27 another question is how to simply turn off the infowindow for markers. I may be able to work backwards if I figure that out Sep 02 00:23:48 hello, #java seems to be invite only Sep 02 00:24:08 so i will pose my question here as it is somewhat related to android dev anyways Sep 02 00:24:12 post Sep 02 00:24:35 try ##java Sep 02 00:24:51 thanks, it worked Sep 02 00:35:18 anyone know if I can use android studio to build non-android java programs? I would rather not install a separate copy of intellij for normal java Sep 02 00:35:58 damccull, just install intellij Sep 02 00:36:04 no android studio Sep 02 00:36:16 pfn but I like android studio for android. already use it. Sep 02 00:36:22 AS is purely android and Java only Sep 02 00:36:42 isn't all of AS's stuff available in intellij? Sep 02 00:36:43 but can i do non-android java with it? :) Sep 02 00:36:45 then wait for intellij 13 Sep 02 00:37:05 you can do basic non-android java Sep 02 00:37:20 okay, if anyone is interested from my earlier problem. I apparently kept missing this. If you do not want to animate to the marker or show the info window, just return true onMarkerClick. Returning false will animate and show the window. While returning true, you can either use the showInfoWindow command to display the info, or you can use the animateCamera option to center. Sep 02 00:37:24 sweet. that's all i needed to know. thanks pfn Sep 02 00:37:26 no EE, no alternative jvm languages Sep 02 00:38:35 gkatsev, intellij doesn't incorporate all features until 13 Sep 02 00:38:45 pfn: ah, ok Sep 02 00:38:48 13 early preview out Sep 02 00:38:54 anyone know when 13 will be out ? what i'm still wondering though, is when 13 is out, if you can get 100% android experience with it and the android plugin, or if you'll have to keep using AS which is more than just the plugin. i know eclipse ADT bundle vanilla eclipse + ADT Sep 02 00:39:30 damccull, as I understand it, eap has everything in studio, outside of gradle support Sep 02 00:39:45 pfn cool. Sep 02 00:40:19 android gradle is too shitty to support yet ;-) Sep 02 00:40:46 pfn probably but I still use it so when it's not I'll already know how lol Sep 02 00:41:49 indeed Sep 02 00:44:22 man, feedly has some annoying ux niggles Sep 02 00:44:28 * pfn & Sep 02 00:44:45 I've been using and liking newblur Sep 02 00:44:47 newsblur Sep 02 00:46:16 * g00s is considering leaf 2 Sep 02 00:56:37 hey Sep 02 00:56:38 so Sep 02 00:56:54 assuming I program a casual but mildly popular indie game Sep 02 00:57:03 & throw in ad revenue Sep 02 00:57:09 like, a commercial every 5 games Sep 02 00:57:28 how much money would that vague general app make? :P Sep 02 00:58:04 six thousand dollars Sep 02 00:58:16 per year / lifetime? Sep 02 00:58:23 yes, both of those Sep 02 00:58:35 bankai_: you didn't mention the cents Sep 02 00:59:06 I thought I'd ask a few developers how much THEY'VE made before actually feeling the waters myself Sep 02 00:59:21 hit enter a few more times, the answer will soon come Sep 02 00:59:32 well, I'm made nothing from my free app that doesn't have advertising. Sep 02 00:59:36 so there's a data point for you :) Sep 02 00:59:59 (but I made up for it in volume!) Sep 02 01:00:05 Heya Sep 02 01:01:26 JesusFreke: heh Sep 02 01:01:27 JesusFreke: Lets see some play links :P Sep 02 01:01:40 stats or it didn't happen & all that :P Sep 02 01:01:44 atari2600a: https://play.google.com/store/apps/details?id=org.jf.Penroser Sep 02 01:01:48 bankai_: I look at your name and all I can think are shikai and zanpakuto Sep 02 01:02:09 5000 installs * $0.00 = a whole lot of nothing Sep 02 01:02:11 bankai_: all I can think of is Kurosaki Ichigo. Sep 02 01:02:20 damccull: that comes to mind too Sep 02 01:03:09 Getsuga Tensho! Sep 02 01:03:24 * danl is a nerd Sep 02 01:03:55 JesusFreke: sweet app dude Sep 02 01:04:19 danl: are you a subscriber to the whole nerds vs geeks ideology? Sep 02 01:04:21 damccull: it was a fun project :) Sep 02 01:04:36 atari2600a: not generally Sep 02 01:04:45 I try not to be that pendatic Sep 02 01:05:08 damccull: open source too! :) Sep 02 01:05:11 *pentantic Sep 02 01:05:27 *pedantic Sep 02 01:05:31 god I can't spell today Sep 02 01:05:31 I can't ever seem to complete an app. I get partway through it, then something comes up I don't know how to do so I spend hours and days researching it, then work calls and I am no longer able to work on it for a month, then I spend days reacquainting myself with my code. Sep 02 01:05:33 *fail Sep 02 01:06:24 danl: in my book that makes you a nerd, as the geeks would be the pedantic ones :P Sep 02 01:07:03 what about dweebs? They're always getting discriminated against in the whole nerd vs. geek thing. Sep 02 01:08:23 atari2600a: depends Sep 02 01:09:16 atari2600a: I really fall into both categories Sep 02 01:09:25 and neither Sep 02 01:10:00 do you collapse into one of the categories when someone opens the door to a room you're in by yourself? Sep 02 01:10:35 say what? Sep 02 01:10:52 by that do you mean when i am alone, do I fall into one of the categorieS? Sep 02 01:10:52 it sounds like you're in a superposition of nerd and geek states Sep 02 01:11:20 I am not in a quantum state of nerd/geek Sep 02 01:11:21 so my hypothesis is that when you're observed, your state collapses to one or the other. Sep 02 01:11:39 actually Sep 02 01:11:53 Would I create the Handler object in the main thread? Sep 02 01:11:56 that's pretty freaking hilarious Sep 02 01:11:56 As in, always? Sep 02 01:12:24 incognitto_ no Sep 02 01:12:38 for example, see HandlerThread Sep 02 01:13:05 In dev.android right? Sep 02 01:13:14 sure Sep 02 01:13:58 I didnt know there was a HandlerThread class :P Sep 02 01:14:21 its actually pretty cool Sep 02 01:15:15 creates Threads that have loopers Sep 02 01:15:28 so in essence, Threads with handlers instantiated Sep 02 01:15:42 you can manually create a looper thread yourself also Sep 02 01:15:50 Right Sep 02 01:15:56 This is wicked sick Sep 02 01:16:00 So much to learn Sep 02 01:16:15 (not that there's much of a reason to) Sep 02 01:27:15 Have any of you created Android apps? Sep 02 01:31:26 I would be willing to bet the large majority of people in here have (or at least are in the process of) Sep 02 01:32:37 wat is andoid? Sep 02 01:32:56 ^ the exception that proves the rule. :p Sep 02 01:33:00 ho yu make one Sep 02 01:33:26 I'm not good at pretending to have bad spelling :( Sep 02 01:33:56 hukt on foniks wurkt fur u. Sep 02 02:07:23 hey StingRay_ Sep 02 02:09:18 howdy Sep 02 02:09:48 starting to hate this beta bollox now, and all the testing that comes with it!! Sep 02 02:10:12 almost hitting 1000 testers, and all they do is complain and point out bugs….. whats the point ?? Sep 02 02:10:33 I even had to start fixing some of those bugs… that sux Sep 02 02:11:25 is it possible to limit the number of testers, or invite only ? Sep 02 02:19:28 yes it is Sep 02 02:19:45 and it is a private group (thank god) Sep 02 02:20:08 and when you choose the group mode, private/public it CAN NOT be changed :) which is a bit funky Sep 02 02:25:42 StingRay_ huh, good to know Sep 02 02:26:08 when i get to that point i'll have to ask the resident expert :) Sep 02 02:26:20 yeah, would have been nice in big red letters when your setting the options though! Sep 02 02:27:56 cause 1st of all I set it to private, and has to approve like the 1st 300… and got bored, wanted to change to public, when I got to 500+ I decided private was good, and actively started screening people, cause some have illegal/cracked android app market links posted on g+ page Sep 02 02:28:18 so I think it's always better to do private and take effort to screen people Sep 02 02:28:23 just my thoughts Sep 02 02:31:10 also, not all feedback is equally useful. something you learn being a product manager :D Sep 02 02:31:33 best to select your best customers, but for such a broad app i dunno how one would do that Sep 02 02:31:35 g00s: it doesn't work. Sep 02 02:31:36 Something you learn by: reading youtube comments, reading play store reviews, reading anything any user ever writes. Sep 02 02:31:48 pls fix. Sep 02 02:32:03 :D Sep 02 02:32:09 I HATE YOU WHY CAN'T I GET A REFUND FIVE MONTHS LATER Sep 02 02:32:54 There is quite a few people here Sep 02 02:32:57 There are* Sep 02 02:33:26 Oh how I wish I could just press a button to have those people dropped in a spike pit. Sep 02 02:33:38 Megaman style spikes. Instant death spikes. Sep 02 02:34:16 I need help Sep 02 02:34:18 Nilium: what apps u have on market ? and can I read some of the comments ? Sep 02 02:34:37 I've gotten mostly positive comments on the only app I ever released. Sep 02 02:34:49 The angry messages are usually emails to me demanding a refund. Sep 02 02:34:58 oh right Sep 02 02:35:09 but dont they request that from the store ? Sep 02 02:35:18 also, does it cost you to refund ? Sep 02 02:35:26 They can only do that if they're within the refund period. Sep 02 02:35:42 Which was at one point 24 hours then became 15 minutes, but I don't know what it is right now. Sep 02 02:36:04 10 seconds ? Sep 02 02:36:05 It costs me money if I don't have anything currently in wallet. Sep 02 02:36:05 lol Sep 02 02:36:45 https://play.google.com/store/apps/details?id=com.cower.ascension ← That's the old app. Sep 02 02:36:47 Nilium: but a refund is just that… no other costs ? Sep 02 02:37:03 It's whatever they paid at the time they bought it. Sep 02 02:37:40 so you can issue refunds well after this 15 minute thingy ? Sep 02 02:37:46 I can if I choose to. Sep 02 02:37:48 cause seems you have a very annoyed user there Sep 02 02:37:50 :) Sep 02 02:37:57 See: the "most helpful" review at the top that says it crashes some dude's evo. He _never_ contacted me. Sep 02 02:38:03 you can from your wallet transaction list Sep 02 02:38:26 The only thing I can confirm is that he's a dickfart and I hope someone set him on fire. Sep 02 02:38:32 so respond and say so, also its like years old, that review Sep 02 02:38:45 You couldn't respond at the time. Sep 02 02:39:11 people don't know they can contact for refunds Sep 02 02:39:31 Can you guys help me? http://pastebin.com/DqH7Epyd hangs on line 26 trying to get a response. Sep 02 02:39:41 * Nilium doesn't click pastebin.com links. Sep 02 02:39:46 you can contact for refunds? Sep 02 02:39:57 Yes. It's called email. Sep 02 02:40:15 but can dev refund through play store or is it a manual refund? Sep 02 02:40:29 We just went over this Sep 02 02:40:59 lol oic Sep 02 02:41:03 Q48VW: I take it you have read lots ? eg http://stackoverflow.com/questions/16357884/httpurlconnection-getresponsecode-freezes-execution-doesnt-time-out Sep 02 02:41:48 StingRay_, what? Sep 02 02:41:55 that auto refund 15 min limit is a bit…. erm bad though Sep 02 02:42:02 I'm not using an authenticator Sep 02 02:42:20 i miss the 24 hour refund period Sep 02 02:43:10 I don't really care. I have yet to find any app that costs so much that I'd try to get a refund after downloading it. Sep 02 02:43:26 Granted I also have yet to buy an app I didn't research and want. Sep 02 02:43:30 yeah thats problem number 2 Sep 02 02:43:35 everything too cheap Sep 02 02:43:36 :) Sep 02 02:43:48 Except on iOS -- I do buy plenty of apps on iOS without research, but I also haven't regretted any of those. Sep 02 02:44:01 iPad apps tend to be more expensive Sep 02 02:44:05 oblig: http://theoatmeal.com/blog/apps Sep 02 02:44:08 they didn't fall into that 0.99 black hole Sep 02 02:44:16 GUYS, I am trying to GUIlessly login to a website. How do I go about that Sep 02 02:44:20 They do, and I usually exclusively buy iPad apps 'cause I love my iPad. Sep 02 02:45:03 Which isn't to say I don't also love my Nexus 7 or what have you, just in case anyone goes berserk at the mention of iOS. Sep 02 02:45:25 ioS has great music and photography apps Sep 02 02:45:35 PROGRAMMATICALLY LOGIN TO A WEBSITE. HOW? Sep 02 02:45:38 I like using both. Sep 02 02:46:01 Q48VW: DAMNED IF I KNOW TRY STICKING YOUR FINGER IN A LIGHT SOCKET MIGHT GIVE YOU A BRIGHT IDEA Sep 02 02:46:46 thanks for the help buddy Sep 02 02:46:52 Did it work? Sep 02 02:46:57 sounds like it Sep 02 02:47:16 I stuck my finger in a light socket when I was a kid. The light was off, but my brother fixed that because he thought it would be funny. Sep 02 02:47:24 who cares what kind of socket, right ? Sep 02 02:47:34 electrical , tcp, whatever Sep 02 02:47:42 udp Sep 02 02:47:47 Sockets are basically the single most awesome thing in programming. Sep 02 02:47:48 so nobody can hepl me here then Sep 02 02:47:51 hepl Sep 02 02:47:52 help Sep 02 02:48:10 some people are beyond help Sep 02 02:48:11 webscraping is nobodies' strong point? Sep 02 02:48:16 I doubt it. You're probably missing fundamental basics. Sep 02 02:48:41 } Sep 02 02:48:42 I've done some scraping and automation using mechanize, but that's wholly different. Sep 02 02:49:24 use a regex ! Sep 02 02:49:31 And it's time to put g00s down Sep 02 02:49:41 :P Sep 02 02:50:27 My hatred of regular expressions in code has grown over the years. Sep 02 02:51:47 Nilium: good luck writing any compiler (and thus any other sort of code) without them! :) Sep 02 02:52:45 I think you might be confused about what I mean by 'in code' Sep 02 02:53:20 although, the thought of a language that can't be tokenized by a regular language is somewhat amusing Sep 02 02:53:29 If you're using something like flex and such to generate a lexer, that's not really in my definition of regular expressions at runtime. Sep 02 02:53:56 runtime of what? :) Sep 02 02:54:11 is it much worse than embedding SQL into java Strings ? :P Sep 02 02:54:13 they run at runtime in the compiler Sep 02 02:54:14 I mean if you're using a regex under the hood for something like matching an email address in an input, you are doing it wrong. Sep 02 02:55:02 Ah, so you hate the *incorrect* usage of regex :) Sep 02 02:55:08 More or less. Sep 02 02:55:25 perfectly understandable then. hate away :) Sep 02 02:56:45 hmmmm Sep 02 02:57:49 maybe a language that has static rules that let you modify the syntax Sep 02 02:58:01 (re: language that can't be tokenized by a regular language) Sep 02 02:58:20 So Perl. Sep 02 02:58:31 Obligatory perl joke: complete. Sep 02 02:59:11 I do love perl's versatile syntax Sep 02 02:59:16 whats the best website for checking flight status? Sep 02 02:59:45 Usually the airline's site. **** ENDING LOGGING AT Mon Sep 02 02:59:58 2013