**** BEGIN LOGGING AT Thu Sep 12 02:59:59 2013 Sep 12 03:12:49 any good guide on using alpha_8 bitmaps? Sep 12 03:14:46 hope this works http://android.okhelp.cz/create-monochromatic-bitmap-android-example/ Sep 12 03:16:37 Goody, GitHub now does two-factor authentication. Sep 12 03:16:46 And it works with the google authenticator thingy. Sep 12 03:31:10 okay I have alpha_8 mask and some bitmap Sep 12 03:31:28 how do I best put alpha mask into that bitmap? Sep 12 03:46:18 hm, new AS Sep 12 03:47:00 hey Sep 12 03:47:21 * BHSPiMonkey just discovered Activities are destroyed/recreated upon device rotation. Harsh. Sep 12 03:47:50 if that happens, how do it keep entered data like text Sep 12 03:47:52 BHSPiMonkey been that way for a long time :) Sep 12 03:48:02 it saves state automatically for any view with an id Sep 12 03:48:48 ok Sep 12 03:49:05 g00s: the issue is more that I'm developing my first real android app as of this week :P Sep 12 03:49:18 well I got 2 nicely set textures, a nicely made mask Sep 12 03:49:20 so I'm learning everything regardless of how long it's been the case Sep 12 03:49:36 and I have no idea how to mask texture to paint it on canvas Sep 12 03:50:13 anyone here selling an S4 in good condition Sep 12 03:50:27 please dont try to buy/sell stuff in here Sep 12 03:50:29 screwsss: it's really not the right place to ask Sep 12 03:50:43 can you point me in the right direction then Sep 12 03:50:44 I think there's buy/sell boards on xda and cyanogenmod. Sep 12 03:50:57 If I make single half visiable circle mask, I can't paint texture in such way result is half visiable textured circle Sep 12 03:51:01 XXCoder: I haven't actually done it with ALPHA_8, but i think it'd be the same. Use a paint with a PorterDuffXfermode (PorterDuff.Mode.DST_OUT to keep transparent areas or DST_IN to keep opaque areas) then use canvas.drawBitmap(mask, 0, 0, maskPaint) Sep 12 03:51:06 could u give me the xda link Sep 12 03:51:15 www.ebay.ca Sep 12 03:51:18 .com* Sep 12 03:51:32 wow i've been here a year and i still type .ca :) Sep 12 03:51:46 heh cana Sep 12 03:51:50 you still haven't changed your nick to americancow either :P Sep 12 03:52:06 i've actually been considering changing it to my name for a while Sep 12 03:52:14 but then no one will know who i am Sep 12 03:52:18 kevin tried it with both alpha_8 and argb 8888 Sep 12 03:52:18 still no effect Sep 12 03:52:18 canadiancow: ebay=e-xpensive Sep 12 03:52:30 or wrong effect Sep 12 03:54:38 this is more or less what i'm using: https://gist.github.com/teslacoil/52381bc16fa3dc5c0c20 Sep 12 03:55:03 with mMaskPaint having: mMaskPaint.setXfermode(new PorterDuffXfermode(keepTransparent ? PorterDuff.Mode.DST_OUT : PorterDuff.Mode.DST_IN)); Sep 12 03:55:11 kevin okay if I paint 0x00000000 color to some bitmap, will it mean I painted black and alpha in that area set at 0 or paint black * alpha which is zero effect? Sep 12 03:55:42 :o Sep 12 03:55:43 if its latter how do I just paint on alpha channel? Sep 12 03:55:52 it'd depend on the xfermode. but with no xfermode then it'd have no effect Sep 12 03:55:56 oh sorry other kevin Sep 12 03:56:31 i think earthcow sounds better Sep 12 03:56:41 well basically im trying to generate mask real time Sep 12 03:56:53 I dont think I'm doing it right however Sep 12 03:57:37 did anyone manage to find me a decently priced s4 Sep 12 03:57:42 i can take a peek if you gist/pastebin the code Sep 12 03:57:49 a sec Sep 12 03:59:04 canadiancow: you traitor! letting the yanks braindrain us Sep 12 03:59:18 http://pastebin.com/qmi8R8di kevinb Sep 12 03:59:31 c is final canvas that it returns to sender Sep 12 04:00:45 does "p" have an xfermode set? Sep 12 04:00:59 err at the time of setting the color to 0 Sep 12 04:01:44 hmm apparently Sep 12 04:01:51 er apparently not Sep 12 04:02:02 it still dont work though Sep 12 04:02:29 you're goal with the painting of 0 is to make those pixels in the bitmap transparent? Sep 12 04:02:56 well drawmask is dynimaic mask thats constantly being redrawn as it progresses Sep 12 04:03:03 so yeah Sep 12 04:05:06 hrm i wonder if xfermode ignores the paint color Sep 12 04:05:23 so far I see, it just uses alpha channel Sep 12 04:05:58 did you test DST_OUT and DST_IN (individually) before the drawCircle? Sep 12 04:06:26 I just don't see a way to paint direct to alpha channel, for example solid circle in alpha channel Sep 12 04:07:56 the email testimonials I get for qicr are the best Sep 12 04:08:04 " Your irc client is by far the best I've used on Android, and is probably better than any I've used in Windows. If you were to offer a donation version for 1.99, or 2.99 I would gladly pay it." Sep 12 04:09:50 only way I see is to do this is perpixel setup of alpha channel. would be painful per frame Sep 12 04:09:58 nice pfn Sep 12 04:10:43 XXCoder: could you paint onto a single channel bitmap, then reinterpret that single channel later as the alpha channel? Sep 12 04:10:51 (warning: I am *not* a graphics guy ;)) Sep 12 04:10:59 yeah neither am I heh Sep 12 04:11:24 XXCoder, did romainguy make exactly what you're asking about as a demo? Sep 12 04:12:01 if I recall it wasnt, but you got link handy? Sep 12 04:12:06 someone posted this link yesterday or other http://www.curious-creature.org/2012/12/13/android-recipe-2-fun-with-shaders/ Sep 12 04:12:20 pfn: i'll have to check it out, tho i don't irc much from android Sep 12 04:12:49 ahh yeah that one. lemme see how it changes bitmap to alpha Sep 12 04:12:50 basically he demonstrates the use of a single channel bitmap alpha channel shader Sep 12 04:13:07 XXCoder: Paint p = new Paint(Paint.ANTI_ALIAS_FLAG); p.setXferMode(new PorterDuffXfermode(PorterDuff.Mode.CLEAR)); canvas.drawCircle(50, 50, 25, p); Sep 12 04:13:15 tested it and it erases the circle out of the bitmap Sep 12 04:13:59 mode clear hmm so if I clear at 0x02 alpha it would fade a little? lemme test Sep 12 04:14:09 the android docs on porter duff are weak and other references use slightly different names so i always get confused when using them. they're neat though. Sep 12 04:14:38 heh its hard to do something thats weird even among experts when i'm lousy coder lol Sep 12 04:15:09 XXCoder: the ever popular "is this broken because i'm doing it wrong, or because no-one has done it." Sep 12 04:15:14 is there opposite of clear? it adds to alpha Sep 12 04:15:25 dragorn, I irc from Android more often than pc Sep 12 04:15:38 pfn: i bounce everything through a remote server Sep 12 04:15:38 i think the DST_IN and DST_OUT could be used for that Sep 12 04:15:44 on it as we speak Sep 12 04:15:52 dragorn, I use a bnc Sep 12 04:16:02 pfn: so I'd have to set up ssh tunnels; not impossible by any means Sep 12 04:16:05 single presence for all my clients Sep 12 04:16:06 just haven't bothered in a while Sep 12 04:16:23 at some point i was going through so many phones i stopped generating new keys on them Sep 12 04:16:35 pita Sep 12 04:17:07 some day I'll work on android code that doesn't require wacky custom hardware and then I'll actually have users too :P Sep 12 04:17:33 I need users for keepshare Sep 12 04:17:41 XXCoder: looks like CLEAR ignores the paint color, but DST_OUT uses it. so setting the color to 0x80000000 and then using DST_OUT to draw the circle sets the bitmap alpha within the circle to 50% Sep 12 04:18:16 pfn: what's funny is my code w/ the most downloads (at a few thousand) needs a board I *know* there are only about 60 of :P Sep 12 04:18:17 testing Sep 12 04:18:22 pfn: b/c I have to hand solder them still :P Sep 12 04:18:33 dragorn, heh Sep 12 04:18:41 funny Sep 12 04:18:52 pfn: send an email/apk to android police. they do nice weekly round ups of new apps Sep 12 04:19:42 sounds like a good idea Sep 12 04:20:36 lemme update paste Sep 12 04:21:14 if i used keepass rather than lastpass i'd give keepshare a try Sep 12 04:21:22 result is solid blue http://pastebin.com/Gc1cchZL Sep 12 04:21:31 lastpass needs a public API. their mobile app is garbage. Sep 12 04:21:43 I use keepass Sep 12 04:21:52 whgicgh looks like keep ass Sep 12 04:22:36 i think your drawColor(Color.BLUE) is the reason everything is blue :P Sep 12 04:22:47 yeah Sep 12 04:23:00 guys: org.apache.http.client.methods.* has get, post, delete I notice its missing some of the other methods such as delete, patch and put, should I be using this class for restful calls? Sep 12 04:23:01 near bottom it applies mask to drawtext Sep 12 04:23:34 the first one works since it is solid but second should remove some of masking but didnt since alpha is 0 I guess Sep 12 04:23:52 lemme add comments Sep 12 04:24:18 do you know if your drawmask bitmap is accurate? you can save it to disk to debug with drawmask.compress . put it in /sdcard or /data/local/tmp/ and you can easily adb pull it Sep 12 04:24:42 How can I implement a button with a kind of checkbox at the top right corner? that it goes on and off when I click it? Sep 12 04:25:01 I have one image for a normal button, and a small image for the check box mark Sep 12 04:25:50 you can use a ToggleButton with custom drawables Sep 12 04:26:07 http://pastebin.com/mFygQTNu Sep 12 04:26:17 kevin: How do I combine the nine patch of the button thing, with the check box mark image? Sep 12 04:27:18 gavilan2: i'd say make one ninepatch bitmap that includes the checkbox art as well Sep 12 04:27:38 oh heyy found something. reading Sep 12 04:27:49 kevinb: Is there any alternative? Sep 12 04:28:25 http://kevindion.com/2011/01/android-bitmap-blending-color-channels/ Sep 12 04:28:33 there is no alpha though Sep 12 04:28:43 oh later section Sep 12 04:29:09 something I was trying, is I created a relative layout with a button and an image inside, positioned on the top right corner... then I wanted to include that in my layout to use it... The issue I had was that I wanted to put the bottom in a relative layout aligned to the right, and it wasn't working.... Sep 12 04:29:30 is it possible to do that? include a layout that it has a relative layout, and align that whole thing to the right in the place where I'm including it? Sep 12 04:29:51 yep this is what I want. awesome Sep 12 04:29:52 include is supposed to support the layout_ arguments, but I tried the alignParentRight thing and it didn't worked Sep 12 04:31:40 how can i prevent dialogs from closing when the activity is paused? Sep 12 04:34:10 it uses pre-defined mask though dammit heh Sep 12 04:34:16 well time to sleep later Sep 12 04:44:06 can a dialog be reopened? Sep 12 05:05:05 Hi all. I'm trying to understand some JNI code that gets the static method id of an Android class. The function call looks like: "env->GetStaticMethodID(someclass,"activity","()Landroid/app/Activity;"); I don't understand the "activity" method name that's passed to the function. I don't see a method named "activity" in http://developer.android.com/reference/android/app/Activity.html. Does anyone know what passing "activity" as Sep 12 05:05:05 the method name does? Sep 12 05:16:35 I have an Activity that's closely coupled with a Service (which is maintining a socket connection and a bunch of state). What's the best practice for keeping the Activity bound with this service, even when as the Activity gets destroyed and recreated for various reasons? Sep 12 05:16:52 BHSPiMonkey: bind during oncreate Sep 12 05:17:36 dragorn: right, but then once the activity gets recreated (say, when I rotate the device), won't I be re-binding and thus restarting the service as well? Sep 12 05:17:57 BHSPiMonkey: no, the service should stay running until killed excplicitly or by an OOM Sep 12 05:18:01 BHSPiMonkey: and returns the same binder Sep 12 05:18:03 hmm Sep 12 05:18:13 you should be able to issue any number of startservice and binds Sep 12 05:18:25 it'll ignore startservice if it's already running Sep 12 05:18:35 and multiple binds should return the same service Sep 12 05:18:49 so I guess my flow should be, bind on create, then check where we're at and tell the UI to match whatever's going on Sep 12 05:18:53 I bind in oncreate and give it a callback object, when i'm running the service in the same pid Sep 12 05:19:06 the binder holds the callback object until the bind is complete, then passes it to the service Sep 12 05:19:23 and the service calls it during the add so that the activity gets forced to a sane state Sep 12 05:19:46 you'll have to play some games if you're doing aidl / remote service binding but you can get the same effect, you just won't be able to do remote callbacks from the service Sep 12 05:22:04 yeah, there's a lot I'll have to get figured out, particularly with threads and threadsafe communications between the activity and service Sep 12 05:23:01 one method that works well for me is passing the previously mentioned callback object, where the callback functions wrap their execution in runonuithread Sep 12 05:23:21 so the service can say "update device data" and run all the callbacks in a list Sep 12 05:23:42 and the activity code creating the callback just wraps it in the ui thread runner and updates the UI directly Sep 12 05:38:16 hey so how can i launch straight into an activity other than my main? Sep 12 05:44:46 if you're invoking from another app, use the intent for that screen Sep 12 05:44:56 if you always want your app to start on that activity, make that your own Sep 12 05:44:59 your main* Sep 12 05:45:13 by making its intent filter what your current main is Sep 12 05:45:29 DrSheep: Sep 12 05:51:01 hey guys Sep 12 05:51:04 getFragmentManager().beginTransaction().add(fragment) Sep 12 05:51:18 how do I hit some onResume when it's being called back? Sep 12 05:51:52 onResume is never called after remove() Sep 12 05:58:04 wat? Sep 12 06:41:43 jasonmog thanks Sep 12 06:50:11 :O "iPhone 5S: Thieves may mutilate owners in bid to gain access to fingerprint-reading handsets, expert warns" Sep 12 07:00:23 I'm more worried about mutilating myself to change my "password" Sep 12 07:02:44 apple rejected my app seven times last week claiming it was missing iPhone5 assets which are actually present. between that and the new nexus 7 beating the crap out of ipad mini I figured it's time to start developing for android :P Sep 12 07:04:28 Should I be running close() on a database object? Sep 12 07:04:30 siloxid, Sounds about right Sep 12 07:06:37 Where does standard output and standard error go when using Java for Android? Sep 12 07:08:20 System.out and System.err Sep 12 07:12:32 BullShark-Nexus: I think System.out writes to logcat Sep 12 07:13:51 BullShark-Nexus: easy enough to try Sep 12 07:31:12 hi Sep 12 07:32:52 i have a question. can i manage sync app for only email app? Sep 12 07:33:34 i'd like create a Service that stop sync of email app after a determinate time Sep 12 07:41:07 asus transformer t100 $349 - this is getting very interesting :D Sep 12 07:41:32 (quad core bay trail) Sep 12 07:46:06 I have people who want to code projects with me. How can assure a person will not put an app on play and take full credit and profit? Sep 12 07:47:38 nohow Sep 12 07:49:02 So everybody is lone coders (except the ones working in a company)? Sep 12 07:49:22 contract? Sep 12 07:55:41 Hello all! Sep 12 07:55:44 is it possible stop sync of only app such as email app, not gmail no stop all background data but only email app Sep 12 07:55:47 hello. when does the TrafiicStats return UNSUPPORTED? and when it does what is the way around me measure network traffic Sep 12 07:56:09 I'm excited, today is my first day of hosting my irssi screen on my Raspberry Pi! Sep 12 07:56:28 Has anyone used AnimationDrawable.selectDrawable(int idx) successfully? It seems to do absolutely nothing here, or at least not what I thought it would. Sep 12 07:56:35 I want to select a specific frame of my animation Sep 12 07:56:48 alex_PP the people are not local. And they might not have a scanner for the signatures. I've seen digital sigh in adobe but sure that would be valid if the contact was broken Sep 12 07:58:36 BullShark-Nexus: A typical contract would mean you have a laywer and they have a lawyer Sep 12 07:58:48 it's not a good idea to just create a contract of your own and sign it. Sep 12 08:06:56 flexd: thhanks for the info. Sep 12 08:07:59 Or at least use some sort of standard contract (you are hardly the first people wanting to work like this), which you get from a lawyer. Laws are also going to be different depending on where you live :-) Sep 12 08:17:55 Anyone else find that AS sometimes doesn't build all your classes? I occassionally have to do a manual rebuild because I get errors saying that one of my classes isn't there. Sep 12 08:30:17 AS? Sep 12 08:33:31 flexd: Android Studio Sep 12 08:37:52 Oh right, I've noticed that yeah Sep 12 08:38:11 Like sometimes you have to re-edit a XML file and save it again for the generation to work. Sep 12 08:49:35 is normal that if I replace a fragment with another, the layout of the previous one is still attached to the activity layout? Sep 12 08:50:59 hi i have an android project with eclipse, I want to build it with ant, whenever I make a commit.. however when I run ant the structure in bin/ is totally different than when it is build with eclipse... how to build it with ant properly? Sep 12 08:54:03 ohcibi: bin and gen aren't part of source. never count on the contents being there Sep 12 08:54:25 then how to generate the apk file with ant from an eclipse project? Sep 12 08:55:55 i said source. if you're looking for apk it should be in there Sep 12 08:56:09 how does the structure change? Sep 12 08:56:24 jasonmog: there is a classes/ and a res/ directory.. but it seems like it doesnt like the .git directory in there Sep 12 08:56:29 as eclipse also freaks out on it Sep 12 08:57:20 shouldn't there only be a .git directory in the root? Sep 12 08:58:02 jasonmog: i tried to add bin as a submodule.. the boss wants the apk file to be checked in.. i dont.. so i created an extra repo, but it seems like i have to create it outside and copy the apk over Sep 12 08:58:43 have had bad experiences with submodules Sep 12 08:59:02 that doesnt mean they are bad, doesnt it? 8-)) Sep 12 08:59:12 and you can't count on the contents of bin to stay the same from build to build Sep 12 08:59:29 if you need to apk versioned, i'd copy it elsewhere after each build Sep 12 08:59:43 i was only interested in *.apk files.. i ignored everything else.. in theory it should work 8-) Sep 12 08:59:53 but yeah.. i'll copy it elsewhere now Sep 12 09:00:12 it's probably just my misunderstanding of the commands for updating and commiting submodule changes but even so it's too unintuitive to rely on Sep 12 09:00:44 yes, I never used submodule to develop inside the submodule and change stuff and make commits there... i just update references for the main repo Sep 12 09:02:20 but again: how to build it with ant? 8-)) i dont see an apk file if I run ant Sep 12 09:02:34 I updated local.properties properly Sep 12 09:02:48 Uh, any tips on how I should do Sep 12 09:02:56 hangman letter input? Sep 12 09:03:21 I'm not sure I can fit 29 buttons (all letters in norwegian alphabet) on a tiny screen while still having them clickable. Sep 12 09:03:38 flexd: I did it as an excercise in my ios course.. on an iphone it fits 8-)) Sep 12 09:03:44 hehe Sep 12 09:03:47 But how do I arrange them? Sep 12 09:03:52 A gridlayout? Tablelayout? Sep 12 09:03:58 grid i guess Sep 12 09:03:59 I've tried grid now, I can't seem to get them closer :/ Sep 12 09:04:13 I have like 6 buttons now, it won't let me put in more for some reason Sep 12 09:05:36 oh Sep 12 09:05:47 regardless of where I am putting it in the gridlayout it tells me it's cell 1,1 Sep 12 09:12:14 is it a good idea to download sprites images from my server for my android application? Sep 12 09:12:37 Do you mean that every time someone uses the application they will be downloading the assets off your server? Sep 12 09:12:46 If that is the case, no, not at all a good idea. Sep 12 09:13:06 flexd: the thing is that the asset is dynamic, and it changes all the time Sep 12 09:13:13 Hm Sep 12 09:13:20 flexd: every day is a new asset (set of images) Sep 12 09:13:27 it doesn't repeat... Sep 12 09:13:35 Well, Twitter posts fetch a lot of images too Sep 12 09:13:36 so... yes... I need to download it from the server... Sep 12 09:13:51 what I can choose if I download for example 10 images, or a single sprite of 10 images Sep 12 09:13:53 But at the very minimum put it on something like amazon s3 or something Sep 12 09:14:17 it's on a CDN Sep 12 09:14:24 Good. Sep 12 09:14:26 anyway Sep 12 09:14:35 is it a good idea to use a sprite? Sep 12 09:14:37 or not? Sep 12 09:14:58 hm its not the git-directory that is problematic in bin/ its just that running ant from command line and using eclipse is incompatible Sep 12 09:15:04 I do not know, would the resulting single image be huge? Sep 12 09:15:14 flexd: not really. Sep 12 09:15:21 they are icons/thumbnails Sep 12 09:15:23 and I think you would spend more cpu cycles navigating bits of the sprite than just having 10 separate images. Sep 12 09:15:30 Just try it out :D Sep 12 09:15:45 I don't want to implement extracting the sprite :$ Sep 12 09:15:46 another question, what's the best way to profile my app to find which parts are the slowest one? Sep 12 09:15:52 how to run exactly the same ant script that eclipse runs when building android? Sep 12 09:16:12 I have no idea, I've done a bunch of normal development but not much android :-p Sep 12 09:16:17 I try to keep away from java at all times. Sep 12 09:18:11 k Sep 12 09:18:22 Gavilan3, there are several ways of profiling an app Sep 12 09:18:26 There is probably some sort of profiler though Sep 12 09:18:37 Gavilan3, I didn't follow the conversation, what kind of app do you have and what kind of performance issues? Sep 12 09:19:09 Mavrik: I have a shop app... you see a bunch of products... you can buy them... Sep 12 09:19:26 aha. Sep 12 09:19:33 Mavrik: it's snot smooth... when you go to a new activity it takes a while to load... blah blah... Sep 12 09:19:33 Have you gotten to the part where it is actually slow? Sep 12 09:19:41 Or are you just wanting to prepare and pre-optimize Sep 12 09:19:42 flexd: mostly everything :) Sep 12 09:19:49 Gavilan3, ok, to debug slowdowns, traceview is your best option Sep 12 09:20:05 Gavilan3, fire up Android Debug Monior Sep 12 09:20:22 and you'll see a small red button "start method profiling" above the process list on the left Sep 12 09:20:22 Mavrik: I inherit the app from someone elses, and it has a looooooooooooooooooooot of issues... I'm trying to 1. discover them 2. solve them Sep 12 09:20:32 one of the issues is that it's not smooth.... Sep 12 09:20:35 press it, do whatever is slow, press it again Sep 12 09:20:44 and you'll see a nice graph of stuff that's going on :_ Sep 12 09:20:50 great! Sep 12 09:20:57 Gavilan3, http://developer.android.com/tools/debugging/debugging-tracing.html Sep 12 09:21:19 any other tips to find issues with the app and solve them? (I already know about strict mode) Sep 12 09:21:26 there's also systrace which doesn't have such a nice output, but it can profile OS-level stuff (http://developer.android.com/tools/help/systrace.html ) Sep 12 09:21:43 Gavilan3, and there's tons of debug options if you run 4.3 on your device like graphs of GPU performance Sep 12 09:22:00 Gavilan3, also check overdraw: http://www.curious-creature.org/docs/android-performance-case-study-1.html Sep 12 09:22:36 great! any other tip? Sep 12 09:23:02 umm, that's about it, there's bunch of performance tips around :) Sep 12 09:23:13 mostly slowdowns are due to I/O, overdraw and huge layout trees Sep 12 09:23:26 any easy way to detect if I have any memory leak, or I'm doing anything stupid? Sep 12 09:23:44 strictmode and traceview will quickly show it :) Sep 12 09:23:48 as for memory leaks… Sep 12 09:24:08 didn't have alot of problems with those, I just used heap dump in Android Monitor that showed my what's allocated Sep 12 09:24:29 basically the Monitor has bunch of cool buttons that tell you what's goin on with your app :) Sep 12 09:26:04 k Sep 12 09:26:06 thx Sep 12 09:26:39 the monitor is all the stuff under DMMS right? Sep 12 09:26:59 mhm Sep 12 09:27:39 crap.. ddms] Can't bind to local 8700 for debugger :/ Sep 12 09:29:05 flexd that normally means you have 2 ddms connections open Sep 12 09:29:09 like 2 IDEs running Sep 12 09:29:16 well 2 or more :) Sep 12 09:29:22 I haven't but the stupid USB cable I am using to connect my phone has some issues Sep 12 09:29:25 so that might be it Sep 12 09:30:08 Mavrik: Thanks! Sep 12 10:23:38 within the ./main/java/com.example.packagename folder can you create a folder within there like com.example.packagename/module?? Sep 12 10:38:35 zquad: http://davin.50webs.com/research/2005/npij.html Sep 12 10:39:58 thanks Sep 12 10:40:00 android studio 0.2.8 was released but the download on http://developer.android.com/sdk/installing/studio.html still has the same build number as 0.2.7 Sep 12 10:40:10 where to get 0.2.8? Sep 12 10:40:35 Help > Update Sep 12 10:40:36 Chais_: why are you so much on a rush? :) Sep 12 10:42:18 zquad: I don't have write access to /opt as user, which is good Sep 12 10:42:30 fdans: I likve on the cutting edge ^^ Sep 12 10:42:53 s/likve/live Sep 12 10:42:54 razor cutting edge Sep 12 10:43:12 Hi! I'm using a RotateAnimation to rotate an ImageView with animation. The result is really bad on a Nexus 7. Rotation is not fluid. Maybe there is another way of rotating with animation? Sep 12 10:43:17 android studio is nice Sep 12 10:43:20 they keep making it better and better Sep 12 10:44:00 Eeeeeh you people and your fancy ide, I will stick to notepad thank you very much Sep 12 10:44:08 lelol Sep 12 10:44:11 lol* Sep 12 10:44:18 i usually stick to vim for coding, but not with java Sep 12 10:44:21 java pretty much requires an ide Sep 12 10:44:30 but for ruby, python, never needed one Sep 12 10:44:33 zquad: way too hightech. use edit instead Sep 12 10:45:16 :) Sep 12 10:45:50 vim > all Sep 12 10:45:56 yup Sep 12 10:46:24 but I have to say I really like the syntax completion an IDE has to offer Sep 12 10:47:20 is there an svn/git for android studio Sep 12 10:47:21 ? Sep 12 10:47:43 yes Sep 12 10:47:59 VCS - enable version control Sep 12 10:48:01 then pick what you want Sep 12 10:48:10 it has git/svn/mercurial Sep 12 10:48:40 no, not svn/git support for android studio. an svn/git repo to download android studio from Sep 12 10:49:31 back in my day we did it all in assembly. And it was FAST. I mean blazing fast. Not like today with you guys and your fancy libraries and editors and stuff. Hell this one guy used to write his code on punched cards. Not to be outdone, this new guy Kansas hand wrote his code... Sep 12 10:51:02 Chais_, https://android.googlesource.com/platform/tools/adt/idea/ Sep 12 10:59:18 is there a guide for migrating from eclipse to studio? Sep 12 11:00:40 sylon: http://developer.android.com/sdk/installing/migrate.html Sep 12 11:45:21 can somebody please explain how to register a intent for calling it by it's uri in a clickable link of a textview? https://gist.github.com/bebna/46bee125f2e66750e51d Sep 12 11:53:45 hello. How to monitor the data packets sent/received by my app Sep 12 11:54:59 hi I'm starting an activity from another activity via an intent, the new activity plays a movie and when the movie is finished it finishes itself with finish()... i want to check for this situation in the first activity, so is there a callback that gets called when the started activity has been finished? Sep 12 11:56:22 ohcibi: not really, but the calling Actvity's onResume() will be called when your started activity terminates Sep 12 11:57:14 sure but onResume() will be called whenever the activity is started, no matter if because the started activity has finished Sep 12 11:58:12 you can add a boolean flag to know it is called because your started activity has terminated Sep 12 12:04:17 bubbleguuum: but where would I set that boolean? or do you just mean I add the boolean to know that the activity has been started before (and thus onResume indicates an actual resume and not a new start) Sep 12 12:05:02 yes just set your boolean to true before startActivity() and check that it is true in onResume() Sep 12 12:07:28 hm i thought I can just intercept the back stack somehow... Sep 12 12:21:05 yo guys Sep 12 12:21:18 still not solved my problem Sep 12 12:22:16 if i reopen the app after a while of idle i get a nullpointerexception Sep 12 12:22:19 http://pastebin.com/Pa3JugRT Sep 12 12:22:34 in the ontask at the end of the code Sep 12 12:23:03 gets the result of the onpostexecute Sep 12 12:23:48 saw things about onsaveinstancestate Sep 12 12:25:01 Can i send command line options to an android app when opening it? I tried sending an intent with -e "am .. -e " and catching it with getIntent().getExtras() in the app, but it crashes. Any other way? Sep 12 12:33:49 does there exist a tool to convert maven to gradle ? Sep 12 12:33:59 hopefully also make me a nice red velvet cake as well Sep 12 12:34:47 funkbox: http://www.youtube.com/watch?v=_IhibizyrtU Sep 12 12:35:53 that can't convert maven to gradle though, also due to certain fire-related incidents the district court of manhattan has issued an injuction prohibiting me from using any cooking appliances Sep 12 12:36:34 check out his other videos then, he's made arogel at home, and all kinds of other fun stuff Sep 12 12:36:49 eh, i don't cook ever. cheaper for me to just buy food than cook Sep 12 12:37:14 most of the stuff on his channel is science based Sep 12 12:47:47 funkbox: then you might be doing it wrong. either the cooking or the buying stuff for it Sep 12 12:48:03 hey all, is anyone have expirience working with instagram api? I need to download most popular photos of the specified user, what url am I using for it? Sep 12 12:49:20 btw the G+ app for example has this nifty navbar that you swipe in from the left side. how is that called? Sep 12 12:49:32 navigation drawer Sep 12 12:49:46 Chais_: http://developer.android.com/design/patterns/navigation-drawer.html Sep 12 12:49:55 thx Sep 12 13:05:43 Hi all, question about passing data to fragments with a bundle Sep 12 13:06:40 When I pass a list to a fragment, get the list out of the bundle, add a new object to the list, the added item is also added to the list in the activity which have send the bundle. Its a refence so. How can i avoid this? Sep 12 13:10:03 Example Activity list size = 2; pass list though bundle to FragmentA, get the list out the arguments. Add object to list --> list size inside framgnetA = 3 (Good), but list size in activity is also 3 (not good) Sep 12 13:11:54 howdy all. i need help getting kernel sources for kernel for android. is this the right forum? Sep 12 13:12:32 sadly, there isn't a right forum, and you'll probably have to get it from the manufacturer of your device or firmware Sep 12 13:12:46 since every firmware release for every device uses a different kernel Sep 12 13:14:16 i have the source from the mfr. i am trying to use git to get a source to do a diff on Sep 12 13:15:05 you can try android.git.kernel.org which has a few base kernels that aren't really used.. Sep 12 13:15:08 adb says i have kernel 2.6.29-omap1 Sep 12 13:17:13 Hi everyone Sep 12 13:17:52 when i do git branch -a is see there is a branch called remotes/origin/master Sep 12 13:18:25 Are vendors of devices with android supposed to release the source code of Android + kernel? Sep 12 13:18:28 what i cant figure out is how to put together the git checkout command to download that Sep 12 13:19:18 LambdaFox: git checkout remotes/origin/master :/ Sep 12 13:19:31 LambdaFox: that's not download, though Sep 12 13:19:44 I've developed app that help to understand units in android Sep 12 13:19:51 LambdaFox: lern2git? Sep 12 13:20:15 I mean...if I'm going to buy some cheap chinese tablet with android...will the vendor release me the full source code? Sep 12 13:20:59 is lern2git a web page? Sep 12 13:21:19 Could anybody check if there it makes sense https://play.google.com/store/apps/details?id=pl.twigit.understandandroiddevunits&hl=en Sep 12 13:21:25 mrAlmond, define "full" Sep 12 13:21:39 LambdaFox: no, it's a recommendation Sep 12 13:21:58 that is what i am doing now lol Sep 12 13:22:19 LambdaFox: if you have the git repo of it, you can just use git diff or log or somesuch :/ Sep 12 13:22:36 Mavrik : everything I need to replicate what is installed to the tablet...android + kernel. I'm not talking about binary blobs. Sep 12 13:22:45 LambdaFox: try git branch -r? Sep 12 13:23:05 mrAlmond, they have to show you where to get source of things that is GPL Sep 12 13:23:09 that's it. Sep 12 13:23:18 oh nvm, that doesn't do what I thought it did :p Sep 12 13:23:26 is there a set time after whicch a device (not the display) is supposed to enter sleep mode? is this at all tunable Sep 12 13:23:35 Mavrik : I suppose they always to that...isn't right? :-P Sep 12 13:23:40 joking Sep 12 13:23:51 expecially when you talk about chinese vendors Sep 12 13:24:00 mrAlmond, they just have to give you URL to the kernel they're using and the URL to android source ;) Sep 12 13:24:07 mrAlmond: generally the only thing on Android that's GPL are the kernel, bluez, and maybe webkit idk Sep 12 13:24:32 mrAlmond: so no, you'll probably not get the full source Sep 12 13:24:57 Mavrik : I know...but usually (personal experience) it seems they don't understand very well the english language when you ask for source code Sep 12 13:25:22 mrAlmond: a lot of chinese manufacturers don't even provide kernel source Sep 12 13:25:24 note that they don't have to give you source of their apps they preinstall ;) Sep 12 13:25:31 or their styles, themes or customizations. Sep 12 13:25:34 mrAlmond: they are under the impression that the GPL doesn't apply to them :/ Sep 12 13:25:42 and that they're lazy :P Sep 12 13:25:42 zinx : so true Sep 12 13:25:59 mrAlmond: this is especially true of people using RockChip SoCs, rockchip absolutely refuses to provide any source whatsoever to anyone Sep 12 13:26:00 who doesn't the gpl apply too Sep 12 13:26:01 so android framework is not GPL? Sep 12 13:26:13 even if they modify it? Sep 12 13:26:20 mrAlmond: correct, and they do modify it a lot Sep 12 13:26:35 mrAlmond: the Android framework is Apache 2.0 licensed Sep 12 13:26:47 a few things are BSD/MIT/zlib/etc Sep 12 13:26:50 android isn't GPL because GPL invites compliane problems galore. It isn't even LGPL because it's pretty easy to accidentally violate that too. Sep 12 13:26:52 zinx: to all intents and purposes, the GPL does *not* apply in China Sep 12 13:26:58 whats apache 2.0 licensed mean Sep 12 13:27:00 I worked almost always with rockchip devices Sep 12 13:27:21 mrAlmond: well, you're SOL then, you're going to have an extremely hard time getting kernel source for those Sep 12 13:27:32 they released the source code only when we bought thousand of tablets for our projects Sep 12 13:27:50 but for old tablets that now are not produced anymore Sep 12 13:27:53 Leeds: there's the catch, though, if it doesn't apply, they can't technically distribute the source code :P Sep 12 13:28:00 Leeds: erh, the binaries either Sep 12 13:28:11 no, I mean it doesn't apply downstream Sep 12 13:28:31 the rights apply, the responsibilities don't - simply because there's no practical way to enforce it Sep 12 13:28:42 Leeds: but if the GPL doesn't apply, then there's no license to distribute it Sep 12 13:28:50 there doesn't need to be Sep 12 13:29:07 Leeds: China does actually pretend to follow copyright law. Sep 12 13:29:16 not really Sep 12 13:29:28 so which are the chinese chip vendors that are mostly used to release source code? Sep 12 13:29:32 Allwinner? Sep 12 13:29:42 AMlogic? Sep 12 13:31:18 AllWinner I would think Sep 12 13:41:14 ok tnx Sep 12 13:54:32 anyone well versed it git? Sep 12 13:54:42 with git that is... Sep 12 13:55:11 I'm sure #git is Sep 12 13:55:29 http://youtu.be/lqrroQ77Ihc Mario Kart Double Dash on ARM hardware anyone in here? :D Sep 12 13:55:35 thanks sonOfRa. i will try over there! Sep 12 14:01:33 i Sep 12 14:02:34 I'm having trouble with the lockdown vpn feature in a population of tablets running 4.2.2 Sep 12 14:02:48 I'm worried we are being affected by the bug fixed by this git commit: Sep 12 14:02:48 https://github.com/android/platform_frameworks_base/commit/57666934b4a161cc2fb77eef15d0b894aaf8f173 Sep 12 14:03:04 apparently an internal google bug #8755148 Sep 12 14:03:20 is there anyone that i could talk to about the bug? Sep 12 14:21:14 About NFC: If I have an app that generates proprietary content and I have a content item open in my app and touch another phone... is there a way to send a playstore link if the other phone lacks the app, but send the content item if the app that can handle it is installed? Sep 12 14:29:08 new to maven on andorid: i'm looking for a way to generate a .java build constants file based on build profiles. what should i google? Sep 12 14:35:57 funkbox, check this out: https://github.com/jayway/maven-android-plugin/pull/218 Sep 12 14:36:03 rciovati: thanks! Sep 12 14:37:49 pfn: hello, in qicr when adding server and rotate device, you lost everything you wrote Sep 12 14:38:11 under, yeah, known, I don't really intend to fix that any time soon Sep 12 14:38:12 don't rotate while adding servers :p Sep 12 14:38:59 and sometimes when I exit from app (back button), recent app screen shows up Sep 12 14:39:07 hi I'm trying to catch the onloadedmetadata event of a