**** BEGIN LOGGING AT Sat Jan 25 02:59:59 2014 Jan 25 03:06:04 Has anyone customized the Yaaic? Jan 25 03:53:49 hi does anyone know how to add words to the autocomplete dictionary? Jan 25 03:55:46 so when you're typing, the words show up as autocomplete options in your softkeyboard above the keys Jan 25 03:57:37 and not as a dropdown as suggested here http://developer.android.com/guide/topics/ui/controls/text.html#AutoComplete Jan 25 03:57:44 but in the same place that corrects typos Jan 25 04:11:50 Hello everyone... I have a question related to programmatically uninstalling other apps from a given app.. Jan 25 04:12:05 the question is, can is it possible to uninstall an app and install another app in place of that app programmatically? Jan 25 04:12:20 wow not helping you on that Jan 25 04:13:03 is that possible? Jan 25 04:13:19 well, the firefox beta app can update itself Jan 25 04:13:26 and there are "uninstaller" apps Jan 25 04:13:33 so Yes is your answer Jan 25 04:14:26 hephaestus_rg_: but the uninstaller apps need to be installed as root, isn't that true? Jan 25 04:14:40 yes, that might be a rquirement Jan 25 04:14:53 allowing other apps to uninstall is probably a security risk Jan 25 04:15:23 but you should be able to Jan 25 04:15:28 You can download the APK and invoke the installer Jan 25 04:15:32 prompt the intent to uninstall Jan 25 04:15:33 Hey all. Never worked with an android before in my life, but I've gotten it into my head I'd like to develop for one. I know C/C++ and don't mind learning other languages, although I hate Java with a firey burning passion. My dev platform is linux. Can anyone recommend some tools that I'd be happy working with that'd allow me to target android, linux, and windows with one codebase? Jan 25 04:15:37 sure is surprisingly easy to write crap in .net/c# :-/ Jan 25 04:15:55 * pfn throws a c# version of his clipboard java thing together Jan 25 04:15:56 https://github.com/pfn/network-clipboard Jan 25 04:16:00 pfn I'm pretty sure its true for every language Jan 25 04:16:04 you're probably going to want someting like Jan 25 04:16:06 phonegap Jan 25 04:16:14 or xamarind (is that's how it's spelled?) Jan 25 04:16:21 pfn for windows desktop ? Jan 25 04:16:26 g00s, yes Jan 25 04:16:40 basically, why I need this information is that we are writing an app which is trusted and grant few priviledges.. so we want to know if any other app can uninstall our app(causing security whole).. Jan 25 04:16:45 since new java update blocks jnlp with self-signed certs, I can't run my old java version anymore :-/ Jan 25 04:16:56 g00s, on mac, it's a lot easier, I can just use pbcopy... Jan 25 04:17:11 XXCoder1: Harder in some languages than others. Some languages fail more readily when presented with bad code - Which enforces either good code or no code : ) Still, a sufficiently clever demented person can write horrible things in any language, that's true. Jan 25 04:17:23 true Jan 25 04:17:41 but on my windows box, I ssh, or do it from a vm Jan 25 04:17:49 and I just do CTRL-[ y to copy to my windows clipboard Jan 25 04:17:50 hephaestus_rg: can you link to an uninstall app? Does it not require root? Jan 25 04:17:53 hephaestus_rg: ^^^ Jan 25 04:17:58 er, CTRL-o y Jan 25 04:18:05 since ^O is my screen escape key Jan 25 04:18:23 i honsetly dont' konw Jan 25 04:18:45 The only way I could see that being allowed is if the app had root access. Otherwise it doesn't make sense. Jan 25 04:19:17 junaid__: You basically have control of the system at that point. Lets say you swapped out Facebook for a malicious Facebook app that recorded paswords obviously really bad. Jan 25 04:19:53 hephaestus_rg: Was the xamarin (I had to look it up too) / phonegap thing to me? Phonegap looks interesting, but Xamarin is C#-based. (C# and linux are not good friends) Jan 25 04:20:05 yeah Xamarin Jan 25 04:20:20 i mean it's like Mono right? Jan 25 04:20:23 took a sec to realize *.cs == c# extension Jan 25 04:20:28 technickul: yes that makes sense... Jan 25 04:20:49 Dirkson, says who? Jan 25 04:20:53 c# runs great on linux Jan 25 04:20:58 Also two packages cannot have the same name.. is this assumption correct? Jan 25 04:21:02 in fact, a large portion of one of my app's users is on linux Jan 25 04:21:10 and it's c# Jan 25 04:21:12 pfn: That's terrifying : ( Jan 25 04:21:17 * pfn shrugs Jan 25 04:21:29 junaid__: they can't have the same fully qualified name Jan 25 04:21:44 I get a lot of recruiters looking for .NET coders .... may have to switch direction for a paying job :p Jan 25 04:21:47 junaid__: as for having the same name, that's completely possible Jan 25 04:22:00 real talk, is it possible to add custom suggestions to the softkeyboard Jan 25 04:22:15 it seems like it's not, short of including a whole nother keyboard in the app Jan 25 04:22:53 pfn: Most of the C# apps I see are games. They tend to play really poorly with wine, so if the developer doesn't make a linux build, you're out of luck. The linux builds I've seen ported /do/ work, but seem to take a ton of effort to get right - And every mono app drags along a huge repository of random cruft that I have a hard time identifying. Jan 25 04:22:59 capella i'd imagine for enterprise backend stuff ? Jan 25 04:23:05 the use case is: i have a dictionary of names that i want to make easy to type by the user Jan 25 04:23:05 zinx: What really makes it impossible? is it the fact that the installation location will be the same or the packagemanager maintains a list and will not allow it to happen? Jan 25 04:23:13 on a desktop i'd have tab completion Jan 25 04:23:22 but that doesn't really work on movile Jan 25 04:23:26 g00s: Right! That wouldn't be so bad, if it were business app related Jan 25 04:23:31 Dirkson, apt-get install mono-complete... Jan 25 04:23:49 * capella (not really a game developer here) Jan 25 04:23:52 capella business IT / enterprise is a /great/ are of mobile dev too Jan 25 04:23:53 junaid__: if the fully qualified package name is the same, the package manager will attempt to upgrade if the signatures match, or it will fail to install if they don't Jan 25 04:23:55 pfn: Yup, I've got that, and always give it a try after wine fails. Never seen it actually work, though. Jan 25 04:24:14 capella instead of consumer facing stuff Jan 25 04:24:28 g00s: if I could find a mobile app development position requiring my financial background I'd pay them! Jan 25 04:25:07 capella man, my credit union just put out an app, what a terrible pos Jan 25 04:25:12 capella, I want recruiters offering scala work... Jan 25 04:25:23 so relatively uncommon Jan 25 04:25:37 it'd assume it's high value though pfn Jan 25 04:25:38 only scala place I've wanted to work for and got turned down for was nest... buttholes :-/ Jan 25 04:26:10 zinx: thanks.. Jan 25 04:26:16 have you tried twitter pfn: Jan 25 04:26:23 don't want to work for them Jan 25 04:26:30 i hear they do lots of scala, and at least as of last year htey're looking for scala people Jan 25 04:26:35 * capella doesn't twit Jan 25 04:26:49 If I have an app that has multiple activities all of which have the action main and category launcher so they each create icons. When I click any of the icons it always brings up the same activity not the correct activity. Can someone explain to me why please? Jan 25 04:27:13 you could just have the one activity that they do open Jan 25 04:27:18 read the intent Jan 25 04:27:22 and open the correct one instead Jan 25 04:27:31 (bu that's an ugly hack) Jan 25 04:27:36 g00s: I just responded to a bank in Minnneapolis aout doing Cobol of all things just to get bank into the financials :-O Jan 25 04:27:48 :O indeed Jan 25 04:27:52 :p Jan 25 04:27:58 i hear cobol makes really good $$ capella: Jan 25 04:28:03 zinx: just curious, can we do it from adb? does the package installation go through the package manager even when we install from adb? Jan 25 04:28:13 well, yeah if you want to maintain crap written 40 years ago Jan 25 04:28:15 nobody want's to do it anymore and really valuable systems still depend on it Jan 25 04:28:17 hephaestus_rg: I'm following a course online and they want me to do it that way. I did read the internet. Some people mentioned task affinity and others said you don't need it Jan 25 04:28:17 all those dudes retured Jan 25 04:28:18 meh - most I ever made in mainframe world was around $50 Jan 25 04:28:23 $50/hr Jan 25 04:29:02 capella seems low; i was reading that there is such a demand for mainframers, IBM was trying to start a program & make inroads with unis Jan 25 04:29:23 but i knew a few mainframers, and they tried to explain stuff to me ... Jan 25 04:29:23 http://ezscreens.appspot.com/view/a6f7/network-clipboard Jan 25 04:29:23 heh Jan 25 04:29:26 you could probably negotiate that up Jan 25 04:29:30 boring, easy work ... but so unsatisfying ... Jan 25 04:29:31 it was so alien, like , w t f Jan 25 04:29:34 who else is going to take that job Jan 25 04:29:35 and so old school Jan 25 04:30:16 Still a lot of US Gov jobs in that direction though Jan 25 04:30:49 hm, wunderlist has a windows client now Jan 25 04:30:55 i guess if you want to retire a cobol job in the Gov. is a good road Jan 25 04:31:19 not ready to fade off into the sunset and become irrelevent Jan 25 04:32:30 though, maybe just for a day job ... then contribute to mozilla at night :-D Jan 25 04:32:44 contributing to mozilla means javascript hell, though :p Jan 25 04:32:45 they need help :) Jan 25 04:32:55 um hmm Jan 25 04:33:01 ;) Jan 25 04:33:04 anyways yeah, if somebody has a clue about adding custom suggestions to the softkeyboard Jan 25 04:33:09 hephaestus_rg, you don't... Jan 25 04:33:11 capella i just noticed, depending on the order i install add-ons, my toolbars look different. Jan 25 04:33:19 For mobile we are like 50/50 Java and Javascript Jan 25 04:33:22 hephaestus_rg, easiest answer is your own IME Jan 25 04:33:32 god dammit Jan 25 04:33:44 But there are so many Java guys, they pegged me into Javascript Jan 25 04:33:55 i need to reinvent the automobile to add a cusotm steering wheel Jan 25 04:33:56 (cause I told them I know how ) Jan 25 04:34:21 hephaestus_rg, you can try the user dictionary content provider Jan 25 04:34:28 and insert into there... Jan 25 04:34:31 hmm i;ll look into it Jan 25 04:34:35 capella a fun article http://redmonk.com/sogrady/2014/01/22/language-rankings-1-14/ Jan 25 04:34:49 * pfn hacked on mozilla/xul/js stuff for too long and don't like it Jan 25 04:35:22 g00s: Cool! (I'll cross post that!) Jan 25 04:35:29 capella write a cobol to js converter :P Jan 25 04:35:47 http://developer.android.com/reference/android/provider/UserDictionary.html looks like exactly what i need Jan 25 04:35:51 Theres a tool train that does that I thought Jan 25 04:35:56 these sorts of stories are always fraught with goofiness Jan 25 04:35:59 but they are fun Jan 25 04:36:14 Though you have to convert through a couple other languages first Jan 25 04:36:49 hephaestus_rg, maybe it will, maybe it won't... Jan 25 04:36:53 you can try Jan 25 04:39:30 * pfn ponders buying a brz Jan 25 04:40:08 g00s: can't you customize your toolbar appearance appropriately though? Jan 25 04:40:55 ill try Jan 25 04:41:18 noscript usually went bottom right add-on toolbar Jan 25 04:41:27 this time it went by the url bar :| Jan 25 04:41:53 I think stuffs changing there, I saw my adblock resinstalled on top when it used to be bottom Jan 25 04:42:32 And I hate the refresh button being inside the address bar way to the top right Jan 25 04:42:39 >that feeling when your problem is not turning up solutions on google Jan 25 04:43:09 capella yeah ! Jan 25 04:43:19 what address bar? Jan 25 04:43:21 ;-) Jan 25 04:44:04 http://ezscreens.appspot.com/view/64ad/firefox+-+what+address+bar Jan 25 04:44:16 seems like i need to write a contentprovider Jan 25 04:44:25 and i need to get the IME to use my content provider somehow Jan 25 04:44:41 pfn: I still have the |Menu| bar et al. displayed ;) Jan 25 04:45:56 btw ... FF for Metro is decidedly "Androidy" looking ! Jan 25 04:46:11 * pfn doesn't run win8... Jan 25 04:46:21 oh man i think i found gold pfn: http://www.grokkingandroid.com/android-tutorial-using-content-providers/ Jan 25 04:46:27 I had to install it to port a project Jan 25 04:46:43 and my head hurts Jan 25 04:47:18 i guess MS is working hard on windows 9 :) Jan 25 04:47:44 Saw that! Also, Win7 still available for purchase for an extended period Jan 25 04:47:58 UserDictionary.Words.addWord Jan 25 04:49:11 capella yeah saw HP was offering it; but can an area guy still pick it up ? Jan 25 04:49:20 wow so the answer to my question Jan 25 04:49:37 was hard to find due to poor search optimization Jan 25 04:49:40 I've ordered three through Lenovo .... *love* those guys Jan 25 04:51:19 MS needs to fire the guy who welded Metro and Win8 together on one platform (oh wait... they did!) Jan 25 04:51:36 win 8 isn't as bad if you have multiple monitors Jan 25 04:52:32 * pfn doesn't have multiple monitors :( Jan 25 04:52:39 but I will definitely stick to win7 Jan 25 04:52:48 metro only will use 1 screen Jan 25 04:52:52 I'm tempted to get one of those cheap 27" 4k monitors Jan 25 04:52:59 so you have the metro interface on 1, and the desktop on the other Jan 25 04:53:13 no reason to use the metro interface ever, on a pc Jan 25 04:53:28 I have 2x 24 inch 1080p monitors, sometimes 3 monitors if I can steal the one I got for the girlfriend Jan 25 04:53:45 but I only do that when playing games (3x monitors is awesome in bioshock infinite) Jan 25 04:56:26 cheap and 4k in one sentence?? Jan 25 04:56:48 4k is coming down in price quite a bit Jan 25 04:56:58 Vizio is releasing a 55 inch or something like that for $1k Jan 25 04:57:00 the cheap 4k screens are terrible for gaming Jan 25 04:57:03 low refresh rate Jan 25 04:57:06 30hz i think Jan 25 04:57:11 ick Jan 25 04:57:52 http://www.sears.com/seiki-39inch-class-4k-120hz-led-ultra-hdtv/p-05703146000P?sid=IDx01192011x000001&kpid=05703146000&kispla=05703146000P Jan 25 04:57:58 120hz Jan 25 04:58:30 the url makes it sound nice, what's the price? Jan 25 04:58:36 http://www.forbes.com/sites/jasonevangelho/2014/01/07/dell-wasnt-joking-about-that-28-inch-sub-1000-4k-monitor-its-only-699/ Jan 25 04:58:53 $499 for the one I posted Jan 25 04:59:07 too bad TN though Jan 25 04:59:10 http://www.amazon.com/Seiki-Digital-SE39UY04-39-Inch-Ultra/dp/B00DOPGO2G same one on amazon Jan 25 04:59:26 it's a TV, but can definitely double as a monitor Jan 25 04:59:36 ahh the 4k is only 30hz Jan 25 04:59:41 everything else is 120hz Jan 25 04:59:42 yeah, i looked at these, problem is the color gamut often sucks ass Jan 25 05:00:12 * g00s needs that for photo processing ;) Jan 25 05:00:36 who processes photos on a tv? wtf. Jan 25 05:00:40 I want more monitors that can rotate Jan 25 05:02:08 nice to have more vertical space when coding Jan 25 05:02:41 pfn did you see this ? https://news.ycombinator.com/item?id=7035030#up_7035948 Jan 25 05:04:21 oh is that the same one jonc just posted to Jan 25 05:04:42 probably Jan 25 05:12:56 it's ok guys, 2-4 years down we'll have screens that don't suck Jan 25 05:13:14 maybe faster if mobile screens push the industry Jan 25 05:16:14 misterli still working on your private push notification service ? Jan 25 05:16:26 i just came across this today http://www.slideshare.net/ultrasonic/android-push-server-mqtt Jan 25 05:22:47 i use gcm and i'm finding that just a handful of users don't register for an ID Jan 25 05:23:10 and no obvious pattern to this like same device, still waiting on os data Jan 25 05:23:46 however the app procedes like normal, it seems that no exception is being thrown/caught because they proceed as if it were successful Jan 25 05:50:38 hey quick sanity check quesiotn Jan 25 05:50:42 UserDictionary.Words.addWord Jan 25 05:50:52 if i add the same word multiple times, will anything break? Jan 25 06:50:33 someone there ? can check this exception http://pastebin.com/stC292Db Jan 25 06:54:18 zero chance of getting any response at this time Jan 25 06:59:52 jaami-win: how about you start by telling us what your analysis of the paste is? Jan 25 07:00:22 trying to open a file taht does not exist Jan 25 07:00:29 but file does exist Jan 25 07:00:42 file exists, but now where you think ;) Jan 25 07:00:44 how do you know it exists? Jan 25 07:00:57 i checked in file explorer Jan 25 07:01:22 btw, if file does not exist then the code is supposed to create file Jan 25 07:01:33 all i want ts to copy from asset to databases Jan 25 07:02:51 okay, but obviously something is not working the way you think it should Jan 25 07:02:58 yes Jan 25 07:03:17 the copy process seems the bad guy Jan 25 07:04:26 spent 2 days lol Jan 25 07:04:29 damn Jan 25 07:04:59 the file permission are jusr -rw while all other files have dx also Jan 25 07:05:24 i dont care if file exist , just want to delete the crap and copy one from assets Jan 25 07:05:59 can you check java file? Jan 25 07:06:10 i cant figure out really Jan 25 07:06:30 its my first app in android Jan 25 07:06:42 damn Jan 25 07:07:41 will you check or let me do it anyway? Jan 25 07:08:26 thats why i hate google Jan 25 07:08:59 thanks Jan 25 07:36:25 what is up my android friends Jan 25 07:36:38 hey canadiancow :) Jan 25 07:37:25 hi Jan 25 07:37:32 how goes it g00s Jan 25 07:38:47 hm, just getting back to work, latest AS gradle sync wasn't working with my project for some reason Jan 25 07:39:06 i still dont use AS :P Jan 25 07:39:12 but now im like the last holdout on the team Jan 25 07:39:26 well thats not quite true Jan 25 07:39:34 but we're slowly switching Jan 25 07:40:11 its … very slow (building) Jan 25 07:40:22 dont even talk to me about slow Jan 25 07:40:22 i'm sure you guys all have nice machines ;) Jan 25 07:40:28 try loading android in eclipse Jan 25 07:40:38 and by android, i mean check out the whole tree Jan 25 07:40:41 and add it as a java project Jan 25 07:40:57 i think my computer would explode ;) Jan 25 07:40:58 actually i dont have the 'best' machine Jan 25 07:41:01 i only have 4G Jan 25 07:41:09 it only has like 6 CPUs (dual core) Jan 25 07:41:12 and 24GB of ram Jan 25 07:41:26 others on my team have newer models with twice the CPUs and 32GB or something like that :P Jan 25 07:41:37 what make / brand ? Jan 25 07:41:43 not macs right ? Jan 25 07:41:53 some people have macs Jan 25 07:41:58 although im unfamiliar with the specs of those Jan 25 07:42:03 they're comparable Jan 25 07:43:25 canadiancow one persistent problem i have with AS, that i didn't have with eclipse - is that the IDE doesn't report errors (red X's , underlines) in java or XML many times until you go to do a gradle build, which then takes a lot of time Jan 25 07:43:50 im the wrong person to report errors to Jan 25 07:43:53 because i dont use it :p Jan 25 07:44:37 oh yeah, just mentioning my experience. Jan 25 08:07:41 Hi, I use tab navigation. is there an event of fragment being shown? Jan 25 08:07:55 And new Sublime Text theme released. Goody. I should find something productive to do. Jan 25 08:08:02 because I need to upadte the ListFragment each time it being visited Jan 25 08:12:34 Nilium on the topic of Sublime themes, is there any way to make the file-explorer drawer the same color as the text bg? i hate having a dark theme with this white area Jan 25 08:13:22 Let me see Jan 25 08:15:03 You'd have to manually go in and change the sidebar color for the theme you use. Jan 25 08:16:13 I just use my own theme since it's designed around my color schemes. Jan 25 08:16:27 ok, thanks Jan 25 08:20:04 Sublime Text ? Jan 25 08:20:37 sublime text++ Jan 25 08:21:37 Sublime Text. It's like what you'd get if TextMate 2 didn't have a giant hole in its development cycle. Jan 25 08:21:54 i never did figure out the difference between Monokai and Monokai bright Jan 25 08:21:55 but it messes up diffs on Win since it defaults to CRLF line endings Jan 25 08:22:25 capella i use p4merge for diffs, pretty decent Jan 25 08:22:42 That's odd. Everything should be LF only. Jan 25 08:22:43 What sick, sadistic moron uses CRLF? Jan 25 08:23:07 minor nit ... the actual setting defaults to "system" and for Win, thats CRLF Jan 25 08:23:27 ah are you speaking about wwww.sublimetext.com object ? Jan 25 08:23:52 I suppose that makes sense for editing, but I'd set it to LF by default and just switch to CRLF if the first line ends in a CRLF Jan 25 08:24:09 that would be smart! Jan 25 08:24:23 Object? Jan 25 08:24:46 "object".airQuotes() Jan 25 08:24:53 Actually, yeah, it would be. Jan 25 08:24:53 And ST is kind of known for being dumb, since that's how you get it to look fast. Jan 25 08:28:40 do you use SublimeText editor to develop android apps ? Jan 25 08:29:32 i might give it a shot, when i get frustrated with AS or have some showstopper issue, i fall back to vim Jan 25 08:29:50 PS: I've bought ST some time ago to replace default TextEditor of Mac OS X ... so I'm just curious Jan 25 08:29:51 Yes. Jan 25 08:33:25 kinda cool if you play guitar http://gizmodo.com/a-guitar-amp-thats-going-to-piss-analog-purists-off-1507735372 Jan 25 08:33:42 the phone is sucking up UIs from disparate devices even if they keep the functionaity Jan 25 08:34:03 i'd love to control a bunch of rack gear from an iPad or something Jan 25 08:34:25 even if the tablet itself isn't part of the signal path Jan 25 08:34:51 I don't care as long as it gets the job done better than before. Jan 25 08:37:23 g00s: no guitar ... this thing http://medias.audiofanzine.com/images/normal/ensoniq-ts12-533171.jpg Jan 25 08:37:48 capella is that yours ? Jan 25 08:38:11 for a long time i wanted a korg triton Jan 25 08:38:12 reasonable facsimile ... but same as mine - great toy - 24 track synth Jan 25 08:38:28 i think now i would look for something that plugged into garageband Jan 25 08:39:09 i want know the android phone folder structure? how can i know it? Jan 25 08:40:48 Depends on the phone Jan 25 08:44:37 capella http://www.theverge.com/2014/1/24/5342546/can-a-music-keyboard-for-your-ipad-be-any-good Jan 25 08:44:45 razor-: thanks Jan 25 08:45:25 oh dear lord ! Jan 25 08:46:26 waiting for the HTML5 version Jan 25 08:46:28 :D Jan 25 08:46:33 So i *don't* need 77 weighted / velocity sensitive keys? Jan 25 08:48:06 i wonder if animoog works with a full midi keybaord Jan 25 08:48:35 fly2web: root your device and get ES File EXplorer Jan 25 08:49:04 but basically it's a linux model Jan 25 08:49:08 capella: give me the sites of Document. Jan 25 08:49:11 you don't need to root your sevice Jan 25 08:49:17 to see folder structure -_- Jan 25 08:49:23 you can just poke around the emu Jan 25 08:49:34 i can't see my folder in android phone. Jan 25 08:49:42 Mavrik: to see what's in /data you do Jan 25 08:49:54 there Jan 25 08:50:06 But for the rest, nope Jan 25 08:50:49 how can i get root authority? Jan 25 08:51:00 in android phone? Jan 25 08:51:53 #android-root Jan 25 08:51:58 I wonder if there's any money in QNX development :P Jan 25 08:52:30 doubt it :( Jan 25 08:52:32 Nope. Jan 25 08:52:59 Blackberry Java !!! :D Jan 25 08:53:04 thanks Jan 25 08:53:05 Closest I've gotten to money in QNX dev is potentially selling my BlackBerry Playbook. Jan 25 08:53:16 i want do sl4a by python. Jan 25 08:53:28 Which I got for free, so it would technically be a profit. Jan 25 08:54:31 they're sticking that thing in car systems Jan 25 08:57:40 developing for BB must be a breeze - didn't one dev write like 1/3 of all their apps :P Jan 25 08:58:19 For blackberry? Jan 25 08:58:20 6 apps? wow .... Jan 25 08:58:26 hehe Jan 25 08:58:41 No, they bought a team and they developed their own Qt/C++ UI that was never provided to third party developers Jan 25 08:58:44 When I try to upload using apache tools image that directly shot from whatsapp (for directly sent) it throw IOException. anybody has idea why? Jan 25 08:58:47 http://www.berryreview.com/2013/08/20/one-app-developer-responsible-for-47000-apps-in-blackberry-world/ Jan 25 08:59:15 Ah, that case Jan 25 08:59:32 BlackBerry needs to die soon and make way for newcomers Jan 25 08:59:36 Thought you meant working for BB. Jan 25 09:00:43 Windows as well. Jan 25 09:00:43 Not the phone, just the desktop. Jan 25 09:00:46 Mac OS too. Just kill all the existing things and see what comes out of the mess. Jan 25 09:01:10 unicornOS! Jan 25 09:01:19 oh wait, maybe gnu herd Jan 25 09:01:19 Tizen will come out Jan 25 09:03:01 * capella . o o O ( Android has porn? ) Jan 25 09:03:37 Nilium i bet you are working on your own OS by now Jan 25 09:04:00 He's gonna call it "Fail" Jan 25 09:04:01 No comment. Jan 25 09:04:54 capella did you find something unexpected on your phone O.o Jan 25 09:05:08 No, it'll be another slavic mythology name. Jan 25 09:05:41 heh - comment from the article "YOU ARE A TRAITOR! Android has effin PORN on their stores!!.." Jan 25 09:05:41 All of my weird projects are named after things in slavic mythology. Jan 25 09:05:44 Call it "homo androidus" Jan 25 09:05:46 Maybe it'll be domovoi. That seems fitting for an OS. Jan 25 09:06:14 If I were making an OS, Android would be the last thing I'd use as a base. Jan 25 09:06:15 That's like setting yourself up for failure. Jan 25 09:06:17 niliOS Jan 25 09:06:31 capella: it's good business Jan 25 09:06:48 My nickname is the name of a window cleaning product. Wouldn't fly. Jan 25 09:06:53 guess I need to get out of the games section Jan 25 09:07:21 Out of the games section and into the self-help section. Jan 25 09:07:26 HAHAHAHA Jan 25 09:07:29 Claim your app is the solution to one of those black and white commercials where shit gets color when they touch your app. Jan 25 09:08:03 Someone has weird muscles that spontaneously throw bowls of popcorn everywhere? Your app fixes that shit. Jan 25 09:09:12 "self help section" triggered an odd memory of that red headed chick singing that one hit wonder "when I think about you I touch myself" XD Jan 25 09:10:19 i thought for a sec that would be Lita Ford Jan 25 09:10:42 Whenever people mention self-help, I just think of the rash of creepy repressed memory lawsuits Jan 25 09:11:57 self help is mandatory after time developing for android :| Jan 25 09:18:58 s/self/professional/ Jan 25 09:21:58 "Use Nilium to neutralize odors, leaving a hint of frangrance." Jan 25 09:51:05 Just YES | NO : I've do an APP in which I use the android.support.v4.widget.DrawerLayout in main activity and MainActivity extends AbstractNavDrawerActivity (code link http://paste.debian.net/78257/ ) to get a NavDrawer which select fragments and Activity which own/display them. At now customer asked me to ad swipe left<->right to move fast between fragmens... It's possible ? Jan 25 09:52:48 like a view pager? Jan 25 09:53:44 yes Jan 25 09:53:48 without TABS Jan 25 09:54:19 yuck ... ugly, why would you? :S Jan 25 09:54:24 maybe yes, maybe no, I guess we'll never know Jan 25 09:56:09 A sec to better understand: https://www.dropbox.com/s/qv5mf8umjbl575a/device-2014-01-25-105436.png Jan 25 09:56:34 change page with navdrawer could be slow in some moments so I need just to swipe them Jan 25 09:58:19 I'm a noob in android so just to know if possible then I will do a deep search on google docs Jan 25 10:11:13 I GOT PROBLEMS. Jan 25 10:11:36 i have many problems too :( Jan 25 10:11:48 You figure out a safe place to hide the bodies yet? Jan 25 10:11:53 That's topping the list for me. Jan 25 10:12:10 pigs i hear .... best option Jan 25 10:12:20 I have heard good things about pigs. Jan 25 10:12:44 Also, scrollview is seemingly impossible to incorporate into my XML. Jan 25 10:12:54 That's like...number two. Jan 25 10:13:28 Something about how width and height must be more than zero. Jan 25 10:15:23 I'll try to make this quicker; Can I just paypal a dude fifty bucks, show him the code, and get him to tell me where I done fucked up on some things? Jan 25 10:16:45 why would you have a scrollview with a height/width <=0 ? Jan 25 10:17:16 Wasn't intentional, I was assuming wrap_content would give it a width and height of larger than zero? Jan 25 10:17:32 why not fill ? Jan 25 10:17:35 match* Jan 25 10:17:56 match_parent? Jan 25 10:18:14 thats the best way to fit the most bodies into it Jan 25 10:19:00 I'll give it a go, just java has a hissy fit every time I throw a scrollview in there. Jan 25 10:20:47 Annd same problem. Jan 25 10:21:04 The width and height are definitely not goddamn zero. Jan 25 10:21:22 Erroneous error is erroneous. Jan 25 11:01:01 Hey uh. Jan 25 11:03:22 Say I wanted to grab the contents of a variable in a separate class (a bitmap) and save that to the sdcard, and the variable's non static. Jan 25 12:12:23 guys, it is possible to send ordered broadcast inent from alarm manager? Jan 25 12:33:29 nevermind, i came up with an ugly hack :) Jan 25 13:08:17 hy all Jan 25 13:08:35 can you describe me the navigation drawer in very shortly? Jan 25 13:08:40 the using of that Jan 25 13:16:13 https://developer.android.com/reference/android/support/v4/widget/DrawerLayout.html tells you how to use it Jan 25 13:20:19 Hey so I am very confused on the best data structure for my multi-language dictionary, ultimately I want people to be able to look for a word in either language and find all the words in the different languages Jan 25 13:35:10 http://stackoverflow.com/questions/21351236/dictionary-android-application-data-structure Jan 25 13:38:08 LoneSoldier728: you don't want to store the dictionaries on the device Jan 25 13:38:15 why? Jan 25 13:38:27 LoneSoldier728: probably a remote database like Postgres or mysql Jan 25 13:38:27 space issue? Jan 25 13:38:31 yes Jan 25 13:38:46 how do offline dictionaries work then? Jan 25 13:39:29 not sure Jan 25 13:39:40 shmooz my idea is that people create their own dictionaries Jan 25 13:39:57 so it will not have space issues unless you add 1000s of words Jan 25 13:40:14 how much space does 1 word take? Jan 25 13:40:18 you can have limited offline storage for it Jan 25 13:40:19 local storage + google cloud backup? Jan 25 13:40:19 more than 1 kb? Jan 25 13:41:05 i dont want any server costs Jan 25 13:41:43 google drive api Jan 25 13:42:36 what is the space useage though of like 1 word, anyone have an idea Jan 25 13:43:06 a character is usually a byte Jan 25 13:43:09 i know in a db that I have with like 10k songs it only is taking up about 5 mb Jan 25 13:43:14 songs meaning name Jan 25 13:43:50 so it should be fine Jan 25 13:44:01 a 1000 words will be less than 1 mb Jan 25 13:44:20 a 1000 words will be 1k Jan 25 13:44:32 a million will be 1 mb Jan 25 13:44:44 or no Jan 25 13:44:47 1000 characters is 1 k Jan 25 13:44:48 it's in UTF-16 Jan 25 13:44:57 million characters is 1 mb Jan 25 13:45:16 right so i am assuming worse case scenario a word contains about 500 character Jan 25 13:45:19 characters* Jan 25 13:46:17 and how many words ? Jan 25 13:46:25 like a 1000 words Jan 25 13:48:20 ok that should work if its only 1000 Jan 25 13:48:28 that's a tiny dictionary Jan 25 13:48:42 it is going to be a creative dictionary, like a personal dictionary Jan 25 13:49:01 http://stackoverflow.com/questions/21351236/dictionary-android-application-data-structure Jan 25 13:49:21 so I am back to this now that is solved lol Jan 25 13:51:02 you can store it in sqlite db Jan 25 13:51:35 right but trying to figure out the structure Jan 25 13:52:47 word, definition and maybe related links to similar words Jan 25 13:53:12 and a unique primary key maybe Jan 25 13:53:30 Would it be enough to use the accelerometer to make a ball roll over the screen?what if you place the phone at an angle, not moving it, then you had acceleration at the start but then you odnt but the ball should still keep rolling. Jan 25 13:54:58 so would i include Jan 25 13:55:05 it on one table Jan 25 13:55:09 both languages Jan 25 13:55:41 not sure, I would do table per language Jan 25 13:56:08 ok if i did table per language how do i know the word "hello" is the same as the word "hola" on the spanish table Jan 25 13:56:24 and then you can select the definition from the according table for the matching word Jan 25 13:56:49 how would i know which one matches tho - what is the connection there? Jan 25 13:57:05 you probably need another table that links all languages Jan 25 13:57:29 just words without the definitions Jan 25 13:58:04 gaaah Jan 25 13:58:14 so it would be like | 1 | hello | hola | bonjour .... Jan 25 13:58:16 I WILL stab the person that wanted to push this gradle crap. Jan 25 13:58:54 ok but then how would i know that hola is spanish Jan 25 13:59:16 does it have to be 1 |english | hello | spanish | hola etc... Jan 25 13:59:32 by its position Jan 25 13:59:46 column position Jan 25 14:00:34 oh so this would be another table that includes each column as a language Jan 25 14:00:51 or column name Jan 25 14:01:15 its a way Jan 25 14:02:19 so when letting a person create a new dictionary lets say - I would add a new table in sqlite with dictionary name, languages, alphabetical order - then also create another table for each language with all the words, then another table with each language as the column name with each word being a row Jan 25 14:03:30 it would be like select French from all_langs where English="hello" Jan 25 14:03:52 ah ok, thanks Jan 25 14:22:49 is there any reason why gson is better than android's built in json parser ? Jan 25 14:24:41 hi, anyone knows why findViewById returns a nullpointer right after setContentView sets the view (that works) Jan 25 14:25:01 note that im trying to build apk in visual studio.. Jan 25 14:25:34 the view is actualy displaying all views correctly but setContentView aint work to access views Jan 25 14:25:52 is this because of broken R.class file? Jan 25 14:26:49 Broken build or broken code Jan 25 14:27:20 that must be broken code.. Jan 25 14:27:28 uuhm build * lol Jan 25 14:27:42 actualy i use a deploy tool inside visual studio Jan 25 14:28:05 everything works, i just copy the .class files from a eclipse build to my visual studio project Jan 25 14:28:21 What.. Jan 25 14:28:31 but the app is acutaly displaying the views but i cant alter it Jan 25 14:31:24 also the resources are added ofcource by deploy tool Jan 25 14:31:59 its like the id's are missing so code cant alter them resulting in nullpointer Jan 25 14:35:16 i want to play this audio 'content://media/external/audio/media/11' file with media player, but i get an exception.. W/System.err(10469): java.io.IOException: setDataSource failed.: Jan 25 14:35:17 status=0x80000000 Jan 25 14:35:25 any ideas? Jan 25 14:35:50 this is my code s_mp.setAudioStreamType(AudioManager.STREAM_MUSIC); s_mp.setDataSource(url); Jan 25 14:36:10 for internal files like content://media/external/audio/media/11 it works Jan 25 14:36:19 content://media/internal/audio/media/19 Jan 25 14:36:20 this Jan 25 14:36:22 sry Jan 25 14:41:32 I DID IT. Jan 25 14:41:36 HUZZAH. Jan 25 14:41:53 oops you did it again Jan 25 14:42:18 Dude, it took me two days to get a bitmap to save to sd. I'm ashamed of myself, and as well I should be. Jan 25 14:42:21 Immaterial: good stuff Jan 25 14:42:46 should json start with a [ ? Jan 25 14:42:54 Evening lagz. Jan 25 14:42:56 if it's an array Jan 25 14:42:59 evening Immaterial Jan 25 14:43:04 if it's an object, it should start with { Jan 25 14:43:17 sonOfRa: does it make much of a difference which way I'm storing things ? Jan 25 14:43:51 are you storing an object? Or a list of things? Jan 25 14:44:02 sonOfRa: a list of things I guess Jan 25 14:44:09 then that's an array Jan 25 14:44:15 I see Jan 25 14:45:09 so I'm storign a list of postcodes and their corresponding suburbs Jan 25 14:45:48 so should that be someting like [ "6000": [ "PERTH" ], "6001" [ "PERTH"].... ? Jan 25 14:46:57 no ideas?? Jan 25 14:55:49 KeeperNo1: http://stackoverflow.com/questions/8022506/play-mp3-sounds-from-sd-card Jan 25 14:57:54 KeeperNo1: maybe you need permissions http://stackoverflow.com/questions/13156980/java-io-ioexception-setdatasource-failed-status-0x80000000 Jan 25 14:59:36 no permissions are correct, the file is local Jan 25 15:00:14 i use ringtonepreference to select it, within the preference i hear the preview sound Jan 25 15:00:51 very strange internal works but not external paths Jan 25 15:12:56 anyone can explain what R.txt does ? Jan 25 15:14:49 ..You mean R.java? Jan 25 15:16:46 Morning Jan 25 15:17:58 evening jonc Jan 25 15:18:16 jonc: were you the one helping me with some json stuff a few nights ago ? Jan 25 15:22:23 SirLagz, I would recommend something like this: [{"postalcode":6000, "suburbs": ["suburb1", "suburb2"]}, {"postalcode":6001, "suburbs": ["suburb3", "suburb4", "suburb5"]}] Jan 25 15:22:46 then you can use a library like jackson, and create the right mappings Jan 25 15:23:04 sonOfRa: wouldn't that require an extra operation later on to get the suburbs that belong to postcode 6000 ? Jan 25 15:23:29 a java class MyObject { int postalcode; List suburbs;} Jan 25 15:23:40 it would, but the mapping to the java class is more idiomatic Jan 25 15:23:48 I see. Jan 25 15:23:57 That may be a bit overkill for what I need it for though Jan 25 15:24:03 good to know still Jan 25 15:24:13 are you creating and parsing the JSON yourself, or using a library? Jan 25 15:24:39 sonOfRa: creating and parsing it myself Jan 25 15:24:47 creating the json is easy, parsing it later is significantly harder Jan 25 15:24:50 sonOfRa: the json itself is a static file within my app Jan 25 15:25:14 do yourself a favor and use a library Jan 25 15:25:50 sonOfRa: what's the advantage of using a library ? if all I'm doing is getting a list of suburbs from the postcode Jan 25 15:26:12 have you written the code for the parsing yet? Jan 25 15:26:17 sonOfRa: partially Jan 25 15:26:17 Do you know how to write a parser? Jan 25 15:26:28 sonOfRa: somewhat... Jan 25 15:26:33 then use a library Jan 25 15:27:05 sonOfRa: well I can get what I need already. should I change what I have now to use a library ? Jan 25 15:29:29 for this very small case you might be okay with what you're doing, since you're only doing a subset of json Jan 25 15:29:30 though it comes in the form of a string, and not an array Jan 25 15:29:38 sonOfRa: very small subset at that haha Jan 25 15:29:42 but if your data ever changes, you have to rewrite your parser Jan 25 15:29:50 and then you're most likely royally screwed Jan 25 15:30:05 sonOfRa: if my data changes, I think I'll have bigger concerns than my app haha Jan 25 15:30:13 sonOfRa: it's just a list of postcodes / suburbs for my city Jan 25 15:30:53 requirements for apps change. Maybe one day you want to add something to the object. Jan 25 15:32:15 sonOfRa: that is true. Jan 25 15:32:42 sonOfRa: in your experience, is it be much work to refactor in a library later on if I need to ? Jan 25 15:33:09 in my experience I don't write my parsers and use libraries from the beginning :) Jan 25 15:33:17 sonOfRa: haha. well there's always that. Jan 25 15:33:31 honestly, change it now, read into jackson. Jan 25 15:33:50 Jackson is the best json parsing library out there. There's also Google GSON, but even Google uses Jackson Jan 25 15:33:50 jackson ? i heard gson was good too...and a whole bunch of others haha Jan 25 15:34:07 at least the Google Play Music app uses jackson, and not gson Jan 25 15:34:54 hrmmm more code... Jan 25 15:35:17 maybe I'll use jackson in the next version. I should probably clean up the current codebase before I go adding another lib actually haha Jan 25 15:35:36 sounds reasonable Jan 25 15:35:52 in the meantime, get this displaying what I need it to display first. Jan 25 15:35:55 sonOfRa: Thanks for all the help though Jan 25 15:42:21 SirLagz, it's possible (sorry alt tabbed away for awhile) Jan 25 15:42:49 jonc: no problems Jan 25 15:43:24 jonc: just wanted to say thanks for the help :) not sure if I said it last time haha Jan 25 15:43:30 guys, i am getting java.lang.IllegalStateException: Content view not yet created Jan 25 15:44:00 whenever I move fast withing my actionbar tabs that contain listfragments Jan 25 15:44:12 how can I ensure the listview is created so that I can do things on it. Jan 25 15:44:20 or the content view is created. Jan 25 15:44:53 ...if var? Jan 25 15:44:57 Just a guess? Jan 25 15:45:11 Immaterial what ? Jan 25 15:45:17 Gson is easier to use, and jackson is a bit faster, but if you aren't dealing with massive Json (where the speed will really show) just stick with gson Jan 25 15:45:53 Or like if !=null or something? Probably ask sonOfRa, but it seems like you should check if the view even exists before doing anything with it. Jan 25 15:45:58 Which means an if statement. Jan 25 15:46:23 jonc: ok cool. it's only 440 lines or so. so gson you think ? Jan 25 15:47:43 yeah, use what you are comfortable with, if you start having to do a lot of json -> pojo and speed is really the issue, then use Jackson Jan 25 15:48:21 but make sure to read on how to use it (from my understanding it is easy for people to misuse if they don't know the proper setup, ie. reuse object mappers) Jan 25 15:48:40 jonc: that's what I'm afraid of haha Jan 25 15:49:22 Hey guys. I'm trying to get the redirect destination of a URL, but my code is getting stuck at '.connect()'. This is the relevant method: http://bpaste.net/show/rC5YdVvHNWzYVF9tRkCd/ Logcat shows nothing failing. It just gets stuck on .connect() forever. Jan 25 15:49:30 (line 10) Jan 25 15:56:13 oh boy, I did a great job today :) Jan 25 15:58:21 when creating a media player should I have it run in a service? Jan 25 15:58:27 if I have it playing music Jan 25 15:59:06 yes, if you want it to play in background Jan 25 16:00:11 That's what I thought, then I hit the home key in my app with a mediaplayer created in a fragment Jan 25 16:00:24 and even at the homescreen it still plays Jan 25 16:01:17 and when locking the phone Jan 25 16:01:46 correct. you could also add notification bar interface, screen widget, etc Jan 25 16:01:55 yeah Jan 25 16:02:09 all of those would be an interface to bond with and control the service Jan 25 16:25:32 I build app with min sdk 8. I want to have layout for 7-8, 10 inch tablets. Should I use Xlarge & large or sw600dp & sw720dp? Jan 25 16:44:09 I am trying to use external GPS devices in my apps and looking for a way to use the built-in Location APIs...any way to hook that up? Jan 25 16:45:42 nothing without a bit more access to OS internals than normal, or using debug mode Jan 25 16:49:27 OK because I am seeing an external GPS vendor claiming "application-agnostic" support on tablets and mobile devices...as far as I know that is not possible on Android. Jan 25 16:50:15 That matches that they only show iOS devices in their pictures...where that sort of thing is possible. Jan 25 16:51:14 But I am curious, what is the "bit more access to OS internals" all about? Jan 25 16:52:15 they develop their own OS Jan 25 16:52:43 ? Jan 25 16:54:06 You mean their own version of Android and flash that on? Jan 25 16:54:51 Joker_Da_Man: if you can modify the system, you can add additional location providers without tripping anything Jan 25 16:55:25 for example, Samsung added back in SGS2 (maybe earlier) INS support based on the built-in accelerometers Jan 25 16:58:14 <_u2pop_> hello all Jan 25 16:58:23 <_u2pop_> guys i have a problem! verything i open in my galaxy s4 show me, unfortunately settings has stopped and whatever app i open. Jan 25 16:58:36 <_u2pop_> how can i fix it ? :( Jan 25 16:58:50 <_u2pop_> everything* Jan 25 16:59:19 Please ask your question in #android, this is for app dev Jan 25 17:04:29 Does admob support audio only ads? Jan 25 17:05:51 i would hope that it didn't support audio ads at all Jan 25 17:06:13 ditto Jan 25 17:06:21 expecially if it overiddes audio setting! Jan 25 17:06:47 I understand that it could be misused, but misusing it would result in people removing your app Jan 25 17:07:06 but used properly (streaming audio services), it makes sense Jan 25 17:07:08 assuming that they know about it Jan 25 17:07:15 not everyone can hear ya know. Jan 25 17:07:47 take pandora for example, they can't rely on banner / traditional ads, people start the app, listen and then go and do something else Jan 25 17:08:14 that one does make sense since its specifically audio app to begin with Jan 25 17:08:15 you'd do that on the other side I reckon Jan 25 17:08:18 I'm trying to create EditText on bottom screen and open keyboard (then EditText will move above keyboard with RelativeLayout + ALIGN_PARENT_BOTTOM), it works fine with SetContentView but with addContentView doesn't work for me: http://pastebin.com/ncsX4LKk any idea? Jan 25 17:08:32 having an audio ad every few songs is fine Jan 25 17:08:37 mix ads in the audio stream Jan 25 17:08:42 on the server Jan 25 17:09:00 not in the player app Jan 25 17:09:09 a lot of streaming services actually give you a direct link to the audio file, not a stream Jan 25 17:09:33 more maintainable serverside Jan 25 17:10:08 you could save position, play your add and resume playback Jan 25 17:10:27 otoh it would be a pita to monetize Jan 25 17:10:35 it would basically be after x number of songs, play an ad Jan 25 17:14:49 hi, where can I find information/tutorials about synchronization between local android devices and web api? Jan 25 17:15:44 <_u2pop_> How to Fix "Unfortunately (any app) has stopped" Jan 25 17:16:07 find what killed it Jan 25 17:16:18 stack trace in logs Jan 25 17:16:27 by reporting the error and asking the developer to fix it Jan 25 17:19:47 <_u2pop_> i cant open anything :( Jan 25 17:21:00 remove the app, give 1 star rating Jan 25 17:21:35 <_u2pop_> ? Jan 25 17:24:33 Stack trace. Jan 25 17:25:28 Also, invalidating my customview canvass doesn't appear to call the onDraw() method and I just end up with a black, depressing box. Jan 25 17:25:32 What do. Jan 25 17:26:44 I'm trying to create EditText on bottom screen and open keyboard (then EditText will move above keyboard with RelativeLayout + ALIGN_PARENT_BOTTOM), it works fine with SetContentView but with addContentView doesn't work for me: http://pastebin.com/ncsX4LKk any idea? (I need to overlay an existing layout and add this RelativeLayout) Jan 25 17:30:17 Hey guys. Is it a good idea to only have icons in one color and to change their color via colorfilter? Jan 25 17:30:32 that should save a lot of space? Jan 25 17:37:07 in my app, I used ShareActionProvider with the setting android:showAsAction="collapseActionView" in the menu.xml file Jan 25 17:37:29 and it appears like this https://www.dropbox.com/s/jgqmilsj0w3xu8r/1.png and https://www.dropbox.com/s/i43uc4qilyilukh/2.png Jan 25 17:37:54 how can I get rid of the Share item menu ? Jan 25 17:38:30 when use clicks on the actionbar, it will show the menu to choose which one to share (mail, facebook item ...) straight away Jan 25 17:45:42 Tinkering with android development, never done this before, have eclipse etc and traversing their tutorial. Trying to run it on my android but in eclipse it only shows as "????????? N/A unknown ??". Anyone seen this and no the issue? I have debug with usb enabled on the phone. Jan 25 17:49:03 deftjack: linux/pc/mac? Jan 25 17:55:32 I have a class where I am setting the content view of an activity to be a relative layout, then in another class I am trying to grab that content view again but its returning back as a linearlayout.. any ideas why? Jan 25 17:59:16 because you're doing it wrong Jan 25 17:59:33 Zypho: show some code Jan 25 18:00:02 canvs2321: Linux, sorry was away trying to get it to work. Jan 25 18:00:09 use pastebin? Jan 25 18:00:34 canvs2321: Ive restarted the phone, eclipse etc. Still no luck. Found a few posts like on stackoverflow but no help thus far. Jan 25 18:01:29 canvs2321: Last log in console is about automatic target mode and it is "Unable to detect device compatibility.". Jan 25 18:01:36 deftjack: is the lusb thingy setup correctly? i'd have to google it Jan 25 18:01:54 do you have your device set for a specific code to be picked up with adb Jan 25 18:02:12 canvs2321: lusb? The only thing I saw in the docs was to turn on the "USB debugging" in the developer section which I have. Jan 25 18:02:21 i'll google Jan 25 18:02:31 canvs2321: I have not set any codes that I know of related to adb. Jan 25 18:02:42 which device? Jan 25 18:03:03 Droid 4 verizon 4.1.2 Jan 25 18:03:09 there is some device code that is/was used with a config file for adb to work with linux on getting your device Jan 25 18:03:19 it's been awhile, i'll have to check what i'm thinking :) Jan 25 18:03:27 I also connected it directly to a usb port as opposed through a hub. Jan 25 18:03:52 canvs2321: Thanks, Ill search around as well. Didnt notice references to that. Jan 25 18:04:02 it was lsub not lusb Jan 25 18:04:06 try lsusb in a console Jan 25 18:04:18 oh lsusb. Yah I have that. The device is there. Jan 25 18:04:37 Bus 001 Device 011: ID 22b8:4372 Motorola PCS Jan 25 18:04:44 did you create a udev rule? Jan 25 18:04:57 No. Jan 25 18:05:08 http://community.linuxmint.com/tutorial/view/888 Jan 25 18:05:12 check that out Jan 25 18:05:16 it's a start Jan 25 18:05:21 what version of linux? Jan 25 18:05:35 Here is my code trying to get the content view in one class set from another: http://pastebin.com/D5vfjtLa Jan 25 18:05:51 canvs2321: Fedora 19 64bit Jan 25 18:05:52 I should have warned I am working around cordova to implement native views, (not my choice) Jan 25 18:06:32 Zypho: what is your goal here? Jan 25 18:07:03 deftjack: check out that link, try it, then we'll go from there Jan 25 18:07:12 canvs2321: Thanks, looking it over. Jan 25 18:07:32 canvs2321: In the first class I add a native view on top of the cordova webview, in the second I am just trying to do it again for a different view Jan 25 18:08:15 but if I use the same method in the second class as I did in the first, I loose the first view since I am pulling out the webview and placing it in a new layout Jan 25 18:08:26 What % of the app sales do you think the designer should get? Jan 25 18:08:30 Hope it's not too off-topic. Jan 25 18:09:52 Zypho: so cordova is a webview? i'm just curious as to how you lead yourself to decide this solution is best. What data are you trying to share? how long you been an android developer? any previous coding expierence(sp?)? Jan 25 18:10:30 rofl, I started learning Android dev at 3am this morning, I'm a web dev that has been tasked with this, cordova is bullshit and I hate it Jan 25 18:10:50 Yes cordova = html / js web app bundled into a native app where everything is ran inside a webview Jan 25 18:11:43 those html5 apps are always hideous and clunky Jan 25 18:11:49 Yes, I agree Jan 25 18:11:50 Zypho: thought so :) Bundled into a native app? You mean a java shell app? or native c++ ndk stuff? is webview deprecated? Jan 25 18:13:22 canvs2321: Cordova takes your html / js / css and creates a boilerplate Android app (they do every platform actually) and just runs your webapp in a webview, so on Android yes its a java shell, iOS its a objective c representation of the same thing Jan 25 18:14:07 My question is, I got this logic from someone else trying to do the same thing as me, but why do I need to overwrite the contentview? Can't I just grab the activity (which I can do) and place a relative view overtop of it? Jan 25 18:15:05 canvs2321: Ok did that. devices lists out "????????????no permissions". Ill look into the permissions and selinux a bit and post a again in a bit. Paged by work though, bastards. Jan 25 18:15:22 because if you are in activity A, there is no need to steal activity A's layout, just in activity B reload the same layout from xml? Jan 25 18:15:57 Problem is the code cordova generates to create this app doesn't provide me a layout.xml file Jan 25 18:16:06 deftjack: it's just simply that adb can't find your device based off drivers/settings. Get the correct driver/setting & it'll work Jan 25 18:16:41 Hey, are there any default icons I can reach for my actionbar? Jan 25 18:16:55 I'm trying to use a "house" icon for home Jan 25 18:16:57 canvs2321: its all the same activity btw, I am just trying to add a native view to it in two different classes Jan 25 18:20:14 Zypho: think you need to read up a bit on android dev. The terms you are using like adding native view etc... just doesn't make sense. If you have one activity, and one webview, it should be pretty clear cut. Maybe you can show screenshots/mockups of what you are wanting Jan 25 18:20:45 gulli: why? Jan 25 18:21:05 its just one clickable I want to add to my actionbar Jan 25 18:21:23 why? Jan 25 18:21:27 Was wondering if the sdk had a house icon Jan 25 18:21:35 or if I should find one online and import it Jan 25 18:22:06 like this one Jan 25 18:22:06 http://png-1.findicons.com/files/icons/1580/devine_icons_part_2/128/home.png Jan 25 18:23:19 how deep are they going, where they can't use the action bar back icon to navigate? or a navigation drawer if multiple deep spots etc... Jan 25 18:24:06 what's at home? a freshly baked pie? if so, yes add it! :) Jan 25 18:26:01 canvs2321: should I just be able to do something like "viewGrp = (ViewGroup) webView.getParent()" and then add a new RelativeView to that group? Jan 25 18:26:31 lol Jan 25 18:27:12 I found an icon: ic_menu_home.png in my sdk, that is android-19/data/res/drawable-hdpi Jan 25 18:27:20 can I reference this icond, using something like android: Jan 25 18:27:30 or should I just copy them in to my projects drawables? Jan 25 18:27:39 that is, is that the only way Jan 25 18:27:42 ? Jan 25 18:27:59 Zypho: you need to give more details. Why are you wanting to add another RelativeLayout to the mix? Just seems trying to have an app convert your webapp to an android app seems like rooting with one click apps. You get what you get&if you get it, you get it or else.... Jan 25 18:28:25 gulli: android.R. Jan 25 18:28:38 thanks! Jan 25 18:28:45 if in android-19 then your minimum build would be api 19 Jan 25 18:31:34 canvs2321: I agree with you, running a webapp as native is a bad idea. However the company that's paying mine over 200k wants this done because its quicker development time for cross platform (or so they thought that) so I just do what I am told Jan 25 18:31:39 Ill read up more on views and layouts Jan 25 18:35:07 canvs2321: Dunno. Even if I run as root with no selinux etc (tried several other routes) still lists the no permissions. Ive found references to this all over the place and they all have the same device id etc as me. Dunno what the problem is at this point. Jan 25 18:35:38 Zypho: but to program for android involves alot more than views&layouts. There's screen size, App Life Cycle, Threads, Persistent Data, Garbage collections, Services,Design,Layouts,Views,Custom Views, Blah, Blah Blah....to make a proper app, you have to follow guidelines&restrictions. There is more to writing apps than porting a website to a shell that just visits said website. Jan 25 18:35:42 you don't have permissions on your device.... Jan 25 18:36:25 pfn: System side its not a problem Now maybe the phone is but that is where I have no experience and why Im here. Jan 25 18:36:38 it's the system side Jan 25 18:36:43 Nope. Jan 25 18:36:44 you don't have permissions on your device Jan 25 18:36:46 yes, it is Jan 25 18:36:48 Nope. Jan 25 18:36:50 you don't have permissions on your device Jan 25 18:36:52 whatever Jan 25 18:36:53 go fuck off Jan 25 18:36:56 But if you are budgeted & getting 200k$ from this, then get me in contact with your boss, i'd like a job :) Jan 25 18:37:30 im not getting 200k, haha I wish, my company is though Jan 25 18:43:48 canvs2321: Had to power down and yank the battery. It now sees the phone. Thanks! Jan 25 18:51:21 Does anyone use Android Studio? I have a question about the way it structures activities when you create new activities Jan 25 19:24:19 is it possible to have a view that gets rendered to a texture and then display that texture on a quad in a glview? Jan 25 19:24:24 in 3d? Jan 25 19:24:57 sdaq, look into saving an image of a view Jan 25 19:25:04 it's possible to get a bitmap from a view I believe Jan 25 19:25:24 public Bitmap getDrawingCache (boolean autoScale) Jan 25 19:25:27 I found that Jan 25 19:25:45 so I want to render that bitmap on a 3d quad in a glview Jan 25 19:27:09 ultimately I want to interact with that 3d quad and have the events on it translated into events for the rendered view Jan 25 19:30:31 having issues with clicking on an action bar item and the item next to it opens first but hitting back takes you to the correct item Jan 25 19:30:43 anyone know why? or have a similar issue they have dealt with Jan 25 19:33:48 How do I get an instance of AudioManager using only static methods/fields? Do I need to use reflection? Jan 25 19:54:59 You need a context Jan 25 19:55:03 how do i say if a user clicks on an action bar item and he is already on that page that it should just refresh and not open up a new screen? Jan 25 19:56:06 if (check if user is on selected page) Jan 25 19:57:02 if(search.class) { return true} or something? Jan 25 19:57:43 what is the code for refresh return true;? Jan 25 19:59:45 ok nevermind return true is fine... back to my original question... I have a plus sign and a search icon on the action bar when clicking the plus sign Jan 25 19:59:55 the search screen shows Jan 25 20:00:05 and if i hit return then it goes to the plus screen why? Jan 25 20:02:29 Because you added the transaction to the backstack Jan 25 20:02:39 what does that mean? Jan 25 20:02:49 hi Jan 25 20:03:07 one question" when i call method g.drawImage then method public void update(Graphics g) will be automatically called ? Jan 25 20:03:47 https://developer.android.com/guide/components/fragments.html#Transactions Jan 25 20:04:39 I have to include this transaction? Jan 25 20:08:01 If the back button undo fragment transactions, then you're keeping a back stack Jan 25 20:08:16 If you don't want that to happen the solution is to not keep a back stack Jan 25 20:09:03 I do not have a backstack? and it is not a back stack issue Jan 25 20:09:23 the problem I am having is like so - I have 3 action bar items -a -b -and c Jan 25 20:09:34 now if I click b right as soon as i open the app Jan 25 20:09:38 it goes straight to c Jan 25 20:10:05 and then if i click a from c it goes to b Jan 25 20:12:23 I assumed you meant back when you said return Jan 25 20:14:04 ya sorry no, for some reason it just randomly pops to the action bar item +1 Jan 25 20:14:05 kind of thing Jan 25 20:15:05 It does exactly what you tell it to Jan 25 20:15:54 I click on plus icon which is linked to add activity Jan 25 20:16:01 but it opens up the search activity Jan 25 20:16:37 then when i click plus in search or hit the return button it goes to the add activity as if the search and add activity both opens Jan 25 20:16:59 You're missing a break in your switch Jan 25 20:17:39 good call Jan 25 20:18:00 is it just a break();? Jan 25 20:18:53 ohjust return true; Jan 25 20:20:39 thanks man!!! Jan 25 20:20:43 was driving me nuts Jan 25 20:23:14 That's why we have debuggers, so you can see the code path it follows Jan 25 20:25:41 ya well i was looking at it Jan 25 20:25:48 it did not say any errors Jan 25 20:26:27 i thought starting a new intent was like responding back to a server the same idea where you cannot send two responses Jan 25 21:03:30 it'd be nice if CursorAdapter were defined to return Cursor for getItem, instead of Object... Jan 25 21:03:37 covariant returns were in java 1.5... Jan 25 21:15:37 in sql do i determine the tables before hand or can I create new tables based on user input Jan 25 21:15:56 meaning if a user selects 3 languages, can I create 3 columns Jan 25 21:45:59 does it make sense that I have to create a new android application just for the sqlite? Jan 25 21:49:25 you can create whatever tables you want for whatever you want. No idea what you mean by creating a new app 'just for sqlite' Jan 25 21:54:10 this link Jan 25 21:54:17 http://www.androidhive.info/2011/11/android-sqlite-database-tutorial/ Jan 25 21:54:36 "Writing SQLite Database Handler Class" in this section of it @bankai Jan 25 21:54:56 I am new to sqlite so trying to find tutorials and not sure if that is correct Jan 25 21:55:15 that's just a class Jan 25 22:00:53 ya nvm idk why it said create a new project Jan 25 22:03:45 like nosql are tables like collections? Jan 25 22:05:26 basically can I have tables made with different amount of columns, meaning if someone wants to create a new dictionary I want a table that is the same then another table where there will be 2 columns or more depending how many languages they choose Jan 25 22:07:57 If I just use the setContentView with the basic layout. How do I find this view with find view by id? what should i put in as param? Jan 25 22:08:46 the layout name? Jan 25 22:09:14 R.id.layout_name in your layout folder under res Jan 25 22:12:08 then i get nullpointer, thats not the view Jan 25 22:12:43 bitsofbytes: use findViewById(R.id.) ... eg. Button b = (Button)findViewById(R.id.button); Jan 25 22:14:07 I want to add my Button to the "main" view. so I setContentView(R.layout.activity_main); then how do I add the button? Jan 25 22:14:19 in your XML Jan 25 22:15:38 i dont want to do it in xml Jan 25 22:16:37 it's the preferred method, but if you must, get a reference to your linearlayout and add it as a child of that Jan 25 22:20:32 i have a relativelayout but how do i get a reference to it? Jan 25 22:20:56 findViewById Jan 25 22:21:26 yes but what argument?= Jan 25 22:21:34 the id of your view Jan 25 22:42:53 if you setContentView with a view without content, you can get android.R.id.content Jan 25 22:54:38 er, without id Jan 25 23:00:46 is it expensive to create a table for every new row in another table Jan 25 23:02:42 How come I can find my phone from my PC with Bluetooth even though Bluetooth is disabled. Jan 25 23:09:47 hello, i'd like to purchase a cheap android phone locally, any way to know which ones work for development? my verizon droid4 had no issues but i'm worried the cheaper (< $50) prepaid phones may be locked down by the vendor to prohibit self-signed apks Jan 25 23:10:07 just buy used myke Jan 25 23:10:08 myke: plenty of older debices will work Jan 25 23:10:10 like off of craigslist Jan 25 23:10:39 for example epic 4g (not touch) its still being actively developed and has cm11 on it Jan 25 23:11:01 i live in a rural area so slim pickings on craigslist. is there maybe a site that has a matrix of phones and if they will work for development w/o rooting? Jan 25 23:11:35 is there a way to tell short of actually plugging in a usb cord and trying to run code on it? Jan 25 23:12:20 if you can enable debug mode Jan 25 23:12:23 you can do dev on it Jan 25 23:12:26 if cant well Jan 25 23:12:34 it shouldn't vary from phone to phone Jan 25 23:12:39 as long as the model is known to work Jan 25 23:12:40 ok great! but how can i tell without actually trying that first? Jan 25 23:12:47 look at settings Jan 25 23:12:51 look for debug mode Jan 25 23:12:57 hephaestus_rg: i'm concerned about vendors messing with the stock model Jan 25 23:13:05 i mean Jan 25 23:13:11 just check xda for a specific device Jan 25 23:13:17 when you're about to buy iy Jan 25 23:15:16 ok thanks Jan 25 23:15:52 also, in practical terms, how different are the emulators from a real device? what's the most common gotcha when developing primarily on an emulator and then moving to a device? Jan 25 23:16:10 i know some hw like accelerometer aren't emulated at all Jan 25 23:17:06 devices have quirks Jan 25 23:17:34 and in terms of UI design, you need to feel it in your hand to see how convenient/easy important functions are Jan 25 23:17:38 myke: the only time that I was really frustrated with the differences were when I was making an app that utilized the camera. Jan 25 23:18:06 and gives you a better idea of how fast/slow your app is in a qualitative sense Jan 25 23:18:34 (for me personally, i develop on an old ass netbook, that can' t even run an emulator, so i need to use a device) Jan 25 23:19:42 burmat: thanks, my app will need to scan qr codes Jan 25 23:20:21 hephaestus_rg: same, my 2 desktops range from very good to aceptable for emu, but i haven't even bothered on my old laptop Jan 25 23:21:20 LoneSoldier728, if you have to create a new table for every row, then your schema is broken Jan 25 23:22:19 similarly, a table per language is generally broken if your list of languages is dynamic Jan 25 23:22:43 myke: yeah, test frequently (on multiple phsycal devices) and be patient. Jan 25 23:24:47 right now i only have one physical device, and it's a fairly high end phone, which is why i wanted to know what a good bottom end phone for dev was Jan 25 23:24:51 since my target is low end phones Jan 25 23:25:38 I always tested on a moto droid 1, a d3, a Kindle Fire, and my Galaxy s3 was always last Jan 25 23:26:15 i have a droid 4...that's it Jan 25 23:26:28 had a droid 1 until an unfortunate incident with a glass of water Jan 25 23:27:00 yeah, that happens. Might be able to find an old HTC or something on ebay / from family or friends Jan 25 23:27:07 for cheap I mean Jan 25 23:29:06 maybe i was wrong about CL...lots of phones available for sale near me...tho many are $200+ phones Jan 25 23:29:12 testing on a moto droid 1... Jan 25 23:29:17 that's pretty much useless... Jan 25 23:29:52 yeah, back in the day it was really useful though Jan 25 23:29:59 it's a classic...lots of apps had the droid1 as their release target Jan 25 23:30:07 4 years ago Jan 25 23:30:12 i actually just dug it out the other day to work on a rpi project Jan 25 23:30:14 connectbot still works more correctly on that phone than anything else i've tried Jan 25 23:30:17 noooo.. ~3 years lol Jan 26 00:12:47 I'd like to give connectbot some love Jan 26 00:12:55 but I use ssh so rarely on the phone Jan 26 00:13:48 and the droid1 was released in 2009 Jan 26 00:13:51 over 4 years ago Jan 26 00:15:00 you can ssh to android phones? Jan 26 00:15:01 Is EGLConfigChooser still relevant, or is it superceeded by something else Jan 26 00:15:18 Playb3yond, sure, but why would you want to... Jan 26 00:15:37 with root, it's kind of useless Jan 26 00:15:51 unless you have files on your computer you want to install or whatever Jan 26 00:19:39 I guess setEGLContextClientVersion made the whole EGLConfigChooser and ContextFactory obsolete? Jan 26 00:23:10 The only example for es2 in NDK still uses them, which makes it confusing Jan 26 00:24:06 i wish they had shipped with better examples Jan 26 00:41:30 lurkerzero, what is confusing? Jan 26 00:41:55 whether we should still be using them or not Jan 26 00:42:44 esp. when their only example code uses it Jan 26 00:43:05 you wouldn't know that they're deprecated unless you dug deeper Jan 26 00:44:12 NDK's not really considered a priority Jan 26 00:47:39 Yes, the documentation is a little confusing Jan 26 01:21:59 hey guys Jan 26 01:22:07 is anyone of you using fadingactionbar? Jan 26 01:22:18 by manuelpeinando? Jan 26 01:44:12 i fucking did it.. ported CM pattern lockscreen enhancements to xposed.. muwhahaha Jan 26 01:51:43 hello Jan 26 01:51:45 I've been trying to open the code of Yaaic I've downloaded from Github and to compile it myself. Although nearly everything works and there's no error in Eclipse, there's one big issue: the keyboard doesn't open when I click on the text field when I'm inside a chat. However, when I download the app from the Play Store, the keyboard works. I haven't edited anything in the source code. Jan 26 01:55:06 help pliz!!! Jan 26 02:15:42 Hi,anyone here do JNI development? Having problem including the base libraries. Using #include and Eclipse can't find it apparently?! Jan 26 02:16:05 I have the path to the NDK set in Eclipse. Jan 26 02:17:10 Do I have to add the full filesystem path to each include file? (seems a bit backward) Jan 26 02:27:01 <|0xD34D|> Smashcat: not sure but you need to add the includes path i.e. /path/to/ndk/platforms/android-?/arch-arm/usr/include Jan 26 02:27:32 <|0xD34D|> make sure you replace android-? with the version you want to support and use choose the arch you want if not arch-arm Jan 26 02:27:53 <|0xD34D|> been a while since I used it and set it up so I could be wrong ;) Jan 26 02:28:51 Yep, I did check those paths, and they're included correctly. For some reason Eclipse doesn't seem to be picking them up though. Strangely the C++ compile seems to work, but then it refuses the java build. Think it's a bug in Eclipse. Jan 26 02:30:43 ... I'll try changing all the encludes to absolute paths to see if it can see the files... Jan 26 02:30:48 *includes Jan 26 02:31:02 <|0xD34D|> looks like as of ADT 20 there is an NDK plugin Jan 26 02:31:05 <|0xD34D|> never used it though Jan 26 02:31:50 Yep, I'm using the plugin. It's the latest version of the NDK. r9c I think Jan 26 02:51:11 hello Jan 26 02:51:21 any idea how with gson Jan 26 02:51:29 make "" > 0 ? **** ENDING LOGGING AT Sun Jan 26 02:59:59 2014