**** BEGIN LOGGING AT Tue Jun 25 02:59:58 2013 Jun 25 03:03:59 hi guys Im actually having to write a small school project where Im suppose to sent a bluetooth signal when I press and on button and off button :( any ideas how I go about this unless there are codes already online Jun 25 03:07:58 iKillCypher: look at the developer site, under example code, there is a bluetooth comms example Jun 25 03:08:11 iKillCypher: it shows establishing a SPP connection over bluetooth Jun 25 03:15:18 dragorn, I think that is all too advance o.o Jun 25 03:15:32 all I need is to sent a bluetooth signal that's all Jun 25 03:16:03 the only "bluetooth signal" you can really send is via spp to another device which supports spp Jun 25 03:16:10 and the only way to do it is what I suggested Jun 25 03:18:06 * Zharf nods Jun 25 03:18:35 you can skip doing it "right" and having a service, etc, if you just want to kluge it Jun 25 03:19:02 but the only available BT comms are via SPP, android doesn't really expose anything else (you can't emulate a headset device or anything) Jun 25 03:19:10 well in other words all I need the bluetooth to be on ? Jun 25 03:19:36 One of us doesn't understand what you're doing ;P Jun 25 03:19:40 Or perhaps both of us Jun 25 03:19:52 well Im making a home application bluetooth controller Jun 25 03:20:34 all I have to do "example fan on" the bluetooth will turn on its signal while the bluetooth receiver which is connected at the fan receives it Jun 25 03:20:46 and the fan will turn on Jun 25 03:22:54 open bluetooth socket, send message, done Jun 25 03:22:56 :E Jun 25 03:23:54 haix :( this is sad I had to pick up java myself and do everything myself !_! shitty project Jun 25 03:24:11 -.- Jun 25 03:25:07 doesn't sound like a winner attitude, are you sure you want to do this for living? ;) Jun 25 03:25:32 so you need to communicate to a device Jun 25 03:25:49 the only communication you can perform is an emulated serial port over rfcomm Jun 25 03:25:58 yes well Zharf if my teacher did help me everything would be nice Jun 25 03:26:08 and the only way to do that on android is to follow the tutorial i suggested. You have to go through that setup. Jun 25 03:26:20 I dont even have the bluetooth receiver UUID how the fish am I going to sent the signal Jun 25 03:26:39 iKillCypher, best way to learn is to discover it yourself ;) Jun 25 03:26:41 if it's SPP there's a standard UUID; I don't recall it offhand, google will tell you eaisly Jun 25 03:26:44 if it's not SPP, the game is over Jun 25 03:26:51 meaning? Jun 25 03:26:52 because it can't be done Jun 25 03:27:06 well all bluetooth receiver has a SPP right? Jun 25 03:27:25 not really Jun 25 03:27:31 only things that emulate a serial port Jun 25 03:27:39 which isn't many Jun 25 03:27:53 most things that are too custom for the other profiles I guess Jun 25 03:27:55 having never seen a bluetooth fan I couldn't begin to guess how it communicates Jun 25 03:28:16 the bluetooth receiver sents the signal Jun 25 03:28:19 Zharf: there just isn't much of a way to steer anything that isn't a SPP in the API Jun 25 03:28:28 upon receiving from the phone Jun 25 03:28:40 dragorn, yeah Jun 25 03:28:51 all my teacher told me is something about bluetooth permission Jun 25 03:29:17 http://developer.android.com/guide/topics/connectivity/bluetooth.html it's all here Jun 25 03:29:25 well I think all he wants me to do is turn the bluetooth signal on while the recv checks for the signal and does the job Jun 25 03:30:04 however, you should discuss the uncertain points of the assignment with your teacher obviously :) Jun 25 03:30:14 Well, good luck. I can't figure out what you're trying to do Jun 25 03:30:33 Zharf, I think you get it right? Jun 25 03:30:36 and it sounds like you're not too clear either. If you have to send data over bluetooth, the docs are what zharf linked Jun 25 03:30:57 well I will just null the the signal for now Jun 25 03:32:09 well secondly Im a C# Programmer :( most of my works is in C# so bleh :( Jun 25 03:32:10 lol Jun 25 03:33:22 specific language programmers are the worst Jun 25 03:33:27 Anyone else having problems opening the HAX module on os x 10.9? Jun 25 03:37:35 zharf why's that Jun 25 03:39:40 because I think they're not motivated by their work or really not very interested in programming, they're just doing it because it's a job Jun 25 03:39:41 has anyone gotten a opengl project to work on a Galaxy Note 2? Jun 25 03:39:48 I can't think of any other reason to not explore other languages Jun 25 03:41:48 well I think it's better to be fantastic at one language than semi-ok at various Jun 25 03:42:02 if that one language is in high demand like say java, or object c Jun 25 03:42:35 mdev, learning various languages has given me much more tools to work with in languages I already know Jun 25 03:42:57 programming is not about the language you do it in Jun 25 03:43:03 the language is only a tool Jun 25 03:43:07 assuming the languages support the same things :) Jun 25 03:43:19 no, not even all that Jun 25 03:43:52 exploring functional programming languages was a massive game changer for me back in the days :) Jun 25 03:43:59 even though I mostly write c, c++ and java Jun 25 03:45:13 well I know various languages and may end up getting a 11k+ android project Jun 25 03:45:26 I don't really know java but hope I can learn it quickly based off other languages I know Jun 25 03:45:27 haha Jun 25 03:45:38 it should be easy Jun 25 03:45:56 getting into android dev isn't as easy, imo :) Jun 25 03:46:09 what makes it hard? Jun 25 03:46:27 it's not hard really, it's just a different environment than normal java Jun 25 03:47:57 so I should get a book on android dev Jun 25 03:48:03 instead of on java first? Jun 25 03:49:20 if you don't know any java, learn a little bit of that first... Jun 25 03:50:49 mdev, just start making stuff ;) Jun 25 03:51:11 d.android.com provides a lot of info to work with Jun 25 03:52:18 why is the hell is the emulator so lagging Jun 25 03:52:58 I hadn't written a single line of java in about 8 years when I started my android journey Jun 25 03:53:01 got pretty well on the way in a couple of weeks of trying things out based on d.android.com Jun 25 03:55:04 thanks Jun 25 04:00:46 I can't seem to find other people having problems with proguard after the Android Studio 0.1.6 update Jun 25 04:00:53 do you guys think that just not many people use proguard? Jun 25 04:02:07 * Bleeptech is distracted from coding just long enough to wonder WTH is proguard? Jun 25 04:06:36 guys why is the android gui so lag Jun 25 04:07:21 Morning, all./ Jun 25 04:08:14 guys why is the android application creation so lagging it seems creating a button takes forever Jun 25 04:09:17 Morning, all. Jun 25 04:10:57 Anyone alive? Jun 25 04:11:05 nope only me Jun 25 04:11:18 Nope only Memorex.. Jun 25 04:12:00 There is life. Cool, could someone help me set up a dev environ on an Ubuntu machine? Jun 25 04:12:53 Daughain: You have a coice of Eclipse or Android Studio.. Jun 25 04:13:10 or neither Jun 25 04:13:15 Which is more granular? Jun 25 04:13:20 s/coice/choice Jun 25 04:13:54 The android Studio is what I'm using now. Jun 25 04:14:24 Dores that allow changes to kernel;s and drivers? Jun 25 04:14:36 Daughain: this channel is for app development... Jun 25 04:14:39 anyone here know why when I create I getting error R cannt be resloved ? Jun 25 04:14:51 OK, what channel is for rom dev? Jun 25 04:14:57 Leeds link me your apps Jun 25 04:15:06 mdev: um, no Jun 25 04:15:07 setContentView(R.layout.activity___project); Jun 25 04:15:14 Im getting R cannot be resloved Jun 25 04:15:36 Leeds, why not? Jun 25 04:15:38 Daughain: there isn't really one - there aren't enough people doing actual development, and most of the active people are too busy to mess around on IRC Jun 25 04:16:21 :S Jun 25 04:16:33 iKillCypher: That's why I moved to AS.. Check your error log window. Jun 25 04:16:47 This is going to be a long night..... Jun 25 04:19:09 Any ideas where I might start looking? Jun 25 04:20:06 Daughain: I thought theere was an android-root channel, but I don't see it in the list. Jun 25 04:22:46 iKillCypher: are you getting a "Invalid property category path: ValidationPropertiesPage.." error? Jun 25 04:22:54 nvm I fixed it Jun 25 04:22:56 :( Jun 25 04:23:02 What was it? Jun 25 04:23:22 i want to open a section of a binary file and allow a specific "window" of that file to be in ram. I would like to be able to 'scroll' through the file as that window moves left or right within the file. any ideas on this? Jun 25 04:23:22 #android-root Jun 25 04:23:28 Any idea what software I might need for linux? Jun 25 04:24:04 Daughain: have you looked at the information on s.android.com? Jun 25 04:24:15 No, never heard of it. Jun 25 04:24:25 then... where *have* you looked, apart from here? Jun 25 04:24:44 General google searches, but all I find is app dev. Jun 25 04:24:51 given that that is the homepage for the Android source release, has build instructions, requirements, etc. Jun 25 04:25:07 try a search for "build android source" Jun 25 04:25:10 Thanks Leeds. Jun 25 04:25:29 or just "build android" Jun 25 04:26:48 how long you been developing android apps leeds? Jun 25 04:27:12 mdev: 4.5 years, give or take Jun 25 04:27:44 nice :) Jun 25 04:27:50 seasoned dev, good to know Jun 25 04:28:18 Woohoo! Fresh brains to pick.. LOL.. Jun 25 04:42:45 can anyone here tell me why my android gui is so freaking lagging Jun 25 04:42:54 that when I adjust the width and height it does not follow Jun 25 04:45:28 ???? Jun 25 04:46:09 iKillCypher: Mine was lagging when I was stuck on a POS P-IV.. Jun 25 04:46:19 do you mean the UI of your app? Jun 25 04:46:24 meaning o.o it is just quite bad here Jun 25 04:46:37 no the eclipse design where you drag the button etc Jun 25 04:46:42 no idea what is that call Jun 25 04:46:45 WPF ? Jun 25 04:47:47 iKillCypher: Linux or windows? Jun 25 04:47:56 windows Jun 25 04:48:27 iKillCypher: Task manager and see what's going apeshit? Jun 25 04:48:47 600K o.O Jun 25 04:49:01 the emulator is slow, it's better if you use x86 image and the weird hardware hax thing (I think it was only available for intel?)... on linux my emulators work mostly fine though :) Jun 25 04:49:40 it is that design shit Jun 25 04:49:45 I dont what it is called :( Jun 25 04:49:54 where you drag the button etc Jun 25 04:49:58 in the olden days, they called that sort of thing a form designer Jun 25 04:50:03 * Leeds doesn't use an IDE Jun 25 04:50:37 oh that Jun 25 04:50:37 well I think most of you guys know what Im talking about Jun 25 04:50:41 well it's eclipse :p Jun 25 04:51:01 then how would you want me to design my application Jun 25 04:51:41 whats with the application auto aligning itself Jun 25 04:51:49 it is getting annoying Jun 25 04:53:08 * iKillCypher is pissed off quite bad Jun 25 04:53:50 auto aligning? Jun 25 04:54:19 I assume you're talking about eclipse doing crap again, so I'll just ignore that ;) Jun 25 04:54:46 dude Jun 25 04:54:58 how am I going to work on my project like this Jun 25 04:56:15 we hav no freaking idea what you're talking about Jun 25 04:57:13 i do, he hates eclipse... or something Jun 25 04:57:18 do you know what is an android design ? Jun 25 04:57:31 where the part you drag a button Jun 25 04:57:38 I never used eclipse Jun 25 04:57:41 it is auto aligning it self with other button Jun 25 04:57:53 so how do I develop my android application then? Jun 25 04:57:57 The WYSIWYG editor? Jun 25 04:58:20 that designer is terrible, better just not to use it... or use intellij/AS Jun 25 04:58:29 iKillCypher, android ui elements are "aligned" in relation to each other somehow, almost always Jun 25 04:58:44 yeah anyway to disable that ? Jun 25 04:58:50 You could always design it in XML. Jun 25 04:59:00 iKillCypher, you really don't want that Jun 25 04:59:04 cause I think I do better alignment then it does it screwed up and my button went missing Jun 25 04:59:50 that's probably because your linear layout is defaulted to horizontal orientation Jun 25 04:59:59 XML!!! Jun 25 05:00:05 which is really stupid default, but you'll have to live with it ;) Jun 25 05:00:15 most of us write the xml by hand I believe Jun 25 05:00:18 I know I do Jun 25 05:00:29 who the designed that ? Jun 25 05:00:30 So do I, usually Jun 25 05:00:33 linear layout is defaulted to horizontal orientation Jun 25 05:00:34 Sometimes i get a rough start with the gui Jun 25 05:00:39 then tweak in xml... Jun 25 05:00:50 iKillCypher, someone at google thought it would be a funny trollface kind of thing Jun 25 05:01:10 Theyre monitoring this chat room lol'ing right now. Jun 25 05:01:15 yep Jun 25 05:01:25 well in case they are they should know it is retarded by doing so Jun 25 05:01:31 my button just went missing ! Jun 25 05:01:50 i guess that's why they released AS Jun 25 05:01:57 what is AS Jun 25 05:01:58 ? Jun 25 05:02:02 Android Studio Jun 25 05:02:10 that is in c# ? Jun 25 05:02:12 right Jun 25 05:02:24 No, java still Jun 25 05:02:36 It's just a different IDE. Jun 25 05:02:37 AS is intellj with some shit shoved into it Jun 25 05:02:46 is it great ? Jun 25 05:02:51 or shitty like eclipse ? Jun 25 05:02:56 IDEA is great :) Jun 25 05:03:01 no idea about AS Jun 25 05:03:17 * iKillCypher just needs an IDE which wonts lag and done with his project Jun 25 05:03:23 It appears to have a dark theme, but that's all I know about it. Jun 25 05:03:35 iKillCypher: It's not giving me the "R cannot be resolved.." errors.. LOL. Jun 25 05:03:49 intellij, then AS, then eclipse .... that's my opinion Jun 25 05:03:58 so which shit is the best ! Jun 25 05:04:06 so I can design and done with my application Jun 25 05:04:31 iKillCypher: The shit they grow on Maui? Jun 25 05:04:48 im not joking around I only have half a day to do this project Jun 25 05:05:05 bankai_, I would put vim in there waaay before eclipse ;) Jun 25 05:05:21 iKillCypher: you might want to be aware that nobody here owes you support, and your deadline isn't as important to anyone else Jun 25 05:05:30 so chill out Jun 25 05:05:31 Zharf: hahaha cheeky Jun 25 05:06:02 iKillCypher: I moved from eclipse to AS and it took me ~ 1/2 hour to start finding things that were a lot clearer/easier. Jun 25 05:06:23 * iKillCypher goes and download android studio Jun 25 05:06:45 eclipse still has nicer 'quick summaries', i think Jun 25 05:06:54 probably the only thing i like about it Jun 25 05:07:15 i downloaded as a while back... still have yet to try it. Probably should Jun 25 05:07:20 sure by a shitty design and lagging of gui which makes business application lost $ Jun 25 05:07:25 bankai_: I'm enjoying the hell out of the Analyse function Jun 25 05:07:44 oh what's that? there's heaps about IJ/AS i haven't found/used yet Jun 25 05:07:57 i've been using android studio for the past 3 or 4 hours and it seems quite nice Jun 25 05:08:22 I hope android studio building and compiling and transfer of APK is easy Jun 25 05:08:36 if you call one click of a button easy, sure Jun 25 05:08:42 bankai_: Analyse > Inspect Code. Jun 25 05:09:12 Bleeptech, I get soo many more commits at work thanks to that ;) Jun 25 05:09:18 Shows you all your fubars.. :) Jun 25 05:09:18 they think I'm productive Jun 25 05:09:36 I come from developing in vim so I can't really complain about any of the IDE's :) Jun 25 05:09:39 Bleeptech: ok i lied i have used that before, VERY handy Jun 25 05:09:40 so I guess eclipse support will soon end and die Jun 25 05:09:48 I still develop in vim Jun 25 05:09:57 mostly django at the moment rather than Android... Jun 25 05:11:04 Leeds, I do most of my non-java stuff in vim too, but java in vim is just too much ;) Jun 25 05:11:32 I have vim too deeply embedded in my brain Jun 25 05:12:41 Leeds, so do I, thank god (jetbrains) for ideavim <3 Jun 25 05:12:49 Yeah i do ruby, perl, etc.. in vim but java for android is definitely nice in an ide Jun 25 05:13:04 I'm pretty new to android dev so it really helps... Jun 25 05:13:39 maybe I'm just in denial about Java needing an IDE Jun 25 05:14:01 go for C# Jun 25 05:14:24 it doesn't NEED one :) Jun 25 05:14:28 I think it's mostly because of the verbosity of java that it "needs" an IDE Jun 25 05:15:00 I'm sure vim could do with the right plugins Jun 25 05:15:19 there is an eclipse plugin for vim Jun 25 05:15:23 any reason to use android studio instead of intellij idea? Jun 25 05:15:38 omg, i'm on that... vim in eclipse or vice versa... so nice... Jun 25 05:16:10 wow theres lots of them actually Jun 25 05:16:28 eclipse in vim Jun 25 05:16:39 flipture, from my experience, the eclim crap was just that, crap :) Jun 25 05:16:53 there are some that go the other way but that's stupid Jun 25 05:18:37 Zharf, good to know. I keep all of my stuff in my personal git repo on my server so i can just ssh to that and develop when i'm away from an idea and pull my changes up when im back Jun 25 05:19:03 its just nice to see everything that i broke when i change a method name or something Jun 25 05:23:09 stupid time picker and its month starting in 0... Jun 25 05:23:37 yeah that has caused some headaches Jun 25 05:24:08 Doesn't make much sense lol Jun 25 05:24:45 it would if it was consistent with everything else Jun 25 05:24:53 yep Jun 25 05:25:25 I prefer to use DateTime for most of my calendar needs nowadays Jun 25 05:26:49 dates in java are just one huge fucking disaster after the next Jun 25 05:27:26 I've been through it and back the last few days... Found out how many of the date methods are depreciated... That and preferences stuff Jun 25 05:27:40 ron_frown, yeep Jun 25 05:27:52 ron_frown, I think there was some attempt to fix those in some future version Jun 25 05:27:57 yeah Jun 25 05:28:03 3rd times a charm... we hope? Jun 25 05:28:08 :) Jun 25 05:28:17 joda I thin kwas the closest and somehow their lib was like megs Jun 25 05:28:22 .net why do you spoil me so Jun 25 05:28:35 :) Jun 25 05:28:59 calendar is an illogal thing that doesn't fit into programming very well! Jun 25 05:30:48 guys I dont understand this Jun 25 05:31:01 What about it do you not understand? Jun 25 05:31:52 cant find it in my gui o.O Jun 25 05:32:24 have you inflated the layout or setcontent ? Jun 25 05:33:11 yes Jun 25 05:33:28 How are you calling it? Jun 25 05:33:48 using R ? Jun 25 05:34:34 sometimes you can import android.R which is os/api resource file Jun 25 05:34:49 make sure when you mouse over R, you see your package names Jun 25 05:35:03 well under palette Jun 25 05:35:07 Im finding textView Jun 25 05:35:27 so example I can do if (mBluetoothAdapter == null) { Jun 25 05:35:27 out.append("device not supported"); Jun 25 05:37:39 thank god I got my monitor fixed... I thouhgt I was seriously having brain issues Jun 25 05:37:42 a tumor or something Jun 25 05:37:47 o.o Jun 25 05:37:50 care to help Jun 25 05:38:09 so do it? Jun 25 05:38:20 if you cant find a textview I'm afraid you've got a long way to go Jun 25 05:38:37 like final TextView out=(TextView)findViewById(R.id.out); Jun 25 05:38:45 out.append Jun 25 05:38:54 there is no method call append Jun 25 05:39:36 ok nvm Jun 25 05:39:42 -_-'' sorry got it Jun 25 05:39:44 =) Jun 25 05:39:47 my brain isnt working that well Jun 25 05:47:02 alright. time for sleep... g'night all... Jun 25 06:00:42 wow, AndroidBuilder is so lame... Jun 25 06:00:56 processResources() doesn't even deal with library dependencies' resources Jun 25 06:24:56 DONE Jun 25 06:25:01 my project is finished Jun 25 06:25:06 thanks guys Jun 25 07:12:14 I have a service class with onStartCommand() { startForeground() //some operations return START_STICKY; } now when the operations are over and start_sticky is returned, will the service be terminated? ie stop() is implicitly called? or I have to manually stop the service? Jun 25 07:20:47 am.. hello? Jun 25 07:22:12 Quest, you always have to explicitly stop a started service Jun 25 07:22:22 so you must call stopSelf() to terminate it Jun 25 07:24:20 Had anyone successfully autoplay HTML5 video inside webview so far? Jun 25 07:25:04 Mavrik, if i do not call stopSelf() and START_STICKY is return AFTER the operations done, the service will just keep in memory and do nothing? Jun 25 07:25:34 the lifecyle won't continue through Jun 25 07:25:52 the process won't get deactivated if the service is the only thing running, your onDestroy and other methods won't get called, etc. Jun 25 07:25:53 please Jun 25 07:25:55 don't do that. Jun 25 07:26:55 Mavrik, if want to stop the service manually sometime later, I can call stop() from another activity , right? Jun 25 07:27:06 Mavrik, ok Jun 25 07:27:18 Mavrik, so I should call stop() or selfStop() ? before the return START_STICKY? Jun 25 07:27:41 no. Jun 25 07:27:50 call selfStop when the service is done processing Jun 25 07:27:56 you ARE doing the processing on another thread right? Jun 25 07:28:01 Quest: onStartCommand() runs on the UI thread so you should not be doing intensive operations there, spawn a thread, return from onStartCommand() and then call stopSelf() from the thread Jun 25 07:28:23 Mavrik, no. the service is started by AlarmManaber at boot, Jun 25 07:28:28 doc_savage, ^ Jun 25 07:28:46 Quest, ok, now go read this page please: http://developer.android.com/guide/components/services.html#ExtendingService Jun 25 07:28:52 and stop running your service calls on UI thread Jun 25 07:28:57 not cool ;) Jun 25 07:29:24 Mavrik, there is NO ui Jun 25 07:29:28 Does anybody know an alternative class for the iOS: "mediaPlaybackRequiresUserAction" on Android? Jun 25 07:29:43 Quest, doesn't matter Jun 25 07:29:51 you'll see strange things happening if you block the UI thread Jun 25 07:29:56 not to mention ANR messages for user Jun 25 07:30:09 do what doc_savage told you :) Jun 25 07:30:17 doc_savage, Mavrik its a repeating alarm, starts service , it does some operations, it dies, now I cant figure out how to stop the service once it has completed the operation. Jun 25 07:30:43 what's so hard about stopSelf? Jun 25 07:31:04 no ui != no ui thread Jun 25 07:31:25 pfn, where should I call it? Jun 25 07:31:36 where you want the service to stop... of course Jun 25 07:31:57 Mavrik, doc_savage pfn are you guys saying to startSerivce() from some other class, and then stop() it ? Jun 25 07:32:00 Quest, don't get it, where's thr problem. You spawn a thread in your onStartCommand, your service does what it must, you call stopSelf at the end of the thread. Jun 25 07:32:28 I have a service class with onStartCommand() { startForeground() //some operations return START_STICKY; } now when the operations are over and start_sticky is returned, will the service be terminated? ie stop() is implicitly called? or I have to manually stop the service? <<---- pfn Jun 25 07:32:44 no, stop is NEVER implicitly called. Jun 25 07:32:48 read the documentation. Jun 25 07:32:49 start_sticky means the service is started Jun 25 07:32:52 Mavrik, hmm Jun 25 07:33:05 unless you're doing a bound service, which you're not. Jun 25 07:33:16 you want start_not_sticky Jun 25 07:33:27 Mavrik, what do you mean by " spawn a thread in your onStartCommand, your service does what it must, you call stopSelf at the end of the thread." Jun 25 07:33:55 New Instagram with video, how did they managed to have the clips autoplay on the timeline? Jun 25 07:34:08 pfn, need the service to persist and trying.. it wont be killed (though its not gauranteed) Jun 25 07:34:18 could someone share some thougts on this please? Jun 25 07:34:21 doc_savage, how to spawn the thread? is there an example Jun 25 07:34:22 why would you need the service to persist Jun 25 07:34:24 vedtam_, check the source? it's possible they're using javascript to start. Jun 25 07:34:33 you are asking to have the service stop.... Jun 25 07:34:39 what's the point of having it persist if you're having it stop Jun 25 07:34:54 pfn, its important? but nevermind about that. i just need to know how to spawn the thread. or what ever it means. and then stop it Jun 25 07:35:19 I did too. And it works on my phone (Note II), but the same javascript and app fails to autostart on my 4.2 tablet. Jun 25 07:35:21 pfn, == not wanting it to be stopped unless it has finished Jun 25 07:35:46 ok, let's be clear Jun 25 07:35:53 Should I call the javascript function from the app directly? Jun 25 07:35:57 but if all your logic is in onStartCommand() then it is finished when onStartCommand is done Jun 25 07:36:07 is your service doing one-time tasks or should it persist the whole time? why are you calling setForeground? Jun 25 07:36:48 I thought maybe there is a class inside android simmilar to the iOs: mediaPlaybackRequiresUserAction: NO Jun 25 07:37:01 shich disables autoplay Jun 25 07:37:03 Mavrik, it shoud die after it has finished Jun 25 07:37:16 Mavrik, forground has high priority Jun 25 07:37:22 and starts only on user action Jun 25 07:37:23 Mavrik, that means my service is important Jun 25 07:37:28 ... Jun 25 07:37:38 Quest, is there ANY reason you need high priority? are you playing music? Jun 25 07:37:48 Mavrik, kind of. yes Jun 25 07:38:14 Mavrik, dont worry, i understand that. what i dont is how to stop it sane Jun 25 07:42:54 do you understand how to create a java thread? Jun 25 07:43:37 Does any one have a good example of a "NotificationCompat.Builder" with a remoteView ? is see a lot of old ways to do it, using "new notification… notification.contentView = contentView" .. but this is not the way to do it (?) Jun 25 07:44:21 Mavrik, oh.... a simple thread? runnable? Jun 25 07:44:28 yep :) Jun 25 07:44:33 Mavrik, so the first way is wrong and the later is correct? http://pastebin.ca/2407366 Jun 25 07:45:04 the first one is gonna show ANR warning to user if you do something that isn't REALLY short Jun 25 07:45:29 for the second I don't know, since it's not obvious if the handler is running it's loop on UI or another thread Jun 25 07:45:57 Mavrik, so whats the correct way? Jun 25 07:46:16 I usually just do Thread thrd = new Thread(…) :) Jun 25 07:46:34 also, if you want to do something in background you need to grab the wakelock Jun 25 07:47:12 ya. wakelock is in my que. dont need the screen to be turned ON though. i think partial wake lock is the thing? Jun 25 07:49:11 yep, you need your CPU online Jun 25 07:49:20 otherwise your service won't run for the period when CPU is off Jun 25 07:49:54 Mavrik, by the way I would tell you a secret. my app calls a service every 15 minuts. no matter the device is at sleeep or not. Jun 25 07:50:00 it calls it for ever. Jun 25 07:50:08 it runs for 1 minut. then dies Jun 25 07:50:26 Mavrik so are we good to go? http://pastebin.ca/2407367 Jun 25 07:50:41 yeah, that's why you'll need a wakelock Jun 25 07:50:50 otherwise the CPU will shutdown before your service does anything Jun 25 07:50:52 Mavrik, okie dokie Jun 25 07:51:07 er, that's not how you start a thread :P Jun 25 07:51:16 you just created a runnable class which does the code Jun 25 07:51:25 but you haven't actually made a thread to run that runnable :) Jun 25 07:51:37 Mavrik, its an annonymous thread... dont you know? or i am at mistake Jun 25 07:52:26 no such thing :) Jun 25 07:52:38 Mavrik: do you have a good example of a "NotificationCompat.Builder" with a remoteView ? is see a lot of old ways to do it, using "new notification… notification.contentView = contentView" .. but this is not the way to do it (?) Jun 25 07:55:03 Mavrik, sorry , my bad, now we are good to go? http://pastebin.ca/2407376 Jun 25 08:00:10 How do i increase the size of my notification icon in the "top bar" of the screen? whatsapp icon s bigger for example Jun 25 08:00:47 rved, sorry, didn't have the honor of working with that yet :) Jun 25 08:01:02 ok, ty for your response Jun 25 08:01:16 Quest, yep, just start the thread ;) Jun 25 08:01:30 k Jun 25 08:01:33 i wanted to create a checkbox on the right, but it was a nice to have feature, so I'm getting rid of it and going for the default settings Jun 25 08:11:09 I've been plagued for days with this one.. http://stackoverflow.com/questions/17287893/strange-opengl-es-2-0-bug-on-galaxy-note-2?noredirect=1#comment25070323_17287893 Jun 25 08:12:22 Hello. I am trying to get a GridView to fit its contents. For some reason wrap_content is not working Jun 25 08:12:41 Could someone here help me with this? Jun 25 08:15:46 Does any one have experience with LVL? it's all setup correctly, the paid licenses are working fine.. but my developer account are getting errors sometimes: application error 3, error 297 etc… any idea;s? dev console server response is LICENSED Jun 25 08:17:21 SIGKILLer: My impression is that GridView wants mostly regular identically sized items, but having said that, Stackoverflow.com has a couple of articles with suggestions in them.. Jun 25 08:22:02 Mavrik, doc_savage I am stoping the service in the correct manner but only the log.e of ping ====== is called and no log.e that is inside the new Thread is ever seen. am I doing anything wrong? http://pastebin.com/d137pfQH Jun 25 08:26:05 Quest, well, I did tell you to start the thread. Jun 25 08:26:16 you're just creating a thread object, not actually starting the thread. Jun 25 08:26:37 you really should read up on Java documentation before blindly just throwing first thing that you see in your app. Jun 25 08:27:10 ....... my .. bad.. ).start(); Jun 25 08:27:39 Mavrik, ya. I was just in a headache. I had used threads manytimes before. I wonder why iam making silly mistakes Jun 25 08:27:52 Mavrik, i appreciate your support! Jun 25 08:28:14 * Quest welcomes himself to programming Jun 25 08:28:33 :) Jun 25 08:28:36 Hi, is anyone aware of a signal-processing library for Java/android? Preferably under a MIT or BSD License? Jun 25 08:28:47 uh, g'luck with that Jun 25 08:28:53 freiform, what kind of methods do you need? Jun 25 08:28:56 what kind of signal are we talking about? Jun 25 08:29:06 DSP ? Jun 25 08:29:17 or semaphores in disguise? Jun 25 08:30:00 Audio processing, i.e. FFT, Cross-correlations, Filter(-Banks) and thelike Jun 25 08:30:00 Xabster, how many dimensions do you work in? java ee , android? Jun 25 08:30:15 Xabster, i have seen you almost every where Jun 25 08:30:36 all of them Jun 25 08:30:44 javase, ee, me, android Jun 25 08:31:58 oh, and more precisely: i won't in the 3 spacial dimensions Jun 25 08:32:03 work* Jun 25 08:32:04 damnit Jun 25 08:35:05 freiform: i looked for libraries for that too but came up short on general functions and audio stuff - openCV is awesome for video though Jun 25 08:35:05 freiform, I suggest you look for C DSP libs and invoke them via JNI Jun 25 08:35:26 it might be able to do FFT and a cosine transforms on single dimension signals, but never tested Jun 25 08:35:39 same could be true for filters, not tested either Jun 25 08:36:04 i agree with Mavrik, but wanna add that you might be able to copy whole C/c++ methods without much alterations Jun 25 08:36:10 if you don't want jni Jun 25 08:36:34 Thanks. I already did some stuff using JNI but thought there might be something more, say, comfortable. Jun 25 08:36:37 you can also google single methods/functions when you need them - they're often fairly self contained and copy-able Jun 25 08:36:47 yeah, that's what I meant - keep whole DSP code in C and then just invoke it on high-level with input and/or output Jun 25 08:37:03 MIght Jun 25 08:37:16 freiform, I haven't been able to find any non-GPL licensed DSP libs for Android Jun 25 08:37:28 freiform: check this: http://marf.sourceforge.net/ Jun 25 08:37:28 also, Dalvik is terribly slow for computation so C implementation is almost a must Jun 25 08:37:33 be a good idea. There should be quite some implemetations in c/c++ here alre4ady. Jun 25 08:37:53 Hello guys, what's the best way to have separators in a listview. I want to categorize my list based on date. A link, or a hint where to look at would be nice. Jun 25 08:38:05 Xabster: stumbled over marf yesterday, looks interesting. Jun 25 08:38:51 Xabster, java me is history, isnt it? Jun 25 08:38:57 very Jun 25 08:38:59 Mavrik, writing code in C/C++ doesn't necessary means it runs faster. It depends how well written the code is ;-) Jun 25 08:39:34 Number5, for numerical computation in case of Android Dalviks you have practically 0 chance of getting high tight looped code. Jun 25 08:39:41 we're not talking about general case here. Jun 25 08:39:55 *fast tight looped code, Jun 25 08:40:19 Number5, btw, what do you mean separators? headers with days? Jun 25 08:41:09 Number5, if that's so, this has been by far the most elegant way of making them: https://github.com/emilsjolander/StickyListHeaders Jun 25 08:41:13 (for me) Jun 25 08:41:13 Mavrik, even than, if you don't know how to write efficient code for DSP kind of purposes, you can still end up slow, because the code is bad. (I don't say you're a bad coder). Jun 25 08:42:46 Mavrik, thnx, but is there an Android native solution? I'm already using a listview, and my own listadapter... Jun 25 08:42:59 no, there isn't Jun 25 08:43:11 Mavrik, ok, thnx Jun 25 08:43:11 and if you actually check out those docs you see it won't interefere with your listview or your adapter Jun 25 08:43:14 since it's an interface. Jun 25 08:43:31 Mavrik, ok thnx, I'll give it a chance ;-) Jun 25 08:43:31 you just have to implement 2 more methods in your custom adapter to generate the headers. Jun 25 08:43:48 thank you Mavrik Jun 25 08:52:12 has anyone had success with the new build system and referencing library projects? Jun 25 08:55:42 Mavrik, Xabster, have you experience with one of the existing PureData interfaces for Android? Jun 25 08:58:40 hello guys/girsl, I am trying to connect to a specific network and get a status whether I can connect or the try has failed, how can I do that ? Jun 25 08:59:53 Concerning the difference between Parcel.writeParcelableArray and Parcel.writeTypedArray, shouldn't the documentation say "homogenous array" forthe writeTypedArray? http://developer.android.com/reference/android/os/Parcel.html#writeTypedArray%28T[],%20int%29 I thought that was the main difference between these two methods. Jun 25 08:59:54 freiform: no Jun 25 09:00:48 at startup, I need to go out and fetch some JSON data, fill in objects of 3 types (classes) and then populate the DB with these objects Jun 25 09:01:03 for now I am able to do with with an AT, for 1 type Jun 25 09:01:27 I return the array of that X type from doInBackground and handle it in onPostExecute; but how do I do this with 3 types (3 object arrays) Jun 25 09:08:56 Vector maybe? Jun 25 09:09:03 of....type Object? Jun 25 09:11:16 Sicp, an Objec that contains the values you want Jun 25 09:11:37 what Jun 25 09:11:43 not what I am asking for Jun 25 09:12:30 http://pastie.org/8078003 Jun 25 09:16:28 iam in a class that extends Activity, I cannot write 'context' in Intent updateIntent = new Intent(); updateIntent.setClass(context, TheService.class); But I was in a class that extened BroadCastReciever . why? Jun 25 09:17:10 Activity is a Context where as a receiver isn't Jun 25 09:17:29 but does receive a context as a paramerter to onReceive Jun 25 09:17:44 new Intent(this, TheService.class) will work Jun 25 09:18:08 i use Shell commander. How i set 777 permission? Jun 25 09:18:28 alex_PP, hm Jun 25 09:18:58 alex_PP, should i replace context with this or getBaseContext() would also work? Jun 25 09:19:33 this would be best in this case, i think Jun 25 09:19:35 alex_PP, should i replace "context" with "this" or "getBaseContext()" would also work? Jun 25 09:19:47 alex_PP, best? which one? Jun 25 09:19:59 this Jun 25 09:20:04 oh:) Jun 25 09:20:15 can one add a dynamic fragment to a ViewPager from received JSON data? Jun 25 09:20:55 alex_PP, updateIntent.setClass(this, TheService.class); is not working Jun 25 09:21:01 SO's answers seem to contradict each other Jun 25 09:21:05 belgianguy: not sure a JSON data contains or can contain a fragment ;) Jun 25 09:21:31 not working? Jun 25 09:21:33 StingRay_: not data, but template paremeters or something Jun 25 09:21:53 or would that require dynamic layout setting, which is impossible? Jun 25 09:21:54 belgianguy: is your question, can I dynamically add/remove pages in a ViewPager ? Jun 25 09:22:17 StingRay_: the JSON part is equally important Jun 25 09:22:19 How i get all permission to my shell? Jun 25 09:22:39 but totally irrelevant to the question Jun 25 09:22:44 honvai, #android-root Jun 25 09:22:45 :) Jun 25 09:22:59 StingRay_: how so? Jun 25 09:23:24 StingRay_: SO recommended the getChildFragmentManager() for the first part Jun 25 09:23:33 erm, viewPager, fragment, know nothing about JSON data and have nothing to do with getting and dealing with Jun 25 09:23:42 so totally irrelevant Jun 25 09:23:56 can you add and remove content and pages ? yeah Jun 25 09:24:04 can you do that based of X, yeah Jun 25 09:24:25 so in short, 'yes' ? :) Jun 25 09:24:32 course Jun 25 09:24:39 http://developer.android.com/reference/android/support/v4/view/ViewPager.html Jun 25 09:24:41 alex_PP, ya, not working, red cross Jun 25 09:24:43 look at the class doc Jun 25 09:24:50 StingRay_: ah great Jun 25 09:25:28 can force it or do it with the adapter just as you would any data Jun 25 09:25:54 always break your questions down into component parts Jun 25 09:26:14 the odds of google having and answer, or in this case the offical docs, becomes very great indeed Jun 25 09:26:23 Obilan say Type: su Jun 25 09:26:40 Could somone tell me if there is any difference between how Webview processes javascript on 4.0.1 and 4.2? Jun 25 09:26:52 Quest, what's the error? hover over the red cross Jun 25 09:26:53 alex_PP, only getBaseContext() works in replacement of "context" Jun 25 09:27:02 alex_PP, ok. on sec Jun 25 09:27:53 StingRay_: yeah, but SO has some hits and misses as well Jun 25 09:27:59 alex_PP, the method setClass(Context, Class) in the type Intent is not applicable for the arguments (new View.OnClickListener(){}, Class) updateIntent.setClass(this, TheService.class); Jun 25 09:28:39 what could cause that my webview app autoplays video on my phone (4.1.2) and fails to autoplay on tablet (4.2)??? Jun 25 09:28:42 ok, add the class name of your activity before this Jun 25 09:28:48 so MyActivity.this Jun 25 09:29:05 this without the activity name references the OnClickListener Jun 25 09:29:07 vedtam_, there's differences between WebViews not only in Android version, but also in manufacturer firmwares Jun 25 09:29:17 since they run different webkits Jun 25 09:29:50 aham Jun 25 09:29:54 but! Jun 25 09:30:27 alex_PP, hm works fine too. why not just use getBaseClass():? Jun 25 09:30:44 alex_PP, myclass.this works fine too Jun 25 09:30:47 the webpage loaded in webview where the video fails to autoplay, works just fine on the same device inside the default web browser Jun 25 09:30:54 Contexts are a bit special Jun 25 09:31:34 with startservice, i don't _think_ it matters, but for startactivity it can complain if you use the wrong one Jun 25 09:31:55 so my javascript (wich triggers autoplay) works ewerywhere, it fails only in webview (only on tablet) Jun 25 09:32:24 alex_PP, hm. k Jun 25 09:33:42 I need to find a solution, I would gladly PayPal someone for his help. Jun 25 09:33:54 My Android Studio will not allow me to import the classes from my actionbarsherlock library project, however gradle has no problem compiling the project. Has anyone else faced a similar issue? Jun 25 09:35:50 how do i add facebook sdk to my android studio project? Jun 25 09:36:49 tote: Eclipse, AS or Gradle? Jun 25 09:37:50 kjeldahl: gradle project in AS Jun 25 09:37:55 I need to find a solution, I would gladly PayPal someone for his help. Jun 25 09:38:25 vedtam_: freelancer.com Jun 25 09:39:23 I have to try. I thought it would be no match for developers here. I am almost there...just needed a litle bit of help Jun 25 09:39:43 tote: 1. put the sdk in your project root (./facebook-android-sdk-3.0.1 or similar) Jun 25 09:40:33 tote: 2. copy the build.gradle file into the root of the facebook sdk from here: http://pastebin.com/vMUrx5X1 Jun 25 09:41:22 tote: 3. not sure if this is needed, but in my project root, I have a settings.gradle with one line: "include ':TournmanApplication', ':facebook-android-sdk-3.0.1' Jun 25 09:41:43 tote: Replace TournmanApplication with your own app of course. Jun 25 09:42:13 tote: 4. in the build.gradle of your app, put this into dependencies: compile project(':facebook-android-sdk-3.0.1') Jun 25 09:42:31 that should be it basically Jun 25 09:43:03 You need to update the gradle version in the files, and sdk versions of course. Jun 25 09:43:22 kjeldahl: thanks, will try it :) Jun 25 09:54:39 hi, i have a ListView problem Jun 25 09:55:20 i have a ListView with an adapter that does some stuff in bindView Jun 25 09:56:19 in particular, it sets up some delayed binding of data that needs asynchronous loading Jun 25 09:58:00 this gives various unexpected behaviors, though, with items being updated incorrectly, or not updated when they should be Jun 25 09:58:20 "when" Jun 25 09:59:08 I debugged the problem far enough to figure out that ListView.measureHeightOfChildren() seems to be the culprit Jun 25 10:01:34 some background: basically, ListView.makeAndAddView is usually the canonical point where item views are created Jun 25 10:02:20 it gets called during layout, and in turns calls obtainView(), which invokes the adapter appropriately Jun 25 10:02:34 that's all good and well and expected Jun 25 10:03:55 however, during onMeasure(), ListView.measureHeightOfChildren() also calls obtainView(), on temporary scrap views, just for size calculation Jun 25 10:04:40 this has the side effect of causing the throw-away views to be bound using bindView(), too Jun 25 10:04:51 which is probably not ideal, in general Jun 25 10:05:56 but is specifically a problem if bindView actually does anything other than just doing some immediate view updates, each time it's called Jun 25 10:07:06 I have async loading on my listViews, data/images etc Jun 25 10:07:08 all fine Jun 25 10:07:44 on both cursor and base adapters Jun 25 10:07:46 so every time my ListView displays, every item is bound 3 times: first in onMeasure -> ListView.measureHeightOfChildren Jun 25 10:08:25 then in onLayout -> ListView.makeAndAddView() Jun 25 10:08:59 then again in measureHeightOfChildren(), depending on what the UI is doing Jun 25 10:10:04 only the bindView() calls underneath ListView.makeAndAddView() are actually meaningful, though Jun 25 10:10:46 the others are useless (the views are bound and immediately discarded again) Jun 25 10:10:57 or worse Jun 25 10:11:36 StingRay_: are you doing the async loading purely with the loader backing the list adapter itself? Jun 25 10:12:15 indeed Jun 25 10:12:17 images Jun 25 10:12:19 that works fire, when the adapter's bindView() itself does not do any async or stateful work Jun 25 10:12:22 fine, veen Jun 25 10:12:26 even Jun 25 10:13:47 my problem is that i'm already loading a data set for the listview asynchronously (using CursorLoader), and based on the loaded data for each item, i want to load some more stuff Jun 25 10:14:03 e.g. images, that display with a placeholder until they complete Jun 25 10:15:39 same here Jun 25 10:15:49 well, a little loading drawable Jun 25 10:15:52 and animation Jun 25 10:17:10 my previous approach was AsyncTask based Jun 25 10:17:36 spawning an AsyncTask for each view that needs loading Jun 25 10:18:38 that had performance problems, though, and random glitches Jun 25 10:19:23 now that i understand this better, what was happening is that each item would actually spawn 2 or 3 loading tasks Jun 25 10:19:32 for the scrap view and the real view Jun 25 10:20:12 well I just have 1 loader, que/thread, weakrefs Jun 25 10:20:28 and if the scrap view happens to get recycled for another item, it's a race condition between the correct or incorrect task loading first Jun 25 10:20:29 so it dont waste anything even if it does load something thats not needed currently Jun 25 10:20:58 how do you avoid the recycling problem, though? Jun 25 10:21:13 i also moved to a loader-based implementation, now Jun 25 10:21:46 which is great otherwise, but it still has the same problem with bindView() being called on scrap views during measure Jun 25 10:22:07 recycling problem ? Jun 25 10:23:01 the one i described above: the adapter's bindView() gets transiently called on random scrap views, before and after the "real" bindView() Jun 25 10:23:11 I dont have it cancel loading, but I have it cancel setting Jun 25 10:23:51 running list of active imageViews + assiciated data Jun 25 10:24:44 check for tag on imageView before setting data Jun 25 10:24:45 i tried something like that too, both with with a recyclelistener, and by keeping track of previous view assignments for a loader Jun 25 10:25:01 is it the same ? no, well store weakref Jun 25 10:26:28 that solved the problem with the early bad bindView() calls, for me, but then the later bindView() calls still break things (to a lesser extend, but still) Jun 25 10:26:36 extent, even Jun 25 10:27:01 break in what way ? Jun 25 10:27:53 in other words, the checks make sure that the real bindView() calls completely supersede the earlier "fake" ones Jun 25 10:28:52 ah see I dont bother with that Jun 25 10:28:59 thats kinda fighting it Jun 25 10:30:38 the problem is then that the later fake bindViews will still interfere, overwriting the good bindView calls Jun 25 10:30:49 so it's a bit of a conundrum Jun 25 10:30:53 no Jun 25 10:30:57 why would they ? Jun 25 10:31:16 if you have clear association between view and data Jun 25 10:32:09 i do: the loader stores a reference to the target view Jun 25 10:32:59 and how do you know "later/now/whenever" that the view there is assiciated with data X Jun 25 10:33:12 due to recycling etc/fake measure Jun 25 10:33:45 the way I did it was view centric Jun 25 10:33:49 not data centric Jun 25 10:33:54 i have a fragment in charge of the loading, which maintains all the loaders and views references Jun 25 10:34:13 no I mean you have image_a Jun 25 10:34:26 and it's called to load data_a Jun 25 10:34:42 but then a call to load image_a on data_b Jun 25 10:34:57 what do you do to make sure image_a is linked with data_b Jun 25 10:35:05 and not data_a Jun 25 10:35:27 a reference instance wont work will it Jun 25 10:35:35 as the same reference is used over and over Jun 25 10:35:55 btw I'm not a programmer, and I'm just dicussing what I did Jun 25 10:35:58 just so you know :) Jun 25 10:36:12 that's what the (non-UI) fragment tracks: the bindView() implementation just basically asks the fragment "bind this view with this source of data" Jun 25 10:36:29 and what is this view ? Jun 25 10:36:44 as in whats do you use, for "this view" Jun 25 10:36:47 StingRay_: you do realise that at some point you're going to have to give up calling yourself "not a programmer" on a walks-like-a-duck basis, right? :) Jun 25 10:37:21 Leeds: when I surpise my ability to make a t-rex sh*t a chicken in cg with equal or greater programming skillz yes Jun 25 10:37:25 the fragment checks if there's already a loader initialized for the target view and data source Jun 25 10:37:57 and initializes a new one, if necessary Jun 25 10:38:14 pjdelport: see I dont do that Jun 25 10:38:16 it also checks if there's a previous loader associated with the view, and deactivates it if necessary Jun 25 10:38:25 I take the view with some reference to data it needs Jun 25 10:38:36 then I just deal with that view that is requested Jun 25 10:38:43 get data ident from tag Jun 25 10:38:48 get data Jun 25 10:39:14 so only thing in bindView/getView etc is setting a tag, and passing it of to a loader Jun 25 10:39:34 on setting the data in the loader, check the tag, is it the same as the loader reference Jun 25 10:39:45 if yes, set and add weak reference to cache Jun 25 10:39:54 if not add weak ref to cache Jun 25 10:39:56 :) Jun 25 10:39:58 hmm Jun 25 10:40:12 that way it's view centric Jun 25 10:40:17 which a listView is really Jun 25 10:40:45 I mean that tag can be an index to complext data if you want Jun 25 10:41:20 i can't really do something like that in my case, though Jun 25 10:41:30 really? Jun 25 10:42:04 i have compound bindings: there's a bunch of stuff that might get set from the loaded data Jun 25 10:42:45 but if the view dont match task id etc, dont do it/cancel or dont set Jun 25 10:43:27 so i might set 3 or 4 different TextViews/widgets/etc. of the list item, based on the additional cursor or whatever loaded for that item Jun 25 10:44:11 is that not irrelevant Jun 25 10:44:27 if you have view centric association Jun 25 10:45:01 if view thats has your tag/data/whatever is there, set, if not, cache Jun 25 10:46:27 I have some weird NPE reports. The NPE is caused by a method call, that is called from onSensorChanged() in a service. Jun 25 10:46:47 any Droid Pro users? Jun 25 10:47:21 How is it possible that my listener code is executed, but the service is obviously not fully initialised? Jun 25 10:49:03 StingRay_: i think the complication is that i'm actually relying on the loader framework to drive the data Jun 25 10:50:09 it's a different style than just having a view queue; the loaders are independ, and stay associated with the target view while it's visible Jun 25 10:50:18 so they deliver the initial data and monitor for updates Jun 25 10:50:52 s/independ/independent/ Jun 25 10:51:07 yeah see I aint smart enought to do something like that Jun 25 10:51:17 I need simple stuff that works :) Jun 25 10:51:21 hello guys/girsl, I am trying to connect to a specific network and get a status whether I can connect or the try has failed, how can I do that ? Jun 25 10:53:07 Hi all. Jun 25 10:54:19 are you allowed to email users who bought / canceled your app through Google Checkout? Jun 25 10:54:35 i have a personal question for someone who canceled Jun 25 10:55:13 I know I wouldn't want an email from some1 I cancelled or purchased from Jun 25 10:55:20 ^ Jun 25 10:55:45 i would like to know how he/she would make it better / reason why he/she cancelled Jun 25 10:55:51 rev Jun 25 10:55:53 oops Jun 25 10:56:01 rved: thats normally easy to work out Jun 25 10:56:08 how? Jun 25 10:56:47 well it comes down to, didn't work, didn't comply with needs, worked but was a little crap Jun 25 10:57:00 not sure anything sits outside that, or not much Jun 25 10:57:04 exactly so i need to knwo Jun 25 10:57:17 if it didn't work, then i could fix it Jun 25 10:57:22 reviews should tell you Jun 25 10:57:30 review are good 4,47/5 Jun 25 10:57:37 (out of 7) Jun 25 10:57:42 but little too tell Jun 25 10:57:46 what app ? Jun 25 10:58:07 https://play.google.com/store/apps/details?id=com.rved.brightnesspro Jun 25 10:58:22 oh then in your case, there are full featured free alternatives Jun 25 10:58:33 yes i know Jun 25 10:58:42 but still, i would like to know from the buyers :D Jun 25 10:58:54 what are normal cancel percentages? Jun 25 11:00:13 I have 2 layouts that both are based on a RelativeLayout and both roots are defined to be 64dp in height Jun 25 11:00:29 however, in runtime, they are in different sizes Jun 25 11:00:33 WTF?! Jun 25 11:00:50 thepoosh: pastebin ? Jun 25 11:00:56 hmmm Jun 25 11:00:58 2 seconds Jun 25 11:01:35 StingRay_: http://pastie.org/private/hjytxzinmnhxmebtz8uj3w Jun 25 11:01:37 layout 1 Jun 25 11:01:38 hmm Jun 25 11:01:57 layout 2 Jun 25 11:01:58 http://pastie.org/private/6fkikvrgafi1eun5eq0byq Jun 25 11:02:14 thepoosh: well that would now depend on what the parent is and does Jun 25 11:02:23 so basically, it's a potentially many-to-one association between item views and data Jun 25 11:02:30 ok Jun 25 11:02:36 but I defined the size Jun 25 11:02:41 why would it change?! Jun 25 11:03:01 cause of the parent Jun 25 11:03:05 pjdelport: it's a custom view that's inflated to a listview Jun 25 11:03:13 the layoutparams i dont think are guarenteed Jun 25 11:03:17 StingRay_: can you explain why? Jun 25 11:03:20 depending on how and where it's used Jun 25 11:03:51 where is it used / loaded / inflated ? Jun 25 11:04:09 well, both are inflated into plain listviews Jun 25 11:04:18 and are inflated from within an adapter Jun 25 11:04:32 in your inflate do you pass the parent view for consideration ? Jun 25 11:04:51 taking a look Jun 25 11:04:53 2 sec Jun 25 11:05:33 one has a parent passed to the inflater and the other has null Jun 25 11:05:53 but both have false for the attachToRoot Jun 25 11:06:02 there ya go Jun 25 11:06:06 I think that will be it Jun 25 11:06:17 seriuosly?! Jun 25 11:06:22 that is messed up Jun 25 11:06:25 not sure, try it Jun 25 11:06:31 thepoosh: oh, sorry, i was talking about my own earlier problem Jun 25 11:06:36 cause it needs something to consider Jun 25 11:06:40 oh Jun 25 11:06:50 your layoutParams are not for that root Relative Jun 25 11:07:01 they are for the parent > root relative Jun 25 11:07:11 on how to place/space/size it Jun 25 11:07:15 I think Jun 25 11:07:18 StingRay_: it worked! Jun 25 11:07:20 thanks Jun 25 11:07:22 :) Jun 25 11:08:07 always think of layoutParams as how this view is going to place/space/size with parent Jun 25 11:08:20 if no parent, tis kinda irrelevant Jun 25 11:08:59 hi, I want a button to go green when clicked and stay green. This I manage to do in the source via the onClick method specified in the xml. What I dont get is why the button first goes blue when I have not background specification, nor any theme specified. Jun 25 11:09:35 Unknown0BC: does it have a background or style set ? Jun 25 11:11:54 StingRay_, in the xml the background is not specified. Jun 25 11:13:06 style ? Jun 25 11:13:07 at for style I commented this out: Jun 25 11:13:32 as* for style Jun 25 11:13:47 well it may still use the default stateList Jun 25 11:13:57 unless you set one as bg Jun 25 11:14:02 or it is set from a style Jun 25 11:14:23 Unknown0BC: use an explicit solid background Jun 25 11:14:34 it's probably using the default stateful background, yeah Jun 25 11:15:04 pjdelport, yeah that should work. Jun 25 11:16:31 using http://developer.android.com/reference/android/net/wifi/WifiManager.html Jun 25 11:16:43 hello guys/girsl, I am trying to connect to a specific network and get a status whether I can connect or the try has failed, how can I do that ? Jun 25 11:16:48 I want to powermanager.gotosleep() but while adding it says it can only be added by system services Jun 25 11:23:29 lolz . http://stackoverflow.com/questions/15726352/neither-user-10036-nor-current-process-has-android-permission-device-power Jun 25 11:25:28 huh, why would you want to call that anyway Jun 25 11:25:42 that would fuck up all the other apps user is running on the phone… yours is not the only service running you know. Jun 25 11:26:36 Mavrik, just to check my app works in sleep mode or not :) Jun 25 11:26:50 Mavrik, no one can add that permission unless its his own firmware and device Jun 25 11:27:13 Mavrik, i would just hit the power button to get to sleep Jun 25 11:28:06 Mavrik, by the way, making the phone to go sleep in the usual norm when the user presses the power key. Jun 25 11:28:33 nothing is messup i gues Jun 25 11:31:05 you guess wrong. that call kills other apps wakelocks, which will stop services which expect to have wakelocks active. Jun 25 11:31:45 the call or the power button? Jun 25 11:31:55 the call of pm.gotosleep or the power button? Jun 25 11:35:25 I have a service class and a booter class that sets alarms on that service class, where should I acquir the PARTIAL_WAKE_LOCK? I mean whats a good idea? Jun 25 11:35:53 hello. Is there any marketplace for android source code? I'm searching for a couple of things that I'm sure have already been crafted and I'm willing to buy some source code Jun 25 11:37:52 dwery: google Jun 25 11:38:15 Quest: when you need it :) Jun 25 11:39:07 StingRay_: already tried, even found a few links, but nothing comprehensive Jun 25 11:39:08 "AndroidRuntime: FATAL EXCEPTOION: main" ...this line is like the "We should just stay friends" of Java Jun 25 11:39:19 StingRay_, your diplomacy is matchless :) Jun 25 11:39:23 dwery: keep searching Jun 25 11:39:45 gotta love those helpful people ;) Jun 25 11:40:10 dwery: dont serach for something retarded though Jun 25 11:40:19 like "where can I buy source code" lol Jun 25 11:41:17 StingRay_, iam using RTC_WAKEUP for alarm manager but i dont want to screen go on when the alarm goes off Jun 25 11:41:24 I can search for a log of those retarded search queries for your utmost pleasure, if you want ;) Jun 25 11:43:02 Quest: cant help you there, I've never not wanted the screen on when setting off one of my alarms Jun 25 11:43:12 well one of my alarm events Jun 25 11:43:44 StingRay_, hm. i just needed a PARTIAL WAKE LOCK think similar Jun 25 11:43:47 any ways Jun 25 11:43:56 I have a service class and a booter class that sets alarms on that service class, where should I acquir the PARTIAL_WAKE_LOCK? I mean whats a good idea? Jun 25 11:44:11 whever you need it Jun 25 11:44:21 StingRay_, where might you have done it? Jun 25 11:44:31 * Quest is acting diplomatic too :) Jun 25 11:44:41 I'm detecting an slight lack of an ability to make simple decisions Jun 25 11:44:43 :) Jun 25 11:45:01 "code by opinion of others" is not a great way to progress Jun 25 11:45:11 in my experience neways Jun 25 11:45:15 StingRay_, in programming, nothing is simple and everyting has opertunity cost Jun 25 11:45:46 * Quest steps back Jun 25 11:45:47 unless you know beyond a shadow of a doubt that, the person is 100% best,correct,elite, but if you had the abitilty to know that, you would probably already know the answer Jun 25 11:46:05 hm Jun 25 11:53:30 Hey, anyone knows someone at google and can help get rid of a comments troll? Jun 25 11:53:58 viran: can you not reply ? Jun 25 11:55:06 it's not about replying, it really is a troll, troll photo, fake account, one star and this text: "It sucks Your grandmas saggy flapjacks !" Jun 25 11:55:28 oh, cock Jun 25 11:56:03 what app ? Jun 25 11:56:16 https://play.google.com/store/apps/details?id=com.kingcalculator Jun 25 11:56:41 link to comment: https://play.google.com/store/apps/details?id=com.kingcalculator&reviewId=Z3A6QU9xcFRPRnhlcERUYlJVS2dIR0RGVmhJNU9udnUtQTk2akV2QlROZUdsck9PZ3VuUEk2OUlhOGRicXVlYW5XR0k4M0RGdkxWbjZNRjBaR3FZQ0pqTlNV Jun 25 11:57:00 That blows. Jun 25 11:57:04 marked as spam Jun 25 11:57:11 get a few to do that Jun 25 11:57:11 thanks Jun 25 11:57:16 I will comment above it too Jun 25 11:57:16 Me2. Jun 25 11:57:21 with my honest opinion Jun 25 11:57:22 :) Jun 25 11:57:29 thank you both Jun 25 11:57:30 "this sucks dogs balls" Jun 25 11:58:11 Reloading the page shows the comment again; guess it takes a few and/or a while before they pull it. Jun 25 11:58:24 when the answer is bigger than display, you need to resize the text though Jun 25 11:59:12 yeah, it's in the todo list Jun 25 11:59:14 :) Jun 25 12:00:02 commented Jun 25 12:00:20 5 star, should be 4 , but felt generous Jun 25 12:00:25 offset the twat comment Jun 25 12:01:06 find out how many spam hits it needs to be gone Jun 25 12:01:14 maybe we could muster that amount Jun 25 12:01:15 :) Jun 25 12:01:49 thanks :) Jun 25 12:02:20 when i get to work i'll get people to spam that comment Jun 25 12:02:20 your always gonna get a few dicks though Jun 25 12:02:55 anyone who has throw away comments and no justification like that, I would guess they are ignored by most Jun 25 12:03:17 but yeah, would be nice to find out how many spam hits it needs, I put down 3 from diff accounts Jun 25 12:03:35 I dont mind criticism but this guys is just bored and abusive Jun 25 12:03:53 i got 4 people to spam that Jun 25 12:04:01 so a lot i guess Jun 25 12:04:14 I would think maybe, 10-50 ish Jun 25 12:05:33 Hi Jun 25 12:05:53 I'll get a few more later.. thanks for the help, and the comment :) Jun 25 12:06:12 Where can I place files for myself (such as texts and .psd sources) in the workspace so they aren't compiled into .apk? Jun 25 12:06:41 am.. people, does this looks sane? http://pastebin.com/VJmTDeSx specially line 13,20,27,40 ? Jun 25 12:06:52 Specifically, I want to store drawable psd/svg sources somewhere Jun 25 12:07:18 am.. people, does this looks sane? http://pastebin.com/VJmTDeSx specially line 19*,20,27,40 ? Jun 25 12:07:32 Quest: does it work ? Jun 25 12:07:38 if yes, run with it Jun 25 12:07:40 :) Jun 25 12:08:32 come on StingRay_ ...:) it does work. but some working things are stupid if you are inexperienced Jun 25 12:08:58 hey Jun 25 12:09:04 can somebody answer my question? Jun 25 12:09:07 it's simple Jun 25 12:09:07 * Quest gives a coke to StingRay_ to keep him busy. Jun 25 12:09:33 where do I store temp development files in the project? Jun 25 12:09:49 SiPlus, they will be in the project . .psd files are not compiled though. Jun 25 12:10:02 only .class files are Jun 25 12:10:08 .java* Jun 25 12:10:17 I mean, so they aren't added to .apk at all Jun 25 12:10:22 put them in res Jun 25 12:10:24 Not even as resources Jun 25 12:10:32 then where do you want them to be? Jun 25 12:11:04 I could use a folder in a completely different location than my project Jun 25 12:11:20 But I want to keep the files more organized Jun 25 12:11:32 put them besides the project dir Jun 25 12:11:32 res-src? Or that's stupid? Jun 25 12:11:42 hi guys! is there anyone who can actually get anything out of these error messages? --> http://pastebin.com/HQE6vfrZ Jun 25 12:13:21 |0xD34D|, Xabster doc_savage anyone free? Jun 25 12:14:01 hello.. Ive a question. I use MediaStore to receive filepath to all images. After that im sending all the filepathes to an arraylist. The customobject stores several stuff about the file itself. It seems that im getting an outofmemory when there are ~ more then 400 images on the device. Any way to avoid that? Jun 25 12:16:06 will use /misc, I think Jun 25 12:20:28 misterli: Sounds like you're loading the images to memory, not just the paths.. Jun 25 12:22:23 How do I specify a compile dependency on the support-v4 library packed with the SDK in build.gradle? Jun 25 12:22:53 dependencies { compile 'com.android.support:support-v4:13.0.0' Jun 25 12:22:55 } Jun 25 12:23:26 But it must be loaded with the Android SDK Loader thingy ("android" executable). Jun 25 12:23:49 Then it will be recognized by gradle as in a "local repo" of some sorts. Jun 25 12:32:04 hi guys , any idea if ANDORID devices play MP4 (H264 video + AAC AUDIO? ) Jun 25 12:32:59 pagios: They do, worst case with a different player than the stock videoplayer that comes with most devices. Jun 25 12:33:06 pagios, http://developer.android.com/guide/appendix/media-formats.html Jun 25 12:37:07 ok so i have a xlib264 and libfdk_AAC encoded mp4 for some reason not playing on my android (sing samsung note2 latest firmware) Jun 25 12:37:22 pagios: h264 is a veeeery wide thing Jun 25 12:37:38 p_l: what do you mean Jun 25 12:37:45 3GPP defined only a small subset of what is required, same with android media format list Jun 25 12:38:51 pagios: for example, *no* android devices that I know support (with the built-in framework, not extra apps with sw codecs) 10bit h264 Jun 25 12:39:34 you mean h264/aac cannot be played on andorid web browserS? chrome? firefox? Jun 25 12:39:35 a lot of devices (for example, *all* Tegra 2 devices) are incapable of playing lvl5+ h264 Jun 25 12:40:11 pagios: no, I am saying that only a subset of whole spec is supported by default software (which usually depends on capabilities of hw decoder) Jun 25 12:40:24 or rather, there's a "minimal subset" that has to be supported Jun 25 12:40:33 quite possibly your file exceeds that Jun 25 12:40:59 am.. people, does this looks sane? http://pastebin.com/VJmTDeSx specially line 19,20,27,40 ? Jun 25 12:43:06 pagios: Android requires only Baseline Profile support from devices equipped with Market Jun 25 12:44:05 and even with Baseline Profile some files will "fall out" of the scope Jun 25 12:44:23 pagios: what kind of file it is? Jun 25 12:48:04 Hello. can I prevent android from loading a resouce? For example, I have values-en and if the user sets to values-es, it will continue with values-en resources Jun 25 12:49:55 I mean, sets the language to spanish, it will continue to load english resources Jun 25 12:51:16 if you restart it ? Jun 25 12:52:13 yeap. I kill the app, change the device language to spanish, and reopen it Jun 25 13:01:48 Hi guys, i've struggled with this all morning: I keep getting the error "Error inflating class null" in this scenario; http://pastebin.com/2RF6Jm4j ...I've googled and googled for sollutions, but i'm not really sure where the error occurs Jun 25 13:01:50 haskeller: language change is a configuration change. By default, your application will be recreated when this happens. Jun 25 13:01:55 I'm not really sure if there's a question here. Jun 25 13:02:48 frankly, changing the system language sounds like a perfectly reasonable case where you would want to force a restart so that you don't have strings for the wrong language cached, etc. Jun 25 13:03:26 lime: a stacktrace would be swell. Jun 25 13:03:45 what if I want to load resources for a simcard (values-mccXXX), and prevent the loading of other resources for other simcard after that? Jun 25 13:04:17 I don't even understand your question. Jun 25 13:04:22 lov, phone just called.. will post stacktrace in a sec :) Jun 25 13:04:49 p_l: encoding into an mp4 but not working on android tryin now with profile:default Jun 25 13:04:57 haskeller: read through http://developer.android.com/guide/topics/resources/runtime-changes.html before doing anything else, please. Jun 25 13:05:20 pagios: encoding video in general is a complex thing Jun 25 13:05:41 p_l: just needto know what is required Jun 25 13:08:08 lov, i'm quite a noob at all this, but i suspect this is what you were asking for http://pastebin.com/nwmumwTD Jun 25 13:08:27 pagios: i'm trying to get someone more knowledgeable about encoding with x264 on the line Jun 25 13:08:47 (most of the time I use Adobe Media Encoder which has predefined profiles with settings for various platforms) Jun 25 13:08:47 ccol Jun 25 13:11:48 pagios: what are you using for compression? Jun 25 13:12:11 h264 Jun 25 13:12:31 pagios: I mean the software - h.265 is a big bundle of PDFs and dead-tree prints :() Jun 25 13:12:34 *:) Jun 25 13:12:40 Hi. I need to have a tutorial step-by-step about how to use phocketsphynx. this tutorial should start at the first software instalations (instaling eclipse, java, compiler, ...) and end with a running java app using continous voice recognition in android 4.1; I intend to pay for this step-by-step howto; and the howto can be released GPL for everyone. is there anyone interested? please write in private if you think this does not fit this channels Jun 25 13:12:40 topic. thanks in advance Jun 25 13:12:41 *h.264 Jun 25 13:13:07 p_l: libav Jun 25 13:13:23 pagios: your own software, or ffmpeg utility binaries? Jun 25 13:13:31 p_the latter Jun 25 13:21:00 hi Jun 25 13:21:26 what should i do when the app i created runs in my emulator + real phone but client says do not work in his phone? Jun 25 13:21:29 pagios: have you tried encoding with -profile:baseline ? Jun 25 13:22:06 p_l: no such parameter i think Jun 25 13:23:34 help Jun 25 13:24:11 pagios: well, it's included in ffmpeg docs and x264 docs... Jun 25 13:26:10 pagios: also, apparently you might need to force pixel format to be yuv420p Jun 25 13:26:13 p_l: tried -rofile:main Jun 25 13:27:21 pagios: don't use main Jun 25 13:27:27 just in case Jun 25 13:27:54 use baseline, should work on more devices. Samsung tended to run Main pretty fine, but better start with "working" before optimizing :) Jun 25 13:28:01 lime: look at the "caused by"s Jun 25 13:29:07 lime: hint: what's on line 17 in your file (line 19 in the pastebin you pasted) Jun 25 13:29:20 lime: double hint: class names are Case Sensitive Jun 25 13:37:36 are there any decent resistive touchscreens out nowadays? Jun 25 13:37:52 because I want to operate my tablet with some lab gloves on Jun 25 13:38:09 but I don't think that'll work with a capacitive screen, right? Jun 25 13:38:54 anyone familiar with NEON ? to learn, I'm doing simple stuff, in this case applying a channel mask (eg 0xFFFF0000 to get only red back). Works when using 64-bit, but doesn't when using 128-bit. What am I doing wrong here? http://pastebin.com/qYcae8Kq Jun 25 13:40:01 Is sending an email from an android app without user interaction difficult ? Jun 25 13:43:20 I have a Message class in which i have a constructor Message(boolean what,Bitmap image) , i am setting getter and setter as setMessage and getMessage , i need another constructor Message(boolean what,boolean ok,String text) how to set Getter and setter for this ? I am new in android-java Jun 25 13:44:17 android_help: seriously ? these are progressive questions Jun 25 13:44:38 yesterday it was that minus the bitmap Jun 25 13:45:25 I would maybe do some java tutorials Jun 25 13:45:29 if I were you Jun 25 13:47:15 erm, does anyone know if there are covers for tablets that enable usage with gloves on? Jun 25 13:47:43 (polyester gloves) or how do these covers pass on the touch points? Jun 25 13:48:18 touch is a strong word, call them proximity conduction points and then it's easier to deal with Jun 25 13:48:22 you dont need to touch Jun 25 13:48:36 you need to alter the capacative field I think Jun 25 13:48:45 so becomes about distance Jun 25 13:48:51 but this is wrong channel neways Jun 25 13:48:52 :) Jun 25 13:49:23 StingRay_: well, it's dev related, as I can't dev it if it doesn't work with gloves, but where do you suggest I askN Jun 25 13:49:25 ?* Jun 25 13:49:40 nothing to do with dev Jun 25 13:49:53 you dont dev towards something with gloved Jun 25 13:49:57 gloves :) Jun 25 13:50:13 tis about touch pannel tech Jun 25 13:50:24 no, but it's in the requirements sheet, so I'll have to take them into account, but I'll look elsewhere :) Jun 25 13:50:35 well it's distance Jun 25 13:50:37 like I said Jun 25 13:50:47 p_l: so :) Jun 25 13:50:48 belgianguy: there are devices that have capacitive touchscreens with enough sensing range that they work *through* gloves Jun 25 13:51:02 and if the distance of the gloves and or material, prevent the field from changing on the pannel Jun 25 13:51:03 0.5cm and so Jun 25 13:51:44 I intend to pay for getting a step-by-step tutorial about android development with pocketsphynx. anyone interested in that? Jun 25 13:51:46 p_l: ah, thanks, that'll get me somewhere Jun 25 13:51:50 p_l: fk load less than that Jun 25 13:52:15 StingRay_: there's one or two phones with that kind of range, but at least one is sold only in Japan Jun 25 13:52:24 na Jun 25 13:52:33 I'd like to find a pannel that does that Jun 25 13:52:34 but the touchscreens exist, and for custom devices can be bought :) Jun 25 13:52:43 normally your on about 0.18cm Jun 25 13:52:54 p_l: well I'm looking for a 10" tablet that has it, but I'll do some tests Jun 25 13:53:11 hi, in the spinner, when i set the spinnerMode to dialogue, it does not wrap the line although i have put "\n" in the string array. Jun 25 13:53:19 StingRay_: yes, that's why the maker actually marketed that as rare feature Jun 25 13:53:25 so what should i do to show long lines? Jun 25 13:54:07 StingRay_: „he Sony Xperia sola has a "Floating Touch Technology" which allows phone to react when the user's hand is near the screen (Up to 20mm). In Android 2.3 floating touch could only be used with browser, but an upgrade to Android 4.0.4 has brought the ability to use this feature for entire interface (so called "glove mode" ).The Glove mode allows users to operate the device using hand gloves of any material.” Jun 25 13:54:56 Lumia 920 apparently also has that kind of digitizer Jun 25 13:55:01 misterli: Sounds like you're loading the images to memory, not just the paths.. Jun 25 13:55:12 adding File f = new File() is just a pointer to the file aswell, isnt it? Jun 25 13:56:11 new File() is just an empty file object, if you load a bitmap into it then no :) Jun 25 13:56:20 it's huge Jun 25 13:57:05 what is the resolution rate of Android 4 on a 16:9 screen? Jun 25 13:57:20 rate ? Jun 25 13:57:35 to me rate = change over time Jun 25 13:57:43 ratio Jun 25 13:57:44 and the res doesn't change over time Jun 25 13:57:53 19:9 Jun 25 13:57:55 resolution ratio of Android 4 on 16:9 screen Jun 25 13:57:55 oops Jun 25 13:58:00 16:9 like you said Jun 25 13:58:05 no it is not Jun 25 13:58:05 100% sure that Vector.add(new HttpStruct(..., new File(file), ...)) adds the data of the file to the Vector and not just the Fileinformations? Jun 25 13:58:16 on a 16:9 tablet it is Jun 25 13:58:17 because it has that stupid software buttons Jun 25 13:58:19 like you said Jun 25 13:58:27 HttpStruct is a custom Struct which stores tons of data for the Queue Jun 25 13:58:37 oh so not the screen Jun 25 13:58:42 the hardware is 16:9 and videos can use that resolution, but normal apps cannot hide the software buttons Jun 25 13:59:06 any app can run fullscreen, just not with touch interaction, then it all comes back Jun 25 13:59:12 i think Jun 25 13:59:24 What does HttpStruct do with the file? Jun 25 13:59:53 my app has touch Jun 25 14:00:10 how I figure the resolution I should use? Jun 25 14:00:16 The "pointer" to a file is it's filename (technically, it is not, but disregard that). If you want to store references to a file, you store their names/uris. Jun 25 14:00:52 gotta go, laters! Jun 25 14:04:05 kjeldahl. Converting, deleting, grabbing filesize and fileinformations, etc Jun 25 14:04:33 i may use Strings, get the fileinformations as soon as i need them, .... but i thought its just a Jun 25 14:04:46 *File pointer and not storing the whole file in the memory.. Jun 25 14:07:13 what's the worst that can happen if a 3rd party has access to our prod keystore file and password used to sign apks? Jun 25 14:08:07 dont let that happen Jun 25 14:08:10 :) Jun 25 14:08:15 aleb: they release apps as you that start to send out spam? Or download peoples contacts, or ... Jun 25 14:09:21 but can they release apps as me? only if they upload them to their own server, not in Google Play.. Jun 25 14:09:44 if they manage to log in to your account, yes they can Jun 25 14:11:39 Anyone who has integrated google play game services to their game? I was wondering that do I have to do something to get the "Game features leaderboards and achievements" text to the games google play page? Jun 25 14:20:46 lov, thank you so much for that clarification (and sorry for the late response, just got company) Jun 25 14:24:26 I wish someone that worked on the androidbuild tools hung out here Jun 25 14:24:52 * pfn wants to understand whether he's trying to use androidbuilder incorrectly Jun 25 14:26:34 can anyone tell me if he is able to paly this mp4 on his android? http://video-js.zencoder.com/oceans-clip.mp4 Jun 25 14:26:48 if yes, what model Jun 25 14:27:50 okay. figured it out. new File() does NOT store the file in memory. It stores just fileinformations. Jun 25 14:32:17 of course Jun 25 14:35:55 * pfn is so tempted to clone his aosp repo checkout onto his ssd Jun 25 14:37:12 just to make it crazy fast to dig through code and search with repo grep Jun 25 14:43:43 If I install android studio, am I need to install android SDK or when I install Android Studio with that automatically installing and android sdk ? Jun 25 14:44:19 what do the install instructions say ? Jun 25 14:44:31 they are probably correct ;) Jun 25 15:42:34 Hello. I started looking into android app development and followed the getting started guide on the official page of the sdk. However, even after following the steps exactly I get this error: Couldn't resolve resource @string/app_name ; I assume the path @string is not defined or sth but dont really know. Any ideas? Jun 25 15:43:53 you need to add string resource to some xml in res/values/ Jun 25 15:48:17 i added the strings in strings.xml Jun 25 15:48:29 and app_name was already in there Jun 25 15:48:39 still get that error though Jun 25 15:49:33 I don't know if it applies to the new Android Studio stuff - and I don't know what you're using - but clean clean clean Jun 25 15:49:58 whenever you have an error to do with resources... and you'll have lots... clean your project Jun 25 15:50:34 im using the adt eclipse bundle thing Jun 25 15:50:53 and there isnt really anything to clean up, im 5 minutes into the tutorial Jun 25 15:51:11 still, clean Jun 25 15:51:38 not clean up - 'clean' is an action you can take on a project, like 'build'... I don't use eclipse, so I can't tell you exactly where it is Jun 25 15:51:44 Leeds, with IDEA 12 all those problems disappeared for me at least :) Jun 25 15:52:31 with latest AS my troubles have doubled Jun 25 15:52:33 :) Jun 25 15:52:50 Flaiker_, what's your import look like for the R class? Jun 25 15:52:52 ok i pressed clean Jun 25 15:52:54 I've been convinced not to try AS :p Jun 25 15:53:59 i think this might be the actual problem: [2013-06-25 17:52:14 - App2] D:\Documents\Eclipse workspace\App2\res\values\strings.xml:1: error: Error parsing XML: not well-formed (invalid token) Jun 25 15:54:17 aayep Jun 25 15:54:19 That would definitely be the problem. Jun 25 15:54:41 Guys, I have a philosophical question Jun 25 15:55:04 is it best to design your UI (like PSDs) for a minimum spec device like a Nexus S or some small mdpi screen? Jun 25 15:55:13 rather than xhdpi Galaxy Nexus, etc Jun 25 15:56:17 matt_j: you really design with all in mind Jun 25 15:56:25 not just a single one Jun 25 15:56:40 account for, not limited by Jun 25 15:56:59 matt_j: obviously Android is set up to scale to all sizes, but we usually use the Galaxy S3 as a target size because we're generally going after newer (bigger screen) devices Jun 25 15:57:33 sometimes things have to be tweaked after we look at it on smaller screens, like the Nexus S Jun 25 15:57:44 how to load an existing app into my app? Jun 25 15:57:46 Or on the insane screen Jun 25 15:57:47 N10 Jun 25 15:57:49 lol Jun 25 15:57:49 Yeah, but so far, at least here, I've found that things get squished and TextViews run out of space Jun 25 15:57:52 Dat density Jun 25 15:58:18 we allow things to wrap to 2 lines - it works, just doesn't look great Jun 25 15:58:32 we have a free app that supports e-commerce Jun 25 15:58:36 one thing that came up was price values Jun 25 15:58:45 designs look nice if we have to display a small value, Jun 25 15:59:02 but if the user makes an ecommerce order of like $1234.56, it gets cut off or ellipsized Jun 25 15:59:57 we give the price a lot of space in layouts and then use an auto-resizing text view for prices more than 4 figures Jun 25 15:59:57 maybe it's the designer's fault for not accounting for large values Jun 25 16:00:12 the thign is, there's not built in autoresizing text views in android, right? Jun 25 16:00:16 correct Jun 25 16:00:21 I had to use a class from StackOverflow and it did NOT work properly Jun 25 16:00:23 but there are lots of examples around Jun 25 16:00:25 plus it ends up looking like crap Jun 25 16:01:09 philosophical questions, no doubt Jun 25 16:01:32 yeah, we have a minimum built in, so at most it goes down to 60% of the original size Jun 25 16:01:32 if it were me I'd probably design for 480x800 hdpi since it's like a worst case Jun 25 16:04:29 question Jun 25 16:04:54 in this app at work, they have font sizes in sp in values, and then in values-large, they use font sizes but the values are like doubled Jun 25 16:05:10 is that the wrong way to do it? Isn't the point of sp to scale automatically anyway? Jun 25 16:06:16 The scaling part is a user setting. By default the text is the same size on all screen sizes Jun 25 16:06:26 But yeah, that sounds wrong Jun 25 16:07:01 yeah eg values normal_text_size = 14sp, values-large normal_text_size = 21sp Jun 25 16:07:18 LOL man things look way better after I commented out every text size in values-large Jun 25 16:07:28 values-we_don't_have_enough_content_so_make_what_we_have_larger Jun 25 16:07:41 haha Jun 25 16:09:54 i think designing for X x Y res is a bit odd Jun 25 16:09:58 personally Jun 25 16:10:25 as a designer if you come up with a design, most of it is generic enough for many formats/mediums Jun 25 16:10:44 the onlything to consider is different mediums layout/space requirements Jun 25 16:10:58 StingRay_ do you deliver multiple resolutions to your developers? Jun 25 16:11:06 yeah Jun 25 16:11:16 I deliver multi dimensions to myself Jun 25 16:11:18 :) Jun 25 16:11:27 heh, which ones do you use? Jun 25 16:11:39 which what ? Jun 25 16:11:52 which dimensions? Jun 25 16:11:59 depends Jun 25 16:12:09 you mean unit ? Jun 25 16:12:25 You design for screen sizes, not resolutions Jun 25 16:12:36 indeed Jun 25 16:12:38 ok so... Jun 25 16:12:41 not just screen sizes Jun 25 16:12:43 aspect too Jun 25 16:12:46 but less so Jun 25 16:12:49 SimonVT: Yeah I'm aware of that Jun 25 16:12:55 I just meant... Nexus S Jun 25 16:13:03 so... THAT size at hdpi Jun 25 16:13:30 so your PSD could be some multiple of 480x800, just assuming that the screen is that physical size Jun 25 16:13:36 Orientation is more important than aspect :p Jun 25 16:13:43 you know what I Mean Jun 25 16:13:45 ok that yes Jun 25 16:13:52 matt_j: no… to me thats wrong Jun 25 16:14:03 and not how I would design something that could be used on hdpi Jun 25 16:14:06 or mdpi Jun 25 16:14:17 anyway, apparently removing values-large makes it looks nice in on the Galaxy Tab, but on a 11" tablet it breaks Jun 25 16:14:18 it depends on the element Jun 25 16:17:14 is it possible to integrate an app inside another app? Jun 25 16:17:32 okamis_: how so ? Jun 25 16:18:08 should I be using values-large-v11? Jun 25 16:18:17 okamis_, appception Jun 25 16:18:21 of course it's possible Jun 25 16:19:03 StingRay_: I want to access the sms-application inside my app Jun 25 16:19:15 access ? Jun 25 16:19:47 hey bro I heard you like apps Jun 25 16:21:09 from the sms-application i want to read, write and send texts using that View Jun 25 16:21:39 can you just open the Messages app? does it have to actually be inside your app? Jun 25 16:21:43 why not just fire up the sms app Jun 25 16:22:32 the app idea is to from pc send a text to my app so I can send it away as a sms, but when I thought about it, it would be nice to access the conversation [thread] and see other texts Jun 25 16:23:49 and because I want users to feel familiar with the layout I thought It would be best to use sms-application but with extended features, easiest would be if possibly to integrate sms-application into my app Jun 25 16:24:04 okamis_: no then Jun 25 16:24:21 your app sounds like it would just be a service Jun 25 16:24:28 not a UI on the device Jun 25 16:26:53 values-large-v11 appears to be the proper place for larger sp values Jun 25 16:27:28 erm Jun 25 16:27:35 large yes Jun 25 16:27:43 v11 irrelevant Jun 25 16:27:51 now the fonts are less broken on big tablets Jun 25 16:27:54 sw600dp dude Jun 25 16:27:56 look at what all the qualifier names mean Jun 25 16:28:07 Are there courses for android development, I mean when can someone officially put themselves as an android developer on their CV? Jun 25 16:28:22 SimonVT, what's the practical difference? which devices fall into sw600dp and don't in large? Jun 25 16:28:24 How much of the API does one need to know etc Jun 25 16:28:27 CocoStorm: "officially" Jun 25 16:29:23 StingRay_: any good ways to make my app feel like the sms app or do I have to make it look like the sms app from scratch? Jun 25 16:29:25 evanc, well not officially as such but for example a Java developer could perhaps have a Computer Science qualification Jun 25 16:29:38 so it's somewhat credible Jun 25 16:29:45 CocoStorm - we've interviewed lots of people who had it on their resume with very little actual experience - i wouldn't hesitate to put it there if you think you know it Jun 25 16:29:52 okamis_: you know there is full source for the sms app right ? Jun 25 16:30:03 as in you can just download it all Jun 25 16:30:08 didnt know that, im kinda new to android Jun 25 16:30:20 Mavrik, swdp/wdp/hdp allows for more customization Jun 25 16:30:51 CocoStorm, you can put whatever you want on your CV.. They just might question it Jun 25 16:30:55 theelfismike, ah I see, yeah I'm only familiar with some aspects of the API so I'd be a bit hesitant to myself down as an android developer. My plan is to work on learning as much as I can over the summer, which brought me to the question what do most andriod developers do Jun 25 16:31:15 SimonVT, in what way? Jun 25 16:31:19 SimonVT, I see, that makes more sense then :) Jun 25 16:31:19 thanks Jun 25 16:31:30 CocoStorm: It depends, are we talking about like hobbyist or professional or a mix of both? Jun 25 16:31:40 CocoStorm - write an app, ship it, and fix bugs in production - you'll learn a lot about the framework and "real world" android Jun 25 16:31:41 I do android development as a hobby and a job sorta, so I'm the mix case Jun 25 16:32:20 StingRay_: does the app have an official name to ease googling? Jun 25 16:32:24 theelfismike, yeah I've done an app just haven't published it. I will make another over the summer though Jun 25 16:32:50 Mavrik, I think that's pretty obvious.. Large/xlarge is kinda broad Jun 25 16:33:29 I fail to see how using a "sw600dp" instead of "large" would give you any difference unless there are devices that fit into one and not the other Jun 25 16:33:32 okamis_: MMS on the repo Jun 25 16:33:37 I think Jun 25 16:33:45 <|0xD34D|> okamis_: https://android.googlesource.com/platform/packages/apps/Mms/ Jun 25 16:33:46 ok Jun 25 16:33:48 <|0xD34D|> it's part of AOSP Jun 25 16:33:48 using one tag instead of other doesn't give you more customization Jun 25 16:34:02 it's just silly cargo culting. Jun 25 16:34:09 CocoStorm - nice, i'd put it on your resume/CV if you've written anything non-trivial (something other than "hello world" or a flashlight, etc), but expect lots of questions if you're interviewing for an Android dev position Jun 25 16:34:13 thank you all Jun 25 16:34:40 theelfismike, Yeah for sure, and I'd most likely apply for a junior role anyway if anything Jun 25 16:39:18 I'm trying the sw600dp/sw720dp approach instead :) Jun 25 16:41:21 hi there Jun 25 16:41:27 * pfn headscratches Jun 25 16:41:33 how the hell do merged "res" folders happen Jun 25 16:42:01 i downloaded android studio and jdk1.7 and installed both, set my JDK_HOME system variable, android studio is complaining that Android SDK is out of date... what am i missing? Jun 25 16:42:10 update the android sdk Jun 25 16:42:24 android studio doesnt come with android sdk? Jun 25 16:42:33 read the install instructions Jun 25 16:42:37 i did! Jun 25 16:42:50 pfn, did you figure out how to use the new build system? Jun 25 16:42:58 aleb, I'm not using the new build system, per se Jun 25 16:43:09 aleb, I'm using the underlying classes that implement it, and without luck so far Jun 25 16:43:14 im looking at this page : http://developer.android.com/sdk/installing/studio.html Jun 25 16:43:23 aleb, i.e. com.android.tools.build.AndroidBuilder Jun 25 16:43:35 er, com.android.builder.AndroidBuilder Jun 25 16:43:50 i am confused > This download includes: All the Android SDK Tools to design, test, debug, and profile your app Jun 25 16:44:06 then point android studio to whereever you unpacked it Jun 25 16:44:57 errrrr Jun 25 16:45:37 i dont seem to have anything in C:\Users\\AppData\Local\Android\android-studio\sdk\ Jun 25 16:45:54 that's where you unpacked it? Jun 25 16:46:02 presumably, i used default paths Jun 25 16:46:17 (when installing) Jun 25 16:46:32 * pfn shrugs Jun 25 16:47:20 *sigh* Jun 25 16:47:26 Nexus 10, why you so beautiful Jun 25 16:47:27 lul Jun 25 16:47:37 "set java_home" - http://stackoverflow.com/a/6521412/1337412 Jun 25 16:47:58 theelfismike... was that directed at me? Jun 25 16:48:10 jasabella yeah Jun 25 16:48:19 i've done that already Jun 25 16:48:46 i dont even seem to have sdk manager :/ Jun 25 16:48:54 ah, gotcha Jun 25 16:49:29 you might want to retry the installer Jun 25 16:49:33 just get the .exe from http://developer.android.com/sdk/index.html Jun 25 16:49:42 hmmm going to try this : http://tools.android.com/knownissues Jun 25 16:49:49 (look at "Download for other platforms") Jun 25 16:51:26 How would I pass a parameter to the constructor of TranslateFromActivity in this statement? startActivity(new Intent(this, TranslateFromActivity.class)); Jun 25 16:51:51 tomeo: you don't; you pass intent extras Jun 25 16:52:53 Also, don't define a constructor in your activity.. And definitely not one with parameters Jun 25 16:53:40 okay thanks Jun 25 16:53:53 theelfismike... i need to install android sdk separately from android studio? Jun 25 16:54:44 maybe? i had sdk installed before AS came out :) Jun 25 16:55:27 jasabella: no Jun 25 16:55:35 the integrations should be there Jun 25 16:55:49 you will just need to actually download SDK components using sdk manager Jun 25 16:56:08 the button with a little droid in a box, erm… with a down arrow Jun 25 16:56:11 :) Jun 25 16:56:14 sdk manager doesnt even run on my start menu :| Jun 25 16:56:24 oh im going to uninstall android studio and try again Jun 25 16:56:29 start menu ? Jun 25 16:56:35 no in android studio Jun 25 16:57:14 i dont see an option to run sdk manager from android studio Jun 25 16:57:32 then your not running android studio Jun 25 16:57:33 :) Jun 25 16:58:01 it says Welcome to Android Studio, bottom left corner says Android Studio 0.1.6 Build 130.716844 Jun 25 16:58:06 in Tools > (anything here that says android) ? Jun 25 16:58:25 it wont even let me start a project Jun 25 16:58:27 Is there an "android way" of getting one view to do different things depending on the situation or am I good to just go with the strategy pattern? Jun 25 16:59:11 hmm, using a signel view for multiple things is usually bad for maintainability Jun 25 16:59:14 tomeo, what is your usecase? Jun 25 16:59:52 tomeo - need to change at runtime or a certain way in your layout? Jun 25 17:00:03 Mavrik: I have one view which translates to piglatin and one that translates from pig latin. I wanted to alter my project so both translate to and from use the same view Jun 25 17:00:40 hmm Jun 25 17:01:20 So you have a single view and then you have a button somewhere saying "translate FROM" or a button saying "translate TO"? Jun 25 17:01:22 both views are identical at the moment, just the actual method I call to handle the translation that differs. thats why I figured strategy would suffice Jun 25 17:01:26 im uninstalling android studio, downloading a fresh copy of the installer and trying again GRRRRRRR Jun 25 17:01:32 Mavrik: yes exactly so Jun 25 17:01:47 tomeo, well, I see no reason why you couldn't just use a single view Jun 25 17:02:08 and just do the appropriate thing in the onclick listener depending on selected mode :) Jun 25 17:02:59 Mavrik: I also just want to use one activity Jun 25 17:03:09 no problem :) Jun 25 17:03:17 I mean, I really fail to see the problem :P Jun 25 17:03:22 Mavrik: there is no problem Jun 25 17:03:26 private boolean translatingFrom = true; Jun 25 17:03:44 if (translatingFrom) { translateFrom();} else { translateTo();} Jun 25 17:03:55 tomeo: What is your problem here? Jun 25 17:03:57 just keep track of state in the activity and that's it Jun 25 17:03:58 I haven't been paying attention Jun 25 17:04:06 Mavrik: I was thinking that would be ugly. I wanted to use the strategy pattern. However I thought I'd ask so there isn't an Android specific way Jun 25 17:04:44 you can specify custom attributes on the view in the xml Jun 25 17:05:01 http://kevindion.com/2011/01/custom-xml-attributes-for-android-widgets/ Jun 25 17:05:17 well, call it "strategy pattern" if you wish :P Jun 25 17:05:24 Mavrik: http://en.wikipedia.org/wiki/Strategy_pattern Jun 25 17:05:27 so in your layout, you could have a and Jun 25 17:06:16 theelfismike: say I wanted to add a third option. What would I do then? Jun 25 17:06:38 translate to some quantum state between from and to? Jun 25 17:06:55 don't overthink it, it's what causes those godawful java factoryoffactoryoffactoryofpattern frameworks Jun 25 17:07:02 tomeo - you could specify a string for that value Jun 25 17:07:42 Mavrik: Yo Dawg! I heard you like factory patterns, so I put a factory in your factory Jun 25 17:09:41 * Mavrik shudders. Jun 25 17:09:53 great way to get me to uninstall an app: log stuff when i havent used the app in 3 months Jun 25 17:10:27 great way for me to uninstall an app is not using it for 3 months Jun 25 17:10:33 bah, real malware removes log statements with proguard ;) Jun 25 17:10:42 birbeck, it's a skiing/snowboarding tracking app Jun 25 17:10:54 so to be fair, i only use it a few months a year Jun 25 17:11:00 canadiancow: seems like you need to get out more :) Jun 25 17:11:01 but if its doing shit in the background in the summer... Jun 25 17:11:22 hi all i created 2 activities... how to know the layoutid (an integer number) ? Jun 25 17:11:33 brb Jun 25 17:11:51 jak2000, layout id' Jun 25 17:11:53 ? Jun 25 17:12:11 jak2000 - R.layout.name_of_xml_file_without_xml_suffix Jun 25 17:24:09 theelfismike thanks Jun 25 17:24:11 worked Jun 25 17:27:05 setContentView(R.layout.activity_desplegar_mensaje_actividad); <-- in this layout i have: textView1 how to change the text in runtime? Jun 25 17:28:13 jak2000 TextView t = findViewById(R.id.textView1); Jun 25 17:28:19 t.setText("new text"); Jun 25 17:28:29 ok Jun 25 17:29:09 jak2000 whenever you want to access a view in your layout, use findViewById(R.id.yourID), and set it to a variable, then you can manipulate the view's properties Jun 25 17:29:31 you will have to cast it to the right type (TextView), findViewById returns type View Jun 25 17:29:49 google has a rule that a tablet must have the status bar on the bottom? Jun 25 17:30:32 speeder: how do you figure that ? Jun 25 17:31:16 StingRay_: I don't? Jun 25 17:31:18 I have no idea Jun 25 17:31:24 I am trying to figure if this rule exists or not Jun 25 17:31:41 I am working in makings apps for a unreleased tablet Jun 25 17:32:12 and they have chosen a 16:9 screen but with the status bar on the bottom it breaks lots of apps (that don't assume you might need to do something larger than 16:9) Jun 25 17:32:24 I am thinking in proposing them to have the status bar fixed on the side, like a phone Jun 25 17:32:26 speeder: 16:9 isn't a "size" Jun 25 17:32:30 youc an't be "larger" than 16:9 Jun 25 17:32:32 it's an aspect ratio Jun 25 17:32:44 of course you can make it larger than 16:9 Jun 25 17:32:47 it might be 16:8 Jun 25 17:32:50 or 16:5 Jun 25 17:32:52 and so on Jun 25 17:32:55 or 20:9 Jun 25 17:32:57 whatever Jun 25 17:33:00 aspect ratio !== size Jun 25 17:33:09 speeder: really if your design needs to know that, there is something very wrong Jun 25 17:33:15 aspect ratio is simply the relation between # horizontal and vertical pixels Jun 25 17:33:22 unless your using fixed resources Jun 25 17:33:24 StingRay_: I make games with lots of drawings Jun 25 17:33:31 not action games Jun 25 17:33:33 I make adventure games Jun 25 17:33:36 my point still stands Jun 25 17:33:40 with full screen drawings Jun 25 17:33:44 ah Jun 25 17:33:47 There's no rule as to where the status bar is Jun 25 17:34:13 speeder: then your going to have to be inventive Jun 25 17:34:17 Brian|CB: I guess something got in translation… I meant "wider" Jun 25 17:34:17 with aspect differences Jun 25 17:34:27 On the nexus 10 it's at the top Jun 25 17:34:35 on nex7 top Jun 25 17:34:48 speeder: Yeah, you can have a thinner/wider display based on aspect ratios Jun 25 17:34:49 Brian|CB: I am portuguese speaker, and in portuguese "width" is "largura" Jun 25 17:34:51 on sammy tablets above 7.5 it's bottom Jun 25 17:35:02 speeder: Ah, I'm an English speaker with some Spanish Jun 25 17:35:02 :S Jun 25 17:35:39 StingRay_: but google allow you to put it on the side? like a phone? Jun 25 17:35:48 side ? Jun 25 17:35:55 not see a status bar on the side Jun 25 17:36:13 well, if I lock rotation and tilt my head 90 degrees maybe Jun 25 17:36:26 I think he's talking about the button bar now Jun 25 17:36:31 Soft buttons Jun 25 17:36:33 yes Jun 25 17:36:35 the soft buttons Jun 25 17:36:44 I never remember the name of that thing Jun 25 17:36:45 ah the system bar Jun 25 17:36:59 well system/nav bar Jun 25 17:37:03 yes that Jun 25 17:37:07 either or I think people will know what you mean Jun 25 17:37:22 well probem is no fixes res, no fixed aspect Jun 25 17:37:26 they made the hardware be 16:9 and put the nav bar on the bottom of the screen while in landscape Jun 25 17:37:29 so that should influence design a bit Jun 25 17:37:47 forget 16:9 Jun 25 17:37:48 so any app that expects 16:9 breaks Jun 25 17:37:59 forget any fixed aspect Jun 25 17:38:01 No decent app expects 16:9 Jun 25 17:38:02 theelfismike: TextView t = (TextView) findViewById(R.id.textView1); right? Jun 25 17:38:03 speeder: if you're app expects a specific aspect ratio, you're doing it wrong :) Jun 25 17:38:12 your* Jun 25 17:38:13 JesusFreke: I make games with full screen hand drawn animations Jun 25 17:38:14 ^ Jun 25 17:38:18 yes. Jun 25 17:38:31 if your app expects a specific aspect ratio, you're doing it wrong :) Jun 25 17:38:37 ^ Jun 25 17:38:39 :) Jun 25 17:38:48 I currently make them 16:9, this is full screen on most devices, and on some others it adds black bars as needed Jun 25 17:39:04 .. black bars? Jun 25 17:39:05 the weird thing is that this device add black bars on the sides, and it looks very weird Jun 25 17:39:08 So much wrong Jun 25 17:39:25 SimonVT: it sounds reasonable to me, in this case Jun 25 17:39:27 SimonVT you know, when you watch a cinema movie on a 4:3 TV? Jun 25 17:40:04 Yep, I've seen movies Jun 25 17:40:21 JesusFreke: Tbh, I didn't pay enough attention to know what this case is ;d Jun 25 17:40:24 The options are fairly simple - redraw for all ratios, crop, or add bands Jun 25 17:40:31 now, the games I make for children, are kinda close to movies… full screen animations Jun 25 17:40:47 I assume a movie aspect ratio (16:9) and letterbox it as needed Jun 25 17:40:48 if you can't expand an image non-uniformly, you're stuck either cropping or adding black bars Jun 25 17:41:14 except now I found devices that break this, because they have 16:9 screen but have the soft button bar eating some of the space Jun 25 17:42:07 speeder: "broke", meaning it adds black bars? Jun 25 17:42:20 to the sides of the picture, instead of top and bottom Jun 25 17:43:15 since it is a not-released yet tablet, and the OS is not fully designed (right now it does not have even GPS drivers for example), I guessed I can influence the soft button bar design to something more reasonable Jun 25 17:43:31 the tablet is aimed at kids, and lots of apps are like mine… meaning lots of apps will have black bars on its sides. Jun 25 17:44:00 I don't think many apps require a specific aspect ratio. but then again, I'm not familiar with the kid games :) Jun 25 17:44:03 also kids frequently touch the bottom of the screen by accident, thus hitting the soft buttons by accident too Jun 25 17:44:16 speeder: Auto-hide the sys/nav bar? Jun 25 17:44:26 JesusFreke: you know Full Throttle? Jun 25 17:44:31 nope :) Jun 25 17:44:35 Bleeptech: that is not allowed I guess Jun 25 17:44:40 JesusFreke: Monkey Island? Jun 25 17:44:46 I've heard of it Jun 25 17:45:07 it's a platformer, right? Jun 25 17:45:11 no Jun 25 17:45:13 ... Jun 25 17:45:37 You can always be graceful about cropping.. Adding some pointless information that can be cut away if needed Jun 25 17:45:56 speeder: Look for fullscreen options? I have apps on a 10" Galaxy that can expand to full screen. Jun 25 17:45:58 speeder: I love full throttle Jun 25 17:46:02 or adding "decoration", instead of black bars Jun 25 17:46:03 lucas gods!!! Jun 25 17:46:27 * StingRay_ starts singing, "december 61…my dads wage is light"... Jun 25 17:46:37 Netflix can hide bars. Jun 25 17:46:43 and monkey island Jun 25 17:46:46 I assume others can in principle Jun 25 17:47:21 SpeedEvil_: you can on non-interact parts Jun 25 17:47:26 but touch and they are back Jun 25 17:47:33 for obvious reasons Jun 25 17:47:41 Not sure it was allowed at all on ics tablets or something Jun 25 17:47:49 * Bleeptech starts singing They're coming to take me away, Ha Ha.. Jun 25 17:48:19 you can only hide bars when you are not interacting Jun 25 17:48:26 fk yeah…this got me into games industry https://www.youtube.com/watch?v=PktBJ6HpNJQ Jun 25 17:48:26 since I am making a game, that does not make much sense ;) Jun 25 17:49:07 well gave me inspiration to get into games industry Jun 25 17:49:13 speeder: accellerometer based, in principle Jun 25 17:49:16 StingRay_: of course, I only wish I was good like Full Throttle :P Jun 25 17:49:31 SpeedEvil_: I released a accelerometer game once for kids… parents hated it Jun 25 17:49:35 lots of thrown iPads Jun 25 17:49:36 :/ Jun 25 17:49:40 hah Jun 25 17:49:46 I made a snow globe Jun 25 17:49:53 not really a game Jun 25 17:49:54 Oh dear. :) Jun 25 17:49:55 more of a stupid toy Jun 25 17:50:07 Vigourous shaking -> snow globe not work. Jun 25 17:50:18 https://play.google.com/store/apps/details?id=com.kidoteca.xmasglobe Jun 25 17:50:44 we received some e-mails from iOS people complaining their kids launched the iPad across the room by accident Jun 25 17:50:56 speeder: doing something like monkey island or full throttle then you care not the aspect or res Jun 25 17:51:00 Not a bad rating. Jun 25 17:51:08 only the view bounds of an area Jun 25 17:51:13 and thus a draw area Jun 25 17:51:27 speeder: Tell them that is what the wrist strap is for? LOL.. Jun 25 17:51:38 Bleeptech: iPad has wrist strap???? Jun 25 17:51:40 :P Jun 25 17:52:35 * StingRay_ just looked at the credits list for full throttle, jesus, those were the days, < 10 artists Jun 25 17:52:38 speeder: Well.. It's more of a rope.. Tie one end to iPad, tie other end around kids neck.. Jun 25 17:52:46 lol Jun 25 17:53:06 StingRay_: full throttle is full of interesting stuff Jun 25 17:53:10 including how they used the wrong engine Jun 25 17:55:04 * StingRay_ remembers modeling that m60 https://www.youtube.com/watch?v=DZTedGf1KsQ Jun 25 17:56:55 haha, remember making the seark stinger too https://www.youtube.com/watch?v=C4JrE9eN6Vk Jun 25 17:57:09 actually still got that on a drive somewhere Jun 25 17:57:59 neways speeder in a game like monkey island or full throttle, you have a safe bounds area Jun 25 17:58:07 of action/gameplay Jun 25 17:58:14 and a scoll/tile area Jun 25 17:58:35 so aspect should not come into it Jun 25 17:58:52 safe bound/ action bounds I should say Jun 25 17:59:02 same principal as film/tv Jun 25 17:59:29 yes Jun 25 17:59:51 StingRay_: I can make the app wider… but I was wondering if there could be a better way to design the tablet overall Jun 25 18:00:53 no need Jun 25 18:01:12 like I say, you have an action area that can be dynamic and fit to the device Jun 25 18:01:48 and a grid/tile coord system that the action area would use for gameplay elements that require proximity or view Jun 25 18:01:54 My armpits smell exceptionally musky today. Jun 25 18:03:46 Hi, I want to make an app that draws simple lines, then puts numbers near them. In the training there's a class "Display graphics with OpenGL ES". Is this a little intense for what I need? Jun 25 18:05:31 StingRay_: What game was that? {Stuck on a machine with no youtube.} Jun 25 18:05:37 miesco probably since the people running opengl ES are hell bent on getting rid of the easy to use primitive functions Jun 25 18:05:50 well opengl in general Jun 25 18:06:12 Bleeptech: what was what game ? Jun 25 18:11:57 does anyone know a proper way to have a library project with jars + an application project that uses the library project and depends on the same jars? Jun 25 18:12:12 if I don't include the jars in both projects, I get an error in my main project telling me it can't find the classes Jun 25 18:12:27 but if I include the jars in both the android library project + the app project I get an error telling me there are multiple dex files defining classes Jun 25 18:13:22 Make sure it's actually the same jar Jun 25 18:13:50 Not just two jars with the same name, but different content Jun 25 18:14:57 they are the exact same jars :\ Jun 25 18:15:15 I should have to include the jars in both projects though? it won't be able to find them in the library project? Jun 25 18:15:43 wi JakeWharton Jun 25 18:15:51 Both should work Jun 25 18:15:54 wat Jun 25 18:15:57 Depends on your build system I guess Jun 25 18:16:07 sorry, was trying to show my coworkers that you hang out in here Jun 25 18:16:11 hmm, ok. (I'm using the Android Studio for this) Jun 25 18:17:10 library dependencies: http://cl.ly/image/0h3r0h200T0c app dependencies: http://cl.ly/image/2a1R1x3Z0b3A Jun 25 18:17:15 I am indeed around, on occasion to hustle libraries and voice opinionated opinions Jun 25 18:17:53 If you're using gradle, just add a dependency on com.android.support:support-v4:13.0.0 Jun 25 18:18:01 Oh wait, not support lib Jun 25 18:18:09 Dunno why I thought that Jun 25 18:18:29 icetooth: So the Android 2D API should suffice? When should someone use OpenGL ES? Jun 25 18:18:32 Yeah, either remove it from one of the projects (your app if the library needs it), or set one of them to provided Jun 25 18:19:43 I tried setting the Achilles (app project one) to provided, still getting the same error :\ Jun 25 18:21:17 Miesco, when you need fast rendering of a more complex scene. if you just need lines and text and you dont already know OpenGL its going to be painful Jun 25 18:22:11 but, if you are updating the lines orientation frequently and there are many lines, you may want to look into it Jun 25 18:23:11 icetooth: I learned a bit of OpenGL in the past in C, but I never used shaders or anything, I just used gl_begin(GL_POLYGON); glVertex(...); .... that kind of stuff Jun 25 18:24:03 there is no glBegin on OpenGL ES, and they are trying to remove it completely from the spec :\ Jun 25 18:25:10 icetooth: Yea, I did start reading a tutorial a while ago on OpenGL that used shaders and all that complex stuff to do simple drawings :/ Jun 25 18:25:32 icetooth: I guess OpenGL is meant for making engines? Jun 25 18:28:16 they're trying to make it more flexible i suppose, and remove functions that hardware drivers fuck up when they write the implementations maybe? i tried to figure it out once but gave up Jun 25 18:28:32 hi all Jun 25 18:28:58 i'm overriding onWindowFocusChanged() in my Activity, but it never gets called by the system Jun 25 18:29:13 i can't figure out why Jun 25 18:30:13 cause it never looses focus ? Jun 25 18:30:24 guess* Jun 25 18:30:26 even when i relaunch it? Jun 25 18:30:31 or press back/home? Jun 25 18:30:41 is it not "born" with focus Jun 25 18:30:49 i would think not Jun 25 18:30:51 and dies with focus Jun 25 18:31:04 How do I put this... Is it possible to state, in a layout xml, that I'll use my own style but by specifying only the style prefix to be used? So that that prefix is applied to all Styles, e.g. I specify styleprefix="My" and then My.TabHost is automatically used instead of the default TabHost style? Jun 25 18:31:51 Zta: no, but you can specify theme attributes so that you don't have to use "style=…" on every view in your xml layouts Jun 25 18:31:52 Or do I have to explicitly specify every specific layout I want to use, e.g. style="@style/My.TabHost" ? This I know how to do, but the first would be preferable. I think. Jun 25 18:32:40 for example, you can add @style/MyButton to your theme definition Jun 25 18:32:53 and all your buttons will inherit that style implicitly Jun 25 18:33:00 karakuri: Hm, I haven't figured out what theme attributes are. Is different from android:theme="@style/MyTheme" in my Manifest? Jun 25 18:33:18 that points to your theme (which is a style resource -- confiusing, I know) Jun 25 18:33:44 im having trouble decompiling an apk Jun 25 18:33:54 i follow tutorials using apktool and it fails Jun 25 18:33:56 but inside that definition you can set default styles for various widgets with attributes like the one I mentioned Jun 25 18:34:19 theme attributes are like style attributes, but they can be applied to a theme Jun 25 18:34:28 i try using ten studio and it decompiles some of the apk, but it doesn't decompile all of the activity files Jun 25 18:34:56 Right. I need to wrap my brain around this. Jun 25 18:35:08 Can you point me to a good tutorial? Jun 25 18:35:15 * coydog is listening intently to karakuri and Zta Jun 25 18:35:21 StingRay_: my understanding is that the launcher activity has window focus, so at some point my acitvity should get a callback when it receives window focus Jun 25 18:35:22 This is just the sort of thing I was wondering about too Jun 25 18:35:41 karakuri: not what I would have thought Jun 25 18:35:49 that maybe the case if a dialog pops up Jun 25 18:36:03 again, just guessing Jun 25 18:36:21 popup a dialog and see :) Jun 25 18:36:25 * StingRay_ is interested now Jun 25 18:36:40 not a fragmentDialog though Jun 25 18:36:51 Why not Jun 25 18:37:07 i have other samples which behave correctly Jun 25 18:37:14 they get the callback when launched Jun 25 18:37:14 I would think it would use the same base frame SimonVT ? Jun 25 18:37:26 A DialogFragment is still a Dialog Jun 25 18:37:29 Just managed by a Fragment Jun 25 18:37:39 karakuri: Sorry to interrupt, but what's the most global way of applying a theme? Is it possible without setting AppTheme in all the res/values-*/ directories? Jun 25 18:38:05 SimonVT: oh yeah, ooops, none of mine are but yes… if you use dialog inside :) Jun 25 18:38:17 I'm not sure what happens if you leave out android:theme from your manifest Jun 25 18:38:22 it may default to a system theme Jun 25 18:38:24 Your DialogFragments aren't Dialogs? Jun 25 18:38:38 coydog, i think you can set it in the AndroidManifest file Jun 25 18:38:43 well they dont return a dialog created view Jun 25 18:38:48 generally you extend one of Android's themes and add your own stuff to that Jun 25 18:38:51 they return a self created view Jun 25 18:39:02 Which DialogFragment then adds to a Dialog Jun 25 18:39:17 how do I remove the white background form the keyboard? Jun 25 18:39:20 what I suggested to Zta was the easiest way to style all your (for example) buttons Jun 25 18:39:45 using an attribute in yoru theme definition Jun 25 18:40:13 I currently have android:theme="@style/AppTheme" in AndroidManifest.xml, so I'm thinking that refers to the style XML files in res/values and res/values-* ? Jun 25 18:41:01 copydog: it does. Themes are styles Jun 25 18:41:25 its a little confusing in that there's no substantial distinction Jun 25 18:41:41 so would I then need to change AppTheme in styles.xml in all of the values and values-* directories? Jun 25 18:42:04 right, I'm just starting out with android dev, and it is a lot to take in :) Jun 25 18:42:22 karakuri: In @style/MyButton you mention buttonStyle. So there must be a list of supported widgets(?) that can be styleabe this way? Jun 25 18:42:31 yes, there are many Jun 25 18:42:47 if you want to see more of this stuff, open your /platforms/platform-##/data/res/values/ folder and look at themes.xml, styles.xml, and attrs.xml Jun 25 18:42:50 Where are they defined? How do I get to know them? =) Jun 25 18:42:55 the ones you can reference are in public.xml Jun 25 18:43:01 Thanks for the input, I'm going to play around a bit and be careful with revision control. Jun 25 18:43:03 Zta: see above Jun 25 18:43:12 I'll take a look. Jun 25 18:44:26 now if only i could figure out why onWindowFocusChanged isnt being called... Jun 25 18:45:38 One more quick theme question: Is there a pre-defined theme for white text on a black or dark background? Jun 25 18:45:50 copydog: yes Jun 25 18:46:00 Theme.Black on older devices, Theme.Holo on newer Jun 25 18:46:17 both are dark background Jun 25 18:46:24 Awesome, thanks. I was thinking that might be it. Jun 25 18:47:49 it gets more fun when you start makign custom views Jun 25 18:48:52 karakuri: That did the trick, thanks again! Jun 25 18:51:43 hi Jun 25 18:51:49 i've got a question Jun 25 18:52:02 how i can make a checkbox ito the optionsmenu? Jun 25 18:52:48 what does ito mean ? Jun 25 18:52:56 in ? Jun 25 18:53:02 into ? Jun 25 18:53:08 in would make more sense Jun 25 18:53:26 i've got a alarmmanager, and a timepicker in the optionsmenu Jun 25 18:53:45 hi all how to send a email from my app, i try with an intent but this intent ask me, (when run the program) choose evernote, gmail for send the email (not like me) thanks Jun 25 18:53:46 now i want to add another item to the options-menu that it's a checkbox Jun 25 18:54:07 and if it checked the alarmmanager will work and if not it wont work... Jun 25 18:54:31 elichai2: sorry, I'm lost with what your asking Jun 25 18:55:27 jak2000, here: http://pastebin.com/0Su0hd2B Jun 25 18:55:45 StingRay_, i just want to add an item to the options-menu Jun 25 18:56:10 and that item will be a checkbox Jun 25 18:57:04 elichai2 testing thanks Jun 25 18:58:16 elichai2: when you say options menu, do you mean a Preferences screen? Jun 25 18:58:47 i mean this menu method "onOptionsItemSelected" Jun 25 18:58:51 and "onCreateOptionsMenu" Jun 25 19:00:23 this menu: Jun 25 19:00:23 http://developer.android.com/guide/topics/ui/menus.html#options-menu Jun 25 19:00:35 elicha error on pInfo Jun 25 19:01:15 menu items have and android:checkable attribute, have you tried it? Jun 25 19:02:35 karakuri, i don't want to make the whole menu a checkable menu Jun 25 19:02:48 i want that one of the items will be a checkbox Jun 25 19:02:52 not the whole menu, just that item Jun 25 19:04:32 Jun 25 19:04:48 karakuri, i'm trying it right now Jun 25 19:05:24 make sure in onOptionsItemSelected you consume the click and toggle it's checked state, otherwise it will not change the checkmark when you open the menu again Jun 25 19:06:14 karakuri, ok worked :) Jun 25 19:06:18 one last thing Jun 25 19:06:38 how can i make it that the menu won't close after cliking on the item? Jun 25 19:06:49 that i'm not sure... Jun 25 19:07:48 it might be better to move it onto the main actionbar or into your activity UI (or into a Preference screen) Jun 25 19:07:57 ammm... and how i can set the checkbox?(i want to load the defualt position from sheredprefences) Jun 25 19:08:31 you can get the item object from the menu after inflating the menu, then call setChecked on it Jun 25 19:08:42 (my activity UI it's just a listview) Jun 25 19:09:02 karakuri, to set it from the "onCreateOptionsMenu" or from the "onOptionsItemSelected"? Jun 25 19:10:16 both; set it initially in onCreateOptionsMenu by reading your preferences, then toggle it in onOptionsItemSelected Jun 25 19:10:28 (if you dont toggle it, the checked state of the menu item wont change) Jun 25 19:17:58 has anyone ever experienced an OpenGLRenderer error along the lines of "GL error from OpenGLRenderer: 0x501. GL_INVALID_VALUE" ? It seems to be caused by a ProgressBar... Jun 25 19:18:09 it still runs just fine (for the most part) but those errors scroll in the console Jun 25 19:20:41 Here's one more silly question: I've only had an Android device for two days. How do I dismiss the keyboard to make my app display more visible? Is this something the end-user can do, or do I need to do it programmatically? The keyboard is in the way of my output TextView. Jun 25 19:20:58 karakuri, it's look like it impossible :( http://stackoverflow.com/questions/4220982/android-keep-options-menu-open Jun 25 19:21:59 yeah, as i said, look for another place for that item, either always exposed on the ActionBar or in a Preference screen Jun 25 19:22:04 or in the UI of the acitivty Jun 25 19:22:49 karakuri, ok, thanks! Jun 25 19:24:32 karakuri, one last thing? :) Jun 25 19:24:50 there is anyway to check if he changed the checkbox? Jun 25 19:25:00 nm, answered my own question. "Back button." :D Jun 25 19:25:31 the end user can do it Jun 25 19:25:38 by pressing the back button Jun 25 19:26:05 coydog, and you can do it too: http://stackoverflow.com/questions/1109022/close-hide-the-android-soft-keyboard Jun 25 19:26:13 simple google search :) Jun 25 19:26:15 elichai2: gotcha, thanks Jun 25 19:27:08 yeah, I duckduckgo'd it. I had a couple of questions that I had researched for a day or so without a clear answer, and for a moment I thought that was one of them :D Jun 25 19:28:00 This is evidence of how easy android dev is; I've got a fully functional app, and I don't even know the basic user interface of the device yet Jun 25 19:28:18 anyone happen to know what would cause the white/grey background with opengl http://imgur.com/TFWxsfT Jun 25 19:28:21 should be black Jun 25 19:28:42 the bar at the top and background should be black.. rather then the white/grey it is now Jun 25 19:31:03 i don't know opengl.... Jun 25 19:32:43 xastey`: alpha? Jun 25 19:35:00 parco no I have the background set to #000000 Jun 25 19:35:18 I take that back.. the ImageButtons do have a transparent background Jun 25 19:41:52 xastey`: #000000FF for full apaque, right? Jun 25 19:41:55 opague* Jun 25 19:42:00 q** Jun 25 19:42:35 thought it was #00000000 but #00 was prepended Jun 25 19:42:41 well atleast I thought Jun 25 19:43:12 im not sure Jun 25 19:43:16 Hey, I Have another silly question Jun 25 19:43:32 why would I say android:layout_below="@+id/some_element" vs android:layout_below="@id/some_element" Jun 25 19:43:37 the difference being the + Jun 25 19:43:45 makes it work properly in the editor, but they both work fine at runtime Jun 25 19:43:59 + will create the id if not created in R other wont Jun 25 19:44:04 I just always do +id Jun 25 19:44:07 cool! Jun 25 19:44:09 Thanks! Jun 25 19:44:30 here's a good explanation of the details: http://mttkay.github.io/blog/2013/01/31/use-android-s-id-notation-with-care/ Jun 25 19:44:38 matt_j ^ Jun 25 19:44:42 Thanks! Jun 25 19:45:58 matt_j (most people i know *don't* pull them into an ids resource file, but the explanation of what +id is doing is helpful) Jun 25 19:46:34 thanks Jun 25 19:46:41 yeah the layout editor works properly now when I do this Jun 25 19:47:11 interestingly, if you drag and drop an element, the editor just fixes it for ya... that's how I figured it out Jun 25 19:47:21 layouts imported from eclipse ;) Jun 25 20:04:47 Hey guys, I'm assuming that to create an app that adds a number to the device's contact app's contact list I'd have to use the contacts provider and cannot do it indirectly with intents? Jun 25 20:07:38 marco_: http://bit.ly/18erAzE Jun 25 20:07:55 always search and check the top 3-5 :) Jun 25 20:08:05 in this case maybe 2nd result is the one you want Jun 25 20:08:08 simples Jun 25 20:08:25 StingRay_ but I don't want the contacts app to launch Jun 25 20:08:32 can I still use intents? Jun 25 20:09:23 how ? Jun 25 20:09:32 I dont think so Jun 25 20:09:38 you have to add it yourself Jun 25 20:09:40 :) Jun 25 20:10:29 StingRay_: ah I see, so in order to have an app that has a field to add a phone number, i'd have to use the contactsProvider and not intents? Jun 25 20:14:40 I'm guessing that's a yes Jun 25 20:15:42 I would assume so Jun 25 20:15:45 :) Jun 25 20:15:55 thanks StingRay_ Jun 25 20:18:11 hi Jun 25 20:21:05 Any hints? Jun 25 20:21:48 memoryleak: er, what? Jun 25 20:22:41 Is there anything that prevents sites bundled as apps from being on the App Store? Jun 25 20:22:43 memoryleak: yeah, actually ask a question before prompting for any answers Jun 25 20:22:47 :) Jun 25 20:22:58 oh, didn't see "Message too large to be sent" Jun 25 20:23:10 Glycan: common sense ? Jun 25 20:23:12 :) Jun 25 20:23:25 good taste Jun 25 20:23:34 design and performance standard Jun 25 20:23:35 erm Jun 25 20:23:38 :) Jun 25 20:23:39 Is d.android.com down for anyone else? Jun 25 20:23:43 I'm getting 500 errors Jun 25 20:24:03 RyanM: yes, (UK) Jun 25 20:24:05 Glycan: nothing Jun 25 20:24:18 rats Jun 25 20:24:20 Glycan: except for the fact they usually suck Jun 25 20:24:47 local docs it is then :-( Jun 25 20:25:04 I have an activity, which starts an AsyncTask that records the Microphone input level and shows its values updating a progress bar. This gets cancelled, when the user leaves the activity. There is an Button which starts another AsyncTask: new MyNetworkAsyncTask().execute(). Jun 25 20:25:07 Glycan: do you mean App Store as in Apple's? because, yes, they prevent that. If you mean the Play Store then no Jun 25 20:25:45 The problem I'm facing is, that the doInBackground doesn't get called until I leave the activity Jun 25 20:26:44 evanc: you can use the same method on iOS and Android (which results in crappy iOS-looking apps that work suspiciously slow and don't mesh with UI) Jun 25 20:27:16 I have a hard time finding out why exactly it behaves like that, also tried with not using the first AudioAsyncTask at all Jun 25 20:27:53 From Terms of Service: "Do not post an app where the primary functionality is to: ... Provide a webview of a website not owned or administered by you (unless you have permission from the website owner/administrator to do so)" Jun 25 20:27:56 memoryleak: something about executor configuration Jun 25 20:28:11 just keep that bit in mind ^ Jun 25 20:28:22 RyanM: 500's here too; it's partially back up now, without css Jun 25 20:28:23 p_l: No manual configuration, it's plain simple async task. Jun 25 20:28:43 memoryleak: the default configuration changed at some point to running them sequentially Jun 25 20:29:04 memoryleak: try configuring execution mode explicitly Jun 25 20:29:17 I don't remember details, sorry Jun 25 20:30:54 FWIW, I had issues where my AsyncTasks were significantly delayed. I started a bunch of them (tens of thousands) in a loop, and the first ones didn't run until the loop had finished. Had to use a Thread instead. Jun 25 20:31:26 maybe you can try setting higher priority on it Jun 25 20:31:45 p_l: .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR...) ? Jun 25 20:31:56 or make it a callback Jun 25 20:33:07 StingRay_, p_l, evanc: Yup, Play Store. Thank you. And it's not my fault my client is stupid. Jun 25 20:33:50 prove it Jun 25 20:33:52 :) Jun 25 20:34:37 ...he hired me to make an appsite? Jun 25 20:34:43 he has stupified his client ;) Jun 25 20:35:02 coydog, what does FWIW mean: from what I've witnessed? Jun 25 20:35:06 also, he hired me, despite my increadibly dubious reputation (or rather lack thereof) Jun 25 20:35:13 i've been looking to verify this one for a long time Jun 25 20:35:16 hesperaux: for what it's worth Jun 25 20:35:21 ohhhh Jun 25 20:35:25 hesperaux: "for what it's worth" Jun 25 20:35:26 nice. thanks Jun 25 20:36:01 how does one acheive featured apps status ? Jun 25 20:36:16 in this case meaning, I'm a total android noob, but I had a similar experience and my solution was proper Threads and Handlers instead of AsynTask Jun 25 20:36:18 parco: follow all guides and do an amazing app Jun 25 20:36:19 :) Jun 25 20:36:30 guides/guidelines Jun 25 20:37:40 coydog: wait, you tried to run tens of thousands of threads in parallel? on a phone? Jun 25 20:37:47 anyone know how to keep a ViewPager from filling the screen vertically even though it's set to wrap? Jun 25 20:37:53 evanc: :D Jun 25 20:38:25 evanc: It wasn't my ideal long-term solution, but I did it for a quick prototype while refreshing my memory on Java's threading model Jun 25 20:38:32 I'd consider that a feature of an AsyncTask, not a bug. Jun 25 20:38:41 tnzr: dont have the content make it ? Jun 25 20:38:51 I'd agree, never said it wasn't sensible behaviour from AsyncTask Jun 25 20:39:02 StingRay_: how do you mean? Jun 25 20:39:22 wrap_"content" Jun 25 20:39:35 StingRay_: fair enough! Jun 25 20:39:37 but what if the content doesn't fill the screen vertically either Jun 25 20:40:03 if nothing down the tree is then you found a fundimental bug I think Jun 25 20:40:06 but doubtful Jun 25 20:40:31 evanc: The first thousand or so seemed to block the next ones from completing for several minutes. It was a fun exercise. The long-term plan was always to put all the work in a single worker thread, though Jun 25 20:40:34 ... Jun 25 20:43:45 Is it normal for the soft keyboard "Enter" button to NOT be able to click a button that has focus? It seems to work on the emulator with my hardware KB, but not my phone. Jun 25 20:49:04 depends on the input type and editor action listener Jun 25 20:51:07 On a button with input type of "" or ("none" in Eclipse) Jun 25 20:57:29 StingRay_: fundamental bug Jun 25 20:57:32 http://stackoverflow.com/questions/9313554/measuring-a-viewpager Jun 25 20:57:34 ^-- fixed Jun 25 20:58:08 fk thats horrid Jun 25 20:58:12 tell me about it Jun 25 20:58:32 just wasted 3 hours grappling with this Jun 25 20:58:47 well you could have nested in a framelayout Jun 25 20:58:50 for a quick fix Jun 25 20:59:51 just the ViewPager? Jun 25 21:00:18 no the content Jun 25 21:00:29 oh Jun 25 21:00:42 well the layout that the ViewPager used was in a FrameLayout Jun 25 21:00:48 if that's what you mean Jun 25 21:00:51 no Jun 25 21:00:55 I mean for that page Jun 25 21:00:58 oh Jun 25 21:25:16 crypto-currency site ahmedbodiwala.tk Jun 25 21:25:18 devs wanted Jun 25 21:25:50 ahmedbodi, the channel topic says no soliciting Jun 25 21:26:05 oh never read it sorry Jun 25 21:31:50 How would I use onClick handlers for spinners? Currently I'm overriding onOptionsItemSelected() and using a switch statement, but I'd prefer to use an onClick handler for each item instead, however onClick handlers seem to fail with android.view.InflateException Jun 25 21:32:41 ahmedbodi: I don't mean to be rude, but that domain name does not scream legitimacy. You might want to revise your name choice Jun 25 21:32:56 ive got another domain name and server Jun 25 21:33:09 just need the firewall and virtual hosts setup Jun 25 21:33:30 dw about it tho, its my own personal site Jun 25 21:48:13 I have a veiwsonic GTab with Android 4.1.1 from TeamDRH. I want to get adb working and I was looking at this guide: http://www.androidtablets.net/forum/viewsonic-gtablet-technical/5377-adb-g-tab-step-step.html but the unknown devices i get are something called MTB and Malata SMBA1002, also i cant find any usb drivers in the sdk, what should I do? Jun 25 21:49:05 well, i found the drivers Jun 25 22:13:58 what is the convention if I need a fragment to call back into an activity to do something? Jun 25 22:14:29 i usually have the fragment declare a public interface that the activity implements Jun 25 22:15:00 does your fragment have a ref to the activity? Jun 25 22:15:11 oh wait I think I see what you mean Jun 25 22:15:27 you can do ((YourFunInterface) getActivity).doSomethingFun() Jun 25 22:15:43 getActivity() * Jun 25 22:16:42 is that better than just doing ((MyActivity) getActivity()).doSomethingCrazy() ? Jun 25 22:17:21 When I use the Wigle Wardriving app it makes a map of my location, lac and cellid of the current cell tower, and rssi. It will only do this for one provider who's SIM is currenly in my phone. Would it be possible to get this information for all providers that my phone can see? Jun 25 22:17:25 you can do that too - having a separate interface more clearly defines the dependency and allows the fragment to be on another activity (which implements the interface) if necessary Jun 25 22:17:55 ahh good point Jun 25 22:17:58 sounds like a plan Jun 25 22:21:56 woot, i got it Jun 25 22:22:16 hmm, interesting, I wonder why ResourceMerger isn't part of builder but it's in ide.common.res2 Jun 25 22:53:29 if i wanted to generate some java code from my gradle build (a) where is the best place to put the result and (b) what task/hook do I use ? Jun 25 22:55:25 if anyone is any good with Neon, please have a look at this: http://pastebin.com/qYcae8Kq Jun 25 22:56:43 Chainfire: sorry for bugging in. i`m a student and i`m participating in Google Summer of Code with a project on android. to boot an embedded linux board off an android device via usb. do you have any experience with libusb *jni* on android ? Jun 25 22:57:02 yes Jun 25 22:57:13 g00s: build/generated-sources/java Jun 25 22:57:40 JesusFreke thanks; do you know what tak i should depend/doFirst() on ? Jun 25 22:57:48 it would be an exec task to run ragel Jun 25 22:57:49 i successfuly compiled libusb.so using android ndk but at bulk_transfer it just hangs. my linux board is a BeagleBone Black Jun 25 22:57:49 You can create a task to generate your java source, and then compileJava.dependsOn newTask Jun 25 22:58:02 vvu libusb 1.x specifically, 0.1 doesn't work well for Android (last time I checked) Jun 25 22:58:04 the board is sending every 10 seconds a BOOTP request over usb Jun 25 22:58:08 JesusFreke ok, thx will try this Jun 25 22:58:12 yes, 1.0.9 i have Jun 25 22:58:13 g00s: hah. I have an example if you want to look :) Jun 25 22:58:19 not for an android app, but it's using ragel Jun 25 22:58:21 yeah ! Jun 25 22:58:34 ok and I assume you have gathered USB access somehow (root or via Android APIs) ? Jun 25 22:58:41 root Jun 25 22:58:47 I know libusb 1 works because I've used it, and I didn't really had to change anything Jun 25 22:59:04 you sure it's not just your code? :D Jun 25 22:59:19 hmm. I thought I did Jun 25 22:59:24 JesusFreke i found one example (dexlib) but it didn't hook into compileJava.dependOn … and didn't put the code in the right spot Jun 25 22:59:37 Chainfire: my mentor for GSoC did some tweaking around https://github.com/keesj/BBBabb/tree/on-android Jun 25 22:59:50 to wrap it up into JNI Jun 25 22:59:57 but first i want to try it CLI style Jun 25 23:00:16 Chainfire: here it hangs https://github.com/keesj/BBBabb/blob/on-android/jni/main.c#L96 Jun 25 23:00:35 the board implements a RNDIS communication, android kernel does not have RNDIS driver Jun 25 23:01:17 "hangs" Jun 25 23:01:20 i tested this code on normal linux and it works with my hardware Jun 25 23:01:21 you're using an unlimited timeout Jun 25 23:01:30 even if i put 10mS timeout Jun 25 23:01:32 stays there Jun 25 23:02:06 g00s: yeah, I can't seem to find the example I was thinking of Jun 25 23:02:08 data over USB exists, so it should read something. Jun 25 23:02:31 funky. Well, I'm not expert on libusb, I usually just use the Android APIs for USB host access, but I know the lib can work without issue if compiled correctly Jun 25 23:02:44 (as one of my projects is built on a lib that in turn uses libusb1) Jun 25 23:02:46 g00s: but in any case, the build.gradle for smali does something similar, but using ANTLR, instead of ragel Jun 25 23:02:47 JesusFreke ok, thanks tho - you gave me a few tips i can use Jun 25 23:02:59 also here again another problem with the Android API for host Jun 25 23:02:59 there is an antlr plugin Jun 25 23:03:04 does not read anything from my device Jun 25 23:03:10 presumably it configures itself Jun 25 23:03:13 and i checked my interface, endpoints everything to be right Jun 25 23:03:20 g00s: iirc, not for antlr3 or something Jun 25 23:03:40 feels like maven all over again Jun 25 23:03:46 vvu so Android's API doesn't read anything and your libusb API hangs ... have you tried replacing your cables ;) Jun 25 23:03:55 (specifically, the OTG adapter) Jun 25 23:04:07 except it's much easier to add your own task to do what you want :) Jun 25 23:04:10 dmesg shows my device Jun 25 23:04:20 that means nothing Jun 25 23:04:34 also i was needed to remove OTG support from the kernel, my board enumerates awkwardly Jun 25 23:04:36 well it means something, but not as much as you think it would Jun 25 23:04:46 so an idea is to replace the otg adapter? Jun 25 23:04:57 wait, you removed OTG support from the kernel ? Jun 25 23:05:03 yes Jun 25 23:05:05 then how does this work at all ? Jun 25 23:05:11 is the board the host ? Jun 25 23:05:14 my board is always device Jun 25 23:05:19 and android host Jun 25 23:05:23 ah Jun 25 23:05:28 they don`t swap places or anything Jun 25 23:05:39 ah ok I was thinking Android to be host Jun 25 23:05:47 android is the host Jun 25 23:05:54 and the board is the device Jun 25 23:06:18 ah so you just removed the auto-switching capability and set it to always host Jun 25 23:06:22 tested my code on 2 devices a Nexus 7 and a Galaxy Nexus. same behaviour. Jun 25 23:06:26 Chainfire: correct! Jun 25 23:06:44 well I'm not really sure how to help you Jun 25 23:06:46 Chainfire: https://github.com/ungureanuvladvictor/BeagleDroid/blob/master/BeagleDroid/src/main/java/com/vvu/beagledroid/MainActivity.java#L68 i always get -1 Jun 25 23:06:57 also thx for doing the USB Host app, really helped me :D Jun 25 23:06:58 g00s: ah, yeah. found that ragel task - yeah. I think I just hacked that in quick, because I didn't want to deal with setting up the full thing like I did for the antlr stuff :) Jun 25 23:07:17 -1 is timeout Jun 25 23:07:26 no ? Jun 25 23:07:34 yes Jun 25 23:07:45 i think this is a kernel problem somewhere... Jun 25 23:07:57 more deep inside the usb drivers Jun 25 23:08:35 I doubt that on the Android side Jun 25 23:08:56 I've been using the Galaxy Nexus and Nexus 7 as host devices for ages with several projects without issue Jun 25 23:09:23 but it`s curious because 2 nighs ago i succeded in receiving data from my board with the code i gave you link, the java one Jun 25 23:09:33 code was good commited then when i tried again it failed... Jun 25 23:09:41 sounds a bit awkward but it`s true Jun 25 23:11:07 how many bytes are you expecting really ? Jun 25 23:11:12 because you ask for 500 Jun 25 23:11:17 450 Jun 25 23:11:22 tried with multiple values Jun 25 23:11:25 same result Jun 25 23:11:28 ok just checking Jun 25 23:11:53 I assume you've also tried timeouts of 1000 or more ms instead of 10 Jun 25 23:12:18 mhmh not quite, but i have the while shouldn`t that get rid of things ? Jun 25 23:12:44 you're using Android on Linux Jun 25 23:13:02 ok lets test with 1k timeout Jun 25 23:13:14 have you ever noticed that nothing ever works as expected on either platform ? :) Jun 25 23:13:47 same -1 timeout Jun 25 23:14:49 ok, good to have that tested. I'm not sure if I'm reading your libusb code correctly, but it seems you're using a different endpoint there then in the Java code ? Jun 25 23:15:07 which line in the libusb code are you? Jun 25 23:15:15 Hello Jun 25 23:15:17 because at some point the board uses another endpoint Jun 25 23:15:17 https://github.com/keesj/BBBabb/blob/on-android/jni/main.c#L96 Jun 25 23:15:54 endpoints are good, checked on java with .toString() and it 0x02 attribute Jun 25 23:16:33 myeah I'm running out of ideas to be honest :) Jun 25 23:17:16 do you have some sort of USB sniffer or whatnot to verify the data you're expecting has been sent ? Jun 25 23:17:46 nop, but i`m really sure the board sends data Jun 25 23:18:21 has abs published any aars yet? Jun 25 23:18:28 no Jun 25 23:18:42 I'm stuck. Question if you don't mind..I extend the Spinner class and call it SpinnerT I then add this into activity_main.xml and compile/run etc. I get a logCat error class not found error SpinnerT. I have looked on the main forum for solution but this involves extended GLSurfaceView which is similar to my problem but offers not solution. am guessing I need to tell the XML parser where my custom class resi Jun 25 23:18:42 have any projects published any aars? Jun 25 23:18:48 I want to test my build plugin Jun 25 23:18:54 make your own Jun 25 23:18:59 I don't want to Jun 25 23:19:05 I want to use something that someone's already published Jun 25 23:19:12 use the samples Jun 25 23:19:15 considering I haven't written the part to produce aars yet Jun 25 23:19:15 install them into your local repo Jun 25 23:20:25 This is my problem.. http://pastebin.com/pvkSbfPD Jun 25 23:20:40 I don't have the samples handy to make that easy Jun 25 23:20:53 I wish maven central had a search by artifact type option Jun 25 23:21:11 you mean like the one it already has? http://search.maven.org/#search%7Cga%7C1%7Cp%3A%22aar%22 Jun 25 23:21:32 hmm, indeed Jun 25 23:21:37 Chainfire: same here, no more ideas to debug this crap. the people from TI did such a bad job in implementing all this stuff. Jun 25 23:23:11 Chainfire: have any snippets of code that i can look over, or no open-source ? Jun 25 23:23:19 Is there a way to tell the xml parser that my class actually exists so setContentView(0 runs it? Jun 25 23:24:24 Anthy: you need to use the fully qualified name Jun 25 23:24:30 com.my.package.SpinnerT Jun 25 23:24:50 So I need the com etc tnx I will try this Jun 25 23:25:53 vvu dont really have anything I can show you, no, but generally speaking, everything that I've ever tried using libusb1 has worked as expected Jun 25 23:26:13 as such its probably something silly that we're overlooking Jun 25 23:26:28 yeah but the sneaky thing is that even the Android API is no workin Jun 25 23:26:36 which should be Jun 25 23:26:52 yeah and that makes me doubt the USB communication is working properly at all - nothing is sent, or cables not good Jun 25 23:27:10 Android devices are *really* sensitive to cables Jun 25 23:27:15 but why can i claim interface, get device info if cables are bad ? Jun 25 23:27:29 with DSLR Controller, in case of weird issue, the number one piece of advise is "replace OTG adapter and try again" Jun 25 23:27:47 Chainfire: http://www.dualsim.ro/products.php?product=Adaptor-de-la-micro%252dUSB-la-USB-2.0-OTG-pentru-conectarea-modemului-3G&utm_source=shopmania&utm_medium=cpc&utm_campaign=direct_link Jun 25 23:27:51 this is the thingie i have Jun 25 23:28:05 really cheap when you transfor the price in $/Eur Jun 25 23:28:14 yeah Jun 25 23:28:24 so an idea is to change cable ? Jun 25 23:28:37 some of my customers try 6 different random ones and only get one that works ... as for myself, every OTG adapter I've ever tried has worked without issue Jun 25 23:28:43 (guess I'm lucky?) Jun 25 23:28:43 Same problem ; well it's certainly something I would try, if it doesn't help, at least it doesn't hurt. Jun 25 23:29:23 arent some usb cables just power? as in there is no data channel? Jun 25 23:31:08 brx_: yes Jun 25 23:31:14 troll detected Jun 25 23:31:27 oh, didn't see the word "some" Jun 25 23:31:31 nvm, all clear Jun 25 23:31:58 Chainfire: thx for the help, if wouldn`t mind you i will come forward with more info if something changes. Have a great day and really thx for the help! Jun 25 23:32:26 sorry I couldn't really help you solve it :) Jun 25 23:32:40 hesperaux, its my day off Jun 25 23:32:41 no problem! Jun 25 23:32:56 brx_, lol Jun 25 23:36:14 Chainfire: sorry for bugging in, maybe this gies you an idea : my device is sending data at specific time intervals. sends a request at start, then waits 4 seconds for a response. if no response another reuqest, then 8 secs pause and so on. need to write my code in a different manner to support this? Jun 25 23:37:52 that shouldn't be a problem if you're reading in a loop on the Android side. Still, I would disable the back-off on the client board during testing, just to make sure it isn't currently waiting 2^31 seconds before sending something ;) Jun 25 23:38:19 is there a way to filter out specific tags in eclipse's debug filter? Jun 25 23:38:27 the board code is in a ROM, cannot modify it. Jun 25 23:38:38 the people from Texas Instruments did this magic *code* Jun 25 23:41:04 hesperaux yeah logcat window the little green cross thingie Jun 25 23:42:20 Anthy, but how do i say NOT a tag? Jun 25 23:43:24 No idea about how to add specific logical ops on the filter sorry Jun 25 23:43:31 hmm Jun 25 23:43:32 ok Jun 25 23:44:51 http://tinypic.com/view.php?pic=9ru8mp&s=5 my opengl game opengl=easy api prog = hard .. Jun 25 23:46:44 fuck tinypic, use something more sane like imgur Jun 25 23:47:08 but what if it is indeed a very small pic? Jun 25 23:47:28 uuencode Jun 25 23:47:45 begin 644 tinypic.gif Jun 25 23:48:25 pragma nice bookmarked :p http://imgur.com/1PVEMrt Jun 25 23:49:18 got a decent paste code? last decent one I used was in gbadev like 10 years ago and they shut that down b/c people abused it Jun 25 23:49:37 pastebin.com is fine Jun 25 23:49:43 for pasting code? http://codepad.org or http://ideone.com Jun 25 23:49:43 i used to use rafb.net/paste...nostalgia Jun 25 23:49:45 fuck pastebin Jun 25 23:49:48 lol Jun 25 23:49:58 lol Jun 25 23:50:07 I used rafb also Jun 25 23:50:07 pragma-, the strength of your opinions illustrates your pragmatism Jun 25 23:50:29 E/libEGL(1413): called unimplemented OpenGL ES API - should i just give up on life at this point? Jun 25 23:51:07 tnx Jun 25 23:53:42 icetooth: http://www.youtube.com/watch?v=18EAqHx2lMk Jun 25 23:56:10 good point, its probably my shader not compiling because of some unknown complication in the ES world Jun 26 00:00:45 Would be nice if eclipse rebuilt your project when you edit an xml Jun 26 00:00:54 ctrl b Jun 26 00:01:09 What;s that do? Jun 26 00:01:28 touches everything? Jun 26 00:01:36 no it builds all Jun 26 00:01:44 oh it doesnt know you changed the xml Jun 26 00:01:44 haha Jun 26 00:01:52 :) Jun 26 00:05:56 Chainfire: ever used usbmon on android? Jun 26 00:06:18 with CONFIG_USB_MON=y in the kernel config? Jun 26 00:07:59 god. if you can't debug your app make sure that "debuggable=true" otherwise you'll have a bad time restarting everything and wondering "why doesn't adb work??? Jun 26 00:08:54 So, unusual Android question: Is there an equivalent to Activity.finish() for an entire application? Jun 26 00:09:08 (no, I'm not trying to implement an exit button) Jun 26 00:11:27 The best solution I've found (other than "don't do it") is to launch an Activity using Intent.FLAG_ACTIVITY_CLEAR_TOP and immediately finish() that Activity. Jun 26 00:11:45 System.exit(0). but, as you said, "don't do it" :) Jun 26 00:12:16 what are you trying to accomplish? Jun 26 00:13:01 Is it possible to extend a built in widget (Spinner?) and get the xml to run it rather than programmatically? Jun 26 00:13:24 i tried using the package name in the xml but it did not work Jun 26 00:14:06 JesusFreke: An example of something similar would be if an application relied on a particular version of a remote protcol that was no longer supported remotely. The application is now useless until updated, and should not allow the user to use it further. Jun 26 00:15:25 I think it's a legitimate use case, since there's no reason the user would want (that version of) the application to remain running. Jun 26 00:15:34 I still don't think you need to do anything in that case. What if the user starts the application again? If you don't finish it, you can at least keep the fact that it's outdated cached Jun 26 00:15:55 until the process is evicted naturally Jun 26 00:17:03 just stop any services, unregister any dynamically registered broadcast receivers, etc. Jun 26 00:17:26 Android will kick the process out, if it needs the memory :) Jun 26 00:17:39 I love it when Android Studio points out the typos in the file IT just generated... ROFL.. Jun 26 00:18:38 JesusFreke: Interesting idea...the only issue I see there is that it seems like I'd need to check that fact in every activity, which could get tedious quickly. Jun 26 00:19:01 RyanM: presumably you have to check anyway, right? Jun 26 00:19:08 otherwise, how do you know it's outdated? Jun 26 00:19:34 unless you're talking about actually disabling the application all-together? Jun 26 00:19:40 JesusFreke: Checking on load can be done in Application.onCreate(), which only gets called once - when the app is launched. Jun 26 00:22:22 the check can run in an AsyncTask in the background and launch a NoDisplay Activity to launch an AlertDialog if it detects the application is outdated to the point of uselessness Jun 26 00:22:47 anyone know why my CameraPreview would have grey orders at the top and bottom of my SurfaceView> Jun 26 00:22:48 ? Jun 26 00:26:10 http://i.imgur.com/BJ16fkl.jpg like so Jun 26 00:29:32 is placing a bounty against the rules :D Jun 26 00:32:03 Hello! I have a question regarding pager, i'm loading fragments in it but I want to store and recycle my paged views manually, everytime a new fragment gets created I store my view inside some array, everything works ok, but when I recall it back and return in inside the oncreateview method I get a "specified child already has a parent." exception. Jun 26 00:39:33 bojanBG, check for if it has a parent with .getParent and if so remove it from its parent Jun 26 00:39:45 bojan think you need to remove the fragment you are going to "set aside" from the adapter Jun 26 00:39:47 ^^ Jun 26 00:39:58 wow I rebooted and now my extended class works! Jun 26 00:40:08 hehe Jun 26 00:40:10 I will sleep tonight very good! Jun 26 00:40:23 the wonderful compile classes not updated problem Jun 26 00:40:26 stupid ide's Jun 26 00:40:46 anyone mind giving me some pointers for my problem with a camera preview Jun 26 00:41:02 hehe yep Jun 26 00:44:41 xastey i have a book here with camera code in it - what's problem? Jun 26 00:44:54 so.. does anyone know how to actually set the OpenGL ES context to 2.0 for 100% realsy reals? Jun 26 00:45:00 in native code* Jun 26 00:48:25 icetooth your problem? http://stackoverflow.com/questions/9468175/android-native-ndk-opengl-es-unimplemented-api Jun 26 00:50:25 Anthy_, thanks well I get a grey background with my preview Jun 26 00:50:34 Anthy_, http://i.imgur.com/BJ16fkl.jpg Jun 26 00:51:34 Looks pink to me Jun 26 00:52:42 the background at the top where the buttons are Jun 26 00:52:45 it should be black Jun 26 00:53:08 I set the layout to have black and even went as far as setting the buttons layou t(LinearLayout) to black Jun 26 00:53:40 the SurfaceView is in a ViewGroup if that matters Jun 26 00:53:56 icetooth, I think you can port this to ndk http://pastebin.com/mMeMYwXD Jun 26 00:54:35 Could it be some kind of alpha channel problem going on? Jun 26 00:56:06 Anthy_, I'm not sure what would cause it.. here is may layout http://pastebin.com/FbDv3xPZ Jun 26 00:56:16 ohhh you need EGL_NONE at the bottom of attribs dont you.... maybe thats my problem i was trying to get EGL_CONTEXT_CLIENT_VERSION attrib to work a little while ago Jun 26 00:56:39 At first I thought the same so I removed the transparent background from my buttons and then explicitly set the background to #00000000 Jun 26 00:57:29 eh forgot the chooser code for you Jun 26 00:57:33 What about using 80000000 Jun 26 00:57:55 that is something I would try to see if it is alpha Jun 26 00:58:21 I forget which way alpha does FF or 00 I always get them mixed up Jun 26 00:58:36 http://pastebin.com/S4gFEgRs just in case icetooth Jun 26 00:59:03 were should I apply that to.. my root LinearLayout? Jun 26 00:59:25 good question Jun 26 00:59:34 o well let me just randomly try Jun 26 01:00:15 You could save a png and load up in paint package and look at alpha bt i think might be quicker twiddling with the values Jun 26 01:00:56 well its not as light grey Jun 26 01:01:01 its a bit darker grey Jun 26 01:01:07 applied it to root layout Jun 26 01:03:51 lasserix, thanks for the answer 20min ago I'll try that Jun 26 01:04:01 Try ff000000 then Jun 26 01:04:16 80 is like half alpha or something? Jun 26 01:06:32 I FUCKING LOVE YOU Jun 26 01:06:34 no homo Jun 26 01:06:49 but man you dont know how long I've been working on this shit Jun 26 01:06:57 hehe Jun 26 01:07:47 Is there a way to get the task root activity from anywhere in your app? Jun 26 01:08:38 bojanBG: you might be better of caching the underlying data and just let the fragment pager do its thing , but using the cache/recycling the data Jun 26 01:08:48 Anthy_, for pres!! :D Jun 26 01:08:59 man now this bug is over FINALLY Jun 26 01:09:37 xastey and anthy thank you both, a combination of both those links got my 2.0 context created, lol! Jun 26 01:09:53 hehe Jun 26 01:10:12 i got my class bug ive been working on for ages fixed today also Jun 26 01:10:17 sweet get help.. helped another Jun 26 01:10:19 today was a good day Jun 26 01:10:42 Ive been trying to hack various adapters etc tomorrow I will try the extended class method and hopefully i get a spinner with a working prompt Jun 26 01:11:46 (Really hate API prog.) Jun 26 01:13:33 hello Jun 26 01:13:41 Sup Jun 26 01:17:14 Anthy_: I think you meant GUI prog. not API ? Jun 26 01:20:51 Yeah GUI :) Jun 26 01:21:24 Low level stuff I can handle but my brain tends to explode with using lots of other peoples code Jun 26 01:22:10 me too Jun 26 01:23:08 i think my problem is that i tend to jump in and not read instructions Jun 26 01:23:47 <|0xD34D|> trodis: this isn't herpderp Jun 26 01:23:53 bwahahahaha Jun 26 01:24:20 If I want to tweak the dialing system, is it part of the phone app or an apk? or would I have to recompile the whole rom? Jun 26 01:25:09 Lars_G: you can write a dialer replacement app that overrides the system default Jun 26 01:25:09 Most specifically, my rom is taking a few non ussd numbers from my provider as if they were ussd codes, so I need to fix the code that identifies ussd numbers Jun 26 01:25:36 hmm. that might be in the phone app, or it might be lower level Jun 26 01:25:39 So i wonder if that's part of the phone apk, or part of a deeper subsistem baked in the base system Jun 26 01:25:58 Yeah, I worry it's lower level... but seeying as how every dialer in the sun eventually turns to the phone app, I'm praying :) Jun 26 01:26:32 Let me check cyanogen's github tree Jun 26 01:26:38 <|0xD34D|> I believe it is deeper since there is part of the telephony framework that checks for special codes Jun 26 01:27:18 damn Jun 26 01:28:49 * Lars_G keeps checking source Jun 26 01:28:52 <|0xD34D|> what version of android is it? Jun 26 01:29:05 is there no such thing as listview single mode + contextual action bar? Jun 26 01:29:20 I can't access the the selected item if i go the normal way Jun 26 01:31:03 |0xD34D|: 2.3.7 Jun 26 01:31:21 <|0xD34D|> okay, then frameworks/base/ is where telephony stuff is Jun 26 01:33:14 Thanks Jun 26 01:33:20 Now I need to find.... Jun 26 01:50:53 4/window 4 Jun 26 01:58:04 wow, peopleware 3e is out. pretty famous book Jun 26 02:00:31 is there something I'm missing? when I setItemChecked for a listView in setOnItemLongClickListener, it checks the wrong item :s Jun 26 02:00:36 my googling skills seem to be failing me Jun 26 02:01:01 for a list item Jun 26 02:01:13 to add tools and platform-tools to PATH I added this line in my .bash_profile export PATH=${PATH}:~/android-sdk-linux/tools:~/android-sdk-linux/platform-tools Jun 26 02:01:20 did I do that wrong? Jun 26 02:01:43 it doesn't seem to be working Jun 26 02:01:52 Brewster, tried the full path? Jun 26 02:02:40 still doesn't work Jun 26 02:02:56 Brewster, if you're sure the SDK is downloaded to your ~ folder? Jun 26 02:03:02 yes Jun 26 02:03:08 100% sure Jun 26 02:03:18 did you reload your bash_profile afterwards? Jun 26 02:03:27 What are the advantages of a popup window vs a dialog? Jun 26 02:03:38 I exited the terminal and opened it back up Jun 26 02:03:49 I thought that reloaded it >_> Jun 26 02:03:56 try "source ~/.bash_profile" Jun 26 02:04:48 bash: /home/matt/android-sdk-linux/platform-tools/adb: No such file or directory <- lies Jun 26 02:05:05 echo $PATH returns it? Jun 26 02:05:35 /home/matt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/matt/android-sdk-linux/tools:/home/matt/android-sdk-linux/platform-tools Jun 26 02:05:54 I spelled it right Jun 26 02:07:07 ls /home/matt/android-sdk-linux/platform-tools Jun 26 02:07:38 adb api fastboot NOTICE.txt source.properties Jun 26 02:07:47 hax Jun 26 02:08:39 weird - only other thing I can think is for some reason it needs $ANROID_HOME to be set and it's not? Jun 26 02:08:49 ANDROID_HOME* Jun 26 02:13:12 oh wait Jun 26 02:14:28 I'm using a 64 bit os Jun 26 02:14:32 ia32-libs Jun 26 02:14:42 * Brewster waits Jun 26 02:19:04 hello was wondering if anyone can tell me how to create a junit test on android studio, just to start Jun 26 02:21:33 do I need to create a separate test project? or just a separate module? does anyone know what are the steps or if there are any guides? Jun 26 02:28:02 dck28 - let me recommend Robolectric http://robolectric.org/ Jun 26 02:28:25 it mocks out the Android system so you can write tests using android components without headaches Jun 26 02:29:16 the intellij quickstart guide should be pretty close to what you need to do with android studio (since they're pretty close) http://robolectric.org/intellij-quick-start.html Jun 26 02:29:58 theelfismike: thanks, I will check it out Jun 26 02:31:25 theelfismike: installing ia32-libs worked Jun 26 02:31:44 in case anyone else asks Jun 26 02:31:50 Brewster - good to know - i'm mainly on Mac these days, but I'll keep it in mind :) Jun 26 02:33:20 How do I call a dialog from a static main activity? I tried making the dialog fragment static, but then I ran into issues with getActivity() being a non-static method. Jun 26 02:34:23 cheese1756 - why does the call have to be stataic? Jun 26 02:34:25 static* Jun 26 02:35:06 theelfismike: I'm calling ViewDetailsDialogFragment.onCreateDialog(null).show(); in MainActivity.java. Can I do this in a non-static context? Jun 26 02:35:21 It doesn't necessarily need to be static, as long as it works with MainActivity Jun 26 02:37:57 cheese1756 - it probably should be done in a non-static context - is MainActivity running when you make that call? Jun 26 02:38:20 theelfismike: I'm calling .show() from MainActivity. Can I call it somewhere else? Jun 26 02:39:13 you should call it from whatever activity is running - is the method with that code in it static? Jun 26 02:40:47 The MainActivity is, but not the DialogFragment. When I tried to make the DialogFragment static, I ran into other issues. Jun 26 02:40:57 The MainActivity should call the DialogFragment, ideally Jun 26 02:41:31 so, normally fragments have static "create" or "getInstance()" methods which return a new copy of themselves Jun 26 02:41:54 so YourFragment would have a getInstance() method which is static, which would look like Jun 26 02:42:07 public static YourFragment getInstance() { Jun 26 02:42:13 return new YourFragment(); Jun 26 02:42:15 } Jun 26 02:42:32 that pattern allows you to make sure that the right parameters get set on the fragment when it's created Jun 26 02:42:54 so in your activity, you'd call YourFragment.getInstance().show(); Jun 26 02:42:57 Ah, that makes so much sense! Let me try that out. Jun 26 02:45:10 Ah Jun 26 02:45:25 So if you have two APKs, with one in a staged rollout to X% Jun 26 02:45:41 You have to stage the other APK rollout to X% as well Jun 26 02:49:37 anyone here use intellij idea? Jun 26 02:49:55 theelfismike: That worked perfectly, thank you! Jun 26 02:50:57 trying to test my app and im getting this error Jun 26 02:51:02 Running tests Test running startedTest running failed: Unable to find instrumentation info for: ComponentInfo{com.example.mylibgdxgame/android.test.InstrumentationTestRunner} Empty test suite. Jun 26 02:51:04 cheese1756 - great! it looks like the more widely used name is "newInstance()" to create that fragment statically - for more reading - http://www.androiddesignpatterns.com/2012/05/using-newinstance-to-instantiate.html Jun 26 02:52:22 theelfismike: Thanks for the link, both for the specific post and for that blog in general. Looks like a good bookmark Jun 26 02:52:55 cheese1756 - not super familiar with that site, but for that article at least it looks credible :) Jun 26 02:53:31 It has enough content to be useful. I know Java, but I just recently started playing around with Android (though I'm hooked already). Jun 26 02:54:02 Ericthegreat - are you using vanilla junit tests or something like robolectric? Jun 26 02:56:07 libgdx, nothing unusal just standard project. Jun 26 02:56:26 Just trying to get the splash screen working atm lol Jun 26 02:56:53 are you writing tests, or just trying to run the app? Jun 26 02:57:01 just trying to run it Jun 26 02:57:13 ah, that error suggests Intellij was running the tests Jun 26 02:57:25 oh how do you run it? Jun 26 02:57:53 click the drop down to the left of the green "Run" button and add an Android Application configuration Jun 26 02:59:05 done that? Jun 26 02:59:30 what's selected when you choose your project in the Run/Debug Configurations window? Jun 26 02:59:43 under "Module" & those radio buttons **** ENDING LOGGING AT Wed Jun 26 02:59:58 2013