**** BEGIN LOGGING AT Mon Sep 22 03:00:00 2014 Sep 22 03:05:07 anyone online? Sep 22 03:05:15 yup Sep 22 03:05:15 with android wear experience? Sep 22 03:06:41 I'm trying to send data to the watch but it only gets sent once Sep 22 03:08:26 I tried using the listener interface, but I could only see the data as a byte[], not a map Sep 22 03:13:34 k... not very clear on what you're trying Sep 22 03:13:45 I'll make an assumption first Sep 22 03:13:58 https://github.com/jab416171/WearTesting/blob/master/wear/src/main/java/me/joebass/weartesting/MyActivity.java#L55-L61 Sep 22 03:13:58 this is where I put the data in: https://github.com/jab416171/WearTesting/blob/master/mobile/src/main/java/me/joebass/weartesting/MyActivity.java#L165 Sep 22 03:14:00 did you use DataMap.fromByteArray(evt.getData()) Sep 22 03:14:46 I haven't tried that Sep 22 03:15:12 this will be in your ListenerService (on the wear side) Sep 22 03:15:48 https://developer.android.com/reference/com/google/android/gms/wearable/WearableListenerService.html Sep 22 03:16:10 the assumption was that you were trying to receive this on the wearable side, correct? Sep 22 03:16:21 yes Sep 22 03:16:56 Yeah, create an Activity that extends the above class Sep 22 03:17:31 it has onMessageReceived(MessageEvent evt) Sep 22 03:19:11 perfect, thanks Sep 22 03:37:33 can some one help me understand "Project Structure..." dialog in Android Studio ??? Sep 22 03:38:59 t2mkn it's a dialog, that … shows and relates to project structure :) Sep 22 03:39:25 if you have a question ask, but dont ask for 1 on 1 tutorials/training, no1 is likely to answer Sep 22 03:40:14 <[R]> lol Sep 22 03:41:10 StingRay_: i have lots of question from this dialog. not getting all as what is what Sep 22 03:42:02 thats good, can you not find the answers on google ? Sep 22 03:42:44 not all or if found bit confused on them Sep 22 03:43:01 well, don't ask for 1 on 1 tutoring …start by asking a question that has an answer Sep 22 03:43:10 maybe someone will answer you :) Sep 22 03:43:28 or point you to google in what search terms you are missing Sep 22 03:44:47 Project Structure > app > Properties > Incremental Dex, Source Compatibility and Target Compatibility. what are these used for? Sep 22 03:45:59 http://bit.ly/XUYD8G Sep 22 03:46:07 whats the problem with that ? Sep 22 03:47:07 from the questions being asked, you can probably figure it out :) and what it relates to Sep 22 03:48:03 that i had searched for, and still confused. what is incremental dex :( Sep 22 03:49:29 goooooooglllllllle Sep 22 03:50:12 or ignore it until you know why it matters ;) Sep 22 03:50:40 capella-s3 that probably is the best line of advice I have heard this year! Sep 22 03:50:58 its my approach :D Sep 22 03:51:49 googleing googleing ... but not getting ... Sep 22 03:53:51 t2mkn is there a problem ? or is the problem that you do not know "every" little option in AS/IJ ? Cause I think most will suffer that one Sep 22 03:54:15 if there is no current problems just forget it … learn about it when it's relevant Sep 22 03:56:34 ya thats true. but the issue is m migrating an existing project in eclipse to android studio, which is not created by me :P and things are different here. so i need to know all, before it affects 40k existing users worldwide Sep 22 03:57:13 i had this weird bug, i used a different app and when it tried to go back to my app then it was requiring an activity that wasnt even initialized Sep 22 03:57:15 spooky Sep 22 03:57:39 t2mkn and how is you not knowing that option affecting users ? Sep 22 03:58:42 t2mkn not being funny btw, just dont think every AS/Gradle option is that relevent to end users Sep 22 03:59:54 dont push the red button! Sep 22 04:00:09 true, but is there any please found in google where i can know about the optioins present in project structure dialog. some kind of explaination or tutorial. Sep 22 04:00:10 * pifon pushes red button Sep 22 04:00:43 t2mkn s app just exploded Sep 22 04:01:08 http://developer.android.com/reference/android/os/PowerManager.html#isInteractive%28%29 Sep 22 04:01:10 "When this method returns false, the device is dozing or asleep and must be awoken before it will become ready to interact with the user again." Sep 22 04:01:24 40000 users... oh the humanity Sep 22 04:01:29 "the device is still considered to be interactive while dreaming (since dreams can be interactive) but not when it is dozing or asleep." Sep 22 04:01:41 "dreaming"? "dozing"? Weird. Sep 22 04:01:50 Future, here we come. Sep 22 04:02:04 "dream" is a bit like a screensaver Sep 22 04:02:26 never seen it in my experience, probably because I don't have a nice enough charging dock ;) Sep 22 04:02:55 funny ... I wrote a patch today that required PowerManaer.isScreenOn() Sep 22 04:03:56 p_l: That makes sense. Huh. Sep 22 04:03:57 capella: For what? Sep 22 04:04:04 40k and app is not updated for last 9 months. not working properly in latest android versions :) users asking for update. any ways will help myself some way. Sep 22 04:05:47 drewbug: we have robotium tests for firefox for android ... when run locally by a dev the test dies if the screen has gone to sleep ... I added a check to display a useful message Sep 22 04:07:00 in android studio I am trying to create a new package under my java folder. I am trying to name it com.alex.camera. but it creates com and then alex under that and then camera under that. Will it always do this when I use . notation in my package titles? Sep 22 04:07:18 capella: Cool. Sep 22 04:07:54 anyone have tutorial how to create puzzle on android? Sep 22 04:07:57 heh - it helps new contributors avoid one of the usual traps :) Sep 22 04:08:05 i use ide eclipse Sep 22 04:08:15 "Why doesn't my test run?" Sep 22 04:08:19 bilb_ono: that's how the dir structure works, yes Sep 22 04:08:28 i have search on google but no one good, i confused... Sep 22 04:12:19 capella: My dev phone's setup to never turn the screen off, but I should probably change that, as I've been forgetting to plug it in. Sep 22 04:12:27 owh ya how hide my ip? :D Sep 22 04:12:39 anyone can help me :3 Sep 22 04:12:58 sorry wrong post Sep 22 04:13:45 i want to create puzzle android, maybe anyone can help me to give me tutorial link? Sep 22 04:14:48 google.com Sep 22 04:14:51 Does anyone have any tips for working with private APIs? Aside from "don't use private APIs" ;) Sep 22 04:15:14 drewbug: what about them ? Sep 22 04:15:34 <[R]> drewbug: don't use them Sep 22 04:15:54 bankai_: yeah i have searched, but no one good... when you don't believe me you can try it's :'( i'm newbi anyone help me Sep 22 04:16:07 [R]: Grr. Sep 22 04:16:41 bankai_: I guess I'm just wondering if there's anything even remotely related to "best practices". Sep 22 04:16:58 <[R]> drewbug: the best practice is not to use it Sep 22 04:17:10 Yeah. I get that. Sep 22 04:17:53 nice, so what's the question then ? Sep 22 04:18:16 Sometimes, you can use them to do things that you CAN'T do without them. Sep 22 04:18:43 I've tried testing it on a bunch of different versions, and as many devices as I've been able to get my hands on. Sep 22 04:26:28 "#android-dev: Exercise caution or you may be treated like a cat-toy" Sep 22 04:26:47 or dog Sep 22 04:27:39 named Jake! Sep 22 04:30:31 I get confused by the package name and file structure of java. like com.package.filename and where it might be in the file system and how other files might require it. What is a good keyword for me to google on the subject Sep 22 04:32:12 <[R]> bilb_ono: um... theres tons of documentation on how to write java when you have no clue what you are doing Sep 22 04:32:33 http://en.wikipedia.org/wiki/Classpath_(Java) packages Sep 22 04:37:53 t2mkn the project structure dialog is a shit stain Sep 22 04:38:50 don't feel bad if you don't know what any particular entry box means. i recommend just forgetting about it altogether, and making your changes in the gradle DSL Sep 22 04:39:13 g00s: it should provide some tool tips as to what is what. or atlist some details somewhere. Sep 22 04:39:30 g00s: thats what m doing right now. Sep 22 04:39:49 t2mkn whoever worked on that IDE feature, doesn't know shit about form design / usability Sep 22 04:40:38 drewbug you asked much earlier, but from what i can tell youonly get the first advertised packer per scan Sep 22 04:40:53 at least on the n4 and n7 , who the hell knows on other devices Sep 22 04:41:06 google like to keep us on our toes by not docuemting how their apis work Sep 22 04:41:21 Hello Sep 22 04:41:57 Do any of you have a good way of handling fragments? Seems like something that could use a library or something like that. Sep 22 04:42:28 what is the min sdk level for youtube's api? Can't seem to google relevant info. Sep 22 04:42:39 RedWraith whats wrong with fragmentManager ? Sep 22 04:42:57 and if it were a good idea for a library, there would be a few :) Sep 22 04:43:19 RedWraith if you don't like fragments some have tried square mortar and flow Sep 22 04:43:19 StingRay_, I've used it in the past and for anything but the simplest cases you have to fudge with it a lot. Sep 22 04:43:28 [R], I appreciate your constructive critisism. Any documentation that you would recommend? Sep 22 04:43:38 does anyone really like fragments? Sep 22 04:43:45 you either tolerate them or not Sep 22 04:43:53 <[R]> bilb_ono: theres like billions of books on the subject Sep 22 04:43:55 i want to speak to the people who like them Sep 22 04:44:29 g00s: Thanks for getting back to me on that. I found the same thing. Super fun. Went deep into the Bluedroid code. Meh. Sep 22 04:44:52 [R], ok Sep 22 04:44:56 drewbug BT apis are a minefield :) Sep 22 04:45:08 JakeWharton I like them though lack of knowledge about anything else Sep 22 04:45:21 g00s, I'm looking at those then. Sep 22 04:45:44 g00s: Looking forward to exploding and dying. Sep 22 04:46:24 JakeWharton, they're something that was designed ok - they aren't terrible like intents or something (no callbacks, really?) - so most developers tolerate them. They just aren't enjoyable to use. Sep 22 04:46:51 Speaking of which, how do you folks handle intent callbacks? That whole business with the unique identifiers and passing them to fragments really screws up encapsulation. Sep 22 04:46:55 i completely disagree. fragments have a terrible design and intents are amazing Sep 22 04:46:57 drewbug the 3 main caveats i have found *this far* : (1) as i mentioned above, per scan only the first packet is delivered (2) gatt callbacks are on another thread (not documented) (3) don't try to read/write multiple attributes at a time, you need to serialize this somehow Sep 22 04:47:17 Intents are a great idea - just the lack of callbacks is very painful. Sep 22 04:47:25 drewbug if you find any more , let me know :D Sep 22 04:47:57 g00s: Thanks :) Will do. Sep 22 04:48:16 callbacks wouldn't work in the task-based system of Android Sep 22 04:48:20 presumably we're talking about BLE so. now i would like to know if they will add support for 4.1 connection oriented channels Sep 22 04:48:39 besides, you can fake callbacks very easily Sep 22 04:49:06 singleton object that takes listeners and sends onActivityResult out (optionally filtering) Sep 22 04:49:17 onActivityResult *is* a callback, afterall Sep 22 04:49:21 I'm going to do that on my current project actually. Sep 22 04:49:23 Exactly. Sep 22 04:49:39 it just becomes weird when i leave your app via an intent but return another way Sep 22 04:50:13 That's...an interesting edge case. I'm going to see what happens when I do that on my previous app. Sep 22 04:50:52 It opens up the intent. :) Sep 22 04:50:55 leave via an intent, press home, open another app, click something that fires an intent to open your app Sep 22 04:51:21 ah, I'll have to send a notification for that. Sep 22 04:52:08 I imagine it's a fairly easy to handle edge case though, since your entry point is different when your app is opened through an intent - but it's not something most people think about. Sep 22 04:52:33 JakeWharton, do you use fragments? Sep 22 04:52:37 no Sep 22 04:53:04 Mortar and Flow? Sep 22 04:54:28 Just reading about those on the corner blog thing on square Sep 22 04:54:44 but cant get away from the shadows on those little reader thingies Sep 22 04:54:49 no Sep 22 04:54:57 i wrote the original version of the open sourced Flow Sep 22 04:55:50 JakeWharton, what do you use then? I'm curious. Sep 22 04:55:56 wrote my own thing Sep 22 04:56:00 oh nice Sep 22 04:56:10 it's all just views no matter what you use Sep 22 04:56:14 views are the great equalizer Sep 22 04:56:25 [R], when Im combing through these billions of books and I want to find the topic that I mentioned, what keywords should I lookout for? whats that called? packaging? Sep 22 04:56:39 <[R]> bilb_ono: packages Sep 22 04:57:27 bilb_ono did I not link you to wiki where info is quite clear Sep 22 04:57:33 and the keyword :) Sep 22 04:58:46 StingRay_, oops I missed that sorry Sep 22 04:58:49 I'm going to look into these. I was considering writing my own but tbh I'm working with a less experienced developer on this project and I'd prefer he be able to look up anything he works with so I'm avoiding writing anything special - i.e. limiting my own personal use of Dagger and RxJava unless I can make it production quality. Sep 22 04:59:27 Thanks JakeWharton and StingRay_. Sep 22 04:59:31 yep, makes total sense Sep 22 05:05:01 anyone have simple tutorial to create puzzle? Sep 22 05:05:37 g00s: maybe you have it tutorial sir :) Sep 22 05:07:06 harencode sorry could be that I'm on day 3 of my god knows how long headache, but that seems like a ridiculous question! Sep 22 05:07:59 harencode yes i have one sitting right here infact .... Sep 22 05:08:37 of course not ;) Sep 22 05:08:46 StingRay_ time to see the doc :| Sep 22 05:08:49 argh Sep 22 05:08:52 i hope it not a tumor Sep 22 05:08:59 i need to have two "Debugging Apps" at one time and android does not allow it Sep 22 05:09:02 g00s you and I both :) Sep 22 05:11:16 g00s similar thing happened a bit ago with headache, did go to docs, said it was labyrinthitis and can last a while… so not over worried, just pissed off that decreases productivity to near nothing Sep 22 05:11:26 but on day 5 will consider it :) Sep 22 05:11:59 if it was androiditis at least there are some easy solutions Sep 22 05:12:52 StingRay_: hahah, i have searched on google and no one simple tutorial just only source code, i confused to read it :3 maybe mean your nickname string array? :D Sep 22 05:12:52 g00s: thank's sir, yeah sir maybe i confused now... i want to create puzzle and i can build it on eclipse, and succesed using source code on github but i don't know how some syntax have working :3 hahaha maybe you have simple tutorial link to create it? Sep 22 05:13:09 StingRay_ hm, that looks serious Sep 22 05:13:35 "labyrinthitis" ? an aversion to small twisty mazes ?? Sep 22 05:14:47 g00s serious is both subjective and relative… but yeah, if I stand an walk to get a coffee, it's and game of sorts…with risk involved :) Sep 22 05:15:02 g00s: this http://pastebin.com/24RPCaAR i confused that syntax mean Sep 22 05:16:38 maybe anyone can help me Sep 22 05:19:10 harencode this is not the place for 1 on 1 tutoring Sep 22 05:19:16 harencode: your skill level seems too basic for anyone to spend the required amount of time tutoring you ... you'll have to just do a lot of reading and/or ask /specific qutestions/ Sep 22 05:19:34 you will find may tutorials by searching google Sep 22 05:19:41 java is quite popular Sep 22 05:31:18 StingRay_: capella oke guys, thank's for open my eyes :') i will learning hard java, i will read an search on google longtime before throw it on here thank's all and sorry g00s i make you busy to answer my question,tomorrow i only hope can get answer on here when my code is stack, cause i don't have any tutoring, i learn java by self because i really want to learn java code. Sep 22 05:32:37 good luck! keep reading :) it takes a little work Sep 22 06:19:57 is anyone around here Sep 22 06:25:28 how do i deal with extending a Preference class and it says there is no default constructor and i cant implement a constructor Sep 22 06:26:44 wait Sep 22 06:26:45 nvm Sep 22 06:30:58 This might sound stupid, but I would like to embed a youtube video. I cannot extend YoutubeBaseActivity as I am allready extending a BootstrapActivity, and cannot access YoutubeBaseActivity's onCreate() since it is protected. What would the sanest way to do this be? Sep 22 06:39:58 SASDOE https://developers.google.com/youtube/android/player/reference/com/google/android/youtube/player/YouTubePlayerFragment Sep 22 06:41:18 g00s: thanks! Sep 22 06:41:30 yw Sep 22 06:55:06 hello. I want to assign an ID to a layout in XML and access it during runtime. Activity.findViewByID() is returning null Sep 22 06:59:47 I left my magic crystal ball at home, you'll have to provide some code Sep 22 07:02:00 inflated? Sep 22 07:02:04 ravilov I have mine vedu findViewById only works after setcontent Sep 22 07:02:38 or as capella-s3 says, inflated and attached (which is what setContent does) Sep 22 07:04:12 StingRay_: yes I have made sure of that. my ID is that of a linear layout. not of a View Sep 22 07:06:33 :p Sep 22 07:07:18 then the viewTree that you are querying simply does not contain a view (viewGroup or otherwise) with that id Sep 22 07:10:56 ...I hope you're not trying to query a R.layout.xxx instead of a R.id.xxx Sep 22 07:13:56 Thanks StingRay_ (and capella-s3 and ravilov :P ). I was finding my view in the activity while I had created it in the fragment Sep 22 07:30:05 When playing youtube videos with the API, I cannot play videos in HD. I get an error message "There was a problem while playing". However if I switch HD off, it plays fine. I am using the YoutubeSupportPlayerFragment. Sep 22 07:30:31 Any ideas? Oh and I am testing in an emulator, if that changes anything Sep 22 07:33:32 I get that problem all the time, on a real device, but then again I'm on android 2.3 Sep 22 07:33:49 didn't think it affects today's systems (real or emulated) Sep 22 07:42:07 Ok cool. Well for me. Sep 22 07:54:28 Is there a trick to chose what device to send app to once I have checked "use this device for future launches"? Sep 22 07:55:52 If you're using Eclipse it'll be under "Run Configurations", select your project and go to the "Target" tab Sep 22 07:56:59 And under android studio..? Sorry I didn't mention that beforehand Sep 22 07:57:47 I have no idea about Android Studio, I'm gonna guess there is a similar setting screen :D Sep 22 07:57:52 Ha shift click run. Fiddling around tis the way to go. Sep 22 08:00:21 SASDOE: the button next to the "Run" button Sep 22 08:00:38 SASDOE: press "Edit configurations" Sep 22 08:02:26 mrdarknezz: Thanks Sep 22 08:33:22 is there any phonegap app using/experiencing which, I can get myself to not work on native JAVA app? Sep 22 08:33:35 and work on web-apps Sep 22 08:34:48 Looney no idea what that question was, but since you mentioned phonegap, they have a channel you know #phonegap Sep 22 08:37:01 thanks StingRay_ Sep 22 08:37:19 I wanted to know if there an app made using phonegap Sep 22 08:37:27 which looks neat Sep 22 08:37:55 Looney oh, doubt it, some can look neat, but they are in the end just webpages right ? Sep 22 08:38:09 never bothered with it all much, but yeah, never found a good one Sep 22 08:38:13 so, not neat really Sep 22 08:38:25 well, I am also in your boat Sep 22 08:38:36 but I need to convince myself otherwise Sep 22 08:43:07 Looney I guess it depends, this idea that you want to do… can it be done in a simple mobile website ? Sep 22 08:43:35 if so and it's not really an app, then maybe if time/budget is a big factor, maybe web app is the way to go Sep 22 08:43:40 there is a website with html5 Sep 22 08:43:51 I gave them an estimate for native app Sep 22 08:43:57 which imho they didn't like Sep 22 08:44:17 so, they're thinking about cheap/phonegap Sep 22 08:45:18 well if the app context is about needing to use, rather than wanting to use, let them go with phonegap Sep 22 08:45:30 Well they can look/work nicely, but my personal preference goes to native apps Sep 22 08:45:51 VnM have any examples of a good look/working phonegap app ? Sep 22 08:46:19 I haven't worked with PhoneGap but I've worked with WebView apps before Sep 22 08:46:55 well any example of a web app thats good ? Sep 22 08:48:57 Ummm, apps for television programs like The Voice, allowing the publisher to push content to the user Sep 22 08:49:37 well, any app you can…push to the user Sep 22 08:49:41 If you build it using a framework like Angular it can get pretty swift Sep 22 08:49:51 I mean a good example of a nice, functional good to use web app Sep 22 08:49:53 http://phonegap.com/app/feature/ Sep 22 08:51:09 https://play.google.com/store/apps/details?id=com.nbcuni.nbc.thevoice that one is WebView based Sep 22 08:51:10 capella-s3 most if not all of those are old outdated Sep 22 08:51:20 they have switched away from phonegap I think Sep 22 08:51:42 ah Sep 22 08:52:31 VnM anything other than that though, cause thats pretty …erm… not really an app, more like a website Sep 22 08:53:17 Nah don't have any examples, but I know you can make some pretty nifty things with HTML5 that can give a good experience, though never as good as purely native app in my opinion Sep 22 08:53:22 I know there are some that are quite good, but I think that it's a number I can count on 1 hand Sep 22 08:55:40 well, world is moving from web to native Sep 22 08:55:51 linkedin also moved native Sep 22 08:56:03 only cheapsters stick with web Sep 22 08:56:07 *web apps Sep 22 08:56:16 Yeah, it's just a pain in the ass because versions below KitKat aren't using Chromium for their WebView, but if you're publishing an app for multiple platforms using PhoneGap or your own WebView based apps is a fast/cheap solution Sep 22 08:56:31 Looney: Although the linkedin app is shit. Sep 22 08:56:48 didn't check their latest version Sep 22 08:56:57 if it is shit, its time to make one :-) Sep 22 08:57:16 It allows you to make one web based application, which will run on Android/iOS/WindowsPhone, with some minor alterations for the scaling and so forth to be working properly across all devices Sep 22 09:01:45 hi everybody. Can anybody tell me how I can preview a Fragment layout when it's not defined via the -Tag? Instead I just have a with an ID and when creating my Activity, I am creating a Fragment Transaction to my desired Fragments and add them to the FragmentLayout... which acts as a container... Sep 22 09:02:52 unfortunately, in the Editor I can't see how the activity looks like... Only if I were to add the tag there... but then I con't really have control over the fragment instance, since I don't create the instance in the activity's onCreate Sep 22 09:03:55 Can't you just put the fragment layout in a separate layout file and design it there? Sep 22 09:05:30 the fragment layout is in a different file... Basically I have three different components on my screen, each defined by a Fragment with own layout... Depending on the screen size and orientation, I want to be able to create and order the instances like I want... e.g. on Smartphones, I don't always show all three fragments at once, only on tablets that have the screen space... Sep 22 09:06:00 Also, I need to be able to swap single Fragments sometimes... Sep 22 09:06:27 So I can create the layout for each fragment/component, but I can't preview it as a whole as it would look like in the Activity... Sep 22 09:06:58 at least not when I create the Fragments in onCreate() and add a transaction to the given FrameLayout container... Sep 22 09:07:40 When I add the fragments to the Layout using hte fragment-tag, it shows what the final activity looks like. But then I can't add or replace fragments at runtime Sep 22 09:09:23 Oh right I wouldn't know there's probably some handy tool or way for it out there, I would just design it with the fragment tags and remove them for building, are you using Android Studio or Eclipse? Sep 22 09:09:53 Android Studio Sep 22 09:10:35 yeah that's what I was thinking too, that I could design using the fragment-tag, but later replace those... But that's not a cool way though :D But it would work Sep 22 09:10:42 danijoo know everything about Android Studio! Don't you danijoo Sep 22 09:15:57 i'm trying to get android running on a custom board and having trouble getting the wifi driver to work. anyone here good with wifi drivers? Sep 22 09:18:13 lyda totally wrong place, read topic Sep 22 09:18:22 ah. sorry. Sep 22 09:18:25 also this is the totally wrong place to ask for directions too :) Sep 22 09:18:38 ideas for better channels? Sep 22 09:18:54 se previous statements Sep 22 09:18:58 see* Sep 22 09:19:24 answer in topic Sep 22 09:20:16 ah. the #wl12xx channel. cool, thanks. Sep 22 09:23:25 Can somebody please help me figure out why the breakpoints I am setting in source in Eclipse aren't being caught by the debugger? I'm attached and the code *is* being executed. Sep 22 09:26:57 Are you running the program with debug mode or simply running it the usual way? :D Sep 22 09:27:13 and are they really breakpoints ? :) Sep 22 09:27:48 VnM: Debug mode. The application waits for the debugger to attach before executing Sep 22 09:28:06 If you have breakpoints in your code, and you're using Debug to run your code, once your code gets to a breakpoint it should come up with a popup asking you to confirm a perspective switch Sep 22 09:28:16 bros, clean project, add an extra debug line, recompile Sep 22 09:28:22 sometimes breakpoints don't trigger well Sep 22 09:28:43 sometimes the code is just not being reached too ;) Sep 22 09:29:41 The code is decompiled java from an APK from the play store. I enabled debug mode on the app, pushed the code back to the device, and for some reason, the breakpoints aren't being triggered. Sep 22 09:30:39 bros what is it you are wanting to do ? Sep 22 09:30:52 StingRay_: set a breakpoint Sep 22 09:31:01 i mean with decompiling ? Sep 22 09:31:14 See how an app works Sep 22 09:31:19 hehe Sep 22 09:31:47 bros yeah, but I mean for what purpose, there is probably an easier way Sep 22 09:32:35 StingRay_: The program has a platform specific library function that gets called from Java. I wanted to intercept the calls. Sep 22 09:33:28 what library ? Sep 22 09:33:54 Good question. It's code specifically for ARM processors. Sep 22 09:34:33 you want to breakpoint the JNI calls? Sep 22 09:34:51 I just want to step through the source I have. Sep 22 09:36:29 what app is it ? Sep 22 09:37:44 Am I going to get ignored and kicked for discussing it? Sep 22 09:39:02 are you doing something you should not ? that is disrespectful ? Sep 22 09:39:09 no, purely research Sep 22 09:39:17 then no Sep 22 09:39:30 Instagram Sep 22 09:39:50 but probably better way to figure out stuff than dissecting other apps Sep 22 09:39:55 ways* Sep 22 09:42:39 VnM: ?? Sep 22 09:43:05 StingRay_: I want to dissect the app though. Sep 22 09:47:37 Do eet Sep 22 09:48:34 what would you people advice, learning BlackBerry or iPhone programming is good idea Sep 22 09:52:17 Looney thats not only an odd question, it's without conext…so anyone that answers, it's just a random worthless opinion…you would be better reading up on things and making your own mind Sep 22 09:52:51 I would learn both, then forget it all and do Android things instead Sep 22 09:54:16 I thought he was joking haha Sep 22 09:55:08 that question isn't really a joke… but asking it is Sep 22 09:55:12 :) Sep 22 09:55:30 well, asking it to other people Sep 22 09:55:53 Especially in #android-dev :( Sep 22 09:56:45 hehehe Sep 22 09:56:56 and I swear, I wasn't trolling Sep 22 09:58:20 Looney not really a trolling question … just a pointless silly one to ask regardless of where you ask it Sep 22 10:07:14 does anyone here got any gig from Twitter Sep 22 10:36:53 hi there, I am using admob and stumbled upon the issue where you cannot display a banner in an alert dialog in portrait mode. I am thinking about adding the banner outside of the dialog, at the bottom of the screen. Is there a way to do this while keeping the two associated? (that is, the ad will be part of the dialog view hierarchy) Sep 22 10:44:34 nb-ben heya, erm, that maybe possible if you also replicate the shadow of the dialog with a central view that would look like a dialog Sep 22 10:44:43 and by using a dialogFragment Sep 22 10:53:18 The code creates an object of a.c.b here: com.instagram.common.a.c.b localb = new com.instagram.common.a.c.b(); The code for the class is here. https://ideone.com/584dc7 Notice how the constructor is passed with no arguments. Which line in the paste gets executed? Sep 22 10:53:27 StingRay_: you could help me on that Sep 22 10:54:40 sorry I have a headache and obfuscation is not on the list of things that will help Sep 22 10:55:05 the code is mashed and mingled for protection Sep 22 11:01:31 bros does you re-compile even work ? Sep 22 11:01:51 StingRay_: Yes. Perfectly. I'm stepping through the code right now. Sep 22 11:02:33 Looney: have you checked out xamarin ? Sep 22 11:03:15 how good is it shmooz Sep 22 11:03:27 I need to check some app Sep 22 11:03:33 to see how neat can it get Sep 22 11:03:57 I didn't try it, but it says you can do it in C# once and have it for iPhone and Android Sep 22 11:04:55 I will try it when I get the time to learn it Sep 22 11:09:38 StingRay_: what does getBytes do to a string? Sep 22 11:09:58 bros is that a serious question ? Sep 22 11:10:02 Yes. Sep 22 11:10:22 it..erm…. gets the bytes[] Sep 22 11:11:26 Ok. I thought it converted things to hexadecimal representation or something. Sep 22 11:14:02 StingRay_: I see.. so the sane way to do this would be to display a popup dialog that is dismissed when the dialog is dismissed Sep 22 11:14:26 StingRay_: a popup window * sorry Sep 22 11:14:29 what is it you are wanting ? Sep 22 11:14:48 you can have a fragmentDialog that has no shadow and is position anywhere you wish Sep 22 11:14:48 Is there a more readable link to the Google Play store for a certain app except https://play.google.com/store/apps/details?id=PACKAGE_NAME ? Sep 22 11:14:48 StingRay_: I'll show you, give me a minute Sep 22 11:15:10 StingRay_: ah. Sep 22 11:15:41 StingRay_: you mean a dialog fragment? Sep 22 11:15:53 yes Sep 22 11:16:07 StingRay_: I am building my dialog using a dialog fragment, though it's an alert dialog Sep 22 11:17:27 StingRay_: can I just use getWindow().addContentView ? Sep 22 11:18:01 StingRay_: and then will the added content view die when the dialog is closed? Sep 22 11:18:55 StingRay_: or does the Dialog not have its own Window ? Sep 22 11:19:31 ah, retrieves the current window for the activity... never mind Sep 22 11:21:15 I used fragDiag for emoticon keyboard in my app Sep 22 11:21:30 but just removed all that crap cause most keyboards have it now :) Sep 22 11:23:45 I need to execute an asynctask more then once. I do it by creating new instances of that asynctask. is it better practice to use a Service instead? Sep 22 11:24:11 MartialLaw: it depends on what you are doing Sep 22 11:24:55 MartialLaw: if the task that you are doing is irrelevant to whether or not the activity is still living then you should do it with a service Sep 22 11:25:22 MartialLaw: if the task is meaningless once the activity/ui is no longer around then use an asynctask Sep 22 11:25:28 nb-ben: i'm grabbing data from a server that is relevant to the running activity Sep 22 11:25:36 MartialLaw: then yep, use an asynctask Sep 22 11:25:47 nb-ben: thnc Sep 22 11:25:50 thnx* Sep 22 11:26:04 MartialLaw: and don't jump hoops to use the same object.. Sep 22 11:26:38 MartialLaw: if it's clearly and straightforwardly reusable then do it, otherwise just create a new asynctask Sep 22 11:28:35 nb-ben: this particular one is completely reusable :-) Sep 22 11:31:39 Woah it is so difficult to test stuff. Sep 22 12:02:13 is it? Sep 22 12:03:25 Maybe Sep 22 12:04:38 I am looking for the id of the drawable which is used for the Easy Action Share icon Sep 22 12:05:44 that's cool Sep 22 12:13:07 hi is there a way to add actionbar dropdownnav (spinner) to certain fragment only? Sep 22 12:13:32 I've put the code inside my fragment (onCreateView) but it's show in other fragments Sep 22 12:19:18 Hello Sep 22 12:22:00 Hello Sep 22 12:23:09 I'm looking for someone to learn android togheter Sep 22 12:23:19 already know Java... Sep 22 12:25:07 Double_A: Go learn it on your own. Or with someone you know in real life. But... please, not in this channel. :) Sep 22 12:25:28 why not? Sep 22 12:25:36 Double_A: If you have questions, we're here, but there are good articles to read to learn it. Sep 22 12:26:00 i just need someone to motivate eachother... Sep 22 12:26:06 and maybe discuss things Sep 22 12:26:31 to work through the same book together Sep 22 12:27:51 Double_A, this is the wrong place for such ideas, this is not a tutorial or guidance channel Sep 22 12:28:05 or even a find-a-study-buddy channel Sep 22 12:28:29 and it's most definitely not a one-on-one channel Sep 22 12:29:03 ok then full ack Sep 22 12:34:13 Any GUI option in android studio for output .apk filename or I have to manually code build.gradle ? Sep 22 12:38:38 code manually Sep 22 12:38:57 will do you more good than auto-generating stuff anyway ;) Sep 22 12:39:32 ^+1 Sep 22 12:39:33 so have to learn a bit gradle scripting !!! Sep 22 12:42:39 lol Double_A Sep 22 12:59:58 Are all the design choices in the Android framework wrong on purpose? Sep 22 13:01:49 lol Sep 22 13:06:06 only if you use them wrong on purpose Sep 22 13:09:06 There is a way to get an actionbar like this? http://postimg.org/image/sauihbhcn/ Sep 22 13:17:22 Birk_: I haven't tried it but you can try setting the actionbar to a custom drawable Sep 22 13:19:59 mrdarknezz: I will make a try Sep 22 13:21:21 actionbar background* Sep 22 13:21:46 https://developer.android.com/training/basics/actionbar/styling.html#CustomBackground Sep 22 13:49:22 I want to add something directly under an AlertDialog (above the dimmed background), can someone direct me to something I should be looking for? Sep 22 13:49:32 add a view * Sep 22 13:50:15 the alert dialog bounds extends only to the falloff of the shadow Sep 22 13:51:15 what would you want to add behind ? as it will never really be seen ? Sep 22 13:51:19 StingRay_: I pretty much need a reliable way to get parentPanel: https://code.google.com/p/pdn-slatedroid/source/browse/trunk/eclair/frameworks/base/core/res/res/layout/alert_dialog.xml?r=44 Sep 22 13:51:30 StingRay_: not behind, under Sep 22 13:51:43 oh below in Y Sep 22 13:51:53 StingRay_: an ad under the button panel, but outside of the dialog itself, after the shadow Sep 22 13:52:40 well what I said was true I think, the dialog window is not all of the screen Sep 22 13:53:00 it's to the extent of the visible shadowed dialog you look at Sep 22 13:53:11 StingRay_: it's not, I can extend it to be the entire screen but then I would need to make it align to the center (it shows at the top in this case) Sep 22 13:53:42 StingRay_: the window is wrapping the content, I want to add content Sep 22 13:55:29 did everyone hear the announcement from a couple days ago about setting a public physical address? Sep 22 13:56:32 seand, yeah, but where can I set it? Sep 22 13:56:52 the field is going to be available on 30 Sept, you have 30 days to comply Sep 22 13:57:20 30 days? where does it say that ? Sep 22 13:57:29 also what happens after ? ;) Sep 22 13:57:29 it doesn't say that, i emailed them Sep 22 13:57:43 ok, thanks :) Sep 22 13:57:43 asking what the fuck they were thinking Sep 22 13:57:56 and they sent some standard BS response Sep 22 13:58:19 We are requiring sellers of content to provide a physical address for all paid apps or apps that enable in-app purchases. The address will be displayed to users in the app store listing page. By September 30, 2014, you'll be able to add a physical address by going to your Settings page on the Developer Console (https://play.google.com/apps/publish/#ProfilePlace). Please comply within 30 Sep 22 13:58:19 Users can already see your address on their email receipts when they buy your app. It's been like that for a long time... Sep 22 13:58:19 days of the warning notification on the developer console. If you do not provide an address within this period, Google may take action affecting your account. This may include restricting your ability to update apps or publish new apps. Continued failure to provide an address may result in published apps being removed from the store. Sep 22 13:58:30 Users can already see your address on their email receipts when they buy your app. It's been like that for a long time... Sep 22 13:58:56 yes, so what? Sep 22 13:59:22 who has a problem with giving out their address to customers Sep 22 13:59:49 lots of people? Sep 22 13:59:53 like freelancers Sep 22 14:00:32 we're talking about android app developers Sep 22 14:00:42 duh. Sep 22 14:00:42 if you had a problem with it you wouldn't make your app paid Sep 22 14:00:42 mrdarknezz: it works setting the background of the actionbar. the problem is that the area of transparency in the actionbar will not fill with the view layout. So I think the best approach is to use an image view on the parent top. Sep 22 14:00:55 seand, that's just stupid Sep 22 14:01:03 why? Sep 22 14:01:19 I don't need some psycho coming to my home or sendimg me stuff just because they decided to buy my app Sep 22 14:01:25 for their money they get the app, nothing else Sep 22 14:01:25 Birk_: Yeah but that won't follow in a scrollview? Sep 22 14:01:31 it's legally a business, it should legally have a physical address Sep 22 14:01:52 ok, you go ahead Sep 22 14:01:57 lol Sep 22 14:02:10 I will just stay away from play store, just like I have so far Sep 22 14:02:23 I love when people say "legally" in which country?? Sep 22 14:02:37 is there more than one? :p Sep 22 14:02:44 in which country is it not, MikeWallaceDev_ Sep 22 14:03:11 I've no problem with my address being public when I'm doing business over the Internet. As a customer I'd expect the same from anyone I buy something from. Sep 22 14:03:28 Mine. Canada. I make under $30,000.00 a year, so I don't have to declare it as a business. Sep 22 14:03:29 EPG do you have a company address or are you fine with your home address being publish? Sep 22 14:03:33 mrdarknezz: probably you should put it outside the scrollview. Maybe use a base layout with a container for the other layouts. So the header keeps there always. Sep 22 14:03:47 I would not expect or care for anyone's physical address if I'm buying online digital content Sep 22 14:04:03 Many people, including me, think that we are not the business, Google is. Sep 22 14:04:08 seand, I've only my home address so that's public Sep 22 14:04:10 I have a problem with giving out my address Sep 22 14:04:28 i have no problem giving it out to customers, but i do to the entire internet Sep 22 14:04:29 They can refund my app if they want, they can sell it, not sell it, remove it... Sep 22 14:04:31 due to legal requirements I couldn't use a postbox address anyway (for my website) Sep 22 14:04:34 which is what google is about to do Sep 22 14:04:42 po box is an answer though Sep 22 14:04:43 what use is some dev's physical address anyway? Sep 22 14:04:51 hey guys. i am using fragments in my app, inside fragment i have serveral content downloaded from http. Sep 22 14:05:08 but how can i recreate the views when the device got rotated? Sep 22 14:05:10 po boxes cost money Sep 22 14:05:13 and effort Sep 22 14:05:18 do i need to use onSaveInstanceState ? Sep 22 14:05:19 if you're a business, you can afford it Sep 22 14:05:34 if you can't, hire someone to do it for you Sep 22 14:05:37 what about indie developers? Sep 22 14:05:38 (just using your own flawed logic) Sep 22 14:05:51 I had some worries initially about it but (1) I have no other option (2) nothing has happened (yet) ;) Sep 22 14:05:56 ravilov, junk mail, pranks, etc Sep 22 14:06:06 ravilov i don't have flawed logic Sep 22 14:06:11 What about Flappy Bird developers and all the death threats they Sep 22 14:06:12 seand, uhhuhh, sure Sep 22 14:06:17 your address may be public info, but it's effectively private Sep 22 14:06:53 EPG nothing has happened yet because it's not yet publicly displayed for screen scrapers Sep 22 14:07:03 it is on my website Sep 22 14:07:08 oh Sep 22 14:07:12 why would you do that Sep 22 14:07:20 EPG, there is always a choice of having nothing to do with play store, works forme Sep 22 14:07:21 because I have to Sep 22 14:08:02 EPG do you live in the EU? Sep 22 14:08:17 seand, yep, Germany Sep 22 14:08:30 here a "summonable address" is required on the website imprint Sep 22 14:08:51 ... how do you summon an address? Sep 22 14:09:00 BulleTime, cache the content? Sep 22 14:09:05 you summon _me_ Sep 22 14:09:15 po box... Sep 22 14:09:20 ravilov please go away Sep 22 14:09:23 no po box Sep 22 14:09:23 get the cheapest thing Sep 22 14:09:34 and check it once every 3 months Sep 22 14:09:35 it's not a summonable address (at least here) Sep 22 14:09:36 seand, what makes you think you get to tell me what to do? Sep 22 14:09:50 ravilov yeah i was thinking about that. but if i would not cache the content, i should just get the content from savedInstance and then use that? Sep 22 14:10:09 BulleTime, yeah if you saved it previously Sep 22 14:10:18 okay Sep 22 14:10:20 pfn, will you not get spam mail at a po box once it's opened? Sep 22 14:10:39 seand, shouldn't, no Sep 22 14:10:44 the cheapest one in my area is $62/year Sep 22 14:11:11 and you get one at a 3rd party, like the ups store Sep 22 14:11:15 not worth it, i don't even know if my app will make $62/year Sep 22 14:12:30 i would rather just put my home address and hope someone doesn't come and murder me Sep 22 14:12:31 so po boxes are not an option for anyone because they don't work for you? Sep 22 14:12:42 yeah hoping totally works Sep 22 14:12:50 po boxes are not an option for lots of indie developers because look on reddit Sep 22 14:13:07 lol Sep 22 14:13:17 well now we're getting to REAL evidence Sep 22 14:13:18 reddit Sep 22 14:13:23 just... lol Sep 22 14:13:34 well reddit does have REAL people discussing REAL issues Sep 22 14:13:38 Can we please stick to AndroidDev? Sep 22 14:13:53 this is related to android dev, this affects developers of paid apps Sep 22 14:13:57 riiight Sep 22 14:14:04 ravilov: you can provide a mailbox, you don't have to provide an address to your home Sep 22 14:14:04 real people Sep 22 14:14:05 no trolls Sep 22 14:14:26 nb-ben, what's it look like we're discussing right now? :p Sep 22 14:14:33 is there any easy way to get the current activity inside a fragment ? Sep 22 14:14:42 getActivity() ? Sep 22 14:14:56 ravilov: I am refering to the previous discussion Sep 22 14:15:05 seand, if you don't think your app will make 62/yr then don't make it a paid app... Sep 22 14:15:14 ravilov cool thanks Sep 22 14:15:16 ravilov: where google's new requirement from paid app developers was discussed Sep 22 14:15:20 it really doesn't make sense Sep 22 14:15:21 well get up to date, nb-ben ;) Sep 22 14:16:18 seand, ad supported apps don't need an address... Sep 22 14:16:25 pfn: it's not that i don't think it will, i just don't know. Sep 22 14:16:50 pfn: and it's not just about the money, it's the fact that i would have to check it. i don't even like checking my own mailbox Sep 22 14:16:52 its so annoying that you cant put admob ads in a dialog... Sep 22 14:17:01 seand, if you don't know, you haven't sold anything to begin with and this hasn't affected you anyway Sep 22 14:17:14 ie you have nothing to complain about Sep 22 14:17:27 pfn: it hasn't affected anyone yet because it's not yet in effect Sep 22 14:17:37 this little issue has been the most ridiculous yet hardest problem I've had in this project Sep 22 14:18:05 the policy has been posted, so it does affect everyone currently selling apps Sep 22 14:18:06 I've never made a paid app (not the way I plan to make money), but if I did, I'd make it a donate, not required. I recently bought an app from playstore even though the free version completely satisfied all my needs and I didn't need the paid version - because the app was *that* good and I wanted to support the dev Sep 22 14:18:15 everyone should calm down, there are a few things to consider …. the biggest is this, you dont enter an address, to remove your app google mentions the word "may", this is because to do so could and will violate various aspects of you and your customers expected performance in an agreement … the biggest is that you eliminate bugs in something they have purchased Sep 22 14:18:39 and of course I would just keep away from play store Sep 22 14:18:52 I sell a handful of apps Sep 22 14:18:54 google doing this would be liable for a class action suite ….. an agreement needs only consideration and or offer to become transient Sep 22 14:19:09 they make me a fair amount of money, enough to cover a po box Sep 22 14:19:31 as for fixing bugs, I disagree with that Sep 22 14:19:46 customers can get a refund Sep 22 14:19:58 yeah for like... 2 hours Sep 22 14:20:05 not gonna fix a 100 hour bug/feature on a 99c app Sep 22 14:20:06 unless you offer a refund on your own Sep 22 14:20:13 this only annoys me because I want snailmail to become deprecated Sep 22 14:20:45 nb-ben, but where would they send you all the lawsuit paperwork then? Sep 22 14:20:46 ravilov, 2 hours of utility from a 99c app is more than enough Sep 22 14:21:00 ravilov: email Sep 22 14:21:11 ravilov: paper is also deprecated Sep 22 14:21:25 ravilov: you meant PDF files, didn't you? Sep 22 14:21:26 nb-ben, have you ever worked with any part of the government? :p Sep 22 14:21:40 pfn, I paid $.65 for the app I didn't even need ;) Sep 22 14:21:40 pfn: are you not annoyed that you now have to pay for a PO box? Sep 22 14:21:56 maybe he's had a po box all along Sep 22 14:22:00 ravilov: unfortunately yes, I want them to change Sep 22 14:22:07 seand, slightly, yes Sep 22 14:22:19 depends on how the policies end up working out Sep 22 14:22:23 nb-ben, good luck with that Sep 22 14:22:24 pfn: the only reason this is being mandated by google is because of an EU directive Sep 22 14:22:37 ravilov: I never mentioned I'm going to take action for it Sep 22 14:22:47 then you don't really want it that bad Sep 22 14:22:54 and it's bullshit because if you look at etsy sellers, most of them don't have physical addresses listed even if they are in an EU member state Sep 22 14:23:02 or amazon Sep 22 14:23:18 amazon and etsy could be next Sep 22 14:23:19 ravilov: I don't really want anything that bad, that would require ambition.. Sep 22 14:23:30 etsy has already made a post about it earlier this year Sep 22 14:23:41 they made the field optional and etsy sellers are just like "fuck that" Sep 22 14:24:15 nb-ben, oh yeah I know, I'm totally up for just about anything as well, so long as I don't have to get off the couch :p Sep 22 14:24:37 ravilov: the only exception here is food Sep 22 14:24:50 ravilov: I may go great lengths for food when I want to put it in my face Sep 22 14:25:30 face, ha Sep 22 14:25:41 eventually it'll find its way to your mouth either way, huh? Sep 22 14:26:20 bro you need to stop being so literal Sep 22 14:26:31 anyway fuck you google Sep 22 14:26:50 so much love Sep 22 14:27:08 that sean dude really needs to chill Sep 22 14:27:24 I want to put him in my face now Sep 22 14:27:48 gross Sep 22 14:28:06 <|;o) Sep 22 14:35:04 hi every one Sep 22 14:35:14 i have a problem in the app i made Sep 22 14:36:04 cool :) so does a lot of others Sep 22 14:36:05 heh Sep 22 14:36:08 what is the bug? Sep 22 14:36:12 dont ask to ask just ask Sep 22 14:36:24 the problem is: i made a radio streaming app for my local radio station (Shoutcast), the app works fine when i launch it, now when i come back to it using the icon in the app launcher it loads 2 instances of the app Sep 22 14:36:48 you have to make sure that its singleTop Sep 22 14:36:50 in the manifest Sep 22 14:36:54 and thus my stop icon which is hidden on startup hides and i cant stop the playng Sep 22 14:36:59 oh Sep 22 14:37:50 on your main activity in your manifest just add android:launchMode="singleTop" Sep 22 14:37:52 Hi! Is it possible to force android to search for a cell faster?, I know it's there but it takes a lot of time for my cellphone to use it Sep 22 14:38:09 cell as in cell tower? Sep 22 14:38:11 ty! Sep 22 14:40:16 guys Sep 22 14:40:23 ty lemonxah Sep 22 14:40:26 that fixed it Sep 22 14:40:31 ofc it did :) Sep 22 14:40:43 one more thing, pressing the play/stop button many times FC's the app Sep 22 14:40:53 I just got a support ticket from someone using Nexus 5 with L, with screenshots of 1 of the layouts looking horribly messed up on their devie Sep 22 14:40:56 device* Sep 22 14:41:01 that you have to debug Sep 22 14:41:23 what do I do! how will I know what to change with the layout? the layout works for all of the devices we support Sep 22 14:41:35 Sicp you will have to get the emulator involved unless you have a Nexus 5 to test ont Sep 22 14:41:40 -t Sep 22 14:41:45 yes, cell location... when I'm in the subway there is no total coverage between stations, but I know there is a cell inside each station, still sometimes the train does not stops long enough for the cellphone to update cell info to the new cell Sep 22 14:41:48 I see Sep 22 14:42:08 why would the layout be fucked like that? if they break RelativeLayout for example...what are the millions going to do? Sep 22 14:42:18 lemonxah, here is the code: http://pastebin.com/56D6tzrz if you can take a look if anything is wrong? Sep 22 14:42:19 maybe they dropped Weight tag? Sep 22 14:42:30 its the most significant suspect I can see in that layout file Sep 22 14:42:38 migsar are you writing an app that will do this? or are you asking if there is something you can do to get network coverage faster? Sep 22 14:43:09 Sicp my bet would be to create a layout specifically for L Sep 22 14:43:21 for all of my layouts? Sep 22 14:43:27 wow Sep 22 14:43:28 just for the ones that doesn't work Sep 22 14:43:39 remember there is a base layout folder Sep 22 14:43:44 yea Sep 22 14:43:46 lemonxah: I'm writing an app for getting the location inside the subway by mapping the cellIDs Sep 22 14:43:50 and other folders Sep 22 14:43:51 yea Sep 22 14:43:55 ok ..emulator then Sep 22 14:43:59 Sicp there will be no change like that Sep 22 14:43:59 and then you make a folder called layout-20 (for example) Sep 22 14:44:11 and then just add a new layout there with the same name as the layout that doesn't work Sep 22 14:44:19 Sicp tell the user to stop using an unfinished OS Sep 22 14:44:25 exactly Sep 22 14:44:33 which means the default layout will be served to all devices but the new layout only for L Sep 22 14:44:35 Could someone help me about how to easily reuse code that manipulate UI in different activities ? Sep 22 14:44:36 when L comes it will work fine Sep 22 14:44:59 unless L changes stuff again like they did between 2.3 and 3 Sep 22 14:45:17 where margin_left does nothing in 2.3 and you ahve to use padding_left instead Sep 22 14:45:17 lemonxah changes like what ? Sep 22 14:45:28 you mean bugs Sep 22 14:45:50 the margins in 2.3 didn't work as they were supposed to in the first place and it makes layout different on later devices Sep 22 14:46:04 sure bugs but what is to say L didn't fix a layout bug that is causing this? Sep 22 14:46:16 there is no way to know until we get to look at it though Sep 22 14:46:33 cause there are no bugs like that Sep 22 14:46:36 check the lists Sep 22 14:46:38 :) Sep 22 14:46:39 anyluck lemonxah? :) Sep 22 14:46:59 ather, better would be to lock the button down while the startPlaying is executing Sep 22 14:47:17 how? Sep 22 14:47:21 cause you care clicking on it again in rappid succession will cause the same code to run twice before the first stopped Sep 22 14:47:26 (sorry im very new) Sep 22 14:47:39 in android development i.e Sep 22 14:48:16 As far as I know, the Kindle Fire doesn't have access to the play store. How would such an user install my app that is only available on the play store? Sep 22 14:48:25 so in your start playing you are making the stop visible before the code in start has actually starting running so clicking on stop will then start the stop even though it might not have starting playing yet Sep 22 14:48:55 hmm Sep 22 14:49:15 just do this like .. play.setEnabled(false) and in your onPrepared where you actually start playing do play.setVisible and stop.setVisible Sep 22 14:49:20 and the same with the stopPlaying Sep 22 14:50:19 anyway hope you get it working i am out going home Sep 22 14:50:21 cheers Sep 22 14:50:26 ty Sep 22 14:50:57 20 does not appear on the list when I try to change it as a target for one of my AVD's Sep 22 14:52:34 nvm Sep 22 14:52:45 intel part of it wasn't installed Sep 22 15:00:23 Hi guys. I use BitmapFactory.decodeByteArray(bytesImage, 0, bytesImage.length, options) to get image width, height and mimeType but it returns wrong values for width and height and null for mimetype. byte[] bytesImage is taken from the DB with getBlob method. Do I have to process bytesImage somehow before passing it to decodeByteArray method? Sep 22 15:02:04 so? it is not possible? :( Sep 22 15:14:45 nope, I just installed its Intel x86 Atom image and L is still not showing up in the list of targets under any newly created AVD Sep 22 15:14:57 only get up to 19 Sep 22 15:15:44 Sicp: I had that same problem. Did you restart your avd manager? Sep 22 15:15:58 you mean just press it again? Sep 22 15:16:03 there's no formal "restart" for it Sep 22 15:16:26 I mean close AVD Manager and actually, SDK Manager Sep 22 15:16:30 then reopen them Sep 22 15:16:37 I'll do you a better one Sep 22 15:16:42 sorry, I just joined the chat Sep 22 15:16:42 I'll close the IDE along with them Sep 22 15:16:48 Ok, yeah good idea Sep 22 15:17:04 hihi Sep 22 15:17:15 hmmm Sep 22 15:17:22 Hi Sep 22 15:17:34 Holy crap. I'm sure that I have been bitten by this bug somewhere or another in my apps : http://javarevisited.blogspot.ca/2014/09/common-java-multi-threading-mistakes-1-run-vs-start.html Sep 22 15:17:35 android:launchMode="singleTop" fixes the issue if only i come out of the app using the home button Sep 22 15:17:59 how would I do to set quantities (multiple) of different products present on the same layout? Sep 22 15:18:02 but if i press the back button and go back to it, its the same problem ;/ Sep 22 15:18:04 ather, what do you mean by 2 apps? Sep 22 15:18:23 MikeWallaceDev: Just looking at the URL... I'm sure that's easy to find... Sep 22 15:18:37 which url? Sep 22 15:18:50 The URL you just pasted in here. Sep 22 15:18:52 I mean how should I name id's of a list of items in order for user to fill these forms? Sep 22 15:19:06 MikeWallaceDev, ive made a radio streaming app, if i just press the home button and come back to the app later from hte icon in launcher, it works fine Sep 22 15:19:15 you lost me flan3002 :-/ Sep 22 15:19:16 Pick any of the url's you pasted Sep 22 15:19:39 The last one. http://javarevisited.blogspot.ca/2014/09/common-java-multi-threading-mistakes-1-run-vs-start.html Sep 22 15:19:41 but if i press the back button and radio is playing in bg, click the icon to come to it, the stop button is gone, play comes up Sep 22 15:19:46 that worked Sep 22 15:19:47 thanks Sep 22 15:19:48 and only way is to exit it Sep 22 15:19:57 yeah, what about it? I don't understand what you are saying Sep 22 15:20:01 np, Sicp Sep 22 15:20:15 "Did you try turning it off and on again?" ;P Sep 22 15:20:28 ather, sounds to me like you are just not keeping track of your state correctly Sep 22 15:20:43 MikeWallaceDev; http://pastebin.com/56D6tzrz Sep 22 15:20:47 hmm Sep 22 15:20:57 ok, let me check that out Sep 22 15:21:13 android:launchMode="singleTop" this fixed it but only if i press home button, not the back button Sep 22 15:21:16 ok thanks Sep 22 15:21:41 back button will kill the Activity, home button won't Sep 22 15:21:45 hmm Sep 22 15:22:10 MikeWallaceDev: Not important enough to discuss this long... Basically, as long as you know what the code you write is doing, introducing that bug should only be a typo/too fast decision. Sep 22 15:22:54 that's why i posted the link flan3002 so that other people could see that problem. Sep 22 15:23:11 Genymotion can't offer you to change the API? Sep 22 15:23:20 only pick from the list of available devices? Sep 22 15:23:23 I'm reading it, MikeWallaceDev. Thank you Sep 22 15:23:23 I never noticed that Sep 22 15:23:25 ather, you're running your media in the Activity, shouldn't this be in a Service? Sep 22 15:24:04 im very new to android coding, so most of the code is from the examples and tuts online Sep 22 15:24:06 ather, you're not saving any state.. Sep 22 15:24:17 hmm Sep 22 15:24:20 ather, then you have a lot of reading to do my friend :) Sep 22 15:24:50 what do i need to fix? Sep 22 15:24:54 You should know all the basics, Activities, Services, Activity life cycle. Sep 22 15:25:02 Managing the Activity Lifecycle: http://developer.android.com/training/basics/activity-lifecycle/index.html Sep 22 15:25:16 That's what you need to fix : learn first :) Sep 22 15:25:16 hm Sep 22 15:25:21 ather, your code, looks like :p Sep 22 15:25:25 Recreating an Activity: http://developer.android.com/training/basics/activity-lifecycle/recreating.html Sep 22 15:25:41 I think those would be helpful. They helped me Sep 22 15:25:51 Thanks Sep 22 15:25:54 the whole of d.android.com would be helpful Sep 22 15:26:06 ather, notice how Ironthighs links all have "training/basics" in them :) You have to start there buddy Sep 22 15:26:32 yup Sep 22 15:26:41 Thanks MikeWallaceDev and Ironthighs :) Sep 22 15:26:46 (And I still say that "Read the official documentation first" should be in the channel's topic) Sep 22 15:26:57 no prob ather good luck! Sep 22 15:27:02 as if anyone ever even notices there's a topic Sep 22 15:27:25 making it the welcome note upon joining would be more useful Sep 22 15:27:28 I know, but it would be easier to copy paste the topic than answering the questions :D Sep 22 15:27:37 I'm having an issue with facebooks AppEventLogger.newLogger(context);. It works in all of my classes except my ActivityLifeCycleHelper. I can autocomplete the newLogger method, but Android Studio tells me afterwards "cannot resolve symbol 'newLogger'", when trying to build I get the error "cannot find symbol class newLogger". Can someone tell me what might be wrong? Sep 22 15:28:04 sync gradle Sep 22 15:29:18 Guys, I just finished my last fixes on Focus. Could you do me a favor and check it out before I push it to the market, please? This is the post: https://plus.google.com/+MikeWallaceDev/posts/RH7XHEmSdHp Sep 22 15:29:34 Hmm.. for some dark reason, doing a SetText crashes my application Sep 22 15:29:35 Especially i fyou are running ICS or JB Sep 22 15:30:13 Hello guys, I do have some questions regarding reusability of codes :) Sep 22 15:30:19 MikeWallaceDev, sounds like you'll never push it to the store if you'll be waiting for feedback here Sep 22 15:30:23 Nindustries: Is the variable null? Sep 22 15:30:29 (I know you asked this same thing yesterday as well) Sep 22 15:30:43 ravilov, I'm waiting for feedback in a few places.... Sep 22 15:31:04 The code was very complicated, I just want to make sure I caught the edge cases Sep 22 15:31:16 Ironthighs, I'll check that Sep 22 15:31:52 Especially since I can't get my emulators to run ICS or JB correctly... Sep 22 15:32:08 try with GB :p Sep 22 15:32:35 Sigh... I wish I could. The librairies are > 14 Sep 22 15:32:49 can someone help me modify an apk to work with fire tv? Sep 22 15:32:53 Nindustries: http://pastebin.com/hbS3DSVd Sep 22 15:33:10 too bad, means I can't test Sep 22 15:33:15 How do you guys would use the same portion of codes in two different activities ? Sep 22 15:33:31 wow. Sep 22 15:33:34 Johne, no one-on-one discussions here, if you have a specific question ask away Sep 22 15:33:57 soueuls, by calling it twice Sep 22 15:33:59 oh ok Sep 22 15:34:28 ravilov: Yeah but the portion of code need to actually modify the GUI of the concerned activity Sep 22 15:34:46 also in topic : Learn Java (and coding!) before you come here. Sep 22 15:34:46 ok? Sep 22 15:34:58 soueuls, ok? Sep 22 15:35:43 ravilov: I could duplicate the code twice, that's not really the problem, but I am a bit perfectionnist and I would like to know the cleanest way to reuse code in that case. Sep 22 15:35:58 I never said you should duplicate Sep 22 15:36:13 there are like at least a dozen ways you could do this, all of them easily googlable Sep 22 15:36:41 Put code in a method, call method from two or more places Sep 22 15:36:56 ravilov, I commend you. I don't know how you can even answer these questions. Sep 22 15:37:24 soueuls, I don't really understand where's the issue, why is it important that the code needs to modify the UI? Sep 22 15:37:35 Ironthighs, Silly me! Textview wasn't there, because I didn't do my setContentView() yet :P Sep 22 15:37:37 Thanks Sep 22 15:37:39 MikeWallaceDev, patience and experience? Sep 22 15:37:51 np Nindustries Sep 22 15:38:04 ravilov, since when are you patient? ;) Sep 22 15:38:10 yes Sep 22 15:38:25 also experiment Sep 22 15:39:05 ravilov: I will be more clear sorry, RegisterActivity where the user can upload a profile picture from gallery or camera (he chose with a context menu). And I will have a ProfileActivity where he can also change his profile picture with the exact same pattern (context menu and all) Sep 22 15:40:31 ravilov: I would like then to externalize this portion of code (managin the context menu, using the intent to take the picture from gallery or the intent to take a picture from camera, resizing and all) Sep 22 15:40:59 How can someone build an app and not know what a method is? Sep 22 15:41:47 soueuls: You would write a class with a method that would create and initialize the intent to open the gallery/camera. Then in the corresponding activities, you override the onActivityResult method Sep 22 15:42:17 MikeWallaceDev, they could use an app builder Sep 22 15:42:18 So from each activity, you call this class' openCamera method or openGallery method Sep 22 15:42:29 abstract class BaseActivity extends Activity { /* various shared stuff */ } class RegisterActivity extends BaseActivity {} class ProfileActivity extends BaseActivity Sep 22 15:42:34 {} Sep 22 15:42:53 That's another way to do it too. Sep 22 15:43:08 static void doCameraStuff() Sep 22 15:43:27 like I said, at least a dozen ways to do this. you really should have googled first, soueuls Sep 22 15:43:29 there are many ways to do it Sep 22 15:43:41 ravilov, exactly Sep 22 15:43:57 I'm not patient today. (just experienced :P ) Sep 22 15:46:10 I googled it already but most of the answer were refering to the "fragment" Sep 22 15:46:25 That's another way... Sep 22 15:46:25 your google mojo is low today Sep 22 15:54:48 Hi, suppose I want to have a button and the rest of the width filled with a TextView. What's the best way to do thia? Sep 22 15:54:51 this* Sep 22 15:55:11 Nindustries, horizontal linear layout Sep 22 15:55:12 linearlayout with layout_weight=1 Sep 22 15:55:19 weights Sep 22 15:55:28 where you set the width of the button in dp and set width of the text view to 0 and layout_weight to 1 Sep 22 15:56:01 I see, thanks Sep 22 15:56:40 Works perfect! ^^ Sep 22 16:03:37 I want to lay two bricks next to each other. what is the best way to accomplish this and how should I approach this problem? also what kind of mortar would you recommend? Sep 22 16:04:00 * ravilov hides Sep 22 16:05:04 is there any way to detect a which cpu i am using and its clock speed ,to check whether vendor is giveing correct information Sep 22 16:05:06 not overclocked ? Sep 22 16:05:31 Are you using clay bricks or ciment? Sep 22 16:06:00 I don't know, what would you recommend? Sep 22 16:06:09 I'm new to bricks, I googled some but it's all too confusing Sep 22 16:06:25 samba35, -> #android-root Sep 22 16:06:31 samba35, nothing reliable Sep 22 16:06:34 do not use ciment, it can BRICK your phone! You see what I did there!??? It was FUNNY!@!!! Sep 22 16:06:58 but yeah, I'm with you on that one ravilov Sep 22 16:07:42 It's more like, Hi I want to build a car from scratch, what do the spark plugs do? Sep 22 16:08:24 (ha)³ Sep 22 16:08:46 O.o Sep 22 16:09:44 How important is this structure you're building? You can save $$ by using elmer's glue instead of mortar. They do practically the same thing Sep 22 16:10:15 how do i install google play services on an emulator without an account? Sep 22 16:10:27 i found some third party solution online, but its outdated Sep 22 16:10:40 The brick layer: "No! This structure will be easily knocked down!" Manager: "Yes! We can save money! USE ELMERS!" Sep 22 16:10:44 Ironthighs, I'm a contractor and I only care about money sooo... not too important Sep 22 16:11:36 but there's a thought right there, maybe I could use wooden bricks Sep 22 16:13:14 ravilov: perfect Sep 22 16:13:37 LighterFluid, grab the google services image Sep 22 16:13:48 but there's no real good way of getting full play services on official emulator Sep 22 16:14:19 what is the point of having/using play services without an account? maybe I'm missing something Sep 22 16:14:43 ravilov: I have a thing to justify that Sep 22 16:14:50 ravilov, why would you need an account to draw a map? Sep 22 16:14:58 ravilov, or receive GCM push? Sep 22 16:15:10 or send analytics data? or show an ad? Sep 22 16:15:20 or stream to chromecast? Sep 22 16:15:25 lol Sep 22 16:15:44 dunno, because google? lol Sep 22 16:15:48 Those are great questions Sep 22 16:16:13 I guess I'm just used to google always requiring you to have an account for just about anything Sep 22 16:16:33 When I was working at my last job, we wanted people to have anonymous accounts at the beginning because players didn't want to spend time creating accounts with us Sep 22 16:16:42 but this situation is different Sep 22 16:18:16 mah, the design of Play Services looks like it was done by interns not smart developers Sep 22 16:19:57 someone argued the other day the whole entire android is just one huge hack Sep 22 16:20:59 everything in tech is a hack built on other hacks Sep 22 16:22:30 people think java is a hack, so thats quite fitting Sep 22 16:22:37 Unfortunately, I have to agree. Android WAS awesome, now it's a hack :( Sep 22 16:23:13 android was a hack and is improving. a lot. Sep 22 16:23:44 sorry rgr, have to disagree there... Where is it improving? Sep 22 16:23:50 lol Sep 22 16:23:50 java isn't a hack Sep 22 16:23:52 Depends on your definition of hack. :) Sep 22 16:23:54 but it's pretty much garbage Sep 22 16:24:11 The JVM is pretty solid, the language... yeah. Sep 22 16:24:12 pfn, that's why it has GC, right? :p Sep 22 16:24:23 (where JVM == Hotspot) Sep 22 16:24:26 one of these days it's just going to collect itself Sep 22 16:24:51 GC is for noobs who can't design and code systems. Sep 22 16:25:45 * flan3002 is not going to argue that, though he feels like MikeWallaceDevs opinion is a little binary here. :P Sep 22 16:26:24 I disagree with that. It's totally binary. :D Sep 22 16:26:27 agreed there. but java has come on a lot particularly in generucs and compile time type analysis. couolrx Sep 22 16:26:57 MikeWallaceDev, either it is or it isn't Sep 22 16:27:04 right? Sep 22 16:27:11 AmIRight? Sep 22 16:27:48 Imma let you finish, but GC is for noobs. Sep 22 16:28:07 * flan3002 reminds himself strongly not to argue now. Sep 22 16:28:08 MikeWallaceDev, didn't get what you said last, it got GC'd Sep 22 16:28:24 ravilov, :D Sep 22 16:28:59 flan3002, do you need an "argue now" reminder for later? :p Sep 22 16:29:19 just say "Ok Google, remind me later" Sep 22 16:30:59 ok google now, remind me to never argue on the internet again Sep 22 16:31:17 return false; Sep 22 16:32:27 I'm going to make an app that yells Ok Google in a frequency range that the human ear can't hear but their smartphones can, and then see how much more I can hack ;-) Sep 22 16:33:38 right, because gnow is totally not calibrated to human voice only :p Sep 22 16:47:13 rgr|android, it hasn't Sep 22 16:57:09 Hello, I'm receiving a duplicated intent in my broadcast receiver, according from logs, onReceive (from the BroadcastReceiver) gets called twice, is this normal? how do you usually deal with this? Sep 22 16:59:18 we usually post relevant code when asking for help ;) Sep 22 17:05:47 Hey all, how do I Unit Test objects which require context? Sep 22 17:06:12 one of the classes/activities im tiesting calls getPackageManager() and I am getting NullPointerException at getResources() Sep 22 17:08:27 Hi all. Any idea for this PlayStore related bug? http://stackoverflow.com/questions/25978809/uploaded-apk-to-play-store-got-0-supported-devices-but-no-error Sep 22 17:11:09 tricknology, googled already? http://stackoverflow.com/questions/2095695/android-unit-tests-requiring-context#answer-2095761 Sep 22 17:11:46 I am extending AnroidTestCase, yes Sep 22 17:12:00 InstrumentationTestCase seems to be workign better though.. Sep 22 17:13:50 my problem is this: https://stackoverflow.com/questions/15168803/keyevent-action-up-fired-twice-for-action-media-button but I don't have it twice on my Manifest Sep 22 17:21:07 pakcjo, do you register the receiver in your code? Sep 22 17:22:55 EPG: yes, I have to, to get the audio focus, with registerMediaButtonEventReceiver Sep 22 17:23:43 pakcjo, did you try removing it from the manifest? Sep 22 17:24:05 EPG: yes, if I remove it from the manifest I don't get the intent when the application is in the background Sep 22 17:24:40 EPG: what I haven't tried is to remove registerMediaButtonEventReceiver() Sep 22 17:24:57 some broadcasts cannot be received by inactive apps Sep 22 17:25:01 that is by design Sep 22 17:26:22 ok, so you're registering it twice Sep 22 17:26:42 then it's your job to deal with duplicate calls to it Sep 22 17:26:52 EPG: thanks! Sep 22 17:27:09 except registering it in manifest seems to be pointless, so you can just as well do without that Sep 22 17:28:08 pakcjo, I think (but am not sure) you could keep track of the last action and only react to ACTION_UP if the last one was ACTION_DOWN Sep 22 17:28:31 or similarly Sep 22 17:28:55 ravilov: I tried, didn't work, if it is not in the manifest I don't get it when the app is in the background Sep 22 17:29:13 EPG: yes, I'm doing something similar Sep 22 17:29:19 pakcjo, you're missing the point here Sep 22 17:29:24 let's try again Sep 22 17:29:25 pakcjo, you should have a very good reason to listen for this while your app is in background Sep 22 17:29:42 some broadcast intents are DESIGNED to only ever be sent to active apps Sep 22 17:30:23 ravilov: I'm sure controlling the volume is not one of them... Sep 22 17:32:17 what I try to do is documented, not trying to do anything weird: https://developer.android.com/training/managing-audio/volume-playback.html Sep 22 17:32:35 what are you trying to do? Sep 22 17:33:04 tricknology: play when I get MEDIA_BUTTON Sep 22 17:33:44 what exactly does your manifest look like? post it Sep 22 17:34:28 ravilov: http://pastie.org/9584981 Sep 22 17:35:28 hmm Sep 22 17:35:38 hmm I removed the registerMediaButtonEventReceiver(), it still works, I still get duplicate intents... The fun part is that I know this will probably work on other android version Sep 22 17:37:15 are you sure it works? your app could still be in the background somewhere Sep 22 17:37:35 hi. can i trust garbage collection or should i try to dispose my objects somehow? Sep 22 17:37:49 like i created a list, copied the content reversed to a new one and wont need the first one ever again Sep 22 17:37:55 just clear() it and wait for GC? Sep 22 17:38:15 pakcjo, please post your receiver code Sep 22 17:38:16 there is no way to dispose of objects yourself, you have to trust GC Sep 22 17:38:39 but you *should* take care of detaching resources such as cursors Sep 22 17:39:21 FreshDumbledore, ravilov: assigning null to it should make sure GC clears it, no? Sep 22 17:39:37 well. will trust gc then. thanks. btw, is there a better way to reverse a custom list than using the util.listiterator and doing a while on it, writing the content in a new list reverse order? Sep 22 17:39:46 pakcjo, just letting it go out of scope will do the same without any extra steps Sep 22 17:40:06 google tells me i could call system.gc() or stuff to ask gc kindly to do his job now Sep 22 17:40:08 FreshDumbledore, no idea, google should be able to tell you though Sep 22 17:40:27 yeh my approach is what google told me, kinda Sep 22 17:40:33 just asking the pros Sep 22 17:40:34 :D Sep 22 17:40:36 FreshDumbledore, you could but there is no point, this is just advisory, GC will kick in when it feels like it anyway Sep 22 17:41:05 so in general android development is not that resource hungry that we need to care for gc? Sep 22 17:41:17 im just reading some rss and sorting / filtering the output Sep 22 17:41:21 in general, there is no generalizing like that Sep 22 17:41:22 it should not kill any mobile :D Sep 22 17:41:38 EPG: it justs sends and intent to my service, the work around in the link works Sep 22 17:42:18 FreshDumbledore: You know... people are building tons of apps using garbage collection. It's not that much of a problem. You'll be fine. Sep 22 17:42:20 if you're inexperienced (which you seem to be), you look at examples, you learn from them, and you use the same patterns Sep 22 17:42:39 until you figure out what does what and why Sep 22 17:42:51 yeah im working based on an open source rss reader (hope i wont get in any license problems.. wont sell my app :D) Sep 22 17:43:13 its my first app. i did some java some time ago (: Sep 22 17:43:56 Just make sure to comply with licenses of libraries you use. Sep 22 17:44:04 ^ Sep 22 17:44:24 And then, http://choosealicense.com/ . Sep 22 17:44:37 and of other code you're using/modifying/etc Sep 22 17:45:06 My N1 's battery keeps on draining when in the dock. At first i thought it might be the battery so i bought a brand new one and charged it overnight with the stock HTC charger. But today i put it in the dock and its still draining :( Sep 22 17:45:07 I've tried wiping the battery stats and even cleaning the contacts on both the dock and the n1. Problem persists. Sep 22 17:45:21 and this is android-dev Sep 22 17:45:22 im just using apache httpclient and the rss reader itself and as far as i see they agree to be redistributed Sep 22 17:45:59 FreshDumbledore, if you're modifying the code make sure that's ok, too Sep 22 17:46:15 for the httpclient i wont, for the rssreader i do .. will check on that Sep 22 17:46:15 and check name/trademark rights Sep 22 17:46:19 FreshDumbledore, what, even by inexperienced noobs that don't know what they're doing? :P Sep 22 17:46:36 ima go cry now :< Sep 22 17:46:37 xD Sep 22 17:46:47 XDS2010, how is this related to android app development? Sep 22 17:48:22 i will try building a menu now. wish me luck :D Sep 22 17:50:25 pretty interesting http://testdroid.com/testdroid/7621/app-stability-android-vs-ios-before-ios8 Sep 22 17:51:13 "Those older variants – starting from Froyo – are definitely more problematic but they are not widely used anymore." Sep 22 17:51:18 I think iOS tried to play catch up but haven't quite caught up to configurability and functionality of android Sep 22 17:51:20 ravilov good reason do ditch :D Sep 22 17:51:41 shmooz people seem to like it anyhow ;) Sep 22 17:52:00 but wtf happened to kitkat ? Sep 22 17:52:06 yeah its mostly about the looks and design Sep 22 17:52:14 can't wait so see where L fits in here Sep 22 17:52:15 not about functionality or configurability Sep 22 17:53:18 g00s, NEVAH! Sep 22 17:53:29 shmooz and the ecosystem, and that its not google, etc haha so many reason Sep 22 17:55:47 g00s, so the size of the bar is proportional to the number of failed tests? Sep 22 17:56:30 upper quartile and lower quartile Sep 22 17:56:40 right, so Sep 22 17:56:47 the bigger the bar the worse it is Sep 22 17:56:49 right? Sep 22 17:56:56 more variance Sep 22 17:56:57 it's kind of funny because I'm actually on 2.3.7 :D Sep 22 17:57:06 which has the biggest bar by far Sep 22 17:58:17 I mean I appreciate these tests and these results, but for me it just works so personally I don't really care ;) Sep 22 18:02:01 hey guise lil help, how to use robolectric to get shadow entries from mediastore (images and videos)? Sep 22 18:04:46 do you use shadowcontentresolver? Sep 22 18:17:04 wow, cool. emu in the cloud http://www.ravellosystems.com/blog/android-emulator-on-amazon-ec2-and-google-cloud Sep 22 18:20:07 what!? emu's can't fly :) Sep 22 18:20:55 tell it to this emu Sep 22 18:21:17 next you'll be telling me there are pigs in the cloud Sep 22 18:22:55 JesusFreke: http://33.media.tumblr.com/tumblr_krgj2i2eC11qz7b4yo1_500.gif Sep 22 18:25:44 please share your thoughts on singletons vs instances when injecting dependencies that aren’t used throughout the life of the application Sep 22 18:27:35 Hello Sep 22 18:27:41 I need to integrate Face detection in an app, i'm working on. Sep 22 18:27:58 i followed the tutorial here: http://android-er.blogspot.it/2012/04/face-detection-for-camera.html Sep 22 18:28:09 peska: Question: Does it have to be human?" Sep 22 18:28:43 But I can't seem to run it on my Samsung SIII and it throws a fatal exception Sep 22 18:29:00 Ironthighs, No. Sep 22 18:29:21 This is the exception thrown" java.lang.IllegalArgumentException: invalid face detection type=0" Sep 22 18:29:53 From what i read, it is perhaps a HW thing. Any ideas how i can workaround this issue? Sep 22 18:30:24 in the comments of that article Sep 22 18:31:00 Ironthighs, Actually the app is connected with an arduino robot. I just need something that the mobile camera can detect and send the arduino some messages. Sep 22 18:31:14 so it doesn't have to be a human Sep 22 18:31:31 can you post the stack trace? Sep 22 18:31:46 Ironthighs, Ok I will pastebin it. Sep 22 18:31:49 yep Sep 22 18:31:50 thakns Sep 22 18:31:52 thanks* Sep 22 18:32:13 i've i9301i with 4.4.2 and adb doesn't detect it, any ideas? Sep 22 18:32:29 capella just saw an article HN about e10, but there is no arrival date Sep 22 18:33:19 Is it possible to not release for weaker phones? i mean it is possible to release just for some screen sizes, what about CPUs and RAM? If you know that your game can't run on bottomend CPUs and RAM, how do you solve it? Sep 22 18:34:22 I'm not sure if this exactly solves your issue, troned, but you could set the target sdk higher Sep 22 18:34:26 Ironthighs, http://pastebin.com/eMyecPbQ Sep 22 18:34:50 er, minsdk? Sep 22 18:35:00 drag0nius: ask in #android-root Sep 22 18:35:15 Ironthighs, indirectly it does perhaps...since older devices usually have lower skds/apis/android versions. but it doesn't really solve it. Sep 22 18:35:20 I also pasted some code before the exception is thrown. Sep 22 18:35:44 e ae cambad Sep 22 18:35:48 ops Sep 22 18:35:51 Hello guys Sep 22 18:36:06 troned that would be a good feature, but also admission by google one would want to do this in the first place, admittng the playing field is not even Sep 22 18:36:20 for example, saying : not compatible if GPU == blah Sep 22 18:36:46 Yeah, I thought that was intentional by Google Sep 22 18:36:55 to not allow you to explicitly do that Sep 22 18:37:14 but since I'm not sure, I don't want to say that as fact Sep 22 18:37:29 troned: realistically I think the best you could do is post warnings and notices on gplay and elsewhere and also add basic in-game hardware detection and possibly refuse to run if certain conditions aren't met Sep 22 18:37:52 hey, I have a situation heve...I have 3 buttons, that wich one might have 3 stages, off, on, blinking, when it's blinking I use animation drawble, and start animation, I want to syncronize those animations, someone already did something close to that? Sep 22 18:38:05 it is impossible for gplay to filter on such detailed hardware specifics Sep 22 18:38:17 peska: Have you called getMaxNumDetectedFaces() to see if it is supported? Sep 22 18:38:27 PsciCOdeliXHAt: really? that again? Sep 22 18:38:43 hi, I'm getting an error when trying to run proguard: "can't find referenced method 'void setIndicatorBoundsRelative(int, int) in class android.widget.ExpandableListView". Running without proguard works perfectly fine Sep 22 18:38:52 s/Running/Building/ Sep 22 18:38:59 PsciCOdeliXHAt: highly doubt there will be any more answers than when you first asked this a week or so ago Sep 22 18:39:01 ravilov|web, ok is it possible to read CPU and RAM? Sep 22 18:39:09 Ironthighs, No, I just executed the tutorial code. I will try it now. ok? Sep 22 18:39:19 Okay. Sep 22 18:39:32 troned: everything is possible, many utilities and benchmarks do it. how? I don't know, I had no need for that so far Sep 22 18:40:22 ravilov|web: Is diferent now....I Want to sync them, Sep 22 18:40:26 peka: http://developer.android.com/reference/android/hardware/Camera.Parameters.html#getMaxNumDetectedFaces() Sep 22 18:40:43 If the result is 0, face detection is not supported Sep 22 18:40:46 PsciCOdeliXHAt: hah, well anyway good luck Sep 22 18:41:01 ravilov|web: thank you.. Sep 22 18:41:18 PsciCOdeliXHAt: Sync them? Sep 22 18:41:24 ravilov|web: I have no problem with ny answer... Sep 22 18:41:25 Like...make them blink on and off at the same time? Sep 22 18:41:35 Ironthighs: the blinkings Sep 22 18:41:40 The blinkings Sep 22 18:41:42 yes Sep 22 18:42:08 so why don't you try using a boolean as a control variable and flip it true and false every number of seconds Sep 22 18:42:31 and set the visibility of your buttons accordingly Sep 22 18:42:37 I believe he's using a drawable animation to do blinking, hence it might not be a simple on/off toggling Sep 22 18:42:48 animation drawable* Sep 22 18:42:53 yeah Sep 22 18:42:59 Don't use a drawable animation for blinking then, I guess. Sep 22 18:43:27 If all you want is to show/hide buttons, it seems like making an animation is...more complicated. Sep 22 18:44:57 Ironthighs: maybe he wants a fancy fadein/fadeout blinking ;) Sep 22 18:45:14 Sounds easy enough anyways after reading this doc Sep 22 18:45:19 http://developer.android.com/reference/android/graphics/drawable/AnimationDrawable.html Sep 22 18:46:04 I'm setting a View visibility to INVISIBLE given a condition and VISIBLE given another condition... this is the case for all 8 of my fragments... same exact code. it doesn't work in one of them, it is ALWAYS visible. before you say it, no it is absolutely not being set anywhere else Sep 22 18:46:52 android is so damn funky Sep 22 18:47:00 MikeWallaceDev: Where can I find information about most of my issues? Sep 22 18:47:14 I just don't know where to go Sep 22 18:47:40 android is funkalicious, still quite buggy with stuff like this... Now, just to test. I set always to invisible regardless of condition...it's visible. Sep 22 18:47:46 I guess I meant lmgtfy Sep 22 18:48:19 Just feel free to ask your basic question here, and we will Google it for you Sep 22 18:48:48 MartialLaw: are you sure you're setting the visibility of *all* of them? Sep 22 18:48:48 Thanks! Sep 22 18:48:53 lmgtfy: what's up? Sep 22 18:48:55 I;m so tired of the hacks in android Sep 22 18:48:58 yes i tried that hack Sep 22 18:49:12 What hack? Sep 22 18:49:19 I didn't see anyone mention any hacks Sep 22 18:49:37 set visibility to gone and then immediately set them to visible Sep 22 18:49:40 i'd consider that to be a hack Sep 22 18:49:56 What does that do? Sep 22 18:50:03 whoever mentioned such approach? Sep 22 18:50:31 It seems to me that would make at least one activity visible Sep 22 18:50:45 there's your problem! Your hack is causing the opposite of your desired effect Sep 22 18:51:33 Ironthighs you have no idea what i'm talking about do you Sep 22 18:51:36 No such hacks are needed to set visibility Sep 22 18:51:46 i think i need one Sep 22 18:51:54 MartialLaw: No I don't. I've never had to do anything like that. Sep 22 18:51:56 MartialLaw: in that specific fragment try changing some other property of the view, such as background; if you don't notice any change, it could mean you're working with views that aren't the ones you're looking at Sep 22 18:52:18 anything being the hack* Sep 22 18:53:30 ravilov: i tried that and it affects it. there is something up with visibility. don't understand. the strange part is it didn't have this behavior 30 minutes ago and i haven't touched the code. Sep 22 18:53:39 not sure what's the issue here though, I had a very similar situation in one of my apps (two sets of views where only one in the set would be visible based on various conditions), I had precisely zero problems getting what I want Sep 22 18:53:41 hence why i say android is funkalicious Sep 22 18:53:51 also try GONE instead of INVISIBLE Sep 22 18:53:55 ^ i have Sep 22 18:54:05 ok well Sep 22 18:54:10 I'm out of ideas then Sep 22 18:54:19 yeah... i'll work on a another workaround. :) Sep 22 18:54:22 thnx for trying tho Sep 22 18:54:29 Anywhere I could find some nice checkbox graphics? Where they have unchecked/checked graphics seperately. Sep 22 18:54:36 I can't seem to find any decent ones Sep 22 18:54:36 android is not *that* funkalicious, I'm pretty sure this is specific to you somehow Sep 22 18:54:46 And I'm very bad at photoshop, I've tried for about an hour. Sep 22 18:54:52 ^ lol Sep 22 18:55:04 an hour Sep 22 18:55:05 AKK9: android framework as well as any android system theme out there Sep 22 18:55:16 MartialLaw: I found this: http://stackoverflow.com/questions/15521754/show-hide-fragments-and-change-the-visibility-attribute-programmatically Sep 22 18:55:19 I've been drawing a tick for exactly 56 minutes Sep 22 18:55:21 And I don't like it. Sep 22 18:55:25 but yeah, I can't personally help you Sep 22 18:55:30 good luck Sep 22 18:55:30 Ironthighs: ill take a look Sep 22 18:55:44 Ironthighs: he's not toggling fragments though, he's toggling views if I understand correctly Sep 22 18:56:03 ravilov|web, thanks but i was hoping for a checkbox that isn't so small. Sep 22 18:56:22 AKK9: look in xxhdpi buckets then Sep 22 18:56:29 Wanted a big square where the tick is inside that square, as opposed to overlapping the outline Sep 22 18:56:45 that can't possibly be that hard to draw out Sep 22 18:57:08 i agree Sep 22 18:57:16 ravilov|web, yeah I'm very rubbish. Okay thanks, ill try again. Sep 22 18:57:24 https://cdn2.iconfinder.com/data/icons/flaticons-stroke/16/checkmark-3-512.png Sep 22 18:58:12 AKK9: But... you have searched for one, right? http://www.flaticon.com/search/checkbox Sep 22 18:58:40 i'm terrible at photoshop but i can do that...just keep trying search for tutorials Sep 22 18:58:59 To be honest, I'd have (ab)used Blender to create that icon. :P Sep 22 18:59:10 ugh, why isn't my android wear app going on my watch Sep 22 18:59:22 blender?! wow Sep 22 18:59:23 lol Sep 22 18:59:45 all I need is this, right? https://github.com/jab416171/WearTesting/blob/master/mobile/build.gradle#L24 Sep 22 18:59:46 why don't you fire up maya and use your trusty tablet :) Sep 22 18:59:57 flan3002, ooh nice. thank you they will do. Sep 22 19:00:07 (as in wacom tablet, not as in today's tablet toys) Sep 22 19:00:34 ravilov|web: *cough* Because Maya is *cough* Because I know more Blender than Maya. ^^ Sep 22 19:00:42 I thought blender was for 3d stuff? Sep 22 19:00:51 It is. Sep 22 19:00:57 Ironthighs, Ok, I tested. Unfortunately it returns 0. Sep 22 19:01:06 flan3002: yes yes I know... I'd have used gimp myself. still, I think you should totally do your checkboxes with a tablet and an epen :) Sep 22 19:01:07 But nobody's going to recognize it once you use ortographic projection. Sep 22 19:01:35 flan3002: not to mention you can get a different angle - instant 3D checkboxes! Sep 22 19:01:47 animated even Sep 22 19:01:53 ravilov|web: Maybe. But I really like that you so easily tweak and rerender the image in Blender. Also, I can't gimp. :) Sep 22 19:02:02 lol Sep 22 19:02:06 I can't blend :p Sep 22 19:02:32 That's a good thing, in some meaning of the word. :) Sep 22 19:02:51 BUT DOES IT BLEND?? Sep 22 19:02:53 <-- does not blend Sep 22 19:02:54 :p Sep 22 19:04:07 Blender for making an icon == flamethrower to light a cigarette Sep 22 19:04:42 But hey, at least the cigarette burns afterwards. Sep 22 19:04:55 nothing wrong with that if it works, right? also cigarettes kill, so might as well go in flames Sep 22 19:05:00 (however, if you can do it, more power to you) Sep 22 19:05:47 any of you know anything about android wear? Sep 22 19:05:51 I mean... I'm more familiar with Blender and it can do most, if not all that GIMP can do, and much more. :P Sep 22 19:05:51 personally I prefer RPGs to ward off mosquitos Sep 22 19:06:07 jab416171: not really Sep 22 19:06:42 RPGs? You don't use ICBMs nowadays? Sep 22 19:07:38 ICBMs are only viable when targeting mosquitos on another continent. Doesn't mean you can pick a warhead and use something short-range ;) Sep 22 19:07:47 flan3002: too pricey, also I still have a stockpile of ammo to go through, why let it go to waste, right? Sep 22 19:08:24 Let's not overdo it with realism, shall we? :P Sep 22 19:09:10 overdo it? I don't know what you're talking about. I can send you some of my ammo if you want Sep 22 19:09:16 y'know, send... in a special way... :p Sep 22 19:09:25 ravilov|web: still trying to figure out the setVisibility problem...apparently it's quite common. told ya android was funk-ayyyyy Sep 22 19:09:46 MartialLaw: weird Sep 22 19:10:10 oh look, my normal IRC system is working again Sep 22 19:10:11 bye Sep 22 19:12:47 i have a viewPager. i set adapter, and then, after adapter is restored, i want to get the current page. how can i do that? i doesn't work right away, it doesn't work via viewPager.post()... Sep 22 19:14:19 get to the current page? Sep 22 19:14:25 you want to set the current page? Sep 22 19:14:41 no, i want to get the number of current page Sep 22 19:14:58 i can set it fine, but i can't get it... Sep 22 19:16:46 maybe i should use onPostCreate or sth Sep 22 19:26:16 why isn't my android wear app going on my watch Sep 22 19:26:56 you didn't complement its new haircut and now it's not talking to you Sep 22 19:27:10 !!! ^ hAHAHA Sep 22 19:27:11 s/complement/compliment/ Sep 22 19:30:10 sarbs, I tried that Sep 22 19:30:13 doesn't help Sep 22 19:30:53 anybody knows why this happens? http://stackoverflow.com/questions/25978809/uploaded-apk-to-play-store-got-0-supported-devices-but-no-error Sep 22 19:33:41 Sometimes it just shows 0, then it updates eventually Sep 22 19:36:09 SimonVT: this is the first app I publish, about 24h passed and it is still 0 Sep 22 19:37:07 jab416171 you might have to take it to dinner or plan something nice in order to apologize if it's really sensitive Sep 22 19:39:02 Check if you can download it. If you can, it obviously supports more than 0 devices and you can assume it's just a display bug Sep 22 19:39:36 erasmospunk, is it published publicly? Sep 22 19:39:54 erasmospunk, let me see if i can download it Sep 22 19:40:23 erasmospunk: or did you accidentally exclude all devices in the manifest? Sep 22 19:40:23 SimonVT, jab416171, MartialLaw we tried but it is not available Sep 22 19:40:31 i'm trying to connect to google cloud messaging, but i'm always recieving an IOException with "SERVICE_NOT_AVAILABLE" Sep 22 19:40:36 erasmospunk, how long ago did you publish it? Sep 22 19:40:44 24h ago Sep 22 19:40:44 it should be available after 6 hours (Usually less) Sep 22 19:40:45 i'm retrying as recommended for this error message. where can i examine more output to find the cause? Sep 22 19:41:07 trying to connect, i.e. gcm.register(SENDER_ID) Sep 22 19:41:24 SimonVT, jab416171, MartialLaw from the manifest do you see anything wrong? Sep 22 19:41:58 anyone know why the play store says "requires android 1.6 and up" when I declare minsdkversion as 19 in my gradle file? Sep 22 19:42:33 do you have a minSdk also defined in AndroidManifest? Sep 22 19:42:38 I see what is probably lots of pointless manifest entries Sep 22 19:42:56 And yeah, missing uses-sdk Sep 22 19:43:05 Probably defined in gradle Sep 22 19:43:06 yes, minSDK is 10 Sep 22 19:43:09 Other than that, no Sep 22 19:43:14 in gradle Sep 22 19:43:27 btw on the store I get "This app is incompatible with your device" Sep 22 19:44:05 jab416171 i think, but am not sure, that gradle won't overwrite a minSdk that's declared in manifest Sep 22 19:45:14 SimonVT which ones are pointless? Sep 22 19:45:55 seems this requirement to put your physical address (not PO box) in public Play listing has to do with EU law. man google is terrible at communicating. Sep 22 19:46:43 at minimum one should be exempt if you aren't selling paid to EU countries Sep 22 19:46:55 (i'd just delist my app, not worth the hassle) Sep 22 19:47:10 g00s you have a point Sep 22 19:47:57 bu still lots of questions; Apple and Amazon don't require this Sep 22 19:48:11 i wonder if its some technicality in who is the 'seller' Sep 22 19:49:08 sarbs, it's not declared in the manifest Sep 22 19:49:28 https://github.com/jab416171/WearTesting/blob/master/mobile/src/main/AndroidManifest.xml Sep 22 19:49:36 Ironthighs, Since my phone can't support this great feature, is there anything else besides using the old FaceDetector? Sep 22 19:49:47 jab416171 hmm Sep 22 19:49:49 post gradle too? Sep 22 19:50:00 https://github.com/jab416171/WearTesting/blob/master/mobile/build.gradle Sep 22 19:55:02 erasmospunk, can you link the store listing here? Sep 22 19:55:16 g00s, you should be exempt if you're not selling any apps Sep 22 19:56:32 jab416171: it is in alpha, so you need to subscribe to this ML https://groups.google.com/forum/#!forum/coinomi and then https://play.google.com/apps/testing/com.coinomi.wallet Sep 22 19:57:39 erasmospunk, yup, showing up as incompatible Sep 22 19:58:18 erasmospunk, can you add the build.gradle to your SO question? Sep 22 19:59:17 sarbs, did you see my build.gradle? Sep 22 19:59:26 jab416171: check out the repo here https://github.com/Coinomi/coinomi-android Sep 22 20:09:15 jab416171 i just did, and i don't see anything sticking out as weird to me, sorry :( it's been a hot minute since i've used gradle however so there may be differences or bugs i'm not aware of. good luck Sep 22 20:09:35 I'm looking at StackOverflow how to create an application that is a "mask" of the browser. I want to open the app, to open a particular website. It would be as if the site were an application. What would I look for the tags, or someone has an idea how can I do this? Sep 22 20:10:13 filipemanuel https://developer.android.com/reference/android/webkit/WebView.html Sep 22 20:11:48 sarbs: thanks.. but, have another method to do this? Sep 22 20:12:06 like.. what? Sep 22 20:12:49 I dont know, just asking Sep 22 20:13:20 ^^^ that's what you'll want to use Sep 22 20:14:23 Ironthighs, BTW i just tried the same code with a chinese S4 clone and it works!! Originally I had tried an S3 mini Sep 22 20:14:25 thanks anyways Sep 22 20:14:32 haha, thanks anyway sarbs Sep 22 20:26:04 why isn't my android wear app going on my watch Sep 22 20:30:12 g00s: We're testing e10s in Nightly ... it's been ... interesting ... so far ;) Sep 22 20:31:33 exit Sep 22 20:33:13 hey guys, i have an input filter for an edit text that has a user input money. I want to enforce a dollar sign to be at the front. I added this to the regex ^\\$ but a user can delete the dollar sign. i want the dollar sign to be undeletable. Sep 22 20:33:45 CheeseyMonkey, why don't you add the dollar sign when you take the input?' Sep 22 20:33:48 CheeseyMonkey, place it outside of the editText? Sep 22 20:34:31 jab416171: it is initially "$0" but the user can delete the $ to make it "0" Sep 22 20:35:11 MikeWallaceDev: that would look weird. but in the future i'll add a spinner with different currencies Sep 22 20:35:29 so put the spinner now :) Sep 22 20:35:48 MikeWallaceDev: fine.... haha Sep 22 20:35:50 Guys, any idea on why BitmapFactory.decodeByteArray() and .decodeStream() with options.inJustDecodeBounds = true might return absolutely irrelevant width and height values and null-valued outMimeType ? Sep 22 20:35:51 CheeseyMonkey, just make it 0 Sep 22 20:36:52 I pass byte[] gotten from MediaStore content provider by getBlob(IMAGE_DATA_COLUMN) Sep 22 20:38:25 <|Blaze|> I'm trying to use setFixedSize to adjust a GLSurfaceView to use a smaller backbuffer. When I use setContentView(mSurface) everything is fine, but when I add mSurface to a RelativeLayout, and setContentView(mLayout), it seems to stop using the hardware scaler. Anyone have any thoughts as to how I can work around this? Sep 22 20:46:46 AlexBerdnikov: I thought MediaStore contained paths to images, not the actual images Sep 22 20:47:44 blah, this is frustrating Sep 22 20:47:49 AlexBerdnikov, I don't know your use case, but would an image loader library help? Sep 22 20:48:25 I use Universal Image Loader Sep 22 20:48:26 if you use it as a content provider, I think you can make MediaStore get the actual image data for you as well Sep 22 20:48:41 I am reading bytes in a while loop and i am writing it to audio track. The audio track stops playing after sometime. Here is my code http://pastebin.com/cwSTqqCp. Can somebody let me know what is wrong with the code Sep 22 20:52:09 sDurgam, it.remove() might be a culprit. Sep 22 20:52:12 CheeseyMonkey, I agree with the spinner idea, your other option would be to actively monitor the edittext state and force prepend the $ if you see it's missing Sep 22 20:53:06 ...which is probably a bad idea Sep 22 20:53:18 why isn't my packaged android wear app showing up on my watch? Sep 22 20:53:40 dude, nobody knows about wearables, didn't you get that already? :p Sep 22 20:54:08 ravilov, I got help last night Sep 22 20:54:24 I forgot who it was Sep 22 20:54:35 was it because you kept asking over and over again? :p Sep 22 20:54:39 nope Sep 22 20:54:42 I only had to ask once Sep 22 20:55:07 well, I'd figure out who it was that helped you and then wait until they're around again Sep 22 20:55:17 devs for wearables are very few here Sep 22 20:55:20 unfortunately my chat history doesn't go back that far :( Sep 22 20:55:23 yeah, that's what I'm gaterhing Sep 22 20:55:29 whoa whoa, asking a question about wearables is totally acceptable. (saying "why doesn't it work" without details, that's another thing) Sep 22 20:55:49 the fact that we don't know the answer... well, maybe we will soon :) Sep 22 20:55:51 MikeWallaceDev, I've posted the link to my repo several times Sep 22 20:55:59 exactly Sep 22 20:57:32 jab416171, if you posted the link 5 minutes ago, the people in here could have totally left and there are different people here... Sep 22 20:57:43 i.e. I never saw your link... Sep 22 20:57:46 MikeWallaceDev, I know, that's why I keep periodically asking Sep 22 20:58:04 MikeWallaceDev, you were here, you were talking about blender :) Sep 22 20:58:06 Annoying, but acceptable.... Sep 22 20:58:26 it would help if there was more documentation than simply "Click Build > Generate Signed APK... and follow the on-screen instructions to specify your release keystore and sign your app. Android Studio exports the signed handheld app with the wearable app embedded in it automatically into your project's root folder." Sep 22 20:58:27 I only skimmed that Blender thing, I was on my tablet :) Sep 22 20:59:47 when I open the apk on my computer, I see a "android_wear_micro_apk.apk" in /res/raw, which I assume is the embedded apk Sep 22 20:59:54 the phone apk Sep 22 21:00:21 @MikeWallaceDev, I am not able to read data if i comment it.remove() Sep 22 21:00:40 MikeWallaceDev, https://github.com/jab416171/WearTesting Sep 22 21:00:42 sDurgam, ?? Why not?? Sep 22 21:01:14 sDurgam, playing with the container during an iteration can be a big no-no Sep 22 21:02:34 sDurgam, do you know what the error is? You're also not checking key against null. Sep 22 21:03:07 selector.select() is returning zero after sometime Sep 22 21:05:09 aaaaand you don't think that would have been valuable information to share? :-/ Sep 22 21:05:27 If the problem is inside the select, then I can't help, sorry Sep 22 21:05:34 i followed this tutorial http://www.java2s.com/Tutorial/Java/0320__Network/Channelselector.htm Sep 22 21:07:16 ravilov, I load a list of images with CursorLoader from MediaStore. Then in my adpter I override bindView method where I want to process the image which I get from cursor with getBlob. getBlod returns byte[] value which, for some reason, can't be processed by BitmapFactory.decode...() methods right Sep 22 21:07:36 helicopter88, why these nick changes every so often? Sep 22 21:07:49 because I go away and I come back Sep 22 21:07:58 that's what /away is for Sep 22 21:08:08 it also sets /away Sep 22 21:08:12 oh Sep 22 21:08:15 very strange Sep 22 21:08:23 it's a znc module Sep 22 21:08:36 ah right, I figured you must be on a bnc Sep 22 21:08:54 kinda annoying to some, but I've learned (or I'm learning) to ignore it :p Sep 22 21:09:21 bnc or znc? Sep 22 21:09:31 I'm using HexChat right now and I like it Sep 22 21:09:32 I know it's annoying,but unfortunately you can't set it to not change nick in only a channel Sep 22 21:09:34 znc is a bnc? Sep 22 21:09:54 league of legends or a moba? :) Sep 22 21:09:57 oh yeah I know, nick changes are always network-wide Sep 22 21:10:18 I'm just like... I'd skip the nick change altogether :p Sep 22 21:11:06 Mine changes too... Adds a _ at the end. Sep 22 21:11:13 It annoys even me :D Sep 22 21:12:09 ravilov, there are channels where people bother me if I'm not away in a decent way Sep 22 21:12:31 you mean, in-your-face-obvious kind of away? :p Sep 22 21:12:45 yup :P Sep 22 21:12:58 if it says "awaycopter" it's hard to not understand :P Sep 22 21:13:14 those people need to learn a thing or two about irc, me thinks Sep 22 21:14:09 like "do not bother heli" Sep 22 21:17:50 helicopter88, you should make your bnc do an autoreply, something like "I'm currently away, kindly send your question to /dev/null" Sep 22 21:18:23 hahaha Sep 22 21:18:37 ravilov, what I would like to do is to change the away timer Sep 22 21:18:44 so when I'm truly away it will work Sep 22 21:19:02 what's wrong with it now? Sep 22 21:29:55 ACTION_HEADSET_PLUG how do I get state on broadcast received? Sep 22 21:31:16 intent.getExtras().get(“state"); ? Sep 22 21:36:09 RingtoneManager.getActualDefaultRingtoneUri (as opposed to the not actual default ringtone) Sep 22 21:37:25 In my adapter how would I go about returning no view in getView? Sep 22 21:38:03 return a blank view? Sep 22 21:38:28 eghdk: Return 0 in getCount Sep 22 21:39:18 canvs2321: Well in getView I do the logic and decide whether or not I want a view to be returned. Wouldnt doing it in getCount do it for every item? Sep 22 21:39:19 eghdk, this is a convoluted question, why do you want to return no view? Maybe there's a better way? Sep 22 21:40:12 For right now, the data that's in there is causing a problem, so I want to get rid of any entry that meets a certain criteria Sep 22 21:40:14 ok... Just return an empty view, wrap_content Sep 22 21:40:51 eghdk: in that case alter your data, not hack the view Sep 22 21:40:56 return new View(getContext()) :p Sep 22 21:42:03 Aha. That sounds like it could work. I tried returning null/returnView.SetVisibility(View.GONE). I will try this now. Sep 22 21:43:11 yeah, you're way too patient for me ravilov. Posting actual code. I make them search! Sep 22 21:43:33 it was more like a joke though, although I guess it could actually work Sep 22 21:43:52 yep, just needs to set the wrap_content Sep 22 21:44:15 should I post the code for that too? ;) Sep 22 21:47:00 MikeWallaceDev: please Sep 22 21:47:04 thx Sep 22 21:47:18 View.setContent(View.WRAP) Sep 22 21:47:55 MikeWallaceDev, do you think the fact that the permissions in the wear and mobile manifests were different would cause the issue? Sep 22 21:48:09 ok,MikeWallaceDev, I copied and pasted that in, but it's not working. Sep 22 21:48:14 * Ironthighs hides Sep 22 21:48:39 jab416171, YES! (that was a happy yes) They mentioned that a few times. Sep 22 21:48:50 Ironthighs, hold on, I'll find you a good tutorial on how to copy and paste Sep 22 21:48:56 fuck, I don't do wear, but they mentioned that enough so that I should know. Sep 22 21:49:28 MikeWallaceDev, but the phone doesn't use the permissions... that seems so odd Sep 22 21:49:42 Ironthighs, sorry, it's my fault, I capitalized the first V. It's view.setContent(View.WRAP) Sep 22 21:49:47 geez, ravilov, I'm not stupid. I can copy/paste, but my program doesn't work. Help me Sep 22 21:49:54 Ya, see? Sep 22 21:49:57 You failed Sep 22 21:50:06 * Ironthighs runs for the hills Sep 22 21:50:06 I'm not an expert jab416171 , but I know that the manifests are a problem Sep 22 21:50:22 what a terrible fallacy on our part, deepest apologies Ironthighs Sep 22 21:50:39 I expected more out of an android HELP chatroom. Sep 22 21:50:41 Gosh Sep 22 21:51:31 Now can someone tell me what exactly an activity does? Sep 22 21:51:32 thx Sep 22 21:51:45 an activity doesn't do, it just is Sep 22 21:51:59 There is no Activity Sep 22 21:52:01 http://developer.android.com/reference/android/app/Activity.html Sep 22 21:52:32 also: http://developer.android.com/guide/components/activities.html Sep 22 21:52:50 lul Android docs r crap Sep 22 21:53:05 someone just sum it up in two sentences for me Sep 22 21:53:22 it's what the user sees and interacts with Sep 22 21:53:31 Ironthighs: read the first 2 sentences of the second link Sep 22 21:53:34 lol Sep 22 21:54:01 Ironthighs, trolling the regulars is not cool :P Sep 22 21:54:04 JesusFreke: You're too kind Sep 22 21:54:09 Ironthighs, I'm sorry but all your activities are inactive Sep 22 21:54:33 lol, ravilov Sep 22 21:54:39 crap. bankai_ and MikeWallaceDev it works perfectly (new View(context)) but it crashes when I scroll, I think its messing with the recycled view or something. Sep 22 21:55:08 eghdk, did you set the layout params?? Sep 22 21:55:38 I wish google play published faster for alpha/beta Sep 22 21:55:39 doesn't sound like it's working perfectly then Sep 22 21:55:51 haha bankai_ Sep 22 21:59:07 JesusFreke, what's an application though? Sep 22 21:59:49 an exercise for the reader ;) Sep 22 21:59:58 oh ok Sep 22 22:00:18 * ravilov gathers up some readers and tells them to do excercizes Sep 22 22:00:21 c'mon, faster! Sep 22 22:01:03 jab416171, but you looked at the logcat and so you know where and why the crash happens as well as how to fix it Sep 22 22:01:06 right? Sep 22 22:03:17 MikeWallaceDev: Nope. Sep 22 22:03:35 I think im going to take your original advice. Sep 22 22:03:54 and just do this logic before I pass the list to the adapter constructor Sep 22 22:19:32 ravilov, yes Sep 22 22:19:40 ravilov, assuming the permissions was the only issue Sep 22 22:20:06 man, I wish google play wouldn't say "Current Version Varies with device" Sep 22 22:20:37 adb logcat: how to show the FULL stack trace for an error? Sep 22 22:20:46 Agamemnus, e.printStackTrace() Sep 22 22:20:53 in adb logcat Sep 22 22:20:59 java error Sep 22 22:21:01 Agamemnus: it always shows the full trace Sep 22 22:21:05 yeah Sep 22 22:21:07 null pointer... Sep 22 22:21:13 it shows whatever the application prints Sep 22 22:21:17 wouldn't know where to modify the code Sep 22 22:21:33 Agamemnus, have you heard of pidcat? it makes it a lot easier to read the logcat Sep 22 22:21:45 java error, not user-defined error Sep 22 22:21:47 i see Sep 22 22:21:50 i'll look at pidcat Sep 22 22:22:08 I see Sep 22 22:22:12 that's not enough though Sep 22 22:22:20 I need a full trace from the command line Sep 22 22:22:22 logcat shows you what the phone logs Sep 22 22:22:25 that's it Sep 22 22:22:28 is it possible? Sep 22 22:22:29 Like "...21 more" Sep 22 22:22:31 if the phone doesn't log the full stack, you won't see it Sep 22 22:22:33 I need that 21 more Sep 22 22:22:33 nope Sep 22 22:22:35 you can't Sep 22 22:22:39 not without the source code Sep 22 22:22:48 and in the source code Sep 22 22:23:00 where do i put e.printStackTrace();? Sep 22 22:23:15 try { something } catch(Exception e) {e.printStackTrace();} Sep 22 22:23:23 Oh I see Sep 22 22:23:31 But I don't know where the error is really Sep 22 22:23:35 basically it's in admob Sep 22 22:23:53 but other than that. Sep 22 22:25:05 Agamemnus, what are you trying to do? Sep 22 22:27:10 printStackTrace won't work, you'll need to use something like Log.e(String tag, String msg, Throwable tr) Sep 22 22:28:58 trying to figure out why my code is crashing kinda Sep 22 22:29:24 https://crosswalk-project.org/jira/browse/XWALK-2493 last few posts Sep 22 22:30:46 Is there any way to pass traffic through an HTTP proxy? My device is rooted and the iptables command still doens't work. Sep 22 22:30:51 you could do Log.e(TAG, e.printStackTrace) Sep 22 22:31:04 pros you can use hidemyass Sep 22 22:31:22 https://support.hidemyass.com/hc/en-us/articles/202723966-Where-to-get-the-HMA-Android-App Sep 22 22:31:28 tricknology: I need to intercept the SSL certificate too. Can I do that with HMA? Sep 22 22:31:32 not sure if that’s what you want.. Sep 22 22:31:44 not sure Sep 22 22:31:51 HMA has HTTPS supprot Sep 22 22:31:56 not sure baout the app Sep 22 22:32:01 bankai_, it'll work, it still goes to logcat Sep 22 22:32:07 bankai_, it just won't have your tag with it Sep 22 22:32:20 tricknology: I need to log the traffic. Sep 22 22:32:34 Wow.. it changed a bit Sep 22 22:32:40 my understanding was STDERR and STDOUT are swollowed by the emulator and devices and printStackTrace uses STDERR Sep 22 22:32:59 bankai_, it might depend on the device, but I've seen STDERR in logcat Sep 22 22:33:14 bros, you could turn your computer into a hotspot and run wireshark or tcpdump on it Sep 22 22:33:30 jab416171: I don't know how to get the SSL certificate problem fixed through that. Sep 22 22:34:04 bros i’m afraid to ask but.. waht are you doing? Sep 22 22:34:18 tricknology: logging what traffic an app makes. I did it on iOS, now I need to do it on Android Sep 22 22:34:26 if I had a physical android device, i'd be golden Sep 22 22:34:40 bros: there is TrafficStats Sep 22 22:34:45 there you go Sep 22 22:34:56 canvas2321 with the ace Sep 22 22:34:58 I need to log the actual traffic... Sep 22 22:35:10 wireshark would be the way to go Sep 22 22:35:15 you make no sense, traffic or content Sep 22 22:35:16 as mentioned Sep 22 22:35:19 How can I extract the private key used by the device? Sep 22 22:35:40 bros, ... what are you doing where you need to intercept and read SSL traffic? Sep 22 22:35:47 jab416171: reversing apps Sep 22 22:35:51 for fun, don't worry Sep 22 22:35:59 I already extracted the private key :P Sep 22 22:36:15 bros, #android-root might be able to help more Sep 22 22:36:55 why even do that Sep 22 22:36:59 you know you can dl the apk.. Sep 22 22:37:08 and then decompile it Sep 22 22:37:11 tricknology, if you're rooted Sep 22 22:37:16 nah not even Sep 22 22:37:18 tricknology, he doesn't have a physical device Sep 22 22:37:20 I think he means that he can build an app that will have system privelages. Sep 22 22:37:22 You don' Sep 22 22:37:22 I think I figured out the problem Sep 22 22:37:30 You don't need to be rooted. Sep 22 22:37:40 FennyFatal, you can't adb pull /data/app/anything Sep 22 22:37:45 yes Sep 22 22:37:48 you can download any apk on the market Sep 22 22:37:55 you CAN pull an apk by name. Sep 22 22:37:57 One of the ad control events inadvertently runs when I close the ap Sep 22 22:37:59 without pulling it from your device Sep 22 22:38:00 app Sep 22 22:38:03 just not the directory listing. Sep 22 22:38:19 tehre is a 3rd party link that does that Sep 22 22:38:26 past the play store listing and boom Sep 22 22:38:31 then rename to zip Sep 22 22:38:35 then use dex2jar Sep 22 22:38:38 jab416171: he's right. you odn't need a physical device or root to decompile and debug an APK. Sep 22 22:38:55 then JD Sep 22 22:39:01 then you have alll the classes Sep 22 22:39:08 As for getting files that come in containers all you have to do is run mount. Sep 22 22:39:11 super obfuscated, but yeah Sep 22 22:39:25 bros, only if they used the proguard obfuscation Sep 22 22:39:27 some apps dont Sep 22 22:39:29 then you can pull the dex from there. Sep 22 22:39:41 tricknology: proguard makes everything a.b.c.d() or no? Sep 22 22:39:44 yes Sep 22 22:39:49 so annoying.. Sep 22 22:39:54 It never stopped me. :P Sep 22 22:40:08 there is a program called apktool which can do that somewhat Sep 22 22:40:28 I guess I could find the HTTPS calls and wrap them there? Sep 22 22:40:34 APKtool is only useful for decompiling resources. Sep 22 22:40:35 yes Sep 22 22:40:38 then rebuild Sep 22 22:40:42 with a logger Sep 22 22:40:43 baksmali is where it is at. ;D Sep 22 22:40:49 that that sounds dark… Sep 22 22:40:55 but that*... Sep 22 22:40:59 I think I might not be understanding how SSL works Sep 22 22:41:05 the device has a single private key certificate, right? Sep 22 22:41:06 I don’t even Sep 22 22:41:14 doesnt have to Sep 22 22:41:26 SSL creates a socket, the internal application wraps it. Sep 22 22:41:40 could just be sending an md5 hash over plaintext like soap or JSON Sep 22 22:41:44 You can fake out the device to use a non SSL socket. Sep 22 22:42:14 you just replace all calls to it to one of your own method. Sep 22 22:42:27 or you can dump the body of all requests before they are sent... Sep 22 22:42:32 ^ Sep 22 22:42:33 all sorts of fun stuff. :D Sep 22 22:42:39 FennyFatal: where are the calls in the standard android libraries usually? Sep 22 22:42:41 I would check there first Sep 22 22:42:50 xposed would probably help here Sep 22 22:43:31 Write a logging class in java that takes a string. build it and dex it. Sep 22 22:43:37 then decompile with baksmali. Sep 22 22:44:10 take the resulting smali file, and inject it into the original package, and add a call to your logger class. Sep 22 22:44:43 I have logging down. I'm logging the body of the content before it gets sent. I need to find the URL. Sep 22 22:44:46 or you just listen to the trafic itself and intersept it with wireshark + sslstrip. Sep 22 22:44:56 ^ Sep 22 22:44:59 bros: you have the body? Sep 22 22:45:02 FennyFatal: yeah Sep 22 22:45:04 +1 for wireshark Sep 22 22:45:14 danijoo: No I can't. Sep 22 22:45:15 you know where the code that sends it is then, right? Sep 22 22:45:28 mitm + sslstrip + wireshark -> plaintext http data without decompiling Sep 22 22:45:29 (just search it) Sep 22 22:45:32 bros: why? Sep 22 22:45:32 oh, arpspoof does the redirecting Sep 22 22:45:48 search a part of the bodys generic format Sep 22 22:45:52 youll find the class that builds it Sep 22 22:46:01 easier in mac Sep 22 22:46:03 tricknology: where does it get passed to? Sep 22 22:46:09 you can trace back the creation of the request object. Sep 22 22:46:11 you can find that out Sep 22 22:46:46 say your body is like asdfkjhasdkjhasv Sep 22 22:46:50 danijoo: The device won't complain about a bad certificatee? Sep 22 22:46:55 jus tsearch Sep 22 22:47:05 bros: depends on implementationm Sep 22 22:47:07 bros: it *could* Sep 22 22:47:09 depends on what the device is doing.. if it even ahs a cert Sep 22 22:47:17 Most devs don't actually check the cert. Sep 22 22:47:24 if its good code it will. Sep 22 22:47:41 Most code isn't very good, lol. Sep 22 22:47:53 but there are a lot of stupid tutorials for ssl out there that suggest that you should just trust any certificate Sep 22 22:48:06 i once searched for it and was shocked. Sep 22 22:48:36 there are more bad ones then good ones ^^; Sep 22 22:49:01 The other problem is that when you issue a new certificate for your webserver your app stops working. :P Sep 22 22:49:23 have 2 certs Sep 22 22:49:39 I have had this problem with old WinMo applications more times than I can count. Sep 22 22:49:44 and if they are good ones, you have good chances that the cert is packed in assets folder so you can easily differ them Sep 22 22:50:18 or they do fun things like modulo on it. Sep 22 22:50:18 I found it. All I needed was the URL, and the request wasn't even SSL haha Sep 22 22:50:20 Some could be jusing a token Sep 22 22:50:21 on the key. Sep 22 22:50:28 its usually a .bks file in assets folder. if its there, you know they are checking certs Sep 22 22:50:36 haha bros: case in point Sep 22 22:50:50 I'm actually sort of like, concerned with the shit I extracted Sep 22 22:51:04 Funnily enough, the iOS app wasn't as easy. Sep 22 22:51:13 Even though this binary had ARM specific libraries haha Sep 22 22:51:33 ASM ain't no thing. :P Sep 22 22:52:02 ARM* Sep 22 22:52:28 ARM assembly is just another sort of assembly Sep 22 22:52:41 ah, I thoguth ASM implied x86 Sep 22 22:52:42 Though I am sure most of it is THUMB code. Sep 22 22:54:04 I mean really, the big difference is seeing bnz instead of jnz. and b instead of jmp. Sep 22 22:54:32 Other than that you know one... Sep 22 22:54:58 eh, I was used to eax, ebx, ecx and I saw r0-r15 Sep 22 22:55:00 Is pc edi? Sep 22 22:55:20 How would I have gotten to step through that code too? Luckily the string was visible Sep 22 22:55:24 D/WearablePkgInstaller( 1074): Using file /data/data/com.google.android.clockwork.packageinstaller/files/tmp/me.joebass.weartesting.apk Sep 22 22:55:24 W/WearablePkgInstaller( 1074): Wearable does not have enough permissions. Sep 22 22:56:01 is that the culprit? Sep 22 22:57:15 Are GUID and device ID always the same? Sep 22 22:57:55 bros: ? Sep 22 22:58:25 A GUID could be a lot of things. Sep 22 22:58:38 http://en.wikipedia.org/wiki/Globally_unique_identifier Sep 22 22:59:09 A lot of applications use it for session control. Sep 22 22:59:11 I thought Android had a specification for a universal one. Sep 22 22:59:17 How is it genereated? Sep 22 22:59:18 generated? Sep 22 22:59:42 I know that there is one stored in the google play services app or one of its friends. Sep 22 23:00:13 It gets generated upon first setup. Sep 22 23:00:33 that's when Sep 22 23:00:33 :P Sep 22 23:01:00 First time you use google play services or the first time you power on the phone... not sure which Sep 22 23:01:12 http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID Sep 22 23:01:14 Because I do them both at the same time usually. Sep 22 23:01:26 this is frustrating Sep 22 23:01:28 yep that is the one. Sep 22 23:01:37 so as long as it is consistent, it should be OK that it's random Sep 22 23:01:44 right. Sep 22 23:01:48 so we think Sep 22 23:02:22 It should not change unless you nuke the stored data for the application that stores it or wipe the phone. Sep 22 23:03:10 ==> When a device has multiple users (available on certain devices running Android 4.2 or higher), each user appears as a completely separate device, so the ANDROID_ID value is unique to each user. <== Sep 22 23:03:24 Interesting, so that is not the play id. Sep 22 23:03:29 It is something else. Sep 22 23:03:39 FennyFatal: https://ideone.com/08NvTO Sep 22 23:04:15 That looks like session stuff. Sep 22 23:04:27 That's weird. Look at line 5 Sep 22 23:04:33 and this looks like grooveshark. Sep 22 23:04:38 It's not. Sep 22 23:05:06 Well they are using a similar method of signing their data. Sep 22 23:05:22 What do they do> Sep 22 23:05:24 signed_body? Sep 22 23:05:27 HMAC SHA 256? Sep 22 23:06:32 Why would line 6 ever be reached if a UUID will always have 5 hypen delimited elements? (067e6162-3b6f-4ae2-a171-2470b63dff00) Sep 22 23:06:35 they are generating a UUID, and encoding the time and a random integer in place of the first part. Sep 22 23:07:06 it should not be, bros. Sep 22 23:07:21 bros, depends on the implementation of randomUUID() Sep 22 23:07:33 b on line 8 is unknown in this context? Sep 22 23:07:52 private static long b = System.currentTimeMillis() haha Sep 22 23:08:10 it is the current time when that was run. Sep 22 23:08:41 so... it is 1635L - the number of miliseconds that has passed. Sep 22 23:08:58 oh, but devided by 1000. Sep 22 23:09:07 so seconds. Sep 22 23:09:11 I wonder if this could all be random. Sep 22 23:10:23 have you ever seen cookied "mid" before? Sep 22 23:10:52 nah, 1635 = 27.25 minutes. Sounds like verification before a token expires. Sep 22 23:11:16 it is meant to look like a uuid. Sep 22 23:11:34 I think they are disguising the number of seconds passed in it. Sep 22 23:12:14 It can't be. This is the code to request the token. Sep 22 23:12:50 ahh, this is sent in the request? Sep 22 23:13:05 yeah, but does that mean you're right? Sep 22 23:13:31 when is private static long b = System.currentTimeMillis() run, at the class init? Sep 22 23:13:46 Yeah, but what would happen if the subtraction between now and b returned in 0 Sep 22 23:14:13 You'd get 1635 / 1000, which would be 1L Sep 22 23:14:16 I am pretty sure it would start subtracting. Sep 22 23:14:23 + a negative Sep 22 23:14:32 remember that longs are signed in java. Sep 22 23:14:55 yeah but it's (1635L + (now - init_time) / 1000) Sep 22 23:15:02 actually, it'd be 0 / 1000, wouldn't it? Sep 22 23:15:09 no. Sep 22 23:15:09 so, 1635 at the lowest Sep 22 23:15:17 yeah. :D Sep 22 23:15:21 why no? Sep 22 23:15:37 I mean that it will never be 0 Sep 22 23:15:51 iit time will always be a smaller number. Sep 22 23:15:55 *init Sep 22 23:16:34 so, this is sent to the server, right? Sep 22 23:16:49 verbatim after it completes? Sep 22 23:17:27 what's the java to turn a wide into a string? Sep 22 23:17:35 Long.toString()? Sep 22 23:17:53 I think tostring works. Sep 22 23:18:10 hmm, actually... Sep 22 23:18:15 This method is static. Sep 22 23:19:10 And so is 'b' Sep 22 23:19:18 'b' is set at application init. Sep 22 23:19:20 String.valueOf(long);? Sep 22 23:19:24 not just calass. Sep 22 23:19:29 *class Sep 22 23:20:36 So, when it requests a new token, then know how long the application has been running. Sep 22 23:20:41 *they Sep 22 23:21:39 so, once I took out the and the code that used the permission, it worked just fine. Sep 22 23:25:19 b = 1411428280639L, second call = 1411428297942L FennyFatal Sep 22 23:26:52 so... 17 seconds Sep 22 23:26:59 subtraction = 17303, division = 17, addition = 1652 Sep 22 23:27:05 yeah Sep 22 23:27:30 Then convert to hex 674 Sep 22 23:27:38 0x0674 Sep 22 23:28:10 does it add the 0 when it converts to a hex string? Sep 22 23:29:21 No. Good catch. it actually comes out to "9674" as a string because of the call to random being 9 Sep 22 23:29:29 So it only replaces the one part Sep 22 23:29:33 the rest is entirely random Sep 22 23:30:48 Hmm, how long does the token say it is valid in the http response? Sep 22 23:31:26 ca46626c-9674-4c4e-afe3-64d442d55744 -> ca46626c96744c4eafe364d442d55744 Sep 22 23:31:44 GET /api/v1/si/fetch_headers/?guid=ca46626c96744c4eafe364d442d55744&challenge_type=signup HTTP/1.1\r\n Sep 22 23:32:10 are you looking at the headers? Sep 22 23:32:28 the server responds with a CSRF token cookie that expires in a year, and a "mid" cookie that expires in 19 years? Sep 22 23:32:49 that sounds like google ad stuff. Sep 22 23:32:55 is it in the body? Sep 22 23:33:00 The csrf is in the body Sep 22 23:33:38 Do you think that random integer/millisecond part of the GUID could be skipped? Sep 22 23:34:04 I think that the server uses it to make sure that the request is coming from the right source. Sep 22 23:34:09 I doubt they seeded the random number generator on a specific value or anything. Sep 22 23:34:21 I think I should be able to reuse "9674" for every request. Let's see! Sep 22 23:34:29 You might be able to. Sep 22 23:34:29 I have a question. where do you go when you need help on stuff like this? Sep 22 23:34:31 how'd you get good? Sep 22 23:34:47 I just started taking stuff apart. Sep 22 23:34:50 :D Sep 22 23:35:01 Can you pretty much take anything apart now? Sep 22 23:35:08 Are you good at Objective-C or no? Sep 22 23:35:20 I don't own an iDevice. Sep 22 23:35:24 * bankai_ shudders at obj-c Sep 22 23:36:15 I think that method calls should not be used with the c style array "[ ]" indicators. Sep 22 23:36:16 lol Sep 22 23:36:28 That is what I think about obj c. Sep 22 23:36:31 haha and moving variables around wrapped in function calls Sep 22 23:36:36 or that might just be the disassembly Sep 22 23:37:36 I found the weirdest thing in the iOS app. It's Objective-C, but in the app package is a Python script, that generates a C file, that includes a header that is *never* referenced anywhere in the file. Sep 22 23:38:14 FennyFatal: https://ideone.com/IzUJ6G Sep 22 23:40:20 FennyFatal: oh shit, actually, it's THUMB. Sep 22 23:42:03 I don't like objc at all Sep 22 23:42:14 well, I haven't used it Sep 22 23:42:17 but I hate the syntax Sep 22 23:42:29 This looks more like python. Sep 22 23:42:40 you hate it, but you've never used it? .... Sep 22 23:42:40 FennyFatal: http://i.imgur.com/TCc5kae.png what does that do to you? Sep 22 23:42:51 what does? Sep 22 23:43:02 bankai_, I can hate the syntax Sep 22 23:43:08 FennyFatal: the address in reference just to happens to be 64 characters of hex, 00 delimited Sep 22 23:43:34 I would guess that it is an encrpted string, or a key for an encrytped string. Sep 22 23:44:19 Sha256? Sep 22 23:44:26 yes. Sep 22 23:44:52 FennyFatal: https://ideone.com/m6rxu5 the psuedo code Sep 22 23:45:50 does it look to get manipulated there? Sep 22 23:47:11 Pretty sure it looks like a hash that can be verified if you know the secret. Sep 22 23:47:34 On Android, they take the body, then a key, and HMAC-SHA256 is. Sep 22 23:47:41 The key is 64 bytes, just like this one Sep 22 23:47:51 Looks like it is used for checking that the message is authentic between the server and the client. Sep 22 23:48:01 What do you mean it looks like a hash if you know the secret? Sep 22 23:48:14 I think this is the secret, and that the psuedo code does some byte swapping Sep 22 23:48:17 yes or no? Sep 22 23:49:00 sec I am following those xrefs. Sep 22 23:49:19 It looks like a loop. r0 is the string, r1 is the index. Sep 22 23:49:29 the psuedo code is better than the image Sep 22 23:50:12 r10 is string[i]. Sep 22 23:50:52 yeah, and 0x20 is the length of the string. Sep 22 23:51:02 look at line 16 of the pusedo code Sep 22 23:51:08 What does that assembly instruction do? Sep 22 23:51:12 asm{ it eq }; Sep 22 23:51:53 I am pretty sure it is where the pseudocode is failing. Sep 22 23:52:42 meaning? Sep 22 23:52:59 The IT (If-Then) instruction makes up to four following instructions (the IT block) conditional. Sep 22 23:53:08 I mean that it is not giving you the real instructions there. Sep 22 23:53:16 you want to look at the strbeq Sep 22 23:53:27 that should replace chars in the string. Sep 22 23:53:34 I think it is. Sep 22 23:53:40 cmp.w r10, #0x2c Sep 22 23:53:42 if it is equal Sep 22 23:53:48 then strbeq Sep 22 23:53:56 is the branch in b executed or not though Sep 22 23:54:25 The compares are meant to be confusing I think. Sep 22 23:54:38 look at the python I linked, they have to be related Sep 22 23:55:45 The good thing is I have a resulting hash and the input body. Sep 22 23:57:10 What does cmp.w do on arm? Does it story something in a register? Sep 22 23:57:31 compare Wide I would presume. Sep 22 23:57:41 yeah, but how do compares work in arm? Sep 22 23:57:42 flags? Sep 22 23:57:56 "These instructions update the N, Z, C and V flags according to the result.", yeah, ok Sep 22 23:58:16 why would the psuedo code fall apart on that branch though? weird Sep 22 23:58:56 FennyFatal: https://ideone.com/N5dbUc there's the whole procedure. the branches seem equivalent to me Sep 23 00:00:07 Oh shit. arg0 is an int and 0x3d357b is the base key. I wonder what arg0 is Sep 23 00:00:33 How do you push arguments in ARM? Sep 23 00:00:52 wait... there are two buffers, right? Sep 23 00:01:31 r0 is the pointer to the start of one. Sep 23 00:01:39 r2 is the pointer to the start of another. Sep 23 00:02:58 yep, and ldrb pulls a value out of an array. Sep 23 00:04:19 I don't see r2? Sep 23 00:04:24 I do see r4 in the psuedo code though. Sep 23 00:04:44 looks like tha args in r0-r3 are the arguments passed to the function. Sep 23 00:04:56 where do you see that? Sep 23 00:04:56 it pushes all the other registers. Sep 23 00:05:00 oh, ok Sep 23 00:05:26 How can I check if a device is asleep? Sep 23 00:05:34 Perhaps from an adb shell. Sep 23 00:05:51 FennyFatal: http://i.imgur.com/kIz7Qkl.png Sep 23 00:06:03 acd80 is the cmp/byte swap method Sep 23 00:06:34 r6 is argument 1 Sep 23 00:07:25 Hmm, only one arg according to your decompiler. Sep 23 00:07:34 it must load the other array in the function Sep 23 00:08:00 ldr r6, [r0] ; @selectorUTF8String) Sep 23 00:08:01 add r6, sp, #0x188 Sep 23 00:08:04 means that 1-3 might be return values or just overwritten. Sep 23 00:08:37 what is pc in add r0, pc? Sep 23 00:10:24 pc is the program counter. Sep 23 00:10:45 movw r0, 0x7e8e Sep 23 00:10:51 movt r0, 0x49 Sep 23 00:11:07 r0 = (movt 0x49 << 16) | (movw 0x7e8e)) Sep 23 00:11:44 000acd42 add r0, pc Sep 23 00:11:48 pc = 000acd42, no? Sep 23 00:14:55 00544bd4 dd 0x4120c2 ; @selector(UTF8String), XREF=-[NSString HMACWithSecret:]+54, -[NSString HMACWithSecret:]+56, +[IGQEExperimentGroupDecider md5hexDigestForString:]+56, +[IGQEExperimentGroupDecider md5hexDigestForString:]+58 Sep 23 00:15:22 maybe it's an allocated buffer to store it? Sep 23 00:15:27 FennyFatal: Sep 23 00:15:35 Yes? Sep 23 00:15:51 ahh interesting. Sep 23 00:16:11 sec, I am sorting out the ASM. Sep 23 00:16:20 FennyFatal: what does add r6, sp, #0x188 do Sep 23 00:16:25 cmp.w r10 series looks like a switch case. Sep 23 00:16:37 you don't trust the psuedo code? Sep 23 00:19:02 Never, LD Sep 23 00:19:10 LD? Sep 23 00:19:32 :D Sep 23 00:22:15 3330623132656363636361633234623732613862393537383037353562646338 is what I get when I run it Sep 23 00:22:36 30b12eccccac24b72a8b95780755bdc8 Sep 23 00:22:38 the same... stirng Sep 23 00:22:49 from the python file Sep 23 00:22:49 hahah Sep 23 00:30:17 the key is too short... what are we missing? Sep 23 00:33:58 Guys, can someone expalain to me? http://developer.android.com/reference/android/provider/MediaStore.MediaColumns.html#DATA Here is said that DATA field is "The data stream for the file". But in fact DATA field contain just a string of a path to the file. How is that data stream? Sep 23 00:35:08 AlexBerdnikov: you would feed that string for example to MediaPlayer if its audio or video Sep 23 00:36:11 Thx Sep 23 00:40:12 bros: Sep 23 00:40:21 Got it untangled I think. :D Sep 23 00:40:41 Still there? Sep 23 01:10:25 hey Sep 23 01:10:39 guys how do i change language from my code, im making an app with 2 languages Sep 23 01:11:41 wait Sep 23 01:11:42 nvm Sep 23 01:11:45 heh Sep 23 01:18:27 bros: Sep 23 01:18:28 bros: Sep 23 01:18:29 bros: Sep 23 01:33:22 Is there any way to get RSSI data for Wifi networks as they come in? Sep 23 01:33:31 As in, every beacon frame. Sep 23 01:47:48 oh well Sep 23 01:47:54 i found a library but i better ask... Sep 23 01:48:35 is reasonable to include a language changer in my settings app Sep 23 01:49:20 i seen some warnings about Sep 23 01:49:57 and hows like fighting the system Sep 23 02:17:41 I have downloaded the latest Eclipse ADT, But there's no "debug as android native application" any more. What's wrong? Sep 23 02:22:40 hello, i just published my app to google play, and when i open it just shows a black screen. i think this has something to do with being in release mode, since it always works in debug mode, what should i do ? Sep 23 02:26:07 Agro, you can test your release APK without publishing. Add some logging and see what's happening Sep 23 02:26:27 doing so Sep 23 02:26:39 I have downloaded the latest Eclipse ADT, But there's no "debug as android native application" any more. What's wrong? Sep 23 02:27:30 you could ask 3 or 4 times Sep 23 02:28:49 don't encourage them capella-s3 ;) Sep 23 02:30:50 heh Sep 23 02:44:17 are the USB type C connectors generally more durable than the existing micro USB connectors ? Sep 23 02:46:11 hm, seems micro is 10k cycles, mini 5000, standard 1500 Sep 23 02:46:36 * g00s would have thought a beefy standard udb receptacle would be better than 1500 cycles Sep 23 02:50:25 capella-s3 http://arstechnica.com/security/2014/09/google-stops-malicious-advertising-campaign-that-could-have-reached-millions/ Sep 23 02:50:44 woohoo for ABP :) Sep 23 02:52:21 "Google will stop supporting climate change science deniers, calls them liars", +1 Google :) Sep 23 02:52:49 oh, just ALEC Sep 23 02:53:06 jab416171: thanks man, resolved it Sep 23 02:54:14 an Ad Blocker in a browser is a security feature and something every user should install. Sep 23 02:54:17 FennyFatal: yo there? Sep 23 02:55:23 hi Sep 23 02:56:38 could someone point me to a page where i can find the relation between item name resource and the required parent? I want to change the color on the text of the action menu and the icon Sep 23 02:56:46 hey bros Sep 23 02:56:56 FennyFatal: you got it detangled? Sep 23 02:56:58 What'd you get? Sep 23 02:57:44 http://pastebin.com/raw.php?i=pEF3Etka Sep 23 02:58:30 I have downloaded the latest Eclipse ADT, But there's no "debug as android native application" any more. What's wrong? Sep 23 02:58:59 It maps each range to a specific set of 15 hex values. Sep 23 02:59:09 It is definitely a one way hash. **** ENDING LOGGING AT Tue Sep 23 03:00:00 2014