**** BEGIN LOGGING AT Tue Apr 22 02:59:58 2014 Apr 22 03:51:40 is Chainfire about? Apr 22 03:57:43 I'm using navigationDrawer and I try to set action bar icons which corresponds fragment content. How can I do this. (setHasOptionsMenu(true) in onCreate and override onCreateOptionsMenu in fragment doesn't wokr). Thanks Apr 22 04:03:59 Im using android.R.layout.simple_list_item_1 but the text is white ;__; Apr 22 04:04:05 so I cant see it against the background colour Apr 22 04:12:55 GEEGEEGEE maybe you need to set your app's theme Apr 22 04:13:22 I was using getApplicationContext instead of getActivity Apr 22 04:18:06 hey guys, do you know the best way to attach tags to a subject? this is from a design perspective Apr 22 04:18:10 i'm thinking tag clouds Apr 22 04:18:40 but it's hard since i have to fulfill the 48 dips requirement for tappable items Apr 22 04:18:51 there's also this one i suppose Apr 22 04:18:52 https://sites.google.com/site/tagindemo/TagCloud Apr 22 04:22:32 ??? Apr 22 05:14:03 sup guys Apr 22 05:16:36 does anyone have exp with socket.getInputStream() Apr 22 05:20:44 jareddlc: post your problems Apr 22 05:21:16 canvs2321: i want to close my bt socket but i get an inputStream Error Apr 22 05:21:25 1 sec getting gist up Apr 22 05:21:46 what is the error, and w/getInputStream why are you reading when closing? Apr 22 05:22:09 https://gist.github.com/jareddlc/11166124 Apr 22 05:22:18 java.io.IOException: bt socket closed, read return: -1 Apr 22 05:22:27 what line is the error Apr 22 05:23:22 ln 24 Apr 22 05:23:32 when i call close() Apr 22 05:23:52 sounds like you need to add when reading, if your read == -1 do stuff Apr 22 05:24:17 how so? Apr 22 05:24:40 &while(true) shouldn't be used, you should do a while(!amIStillAbleToRead) type stuff Apr 22 05:24:56 how can i download the latest version of android-support-v4.jar using the SDK Manager? Apr 22 05:25:52 int bytes = 0; while(bytes = mInStream.read(buffer)!=-1){..} Apr 22 05:26:30 davo_: open the sdk manager? Apr 22 05:26:50 it is open Apr 22 05:26:53 canvs2321: let me try Apr 22 05:27:03 davo_: then you should be able to get latest Apr 22 05:27:35 android.support.v4.app is empty Apr 22 05:27:50 and getting Could not find class 'android.support.v4.app.FragmentActivity Apr 22 05:27:52 empty? show screen shot Apr 22 05:28:13 if you guys use x86 images; i just noticed sdk manager has haxm rev 4 Apr 22 05:28:13 screenshot? i'm talking about Eclipse Apr 22 05:28:54 canvs2321: the reaosn i did while true, it is in the android example docs http://developer.android.com/guide/topics/connectivity/bluetooth.html Apr 22 05:29:12 jareddlc: basically, create your int bytes outside your while loop, then do your loop til bytes == -1 meaning closed/eof or whatever, but in the while loop while there is data do what you want Apr 22 05:29:25 i imported android-support-v4.jar, and the app directory is empty, which is where FragmentActivity should be Apr 22 05:29:48 jareddlc: unless you have exception or error handling present, then while(true) will last foreever or til it crashes Apr 22 05:31:00 jareddlc: so following that, in the exception it calls break; which leaves the loop, what't the problem? Apr 22 05:31:19 well let me try fixing it Apr 22 05:31:22 but when i call close Apr 22 05:31:27 while ((bytes = instream.read()) != -1) Apr 22 05:31:27 it has that error Apr 22 05:31:43 can't call close it it's already been closed cause of IOException Apr 22 05:31:56 well, there is a timing issue Apr 22 05:31:58 g00s: was gonna append that :) Apr 22 05:32:24 if a thread is blocking on a stream, and another thread closes the inputstream, which it can safely, the blocked thread will see IOException Apr 22 05:32:57 cleaning up all these streams and sockets is kinda messy though ;) Apr 22 05:33:10 jareddlc: you shouldn't need the .close() w the exception as if it's errored out it shouldn't be open'd anymore Apr 22 05:33:29 got it Apr 22 05:33:42 still trying to fix give me a sec guys :) Apr 22 05:34:51 it wants me to surround while((bytes = mInStream.read()) != -1) { Apr 22 05:34:56 around a try/catch Apr 22 05:35:07 with what Apr 22 05:35:16 null pointer? Apr 22 05:37:06 still causing the read issue Apr 22 05:37:33 paste updated code Apr 22 05:37:41 updated Apr 22 05:37:55 you didn't leave int bytes = mInStream.read(buffer); in the while loop did you? Apr 22 05:38:17 read throws IOException of course :| Apr 22 05:39:23 canvs2321: i did Apr 22 05:39:28 that was the suggestion was it not? Apr 22 05:40:44 no the suggestion was to move int bytes; outside the loop, and use it in the while condition Apr 22 05:41:13 paste your code Apr 22 05:41:19 its updated Apr 22 05:41:20 on gist Apr 22 05:41:29 makes me scroll :/ :) Apr 22 05:41:38 https://gist.github.com/jareddlc/11166124 Apr 22 05:42:20 so you'll get the exception when reading is done right? what's the problem? Apr 22 05:42:41 do what you want w buffer Apr 22 05:42:46 after Apr 22 05:42:53 i just want to close my thread Apr 22 05:42:58 and close any bt connection Apr 22 05:42:59 or bytearray Apr 22 05:43:05 but when i call close i get that error Apr 22 05:43:13 seems it should be closed Apr 22 05:43:24 after all logic is completed Apr 22 05:44:05 seems like i fixed the closed issue Apr 22 05:44:07 there is no close in that updated code Apr 22 05:44:08 updating gist Apr 22 05:44:36 so you got it? Apr 22 05:44:40 using while(mInStream.available() > 0) { Apr 22 05:45:01 it's all linear, do your code, then don't keep loops going when done reading Apr 22 05:45:01 not im not sure if it'll recieve data Apr 22 05:45:19 well to be fair Apr 22 05:45:24 i usually dont code that way Apr 22 05:45:25 you read til you get endoffile,-1, Apr 22 05:45:28 just following google tut Apr 22 05:45:38 then thread stops Apr 22 05:46:42 bankai_au are you there ? Apr 22 05:46:47 keep loops going til done reading* Apr 22 05:46:52 yup my read is all mest up now Apr 22 05:46:53 :( Apr 22 05:46:59 how so Apr 22 05:47:08 g00s: oh wow for the first tiem you caught me before i left work :P Apr 22 05:47:45 it doesnt recieve anything Apr 22 05:47:50 byteArray.reset(); what does this do? are you writing your buffer to your byteArray? Apr 22 05:48:03 if so why reset? Apr 22 05:48:31 removing that Apr 22 05:48:34 but thats not the issue Apr 22 05:49:01 bankai_au oh, just quick stupid question rxjava question. i'm using Observable.combineLatest( …, …, combineFunc ) is there a way to specify that combineFunc is run on a specific thread ? Apr 22 05:49:14 i just don't see all the code involed, if you are reading, the taking that reading and putting it in your byteArray, why would you reset it? Apr 22 05:49:41 then taking* Apr 22 05:50:08 ignore the reset Apr 22 05:50:11 i removed it Apr 22 05:50:14 i dont know why it was there Apr 22 05:50:19 but that code isnt affecting anything Apr 22 05:50:43 what is the log of length on byte each revolution? and data? Apr 22 05:50:54 bytes* Apr 22 05:51:19 hi guys Apr 22 05:51:23 and does bytes exceed the buffer length of buffer? Apr 22 05:51:26 what are you reading? Apr 22 05:51:42 I need a straight forward no-nonsense android dev trail book/tutorial Apr 22 05:51:42 well run happens once Apr 22 05:51:47 so i need to figure out now Apr 22 05:51:49 how to keep reading Apr 22 05:52:00 since its no longer always listening Apr 22 05:52:04 i have already coded a complete android app with device integration by peer programming at work Apr 22 05:52:13 g00s: wouldn't it be using your ObserveOn thread ? Apr 22 05:52:30 so reading books with lenghty dependent sample project/chapters is a bore for me! Apr 22 05:52:41 any recommendations? Apr 22 05:53:19 canvs2321: thanks for the help Apr 22 05:53:21 jareddlc: basically you keep a buffer size, read that amount, and if less than buffersize adjust accordingly. what kind of file are you reading? there are a million google searches that'll help u Apr 22 05:53:29 i'll have to figure out how to keep looping to check for incoming Apr 22 05:53:45 im not reading a file Apr 22 05:53:47 is your file binary or text? Apr 22 05:53:48 im reading bt data Apr 22 05:53:58 i want to listen to BT data Apr 22 05:54:03 bankai_au i can observe the result of combineLatest on another thread; was trying to get combineFunc itself to run on a specific thread; i find this confusing comestimes Apr 22 05:54:16 oh well, you're going home no worries Apr 22 05:54:18 i send a message, i expect a response Apr 22 05:54:26 which is probably why google does while(true) Apr 22 05:54:33 sorry... i'm still trying to fix some current threading problems and only just getting my head around that lol Apr 22 05:54:36 aka for the length of this thread keep listening to incoming data Apr 22 05:54:45 but now i dont have that so i never get any incoming messages Apr 22 05:55:07 bankai_au yeah, ObserverOn decorates an observable and returns a new one Apr 22 05:55:20 its not 'modifying' the original Apr 22 05:55:31 docs aren't usually all that clear there Apr 22 05:55:33 if it keeps listening, you need to set a boolean, based on whether it should keep reading or not, as if never ending data, can't rely on -1 Apr 22 05:55:52 but keep an error stream handy incase of closing Apr 22 05:56:11 yeah Apr 22 05:56:17 i'll have to do while(true) Apr 22 05:56:18 just keep it blocking indefinately until you want it to stop Apr 22 05:56:21 then do the same logic Apr 22 05:56:34 no while(!doIWannaKeepReading) Apr 22 05:56:44 you keep control Apr 22 05:56:45 but i wanna read forever Apr 22 05:56:57 unless you get GC or whatever Apr 22 05:57:01 keep a boolean Apr 22 05:57:48 if i always want to listen i'll just use while(true) why use while(!doRead)? Apr 22 05:58:06 because you may get destoryed Apr 22 05:58:23 and adjust accordingly Apr 22 05:58:52 what do you mean? destroyed Apr 22 05:58:55 from what? Apr 22 05:58:59 android Apr 22 05:59:03 GC? Apr 22 05:59:08 oh this runs in a service Apr 22 05:59:14 don't matter Apr 22 05:59:21 you can be destroyed and restarted Apr 22 05:59:43 so then Apr 22 05:59:48 i should use Apr 22 05:59:54 getLayoutInflater().inflate(R.layout.my_layout, container) should return the top level layout defined in my_layout.xml right? Apr 22 06:00:01 while(!reading) {} Apr 22 06:00:11 and have reading set to true? Apr 22 06:00:33 i'm saying just use a boolean as, your service gets created, set true, it gets destroyed, set false, just more reliable and easier to debug Apr 22 06:00:49 got it Apr 22 06:00:54 thx a bunch canvs2321 Apr 22 06:01:05 tonight was suppose to be a night where i implemtn an RGB color wheel Apr 22 06:01:06 yep hope u get it going Apr 22 06:01:07 not fixing bugs Apr 22 06:01:14 i wish i can show you the video Apr 22 06:01:20 of my project Apr 22 06:01:26 not necessarily bugs as just keeping yourself sane :) Apr 22 06:01:43 i'll post it here so g00s can see it as well Apr 22 06:01:46 as he has helped me alot Apr 22 06:01:53 gl :) Apr 22 06:02:08 i'll probably bug someone Apr 22 06:02:15 here if there implement a color picker Apr 22 06:04:37 jareddlc: that's a good idea, I was thinking of making one too, for user controlled themes Apr 22 06:05:07 shmooz: Apr 22 06:05:16 sounds good, i'll let you know how it goes Apr 22 06:05:21 and or you to me Apr 22 06:05:28 who ever gets to it first :D Apr 22 06:05:36 my project is open sourced Apr 22 06:05:46 but im afraid of passing it over Apr 22 06:05:57 since i am making a product Apr 22 06:05:58 I did make a java color picker way in 1998 or something Apr 22 06:06:54 it was a chat app/applet you could run it command line or embed into webpage and have it float Apr 22 06:07:19 nice Apr 22 06:07:28 alright guys thx for the help gnight! Apr 22 06:09:59 no recommendations? Apr 22 06:33:17 Using ExpandableList im trying to achieve a situation where i have 2 groups, with each of them having children. There should be a gap between the 2 groups, but no gap between the "parent" group and its children. http://stackoverflow.com/questions/23082905/android-expandablelist-gap-between-groups-not-between-children Apr 22 06:43:07 so say I have extended a View in a class where I draw a sine wave, path.quadTo() and all that happens in onDraw(Canvas canvas) Apr 22 06:43:42 I want to get a reference to that view (which I have done through its id) and I want it to become something else, say extend itself more, or tighten up some more from its original points Apr 22 06:44:28 how would I get a reference to the "same" Canvas in the method that Im going to add to that class? the method Im going to add is changeShape() Apr 22 06:44:40 I want to repeat the same process as onDraw() is doing, but with different points Apr 22 06:45:09 then add methods your your custom view to add new points? Apr 22 06:45:23 of course, but I need Canvas, I don't know how to instantiate it Apr 22 06:45:28 or add to the data the custom view uses and invalidate Apr 22 06:45:39 invalidate calls onDraw Apr 22 06:47:00 I can't have all the logic inside onDraw(), ideally I just want the first shape to be in onDraw(), all other changes should have their corresponding methods Apr 22 06:47:31 like i said update data to custom view then invalidate/update it's onDraw Apr 22 06:47:55 ah so setters and getters that onDraw() uses Apr 22 06:48:17 you call the setters with new values, then invalidate to get it to draw again Apr 22 06:48:19 keep all heavy logic outside onDraw, then have it do onDraw Apr 22 06:48:33 invalidate will onDraw it, so do all heavy work before Apr 22 06:48:46 its just a simulation of a string being pulled and relaxed Apr 22 06:48:58 5 calls to path.quadTo(0 Apr 22 06:48:59 ()* Apr 22 06:49:24 in onDraw just stop any new object creations, otherwise do your logic as needed where needed Apr 22 06:50:19 can do all path settings elsewhere if you want, just avoid new object creations and heavy logic in onDraw Apr 22 06:51:34 using the ndk with stlport, I noticed that vector doesnt have a data() method. Is there a way to enable it, or is this just a limitation of stlport? Apr 22 06:52:22 I'm using navigationDrawer and I try to set action bar icons which corresponds fragment content. How can I do this. (setHasOptionsMenu(true) in onCreate and override onCreateOptionsMenu in fragment doesn't wokr). Thanks Apr 22 06:53:06 why would setting a menu change a icon resource? Apr 22 06:53:42 becasue I define new menu_fragment.xml ??? Apr 22 06:53:51 rtfm? Apr 22 06:54:14 menu's and action bar icons don't sound like they connect Apr 22 06:55:35 http://developer.android.com/guide/topics/ui/actionbar.html#ActionItems Apr 22 06:55:54 then I don't understand Apr 22 06:56:16 an action and setting a icon for current icon for fragment don't seem the same Apr 22 06:56:30 you aren't setting an action for your icon Apr 22 06:56:38 it isn't an action, it's what is relavent Apr 22 06:56:58 yes. but I like different icon on each fragment Apr 22 06:57:35 what i'm saying is setting that icon has nothing todo with an action Apr 22 06:57:40 it is what is present Apr 22 06:57:47 if I have on one fragment search icon (and action is search), on second fragmen I like sed mail so I need mail icon not search Apr 22 06:58:13 action!=toWhatYouWant Apr 22 06:58:31 on third farmgent I don't like any icons Apr 22 06:59:14 which manual I should read??? Apr 22 07:01:03 you should just read on setting the icon for currently loaded fragment Apr 22 07:03:40 I have a problem Apr 22 07:04:27 I have horizontal linearlayouts inside a vertical linearlayout, how do I get a gap between the horizontal layouts? I've tried adding margin and padding but there isn't a gap Apr 22 07:05:44 can add a between each linearylayout Apr 22 07:06:01 margins should work tho, but u pasted 0 code Apr 22 07:07:09 ok one sec Apr 22 07:08:59 canvs2321: dosen't setHasOptionsMenu and inflate new menu.xml in onCreatOptionsMenu do that Apr 22 07:09:24 hello all Apr 22 07:09:51 I'm having a very noob question if someone could help me briefly. Apr 22 07:10:34 see this is typical, I always run into this..I have a layout which has a list inside it, and that list is filled with an Adapter which works with another smaller layout (for each item in that list), now I want from my Activity to access an element from that other smaller layout Apr 22 07:10:36 canvs2321: http://pastebin.ws/1781qe Apr 22 07:10:49 hi guys - quick question. I have a mobile WEB app (accessed through a browser). this is not an android app. But what I want is that when a user clicks a particular link, it asks for facebook APP authorization. I'm presuming most people already have the FB app and are logged in. What I DONT want is to force them to login the facebook mobile web. can this be done ? Apr 22 07:11:28 what I usually end up doing is feed stuff to the Adapter instantiation and then call setAdapter again on the list to get stuff inside it to change Apr 22 07:11:55 Jonno_FTW: Why you doing it in java and not xml? Apr 22 07:12:27 canvs2321: because the elements are added dynamically Apr 22 07:13:30 well have fun w that :) it's never needed like that if programmed correctly. seems like a headache Apr 22 07:13:43 well how should I do it? Apr 22 07:13:53 make my own xml element? Apr 22 07:13:55 if anyone knows how to handle null points i would appreciate it Apr 22 07:14:34 define your layout in xml, can guarntee that you'd never need to do it that way Apr 22 07:15:05 well how would I do it in xml? Apr 22 07:15:24 how many items in your for loop? Apr 22 07:15:42 as many items as the user has interacted with Apr 22 07:16:08 then use a list, listview,gridview etc... Apr 22 07:17:30 okay i'll look into listview Apr 22 07:18:01 good cuz what u have seems exactly the same has repeating same code with different values Apr 22 07:18:17 which is a listview etc... Apr 22 07:18:26 lookup baseadapter etc Apr 22 07:20:09 canvs2321: I corect some things in xml file and I can see my new icon on action bar, but Icons form MainActivity is still present. Can you please help and and tell me how to remove them? thank. Apr 22 07:21:35 slani: i've gotta sleep, but basically, i you have a main activity, and are loading fragments, keep the action bar in the main activity,and load icons from fragments that change the main activity Apr 22 07:22:00 i roll my own action bar, so not much help to you, just logic Apr 22 07:22:45 ok Apr 22 07:25:31 when importing a jar into a project for a library, the needed class shows in a file browser, but in eclipse the directory for the class is empty, and JUnit says missing class too. Apr 22 07:58:46 i can't figure out why my first JUnit test fails all 3 tests, would someone give me a clue if i share the output Apr 22 08:00:42 i dont understand the logcat output Apr 22 08:04:04 alex_PP ? Apr 22 08:10:05 Tom Werner is out of github Apr 22 08:10:08 the fuck Apr 22 08:13:49 Hello all , i would like add file share function in my application . I read all the documentation about Network Discover Service on WifiDirect. but i have some difficulty to understand some concept. Indeed , the definition of a service is to host a server , so it makes sense to me that the "group owner in wifidirect" is the device that hosts the server but Apr 22 08:14:14 Is Openjdk ok to use on linux with ADT? Apr 22 08:14:37 as that is what is installed by default on my linux box. A test app ran fine with no problems Apr 22 08:14:43 i' have some difficulty to fixe the group owner way even using groupownerintent Apr 22 08:37:12 where to buy android beta testing and feedback? Apr 22 08:38:58 Morning all Apr 22 08:39:25 buy? Apr 22 08:39:41 you can simply use Android's own A/B Testing solution from the developer console Apr 22 08:40:16 As in buy peoples time to play with it and submit crash reports Apr 22 08:40:23 is there no thing like that, that exists? Apr 22 08:40:37 don't think so Apr 22 08:40:43 A/B Testing is for you and your company/friends Apr 22 08:40:52 you can pay them if you want Apr 22 08:40:54 lol Apr 22 08:40:56 lol Apr 22 08:41:08 but you cannot hire testers, no Apr 22 08:41:13 not through Google at least Apr 22 08:44:59 Sicp is OpenJDK ok to use with ADT ? Apr 22 08:45:52 I remember using Android on Linux, and there's only OpenJDK on Linux, so yea Apr 22 08:46:14 Sicp: you can install the oracle JDK on linux Apr 22 08:46:27 that Sun thing, never went for that Apr 22 08:46:29 Android Studio runs better using the Oracle JDK Apr 22 08:47:13 better? Apr 22 08:47:17 like how Apr 22 08:47:24 more stable Apr 22 08:48:10 actually after switching to the OracleJDK (because AS kept bitching about it) I noticed that Eclipse was more stable too Apr 22 08:48:17 if you're using android studio in the first place, I feel sorry for ya. Apr 22 08:48:25 lol + Apr 22 08:48:33 pragma-: is that a fact, grampa? Apr 22 08:48:35 O.o Apr 22 08:48:36 wat. Apr 22 08:48:38 Eclipse warriors unite! Apr 22 08:48:48 eclipse sucks even sorse. Apr 22 08:48:49 first order of business, crash! Apr 22 08:49:07 vim and commandline all the way. Apr 22 08:49:26 I hereby retract my plus Apr 22 08:49:43 Sicp: no the first order of business is to ask me what the hell R is, then have a build path problem that you're hiding three layers of menus deep! Apr 22 08:49:52 :))) Apr 22 08:50:13 the R generation problems are something I'm not missing in IDEA one bit :) Apr 22 08:50:29 I wanted to switch to AS, but that R issue put me off too Apr 22 08:51:15 anyway, AS/IDEA without Gradle seems to be the best environment right now Apr 22 08:51:22 you can have that? Apr 22 08:51:27 without gradle? Apr 22 08:51:28 um, yea? Apr 22 08:51:29 real men use bash, vim and ant. Apr 22 08:51:36 * Sicp googles Apr 22 08:51:37 all other environments are inferior. Apr 22 08:51:47 Sicp, AS will load Maven and IDEA projects Apr 22 08:51:53 Sicp, it just won't create them :) Apr 22 08:53:35 Sicp What does this error "[2014-04-22 12:48:54 - DeviceMonitor] Sending Tracking request failed!" in colsole mean should I be worried ? Apr 22 08:53:50 *console Apr 22 08:53:58 oh, you think I know things Apr 22 08:54:03 common misunderstanding Apr 22 08:54:05 Amen pragma- Apr 22 08:54:06 I don't Apr 22 08:54:10 Sicp, it has an awesome side effect of having a very fast builds ;) Apr 22 08:55:40 Sicp chill. This is IRC keep mum :) Apr 22 08:55:57 I should have asked the question more generally :P Apr 22 08:55:58 hehe Apr 22 08:56:01 haha yea Apr 22 08:56:04 Aiena, that looks like an output from some kind of analytics library. Apr 22 08:56:17 Mavrik in Eclipse ? Apr 22 08:56:34 Aiena, you didn't write - is that logcat or console? Apr 22 08:56:35 so,I'm trying to make an app that uses su + commands to do things,but,selinux is denying me shell access,any clue? Apr 22 08:56:46 Mavrik jusrt console Apr 22 08:56:50 not logcat Apr 22 08:56:56 Aiena, hmm, wierd then :) Apr 22 08:57:08 so,it's not su,as I can't even use "echo ohai" as a command Apr 22 08:57:08 this happened when importing some projects from a published book Apr 22 08:57:17 helicopter88, yeah, that's by design. Apr 22 08:57:27 after 4.3 or 4.4 or so SELinux is enabled by default Apr 22 08:57:32 I know that Apr 22 08:57:36 only one import shows a red exclamation mark but no cross before there was a problem with not having API 17,18 and 8 present that I remedied Apr 22 08:57:42 but there has to be a way to overcome this Apr 22 08:57:54 helicopter88: install a better SuperUser. Apr 22 08:58:11 e.g., one that uses a su daemon forked off of init. Apr 22 08:58:30 pragma-, but if I have to distribute the app,I can't be sure that everyone has a working su Apr 22 08:58:38 yup, they're shit out of luck. Apr 22 08:58:57 Aiena, not related to your code Apr 22 08:59:03 but good thing most rooted roms already have a fixed su or don't have selinux enforced. Apr 22 08:59:40 pragma-, well,I'm running openmaster + kouhs superuser,so probably I'm the worst case scenario Apr 22 08:59:42 imo, you aren't responsible if the user has a broken system. Apr 22 09:00:03 I think koush fixed his su in late 2013 Apr 22 09:00:18 just make sure to detect if things aren't working and tell the user, and that's all you can do Apr 22 09:00:25 aviraldg not sure if my error and https://stackoverflow.com/questions/3980023/devicemonitorsending-jdwp-tracking-request-failed-in-eclipse-android are the same Apr 22 09:00:27 here doesn't work,but could be due to stupid strict selinux policies on OM Apr 22 09:00:30 still, even openmaster with a recent CWM/SU should let you echo Apr 22 09:00:45 there one extra term "jdwg" is there whereas as mine is only tracking request failed Apr 22 09:00:49 as a root developer, selinux is really, really annoying. Apr 22 09:01:08 Chainfire, <5>[ 1034.204964] type=1400 audit(1398156114.899:1742): avc: denied { sigchld } for pid=4545 comm="sh" scontext=u:r:z Apr 22 09:01:08 ygote:s0 tcontext=u:r:init_shell:s0 tclass=process is all I see when calling a shell doing anything Apr 22 09:01:38 when did you last sync AOSP ? Apr 22 09:01:52 helicopter88, http://su.chainfire.eu/#selinux Apr 22 09:01:53 because they have made changes since 4.4.2 that breaks some root stuff Apr 22 09:02:05 if that helps. Apr 22 09:02:31 they'd rather we called it SEAndroid Apr 22 09:03:48 Chainfire, i'm running a openmaster build that's probably less than 1-2week old Apr 22 09:03:50 my app requires being able to create netlink sockets... a lot of seandroid roms block netlink sockets Apr 22 09:04:10 and to make things worse, the latest Samsung firmwares use a completely different set of policies that are sometimes more sometimes less restrictive than AOSP Apr 22 09:04:10 I will try with supersu,pheraps that does the trick Apr 22 09:04:24 for example, there is no way taht I know of to switch contexts on the latest Sammy firmwares Apr 22 09:04:32 samsung less restrictive? you mean MORE restrictive, surely Apr 22 09:04:44 usually, yes Apr 22 09:05:51 guess I'll have to build a flash a new AOSP build to test if everything still works ... Apr 22 09:06:08 How do people usually deal with ContentProviders and multiple tables -- it's rather unwieldy to use a single one (chains of switch-case?) Apr 22 09:06:18 Chainfire, you're lucky that there aren't many idiots like me running openmaster :) Apr 22 09:06:50 you'd be surprised.... I have tested last on AOSP build two months ago and everything was working then ... Apr 22 09:07:49 check how many commits gets se* on aosp review and you'll see that 2mo are ages Apr 22 09:08:05 is eclipse slower than android studio on mac osx, or is it just me? Apr 22 09:08:08 why bother, it's quicker to build and to test than to go through that mess ;) Apr 22 09:08:22 just scrolling the page down at high resolution isn’t smooth, for example Apr 22 09:10:52 and how to turn on automatic intellisense in eclipse? (in the .xml layout files as well)? Apr 22 09:11:22 Chainfire, now it seems (with supersu) that shell works,but I'm getting denials on read and write Apr 22 09:12:30 read and write? Apr 22 09:13:26 "E/art ( 5875): invalid stream - problem with parameter iterator in /system/app/Superuser.apk" Apr 22 09:13:28 wut is this Apr 22 09:13:59 no idea without further context Apr 22 09:14:04 <5>[ 219.906839] type=1400 audit(1398158020.064:210): avc: denied { read write } for pid=6708 comm="app_process" path="socket:[33460]" dev="sockfs" ino=33460 scontext=u:r:zygote:s0 tcontext=u:r:init:s0 tclass=unix_stream_socket Apr 22 09:14:18 ugh, now that Apr 22 09:14:25 this is dmesg when calling su -c cp -f Apr 22 09:16:29 latest sammy roms have something similar - you cannot connect to sockets created by core processes Apr 22 09:17:00 that's going to be a proverbial female dog to work around, nothing I can do for you now until I've played with this myself Apr 22 09:17:24 well,I thought it was my error,but seems like it's not my fault <3 Apr 22 09:17:32 thanks Chainfire Pragma and Mavrik Apr 22 09:25:18 Chainfire, well,supersu worked Apr 22 09:25:29 did some odd shit,changed some paths,but now it works lol Apr 22 09:25:46 details? Apr 22 09:29:13 g00s: did you sort your shit out ? Apr 22 09:30:49 bankai_au yeah, combineFunction is called on the thread of the item emitted by the latest observable Apr 22 09:31:14 even if observeOn is specified ? Apr 22 09:32:24 yeah Apr 22 09:32:34 gotcha, i'll store that for later :) Apr 22 09:33:54 observeOn effects the item emitted by combineLatest itself Apr 22 09:47:59 the effing fused location provider is too damned complicated, I think I now have GoogleMaps V2 and Fused Location having issues due to a race condition Apr 22 09:48:33 I know it has to be this way, but that doesn't make it any less exasperating Apr 22 09:56:20 someone a good tutorial for Dagger? Apr 22 09:56:49 Chainfire, for some reasons,even su was failing as chmodding and chowning a file in app's data/files folder,switched to SD,now everything works beautifully Apr 22 10:01:53 Hi all, I need to create some identification so that not everybody can use my app. Is it possible to create something by sending an email with a code / url to some users. And with opening the url on a device, it's been activated? Apr 22 10:06:43 Click66: have you checked the official docs? Apr 22 10:12:05 is it possible to have something like this: /res/drawable/country_flags, or isn't it allowed to have a sub directory inside "drawable" folder Apr 22 10:17:57 Is there a calendar view library that allows to write text on the cells and has onSelectDate event? Apr 22 10:26:07 HI all is it posible to slide a background image over the screen (image is twise the size of screen only X slide Apr 22 10:26:12 I have a custom object which contains a countryCode (string example: "bel"), I also have 100+ country flags in my drawables: "bel.png". How can I get the image with the country code string? Apr 22 10:34:25 how can i turn on auto-intellesense in xml layout files, in eclipse? Apr 22 10:51:59 bankai_au: Yes, I followed the tutorial but my example doesn't work. Apr 22 10:52:26 what's the error? Apr 22 10:53:30 Why would BluetoothSocket.connect throw an IOException? Apr 22 11:18:49 When using dagger for DI he complains about not having a injectable members on java.lang.Integer. Apr 22 11:30:21 Solved the problem :) Apr 22 11:37:38 Hm, should i use Dagger? pros / cons anyone? Apr 22 11:38:21 how do you develop for android without using eclipse/adt? Apr 22 11:40:02 psryn you can use android studio Apr 22 11:42:43 psryn, can you explain more about what are you trying to do / what's bothering you? Apr 22 11:43:54 psryn lay down here on the couch, tell us how you feel Apr 22 11:53:02 * sabton slaps bubbleguuum around a bit with a large trout Apr 22 11:54:31 should onDestroy be called when the user swipes away my app from the app switcher? Apr 22 11:54:42 haha i forgot about the slap Apr 22 12:45:10 hi Apr 22 12:45:38 i have an app in play store, i have this errors in my console of developer: java.lang.NoClassDefFoundError: android.security.MessageDigest Apr 22 12:45:40 why? Apr 22 12:51:45 Hi. I have a TextView that updates its contents by calling a method in a TextGenerator instance. Internally the TextGenerator instance sometimes changes state (color). I want my text view to change color whenever the TextGenerator changes state. Apr 22 12:52:15 I would like to create a custom event in TextGenerator and listen to the "coloChanged" event from the text view Apr 22 12:52:18 is tht possible? Apr 22 12:52:34 or the wrong approach entirely Apr 22 13:05:03 can i use xml resources to create a string that consists of text with an ImageSpan in it? Apr 22 13:05:17 like "Click this icon: to do x" Apr 22 13:08:08 t0th_-: http://stackoverflow.com/questions/11407685/what-is-android-security-messagedigest Apr 22 13:30:07 well, when the power manager (provided by the producer [lenovo] ) kills my app after locking the phone, which is does after 30 seconds all the alarms which are set with set() of the AlarmManager are cancelled Apr 22 13:30:18 This answer says the different story though, http://stackoverflow.com/questions/11241794/alarm-set-in-app-with-alarmmanager-got-removed-when-app-force-stop Apr 22 13:30:24 So I wonder if there is something to be done by me? Apr 22 13:31:56 * Omnipotent pokes SimonVT and hides Apr 22 13:41:59 hey all. I want to make a notification that displays a dynamic number (999 or less) in the status bar, but all I'm seeing online is how to make that an icon Apr 22 13:42:11 are you only allowed to notify in the bar with an icon? Apr 22 13:42:22 if so, how is my weather app showing the temperature? Apr 22 13:42:50 .setNumber Apr 22 13:44:03 Oh, you mean the status bar? Sorry. Apr 22 13:44:56 yeah sorry aviraldg Apr 22 13:45:12 yes I mean a number right next to the carrier, etc Apr 22 13:45:26 I suspect that my weather app has icons for all possible temperatures Apr 22 13:45:34 and shows whichever one is appropriate. is that right? Apr 22 13:46:16 I mean, if it's not possible to show text in that bar, that's the only way? Apr 22 13:46:49 Yes, but I guess it's slightly better than simply setting different drawables. Apr 22 13:47:19 See: http://developer.android.com/reference/android/graphics/drawable/LevelListDrawable.html, http://developer.android.com/reference/android/app/Notification.html#iconLevel Apr 22 13:50:26 Is there a better way of achieving this? http://stackoverflow.com/questions/13934010/progressbar-under-action-bar Apr 22 13:51:23 what is an "icon level"? Apr 22 13:52:51 ok I'm getting it, nvm Apr 22 13:58:03 Can retrofit be used to receive html pages? or is it only JSON? Apr 22 13:59:44 It can, but you probably wanna use something else Apr 22 14:01:31 aviraldg, Could you kindly help me? Apr 22 14:03:00 I believe that is expected behaviour (on newer versions of Android) Apr 22 14:03:58 If your application is explicitly closed, it will remain in that state unless opened again (this includes things like alarms, background threads, etc) Apr 22 14:19:45 false Apr 22 14:25:21 force stopped yes, swiped away no Apr 22 14:28:33 Should've prefixed that with an `afaik` Apr 22 14:29:00 Mavrik is that documented anywhere ? Apr 22 14:29:06 pfn, how exactly? That's how it I've seen it work. Apr 22 14:29:25 g00s, uhh, I've read it in android docs... somewhere. Apr 22 14:29:34 hmm Apr 22 14:30:20 only thing i can remember is Service#onTaskRemoved Apr 22 14:30:23 Anyway, any ideas about what I asked? Apr 22 14:31:24 i'll have to read http://developer.android.com/guide/components/tasks-and-back-stack.html over again Apr 22 14:31:27 How do you get a progressbar right below an actionbar (a la Chrome)? Adding it to the layout seems to work, but looks different. Apr 22 14:31:32 we're talking about alarm manager, yes Apr 22 14:31:37 swiping away will not clear alarm manager Apr 22 14:31:45 nor will force closes of any kind Apr 22 14:31:52 only a reboot clears alarm manager Apr 22 14:32:16 and foreground services do not killed by swipe away Apr 22 14:32:53 and no, force stopped apps can restart on events, not just on being "opened" Apr 22 14:36:38 pfn, docs? link? Apr 22 14:37:06 since last I checked Android explicitly prevents restart of apps (and clears events) after force close is issued in apps Apr 22 14:37:16 well, swiping away seems to kill some foreground services, but this is a known bug (63793) Apr 22 14:37:45 Mavrik, This is what I was talking about earlier: http://developer.android.com/about/versions/android-3.1.html#launchcontrols Apr 22 14:37:57 oh, looks like they applied the patches to aosp to fix Apr 22 14:38:43 should apply here too, no? Apr 22 14:39:01 mhm Apr 22 14:39:23 still can't find any decent documentation on the stopped state Apr 22 14:45:31 Mavrik, no docs, but gcm always restarts my force stopped apps, force stopping clock apps will always have their alarms run, etc. Apr 22 14:45:53 (force stopped apps that have gcm listeners) Apr 22 14:46:15 yeah, as it looks you need to set a flag to intent when triggering broadcast to get it delivered to stopped apps Apr 22 14:46:20 GCM probably sets that Apr 22 14:47:49 include_stopped_packages is default Apr 22 14:50:05 How do you guys handle taking over development of an App? Since they have to be signed, can you change the signature of the app? Apr 22 14:50:58 you cannot change signature Apr 22 14:52:39 pfn: So I'm guessing that the best approach is have the client (dev account holder) create their own keypass so that they can optionally use another vendor in the future? (Of course no one else will be this nice to me) Apr 22 14:53:07 Elderwolf, huh, apps should always be signed with an explicit key Apr 22 14:53:24 and that key should stick with the app for the life of the app using whatever key management process you want Apr 22 14:55:44 pfn: When my clients want to change from their old app provider to me, i just wish their old providers would ahve that attitude. They mostly refuse to give the keystore or simply don't know what i'm talking about. So new app gets created. Apr 22 14:56:06 well, the client needs to demand the key Apr 22 14:56:13 because the key belongs to the app Apr 22 14:56:37 it's not your responsibility Apr 22 14:57:07 my clients need hand holding and possibly a helmet Apr 22 15:02:28 pfn notice updated haxm in sdk manager ? Apr 22 15:02:56 Elderwolf, then you proxy through your client to demand the key Apr 22 15:03:51 g00s, no, I haven't, it works well enough for me as-is so I'm not updating any time soon Apr 22 15:04:48 ah, thats good. ne of the reasons why i went to genymotion was because haxm was hanging my mac Apr 22 15:05:02 no point in switching now though Apr 22 15:06:54 where in the idea settings can I tell it to downloads the javadocs/sources for the gradle APIs for build.gradle file? It prompted me once to do it and I said yes but next time I fired it up the API help wasnt there. Apr 22 15:19:27 whats the best method to wrap an http api? using a contentprovider? new android dev here. Apr 22 15:28:20 just wrap it in a standard java way Apr 22 15:28:34 use content providers if some specific interface requires it, or you're sharing the data to other apps Apr 22 15:31:04 ok thanks pfn Apr 22 16:10:25 http://pastebin.com/tWbYy5Q2 I am going crazy over this, the code was working the other day :( When I get to TabActivity.class onResume the Intent.getType() is null :((( Apr 22 16:10:54 Is there something significantly worng with the code :/ Apr 22 16:22:52 anyone here knows how keychars and keylayout files are handled in 4.4? Apr 22 16:40:19 Hi folks, is there any way to make my opengl app stay within the system bars rather than underneath them. For example, I want to see the status bar but I dont wan the gl context to extend underneath it Apr 22 16:50:06 p_l, did it change? Apr 22 16:50:59 pfn: well, apparently for *some* devices Apr 22 16:51:06 p_l, neat Apr 22 16:51:09 that is, some ASUS tablets had non-standard behaviour Apr 22 16:51:26 because Android still doesn't have multilang physical keyboard Apr 22 16:51:52 so now I have to develop a new keymap Apr 22 16:52:00 ... somehow managing to not blow up the default one Apr 22 16:53:08 How do I grant URI permissions to an Intent's EXTRA_STREAM? Apr 22 16:56:15 How do you stop a gl frame extending under the system status-bar ? Apr 22 17:00:37 Tobbi, you grant it in your content provider Apr 22 17:03:49 hello Apr 22 17:04:00 I cannot get ADB to work on Windows 8 Apr 22 17:14:13 pfn: I have granted it (android:grantUriPermissions="true"). But when I pass in the URI to the email app, it still won't work. Apr 22 17:20:16 can i put up a non-dialog or view over another app (eg via system dialog)? Apr 22 17:26:31 I’m setting FLAG_NOT_TOUCH_MODAL and its still not sending touches behind it..:/ Apr 22 17:27:56 mylord two ways, either draw the view on top, or if you're doing this from within the system, there's a permission for that Apr 22 17:28:50 i’ve set android.permission.SYSTEM_ALERT_WINDOW Apr 22 17:29:06 can i draw atop another app in a diff way? using view? how? Apr 22 17:30:19 Anyone successfully pass a content value object between processes as an obj in a message via a messenger? Apr 22 17:32:42 how I turn off the damn status bar? Apr 22 17:32:47 following the manual don't work Apr 22 17:36:27 MohammadAG: how do I draw the view on top (of another app)? What do I need to set to have it appear atop (while another app is currently in foreground process)? Apr 22 17:36:48 there's a lib that makes this easier Apr 22 17:36:56 https://github.com/pingpongboss/StandOut Apr 22 17:37:04 dig into the source if you want to know how without it Apr 22 17:37:15 GODAMN STATUS BAR!!! HOW I DISABLE IT??? Apr 22 17:39:07 you mean like in this answer? http://stackoverflow.com/questions/16264650/android-how-to-draw-view-over-top-of-everything Apr 22 17:39:15 but that uses system alert, right? Apr 22 17:40:05 Tobbi, what url are you passing? and are you passing a content uri? Apr 22 17:40:14 Is my Android OS version considered a developer OS if I enable developer mode on my device? Apr 22 17:40:33 no. Apr 22 17:40:48 developer OS? Apr 22 17:40:53 you mean a debug build? no Apr 22 17:41:10 No wonder hierarchy viewer doesnt work Apr 22 17:41:24 get viewserver if you want to hierarchy viewer on-device Apr 22 17:41:34 yeah im checking it out right now Apr 22 17:41:47 Where would I get the developers version os? Apr 22 17:41:57 is it really required? Apr 22 17:42:11 you don't Apr 22 17:42:12 Wait would developer version entail native development and what not? Apr 22 17:42:14 you build it yourself Apr 22 17:42:18 oh okay Apr 22 17:42:25 so i dont need it Apr 22 17:51:00 pfn: I fixed it by granting URI permissions to all capable apps when sending the attachment. Apr 22 17:54:06 <_Rarity> Hi. If I have an bitmap in my app that I want the user to either share or save to SD, what kind of intent should I use? Apr 22 17:55:42 hi Apr 22 17:56:30 I have a question... does anyone know how to use the CLI to install app code I've built onto my Android device? I want to do this and then somehow use ndk-gdb to launch it. Apr 22 18:02:07 _Rarity: I don't think there is an intent. Instead call Bitmap.compress(OutputStream), where OutputStream is the location you want to save to Apr 22 18:02:53 Sorry it needs more arguments than just the one https://developer.android.com/reference/android/graphics/Bitmap.html#compress(android.graphics.Bitmap.CompressFormat, int, java.io.OutputStream) Apr 22 18:03:48 Gorroth, what exactly do you have? Apr 22 18:04:06 Have with what? Apr 22 18:04:25 I guess you mean the device; I have a Nexus 10 Apr 22 18:04:47 you're talking about "app-code" Apr 22 18:05:07 do you have an actual APK? Apr 22 18:05:32 Yes, Eclipse creates one when I do an install. However, I'm trying to create one from the CLI at the moment as well. Apr 22 18:12:55 I want to know the devices Roll and have it be relative to the device (like the gyroscope output) instead of relative to the world, but I want it from the Accelerometers. So no matter which way you are holding the device, you can turn it through the axis that runs from top-bottom and know how much you rotated through that axis. Apr 22 18:15:28 At a glance, how does GCM relate to push notifications? Do I need a backend server that communicates to wherever GCM is, which communicates to an Android device? Apr 22 18:17:07 okay... I got ant to build something for me via "ant debug". Apr 22 18:17:44 shoerain, yes Apr 22 18:17:49 I don't see it using my libcustom.so in building the apk, however. Apr 22 18:17:57 shoerain, [Your sever] -> [Google GCM server] - > Device Apr 22 18:18:18 shoerain, you have to signal device ID from your device to your server, which then does REST requests to Google GCM servers each time you want to push something Apr 22 18:19:24 Mavrik: ah, that's all I wanted to know. Thanks! Apr 22 18:26:40 Anyone here that developed an app that uses Google Appengine and works on both Android and iOS? Apr 22 18:27:00 Is it easy to develop for iOS as well if you start with google appengine and android? Apr 22 18:27:12 what's google app engine have to do with it? Apr 22 18:27:24 it's just a backend server tech Apr 22 18:27:32 you define interface and communication like you want. Apr 22 18:29:58 check out the sourcecode for open data kit Apr 22 18:30:01 I belive it's ios too Apr 22 18:30:09 Is it worth adding a Promo Graphic for my apps? The site says its for OS versions earlier than 4.0, so I'm not sure its worth the time? Apr 22 18:50:14 I am creating a custom object that contains the items of each element of a listView. So, for example, in this object i have String username, String title, etc. if one of the elements of the ListView is an ImageView, what should the corresponding type be in the object? Apr 22 18:52:36 klaw, probably image path or URL? :) Apr 22 18:52:51 Drawable or Bitmap or even a integer for Resouce Id to an image if loading later. What's the image you are loading? Apr 22 18:52:54 since you probably don't want to load them all at once and keep them in memory as BItmaps Apr 22 18:55:46 i'm getting the image from a db, so it's not in my directory Apr 22 18:56:32 uh. Apr 22 18:56:40 I've been able to get ndk-gdb all setup and working from the CLI for debugging my app. Apr 22 18:56:50 Have any of you successfully used it from within qtcreator? Apr 22 19:04:47 Hi :) Apr 22 19:05:26 Based on this thread http://stackoverflow.com/questions/19297268/uploading-an-image-to-google-appengine-using-robospice-with-retrofit Apr 22 19:07:51 I try send a file to my server, as i see on server side i got incoming POST request with Content-Type: multipart/form-data; but after a while on android side i get: retrofit.RetrofitError: java.net.SocketTimeoutException Apr 22 19:24:44 hetii does it happen every time or just sometimes? Apr 22 19:29:45 çQuestion: Whats the advantage of using layoutfragment instead of hosting fragment in activity ? Apr 22 19:31:49 hetii: sounds like either the transfer takes much too long or connection is bad Apr 22 19:40:37 I have used ToggleButton And applied OnCheckedChangeListener but in my listener I am having some conditions and if condition doesnt match I dont want to change state of my toggle button. I tried button.setChecked(false) but it calls same listener again. Apr 22 19:40:45 if there any way to change state and UI of toggle button without calling its listener?? Apr 22 19:42:00 danijoo: i trydeliver file by curl from my pc (the same network) to the same destination server and it pass Apr 22 19:42:11 harpal: you should not call its listener to change state and ui of a toggle button Apr 22 19:42:32 harpal: a toggle button has a method with which you can set its state with Apr 22 19:43:03 hetii: did you set a timeout for retrofit? maybe it takes to long and retrofit (or the underlying httpclient) closes the connection Apr 22 19:46:30 danijoo: to be honest i don`t know where i can provide it, btw as far as I see picture are delivered to my server (can save it and delivered) but then looks like robospice wait for some additional response or confrimation that picture was delivered Apr 22 19:47:07 sorry i never worked with robospice Apr 22 19:47:26 ohcibi: Which method?? Apr 22 19:47:56 hetii I was getting retrofit errors on POST requests until I switched to Okhttp. Turned out to be some issue with the Android HttpClient before 4.3 I think Apr 22 19:48:44 mattblang: doesnt retrofit use OkHttp by default? I thought so Apr 22 19:48:55 only when it's included Apr 22 19:49:29 ohcibi: I am not able to file such a specific method except setChecked but that is calling listener.. Apr 22 19:49:53 ohcibi: Can you give me method name?? Apr 22 19:50:04 Oh JakeWharton himself :) hello Apr 22 19:50:21 mattblang: can you proide more detail how you add it? Apr 22 19:51:10 hetii you have to add okhttpclient library Apr 22 19:51:33 and then there is something like setClient(..) when you create the service Apr 22 19:52:00 hetii I added it to my Gradle file, and then used .setClient(new OkClient()) when building my RestAdapter Apr 22 19:52:16 hetii but, I have read, and JakeWharton can probably tell you this for sure, that as long as it is in your build path then Retrofit will use Okhttp Apr 22 19:52:59 yes Apr 22 19:53:05 \q Apr 22 19:53:15 errr sorry guys wrong direction Apr 22 19:53:57 ok i try figure out this method. BTW what is your recomendation if i need transfer avaiable pictures to my server?, for eg, some synchronization for every 10 minutes? Apr 22 19:54:39 My plan was to use robospice for that but no sure if I made right decision Apr 22 19:54:58 if GeoCoder class isnt accurate then what else could I use that is? Apr 22 20:34:53 Ok, i don`t set client to okHttp instead just return '{}' from my server and it works Apr 22 20:35:37 btw I notice that robospice try resend file some error occure, how can i control that ? Apr 22 20:51:27 Currently when i make a picture I need use subclass of SurfaceView to display a preview from my camera, also I notice that my phone need to wait a while when he stop/start preview and make next picture. Apr 22 20:51:57 Is it possible to not use preview at all and caputre picture in faster way ? Apr 22 20:55:19 You guys know how to make gdb.setup include additional paths in solib-search-path? I basically want to add the path to the NDK's non-stripped .so's, but I don't want to have to do it manually each time I start the debugger. Apr 22 20:57:15 Hmm, actualyl, looks like I can change it in the Eclipse debug config setup Apr 22 21:14:02 JakeWharton: your Dagger talk tonight will have free stuff for each attendee under the chairs a la Oprah confirm/deny Apr 22 21:14:14 there's an I/O ticket under each seat Apr 22 21:14:21 keep it a secret Apr 22 21:14:46 lol Apr 22 21:15:01 I was considering entering the lottery, but I wouldn't be able to pay for trip to SF anyway :) Apr 22 21:15:17 JakeWharton: the lottery was not kind to me :( i think the company is getting some tickets though >_> Apr 22 21:15:56 p_l same here. I am academic, but in Mississippi, lol Apr 22 21:17:58 Is there a way to query the fragment/activity to determine which part of its lifecycle it's in? (resumed, paused, stopped, etc) Apr 22 21:19:53 http://stackoverflow.com/questions/23121895/my-android-app-is-not-being-updated-on-the-google-play-store Apr 22 21:19:54 can someone help me out? Apr 22 21:20:01 there are getters (well, is-ers) for some of the states Apr 22 21:20:07 are there any alternative apis/wrappers etc for general development? (other languages welcome) Apr 22 21:20:27 is-ers, lol. i like that Apr 22 21:21:40 robhol The Cobol wrappers are great. http://www.coboloncogs.org/INDEX.HTM Apr 22 21:22:19 c-cobol? 0.o Apr 22 21:23:50 oh. very funny. :p Apr 22 21:24:02 robhol :P Apr 22 21:24:23 what type of work are you doing? Apr 22 21:25:03 mostly just general app development. potentially. Apr 22 21:26:58 it's a bit hypothetical at this oint- just curious if there are any viable alternatives to the standard api Apr 22 21:28:42 hi. I set android:screenOrientation="landscape" and android:configChanges="orientation" in AndroidManifest.xml but its not fixed. I'm able to rotate. Any ideas? Apr 22 21:36:05 Is there a way to start debugging an app from Eclipse without eclipse reinstalling the app every time? Sometimes I don't make changes but just want to debug. Apr 22 21:37:39 Q: what is better choice, save file image into local storage before sending or send it as a byte array and save only on failure? Apr 22 21:39:33 From what I gather, this channel isn't really about having people answer questions. Instead, it's more about asking questions and then continuing to figure it out on your own. Apr 22 21:40:07 hi anyone know why this will return null on Android 4.1 and above? Bitmap thumbnail = ThumbnailUtils.createVideoThumbnail( videoUrl, MediaStore.Video.Thumbnails.MINI_KIND); Apr 22 21:40:27 Gorroth: Well, you can always have hope :) Apr 22 21:40:33 hehe Apr 22 21:41:50 Gorroth hah, go visit #spring and you will truly know the meaning of talking to yourself Apr 22 21:42:08 mattblang: lol Apr 22 21:42:36 Well, luckily, I've been able to figure out most of the things I need to know on my own or with coworkers figuring things out too. Apr 22 21:42:47 Some of the stuff is pretty deep though. Apr 22 21:42:51 singleplayer multiplayer notepad Apr 22 21:46:47 I'm really desperate why my activity doesn't go into landscape although I defined this in AndroidManifest.xml. Apr 22 21:46:55 Please, I really need some help. Apr 22 21:47:52 Varakh so you set android:screenOrientation="landscape" for the activity you said? Apr 22 21:48:02 yes, I did. Apr 22 21:48:30 https://paste.xinu.at/h8gXtDj/ Apr 22 21:48:38 That's from my manifest. Apr 22 21:49:52 What does the adb connect command actually *do*? Does it allow you to connect to another adb server to aggregate, or is that just for connecting to a device? Apr 22 21:53:32 FrozenFire: its for connecting to a device to debug over tcp/ip Apr 22 21:54:29 for example google tv or android wear, a lot of third party roms also have remote debugging so you dont have to use a usb cable Apr 22 21:54:37 Ah. Is there any simple way to aggregate multiple adb servers? I'm going to be having several geographically-separated hosts which reverse SSH tunnel the local ADB server to a central host Apr 22 21:54:49 Varakh weird, and that isn't working... try portrait and see what it does. could you post any of your activities in a pastebin? Apr 22 21:55:01 Was hoping to be able to aggregate that in a single ADB server on the central host somehow Apr 22 21:55:39 you could just port forward the debugger port to the host Apr 22 21:55:51 When you debug an application, are you really debugging the VM that the app is running in? Apr 22 21:55:56 you wouldnt actually have a local instance running Apr 22 21:56:40 Is there any functional difference between the USB interface and the TCP interface in that respect? Apr 22 21:56:56 I was going to use the USB interface on the assumption that it might provide a more robust connection Apr 22 21:57:16 It'd also handle connection/disconnection of devices more automatically, no? Apr 22 21:57:31 mattblang: i inherite from https://paste.xinu.at/P7dk4Fv3s/ and this is the one i want to have in landscape via manifest: https://paste.xinu.at/T6K0id/ Apr 22 21:57:54 FrozenFire: is all this for a build server or something? Apr 22 21:57:55 yes, you just plug in or out the cable as opposed to `adb connect/disconnect` Apr 22 21:58:02 but it is essentially the same Apr 22 21:58:18 FrozenFire what about JDWP? Apr 22 21:58:27 bankai_au, Localized telecommunications connectivity testing Apr 22 21:58:42 E.g. ensuring that SMS are delivering to a given region on a consumer network Apr 22 21:58:51 mattblang: nothing important there, or? Apr 22 21:59:06 varakh give me one sec and Ill take a look Apr 22 21:59:11 Does anyone know if there is a way to superlcass .stub aidl interfaces? Apr 22 21:59:14 okay, thanks Apr 22 22:03:14 I can't install ADT Plugin on eclipse kepler Apr 22 22:03:18 any idea? Apr 22 22:04:51 use AndroidStudio, way better :o Apr 22 22:05:38 Does anyone know of a customizable framework for building a store application? Apr 22 22:05:53 My local coffee shop is interested in a simple "app in a can Apr 22 22:06:15 Something to potentially track purchases as points and allow customers to redeem points Apr 22 22:07:25 Weird, inflated layout has TextureView, finding in onCreateView setSurfaceTextureListener( this ); but the onSurfaceTextureAvailable method is never called. Apr 22 22:08:05 am I missing a step? Apr 22 22:08:48 MalekAlrwily Varakh use Android Studio :P Apr 22 22:09:01 i d Apr 22 22:09:02 do Apr 22 22:09:03 * Apr 22 22:09:03 :D Apr 22 22:09:12 Varakh yeah, was backing you up ;) Apr 22 22:09:16 but nvm mattblang. do you have a clue? Apr 22 22:09:26 im starting to get mad at android ... Apr 22 22:09:33 we're all mad at android Apr 22 22:09:40 solved :) Apr 22 22:10:15 i like eclipse <3 Apr 22 22:10:34 MalekAlrwily I used to too, then I found IntelliJ Apr 22 22:11:04 Sorry, IntelliJ? Apr 22 22:11:14 MalekAlrwily what Android Studio is based on Apr 22 22:11:29 Oh Apr 22 22:12:32 maybe i'll test Android Studio in next week ;) Apr 22 22:13:00 mattblang: ? :D no time to look at my code? Apr 22 22:13:13 varakh im checking it now actually Apr 22 22:13:16 i cannot go further without solving it, thats my problem :X Apr 22 22:15:39 hey, I'm trying to define an emulator device for a display which is 1920x1080 Apr 22 22:15:47 I'm having hard time with dpi-s Apr 22 22:16:24 Varakh try taking the android:configChanges="orientation|keyboardHidden" out Apr 22 22:16:28 Varakh tell me what happens Apr 22 22:16:35 I would like to be able to define an 300pxX300px area in en emulator and then see it exacly in the real device Apr 22 22:16:47 atm dpi causes the thing to scale Apr 22 22:28:07 does asynctask block a thread? Apr 22 22:28:53 not unless you have a while loop in onPostExecute Apr 22 22:31:38 ok thanks Apr 22 22:34:06 who was I just helping with the landscape problem. at home now and can't see my log Apr 22 22:48:50 mattblang It was Varakh Apr 22 22:50:00 ok what's up with Android Studio not being able to apply patches because 'Access Denied' all of a sudden, how come it was applying all the other patches fine till now ??? Apr 22 22:50:01 Hey guys Apr 22 22:50:52 codeguru thanks man Apr 22 22:50:55 Anybody have experience integrating Vungle ads on back-press? Apr 22 22:50:56 now I get this dialog that says 'There are some conflicts found in the installation' 'Please select desired solutions from the Solution column and press Proceed.' Apr 22 22:51:14 and the Solution column doesn't let me select anything other than IGNORE Apr 22 22:52:56 I've got Vungle as active and it's telling me it's installed on devices, but when I try to initiate an ad using the back button nothing triggers. Apr 22 22:54:30 Gah! I call "setRetainInstance( true )" and still onDestroy and onCreate are being called -- it's not on the back stack either. Apr 22 22:54:44 (the calls are coming during rotation) Apr 22 22:56:25 ah... that was dumb... checking for fragment tag in the activity, but I forgot to _set_ the fragment tag. Apr 22 23:21:32 I get "called unimplemented OpenGL ES API" when calling glMapBufferOES, my manifest: http://codepad.org/BDRtXtbC any idea what I might be missing? Apr 22 23:39:31 E/dalvikvm Could not find class 'android.support.v4.app.FragmentActivity', referenced from method com.robotium.solo.Waiter.getSupportFragment. I'm getting this error when running a JUnit test. Apr 22 23:39:51 Does this mean the library is missing from my applicaton, or the JUnit test? Apr 22 23:44:24 why does "int day = datePicker.getDayOfMonth();" cause a nullPointerException? Apr 22 23:45:46 datePicker is null most probably Apr 22 23:51:33 but its not Apr 22 23:54:23 actually bankai_au you are right…it is Null, but why? i know it has a date value in it Apr 22 23:54:49 how would i know the answer to that ? it's your code ... Apr 22 23:55:21 aha Apr 22 23:55:29 just like you knew it wasn't null? Apr 22 23:56:26 errant_rider: probably your findViewById returned null -- does your datepicker exist in that layout ? Apr 22 23:57:29 i forgot to findviewbyid…that was it Apr 22 23:57:40 is there an easy way to reset the date picker back to default onClick? Apr 23 00:01:24 ahah foud it Apr 23 00:04:04 can someone please help me? i created a project in eclipse on android but the Blank Activity screen is not going away https://www.dropbox.com/s/0n2kkxjh2sp7tuk/Screenshot%202014-04-23%2001.56.28.png Apr 23 00:06:09 did you click finish? ;) Apr 23 00:06:20 many times Apr 23 00:06:23 it won’t go away Apr 23 00:11:45 what is the maximum amount of logic that is generally acceptable in a BroadcastReceiver? Apr 23 00:13:09 I'm watching for an intent that signifies that a device is on the person or off (Don and Doff). When you Don I want to display a View and when you Doff you get logged out. Apr 23 00:13:37 I have it in a Service but I'm wondering if its pointless Apr 23 00:14:57 does anyone know how I can pass an object to the Intent object in the BroadcastReceiver's onReceive(Context contex, Intent intent) method? This is being used with a DownloadManager that uses 'context.getSystemService(Context.DOWNLOAD_SERVICE);' The BroadcastReceiver is being called without me doing sendBroadcast(). My question is posted on SO here http://goo.gl/2HL325 Apr 23 00:19:14 Hi. When is ViewTreeObserver$OnGlobalLayoutListener#onGlobalLayout is called? Before or after the view's hierarchy layout? Apr 23 00:24:09 sigv: run it from CLI and see if it outputs any errors to STDOUT Apr 23 00:26:20 If I'm consuming an XML REST API, should I map XML->Object->SQLite->Object, or store the XML documents on the file system? Apr 23 00:27:53 I think you should let off the drugs first? if all you need is caching, storing the documents on filesystem is enough (higher level: storing in fast-loadable format instead of XML) Apr 23 00:29:14 if instead your SQLite database is your primary data store, you should just generate your applications objects based on data from XML, then eventually persist them Apr 23 00:35:26 does anyone know how to make glMapBuffer available in openglES1.1 on android NDK ? Apr 23 00:41:20 Entelin: I don't think it exists on any OpenGL ES version Apr 23 00:41:39 ok Apr 23 00:42:39 Entelin: you might have luck if the device has extension GL_OES_mapbuffer, I guess? Apr 23 00:42:54 any one have any suggestion about my missing library question? Apr 23 00:42:57 :) Apr 23 00:43:12 Entelin: which is used with glMapBufferOES Apr 23 00:44:19 davo: is it in your project? Apr 23 00:44:23 I'm trying to find out the best places, or place, to find binaries for different devices. i found open source.samsung.com and others with xda-developers, but looking for vizio (and others) Apr 23 00:44:52 winegoddess: #android-root Apr 23 00:45:04 p_l: so https://www.youtube.com/watch?v=xHXn3Kg2IQE is no longer valid? It suggest storing them locally for caching Apr 23 00:45:48 bankai_au, it's not in my project, currently i've only got it in the JUnit test project Apr 23 00:45:54 sonOfRa: don't skip half of my answer, please :) I did say that if you want to cache them, then cache them Apr 23 00:48:09 bankai_au, do you mean i should add the library to the project and not the JUnit test? Apr 23 00:48:41 i don't know how it works, but it might not work with non-support fragments Apr 23 00:54:51 ok thanks bankai Apr 23 01:18:44 bankai_au: thanks. waiting a response in android-root. Is there a room not for custom ROMS, but working with AOSP? Apr 23 01:19:12 that's probably them too, who knows ... Apr 23 01:20:23 ok, thanks Apr 23 01:26:03 hi folks, is there any way to stop the android status bar covering the my opengl content Apr 23 01:26:04 ? Apr 23 01:26:20 wow I cant type Apr 23 01:26:49 Must be coffee time again Apr 23 01:45:04 Hi all. Got a problem. Im trying to get a Youtube video to play on top of Unity's GLSurface view, by using the Youtube Player API. However, Unity's GLSurface view keeps overlaying the actual view that streams the video. Adds and video overlays are not affected, only the actual view that's streaming the video Apr 23 01:46:16 I've tried pretty much everything I could think of, from triple checking the order in which both the YouTubePlayerView and the Unity view get added to the main content viewgroup, to cycling through every view in the YoutubePlayerView and usin . bringToFront on them Apr 23 01:50:08 So first question; does anybody have any idea on how to fix this? And if not, What kind of view would the YouTubePlayer api be using to show the video? Apr 23 01:56:46 ThomQ: i can't say without looking at your code, but maybe try a YouTubePlayerFragment? Apr 23 01:58:33 Mango: I am Apr 23 01:59:25 ThomQ: oh, well try a YouTubePlayerView instead Apr 23 01:59:58 haha, I can't. I need to extend a normal Activity because of the Unity Player Apr 23 02:00:39 the biggest problem is, I can't debug it. I have to build the android project as a .jar lib to be used when exporting the final Unity build Apr 23 02:00:56 so I can't peek into the youtubeplayer fragment that gets created Apr 23 02:02:21 ThomQ: why unity player ? Apr 23 02:02:35 are you going to make the video angle on a 3d surface ? Apr 23 02:02:57 Shmooz: no, strictly to be used as an Overlay on top of the unity view Apr 23 02:04:07 many people already tried to import the API for unity android, and use it as a streaming texture, but failed Apr 23 02:05:12 ThomQ: what is the advantage of using unity to play video ? Apr 23 02:06:00 maybe you can like paste that video in a 3D environment or something Apr 23 02:06:02 shmooz: well, to keep the build size down for one. Apr 23 02:06:18 Yeah, unity has his own built in player, but not for streaming. Apr 23 02:08:33 you can use VideoView for streaming but it supports limited formats Apr 23 02:09:03 ffmpeg supports the most formats on android afaik Apr 23 02:09:48 I think Unity even has it's own streaming assets support Apr 23 02:10:17 But I got to focus on Youtube. Writing a plugin for the community, since a couple of people asked for it Apr 23 02:13:17 plus, it's too annoying to not solve :P I resized the unity view from fullscreen to about 75% of the screen height, and sure enough, the video is playing there, in the background Apr 23 02:13:17 a unity plugin? ooh Apr 23 02:14:00 the Thumbnail loads on top, but when I hit play, the videoview gets pushed to the back. I mean, wouldn't that infuriate you guys too :P Apr 23 02:14:01 ? Apr 23 02:16:24 so hide the thumbnail when you press play and show it again when it stops or user stops it Apr 23 02:17:32 the thumbnail is placed correctly, and works as it should. The unity view starts overlaying the actual video view Within the YoutubeView the moment it starts playing Apr 23 02:24:42 well Apr 23 02:24:56 I think / guess that youtube handles it's video stream in a surface view Apr 23 02:25:54 and from what I'm reading, a SurfaceView can never overlay on top of GLSurfaceView Apr 23 02:27:34 that's too bad.. a Fail on my part. But I guess I'll just make the plugin to be fullscreen / part of a relative layout only Apr 23 02:28:08 as where I resize the UnityView whenever a video is playing to not overlap with the YouTubeView Apr 23 02:51:50 Why doesn't Bionic have a syscall wrapper for splice(2)? **** ENDING LOGGING AT Wed Apr 23 02:59:58 2014