**** BEGIN LOGGING AT Thu Sep 25 03:00:01 2014 Sep 25 03:00:42 using a 5lb co2 tank is so affordable, sodastream is such a ripoff Sep 25 03:00:48 convenient though Sep 25 03:00:51 Can someone help: for some reason when I connect my phone there is no "USB connected" notification Sep 25 03:00:57 I already tried restarting adb Sep 25 03:01:05 and ensuring that usb debugging is enabled Sep 25 03:01:12 How can I draw a single line? I wanted a shadow under my progress bar but I abandoned that. Sep 25 03:01:19 anything else I could try? Sep 25 03:02:44 restart your phone Sep 25 03:03:05 pfn oh Sep 25 03:03:11 pfn can't believe i didn't think of that Sep 25 03:03:14 -.- Sep 25 03:04:50 Hello Sep 25 03:05:01 Is there a delay mechanism in android? Sep 25 03:05:29 for example call methodA for 10 seconds and then call methodB Sep 25 03:05:29 I have an app with in app billing, and building/signing it with eclipse works fine. but if I try to build and sign the same application with ant+jarsigner+zipalign, I get "this app is not configured for in app billing" at runtime Sep 25 03:05:39 what could be wrong? I am definitely signing with the same keystore Sep 25 03:12:44 pfn restarting didn't fix it :( Sep 25 03:14:26 FreeNow get a new phone Sep 25 03:14:37 g00s thanks super helpful Sep 25 03:15:03 FreeNow try a new cable Sep 25 03:15:31 always suspect #1 Sep 25 03:15:33 g00s if it's charging, could the cable still be the problem? Sep 25 03:15:41 possibly, yes Sep 25 03:15:45 hmm ok one sec Sep 25 03:17:01 dang i don't have a spare Sep 25 03:17:05 will have to try later Sep 25 03:18:30 ground, +5V, and data are all different pins. worth a shot Sep 25 03:20:52 hello! Sep 25 03:22:08 so I have a layout with two fragments that are dynamically swapped, I have a bug where if the activity is killed the default fragment added to the fragmentmanager in onCreate is added on top of the previous existing one Sep 25 03:22:47 I would like to know the best way to check if one of the two fragments exist in the fragmentmanager so I can remove them first Sep 25 03:29:14 somedevguy why not just check in onCreate if the second fragment is already added - if it is, then you pu tit there and shouldn't put the first one :) Sep 25 03:29:22 fucking fragments Sep 25 03:32:04 So i have to call stopService(new Intent(this, UpdaterService.class)); Sep 25 03:32:17 from a static method unfortunately Sep 25 03:32:45 g00s my issue is I am not sure how to check if the fragment is added in? Sep 25 03:32:46 is there any way i could accomplish the same while calling from a static method? Sep 25 03:33:20 somedevguy findFragmentByxxx() == null ? Sep 25 03:33:37 peska pass a context into the static methof Sep 25 03:34:05 g00s, how? Sep 25 03:34:30 I want to stop a service from a static method Sep 25 03:34:33 public static void foo (Context c, ...) { c.startService(new Intent(c) .. ) Sep 25 03:35:10 oh... lemme try Sep 25 03:37:10 g00s, that was neat. BTW what does this Context refer to? Sep 25 03:37:23 to the context of the enclosing class? Sep 25 03:37:44 ill never check freelance websites again, every indian or pakistani guy knows at least 3 more languages, has 5+ experience and charge 10usd or less per hour Sep 25 03:38:27 * cliffreich has all the feels Sep 25 03:38:30 cliffreich live in the US ? Sep 25 03:39:18 nope Sep 25 03:39:45 yey linux! http://recode.net/2014/09/24/bash-software-bug-may-pose-bigger-threat-than-heartbleed/ Sep 25 03:39:55 cliffreich: i see the same problem, sad... Sep 25 03:40:12 g00s: i was going to send you this earlier, but thought you would have already seen it Sep 25 03:40:57 yeah i saw that bug Sep 25 03:41:02 really easy to exploit Sep 25 03:41:45 cliffreich: Yeah but when do you get a shell on a server you don't own? Sep 25 03:41:47 hey bankai_ Sep 25 03:42:14 Plus if I'm not mistaken env gets reset when you sudo or switch user Sep 25 03:42:29 just write a php shell with execute command or a directory viewer Sep 25 03:42:37 g00s: i assume you've seen the AppleWave pics and the Bender or whatever pics? Sep 25 03:42:38 to upload another file Sep 25 03:42:43 or steal passwd or shadow Sep 25 03:42:43 g00s: thank you Sep 25 03:43:20 bankai_ i saw that guy bending an iphone 6, thats a feature right ? Sep 25 03:43:20 no limits Sep 25 03:43:35 g00s: i thought only samsung were doing curved screens hehe Sep 25 03:44:26 cliffreich: Yeah but when do you get a shell on a server you don't no? Sep 25 03:45:08 you mean how you get a shell or how you shouldnt do it Sep 25 03:45:24 because you can get a shell with a nc reverse connection? Sep 25 03:45:52 and if 2nd, yes i know, you shouldnt Sep 25 03:46:17 Bendgate makes me laugh, just because a probably fat idiot put his phone in his slim fit jeans, with it propping out by a full inch, the media (sponsord by Samsung) go all crazy. Don't they fact check anymore? Sep 25 03:46:37 g00s tried a different cord Sep 25 03:46:40 no work Sep 25 03:46:53 http://www.cultofmac.com/297404/get-bent-shocking-history-bent-smartphones/ Sep 25 03:47:01 I'm looking for an android dev that might be interested in teaming up with me. I have an idea and some basic Java experience but I doubt I'll be able to pull off a prototype app (without which it is impossible to get investment). You would be repaid in equity ofc. Sep 25 03:47:52 no jobbing allowed Sep 25 03:48:11 oops, didn't read the !topic. My bad. Sep 25 03:48:46 'repaid in equity' == LOL Sep 25 03:48:56 yah... asif Sep 25 03:48:59 cash or gtfo, basically Sep 25 03:49:39 I'll gladly pay you Tuesday for a Hamburger today Sep 25 03:49:44 some people are more interested in making an app than being greedy about the money. Sep 25 03:49:56 yup Sep 25 03:50:00 if every co-founder thought like you, there would be horribly shitty startups. Sep 25 03:50:04 * capella-s3 is Sep 25 03:50:42 * capella-s3 working for free doesn't pay bills Sep 25 03:50:46 ^ Sep 25 03:50:49 ^ Sep 25 03:50:55 not asking you to quit your day job, duh Sep 25 03:50:59 but work on a project Sep 25 03:51:12 there is always risk in entrepreneurship, but you obviously know that. Sep 25 03:51:12 developers can work on their own projects Sep 25 03:51:14 supay: I could be interested Sep 25 03:51:22 somedevguy: pm? Sep 25 03:51:25 sure Sep 25 03:51:53 can you come over and mow my lawn? after work ofc Sep 25 03:52:01 id just feel like there is no co founder if i do all the job and we both wait for money Sep 25 03:52:03 just saying Sep 25 03:53:47 cliffreich: I get your point.. But sometimes people with the idea can't code as good as others. Sep 25 03:53:53 we'll call the company Washington redskins Sep 25 03:54:39 lol Sep 25 03:54:42 well measure success with a chicken Sep 25 03:54:57 capella-s3 i can have my dog pee on your lawn, and you'll never have to worry about mowing again Sep 25 03:55:16 dammit jake! Sep 25 03:55:28 capella-s3 next best thing is i can rent you a goat Sep 25 03:55:46 giat be afraid Sep 25 03:55:57 *goat Sep 25 03:56:46 VC's are saying we're in a tech bubble again Sep 25 03:57:16 http://www.wired.com/2014/09/money-pouring-tech-like-1999and-thats-good/ Sep 25 03:59:09 i might do an equity stake if the founder had a proven track record, like Jack Dorsey or something Sep 25 03:59:29 but Jack Dorsey wouldn't come to android-dev Sep 25 04:01:33 demand full ownership and pay the originator percentage of profits Sep 25 04:03:06 haha Sep 25 04:03:10 i wouldn't settle for that Sep 25 04:03:14 but thanks for the offer g00s Sep 25 04:17:01 argh carpel tunnel syndrome blows Sep 25 04:17:23 lasserix_ oh no :( Sep 25 04:17:45 just temporary for today but went on a 4 hour cramped style and lost the ability to code for a couple hours :/ Sep 25 04:18:28 man didn't know that it could be sooo painful though, literally getting an endorphin rush afterwards Sep 25 04:19:02 There's a cool animation like a ripple but uses color to fill up the view. Is there a name for it or a lib ? I don't remember when I saw it Sep 25 04:19:27 fills it up when you click on it? Sep 25 04:19:33 isn't that the new material theme style? Sep 25 04:19:33 yes Sep 25 04:19:51 yes its from the material style Sep 25 04:20:13 but can't find a name for it or a sample or anything... Sep 25 04:20:57 https://android-arsenal.com/details/1/948 Sep 25 04:21:06 that it? Sep 25 04:21:43 or the ripple drawable @ https://android-arsenal.com/details/1/948 Sep 25 04:22:29 let me check Sep 25 04:22:34 you posted same link twice Sep 25 04:22:36 :) Sep 25 04:23:21 derp sorry 2 tall ales into it Sep 25 04:23:58 http://material-design.storage.googleapis.com/videos/meaningfultransitions-consistentchoreography_do1_large_xhdpi.webm Sep 25 04:24:09 like the blue color here that fills up the space Sep 25 04:27:08 yeah doesn't link i posted have that/ Sep 25 04:28:09 I think it has nothing to do with ripple Sep 25 04:28:40 it's probably ripple Sep 25 04:28:49 color starts from where you touch? Sep 25 04:28:57 yes Sep 25 04:29:23 g00s: seems the patch that patches that vuln, doesn't fully patch it :/ Sep 25 04:29:38 yeah, it's a ripple, Sep 25 04:31:05 the bash thing? meh, that's so limited in scope Sep 25 04:31:29 except for stupid things that operate on env vars and scripting... Sep 25 04:31:43 cgi is one of those stupid things Sep 25 04:45:32 yeah i know but everyone here is going psycho over it Sep 25 04:51:28 what is the proper way to implement location listener that on on one fragment I can show position on map and drawing a path. on a second fragment I would like to show gps values. Sep 25 04:52:27 bankai_ no, from what i'm reading this is super serious Sep 25 04:53:08 and it seems even android is susceptible Sep 25 04:53:24 it's not. Sep 25 04:53:29 some way the DHCP client runs shell scrips Sep 25 04:53:48 ash is also vulnerable Sep 25 04:53:57 ash isn't Sep 25 04:56:57 Terminal reports my bash 4.1.0 is vulnerable Sep 25 04:57:13 (cm11) Sep 25 05:02:01 shoulda used protection Sep 25 05:02:34 slani just have na interface to you rlistenr class Sep 25 05:02:42 *is one way Sep 25 05:02:46 make it a singleton is another Sep 25 05:02:50 use otto or eventbus is a third Sep 25 05:03:12 use two different instances of your location class is a fourth (since they return the same values) Sep 25 05:03:36 or if you navigate from one fragment to the other pass the value when you transist Sep 25 05:11:21 from what i can tell this affects (in a slightly different way) 11 versions of android Sep 25 05:11:24 http://www.cvedetails.com/cve/CVE-2013-6271/ Sep 25 05:11:46 ah fuck, 2013 Sep 25 05:12:12 scratch that Sep 25 05:13:26 http://en.wikipedia.org/wiki/Scratch_monkey Sep 25 05:13:28 2013-6271, 2-14-6271, details details Sep 25 05:13:38 just one digit off man ! Sep 25 05:15:21 capella this is the one that has me most interested "DHCP clients invoke shell scripts to configure the system, with values taken from a potentially malicious server. This would allow arbitrary commands to be run, typically as root, on the DHCP client machine." Sep 25 05:17:31 loved that .... "security is hard" :p ... thanks "captain obvious" Sep 25 05:20:42 on MSM devices with QC wifi, any link to info about how /firmware_wcnss/* firmware files actually make it onto the wifi chipset? there are no references to these files in the driver Sep 25 05:23:22 lasserix_: thanks Sep 25 05:26:46 Need some help with viewpager.....how can i get the position of the currently selected tab? Sep 25 05:28:37 bankai_, what do you mean partially fixed? Sep 25 05:32:03 I'm gonna as a stupid question. Suppose, I have an app on Google Play. And I recently added new features to it. Now, the new updated app requires old installations to be removed (atleast clear all data) to function properly. Do we have some knobs on Playstore console to force this? Sep 25 05:33:02 * capella-s3 loves his grepcode Sep 25 05:36:00 of course, just browsing the SDK class source is pretty awesome for learning methods associated with classes/objects Sep 25 05:36:52 i miss google code search Sep 25 05:38:12 though I understand google and stackoverflow know stuff Sep 25 05:38:56 g00s: me too, but searchcode.com isn't bad Sep 25 05:40:00 mmm google code search was fun with (fuck|shit|......) Sep 25 05:40:56 TMI Sep 25 05:44:00 well, ahulr left, so we'll never know if he found it :/ Sep 25 06:14:23 Morning! :) Sep 25 06:14:38 I try to place a libGDX app inside a view which I define inside a customlayout.xml: http://www.pasteall.org/54159/xml I want the libGDX app to be positioned at the id/HolderGDX Sep 25 06:14:47 here is my java code: http://www.pasteall.org/54158/java Sep 25 06:15:02 I have no idea how to link the 'gameView' to the HolderGDX Sep 25 06:15:08 the result of my current code is: http://imgur.com/LQOMyZM Sep 25 06:21:13 er Sep 25 06:21:22 you're not even using your xml layout anywhere Sep 25 06:22:27 unless your xml is R.layout.gdxview, in which case you're making it ridiculously complicated Sep 25 06:36:11 yes, my layout is R.layout.gdxview Sep 25 06:36:38 any advice on how to link the gameView? Sep 25 06:37:58 yes, stop creating copious amounts of random views programmatically Sep 25 06:39:03 how can i get the position of the currently selected tab in viewpager? Sep 25 06:39:38 again? Sep 25 06:39:55 HunterD what is initializeForView()? Sep 25 06:40:01 a method you define, or gdx defines? Sep 25 06:47:11 ahur http://developer.android.com/reference/android/support/v4/view/ViewPager.html Sep 25 06:47:59 learn how to learn Sep 25 06:48:26 isn't coming in here and asking it? :p Sep 25 06:48:42 capella-s3 wow, thats a huge statement in such few words Sep 25 06:50:05 i'm currently using getItem() but it returns me the position of the current tab and the nexttab which is causing trouble in my app Sep 25 06:50:07 quoted from capt. obvious Sep 25 06:54:00 sarbs: a method defined by gdx Sep 25 06:54:57 sarbs: the xml I pasted here: http://www.pasteall.org/54159/xml is the layout I address with R.layout.gdxview Sep 25 06:55:36 HunterD gotcha, kk. make your holder view a FrameLayout instead of a RelativeLayout, and then don't bother creating any new views. setContentView(R.layout.gdxview) right after you initializeForView, and then findViewById your holder view, cast it to a FrameLayout and add the gdx view to it. job done. Sep 25 06:55:46 you don't need to bother creating a bunch of other views Sep 25 06:56:16 sarbs: thank you a lot! I will apply all you said Sep 25 06:58:07 i am running different async tasks on different tabs but when i scroll through them....the async tasks which are on the next page also gets executed. How can i handle this? Sep 25 06:59:19 sarbs: I see how this simplifies a lot. But I wanted to be able to define the gdxView location / position with xml file Sep 25 06:59:33 sarbs: is that possible? Sep 25 07:01:10 define the location specifically in the xml file? do that by moving around the framelayout Sep 25 07:01:31 if your holder were a relativelayout, then you would only be able to define the gdx view's location in code Sep 25 07:01:43 make sense? Sep 25 07:02:23 a parent view doesn't hold the positioning information for its children, each child has layout parameters that its parent uses to calculate the positions Sep 25 07:02:53 if that doesn't make sense i can explain further Sep 25 07:02:59 I see. I will try to do the magic with framelayout and xml Sep 25 07:03:10 sarbs "if your holder were a relativelayout, then you would only be able to define the gdx view's location in code" ? Sep 25 07:03:34 StingRay_ since he's adding the gdx view via code, the layout parameters would have to also be set in code Sep 25 07:04:09 but yeah but that has little to do with relativeLayout Sep 25 07:04:21 it's like you are saying relative layout has not LayoutParams Sep 25 07:05:24 StingRay_ his original hierarchy had a relativelayout with no children, and then he added a dynamically-generated view to it, with the goal of positioning the child via xml Sep 25 07:05:40 do I have to put the framelayout inside another layout? Sep 25 07:06:27 HunterD yes, if you want to stick with the linearlayout root Sep 25 07:07:30 you can put the framelayout inside of another relativelayout (or even another framelayout, which is what i'd do since the calculations will be simpler) and then position your holder within its parent Sep 25 07:07:48 .. more freely than if its parent were directly the LinearLayout, at least Sep 25 07:08:20 Hello All Sep 25 07:08:35 I have written an Libcrud.so native Library which will provides CRUD API’s (Create, read, update and delete) for the database and I am succesfully able to communicate using JNI in my app but I wanted to use same database in another application which can only update the database created by libcrud Sep 25 07:08:55 Does anyone has any clue on sharing same DB with 2 Apps Sep 25 07:09:20 ahulr, I believe the viewpager has some preloading going on, not sure if there's a way to avoid that Sep 25 07:09:26 sanjeevsharmaeng it's not a good idea. it requires you to set the db file to be world_readable/writable Sep 25 07:09:54 sanjeevsharmaeng write a ContentProvider on top of your libcrud jni integration, and use the android framework method of data sharing Sep 25 07:10:40 HunterD, but seriously, why bother even creating an xml layout if you're going to create so many random new views programmatically? something's gotta give Sep 25 07:11:53 ravilov: my first code was an error. what I want is to be able to set the gdx view holder with xml and also add some buttons around it also with xml Sep 25 07:13:09 ok, then yeah focus on xml and don't touch the code until you get the xml right (or as right as you can make it) Sep 25 07:13:49 @ravilov i know that the viewpager loads the view of the adjacent pages in advance but there must be some method of getting the currently selected position Sep 25 07:13:51 sarbs:so you are telling two approaches correct 1) set db file worls_readable/wriatble 2) ContentProvider on top of libcrud JNI Sep 25 07:14:31 those are the two that come to my mind. #1 is a terrible, terrible approach. it allows anyone (not just the other app) full access to your database file. even if you encrypt it, they could simply delete it if they wanted. Sep 25 07:14:57 #2 is a method provided by the android framework for you to write a java api that your other application can talk to and perform database operations with Sep 25 07:15:02 sarbs:BTW How I will made db file to be world_readable/writable ? Sep 25 07:15:19 i'm not going to help you go down that road, it's flat-out stupid. Sep 25 07:15:51 ahulr, er, yes there is, you've been given the official docs for it Sep 25 07:16:09 sarbs:My intention is to call my update JNI method from one Android app to update database so other Android App which is reading can fetch updated value Sep 25 07:17:03 and, my intention is to tell you that that is an extremely bad idea Sep 25 07:17:34 do it right, or don't do it Sep 25 07:17:37 sarbs: i have come across this also http://shashikaonline.com/2014/06/04/how-to-share-the-same-sqlitedatabase-between-two-android-apps/#comment-88 but not usefull for native library Sep 25 07:18:29 sarbs Ok then I should go with ContentProvider on top of my libcrud jni integration Sep 25 07:18:40 I have changed code into: http://www.pasteall.org/54161/java it works as expected :) thank you all! Sep 25 07:19:03 yes. that's the correct way.. check out https://developer.android.com/guide/topics/providers/content-providers.html for an introduction Sep 25 07:19:26 sarbs: I also read that Content provide won't work with native library ? Sep 25 07:19:35 most of the ContentProvider examples you'll find are centered around using a SQLiteDatabase object, but you shouldn't find it hard to adapt those examples to use your libcrud JNI Sep 25 07:20:10 whatever told you that was incorrect - a contentprovider will work with whatever data source you want Sep 25 07:20:30 the methods you extend in ContentProvider are up to you to write, all you have to do is return information from them Sep 25 07:20:48 sarbs:is this example Ok http://www.compiletimeerror.com/2013/12/content-provider-in-android.html#.VCK7mPmSx8E Sep 25 07:21:36 @ravilov I wouldn't have asked here if i've found the solution in the official docs....obviously i know how to google :/ Sep 25 07:21:38 that one looks like it's alright, but i'd check out the official docs i linked to you Sep 25 07:21:47 sarbs:So you mean to say update which is an JNI method can be accessed from another application and this will call update() in libcrud in 2nd application Sep 25 07:22:56 yeah. in one application, you'll define the ContentProvider and it will act as an API to wrap the JNI methods. in another application, you'll perform operations on the ContentProvider the first application exposed Sep 25 07:23:07 ahulr, nothing is obvious until proven otherwise Sep 25 07:23:31 it's *kind* of like a webservice. you wouldn't expose a SQL database freely to the entire internet, you write a webservice that will relay data to and from it. Sep 25 07:24:38 sarbs : Thanks Let me try and I will get back to you in case of issue .People also use shareduserid concept for this propose also Sep 25 07:24:41 ahulr it's right there on the first page of the ViewPager docs.. you even mentioned all of the key words in the method name Sep 25 07:24:55 you either didn't look very hard, or you're not as good at googling as you think ;) Sep 25 07:26:07 sanjeevsharmaeng shared user ids are possible but are a very difficult and fragile solution to this. android was not designed to share internal data between applications, so shared user ids are kind of using a linux feature to hack up android security Sep 25 07:26:20 sarbs: I google a lot but couldn't implemented shareduserid in my both app since it was giving Sqlite Error 14 Sep 25 07:26:35 or maybe he just can't explain what he wants ;) Sep 25 07:27:22 sarbs I think I need to use cleaner method you explained Sep 25 07:27:24 sanjeevsharmaeng yeah, it's not a road i'd go down. it may require root access on the phone in order to implement, anyway - i haven't looked into that area in a long time Sep 25 07:27:49 sanjeevsharmaeng good idea :) glad i was able to help. there will be lots of help available on ContentProviders, they're a pretty common concept in android. Sep 25 07:28:29 sarbs:Thanks and let me implement and see how it goes Sep 25 07:29:13 good luck Sep 25 07:29:31 sarbs:Thnaks and I will ping you in case of issue. Sep 25 07:30:06 @ravilov @sarbs - I'm dynamically changing views in the viewpager fragment. i've tried getting position from getItem and onPageScrolled and sending it through bundle but i'm still getting wrong positions Sep 25 07:31:29 My problem is getting the right positions in the first i.e the only fragment....I'm getting the right positions in the parent class using onPageScrolled method Sep 25 07:35:42 getCurrentItem() or getItem() ? Sep 25 07:37:03 i've tried using getItem(), getCurrentitem(), and onPagechangeListener Sep 25 07:37:39 ahulr and they return the wrong index ? Sep 25 07:38:28 I already know a fix but that would require me to move all my code including a no. of webservices to the parent class Sep 25 07:39:31 * capella can't remember if he's actually looking for the current item or the one after it :/ Sep 25 07:39:32 getItem returns multiple indices, onpagechangelistener gets lost during putting args and returns 0 Sep 25 07:40:03 Is it worth it to move my coding from eclipse to android studio? Sep 25 07:40:09 yes Sep 25 07:40:12 Is AS a big leap Sep 25 07:40:19 no Sep 25 07:40:20 From eclipse plugin Sep 25 07:40:37 Ok what is one good reason to move to AS Sep 25 07:40:41 i want the position of the selected tab in the child fragment Sep 25 07:40:58 * capella isn't going to work to convince you further Sep 25 07:41:22 ok haha Sep 25 07:43:44 child fragment? ViewPager? Sep 25 07:46:01 *sighs* it's a nested fragment...There is a navigation menu fragment which is using a viewpager and the fragemnt of the viewpager is child fragment Sep 25 08:34:58 anyone here with gcm experience? Sep 25 08:36:23 Im not sure about the meaning of "notification_key". If I dont send it, the message will be handled by all devices of a user together, if I send it, the message will only handled by one (the active) device, right? Sep 25 08:38:40 I didn't think you could gcm all registered devices without doing it yourself Sep 25 08:38:55 as in storing regids and batching in sets Sep 25 08:39:28 i know that. im talking about notification_keys, not registration_ids Sep 25 08:39:39 https://developer.android.com/google/gcm/server.html see notification_id here Sep 25 08:40:06 A string that maps a single user to multiple registration IDs associated with that user. This allows a 3rd-party server to send a single message to multiple app instances (typically on multiple devices) owned by a single user. A 3rd-party server can use notification_key as the target for a message instead of an individual registration ID Sep 25 08:40:32 ah, not looked into that yet Sep 25 08:40:33 wait so when hangouts and similar pop a notification on all my devices, it does it manually? Sep 25 08:41:13 well if I understand it right, the purpose of notification_key is that i map multiple devices to one user Sep 25 08:41:24 and if the mesage is processed on device A, it will be deleted on device B Sep 25 08:43:49 that would make sense that such functionality would exist Sep 25 08:44:48 why my adding a jar as a lib makes the app's fullscreen mode disappeared Sep 25 08:45:25 that shouldnt happen Sep 25 08:45:37 whats in that jar? Sep 25 08:46:12 danijoo, yes, that is exactly the purpose Sep 25 08:46:20 Mavrik: thanks. Sep 25 08:46:39 it means that you can register multiple devices (including Chrome browsers :) ) to a single user account and then you can use the dismiss API and others on that key Sep 25 08:46:53 to dismiss notifications across devices and make UX better with slightly easier management Sep 25 08:48:02 so if I dont implement this all registered devices will be handled individual (which is what I want for pushing update notifications) Sep 25 08:48:55 what, you mean updating on just one device isn't good enough? :) Sep 25 08:49:03 ;) Sep 25 08:49:49 yeah I want to use it for this scenario: Every app has an sql database that has to be updated from time to time Sep 25 08:50:13 gcm sends a "time to update!" ping, causing a service to update the local database from server Sep 25 08:50:33 at the moment im checking for updates at every app start but that seems a bit stupid to me. Sep 25 08:55:54 danijoo, yes it happened, but I've solved it just now Sep 25 08:56:55 the theme in styles.xml of that lib project is 'darkactionbar' Sep 25 09:05:23 danijoo, ys Sep 25 09:06:10 (short for "you suck" :p ) Sep 25 09:06:12 * ravilov hides Sep 25 09:15:49 ravilov: guess what yt is short for :p Sep 25 09:15:58 hint: nothing to do with youtube ;) Sep 25 09:17:18 danijoo, "yes totally"? :D Sep 25 09:17:25 touche! Sep 25 09:18:14 wow, exhausting our Grey cells are we? Sep 25 09:18:22 :-P Sep 25 09:18:45 :D Sep 25 09:20:15 Looney, I have enough to spare ;) Sep 25 09:20:26 hehehe Sep 25 09:24:42 hello. how can I close an sqlite database if it was not closed properly because of a crash, then reopen it again? Sep 25 09:25:02 I am getting exception on it. Sep 25 09:30:53 Hello hardcore coders :P Sep 25 09:33:33 sarbs hi Sep 25 09:34:40 superlinux-hp: app crashed? Sep 25 09:35:21 I guess "killed" or "force-stopped" (through settings) also counts Sep 25 09:36:35 sqlite is only read/write to a single file so in this case you can consider it "closed" Sep 25 09:37:04 At the moment I have a listview where each item has an image. Currently the images are loaded by reading them from the disk synchronously. Yes, I know it's not the correct way. I'm thinking about loading it asynchronously using AsyncTask or thirdparty lib. But I have one question! How to deal with a long list where the user scrolls like 40 items at once? Sep 25 09:37:15 true but I'm guessing the file was left in an open/volatile state which is a problem Sep 25 09:37:39 I've seen this exception before but in other apps, and it didn't FC them surprisingly, I've only seen it in logcat Sep 25 09:38:07 danijoo, while being in use, the "single-file" sqlite database actually becomes 2 or 3 files ;) Sep 25 09:38:21 Number5 erm, yes deal with it :) lol what do you mean ? Sep 25 09:38:22 whatever.db, whatever.db-journal, whatever.db-wal Sep 25 09:38:43 Number5 I'm finding it hard to find a specific question there :) Sep 25 09:38:58 yeah you might lose not saved changed due to that fc, but you can simply reopen it at next app start without having to do something "special" on it Sep 25 09:39:03 StingRay_, sorry, I'll try to explain Sep 25 09:39:26 danijoo, you sure? because these extra files could signal the unclean shutdown so sqlite might complain until you resolve :) Sep 25 09:39:59 I've never seen sqlite complain in this case, did you? Sep 25 09:40:12 on the other hand, like I said I've seen this exception coming from other apps but it didn't crash them - my assumption is they just simply logged the error and ignored it, and it was all fine and dandy anyway :) Sep 25 09:40:55 danijoo, no, but I haven't worked with sqlite databases from my app too much, in the cases where I did it didn't matter too much if some data got lost :) Sep 25 09:40:57 If the user scrolls, I could request the image from an asynchonous image loader class, and when the loader is ready with loading the item is out of view from the list. So it's like it has loaded for nothing as the loader was too late. Sep 25 09:41:27 i think sqlite will just override those journal etc files with the new ones on next open Sep 25 09:41:38 point is, I don't have enough experience with this particular case so I don't know for sure, so I'll go with your statement :p Sep 25 09:41:59 Number5 yes… Sep 25 09:42:42 StingRay_, so, isn't there a clever way to deal with such situation. Like load it only when it stops scrolling? Sep 25 09:42:43 Number5, the user can also scroll back - this is called "loading on demand" and whether the user scrolls past it or not, the demand was still made Sep 25 09:42:55 ahaa Sep 25 09:43:18 ravilov, so it does the job anyway Sep 25 09:43:20 Number5 though you do have options Sep 25 09:43:34 option to only load when not scrolling Sep 25 09:43:39 Number5, that's what I've seen apps usually do, and I see nothing wrong with that really Sep 25 09:43:54 option to monitor loading and tagged view variable so you can cancel if view is recycled Sep 25 09:43:54 StingRay_, really? Sep 25 09:44:03 or use a lib that does all that for you Sep 25 09:44:04 :) Sep 25 09:44:24 Yes I think I rather use a lib than invent the wheel Sep 25 09:44:25 have a look at UniversalImageLoader, it has scroll listeners Sep 25 09:44:32 there are always multiple options, it is up to you and your specific case to figure out what is most logical for you Sep 25 09:44:34 Ok cool. Sep 25 09:44:58 Ok, StingRay_ ravilov thank you for your help my friends :D Sep 25 09:45:14 How can I deactivate log cat in release builds? I found this, but can I embed this in Gradle? Sep 25 09:46:42 just don't call any of the Log methods? Sep 25 09:47:07 ravilov: huh :) yeah but I need it for development Sep 25 09:47:23 use a wrapper that has a flag Sep 25 09:47:53 platzhirsch, one way is to just remove all statements with proguard by using assumenosideeffects Sep 25 09:48:27 platzhirsch, the other is to use a proper Logger that supports setting global log levels Sep 25 09:48:33 Mavrik: ah yes, that's the one posted Sep 25 09:48:34 I usually do it the plain and simple way - I have a wrapper proxy class in which I have a static boolean, I set it to false ("prevent logging") when doing a release build Sep 25 09:48:46 platzhirsch, the third is to wrap each log statement into a f;ag Sep 25 09:48:53 you haven't posted anything. Sep 25 09:49:01 me? Sep 25 09:49:02 oh http://stackoverflow.com/questions/5553146/disable-logcat-output-completely-in-release-android-app Sep 25 09:49:06 oh Sep 25 09:49:07 platzhirsch, there's also Timber. Sep 25 10:00:39 hi all, is there a channel specific for Google Analytics? Sep 25 10:01:22 I can see my Event in "Real-Time" but not in "Behaviour", how come? Sep 25 10:01:28 can't you list channels and see for yourself? Sep 25 10:02:52 FrancescoV: I guess because Behavour is not in "real time" - so it might take some hours until it gets listed there Sep 25 10:03:28 it's the same as "weather" vs "climate" ;) Sep 25 10:03:42 danijoo: thanks :) Sep 25 10:04:18 also i think all values in analytics are intersected Sep 25 10:04:41 so if you have like 1 million calls and then do one call thats different to test sth, it might not show up at all. Sep 25 10:09:57 will run in its own process and therefor do blocking operations, correct? Sep 25 10:12:01 danijoo, it's not that app crashed. it's that whenever I test my code I get this Java exception error "DatabaseObjectNotClosedException" because I am testing on the same database file. so when I upload my new test to the phone, you know.. adb will have to kill the process of the previous test made. and I think the same case will happen if someone kills the app through the task manager. therefore, I need a way to reopen the database pr Sep 25 10:12:01 operly Sep 25 10:12:25 this sounds like you do it wrong :) Sep 25 10:12:33 why dont you close it properly? Sep 25 10:13:00 I am adding close() in my code. Sep 25 10:13:15 do you have the database and/or a cursor open for great lengths of time? Sep 25 10:13:38 general advice is finish up with database as soon as possible, especially for write operations Sep 25 10:14:28 ravilov, ok. i'll see if closing will work after my query. Sep 25 10:24:18 Remember that processes may run on the same thread Sep 25 10:24:27 So dont thread block :) Sep 25 10:26:19 ok I've had this problem since yesterday. Didn't change a thing in my project either... When I go to debug my app on my device it keeps giving me the Error type 3.. Error: Activity class {packagename.MyActivity} does not exist Sep 25 10:26:28 it is written in the manifest and certainly does exist Sep 25 10:27:02 is it maybe disabled? Sep 25 10:27:15 or maybe a spelling issue ? Sep 25 10:27:38 spelling is fine Sep 25 10:28:45 i'm so close to going back to Eclipse. all these problems started when I switched to Android Studio Sep 25 10:29:46 go back then Sep 25 10:30:42 I highly think they started when you changed project structure…rather than it being app centric though Sep 25 10:36:03 StrinRay_ how do you mean Sep 25 10:37:36 so I put the activity in another package and now I get the error Failure [INSTALL_FAILED_UID_CHANGED] Sep 25 10:38:08 From what I understand that is because it wasn't uninstalled properly on the device. However I am now using a device that has never had the app installed on it Sep 25 10:38:52 MartialLaw: Did you do a refractor? Sep 25 10:39:24 MartialLaw, I feel you're only making it worse, going back to eclipse might not be such a bad idea after all, why did you switch anyway? Sep 25 10:40:22 ravilov: The answer to that question should always be that eclipse is incredibly inferior. Sep 25 10:40:39 uhhuh Sep 25 10:40:40 so I see Sep 25 10:41:06 well, apparently the infinite superiority of AS is more than your app can handle Sep 25 10:41:07 Mrdarknezz: I did do a refractor quite a while ago. I had to refractor the package name because of another issue but I was able to debug and run the app on my devices. Then, out of nowhere, this problem started Sep 25 10:41:47 Mrdarknezz: Eclipse never gave me problems like this (ie. unsolvable it seems) so I suppose I should switch back Sep 25 10:42:05 but why? it is so incredibly inferior? Sep 25 10:42:08 I'll switch back and see if the problem persists Sep 25 10:42:16 ravilov: good question Sep 25 10:42:47 my point is, did you actually personally first-hand observe any of the alleged inferiority? or is that just the general notion and you're just going along? Sep 25 10:43:27 for me personally, AS brings nothing I would be interested in, and eclipse works so much better Sep 25 10:43:37 ravilov: Yes I've developed in both environments Sep 25 10:44:10 working in both is irrelevant, did you actually experience something specific that held you back? Sep 25 10:45:13 ravilov: Startup time takes way too much time, missing gradle support, random freezes. Incredibly high latency on keypresses Sep 25 10:45:36 I really don't see the hype of Android Studio. It doesn't really make it any easier and is filled with bugs. I'll wait until it's out of beta Sep 25 10:45:41 what OS? Sep 25 10:45:50 Both windows and osx Sep 25 10:45:54 have yet to try on linux Sep 25 10:46:01 wow, two of the inferior ones :p Sep 25 10:46:05 :3 Sep 25 10:46:06 yeagh Sep 25 10:46:09 yeah Sep 25 10:46:13 I know Sep 25 10:46:44 no, it doesn't support gradle and it probably never will support it seamlessly - does it matter? Sep 25 10:46:53 Eclipse on linux is pretty nice though, although I'd prefer AS for the gradle support. Sep 25 10:47:06 ravilov: I've grown to like it alot Sep 25 10:47:16 for me startup is literally within seconds. no random freezes, in fact no freezes at all. absolutely no keypress latency Sep 25 10:47:38 me neither, eclipse works great Sep 25 10:48:02 Well it's that and I prefer intellij since I work in multiple languages and it's nice to not relearn keybinding Sep 25 10:48:05 keybindings* Sep 25 10:48:15 also, you two have way too similar nicks, up until now I thought I'm talking to one person Sep 25 10:48:39 Althought the autocomplete in Intellij is preferable imo Sep 25 10:48:43 Mrdarknezz, I have people here that use eclipse to work in php - if it can do that, it can do any language Sep 25 10:48:59 ravilov: Yeah I've tried that Sep 25 10:49:07 ravilov: PHPStorm worked better for me Sep 25 10:49:34 not saying it's the best option out there for php, because it very clearly isn't Sep 25 10:49:40 but it works, and it works sufficiently well Sep 25 10:50:11 point is, I don't know what all languages you have to work with, but surely there's a way to deal with all/most of them in eclipse Sep 25 10:51:19 ravilov: Right now it's Ruby, Java, PHP, Javascript and various markup langs Sep 25 10:51:29 And they all work great in Intellij Sep 25 10:52:06 what say you people about sublime ? ? Sep 25 10:52:17 nhoi Sep 25 10:54:07 Mrdarknezz, did you try doing all these before you switched away from eclipse? Sep 25 10:54:25 I've tried PHP and Java and eclipse Sep 25 10:54:28 in* Sep 25 10:55:20 ah Sep 25 10:57:47 why does android studio make it so hard to find errors? am i missing something? Sep 25 10:59:06 ultra-: You find the stacktraces in the logcat Sep 25 10:59:50 i’m talking about the squiggly red lines under the filename on the tab, before i compile Sep 25 11:00:04 i scroll through and have a hard time finding the errors Sep 25 11:00:20 wouldn't they be marked within the file as well? Sep 25 11:00:24 if not, restart AS Sep 25 11:00:31 ultra-: They are marked in the file Sep 25 11:02:44 ok, so i do have to just scroll through and find them… for some reason they’re just not always obvious to me Sep 25 11:03:05 in xcode, i can click something and see a list of all errors, then click the error to go to the file/line where the error is Sep 25 11:03:22 they should be pretty obvious, yes you have to scroll but they should be clearly marked on the right margin Sep 25 11:03:43 you can also get a list of errors if you want but there is no point, this works well Sep 25 11:04:13 oh i see, the scrollbar at the right shows my position relative to places in the code… i don’t know how i didn’t notice that Sep 25 11:04:27 me either :p Sep 25 11:04:38 you can also click on the marks and it'll take you straight to the line Sep 25 11:05:04 now THAT’s what i’m looking for Sep 25 11:05:17 how did you miss all of that is beyond me :p Sep 25 11:05:40 a day in the life Sep 25 11:07:54 ravilov: lol i support you with eclipse … never had a reason to switch over to android studio Sep 25 11:09:27 PinkSpecs, isn't it becoming the standard for android development? That aside it's a prime example of why you shouldn't use beta software. Sep 25 11:10:33 Syzygy_, it's nowhere near ready, besides even when it becomes "stable" eclipse won't just disappear Sep 25 11:10:54 it'll just be phased out, primarily by the fact the ADT plugin is getting no more updates Sep 25 11:11:13 O.o Sep 25 11:11:18 huh? Of course Android Studio is ready. Sep 25 11:11:28 wut Sep 25 11:11:29 even when it wasn't, using Eclipse over IDEA was ludicrus Sep 25 11:11:31 if it were ready it wouldn't be called "beta" Sep 25 11:11:51 Mavrik, that might be true for your case, don't generalize ;) Sep 25 11:12:02 like I said, eclipse works fabulously well for me Sep 25 11:12:08 man I'm just like a broken record Sep 25 11:12:26 (on the other hand, AS was such an incredible pain to use) Sep 25 11:13:12 Yes, stuff you make up does sound like a broken record :P Sep 25 11:13:23 I see Sep 25 11:13:28 I didn't know you see me as a liar Sep 25 11:13:47 Helps if you have used Intellij. I found the move from emacs to any IDE difficult. Sep 25 11:14:06 Each to his own. Sep 25 11:15:33 Yes. There is however still significant difference between something being problematic because you haven't learned it yet or something being problematic because it's not designed well. Sep 25 11:17:32 sometimes some people will hear a tree fall in the forest Sep 25 11:19:47 some devs will never give up that "clean" button Sep 25 11:20:19 Mavrik - AS is not about being learned. moving from Eclipse and IntelliJ (which I know both very well) then using AS.. it is very clear AS has many a bug to work out Sep 25 11:20:46 that's the issue here. it is still in beta. I will switch back to Eclipse once AS is fully ready Sep 25 11:21:28 as not ready... heh Sep 25 11:22:38 AS might be a good idea so some people want to use it based on that (better catch the train early), but it is definitely not ready for mass usage Sep 25 11:23:03 yet those who preach AS won't ever admit to that Sep 25 11:24:30 ravilov: people have been talking for years here before AS came out about how IDEA was much better than Eclipse Sep 25 11:25:03 this is just apple vs android on developer niveau.. Sep 25 11:25:11 IDE vs IDE Sep 25 11:25:24 danijoo, so which one is apple then? :p Sep 25 11:25:34 The great IDE wars Sep 25 11:25:45 plagues every language Sep 25 11:25:46 After turning on runProguard I am getting many Sep 25 11:25:46 shmooz, IDEA, intellij, AS - to me they are all the same since they are based off of each other or something Sep 25 11:25:54 if one would be apple, it would cost you 300$ :p Sep 25 11:25:54 'can't find referenced class' warnings/errors Sep 25 11:26:25 I mean do I really have to specify all -injars now? Sep 25 11:26:27 platzhirsch, obviously your proguard needs tweaking, it usually does Sep 25 11:27:02 wah 😨 Sep 25 11:27:09 bah Sep 25 11:27:13 hi guys Sep 25 11:27:53 clear Sep 25 11:28:00 password: Sep 25 11:28:37 ******* Sep 25 11:28:43 damn, almost had him :P Sep 25 11:29:12 oh I see, these are only few namespaces, I thought I have to add all my referenced library to proguard now Sep 25 11:29:42 what? do I need to enter my password again? Sep 25 11:29:55 I've a four rows of button, with 4 buttons on each row. I've named it's ids as: "btn_1x1", "btn_1x2" ... "btn_4x3", "btn_4x4". Now, I need to get a reference to them inside a two dim loop, something like findViewById(R.id.btn_ixj). How can I do this?? Sep 25 11:31:24 you can't Sep 25 11:32:25 you can make a static array listing all the 'R.id's and then go through that Sep 25 11:32:32 no need for 2D loop anyway Sep 25 11:32:35 i have rather java-specific question Sep 25 11:32:50 great, go ask in ##java, and... nice knowing you :p Sep 25 11:32:50 custom order of arraylist, but not sorting Sep 25 11:33:07 i have gridview in which i can drag and drop to order items Sep 25 11:33:22 it works and blah Sep 25 11:33:26 nice tip ravilov, thanks! Sep 25 11:33:34 but any decent way to save it? Sep 25 11:33:53 depends where you're saving them Sep 25 11:34:18 for now theyre in arraylist and i move them in the list Sep 25 11:34:33 ok, that still says nothing Sep 25 11:34:38 each item has its own id Sep 25 11:35:36 still nothing Sep 25 11:35:46 Hello guys, Sep 25 11:36:22 well, then probably youre not right person to answer :V Sep 25 11:36:22 I am using android studio 0.8.11, and doing integration of facebook sdk inmy project Sep 25 11:36:44 I ahve imported the library in to libraries folder in project Sep 25 11:36:47 Ashiren: save them to file ? or database ? Sep 25 11:36:59 every single project i try to run on my device in AS gives me Failure [INSTALL_FAILED_DEXOPT] Sep 25 11:37:23 hello Sep 25 11:37:26 how does google play content rating work? are all apps available by default unless user enables filtering? Sep 25 11:37:27 Ashiren, sorry but that's quite a dumb assumption, I could explain at least half a dozen ways to save them had you answered my question Sep 25 11:37:37 however on gradle compile i am getting issue as Error:Could not find com.parse.bolts:bolts-android:1.1.2. Sep 25 11:37:45 any idea on this ? Sep 25 11:38:19 MartialLaw, are you sure your device isn't broken? Sep 25 11:38:41 How beneficial is it to write a TCP socket connection in the JNI then interfacing it within Java? Sep 25 11:38:44 yep Eclipse runs everything just fine...yes I know just use Eclipse but I want to know why AS is doing this Sep 25 11:38:58 because it's broken :p Sep 25 11:39:06 you mean AS is broken Sep 25 11:39:08 I feel that java is creating so much boiler plate ontop of everything Sep 25 11:39:14 MartialLaw, yes that Sep 25 11:39:15 GC is having a flippen meltdown Sep 25 11:39:20 ravilov: well, i think i know how to do it but would be there a better way Sep 25 11:39:23 my device is fine...unless you mean my 5 android devices all broken simultaneously Sep 25 11:39:24 kevel1, probably not going to make a difference Sep 25 11:39:41 lol Sep 25 11:39:47 Ashiren, so why is it such a problem to just say *where* are you saving them (or plan on saving them)? Sep 25 11:39:52 ravilov, wouldn't memory alloc be a lot easier to handle in the JNI at least? Sep 25 11:39:55 How I have missed you Eclipse Sep 25 11:40:00 ravilov: or rather, to load them Sep 25 11:40:08 whichever Sep 25 11:40:15 for now im thinking to save each pair of id and order Sep 25 11:40:30 ... Sep 25 11:40:48 ravilov, surely in native i can overwrite memory addresses to save memory? Sep 25 11:41:00 are you deliberately avoiding answering the question, Ashiren? Sep 25 11:41:08 what question Sep 25 11:41:13 wow Sep 25 11:41:18 lol Sep 25 11:42:10 in sharedPreferences? Sep 25 11:42:16 nice channel, 'sup :) Sep 25 11:42:31 ravilov, derp Sep 25 11:42:32 dronesoul, hi Sep 25 11:42:41 kevel1, I guess you can do some optimizations, but I don't think the framework overhead is that big to make a difference; but feel free to do some benchmarks ;) Sep 25 11:42:54 Ashiren, FINALLY!!! Sep 25 11:42:59 only took like a million attempts Sep 25 11:43:31 yeah sharedprefs isn't really meant for saving such data, all the apps I've seen save it in a sqlite db Sep 25 11:43:36 ravilov: usually questions end up with '?' Sep 25 11:43:54 Ashiren, before you say anything else, please read all my lines Sep 25 11:43:57 that I've posted so far Sep 25 11:44:09 Ashiren, what are you trying to achieve? Sep 25 11:44:26 global domination just like everyone else Sep 25 11:44:41 sharedprefs is no good for global domination Sep 25 11:44:47 been there, done that Sep 25 11:44:53 got the traceback Sep 25 11:44:53 kevel1: i order items in gridview by drag and drop. now i want to save the order and then load it Sep 25 11:45:02 good luck with that if you can't even tell when you've been asked a question :p Sep 25 11:45:25 Ashiren, just save an ordering value on wherever the data is being persisted? Sep 25 11:45:41 kevel1, he has IDs too Sep 25 11:46:21 juicy Sep 25 11:46:26 Ashiren, if you insist on using sharedprefs, then depending on your actual data you could compress a single entry into a String (that you'd need to parse) or you could invent a key for each item, such as "item_1_id", "item_1_order", "item_1_value", "item_2_id" etc Sep 25 11:46:43 and then also "item_count" of course Sep 25 11:46:57 but that's a horrible misuse of sharedprefs, that's why there are databases Sep 25 11:47:10 oh, the items are hardcoded Sep 25 11:47:15 i would just need the orders of ids Sep 25 11:47:16 wrap your shared prefs in a content provider ( ͡° ͜ʖ ͡°) Sep 25 11:47:19 that'll show'em Sep 25 11:47:19 like "5,3,2,4,1" Sep 25 11:47:42 eh, I guess that'd work Sep 25 11:47:50 Ashiren: just serialize it to 5,3,2,41. Sqlite is too much overhead for something like that Sep 25 11:48:05 well if they're fixed then yeah, I thought they weren't Sep 25 11:48:19 but then, how to load it? Sep 25 11:48:20 There are also some libraries out there that are build on top of SharedPreferences and allow to save arrays/Lists Sep 25 11:48:27 maybe this is something for you too Sep 25 11:48:28 Ashiren, by parsing that string Sep 25 11:48:32 i have ids like that and the arraylist unordered Sep 25 11:48:48 use string operations to process that Sep 25 11:50:13 Arrays.toString(new int[] {1,2,3,4}) will result in "[1,2,3,4]". isnt that enough for your purpose? Sep 25 11:51:01 he's asking how to get that back to an int[] Sep 25 11:51:05 or something Sep 25 11:51:20 for now, simple split Sep 25 11:51:29 new JsonParser.parse(String).getAsJsonArray(); Sep 25 11:51:40 lol Sep 25 11:51:42 :D Sep 25 11:51:56 [1,2,3,4] is a valid json, isnt it? Sep 25 11:52:04 it happens to be, yes Sep 25 11:52:19 them hacks! Sep 25 11:52:23 mhm Sep 25 11:52:24 maybe he could convert it to XML that he would then escape and save as string Sep 25 11:52:31 and then parse XML upon load Sep 25 11:52:37 something like SOAP Sep 25 11:53:37 this shouldnt be a topic to discuss at all. unless you have a few hundred items theres no real performance impact whatever method you choose. Sep 25 11:54:16 but what method is "most java way" Sep 25 11:54:33 I think he's interested in learning the "right" way though, regardless of the actual data Sep 25 11:54:36 I assume you use java for android? :) so they are all java ways.. Sep 25 11:54:51 y'know, for future reference Sep 25 11:55:02 i think it should be a rule to stop people asking for decisions to be made for them :) Sep 25 11:55:12 * StingRay_ could just be grumpy today Sep 25 11:55:30 probably lack of coffee Sep 25 11:55:33 i think if you ask 100 devs, >90 will say store them as comma seperated list in sharedprefs unless your list contains 1.000.000 objects Sep 25 11:56:10 oh ok Sep 25 11:56:21 so im starting to think like most devs Sep 25 11:56:30 uh sure Sep 25 11:56:32 :p Sep 25 11:56:33 now i need to get rid of social life Sep 25 11:56:42 or if you have all those objects in an sqlite database you could add a field "order priority" and override that if order is changed Sep 25 11:56:46 Ashiren: lol Sep 25 11:56:53 then you can sort your cursor with that field ascending Sep 25 11:57:02 Ashiren: The blank stare you get when you try to explain to people what you work with Sep 25 11:57:06 Ashiren: get used to it Sep 25 11:57:37 Ashiren: "So do you like type 0 & 1s in the computer and that becomes an App"? Sep 25 11:58:00 Ashiren: you also have to adjust your appearance.. Sep 25 11:58:01 http://i-sustain.org/wp-content/uploads/2014/06/Web-Developer-With-Without-job.jpg Sep 25 11:58:01 eeyup Sep 25 11:58:30 * ravilov got rid of any pretense of social life without even trying Sep 25 12:00:33 Mrdarknezz: if someone would ever say that to me, i would make them really think i put down 0s and 1s Sep 25 12:01:34 http://www.geeks3d.com/public/jegx/200808/keyboard-for-real-coder.jpg Sep 25 12:01:36 > get on my level Sep 25 12:01:44 isnt that perl Sep 25 12:02:03 no back button.. must be hard to push bug fixes :D Sep 25 12:02:36 danijoo: If you use that keyboard you don't produce bugs :P Sep 25 12:02:47 true .. Sep 25 12:03:04 danijoo: I didn't even look at the image but I assume it's the one with the 0 & 1 Sep 25 12:03:24 no it's not Sep 25 12:03:30 oh Sep 25 12:03:36 it also has ENTER Sep 25 12:03:38 is there a keyboard of that type available for wpl, too? Sep 25 12:03:38 er, DONE Sep 25 12:03:40 http://en.wikipedia.org/wiki/Whitespace_(programming_language) Sep 25 12:04:49 that is horrible Sep 25 12:05:00 also, you can always repurpose those three keys Sep 25 12:05:40 yeah but you need 3 keys for wpl :( Sep 25 12:05:47 space, tab and newline Sep 25 12:06:24 yes Sep 25 12:06:27 0, 1, and done :p Sep 25 12:07:09 but "done" is already the shortcut standing for "git add --all; git commit -m ""; build & publish to playstore;" Sep 25 12:08:03 you could also try key combos Sep 25 12:08:13 or invest into a separate pedal Sep 25 12:08:41 yeah like a shift-key to put your foot on like on a piano. Sep 25 12:08:48 even real keyboards should have that! Sep 25 12:08:59 so easy to distract devs lol Sep 25 12:09:04 ^^' Sep 25 12:09:34 danijoo, from what I've heard you kinda need a pedal or three to use EMACS efficiently :p Sep 25 12:09:43 and 4 hands.. Sep 25 12:09:53 each having 7 fingers Sep 25 12:09:57 yep Sep 25 12:12:19 emacs vs vim Sep 25 12:12:20 lets go Sep 25 12:12:31 I should go. Sep 25 12:12:44 nah, you do it Sep 25 12:12:45 all i can think about is like Sep 25 12:12:47 EMACS Sep 25 12:12:49 VSES Sep 25 12:12:50 VIM Sep 25 12:13:00 ERPERC RAP BOATLE Sep 25 12:13:08 im a vim guy wheni it comes to php/ruby Sep 25 12:16:17 Guys my andorid studio is stuck on refreshing project forever Sep 25 12:16:19 any idea Sep 25 12:17:05 stop and start it Sep 25 12:17:49 stop using android studio Sep 25 12:28:05 MartialLaw: That doesn't solve the problem, it only makes it worse Sep 25 12:28:23 neo3: File -> Invalidate Caches / Restart Sep 25 12:31:06 Mrdarknezz, not necessarily ;) Sep 25 12:32:38 done :) Sep 25 12:32:39 thanks Sep 25 12:32:42 neo3: np Sep 25 13:09:28 <_3mpty> Guys how would you create thread safe log list that is uploaded every n-items collected? It should be available from all activities/frags/services. Uploading is not a problem, I'm wondering only how to not lost any data or get strange bugs. Sep 25 13:09:53 <_3mpty> I'm just looking for hints ;) Sep 25 13:15:17 newbie question: how do you send a String in json format as the body of a POST request with Google Volley? do you use StringRequest? or JsonObjectRequest....? Sep 25 13:17:11 <_3mpty> dronesoul: last time I've used StringRequest Sep 25 13:17:53 <_3mpty> in overrrided byte[] getBody() { return json.getBytes(); } Sep 25 13:18:08 <_3mpty> it's StringRequest method Sep 25 13:18:33 was just gonna ask if you overrid getBody :D Sep 25 13:18:46 ty Sep 25 13:19:10 <_3mpty> depends what data structure you have Sep 25 13:19:23 <_3mpty> ofc you can use JsonObjectRequest or JsonArrayRequest Sep 25 13:19:31 <_3mpty> maybe it's even easier Sep 25 13:19:37 <_3mpty> no idea Sep 25 13:20:44 <_3mpty> I've really big mess inside my requests module and now I'm trying to fix it somehow Sep 25 13:20:54 _3mpty: I think I'd have two services. One called Logger. that just writes log to local file. The other called LogUploader just uploads local log file to server. When the Logger wants a log to be uploaded, it moves the file to a separate directory and tells Uploader to start. Uploader uploads all files it finds in the location and dies on completion or failure. Logger starts logging to new local file. Something like that. Sep 25 13:22:21 example/documentation http://pastebin.com/YBr1ZX0L Sep 25 13:22:29 that's the kind of body im trying to send Sep 25 13:22:38 <_3mpty> snowpong: not bad idea. It would be really nice also in case when I had to upload every n-seconds Sep 25 13:23:53 <_3mpty> snowpong: I was thinking about single service that grabs broadcast with data and write to files that contains logs from last 5mins, and checks if there is enough data to upload, upload, clear, next Sep 25 13:24:21 i tried to make a parent and child jsonobject to solve the nesting.... but....I can only add a JsonElement to a JsonObject...not a String object. Sep 25 13:25:42 _3mpty: it could probably done by a single service as well, but I think it's easier to write it as two actually Sep 25 13:26:02 first time im doing this so theres a lot of mind traps =D Sep 25 13:39:13 hello guys! Sep 25 13:41:44 would someone help me? Sep 25 13:42:17 hi, i have a preferencesFragment using PreferenceScreen, how i can put height of PreferenceScreen setted to all screen? Sep 25 13:42:33 juajua thats a silly question Sep 25 13:42:36 _3mpty: but getBody and then convert the json String to a byte array, and then return that? :) Sep 25 13:42:48 juajua totally pointless and a waste of time Sep 25 13:43:18 so grumpy Sep 25 13:43:23 oh come on! Sep 25 13:43:44 juajua what ? can you help me with my prob ? Sep 25 13:43:45 don't be so upset Sep 25 13:44:11 by the way Sep 25 13:44:42 i just need other help Sep 25 13:45:28 (actually i didn't understand very well yesterday :\) Sep 25 13:45:52 i'm very very focused today :D Sep 25 13:45:58 so, how may we help you today Sep 25 13:46:12 that's the spirit! Sep 25 13:46:23 juajua maybe when you actually ask a question Sep 25 13:47:10 perhaps he needs spiritual guidance Sep 25 13:47:21 may need buying advice Sep 25 13:47:27 and if your question is, "can I ask a question" then ... just stop it Sep 25 13:47:28 who knows Sep 25 13:47:39 no, no Sep 25 13:47:58 i'm just slow in writing Sep 25 13:48:21 you have wasted time asking people to commit to helping you without actually stating what you need help with Sep 25 13:48:33 better use of time I think rather than typing speed improvements Sep 25 13:48:37 :) Sep 25 13:48:38 * capella slow typers will be batted around like cat-toys Sep 25 13:49:03 i want to develop an android application which can interact with an EAS encryption engine attached through AMBA Sep 25 13:49:52 EAS? AES? Sep 25 13:49:59 yes Sep 25 13:49:59 lol Sep 25 13:50:10 EAS makes protein powders Sep 25 13:50:15 and AMBA Sep 25 13:50:31 AMBA u mean BCAAs? Sep 25 13:50:35 AMBA Sep 25 13:50:40 AMBA bus Sep 25 13:50:44 heh Sep 25 13:50:48 how about creatine? Sep 25 13:50:53 not even once? Sep 25 13:50:58 you're killing me Sep 25 13:51:10 so Sep 25 13:51:19 i have tested my component Sep 25 13:51:30 writing a very stupid bare-metal application in C Sep 25 13:51:38 and everything is working fine Sep 25 13:51:49 so what's the problem? lol Sep 25 13:52:09 Buoy172 relax he may just want to tell a story Sep 25 13:52:14 but I don't know how my application can "speak" with this component Sep 25 13:52:19 is it memory mapped? Sep 25 13:52:24 yes Sep 25 13:52:25 you need a device driver Sep 25 13:52:35 for android Sep 25 13:52:48 your C code is a good start Sep 25 13:53:44 I already obtained a kernel object for that Sep 25 13:54:20 I tested this device under peta-linux too Sep 25 13:55:34 how i can set preferenceScreen height? Sep 25 13:56:33 sorry, are you talking to me? Sep 25 13:56:46 * capella doubts it, go on Sep 25 13:57:21 what i trying to say is that i don't know when the AES-core generates interrupts Sep 25 13:57:32 i'm polling on a register at the moment :\ Sep 25 13:59:03 what are your advices? Sep 25 13:59:21 the core should have docs that explain this kind of stuff Sep 25 14:00:20 actually i'm writing the core Sep 25 14:00:33 and it sure works Sep 25 14:00:58 so you can't install an interrupt handler? Sep 25 14:01:44 or when your core needs to generate them perhaps? Sep 25 14:01:58 when comes to hardware, everything is sorted Sep 25 14:02:49 the core generates interrupts correctly Sep 25 14:03:18 and Linux can handle them Sep 25 14:03:56 i don't know how to tell my Android application that an interrupt is generated Sep 25 14:04:39 maybe all it needs is a blocking read from a /dev/? Sep 25 14:06:39 http://stackoverflow.com/questions/2777192/how-does-linux-blocking-i-o-actually-work Sep 25 14:07:44 I've got already a linux driver for that Sep 25 14:08:10 i tested it under peta-linux Sep 25 14:08:48 i miss something between the Linux kernel and the Android app : ( Sep 25 14:09:00 You need to figure out how ndk can trigger java? Sep 25 14:09:51 capella: please, go on Sep 25 14:10:53 I'm no expert but you just want your C to do a native call to Java it sounds like . Sep 25 14:11:49 what events does your core generate, other than "data block processed"? Sep 25 14:12:02 that you need to signal to an app Sep 25 14:12:38 only what you just written, for the moment Sep 25 14:13:06 so just read from a device, when the data is ready the read call will return Sep 25 14:14:08 in a thread, of course Sep 25 14:14:15 Thorn: that's the point. I don't know when to read Sep 25 14:14:44 Any time there is an EULA, juajua. Sep 25 14:14:49 That is when to read. Sep 25 14:15:22 no EULA here : D Sep 25 14:15:34 i'm doing everything Sep 25 14:15:34 he wants to trigger a call when he catches an interrupt is what I heard Sep 25 14:15:42 hi, running an asyncTask with execute on a button click event, runs fine and all but when hitting that button again executing the async task a second time I run in an illegal state exception Sep 25 14:15:42 capella: YES Sep 25 14:16:01 do I have to destroy the task somehow or something like this? Sep 25 14:17:03 JNI stuff basically ... I've not implemented any Sep 25 14:17:08 capella: sounds like a huge abstraction leak to me. you don't listen to ethernet interrupts in your app, you just recv() packets or whatever Sep 25 14:17:24 either that or I don't understand something fundamental Sep 25 14:17:39 no, I may be off Sep 25 14:18:54 juajua: not sure if this helps http://en.wikipedia.org/wiki/Java_Native_Interface Sep 25 14:19:04 cool stuff in any case :) Sep 25 14:19:43 i'm checking Sep 25 14:23:46 actually I have worked with some of that, but our build system is provided to me ... that'd be the next trick Sep 25 14:25:24 Hey, does anyone know of a good Validation framework? Sep 25 14:25:52 or a way of adding stylable attributes to standard Views Sep 25 14:28:34 capella: JNI will help for sure in my case Sep 25 14:28:50 Nice :D Sep 25 14:29:44 but i think there is still some gap between the Linux driver and the upper application Sep 25 14:31:45 <_3mpty> dronesoul: sorry i was afk, yes just return that Sep 25 14:35:45 Thorn: have you got other ideas? Sep 25 14:36:16 agh found my problem, called the asyncTask twice instead of creating a new one Sep 25 14:37:01 Is there a way to send an e-mail Intent to an Email application that does not need the user to confirm anything? I would like to use system apps without user interaction and would not like to setup my own smtp client in my app. Sep 25 14:41:38 good bye everyone Sep 25 14:41:45 see you Sep 25 14:47:28 Tobbi: No, I'm pretty sure the system doesn't want you to do that... Sep 25 14:48:04 hrm. So, I either have to include my own smtp client or simply let the user press send... Sep 25 14:48:13 yup Sep 25 14:48:24 Also if the user has more than one email app it will ask which one they want to use Sep 25 14:48:44 pieces029: Yeah, I believe I can circumvent this creating an appropriate setting. Sep 25 14:49:28 Where the user can select an email client once and that's being used from that time on. Sep 25 14:51:56 hi Sep 25 14:52:12 Tobbi, a general piece of advice - don't *EVER* do anything behind the user's back Sep 25 14:52:27 ravilov: nicley put. Sep 25 15:14:35 ravilov: Regarding doing things behind the user's back: It's specifically requested that we send an e-mail with the least effort possible. Sep 25 15:14:56 Also, the app that we develop: The audience is rather small. Sep 25 15:19:47 can I have multiple tableLayouts on one page? Sep 25 15:27:39 treeson why cant you ? Sep 25 15:28:07 hey there guys, i've uploaded an application yesterday and it's still not searchable on google play, if i search the name in quotes or without spaces it will find the app, but with spaces it won't Sep 25 15:28:33 any ideas? does it take >24hs for an app to be searchable? Sep 25 15:28:57 btw, i'm talking boutta google play Sep 25 15:29:05 Nine_9: I feel like normally it takes a few hours before you can directly link to it, never checked how long before it's searchable Sep 25 15:29:05 Nine_9 whats the app name ? Sep 25 15:29:14 Eye vs. Pixels Sep 25 15:29:34 pieces029: yes, i could link to it within a couple of hours Sep 25 15:29:48 what is the package name? Sep 25 15:30:29 com.FGReactor.EyeVsPixels Sep 25 15:31:36 Interesting, yeah I can't find it unless i directly go to it Sep 25 15:31:39 i'm on the web btw Sep 25 15:31:53 It's probably still propogating out to all there servers.. Sep 25 15:32:25 good gee... that surely takes time Sep 25 15:32:39 'd never expect that lot of time though Sep 25 15:32:45 if anyone has experience with sqliteopenhelper (i am incramenting the DB version however onupgrade is not being called infact when i upgrade the application oncreate is being called and deleteing my current Database Sep 25 15:33:40 even though i do not have a statement in there to dlete anything Sep 25 15:33:56 jaspertheghost probably your onUpgrade that is doing that :) Sep 25 15:34:24 no my onupgrade statements are all alter table statements Sep 25 15:34:56 i even have debug code in there so that when onupgrade is called that it will start a messagebox activity (it does not open) Sep 25 15:35:25 pastebin relevant bits Sep 25 15:36:03 well, I guess your full helper class Sep 25 15:36:32 is there a way to set a dialog's background opacity or just set it to a background image that has the opacity i want? Sep 25 15:37:11 http://pastebin.com/32MMUJDs Sep 25 15:39:34 jaspertheghost you are creating the table everytime ? Sep 25 15:39:38 even if it exists ? Sep 25 15:40:00 oncreate according to the docs is only called if the DB doesnt exist Sep 25 15:41:22 am i wrong? Sep 25 15:41:52 Im trying to create a radiobutton with code. It works in MainActivity. but I cant get it working in a fragment Sep 25 15:41:59 RadioButton buttonr= new RadioButton(this); Sep 25 15:43:27 what's "work"? how did you make it work in Main Activity? Sep 25 15:43:28 Bpear whats "this" ? Sep 25 15:43:50 jaspertheghost I always do create if not exist Sep 25 15:44:29 doesnt "this" just link to the class name? Sep 25 15:44:35 no Sep 25 15:44:46 have a look at the docs Sep 25 15:44:55 see what that element is in the arguments Sep 25 15:45:45 StingRay do you have any thoughts on my code why oncreate would be getting called and perhaps android is deleteing my DB on the upgrade of teh application Sep 25 15:46:10 man I just got a big letdown Sep 25 15:46:19 what happened sicp? Sep 25 15:46:45 I wanted to build a servers' metrics aggregator Sep 25 15:47:13 after digging, I find that AWS has already employed CloudWatch with the mobile app that comes with their web console Sep 25 15:47:22 Right now I have 3 fragments in my layout, one of them is set to visible, all others set to gone depending on 3 buttons. This works without any issues, but I assume there's some intended way of doing this? Any recommendations? Sep 25 15:47:31 StingRay_ This is what I have . This is what android studio says http://puu.sh/bNnRR/8bc99e595a.png Sep 25 15:47:34 Imagine my letdown when I discovered that withoout kerberos you cannot execute a process via WMI with a Delegate Authorization. :( Sep 25 15:47:41 and most of the users have AWS, and AWS was the integration I was about to start with, but AWS already has a fully functional mobile app for that purpose exactly Sep 25 15:47:51 this same code works in anything that Extends Activity Sep 25 15:47:56 Bpear yes it's telling you there Sep 25 15:48:08 it really cant be much clearer Sep 25 15:48:21 How would go about fixing this? Sep 25 15:48:26 Fragment is not a Context, Activity is. Sep 25 15:48:28 by doing what I said Sep 25 15:48:35 learn what it's expecting Sep 25 15:48:40 Oh alright makes sense Sep 25 15:48:41 and what you are giving Sep 25 15:48:47 ^^ wise words Sep 25 15:48:52 learn what it's expecting, luke Sep 25 15:49:03 Could you point me in the right direction? Sep 25 15:49:28 the official docs are fine Sep 25 15:49:57 I have built an almost-complete serverless (aside from package storage) deployment solution for my work, and BLAM now I have to write a communication protocol for a tiny app that will simply generate the same authorization token that kerberos would have allowed me to delegate on the remote machine. Sep 25 15:50:02 GRRRRRR Sep 25 15:50:54 anyone know any good libraries for making complex forms in Android? Sep 25 15:55:53 do i need to store my SQLite DB outside the /data/data folder ? it seems that if the application gets upgraded i loose my sqlite DB Sep 25 15:56:19 Nope Sep 25 15:56:47 Not happening for anyone but you Sep 25 15:57:08 so I made a whole layout in eclipse, but I notice that none if the views that I made show up in the java file. So how can I reference them there? Sep 25 15:57:11 very weird Sep 25 15:58:40 maybe its an android bug Sep 25 15:58:51 everything is just in the XML file, not the java file Sep 25 16:00:26 treeson have you gone through the getting started guides and tutorials ? Sep 25 16:00:32 would be a good place to start Sep 25 16:00:33 not really Sep 25 16:00:41 is there a way to reference my views from java? Sep 25 16:00:58 treeson http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html Sep 25 16:01:03 heh Sep 25 16:01:58 oh i see, I have to do findviewbyid etc right? Sep 25 16:02:26 StingRay did you find anything wrong with my code in pastebin that would be causing the problem im describing above? Sep 25 16:03:22 treeson correct, there's no magic that happens that creates variables for use in java, the xml just defines a view hierarchy that will get inflated and you can then reference via ids. Sep 25 16:04:02 jaspertheghost "CREATE TABLE IF NOT EXISTS" Sep 25 16:04:18 already changed that ... still didnt work... and onupgrade stil not being called Sep 25 16:05:01 jaspertheghost are you incrementing the version integer? Sep 25 16:05:24 Are you accidentally uninstalling the app before installing? Sep 25 16:06:00 yes Sep 25 16:06:18 original is 1 i set it to 2 .... all tehw ay trhough 9 without it working Sep 25 16:06:38 installing apk mamnually from email Sep 25 16:06:48 says i will not loose any data on application upgrade Sep 25 16:06:52 and then i click install Sep 25 16:06:57 and bam data gone Sep 25 16:07:29 set breakpoints in your database helper and attach a debugger, see what's going on. Sep 25 16:08:05 use developer settings to set your app as the Debug Application, and check "wait for debugger", and it will wait for you to attach before it actually runs your application (thus allowing you to attach before it performs the upgrade) Sep 25 16:08:40 is there an article you can send me to that shows me how to do that> Sep 25 16:09:43 should be able to just google android wait for debugger Sep 25 16:10:02 i'd go look but i'm about to hop in the shower Sep 25 16:10:20 and itll work from applicartions not started by android studio but installed via email? Sep 25 16:10:56 works for any app Sep 25 16:11:18 im not even sure where to set teh break point ... i mean the problem looks to be inside the sqliteopenhelper code with android ... how do i set a breakpoint in that? Sep 25 16:12:13 jaspertheghost it will be your problem Sep 25 16:12:21 set a bp before it in your code, and make sure everything you're doing is correct ;) Sep 25 16:12:38 the framework works just fine, i'm using the exact same mechanisms. Sep 25 16:13:28 Just check if the database file is there after you install but before you launch Sep 25 16:13:33 If it's not, the problem isn't your code Sep 25 16:14:15 If it is, you're probably deleting it somewhere Sep 25 16:16:11 I can not figure out this Radio Button stuff... Sep 25 16:16:29 good point let me check thast Sep 25 16:16:53 Bpear: you were using ‘this’? Sep 25 16:17:09 I know. What would I need to put there for a Fragment? Sep 25 16:17:23 Bpear: getactiivity() Sep 25 16:18:11 View button1 = findViewById(R.id.button1); I have this before an onCLick method and it causes the app to crash. Why? Sep 25 16:19:14 treeson: button button1 = (button) findViewById(R.id.button1); Sep 25 16:19:23 PinkSpecs ty Sep 25 16:19:55 hi, how i can make my fragment on click back go to last fragment? Sep 25 16:19:59 treeson: go through those docs you will find that you will develop faster after Sep 25 16:26:35 I'm just setting up my environment and reading over this thing from motorola, and I'm trying to be sure I know what I'm doing; when I unlock my phone I won't be able to trade it in to a store or anything of that sort? Sep 25 16:27:09 You don't need to unlock your phone to develop apps Sep 25 16:28:12 PinkSpecs: Thank you! But now I cant add anything to the ViewGroup Sep 25 16:28:28 Logcat says line 62 is the problem Sep 25 16:28:29 seconds) Sep 25 16:28:29 PinkSpecs: Thank you! But now I cant add anything to the ViewGroup Sep 25 16:28:37 installedButtonLayout.addView(buttonr); Sep 25 16:28:45 sitting here scratching my head as to why one of my activities is not complaining at all about not implementing an interface method. It was because the interface method was setProgress(int progress), but wups there is already a setProgress in Activity. lol. so that was satisfying the interface Sep 25 16:29:57 hi, how i can make my fragment on click back go to last fragment ? Sep 25 16:30:06 i use addtoBackstack(null) but is not work... Sep 25 16:30:44 if you add to back stack, then just do this on click http://stackoverflow.com/a/9387251/1747491 Sep 25 16:30:49 t0th_-_ https://github.com/bpear96/Nexus-4-Modem-Flasher/commit/80c0d5b416ea6b1825fab9a4c53bb7e2c730e6d7 Sep 25 16:30:54 Thats how I did that Sep 25 16:31:12 Actually I dont think that is what you want. Whoops Sep 25 16:31:33 SimonVT: Well I keep trying to run on my phone, my phone is setup to usb debug but I can't get eclipse to run it onto there, and I've tried to update my drivers for my computer but I couldn't do that when I tried to follow the guide on developer.android Sep 25 16:33:13 You probably need drivers from motorola Sep 25 16:34:36 thanks Sep 25 16:41:09 Hi! Im into game dev and am used to c++. Is there a valid reason why i shouldnt ndk over sdk? Sep 25 16:42:08 JNI can be a pain in the ass but other than that, not really Sep 25 16:42:35 i'm not sure if NDK supports renderscript or not.. if it doesn't, SDK has some serious advantages in the gpu acceleration dept Sep 25 16:42:58 cant you use a combination? Sep 25 16:43:14 Hmm not sure what to do now Sep 25 16:43:15 I thought you always had to use the sdk anyway? Sep 25 16:43:20 even with ndk? Sep 25 16:43:44 can you do the grahics in sdk and the logic in c++? Sep 25 16:43:52 Yes but i meant to write in c++, not java Sep 25 16:44:05 yes Sep 25 16:44:33 njcomsec you have to use at a very minimum AndroidManifest, you can declar native activities in it and bypass everything else Sep 25 16:44:44 I see Sep 25 16:45:04 someone before told me you must have some java Sep 25 16:45:10 but to your more general question, there's no reason you couldn't have both Sep 25 16:45:25 njcomsec nope. https://developer.android.com/reference/android/app/NativeActivity.html Sep 25 16:45:52 cool Sep 25 16:46:09 Dildosan http://www.developer.com/ws/android/development-tools/writing-native-android-code-ndk-vs.-renderscript.html Sep 25 16:46:25 but if you use the ndk you have to manage memory and pointers like normal c++? Sep 25 16:46:36 or it is different to normal c++ Sep 25 16:46:40 "both" is the approach i would use if i were you. java for the framework interactions, c++ for everything else Sep 25 16:47:27 no, it's normal c/c++. JNI can be a pain because it introduces some extra requirements but once you're away from the c<->java interface, it's normal Sep 25 16:48:13 hmmm Sep 25 16:48:24 JNI is like an API that connects c++ to java? Sep 25 16:49:36 yep. java native interface Sep 25 16:50:16 I will just use Java for now since it is all I know Sep 25 16:50:26 but I'd like to learn C# or C++ some day Sep 25 16:52:13 Same for me, but ill also look into renderscript. Never herd of it before Sep 25 16:59:55 njcomsec c# very similar to java, both conceptually and syntactically Sep 25 17:00:01 you'll pick it up quick Sep 25 17:00:07 c++ may be a steeper learning curve Sep 25 17:00:20 yeh because of GC Sep 25 17:00:30 I think I will make some windows apps in c# Sep 25 17:01:02 but I cant use c# for android.... unless I use some thing like mono or phone gap which Im not interested in Sep 25 17:02:54 or xamarin but the liscencing fee is ridicilous Sep 25 17:05:54 Bpear: did you fix it ? Sep 25 17:08:57 I have a fragment that exibits a bug. For every time I tap within the view of the fragment, the number of times I need to tap the 'back' button to dismiss the fragment increases by one. Why might this be the case? Sep 25 17:09:11 There are no event listeners, all it does is render the fragment view in onCreateView. Sep 25 17:09:23 PinkSpecs: No I didnt Sep 25 17:10:14 askhader creating a new instance every tap ? Sep 25 17:10:30 Bpear do you know what is expected yet ? :) Sep 25 17:10:35 StingRay_: I have a logger in the onCreateView, it only logs once. Sep 25 17:10:48 askhader adding to stack ? Sep 25 17:10:57 Sorry, I don't understand? Sep 25 17:11:08 Bpear: explain again what are you trying to do and how? Sep 25 17:11:11 addToBackStack(null) is called when I show the fragment. Sep 25 17:11:35 good morning my little #bendgate sheeple Sep 25 17:11:57 guess tim cock is going to have to make an announcment later "Don't bend the iphone in your asshole that way" Sep 25 17:12:07 StingRay_: Ah got it, thanks. Sep 25 17:12:09 StingRay_: That was it :P Sep 25 17:12:14 :) Sep 25 17:13:32 StingRay_: This happened because clicks within the fragment were also registering with the ListView's onItemCLickListener. How could that listener be triggered when the list view isn't even visible? Sep 25 17:14:01 maybe you dont have any clickable elements in the fragment ? Sep 25 17:14:03 Sorry, this ListView is within the fragment that was being replaced by the transition. Sep 25 17:14:18 So a non-visible "replaced" fragment can still receive clicks? Sep 25 17:14:21 What's the best image loader library for loading thumbnails from media store? Sep 25 17:14:32 not a replaced one no Sep 25 17:14:55 Because I'm not replacing it Sep 25 17:14:57 /facepalm Sep 25 17:15:22 lasserix: have you tried volley Sep 25 17:15:33 volley is for networking Sep 25 17:15:49 lasserix you mean embeded blobs ? Sep 25 17:15:54 i just need to load images either from medastore or disk Sep 25 17:15:56 no Sep 25 17:15:58 xamarin, $25 a month...... wow Sep 25 17:16:04 aw hell naw Sep 25 17:16:04 like i have a listview of all the images from medastore.images Sep 25 17:16:06 you mean resizing then Sep 25 17:16:11 thats twice the price of an MMO sub Sep 25 17:16:16 no, i need asynchronous lazy loading Sep 25 17:16:31 do you know what MediaStore is? Sep 25 17:16:38 thumbnails in android from some cp's are blobs Sep 25 17:16:43 which is why I ask Sep 25 17:16:45 so, basically you need the functionality of the built-in gallery ;) Sep 25 17:16:54 umm Sep 25 17:17:11 I need to load thumbnails from the URIs in the mediastore Sep 25 17:17:20 StingRay_: you don't grab the blobs you get them by the URI Sep 25 17:17:32 which may be pointing to the blobs, but you don't access the blobs directly Sep 25 17:17:37 URI relates resolves to field > data Sep 25 17:17:39 so yeah Sep 25 17:17:46 yeah I've only ever loaded full images (possibly resizing them myself) from cp URIs, I've never loaded the thumbs Sep 25 17:17:49 but wait Sep 25 17:18:07 anyways so I was just wodnering if anyone had a library that does asynchronous lazy loading from URI for this... Sep 25 17:18:11 I just have to say that Android's Sqlite implementation makes me happy on the inside. Sep 25 17:18:18 I already have an implementation, but i have to redo it so i figured... Sep 25 17:18:26 UniversalImageLoader lasserix Sep 25 17:18:40 I played a bit with ruby's main sqlite lib, and it is just plain bad. Sep 25 17:18:40 this is how I load the full image: Cursor c = getContentResolver().query(uri, new String[] { MediaStore.Images.Media.DATA }, null, null, null); Sep 25 17:18:51 so I'm guessing for the thumb you just use a different field instead of MediaStore.Images.Media.DATA Sep 25 17:18:52 not amazing and a bit of a swiss army knife but hey ho Sep 25 17:18:52 oh hi ravilov. Sep 25 17:18:55 ravilov yeah but i need it to be asynchronous Sep 25 17:19:07 well you do that part yourself ;) Sep 25 17:19:16 I don't know of any ready-made lib for that :/ Sep 25 17:19:17 hi Fenny Sep 25 17:19:22 yeah i was aksing if there was a library that had that already with LRU cacheing or something Sep 25 17:19:28 You had to do an empty query in the end? Sep 25 17:19:36 (i already have an implementation, just though might as well use a library since i am refactoring) Sep 25 17:19:54 well, since you're refactoring, make your implementation into a lib ;) Sep 25 17:20:11 perhaps! ;p Sep 25 17:20:19 hi Sep 25 17:20:41 what the fuck do I do! Sep 25 17:20:55 stop swearing Sep 25 17:20:59 that's a good start ;) Sep 25 17:21:05 that could work Sep 25 17:21:08 what do I do, man! Sep 25 17:21:10 i have a fragments and navigation drawer, it is working fine, but when i click in the drawer it is back to first fragment... how i can solve this? Sep 25 17:21:27 I had a really cool idea but then reality shat on it Sep 25 17:21:40 um... make a lemonade? :p Sep 25 17:21:50 shitonade Sep 25 17:21:58 nah that sounds horrible Sep 25 17:22:03 yea like chutney Sep 25 17:22:47 i have a physical device how can i attach a debugger to a running application? Sep 25 17:22:59 adb jdwp is what i thought i had to run but shows nothing Sep 25 17:23:05 an usb cable usually works :p Sep 25 17:23:07 buy a debugger and hook it onto the device Sep 25 17:23:23 they come in really small sizes these days, no hassle your friends won't even notice its on there Sep 25 17:23:53 there's a button in AS for attaching debugger Sep 25 17:23:56 its adb devices to see which devices are connected to your computer Sep 25 17:24:18 then you can be sure that whatever IDE you launch your app from, it'll end up on the phone if there's no other launch options running Sep 25 17:24:50 yeah ADT doesn't need anything special to attach to a real device, it barely even knows the difference anyway :) Sep 25 17:25:05 or AS or whatever your drug of choice Sep 25 17:28:44 where's the documentation for UIL? Sep 25 17:29:47 on github Sep 25 17:29:58 the readme Sep 25 17:30:13 ahh Sep 25 17:30:14 okay Sep 25 17:30:18 in there is usage and document link Sep 25 17:30:20 cool looks like it can Sep 25 17:30:36 can what ? Sep 25 17:30:47 loading images from cp Sep 25 17:30:51 String imageUri = "content://media/external/audio/albumart/1"; // from content provider Sep 25 17:30:52 yeah I know Sep 25 17:30:59 thats what you asked for Sep 25 17:33:04 my note 2 just had a rom issue.. wipe data/factory reset did nothing Sep 25 17:33:19 it's not rooted, all rom upgrades were from carrier Sep 25 17:33:34 it's your bad karma, you should switch to iphone Sep 25 17:33:35 :p Sep 25 17:34:05 also this is no place for rom or device specific issues/questions Sep 25 17:34:07 started noticing apps closing. Youtube couldn't reach sqlite for example Sep 25 17:34:28 sorry.. the android room can't get over my ironic name so thought I would come here Sep 25 17:35:02 yeah I don't care about the name but I do care about the topic at hand Sep 25 17:35:08 this should be discussed in #android-root Sep 25 17:35:19 Or #android if you're not rooted Sep 25 17:35:21 But definitely not here Sep 25 17:35:31 no, -root has nothing to do with being rooted Sep 25 17:35:45 I think at least Sep 25 17:36:00 it's just more lower-level people that would know this stuff Sep 25 17:36:41 Eh, I don't really care. As long as it stays out of this channel :) Sep 25 17:36:49 :p Sep 25 17:39:42 yea, -root is for non-rooted devices only Sep 25 17:39:48 it's #android that has to do with rooting your device Sep 25 17:39:50 lel Sep 25 17:43:49 so i set a breakpoint in my app and now the application crashes on start when i run the debug apk build Sep 25 17:45:03 well that's not good Sep 25 17:45:08 I say you fix it Sep 25 17:45:22 really bad UX, you know Sep 25 17:46:09 http://pastebin.com/XMiraeKE Sep 25 17:46:31 sorry guys I'll go there Sep 25 17:46:47 im not sure how to break the application before oncreate/upgrade is called Sep 25 17:46:59 for the sqliteopenhelper Sep 25 17:47:10 so that i can see why onupgrade is not being called Sep 25 17:48:04 if you've run your app once with the DB version being X and then incremented that X, onUpgrade will be called Sep 25 17:48:09 this is what I remember from when I had to do it Sep 25 17:48:16 otherwise, no Sep 25 17:48:40 I know this probabliy isn't the right place to ask, but I'm struggeling a bit with ormlite. I'm trying to persist a collection of Long values. I keep getting rors, and from what I've read you can't do it that simply. Anyone have any suggestions? Sep 25 17:49:01 SQLiteDatabase db = dbt.getWritableDatabase(); i think i gotta do this Sep 25 17:49:26 Sicp ... i did that ... and that is not the case idk why and im trying to figure that out Sep 25 17:50:01 onupgrade is not being called at all Sep 25 17:50:08 i have confirmed that Sep 25 17:51:26 jaspertheghost cause it's crashing ? Sep 25 17:51:59 no... i entered that line above so i can diffitevenly called getwriteable database where i would like ittoo Sep 25 17:52:04 i just did it incorrectly so i fixed that Sep 25 17:52:15 i wanted to break the code there as you guys said to do Sep 25 17:52:24 and figure out why its running oncreate and not onupgrade Sep 25 17:53:11 ./adb install -r to install/upgrade? Sep 25 17:53:22 jaspertheghost what IDE u using ? Sep 25 17:53:23 instead of emailing my self 30 times today tej file? Sep 25 17:53:28 im uasing Android Studio Sep 25 17:53:38 so whats all this email bollox ? Sep 25 17:56:15 its not important/solution found to email thing Sep 25 17:56:26 need to get this upgrade thing fixed Sep 25 17:56:58 i mean why are you install/replace all that… your using AS ? Sep 25 17:58:09 jaspertheghost: why do you need to do the install/upgrade? Sep 25 17:58:27 becuase i am releasing a new version of the application with changes to the sqlite database Sep 25 17:58:41 and i need to keep the data in the sqlitedatabase while changing the structure Sep 25 17:58:48 jaspertheghost what you said is unrelated Sep 25 17:59:03 unless you mean that you have to do a release build Sep 25 17:59:04 why not just change the db version number and install the app ? Sep 25 17:59:05 which is silly Sep 25 17:59:27 becuase i cant confirm the DB has changed since i have already updated my code Sep 25 17:59:40 oncreate creates the NEW versiopn of the DB not the old Sep 25 17:59:48 so i install the old app Sep 25 17:59:56 and i reinstall over the old one Sep 25 18:00:03 but for now acutally ... i dont even need to do that Sep 25 18:00:08 i am just changin the version # Sep 25 18:00:32 since the new version didnt update the DB i am not just incramenting on each build... and trying to get it to upgrade Sep 25 18:00:57 by incramenting i mean incramtnting sqliteopenhelper DB versopn Sep 25 18:01:14 whats nthe packagename of the old app Sep 25 18:01:22 and the one for the new one? Sep 25 18:01:24 the same as the new one Sep 25 18:01:44 when i install the APK's manually its indeed telling me its not going to delete any data Sep 25 18:01:46 and it doesnt Sep 25 18:01:50 but it doesnt update the DB Sep 25 18:02:13 onupgrade isnt being called becuase i have some code in there that would tell me if it was Sep 25 18:02:29 im not sure how to break the application before oncreate/upgrade is called <-- you can make your own constructor that just proxies to super but also gives you a place for a breakpoint Sep 25 18:02:33 so i just set a break point in android studio and compiled a debug verison.... the breakpoint isnt being hit Sep 25 18:03:18 thats prolly cause u cant set a debug point and then compile Sep 25 18:03:33 hm? Sep 25 18:03:35 why not? Sep 25 18:03:43 jaspertheghost: can you just run the app withouth all this compile and stuff Sep 25 18:03:54 it's just a matter of you run the app, if it's "run" or "debug" Sep 25 18:03:57 not without some serious modification to the code at this point Sep 25 18:04:09 of how you* Sep 25 18:04:12 Android Stufdio bitches that i need to uninstall the App Sep 25 18:04:23 when i try to install it from android studio Sep 25 18:04:25 Morning all. Sep 25 18:04:39 jaspertheghost there is a manifest solution to that Sep 25 18:04:52 do tell! Sep 25 18:04:53 maybe it's because you're playing with the "release" and "debug" builds which have different signing keys Sep 25 18:05:05 ^^^ Sep 25 18:06:02 jaspertheghost: what ravilov said and what error is console giving you Sep 25 18:06:04 whats the manifest solution? Sep 25 18:06:08 one second Sep 25 18:06:38 ok Sep 25 18:06:41 PinkSpecs: Sorry I am back. My app is here http://www.androidpolice.com/2014/09/24/chrome-apk-packager-can-turn-android-app-chrome-extension-use-archon-custom-runtime/ Sep 25 18:06:55 install failed since device has app already installed with diff signature Sep 25 18:07:00 how can i get it to ignore this? Sep 25 18:07:08 PinkSpecs: You see how it generated a list of installed apps as radio buttons? I am trying to that in a fragment instead of mainactivity Sep 25 18:07:09 if i can get it to ignore this it would save me 2-3 hours f work Sep 25 18:07:29 jaspertheghost or you could do like the rest and develop on a debug build Sep 25 18:07:36 fix the problem then release build Sep 25 18:07:38 :) Sep 25 18:07:59 so i need to recompile a debug build with the old DB structure... Sep 25 18:08:05 awesome .. be back in a bit Sep 25 18:08:20 what ? Sep 25 18:08:36 are you not just testing/learning how to update DB ? Sep 25 18:08:49 he's testing an upgrade path Sep 25 18:08:55 thus needs a debug build on the device with the old db Sep 25 18:08:56 yea but this is real world stuff Sep 25 18:09:10 not just fun testing Sep 25 18:09:22 sarbs.. yes exactly! Sep 25 18:09:32 you understand ! :) :) :) Sep 25 18:10:31 i know the pain well, lol Sep 25 18:11:05 is there a work around here Sep 25 18:11:16 or do i need to get to work with creating a workable debug version of the OLD DB code? Sep 25 18:11:42 jaspertheghost I think you are turning something quite simple into something…well….not Sep 25 18:12:59 well i have an idea... ill just add change a few things here so i can get a debug build on a previous DB which isnt the real preivous DB so i can atleast figure out why its no upgrading doenst matter if its correct right now Sep 25 18:16:23 ok changes made ... attempting upgrade and debugging within android studio Sep 25 18:16:38 new column to add "FUCK_THIS" Sep 25 18:16:58 jaspertheghost no need to swear Sep 25 18:17:05 *FUCK_THIS_SHIT Sep 25 18:18:11 Ok, I'm totally late to this conversation and don't know what has been said, neither how proficient jaspertheghost is... You do know that there are many CLI tools for the DB too, right? Sep 25 18:19:11 and I also use this : https://play.google.com/store/apps/details?id=com.speedsoftware.sqleditor Sep 25 18:19:25 i use ./adb pull to get teh DB Sep 25 18:19:33 and use sqlite3 CLI to do my bidding Sep 25 18:19:42 public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i2) { Log.v("upgradedb","upgrading...."); } .... not being ran... Sep 25 18:19:45 upgraded DB version Sep 25 18:19:47 not running... Sep 25 18:19:52 ok, super. :) Sep 25 18:20:28 check to see if there is a Log Sep 25 18:20:40 it usually logs upgrades Sep 25 18:21:06 what should i tell logcar to filter? Sep 25 18:21:09 logcat Sep 25 18:21:28 now its showing up... Sep 25 18:21:37 Log.v command ran Sep 25 18:22:26 I'm too dumb to filter, I read everything Sep 25 18:23:39 sqLiteDatabase.execSQL("ALTER TABLE "+ "TS_JOBS" +" ADD COLUMN stat VARCHAR(10)"); Sep 25 18:23:57 idk how you read 1000s of lines everytime u run the app its crazy Sep 25 18:25:00 hahaha, ok, I don't read EVERYTHING :D Sep 25 18:25:19 I'll put a breakpoint near the problem, then clear the log. Sep 25 18:27:34 jaspertheghost: if you use a custom logger to wrap Log.d you can add a app-wide tag and then concat the tag you pass Sep 25 18:27:56 In kitkat, has anobdy faced cropped toasts? Sep 25 18:28:19 You want the crust cut off your toasts? Sep 25 18:28:27 ie class Logger { private final static boolean isLogging = BuildConfig.DEBUG; public final static void d(String tag, String msg) { if (isLogging) { Log.d(appTag.concat(tag), msg); } } Sep 25 18:28:47 lasserix, I don't get why you need to wrap Log to have an app wide tag? Sep 25 18:28:48 then you can add a filter to logcat that is appTag Sep 25 18:28:51 now android studio has my damn toggle break point thing grayed out Sep 25 18:29:01 MikeWallaceDev: the wrapper is for disable logging easily Sep 25 18:29:08 appwide tag is just a bonus Sep 25 18:29:37 MikeWallaceDev: I'll take a ss, sec Sep 25 18:30:42 yoavst you dont mean you attempting to use a toast message as a info dialog ? Sep 25 18:30:50 cause that would be odd Sep 25 18:31:11 toast messages are…well… for messages like "Done!" Sep 25 18:32:34 http://goo.gl/5Vid9b check out my game Sep 25 18:32:46 http://i.imgur.com/eJXhby2.png Sep 25 18:33:01 as you can see, the text doesn't have enough space Sep 25 18:33:34 Code is regular: Toast.makeText(this, R.string.string_res, Toast.LENGTH_SHORT).show(); Sep 25 18:34:23 yoavst try with "a message" rather than resouce Sep 25 18:34:26 resource* Sep 25 18:34:41 ok, sec Sep 25 18:35:11 same :/ Sep 25 18:35:35 never see that before Sep 25 18:35:48 test with another locale Sep 25 18:35:58 tried hebrew and english Sep 25 18:36:06 it happens me on multiplie devices with kitkat Sep 25 18:36:27 offical device kitkat ? Sep 25 18:36:33 tested on nexus 5 Sep 25 18:36:34 or some custom crap Sep 25 18:36:42 nexus 5 english ? Sep 25 18:36:44 note 3 with custom rom, G3 with stock Sep 25 18:37:01 StingRay_: idk, my friend told me that the problem exists on his device Sep 25 18:37:08 not on mine Sep 25 18:37:09 but on the G3 and Note 3 I use english Sep 25 18:37:17 I have 3 nexus 5's here with kitkat Sep 25 18:37:19 all fine Sep 25 18:37:33 I'll try on genymotion emulator Sep 25 18:37:56 naa… try on emulator Sep 25 18:37:58 offical Sep 25 18:38:47 also in genymotion Sep 25 18:39:41 you guys will get a kick out of this : http://goo.gl/EhuFVV Sep 25 18:40:28 so StingRay_ got an idea? Sep 25 18:40:35 in version before kitkat it works fine Sep 25 18:40:57 yoavst has to be a font/language thing in the OS Sep 25 18:41:05 nothing you are doing…. design around it Sep 25 18:41:08 MikeWallaceDev: damn jjennifer got to you alright Sep 25 18:41:11 StingRay_: if it happens on multiplie devices... Sep 25 18:41:16 with diffrent fonts Sep 25 18:41:19 Tiffany!!! :D Sep 25 18:41:33 oh MikeWallaceDev ..... Sep 25 18:42:42 Buoy172: nicely done but iwant to be able to push cars off the road Sep 25 18:42:48 and get points as they explode Sep 25 18:43:19 lasserix: you can shoot cars off the road when you catch the pistol Sep 25 18:43:28 ok next question... these sqlite DB tools for android u speak of ... what are theybesides what im using adp pull and sqlite3 .... cause it seems my altertable query is being run.... however when i go to pull it ... dont show... Sep 25 18:44:04 Buoy172: yeah but want to be able to drive them off the road like in the movies in any highway chase Sep 25 18:44:14 push them onto ramps so they fly before they explode Sep 25 18:44:17 but really nice, very clean Sep 25 18:44:23 controls are easy too Sep 25 18:44:41 thanks lasserix Sep 25 18:44:49 but i would add a touch for sterring so you don't have to do accelerometer (good for large devices) Sep 25 18:45:05 there are 2 types of controls: joystick or accelerometer Sep 25 18:45:11 you can choose in the menu screen Sep 25 18:45:14 ahh i see Sep 25 18:45:20 plus you can position them anywhere Sep 25 18:45:21 i thought that was for external controller or something Sep 25 18:45:22 cool Sep 25 18:45:27 yeah it's really good Sep 25 18:45:30 nice interface Sep 25 18:45:35 is this done in opengl? Sep 25 18:45:54 I used the starling framework: http://gamua.com/starling/ Sep 25 18:46:25 Buoy172: ahh so basically what i mean by touch is you can touch anywhere and relative to the position of the car the car will go towards that Sep 25 18:46:33 the joystick sucks because you can easily drag out of it Sep 25 18:46:36 *too easily Sep 25 18:47:18 really superb tho Sep 25 18:48:22 good luck i hope you add multiplayer support Sep 25 18:49:10 perhaps, if it gets popular Sep 25 18:49:20 hi everyone Sep 25 18:49:21 multiplayer support would make it popular ;p Sep 25 18:50:49 So does somebody knows why my toast are getting cropped? http://i.imgur.com/eJXhby2.png Sep 25 18:51:14 yoavst you using custom layout for the toast? Sep 25 18:51:17 looks likenot enough padding Sep 25 18:51:20 Looks like a bug Sep 25 18:51:20 nope Sep 25 18:51:30 Toast.makeText(getActivity(), R.string.can_not_share, Toast.LENGTH_SHORT).show(); Sep 25 18:51:33 not taking the round corners into account Sep 25 18:51:41 MikeWallaceDev: it is note 3 custom rom :/ Sep 25 18:51:47 yeah why the rounded corners? Sep 25 18:51:47 but also happens on G3 rom Sep 25 18:51:49 ahh that is why Sep 25 18:51:52 I have a problem with my android application. I use a custom view in a Fragment. The first time I show the fragment, the custom view is created and its width/height are computed (onMeasure is called). Then, when I show another Fragment (dynamically), the view will be deleted. When I come back to the Fragment with the custom view, it will be created again but its onMeasure will not be called Sep 25 18:51:52 and thus, I got a crash. Can anyone help me to understand how to overcome this problem? Sep 25 18:51:55 and on nexus 5 Sep 25 18:52:01 the rounded corners code didn't account for the padding of the text Sep 25 18:52:09 ah. Custom rom. SEP. Sep 25 18:52:13 easiest solution is to just add trailing and leading whiespace Sep 25 18:52:27 that Sep 25 18:52:30 Check if it happens in an app with nothing but the toast.. If it does, you messed up somewhere Sep 25 18:52:33 if it's a little bigger that's okay but if it's cropped wrong thats definatly not okay Sep 25 18:52:39 lasserix: but in versions under kitkat it works fine Sep 25 18:52:46 Ehh, doesn't Sep 25 18:52:49 checked genymotion emulator for 4.4 and 4.1 Sep 25 18:53:08 wait I think I FOUND SOLUTION Sep 25 18:53:14 getActivity().getApplicationContext() Sep 25 18:53:17 make it fine Sep 25 18:53:26 any idea why? Sep 25 18:53:36 Your theme messes it up Sep 25 18:53:38 are you doing some weird theming in your activity? Sep 25 18:54:18 ravilov: I'm using SystemBarTint Sep 25 18:54:24 That's all Sep 25 18:54:37 well try without Sep 25 18:55:52 same Sep 25 18:56:25 Doubtful Sep 25 18:56:27 remove the getApplicationContext() part of course Sep 25 18:57:01 ravilov: removed... Sep 25 18:57:18 hm weird Sep 25 18:57:24 oh well, at least you have a solution that works Sep 25 18:59:00 Assuming you don't have the same theme on your activity and your application, something in your activity's theme is likely messing it up.. Remove stuff and figure out what Sep 25 19:03:20 yeowza, every time i log into linkedIn, which is like every 4 mos or so, the website gets worse and worse. its almost like a treasure trove of dark patterns Sep 25 19:05:24 g00s: you mean you *don't* want them to email all your contacts about joining linked in? Sep 25 19:05:36 I thought everyone wanted that! Sep 25 19:06:22 g00s, maybe they are to web sites what gentoo is to linux distros: http://fun.irq.dk/funroll-loops.org/index_files/gentoo.jpg Sep 25 19:06:25 :p Sep 25 19:06:44 heh, i just went to "Connections" - used to just show a list of people I was connected to in alpha order. But i just saw a grid of random poeople Sep 25 19:06:55 and they make a distinction between connection and contact now, wtf Sep 25 19:07:05 Hey guys. I'm having some problems using a Viewpager. I have 3 fragments that the user can swipe. All of them have an asynctask in each fragment that loads the content. The problem is when the user keeps switching between fragments really fast. Sometimes I got a null pointer exception on the page that the user has left. How can I avoid that? Sep 25 19:08:14 g00s a connection is someone who can get you the goods, a contact is someone who knows someone who can get you the goods ;p Sep 25 19:08:30 lasserix ah thanks ! Sep 25 19:09:24 lasserix *knows* Sep 25 19:09:29 hehe Sep 25 19:09:35 wink wink, nudge nudge Sep 25 19:10:18 understanding the arbitrary is a very valuable skill Sep 25 19:12:38 anyone implement this? http://blog.xebia.com/2013/07/22/viewholder-considered-harmful/ Sep 25 19:12:54 ueserve I/SQLiteConnectionPool﹕ The connection pool for +data+data+com_android_apps_trueserve+databases+TS_DB has been closed but there are still 1 connections in use. They will be closed as they are released back to the pool. Sep 25 19:13:03 how can i make sure my transaction is giving up its lock? Sep 25 19:13:23 close it? Sep 25 19:13:37 oh nm Sep 25 19:15:09 jaspertheghost I'm guessing you didn't create the app you are playing with ? Sep 25 19:15:34 i did, but ill be honest it was my first ... and i was rushed in getting it out by the company who paid me to create it Sep 25 19:15:58 jaspertheghost, oh Sep 25 19:16:07 damn companies Sep 25 19:16:12 what do people generally use for displaying date of birth input? Trying to use an EditText is turning out to be a pain in the arse Sep 25 19:16:17 I really should start looking for some freelance work Sep 25 19:16:24 or just dates in general Sep 25 19:16:52 me too, i do Network Admin, Server Admin, PHP Dev, Android Dev and prertty much everything at this damn company Sep 25 19:16:59 mattblang, isn't there some datetime control Sep 25 19:17:06 way to much fucking work for the $$$ Sep 25 19:17:25 the job I hated the most is when I had to fix someone else's shitty code Sep 25 19:17:38 Buoy172 there is, but you gotta show it somehow. easy to do an onclick for a button or a textview, but then the one field looks different than all your other EditTexts Sep 25 19:18:45 "developers of paid apps will now be required to respond to users contacting them within 3 days of receipt of the email." is there a vacation setting ? Sep 25 19:18:56 since it's not an editable text, is that not acceptable, it looking different ? Sep 25 19:18:57 mattblang, I don't know what you want Sep 25 19:19:42 Buoy172 ive got a form of EditTexts. I want to show the date control instead of keyboard from one of them. That is too much of a pain, so Im trying to figure out how people usually represent a date in a form Sep 25 19:19:42 g00s I respond withing 20 seconds to 20 minutes Sep 25 19:19:48 * StingRay_ is lightening Sep 25 19:20:06 yeah but you're only human so, what happens if you go on a trip to someplace that doesn't have internet Sep 25 19:20:22 g00s I dont Sep 25 19:20:22 oh i get it ! http://www.gizmag.com/facebook-testing-drone-enabled-internet/33964/ Sep 25 19:20:45 they'll just send a drone over me 24/7 so i can have a portable hotspot and reply to everyone Sep 25 19:20:52 exactly! Sep 25 19:21:02 fuck these companies :) Sep 25 19:21:36 Buoy172 ill probably just do a textView and have a set date button Sep 25 19:22:04 Buoy172 just sucks, becuase I have a library for validating EditTexts. And it would be nice for all the inputs to be uniform Sep 25 19:23:06 you can just do Sep 25 19:23:12 oh nm Sep 25 19:23:23 well you can defintly make a edittext disabled Sep 25 19:23:51 use the datepicker then set the edit text then validate it with your library Sep 25 19:35:54 Guys, I'm having a problem. I get a boat load of nullpointrs, but my code works -_- Could anyone help me? Sep 25 19:36:18 There are $alot of results on google, Ive tried a lot and got it working but I'd like to remove the damn nullpointers Sep 25 19:37:05 http://pastie.org/9594808 # The 50th line keeps nullpointing.. Sep 25 19:37:11 However, everything shows up fine.. Sep 25 19:39:14 How to use View.isInEditMode()? Sep 25 19:39:45 if (view.isInEditMode()) Sep 25 19:40:17 It's for figuring out if it's drawn in the ide preview Sep 25 19:40:36 christop1e, make sure line 44 is ok Sep 25 19:41:16 well, yeah. I've tried to use rootView and getView() there, but only rootView actually makes the list show up, so I'm guessing I'm good there? Sep 25 19:43:05 it would be good to tell where exactly null pointer occurs Sep 25 19:43:36 The 50th line, as I said :) It's where I set the adapter on the listview (LV.setAdapter(aa))) Sep 25 19:43:54 derp, restarting android studio fixed it Sep 25 19:43:55 darn Sep 25 19:44:07 I thought it was strange it kept working with nullpointers... Sep 25 19:44:13 so LV is null Sep 25 19:44:55 and you are sure you have Listview called lstCourses in fragment_weekday.xml Sep 25 19:45:17 Ashiren: yes :) It just works now. Appearently Android studio didnt update everything.. Sep 25 19:45:35 i thought only eclipse does that :o Sep 25 19:45:35 I did a clean project etc, but I needed to restart it (I also removed the apk from my phone, to be sure) Sep 25 19:49:37 hey guys, i`m looking for a textview (class) which makes its fontsize as large as possible within its available height. But it shall not resize font to fit available width, instead just cut off the letters that dont fit. any help? Sep 25 19:50:25 Hello Sep 25 19:50:42 hello Moony22 Sep 25 19:50:54 Would you folks recommend ProGuard? Sep 25 19:50:54 I want to make an android app with a webview that interacts with a webpage automatically Sep 25 19:51:03 yes TacticalJoke Sep 25 19:51:11 adkins: setEllipsize marquee? Sep 25 19:51:19 how can I do this? Sep 25 19:51:48 Moony22, you want to display a webpage in a webview? or? Sep 25 19:52:24 Buoy172: I mean, say I had a webpage with a textbox and a button, I want it to put something in that textbox and press that button automatically Sep 25 19:52:27 how could I go about doing that? Sep 25 19:52:49 Ashiren: ok i dont know what that is ;) Sep 25 19:53:10 I have a fragment, for some reason I can not do findViewById(R.id.someid) in my onCreate, it always returns null. Any idea what could cause that? Sep 25 19:53:30 So I want to automate web page interactions Sep 25 19:53:37 Moony22, what do you mean by "press button automatically" ? Sep 25 19:54:00 adkins: its textview method for dealing with too long strings Sep 25 19:54:11 Syzygy_: According to the fragment lifecycle documentation, is the view created before or after onCreate? Sep 25 19:54:21 so whats the proper way to wait for sqliteopenhelper upgrade to finish? Sep 25 19:54:45 Buoy172: I mean, like the user was pressing the button with the finger, but it does it automatically Sep 25 19:55:01 Ashiren: does it maximize the font as large as possible too? Sep 25 19:55:08 SimonVT, onCreate is called before onCreateView, but I'm not sure where else to put it Sep 25 19:55:24 then again, I just found onActivitycreated which might be exactly what I'm looking for Sep 25 19:55:28 Right, so the fragment has no view in onCreate Sep 25 19:55:36 No, that's not what you're looking for Sep 25 19:56:07 onCreateView.. or onViewCreated.. That's the appropriate callbacks for when the view is (being) created Sep 25 19:56:12 adkins: no Sep 25 19:56:19 SimonVT: Do you recommend ProGuard? Sep 25 19:56:53 Moony22: You make no sense to me Sep 25 19:56:55 adkins: i think you could achieve that subclassing textview and overriding onMeasure and/or onDraw Sep 25 19:56:59 Depends on the purpose Sep 25 19:57:13 If you're hitting the method limit, sure Sep 25 19:57:28 Otherwise, mostly seems pointless Sep 25 19:57:33 Moony22: You want the user to press the button by thinking about it? (sry for being sarcastic) Sep 25 19:58:23 Ashiren: thank you. i`m gonna try to change another textview-class which also fits according to width Sep 25 19:58:26 Buoy172: let me give an example Sep 25 19:58:35 Moony22: ok, pls explain Sep 25 19:59:54 Buoy172: imagine there is a website about animals, and there is a searchbox to find different animals. I want my user to be able to enter for example "elephant" and it will enter "elephant_id_1" in the search box and press go, and then "elephant_id_2" in the search box and press go, automatically Sep 25 20:11:44 can anyone explain why this works in sqlite on my computer but throws an error in android Sep 25 20:11:45 String sql4 = "INSERT INTO TS_EVENTS SELECT Sep 25 20:11:46 id,stat,jid,lat,lng,event_dt,gps_dts,manner,imgname,imguid,full_addr,in_military,is_married,spouse_name,additional_copy,result11,date_affidavit_filed,person_served,title,affidavit_type,service_code,nonserve_comments,ident_method,ident_method_other,doc_post_location,doc_post_location_other,descsex,descskin,deschair,desc_approx_age,desc_approx_age,desc_approx_height_ft,desc_approx_height_in,desc_approx_weight,descother,descmustache,descbeard,des Sep 25 20:11:47 scgoatee,descglasses,descyamaca,service_comments,event_upload_status,image_upload_status" + Sep 25 20:11:48 "FROM TEMP_TS_EVENTS "; Sep 25 20:12:31 No space between image_upload_status and FROM ? Sep 25 20:12:54 SimonVT: nice spot Sep 25 20:13:25 yep Sep 25 20:13:28 i just noticed that Sep 25 20:13:33 thanks Sep 25 20:13:45 ^_^ Sep 25 20:18:04 I'm trying to use ormLite, and I have some problems when I want to persist an object. Object A has a ForeignCollection of type B and class B has a foreign reference to class A. When I try to create the database the dataPersistance is a null-object. It can't recognize the data type of object A. Any ideas? Sep 25 20:18:36 The problem lies in class B. It gets unknown data-type value for the foreign-object reference to class A. Sep 25 20:19:23 I've been looking into writing a custom data persistance class, but I think it's supposed to work as is. Sep 25 20:20:18 jaspertheghost "descmustache" ? Sep 25 20:20:29 hehe Sep 25 20:25:09 Is there a way to get the interpolator for the status bar and/or actionbar when they animate up off the screen with http://developer.android.com/training/system-ui/status.html#action-bar Sep 25 20:25:39 I have another view on screen that I want to animate off screen with them whenever the user toggle the ui on/off Sep 25 20:30:14 while were at it anyone see whats wrong with this -> sqLiteDatabase.execSQL("ALTER TABLE "+ "TS_JOBS" +" ADD COLUMN stat VARCHAR(10)"); Sep 25 20:31:17 There's a stack trace that tells you what's wrong Sep 25 20:33:42 whats TS_JOBS Sep 25 20:33:43 yiati: Not likely, but you can check the source and do what it does Sep 25 20:34:02 because you add "TS_JOBS" not TS_JOBS Sep 25 20:35:36 SimonVt: Yeah that's my guess, I'm not seeing anything to directly use in the documentation Sep 25 20:36:51 hey Sep 25 20:36:58 how to gen my apk using eclypse? Sep 25 20:38:17 lmgtfy Sep 25 20:38:43 hmmm Sep 25 20:38:56 MikeWallaceDev you dont know that my blindness put me in trouble Sep 25 20:39:00 if you are not an eclipse expert you might as well use AS Sep 25 20:39:25 nicely said njcomsec Sep 25 20:39:27 njcomsec: as? Sep 25 20:39:33 Android Studio Sep 25 20:39:46 Awesome Studio Sep 25 20:39:56 not accessible for blind people... Sep 25 20:39:58 Automagical Studio Sep 25 20:40:22 DelphiWorld, are you really blind? Sep 25 20:40:43 MikeWallaceDev: i'm blind. 100%, sightless. duno evean what's the meaning of a color or the light / dark Sep 25 20:41:44 hey all. I want to use libstagefright. I cant find it in the NDK sources, anything downloaded by the SDK. Where is it? Sep 25 20:41:47 android sources? Sep 25 20:41:51 DelphiWorld, cool. More power to you mate. :) Sep 25 20:41:59 MikeWallaceDev: thank Sep 25 20:42:11 However the question is still lmgtfy :D Sep 25 20:42:20 I don't even remember the command... Sep 25 20:42:28 lol Sep 25 20:42:51 export? create? WTF is it?? Sep 25 20:43:22 http://developer.android.com/tools/publishing/app-signing.html#adt Sep 25 20:43:26 i'm doing export Sep 25 20:43:43 SimonVT: thank, i found one Sep 25 20:43:44 Yes! Export! I was right :D Sep 25 20:43:45 i'm reading it Sep 25 20:44:09 MikeWallaceDev: http://stackoverflow.com/questions/4600891/how-to-build-an-apk-file-in-eclipse Sep 25 20:44:36 i dont evean edit my code using eclypse, i use wordpad;( Sep 25 20:46:59 there's evean a build error i couldn't read at all Sep 25 20:49:24 can someone HELP test if the project build? Sep 25 20:51:43 can he? Sep 25 20:51:57 Ashiren: who:P Sep 25 20:56:40 I don't understand DelphiWorld ... Do you have to ask someone everytime you build? Sep 25 20:57:56 btw, in my opinion, if you are going to edit outside of Eclipse, then maybe you are better off with Android Studio. It uses Gradle as a build system and it very command line friendly. Sep 25 20:58:26 others may have other opinions though :) Sep 25 20:58:56 And has the added benefit of occasionally letting you know people's passwords! Sep 25 20:59:23 which is always a plus Sep 25 21:03:44 maybe somebody here can help me out Sep 25 21:04:13 I'm making a custom launcher and want to override the home button while km the home screen Sep 25 21:04:20 so.. where do I add my address to my google developer account.. Sep 25 21:04:24 cant find the setting for it Sep 25 21:04:29 s/km/on Sep 25 21:07:15 this is a very easy problem to you pros. Can someone tell me why my button listener doesn't work here? http://pastie.org/9595096 Sep 25 21:08:02 treeson: are you wiring that in xml? Sep 25 21:08:15 gmillz, as far as I know, you cannot override the Home or Tasks buttons. Sep 25 21:08:20 yes, it all exists in XML Sep 25 21:08:40 MikeWallaceDev: I thought the same. but other launchers allow it Sep 25 21:08:54 hehe http://i.imgur.com/QP7KBRR.gif Sep 25 21:09:12 I think launchers are the exception. Indeed. Sep 25 21:09:25 I know for a fact that I can't do it in Focus Sep 25 21:09:28 (my app) Sep 25 21:09:28 pieces029: what am I missing here? Sep 25 21:09:51 treeson: so you have the button in xml with the onclick listener set to onClick? Sep 25 21:10:02 no, I thought you didnt need to have that Sep 25 21:10:10 Becuase I'm not seeing the button listener not being wired up anywhere Sep 25 21:10:14 so that's the issue Sep 25 21:10:53 ok, what is the XML command for the event listener? android:onCLick="true" ? Sep 25 21:11:36 no android:onClick="onClick" in this case Sep 25 21:11:43 ok thanks, I understand now Sep 25 21:11:48 I'm having a problem with ViewPager and Fragments. When I change the data that the adapter uses, the cached Fragments don't seem to get invalidated. Sep 25 21:11:51 I would recommend not using those though and wiring it in your code Sep 25 21:12:11 how do I do that? Sep 25 21:12:42 gmillz: I'd imagine you get an intent or something when it's clicked Sep 25 21:13:26 treeson: https://developer.android.com/reference/android/widget/Button.html Under the A typical use of a push-button in an activity would be the following: Sep 25 21:13:36 thanks Sep 25 21:13:54 np Sep 25 21:16:12 yuo write code in wordpad? Sep 25 21:16:20 ..... Sep 25 21:16:58 doesnt it add a bunch of extra formatting code? Sep 25 21:16:59 #android-dev Sep 25 21:17:05 If you want to start learning to make apps for android, how would you do it? Books, if so which ones? Tutorials? Sep 25 21:17:33 amazon books, search for android dev books with good reviews Sep 25 21:18:49 so something like Professional Android 4 Application Development and Android Programming: The Big Nerd Ranch Guide Sep 25 21:19:31 sure if the reviews look good Sep 25 21:20:00 new books are expensive..... I would get a few older ones and just bear in mind that some things change Sep 25 21:20:06 the second one covers android 2.2 - 4.2 Sep 25 21:20:19 do you know Java? Sep 25 21:20:40 I have several Android books and none of them taught programming in general Sep 25 21:20:47 so I also bought a few java books first Sep 25 21:21:17 Bubo just code Sep 25 21:22:22 njcomsec, yea I do know java Sep 25 21:22:49 Bubo just read the development tutorial docs Sep 25 21:22:54 then come up with simple projects Sep 25 21:22:55 code them Sep 25 21:22:58 make more complicated projects Sep 25 21:23:00 code them Sep 25 21:23:08 the big nerd ranch guide is good once you get basics down Sep 25 21:23:09 yea that's what I wanted to do Sep 25 21:23:29 I find the android dev site great as a reference, but for learning the framework sometimes it doesnt explain everything that well Sep 25 21:24:02 nothing does Sep 25 21:24:07 that's expirience Sep 25 21:24:54 yeh I guess Sep 25 21:25:27 that can be said for any framework Sep 25 21:26:27 hence code Sep 25 21:26:33 and everything in life Sep 25 21:27:25 yes. lets all write some code Sep 25 21:27:43 I need to finish these graphics tonight so I can start coding tomorrow... Sep 25 21:27:51 Iv been saying this for 2 weeks.... Sep 25 21:32:54 njcomsec, this is my 4th time starting to learn android Sep 25 21:33:13 I install the android studio and then it just sits there gathering dust Sep 25 21:34:41 ahhahaha Sep 25 21:37:16 so apparently it’s a major PITA to determine when a scrollview has stopped scrolling Sep 25 21:38:12 Bubo: have you looked at thenewboston tutorials by bucky? Sep 25 21:38:32 PinkSpecs, i assume they are videos? Sep 25 21:38:43 wouldnt the scrollview stop scrolling when you stop sliding the touchscreen? Sep 25 21:38:46 Bubo: i think he changed to buckysroom.org Sep 25 21:38:57 njcomsec: no because of flinging Sep 25 21:39:04 ahhh true Sep 25 21:39:09 Bubo: yes they are a little old but they will get education done Sep 25 21:39:12 PinkSpecs, I can't sit through videos, they are way too slow Sep 25 21:39:21 jacob, so how will you do it? Sep 25 21:39:29 doing this for now http://stackoverflow.com/questions/8181828/android-detect-when-scrollview-stops-scrolling Sep 25 21:39:40 i dont like it, but not much choice Sep 25 21:39:45 Bubo: d.android.com has the best written guides then Sep 25 21:40:01 PinkSpecs, i kinda wanted to watch Derek Banas and his android tutirial videos, but I just get annoyed because I can't skip some parts fast enough Sep 25 21:40:22 PinkSpecs, http://guides.codepath.com/android ill go with this Sep 25 21:40:29 i found it in r/androiddev Sep 25 21:44:14 Chainfire do you know by any chance if the 3-day email support thing has a "vacation" setting? we've all probably read the same thing but I haven't seen it Sep 25 21:44:18 Bubo: this looks pretty good actually Ill look into using this Sep 25 21:44:58 g00s nope Sep 25 21:45:06 PinkSpecs, yea, it's a crowd sourced guide Sep 25 21:45:08 I usually put out an auto-responder that I'm on vacation though Sep 25 21:45:21 Google BS... Sep 25 21:45:36 ah, ok. I if that works great. i go camping sometimes and can be in the wild for over a week with no tech Sep 25 21:45:54 I usually go for a month without connectivity Sep 25 21:45:59 if thats too much for 'em Sep 25 21:46:01 fuck 'em Sep 25 21:48:07 they are getting very annoying Sep 25 21:48:35 now more than ever i wish there were more options than Android / iOS for mobile dev Sep 25 21:48:39 hehe g00s did you see ? http://www.computerworld.com/article/2605999/legal/german-court-requires-google-to-stop-ignoring-customer-emails.html Sep 25 21:48:50 g00s, Google says that you have to respond, it doesn't say that you have to fix anything. The auto mail is a response... Sep 25 21:49:13 MikeWallaceDev yeah, if i can use auto response once in a while thats great Sep 25 21:49:37 this all comes a week from the whole "physical address" requirement for EU because they aren't the seller, we are Sep 25 21:49:56 but other stores like Apple, Amazon, etc are the seller, you get a royaty Sep 25 21:50:38 i relly wish MS wasn't fucking up so bad :| Sep 25 21:51:17 and i wish godspeed to ubuntu touch also, if that ever happens Sep 25 21:51:33 That's where I disagree too, as far as I am concerned Google is the seller not me Sep 25 21:51:47 I'm just getting a cut Sep 25 21:52:05 leslie yes i saw that, thanks Sep 25 21:52:16 oops, autocomplete ftl lasserix ^^^ Sep 25 21:52:18 and now with this VAT thing, that proves it even more Sep 25 21:53:16 Google pays the taxes, Google can refund, Google can remove the app from the phone. Sep 25 21:53:24 The End seller is Google, not me. Sep 25 21:54:03 Now, you could argue that I'm selling my app to Google, I agree. And only they should see my address. Sep 25 21:54:26 yeah, what's up with that? have your address publicly available? Sep 25 21:54:49 MikeWallaceDev: well, you can argua all you want, the law says otherwise Sep 25 21:55:31 hahaha p_l Which law??? This is international. I'm in Canada. Quebec even. Sep 25 21:55:34 p_l at least we should be given an option where - if we are not selling to any EU country, we don't have to comply with that requirement Sep 25 21:55:57 g00s, that's my point, _I_ am not selling to EU Sep 25 21:56:04 Google is. Sep 25 21:56:27 MikeWallaceDev: the only legal standing you'd have is if you blocked your app from EU markets Sep 25 21:56:39 again, not me. Google. Sep 25 21:56:50 Why do they even want your address publicly? What's the reason? Sep 25 21:57:12 Bubo well, offficially i don't think google has even said Sep 25 21:57:25 I'm uploading my app to a Google server. I have no control where they sell it. Sep 25 21:57:28 maybe if i send them an email they will get back to me in 3 days Sep 25 21:57:34 :D Sep 25 21:57:36 MikeWallaceDev: you have - it's settable in the console Sep 25 21:58:06 sorry, from the pov of the law, your arguments have less weight than paper needed to write them down Sep 25 21:58:11 p_l yes but if i have all EU contries deselected, physical location should be "optional" Sep 25 21:58:20 I didn't say that correctly. Let's say I want to sell in China, I can't because Google doesn't sell there. See? I'm not the seller, they are Sep 25 21:58:33 g00s, i meant why did EU wanted to do this? what's the reason for wanting the addresses Sep 25 21:58:39 p_l, again, what law? Sep 25 21:58:45 i haven't read the news.. Sep 25 21:59:03 MikeWallaceDev, There is no law that you are the seller, their is googles TOS which you agreed to Sep 25 21:59:04 Bubo its an announcement in your developer console Sep 25 21:59:13 MikeWallaceDev: Google very carefully set it so that, by law, they are not sellers, but providers of "marketplace service" in a way Sep 25 21:59:26 besides, unless you are an international lawyer, what do you know about the law? Sep 25 21:59:32 you're still the seller Sep 25 21:59:37 yes - i am now realizing the implications of this Sep 25 21:59:45 g00s, no idea what developer console is, i'm not really an android developer. I'm just starting Sep 25 21:59:53 MikeWallaceDev: had to take a bit of research to avoid getting in trouble with the taxman Sep 25 22:00:10 p_l, taxman doesn't joke around... Sep 25 22:00:15 Bubo well, at least you have the option of knowing from the get go; many of us have been sellers for years and had this shit put on us Sep 25 22:00:30 How to find out whether Android SDK/NDK is on my OS X system? I can't remember if I have installed it since reformatting Sep 25 22:00:42 mdfind Sep 25 22:00:43 ok, so, if I don't follow it, then I'm breaking the TOS, not the law :) A TOS cannot change the law Sep 25 22:00:46 $mdfind android Sep 25 22:00:48 g00s, I know, I was surprised when I heard about it Sep 25 22:01:15 pi-: You could look through your filesystem Sep 25 22:01:18 MikeWallaceDev: yeah, so they'll terminate the account, because the bit was probably added to add a bit of more armor padding to the legal arses Sep 25 22:01:51 i get the impression the EU dorsn't really like google Sep 25 22:02:13 thanks g00s, mdfind is a new one to me Sep 25 22:02:22 see, that's different, saying that Google isn't happy and they want to terminate my account, fine. But bringing in international law, that's a whole different can of worms. Sep 25 22:02:25 not surprised if the time is near most of the world says F-U to american companies Sep 25 22:03:16 MikeWallaceDev: What I meant is that they'd have to then terminate the account in order to keep ok with the law, well, without bringing lawyers in Sep 25 22:03:18 g00s, I always laugh when I read things like SOPA and all that crap. As if the States ARE the internet Sep 25 22:04:03 g00s: funnily enough, I once heard whispers of Google having a "GTFO from USA" plan ;) Sep 25 22:04:29 p_l, they probably do.... The hard part would be bringing the people Sep 25 22:04:32 if Brazil requires i spend at least 30 days in their country if i sell there, what then ? Sep 25 22:04:51 or if i need a permanent contact address in that country Sep 25 22:04:51 g00s! Excellent point! Sep 25 22:05:30 i worked on DHL billing and shipping systems which handles all of latin america; i can tell you each country has some very interesting laws and taxes Sep 25 22:05:40 Actually, I can tell you for a fact that MOST of the apps in the world are illegal here in Quebec where they MUST be french. Sep 25 22:05:55 so its becoming clear to me - what the optimal type of 'store' set up is for indie devs Sep 25 22:06:11 MikeWallaceDev, what kind of retarded law is that Sep 25 22:06:21 Duh, we're French. Sep 25 22:06:23 darken: Quebecois law Sep 25 22:06:42 So ? spanish law doesn't require all apps to be in spanish Sep 25 22:06:48 But yeah, it's a stupid law that I don't agree with. Sep 25 22:07:40 trying to decrypt data I fetch from an xml which is base64 encoded and crypted with aes that comes from a php service, I can encrypt fine with a php test script but I fail to do so in android as either key or data seems to be false -> http://pastebin.com/CLSkHEJf Sep 25 22:07:49 The point was, as sellers, you are all liable to get fined and go to jail in Quebec. Sep 25 22:08:10 any idea how to debug this? I can't check the data as it differs every time obviously :/ Sep 25 22:08:38 MikeWallaceDev, So legally i should exclude my app from canada because i can't exclude quebec only Sep 25 22:08:47 What do you use to parse html in android Sep 25 22:08:52 or login in websites Sep 25 22:08:56 without apis Sep 25 22:08:58 Exactly Sep 25 22:09:37 MikeWallaceDev: ok, making a note to never go to Quebec without either diplomatic immunity or army Sep 25 22:09:38 Or be like me and translate it in French :D Sep 25 22:09:41 android needs some launcher docs or something Sep 25 22:09:53 because there's special cases when dealing with launchers Sep 25 22:10:13 p_l, you're fine as long as you don't sell anything that is not in French :D Sep 25 22:10:18 And we have poutine. Sep 25 22:10:22 MikeWallaceDev, so if your app isn't in french, what happens? if they catch you Sep 25 22:10:30 MikeWallaceDev: I'll bring french-named nukes ;) Sep 25 22:10:40 in Practice, nothing. Yet. Sep 25 22:11:05 (but seriously, France got the cheekiest name for small-strategic/large-tactical nuke cruise missile, ever) Sep 25 22:11:18 If they catch YOU, probably nothing. If they catch ME, bill 101 comes into play and The Language Police, and fines. Sep 25 22:11:30 MikeWallaceDev, that's ridiculous Sep 25 22:11:40 Yes, it is. Sep 25 22:11:54 But that's not the point we're talking about :) Sep 25 22:12:06 It's about Android, and sellers. Sep 25 22:12:57 And although we're talking about the law, the law never really did look at this. I wonder what would happen in a court of law. Sep 25 22:13:48 Please find out Sep 25 22:14:13 hehe No thank you. :D Sep 25 22:17:16 Anyone know if in retofit you can pass in a full path for example @GET("{actionPath}") where actionPath = /some/path/to/something. As of right now it's url encoding my /'s Sep 25 22:17:52 retrofit*^ Sep 25 22:18:43 @GET("/{actionPath}") Something doSomething(@EncodedPath("actionPath") String actionPath); Sep 25 22:19:20 but in doing that you lose a lot of benefits of Retrofit itself Sep 25 22:19:41 the whole point is mapping API endpoints to methods so you have a type-safe, declarative, native-Java API Sep 25 22:19:46 but it'll work Sep 25 22:20:01 View.GONE Sep 25 22:20:17 (that's me saying that I'm going to eat :D ) Sep 25 22:20:27 JakeWharton: Yeah, I have an api that sends down different urls, so instead of writing it all in okhttp I wanted to try that. Thanks as usual for your quick and helpful replys! Sep 25 22:20:41 yep. makes sense. Sep 25 22:23:51 What do you use to parse html in android? Sep 25 22:27:35 Umm I am using Universal Image Loader but there is no cacheInMemory for the config, is this normal? Sep 25 22:28:19 How do I find out what version of the SDK I have? Sep 25 22:29:35 pi- run the sdk manager ? Sep 25 22:31:08 g00s: where is that located? Sep 25 22:31:20 you know, type 'android' on the command line Sep 25 22:32:00 if you ask what a command line is I quit Sep 25 22:32:02 That doesn't work, maybe my path isn't set? Sep 25 22:34:14 should be in.. tools? bin? under the android sdk dir. Sep 25 22:34:37 yeah, looks like /tools/android Sep 25 22:36:06 Has anyone ever had a problem with raw resources returning seemingly random bytes instead of the actual data?... Sep 25 22:36:39 while running connectedCheck Sep 25 22:37:11 Thanks JesusFreke Sep 25 22:41:51 I have a function that handles KML files. When I click a KML file that is a GMAIL attachment, and then select my app to open it, everything seems to work fine. My app takes the URI and writes the attached file to my apps cache dir. For some reason though, not the ENTIRE file is being written to the cache dir, just most of it. My code that writes the cache file is here: http://paste.debian.net/123159/ it's only 26 lin Sep 25 22:41:51 es. Sep 25 22:44:42 <_flip> is it bigger that 1024 bytes? heh Sep 25 22:50:40 yes Sep 25 22:50:56 lasserix, cacheInMemory is in the global config, in your app Sep 25 22:51:04 yeah i see Sep 25 22:51:05 where do I find the pallete window in android studio? it's greyed out in view -> toolbars Sep 25 22:51:06 fucking tho Sep 25 22:51:38 nvm double click Sep 25 22:51:47 _flip yes. Sep 25 22:53:27 argh see this is what i use to get the thumbnail b = MediaStore.Images.Thumbnails.getThumbnail(context.getContentResolver(), Long.valueOf(iconKey), MediaStore.Images.Thumbnails.MINI_KIND, nul Sep 25 22:53:34 i dont think i can make this work with UIL Sep 25 22:56:46 Eww, fixing bash just killed my sun-java-6 install. :( Sep 25 22:57:03 I should have backported the patch. Sep 25 22:57:49 I have a function that handles KML files. When I click a KML file that is a GMAIL attachment, and then select my app to open it, everything seems to work fine. My app takes the URI and writes the attached file to my apps cache dir. For some reason though, not the ENTIRE file is being written to the cache dir, just most of it. My code that writes the cache file is here: http://paste.debian.net/123159/ Sep 25 22:59:55 can you flush tmp before closing? Sep 25 23:00:15 Me? Sep 25 23:00:21 yes Sep 25 23:00:32 I can certainly try! Sep 25 23:01:45 also, tmp.getFD().sync(); Sep 25 23:01:51 and finally { tmp.close() } Sep 25 23:01:58 what does that do? Sep 25 23:02:05 What do you guys think? Still needs some UI touch ups , but just finished redesigning my app http://imgur.com/a/h6gw3 Sep 25 23:02:05 Was like this before http://www.androidpolice.com/2014/09/24/chrome-apk-packager-can-turn-android-app-chrome-extension-use-archon-custom-runtime/ Sep 25 23:02:21 tells the system to sync the file descriptor, which should ensure that all data makes it to disk Sep 25 23:02:35 so flush, sync then close? Sep 25 23:02:36 (truth be told even that is faulty sometimes, but thats probably a hardware problem) Sep 25 23:02:38 yes Sep 25 23:05:40 Nope, still not working. Sep 25 23:06:48 incidently, the cache file is 1 byte larger than the original. Not sure how that happens. Sep 25 23:08:11 Hmm, qkzoo1978, you are rewriting part of the file from the middle on the end Sep 25 23:08:12 <_flip> just looked over the code again Sep 25 23:08:14 the buffer Sep 25 23:08:15 <_flip> interesting Sep 25 23:08:32 it is not always the full 1024 bytes you need to write Sep 25 23:08:54 Hmm, I'm not seeing that, what part you looking at? Sep 25 23:08:56 you need to use the return value from attachment.read Sep 25 23:09:32 Unless you are certain that it is less than 1024 Sep 25 23:10:15 it could be anything I suppose Sep 25 23:10:28 declare an int size; then while ((size = attachment.read(buffer)) > 0) Sep 25 23:10:45 use size for the size of the buffer. for the call to write Sep 25 23:11:07 I.E. the last chunk is probably not 1024 bytes in size. Sep 25 23:11:15 also if you are lagging on I/O Sep 25 23:11:25 It may not be a full 1024 in the middle Sep 25 23:11:44 Make sense? Sep 25 23:12:12 Ok, I copy and pasted this code, let me see if I can make a little sense of this. Sep 25 23:14:10 I'm not sure how to implement the size of the buffer as you suggest. Sep 25 23:14:20 argggh Sep 25 23:14:28 yes I know. Sep 25 23:14:32 is there a way to set a preprocess function on the UIL? Sep 25 23:14:35 Sec I have similar code Sep 25 23:14:38 <_flip> he's saying the attachment.read() might not write the full 1024 byte to the buffer Sep 25 23:14:44 Is it possible to add custom voice commands to Android Wear that *don’t* start with “start"? Sep 25 23:14:59 <_flip> if it only writes 5 bytes, yet you read out the entire buffer to the temp file... Sep 25 23:15:01 basically MediaStore.Images.Thumbnails.getThumbnail() will generate the thumbnail for you, but UIL doesn't make this call so it always has no thumbnail found Sep 25 23:15:10 _flip I get that, I just mean I'm not sure how to make it grab the size dynamically. Sep 25 23:15:19 lasserix_: Yes, you can specify an image preprocessor in your loader options Sep 25 23:15:31 I don't need an image preprocessor Sep 25 23:15:35 http://pastebin.com/uG0FQ2LH Sep 25 23:15:36 i just need to make it make that call Sep 25 23:15:48 Its an image loader, not generator Sep 25 23:15:55 sounds like that code should live somewhere else Sep 25 23:16:10 One liner: for (byte[] buf = new byte[1024]; (count = ins.read(buf)) > 0; os.write(buf, 0, count)); Sep 25 23:16:11 LO Sep 25 23:16:13 :P Sep 25 23:16:20 Pyuruku: no it should make that call Sep 25 23:16:26 since it's part of universal loading Sep 25 23:16:32 for content provider stuff anyways Sep 25 23:16:44 No it shouldnt, thats not its job Sep 25 23:16:57 yes it should: its a universal image loader, it's the same as scaling Sep 25 23:17:04 but using the os's built in scaling function Sep 25 23:17:18 <_flip> qkzoo1978: change tmp.write to use tmp.write(buffer, 0, size) Sep 25 23:17:18 that help, qkzoo1978? Sep 25 23:17:28 If youre trying to scale down, then specify an image size Sep 25 23:17:36 I am not trying to scale down Sep 25 23:17:37 <_flip> where size is the int returned by attachment.read() Sep 25 23:17:48 then I dont understand your point Sep 25 23:17:54 i know, i know. Sep 25 23:18:01 it'll be alright. but thanks for the help Sep 25 23:18:13 but it sounds like youre using UIL for the wrong purpose Sep 25 23:18:17 or attempting to Sep 25 23:18:37 i am trying to load an image thumbnail from the mediaastore Sep 25 23:18:45 i believe _universal_ image loader should be able to handle this Sep 25 23:18:47 but it can't Sep 25 23:18:53 _flip thanks, I'm trying it out. Sep 25 23:18:57 the thumbnail doesnt exist Sep 25 23:18:58 may have to do a PR Sep 25 23:19:01 no Sep 25 23:19:03 it sometimes exists Sep 25 23:19:12 yeah, thats the system's problem not UILs Sep 25 23:19:25 and since the os will already scale it down, why shouldn't UIL use the os built in scaling function to do this? Sep 25 23:19:37 if that is over your head it's okay Sep 25 23:19:41 lol Sep 25 23:20:00 obviousily this does not apply to non media store stuff Sep 25 23:20:12 but for the media store specifically, since it supports loading from //content Sep 25 23:20:26 why not go one step further and make the call to generate a bitmap? since it does scaling anyways Sep 25 23:20:44 again, not the job of applications to maintain the media store Sep 25 23:20:46 sending messages from your phone (your app) to another phone (same app) is done with a server inbetween, right? Sep 25 23:20:46 You could do a file image cache. Sep 25 23:20:47 ahh well i can just do a PR Sep 25 23:20:49 there is no other way? Sep 25 23:20:52 if you dont understand that then I have nothing to argue about Sep 25 23:20:58 _flip where does "size" come from? Sep 25 23:21:04 like you send it to the server with a json and it sends it to the other phone Sep 25 23:21:09 Pyuruku: it's not maintaining the mediastore Sep 25 23:21:25 <_flip> qkzoo1978: i said that above Sep 25 23:21:38 <_flip> qkzoo1978: "where size is the int returned by attachment.read()" Sep 25 23:22:05 qkzoo1978: see where you have "attachment.read(buffer)" in your while? Sep 25 23:22:25 yes Sep 25 23:22:33 you can assign that value it is comparing against in the same statement Sep 25 23:22:47 anyways i can just do a pr to have it added so Sep 25 23:23:02 it becomes (size = attachment.read(buffer)) > 0 Sep 25 23:23:24 OK, pardon my ignorance, thanks, I'll try :) Sep 25 23:23:26 you must declare the integer size before. Sep 25 23:23:31 :D Sep 25 23:25:56 but it is a pretty bad ass library Sep 25 23:26:43 hi Sep 25 23:27:23 on AdMob, if you select "Display All time" (graph of revenue) it actually only displays the last year to the day exact. So right now it displays all onwards from Sep 27 2013 Sep 25 23:27:39 is this a "bug" or such anyone else has experienced so far? Sep 25 23:29:01 Fenny, you're my new hero! Sep 25 23:29:24 I had the same problem as you when I was writing the paste I pasted. Sep 25 23:29:50 Most web guides don't bother to give you working code. :( Sep 25 23:30:19 Ya, and i've been googling until my eyes bled, and came up with the same examples over and over again. Sep 25 23:30:30 Yes, all bad, and wrong. Sep 25 23:30:43 Well thank goodness for you, thanks a bunch! Sep 25 23:31:13 <_flip> irc is good sometimes. Sep 25 23:31:53 Yes, yes it is! Sep 25 23:32:57 I still love my non-standard for loop. I think it causes the buffer to get GC'd faster: Sep 25 23:33:03 for (byte[] buf = new byte[1024]; (count = ins.read(buf)) > 0; os.write(buf, 0, count)); Sep 25 23:33:28 I can try that one out too' Sep 25 23:34:36 good god Sep 25 23:34:49 that is one of the more hideous constructions i've ever seen Sep 25 23:34:52 hehe Sep 25 23:35:06 Right? Sep 25 23:35:12 i can say for sure that looping that way vs using a while loop doesn't have any effect on GC Sep 25 23:35:15 It certainly is a sight to behold Sep 25 23:35:37 sarbs: The instance variable is not destroyed sooner? Sep 25 23:35:51 buf, you mean? Sep 25 23:35:51 byte[] which is declared in the loop? Sep 25 23:35:54 yes Sep 25 23:36:06 it goes out of scope with the loop, i guess, but you could accomplish that just as easily with an unnamed block Sep 25 23:36:19 True Sep 25 23:36:23 { byte[] buf = ...; while (...) { .. } } Sep 25 23:36:28 hehe Sep 25 23:36:47 but then his co workers wont think hes cool Sep 25 23:37:18 * g00s writes unclever code Sep 25 23:37:20 especially with the body of the loop being a single ';' Sep 25 23:37:23 but even going out of scope doesn't remotely significantly affect time of GC in this case Sep 25 23:37:43 you are probably correct, sarbs. Sep 25 23:37:46 unless you're under massive memory pressure, GC is totally async Sep 25 23:38:15 It is the c programmer in me that always is hunting for that bit extra I suppose. Sep 25 23:38:43 Not that you could declare the variable in a for loop in c or anything. :P Sep 25 23:38:46 <_flip> i keep thinking the same way Sep 25 23:40:11 i totally understand, but "good" in terms of java is almost always "clear and readable" foremost :) the JVM (or in our case DVM/ART) ends up nullifying most non-algorithmic coder optimizations Sep 25 23:40:38 either through its added overhead of just being a VM, or recompiling/reordering stuff in its actual own optimizations Sep 25 23:41:09 i'll totally give you coder cred on a clever use of for, tho Sep 25 23:41:13 <_flip> yeah, but it's so unintuitive to write good humanly readable code Sep 25 23:41:16 <_flip> haha Sep 25 23:41:23 just.. please don't do that in code i have to work on, lol Sep 25 23:41:39 Has anyone ever had corrupted raw resources at runtime? Sep 25 23:41:55 the data im reading in from the resource stream is definitely incorrect Sep 25 23:42:25 Pyuruku data corruption between compilation and installation shouldn't be possible, that would invalidate the apk signature Sep 25 23:42:35 so something most likely got borked during your compilation Sep 25 23:42:48 if it makes it any different, im trying to do a `connectedCheck` Sep 25 23:43:18 i get no compilation errors :| Sep 25 23:56:48 Hello, I am trying to intercept shutdown event using http://developer.android.com/reference/android/content/Intent.html#ACTION_SHUTDOWN , I am trying to display a modal dialog before shutting down. I am able to display a message in log but unable to display dialog box. Any ideas how to achieve this? Sep 26 00:04:56 is this even possible? "Once the broadcast is complete, the final shutdown will proceed and all unsaved data lost. Apps will not normally need to handle this, since the foreground activity will be paused as well" Sep 26 00:10:12 I think its not, I saw the same in documentation. I would like to display some dialog box that asks for confirmation before shutting down ? is there any way to do this? Sep 26 00:12:07 no, it's not possible Sep 26 00:12:17 the only kind of broadcast you can "intercept" is an Ordered Broadcast, and this isn't one Sep 26 00:12:36 nobody but system can send it, and system doesn't send it ordered :) Sep 26 00:18:25 I have a method that currently takes a PrintWriter and calls 'write'. If I change this to Writer, it doesn't compile, since 'write' then throws a checked exception. Sep 26 00:18:32 This doesn't seem to make sense, right? Sep 26 00:18:46 Catch the exception? Sep 26 00:18:47 If PrintWriter is a Writer, I should be able to change "PrintWriter" to "Writer", shouldn't I? Sep 26 00:19:29 Do you mean casting PrintWriter to Writer? Sep 26 00:19:30 Pyuruku: That wouldn't achieve anything, since PrintWriter doesn't throw exceptions. Sep 26 00:20:04 I have a method "Foo.write(PrintWriter writer)", which says "writer.write(whatever);". Sep 26 00:20:15 If I change the signature to "Foo.write(Writer writer)", it doesn't compile. Sep 26 00:20:40 because youre not handling an exception from write? Sep 26 00:20:41 It seems I should be able to use the more-generic type. I'm only calling 'write'. Sep 26 00:20:44 Yeah. Sep 26 00:21:09 Then ... catch it Sep 26 00:21:15 That doesn't answer my question... Sep 26 00:21:19 maybe PrintWriter doesnt throw exceptions because it handles it internally Sep 26 00:21:26 Yeah. Sep 26 00:21:28 but the abstract base type says to expect an exception Sep 26 00:21:39 Isn't that a violation of subclassing? Sep 26 00:21:56 dont think so? Sep 26 00:22:08 PrintWriter.write should have the same interface as Writer.write, surely. Sep 26 00:22:21 And the interface includes exceptions thrown. Sep 26 00:23:58 that is assuming you use Writer.write Sep 26 00:24:02 and not a masked function Sep 26 00:24:19 if you look at the source code of PrintWriter, they explicitly do not override Writer.write for that reason Sep 26 00:24:26 " This method cannot be inherited from the Writer class because it must suppress I/O exceptions." Sep 26 00:24:54 Oh, didn't see that. Sep 26 00:26:06 So PrintWriter.write simply hides Writer.write. Sep 26 00:26:24 yes Sep 26 00:30:22 Wait, is it possible to hide instance methods in Java? Hmm. Sep 26 00:31:54 Or is it not overriding because it lacks the 'throws' clause? Sep 26 00:32:38 i didn't think it was possible to hide methods Sep 26 00:33:12 either way i also don't think it's a requirement to declare inherited thrown exceptions Sep 26 00:33:21 i'm pretty certain i've written apis and then implemented them with methods that don't throw Sep 26 00:33:40 yeah Sep 26 00:33:43 it's a violation to declare a thrown exception where the parent *doesn't*.. but not the other way around Sep 26 00:33:49 thrown exceptions are not a part of the signature Sep 26 00:34:01 "An instance method in a subclass with the same signature (name, plus the number and the type of its parameters)" Sep 26 00:34:03 from the docs Sep 26 00:34:21 http://docs.oracle.com/javase/tutorial/java/IandI/override.html Sep 26 00:34:55 So how is PrintWriter.write hiding Writer.write? Sep 26 00:34:58 It has the same signature. Sep 26 00:35:39 its "hiding" it by not calling super Sep 26 00:35:49 therefore it doesnt throw an exception Sep 26 00:36:06 oh.. that's not hiding Pyuruku :) that's just overriding w/o calling parent Sep 26 00:36:14 right its "hiding" Sep 26 00:36:27 Hmm, but why don't we have to deal with Writer.write's exceptions when calling PrintWriter.write? Sep 26 00:36:35 its not calling super Sep 26 00:36:38 Surely those exceptions should also be inherited. Sep 26 00:36:41 but, i just tested. if Parent.method() doesn't declare any thrown exceptions, Child.method() may not either. if Parent.method() *does*, Child.method() doesn't need to Sep 26 00:36:47 no, i just said its not a part of the signature Sep 26 00:36:59 TacticalJoke PrintWriter.write() handles them internally, if it calls through Sep 26 00:37:17 Okay. But PrintWriter.write would have had to declare "throws whatever" if it had called super, right? Sep 26 00:37:23 no Sep 26 00:37:26 only if it doesnt handle it Sep 26 00:37:31 no, it can also handle them in a try block Sep 26 00:37:36 Oh, true. Sep 26 00:38:01 It sucks that PrintWriter.write doesn't throw any exceptions. I wonder whether there's an alternative that does. Sep 26 00:38:06 I guess there's Writer.write. lol Sep 26 00:38:14 Why do you want it to throw exceptions? Sep 26 00:38:23 you can always put stuff that doesn't throw inside a try block anyway Sep 26 00:38:29 yeah ^ Sep 26 00:38:53 I'm using PrintWriter to write to a file. Sep 26 00:39:01 I'd like to know whether something went wrong. Sep 26 00:39:02 not FileWriter?... Sep 26 00:39:20 Right. Basically, I've broken my classes down so that they can be easily unit-tested. Sep 26 00:39:23 well, casting PrintWriter to Writer wouldn't solve that then heh Sep 26 00:41:05 Does anyone know if this is out dated? http://tools.android.com/tech-docs/new-build-system/user-guide Sep 26 00:41:10 it *seems* so D: Sep 26 00:42:20 it's got newer versions than i've seen, but i haven't used gradle since july Sep 26 00:42:50 my unit tests are royally fucked and im trying to see if its because of the custom project structure i have going Sep 26 00:43:33 thanks sarbs Sep 26 00:44:19 Pyuruku btw on hiding vs overriding: not calling super isn't "hiding" in the general term as used by other langues, in that Parent p = new Child(); p.method(); will still call Child's implementation in java Sep 26 00:44:42 in C#, if you don't specifically define the method as virtual or as override, then that line will call Parent's implementation, *not* Child's Sep 26 00:45:06 that's impossible in Java, so in that sense java doesn't have hiding Sep 26 00:45:30 np shah0516 Sep 26 00:45:39 why is that impossible in java? children classes do not have to override their parent's functions Sep 26 00:46:01 no, but if they do it's not possible to directly call the parent's implementation Sep 26 00:46:14 Rgiht Sep 26 00:46:23 I dont see what the problem is Sep 26 00:46:23 D: Sep 26 00:46:46 overriding == method impl based on runtime type of object, hiding == method impl based on compile-time type of object Sep 26 00:47:01 So what should I use if I want the functionality of PrintWriter.write but with an exception if something goes wrong? Sep 26 00:47:07 I don't wanna just do nothing if something goes wrong. Sep 26 00:47:11 TacticalJoke not a PrintWriter :p Sep 26 00:47:17 What's an alternative? :D Sep 26 00:47:22 no idea lol sorry Sep 26 00:47:25 I think you took my "hiding" too literally :P Sep 26 00:47:26 lol Sep 26 00:47:41 Pyuruku i did, i got confused simply because it's an actual technical term in other languages Sep 26 00:51:37 capella-s3 https://www.trustedsec.com/september-2014/shellshock-dhcp-rce-proof-concept/ Sep 26 00:51:48 Shellsock via DHCP Sep 26 00:53:35 God, Java's such a pain. Sep 26 00:53:37 you betcha... been reading several versions of that today... press has gone wild :-) Sep 26 00:53:58 Why can't BufferedReader and StringReader both inherit from something that has a readLine method? Sep 26 00:54:04 Would make my life much easier. ;[ Sep 26 00:56:40 <_flip> g00s: is that just the bash exploit through DHCP? Sep 26 00:56:46 yeah Sep 26 00:56:56 <_flip> ah Sep 26 00:57:15 <_flip> has it been dubbed shellshock? haha Sep 26 00:57:16 so capella-s3 better not use his phone with a poisoned DHCP server :D Sep 26 00:57:23 Is this right? It claims that writing UTF-8 in Java is broken. http://tripoverit.blogspot.co.uk/2007/04/javas-utf-8-and-unicode-writing-is.html Sep 26 00:58:09 g00s: noted :-D Sep 26 01:03:20 g00s: this govt pushback attitude has me more concerned http://arstechnica.com/tech-policy/2014/09/apple-google-default-cell-phone-encryption-concerns-fbi-director/ Sep 26 01:04:19 capella-s3 what are your concerns? Sep 26 01:04:46 g00s: www.smh.com.au/digital-life/consumer-security/terror-laws-clear-senate-enabling-entire-australian-web-to-be-monitored-and-whistleblowers-to-be-jailed-20140925-10m8ih.html seen this ? Sep 26 01:04:48 g00s that the gubmint's pissed that joe shmoe's cellphone will be unreadable to them, of course heh Sep 26 01:05:02 that our officials feel threatened by our desire for privacy Sep 26 01:05:18 capella-s3 , ah i see yes Sep 26 01:05:28 the court can still require you unlock the device, right ? Sep 26 01:05:48 and their displayed sense of priveledge to protect us from us Sep 26 01:06:32 ""...if you are looking to keep something safe from prying eyes, Google can reset the pattern unlock on Android devices for law enforcement. Use PIN or Password." ah interesting Sep 26 01:06:52 i'm waiting for the day that cloud data will be encrypted with my privkey as well Sep 26 01:08:08 sarbs how will google target advertising to you if they can't parse your email ? Sep 26 01:08:19 (if its encrypted) Sep 26 01:08:45 apple is in a position to do that possibly, since they don't make money from that Sep 26 01:08:50 that's the rub, 99% of what's interesting about cloud computing is moot with encrypted data Sep 26 01:09:10 since it's becomes just unreadable blobs, instead of meaningful information Sep 26 01:10:59 i talked to my extremely bright friend, PhD from MIT in bioengineering, blah blah - and he thinks snowden was a spy since he went to russia Sep 26 01:11:11 i have to ask myself, how such an idea gets installed in one's head Sep 26 01:11:20 and this fella is pretty brilliant Sep 26 01:11:46 aaaaagh. “start ” seems to be completely broken on the Moto 360 Sep 26 01:12:45 not to mention that the voice recognition is as reliable as ever Sep 26 01:13:53 maybe its startmoto :P Sep 26 01:15:19 “start HelloWear” -> “start hello where”, “startel aware”, “start delaware”... Sep 26 01:17:38 aaaaand now it’s refusing to acknowledge anything. Sep 26 01:18:08 <_flip> haha Sep 26 01:18:22 <_flip> maybe your accent isnt compatible Sep 26 01:18:33 tanuki compliment its haircut, you may have just offended it Sep 26 01:19:01 Lemme go find a dead chicken to wave over it. Sep 26 01:25:30 Does it actually work for third-party apps yet? Sep 26 01:25:45 “Start Keep” works. Sep 26 01:25:48 “Start Hello” doesn't. Sep 26 01:26:00 (I changed the label to Hello...) Sep 26 01:29:17 wow, luggage that heats its contents to kill bedbugs Sep 26 01:29:49 don't leave any gadgets in there :) Sep 26 01:29:59 *facepalm* Sep 26 01:30:00 140'F for 8 hours Sep 26 01:30:12 I had the label set at the *application* level, not the *activity* level Sep 26 01:31:07 tanuki but if you measure the difference between the 2 with a chicken, you'll notice they aren't that far from each other Sep 26 01:32:40 140F doesn't seem like it'd be damagingly hot, in electronics terms Sep 26 01:33:04 thats close to thermal runaway for lithium batteries Sep 26 01:33:05 maybe reduce-lifetime-ingly hot, but i wouldn't expect anything to break straight away from it Sep 26 01:33:14 noooooo. 4rlz? Sep 26 01:33:25 Wear is still having issues with homophones. Sep 26 01:33:37 my MBP cpu hits 90+ *C *regularly* Sep 26 01:33:55 and it's not that freakin far from a giant MBP Li+ battery Sep 26 01:33:57 I can’t use the label “Hello Wear” because the voice search turns it to “hello where” and runs a google search Sep 26 01:34:10 *facepalm* Sep 26 01:37:09 g00s according to http://pubs.rsc.org/en/content/articlehtml/2013/ra/c3ra45748f, the Li+ cells they tested started outgassing at around 150 *C* Sep 26 01:37:22 and didn't trigger actual runaway until 220C Sep 26 01:37:40 aka, 300 to 400+ F Sep 26 01:39:46 sarbs wow interesting, maybe i messed up units Sep 26 01:39:46 Hello guys Sep 26 01:39:59 wouldn't be the first time Sep 26 01:40:04 *cough*nasa*ahrm* Sep 26 01:40:09 I am confronting a NPE using somebody else's code. Sep 26 01:40:57 Basically I am calling a service from an activity but can't seem to pinpoint the reason Sep 26 01:41:11 would somebody be kind enough to help me? Sep 26 01:41:55 I could perhaps pastebin the code and stacktrace and see what is going on Sep 26 01:42:24 Got a stacktrace, peska? Sep 26 01:42:31 yeah Sep 26 01:42:42 Yes, will pastebin it right now Sep 26 01:43:12 actually it just says a NPE was thrown here, nothing detailed Sep 26 01:43:45 I think we are more interested in the trace that leads back to your code. Sep 26 01:44:28 I presume this is a closed source module? Sep 26 01:45:25 (sigh) method limit strikes again Sep 26 01:47:40 Fenny, http://pastebin.com/agK5Dn6D Sep 26 01:47:51 no it was written by a colleague Sep 26 01:48:09 I see... Sep 26 01:48:22 It is coming from a thread invoke. Sep 26 01:48:39 the line number where the NPE is thrown, a service's method is called Sep 26 01:48:42 MainActivity.java is not your code? Sep 26 01:48:49 That is my code Sep 26 01:48:56 okay, good. Sep 26 01:49:02 ADKservice is not Sep 26 01:49:25 Fenny, do you want to have a look at the code? Sep 26 01:49:32 yeah Sep 26 01:49:38 Are you spawning that thread then? Sep 26 01:50:17 http://pastebin.com/xJZMYnBi Sep 26 01:50:27 in the end of the code the service is called Sep 26 01:51:27 Okay, You don't pass ADKService to the runnable? Sep 26 01:51:43 http://pastebin.com/FFXAkxYc Sep 26 01:51:52 this is ADKService Sep 26 01:52:31 I think your npe is coming from the .self reference in your code. Sep 26 01:52:56 So what is happening is that, I retrieve a String command and then create a thread and pass it to the Service which executes it Sep 26 01:53:00 oh... Sep 26 01:53:27 Let's see how his self is initialized Sep 26 01:57:46 I don't think that thread is able to access the static ref properly... Sep 26 01:58:12 hmm... Sep 26 01:59:25 what changes do you suggest? Sep 26 02:00:05 On top of that... Do you only start the updater from the adkservice? Sep 26 02:00:14 er in onpause? Sep 26 02:00:35 Ahh, nvm Sep 26 02:00:39 I see it in oncreat Sep 26 02:00:44 onCreate Sep 26 02:02:43 peska, Add code to cat to logcat the status of the self ref in and outside of the thread Sep 26 02:02:59 Let us see if it is really null Sep 26 02:03:17 ok Sep 26 02:03:23 lemme try Sep 26 02:07:41 i think it's probably about that time i go home Sep 26 02:07:49 reading docs i saw getAsShort() and giggled Sep 26 02:07:59 lol Sep 26 02:08:06 Anything, peska? Sep 26 02:08:49 yes Sep 26 02:09:46 Was it null in once place and not another? Sep 26 02:09:57 so i introduced it Sep 26 02:10:09 in onCreate of MainActivity and inside run Sep 26 02:10:21 the one in on create has thrown an NPE Sep 26 02:10:44 ADKService.self.toString() Sep 26 02:11:39 BTW i wrote the log after line 179 where the ADKService is started Sep 26 02:11:57 Right Sep 26 02:12:08 I think this call is async though. Sep 26 02:12:22 You may be trying too soon to talk to the service. Sep 26 02:12:27 Let me verify. Sep 26 02:13:19 so should i place somewhere else? Sep 26 02:13:54 check the return value of startservice Sep 26 02:14:12 it will be null if you start it and it is not running Sep 26 02:14:21 it will be the service name if it is already running Sep 26 02:14:39 Or if it is just being started Sep 26 02:14:57 i should assign it to a variable right? Sep 26 02:15:29 hi all Sep 26 02:15:53 How to make ActionBar background image, stretch-y and repeat-x Sep 26 02:15:55 or you can do if = = null Log.e Sep 26 02:16:13 I can only do repeat-x, but Failed on stretch-y Sep 26 02:17:17 Has anybody seen FennyFatal? Sep 26 02:17:28 Fenny: ? Sep 26 02:17:32 I only see Fenny. :P Sep 26 02:17:42 hello bros Sep 26 02:17:48 are you FennyFatal? Sep 26 02:17:54 I am Sep 26 02:17:58 I've been trying to get ahold of you man! Sep 26 02:18:38 Fenny, I get another NPE Sep 26 02:18:41 ComponentName status=startService(new Intent(this, ADKService.class)); Sep 26 02:18:41 String important = status.toString(); Sep 26 02:18:59 okay, the componentname is null Sep 26 02:19:01 i got it at the second line Sep 26 02:19:05 your service is not starting. Sep 26 02:19:17 This is your problem. :D Sep 26 02:19:24 oh man... :D Sep 26 02:19:26 Have you added the service in your manifest? Sep 26 02:19:34 Yes i have Sep 26 02:20:16 brb Sep 26 02:20:55 ok Sep 26 02:23:13 Okay: If the service is being started or is already running, the ComponentName of the actual service that was started is returned; else if the service does not exist null is returned. Sep 26 02:23:24 So, the service does not exist. Sep 26 02:24:09 This makes me think it must either be invoked another way, instanciated, or there is something in the manifest. Sep 26 02:24:18 what could cause that when it is manifest Sep 26 02:24:23 in* Sep 26 02:24:49 instanciated? Sep 26 02:25:42 I am looking at the constructor, sec. Sep 26 02:28:02 Okay, so it is not a bound service Sep 26 02:28:15 Fenny: what kind of apps have you made for Android? Sep 26 02:31:22 What does your service say in the manifest, peska? Sep 26 02:31:41 Sep 26 02:31:42 bros: I mainly write stuff to work with root tools. Sep 26 02:31:58 Fenny: give me an example? Sep 26 02:32:25 I saw the authors manifest file where it is declared the same Sep 26 02:33:02 peska: try com.example.commander.ADKService Sep 26 02:33:19 There is a namespace in that service so it should not be a root package Sep 26 02:34:02 ok adding Sep 26 02:34:29 But without the space between " and con Sep 26 02:34:32 *com Sep 26 02:35:13 bros: http://forum.xda-developers.com/showthread.php?t=1281620 Sep 26 02:35:17 Yes Sep 26 02:35:42 Fenny: how many beers have you been bought? Sep 26 02:35:51 Haha a few Sep 26 02:38:30 Looks like you can’t add alternating item decorations with a recyclerview decorator… prove me wrong? Sep 26 02:40:01 any magic with the full package name, peska? Sep 26 02:40:38 Fenny, Yes the NPE has disapeared Sep 26 02:40:45 but now get another exception Sep 26 02:40:46 :D Sep 26 02:40:46 Good :S Sep 26 02:40:52 Progress! Sep 26 02:41:48 http://pastebin.com/JxPREuY6 Sep 26 02:42:41 aha Sep 26 02:45:51 He is expecting that the application is of type ServiceADKApplication or at least extend it Sep 26 02:46:10 Look at your application class Sep 26 02:48:41 Fenny, This is the ServiceADKApplication http://pastebin.com/hxQM6NJN Sep 26 02:48:49 It is also not mine Sep 26 02:49:04 i imported and as you can see resides in another package Sep 26 02:52:29 Fenny, In the guys own project he has his MainActivity, ADKService and ServiceADKApplication in the same package Sep 26 02:52:48 could being in different packages be the cause? Sep 26 02:53:31 get application is getting your application Sep 26 02:56:13 ServiceADKApplication is my application Sep 26 02:56:21 as i have imported it into my project Sep 26 02:58:20 What do you think? Sep 26 02:58:46 You are importing it? Sep 26 02:59:01 I think you need to extend your application class with it. Sep 26 02:59:42 Fenny, I don't have my own application class. I'm using his code and I simply copied his classes into my project Sep 26 02:59:47 It is looking for methods that only exist on an application that has the interface of the class. **** ENDING LOGGING AT Fri Sep 26 03:00:00 2014