**** BEGIN LOGGING AT Fri May 24 02:59:58 2013 May 24 03:13:15 Anyone have a recommendation on a good ORM to use in Android? May 24 03:21:03 why would proguard need gradle support May 24 03:21:29 googling for android orms is probably better than asking here May 24 03:39:03 hmm im adding a view but it wont show, tried invalidate, postinvalidate etc May 24 03:49:57 Gaz`: pastebin us some code May 24 03:50:54 Trying to reverse the QuickReturn behaviour in Google Now. This is taking too long :/ May 24 03:51:33 is there a variable that changes linearly with listView scrolling? May 24 03:51:50 preferably something in pixels May 24 04:01:26 QuickReturn behaviour ? May 24 04:03:53 awwww god sooooo close with this gradle multi project android studio balls May 24 04:04:16 just one more package to sort that isnt building May 24 04:06:24 Is there a way to do a delay on an action without pausing the main thread? May 24 04:06:37 but while having a GUI visible thing May 24 04:06:45 a toast.. May 24 04:06:59 If I do Thread.sleep(2000); for example, the last toast is paused until the sleep is over May 24 04:07:14 same inside a Runnable inside handler.post May 24 04:07:14 hmm May 24 04:07:24 postAtTime..... May 24 04:07:25 why not just change the time the toast is displayed ? May 24 04:07:26 lmao May 24 04:07:39 not sure what your actually wanting May 24 04:07:42 :) May 24 04:08:18 but the last param in makeText() is millis May 24 04:08:21 ? May 24 04:08:35 it's int duration May 24 04:08:41 and it's only LENGTH_LONG or LENGTH_SHORT May 24 04:08:43 which is 2 seconds or 3.5 May 24 04:09:56 it could be whatever you want May 24 04:10:02 no May 24 04:10:03 heh May 24 04:10:08 are you sure about that? May 24 04:10:13 yes May 24 04:10:16 are you saying they finally fixed this May 24 04:10:18 lmao May 24 04:10:25 since version 1 yes May 24 04:10:27 :) May 24 04:11:08 I hate long toasts thought May 24 04:11:11 though* May 24 04:11:20 they are annoying as it is May 24 04:11:23 yeah May 24 04:11:27 well I will test it May 24 04:12:12 I checked via clock, 1000 is still taking 2 seconds May 24 04:13:04 huh May 24 04:13:16 could have swore that was not the case May 24 04:13:27 I will try something weird like 5 May 24 04:13:46 I have found like a dozen threads about tricks to make it not LENGTH_SHORT or LENGTH_LONG May 24 04:14:08 wish I wasn't kidding May 24 04:14:38 I think toast is a bit dated for anything but throwaway messages May 24 04:14:50 it is not such a great class no May 24 04:14:59 ie. if you wanting it on-screen a while, it;s not throw away May 24 04:15:09 so use a dialog or something May 24 04:15:12 much better May 24 04:15:17 a dialog that can be seen anywhere in any app? May 24 04:15:39 ok an activity themed dialog May 24 04:15:45 then yes May 24 04:15:57 really May 24 04:15:58 ah well May 24 04:16:09 I am not reinventing this whole app, cause everything told me it was not possible May 24 04:16:12 anyway May 24 04:16:14 its not a big deal May 24 04:16:21 this is exactly what they asked for lmao May 24 04:17:09 newlex give them more than they asked for! May 24 04:17:13 push the envelop May 24 04:17:25 Speedstick - dude I have and then some May 24 04:17:28 or at the very least talk to them about it, they may pay for extra features May 24 04:17:49 It was a flat rate, with this many hours I'm probably down to like half my normal rate May 24 04:18:28 they actually changed it on me like 3 times May 24 04:18:39 and I let them and went with it, because they are a good client anyway May 24 04:18:49 but reinventing that part? that's gonna be a whole new job May 24 04:24:06 and just so you guys know regarding toasts May 24 04:24:27 I had to create a special handler class that repeatedly showed every 1750 ms (2000 ms is how long it'd show for) May 24 04:24:44 if I wanted more than 3.5 (LONG is 3.5, short is 2) May 24 04:34:04 hmmm Call requires API level 11 (current min is 11) May 24 04:34:15 nice little error May 24 04:35:34 ok guys i just did this for an interview to get a job, a 10 hour test to create a black jack game as much as i can get done in that time, what do you guys think, it also works on Android =) PM for the APK it looks really good on it. http://realdefinition.net/blackjack/ May 24 04:57:50 if i'm storing a date in SQLite as an integer, and i have it bound to a ListFragment where i define the row view to show the date using a TextView, is there a way i can format the TextView so it shows the integer as a date string instead of a number? May 24 04:59:41 hey guys, is there some kind of framework (community-driven?) that allows me to define data models and maintain consistent views of that data in my UI? May 24 05:00:13 as an example, say a user +1's an image, when they back out to the main stream, I want that +1 to be reflected in the +1s count May 24 05:00:25 meanwhile, in the background, that +1 is being sent back up to the server May 24 05:00:56 HorizonXP: have you considered using ContentProviders combined with Loaders? I think that will give you the mechanism you're wanting. May 24 05:01:57 for example, in the content provider, you call "getContext().getContentResolver().notifyChange(uri, null);" to broadcast the change May 24 05:03:03 Jc_Dev: you can have a listener attached or maybe extend the textView so that any imput is converted to what you want May 24 05:03:26 StingRay_, Quick Return is like how the google search bar pops up when you're scrolling up May 24 05:03:41 in google search app May 24 05:03:45 StingRay_: hmm ok - just came across adapter.setViewBinder(), i wonder if that's a cleaner way to do it... May 24 05:04:12 Jc_Dev: so I would implement my own ContentProvider, and then my app would implement a ContentProviderClient? May 24 05:07:21 HorizonXP: you would implement the CP as the master of the data layer, and then use a loader (http://developer.android.com/guide/components/loaders.html) to access the data, for example, if your data is persisted in SQLite, you would use CursorLoader, which gives you your data in a cursor, and then you implement LoaderCallbacks in your activity May 24 05:08:16 Jc_Dev: what involved in creating a contentProvider for a local sqlite source ? May 24 05:09:36 it's pretty straight forward actually, i followed the example in the NotePad sample app: com.example.android.notepad.NotePadProvider May 24 05:09:51 Jc_Dev: sounds like a reasonable path to investigate. May 24 05:10:02 Jc_Dev: i'll look at it more, thanks for pointing me towards this May 24 05:10:09 np, good luck! May 24 05:25:15 <_genuser_> actionbar.... can pager changes update the action bar? worth doing in code? or is there a better way to have state based menus? May 24 05:25:46 I find myself annoyed with androids way of handling apps May 24 05:25:47 Quick question if I write bytes to an outputstream does ram get released at some point or will the outputstream continue to consume more ram? May 24 05:25:48 if you use fragments that already happens, yes May 24 05:25:54 _genuser_: ^^^ May 24 05:26:08 wish when I closed them they actually closed...not auto minimize May 24 05:26:52 Speedstick: that behavior is pretty common among all mobile OS's May 24 05:27:30 <_genuser_> JakeWharton: using fragmentpageradapter for generating fragments that are tab. So when the tab swipes, I need to override some method to update actionbar? May 24 05:30:02 through my testing the ram is being released but i just want to make sure that writing bytes to the outputstream for long periods of time wont create a memory leak. May 24 05:31:19 _genuser_: what do you want to update? May 24 05:31:28 you can provide action items by overriding onCreateOptionsItem May 24 05:31:48 <_genuser_> JakeWharton: when swiping tabs, the actionbar menu buttons should change based on the tab. May 24 05:31:58 the action items? May 24 05:32:08 see above May 24 05:32:21 <_genuser_> JakeWharton: onCreateOptionsItem ... sounds like the thing to google. thx. :) May 24 05:32:39 you also have to call setHasOptionsMenu(true) in onActivityCreated() May 24 05:32:44 but yeah, there's examples May 24 05:34:02 <_genuser_> JakeWharton: I see the template based code eclipse created uses onCreateOptionsMenu which is where it infaltes the menu. :) And newly added stuff is working. :) so I just need to read up it more, I think. May 24 05:34:43 <_genuser_> JakeWharton: I suppose I could check the open tab and inflate the correct menu. I manually show/hide actions items. May 24 05:35:04 <_genuser_> I think inflating appropriate menu is better. May 24 05:35:21 ok im just gona assume that writing bytes to an outputstream will get garbage collected at some point and i dont have to worry about it unless somone has some insite May 24 05:40:53 ok spent a day on this gradle AS balls May 24 05:40:59 not happy May 24 05:41:30 a day of pissing around in the wind with no sale or a paddle on a creek May 24 05:44:23 is there max amount of ram that a outputstream will use before the ram is released again through testing it seems to be less than 1MB May 24 05:46:27 <_genuser_> t4nk813: don't konw about android, but Java and other languages with garbage collection want you out of garbage collection. So may be it's not a published or even a determined number. May 24 05:46:49 StingRay_: sail? May 24 05:47:05 <_genuser_> please keep in mind that's a comment on how most garbage collection implementations are. May 24 05:47:16 seemed appropriate when I said pissing in the "wind" May 24 05:47:19 t4nk813: you can't generalize OutputStream May 24 05:47:23 it's an interface May 24 05:47:24 and then thought of creek May 24 05:48:07 t4nk813: I could put a Thread.sleep(TimeUnit.MINUTE.toMillis(60)); in the write(byte) method May 24 05:48:13 thanks genuser through testing it does seem like the ram is being released even though i continuously writing bytes to the outputstream May 24 05:49:33 huh, why would output stream retain memory when writing to one May 24 05:49:52 unless you're using bytearrayoutputstream May 24 05:50:30 at most it will use buffer size, if you're using a buffered stream May 24 05:52:15 StingRay_: to answer my own question from earlier, I went with the following technique to convert the integer to a date by overriding the binding process for that column of data: SimpleCursorAdapter.setViewBinder May 24 05:58:03 weird my app got garbage collected then then my service restarted wich made the service lose all variables because i use a get shared prefs method in my activity to set the values in my service I had to restart the activity to load the service values May 24 05:58:40 your app got killed not garbage collected May 24 05:59:06 if it got killed why did the service restart on its own ? May 24 05:59:28 what do you return from onStartCommand? May 24 05:59:32 it should have killed the app not the service May 24 05:59:33 because start sticky does that May 24 06:00:02 and services go away if they're not running May 24 06:00:47 learn how the life cycles work better May 24 06:01:13 holy fk sht May 24 06:01:22 07:01:04 Compilation completed successfully in 21 sec May 24 06:01:44 nest jars and lib projects from all over with gradle May 24 06:01:50 nested* May 24 06:05:33 is that fast? May 24 06:05:50 not a fact of being fast, more a fact that it now works May 24 06:05:56 ah, nice :) May 24 06:06:14 what's the advantage of using gradle instead of eclipse to build? May 24 06:06:28 eclipse is ide May 24 06:06:30 you can build without eclipse May 24 06:06:32 ant is build May 24 06:06:48 so like automated builds? gradle is an ant plug-in? May 24 06:06:50 so ant Vs gradle May 24 06:07:03 oh ok, competitor May 24 06:07:13 AS by default uses gradle May 24 06:07:30 <_genuser_> JakeWharton: I see, the activity can have a menu, and the fragment can have a menu. And they'll be combined. That's pretty cool! May 24 06:07:32 I created a project in C that used ant to compile a clients project with changes automatically then used keysign I think to sign it etc... May 24 06:07:43 yep May 24 06:07:46 anyway it ran into issues for compiling with ant, forget what I never managed to fix it May 24 06:07:53 ran into issues later on May 24 06:07:57 <_genuser_> JakeWharton: now, to create separate XML files for each menu. :) May 24 06:07:59 so what do you do with non-IDE builds for? May 24 06:08:10 nightly builds or something? May 24 06:08:29 or if you want the same project just with certain changes done rapidly :) May 24 06:08:30 CI May 24 06:08:35 releases May 24 06:09:05 oh ok cool, what repo and build management system do you use with gradle (i'm new to java side of things) May 24 06:09:32 so now, according to how I understand it, my gradle daisy chain in IJ will also work if I module that project into another one May 24 06:09:37 something cool you guys may not know, .apk files can be auto converted to run on blackberry 10 apparently May 24 06:09:41 * StingRay_ attempts to find out May 24 06:09:52 so android apps reaching other os's :D May 24 06:09:59 interesting May 24 06:10:17 they have their issues though... May 24 06:10:50 http://imageupload.co.uk/files/a6w00otcicq8pp9xk6u5.png May 24 06:10:52 http://www.youtube.com/watch?v=LCJAgPkpmR0 May 24 06:10:53 why this happen? May 24 06:11:15 sorry (gradle at google io and why) http://www.youtube.com/watch?v=LCJAgPkpmR0 May 24 06:11:17 I have May 24 06:11:22 better description May 24 06:11:27 isn't 4.2.2 = 17? May 24 06:11:31 ah, thanks StingRay_, i'll check that out May 24 06:11:54 StingRay_: congratulations on getting it working ! May 24 06:12:03 yey! May 24 06:12:11 well thats just the nested mess of library May 24 06:12:22 gonna dump that mess in a mess of a project that is an app now May 24 06:12:25 :) May 24 06:12:40 so I end up with a multi-tier mess May 24 06:12:44 :) May 24 06:14:18 StingRay_: are you using gradle from your IDE too? May 24 06:14:21 i think gradle has probs if src tree has sub dirs in dirs that have src files May 24 06:14:32 Jc_Dev: yeah AS atm May 24 06:14:43 my 1st day playing with android studio May 24 06:14:46 AS ? android studio, the new intellij one? May 24 06:14:56 yes May 24 06:15:19 anyone May 24 06:15:33 squ: 17 is 4.2 May 24 06:15:44 why it doesn't launch ? May 24 06:15:49 ah ok, yeah, i just started a couple weeks ago on the android eclipse stuff, i might switch over to the new stuff later, not sure i want to rock the boat just yet though :) May 24 06:16:29 eclipse is a tanker May 24 06:16:31 well if you can go with AS as soon as really May 24 06:16:34 intellij is a speed boat May 24 06:16:40 or intelliJ May 24 06:17:40 so it's stable enough to switch over to? May 24 06:17:41 JakeWharton: IJ is nice, but lacking in a few areas for me May 24 06:17:51 like what? May 24 06:18:02 the ide layout stuff May 24 06:18:24 it uses the exact same layout engine as the ADT in Eclipse May 24 06:18:27 both preview and editor May 24 06:18:39 floating pannel stuff where you cant combine none-contextual views May 24 06:18:44 no May 24 06:19:01 I mean I have lets say nearly 10ft sq of screen May 24 06:19:15 in eclipse I could create multiple layouts May 24 06:19:29 that use all of that space, and with the freedom to arrange and combine how i want May 24 06:19:37 something I cannot do with IJ May 24 06:19:50 <_genuser_> interesting, if a fagment doesn't handle it's menu the host activity can! May 24 06:20:20 <_genuser_> not sure if I like to handle it in each individual fragment, or just in the activity May 24 06:20:25 StingRay_: do you mean perspectives? May 24 06:21:02 i mean creating your own perspectives (pre-set view layouts) yes May 24 06:21:12 ah I see May 24 06:21:17 haven't missed it May 24 06:21:33 in fact, I always hated how Eclipse forced you into the debug perspective which has an abysmal default May 24 06:21:47 I can see how IJ will be 100% better on my macbook pro May 24 06:21:50 i can see how people would like that though May 24 06:21:58 but not on my multi monitor workstation May 24 06:21:59 <_genuser_> I don't like the IDE changing based on debug or develop. Don't my windows around. I put them where I like. May 24 06:22:10 <_genuser_> *don't move May 24 06:22:23 _genuser_: exactly May 24 06:22:40 I hardly ever left single layout in eclipse May 24 06:22:42 ddms May 24 06:22:49 heap, debug, logcat etc May 24 06:23:05 all there layed out in my common view how I wanted May 24 06:23:07 :) May 24 06:23:17 I will miss that if I stay with AS/IJ May 24 06:23:51 <_genuser_> if it wasn't for android, teh only eclipse I would pay any mind would be solar/lunar eclipse etc.... May 24 06:26:07 AS doesn't behave much faster than Eclipse on my AMD dual core win7 laptop, maybe on intel or linux or something I guess May 24 06:27:09 and the emulator is absolutely unusable on AMD May 24 06:28:00 shoot i pressed ctrl+tab in eclipse to jump to other window (this shortcut doesn't work apparently), and now whenever i switch focus eclipse freaks out and hangs for about 3 seconds until i re-open it, if anyone knows how to fix this without reopening please let m know May 24 06:28:30 I feel like google should make their own android dev environment, relying on eclipse is kinda weak May 24 06:28:34 they could do much better May 24 06:28:46 Speedstick: are you aware of the new intellij plug-in? May 24 06:28:56 announced at google i/o May 24 06:28:59 no what is that, like an auto code complete? May 24 06:29:14 it's a new IDE based on a product by jetbrains, called Android Studio May 24 06:29:26 ahh very cool, i'll have to check that out, thanks May 24 06:29:29 i'm being told I should switch to it :) May 24 06:29:38 Speedstick: they have switched from Eclipse to IntelliJ IDEA (Russian stuff) May 24 06:29:38 long live pinkos ! May 24 06:30:20 kind of sucks for commercial devs, who i think will now have to pay for an IDE license May 24 06:30:30 or stick with Eclipse May 24 06:31:04 why do you think that ? May 24 06:31:36 no need to pay, its open source like eclipse is May 24 06:31:38 i was told IntelliJ is only free for indy - up to 5 devs or something, is that right? May 24 06:31:49 pay if you want more enterprisey features like web dev May 24 06:32:31 oh ok May 24 06:32:37 does anyone know if the output of linux commans are consistant among all android os's? May 24 06:32:56 commands* May 24 06:36:30 i have tested the output of a linux command on 3 different os's versions and the output format seems consistant May 24 06:37:36 t4nk813: do you need them to be consistent for parsing? May 24 06:37:44 yes May 24 06:38:27 which commands ? May 24 06:38:30 have downloaded newest adt bundle, and can not launch 4.1 x86 image May 24 06:38:43 someone else have this problem too? May 24 06:39:11 or I'm doing something wrong May 24 06:39:16 getevent -t | grep eventx x being the event May 24 06:41:31 is it ok to "abuse" PreferenceActivity as an About screen, to leverage the layout? some items are just static text, some items i'll put a click handler (to go to a URl for example), or is there a better activity I should be using? May 24 06:42:14 i need the time format to be consistant and i need the first line of output to be consistant which is the one line if it showing what event its reading May 24 06:42:40 squ: in eclipse? when i went through this, it took two rounsd of updates, and then my externally referenced jars weren't being included in the apk until i readded them a couple times, maybe it is your problem too May 24 06:43:09 hey g00s May 24 06:43:19 yesterday for the whole day I left my app running May 24 06:43:26 with 1second empty service restarts May 24 06:43:32 no battery impact at all May 24 06:43:35 :O May 24 06:43:40 it's all good :) May 24 06:43:41 come on ! May 24 06:43:43 :DD May 24 06:43:48 did you have it plugged in :P May 24 06:43:53 hehe May 24 06:43:54 no May 24 06:44:10 this defies the laws of physics May 24 06:44:35 I think those operations are quite lightweight May 24 06:44:49 just as any java stuff which does not involve lots of data or internet/gps May 24 06:45:08 but you're using alarmmanager to turn the phone on, right ? May 24 06:45:13 Jc_Dev: this is so annoying May 24 06:45:16 hmmmmmmm May 24 06:45:18 actually May 24 06:45:24 I am not waking it up.... May 24 06:45:28 RTC mode May 24 06:45:34 so maybe it's not running :)) May 24 06:45:35 shit. May 24 06:45:43 my test failed May 24 06:46:05 your test didn't fail - you just proved your app doesn't use any additional battery when it's not running :) May 24 06:46:13 dang it my service keeps getting killed when my app gets killed even though my service was running a doinbackground May 24 06:46:41 I tried killing it with task killer May 24 06:46:44 it still runs! May 24 06:46:59 I have a toast on data sync step which gets called during first run May 24 06:47:08 but I didna't really kill it anyway May 24 06:48:55 where are emulator launch logs? May 24 06:49:25 its not launching and I don't know why May 24 06:49:40 i guess i need to read about startForeground() to keep my service from dieing May 24 06:49:53 dying* May 24 06:50:31 lol ill never learn how to spell kinda like learning how to program correctly May 24 06:50:50 :))) May 24 06:51:12 <_genuser_> battery cycle eh? May 24 06:51:23 <_genuser_> mine just goes for 30hours only on minimal use. May 24 06:51:26 that's the english language's fault more than yours ;) May 24 06:51:34 <_genuser_> while same phone for someone else goes twice that much. May 24 06:51:43 yeah, it should be dieing if language was sane May 24 06:51:43 :D May 24 06:52:21 <_genuser_> well, they needed to weed out people who didn't learn all the rules. May 24 06:52:33 <_genuser_> so they'd have some topic of discussions ready for tea time. May 24 06:52:37 I would like to test some code that I have. In my actual program I receive instances of a class that I'm unable to instantiate myself. Is there a trick for that? May 24 06:52:42 it seems you can make interface parcelable May 24 06:52:46 you cant* May 24 06:54:08 tea time! May 24 06:54:16 brilliant idea! May 24 06:54:40 sleep time for me goodnight all May 24 06:54:57 an app that tells you when its time to have tea ? May 24 06:55:10 :DD May 24 06:55:27 shmooz, getPerfectTimeForTea() { return new Date(); } May 24 06:56:21 ohhh that gives me a great idea! May 24 06:56:57 not that its related, but you know those stop smoking infomercials with the little electronic gadget that tells you when to smoke to slowly get off it ? lolz May 24 06:57:24 well you can make a stop smoking app that tells you when to smoke so you hate it or something and then that makes you quit May 24 06:59:01 I remeber those infomercials from the 90's May 24 07:12:33 is there an eclipse sample pack for droid somewhere ? May 24 07:13:22 crap im starting to like java May 24 07:16:57 hi May 24 07:19:55 Tecan, you'll like it more if you don't use eclipse ;) May 24 07:21:36 why do you want motorolla stuff ? May 24 07:22:20 didnt think they had any specifics no more Tecan , thought they were all googled May 24 07:22:30 unless you mean ANdroid May 24 07:22:33 :) May 24 07:35:18 crappackage com.example.neon; May 24 07:43:01 ah May 24 07:43:05 ok this is crap May 24 07:43:21 this is maybe a reson to ditch IJ May 24 07:43:32 well gradle at least May 24 07:43:40 got back to ant builds May 24 07:44:38 It appears you cannot have (masterLib that has (LibA and LibB) modules) in a masterApp May 24 07:44:40 hi. is there an application like strace for android with a nice UI that lets me monitor all syscalls happening on my device? May 24 07:44:50 gradle just dont chain like that May 24 07:44:57 or I cant understand how it could May 24 07:46:33 krad: this is app dev May 24 07:46:43 not android whats the best app for x May 24 07:46:55 thats probably #android or #xda-devs May 24 07:47:09 though app devs should know about the existence of this more than others May 24 07:47:31 probably do May 24 07:47:47 but not care that much, care more about the topics :) May 24 07:47:55 like the gradle build system May 24 07:47:56 StingRay_: Gradle has some specific requirements regarding subprojects May 24 07:48:14 which are simple, but only as long as you start with them, not when you try to shoehorn existing layout into it May 24 07:48:23 p_l: yeah, that just dont work in the way they should May 24 07:48:49 as in you cannot have a lib with nested libs external to main app and expect gradle to work May 24 07:49:06 I'm sure intelli/AS internally can do that May 24 07:49:13 just not build it with gradle May 24 07:49:36 StingRay_: Depending on what exactly you're trying to do, it could be solvable May 24 07:49:48 only way I can figure it is to have the lib with nested libs inside the app dir structure May 24 07:49:55 and thats no the point of libs May 24 07:49:56 :) May 24 07:50:31 or you could add a task that prepares the build dir so May 24 07:51:03 tis all over SO with things like ABS etc May 24 07:51:13 or any external lib project May 24 07:51:38 people just cant get it to work, unless it's all inside the dir structure May 24 07:52:11 and I have simons menuLib, and some cw libs included in "my" main lib May 24 07:52:33 StingRay_: if they are using subprojects, then yeah, it's a PITA that I suggest could be solved by laying out the build files a bit differently May 24 07:52:37 now I got my lib to work only have to including those inside, and now I wanted my lib in my app project May 24 07:53:13 I dont get how I would include things "daisy" them that are outside the current project though May 24 07:53:55 can I specify absolute paths ? May 24 07:55:54 depends on how it is included. Subprojects reflect hierarchy starting with the directory the build.gradle file is in May 24 07:56:03 the rest can be done with various packing tricks May 24 07:57:13 so you think it's possible, I mean ideally I dont want to nest any projects within projects, I want the same lib functionality from eclipse/ant May 24 07:57:41 StingRay_, do post a little guide if you manage to get third-party libraries working properly May 24 07:58:06 Afzal: well if you nest them it's easy May 24 07:58:10 i gave up after 2 long nights, might as well wait for the next version May 24 07:58:25 but I either need nested nests, or the proper external way May 24 07:58:43 well yeah but who wants to change the folder structure, especially when the libs are projects and not jars May 24 07:59:57 StingRay_: you should be able to manipulate sourcepaths with sourceSets May 24 08:00:25 * p_l does that a bit in his current project (non-android) because he has practically all of the code under *test* May 24 08:01:39 but with a source set how does one move outside the root ? May 24 08:01:57 since the resolution of AS/IJ has little to do with gradle at this point May 24 08:02:05 and no intergration May 24 08:02:07 :) May 24 08:02:33 or am I missing some magic here May 24 08:08:28 hi anybody have experience this kind of error when using the httpclient library May 24 08:08:29 Exception Occurred : recvfrom failed: ECONNRESET (Connection reset by peer) ?:??: W/?(?): java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer) May 24 08:08:51 the this error is intermitten and not always happened May 24 08:12:52 Does google have a nice clean little filechooser, for a consistent look May 24 08:14:18 http://imageupload.co.uk/files/f5ovaakgyqbr7lswfxai.png May 24 08:14:25 does this look like an infinity loop? May 24 08:18:18 StingRay_: IntelliJ 12's Gradle support works by calling gradle May 24 08:18:31 StingRay_: in source sets, it's possible iirc to go with arbitrary paths May 24 08:18:32 squ: no. May 24 08:19:15 it looks like a bunch of threads. May 24 08:19:33 ikarus, afaik no May 24 08:19:59 pragma-: I click on message filter in logcat. then clicked on another message filter May 24 08:20:27 can't understand why it is so hard for eclipse to compete with xcode May 24 08:20:52 or why android use that software May 24 08:21:31 why its called software at all May 24 08:22:34 * pragma- shrugs indifferently. May 24 08:22:39 eclipse is shit; I don't use it. May 24 08:25:09 if you can't beat the wave, beat the surfer May 24 08:26:30 p_l: got any examples ? May 24 08:26:41 cause I'm finding this hard to get my head around now May 24 08:26:58 having to manage all these things that were, seemless in eclipse May 24 08:28:57 StingRay_: nothing on hand May 24 08:32:03 i just really dont get how people work with this May 24 08:32:15 tis definiately for the more experienced devs May 24 08:32:17 hi all. how can i pass a param to one of my activity menuitem? should i use onCreateOptionsMenu()? thanks May 24 08:34:07 StingRay_: trying new ide? May 24 08:34:22 the ide is not really the prob May 24 08:34:28 the build system is May 24 08:34:33 well for me an my use May 24 08:34:33 which is? May 24 08:34:39 AS and gradle May 24 08:34:45 wtf :) May 24 08:34:58 I don't get how people work with GUI IDEs at all. I feel so much more comfortable on the command-line and using the android dev tools directly, instead of having those details hidden by some IDE. May 24 08:35:45 And there is no editor but vim. May 24 08:35:52 thats true but not quite possible May 24 08:35:54 pragma-: easy, not time and convinience May 24 08:36:20 I didn't succeeded in finding vim - java - android completion May 24 08:36:32 editing files with vim is super fast when you know how to use vim. May 24 08:36:36 also I need to preview layouts May 24 08:36:55 real programmers don't complete. May 24 08:37:19 as a newbie java learner I need that completions May 24 08:37:36 no, you just need a copy of javadocs/android docs opened up. May 24 08:37:48 i think intellisense is kind of like a calculator: sure you can do it all by hand, but it can save you some time :) May 24 08:38:23 lasserix: vim vs ide is not like calculator vs paper May 24 08:38:46 sure, until they're just blindly completely to various things without reading the docs to understand the caveats May 24 08:38:49 calculator versus a bloated whale? May 24 08:38:54 s/completely/completing/ May 24 08:39:05 well eclipse is like a piped pornstar May 24 08:39:05 uhh then... calculator and abacus? May 24 08:39:09 hehe May 24 08:39:12 pimped May 24 08:39:30 "oh, hey, Thread.st... completes to Thread.stop, this must be what I want!" May 24 08:40:02 pragma-: thats my style May 24 08:40:04 pragma: ahh i use it not for lookuping what i dont know but generally for (if the term is correct) verbose naming May 24 08:40:36 keeping in mind that I hate java May 24 08:42:35 eclipse adds to this hate May 24 08:43:41 Eclipse is pretty terrible of an IDEA May 24 08:43:43 IDE even May 24 08:43:53 no it isnt May 24 08:44:05 it has problems and limitation May 24 08:44:06 s May 24 08:44:10 much like anything May 24 08:44:33 The problems tend to be more pronounced than other things I use :P May 24 08:44:58 try and do some efficient organization in IJ/AS and tell me how bad eclipse is May 24 08:44:59 pragma-: are you using ctags for java? May 24 08:45:06 when the same thing in eclipse is simple May 24 08:46:13 emulator time 8:45, OS time 11:45, logcat time 4:55 May 24 08:47:39 squ: no May 24 08:47:51 Hi there: I'm trying to debug an app using logcat. Is there any way to send a stack trace to logcat? May 24 08:48:32 pragma-: you dont do CTRL-] ? May 24 08:49:12 Ojoloco: exception.printStackTrace() May 24 08:49:33 oh, thanks! May 24 08:53:53 StingRay_: I think it's a problem of it still being what JetBrains calls "EAP" May 24 08:54:02 lots of wrinkles to be ironed out yet May 24 08:54:03 Unable to resolve superclass of Lcom/actionbarsherlock/app/SherlockFragmentActivity; (114) May 24 08:54:03 Link of class 'Lcom/actionbarsherlock/app/SherlockFragmentActivity;' failed May 24 08:55:52 p_l: then they should keep it closed till it all works May 24 08:56:25 on the up side I now know more about build systems than I did 8 hours ago May 24 08:56:38 and I'm switching back to ant builds May 24 08:56:40 :) May 24 08:57:30 StingRay_: if they kept it closed they might have never encountered certain issues, for the very simple thing that it might be easier for them to adapt (not to mention that if they are writing the Gradle support for Android, they might "instinctively" know the internals and apropriately work around stuff) May 24 08:58:23 http://tools.android.com/recent/dealingwithdependenciesinandroidprojects May 24 08:58:24 it's kinda the problem with Microsoft Windows - they aggresively dogfood it, but because of that, they have all the stuff "figured out" locally and then BLAM, public release, and shitton of bugs that no one encountered happen May 24 08:58:33 is it only me or screenshot covers text? May 24 08:59:33 squ: thats part of the screen shot bg May 24 09:00:21 ah May 24 09:01:56 StingRay_: IDEA works fine May 24 09:02:04 i have no idea where you're getting all these issues from May 24 09:02:47 angelsl: new Gradle build tools for Android May 24 09:02:48 http://imageupload.co.uk/files/lytvrrarox0ux9epsopr.png May 24 09:03:02 angelsl: that happen to be included in Android Studio May 24 09:03:20 ah, so that's not IDEA then May 24 09:03:26 " try and do some efficient organization in IJ/AS and tell me how bad eclipse is" May 24 09:05:14 well, I still haven't figured how to deal with building stuff in Eclipse, on when it calls what May 24 09:05:19 no matter the language May 24 09:05:49 iirc the one time i tried Eclipse May 24 09:05:52 it kept crashing May 24 09:05:52 at least IntelliJ 12.1 now properly imports Gradle builds, so I just hit F9 and select target :) May 24 09:05:53 i gave up May 24 09:06:07 went back to NetBeans, and now IDEA May 24 09:10:15 IDEA <3 May 24 09:10:36 though without ideavim it would be nothing May 24 09:11:33 IJ/AS does not work fine for me May 24 09:11:47 compared to eclipse project management May 24 09:12:05 more of a Gradle Vs Ant thing May 24 09:13:06 StingRay_: I commend you for figuring out configuring builds under Eclipse May 24 09:13:42 my main contacts with it always left me with "ok, so how do I actually make it use Ant without breaking project settings" then going "fuck it, I'll keep a console open" May 24 09:15:00 well just about to try multi reference nested projects with AS + ant now May 24 09:15:14 and if that fails, back to eclipse I go to actually do some work May 24 09:22:28 hah, StingRay_ told you so :p May 24 09:23:04 well not nested, external as they should be May 24 09:23:07 :) May 24 09:37:31 R.java is not generated after I cleaned my project. There are no errors in the res folder. May 24 09:38:00 there will be May 24 09:38:08 just lint wont be showing you them May 24 09:38:12 or it May 24 09:39:09 Ok, ill check again :) May 24 09:41:16 I didn't changed anything in my res folder the last couple of days. It would suprise me that a layout file or png is causing this. May 24 09:41:45 you probably only changed the thing you forgot about changing May 24 09:41:57 I want to get a textview value updates after this fragment. BUt I cant because the view requires a return that infaltes the content. https://gist.github.com/anonymous/5642442 May 24 09:42:00 Any ideas? May 24 09:42:13 to update * May 24 09:42:51 Guest53062: no idea what you just said May 24 09:43:20 but the 1000's of possabilites of what you potentially mean, at least 998 are possible May 24 09:43:25 :) May 24 09:43:42 I want to update a TextView within R.layout.home May 24 09:43:46 In short ;-) May 24 09:44:02 see that a 10% question May 24 09:44:08 my 10% answer May 24 09:44:11 setText() May 24 09:44:13 easy May 24 09:44:30 But I cant, because the current way the fragment is loaded requires the a 'return' May 24 09:44:50 see now your not making any sense again May 24 09:45:05 yes a fragment returns a view to the fragmentManager May 24 09:45:06 So I can't update the textview since the onCreateView already returned May 24 09:45:30 erm why does that matter > May 24 09:45:32 ? May 24 09:45:39 if it;s on the screen May 24 09:45:42 you can update it May 24 09:45:51 Where would I perform that update at? May 24 09:45:54 or fk with it in some way depending on what it si May 24 09:45:55 is May 24 09:46:06 where do you want to ? May 24 09:46:21 I woudl love it to be within the HomeFragment class I gist'ed May 24 09:46:31 then get an instance of the fragment May 24 09:46:55 and either a) have a method in that fragment that you pass a string to and it updates it based on it's own reference May 24 09:46:57 OR May 24 09:47:14 I was looking at onFinishInflate callback to modify the value after it's on the screen. May 24 09:47:16 b ) get the view from the fragment instance and findViewById and do it yourself May 24 09:47:43 hi there, I stored the 3rd party jars in lib instead of libs, it can compile by using intellij but cannot compile with "ant release", where can I do the setup stuff to solve this? May 24 09:47:46 ah so now your brining "when" to the table too May 24 09:48:20 StingRay_, If at all possible, this could be solved by having a variable in the XML (that I would hope could call a function) May 24 09:48:27 Then I wouldnt have to worry since it'll do it for me ;-) May 24 09:48:27 lol May 24 09:48:55 see from the info that you gave in parts we are about 70% there to an actual full question May 24 09:49:19 StingRay_, It's a semi-complicated issue, requires a little explanation May 24 09:49:34 Mostly because I'm a novice android developer... May 24 09:51:02 same here May 24 09:51:33 but communication and articulation of a message are not related ;) May 24 09:51:39 Good morning everyone :) May 24 09:51:52 morning May 24 10:17:26 haha, http://blog.azimuthsecurity.com/2013/05/exploiting-samsung-galaxy-s4-secure-boot.html May 24 10:36:20 oh btw, ant, fk yeah, all sorted in AS and working with multiple lib projects with multiple references that are not all banged together May 24 10:36:27 fk u gradle shit! May 24 10:36:59 but on the up side, I may stick with AS + ant and see what all this intelliJ is about now :) May 24 10:42:30 http://gyazo.com/87788fedf5465738da73e695a5fd2c6a May 24 10:42:35 mountpoint /data/data May 24 10:42:39 172M size May 24 10:42:41 is this regular? May 24 10:42:59 StingRay_, join the dark side of maven users :P May 24 10:43:26 Mavrik: maybe May 24 10:43:39 but I just want to spend a few days getting work done May 24 10:43:45 then I will play again :) May 24 10:44:30 pfft, productivity is for normal peoplež May 24 10:44:57 well I've been anything BUT normal in the last month May 24 10:45:06 time to be normal at least for a week May 24 11:02:56 does android always write database to /data/data? May 24 11:03:06 is it possible to write database to external sd card? May 24 11:03:13 application database May 24 11:03:28 Hey noobs :) May 24 11:03:45 hey noob May 24 11:03:56 zhulikas, it's possible to write database wherever May 24 11:03:59 michael??? May 24 11:04:02 hmmmm May 24 11:04:11 hiho how to load facebook page to android app? May 24 11:04:17 for some reason I transferred my app to sd card May 24 11:04:25 and then it still creates db in /data/data May 24 11:04:37 where is this michaelnova? May 24 11:07:41 zhulikas, of course, because you tell it to create it there. May 24 11:08:06 ciurkut, I suggest you explain your issue better. May 24 11:08:10 how can I tell it to create it elsewhere? May 24 11:08:11 hmm May 24 11:08:13 let me google that May 24 11:09:07 zhulikas, you pass the filename when opening May 24 11:10:00 I'm using SQLiteOpenHelper May 24 11:10:09 and yes, I pass database name May 24 11:12:09 zhulikas.... May 24 11:12:14 are you Greek or something? May 24 11:12:15 :) May 24 11:12:27 why May 24 11:12:45 because your name sounds Greek... May 24 11:13:08 I'm Lithuanian May 24 11:13:24 ok, I don't really need to use SQLiteOpenHelper... May 24 11:13:35 Lithuanian May 24 11:13:43 will write my own which creates db on sd card May 24 11:14:08 Mavrik i want to display timeline in best posible way. if i use webview it asks me to log in every single time May 24 11:14:24 is there any option to use loged data from facebook apps May 24 11:14:29 to just display timeline? May 24 11:14:44 Hi May 24 11:14:51 When should I use short toast or long toast? May 24 11:15:20 never May 24 11:15:29 StingRay_, explain May 24 11:15:32 well 95% of the time never May 24 11:15:40 short toast for high fives, long toast for obnoxious acronyms like OMG LOL May 24 11:15:44 an uncontrolled message May 24 11:15:55 by that I mean the user pov May 24 11:16:12 Personally, I use Croutons for these small kind of notifications. May 24 11:17:06 Toast is the Holo way of displaying messages May 24 11:17:11 ciurkut, using official Facebook SDK is your best bet. May 24 11:17:40 SiPlus, hmm, I've never really able to find use for long toasts May 24 11:18:00 SiPlus, those things are usually better as AlertDialogs if they must be May 24 11:18:17 toast is a transient message anyway and you shouldn't expect user to read it :) May 24 11:18:18 or notifications May 24 11:18:18 I want to show that the user has inputted an invalid character May 24 11:18:37 entered * May 24 11:18:40 then do something were the users focus is May 24 11:18:50 the input area or widget May 24 11:19:06 SiPlus, recoloring the input area with text underneath it will probably be way better for UX May 24 11:19:10 short toast would work as well May 24 11:19:36 Mavrik, with only recoloring, how can I tell the user what characters are allowed? May 24 11:19:37 long toast will hang around forever - user will retype everything and switch activities and the toast will still be visible ;) May 24 11:19:52 Mavrik, really? May 24 11:19:54 "with text underneath" … or close May 24 11:19:55 Mavrik: short toast ? depends if the user is focused there May 24 11:20:01 ods are keyboard is up May 24 11:20:05 StingRay_, yes. May 24 11:20:05 odds May 24 11:20:07 I thought that short toast is 3 seconds long and long toast is 5 seconds long May 24 11:20:09 or 2/4 May 24 11:20:18 StingRay_, odds are people are focused on keyboard while typing and that's where toasts show up May 24 11:20:21 ;) May 24 11:20:33 SiPlus, 5 seconds is a long time in a mobile app :) May 24 11:20:50 My string: May 24 11:20:51 Your account name or password has disallowed characters.\nAllowed characters are: 0–9 A–z !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ May 24 11:20:58 ugh May 24 11:21:05 noone will read that ;) May 24 11:21:06 shorten it May 24 11:21:11 I tried to use short toast, but it's a bit short for me May 24 11:21:17 "Your password may only contain letters"@ May 24 11:21:30 SiPlus, yeah, because your problem is the wall of text not the toast May 24 11:21:36 remember, people on mobile don't read May 24 11:21:38 :) May 24 11:21:46 The problem is that it doesn't simply contain letters May 24 11:21:52 It may contain only Latin letters May 24 11:22:03 And also numbers and all other ASCII printable chars May 24 11:22:26 '()*+,-./:;<=>?@[\]^_`{|}~ May 24 11:23:03 It's not my own protocol, so I can't change it May 24 11:23:13 do a little shake for it May 24 11:23:17 when it's wrong May 24 11:23:39 StingRay_, but how do I tell the user what letters are right? May 24 11:26:10 look to the web May 24 11:27:00 enter your password *********** (enter) "SHAKE" --- > text appears above the entry area / or alertDialog May 24 11:27:27 JakeWharton: thanks for fixing the retrofit bug May 24 11:28:40 Oh, yes May 24 11:28:44 *********** May 24 11:28:55 So the user won't see where the incorrect letters are May 24 11:29:07 My idea is probably ok for account names, but awful for passwords May 24 11:31:08 lol... im downloading facebook sdk and it says that archive has bad format May 24 11:31:09 :c May 24 11:31:28 ) May 24 11:32:08 and each time it has different size <3 May 24 11:32:11 how lovely May 24 11:32:12 :D May 24 11:32:15 everything with facebook is a bad format May 24 11:32:18 even the idea May 24 11:32:37 having an account on there May 24 11:32:39 :c May 24 11:32:41 posting on there May 24 11:32:46 all of it May 24 11:32:50 bad!!! :) May 24 11:32:52 right May 24 11:32:57 lets make better one :< May 24 11:33:01 :3 May 24 11:33:48 you cant argue with 1 billion people May 24 11:34:12 the dumb dont interest me enought to argue with May 24 11:34:19 so out of choice, your are correct ;) May 24 11:35:37 but you use google May 24 11:35:45 that is same shyt May 24 11:35:54 that gets your data and know when youre fapping May 24 11:36:14 there is a difference of subject and context May 24 11:36:28 tracking cookies everywhere May 24 11:36:29 fb is a socialite mess of teeny wannabies May 24 11:36:41 google is a little different May 24 11:36:48 I assume you mean google+ ? May 24 11:36:53 or you just mean google May 24 11:36:55 ? May 24 11:37:11 google+ and google overall May 24 11:37:17 you dont like facebook as idea? May 24 11:37:23 no May 24 11:38:01 not really that much of a fan of g+ either, but tis lots better than fb May 24 11:42:54 okay... fock it... no facebook sdk today May 24 11:44:32 How do I add spacebar to EditText android:digits? May 24 11:48:24 why would numberical input have a space ? May 24 11:48:55 it's not numerical May 24 11:48:57 it's ascii only May 24 11:49:03 ansi only * May 24 11:49:48 im trying to capture an image via camera and put it into an ImageView. how can i dynamically set the dimention of the final ImageView? May 24 11:50:25 with it's layoutParams May 24 11:50:28 well, I'll make a widget for filtered text input May 24 11:50:31 with and height May 24 11:50:34 width May 24 11:50:36 MANIFEST! May 24 11:50:39 shit! May 24 11:50:46 that checks entire string for incorrect characters when it's edited May 24 11:51:00 ankhwatcher <3 May 24 11:51:03 :D May 24 11:51:07 and flashes when the character is incorrect May 24 11:51:28 hang on, you can have validation regex filter on it no ? @ SiPlus May 24 11:51:38 ciurkut: you know when you've been troubleshooting something for hours and it suddenly dawns on you that the activity you're trying to launch isn't in the manifest... May 24 11:51:44 never done that, but seem to recall it May 24 11:52:15 Ankhwatcher: no, cause it tells you in locat May 24 11:52:18 logcat May 24 11:52:27 omg, too tired now... May 24 11:52:44 StingRay_: no this time, probably because I'm using pending intents or something May 24 11:52:58 nope May 24 11:53:07 would always say so I think May 24 11:53:16 at the end of the first line in red May 24 11:53:32 "******* have you declared this in the manifest" May 24 11:53:57 StingRay_: yeah, that wasn't coming up for this one May 24 11:54:10 StingRay_: i kow about layout_width and layout_height but with them i can set like 800dp in 600dp. but i want to reduce its size dynamically while in cellphone or show a bigger image in tablets May 24 11:54:37 you can set what you want May 24 11:54:50 and what do you mean dynamically May 24 11:54:52 haha! now it's working! May 24 11:55:10 how is setting layoutParams in code anything but dynamic May 24 11:55:21 based on events and conditions May 24 11:55:22 :) May 24 11:55:52 StingRay_: i mean like the ImageView object shows a bigger preview of the taken photo via Intent while on bigger screen like tablets May 24 11:56:44 I think I'm missing the point here, cause what I just said matches what I think your asking May 24 11:57:07 By the way does anyone know how to create a PendingIntent to open a browser window, with the URL being added by a FillInIntent? The whole reason I have this activity is to get around not know how to do that. May 24 12:00:14 right bed time May 24 12:00:16 sleeps May 24 12:00:27 happy coding and goodnight May 24 12:00:27 StingRay_: goodnight May 24 12:00:29 :) May 24 12:00:41 night :) May 24 12:02:40 I've got an interesting problem, what the hell is wrong when an application using the camera doesn't resume previewing after the device being "locked" May 24 12:03:24 ikarus: that's probably a battery saving issue May 24 12:03:37 maybe restart it onresume? May 24 12:03:51 I think you'll have to test for it in onResume and re-request May 24 12:03:55 ciurkut: I am doing that, and the logcat log indicates it's reopend May 24 12:03:58 is your startactivityforresult returning? May 24 12:04:07 but the preview is just never resumed May 24 12:04:18 is your startactivityforresult returning? May 24 12:04:27 with code cancel or something? May 24 12:04:35 cause maybe other preview is tehere! :c May 24 12:04:55 kill preview at onpause and than start it May 24 12:04:58 on resume May 24 12:04:59 :c May 24 12:06:14 anyone wants to bump my thread on xda developers? :P May 24 12:06:15 ciurkut: how would one kill the preview ? May 24 12:06:48 ciurkut: link? May 24 12:07:15 http://forum.xda-developers.com/showthread.php?t=2293369 May 24 12:07:24 write nice review May 24 12:07:27 about how you love it May 24 12:07:34 and how it makes your every day better May 24 12:07:35 :c May 24 12:10:05 hrm, I do a stopPreview() setPreviewCallback(null), etc onPause, then onResume I reattach that mess May 24 12:10:30 ikarus http://stackoverflow.com/questions/6519120/how-to-recover-camera-preview-from-sleep May 24 12:11:09 ciurkut: I swear I already had an app called pattterns May 24 12:11:20 maybe from me :c May 24 12:11:34 this was last year sometime May 24 12:11:37 :C May 24 12:11:46 maybe pattrn May 24 12:11:53 but mine is better and offline May 24 12:11:54 :c May 24 12:12:43 ciurkut: this is the one: https://play.google.com/store/apps/details?id=org.lucasr.pattrn May 24 12:12:58 yep May 24 12:13:00 its pattrn May 24 12:13:02 as i said May 24 12:13:04 :< May 24 12:13:22 on my phone i use the photoshere background app, it's cool because it makes use of my pictures May 24 12:13:37 because honestly I wouldn't use them otherwise May 24 12:14:15 you mean spheres? May 24 12:14:17 ciurkut: well I'm installing the free version of your app on my N7, I'll give it a go May 24 12:14:18 that photos May 24 12:14:20 360 May 24 12:15:07 thx May 24 12:15:14 ankhwatcher May 24 12:15:45 JakeWharton: ^ May 24 12:15:54 How can I see the generated code in annotation processing? May 24 12:16:00 http://jakewharton.github.io/butterknife/ May 24 12:23:27 with gson, is it possible to have a custom partial deserializer ? May 24 12:25:48 cAN I download whole Official docs so as to work offline? May 24 12:27:11 Issac: yes, in SDK manager May 24 12:27:38 ciurkut: so are all the patterns grey? May 24 12:28:02 nope :c May 24 12:28:04 why gray? May 24 12:28:15 those are subtle patterns May 24 12:28:23 for some dark ones you have to bump brightness up May 24 12:28:28 well the ones I looked at are all monochromatic May 24 12:28:33 those are like paper textures May 24 12:28:40 carbon fiber textures May 24 12:28:42 white, grey, black May 24 12:28:44 jeans May 24 12:28:47 yep May 24 12:28:50 they all are May 24 12:29:12 and all the patterns are in the app right? May 24 12:29:17 yep May 24 12:29:21 i mean May 24 12:29:26 you have small file May 24 12:29:26 which is why it's so large? May 24 12:29:37 and wallpaper gets generated for your screen resolution May 24 12:29:40 yep May 24 12:33:13 cheat calculator heh May 24 12:35:11 :C May 24 12:35:19 something wrong? :P May 24 12:35:27 hmm i thought the whole point of using appt to adjust package name was that u dont need to manually edit things, but my mainfest is complaining about a permission i dont have May 24 12:36:01 aapt May 24 12:36:10 ciurkut i hate clutting any UI with ad but May 24 12:36:17 preview ad should be near set button May 24 12:36:21 so people will accidently click it May 24 12:36:37 kk May 24 12:36:38 also, i would drop the ad in a container with a border to offset it visually from your app May 24 12:36:47 maybe even spanning the horizontal May 24 12:36:58 im thinking about making ad like in truck parking 3d May 24 12:37:04 so than you click at back button May 24 12:37:07 and it shows you add May 24 12:37:09 :D May 24 12:37:10 :< May 24 12:37:14 its so damn annoying May 24 12:37:28 you need to fix it so if i rotate it it won't start over May 24 12:37:29 but that guys reports about 200$ daily :c May 24 12:38:19 anyone used aapt to change package names? May 24 12:38:26 like at the end of development May 24 12:38:33 which truck parking 3d app? May 24 12:38:59 first one that shows up May 24 12:39:00 :< May 24 12:39:04 ideally for such a "simple" app you should use action bar / action bar sherlock to give it that android look May 24 12:39:41 also some transition would be nice from selection to preview May 24 12:40:40 you could also implement full screen scrolling by putting a view pager that swipes May 24 12:41:08 lasserix what you mean by rotate starts over? May 24 12:41:13 you mean that on selection May 24 12:41:16 it goes to the top? May 24 12:41:36 goes to top and the intro pop-up shows up again May 24 12:41:56 whats worse if i rotate it back and forth, they'll be that x many popups on top of eachother ;p May 24 12:42:08 :C May 24 12:42:10 okay May 24 12:42:11 thanks May 24 12:42:12 :) May 24 12:42:13 :< May 24 12:42:15 np May 24 12:42:19 i am using n7 btw May 24 12:42:40 you might have a simple menu system to select "relative row size" May 24 12:43:11 wait im writing it all down :C May 24 12:43:17 you could also have a random button so instead of scrolling i can keep pressing random and it'll randomly sort the list May 24 12:43:54 button in actionbar May 24 12:44:02 just use action bar May 24 12:44:14 but like you can have home enabled to go back May 24 12:44:24 like other apps, but you can also move "set" button up to action bar May 24 12:44:46 oh May 24 12:44:47 this aapt thing is baffling May 24 12:44:48 kk May 24 12:44:50 you can also do "about" and "settings" to link to other apps, your website and set whatever using settings might be useful May 24 12:44:54 thats a long list :c May 24 12:45:23 ciurkut: well it depends on why you are making this app: if you are doing it as part of a portfolio you want to make it fully "featured" May 24 12:45:37 if you don' May 24 12:45:45 k May 24 12:45:51 i want to make it fully featured anyway May 24 12:45:53 't really care, then don't waste your time you know? May 24 12:45:53 :< May 24 12:46:14 but the idea is to make it look like a "professional" google app as far as UI patterns May 24 12:46:42 okay May 24 12:46:49 ill try to do my best May 24 12:46:56 in future releases May 24 12:47:16 what you mean by relative row size? May 24 12:47:32 different row sizes May 24 12:47:32 finally i think it would be cool--since you have networking permission--to keep track of when people do set that way you can overlay some meta-information (like if that tile is popular or how many times it has been set, if the user has viewed it in preview before, etc) on the full-size preview for each one May 24 12:47:34 yeah May 24 12:47:35 and you can pick one? May 24 12:47:41 What triggers an android.accounts.AccountAuthenticator Intent? What kind of action? May 24 12:47:45 cause on my nexus7 i might want it larger May 24 12:47:49 but on my phone not so much May 24 12:47:56 maybe that's overkill though May 24 12:48:29 but if you plan on expanding the db of patterns, idea is to make it possible for user to tailor their browsing to how they like to browse May 24 12:48:40 without overwhelming them with options May 24 12:48:55 hence row size might be one way, May 24 12:48:58 ok May 24 12:49:08 would simple 2x be enough? May 24 12:49:12 i mean row height? May 24 12:49:17 yeah probably May 24 12:49:47 again ask yourself: is this choice option going to make a user's life easier or harder to use the app? May 24 12:50:56 ciurkut on the 3d truck are you talking about the ad that forces me to put an icon on my home screen, a bookmark and a brwoser homepage? May 24 12:51:08 nope May 24 12:51:14 im talking about ad May 24 12:51:21 that when you click back button May 24 12:51:24 it displays ad May 24 12:51:31 ahh May 24 12:51:32 but im not sure if thats moral May 24 12:51:33 that is clever May 24 12:51:36 it is May 24 12:51:44 but it is kinda too clever May 24 12:51:49 i would prefer that than forcing an ad inside my app UI May 24 12:51:58 cause if i spend a month or whatever developing a clean looking app May 24 12:52:08 but than normal people would not know how to close app May 24 12:52:09 the last thing i want to do is drop a shit somewhere on it ;p May 24 12:52:14 :< May 24 12:52:23 you just make it so they have to click twice, like dismissing May 24 12:52:25 i mean its kinda too pushy May 24 12:52:26 a dialog May 24 12:52:31 right May 24 12:52:31 nope May 24 12:52:34 its not like that May 24 12:52:54 1 back: ad... 2 back: back to main menu... 3 back: ad May 24 12:52:55 etc May 24 12:52:55 i wouldn't do it on back button, but i think nag screens are better way to put ads in app without corrupting the app use expirience May 24 12:53:01 ahh May 24 12:53:09 so you cant leave normal way May 24 12:53:13 you have to press home May 24 12:53:22 but that doesnt kill activity May 24 12:53:27 so its kinda weird May 24 12:53:58 yeah May 24 12:54:38 anyways good job May 24 12:54:41 but 200$ per day... who can argue with that May 24 12:54:46 heh May 24 12:54:49 when i first tried that app May 24 12:54:55 this is the app you mean https://play.google.com/store/apps/details?id=com.experience_game_3d.truck.parking&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5leHBlcmllbmNlX2dhbWVfM2QudHJ1Y2sucGFya2luZyJd ? May 24 12:55:02 i displayed ad about 5 times May 24 12:55:22 does it have that ad? May 24 12:55:25 if no May 24 12:55:28 i dont know May 24 12:55:29 i could messed title up May 24 12:55:41 sry May 24 12:55:42 it wont let me into it w/o installing some shit May 24 12:55:49 its truck driving 3d May 24 12:56:02 oh May 24 12:56:03 sorry May 24 12:56:08 driving not parking May 24 12:56:12 from fun addicting games May 24 12:56:33 check it out May 24 12:56:35 :p May 24 12:56:45 so one of aapts sole purposes doesnt work when ur using GCM permissions, weird as May 24 12:56:57 addicting :) May 24 12:57:00 hate that word lol May 24 12:57:29 ill better dont ask why May 24 12:57:30 :< May 24 12:57:48 hehe May 24 12:57:51 doesnt make sense May 24 12:57:56 well maybe it does to americans May 24 12:58:15 anyway im done, too much code, 15 hrs May 24 13:01:47 hi may someone help me? im tryin to follow this http://developer.android.com/training/basics/firstapp/building-ui.html but i got stuck. my application always show hello world instead of my design in graphical layout May 24 13:02:25 alex you using eclipse? May 24 13:02:51 you need to do setContentView( your file not theirs ) May 24 13:02:58 yes iam May 24 13:04:06 the file in the res/layout folder you are changing that should reflect your UI, is it as Gaz said, what the line in the activity code in the method onCreate(Bundle savedInstanceState) { ... setContentView(R.layout.myview); } May 24 13:04:20 where myview.xml is the file in the res/layout May 24 13:04:38 the xml layout that says "hello world" is the default layout supplied when you create a project May 24 13:05:20 when i open res/layout i just find activity_main.xml May 24 13:05:43 right you can add your new layouts there to try different ones, or you can edit activity_main.xml May 24 13:06:07 i already edit it same as in the tutorial May 24 13:06:19 ahh okay May 24 13:06:51 i have found that whenever i modify .xml file in eclipse I have to go to Project->Clean before the code reflects the changes May 24 13:07:24 i never do that, ok i will do it now May 24 13:07:50 now i will run my program May 24 13:23:56 how do you stop and start an animation on a widget? May 24 13:43:25 Ankhwatcher: you don't May 24 13:44:15 openkwaky: I used ic_popup_sync in my widget layout, if you select the widget by dragging it out of the app drawer it starts animating May 24 13:45:01 Strange. I have a Fragment w/ a ViewPager in it and when I press the back button, the content of the ViewPager blanks out while the Fragment is detached. May 24 13:46:08 Ankhwatcher: you have no control on animations in a widget or it is very limited May 24 14:06:40 Hey May 24 14:06:44 can you reset a thread? May 24 14:06:55 and how? May 24 14:10:29 Eclipse with ADT is saying this API method is depreciated but not telling what replaces it. What replaces this? getApplicationContext().setWallpaper(BitMap); May 24 14:11:07 Read the docs May 24 14:11:13 They tell May 24 14:11:30 Eclipse shows the docs May 24 14:11:45 and it's not there May 24 14:11:51 http://developer.android.com/reference/android/content/ContextWrapper.html#setWallpaper(android.graphics.Bitmap) May 24 14:11:55 But it's there May 24 14:15:37 can you restart a thread??? May 24 14:15:54 it shows in Eclipse this time May 24 14:15:58 the page must have been updated since i last checked May 24 14:16:25 Somebody know if there is any issue with Image MediaStore/ContentProvider on Nexus devices. I'm running on Galaxy Nexus and it does not work. But when I run on the emulator, it does. May 24 14:16:53 I am asking again.. Can you restart a thread? May 24 14:17:03 its not possible right? May 24 14:17:14 I see you changed your nick, llhami May 24 14:17:22 Wonder why May 24 14:17:24 dogan90 -> new MyThread() May 24 14:17:38 So you just make a new intance of it...? May 24 14:17:44 MyThread() being the class that implements Runnable May 24 14:17:49 my name is not llhami May 24 14:17:52 yes, why not? May 24 14:17:54 its ilhami May 24 14:18:08 'I' This is a capital i May 24 14:18:29 there is no "I" in team... May 24 14:18:40 lol May 24 14:18:45 Thanks, michaelnovakjr May 24 14:18:51 Somebody know if there is any issue with Image MediaStore/ContentProvider on Nexus devices. I'm running on Galaxy Nexus and it does not work. But when I run on the emulator, it does. May 24 14:19:46 i've heard of a galaxy and ive heard of a nexus but not a galaxy nexus May 24 14:20:32 Welcome to 1½ year ago, BullShark May 24 14:20:37 Yead. May 24 14:20:46 BullShark: The Nexus released between the Nexus S and Nexus 4.. May 24 14:21:02 Galaxy Nexus is the "Nexus 3" May 24 14:21:10 http://www.gsmarena.com/samsung_galaxy_nexus_i9250-4219.php May 24 14:21:23 SimonVT -> i paid no attention to the different android devices until I was able to get one of my own May 24 14:21:28 Sambarboz -> oh i see May 24 14:21:49 Anyway… Any of you are aware of MediaStore.Images problems on nexus? May 24 14:21:57 not May 24 14:22:16 what does logcat tell you May 24 14:23:10 BullShark: Nothing. It just doesn't load the images. May 24 14:23:25 The app don't crash. May 24 14:23:53 no warning or error message even? May 24 14:24:27 Nope :( May 24 14:25:58 Hi, May 24 14:26:15 I have a question about androis'VM. May 24 14:26:47 Are there a data structure, more or less like arrays, that will be good to make a "one piece" allocation. I could do it by using the NDK (maybe I should...), but It would be better if I can do that using only java (because I'm using some kind of cross plateform library) ) May 24 14:27:39 how can i be having this error when the app does launch from eclipse? [2013-05-24 09:24:54 - Unexpected error while launching logcat. Try reselecting the device.] device not found May 24 14:27:41 com.android.ddmlib.AdbCommandRejectedException: device not found May 24 14:34:59 Hey May 24 14:35:04 how are you? May 24 14:35:25 is Android Studio going to replace Eclipse with ADT? May 24 14:35:36 Yes May 24 14:35:58 Eclipse is really bad... May 24 14:36:07 No, both will be maintained May 24 14:36:17 I am talking about usage May 24 14:36:19 the sessions all mentioned parallel tracks for AS and eclipse May 24 14:36:28 People wont use Eclipse anymore I think May 24 14:36:30 what is the difference between IntelliJ IDEA with Android Support and Android Studio? May 24 14:36:41 BullShark: deeper android integration May 24 14:36:48 Intellij can do more than just android May 24 14:37:47 BullShark: AndroidStudio, in a way, got the Android support from IDEA 13 May 24 14:37:57 can you just add something to intellij to have the same thing similar to how you can add the adt plugin with android sdk to eclipse classic and have the same thing as the adt-eclipse-bundle? May 24 14:38:25 BullShark: not in 12.x, 13's Android plugin has the stuff from AndroidStudio May 24 14:40:19 What do you think about GraphView lib? May 24 14:40:52 It's a library that does graphs May 24 14:41:41 Is it the best out there? May 24 14:41:49 best one* May 24 14:44:33 that happens very very rarely here May 24 14:44:35 not sure how he got back in. i didn't see a join message since the last time he was kicked. May 24 14:48:23 speaking of Android Studio. I installed it yesterday on my linux box at home and everything works except that the android tools are missing from the tools menu. They are installed and I can run them from the command line they just won't show up in the menu. Anyone has/had the same problem and was able to resolve it? May 24 14:48:46 does the Activity.onCreate() method get called again when changing the screen orientation? i have a splash screen that plays a sound clip with MediaPlayer from the onCreate method. When I change the orientation, I have the sound clip being played twice and another one for each screen orientation change. May 24 14:49:22 xor42 -> it's still in beta. i would expect some bugs. May 24 14:50:03 BullShark: ye thats what i thought :-). Must be a linux specific bug since the mac version i use at work is ok May 24 14:52:12 xor42 -> i would file a bug report or if one already exists, let them know the bug also affects you. May 24 14:55:12 xor42 -> google took so long to fix a bug for the adt-eclipse-bundle that I just downloaded Eclipse from eclipse.org, added the SDK and ADT plugin to it. I had been thinking the modified Eclipse gave some features for android that weren't available without it, but that wasn't the case. Adding any plugins other than using the ones included like EGit and Vrapper broke adt-eclipse-bundle. May 24 14:56:06 xor42 -> it was a bug reported for the linux version so i guess they are giving Linux low priority. However some said they were using windows and they were affected too. May 24 15:05:56 BullShark: thanks for the info. I'll file a bug report. May 24 15:13:05 Are there RPMs for the SDK for CentOS somewhere? I'm tired of the various build tools trying to update themselves on our jenkins servers. May 24 15:13:28 (specifically, I'm annoyed that lint is trying to create .../android-sdk-linux/build-tools/ when it runs, and it's breaking the build since the SDK is not installed as the jenkins user.) May 24 15:14:41 not that i know of. it is in the repositories for Linux Mint which uses some of the same ones Ubuntu uses May 24 15:15:12 damn. May 24 15:15:29 Any idea how to address this? http://hastebin.com/kuyilahaci.vbs May 24 15:15:43 /opt/android-sdk-linux is owned by root, and does not let jenkins scribble on it May 24 15:15:52 a state of affairs I'd prefer to keep May 24 15:31:08 does the Activity.onCreate() method get called again when changing the screen orientation? i have a splash screen that plays a sound clip with MediaPlayer from the onCreate method. When I change the orientation, I have the sound clip being played twice and another one for each screen orientation change. May 24 15:31:42 i believe a screen orientation changes triggers an onPause() even. so is onCreate always followed by onPause()? May 24 15:32:33 Yes. The old instance is destroyed and a new is created May 24 15:32:38 then how should i prevent the MediaPlayer sound clip from being played twice from the onCreate() May 24 15:32:42 http://developer.android.com/guide/topics/resources/runtime-changes.html May 24 15:32:48 BullShark: Yeah, it's kind of silly, but the activity is recreated on screen rotations May 24 15:32:57 then how should i prevent the MediaPlayer sound clip from being played twice from the onCreate() May 24 15:33:04 if you look at the activity lifecycle diagram, I believe its shjown there May 24 15:33:10 Don't play it again if it's already playing May 24 15:33:36 or you can set a flag saying already played May 24 15:34:41 ok, just make a boolean May 24 15:34:43 i see May 24 15:35:24 guys. May 24 15:41:47 BullShark, don't use a splash screen May 24 15:41:51 they're bad May 24 15:42:19 anyone wants to bump my post at xda developers? May 24 15:42:22 i mean my thread? :P May 24 15:42:25 with my app? May 24 15:42:31 not really... May 24 15:42:37 and not sure what that has to do with android-dev :P May 24 15:42:55 wow, a noise-making splash screen May 24 15:43:09 more like a super annoying annoying-screen May 24 15:43:20 ive actaully uninstalled apps because of their splash screen before May 24 15:43:30 one time i was in ahurry, opened an app, saw the splash screen for a second May 24 15:43:35 and i just got so fed up i closed it and uninstalled May 24 15:44:12 as a developer, it's a valuable way to save the user the time needed to evaluate the app May 24 15:44:56 lol? May 24 15:45:27 |0xD34D|, can you please settle on a name :P May 24 15:45:35 <|0xD34D|> nope May 24 15:45:50 canadiancow -> the splash screen is nothing more than part of a tutorial i am following. May 24 15:46:13 canadiancow: I love when you see the splash screen, give up, press "Home" to get on with your life. They don't cancel their runnable and it pops up the real app after the delay (on top of whatever else you're now doing) ಠ_ಠ May 24 15:46:22 BullShark: follow a different tutorial :/ May 24 15:46:51 evanc ugh May 24 15:46:53 dont get me started May 24 15:47:08 SimonVT and shmooz -> would this be the correct way to do what you guys said? http://vpaste.net/LTNKO May 24 15:47:09 evanc: Ever better when it shows the splash screen, shows the main activity.. You press back, and it shows the splash screen again May 24 15:47:15 SimonVT: hahah May 24 15:47:44 evanc -> already on video 51 of 200, don't want to start all over from the beginning May 24 15:48:42 BullShark: Orientation changes creates a completely new instance of your activity May 24 15:48:53 SimonVT -> no, you add android:noHistory="true" in the manifest to prevent the back button from showing the splash screen again. that causes the activity to get pushed off the stack and finish() called on it May 24 15:49:36 SimonVT -> then what is the solution =/ May 24 15:50:24 SimonVT -> make the boolean static? May 24 15:50:30 in that case you can check isPlaying() flag of MediaPlayer to do it May 24 15:51:02 yeah if i had reference to that object May 24 15:51:26 but it was created from another instance/object of a class May 24 15:54:29 so why not just make that boolean calledOnce static? May 24 15:56:11 http://developer.android.com/reference/android/accounts/AccountManager.html#confirmCredentials(android.accounts.Account, android.os.Bundle, android.app.Activity, android.accounts.AccountManagerCallback, android.os.Handler) May 24 15:56:51 Can anyone explain me the role of AccountManagerCallback y handler? May 24 15:57:36 shmooz -> or should i make the MediaPlayer object static so i can have reference to it from the new instance of the class caused by screen orientation change? May 24 16:00:48 mmph May 24 16:00:52 the android sdk sure is automation-hostile May 24 16:01:29 anyone have any suggestions on either (A) how to install it via puppet or (B) how to have Jenkins install it automatically, for a project that's using maven (and therefore has no project.properties file, which the Jenkins plugins I found all require)? May 24 16:01:45 BullShark: you should have some widget like a button or list to trigger it , instance the object at onCreate and play it on triggering the widget, and then you can check stuff at onConfigurationChanged to stay consistent on rotation May 24 16:05:06 Anyone here ever have issues getting a device to be recognized for USB debugging? May 24 16:05:41 what is a list widget May 24 16:05:52 Brian|CB -> have you enabled usb debugging on the device? May 24 16:06:08 and restarted adb May 24 16:07:57 BullShark: I plugged it into a different computer, then back to mine May 24 16:07:58 now it work May 24 16:08:00 works* May 24 16:08:02 gypsy magic May 24 16:08:55 i need some of the gypsy magic May 24 16:12:42 BullShark: Whats your issue? May 24 16:12:44 maybe I cna help May 24 16:14:05 Brian|CB -> it might be solved. i just need to try something in the code and see if that solves it. before i was unaware that a screen orientation changed caused a new instance of the Activity to be created thus also calling the onCreate() method again May 24 16:15:07 ah May 24 16:15:09 yeah May 24 16:15:11 thats frustrating May 24 16:15:39 Protip: If loading data asynchronously, use loaders when possible. They can avoid the restarting of data transmissions when screens rotate. May 24 16:17:30 ok thanks. ill jot that down in my notes. May 24 16:27:31 has anyone tried ANDROID STUDIO yet? I just installed it on MAC May 24 16:27:41 of course May 24 16:27:54 if you scroll back, there was just another discussion on it May 24 16:27:56 Some PEOPLE tried it ALREADY. On VARIOUS PCS May 24 16:28:30 i haven't TRIED IT yet May 24 16:29:10 http://www.youtube.com/watch?v=7pdWAcK6Eh8 May 24 16:29:11 (7pdWAcK6Eh8) "Anchorman Brick Tamland: I DON'T KNOW WHAT WE'RE YELLING ABOUT / LOUD NOISES" by "Alex Davidson" is "Entertainment" - Length: 0:00:08 May 24 16:29:18 wat May 24 16:29:55 I'm not sure why people are yelling either May 24 16:30:14 but I just logged on, and apparently I just missed a conversation about it. May 24 16:30:25 Do you have any specific questions? May 24 16:30:31 Otherwise your answer is "Yes" May 24 16:31:08 I have lots of specific questions... But I am an iOS developer, so need to play a little with it today. May 24 16:31:59 I have a hello world app running by it on my HTC... but the file layout looks diff than the eclipse version May 24 16:32:22 is AS ready to use? May 24 16:32:31 it's a developer preview May 24 16:32:41 so dont use it? May 24 16:32:41 it should work fine for "simple" apps (by my definition of "simple") May 24 16:32:45 By File Layout you mean...? May 24 16:32:50 it's going to be a better experience than eclipse May 24 16:33:19 yea... if I am just learning, should I start with AS or Eclipse? May 24 16:36:05 Hard to tell. AS is definitely the IDE to use in the future. But it _is_ a preview and thus maybe has less support (especially less answered SO questions). May 24 16:37:59 IrishGringo: Learn Eclipse first May 24 16:38:10 Android Studio is nowhere near production, it's still in the early phases May 24 16:38:20 I'd expect Android Studio to be an industry standard in maybe like 6 months May 24 16:38:21 but not now May 24 16:38:46 it's much easier to do a lot of important things like link libraries and such in eclipse, so dont bother with studio till it gets the basic stuff like that right May 24 16:38:46 thanks... AS does look sexxy.... almost as nice as xCODE... ;) May 24 16:39:24 Except that the text editor is probably superior. Xcode is the only IDE that (for me, personally) lacks a lot of hotkeys I have in all my other editors. May 24 16:39:55 But I don't want to go into that. Xcode is very nice in most other regards. May 24 16:41:50 If I could just slap sublime into the Android Studio, while maintaining the library imports of eclpise, I'd switch in a heartbeat May 24 16:42:00 very stup question... But I am reinstalling eclipse... should I use 32 bit or 64 bit? May 24 16:42:06 xCode is great if you like developing for closed systems May 24 16:42:11 on MAC May 24 16:42:11 I can't do it, it just seems silly May 24 16:42:23 IrishGringo: It depends, is your CPU 32 or 64 bit? May 24 16:42:33 64 i5 May 24 16:42:52 then 64 May 24 16:42:53 ol May 24 16:42:55 lol* May 24 16:43:25 yea... I would have guessed that... thanks... May 24 16:44:24 is there an android lib that auto synchs to google APP Engine Databases? like auomgically? May 24 16:44:38 for database synching? May 24 16:45:05 IrishGringo: What are you trying to integrate between android and app engine? Cause I have been doing a lot of cross platform work May 24 16:45:20 but usually what I do is create a REST API on the app engine server, and interact via json put/get requests on my android app May 24 16:47:04 well, I have been doing couchDB stuff synching to iOS... and I am thinking that google has probably integrated a DB synch feature between GAE and android May 24 16:47:30 i was thinking of just a slave DB on the mobile devices. May 24 17:33:12 Hello May 24 17:33:15 hello May 24 17:33:54 anyone know a good UML editor plugin for ADT similar to Visual Studio's C# ? May 24 17:34:30 pent0r: Are you trying to do android with C#? May 24 17:34:34 if so, may I ask why? May 24 17:34:40 I am not May 24 17:34:40 oh May 24 17:34:41 wait May 24 17:34:42 i misread May 24 17:34:54 youw ant something similar to, not C# May 24 17:34:57 I just like the designing of classes in the UML May 24 17:35:08 quickly adding atributes and methods that way May 24 17:35:23 na dhaving the class code be generated for me May 24 17:35:29 I've never used a UML honestly, they always seemed sort silly and frivelous May 24 17:35:32 and then adding my code in May 24 17:35:38 also, stuff that involves drawing out I prefer to do via whiteboard May 24 17:35:55 but I don't believe their is a solution like that for android May 24 17:35:56 D: May 24 17:36:04 ADT drag n drop design is like a very crippled version of the C# flow :) May 24 17:36:06 imho ofc May 24 17:36:26 it makes things sooo much faster May 24 17:37:12 pent0r: Hey, I like to use Astah UML May 24 17:37:34 wviana: does it compare to C#'s ? May 24 17:37:47 pent0r: there is a way to import java code and auto create the diagrams May 24 17:37:57 ah yeah May 24 17:38:00 pent0r: Sorry, I don't know C#'s May 24 17:38:04 that's all pretty but i want the opposite May 24 17:38:18 I want to think and design my model visually May 24 17:38:29 and have the UML create the bulk code May 24 17:38:43 getters and setters May 24 17:38:51 yes, it does de opposite but is a little hard to understand, May 24 17:38:51 and method signatures May 24 17:39:08 alright, I shall give it a look, thanks May 24 17:39:12 pent0r: end I know that it works with java, I had never tested in Android May 24 17:49:10 I have and an ImageView inside a FrameLayout. I want the TextView to be semi-transparent and render over top of the image view (occupying the entire view). I set the ImageView to match_parent, but that doesn't seem to do the job because the TextView just renders arbitrarily wide. Is there a better way to to dhis? May 24 17:49:15 *this May 24 17:55:19 svm_invictvs: android:layout_alignTop="@+id/your_icon_id" May 24 17:55:43 svm_invictvs: sorry, i don't know if I understand rigth May 24 17:55:52 sec, let me post code. May 24 17:56:40 svm_invictvs: do u want this imageView like a background of the textView ? May 24 17:56:57 http://mysticpaste.com/view/XI8meB7meN?5 May 24 17:57:15 Kind of, I want the text view just to be a bar at the top that's semi-transparent. May 24 17:57:24 I dont' want the text view to occupy the entire view. May 24 17:57:57 just a secont, I'll test it here May 24 17:58:20 WHat I've got works just fine, except that horizontially the text view does not occupy the entire width. And when it does, it's only because the text exceeds width. May 24 17:59:44 I'm thinking that maybe using the FrameLayout is a poor life decision. Maybe a relativeLayout is a better choice. May 24 18:00:39 framelayout is kind of a niche layout component May 24 18:00:43 very basic May 24 18:00:44 Yeah May 24 18:01:11 Note, I didn't select it. I was given this code, so I was just tryint to hack what was there. but it says that framelayout is really only for one view May 24 18:01:16 So... May 24 18:01:18 Let me fiddle with it. May 24 18:01:26 FrameLayout is fine for this case May 24 18:01:42 Or rather, it's the right layout May 24 18:02:19 SimonVT: have you found a way to log crap to logcat with retrofit? May 24 18:02:37 Log.d(TAG, "crap") May 24 18:02:48 disclaimer: i didn't read the scrollback so my comment has no context, possibly framelayout was right in your case May 24 18:03:07 SimonVT: setting a logger on the RestAdapter.Builder does not actually log the requests May 24 18:03:07 You'll have to be more specific May 24 18:05:00 Tried calling setDebug as well? May 24 18:05:53 Anyway, I'm not sure what it's supposed to log anyway May 24 18:07:30 SimonVT: Yeah, but I'm having trouble getting the text to behave correctly >< May 24 18:07:43 svm_invictvs: take a look https://gist.github.com/anonymous/ffbe0e7ae13bf77c5546 May 24 18:08:06 svm_invictvs: I did with a relative layout May 24 18:08:42 wviana: Let me give that a shot. Thanks! May 24 18:09:23 noobish question: When should I have a new activity versus just making different things visible/gone? May 24 18:09:24 svm_invictvs: How does it behave them May 24 18:09:28 s/them/then/ May 24 18:09:35 svm_invictvs: please, anything please put my name in menssage ;) May 24 18:10:00 SimonVT: The text view doesn't fully occupy the parent view. May 24 18:10:08 SimonVT: Left to right at least. May 24 18:11:52 That's probably happen if the framelayout was wrap_content May 24 18:13:29 But if you're somehow inflating it as wrap_content (I don't know what the parent view is), you should set the fixed size on it instead of the imageview May 24 18:18:25 There is any way to decide what layout to put in a contentView in onCreate ??? May 24 18:18:33 wat May 24 18:19:03 Just pass it a layout you decided May 24 18:25:33 SimonVT: when I put if it stops work look the code https://gist.github.com/anonymous/020074b0f64ef6ed6de9 May 24 18:26:06 You don't compare strings with == May 24 18:26:13 You compare strings with .equals May 24 18:28:49 sure ! kkkk, I just forget it May 24 18:28:54 SimonVT: thanks May 24 18:29:02 SimonVT: sorry this May 24 18:46:22 hi, I recently installed android SDK and now when i connect my galaxy tab 2 in the USB port (im on Windows 7) the device is not recognized...what gives? May 24 18:46:36 before installing the SDK it worked like charm May 24 18:47:42 you might check the device manager May 24 18:47:55 if the tab 2 is recogniced as ADB May 24 18:58:26 hello folks, I'm wondering if someone can help me with an issue I'm having in Eclipse May 24 18:58:53 maybe if you describe it ;) May 24 18:59:24 lol my 2.5" disk has 27000 hours of operation ;) May 24 18:59:25 I need some help with the android command line utility. I've tried to do an `android --clear-cache` (can't get ui to stay suppressed) and more importantly, `android list sdk` won't show android 4.2.2 (API 17) or android 4.1.2 (API 16) May 24 18:59:37 How can I define a style to all xml components of a layout ? because I have 3 layouts that changes just string values May 24 18:59:43 pastebin in case i'm doing something silly on the command line http://pastebin.com/vsTvjWCY May 24 18:59:51 I have one package using MyFacebookActivity.java and then I have a FacebookSDK package. I'm getting an error saying thet the build path is incpomplete and cannot find the class file android.support.v4.app.Fragment May 24 19:00:24 I've tried removing that dependency from the facebookSDK package and then adding it as an external library, but no success May 24 19:01:55 The sdks will show up in the GUI, but not in the command line list May 24 19:02:00 Thoughts/ideas/help? May 24 19:04:23 Nevermind. Will skip the utility and just nuke $(HOME)/.android/cache May 24 19:20:34 guess this place is a waste of time May 24 19:28:52 any of you using picasso? does it work with remoteviews? May 24 19:29:39 funkbox: not yet May 24 19:30:29 any eta? i'd like to replace my image loading stuff with picasso May 24 19:31:43 funkbox: haven't even begun to look at it. Add a widget to the sample app, send a pull request, and I'll do it today :) May 24 19:32:03 hello, is there somone whom could help me with some intent trouble? May 24 19:32:14 JakeWharton: hah okay May 24 19:32:31 JakeWharton: what i have now for async loading images into widgets is pretty involved May 24 19:32:39 ok, it's simple. i got a SplashScreen, and i would like the "Back" button to ignore it May 24 19:32:52 and just quit the app when i back from the next activity May 24 19:33:34 Call finish after startactivity May 24 19:34:15 Thanks :) May 24 19:35:26 awesome :) May 24 19:35:33 there's also a clear task intent flag for 4.x+ May 24 19:36:37 i c, but i'm having some trouble with my intents allways creating a new intent. even if i got Intent.FLAG_ACTIVITY_REORDER_TO_FRONT flag May 24 19:49:49 do you guys think Communication is an appropriate category for this? https://play.google.com/store/apps/details?id=com.demarco.rotaryphone May 24 19:55:45 ok... so I have two fragment tab hosts... one tab host drawn right inside the other for some reason the second tab widget doesn't draw but the actual content is drawn... any help is appreciated May 24 19:56:24 main activity http://pastebin.com/J1R3JZ8g ... second tab hosting fragment http://pastebin.com/x4gS2e26 picture of what actually happens https://sphotos-b.xx.fbcdn.net/hphotos-prn2/971049_4933619498936_778183078_n.jpg May 24 19:56:26 still on the tab hosts then? May 24 19:56:34 yes May 24 19:56:46 it draws the tab content... and the second tab hosts content May 24 19:57:02 but the widget itself doesn't actually seem to draw for some reason so you can't choose your second tab May 24 19:57:53 Just wanna say: BustyLoli-Chan is an awesome nick. May 24 19:58:19 I don't know if there is a place where I can specify what the second tabHosts widget should be or what is actually going wrong, all I know is I've googled over and over and am led back to the same dead end articles... May 24 19:58:22 and thank you, I try May 24 19:58:48 gmaps/google-play-services was updated: anyone know where to read the changes on gmaps api ? can't seem to find any changelog on the official site May 24 20:02:56 nvm, found it: https://developers.google.com/maps/documentation/android/releases#may_2013 May 24 20:09:54 so I take it nobody really knows? :\ May 24 20:10:10 it's a strange problem using antiquated components May 24 20:10:24 anyone know a good UML editor plugin for ADT similar to Visual Studio's C# that allows for class and atribute and method creationg and will create java code from the UML diagram? May 24 20:11:42 and that is free May 24 20:46:30 anyone know a good UML editor free plugin for ADT similar to Visual Studio's C# that allows for class and atribute and method creationg and will create java code from the UML diagram? May 24 20:47:37 have you tried google? May 24 20:48:22 canadiancow: wow you mean google now does search? next you'll be telling me they do email :D May 24 20:48:30 hehe, hows things dude? May 24 20:50:37 I DEEEEEEEED IT May 24 20:51:57 FUCKING GENIUS .... I swear to god I love coding... that feeling when you finally achieve what it is you are trying to do... That moment when 8 hours of banging your head against the wall finally pays off, because you can see the live result of that persistence... May 24 20:56:02 https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/263333_4933879545437_1978304481_n.jpg May 24 20:56:42 You should re-think your navigation :f May 24 20:58:07 Yeah. May 24 20:58:11 That's pretty bad. May 24 20:58:14 i want to do an application that acts like a regular phone call but then has some options for interpreting and recording the phone audio. I have done regular apps before but I don't know what libraries or examples to use for this. Can anyone point me in the right direction? May 24 21:00:57 BustyLoli-Chan, didn't we tell you not to do nested tabs May 24 21:01:02 you dawg, i heard you like tabs May 24 21:01:03 So i figured this beta publish out, after uploading a beta you have to press publish and safe before switching to any other view, else the uploaded beta gets set as production... May 24 21:01:05 so i put a tab in your tab May 24 21:01:09 i am finding this is a hard thing to search for May 24 21:02:58 I told you... it's to mirror the website May 24 21:03:42 I don't make the punctuation rules. I just punctuation enforce them, period. May 24 21:06:54 punctuation? May 24 21:07:13 http://www.youtube.com/watch?v=sCHN3YPZv1g May 24 21:07:41 im not watching that May 24 21:07:55 it's where the joke comes from... May 24 21:08:05 and it's like 39 seconds of your life May 24 21:09:26 ain't nobody got time fo' dat May 24 21:10:16 ^ May 24 21:11:42 does anyone know how to access the audio stream on an android phone (when talking or listening on the phone)? May 24 21:14:17 i am looking through the developer apis to see how to access the audio during a phone call and not finding anything. Anyone have suggestions? May 24 21:14:51 kit73: you might be able to acquire the mic, but i'd bet decent money that there is no way to acquire the speaker side of the phone May 24 21:15:07 it'd be sandboxed inside the Phone app May 24 21:16:07 tophyr: thanks for the thoughts on this. much appreciated. May 24 21:16:29 kit73: unless.. are you looking to make your own Phone app? i may have misunderstood May 24 21:16:49 you can't directly intercept the streams used by Phone.apk, but if you're making your own phone app, it'd be free game May 24 21:16:49 yeah, i would like to do my own phone app. May 24 21:16:55 oh, ok May 24 21:17:42 my own phone app that inserts sounds into the outgoing audio and interprets the incoming audio with some signal processing May 24 21:18:29 if it would be free game, then do you know how i would access the in/out audio? May 24 21:18:46 kit73: you can't access the audio streams for voice calls May 24 21:18:52 kit73: https://android.googlesource.com/platform/packages/apps/Phone May 24 21:19:21 JesusFreke: interesting May 24 21:20:19 JesusFreke: this topic has come up over the years, i even remember ctate saying it wasn't possible; but i thought there was an app on the market that did this - but phone needed to be rooted May 24 21:20:50 g00s: maybe - but it would likely be device-specific May 24 21:21:14 tophyr: excellent. I believe this is what I was looking for May 24 21:21:25 I know on some (most?) devices, the mic/speaker use a completely different audio path for audio May 24 21:22:00 glad i could help :) good luck. May 24 21:22:04 the android system simply doesn't have access to that audio - it gets hooked up directly to the modem May 24 21:22:32 It used to require a kernel change on some devices at least May 24 21:22:39 interesting, so most of Haswell's efficiency gains come from moving the voltage regulator on chip (FIVR, full integrated vr) May 24 21:23:24 ctate often says a lot of things aren't possible, when they in fact are possible on rooted devices. May 24 21:24:09 In worse case, I could make my app be a VOIP app, and it looks like there is plenty of examples for that May 24 21:25:23 kit73: yeah, voip might be feasible May 24 21:26:38 * g00s hopes ctate is doing well, haven't seen him here for a while May 24 21:27:42 pragma-: well.. in that sense, to his credit there is very, very little that's *not* possible, it just becomes a question of "how far down this rabbit hole do you want to go" May 24 21:28:39 What's possible with root is only relevant for a small amount of people May 24 21:30:40 Let me get this straight, the phone app manages the phone but doesn't have any ability to manipulate the incoming or outgoing audio? May 24 21:31:14 if that's true then I need to drop using the regular phone and investigate VOIP May 24 21:32:38 actually, that sucks though because I want this app usable in places where cell phone is available but data bandwidth may be limited... May 24 21:33:27 what about using native code and then having to do it for individual hardware (configuration mess I know)? May 24 21:43:22 kit73: sounds like it's time to download AOSP and look at how telephony works heh May 24 21:44:35 tophyr: yeah, i guess so May 24 21:47:39 guys have does the value work when support more languages.. meaning the standard folder May 24 21:47:48 actually i found something, looks like MediaRecorder has the phone audio as an option. That may be workable May 24 21:47:51 should the standard folder always be English ? May 24 21:48:10 or the language I assume will be most used May 24 21:48:23 the language which users of unsupported locales expect it to be May 24 21:48:30 usually english is a good default :) May 24 21:49:49 So Just make a values-es etc. and write in spanish sentences on my strings May 24 21:49:52 nothing more to it than that `? May 24 21:50:21 basically May 24 21:51:00 basically as in.. there is something more to it ? May 24 21:51:35 kit73: Pretty sure that doesn't work May 24 21:52:23 The phone audio sources that is May 24 21:52:25 none of you guys does UML class design? May 24 21:52:30 P3nnyw1se: basically as in "that's the basic principle". the resource qualification system is a lot more powerful as well May 24 21:52:51 simonvt: thanks for the warning on that. May 24 21:52:56 * pent0r slits wrists at lacking adt UML tools May 24 21:53:18 lol UML May 24 21:53:23 ikr May 24 21:53:30 English isn't a first language to me.. what would be ehm.. the correct term if you wanted a purchase delivered.. like if you checked a box May 24 21:53:35 delivery wished? .. delivery wanted. May 24 21:53:35 mmm May 24 21:53:40 * pent0r <3 C# May 24 21:53:44 delivery requested May 24 21:53:48 thx May 24 21:53:53 C# is orthogonal to UML May 24 21:53:53 actually scrap that May 24 21:54:19 * pent0r <3 Visual Studio Design View UML-into-code-kthx-bai May 24 21:54:26 got a few of these Jack May 24 21:54:39 desired time? .. like the actual time for it to be delivered May 24 21:56:26 JakeWharton: are you a disbeliver in the power of the UML design integration C# has? May 24 21:57:14 is that the crap they force you to use when design the ORM mapping in the Entity Framework? May 24 21:57:44 because if so, it's a giant pain in the ass and a waste of time May 24 21:58:04 how would you do a hint if you wanted the user to input the time of day he would want a delivery May 24 21:58:29 it's one of those things you suck at, you become a mediocre programmer and think it's amazing, and then you become a good programmer and realize it's a wasted abstraction that causes more problems than it solves May 24 21:59:25 how is design modeling speed it enables a waste May 24 21:59:59 ADT is a half-assed implementation of it May 24 22:00:04 there is nothing wrong with design modeling. doing it in something as dumb as UML is the waste May 24 22:00:25 give me a white board and a few minutes and then get out of my way and let me code May 24 22:00:29 lacking the automatic method and class code generation fromt he diagram May 24 22:01:43 does anyone know if it's possible to reference a local aar file using gradle without creating a maven repo? the question is unanswered on the mailing list https://groups.google.com/forum/?fromgroups#!searchin/adt-dev/aar/adt-dev/522yljAgIxw/x16yrDxhrYgJ May 24 22:01:50 yeah because that takes soooo long to do May 24 22:02:04 do you automate standard class code like atribute geters/seters, method signatures, or just code everything manually? May 24 22:02:10 P3nnyw1se: Delivery Time May 24 22:02:19 thx May 24 22:02:27 any IDE from the last decade will generate 90% of POJOs for you May 24 22:02:50 or just "Time" if it's clear enough from context, ie right next to the Delivery Requested checkbox May 24 22:03:08 JakeWharton: but it won't fix them up ;) May 24 22:03:10 codebutler: aar file = jar file? May 24 22:03:16 JakeWharton: though IDEA got the generation very nice May 24 22:03:23 codebutler: assuming so, just dump it in your libs folder, and add a dependency in the gradle file May 24 22:03:26 JesusFreke: no, android archive. new thing for gradle May 24 22:03:33 codebutler: oh. dunno then May 24 22:03:43 codebutler: you don't want to install into your local repo? May 24 22:05:05 JakeWharton: I want it included in the source repository so other people can easily build without hunting down dependencies. I can do this with a maven repository, but was wondering if there was a simpler option for gradle. May 24 22:05:19 gotcha May 24 22:05:36 it's a binary artifact so it should just be able to be included in libs/ and referenced May 24 22:06:08 just saying `compile files('foo.aar')` doesn't appear to do anything. May 24 22:06:16 ( in dependencies{} ) May 24 22:06:43 JakeWharton: well being new to ADT, and noticing the similar UI design approach to C#, I naturally found myself missing the rest of the .NET design/programming approach May 24 22:07:35 same question on SO too (unanswered). http://stackoverflow.com/questions/16682847/how-to-manually-include-external-aar-package-using-new-gradle-android-build-syst May 24 22:08:03 christ.... I saw this gif today titled 'can you feel it now'. ... and it just ruined my day.. everytime I close my eyes I see that gif. May 24 22:10:36 Im trying to reuse a layout which has a a textview and a button, how do I access the button from the tag in xml? May 24 22:10:41 say the default text on the button is "ok" and I want to change it to "send" May 24 22:11:24 why do you just change it from the java class May 24 22:11:44 in your onCreateView May 24 22:12:55 I dont remember the code but I assume its just something like Button.setText("send") May 24 22:13:27 Im in a xml learning mode, and this question stopped me May 24 22:13:48 you want to use the same xml right ? May 24 22:14:01 for 2 different states in the app May 24 22:14:04 yes May 24 22:14:14 anyone using the new Adnroid Studio yet May 24 22:14:35 alright .. well obviously .. you can only have one thing written on the button if you use the same text May 24 22:14:58 but place it in strings May 24 22:15:08 and call the right one when you need to use it May 24 22:15:11 the text May 24 22:15:22 i thought the include could override options May 24 22:15:32 probably does.. dont know it.. :) May 24 22:15:33 p_l|omoikane: thanks for the heads up on IDEA May 24 22:15:49 okamis_, you'll have to change the text in code May 24 22:16:42 which is fairly easy okamis May 24 22:16:52 you just call the button before you return the view and set a new text May 24 22:17:30 yeah, I know how to do that May 24 22:18:31 argh May 24 22:19:02 guys.. why won't my language change when I change it on the tablet May 24 22:19:15 I shift between English and Danish.. I have a standard values folder and a values-dk May 24 22:19:18 try finding a save button May 24 22:19:35 it changes on the tablet sorry May 24 22:19:37 just not in my app May 24 22:19:42 oh lol May 24 22:19:56 maybe Denmark(danish) is -da May 24 22:19:58 not -dk May 24 22:19:59 2 sec May 24 22:20:32 hell yeah May 24 22:20:45 http://www.loc.gov/standards/iso639-2/php/code_list.php May 24 22:20:52 It uses ISO 639-1 May 24 22:24:37 yeah I'm used to .dk May 24 22:24:57 but half the times its .da May 24 22:27:12 no wonder those eggs tasted like shit.. they last to the 26th.. but april May 24 22:33:29 P3nnyw1se: you probably now have lupus May 24 22:34:30 that would suck cause in 2 months I have to run 8 miles at some charity event May 24 22:34:53 I guess I could get 6 friends who look just like me and dress them up in the same clothes and then we each take a little part of the course May 24 22:34:59 nobody would ever know May 24 22:36:25 pragma-: It's never lupus. May 24 22:36:36 lupes :) May 24 22:37:43 g00s: I'm on AS atm May 24 22:38:05 AS.. atomic shit May 24 22:38:06 good drug May 24 22:38:07 better than being on the toilet atm, i guess :) May 24 22:38:50 StingRay_: going back and forth between eclipse / idea May 24 22:39:06 and the reson for eclipse ? May 24 22:39:13 i still like it May 24 22:39:55 which reminds me, is there any way to choose a specific weight of a font (regular, light) in idea ? May 24 22:40:55 wight ? May 24 22:40:59 weight May 24 22:41:20 yeah, my favorite is Adobe Source Code Pro light :) May 24 22:41:40 regular renders fat in Inverse, not sure why May 24 22:42:15 so it renders skinny, then? May 24 22:42:47 with light, yes it renders skinny ;) seems to be a thing with mac / java / light text on dark bg May 24 22:42:56 whataver May 24 22:44:02 wow, that would be cool if HTC One google edition comes out May 24 22:44:22 Indeed May 24 22:44:28 except for the htc part May 24 22:44:42 does the SGS4 google edition, even though not being called nexus, get updates like a nexus (frequency, duration) ? May 24 22:44:43 It's a well built phone. May 24 22:44:47 And not plastic. May 24 22:44:53 plastic is superior May 24 22:44:58 g00s: That's the plan, afaik. May 24 22:45:05 pragma-: Uh, no. May 24 22:45:10 Uh, yes. May 24 22:45:19 Plastic feels very cheap. May 24 22:45:22 kakazza: i guess i should ask, who updates - google, the carrier, etc ? May 24 22:45:27 Google May 24 22:45:32 \o/ May 24 22:45:35 It's not the feel, it's the functionality. May 24 22:45:49 And what functionality does plastic have? May 24 22:45:51 do you also wear high heels because they look good, despite how they fuck up your feet? May 24 22:46:27 kakazza: better thermal conductivity, doesn't dent, etc. May 24 22:46:44 Yeah, plastic just cracks. May 24 22:46:52 g00s: That's what I read, anyway. May 24 22:46:56 no, it's elastic May 24 22:47:09 You've clearly never had a Galaxy Nexus May 24 22:47:09 show me one high-end phone with cracked plastic May 24 22:47:14 Galaxy Nexus May 24 22:47:20 plastic cracks and is easy to replace, You want something that dents and bends and is perm..! May 24 22:47:21 pics or it didn't happen May 24 22:47:52 LG-P500 May 24 22:48:00 I have an HTC phone with aluminium body. For 2 1/2 years. No dents. Because I don't throw my phone around. May 24 22:48:03 die cast aluminium May 24 22:48:09 plastic has elasticity that allows it to bend and absorb forces if dropped, unlike metal which is rigid and causes more shock to the internals May 24 22:48:13 No case, no protection or otherwise. May 24 22:48:22 depends what meta May 24 22:48:31 also, static electricity May 24 22:48:34 also depends what plastic May 24 22:48:35 if its titanium, its very bendable :) May 24 22:48:40 too bad it won't go beyond 2.3 May 24 22:49:43 anyone tried Windroy May 24 22:50:08 runs insane fast, but crashes often and won't allow app install yet May 24 22:50:24 looks promising though May 24 22:50:59 pragma-: I have a very hard time believing that plastic should have a better thermal conductivity than aluminium May 24 22:51:24 pragma-: Static Electricity? Source? I have not heard of a single case where that was a problem. May 24 22:51:35 I heard of broken plastic cases, though. May 24 22:51:44 And seen a lot of them. May 24 22:52:04 On the Galaxy Nexus from the top to the camera opening. Always there. May 24 22:53:45 look your all on about dents and … ooo scratches …. do what I did if your gonna do something May 24 22:53:53 run over your phone twice with this http://www.hedi.cc/userfiles/image/hedi/wozki_widlowe/teleskopowe/MERLO_80_9/MERLO_80_9.jpg May 24 22:55:01 the phone was a 1st gen iphone, even though it was slightly shaped like a bananna, still worked….. was impressed May 24 22:56:01 the nexus line isn't really known for having great manufacturing designs May 24 22:56:29 they're cheap for many reasons May 24 22:56:53 and metal retains heat longer than plastic May 24 22:58:50 Thing is, I do not pay a few hundred bucks for a plastic chasis. May 24 22:58:57 I do May 24 22:59:01 * pragma- practical. May 24 22:59:14 That's implying there are actual problems with metal chasis. May 24 22:59:47 I just don't want my phone to feel like a toy. May 24 22:59:49 let's just agree that glass is the worst, and move on. May 24 22:59:49 Be like me, crowdfund nearly $700 to buy a Galaxy S 4 :P May 24 23:00:10 We can leave it at that. May 24 23:01:48 kakazza: also, "except when it's lupus" May 24 23:35:49 http://developer.android.com/reference/android/widget/SectionIndexer.html#getSectionForPosition(int) May 24 23:36:21 When implementing that method. Is that zero-indexed. And when clamping the value, do you return one past the last index or do you return the last index itself? May 24 23:53:18 this might be a stupid question to most of you but I've never made an app before and I just downloaded the SDK loaded with both Eclipse and the SDK and trying to get it setup and not sure what I'm doing or how these two things work together? I'm fumbling through the process. May 24 23:53:42 I created a workspace. and downloaded latest Android SDK. May 24 23:54:15 did you not just get the adt bundle ? May 24 23:54:31 that has everything you need and a nice walkthough May 24 23:55:16 StingRay_: yes I did. May 24 23:55:22 oh, it has a walkthrough? May 24 23:55:25 I missed that... May 24 23:55:32 well on setting it up May 24 23:55:37 not that there is much to do May 24 23:55:49 Looking.... May 24 23:56:03 if you have now donwloaded sdk for a version/platform your pretty much set May 24 23:56:09 ah yes, now I see the link for it. May 24 23:56:13 it has wizards when creating a new project May 24 23:56:37 So my question is, if I make an app with the Jelly Bean version, is it back compatable with older ones like Froyo? May 24 23:56:55 depends May 24 23:57:14 if your Target/Build against is the latest May 24 23:57:19 as in api 17 May 24 23:57:36 but your min sdk is lets say 9 May 24 23:57:48 will work back to 9 May 24 23:58:08 assuming you dont use any of the new api 17 things May 24 23:58:16 there are docs in that if you read May 24 23:58:25 developer.android.com May 24 23:58:30 does that mean I would need to download every sdk from 9-17? Or, where do I choose my min? May 24 23:58:46 manifest May 24 23:58:53 yes sir! May 24 23:58:55 ;-) May 24 23:59:20 StingRay_: What apps have you developed? May 24 23:59:28 none May 24 23:59:35 I just chat in here to be social May 24 23:59:37 :) May 24 23:59:48 So you know all this stuff but you dont dev apps? May 24 23:59:53 isnt that strange? May 25 00:00:22 I'm developing an app now May 25 00:00:23 he made angry birds May 25 00:00:26 as we speak May 25 00:00:33 or type May 25 00:00:42 smell? May 25 00:01:24 StingRay_: what mac irc client are you using ? May 25 00:01:37 the one YOU put me on!!! May 25 00:01:45 oh, colloquy ? May 25 00:01:48 ya May 25 00:01:49 :D May 25 00:02:11 i wiped out my custom blackboard theme; out of the box this is hideous May 25 00:02:22 * g00s eyes bleed May 25 00:02:25 bleeeeeeed May 25 00:03:27 g00s: where is my breakpoints list in IJ ? May 25 00:04:09 @ anyone too May 25 00:04:23 StingRay_: run->view breakpoints May 25 00:04:40 Right where you put them May 25 00:04:49 Or that May 25 00:04:50 cheers, obvously I want to show a VIEW so it's under RUN May 25 00:04:51 :) May 25 00:04:52 That works also May 25 00:05:30 They should just have a single IDE menu item with everything under there. After all, you're running in an IDE May 25 00:05:47 ;) May 25 00:06:23 the SHOULD allow easy access to all windows and the ability to save more than 1 view layout May 25 00:06:50 thats bugging me the most atm May 25 00:07:52 Save what now? May 25 00:09:09 ui layout May 25 00:09:30 arrangements of the pannels and windows May 25 00:09:59 the bits of your screen/s that you cover up the background with the ide May 25 00:10:04 view layout :) May 25 00:11:57 hello there, im trying to create an application which simulates drums. im using onTouchListener and SoundPool May 25 00:13:03 ive got the problem that, if i touch certain coordinates the sound appears, but it repeats whole time itself when i let the pixel touched May 25 00:13:20 what method can be useful to play that sound just once May 25 00:14:53 just tried to use soundPool.stop(id) after play(id), but it doesnt work May 25 00:18:01 so I'm downloading the API17 SDK, it's pretty large it seems. Taking awhile. May 25 00:18:30 i'm going for a cig, getting a coffee May 25 00:18:44 and maybe having a shower to wake up more May 25 00:19:34 buddyq: enjoy a beer May 25 00:20:44 I dont drink! May 25 00:20:58 well that could be a problem May 25 00:24:08 I want to truncate the any multi-line text in a ListView to a single line. May 25 00:24:40 So my idea is to remove characters from the text until the "text extent" is less than the ListView's width. May 25 00:25:13 But none of the hits seem relevant when I search on: "text extent" java android May 25 00:26:38 So given a font and a string, how do I get the "text extent" ... like how many pixels wide the text string would be if rendered in the ListView? May 25 00:28:54 roadfish: have a look at the stock sms app May 25 00:29:11 they do it with 1st display "conversations" view May 25 00:29:23 StingRay_: ok, thanks May 25 00:29:27 "my message is about to run of the ……: May 25 00:29:57 good, that's exactly what I want. Including the "…" at the end. May 25 00:30:33 roadfish: i'm not sure, but i think TextView has an option to do that automaticaly May 25 00:30:58 thats clever if it does May 25 00:30:59 ok, I was wondering about some auto-truncation option too May 25 00:31:12 roadfish: when you find out let me know May 25 00:31:15 :) May 25 00:32:43 huh May 25 00:32:45 http://stackoverflow.com/questions/1666736/android-textview-automatically-truncate-and-replace-last-3-char-of-string May 25 00:33:53 roadfish: check that link May 25 00:33:58 StingRay_, roadfish: https://developer.android.com/reference/android/widget/TextView.html#attr_android:ellipsize May 25 00:34:24 i could also use this, i have several views where it winds up doing 1 character per line May 25 00:34:32 so the entire screen is filled up with a single textview May 25 00:34:37 lol May 25 00:34:42 if i tried to simulate it in irc, you would kick/ban me :P May 25 00:34:55 collective progression, like it May 25 00:36:15 I'm making a new AVD and I want to make one for my phone which is the Original Droid RAZR. How do I know what Device to choose? What are the dimensions? May 25 00:36:40 gsmarena.com has many phone specs May 25 00:37:21 ok May 25 00:42:13 are swipes tricky to deal with, with android sdk? May 25 00:42:47 in what sense? May 25 00:43:05 detection and direction May 25 00:43:12 no May 25 00:43:20 great :) May 25 00:43:29 you can invest all your money in android now May 25 00:46:27 so i guess releasing a free version of something with ads/limited features May 25 00:46:32 then a pro version is the way to go? May 25 00:46:45 depends May 25 00:46:50 the amusing thing is, if I sold for $1 and got 100k sales May 25 00:46:59 30% goes to taxes and 30% to google May 25 00:47:11 so i'm left with like 40k ;) but is more than 0 May 25 00:48:43 30% taxes? Where is this lovely country? :P May 25 00:49:32 Speedstick: so your biggest issue is taxes and the google take and not actually selling the app ? May 25 00:49:37 Euro US? May 25 00:49:42 become tax exempt May 25 00:49:51 tis actually quite easy May 25 00:50:10 you're tax empt? May 25 00:50:15 exempt May 25 00:50:17 30% goes to taxes? May 25 00:50:20 when I want to be May 25 00:50:20 your tax rate is that high? May 25 00:50:40 My tax rate is about that... will raise when I earn more. May 25 00:50:41 pfn something along those lines, self employed pay lot of taxes with gov and state taxes May 25 00:51:07 12.5% alone go to something, then there's estimate income taxes, state taxes May 25 00:51:18 Of course, another 21% of that goes to sales tax if I actually attempt to buy anything with my money. May 25 00:51:25 I dunno, in the US, even at 150K salary, you're in the 35% federal bracket; but usually, after deductions and adjusting for the overall tiering of taxes, it comes out to 20% overall taxes, for state and fed May 25 00:51:26 I feel tricked. May 25 00:51:53 pfn you must have a great CPA May 25 00:52:01 i'm going to get a CPA soon May 25 00:52:27 Speedstick, not at all, at 150K salary, you're not taxed 35% on the entire 150k, only on the amount in which you make which is in the 35% tier May 25 00:52:36 lower tiers are taxed lesser amounts, taxes are progressive, not absurd May 25 00:52:37 not sure what I should pick for ARM, MIPS, or Intel for CPU/ABI in a custom AVD??? May 25 00:52:41 How do I know what to put? May 25 00:52:46 buddyq, intel, unless you're using ndk May 25 00:52:54 what is a ndk? May 25 00:53:01 if you don't know it, you aren't using it May 25 00:53:21 ok, but what is it? May 25 00:53:26 google May 25 00:53:35 the next nexus should use an intel processor so that I can run windows software on it, via wine :) who's with me? May 25 00:53:54 okay. May 25 00:54:04 not interested in running wine on a touch device May 25 00:54:05 How do I know what pixel density to choose also? May 25 00:54:06 just not practical May 25 00:54:16 buddyq, pick the one that matches the device you want to emulate May 25 00:54:38 how do I know which one my device has is my question. May 25 00:54:40 pfn you mean in terms of os design or hardware? as smart phone hardware these days seems pretty capable May 25 00:54:50 nexus 4 has a quad core and gigs of ram May 25 00:54:54 95+% of android devices are ARM May 25 00:54:59 Speedstick, usability of non-touch apps is next to nil May 25 00:55:08 ahh yeah good point May 25 00:55:36 I am on a website and it gives me these specs.. (~256 ppi pixel density) but I have a lot of choices that are not PPI. May 25 00:55:55 xhdpi, hdpi, etc... May 25 00:56:26 pfn in terms of the 150k taxing, not sure it works that way May 25 00:56:28 buddyq, what is your device May 25 00:56:33 Speedstick, yes, it works that way May 25 00:56:36 pretty sure once you hit a threshold, you enter a new tax bracket May 25 00:56:41 and the percentage gets higher May 25 00:56:43 Droid RAZR XT912 May 25 00:56:49 only the amount you make in that bracket is taxed at that rate May 25 00:56:49 and 100k and definitely a higher tax bracket May 25 00:57:18 so say 0-100k is 10% tax rate and 100-120k is 20%, only the amount you make in 100-120 (i.e. 20k) is at 20% May 25 00:57:19 You get in a higher tax bracket but only for the piece that's above 100k. May 25 00:57:21 so you mean if you made 150k and the bracket started at 100k, only 50k would be taxed higher? May 25 00:57:27 Yes May 25 00:57:28 the remainder is 10% May 25 00:57:41 I think if google ever showed the numbers in a realistic light, no1 would do apps as an indie dev May 25 00:57:48 or rather 99% would not May 25 00:57:55 that's interesting, is that for europe or what? May 25 00:57:59 Speedstick, USA May 25 00:58:13 ok May 25 00:59:02 StingRay_: well, on the other side is the sheer number of devices, i.e. the potential volume. May 25 00:59:13 But then again, it's hard to get noticed with your app. May 25 00:59:15 i'll have to look into that, doesn't sound right but thanks for letting me know May 25 00:59:36 pfn: Droid RAZR XT912 May 25 01:00:29 Speedstick, of course it's right, look at IRS tax tables May 25 01:00:47 buddyq, dunno what phone that is, I assume xhdpi May 25 01:01:58 ok May 25 01:06:28 not that i'm complaining but apple and microsoft both charge $100 a year to be apart of their app stores May 25 01:06:40 google has a time fee of what $30? that's not really good business May 25 01:06:54 they should charge like $30 a year or something, an ongoing thing May 25 01:08:57 Yeah, great strategy, discourage people from developing software for their platform. May 25 01:09:21 I don't see why they charge at all... besides maybe for keeping cheap-ass spammers out. May 25 01:09:39 But then again, it's not a whole lot of money for a criminal even. May 25 01:11:12 Euro has the $100 a year discouraged ios devs? :) May 25 01:11:46 old blackberry devices made you pay $30 to even get access to apps at all, for end users, *that* is discouraging hehe May 25 01:45:45 I think I have somehow turned auto import off in IJ May 25 01:46:19 as in I start typeing a class name not currently imported and it has no completion suggestion May 25 01:47:32 well it;s not that auto import is off May 25 01:47:46 it's just that it's not finding class names May 25 01:47:48 hmm May 25 02:23:13 Hi Guys! Somebody knows how to create a Bitmap with specified height only? May 25 02:23:22 keeping the aspect ration of the src May 25 02:23:30 there is any trivial way? May 25 02:25:00 and... May 25 02:25:02 createScaledBitmap (http://developer.android.com/reference/android/graphics/Bitmap.html src, int dstWidth, int dstHeight, boolean filter) May 25 02:25:20 Whats the parameter filter stands for? May 25 02:26:17 is there a way to speed up apk deployment to emulator. Here, latest SDK, using ant, it takes about 30s (after compiling) to install the apk May 25 02:29:09 oh man: [INFO] BUILD SUCCESS May 25 02:30:19 Sambarboz: you should read the docs May 25 02:30:39 and yes there is a way to make any view an exact heigh May 25 02:30:41 t May 25 02:30:59 layoutParams being on, which has erm…. width and height May 25 02:31:10 and look at scaleType for the imageView May 25 02:31:29 StingRay_: I'm reading :) May 25 02:31:45 so why ask what filter is ? May 25 02:31:53 :) May 25 02:32:05 Cuz I didn't realized yet. May 25 02:32:15 I wonder what it is. May 25 02:32:59 hint: before typing the method, read the docs on what it is/does and the params May 25 02:33:01 :) May 25 02:33:56 Ok! May 25 02:34:01 I have this habit May 25 02:34:35 Do you know how to set bitmap height and let it decide it's width in creation? May 25 02:35:10 Hmm. May 25 02:35:16 already said May 25 02:35:22 If I can get aspect ration May 25 02:35:25 it would be easy May 25 02:35:27 hehe May 25 02:35:35 scaleType May 25 02:36:53 But scaleType is for imageViews May 25 02:37:05 And I'm creating the Bitmap itself. May 25 02:37:17 oh May 25 02:37:31 well use BitmapFactory bitmapOptions May 25 02:37:37 Hm May 25 02:37:38 let me see :) May 25 02:37:44 to pre-read and spec out what your doing May 25 02:50:19 StingRay_ : trying textual :) May 25 02:50:48 not free May 25 02:51:03 $5 :| May 25 02:52:13 does anyone know why the SampleSyncAdapter does not have a default activity? May 25 02:58:53 StingRay_: that bitmap width and height question. Was just get the image aspect ration from original bmp and apply to the scaledBitmap method in width param :) May 25 02:59:26 well if you have already read the file May 25 02:59:33 how would you not know that ? **** ENDING LOGGING AT Sat May 25 02:59:57 2013