**** BEGIN LOGGING AT Sat Apr 26 02:59:58 2014 Apr 26 03:02:38 Why does my device keep saying it is offline? Apr 26 03:02:44 DDMS has the device as offline Apr 26 03:07:18 Does anyone here use Monkey for testing? Apr 26 03:07:37 i'm so glad i don't have a phone any more Apr 26 03:07:37 http://www.latimes.com/business/la-fi-lazarus-20140425,0,5339459,full.column Apr 26 03:09:13 I've tried killing the adb server and restarting it, removing USB debugging on my device and readding it, and the device still shows up as offline... Apr 26 03:09:45 Another reason I avoid Verizon Apr 26 03:11:18 i had them for 2 years, when i got my droid-1. never again Apr 26 03:11:59 g00s: You got two secs? Apr 26 03:12:48 Anthaas i have no idea why your usb isnt working Apr 26 03:12:56 Im trying to use Monkey. I've just closed and reopened eclipse which got my device to appear as online. I then opened cmd and typed adb shell monkey -p -v 500 Apr 26 03:13:05 It then says adb server is out of date. killing.... Apr 26 03:13:16 starts a daemon successfully, and then says error: device offline Apr 26 03:13:34 i've never used monkey Apr 26 03:13:38 Ahh ok Apr 26 03:14:20 just keep rotating your device until your app crashes, that will catch most of the bugs ;) Apr 26 03:21:15 capella how do you think they are doing this? " Verizon is enrolling customers in the "enhanced" program by automatically downloading software into their computers, which customers may not even know is happening." Apr 26 03:21:33 i thought google pretty much tried to do the same thing by having you log into chrome Apr 26 03:22:10 I read that as loading software on their mobile devices Apr 26 03:22:21 * capella double checks Apr 26 03:23:03 "a "cookie," or tracking software, is downloaded onto the customer's home computer." i see these as being quite different, but same purpose Apr 26 03:23:17 if they installed something that would be outrageous Apr 26 03:23:35 maybe using html5 local storage for an evercookie type thing ? Apr 26 03:24:04 yep - in concert with id info from what they sneak onto your phone Apr 26 03:25:16 this is always the part that mades me mad : That information is "anonymized," Lewis said, to mask the Verizon customer's identity Apr 26 03:25:26 there is not 'anonymized' data with data brokers Apr 26 03:27:39 Hahaha Monkey is insane Apr 26 03:27:56 However there appears to be a shortcut on the Nexus 5 to start Google Music and play songs that I dont know about. Apr 26 03:31:13 It's basic telemetry work ... mozilla does it, google does it Apr 26 03:31:47 well, maybe not exactly the same, but collection of statistics Apr 26 03:32:12 vs. capella visited imgur/r/foo and looked at naughty bits Apr 26 03:32:44 XD more like lotsa people who look at naughty bits drink Coke ! Apr 26 03:46:10 Is it possible to use a 3rd party python module that interfaces with an api within GAE? Apr 26 03:49:46 Hello. I have an HTTP request inside an asynctask. I want to be able to intercept 403 error (as an exeption) and to be able to handle this from anywhere in the app. I know how to check for 403, but I have no prior experience of working with custom exceptions. What is the basic concept here? Apr 26 03:50:41 creitve: http://developer.android.com/reference/org/apache/http/HttpStatus.html Apr 26 03:51:09 Oh sorry Apr 26 03:51:11 I misread Apr 26 03:51:27 Np :-) Apr 26 03:51:43 Ok, so you can do if (response == 403) { throw new ForbiddenException(message); } Apr 26 03:51:55 Anthaas: have you worked with GAE? Apr 26 03:52:00 create a class called ForbiddenException extends Exception (or IOException or something) Apr 26 03:52:06 mantazer: I can't say I have Im afraid. Apr 26 03:52:15 Anthaas: no worries Apr 26 03:52:39 does anyone have experience with Google App Engine (python backend)? Apr 26 03:52:55 Anthaas: and then I wrap place where I run this asynctast in try catch, right? Apr 26 03:53:12 No Apr 26 03:53:23 With exceptions, you either try..catch OR throw Apr 26 03:53:50 try catch allows the programmer to deal with the problem within that class/context/whatever, throwing allows the exception to propogate to the caller and let them handle it. Apr 26 03:54:52 So if a function throws an exception, for example public void doX() throws ForbiddenException, I might wrap the "doX()" in a try catch, but I wouldnt wrap the stuff inside doX in a try catch Apr 26 03:54:58 (Or is that what you were saying?) Apr 26 03:55:12 I believe it might have been actually haha Apr 26 03:55:13 Exactly what I meant ^-) Apr 26 03:55:18 Cool, then yeah. Apr 26 03:55:24 Thank you so much! Apr 26 03:55:28 No worries Apr 26 03:55:51 The easiest thing to do for you I guess would be public class ForbiddenException extends IOException Apr 26 03:56:11 and then throw new ForbiddenException(message) where message is details regarding what went wrong. Apr 26 03:56:25 and in the construtor of ForbiddenException call "super(message);" Apr 26 03:57:28 I see. Thanks! Apr 26 04:01:03 Can I build adb on and for a 32-bit PowerPC machine? Apr 26 04:41:13 anyone help me to solve my error log like that http://pastebin.com/An4yyzk0 Apr 26 04:44:53 creatorb1: guessing ChuckApplication is not extending Application? Apr 26 04:53:00 people, I have an idea Apr 26 04:53:05 how do I go on about Apr 26 04:53:14 ensuring that it is do-able Apr 26 04:54:07 if you're anything like me, you google it, only to find out it has been done by 50 other people Apr 26 04:54:12 Looney simple, do it! Apr 26 04:54:47 is it possible to read audio-buffer when someone speaks, process voice and send it over gsm/lte Apr 26 04:54:59 profound g00s strikes again Apr 26 04:55:26 It sounds like what you want to do is make a telephone call. Apr 26 04:55:35 hahaha - i was thinking that Apr 26 04:55:43 damn, ninjaed Apr 26 04:56:04 well phone call Apr 26 04:56:18 with option of sending voice with some background music Apr 26 04:56:31 by modifying the audio buffer Apr 26 04:56:55 or reading the audio buffer of call received Apr 26 04:57:02 Looney: you can forget about messing with audio buffer of the phone call Apr 26 04:57:29 on anything outside of budget phones these days it's not even on a chip you can control Apr 26 04:57:36 * capella now wants to hear girl from ipanema Apr 26 04:57:50 :) A little elevator musak Apr 26 04:58:05 budget phones as in ? ? Apr 26 04:58:19 why Google/Android doesn't want us to go low Apr 26 04:58:38 Looney: a nowadays rare device with single-chip qualcom integrated application/modem cpus Apr 26 04:58:55 and even then it's a hack Apr 26 04:59:08 that would probably at best garble the connection Apr 26 04:59:13 :-( Apr 26 04:59:27 (worked enough to snoop for call recording though) Apr 26 05:00:33 Looney: and on all devices with non-integrated modems I have touched, phonecall audio never touches the chips that Android runs on Apr 26 05:00:47 *physically* doesn't touch it Apr 26 05:00:50 then Android's openness is a sham :-( Apr 26 05:01:01 Looney: it's unrelated to android Apr 26 05:01:06 it's how the hardware is built Apr 26 05:01:10 and will continue to be built Apr 26 05:01:26 hardware is designed specifically for the phone's OS Apr 26 05:01:35 Looney: modems aren't Apr 26 05:01:40 so, indirectly I would say it is Android/Google Apr 26 05:01:43 nope Apr 26 05:02:09 ok p_l Apr 26 05:02:22 sorry to burst your bubble, but all Google does in this is provide an interface for manufacturers to plug their modem drivers Apr 26 05:02:59 but if the kernel was programmed, it might have been possible Apr 26 05:03:04 reality is that last smartphones that ran without such significant separation between radio and app sides were old symbian devices Apr 26 05:03:11 *programmed correctly Apr 26 05:03:21 or it is just some design decision Apr 26 05:03:22 Looney: kernel can't do magic and access things that *never* physically touch the hw it controls Apr 26 05:03:43 yup, agree Apr 26 05:04:07 but there must be some controller/mechanism to keep in touch with things Apr 26 05:05:10 Looney: radio modem typically has the microphone and speakers directly attached and processes phone call completely on its own, only talking with the OS about signaling, not phonecall contents Apr 26 05:06:02 and it's stupid idea from vendor's pov to route radio's audio through the App processor side, because then random user-installed software can cause buffer underruns by overtaxing the non-realtime OS Apr 26 05:06:24 which means "low phone call quality" for users which means lower sales of "defective phone" Apr 26 05:06:33 I mean if you can use the mic to record the voice Apr 26 05:06:49 this means that voice enters the "main" processor Apr 26 05:07:01 Looney: doesn't mean it got it first Apr 26 05:07:58 often microphone was connected this way: MIC -> radio -> Application CPU Apr 26 05:08:06 same for speakers, just reverse direction Apr 26 05:09:05 oh, and messing with radio firmware is punishable offense in many countries Apr 26 05:09:14 (unless you have apropriate licenses/permits) Apr 26 05:10:18 for good reasons, too Apr 26 05:15:12 I not modifying the frequency/channels Apr 26 05:15:27 I am only trying to play with audio that gets to the modem Apr 26 05:15:47 Looney: soldering iron is usually needed :) Apr 26 05:16:53 I am purely speaking from perspective of software/coding jugglery Apr 26 05:17:48 what if you use bluetooth for the audio input? does that change anything? I have no idea how the hardware works Apr 26 05:22:01 jasonj8: depends on device Apr 26 05:22:20 my first android phone had BT audio in phone call mode routed straight to modem Apr 26 05:22:55 iirc you could forget about getting the microphone input at all when in phonecall, too Apr 26 05:23:07 :-o Apr 26 05:23:11 really that is sad Apr 26 05:23:36 I mean, they should let the programmers/end-user to play with this as well Apr 26 05:23:58 I mean, if you can have Google Glass then why not let people play with audio Apr 26 05:24:46 Looney: if you cause buffer underrun in phone call, people get pissed. So they cut off unnecessary middlemen Apr 26 05:25:42 agreed, but not all coders studied CS, some are engineers as well Apr 26 05:25:49 they can do it all nicely Apr 26 05:26:08 Looney: those will be the first ones to tell you to cut the middle man Apr 26 05:26:59 well Apr 26 05:27:21 Linux, as used by Android, is *not* RTOS Apr 26 05:27:58 that is practicality for sure because tbh many CS background people won't understand appreciate underlying hardware's issues Apr 26 05:28:15 hmm !RTOS is bummer Apr 26 05:30:20 Looney: use QNX Apr 26 05:30:33 you alive shmooz Apr 26 05:30:38 what is qnx Apr 26 05:30:43 let me check it out Apr 26 05:30:55 the real real time operating system ;) Apr 26 05:31:19 I like you typing real twice to emphasise Apr 26 05:32:07 vxworks is also popular Apr 26 05:32:28 i was reading BB might pivot to medical electronics Apr 26 05:32:37 or something like that Apr 26 05:33:48 I used to play with it way before bb bought them Apr 26 05:33:49 seems not open source to me Apr 26 05:33:58 is it? Apr 26 05:34:08 define playing Apr 26 05:34:10 should be Apr 26 05:34:40 there's an intel version you can install on your desktop with bash, but not sure if they updated it Apr 26 05:35:33 well, Android being not RTOS is the bottle neck Apr 26 05:35:56 for not letting us play with voice Apr 26 05:36:15 it's linux fault Apr 26 05:36:42 you can recompile and dedicate the kernel to be more rtos like Apr 26 05:36:53 Looney: imagine the PITA you would have to go through if we had full control over radio hardware Apr 26 05:37:34 read p_l 's last message/comment Apr 26 05:37:43 regarding pain in "you know where" Apr 26 05:37:47 but since linux is focused on multitasking and multiuser by nature it can't be RTOS unless you modify kernel Apr 26 05:38:27 agreed Apr 26 05:39:00 but I do not see point in phone being multiuser Apr 26 05:39:13 I mean phone is something like personal item Apr 26 05:39:51 probably. but if you use the same OS in tablets, thats arguably multi-user Apr 26 05:40:01 im having trouble getting my fragment to show up dynamically. no exceptions or anything, just silently not showing up Apr 26 05:40:08 getSupportFragmentManager().beginTransaction().add(myFragment, "sometag").commit() is basically what im doing Apr 26 05:40:22 im not very familiar with fragments but im extended fragmentactivity Apr 26 05:40:45 i dont really do layout xmls so im looking for a way to add it dynamically to the layout Apr 26 05:40:57 hmm, the docs and ApiDemos show how to do it. shouldn't be much of a mystery Apr 26 05:41:55 onCreate, onActivityCreated are called Apr 26 05:41:58 onInflate is not Apr 26 05:42:27 well, I will have to rethink my idea again since Android doesn't want to play the way I want it to Apr 26 05:57:55 "Wow, I have a great app idea, I just need someone to program it for free (or next to nothing), we can split it 50/50!" Apr 26 05:58:08 I think I'm going to stop telling people I program Android apps... Apr 26 05:58:27 I managed to create my own Exception and it does work. However, I currently have to define the actions needed in every place I use the function in question. Is there a way to define actions to take right in the exception class, or anywhere else in one place? Apr 26 05:58:29 * Darklust > program for fee Apr 26 05:58:35 * Darklust > split proceeds 50/50 Apr 26 05:58:45 free, even Apr 26 05:59:57 why do you guys hate ideas Apr 26 06:00:04 dont you know, an idea is half the work Apr 26 06:00:12 ideas are like rabbits Apr 26 06:00:34 I agree with g00s Apr 26 06:00:39 Furry, evil things ideas Apr 26 06:00:40 well, armchair variety anyhow :) Apr 26 06:00:56 'lets put solar panels on a car so we don't need gas any more!' Apr 26 06:01:10 sqpat: an idea is worthless :) Apr 26 06:01:27 now if you have an idea on how to practically get fuel cells working for everyone, thats a good idea ;) Apr 26 06:01:47 if they weren't, we would have steam engine before 1st century CE Apr 26 06:07:24 fragments are the worst Apr 26 06:14:38 hi Apr 26 06:14:49 Can i ask questions about any app development? Apr 26 06:15:12 I have a question about the fb android sdk.. #facebook is pretty dead, so wondering if I can ask here. Apr 26 06:15:33 Has anyone worked with the FB SDK? Apr 26 06:15:51 i have a problem with it right now this moment Apr 26 06:15:57 i can try to help. hope you dont have the same one I do! Apr 26 06:16:05 cool. Apr 26 06:16:09 but this channel is otherwise dead too Apr 26 06:16:14 I'm having a tough time unerstanding the session logic Apr 26 06:16:19 oh :( Apr 26 06:16:28 are you getting OPENING and CLOSED_LOGIN_FAILED Apr 26 06:16:34 or are you beyond that part Apr 26 06:16:40 Nah, i am beyond that part :p Apr 26 06:16:43 ok cool Apr 26 06:16:49 I had a question about callbacks. Apr 26 06:17:18 So, basically my usecase is - user clicks a button, then I verify if user is logged in or not, and then post to wall. Apr 26 06:17:25 All this with one button click. Apr 26 06:18:44 http://pastebin.com/FPrA2y9M this is the snippet Apr 26 06:19:21 erm Apr 26 06:19:25 there are callback fields right Apr 26 06:19:36 like setCallback to some listener for onSessionStateChanged Apr 26 06:19:44 then you can run a switch on session state Apr 26 06:19:54 yeah, so this is whats happening. My code goes in the first if block, as session is null. And i get the callback with OPENING state Apr 26 06:20:01 youve got more or less the right structure. Apr 26 06:20:05 I see a dialog where it asks to login Apr 26 06:20:07 generally i ignore OPENING Apr 26 06:20:29 yeah, so in my callback I have an if block for if(session.isOpened()) do_something(); Apr 26 06:20:37 but my callback is never called for OPENED state Apr 26 06:20:54 so I'm pretty much stuck here Apr 26 06:21:52 can someone help me to understand bluetooth pairing. when my device needs pairing on ios, i get a popup asking me to approve pairing. no such thing happens on android, and android has createBond() and getBondState(). is there no callback for receiving a bonding request? Apr 26 06:22:11 http://pastebin.com/KQ1ppwV0 is the updated paste Apr 26 06:22:12 ahh Apr 26 06:22:15 so stuck in opening Apr 26 06:22:24 jnewt when i try to connect to an unpaired device, i get a dialog requiring pin Apr 26 06:22:25 does it not get called again? Apr 26 06:22:32 with like, closed_login_failed? Apr 26 06:22:37 and an exception? Apr 26 06:22:48 BT is all over the place on android though ;) Apr 26 06:22:53 sqpat: No, I can login fine. But i should get a callback for OPENED too, right? Apr 26 06:22:57 g00s: there's no pin on this device (it's an LE), in "just works" mode Apr 26 06:23:01 well Apr 26 06:23:02 ish Apr 26 06:23:08 one sec... Apr 26 06:23:10 jnewt ah, ok. Apr 26 06:23:13 coz my posttowall function is called inside the callback ONLY if its OPENED Apr 26 06:23:19 my code literally goes Apr 26 06:23:39 switch(state){ case CREATED: case CREATED_TOKEN_LOADED: case OPENED: case OPENED_TOKEN_UPDATED: Apr 26 06:23:44 g00s: docs are not really helping. there's a few code level questions on SO, but not much on the actual way this is supposed to work. Apr 26 06:23:45 and all four of those cases run the same code. Apr 26 06:23:53 where is this? Apr 26 06:23:57 because sometimes, and i dont care about all the semantics why, but for my use cases anyway Apr 26 06:23:58 inside the callback? Apr 26 06:24:00 yes Apr 26 06:24:11 i dont remember but sometimes you just get created instead of opened Apr 26 06:24:13 or something like that Apr 26 06:24:22 and its mostly irrelevant in my cases Apr 26 06:24:30 no, but my callback isn't called entirely for anything other than OPENING Apr 26 06:24:30 i do the same thing, ask for email, then publish in succession Apr 26 06:24:48 oh Apr 26 06:24:53 it should be called for every state? Apr 26 06:24:59 if its stuck on opening Apr 26 06:25:05 its likely a configuration problem Apr 26 06:25:24 these problems include wrong keyhashes, sandbox mode of the app is set to OFF (annoying but must be ON for most development) Apr 26 06:25:35 the app is live Apr 26 06:25:42 wrong or misconfigured app id Apr 26 06:25:43 hashes are also fine Apr 26 06:25:54 yeah, i crosschecked everything. all that is fine. I am able to login Apr 26 06:25:55 otherwise it usually spits out a connectione xception after closed_failed Apr 26 06:26:01 coz i see the login dialog Apr 26 06:26:07 i login and it asks for permission for the app Apr 26 06:26:11 ok Apr 26 06:26:11 after which the dialog closes Apr 26 06:26:20 which is weird Apr 26 06:26:21 well Apr 26 06:26:22 you get that Apr 26 06:26:27 i just fixed something like this today Apr 26 06:26:33 so you get that even if it doesnt work Apr 26 06:26:41 but i was at least getting CLOSED_LOGIN_FAILED Apr 26 06:27:26 yeah, thats why I wanted to understand the entire SESSION logic Apr 26 06:27:32 oh Apr 26 06:27:36 its confusing. I couldn't find anything in the docs Apr 26 06:27:39 so Apr 26 06:27:50 what i did Apr 26 06:27:55 was implement my own Session.StatusCallback Apr 26 06:28:09 that overrode public void call(Session session, SessionState state, Exception exception); Apr 26 06:28:14 Yeah, check here: no, it isn't a config issue. I was able to login fine, then I deleted the caceh Apr 26 06:28:20 err, sorry Apr 26 06:28:29 wrong paste Apr 26 06:28:32 check here: http://pastebin.com/KQ1ppwV0 Apr 26 06:28:39 i actually use Session.openActiveSession Apr 26 06:28:50 but i was looking at openrequest for email yea Apr 26 06:28:54 ah yes. So that. What does that do? How is it different than what I did? Apr 26 06:29:12 try logging session.state Apr 26 06:29:17 oh you do Apr 26 06:29:21 yeap Apr 26 06:29:43 so in the StatusCallBack log, i only see OPENING Apr 26 06:29:47 which is very weird. Apr 26 06:30:08 are you sure you dont have a big try catch somewhere Apr 26 06:30:18 because sessions are also really finnicky about throwing exceptions Apr 26 06:30:29 especially ones around making two session requests at the same time Apr 26 06:30:37 your code looks safe though Apr 26 06:31:18 yeah, thats fine. I'm just not sure what's going on here. It's confusing. Why can't they have clear docs about this Apr 26 06:31:34 and they changed it recently i think? all the examples I find online are using old style stuff Apr 26 06:31:52 uhh yeah im on 3.1 or something Apr 26 06:31:59 I just wanted to know what the session lifecycle is like Apr 26 06:32:16 How is openSessionState() different than what I did ? Apr 26 06:32:32 i think openSessionState is the same thing with less configuration available to you Apr 26 06:32:42 like Apr 26 06:32:47 it just gets basic info and friend list Apr 26 06:32:51 and you cant really modify it Apr 26 06:32:56 yeah, but I want publish also Apr 26 06:32:57 but i guess its sort of like cruise control Apr 26 06:32:59 oh Apr 26 06:33:00 hmm. Apr 26 06:33:07 well yeah you have to do publish separately anyway Apr 26 06:33:13 because its a write instead of a read permission Apr 26 06:33:16 yeah Apr 26 06:33:22 so like Apr 26 06:33:26 instead of your openrequest Apr 26 06:33:32 you would do session.openActiveSession Apr 26 06:33:51 session.requestNewPublishPermissions(new Session.NewPermissionsRequest(this, PERMISSION)); Apr 26 06:33:52 then in the callback you would check if theres publish Apr 26 06:34:01 its not much different than what youre doing Apr 26 06:34:09 hey, im using this format - http://paste.debian.net/95798/ - for uri in httpget; i have 2 questions, what does -1 means as port number? and why sometimes i get "Target host must not be null or set in parameters.scheme=null,host=null" error? Apr 26 06:36:16 i want to set a text get it from edittext on text view so i wrote this code and it seems has problem how should i change it ? all components(form widget) is inside main.xml http://codepad.org/tpVTZXLC Apr 26 06:43:57 how do i get rid of the error: execution failed for task 'app:preBuild' >build Tools Revision 19.0.0+ is required. been a long time since i've used android studio. i'm looking at the Settings -> Gradle, and it's set to use the default wrapper, but doesn't auto-import or create directories. Apr 26 06:44:34 using a just updated android studio, did the invalidate caches and restart i found via google, no change Apr 26 06:48:02 tried updateing the build.gradle file where it had a previous number, but now i get a project refresh failed. Apr 26 07:03:31 Its been 3 days since I published my app and its still not available, should I be concerned? Apr 26 07:09:13 I just added an in app purchase that unlocks most of my app's functionality, and when I tried to buy it for myself (so I could use my app on my every day phone) I got the error "The publisher cannot purchase this item". Is there any way around that other than using a modified version of the app on my own devices? Apr 26 07:10:19 can't you add yourself to "purchased" in dev console? Apr 26 07:19:17 p_l: where can I do that? I didn't see it Apr 26 07:22:04 ahh, sorry, it seems I mistook certain parts... Apr 26 07:23:37 it seems like something you'd be able to do... Apr 26 07:27:39 hmm... I re-read the IAP part in d.android.com... but I think you might want to ask JuiceSSH people for how they did their promotion. Apr 26 07:31:25 what would keep my android phone from being able to pair with a device that both a usb bt receiver on my windows computer and my iphone are able to connect and pair with (it can connect, just not pair) Apr 26 07:31:41 jnewt android :) Apr 26 07:32:07 * p_l doesn't trust things that don't have a cable ;) Apr 26 07:32:31 g00s, plenty Apr 26 07:32:38 some device specs to help Apr 26 07:32:51 g00s, that bad? i've always had an android phone (nexus ones), but never really had to make something work with it like this Apr 26 07:33:01 Corey84, my device specs? or the phone specs? Apr 26 07:33:06 jnewt they changed the stack in 4.2 i think Apr 26 07:33:14 its been 'problematic' Apr 26 07:33:24 even made it to androidpolice Apr 26 07:33:29 g00s, i'm using a nexus 4, running 4.4 should be good? Apr 26 07:33:37 not necessarily Apr 26 07:34:18 sounds like android needs to get it's head in the game. Apr 26 07:34:53 i think i said that a few years ago Apr 26 07:35:16 BT has been buggy since 4.1.2 Apr 26 07:35:27 is there a plan or some push to get this working? or all us electronics guys that are starting to build bluetooth low energy stuff need to just steer clear of android? Apr 26 07:36:13 hm, well if i was coming to market with some BLE gadget, i'd go ios first Apr 26 07:36:22 4.4.3 is slated to Apr 26 07:36:28 Good evening, late-nighters; good morning early-risers, and good day to others. Java is not my best language, and I am developing my first Android app. I'm having trouble implementing the TimePicker code at the link at the end of this message. The problem is: I need to run a non-static function after the time has been chosen (called by onTimeSet(TimePicker view, int hourOfDay, int minute)). I read in general, maybe I can make a class non-stati Apr 26 07:36:29 c if it causes problems. No, not in the case of TimePickerFragment, for it extends a static class. I'm pretty stumped, and I truly appreciate your help. http://developer.android.com/guide/topics/ui/controls/pickers.html#TimePickerFragment Apr 26 07:36:50 p_l: Hi Apr 26 07:36:55 g00s: iOS version is done, and in field testing right now. I'm trying to move forward Apr 26 07:37:17 jnewt cool, what does it do ? Apr 26 07:37:22 android was the next logical step, but i guess i could go windows, although i think their market share is much less Apr 26 07:37:26 jnewt, link me to your android app? Apr 26 07:37:42 jnewt, ah, it's not ready yet. Apr 26 07:37:45 jnewt not sure about WP BLE apis Apr 26 07:39:11 when will we see 4.4.3? Apr 26 07:39:15 litropy, try #java on this server Apr 26 07:39:22 If it will help in the discussion, my best OO language is C++ Apr 26 07:39:43 g00s, they exist, but whether they are working is another question apparently Apr 26 07:39:45 CalH: The easiest way around what you're seeing is to setup another gmail account on your phone Apr 26 07:39:57 Corey84, Hm. Thanks, I'll try. Apr 26 07:39:57 CalH: If you add it to your developer console list of testers, you won't be charged for any purchases Apr 26 07:39:59 up in the air still #google on g+ or #cyanogenmod are better places to ask Apr 26 07:40:02 jnewt yeah, i'm not sure if they exist 'officially' oh well Apr 26 07:40:13 wonder what will change in 4.5 or 5.0 Apr 26 07:40:15 whatever they call it Apr 26 07:40:44 g00s, is there anyway i can help push android toward getting their shit together on this? Apr 26 07:41:12 jnewt hm, well if you have a very high profile project and contacts - maybe, but ... Apr 26 07:41:17 i don't have those resources Apr 26 07:41:53 also, if things get somewhat fixed in 4.4.3 (even if!) then who has that - practically nobody Apr 26 07:43:06 jnewt, g00s, what needs to be fixed? Apr 26 07:43:22 instability Apr 26 07:43:37 litropy, well, the bonding process is mostly not working. i think it worked once. Apr 26 07:43:53 jnewt, what are you bonding? Apr 26 07:43:57 connection seems ok, discovery is mostly hit, sometimes miss Apr 26 07:44:14 litropy, piaring(bonding) using low energy for encrypted connection Apr 26 07:44:32 jnewt, bluetooth? Apr 26 07:44:36 its the same story on rfcomm, the discovery process has 50% probability of seeing a device sitting within a few feet Apr 26 07:44:40 litropy, yeah Apr 26 07:45:05 JuiceSSH: hi. CalH was asking about adding accounts in IAP as already purchased, though it might still not work for developer I guess... Apr 26 07:45:05 g00s, iphone picks up my device at 150+ ft Apr 26 07:45:10 but who knows, maybe asus just messed up the 2013 n7 Apr 26 07:45:22 jnewt, I imagine there is a standard lockout time between bond attempts. Apr 26 07:45:30 * p_l had mostly done weird low-level stuff with Android to the point that he still has no developer account in Play Apr 26 07:45:47 litropy, why the hell would that be done. i can pair, unpair, repair all day long on iOS Apr 26 07:46:18 jnewt: inb4 vendor of device tested specifically with iOS Apr 26 07:46:23 jnewt, Ah, I guess I'm wrong. I thought maybe bruteforcing was a concern Apr 26 07:47:21 jnewt, are requiring the user to enter a code? Apr 26 07:48:53 litropy, there is some app level security, but that is post-encryption Apr 26 07:49:06 Bah ... #java is suggesting I give you guys a try with my problem Apr 26 07:49:23 yeah, they don't want to hear about android stuff Apr 26 07:49:32 to them, it may as well be cobol Apr 26 07:49:40 litropy, btw, i'm the vendor of the device, it's based on a TI embedded bluetooth controller Apr 26 07:49:53 jnewt same one in the sensortag ? Apr 26 07:49:56 at least cobol is rumored to work consistently ;) Apr 26 07:49:58 g00s, Yep. I figured as much, but I thought maybe Corey84 knew #java better Apr 26 07:50:07 Chainfire XD Apr 26 07:50:18 g00s, maybe, probably, i'm not sure, but they only have 2 i think Apr 26 07:50:36 g00s, and the difference is in the licensing or something. Apr 26 07:51:32 jnewt, ah ... so the handshake happens before. Apr 26 07:51:51 just in the last two days, I've run into two more things in Android that are hairpullingly frustrating - (1) swiping out listview items can be done with every adapter except a CursorAdapter (and you usually *want* a CursorAdapter) - and (2) OpenGL ES will happily consume all your memory and refuse to release textures even when you till it to, until your system crashes (great optimization, that) Apr 26 07:51:52 jnewt, why not rapid-fire attempts? Apr 26 07:53:28 Chainfire, re: OpenGL: really? You sure you don't have a runaway instance somewhere? That's surprising. Apr 26 07:54:14 litropy, i can't get the bonding to work, regardless of how many times I attempt.i "think" it worked once, but can't repeat, regarless of how many times i try to touch the device, it never pairs now Apr 26 07:54:25 yes, really. apparently the same thing happens in the grown up computer world, with the difference that freeing the memory there is delayed, instead of 'not happening at all' Apr 26 07:54:49 Chainfire how the hell are you Apr 26 07:55:23 the optimization is that the GLES keeps the memory for free'd texture for re-use for the next textures you upload (this is per-process, by the way). So if you load a lot of textures, then free 'em, then load a lot more, eventually you go boom Apr 26 07:55:25 litropy, i have reset everything, no dice. then i try with iphone, and not a single hiccup. i feel like i don't understand how android is supposed to do this, or i'm just doing it wrong. Apr 26 07:55:58 (work around is re-using the old texture ID's, which isn't documented anywhere) Apr 26 07:56:26 i want to set a text get it from edittext on text view so i wrote this code and it seems has problem how should i change it ? all components(form widget) is inside main.xml http://codepad.org/tpVTZXLC Apr 26 07:56:56 Corey84 fine thanks... just a bit frustrated when BS like ^^^^ wastes time and gets in the way of getting shit done ;) Apr 26 07:57:32 solved Apr 26 07:57:50 Chainfire, no parrelizing or threading > Apr 26 07:57:50 it is now chainfire lol Apr 26 07:58:09 ? Apr 26 07:59:09 well if you had told me you was in here all that time ago when I first bought Cf-autoroot Id have helped pull that off for you like i do in Deviant Dev FB group adn omega groups Apr 26 07:59:11 lol Apr 26 08:01:09 Chainfire, maybe tell GLES to free /its/ memory as well? Apr 26 08:02:12 litropy if you know a way to do this, I'm all ears, and so are dozens of people on the forums and SO who have run into the same optimization (though if you know the work-around, it is trivial to fix) Apr 26 08:02:20 Guys, apologies for possting my question again - it's been a while and more peeps have joined. Apr 26 08:02:27 Good evening, late-nighters; good morning early-risers, and good day to others. Java is not my best language, and I am developing my first Android app. I'm having trouble implementing the TimePicker code at the link at the end of this message. The problem is: I need to run a non-static function after the time has been chosen (called by onTimeSet(TimePicker view, int hourOfDay, int minute)). I read in general, maybe I can make a class non-stati Apr 26 08:02:27 c if it causes problems. No, not in the case of TimePickerFragment, for it extends a static class. I'm pretty stumped, and I truly appreciate your help. http://developer.android.com/guide/topics/ui/controls/pickers.html#TimePickerFragment Apr 26 08:03:38 i want to put this command et.getText().toString(); inside a variable what kind of variable should i use? i used String but it has error it's my whole code:http://codepad.org/ziz5bvAT Apr 26 08:04:04 Chainfire, I'll keep an eye out. Perhaps GLES has a different mode. Apr 26 08:04:36 mintux, what error do you get? Apr 26 08:05:16 litropy you create the fragment with "new TimePickerFragment()" ? add a constructor you pass your class instance to that has your method, save that in a private variable in the fragment class, then call it ? Better yet, pass a callback interface Apr 26 08:05:44 or, if you're targeting a sufficiently new version of Android, do yourself a favor and steal the timepicker from the stock clock app, it looks a hell of a lot better Apr 26 08:05:56 litropy: http://axgig.com/images/69687857587928595808.jpg Apr 26 08:06:34 Chainfire, they release 4.4.3 one yet? Apr 26 08:06:56 mintux you cannot assign to a final variable outside of your type Apr 26 08:07:02 Chainfire, any licensing issues with using stock code? Apr 26 08:07:04 heh Apr 26 08:07:04 as the error message sais ... Apr 26 08:07:37 Chainfire, actually, I'm going as low as API 11, so that's out. Apr 26 08:07:38 Chainfire: but when i removed final it says Cannot refer to a non-final variable test inside an inner class defined in a different method Main.java /Units/src/com/mrg/units line 30 Java Problem Apr 26 08:07:52 Chainfire, still, just out of curiosity Apr 26 08:08:28 litropy http://androidxref.com/4.4.2_r2/xref/frameworks/opt/datetimepicker/ ... doesn't work on 11? I don't know Apr 26 08:09:02 license wise, it's Apache, so you can use it, just have to put a notice somewhere that your app uses code licensed under Apache and written by Google - something like that Apr 26 08:09:19 i just want to put edit text value inside a variable then print that variable in a text view Apr 26 08:09:20 mintux, I'm not familiar enough about java, but if I were you, I'd give this a read: http://docs.oracle.com/javase/tutorial/java/IandI/final.html Apr 26 08:10:04 mintux there is a way around that by using an array, but in this case I do not think this would work well, as the button click is not likely to occur when onCreate is still executing Apr 26 08:10:22 Chainfire, thanks - I'm trying to learn Android and Java right down to the nuts and bolts, so I'll definitely use it as a reference. Apr 26 08:10:34 what you probably want to do is create a "private String test = null;" inside the class itself, instead of in onCreate Apr 26 08:10:36 that should work Apr 26 08:10:40 Chainfire: it worked without variable Apr 26 08:10:59 Chainfire: now i want to tray store first in a variable then print that variable Apr 26 08:11:06 *try Apr 26 08:11:55 ah Apr 26 08:12:02 hi mintux, what context? Print to screen then use Toast else im not sure Apr 26 08:12:02 i try it now Apr 26 08:12:24 why are you declaring tv and et inside onCreate as well? put all that in aptly named variables in your class, not in finals in your onCreate Apr 26 08:12:34 this isn't javascript :) Apr 26 08:13:09 Chainfire: yes it worked Apr 26 08:13:33 this is pretty interesting http://www.gizmag.com/yaliny-satellite-smartphone/31777/ Apr 26 08:13:50 Chainfire: i just follow tutorial i should correct them latter Apr 26 08:13:51 mintux this is basic java though ... if you haven't already, read some java references/books Apr 26 08:14:19 Chainfire, i see what you mean now damn Apr 26 08:14:37 Chainfire: yes you are right Apr 26 08:15:06 (or just hack at it until you get it right, i never read no stinking java books ;)) Apr 26 08:15:50 Chainfire: if i don't put any type before variables default is private ? Apr 26 08:15:59 Chainfire, no wonder you stuff works so damn well its not textbook...lol Apr 26 08:16:30 any take on good mobile irc clients ? Apr 26 08:16:44 mintux 'package-private' if I recall correctly. Apr 26 08:16:45 Yaaic Apr 26 08:17:18 capella, where might one find that client never heard of it Apr 26 08:17:27 mintux in my opinion though, as you're not specifically declaring it, it is unclear. I dislike unclear things. Put private/protected/public in front of it so you know explicitly what it is. Apr 26 08:17:29 ??? Apr 26 08:17:39 Play store :) Apr 26 08:17:47 who uses mobile IRC ? Apr 26 08:17:50 * Chainfire doesn't Apr 26 08:18:05 * capella on occasion Apr 26 08:18:06 Chainfire: it returns error when i put TextView tv = (TextView) findViewById(R.id.textView1); outside of onCreate... http://codepad.org/US4csCc1 Apr 26 08:18:20 I am considering so I can give my old lappy a break on that...oolol Apr 26 08:19:27 Its been 3 days since I published my app and its still not available, should I be concerned? Apr 26 08:19:30 mintux declare the variable outside onCreate (private TextView tv = null;), then assign it inside onCreate (tv = (TextView)findViewById(...);) Apr 26 08:19:34 apple741 yes Apr 26 08:19:36 what is its package name Apr 26 08:19:40 ah Apr 26 08:19:43 publishing takes +- 2 hours, not 3 days Apr 26 08:20:58 I'm clicking on the 'View in Google Play store' which gives me a direct link to the page but it just says, 'We're sorry, the requested URL was not found on this server.' Apr 26 08:22:18 com.? apple741 Apr 26 08:22:30 I'll look to see Apr 26 08:22:31 if you're sure you went through the right motions to publish it, contact Play support Apr 26 08:22:40 you can try unpublishing and republishing it Apr 26 08:23:16 it does say "Publishes" under the "Status" column in the "All applications" tab of the developer console / Apr 26 08:25:42 Chainfire, i also still beta for folks I'd be glad to add you to list if need arises in future Apr 26 08:26:20 cool... I don't send out betas much though Apr 26 08:26:26 * Chainfire just presses publish and prays Apr 26 08:26:31 ha Apr 26 08:26:57 Here's somebody's name i recognise lol Apr 26 08:27:02 It does say 'published' so I'll try to republish it if that does not work I'll contact Play although they seem to hide their support email somewhere? Apr 26 08:27:03 or just buggy shit im not picky omega sends me more buggy crap to look at than anything Apr 26 08:28:31 Chainfire, i read your post on twitter. That means KNOX isn't an eFuse than? Apr 26 08:29:48 apple741 deep down in the help sections theres a form somewhere to contact them, IIRC you have a preset list of options to choose from, then after a few days they email you, then you can reply with "that wasn't actually my question, this is my question: ..." Apr 26 08:29:55 typical Googleness Apr 26 08:30:12 pclov3r doesn't seem so, indeed Apr 26 08:30:21 lol fair enough, thanks for the advice :) Apr 26 08:30:22 i was talking to somebody about efuses Apr 26 08:30:29 when it's wirrten to a state of 1 it may never be changed Apr 26 08:30:59 Chainfire, so i guess it's in the EEPROM somewere than? Apr 26 08:31:35 not sure where, but 'hidden' storage Apr 26 08:31:50 jtag i guess can't access that? Apr 26 08:32:17 dont know, but I don't think so Apr 26 08:32:19 not yet if its 'hidden' Apr 26 08:32:23 I think that only accesses the normal emmc Apr 26 08:32:58 theres a dude trying to change that Chainfire but hes dodgy on SN Apr 26 08:33:47 Did samsung ever confrim it was an efuse? Apr 26 08:34:35 seeing that i guess KNOX isn't secure than Apr 26 08:34:39 they do state on one of their sites its an efuse Apr 26 08:34:47 but it's not now lol Apr 26 08:34:50 but they state a lot of thigns ;) Apr 26 08:34:51 so they lied i guess Apr 26 08:35:09 i how how low of level access you can get to the device Apr 26 08:35:16 wonder how low^ Apr 26 08:35:37 I guess you would have to desolder the chips and read them directly? Apr 26 08:36:16 thats beyond my paygrade Apr 26 08:36:24 yeah Apr 26 08:36:25 it uses a selinux backbone so technically using a MAP selinux can be locked up super tight Apr 26 08:37:04 pclover wanna try some such stuff grab fedora or RHEL and set abbort to full announce Apr 26 08:37:09 fun times Apr 26 08:37:22 i use CentOS so Apr 26 08:38:36 Chainfire, and of cource samsung doesn't have that documented to try and write a bootloader Apr 26 08:39:05 writing a bootloader is not the issue, flashing it is Apr 26 08:39:06 pclover then same stuff Apr 26 08:39:16 pclov3r, on the 7 rc or 6.5 Apr 26 08:39:23 it wont boot unless its correctly crypto signed Apr 26 08:39:26 i guess it will reject a bootloadet that isn't signed Chainfire Apr 26 08:39:28 ah Apr 26 08:39:40 and i guess you can't fake that Apr 26 08:40:25 samsung tho hasn't been clear if it void your warranty or not still Apr 26 08:40:57 so we know now tho that there is a backdoor for knox and you shoudn't use it Apr 26 08:41:03 that's the importnat point Apr 26 08:41:29 how do we know that there is a backdoor ? Apr 26 08:41:37 Samsung being able to reset the status is not a backdoor Apr 26 08:41:43 what if you root the device with knox Apr 26 08:41:46 and reset the flag Apr 26 08:41:51 doesn't know work on that flag Apr 26 08:41:55 knox^ Apr 26 08:42:08 nobody but Samsung can reset the flag at this point Apr 26 08:42:15 yeah sadly Apr 26 08:42:27 so "what if you root the device and reset the flag" <--- you can't Apr 26 08:42:28 and you've made some awesome tools Apr 26 08:42:35 so your point is moot Apr 26 08:42:40 okay Apr 26 08:42:40 sound be much like a chmod 700 on system Apr 26 08:43:41 i wonder if it will ever be possible Apr 26 08:43:46 i guess it wont be until somebody leaks it Apr 26 08:44:05 like odin afik is leaked software Apr 26 08:44:41 pclov3r, you forget knox is selinux and there arent meant to be backdoor s that breaks security at the root core Apr 26 08:44:55 pclov3r, odin is Apr 26 08:45:24 hum Apr 26 08:45:55 i guess smasung could have done worse Apr 26 08:46:03 like if you trip the knox bit it bricks your device Apr 26 08:47:21 Chainfire, i read on XDA people getting back knox tripped phones with the flag reset. Maybe due that custom bootloader they have? Apr 26 08:47:46 its the only answer I know of Apr 26 08:48:28 i suppsoe samsung would sue to shit out of it if you reversed enginered someting Apr 26 08:49:31 i thought it was an efuse and it's impossible to reset it so i guess there is a little hope Apr 26 08:55:57 just read now Qualcomm calls them QFuse which it must not be Apr 26 08:57:17 anybody know if the S5 has knox as well? Apr 26 08:57:49 Chainfire, if I DialogFragment newFragment = new TimePickerFragment(); newFragment.show(getFragmentManager(), "timePicker"); isn't timePicker, along with all its fields and variables, destroyed when onTimeSet finishes? Apr 26 09:01:23 Chainfire, i do wish you luck if you do find a way. Pretty hefty bounty on XDA if it's possible Apr 26 09:02:34 litropy after that finishes, it might be, unless you hold a reference to it Apr 26 09:08:40 Chainfire, yep, I hear ya. I'm workin' on it :P Apr 26 09:29:43 Chainfire, I'm still stumped. The class that contains my method is MainActivity. Ultimately, the methods I'm trying to call are findViewById and setText. I know how to use these methods fine if I'm not dealing with my static problem. Apr 26 09:31:43 Chainfire, I think it would help if I you helped me correct a possible grammatical error in your suggestion. Hang on, let me retrieve it. Apr 26 09:32:54 litropy you create the fragment with "new TimePickerFragment()" ? add a constructor you pass your class instance >> to that has your method, << save that in a private variable in the fragment class, then call it Apr 26 09:33:11 Chainfire, see the >> << Apr 26 09:53:53 yes, because XDA bounty and Reddit karma is so, so valuable and meaningful! Apr 26 10:09:40 pragma-, no offense especially to Chainfire as i know hes still very active there but XDA can blow it only got ther chainfire and VERY select few other Omega devs anymore and reddit karma is like the ;bottom now we here song' baseless imho Apr 26 10:10:54 give me stackexchange or the like as cred id let you do what the hell you want or conversely turn out great works like Chainfire does and I dont give two rats where you post ill follow Apr 26 10:35:25 any body worked on maps api for business in android? Apr 26 10:36:04 there is a room that has that #mapsapi Apr 26 10:36:13 thnx Apr 26 10:44:00 I have a question for people. What file does the stock data usage montior remain in? Apr 26 10:44:08 i suppsoe it's in the framework? Apr 26 10:45:16 I use a rom that is port of another rom on my s4 and it doesn't have any data and wifi mobile usge speration and looks like this http://dl-1.va.us.xda-developers.com/2/6/9/6/1/9/2/1397919332024.jpg?key=r2toSM_sR6I1mUkuau-i-w&ts=1398509146 Apr 26 10:45:25 well the rom is a port Apr 26 10:46:40 pclov3r, roms are in -root not here Apr 26 10:46:54 well i thought about helping them out and trying to fix it Apr 26 10:47:12 but ok Apr 26 10:58:24 pclov3r, if you wanna help them hit up their github and contact lead and fork it and start commits Apr 26 10:58:43 what i'm trying to do but t appears there is no repo Apr 26 10:58:52 since its' a google play port so i'm out of luck giuesss Apr 26 11:09:00 get on google dev console and grab the google source (its not small tho like ~10G Apr 26 11:29:06 my bluetooth low energy device will attempt to pair / bond with a device connecting to it. iOS handles this via a small popup that allows you to approve the pairing. i get no such thing via android. i've tried .createBond() and registering for the ACTION_PAIRING_REQUEST, but my connection is killed with the former, and nothing is received on the latter. what to do? Apr 26 11:30:48 BT has been buggy in droid since 4.2.1 Apr 26 11:31:42 i'm not seeing bugs, i'm seeing that it flat out won't work. Apr 26 11:31:45 ever Apr 26 11:33:14 code break == no working is technically a bug with or without bugzilla report Apr 26 11:33:57 oh i have a good question. Why does android still not have DHCPv6 support? Apr 26 11:38:48 pclov3r, the framework is still shitty at best on desktop so why push for it on mobile Apr 26 11:42:58 but yeah CDMA is also an issue Apr 26 11:46:57 pick your evil Apr 26 11:47:03 is it possible to add a ligne in the android setting menu instead of adding an application icon ? Apr 26 11:47:20 ill deal with crappy but stable CDMA over flacky v6 Apr 26 11:47:27 but that jsut me Apr 26 11:51:26 v6 in android is flaky? Apr 26 11:55:19 support is not the hw Apr 26 11:59:24 yeah Apr 26 11:59:28 it only does SLAAC right now Apr 26 11:59:42 i'd rahter use DHCPv6 than SLAAC Apr 26 12:15:55 well that's nice i asked somebody and it does work wokr in the port it come form. So the porter must have changed someting to break it. Corey84 Apr 26 12:18:13 so it acts like it only has wifi data to montior Apr 26 12:19:27 as system04 meantioned lazy programmer or inexperinced one Apr 26 12:19:56 Probly Apr 26 13:12:17 Are there any "How To(s)" about pulling files from "/data" without having to root the android device? Apr 26 13:20:19 Hi, How would i get time in millisecond from a timepicker view, googling is not helping, please help thanks Apr 26 13:24:03 meadhikari: Create your own implementation of TimePicker. Apr 26 13:37:04 http://pastebin.com/RAYqN1FK why the ImageView isn't visible? Apr 26 13:39:06 probably linearlayout if on top of it Apr 26 13:39:23 also Apr 26 13:39:31 where is src ? Apr 26 13:39:31 of mage Apr 26 13:39:32 *image Apr 26 13:40:06 it is a color Apr 26 13:40:28 as the src. And I'll check it Apr 26 13:41:10 gordon_: I have android:layout_alignRight="@+id/color" for the LinearLayout. Apr 26 13:41:41 a yeah, right Apr 26 13:45:14 gordon_: android:layout_toLeftOf="@+id/color also doesn't work Apr 26 13:45:31 i guess you need to have src Apr 26 13:45:49 if you just want ot have blue rectangle - use Apr 26 13:46:30 and how do i color the view? Apr 26 13:52:17 gordon_: it works with android:src, but I can't make it the same height as the whole view. When I use match-parent in height its height become 0.1dp :/ Apr 26 13:54:01 yoavst: what about android:background Apr 26 13:55:07 shmooz: also with background it works, the problem now is I can only set fixed size or it is 0.1dp (when using match_parent) Apr 26 13:55:59 http://pastebin.com/h7dwxCHD shmooz Apr 26 13:58:23 yoavst: scale mode Apr 26 13:58:35 but you shouldn't do scale mode in xml Apr 26 13:58:37 afaik Apr 26 13:58:52 there was some performance issue Apr 26 13:58:58 why? Apr 26 13:59:05 that you should resize image in code and just put it into imageview after Apr 26 13:59:11 fit_xy doesn't work from the xml Apr 26 13:59:19 using match_parent Apr 26 14:00:42 well ScaleToFit Apr 26 14:00:49 http://developer.android.com/reference/android/graphics/Matrix.ScaleToFit.html#START Apr 26 14:09:06 whats the best hands-on tutorial for android developing? I have good knowledge of Java/C/Cpp/php etc Apr 26 14:28:26 yo yo yo Apr 26 14:36:57 how can i make an activity similar to a settings activity but not using the PreferenceActivity (too bloated for my use) is there a component for that? Apr 26 14:37:11 it should just contain menu items which each displays a dialog Apr 26 14:40:18 so my Google app engine application is working on localhost, but its not working when i deploy it? Apr 26 14:40:20 any ideas why? Apr 26 14:40:47 it was working before, but when i added 3rd party modules like Beautuful soup 4 and requests Apr 26 14:40:57 now it only works on localhost Apr 26 14:44:30 did you visit #appengine ? Apr 26 14:45:41 teksal: yes, but no one is responging Apr 26 14:46:10 afaik, appengine does not allow native libs, and std libs are not fully supported. Apr 26 14:46:31 native lib=written in C Apr 26 14:46:53 teksal: so theres no way to import a 3rd party library? like beautiful soup? Apr 26 14:47:00 my backend is written in python bte Apr 26 14:47:01 btw Apr 26 14:47:46 if it's pure python, then check what it depends on. maybe some std lib function not supported on appengine Apr 26 14:49:38 teksal: but its running on localhost... should that be possible? Apr 26 14:56:38 the dev server is not identical to live appengine env. maybe you're exceeding some quota, timing out at some request, ... Apr 26 14:57:53 I once tested php support, with one app that calls phpinfo(). it worked on dev server, but did nothing on appengine. no error displayed. then I leanred that it's a restricted function. Apr 26 14:58:01 Hi all. I got an issue for several days, and haven't been able to find any answer for it. My activity is fullscreen, and hiding the status bar. I'm using the YoutubePlayer API, and when I add a YoutubeFragment, the status bar reapears. Apr 26 14:58:51 this obviously has something to do with the API, so I tried to use getWindow ().setFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); all over the youtube fragment's custom class, but to no avail Apr 26 14:59:07 hello, am learning android using adt eclipse platform in this i5 with g ram under linux ubuntu, but when i run my new app takes for ever to compile and run, is there a hardware recommendation oso my developing does not take that long? am currently emmulating a nexus 7 machine, thanks Apr 26 14:59:53 Youtube API's reference only talks about FULLSCREEN_FLAG_CUSTOM_LAYOUT and other fullscreen options, but the fragment is not fullscreen. There are no other mentions about any layout changes: https://developers.google.com/youtube/android/player/reference/com/google/android/youtube/player/YouTubePlayer Apr 26 15:04:00 teksal: so when I deploy it, when I make a .get request, the error is an attribute error that says NoneType doesn't have attribute get Apr 26 15:04:11 teksal: the beautiful soup function is returning a None Apr 26 15:06:23 mantazer: that lib has a google support group. you really should ask there. I just saw topics mentioning appengine in its archives. Apr 26 15:06:49 teksal: ok thanks! Apr 26 15:09:23 is intel better or amd cpus to dev android apps using adt bundle under ubuntu? whats the RAM reccomended? Apr 26 15:10:20 deb: the emulator is bottleneck. not eclipse. Apr 26 15:11:00 i devel under adt using my android kiss from zte and did ok, but i have trouble running a virtual android device (nexus 7) in this intel i5 4g ram 32bits, am willing to buy another pc to continue devel but i need recommendations,m thanks Apr 26 15:12:02 or can you guys recommend me a brand for a new cell? Apr 26 15:15:01 ...since i dont have that many money to buy different cells phones or tables am now using virtual devices from adt bundle so i can test my app in diferrent platforms, but is very slow, can you guys recomment hardware specifications for next time i buy my next pc? Apr 26 15:15:02 intel i5 is still ok, maybe just add more ram Apr 26 15:15:47 ktwo, maybe 8g ram? Apr 26 15:15:59 i currently using g ram Apr 26 15:16:00 4g* Apr 26 15:16:17 yea, 8 and reinstall OS with 64-bit Apr 26 15:16:42 cpu is 32bits, i try install 64 version but does not take it Apr 26 15:16:57 any i5 supports 32 and 64bit Apr 26 15:17:06 are you sure it is i5? post model number of cpu Apr 26 15:17:08 so i was wonder if amd insted of intel in my new pc Apr 26 15:17:17 hold down Apr 26 15:18:02 http://sprunge.us/YDbf Apr 26 15:18:19 ktwo, thats my hardware Apr 26 15:18:56 deb http://ark.intel.com/products/53450/Intel-Core-i5-2430M-Processor-3M-Cache-up-to-3_00-GHz see here, 64 bit ;) so you probably made something wrong Apr 26 15:19:09 hmm Apr 26 15:19:45 i would upgrade to 8GB ram and maybe use SSD as system drive (hdd external only) Apr 26 15:19:50 -- Apr 26 15:20:14 ktwo, ok, thanks for your help sir. Apr 26 15:20:34 yw :) Apr 26 15:21:48 ktwo, one last question, whats the best hardware i can use to get adt running or android studio if i want to buy a new pc for this? and is not that expensive? Apr 26 15:23:10 deb, any intel i5+ Apr 26 15:23:23 no amd, beacuse intel haxm doesnt run if you want to use the emulator Apr 26 15:23:29 ktwo, hai Apr 26 15:23:33 why i5+ ? Apr 26 15:23:38 why not i6 Apr 26 15:23:39 err Apr 26 15:23:39 i5 Apr 26 15:23:48 or do you mean, i5 and i5+ Apr 26 15:23:49 :P Apr 26 15:23:58 it means i5 or i7 :P (or xeon) no i3 Apr 26 15:24:19 ktwo, no amd? Apr 26 15:24:44 ktwo, good. Apr 26 15:24:47 if you really do not plan to use the Android AVD emulator you can also go with amd Apr 26 15:24:48 ktwo, I have i5 Apr 26 15:25:11 ktwo, https://dl.dropboxusercontent.com/u/22902007/CPU-Zi5.png Apr 26 15:25:19 using this makes it much faster : https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager but it runs on intel only Apr 26 15:25:29 ktwo, ok, so am in the right track but need more ram Apr 26 16:22:33 I know about ShareActionProvider and share intents. But how do I get the type of sharing in Quickoffice? Apr 26 16:23:56 smallfoot-: can you elaborate? Apr 26 16:24:41 smallfoot-: perhaps a screen-shot Apr 26 16:32:35 None of you have Quickoffice installed? It's on every Nexus device Apr 26 16:33:00 oh Apr 26 16:33:12 i just ran it.. you mean the same sharing as google drive? Apr 26 16:34:13 I don't know what sharing Google Drive has Apr 26 16:35:22 QuickOffice does not have the a share icon in the action bar. It has a "Share" menu entry under the vertical "..." menu. When you click on it, it shows a list of share targets, but not in a AlertDialog Apr 26 16:36:23 its just a sub-menu Apr 26 16:36:34 Oh Apr 26 16:37:29 are the entries predefined? Apr 26 16:37:38 or gotten from ShareActionProvider? Apr 26 16:37:43 I wouldn't know how to create such an menu... Apr 26 16:37:50 one second its straight forward Apr 26 16:39:03 I'll do a gist Apr 26 16:41:56 I saw no such sharing example on developer.android.com. They show the ShareActionProvider button. So why does Quickoffice use it in the way it does? Is it okay to use it the way Quickoffice does, or is it discouraged in favor of a ShareActionProvider dropdown button? Apr 26 16:44:50 deb: have you looked at genymotion ? Apr 26 16:45:24 deb: and yes you should get a real device instead of depending on emulators Apr 26 16:46:20 hihi Apr 26 16:48:04 Can anyone here give me some help on working with a programatically created GridView? Apr 26 16:48:59 I have an ArrayList of URLs to images. I am trying to add the images to the GridView but having trouble figuring out the correct way to do it. Apr 26 16:51:29 Maxoplata, I think if you right-click and select New -> Fragment -> List, in Android Studio it creates a template that uses ListView on small devices, and Grid on tablets Apr 26 16:52:18 I am using Eclipse Apr 26 16:53:12 And I need it to be a GridView because I want to display the images in a 2 column grid. Apr 26 16:53:56 There are multiple grids of an arbitrary amount (coming from a web service). That is why the GridViews are created programatically. Apr 26 16:54:17 The images come from the web service as well and I put them into the ArrayList. Apr 26 16:54:43 Just not sure how to correctly make the ImageAdapter for the GridView. Apr 26 16:55:24 With .setAdapter() Apr 26 16:56:41 Yes I know that function. I mean correctly creating the class to work with the ArrayList of URLs I have. Apr 26 16:57:05 oh Apr 26 16:57:40 well, if Eclipse have any templates to use, there is often a dummy template Apr 26 16:58:30 http://code.google.com/p/android-mt-tutorials/source/browse/trunk/CirclesFragmentExample/src/com/mamlambo/circlesfragmentexample/dummy/DummyContent.java?r=45 Apr 26 16:58:36 smh... Apr 26 16:58:47 and you need define an .xml resource that contains an element Apr 26 17:05:40 When using ActionBar Tabs, should I always display the tabs, or only while the user is on the top navigation level? Apr 26 17:15:18 smallfoot-: https://gist.github.com/slightfoot/11325564 Apr 26 17:15:33 Napalm, you fell asleep? Apr 26 17:15:40 oh thanks! Apr 26 17:15:47 just when i thought you had fell asleep, you got back :D Apr 26 17:15:52 was cooking dinner Apr 26 17:15:52 sorry Apr 26 17:16:14 alright Apr 26 17:16:16 thanks :) Apr 26 17:16:58 I saw no such sharing example on developer.android.com. They show the ShareActionProvider button. So why does Quickoffice use it in the way it does? Is it okay to use it the way Quickoffice does, or is it discouraged in favor of a ShareActionProvider dropdown button? Apr 26 17:18:43 My only guess... would be that either they don't have room on the action-bar and they feel that its an action that doesn't get performed that often Apr 26 17:18:53 speaking of action bars Apr 26 17:18:58 what is this menu called? https://dl.dropboxusercontent.com/u/19390574/Screenshot_2014-04-26-20-17-45.png Apr 26 17:19:04 Action items? Apr 26 17:19:40 Sicp: its simply a Spinner? Apr 26 17:19:42 Sicp, I don't know. Maybe ActionBar dropdown? Apr 26 17:20:09 yea and the action bar is simply a view, Napalm Apr 26 17:20:41 yea smallfoot- that's the one Apr 26 17:20:44 http://stackoverflow.com/questions/11376101/drop-down-menu-on-action-bar Apr 26 17:21:01 Sicp: do getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST); getActionBar().setListNavigationCallbacks(, ); Apr 26 17:21:10 Napalm, but there is already a Share dialog you can bring up via a menu entry https://developer.android.com/training/sharing/send.html Apr 26 17:21:17 nice Apr 26 17:24:06 smallfoot-: but you don't have control over the items Apr 26 17:24:07 yea I do need a spinner adapter Apr 26 17:24:07 Napalm, how you mean? It gets autopopulated by startActivity(Intent.createChooser(sendIntent, getResources().getText(R.string.send_to))); Apr 26 17:24:07 so i guess it's a spinner, yea Apr 26 17:24:08 I think Spinner has always been a bad name for it Apr 26 17:24:08 but its too late to change it now Apr 26 17:24:08 nothing about it spins, yea Apr 26 17:24:08 well, yes and no Apr 26 17:24:08 like Feynman says, people tend to name things a little wrong Apr 26 17:24:08 you know the dials that spin Apr 26 17:24:08 sec, i'll get a pic Apr 26 17:24:08 ok Apr 26 17:24:09 Sicp: http://i.stack.imgur.com/X1X9J.jpg Apr 26 17:24:09 ahh Apr 26 17:24:09 Android calls that a date picker Apr 26 17:24:09 no i mean the type of view Apr 26 17:24:11 yea Apr 26 17:24:17 that one does "spin" Apr 26 17:24:18 it spins around like Apr 26 17:24:29 its the same idea. I've always assumed the very first android version had those Apr 26 17:24:33 and they changed it Apr 26 17:24:38 but the name stuck Apr 26 17:26:00 any idea how I can get Logcat and everything that plugs through the DDMS "port" to stop from doing so and hand over control to Monitor? Apr 26 17:26:11 I don't want to see "broken pipe" and console messages from Eclipse anymore Apr 26 17:26:45 open your terminal and type: adb kill-server and then adb devices Apr 26 17:26:56 that won't bring up any device Apr 26 17:27:03 cause server killed Apr 26 17:27:05 no but it starts the server again Apr 26 17:27:22 no I don't mean to resolve broken pipe Apr 26 17:27:29 its the same thing Apr 26 17:27:31 I just don't want to see logs in Eclipse anymore, I want everything to show in Monitor Apr 26 17:27:36 ok I'll try Apr 26 17:27:51 by killing the adb server it will stop the current things connecting to it Apr 26 17:28:18 Sicp: if you just want to stop it forever check the Android workspace settings in Eclipse i think it has a ADB/DDMS port setting Apr 26 17:28:28 add an extra digit to it Apr 26 17:28:32 then it cant connect anymore Apr 26 17:28:56 ah yes there it is Apr 26 17:31:28 smallfoot-: guess what, I just tried a normal shareShareActionProvider menu item with android:showAsAction="never" set and it does the same job Apr 26 17:31:31 :S Apr 26 17:44:05 I want to implement this second answer http://stackoverflow.com/questions/11376101/drop-down-menu-on-action-bar Apr 26 17:44:30 but I don't want to have a custom Array Adapter, and my list of actions is from Parse through an Async where I eventually populate a String array Apr 26 17:44:55 why must I use the createFromResource method, I want to create from string array Apr 26 17:44:58 not a resource array Apr 26 17:45:38 Im using something that should be fed statically from a resource (cause the actions are always known), but in my case the actions are a list of all authors, clicking on one of them does something related to the author Apr 26 17:45:49 what? Apr 26 17:45:52 what???? Apr 26 17:45:58 sorry Apr 26 17:46:01 fixed Apr 26 17:46:09 you don't have to use createFromResource Apr 26 17:46:25 yea yea Apr 26 17:46:39 new ArrayAdapter( ...) Apr 26 17:47:05 nah it'll still ask for resource Apr 26 17:47:16 all its constructors have resource Apr 26 17:49:28 for an ArrayAdapter? Apr 26 17:49:34 it has plenty of constructors Apr 26 17:50:57 Sicp: anyways, if you want to have your Spinner drop list populated Async then you will need to use a custom adapter Apr 26 17:51:20 because you'll want to display a spinner whilst the Async operation completes, right? Apr 26 17:51:47 I can do that in postExecute :P Apr 26 17:52:44 you can't have multiple types of view in an ArrayAdapter.. so no you cant Apr 26 17:53:11 When we make a display with the code instead of an xml file, is there a way to set the width of a button to be the width of the screen ? (I have a ScrollView -> LinearLayout (vertical) -> N Button) Apr 26 17:53:16 I don't see why you should avoid creating an Adapter for this Apr 26 17:53:19 Sicp: ^ Apr 26 17:54:17 Kane_: button.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); Apr 26 17:54:33 People put all their .java files in /src/java/ or they put Activities in activity subdirectory, and fragments in fragment subdirectory and adapters in adapter subdirectory? Apr 26 17:54:49 yea its unavoidable Apr 26 17:54:58 smallfoot-: was their a question in there? Apr 26 17:55:30 smallfoot-: are you asking people's opinion as to if you should do that? Apr 26 17:55:41 Napalm, yeah, if everyone just puts all the Java files in one directory, of if they keep adapters, fragments, activities in separate subdirectories Apr 26 17:55:46 Napalm, yeah Apr 26 17:57:02 well, if you like, i tend to do something similar.. anything that is app wide goes that like.. anything specific to one section if its a large app gets its own sub-package Apr 26 17:58:29 thanks Napalm ! that work perfectly :) Apr 26 18:00:03 Kane_: i'd recommend you: import static android.view.ViewGroup.LayoutParams.MATCH_PARENT; same for WRAP_CONTENT and then you can just use the name MATCH_PARENT without the prefix ViewGroup.LayoutParams. Apr 26 18:00:14 Kane_: it tend's to make those sorts of lines clearer Apr 26 18:00:42 I agree Apr 26 18:03:33 adb logcat com.example.myexample:E *:S doesn't seem to show me the errors from my app Apr 26 18:03:42 any ideas on what I'm doing wrong? Apr 26 18:05:41 if im making a request to an server, and that server's ip is out of range, how can i work around this: Apr 26 18:06:12 'out of range' ? Apr 26 18:07:23 mantazer: are you sure the IP is correct? is any segment of the IP > 255 Apr 26 18:07:53 well, that didn't come out as expected Apr 26 18:08:01 the items overtake the name of the app Apr 26 18:08:25 probably not what I was looking for Apr 26 18:08:31 yes it is Apr 26 18:08:53 the layout override the title in the action bar Apr 26 18:09:05 Sicp: you want the getDropdownView() to return a view that acts like the title Apr 26 18:09:12 in your adapter Apr 26 18:09:28 its declared in SpinnerAdapter interface Apr 26 18:10:35 Sicp: want an example of how maps do this? Apr 26 18:11:07 Sicp: are you using using the Title and Sub Title on the ActionBar? Apr 26 18:11:09 Im in Maps now, there's no drop down Apr 26 18:11:16 nah just setTitle Apr 26 18:11:23 Sicp: in the old version of Apps in your original post Apr 26 18:11:30 Sicp: http://i.stack.imgur.com/Bok6z.png Apr 26 18:11:39 riiiight Apr 26 18:11:45 got that image from SO post Apr 26 18:11:55 ya Apr 26 18:11:59 is it your post? Apr 26 18:12:02 no Apr 26 18:12:06 but that's what I want, yea Apr 26 18:13:08 seeing doc Apr 26 18:13:09 exactly like that except the menu is populated asynchronously Apr 26 18:13:16 ? Apr 26 18:13:41 Sicp: what? Apr 26 18:15:07 I don't think this is what I want, you see the app shows quotes Apr 26 18:15:16 and its just 1 screen where the quote is shown Apr 26 18:15:20 Sicp: no idea what you mean? Apr 26 18:15:36 one sec Apr 26 18:15:56 what are you using the drop menu for? navigation? Apr 26 18:16:31 https://dl.dropboxusercontent.com/u/19390574/Screenshot_2014-04-26-21-15-27.png Apr 26 18:17:16 right? and you use it to select a specific author? Apr 26 18:17:34 yea Apr 26 18:17:50 are you using a database? Apr 26 18:17:51 I did not end up using an adapter, I implemented the second answer from SO Apr 26 18:18:05 I statically input the list of authors in arrays, and then use what the guy used in the answer Apr 26 18:18:23 hi all Bitmapfactore Decode Recorce the pictuers are smaller then the orig on screen Apr 26 18:18:28 why is it Apr 26 18:19:21 IchGuckLive: they are not.. your ImageView is scaling them.. set the android:scaleType="centerCrop" Apr 26 18:20:12 Sicp: is this a fragment? Apr 26 18:20:17 no Apr 26 18:20:32 I call the asynctask again with author parameter whenever an item is selected Apr 26 18:20:33 Napalm: no its a full screen no layout Apr 26 18:20:54 IchGuckLive: then set it in code Apr 26 18:21:30 oh the log is getting a widt of 615 and its 820picel wide Apr 26 18:21:52 Sicp: are you using the drop list as the method for the user to choose the answer? Apr 26 18:22:08 to choose the author, there is no answer Apr 26 18:29:43 when I run adb logcat. how do I find out the name for my app? when I run adb logcat com.example.myapp:E it doesn't seem to work Apr 26 18:30:10 adb logcat myappActivity:E doesn't work neither Apr 26 18:32:37 any tips on how I can find out what i'm suppose to give as an argument? Apr 26 18:33:40 your namespace shows in the IDE Apr 26 18:33:58 might be com.example.myapp.myapp Apr 26 18:34:51 Napalm: Got it BitmapFactory.Options options = new BitmapFactory.Options(); options.inScaled = false; Apr 26 18:35:42 IchGuckLive: but its only doing that by default because you are asking it to scale by specifying the density Apr 26 18:35:50 is it normal that I can't rename a file on sdcard because selinux is denying it? Apr 26 18:36:37 I'm using File.renameTo() and have the SD permissions Apr 26 18:37:17 smallfoot-: I don't have an ide (not enough ram to run any of them) but I'm capable of running adb shell -n com.example.myapp/com.example.myapp.MyAppActivity Apr 26 18:37:20 I don't think Android uses SE-Linux Apr 26 18:37:24 Should I try that long name? Apr 26 18:37:42 not sure Apr 26 20:09:16 If I handle exception the same way each time I throw it, what is the best way to implement the code for that without duplication. Say, I call asynctask from various fragments in app, and each time I have to wrap it with try catch, check e instance ExClass etc., do smth etc. How do I prevent code duplication? Apr 26 20:14:07 creitve: extend AsyncTask to support an error state Apr 26 20:16:17 hmm Apr 26 20:16:21 want an example? Apr 26 20:18:05 Would be very nice of you. You can just say what to google for starters. Apr 26 20:18:55 creitve there are 2 issues Apr 26 20:19:18 the first, is that asynctask uses FutureTask under the covers, i think it just passes a throwable for the error Apr 26 20:19:35 thats why you have to do (if e instanceof xxx) …. Apr 26 20:20:34 also, AsyncTask is not composable, and its hard to communicate errors from an AsyncTask Apr 26 20:21:07 this is why i often recommend rxjava. your observer needs to look for onError() Apr 26 20:24:34 Okay. My asynctask halts, if I thrown my error from the doInBackground, right? Apr 26 20:24:58 *throw Apr 26 20:25:38 i think so; i haven't used Asynctask ever Apr 26 20:25:42 creitve: https://gist.github.com/slightfoot/11330057 Apr 26 20:25:54 anyone have any good app icon design resources? Apr 26 20:26:20 Napalm: Thank you so much! Apr 26 20:26:27 Mango_Man: http://developer.android.com/design/style/iconography.html Apr 26 20:29:24 Napalm: by the way, is it normal to write this much code with tons of objects for java? Apr 26 20:30:19 I'm new to the language Apr 26 20:32:06 creitve: since everything thats not a primitive data type is an object .. one would suppose so. But thats the same with most languages. Apr 26 20:33:11 creitve: interestingly I find I have to write less java code on Android that say I would if I were writing apps in C/C++ Apr 26 20:34:27 hi. I have a question. has anyone use Vitamio libary ? Apr 26 20:35:25 https://github.com/yixia/VitamioBundle/ Apr 26 20:52:49 What's the difference between listview and listfragment Apr 26 20:52:49 ? Apr 26 21:00:21 mantazer: ones a View and the other is a Fragment Apr 26 21:00:22 lol Apr 26 21:00:29 derp Apr 26 21:00:52 oh i see, so i can juts plainly replace listview with listfragment Apr 26 21:00:55 kewl Apr 26 21:01:01 no Apr 26 21:01:02 you acnt Apr 26 21:01:04 cant Apr 26 21:01:11 a Fragment is not a View Apr 26 21:05:25 Napalm: im a bit confused. so a fragment must reside within a view? Apr 26 21:06:10 mantazer: nope, a fragment does not have to give a view and is not required to be part of a view Apr 26 21:06:15 brb Apr 26 21:06:21 k Apr 26 21:06:32 hey all! Apr 26 21:15:27 listview is a widget Apr 26 21:16:00 listfragment is a fragment that implements a default listview widget, so its a easier way of creating an fragment and manually defining a widget by yourself Apr 26 21:22:29 i may be a sell-out Apr 26 21:52:27 so my app was making a call to our web service through https, but they updated the cert on the server and now im getting certvalidator errors, so are all my clients. What should I do to fix this. I guess it has the old cert cached or something? Apr 26 21:53:26 it's possible the new cert has an intermediary that hasn't been updated Apr 26 21:53:52 s/updated/included properly/ Apr 26 21:53:57 that would be a server-side issue Apr 26 21:54:53 or it's possible that it's signed by an authority that isn't in the android list. Unless you're specifically doing it there isn't any caching I'm aware of. Apr 26 21:56:37 how do i read my 5 last SMS in command line ? Apr 26 22:02:09 dragorn here is the error I am getting http://pastebin.com/Qwcmcqv4 Apr 26 22:07:40 mattblang: nto really anything useful in there Apr 26 22:07:44 mattblang: everything I said could apply Apr 26 22:08:02 dragorn I appreciate it. our IT guy said that they did update some stuff with SSL Friday Apr 26 22:08:15 mattblang: my first bet would be they forgot the intermediary on their end Apr 26 22:08:53 mattblang: a lot of SSL providers have a second cert you need to combine w/ the cert they give you; it will "work", for a lot of situations, w/out it, but android often will barf on it (so will command line tools a lot of the time) Apr 26 22:09:14 mattblang: that might be the first thing to ask them, do they need an intermediary cert and did they include it if so Apr 26 22:27:47 use openssl s_client to debug Apr 26 22:29:16 and yeah, if the server cert isn't directly derived from a root CA, the intermediary must be sent as part of the chain from the server Apr 26 23:08:34 why is it not possible to include "core libraries" that are NOT included in the android sdk in a project? Specifically javax.xml.*... Apr 26 23:08:51 hihi Apr 26 23:09:18 I've built my way around this with using jarjar to rewrite the dependencies, but this really shouldn't be necessary... Apr 26 23:10:36 I have a TableLayout with a width that is set to match_parent and I a TableRow in it with 5 colums. If I have the widths for columns 1, 2, 4 & 5 set, how can I set column 3 to take up the available space? Apr 26 23:12:07 (programaticallly) Apr 26 23:16:33 anyone? xP Apr 26 23:17:53 I have no idea what I'm doing in practice, but so far things are going well. I've run into an issue as it relates to downloading a file and saving it. I'm looking to download a file (about 1k in size) and save it locally to app storage. That's it. I don't need a progress box, nothing special. Nowhere that I've looked online describes how to do such a thing. The only real requirement I have is that I have true returned, or a call Apr 26 23:17:57 You can include all the libraries you want, as long as they don't conflict with classes available in android.. Like javax.xml Apr 26 23:26:44 sonOfRa, it works fine Apr 26 23:27:18 but what you add manually must not conflicts or have additional dependencies that you forget Apr 26 23:28:05 not just that, javax stuff is typically just interfaces without implementation Apr 26 23:30:11 :/ Apr 26 23:38:26 I'm trying to add some logging lines in BluetoothGatt.java , but they don't seem to be working, and there's a ton of reference issues in the file. is it not possible to work inside the library files? Apr 27 00:04:04 of course not Apr 27 00:29:32 yo pfn Apr 27 00:44:37 would anyone mind offering their honest opinion of my launcher icon? Apr 27 00:44:40 http://imgur.com/x83p9aG Apr 27 00:44:50 all i want to know is: does the mustache look like sperm Apr 27 00:44:55 wow Apr 27 00:45:02 I don't even know I wanna open it now Apr 27 00:45:03 lol Apr 27 00:45:09 haha Apr 27 00:45:21 is this a cooking pot? Apr 27 00:45:26 Don't like it. Apr 27 00:45:27 yes Apr 27 00:46:04 Several things I don't like about it, but I don't like it. One being the spermy moustache haha Apr 27 00:46:25 haha damn, i guess it really does look like sperm Apr 27 00:47:15 Mango_Man: did you even try that hard? http://www.clker.com/cliparts/a/0/a/8/1218785179566954856pipo_pan.svg Apr 27 00:47:31 Hah. Apr 27 00:47:37 yeah it's from openclipart Apr 27 00:47:39 Added black sperm to a clip art image :P Apr 27 00:48:02 Rule 1 of anything graphical: Don't use ClipArt. Apr 27 00:48:12 Mango_Man: find if i give it a go? Apr 27 00:48:21 Rule 2: Do not add black sperm to said clip art :P Apr 27 00:48:27 Napalm: You do graphic design? Apr 27 00:48:37 Napalm: okay Apr 27 00:48:39 a bit here and there Apr 27 00:49:00 Napalm: Might I get away with pestering you at some point. I try hard but fail - it'd be nice to have some input from someone that can. Apr 27 00:49:20 I can't do graphical stuff to save my life. I draw like a 3 year old hahaha Apr 27 00:49:26 Inkscape ftw Apr 27 00:49:30 the alternative to the sperm icon is spending a day or so learning adobe illustrator cs2 Apr 27 00:49:54 I like making my drawings/artwork mathmatically correct Apr 27 00:50:06 *mathematically Apr 27 00:50:11 Haha, I dont even know what that means, but it sounds impressive. Apr 27 00:50:31 Vector art Apr 27 00:51:28 That looks quite cool. Apr 27 00:54:09 this is one sexy launcher icon: https://dribbble.com/shots/579674-App-Icons-Design-Basketball?list=searches&tag=android&offset=24 Apr 27 00:54:32 Dont like Apr 27 00:54:59 This is a smart logo: http://quickstartmedia.files.wordpress.com/2010/09/spartan-golf1-e1283394931538.jpg Apr 27 00:55:33 wow, that's like a visual double entendre Apr 27 00:55:43 Yeah - its brilliant. Apr 27 01:03:50 screw it, i'm going with one of those one letter, flat colored launcher icons Apr 27 01:04:07 Generally look the best Apr 27 01:04:24 Easiest to incorporate into application design. I like the flat colouredness, but a simple logo is possibly better than a better. Apr 27 01:14:06 Hello I want to make a UI that will allow me to display test in a fashion similar to this https://commons.wikimedia.org/wiki/File:One-time_pad.svg Apr 27 01:14:45 I was thinking of using the GridView but it does not seem to be able to specify rows and columns Apr 27 01:15:09 you can specify rows and columns in a gridview Apr 27 01:15:14 ^ Apr 27 01:15:23 it depends on the device resolution though Apr 27 01:17:13 Getting bored of functional testing of an app. Apr 27 01:17:21 Documenting it rather haha Apr 27 01:27:07 Hi, quick question what do you call that top tray of an app in which there is usually a back button + other items you can add? Apr 27 01:27:07 Mango_Man left? Apr 27 01:27:09 fff Apr 27 01:27:24 Ajutsi: ActionBar Apr 27 01:27:28 sNapalm: send anyway Apr 27 01:27:37 Napalm: ^ Apr 27 01:27:37 aah thank you.. I forgot and its been bothering me the entire day xD Apr 27 01:32:40 Napalm: I'd still like to see it :-) Apr 27 01:32:49 sec Apr 27 01:36:37 Huh, theres a strange bug with DatePickerDialog.getDatePicker().setMaxDate(long Date) that if you set the max date to new Date().getTime() and open the dialog, there are times in the future displayed, but when you swipe to them they disappear. Apr 27 01:37:11 For example, right now, I can see 28th May 2014, despite being 27th April 2014 where I am. If I swipe forward they disappear, but if I swipe back one day they appear again. Apr 27 01:44:49 Anthaas: http://i.imgur.com/AVl7Wol.png Apr 27 01:45:23 That a LOT better than he did. Apr 27 01:45:28 Can I PM you a sec? Apr 27 01:45:32 sure Apr 27 01:45:41 *works out how* Apr 27 01:59:16 if anyone see's Mango_Man come back.. can you make sure he gets this link: https://drive.google.com/file/d/0BxaaQ-XiIcHAY1dBT1pHYzVkYUk/edit?usp=sharing Apr 27 02:04:49 Napalm, Sup mang Apr 27 02:04:55 hey buddy Apr 27 02:05:01 i finally got around to it Apr 27 02:05:15 made a PopupFragment Apr 27 02:05:28 at the moment it only handles the raw PopupWindow Apr 27 02:05:46 but i'm going to add support for ListPopupWindow and PopupMenu Apr 27 02:06:03 created some helpers for showing custom popup windows from actions Apr 27 02:06:08 should be a nice lib Apr 27 02:06:24 pfn: btw, i'm referencing this because it was an issue on the app we worked on together Apr 27 02:06:29 all that time ago Apr 27 02:10:25 Indeed, cool Apr 27 02:10:54 * pfn makes a latte Apr 27 02:21:07 I kinda remember the issue Apr 27 02:21:29 The latte help? Apr 27 02:23:18 Sure Apr 27 02:26:15 * pfn needs more latte art practice Apr 27 02:26:29 I drink them too rarely Apr 27 02:27:23 A true latte, or a coffee shop latte? Apr 27 02:27:59 true Apr 27 02:28:49 Ooooh. Never had a true latte before. A shot of espresso with JUST enough milk to colour the coffee... Apr 27 02:30:31 that's not a latte Apr 27 02:31:02 what you describe is a macchiato **** ENDING LOGGING AT Sun Apr 27 03:00:01 2014