**** BEGIN LOGGING AT Sun Sep 14 02:59:59 2014 Sep 14 03:00:10 g00s any suggestions? at work we have set up with maven, but we gen a aar file so it's kind of a pain to reimport it each time Sep 14 03:00:38 MartialLaw lol…. I really dont mean to offend but there you go again with the "doesn't seem to work properly" user comments Sep 14 03:01:07 MartialLaw http://i.imgur.com/jacoj.jpg Sep 14 03:01:55 "doesn't seem to work properly" isn't a valid issue description? Sep 14 03:02:00 lasserix hmm, i guess i do it a bit differently; i publish the aar to my local m2repository; and then the project that uses it just has mavenLocal() as a repository, and a dep on the project Sep 14 03:02:13 but i dont use maven Sep 14 03:02:19 so if you change your library it updates automatically? Sep 14 03:02:36 the only way for that to happen, is if the library is a sub-module of the project Sep 14 03:02:38 how do publish to your local m2 repo without maven? do you know a tutorial on how to set that up? Sep 14 03:02:52 yeah Sep 14 03:03:05 m2repository is just a file structure Sep 14 03:03:15 xml, poms, shas, aars, etc Sep 14 03:03:20 the gradle stuff handles this Sep 14 03:03:33 StingRay_: you're right. you're right. no offense taken dude Sep 14 03:19:53 Is there any way to have a layout automatically do this? http://i.imgur.com/jJdb5z9.png (with 2 imageviews, automatically overflowing/aligning). I've been trying a bunch of different settings and I can't get it to work Sep 14 03:20:36 thats like a flowlayout Sep 14 03:20:36 eh? Sep 14 03:21:03 oh, yeah Sep 14 03:21:04 googling it brings this up - but its probably ancient lib https://github.com/ApmeM/android-flowlayout Sep 14 03:21:50 Yeah, looks pretty old... odd, I would have thought that it would be something stock Sep 14 03:22:05 i wouldnt think its very common Sep 14 03:22:17 why would you want to waste that much space? Sep 14 03:23:37 oh, hm, yeah I guess it is kind of a waste of space Sep 14 03:23:47 only if they're too big, though! otherwise it's fine Sep 14 03:24:01 so a random waste of space Sep 14 03:24:07 thats totally not predictable Sep 14 03:24:11 aegamesi: there is something called flow layout which was a demo project by Romain Guy that he uses to demo how to do custom views/viewgroups Sep 14 03:24:47 StingRay_: it's a sort of calculator, with a history of what you've calculated. On the left is the input, and on the right is your result Sep 14 03:25:00 lasserix: oh, I see that! Hey, that looks pretty interesting anyway. Sep 14 03:25:31 aegamesi: that would be pretty easy just be using either a relative layout with layout_below and layout align Sep 14 03:25:39 then toggle visibility if you need which view Sep 14 03:25:57 or do the same with a linear layout (vertical) in the second row set gravity right Sep 14 03:26:14 well, yeah for the linear layout but if they can both fit on the same line, it'd be nicer to do that. Saving space and all Sep 14 03:26:35 you mean you want them to me colinear if they fit and stacked if they dont? Sep 14 03:26:58 Yeah Sep 14 03:27:21 Ah. Great. Finally stumbled upon an article which specified that the Google Wear source code is only *partial*, and therefore not buildable at present. Sep 14 03:27:28 Well that was a wasted couple of days. Sep 14 03:31:34 TheMadcapper oh yeah, i remember ron_frown stumbling into that Sep 14 03:31:43 but i thought it was the whole thing Sep 14 03:32:18 are there any solid figures on wearables cause to me is a waste Sep 14 03:32:27 well, thats the nature of google's documentation - wasted days ... Sep 14 03:32:37 could turn into wasted years if you are at it long enough ;) Sep 14 03:33:05 http://www.youtube.com/watch?v=bR8D4Uybtzs hehe Sep 14 03:33:22 I guess I have to return this watch and tablet, then. No use for them if I can't do what I want with them, and I doubt the source will be out within the 14 day return policy. :\ Sep 14 03:33:42 poor themadcapper .... bounced around and found no love for all the work :( Sep 14 03:34:14 At least I got a little insight into the Android development process Sep 14 03:34:33 its more like development chaos Sep 14 03:34:51 Oh good. It isn't just me, then. :) Sep 14 03:34:51 mixed in with gung-bro Sep 14 03:34:57 <3 TheMadcapper i love ur effort Sep 14 03:35:01 heh - and this channel will make you work for it ;) Sep 14 03:48:17 hello all Sep 14 03:59:01 huh so i imported as a new module into my AS project and now my intellij project (the library) got stripped only ad .idea and gen (looks like everything but wha tis in the gitignore) Sep 14 03:59:46 can i export a module in android studio as a library project? Sep 14 04:00:35 lasserix you are wanting to have an external lib project setup with gradle ? Sep 14 04:10:54 StingRay ideally id like to be able to work on my library project in intellij, and have it in my game app in android studio, where any changes i make in intellij will be automatically reflected in the game app Sep 14 04:11:48 but if i can just export the module as a new library project i can just do everything in AS i guess Sep 14 04:36:16 lasserix, if you're already using intellij there isn't a whole lot of reason to use android studio Sep 14 04:36:43 there's actually next to no reason... Sep 14 04:36:53 other than better gradle integration Sep 14 04:50:50 pfn can i export the module as a library project? seems it stripped my intellij project Sep 14 05:04:25 a lot of sdk sample can not be built on Android Studio Sep 14 05:36:31 Good morning everyone. Sep 14 05:37:31 ffs how long does it take the gallery app or any other content provider to realise that a resource/file is not there Sep 14 05:38:44 Lorenz9 morning, 6.38am here :) almost bed time Sep 14 05:39:10 7:38 here! Still awake or just woke up? haha Sep 14 05:39:20 still Sep 14 05:39:57 fighting with things that I neither comprehend or have any real means to solve :) Sep 14 05:41:57 I also have a tendency to stay awake at night doing shit Sep 14 05:42:11 I try to avoid it though Sep 14 05:42:44 In fact I never really wake up at this time of the day, it's just that I couldn't sleep :P Sep 14 05:42:55 So watcha worried with? Sep 14 05:44:16 mms and t-mobile Sep 14 05:44:27 the last problem I have left to fix Sep 14 05:44:38 but quite a large problem it is Sep 14 05:44:54 should be fairly immediate stingray Sep 14 05:45:18 not sure I follow ? Sep 14 05:45:29 "ffs how long does it take the gallery app or any other content provider to realise that a resource/file is not there" Sep 14 05:45:44 lasserix oh that, yeah mine does not..been hours Sep 14 05:45:46 that question doesn't make sense to me Sep 14 05:45:49 nexus 5 4.4.4 Sep 14 05:46:00 can you be more specific Sep 14 05:46:11 did you register a content observer? Sep 14 05:46:13 well I delete an image with ES file manager Sep 14 05:46:29 the gallery app still lists it Sep 14 05:47:35 not a massive issue, just didn't know I would have to account for it thats all Sep 14 05:47:41 mine does it automatically Sep 14 05:47:56 just took a picture, switched to es file, deleted it, switched back and it was gone Sep 14 05:47:56 nexus 5 ? stock ? Sep 14 05:48:07 yeah Sep 14 05:48:33 crap… cheers for testing… going to have to re-flash/reset or something Sep 14 05:48:47 well cool, that just leaves this huge mms problem :) Sep 14 05:49:07 what's your mms problem? Sep 14 05:49:28 well just with 1 carrier T-Mobile US Sep 14 05:49:37 I get a 400 response fail Sep 14 05:49:54 but no meaningful info why Sep 14 05:50:10 or rather the logs that would show why are obviously server side Sep 14 05:50:45 ahh Sep 14 05:51:14 and I could spend a day or so blind shooting to figure it out, but 1, not on t-mobile and 2. not in the US Sep 14 05:51:38 2 quite big problems there …. hence the questions about adb through ssh tunnels earlier Sep 14 05:53:05 quite good, already have users that are willing to allow me access to their own machines to have a go at solving it….1 even phoned t-mobile as a customer with a list of questions about it :) Sep 14 05:53:11 * StingRay_ was touched Sep 14 05:54:07 ah, remote diagnostics Sep 14 05:55:22 ever tried it g00s ? Sep 14 05:55:33 I would have thought things like this would be common now Sep 14 05:55:47 or some tools would exist to make it … possible Sep 14 05:56:16 StingRay_ does crashlytics have some tools for this ? Sep 14 05:56:33 not that I'm aware Sep 14 05:56:45 hm Sep 14 05:57:07 nice product suggestion though :) Sep 14 05:57:24 i thought you were using it O.o Sep 14 05:57:54 crashlytics yes Sep 14 05:58:31 I mean a product suggestion for the team, remote rt-debug tool Sep 14 05:59:57 the only thing i have atm is a preference burried to enable diagnostics and email me a file Sep 14 06:02:47 which is kinda lame ; should look into something better Sep 14 06:07:39 crashlytics sucks, it doesn't have any tools... Sep 14 06:08:17 StingRay_ and the problem is on a user's phone, and you're trying to get more info on it Sep 14 06:08:49 problem is outlined in the logs on the server Sep 14 06:08:57 that I have not a chance in hell of getting to Sep 14 06:09:06 logs on the server ? Sep 14 06:09:25 yeah, there will be a detail of the accept deny error on the mmsc Sep 14 06:09:38 just not given in the error response Sep 14 06:10:10 so I wanted a users phone on the network to just start and try 101 things to see if I could get anywhere Sep 14 06:14:13 the closest i ever came to remote instrumenting / logs was to have mqtt client in the app which talked to test.mosquitto.com; all the logs were intercepted and thrown there. you can subscribe to that device and read them, and issue commands Sep 14 06:14:38 test.mosquitto.org Sep 14 06:15:20 what i did as i wrote a slf4j wrapper around mqtt basically Sep 14 06:15:59 the logs that I have or can have access to are not going to help much, it's more a machine gun approach to various attempts I would fire at the server to test responses. Something that is not realistic unless I'm attached to the device :( Sep 14 06:16:00 then in the app you have a tree of commands like /command/mms/create Sep 14 06:16:16 cause I just dont know what I would be looking for Sep 14 06:16:29 well yeah, you need to issue a command to yout app Sep 14 06:16:42 so in that case, you send the command to the mqtt broker , and your app listens for it Sep 14 06:16:52 well anyhow, i never finished it Sep 14 06:17:02 not something anyone is going to whip up in a weekend Sep 14 06:17:16 but i probably should finish it Sep 14 06:17:33 really I need to speak to mmsc server admin at t-mobile, ask them what they have changed Sep 14 06:17:52 it's only in the last 2 months Sep 14 06:18:06 maybe their plan is f'd :D Sep 14 06:18:39 plan ? Sep 14 06:18:53 phoen plan, could they have dropped texting messaging ? Sep 14 06:18:56 *phone Sep 14 06:19:26 i mean, could they have a plan with voice and data, but no texting ? Sep 14 06:19:33 is it for everyone using tmo ? Sep 14 06:19:39 oh this is not a single user Sep 14 06:19:46 it's all users of my app on T-Mobile Sep 14 06:20:59 but annoying that it's "just" t-mob Sep 14 06:21:11 so far :) Sep 14 06:21:33 StingRay_ for an app like this, it might be good using some testing service Sep 14 06:21:43 if only Sep 14 06:22:00 already spent way too much on it Sep 14 06:22:34 half a mind to take a holiday over there and get a phone while I'm there Sep 14 06:22:36 :) Sep 14 06:23:43 I have high hopes for this ssh tunnel stuff though Sep 14 06:23:55 half way though talking a user on how to set it up Sep 14 06:23:56 ssh tunnel ... to where ? Sep 14 06:24:03 to their phone Sep 14 06:24:19 coupled to their computer Sep 14 06:24:28 that is on t-mob :) Sep 14 06:25:04 cause there is also a usb > eth product for remote usb connections but not read good things about it Sep 14 06:25:10 oh yeah that reminds me i have to check out mosh Sep 14 06:25:24 but have seen a few (meaning 2) about success on ssh tunnel Sep 14 06:34:17 hm JuiceSSH has mosh support Sep 14 06:38:04 Can someone help me figure out how to send a picture from Android to my django server via POST? I don’t know how I’m supposed to do it Sep 14 06:41:33 misingnoglic thats way too broad , what specific issue are you having ? Sep 14 06:41:51 * StingRay_ asks that hoping the issue is not "I have not learned anything about it yet" Sep 14 06:42:23 hmmm I will swap you problems, I have a POST problem too :) Sep 14 06:42:35 anyone introduce me a android book for beginner? Sep 14 06:43:14 StingRay_: So I’m at a hackathon working with an android guy, and he’s trying to send me an image as a byte array output string Sep 14 06:43:19 but it gave him a memory error Sep 14 06:43:38 it’s just a simple POST thing and I doubt it should be this complicataed Sep 14 06:43:50 I read if you are using bitmaps for a canvas, you should decode them in onResume and recycle them in onPause, can't you just decode them in oncreate? Sep 14 06:44:23 It’s a picture from the camera if that helps Sep 14 06:44:50 misingnoglic so you are sending maybe 4mb of base64 string ? Sep 14 06:45:14 yeah Sep 14 06:47:26 it was going at like 80 megs tho Sep 14 06:47:46 misingnoglic: what class you using to post? Sep 14 06:48:24 we were trying to use byte array output string Sep 14 06:48:27 but that didn’t work Sep 14 06:48:41 but I’m not sure how else it’s supposed to be handled Sep 14 06:48:44 no i mean to do the post Sep 14 06:52:22 http://pastebin.com/MU37KaXM Sep 14 06:52:30 here's how i do a put with a json object Sep 14 06:52:35 have tested it up like 100 mb works Sep 14 06:52:58 tho a lot of people will tell you to use okhttp which you probably should ;p Sep 14 06:53:03 use okhttp Sep 14 06:56:34 haha Sep 14 07:19:14 the more i have to deal with fragments and activities the more i want to say fuck it and just use raw views Sep 14 07:30:43 C'mon, you're at least halfway there! Sep 14 07:32:58 desmin88 i thought you were going to try that mortar library Sep 14 07:33:09 yeah Sep 14 07:34:00 do eeeet ! Sep 14 07:40:28 My favorite is the activity <-> fragment onBackPressed bullshit Sep 14 07:40:30 such a pain to handle Sep 14 07:49:44 mortar has nothing to do with using raw views Sep 14 08:00:24 Hi, i am playing with fragments + activity tabs. When i close the main activity there is no problems. But when i close a fragment by doing fragmentManager.popBackStack(); and fragmentManager.beginTransaction().remove(fragmentManager.findFragmentByTag(actionBar.getSelectedTab().getText().toString())).setTransition(FragmentTransaction.TRANSIT_FRAGMENT_CLOSE).commit(); The fragment do OnDestroy() and OnDetach() so maybe it worked ..? But in t Sep 14 08:26:54 JakeWharton: it atleast helps you use raw views though, right? Sep 14 08:27:02 no Sep 14 08:27:07 oh Sep 14 08:27:13 then im dumb Sep 14 08:27:45 you can use it with raw views, fragments, activities, whatever Sep 14 08:27:53 oh Sep 14 08:27:59 my god Sep 14 08:28:16 why is it that in 21st century we still have no decent locale change support in API Sep 14 08:28:51 i thought it was limited to primarily raw views, but thats neat it can do more Sep 14 08:30:47 i guess they want the app's ui to be the same as systems locale wise Sep 14 08:31:15 Mavrik: because the International failed... Sep 14 08:33:27 -_- Sep 14 09:05:25 Hi, how can i get rid of spelling checking with a underline red line in Intellij Idea? Sep 14 09:13:17 I'm trying to make a list view with items that expand to show more data when clicked Sep 14 09:13:32 My first thought was expandable list view but that's an array of children Sep 14 10:00:25 Hello there. I want to implement In-app billing for my application. I got that part ready, but i want to make the app download additional files that are unlocked when the purchase is complete. Is there a way to do that from a google service? I got no idea how to achieve that. Any help? Sep 14 10:04:00 Hey, there's a website that showcases a lot of open source custom views or UI elements, I cant seem to find it, do you know it? Sep 14 10:06:21 android arsenal perhaps? Sep 14 10:10:19 something similar.. Sep 14 10:10:38 i need to do some sort of absolute positioning Sep 14 10:10:57 so if you see this - http://puu.sh/byrRz/14dc98fda0.png - I want to position the chckbox at the top of the list item, not below the last view. Sep 14 10:11:00 is that possible? Sep 14 10:11:21 i thought of giving negative margin, but then i dont think it'll stand out at the top as it'll depend upon the content of the other 2 textviews Sep 14 10:11:43 um, yeah, that's not HTML for negative margins to work Sep 14 10:11:54 shmoon_, relatve layout, alignparent right and that's it Sep 14 10:12:09 alignparentleft and below for the two textviews Sep 14 10:12:15 or just use two nested linearlayouts Sep 14 10:14:44 ok this was easy, just had to use a relativelayout and not linearlayout Sep 14 10:14:46 thanks Sep 14 10:21:13 so i added checkedtextview in a listview with choice_mode_multiple. now on tapping the checkbox i wanna make it check/uncheck and later take the items selected and do something with it. Sep 14 10:21:18 some pointers? Sep 14 10:22:48 there must be some event on the listview called when an item is checked/tapped in multi selection mode? Sep 14 10:25:17 Not really, ListView just calls setChecked on the View Sep 14 10:25:28 setActivated if it's not Checkable Sep 14 10:26:26 ok Sep 14 10:26:36 will have to manage in the code then Sep 14 11:25:29 hi all. if i wanted to create a camera app with filters like instagram - will using OpenCV be an overkill? Sep 14 11:35:32 my OnClickListener won't fire. I have many customviews and I am accessing statically elsewhere in my fragment. given a condition I want to add an OnClickListener but I can't get a reference to the activity's context Sep 14 12:04:46 Hi everyone. I am quite new to Android dev but I have experience in C/C++ and also some with Java. I wanted to know if there are any PDF/tutorials I could follow in order to get experience / learn android developpement Sep 14 12:18:04 thms: google Sep 14 12:19:10 MartialLaw: I already done that but there are plenty of tutorials.. just wanted to know if there is a reference or well known course that I could follow, possibly with projects I could import into Android Dev Studio and play around with them. Sep 14 12:27:22 vogella is good Sep 14 12:27:57 http://www.vogella.com/tutorials/android.html Sep 14 12:34:50 is there a way to check listview items apart from using position Sep 14 12:35:03 i actually have a search box involved Sep 14 12:35:11 I'm trying to define a global string variable into @string. But when I use R.string.var_name, an error occurs saying that that line returns an int value instead of String. Does R.string returns an int value ? If yes, do I need to set Integer.toString(R.string.var_name) to get as a string ? Sep 14 12:35:15 so it messes up when i search and then check and clear the earch Sep 14 12:35:21 then incorrect items get checked due to positions Sep 14 12:35:43 nectarys: https://developer.android.com/guide/topics/resources/string-resource.html#string-element Sep 14 12:37:35 is there any one who can run android desktop on docket container? Sep 14 12:37:43 MartialLaw: Thanks :) Sep 14 12:47:50 hi -how do I get junit4 tests to run in android studio? Sep 14 12:48:03 I can't seem to find anything up-to-date on getting the tests to work Sep 14 12:49:19 heloo Sep 14 12:49:28 anybody have worked on payment gateway Sep 14 12:50:20 i need to provide interface in my app through which i can transfer some money from my account to another one Sep 14 12:50:33 but in secured way Sep 14 12:50:46 i have never developed this kind of app Sep 14 12:52:47 Hello there. I want to implement In-app billing for my application. I got that part ready, but i want to make the app download additional files that are unlocked when the purchase is complete. Is there a way to do that from a google service? I got no idea how to achieve that. Any help? Sep 14 12:55:31 Hello, I'm trying to create an application which uses live feed from camera as a background. I have another surfaceview which is drawing to canvas. I have both views in xml layout file where the camera's surfaceview is above the other view. When I start the application it quickly shows the other view and then puts camera preview on top of that. I have tried using bringToFront() function but to no avail. Pastebin to relevant cod Sep 14 12:57:50 What I have found from google so far is that you can decide the view order in layout file, where you put the top view below the background view Sep 14 12:58:43 But I have done that. The other method was to use bringToFront() function for the view which is desired to be in front but that doesn't work either Sep 14 13:03:18 Tobiski, SurfaceView is special (which is explained in the doc) Sep 14 13:03:29 it is not part of the view hiearch Sep 14 13:03:44 it can draw OVER everything or it can be UNDER everything - you can't sandwitch it in Sep 14 13:04:03 you can stack couple of them one over another but they still have to conform to that fact Sep 14 13:07:38 Mavrik: but I have only 2 views, one on the background and one in front. And I don't need to change the order of views at runtime Sep 14 13:08:12 I'm trying to but the camera view under everything but so far with no luck with the methods I mentioned above Sep 14 13:08:32 *put Sep 14 13:10:00 Tobiski: first google result: http://stackoverflow.com/questions/2933882/how-to-draw-an-overlay-on-a-surfaceview-used-by-camera-on-android Sep 14 13:10:38 Tobiski, setZOrderOnTop(false) Sep 14 13:12:04 bourbon: I have found that and have done what the first answer says, but the camera view goes on top regardless Sep 14 13:13:06 dunno what you're doing wrong, then Sep 14 13:13:15 I've never had issues stacking UI on top of a camera preview surfaceview Sep 14 13:14:18 have you done anything with z-ordering? Sep 14 13:16:48 when i switch orientation the video in my videoview starts over, how can i prevent this? Sep 14 13:19:25 bourbon: I haven't. I need to try again with fresh eyes later and maybe spot where I did wrong Sep 14 13:24:26 I'm getting this uncaught exception, can someone help me debugging it? Sep 14 13:24:27 http://pastebin.com/L9ZDvU1a Sep 14 13:24:48 Got i!. Mavrik thanks for that function. I also had to set format of the handler to transparent. But it works now Sep 14 13:26:33 Glitches: https://developer.android.com/reference/android/os/NetworkOnMainThreadException.html Sep 14 13:26:42 "The exception that is thrown when an application attempts to perform a networking operation on its main thread." Sep 14 13:26:54 Just don't do that Sep 14 13:26:56 oh... Sep 14 13:27:24 alright, Thanks! Sep 14 13:28:15 How to use getString() and getApplicationContext() via one helper class, please ? Sep 14 13:32:22 How to use getString() and getApplicationContext() via one helper class, please ? Sep 14 13:36:59 anyone strong in patterns?... having 5 classes implementing a interface.. and having a different class just working with the interface.. and as such dynamically be able to work with all 5 classes and treat them as one Sep 14 13:37:06 is that strategy pattern? Sep 14 13:37:14 or is it factory.. Im confused Sep 14 13:38:48 How to use getString() and getApplicationContext() via one helper class, please ? Sep 14 13:39:07 nectarys: Please do not spam your question Sep 14 13:39:08 getString on what? Sep 14 13:39:23 Ask and wait 15-30 minutes. If no answer, ask again Sep 14 13:39:46 if you need a sub class to retrieve information it doesn't have.. like textView.getString() ... you need to pass it along to that class/method Sep 14 13:39:59 public HelperClass (TextView tv) Sep 14 13:40:20 get it from your xml, and pass it to the method or constructor Sep 14 13:40:25 and then have it retrive information there Sep 14 13:42:26 is that what you are asking? Sep 14 13:53:00 I'm using google analytics and added an event. is there a way to test this manually on my local machine's emulator and check out the generated reports? Sep 14 13:53:43 ebay down? Sep 14 13:54:46 GEEGEEGEE: seems so. cant login too Sep 14 13:58:43 should I just use a different profile? Sep 14 14:05:33 how does List var = new ArrayList; help over ArrayList var = new ArrayList; ? Sep 14 14:05:39 siilarly with Set and HashSet ? Sep 14 14:05:59 shmoon_: ArrayList implements List Sep 14 14:06:06 so yes Sep 14 14:06:24 yeah but I could just do the latter? Sep 14 14:06:29 most examples contain former that confuses me :S Sep 14 14:07:08 you can do both.. Sep 14 14:07:12 it doesnt really matter Sep 14 14:07:45 ok thats whar I wanted to know, doesnt really matter :D Sep 14 14:08:23 if you do the first, youll only have access to methods defined in List, not the ones from arraylist Sep 14 14:09:01 can I dynamically display a frame or something on an ImageView.. like imagine I want someone to click a picture and if they click the right one.. I want it to get a frame of light green Sep 14 14:09:02 but it doesnt really matter in this case since you rarely see any methods in arraylist that are not in List Sep 14 14:09:16 um but the version of the method used willbe the overridden one from arraylist, right ? Sep 14 14:09:58 hmmm I suppose I could use padding and set a background color Sep 14 14:09:59 ? Sep 14 14:10:02 I'm talking to myself Sep 14 14:10:05 got it..thx P3nnyw1se Sep 14 14:10:09 no problem Sep 14 14:10:10 shmoon_: classic java inheritance :) Sep 14 14:11:28 java.util.List is an interface, so it only defines method stubs. Sep 14 14:11:39 that are implemented in arraylist then. Sep 14 14:12:21 but if arraylist would define some method that has not been defined in List interface, and you'd do List list = new ArrayList(), you couldnt use that method afterwards without casting list to arraylist Sep 14 14:12:31 ok thank you Sep 14 14:12:31 because your code dont know its an arraylist then Sep 14 14:43:04 List = ArrayList is advisable over ArrayList = ArrayList because interface usage is preferred over a specific implementation usage, unless the specific situation calls for specific implementation usage; basically once the object is created you're not supposed to know or care about the implementation and only use what the interface gives you Sep 14 14:47:52 if making a request for 45 items to a database, do I have to do that on a background thread? Sep 14 14:49:11 sweltch: Is it over network or local? Sep 14 14:49:20 if it's network then you have to Sep 14 14:49:21 any network databasing.. yes definetly Sep 14 14:49:38 How to use getString() and getApplicationContext() via one helper class, please ? Sep 14 14:49:44 actually Glitches Sep 14 14:49:49 you dont have to.. you should.. :P Sep 14 14:50:02 P3nnyw1se: You can't start network processes on the main thread Sep 14 14:50:09 so you have to Sep 14 14:50:20 hmm pretty sure I did it once in a singleton.. will look Sep 14 14:50:26 nectarys..you just keep spamming that question Sep 14 14:50:32 I answered it 20 minutes ago Sep 14 14:50:38 or tried too..you never gave feedback Sep 14 14:50:43 P3nnyw1se, what was you answer please ? Sep 14 14:50:56 P3nnyw1se, I think that I haven't seen that, sorry ! Sep 14 14:51:08 you have what like a textview .. and you want a help class to get the text in it? Sep 14 14:51:22 Glitches, no it is local Sep 14 14:51:42 sweltch: Then you don't have to Sep 14 14:51:46 nectarys, your question doesn't make much sense, either elaborate or post some code Sep 14 14:51:50 won't make a difference Sep 14 14:51:54 Glitches, but should I? Sep 14 14:52:04 sweltch: Yes, you should Sep 14 14:52:06 P3nnyw1se, I'm just tried to set some helper methods on another class, which can parse @string into strings using getString and get the current context of the application Sep 14 14:52:07 everyoen says I/O on main is bad Sep 14 14:52:28 sweltch, the number of records is irrelevant, if whatever you're doing slows down or freezes the UI noticeably then you should Sep 14 14:52:29 nectarys.. if you want another class to work with information that the first class has.. Sep 14 14:52:37 it's just a matter of common sense Sep 14 14:52:39 you need to pass it to the other class.. eg. in the constructor Sep 14 14:53:03 like lets say you have a TextView and you want another class to deal with it Sep 14 14:53:29 new ClassName(textView) ... you get the textView .. Sep 14 14:53:36 pass it to the other class.. and let it deal with it Sep 14 14:53:45 P3nnyw1se, there is not another possiblity to deal with ? Sep 14 14:53:48 no Sep 14 14:54:08 well there is a silly way Sep 14 14:54:16 actually no Sep 14 14:54:18 ravilov, but, by extending Activity class, that works Sep 14 14:54:37 yes but an extended activity is not a "helper class" Sep 14 14:55:12 if the AsyncTask produces a result, what is the best way to communicate this to a fragment, via global variables? Sep 14 14:55:28 I would definetly pass it to the other class.. in methods or constructor Sep 14 14:55:39 sweltch, invent a callback, like MainActivity.onDataReady() or something Sep 14 14:56:00 ravilov, then how to use startActivity from a helper class ? Sep 14 14:56:46 nectarys, if a "helper class" is in fact what it's supposed to be, then like P3nnyw1se is telling you Sep 14 14:57:48 if you pass an argument of huge size is Java smart enough not to pass the whole thing but rather a reference to it? Sep 14 14:58:08 java *never* passes arguments by value Sep 14 14:58:15 unless it's of a primitive type Sep 14 14:58:34 (this is something that could have been easily googled) Sep 14 14:58:34 what you can do is.. set a new object to it Sep 14 14:58:34 in fact, I'm trying to define a class for MenuItem methods to make them more maintainable. isn't the best way to deal with ? Sep 14 14:58:57 set the reference to a new object and use that object Sep 14 14:59:16 nectarys, you're too vague, it's hard to tell if what you're doing is the best way or not Sep 14 14:59:57 why would you ever want to use startActivity from a helper class Sep 14 15:00:20 because he wants his menu items to start activities Sep 14 15:00:28 MainClass -> send info -> Helper ..... Helper -> Reponse -> MainClass ... MainClass(do the work) Sep 14 15:01:01 what.. seems to be the officer? ... problem... Sep 14 15:02:34 nevermind the fact you can assign intents to menuitems straight in the xml ;) Sep 14 15:02:42 whats the rule of a public static variable, if it has been assigned a value and then it is assigned null, when will that old structure be GC:ed? Sep 14 15:02:56 P3nnyw1se and ravilov thank you so much ! Sep 14 15:03:36 Even I had lke no idea of that ravilov.. and I used android for like a few weeks Sep 14 15:03:40 which in programming is a lifetime Sep 14 15:04:17 sweltch, any object that's reference count is gone to zero will be a GC candidate. what do you mean by "the rule"? Sep 14 15:04:51 I dont understand that question, but its interesting Sep 14 15:05:10 arent you talking about overwriting a válue? in that case the old value should be garbage collected right away Sep 14 15:07:49 In order to update client side sqlite database, i need to send some amount of json data to the phone. To reduce the failures&retries with bad connection, i want to split the data into multiple calls each containing some of the database rows to update. Does anyone have experience on what is a good size of chunks? Sep 14 15:09:14 no option on just syncing the database on the client on startup? Sep 14 15:09:43 if there's going to be connectivity issues, it can happen with any chunk size Sep 14 15:10:29 ravilov: yes but the chunks arent dependent on each other. so if i have 10mb of data, and can split them into 1 mb the chance of connection timeouts is smaller Sep 14 15:10:40 and the user can work with 10% of the data :) Sep 14 15:10:57 in that case, can the user work with 0% of data? :p Sep 14 15:11:02 also update on startup is not an option. I need it as a service doing it in background Sep 14 15:11:16 ravilov: no.thats the point :) Sep 14 15:11:43 if i need to update the info on 1000 rows, and it fails, the data of 1000 rows is old Sep 14 15:12:11 if i do it in packs of 100 rows part after part, the operation has a better option to succeed Sep 14 15:12:53 no I get your point, but I'm used to work with transactions (either everything fails or nothing fails), so I don't understand how can having just a fraction of the data be acceptable :) Sep 14 15:13:05 working* Sep 14 15:13:18 ravilov: its acceptable if the data doesnt depend on each other Sep 14 15:13:56 for example thing of a database containing wikipedia entries. It doesnt matter if entry X is 1 week old or not if you want to view entry Y Sep 14 15:14:00 think* Sep 14 15:15:09 dunno, I guess you could try splitting it up into logical chunks, whatever their size Sep 14 15:15:39 thats what i want to do. Im just thinking of what would be a good number for chunk size Sep 14 15:16:30 seems like i have to do some research with device being on edge connection.. Sep 14 15:29:05 I'm having this line of code : anim0 = ObjectAnimator.ofFloat(textViewArray.get(0), "translationX", 0f, 480f); and then animatorArrayList.add(anim0); where animatorArrayList is -> public ArrayList animatorArrayList Sep 14 15:29:11 and it gives me NPE :( Sep 14 15:30:09 How can I figure our what version of java my app is running on? Sep 14 15:33:19 gottaGO: Did you intialize your List? Sep 14 15:35:37 canvs2321-, public ArrayList animatorArrayList = new ArrayList(); like this ? Sep 14 15:36:29 goto the line it tells you the NPE happened on & follow that Sep 14 15:47:38 >Freenode passwords compromised Sep 14 15:47:41 well fuck Sep 14 15:49:43 Lorenz9: at least no someone knows my pw. Because I dont Sep 14 15:50:01 set it once at autologin and forgot Sep 14 15:50:11 haha Sep 14 15:50:17 You could e-mail the hackers asking for your password Sep 14 15:50:49 should do that, yeah Sep 14 15:55:48 Hello, why can't i find the gps app called "skobbler" in google play? Sep 14 15:57:28 diverdude: -> #android Sep 14 15:57:41 danijoo, they dont answer Sep 14 15:58:17 this is for developers.. we create shit... like I just made a calculator that adds 2 numbers and gives an output Sep 14 15:58:21 you wouldn't understand Sep 14 15:59:10 P3nnyw1se, hehe ok ;) yes its to advanced.... adding 2 numbers...that sounds really advanced. Sep 14 16:00:03 danijoo.. whats the problem here.. my irony is too weak or he isn't catching it... need an unpartial judge Sep 14 16:00:35 your irony is pretty weak actually Sep 14 16:00:38 Glitches, your app is not runing in a java vm at all Sep 14 16:00:46 I think he's aware of the advanced level of programming we're doing here Sep 14 16:00:53 I for one made a window appear when you click a button!!!! Sep 14 16:01:04 just because you do your code in hava doesn't mean it ends up being java or is executed as java Sep 14 16:01:18 are you saying diverdude that reading this line "this is for developers.. we creat eshit.. like I just made a calculator that adds 2 numbers" Sep 14 16:01:28 seemed without irony? Sep 14 16:01:37 ravilov: uhm, what? Sep 14 16:02:15 exactly what I said. what is unclear? Sep 14 16:02:16 ravilov: Just wanted to know if I could use lambda functions since they just introduced in java 8 Sep 14 16:02:22 no Sep 14 16:02:29 mmm lambada functions Sep 14 16:02:33 setLeg(left) Sep 14 16:02:40 ... Sep 14 16:02:41 lambda Sep 14 16:02:53 ;) okay I will be quiet for a while Sep 14 16:03:28 your app has nothing to do with hava, Glitches. what android uses is roughly based on java 1.6 though, if I remember correctly Sep 14 16:03:54 o.O Really? Sep 14 16:04:07 also, the best way to know if you can do something is (surprise!) to try Sep 14 16:04:08 The more you know.jpg Sep 14 16:07:09 P3nnyw1se, yes..that is actually pretty low on irony. Sep 14 16:07:25 how to format datepicker 's output to "dd MMM yyyy", please ? Sep 14 16:08:32 nectarys.. I had to go from american standard to european at one point Sep 14 16:08:37 and I ended up just doing it myself.. Sep 14 16:08:51 you know.. just substring move it around and bum Sep 14 16:08:53 :/ Sep 14 16:09:12 substring(last4) = year .. 4-6 = month Sep 14 16:09:18 construct the output you want Sep 14 16:09:19 Seriously, americans and their systems Sep 14 16:10:00 because I'm using SimpleDateFormat on each date sended back from the db. And, here I'm trying to store a datepicker's output :/ Sep 14 16:10:16 P3nnyw1se, sorry but that is horrible advice Sep 14 16:10:27 Its not really an advice just told him what I did Sep 14 16:10:35 nectarys, SimpleDateFormat, and please start using google Sep 14 16:11:48 ravilov, SimpleDateFormat doesn't take as input dd/MM/yyyy Sep 14 16:14:30 ravilov, new SimpleDateFormat(getString("dd MM yyyy")).format(dateOfExpirationTextView.getText().toString().trim()); Sep 14 16:14:54 new SimpleDateFormat(getString("dd MM yyyy")).format("01/01/2014"); Sep 14 16:15:06 this sends back an error message Sep 14 16:15:15 Illegal argument exception Sep 14 16:17:03 where exactly in the docs does it say .format() accepts a string? Sep 14 16:18:28 Out of curiosity, where is everybody from? Sep 14 16:18:42 the internet Sep 14 16:19:12 xD Sep 14 16:21:33 Why is the rudest one the one who lives where I was born? :( Sep 14 16:21:42 And yes I now realized I can do /whois Sep 14 16:22:05 I am from Denmark Sep 14 16:22:07 why are you being a stalkish creeper? Sep 14 16:22:23 ravilov is flattering himself, he would love a stalker Sep 14 16:22:33 what does it matter where anybody is from? Sep 14 16:22:42 Curiosity. Sep 14 16:23:20 If you didn't want me to know you should've told me when I publicly asked you :P Sep 14 16:23:37 It's not like it matters. Sep 14 16:23:38 you're making no sense Sep 14 16:23:41 you're also very strange Sep 14 16:23:45 surrounded by far westerners Sep 14 16:24:00 Ravilov you're pretty rude I must say Sep 14 16:24:06 I don't see how Sep 14 16:24:45 this is not the singles night, nobody is here to make friends or acquaintances Sep 14 16:25:00 Thanks for putting the reason for me Sep 14 16:25:15 Lorenz9: a/s/l? Sep 14 16:25:38 14/f/br Sep 14 16:25:41 :D Sep 14 16:26:37 Anyways it says nobody that it's forbidden to be nice and chat when there's not much activity around Sep 14 16:26:41 nowhere* Sep 14 16:27:00 nice != creepy Sep 14 16:27:11 Asking where somebody is from != creepy Sep 14 16:27:20 actually it is Sep 14 16:27:35 Then we have different definitions for creepy Sep 14 16:27:36 <----- creepy.get(i) Sep 14 16:27:44 also, as far as I know a channel being quiet was never a good excuse for spamming Sep 14 16:27:55 Oh god he knows I'm from Frankfurt! I feel so raped Sep 14 16:28:04 you're a frankfurter? Sep 14 16:28:17 GERMANNS!!! Sep 14 16:28:21 I'm spamming now? You see? That's why you're rude. You're just making it harder than it is Sep 14 16:28:51 Yes I'm a Frankfurter although I haven't been in Germany for years so... technically I'm not a Frankfurter anymore. Sep 14 16:28:54 ravilov is just oldie in here.. you have to understand he deals with shit all day Sep 14 16:29:19 I was never rude to him, I don't understand why I deserve this bad treating. Sep 14 16:29:38 this is quite the nice channel.. try going to java... Sep 14 16:29:43 they will show you rude Sep 14 16:29:45 P3nnyw1se, I don't appreciate your comments, please stop Sep 14 16:29:52 I'm trying to get rid of the title bar. If I change my app theme to Theme.NoTitleBar or put in my activity requestWindowFeature(Window.FEATURE_NO_TITLE); I get a runtimeexception Sep 14 16:30:17 taking it out on me ay.. fair enough Sep 14 16:30:45 ravilov let's start from scratch. You don't like talking about anything not related to programming, I get it. Was just trying to break the ice around here because I'm new. From now on I won't adress you for such things Sep 14 16:30:56 P3nnyw1se: he certainly isn't an oldie around here - only been around a couple of months Sep 14 16:31:08 martiallaw... what says the runtime? Sep 14 16:31:17 error Sep 14 16:31:37 Lorenz9, it's not just me though, as you will learn if you stick around Sep 14 16:31:55 so no point in getting personal for no reason Sep 14 16:32:06 It's cool it's not like I wanted to know anything else than the location of people Sep 14 16:32:14 It's just that I like knowing that fact, doesn't harm anybody. Sep 14 16:32:21 you would think that Sep 14 16:32:27 ravilov: chill out, darling Sep 14 16:32:35 yes dear Sep 14 16:32:52 MartialLaw: pastebin the traceback Sep 14 16:32:54 getting weird..afk Sep 14 16:33:11 ah its some NPE. I see now Sep 14 16:50:10 hmm Sep 14 16:50:24 where do i put midi files? Sep 14 16:51:38 P3nnyw1se http://developer.android.com/guide/topics/resources/providing-resources.html Sep 14 16:52:12 raw I suppose then Sep 14 16:54:35 you kille Steve Irwin btw Sep 14 16:54:38 d Sep 14 16:55:12 well, me and stupidity share the blame Sep 14 16:55:55 wont argue with that Sep 14 16:58:08 he had it coming Sep 14 16:58:12 (irwin) Sep 14 16:58:31 we all do Sep 14 17:05:31 ok so i know this should be straightforward but i can't get rid of the title bar in my activity. I've set it to fullscreen and Window.FEATURE_NO_TITLE but the title bar remains Sep 14 17:06:13 That's because it's an action bar Sep 14 17:07:01 do you mean the action bar, or the status bar? Sep 14 17:07:15 (an action and a status walk into a bar...) Sep 14 17:07:58 So I'm using an ActionBar for tabs but above that there is the "title bar" that has the application name and little android icon Sep 14 17:08:12 hi Sep 14 17:08:36 Is it bad to give my AsyncTask an Activity as input? Sep 14 17:08:39 if I have instance of ExoPlayer, do I have to release it before loading another file or do I have to make new ExoPlayer object? Sep 14 17:09:05 (i only have 1 Activity in my app) Sep 14 17:10:37 so the "app title bar" is part of the actionbar? Sep 14 17:11:03 MartialLaw, "app title bar" is not a known entity :) What do you mean? Sep 14 17:11:40 how i described it earlier. the part of the actionbar that has the app title (hence my lovely description) and the logo Sep 14 17:11:43 or do you actually mean a Doughnut title bar??? Sep 14 17:11:51 anyone has tried getting an httpsurlconnection to the steam web api and knows if there are private interfaces plus depending methods i can't see on the given API List? http://api.steampowered.com/ISteamWebAPIUtil/GetSupportedAPIList/v0001/?format=json Sep 14 17:11:58 https://developer.android.com/guide/topics/ui/actionbar.html Sep 14 17:12:08 Yes, the action bar has icon and title Sep 14 17:12:16 then yes, the action bar Sep 14 17:12:29 yeah thats what i said. how can i get rid of that part Sep 14 17:12:43 actionBar.setDisplayShowTitleEnabled(false); Sep 14 17:12:43 actionBar.setDisplayUseLogoEnabled(false); Sep 14 17:12:50 close but doesn't remove it completely Sep 14 17:13:13 choose a theme that doesn't have an action bar Sep 14 17:22:49 MikeWallaceDev_: i need the actionbar Sep 14 17:23:32 Then you get that bar Sep 14 17:23:38 any android studio nerds, who can tell me if I can ignore certain warnings.. Sep 14 17:23:42 The tabs may or may not be in its own bar Sep 14 17:27:08 P3nnyw1se you will have to be more specific Sep 14 17:29:51 well like there is a spelling error here... android studio is so friendly it warns me about that Sep 14 17:29:59 what if I want that warning to go away, but I want to keep the spell checker on Sep 14 17:34:03 alt+enter should let you suppress it Sep 14 17:34:51 guys if i have a listview and i want to display a fullscreen version of that individual item, the way to go is with an activity and not a fragment for that. right? Sep 14 17:35:29 sorry MartialLaw .... I have to go :( good luck Sep 14 17:35:31 cliffreich you can do it either, it's more a design decision Sep 14 17:36:24 cliffreich view, dialog, dialog(themed)Actvity, fragment, fragmentDialog, Activity … Sep 14 17:36:53 there are always many ways to approach something … the best way depends on you more than anything Sep 14 17:37:36 ALT Enter doesnt let me surpress it Sep 14 17:38:26 oh i see Sep 14 17:48:05 get a MediaPlayer warning tha tdoesn't effect the result Sep 14 17:48:08 "Should have subtitle controller already set" .. Sep 14 17:48:18 stackOverflow tells me I shouldn't care about this warning Sep 14 17:48:28 but its annoyning and clustering up my logcat.. anyone knows this? Sep 14 17:49:56 P3nnyw1se make a filter in AS to exclude it Sep 14 17:50:29 ok, probably not a questoin you could answer... but, shouldn't be intelligent enough to tell if its a video playback or sound playback Sep 14 17:52:21 MartialLaw, so yeah, I was thinking about you in the shower and... Do you have true in your style? That's what make the Actionbar automatically go awya with the status bar Sep 14 17:53:25 Awwww, I was thinking about you in the shower too babe. Sep 14 17:53:44 :D Sep 14 18:04:47 Is it bad to give my AsyncTask an Activity as input? (I have only 1 Activity) Sep 14 18:06:29 test Sep 14 18:08:49 Test successful Sep 14 18:09:40 (•_•) Sep 14 18:09:40 ( •_•)>⌐■-■ Sep 14 18:09:40 (⌐■_■) Sep 14 18:28:23 hello guys, how do you do 3d image sprites simulation in an imageView? thanks Sep 14 18:37:22 mihai_c I have been an 3d effect TD/Artist for some 16+ years and don't even understand the question :) Sep 14 18:39:15 StingRay_: thanls for the attention; i want to do some simple graphics that looks 3d and i only know about imageView Sep 14 18:39:40 StingRay_: i was thinking about animated gif Sep 14 18:40:51 not sure anyone can help you… "simple graphics" is a little too open to fairy dust and wizards magic … you can get opinions here if you ask very specific questions with details Sep 14 18:40:53 StingRay_: i was thinking of doing 3-5 images of the same 3d character in different positions and build an animated gif and used it in an imageView Sep 14 18:41:12 ah ok, so you want frame animation Sep 14 18:41:32 StingRay_: how do i make a 3d sprite in android? Sep 14 18:41:32 maybe drawn onto a canvas…there are simple tutorials on d.android.com if you search Sep 14 18:41:47 3d sprite <--- Sep 14 18:42:02 you are asking how to make a 3d 2 dimensional object Sep 14 18:42:04 StingRay_: what keywords should i use for search? Sep 14 18:42:11 kind of Sep 14 18:42:27 ok Sep 14 18:43:06 read http://developer.android.com/guide/topics/resources/animation-resource.html#Frame Sep 14 18:43:15 maybe what you are after Sep 14 18:44:34 StingRay_: i think this is it, thanks a lot Sep 14 18:44:43 mihai_c: use an AnimationDrawable Sep 14 18:44:46 you can set your frames Sep 14 18:44:49 and then apply an animation Sep 14 18:45:01 to the imageview which uses background as the animationdrawable Sep 14 18:46:00 otherwise to do 3d modeling you're going to have to use opengl Sep 14 18:46:02 >16 Sep 14 18:46:05 tsk Sep 14 18:46:12 >16+ years Sep 14 18:46:12 wow Sep 14 18:46:33 yeah, bit old Sep 14 18:46:59 "Pro" was the first word that came to mind, but if you want to call it that :P Sep 14 18:47:40 I think Pro is something to do with how you conduct yourself rather than any notion of experience or standing Sep 14 18:48:00 I know many "Pro's" that dont really know that much and can do even less ;) Sep 14 18:48:24 or specially in what "was" my industry Sep 14 18:48:29 lasserix: thanks; i guess this has limitations right? what should i use in the future? opengl? i used directx some time ago on desktop? something like that? Sep 14 18:48:57 Posting on someone's behalf: I am currently helping an important Project on GitHub which is looking for talented Android Developers (https://secupwn.github.io/Android-IMSI-Catcher-Detector/) and need to know what /dev/radio_feedback is for. Is it a "replacement" for /dev/radio ? Sep 14 18:49:14 mihai_c: you making a game? Sep 14 18:49:40 on android yes Sep 14 18:49:43 mihai_c: if you do 3d sprites rendered to bitmap/sprite sheet you can do frame animation using canvas in a surfaceview, Sep 14 18:49:52 you probably want to use surfaceview and draw the bitmap sprites Sep 14 18:49:57 not use imageview Sep 14 18:49:59 https://play.google.com/store/apps/details?id=com.probitorg.gladis&hl=en Sep 14 18:50:16 it has poor graphics Sep 14 18:50:23 hmm Sep 14 18:50:30 i want to animate it a little bit and give it a 3d look and feel Sep 14 18:50:31 well IDEALLY you use surfaceview Sep 14 18:50:37 not imageview Sep 14 18:50:39 to do this Sep 14 18:50:54 im sure you can get away with using imageviews, but that's not really how you should do it Sep 14 18:51:12 I guess you're right, although I don't think you'll ever see a pro without experience. I'm so jealous haha Sep 14 18:51:33 well its a fine line, because everything moving is just a loop frame animation so you can do imageview with animation drawable, but surfaceview is the real way to make a game like this Sep 14 18:52:11 Lorenz9 you know i'm not talking about android dev thought right ? I'm a noob in that Sep 14 18:52:13 zigsphere, that sounds awfully close to being a recruiting post - please refrain from making such offers Sep 14 18:52:15 opengl would probably be overkill, but what i meant if is you have 3d models you can render them with opengl then apply real transformation and you don't even need frames... but that's not soemthing you'd do in a game like this Sep 14 18:52:36 I was talking about coding in general Sep 14 18:52:51 lasserix: so no opengl complications, ok Sep 14 18:52:52 mihai_c: you're best bet is to output a sequence of frames like from blender or whatever, then draw them as bitmaps into a canvas of a surfaceview, Sep 14 18:52:57 Of which I'm a noob in. Sep 14 18:52:58 Lorenz9 well coding I'm a bit noobish then Sep 14 18:53:04 canadiancow: apologies, someone isnt able to access this channel and is having issues Sep 14 18:53:15 zigsphere: they have to register their nick Sep 14 18:53:20 I'm so noobish it's painful Sep 14 18:53:27 canadiancow: they are on their phone or something Sep 14 18:53:29 sure, but whether it's you or them, don't say "which is looking for talented Android Developers" :P Sep 14 18:53:41 If I have a completely 100% bricked phone that won't boot, anyway I can get the ESN off it? Sep 14 18:53:45 canadiancow: np Sep 14 18:53:48 oh StingRay_ i made a lil’ youtube video of my video-in-listview thing that I finally worked out the kinks on: https://www.youtube.com/watch?v=O1paNAL7XnM Sep 14 18:54:02 what a royal pain -.- Sep 14 18:54:26 hehe StingRay you are the star of zigsphere's article Sep 14 18:54:34 JacobTabak nice, I like it :) Sep 14 18:54:55 gonna open source Sep 14 18:54:57 the video control Sep 14 18:54:59 cool Sep 14 18:55:03 Coooool @Jacob Sep 14 18:56:13 lasserix what ? Sep 14 18:56:47 oh a thread to cell phone….blaablaaaa :) Sep 14 18:56:51 StingRay is the name of the device used to do MITM attacks by using a fake cell tower to intercept transmissions, believe that is how they caught Mt Mitnick Sep 14 18:56:52 threat* Sep 14 18:57:01 haha lasserix Sep 14 18:57:03 *Keven Mitnick Sep 14 18:57:26 nice, killer of erwins , a fast car, a submarine in tv show and now a security threat :) Sep 14 18:57:37 Is it right that I have to have my Google Play dev console account and AdMob accounts to be connected to the same Google account? or can I have then separate? Sep 14 18:57:44 irwin* Sep 14 18:58:08 JacobTabak: what problems did you have getting that to work? Sep 14 18:58:09 Your name is slowly building up epicness Sep 14 18:58:44 lasserix: recycled textureviews were showing frames from the previous video, loading the first frame without preparing the video (bc it causes lag), and dealing with cleaning up mediaplayer resources Sep 14 18:58:56 Is it bad to give my AsyncTask an Activity as input? (I have only 1 Activity) Sep 14 18:58:58 also there was an issue with the textureview rendering content outside of its boundaries Sep 14 18:59:40 troned: as long as you make sure the doInBackground part will stop running if the thread is interrupted (if (Thread.currentThread().isInterrupted() { return; }} so you don't leak the reference to the activity Sep 14 18:59:47 part of what took a lot of time was that i had to maek a few pull requests to our favorite image loading lib Sep 14 19:00:02 troned: can you post your async task code? Sep 14 19:00:28 JacobTabak: ahh cool, well good job Sep 14 19:00:38 looks pretty good esp if you are goign to make it available Sep 14 19:01:18 i will! Sep 14 19:01:24 prly not for a bit though Sep 14 19:01:34 i wasted too much time on OS this week :P Sep 14 19:02:00 i put together this other thing yesterday but nobody seems interested Sep 14 19:02:13 https://github.com/jacobtabak/Fragment-Switcher Sep 14 19:03:27 FragmentStateArrayPagerAdapter -> FragmentArrayPagerAdapter? Sep 14 19:03:29 what's the state mean? Sep 14 19:03:31 ;p Sep 14 19:03:40 well viewpager has 2 adapters Sep 14 19:03:47 fragmentpageradapter and fragmentStatepageradapter Sep 14 19:03:55 the first one retains the fragments, just detaches/reattaches them Sep 14 19:04:05 the second one destroys them and just keeps their instance state Sep 14 19:04:22 ahh Sep 14 19:04:23 the array is just a convenience so you don’t have to extend the pager, you can just supply it an array of fragments Sep 14 19:04:36 this lib works with either model Sep 14 19:04:49 are you sure you want it to be in the timehop subdomain? Sep 14 19:05:17 its just in our maven group Sep 14 19:05:32 i will probably move it if I registerer another group Sep 14 19:05:59 why do you ask? Sep 14 19:06:22 either that or i could move the repo to timehop Sep 14 19:06:23 lasserix: http://lpaste.net/111053 Sep 14 19:06:34 my AsyncTasks (3 of them) Sep 14 19:06:39 well i am assuming timehop is your app you are working on Sep 14 19:06:47 troned: pass context, not activity Sep 14 19:06:58 which is not the library repo, if you see what i mean Sep 14 19:07:23 lasserix: timehop is the company i work for, we have like 8m users, and we’re trying to recruit engineers, so they kind of want to get their name in the opon source community Sep 14 19:07:31 its not just an app Sep 14 19:07:40 JacobTabak, why? I need to cats it to MainActivity later Sep 14 19:07:59 oh i see Sep 14 19:08:07 yea dont do this troned Sep 14 19:08:12 ahh i see Sep 14 19:08:42 doh Sep 14 19:09:42 troned: if you must do something like this, pass the fragment manager and context into the constructor of the asynctask Sep 14 19:10:08 but this is wayy to tightly coupled wiht your activity to be in its own class Sep 14 19:11:31 I have one activity and several fragments Sep 14 19:12:10 At least I am not blocking the UI... Sep 14 19:12:32 asynctasks are so clunky Sep 14 19:12:39 i havent used one in like 18 months :O Sep 14 19:13:03 It does not seem right to put it in the Activity since the Activity is just here because I need one. I have a MinmenuFragment and then I have CHooseLevel,Highscores and About, and deeper 1 step I have GameFragment Sep 14 19:13:59 so troned - the problem with this is that you have public class that can only be used by one activity, and it makes assumptions about the activity, like what the res id of the fragment container is Sep 14 19:14:15 it’s just (no offense) bad design Sep 14 19:14:27 No problem, I am learning Sep 14 19:14:32 I want to do it right Sep 14 19:14:41 you want to keep your classes independent Sep 14 19:14:45 I am aware it is not perfect, that is why I ask :) Sep 14 19:14:50 pass in only what you need, and everything you need Sep 14 19:15:01 I know I want that but it is not always so easy Sep 14 19:15:02 like in this case, i’d pass the context, fragmentmanager, and res id of the fragment container Sep 14 19:16:15 And if I do that, is it safe? Sep 14 19:16:30 well.. it still gives me a bit of a bad vibe because you’re trusting this asynctask to make decisions about which fragments shoudl be displayed Sep 14 19:17:16 seems like something that only your activity should have control over Sep 14 19:17:20 troned: http://pastebin.com/6wdAnSzk Sep 14 19:17:51 dont fuck with your fm from the async task call back to the UI thread Sep 14 19:17:56 err Sep 14 19:18:10 thats pretty nice lasserix Sep 14 19:18:25 i mean obv he’s on the UI thread, but yeah, the activity should be the thing doing fragment transactions Sep 14 19:18:29 not an asynctask onpostexecute Sep 14 19:18:58 i should really use more weakreferences Sep 14 19:19:11 troned: oops Sep 14 19:19:12 http://pastebin.com/MxdnKnPc Sep 14 19:19:14 use that one Sep 14 19:19:21 the previous one doesn't do the callback to the UI thread Sep 14 19:20:15 ahh there's a missing closing ) on line 30 between the } and ; Sep 14 19:21:02 i would do this in rxjava :) Sep 14 19:21:05 and i just copy pasted onInitializeComplete from the onPostExecute so you probably can clean that up to do the proper stuff with the fm Sep 14 19:21:23 lasserix: you play with rxjava at all? Sep 14 19:21:29 i have not yet Sep 14 19:21:55 i work at a company they didn't want me to incorporate dependencies so... Sep 14 19:21:56 i’m very new Sep 14 19:22:04 to it Sep 14 19:22:09 lasserix: that is a total bummer Sep 14 19:22:23 but apparently i've been doing the same kinda of thing since i started doing android programming ;p Sep 14 19:22:32 how resource intensive are RSSurfaceViews ? Is it OK to have 20 of them on a screen at the same time ? Sep 14 19:22:41 Ok ty. The AsyncTasks are run on different events altogether but I will see what I can make of it Sep 14 19:22:50 troned? Sep 14 19:23:48 in that paste run -> doInBackground and the onPostExecute -> the h.post (new Runnable onInitializeComplete ) Sep 14 19:24:18 troned but really the database stuff should be handled by its own stuff in the database class Sep 14 19:24:23 and the bitmap by the bitmap resource class Sep 14 19:24:34 though you can reuse the background execution logic Sep 14 19:24:54 but they shouldn't be done in the same kinda thing, ie, what if you need to reload just the bitmaps? Sep 14 19:24:57 or just the highscores? Sep 14 19:25:05 What I pasted was 3 different classes Sep 14 19:25:20 oh Sep 14 19:25:20 doh Sep 14 19:25:23 sorry i didn't se e;p Sep 14 19:26:16 troned well Sep 14 19:26:29 the key is to not use your activity to change UI from within the async task Sep 14 19:26:53 use a callback to the activity to do UI changes from onPostExecute, but not in postexecute Sep 14 19:28:12 I have an Activity and a MainmenuFragment, the fragment is reay where the logic is Sep 14 19:28:25 yeah that shouldn't be the case either Sep 14 19:28:33 fragments should just do ui and pass back input Sep 14 19:28:41 technically not even pass back input Sep 14 19:29:02 but you want to encapsulate your game logic outside of the fragment, just let the fragment call the appropiate thigns on that when you need to Sep 14 19:29:18 though why are you using fragments for a game like this? Sep 14 19:30:19 err nevermind, but you can just make a class that handles on your fragment transitions Sep 14 19:30:23 you know my game? Sep 14 19:30:35 then have that as the observer to the asynchronous task completion Sep 14 19:30:49 instead of doing the fragment logic within the async task Sep 14 19:30:53 I prefer fragments o ver activities because they switch faster Sep 14 19:31:18 yeah i know but you should really follow the principle of single responsibilty Sep 14 19:31:29 particularly with fragments else your code turns to sphagetti Sep 14 19:32:03 well troned probably a better way to set it up is make a class called like FragmentStateTransition Sep 14 19:32:26 then copy all your postExecute code into that class and apply the correct thing to do by passing an enum of which state to transist for Sep 14 19:32:40 and then use an interface like from the example in my code which would be your FragmentStateTransition class Sep 14 19:32:52 as the observer, which you call from onPostExecute Sep 14 19:33:03 then your FragmentStateTransistion class can live inside your activity Sep 14 19:33:18 could even be a non-static nested class so you have access to the activity Sep 14 19:38:59 does anyone know if the in-app billing API v3 is backwards compatible with v2 and v1? Sep 14 19:40:42 So maybe my fault is that I have used my fragments as activities. My activity has no logic almost. Sep 14 19:40:54 my fragments have little to a lot of logic Sep 14 19:41:33 troned: fragments are just units of UI Sep 14 19:41:47 the "businzess logic" shouldbe abstracted from the fragment, like the activity, for your game Sep 14 19:42:08 the activity should hold the logic? Sep 14 19:42:24 by logic i am talking about all the game stuff Sep 14 19:42:31 implement design pattern Sep 14 19:42:34 that should really be independent of fragment, activity, etc Sep 14 19:43:31 like if you look at BadLogic GDX game framework the activity classes contain like 3 lines at most Sep 14 19:43:48 lasserix: ty. it will be to much to refactor, I want to release this thing... then I will take knowledge with me to my next app. Sep 14 19:44:12 troned: yeah that's why for now what you can do to start down that path is make a class that handles the proper intialization/transitioning of fragments Sep 14 19:44:54 then do something like onPostExecute { mFragmentStateManager.transitionFor(GameStateEnum.GameFragment) } Sep 14 19:45:28 you can even make this a nested non-static class in your activity class so it has references to your activity Sep 14 19:45:43 in case you need to get stuff from the activity or whatever Sep 14 19:46:13 (tho it is probably better to make it a top level so you don't build unnecessary dependencies) Sep 14 19:52:56 lasserix, you don't like AsyncTask? Why not use it? You use a Runnable instead. Sep 14 19:56:16 you are not really using async task Sep 14 19:56:21 since you are not returning anything Sep 14 19:56:39 you are just using it for the ui callback, which is fine but that's why i used the runnable instead Sep 14 19:57:07 the handler h = new handler(Looper.getMainLooper()) h.post(new runnable { run () { //happens on ui thread } } does the ui callback Sep 14 19:58:28 lasserix: is there something dangerous with my AynscTasks though? Could they lead to leaks? Sep 14 19:58:56 they only lead to leaks if they a) have static references to your activities b) never finish executing Sep 14 19:59:27 since you dont use doInBackground() { while(true) { // do something } } you don't have to worry about b Sep 14 20:00:07 Is it possible to have a list of items and be able to click on an item and have the item expand to show more Sep 14 20:02:00 lasserix, ty. Sep 14 20:02:40 It is great to get input from someone like you. Sometimes IRC is not very constructive but you know what you talk about and can explain in it a nice way Sep 14 20:02:48 same goes to JacobTabak Sep 14 20:03:01 :) Sep 14 20:05:25 np good luck Sep 14 20:05:33 i'm getting this error on one computer and not on another: https://bpaste.net/show/a9a2bcd58e1b . folder 'inscape' isn't supposed to be compiled in any way, it's just there to keep svg's that make up icons. what do ._. Sep 14 20:09:36 Probably shouldn't keep non-android folders in android folders anyway Sep 14 20:11:54 someone suggested it here Sep 14 20:12:15 but, what's gradle doing with svgs, anyway? Sep 14 20:14:05 It's likely from aapt Sep 14 20:14:28 Probably scans entire res/ (dunno why only on some of your pcs) Sep 14 20:14:39 Just make an art/ folder next to src Sep 14 20:14:47 or something Sep 14 20:15:12 lasserix, are you a professional android dev? Sep 14 20:15:24 I guess so i am paid to do it ;p Sep 14 20:19:45 hello all Sep 14 20:20:38 I'm using a WebView for OAuth processing and when it comes to the 'final initializaiton' after my initial intialization process, I get an error sayin gthat webview refused to display in a frame due to same origin set. Sep 14 20:20:53 any ideas? Googling didn't really solve this problem although I see others with the same issue Sep 14 20:29:21 SimonVT: will do that, thanks Sep 14 20:35:12 hey, does everyone know how to use Retrofit and RxJava to continue to execute a request with updated query strings until a certain condition is met (based off a return response). Or if this isn't the place to ask, a better room to ask this question in? Sep 14 20:37:54 QubeZ: is that the exact error message? Sep 14 21:06:43 pieces029: try the retrofit tag on stackoverflow, they monitor that Sep 14 21:07:01 "they" Sep 14 21:07:18 those cowards Sep 14 21:07:21 sitting behind their tag Sep 14 21:08:25 The kind of people that don't want to interact with their users in realtime Sep 14 21:15:59 lol.. Sep 14 21:45:24 Anyone here use Android Studio on Ubuntu? i cannot create a new device, any idea why? Sep 14 21:45:39 xlarge screens, is that tablets only? Sep 14 22:11:30 do I need a service to continuously run some instructions in backgroun ? Sep 14 22:13:01 xar not sure thats a great structure to a question Sep 14 22:13:13 but in short and probable, yes Sep 14 22:14:56 Someone here that is good at math and physics? What would be the formula for moving a ball with input from the accelerometer? Sep 14 22:15:52 wow, this is the day of ambiguous questions Sep 14 22:18:57 troned the easiest way to do it is recognize that the accelerometer values go from -10 - 10 Sep 14 22:19:50 then you can just do acceleromatervalue (dt) + v = v and p = v (dt) + p Sep 14 22:19:59 this models the accelerometer value as a force with unit mass Sep 14 22:20:02 since f = ma Sep 14 22:23:21 lasserix: that is exactly what I do but if I roll the ball in a circle it is more of a pentagon Sep 14 22:23:45 are you using SENSOR_DELAY_GAME ? Sep 14 22:23:55 and that could be for a lot of reasons Sep 14 22:24:50 lasserix, FASTEST actually, I have been experimenting with both + filtering Sep 14 22:25:05 game is fast enough ~ 120 "fps" Sep 14 22:25:29 + low pass filter Sep 14 22:25:42 you need to make sure your step size is small enough Sep 14 22:26:16 ie delta p is not too large, Sep 14 22:28:51 nice http://psaravan.github.io/FileBrowserView/ Sep 14 22:29:00 damn thing should be baked into the OS Sep 14 22:35:15 is it possible to pass some arguments to @string ? Sep 14 22:35:26 it's okay Sep 14 22:36:59 Is it possible to send notifications from a pure NDK app or do I need to call out to java? Sep 14 22:37:27 I'm running into an issue with the google SignInButton.class and can't find sources Sep 14 22:37:59 I'm using android studio and a pre-built activity with the login activity and google plus Sep 14 22:38:00 lasserix, problem is the lowpassfiler doesnt do uch good. I use a test if step < 0.01 then dont move, that solves the noise problem pretty good. To achieve the same with a LP filter I need alpha so high that it delays the input to much Sep 14 22:38:16 brand new project, use that as the default activity, and it doesn't work Sep 14 22:38:23 it worked last night Sep 14 22:39:08 troned: hmm sounds like your lowpass filter is not correct, are you sure you are using LP not highpass? Sep 14 22:39:25 i belive for the standard LP filter lower alpha means more smoothing, not more Sep 14 22:40:53 lasserix, yes can paste my code Sep 14 22:43:04 lasserix, you are right, lower ALPHA => more smoothing Sep 14 22:49:37 huh really surprised that Android 2.3.3 - 2.3.7 is somewhat still relevant given the "category" an app is to reside Sep 14 23:35:20 is there a java data structure that takes N items and throws out the last one when a new is inserted? Sep 14 23:36:03 is it possible to get MenuItem view from a searchview ? Sep 14 23:36:18 the one it belongs to Sep 14 23:58:30 troned should be easy for you to keep track of Sep 14 23:59:01 a frined of mine stepped on a ray once when teaching windseufing Sep 15 00:02:18 yeah well my nick comes from 20 years ago and does not relate to the fish :) Sep 15 00:02:52 if you really want to know to what it refers https://www.youtube.com/watch?v=E06cNv55jTs Sep 15 00:02:54 :) Sep 15 00:02:58 you have been on irc for 20 years? Sep 15 00:16:12 hey guys! I wanted to ask you if you know any person or service I could reach out in order to review my app, and point out what could be made better, what works, what does not, etc. Some constructive feedback basically Sep 15 00:18:23 my app just relaunches when I tery to debug it. it stops in my sensor thread then it realunches as i leave it Sep 15 00:21:51 rockbyte beta testers ? build a group on g+, has helped me lots Sep 15 00:22:41 StingRay_: how many people do you have in the community? Sep 15 00:22:47 3 Sep 15 00:22:55 well I did have over 1000 Sep 15 00:23:11 but ejected everyone and only allowed core people back in Sep 15 00:23:18 right now keeping it at 100 Sep 15 00:23:55 but I will routine eject people who I feel there is not point to :) Sep 15 00:24:11 how did you build up the community? Sep 15 00:24:12 I think I have a nice core of maybe 40 who really contribute and test Sep 15 00:24:42 forums Sep 15 00:24:53 little announcement in the app too Sep 15 00:25:12 could you give some examples of which forums you use? Sep 15 00:25:38 well just xda really Sep 15 00:25:53 what app is it ? Sep 15 00:26:10 cause that kinda dictates where is best Sep 15 00:27:02 also, how long did it take you to build it up? Sep 15 00:27:07 the community I mean Sep 15 00:27:22 and are you very active in the community? Sep 15 00:27:55 rockbyte what app is it ? Sep 15 00:28:56 rockbyte Sep 15 00:28:57 the app. Sep 15 00:29:11 StingRay_: the one I am to have feedback on? Sep 15 00:29:21 yeah and that you want a community for Sep 15 00:29:38 the one you are asking about how to build and where to ask etc Sep 15 00:30:00 cause like I say that would depend very much on the target and average demographic of user Sep 15 00:30:15 its wikiquiz Sep 15 00:30:28 its quite simple Sep 15 00:30:40 ah then no, xda not really best Sep 15 00:30:57 you need more casual forums Sep 15 00:31:21 what is your app might I ask? Sep 15 00:31:49 Smart Messenger… tis in beta atm Sep 15 00:32:01 few major hurdles to get over Sep 15 00:32:28 :O Sep 15 00:32:30 new ones all the time….but it fits xda cause of the customisability in the beta version, theme editor, settings etc Sep 15 00:32:34 finally the identity of your app is revealed Sep 15 00:32:42 but for a casual quiz, not sure what forums Sep 15 00:33:26 hum Sep 15 00:33:40 rockbyte ooo ok, how many current installs you got ? Sep 15 00:33:46 and whats the engagement like ? Sep 15 00:34:31 I hate reviews like that "Goood ummmaahaaa - 1star" Sep 15 00:34:37 StringRay_: close to 2000 thousand now Sep 15 00:34:52 total Sep 15 00:34:59 but active, 300 Sep 15 00:35:12 maybe have an in app announcement asking for people to join the beta g+ Sep 15 00:35:14 and engament, you mean ratins and fidelity? Sep 15 00:35:29 "if you want to contribute" kinda thing Sep 15 00:35:51 the thing is Sep 15 00:36:18 desmin88 tell me about it… dont even know what that means Sep 15 00:36:32 googles app review system is really fucked Sep 15 00:37:04 it is, I dont mind atm though, as app is very beta… and I'm changing stuff all the time :) Sep 15 00:37:13 i dont think I have enough criitcal mass for a community Sep 15 00:37:27 rockbyte thats it you dont need…you want core Sep 15 00:37:40 like I said I have 1000 beta testers Sep 15 00:37:49 well, I think it was 1700 or so Sep 15 00:38:03 only 100 were active enough for me to give a sh*t Sep 15 00:38:15 I see Sep 15 00:38:26 but then I realised the smaller the better… different types of user etc Sep 15 00:38:29 how often do they post, say, feature requests / bugs Sep 15 00:38:33 all covered with active memebers Sep 15 00:38:58 depends, I have a bug db… I post, they chat to me on hangouts Sep 15 00:39:01 skype etc Sep 15 00:39:21 one was even on the phone to t-mobile US for me for 2 hours yesterday while online with me on hangouts Sep 15 00:39:29 so I could try and get some info I needed Sep 15 00:39:30 :) Sep 15 00:39:49 I rather have some1 like that over 1000+ tw*ts Sep 15 00:39:56 :D Sep 15 00:40:02 its okay, you can swear on the internet Sep 15 00:41:39 this creates an integer: android:defaultValue="10". how do i make it a string? (and why does android convert it to string and give warnings about it) Sep 15 00:42:00 StingRay_: how long do you have your app for? Sep 15 00:42:10 sqrrl: what are you using this in Sep 15 00:42:28 having someting to eat…but too long…it's my first app that I cant seem to finish Sep 15 00:42:31 :) Sep 15 00:42:37 desmin88: res/xml/preferences.xml Sep 15 00:43:41 sqrrl: You should be using strings in your string.xml Sep 15 00:43:51 so add an entry in there for your default value, and it should be a string Sep 15 00:44:24 can't i just somehow mark this as a string?.. Sep 15 00:44:29 i have to ask you this as well: how many hours per week (for example), would you say that you spend on the app? handling community, bugs, regression test, developing, etc Sep 15 00:44:36 dont be lazy sqrrl. Sep 15 00:44:48 >_< Sep 15 00:45:12 that says a lot about you as a developer. Sep 15 00:45:15 what bugs me most is that it's an integer preference Sep 15 00:45:42 it just doesn't make sense to have a string as a default value for an integer preference Sep 15 00:46:09 you can make an integers.xml file Sep 15 00:46:11 and reference itthere Sep 15 00:46:35 i'd probably be getting the same warning, then Sep 15 01:27:29 hello yall Sep 15 01:33:06 hey detachYo Sep 15 01:36:47 i asked this yesterday, but suddenly dropped connection. Sep 15 01:37:32 How do I go about creating login/registration feature, that sends/receives data from server? Meaning not in app db login/reg, but a web server Sep 15 01:37:47 Anyone got any tutorials I can start with Sep 15 01:38:32 detachYo I would imagine that is one of the more common things that google search would be best for Sep 15 01:38:42 as in there will be 100's of tutorials Sep 15 01:38:50 StingRay_: I know, i searched but there so many, and each one is different Sep 15 01:38:57 My main questino is this: how do I store sessions in the app? Sep 15 01:39:08 It's a no problem for me to make calls to my server, receive json and parse Sep 15 01:39:30 like tokens? Sep 15 01:39:39 token/session/cookie Sep 15 01:39:39 yes Sep 15 01:39:51 do I store global variables or use preferences? Sep 15 01:39:54 store the token Sep 15 01:40:00 dont store the token on the web server Sep 15 01:40:01 in db? Sep 15 01:40:19 thats a "no-no" Sep 15 01:40:37 account manager is good for storing tokens Sep 15 01:41:09 just not on the web server Sep 15 01:41:11 a token per accoount, if that is your use case Sep 15 01:42:20 What do you mean rockbyte ? Sep 15 01:42:37 does the token get stored on my server? Sep 15 01:42:42 no Sep 15 01:42:50 detachYo: if you login, say, using oath Sep 15 01:43:01 and receive an auth token from the server Sep 15 01:43:13 you can store it using account manager Sep 15 01:43:27 you create an account and store the token, refresh token, etc Sep 15 01:43:37 is account manager an API? Sep 15 01:43:46 yes Sep 15 01:44:05 its availalable in the android framework Sep 15 01:44:19 not too difficult to use as well Sep 15 01:45:14 when you say create an account, that refers to on my server, not something with Google, correct? Sep 15 01:45:27 yep Sep 15 01:45:44 awesome Sep 15 01:45:46 i'll take a look Sep 15 01:45:50 thanks a lot Sep 15 01:45:51 an account does not have to be related with a google account Sep 15 01:46:12 if you look at your settings, and the accounts you have for twitter, facebook, etc Sep 15 01:46:32 they are all managed via account manager, if i am not mistaken Sep 15 01:55:07 got to go Sep 15 01:55:17 StingRay_: thanks for the help :) Sep 15 01:55:18 take care rockbyte Sep 15 01:55:34 detachYo: see ya! Sep 15 02:00:36 If I don't want to use AccountManager, what is the next alternative? Sep 15 02:00:59 why dont you want to use it Sep 15 02:02:27 it seems good for your use case Sep 15 02:03:03 its too sophisticated for what I am trying to do Sep 15 02:03:08 i just need to capture email address and log user in Sep 15 02:03:11 thats about it Sep 15 02:03:32 dont be lazy Sep 15 02:08:02 haha Sep 15 02:08:04 lol Sep 15 02:08:05 i don't think i am Sep 15 02:08:09 i am just being realistic Sep 15 02:08:16 i’ve never used that other than to get other accounts Sep 15 02:08:30 its really only useful if you need to share your account data with other apps Sep 15 02:08:31 JacobTabak: how do you usually go by about this? Sep 15 02:09:11 store session data in shared preferences Sep 15 02:09:55 then you expose session data Sep 15 02:10:05 desmin88: how so? Sep 15 02:10:08 to rooted users only Sep 15 02:10:11 shared preferences arent really private Sep 15 02:10:13 and you can encrypt it if you really want Sep 15 02:10:32 detachYo: rooted devices can see the data in sharedprefs as xml Sep 15 02:10:48 what if I only store status of the user Sep 15 02:10:53 logged_in/logged_out Sep 15 02:11:04 then a rooted user could easily change that variable Sep 15 02:11:15 and make your app think hes logged in when hes not Sep 15 02:11:27 tbh, i dont think its worth concerning yourself over Sep 15 02:11:34 unless you have sensitive data Sep 15 02:11:46 i don't care about that, they won't do anything special haha Sep 15 02:11:57 the app would crash ;) Sep 15 02:39:15 I'm trying to run the XDA focal camera app on my phone, while I get the following error: http://codepad.org/RFIPxTJI Sep 15 02:41:39 what's the meaning of "Link of class 'Lorg/cyanogenmod/focal/FocusManager;' failed"? I see the FocusManager.java is just there **** ENDING LOGGING AT Mon Sep 15 02:59:59 2014