**** BEGIN LOGGING AT Sat Sep 13 02:59:58 2014 Sep 13 03:00:07 yeah the Moto X Pure edition looks decent Sep 13 03:00:11 Or that you can download along with the SDK...they are Apache License so you can use code from there as well Sep 13 03:00:28 yeah the samples in legacy/ApiDemos or whatever it is now Sep 13 03:01:33 And if anyone is interested in open source, I ported these live wallpapers to Android ( https://play.google.com/store/apps/details?id=com.unwrappedapps.android.wallpaper.creative ) and would be happy to work with someone on porting xscreensaver Sep 13 03:02:17 capella-s3 did you help put that site up ? Sep 13 03:03:24 No that's Josh (jdm)... we use that a lot on the # introduction channel for new contributors Sep 13 03:04:04 Ologn, how difficult was the port? I assume you used NDK? Sep 13 03:04:18 Carbonflux, yes Sep 13 03:04:32 http://whatcanidoformozilla.org/#!/progornoprog/proglang is the main entry for all things mozilla Sep 13 03:05:34 Carbonflux, the port was not all that hard as there were some simple live wallpapers like Sundancer. Some of the more complex live wallpapers were a little hard. Actually there probably still is some kind of mutual exclusion and threading problems. Sep 13 03:06:50 The screensaver code was not written for Android style services. Especially when settings change wallpapers and state in the middle of a render...I reduced global state and mutex'd as many critical sections as I could...and did other stuff... Sep 13 03:07:36 Like getopt is not thread safe so I replaced it with optlist, things like that... Sep 13 03:08:23 Ologn, did you run into any issues with opengl es, I noticed its missing some stuff, unless they were all fixed function pileline? Sep 13 03:08:36 Carbonflux capella-s3 also, contributing to FF not just open source, is important to keep the web more neutral and based around standards Sep 13 03:09:14 Carbonflux, not all that much. Jamie Zawinski of Netscape and DNA Lounge fame wrote a good OpenGL/OpenGL ES shim, which worked well for me Sep 13 03:09:16 Ologn, thats really interesting information, thank you, I have been thinking about some ports. Sep 13 03:10:36 Ologn, nice, I did not know about that, I had to do some stuff by hand in shaders I was used to opengl doing for me, but not much Sep 13 03:10:40 Of course his shim doesn't do everything. I added parts to his shim, like a glLoadMatrixf call Sep 13 03:12:39 g00s like the great PointerEvents... TouchEvents... PointerEvents... TouchEvents... PointerEvents... TouchEvents... debate? :D Sep 13 03:12:54 g00s, agreed :) Sep 13 03:14:13 I've done a bunch of ports of C/C++ libraries to the JNI and through on an Android UI...or ported games that use SDL...even if they use OpenGL...plus the live wallpapers... Sep 13 03:16:00 I guess SDL would mostly map into the canvas api Sep 13 03:17:33 I've been using pelya's SDL/Android framework. I know the official SDL crowd has SDL2 for Android, but very little uses SDL2. I don't know if the SDL2 people handle SDL1 for Android. Sep 13 03:18:20 I guess the only reason for SDL on Android would be for porting or if someone is really used to it. Sep 13 03:18:20 Someone tried to do a port of Neverball ( http://neverball.org/screenshots.php ) and made some progress...it's a big project though Sep 13 03:18:50 interesting http://www.amazon.com/The-Smartphone-Industry-Elizabeth-Woyke/dp/1595589635 Sep 13 03:18:53 Porting, sure. People have cross-platform games. Windows, Mac, Linux, Android... Sep 13 03:23:54 Seems like it would be hard to maintain all those platforms with a common code base without corporate resources. Sep 13 03:27:47 It needs a lot of disparate work. Graphics, sound, engine, game design... Sep 13 04:02:12 So to get my dagger dependencies in an activity, I have to specify that the module injects to that activity, and i have to inject the activity into the object graph? Sep 13 04:02:38 last part doesn't make sense Sep 13 04:02:45 yeah Sep 13 04:02:55 https://github.com/JakeWharton/u2020/blob/master/src/main/java/com/jakewharton/u2020/ui/MainActivity.java#L19 Sep 13 04:03:20 you are injecting the activity *with* the object graph Sep 13 04:03:55 oh Sep 13 04:05:22 so its letting the object graph know about the activity and telling it to let the activity have its dependencies? Sep 13 04:05:41 yes to the second part Sep 13 04:05:50 ok Sep 13 04:06:17 oh Sep 13 04:06:28 i got it now Sep 13 04:07:05 Inject the activity with the object graph, which allows the @Inject annotations to get the dependencies from the injected object graph Sep 13 04:07:46 I just got confused with that, I was thinking I was injecting the activity into the object graph, not injecting the object graph into the activity Sep 13 04:08:52 yep. you got it Sep 13 04:09:05 thanks for the clarification :) Sep 13 04:09:57 any particular issues with calling inject in my baseactivity class, if i know all subclasses will have @inject dependencies? I do this with butterknife too. Sep 13 04:10:05 nope Sep 13 04:10:13 you should watch my talk Sep 13 04:10:18 since i mention that as a pattern Sep 13 04:10:57 just found it, will have a look Sep 13 04:26:11 "and on the side we process tens of billions on cc transactions" hehe Sep 13 04:30:25 does anyone use an annotation processor for saving instance state Sep 13 04:30:42 i used androidannotations in the past but im getting tired of code not compiling because the generated classes arent up to date Sep 13 04:31:07 thats interesting Sep 13 04:31:18 saving what instance state? Sep 13 04:31:32 i use one for Parcelables Sep 13 04:31:40 in activities Sep 13 04:31:52 like @InstanceState String myString Sep 13 04:32:08 i was thinking it would be cool to add it to butterknife… but that would extend beyond the scope of the lib Sep 13 04:32:17 since you make a butterknife call in every activity anyway Sep 13 04:32:35 someone has made that Sep 13 04:32:38 don't remember what it's called Sep 13 04:32:45 i saw one that did too much Sep 13 04:33:13 https://github.com/frankiesardo/icepick Sep 13 04:33:16 cool Sep 13 04:33:23 because right now basically you need to define an instance field, constant key to save to state, then save state and restore it Sep 13 04:33:27 4 things to update every time you add a field Sep 13 04:33:29 to instance state Sep 13 04:33:48 that is pretty much what i need Sep 13 04:33:56 i dont like the @icicle annotation though Sep 13 04:34:03 neither do i Sep 13 04:34:04 guess ill have to change it :) Sep 13 04:34:44 you guys know there is history behind "icicle" Sep 13 04:34:56 im sure it’s very rich Sep 13 04:35:06 onSiS used to be called onFreeze Sep 13 04:35:09 it's cold Sep 13 04:36:12 g00s: im attempting to make my app similar to that blog post Sep 13 04:36:30 not sure how i feel Sep 13 04:36:33 desmin88 ah, great let me know how it goes Sep 13 04:37:39 well...just got an adt-1 in the mail today. Its stuck "Connecting to Google..." no amount of restarts can get it to do anything else Sep 13 04:37:54 any ideas? Sep 13 04:38:11 i wonder how icepick works, im a bit tired to dig in right now… using reflection at runtime? Sep 13 04:38:58 annotation processor Sep 13 04:39:28 annotations can be processed at runtime or compile time though Sep 13 04:39:48 i guess in this case, it can work at compile time Sep 13 04:40:09 androidannoattions actually generated code that your activities would have to rely on Sep 13 04:40:17 so whenever you clean, you get class not founds everywhere Sep 13 04:40:29 or if you refactor, it gets messy Sep 13 04:41:05 so now i need a lib like this for fragment arg and activity extras Sep 13 04:41:17 learn to love the boilerplate Sep 13 04:41:24 heh Sep 13 04:43:59 this is cool http://novoda.com/blog/the-making-of-icepick Sep 13 04:45:41 an annotation processor is always compile time Sep 13 04:45:56 you don't process annotations at runtime, you reflect on them Sep 13 04:46:02 its one thing to use some big canons, rxjava, something like dagger, retrofit whatever - but too many of these silly convenience things like icepick becomes dingleberries on your project; more headache than any harmless boilerplate could ever be Sep 13 04:46:03 ah Sep 13 04:46:15 dingleberries Sep 13 04:46:16 oh lawd Sep 13 04:46:41 g00s: but having to add 4 things every time you want to persist a field? Sep 13 04:46:50 thats too much Sep 13 04:46:57 it's just his opinion Sep 13 04:47:02 get off his lawn Sep 13 04:47:04 lol Sep 13 04:47:07 :) Sep 13 04:47:22 i just think of how many times ive tried to add somethign to instance state and either forget to restore or save or something Sep 13 04:47:28 and debugging that Sep 13 04:47:34 just me i guess Sep 13 04:48:04 learn to organize your code Sep 13 04:48:14 decalre 4 things, init 4 things, restore 4 things Sep 13 04:48:19 in order, you'll live Sep 13 04:48:24 teach me yoda Sep 13 04:48:45 (i will be trying out icepick in the mean time) Sep 13 04:49:15 yeah that's stupid Sep 13 04:49:20 do it once, forget about it Sep 13 04:49:27 it's a god damn computer Sep 13 04:49:31 make it do what you want Sep 13 04:49:37 JacobTabak wait until you have to make a content provider Sep 13 04:49:51 there's an annotation processor for that Sep 13 04:50:01 g00s: what is a content provider i don’t know how to computer Sep 13 04:56:42 JacobTabak its an architectural piece of android's IPC that no dingleberry can fix Sep 13 04:57:48 i love how the tutorials used to push content providers as THE way to store and retrieve data Sep 13 04:58:23 i think now they finally have a warning on there Sep 13 04:58:34 like DO NOT USE THIS unless you’re sharing data with other applications Sep 13 05:03:42 this little adt-1 really screams dev hardware....had to factory reset it. I got it to start but now the controller wont connect. Sep 13 05:04:58 JacobTabak i wonder if the devs of the Contacts content provider are still alive; or if they just hung themselves Sep 13 05:05:32 i dont understand why there aren’t api wrappers for those ? Sep 13 05:05:46 like why do we have to use cursors Sep 13 05:06:00 of course they should be available for performance critical stuff Sep 13 05:17:59 haha, this is great. BluetoohGattCallbacks don't happen on the main thread - and i don't see the docs even mentioning this Sep 13 07:29:51 1) What happens to singletone object after destroying activity, if i create it in activity and store reference to it only in activity? Sep 13 07:29:51 2) Same question but if i store reference to it in foreground service Sep 13 07:30:09 someone knows how to delete an app on chartboost? and what is the new in play ads? Sep 13 08:06:48 olologin: the key is the assignment operator. when you initialize the static object, even if your app is destroyed the hosting process is cached in the system memory so the assignment holds true until that process is destroyed (ie force close by the system). So you have to dereference the static assignments of the singleton by setting them to null. Sep 13 08:07:11 *when you want finalize/destory the singelton Sep 13 08:07:53 for instance i usually kill my static references (that could leak) in onpause and reassign them in onresume since onpause is the only life-cycle method guarenteed to be called during a "shutdown" process Sep 13 08:09:19 lasserix_: So even if i store reference in activity (but in static variable) after activity onDestroy it will be in memory and i can use it from service (until os kills process)? Sep 13 08:10:04 *singletone instance will be in memory Sep 13 08:12:00 hey guys Sep 13 08:12:44 are there some great revenue analytics tools I apply to the financial data the google dev console provides (monthly csv files, is there a "all sales single csv" as well?) Sep 13 08:12:55 I would like in special to know how earnings developed in the past 2 years Sep 13 08:13:54 Whats the best way to reference a library project? as a maven dependency? Sep 13 08:14:50 olologin: i am not sure about onDestroy but i think not Sep 13 08:15:17 onDestroy indicates the hosting process is being terminated, hence the reference is lost since the memory is deallocated Sep 13 08:16:13 lasserix_: thanks Sep 13 08:28:00 i could be slightly wrong in saying "the process is cached" -- i am not sure, but that is what i've deduced from inspecting during debugging Sep 13 08:28:12 and the end result is the same Sep 13 08:28:17 hey guys Sep 13 08:29:38 if I am trying to make a clickable map, what is the best way to go about it... should I set it up with a game engine Sep 13 08:29:55 what kind of map? Sep 13 08:30:05 onDestroy doesn't tell you what happens to the process, just whatever onDestroy is called on Sep 13 08:30:49 @lasserix basically I want to take a world map and allow the user to click on the country, if they click on the country I want the country to be highlighted and allow them to click on multiple countries Sep 13 08:30:55 SimonVT: so onDestroy being called by an activity doesn't guarentee a static reference of a field member is released? Sep 13 08:31:04 Nope Sep 13 08:31:10 ahh okay Sep 13 08:31:12 thanks Sep 13 08:31:22 An Activity is just one component of an app Sep 13 08:31:38 but it could mean it is released? Sep 13 08:31:39 how can I fix “FacebookException: Install attribution has been disabled on the server”? Sep 13 08:31:40 I know I can use color to figure out what part of the map was clicked on to say ok if it is this color then do something, but not sure how to change the shade of the color on the map Sep 13 08:31:55 I don’t see such a setting in FB app. It’s the Android FB SDK? Anyone know? Sep 13 08:32:01 There's no relation between onDestroy and the process being killed/reclaimed Sep 13 08:32:15 Ahh okay thanks Sep 13 08:33:09 So to answer olologin's question, a singleton initialized in an activity's on create is still accessable by a service of that app after the activity's ondestory is called? Sep 13 08:33:43 If the Activity was started in that process before the Service Sep 13 08:34:07 In fact service needs to store reference to singletone for accessing it Sep 13 08:34:07 Depending on how your Service is implemented, the process can be killed and the Service started later in a new process Sep 13 08:34:26 In that case, the Singleton wouldn't be initialized since the Activity was never started in that process Sep 13 08:36:21 Unless Android restores the activity stack immediately as well, but I wouldn't count on any special order Sep 13 08:37:27 You can only ever rely on Application#onCreate being called before whatever component you're in (unless it's a ContentProvider) Sep 13 08:49:30 so what is the best way to go about my issue anyone know Sep 13 08:51:02 SimonVT: ahh you mean within same process ie you can't access the singelton of a remote process Sep 13 08:52:27 I am trying to have a map image that when a user clicks on it, it responds to a touch event Sep 13 08:52:48 is it best to have the map in pieces and position each piece to make the world map or to use coordinates Sep 13 08:54:47 Lonesoldier728: the hardest part seems to be generating country pieces Sep 13 08:54:59 Android apps doesn't usually have multiple processes Sep 13 08:55:12 right so I am thinking of knowing what part of the image is clicked Sep 13 08:55:17 the thing is i wonder if there is some google map plugin to select by country, but i doubt it would give you the flexibility your game needs Sep 13 08:55:27 Each time an app component is started it could be in a new process tho Sep 13 08:55:56 Lonesoldier728: if you keep a a list of the bounding edges of each map, you can just compare the touch event position against the map's coordinates Sep 13 08:56:22 how can I find out all the bounding edges that is where I am confused Sep 13 08:56:23 SimonVT: yeah i just finished writing an sdk we use a remote process to host a raw binary executble Sep 13 08:56:28 I saw this on SO http://stackoverflow.com/questions/3961071/android-how-to-make-a-clickable-map-image-with-each-country-producing-a-differe Sep 13 08:56:45 Ahh but the key is that each time it is started, it could be new process. Sep 13 08:56:56 that is my question too but do not want to do it based on color Sep 13 08:57:01 SimonVT: thanks for the clarification! Sep 13 08:57:51 Assuming you don't tell it otherwise, all your app components live in the same process.. But if you background an app, then bring it to the foreground again.. There's no telling what happened between those two events Sep 13 08:58:23 That's why there's onSaveInstanceState, that'll be retained Sep 13 08:59:01 Ahh cool Sep 13 08:59:03 thank you Sep 13 09:00:21 Lonesoldier728: you can just model your countries as polygons and check if the x,y of the touch is in the polygon Sep 13 09:01:30 if you are clever you could find a map where each country is a different hue fill, then use a bitmask of the pixels to detect each country, to generate the coordinates of the bounding edges, but you could start by doing it by hand Sep 13 09:01:39 or mabye someon must have done htis already Sep 13 09:02:27 oh i guess that's what the comment said to do ;p Sep 13 09:03:31 oh you are NOt doing color looks like it is time to get some sleep Sep 13 09:03:44 how do I get polygons and coordinates Sep 13 09:03:53 you have to generate them some how Sep 13 09:03:57 forinstance you could do it by hand Sep 13 09:04:47 but i was saying you could do the color trick and then use some convex hull finder algorithm to get the polygons edges and then transform that into the screen coordinates and match it against the touch even tposition Sep 13 09:05:34 even that project from catchthecows you have to manually set the hotspots Sep 13 09:06:15 another thing is, if I do the polygon thing, on a click if I want to change the color of that region will I be able too? Sep 13 09:07:42 lasserix_ when clash of clans or boom beach are in there map view Sep 13 09:08:02 how do they know where you are clicking on the screen and is it just one big image Sep 13 09:21:20 Lonesoldier728: its just collision detection Sep 13 09:21:27 image the screen is 100 rectangles Sep 13 09:21:46 every click you check each rectangle rect whether the xy of the click is in the rectangle Sep 13 09:21:50 click->touch Sep 13 09:22:10 instead of rectangles, let it be whatever (non-overlapping) shape you want Sep 13 09:22:26 ah ok, how do I know the coordinates exactly then Sep 13 09:22:34 if you model your map so that you know each edge, you can then color in each region however you want Sep 13 09:23:16 i dont know that's up to, but somehow you need to detect edges of a photograph and mark off the apropiate regions Sep 13 09:23:59 you need to find some kind of world-country perimeter map Sep 13 09:24:10 *"perimeter coordinate" Sep 13 09:26:04 the real fun part about this is like disputed borders ;p Sep 13 09:27:43 yeah heh kk Sep 13 09:32:38 how can I see the coordinates, are they simple 0,0 from top left to 800x600 bottom right depending on the screen size? Sep 13 09:32:54 umm Sep 13 09:32:59 every screen has its own coordinates Sep 13 09:33:06 every touch event occurs in pixels Sep 13 09:33:14 but every screen has a different density of pixels Sep 13 09:33:45 so androud uses a way of measuring called "density indepedent pixels" which normalizes all the different densities so there can be one common way to measure Sep 13 09:34:26 ok yeah, how do you measure that then is it out of a 100% Sep 13 09:34:35 or how does that measure out exactly Sep 13 09:35:03 determined by the screen Sep 13 09:35:32 Yes, 0,0 is top left. Your view size isn't necessarily the same as the screen size, some might be used for screen decorations (status bar, navigation bar, action bar, ..) Sep 13 09:35:42 but you know for certain 100 dp one a low density devices will equal 100 dp on a high density device, even though the 100dp on the high density device will be physically smaller on than the low densitry, since the pixels are more densly packed Sep 13 09:35:50 But you know the size of the view, so the rest doesn't matter Sep 13 09:35:57 ^^ Sep 13 09:37:02 Lonesoldier728: isn't it awesome how an idea that seems simple in theory becomes a nightmare in practice? ;p Sep 13 09:37:12 yeah haha Sep 13 09:38:39 so if I want to use dp to detect the coordinates hit, how can I know if I am looking at an image file right now, how can I find out the coordinates right now so I can put it in dynamically to do something with it, or if I use the 100 rectangle method Sep 13 09:39:58 um Sep 13 09:40:06 the touch event pos x y is always in pixels Sep 13 09:40:18 you convert it to do dp if you need to do something that requires that Sep 13 09:40:51 SimonVT was saying that since the touch pos x y is relative to the view, (ie 0 0 is the top left of the view which is being clicked) you don't need to worry about that so much Sep 13 09:41:12 what you need to beable to do is map, within the view, where the x y of a touch event correspond to a country Sep 13 09:41:22 to do that implement a onTouchListener Sep 13 09:41:42 itll give you a MotionEvent with a type (DOWN UP MOVE CANCEL etc) and the x y Sep 13 09:41:48 (along with a lot of other information) Sep 13 09:42:40 hey, i have 8 images with the same size, i want to make from them loading animation, what should I use for image changing? timer, or is there any built-in classes for that? Sep 13 09:43:59 ok so I understand that I can grab the coordinates but then I would have to convert it for dip, or will the coordinates be based off dip? Also, how would I figure out exactly what the coordinates are exactly too tho, like how do I notice it, open it up with photoshop or something and see exactly what point equates to what manually? Sep 13 09:44:31 krokyze: AnimationDrawable Sep 13 09:44:57 ty Sep 13 09:45:05 Lonesoldier728: you don't have to convert to dp i was just mentioning that, what you do have to do is convert the view on tocuh pos to the map country coordinates Sep 13 09:46:19 for instance, you will always know that a country in the center of the map, if you make the map fill the width of the screen on all screens (view has layout_width = match parent etc) then you know that x / 2 will always get you close to the x coordinate Sep 13 09:46:23 of the map Sep 13 09:46:42 if it was in the xact ctner, x/2 y/2 would definatly be in the country Sep 13 09:47:08 what you could do is divide your map image into say 20 or 100 pieces, Sep 13 09:47:18 then based on one "unit" of piece, measure the map Sep 13 09:47:38 generting the permitiers for the countries, ie outline each country as a set of points, Sep 13 09:47:57 so if it is a 100 pieces, then some x/some number always has to happen? Sep 13 09:48:16 now you can take that collection of points, based on this arbitrary unit and figure out where the x / y is by figuring out how many pixels are in a unit Sep 13 09:48:29 if it is 1/3 then x/.333 Sep 13 09:48:36 yeah that's the idea Sep 13 09:48:55 i gota go booty call is here :) Sep 13 09:48:57 good luck! Sep 13 09:49:03 haha thanks kk have fun Sep 13 09:56:34 Is it possible to control the screenshot that gets shown in the Recent Apps list? Sep 13 10:05:10 or rather, how can I get it to actually show the content of my GLSurfaceView app? Sep 13 10:05:15 It just shows a black screen for now Sep 13 10:05:25 rather than the rendered contents of the app Sep 13 10:08:37 how can i define a drawing and pass it on to a child view, so the child view draws it? Sep 13 10:08:42 if that makes any sense Sep 13 10:10:00 basically i have a button i’ve written that’s subclassed from ViewGroup, and i want to define its drawing its parent class Sep 13 10:11:36 *from Sep 13 10:21:55 hey brought just a theoretical question today... games like Mario.. or Flappy bird... where there is a long 2d course, but only a screen sized portion is displayed at a time... how is that done? .. do they animate the entire course into one picture, and make cuts? .. do they have 500 pictures, so one for each step you take forward? Sep 13 10:24:18 P3nnyw1se: usually those are broken up into lots of smaller chunks, and only what's needed at a moment is drawn Sep 13 10:24:20 p3nnyw1se I am curious about that too Sep 13 10:25:12 ekz I realise that.. but what exactly is drawn ... is a permanent picture... cut of a map, everything painted onto the same Sep 13 10:25:14 e.g. you might have a level file that just says "place a red brick at coordinate x1,y1" Sep 13 10:25:16 or is there a calculation done Sep 13 10:25:38 saying 'place this here.. place this here.. place this here... draw' Sep 13 10:25:44 it's pretty simple, you just draw what's needed to cover the screen! Sep 13 10:26:03 if there's stuff off-screen, you don't need to waste processing time by drawing it Sep 13 10:26:07 and loading it Sep 13 10:26:23 but you understand the different possibilities right ? ... I'm not talking about whats not on screen.. I know they dont draw that Sep 13 10:26:24 a very simple check will tell you whether something is on or off screen Sep 13 10:26:28 i’d probably have a level file with properties, like coordinates of objects, object type, etc Sep 13 10:26:42 then a control for what coordinates you’re in Sep 13 10:27:00 ultra- gets it Sep 13 10:27:13 ekx what about those games that have long views and you can scroll left and right Sep 13 10:27:21 ultra- that makes sense... but then you have to calculate each time you draw.. to place the objects.. if you just drew like the MARIO first level... and cut it into 500 pictures.. .. you could just load 1.. according to marios position right ? Sep 13 10:28:07 Lonesoldier728: well then it's exactly the same, except it's really long :) Sep 13 10:28:21 i suppose, but that’s not how i’d do it Sep 13 10:28:25 i’m not a game developer though Sep 13 10:28:55 Lonesoldier728: you don't need to have every piece of information about the level being processed at a second, just what's needed to draw the stuff on screen and do physics calculations and stuff Sep 13 10:28:58 I was wondering cause I just see several ways to handle it... none of them involving drawing whats not on screen..even though ekx keeps thinking thats what I'm saying Sep 13 10:28:59 ;) Sep 13 10:29:08 bha Sep 13 10:29:18 I'm probably misreading your question Sep 13 10:29:27 I know we are only drawing on screen.. Sep 13 10:29:34 ekx for a long how do you know the coordinates or do you have a set image size so you get the coordinates that way (disregarding dip at that point) Sep 13 10:29:43 but I see ways like.. calculating whats suppose to be there.. or taking a big map.. cutting it into 500 still frames.. and just loading one of those frames Sep 13 10:30:03 according to position Sep 13 10:30:09 yeah Sep 13 10:30:13 that's how you can do it Sep 13 10:30:16 strictly talking about the background and not things like the blocks mario hits his head on? Sep 13 10:30:39 I suppose my frame cutting would fail with usable objects like brick etc. Sep 13 10:30:49 I'm asking because I've been working with gif files lately Sep 13 10:30:53 well, look at the backgrounds as part of the coordinate system Sep 13 10:31:04 I had 5-6mb worth of gif files loaded into an app.. and got memory leaks Sep 13 10:31:12 yeah gifs are harsh Sep 13 10:31:14 so now it hit me... we dont' have a lot of memory to deal with :P Sep 13 10:31:32 and I dont understand how games that features a lot of animations... angry birds.. e.g Sep 13 10:31:37 many screen-width images with assigned coordinates, if the image is within the coordinates, show it (plus an offset).. you’d have as many as two images loaded at once Sep 13 10:31:38 they handle that.. when I can't load in 5mb gifs Sep 13 10:31:55 tbh I don't get why gifs are such a problem these days... I see what you mean Sep 13 10:32:21 this scenario.. I had 5 views on screen... 5 animation-list.. each had 20 pictures of 32kb making up a gif Sep 13 10:32:21 vector, maybe Sep 13 10:32:31 when one of them is clicked.. I used animationdrawable to fire it once Sep 13 10:32:34 I guess nobody cares if gif rendering is efficient, they just get it to work and ship it Sep 13 10:32:35 Lonesoldier728: I don't follow Sep 13 10:32:42 after third or fourth click.. memory leak.. each time Sep 13 10:32:47 and I had barely loaded in 4mb Sep 13 10:33:24 ok I'm done... it's almost 4am Sep 13 10:33:29 later y'alls Sep 13 10:33:44 how can i paint an icon onto a child ViewGroup? like perhaps, make a canvas, and provide it to the child view Sep 13 10:34:03 without subclassing Sep 13 10:34:45 without subclassing.. no idea.. make it the background Sep 13 10:35:25 that i can’t do, since the button has its own drawing Sep 13 10:35:32 i want to tell it “draw this on top of everything being drawn" Sep 13 10:35:41 like layers in iOS, if you’ve worked with that Sep 13 10:36:16 yeah I'm soon about to do the same, cant you do some view and put it to foreground somehow? Sep 13 10:36:24 like put a view and force it on top Sep 13 10:36:38 yeah you can do that, but i’d still have to subclass view Sep 13 10:36:45 maybe not, i think i can use dispatchdraw or something Sep 13 10:37:12 you definitely can add multiple views using addView, if you’re adding it to a ViewGroup (not a View) Sep 13 10:37:42 Hello, is anybody using retrofit here? Sep 13 10:37:48 not i Sep 13 10:39:08 hi basic question again.. how do sprites work.. animations in same picture... it knows exacty where to cut each? .. why aren't these just placed into own seperate files and avoid the 'cutting' algorithm? Sep 13 10:41:14 to deal with the access to video memory bottleneck better Sep 13 10:41:58 games that have a map like thing, is there a certain size set and it is the same on every device or do they say 3 times the size if it does not fit on one screen Sep 13 10:42:47 for example Clash of Clans the map view is it a certain width and height Sep 13 10:42:49 Sculptor.. youre saying its a bigger load to access files than to take on and cut it ? Sep 13 10:43:05 or is it different for phone sizes Sep 13 10:43:29 can i programatically set the background color of a view using hex color codes? Sep 13 10:44:28 Color.parseColor(#FFFFFF) Sep 13 10:45:41 shouldn’t there be an alpha number too? Sep 13 10:48:58 just set the color, a hex color code is still a number Sep 13 10:49:17 0xFF000000 | 0xFFFFFF Sep 13 10:49:23 yes your correct Sep 13 10:49:53 backgroundColor = 0xFF000000 | 0xFFFFFF Sep 13 10:52:55 I show my levels in a 3*5 grid where level nbr and best time is shown. This removed the need for an actual highscore. Is it confusing to boot a game into a choose level View without a Main view first (PLAY, HIGHSCORES, ABOUT))? Sep 13 10:54:04 i’d say that games like angry birds and cut the rope have pretty good level selection, i’d do it their way Sep 13 10:54:14 and people have come to recognize that way of doing it Sep 13 11:00:27 is there any way to "dim" a view easily? i have custom views of varying sizes. My only thought is to draw a rectangle behind the view and set it to a dark color and then change the opacity of the view in front... is there a simpler way? Sep 13 11:07:12 basically how can i add a view on top of another view programatically? Sep 13 11:09:15 the view you’re adding to has to be a ViewGropu Sep 13 11:09:26 you should be able to change it to a ViewGroup without changing much else Sep 13 11:09:46 then make a new View with its alpha set lower, and use parent.addView(shadedView) Sep 13 11:21:21 ultra: yes but that is not the question. the question is if I should boot the app into level selection or into a main menu? Sep 13 11:39:39 ultra: yes but that is not the question. the question is if I should boot the app into level selection or into a main menu? Sep 13 11:39:45 (i was disconnected) Sep 13 11:51:37 zorka,Irc.freenode.net have probs again? Sep 13 11:51:40 :) Sep 13 11:52:14 i have problems (mobile broadband) Sep 13 11:52:22 i see Sep 13 11:52:48 i know for mobile broadband you need sasl support if i am right. Sep 13 11:54:53 zorka,Just try to help. Sep 13 12:01:14 perlsyntax, sure no prob Sep 13 12:04:26 :) Sep 13 12:54:50 hello Sep 13 12:55:07 are there any articles out there whether or not publishing to 3rd party app stores is worth it? Sep 13 12:57:32 I need some help, here's my activity code http://pastie.org/9550614 - I get this error "Attempted to access a cursor after it has been closed." - when i type something in the search box (EditText) and then quickly backspace it. once the box is empty and backspace gets triggered for a couple of times, it gives the error. what am i doing wrong ? need some help... Sep 13 13:04:01 when games make a background design for a game that can be scrolled left right and up down, is it an image view with a fixed size? Sep 13 13:05:28 meaning a phone that is an inch smaller like the samsung galaxy s4 vs the samsung note, will you be able to scroll more on the smaller phone than the larger Sep 13 13:20:23 i just attached my phone via cable to pc Sep 13 13:20:37 and deployed app on it... but I do not see any icon Sep 13 13:21:01 I see that app is installed but no icon anywhere. What I should check/ how I can launch that app? Sep 13 13:23:24 I can’t make retrofit work. It makes me sad. Sep 13 13:24:29 marrrk what issues you having Sep 13 13:24:54 Nothing happens. It doesn’t even crash Sep 13 13:25:08 I made a very simple service Sep 13 13:25:31 stefkos have you set for your MainActivity in androidmanifest? Sep 13 13:26:32 yeah my mistake Sep 13 13:26:35 thx krokyze Sep 13 13:26:59 And I get no log messages after creating the restAdapter Sep 13 13:37:44 show code Sep 13 13:37:47 not sure what you are doing then Sep 13 13:38:24 I finally found the error messages from that stuff Sep 13 13:38:28 so that’s good Sep 13 13:38:54 It seems like this is a problem: .setClient((new OkHttpClient).asInstanceOf[Client]) Sep 13 13:49:48 If I downloaded Android SDK and updated in one machine and then copied to another machine, will the updates be there? **** BEGIN LOGGING AT Sat Sep 13 13:56:10 2014 Sep 13 13:57:38 hi Sep 13 13:58:00 i'd like get gps/gsm coordinates from C/ndk in android is it possible? Sep 13 14:03:02 maybe anybody know how to get GPS long/lat from kernel or C api Sep 13 14:03:04 ? Sep 13 14:03:40 thats complex Sep 13 14:04:20 should i Reverse Engineering my gps.marvel.so for that ? Sep 13 14:04:27 okay Sep 13 14:04:37 Moony22: ? Sep 13 14:04:49 if u want Sep 13 14:05:24 Moony22: what's the easiest way to do that without java? Sep 13 14:05:35 I'm not sure I use java Sep 13 14:06:27 Moony22: what about performance that "function" will be more slower ? Sep 13 14:06:56 hmmm Sep 13 14:06:57 performance and energe.. Sep 13 14:07:00 I use java Sep 13 14:09:11 hi there Sep 13 14:09:22 hi there Sep 13 14:09:54 Hi all, why my android emulator so slow on Mac Book Pro mid 2010? Sep 13 14:10:57 aaronelkins: are you using HAXM Sep 13 14:11:09 also check out genymotion, and make sure you use a lower resolution device when emulating Sep 13 14:11:09 JacobTabak: No Sep 13 14:11:24 Okay, Thanks, JacobTabak Sep 13 14:11:32 https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager Sep 13 14:11:50 also… i was using a mid 2011 and it was too slow so i upgrade so not sure if theres anything you can do about that Sep 13 14:12:31 JacobTabak: You save my life. Sep 13 14:14:30 up 4 genymotion...incredible! Sep 13 14:20:52 Hi, this might be a really newb question, so apologies. I am using a 3rd party datepicker library that supports older Android devices (https://github.com/flavienlaurent/datetimepicker) and it's really nice, but I need to trap if the user pressed the back button. How could I do this? Sep 13 14:21:53 MarkG1234, you can do it by overriding in activity onBackPressed Sep 13 14:25:20 I have an overridden OnBackPressed in the parent activity, but this is a dialog and it doesn't call it. Sep 13 14:25:45 what do you want to do when back is pressed Sep 13 14:25:53 thats’ different from standard behavior Sep 13 14:25:57 Hi, what is wrong with tabHost.getTabWidget().removeView(tabHost.getTabWidget().getChildTabViewAt(1)); ? Sep 13 14:26:12 cyber37: don’t use tab hosts -.- Sep 13 14:26:50 I get null pointer exception when i want to remove a child, Sep 13 14:27:11 cyber please look at using fragments / action bar tabs rather than tab host Sep 13 14:27:22 I see the tab closing, but i get the error at android.view.dispatch.. Sep 13 14:27:26 tabhost was created before fragments were a thing and theres really no reason to use a tabhost anymore Sep 13 14:27:53 I want the app to close. i.e. behave like a web browser. I have caught the onback in my app, and it displays the date picker, but I want to trap the on back in the date picker to close the app. Sep 13 14:28:07 JacobTabak, the realproblem with Fragment : When you switch from a tab to another the activity of the last tab is stoped and the activity of the tab where you come is "restarted" Sep 13 14:28:13 currently is just closes the date picker and leaves a blank listview, which is no good for me. Sep 13 14:28:19 MarkG1234: set an on cancel listener for yoru dialog Sep 13 14:28:43 cyber37: you have to maintain instance state Sep 13 14:28:51 and cancel will only fire on back? Sep 13 14:29:12 yes, if you disable cancel on touch outside Sep 13 14:29:22 Jacob, how ? what da hell, in the past i have search for it ... Sep 13 14:29:50 cyber37: you may have some reading to do http://developer.android.com/training/basics/activity-lifecycle/recreating.html Sep 13 14:31:22 JacobTabak saving the state of the fragmente before switching to over fragment is not good, my app is a CHAT, Sep 13 14:31:31 like this? http://pastebin.com/SLnBZNxu Sep 13 14:32:06 I need to have it "continiously active" not just "save him state and reload it where it was when the frag is "recreated"" Sep 13 14:32:15 cyber37: you can just hide/show fragments rather than removing them Sep 13 14:32:36 but beware of memory/performance issues if you are keeping a lot of things active when the user isn’t interacting with them Sep 13 14:32:58 JacobTabak When you click to an other TAB the fragment is loose recreated with actionbar. Sep 13 14:33:09 cyber37: you can specify exactly what happens Sep 13 14:33:26 Sure ? Sep 13 14:33:38 With what ? Sep 13 14:33:45 ActionBar.TabListener Sep 13 14:33:58 http://developer.android.com/guide/topics/ui/actionbar.html#Tabs Sep 13 14:34:10 Hmm, that's not doing anything for me. It's not getting called ever Sep 13 14:34:15 in that example, they are attaching/detaching, but you can just as easily hide or show Sep 13 14:34:47 MarkG1234: is it a dialogframgnet or dialog Sep 13 14:35:06 omg i was using that kind of exemples.. Sep 13 14:35:13 MarkG1234: you can’t just call onCancel, you have to add an oncancelListener Sep 13 14:35:26 http://developer.android.com/reference/android/content/DialogInterface.OnDismissListener.html Sep 13 14:35:59 and by cancel i mean dismiss Sep 13 14:36:04 er sec Sep 13 14:36:36 oh Sep 13 14:36:38 ok Sep 13 14:37:03 MarkG1234: this is what i meant to link http://developer.android.com/reference/android/content/DialogInterface.OnCancelListener.html Sep 13 14:37:13 dismiss will be called for any dismissal including ‘ok’ buttons Sep 13 14:37:18 cancel is only for back button or touch outside of dialog Sep 13 14:40:43 There is no setOnCancelListener method for this dialog :-( Sep 13 14:52:34 If you want to time a level, what is the best way to do this, achieving same time across all posible devices? because I made a runnable that executes every 200 ms and then starts again, but that gives a small difference between devices, say 1 second per 100 seconds Sep 13 14:56:28 zorka: set an exact alarm Sep 13 14:56:47 alarm? Sep 13 14:56:52 this is for a game Sep 13 14:57:04 http://developer.android.com/reference/android/app/AlarmManager.html Sep 13 14:58:19 either that, or calculate the timestamp you want the level to end Sep 13 14:58:50 or do a postDelayed() with the amount of ms remaining Sep 13 14:59:04 and when you update your timer, just compare the current time to the time the level should end Sep 13 14:59:32 i had to do something similar for an app recently and had to go through several iterations because the client wanted <.5 sec variance over 4 hours Sep 13 15:00:53 but yeah if you’re creating a runnable every 200 ms, then updates the UI, then restarts teh runnable, you’re going to posting to the UI thread which will take time Sep 13 15:02:58 zorka, what does "timing a level" mean? Sep 13 15:03:09 e.g. what exactly are you trying to time? Sep 13 15:03:45 it is a maze game, roll a ball through a maze. take the time it takes for the player to finish. Sep 13 15:04:36 so yea… its a common problem, don’t try to “count” with several runnables, that wont’ work, either set an alarm or postdelayed for the total time Sep 13 15:04:40 zorka, instead of doing runnables Sep 13 15:04:50 zorka, you just record the time at start of level and the the time at the end Sep 13 15:04:51 that's it Sep 13 15:05:03 long startTimeMs = System.getTimeInMillis(); Sep 13 15:05:10 What happens if two applications have the same priority in the management of sms? Who wins? Sep 13 15:05:11 long endTimeMs = System.getTimeinMillis(); Sep 13 15:05:23 JacobTabak did you know how to use android.support.v4.app Fragments with tablistener ? It's a damn circle Sep 13 15:05:33 long timeSpentPlayingLevelInSeconds = (endTimeMs - startTimeMs) / 1000 Sep 13 15:05:41 But I want to update time during the game, so read System.getTimeInMillis(); continously then... Sep 13 15:05:52 cyber37: what problem are you having Sep 13 15:05:54 zorka, yes? Sep 13 15:06:08 if you need to display it Sep 13 15:06:11 display the difference always Sep 13 15:06:13 not continuously just every ~200ms or so Sep 13 15:06:16 that way you get accurate wallclock time Sep 13 15:06:36 (reasonably accurate that is, getTimeInMillis is usually accurate to cca 20-60ms in my experience) Sep 13 15:07:49 Mavrik, , JacobTabak : yes thats what i meant Sep 13 15:08:05 Mavrik, yes but getTimesinMillis wont drift Sep 13 15:08:14 so even if it is inaccurate that wont accumulate Sep 13 15:09:55 i have a problem with eclipse, if i include google-play-services_lib project in my project as library, when i run project eclipse blocks! Sep 13 15:10:21 https://www.dropbox.com/s/zmzwmfwiu4w3d9f/Screenshot%202014-09-13%2017.04.03.png?dl=0 Sep 13 15:12:16 ech0s7: Clean & Rebuild & Rinse & Repeat - if it doesn't work, move your Eclipse's .workspace directory somewhere else and create a new workspace where your projects are and try again Clean -> Rebuild Sep 13 15:12:35 JacobTabak can you try that ? http://pastebin.com/rNrSNa1m Sep 13 15:12:56 DrSkyLizard: moving workspace i have to reinstall android plugin ? Sep 13 15:13:06 there is a problem with api 11/14 fragments Sep 13 15:13:19 cyber37: make your activity extend FragmentActivity Sep 13 15:13:21 ech0s7: I don't think so Sep 13 15:14:00 ech0s7: If anything goes wrong you can mv the workspace again, by moving I mean, make sure you have a backup of your current workspace before creating a new one Sep 13 15:15:45 JacobTabak it doesn't help, i try to compile it with API 14 Sep 13 15:16:18 ActionBar.TabListener is API 11 Sep 13 15:16:21 cyber37: you need to use the support version Sep 13 15:16:31 It make problems with 14 Sep 13 15:16:51 DrSkyLizard: i have the same problem also using another cleaned workspace Sep 13 15:17:29 DrSkyLizard: https://www.dropbox.com/s/kxuqkyt2yclatbj/Screenshot%202014-09-13%2017.17.15.png?dl=0 Sep 13 15:19:26 ech0s7: What version of Eclipse are you using ? Sep 13 15:19:41 Juno Sep 13 15:19:54 Im using VideoView, is it possible to draw only part of video? Sep 13 15:20:19 The retrofit documentation just says that headers don’t override each other. How can I make them do exactly that? Sep 13 15:20:24 DrSkyLizard: Juno Sep 13 15:20:45 part in meaning from 20px to 100pix (video width fe 1000px) Sep 13 15:20:46 ech0s7: Whoa, that's old Sep 13 15:20:53 ech0s7: Upgrade to the latest Eclipse version Sep 13 15:21:42 stefkos: you need to use a textureview with a transform Sep 13 15:22:27 JacobTabak it alway's have the problem ! Sep 13 15:22:28 Try it ! Sep 13 15:22:29 ech0s7: That is, Eclipse Luna (4.4) Sep 13 15:22:32 stefkos: excample here: https://github.com/timehop/texture-video-view Sep 13 15:22:32 you will see Sep 13 15:22:43 I played a bit with texture view before... then I should draw everything on texture and then just play with it, right? Sep 13 15:22:53 (thats my repo) Sep 13 15:23:00 ok, thx mate Sep 13 15:23:03 Eclipse tell you to use API14 Fragment, but you can't because of something else who need api 11 Sep 13 15:23:56 implements ActionBar.TabListener ---> API 11 Sep 13 15:24:11 cyber37: extend actionbar.tablistener Sep 13 15:24:17 DrSkyLizard: Luna is not compatible with Google App Engine plugin...i'm upgrading to Kepler Sep 13 15:24:30 cyber37: theres a lot of ppl who discuss this on stackoverflow Sep 13 15:24:43 i can’t dig in and do it myself but ive done it in the past on other projects Sep 13 15:24:54 either that, or make your own tab widget that switches between fragments Sep 13 15:24:54 ech0s7: Incorrect! https://developers.google.com/appengine/docs/java/tools/eclipse#Installing_the_Google_Plugin_for_Eclipse Sep 13 15:25:25 ohh fantastic! Sep 13 15:25:26 android.app.Fragment is API11 Sep 13 15:25:28 thanks DrSkyLizard Sep 13 15:26:31 ty, it works Sep 13 15:28:50 Hi, short question: When I want to execute the "android" script, I always get permissions denied error. Somebody knows something about that? Google search didn't help. OS: Ubuntu 14.04 Sep 13 15:29:30 notepass: What is the "android" script? Sep 13 15:30:21 It's the script in the android SDK in the "tools" directory Sep 13 15:32:03 notepass, what OS are you on? Is the script executable? Sep 13 15:33:01 my android = rwxr----- Sep 13 15:33:18 and is owned by me, not root Sep 13 15:33:39 As said, Ubuntu 14.04. It is executeable (chmod +x) Sep 13 15:34:05 sorry, I didn't see that last part. Sep 13 15:35:34 is the script giving the error, or something inside? This is more of a Linux question if you ask me... Sep 13 15:35:41 notepass: What's the output of: ls -ld $ANDROID_SDK_HOME/tools/android ? What's the output of whoami ? Do you have rights as the current user to access the directory where the android script is in or the script itself? Sep 13 15:36:47 Jacob if i use import android.app.Fragment; it works, but by defaut import Fragment is import android.support.v4.app.Fragment; with API14, but that one are not compatible with the other for tab listener. Sep 13 15:37:11 And you can't realy change the overs to API 14, it make more troubles (vicious circle!) Sep 13 15:37:28 So .. I try with API 11 now Sep 13 15:37:34 -rw------- Sep 13 15:37:45 there ya go :) Sep 13 15:37:49 huh, I set chmod 777 and +x Sep 13 15:39:23 I doubt it Sep 13 15:39:58 Well, I think I now go and bang my head agains the wall... It's a NTFS file system on the external drive Sep 13 15:40:11 hahha Sep 13 15:40:12 Or isn't that a problem? Sep 13 15:41:26 rubber-duck debugging in it's finest form... Sep 13 15:42:38 I'm planning to implement a app-to-app voice calling feature in my app. What are the available solutions that I can make use of? Sep 13 15:47:17 I suggest this for the new channel topic: Sep 13 15:47:18 Android application development | Google it first! | Official docs at http://d.android.com/ | Root/custom ROMs, head to #android-root | No bots, and no advertising please, jobs or otherwise | Source at source.android.com | http://imgur.com/jacoj Sep 13 15:56:24 A question for anyone using moxie's TLS certificate-pinning code. looking at https://github.com/moxie0/AndroidPinning/blob/master/src/org/thoughtcrime/ssl/pinning/CertificateChainCleaner.java - and line 50 specifically. Should that check for the trustedchain flag be within the if (isValidLink()) block? Right now, (by inspection) doesn't seem to guarantee that the cleaned chain contains a trusted root. Sep 13 16:05:23 can i add an onclicklistener to a customview just like a button? Sep 13 16:05:56 can set it to any View i believe Sep 13 16:07:01 :) Sep 13 16:16:42 If I update a variable then call invalidate on a View and that view then gets the updated value. do I need to synchronize then? Because the update of the UI is run on the UI then I could get another event from my sensor while validating the UI right? Sep 13 16:25:50 shouldn't need to synchronize things that happen on the same thread, right? [like event callbacks, and things that happen while redrawing the view.] 'course, you might need to synchronize the update of the variable itself, if it's happening outside the (main ui) thread Sep 13 16:26:21 s/update/update and read Sep 13 16:28:29 hello guys Sep 13 16:28:57 anybody have used the timeSquare calendar by JakeWharton ? Sep 13 16:34:11 I need to change the name of the months fot the calendar to armenian.. Sep 13 16:34:26 either the one in the timeSquare or the native calendarview.. doesnt matter Sep 13 17:16:35 https://www.dropbox.com/s/kxuqkyt2yclatbj/Screenshot%202014-09-13%2017.17.15.png?dl=0 Sep 13 17:16:35 if i include google-play-services_lib project in my project as library, when i run project eclipse blocks! Sep 13 17:16:40 why ?? Sep 13 17:16:43 Methodinvocation'actionBar.setTitle("Highscores")'mayproduce'java.lang.NullPointerException' Sep 13 17:16:50 i have also tried with a clean workspace Sep 13 17:16:57 Isnt it the app itself that decies if there is an Actionbar or not? Sep 13 17:17:11 zorka: it depends on your theme Sep 13 17:17:22 and window features requested by the activity Sep 13 17:17:25 the theme on the phone or theme in app? Sep 13 17:17:31 in the app Sep 13 17:17:40 I need some help, here's my activity code http://pastie.org/9550614 - I get this error "Attempted to access a cursor after it has been closed." - when i type something in the search box (EditText) and then quickly backspace it. once the box is empty and backspace gets triggered for a couple of times, it gives the error. what am i doing wrong ? need some help... Sep 13 17:17:43 you can give your activity a theme without an actiobar Sep 13 17:18:17 JacobTabak, see the warning from Android Studio above. I have configured to use Actionbar but dont get the warning. My question is if I could get a NullPointer exception because of a config of the phone that the usr have Sep 13 17:18:44 no, if you get that exception its your fault Sep 13 17:19:00 JacobTabak, ok, great ty Sep 13 17:23:16 new InitializerTask( getActivity() ).execute(); Sep 13 17:23:24 unchecked call, do I need to worry about that? Sep 13 17:24:35 generally no, you can suppress the warning with this annotation: @SuppressWarnings("unchecked") Sep 13 17:25:04 depends a bit on what initializertask is Sep 13 17:38:01 an image that is 42*42px and need to fit into a drawable of size 56*56 will get stretched right (not just sit in 42*42 of the top left)? Sep 13 17:39:21 an image doesn’t fit into a drawable Sep 13 17:39:39 are you using an imageview? Sep 13 17:39:50 or are you using a bitmapdrawable Sep 13 17:43:03 if a class has protected class member, then it would be accesible in the subclass right ? Sep 13 17:43:19 uh yea Sep 13 17:44:56 JacobTabak: so i am just wondering that the class CursorAdapter has some protected members, why arn't they accessible in a class that I created that extends CursorAdapter ? Sep 13 17:45:25 such as? Sep 13 17:45:46 cursoradapter has no protected members, only protected methods Sep 13 17:46:01 mCursorFilter Sep 13 17:46:46 oh thats not right at all, retracted Sep 13 17:46:49 I see these http://puu.sh/bxrXV/cecac069e3.png Sep 13 17:47:40 when I try using mCursorFilter in my adapter class android studio makes that red Sep 13 17:47:47 so I guess its not accessible, trying to understand why Sep 13 17:48:12 the documentation here says Sep 13 17:48:28 /**This field should be made private, so it is hidden from the SDK.{@hide}*/ Sep 13 17:49:01 i can totally see that though Sep 13 17:49:07 right Sep 13 17:49:09 must be a bug Sep 13 17:49:11 it’s hidden from the sdk but exists in source code Sep 13 17:49:12 its not Sep 13 17:49:14 they dont want you to touch it Sep 13 17:49:17 and probably for good reason Sep 13 17:49:24 but there is a workaround of course http://stackoverflow.com/questions/4951146/is-it-possible-to-use-android-sdk-methods-with-hide-annotation Sep 13 17:49:29 yeah but i see it right there Sep 13 17:49:37 the SDK doesn’t… Sep 13 17:49:47 it doesnt matter if you see it or not lol Sep 13 17:49:56 can't be working is all im saying Sep 13 17:50:03 it works fine Sep 13 17:50:20 you mean even if androd studio shows it as red it'll work ? Sep 13 17:50:40 i don’t think it will… because the compiled stub doesn’t have it Sep 13 17:50:45 which is why i thought it wasn’t there Sep 13 17:51:09 okay, so I guess when ou add @hide to source code, it gets removed from the compiled SDK or some such thing Sep 13 17:51:15 sorry I dont understand much of internals Sep 13 17:51:19 seems like it, me neither Sep 13 17:51:25 but i also listen when it’s obvious im not supposed to use something lol Sep 13 17:51:56 http://stackoverflow.com/questions/17035271/what-does-hide-mean-in-the-android-source-code this is interesting Sep 13 17:51:56 ya i wont use it Sep 13 17:53:10 so when I use an API like v19, there's some compiled SDK thing that I am working with that is generated from the android source code? Sep 13 17:53:36 yea the sdks are compiled, you can’t change the sdk code Sep 13 17:53:50 you can attach sources but it’s not modifiable Sep 13 17:54:16 ok i am getting it, so I'll tell you where I am coming from Sep 13 17:54:17 unless of course you’re making a custom rom.. Sep 13 17:54:36 i was trying to use filter with simplecursoradapter Sep 13 17:55:04 attached a filter with setFilterQueryProvider(FilterQueryProvider#runQuery) Sep 13 17:55:22 apparently the cursor inside gives error sometime saying it has already been closed Sep 13 17:55:32 so I was digging further in the stack trace and reading code and came across this Sep 13 17:55:35 http://developer.android.com/reference/android/widget/CursorAdapter.html#runQueryOnBackgroundThread(java.lang.CharSequence) Sep 13 17:55:43 that is being used in CursorFilter@performFiltering Sep 13 17:56:19 so this function call runs the runQuery I attached in background and returns a new cursor and then later the old cursor is closed? Sep 13 17:56:23 is that what happens? Sep 13 17:56:39 i can see publishResult calls a function in the adapter called changeCursor that does the closing of old adapter Sep 13 17:56:45 am i getting the flow/idea right ? Sep 13 17:57:13 in the runqueryonbackgroundthread, the doc says “fter this method returns the resulting cursor is passed to changeCursor(Cursor) and the previous cursor is closed. “ Sep 13 17:57:24 so if you’re asking about the cursor being closed, yes it is closed Sep 13 17:57:39 hm i guess thats why the error shows up and app crashes, ave to figure out how to fix it Sep 13 17:57:46 this is my app code http://pastie.org/9550614 Sep 13 17:58:23 ok 1 question though, regarding threads again as I was asking yesterday. the filtering operation is asynchronous, which means happens on another thread. then in the filtering operation there's the runQueryOnBackgroundThread, that means that operation happens on yet another thread ? Sep 13 17:58:29 don’t hang on to mCursor shmoon_ Sep 13 17:58:40 and blocks the other thread on which the filtering is happening till it returns ? Sep 13 17:58:45 JacobTabak, yes, bitmapdrawable Sep 13 17:59:17 JacobTabak: I think the error always happens on return adapter.getCursor() Sep 13 17:59:23 zorka: you can set the tileMode of the bitmap drawable Sep 13 17:59:40 but it will get stretched? Sep 13 17:59:55 look at the documentation for tileMode Sep 13 18:00:03 but what di you mean anyway bu not hanging on to it, what should id o ? Sep 13 18:00:04 do* Sep 13 18:00:06 shmoon_: in your setFilterQueryProvider, your are saving teh result in mCursor Sep 13 18:00:27 ya but it gets reinitialized everything and is not being really used anywahere Sep 13 18:00:28 shmoon_: you want that to be a locally scoped variable that is returned Sep 13 18:00:46 just listen to me - do not save it Sep 13 18:00:56 ok so replace mCursor with Cursor cursor there ? Sep 13 18:00:59 I am using a Slider menu made with DrawerLayout, but i have a "problem", before i was using tabhost and it was good, but actualy i use ActionBar Tabs, and my problem is : The slider menu is in background than the tabs, Sep 13 18:01:15 How to put it in mainground ? Sep 13 18:01:18 shmoon_: it won’t solve your problem but it’s definitely a good change Sep 13 18:01:24 shmoon_: reviewing the rest Sep 13 18:01:36 JacobTabak: ah ok, I actually did a change there 2mins back which is this http://pastie.org/9551140 Sep 13 18:01:38 JacobTabak thanks for Actionbar tabs it work fine if i use API 11 functions :D Sep 13 18:01:46 And it's realy more easy for acces tabs Sep 13 18:02:20 I use a custom listener with hide/show it works fine :) Sep 13 18:05:00 http://stackoverflow.com/questions/21884675/drawerlayout-on-top-of-actionbar i read it Sep 13 18:05:05 it's exacly that i need Sep 13 18:05:06 shmoon_: try putting your filter into aftertextchanged? Sep 13 18:08:00 JacobTabak: ok i can do that although not sure what that'll change should be same Sep 13 18:09:34 ya same error Sep 13 18:09:47 JacobTabak: do you think my threads understaning is right ? Sep 13 18:11:15 sec Sep 13 18:13:40 shmoon_: runqueryonbackground thread doesn’t create a new thread Sep 13 18:13:59 it means that framework always calls that method from a background thread Sep 13 18:14:27 so there aren’t two background threads, only one Sep 13 18:15:17 if I call it in my code even then it gets executed from/on a background thread? Sep 13 18:15:32 theres no magic Sep 13 18:16:56 is there anything to think of with regards to AsyncTask and if it gets interrupted? Sep 13 18:17:54 currently it gets called from CursorFilter@performFiltering so then I can understand Sep 13 18:18:11 but if i run it from my code which is running on main thread then I guess it'll run on that only Sep 13 18:19:25 why are you using a cursorfilter btw Sep 13 18:20:00 i am trying to use filters with a list of contacts fetched from phonebook. i did that by passing data from cursor to array and the applying filters to array. Sep 13 18:20:08 just wanted to understand how to work with filters with cursoradapters Sep 13 18:20:18 oh right, contacts content provdier Sep 13 18:20:19 fun times Sep 13 18:21:46 u Doesn't find good solutions, damn it, ActionBar is on top than DrawerLayout .. Sep 13 18:21:53 I* Sep 13 18:22:19 cyber37: thats the way drawerlayout is designed Sep 13 18:22:51 things make sense, thanks. I'll figure out how to fix the issue. Sep 13 18:22:58 thanks a lot JacobTabak Sep 13 18:23:04 didn’t help much Sep 13 18:23:09 Damn it .. Did you know something like it for make sliding menu easly ? Sep 13 18:23:10 rubber ducky can be good tho sometimes Sep 13 18:23:27 Loosing time on detail it's realy not funny [..] Sep 13 18:23:34 whose that? Sep 13 18:23:42 rubber ducky? Sep 13 18:23:50 just talking about problems makes progress toward solving them Sep 13 18:24:19 ok Sep 13 18:32:49 update passwords why? Sep 13 18:39:24 There has been an issue with one server. Sep 13 18:39:32 Exactly what has happened is unclear as yet. Sep 13 18:39:44 It's in principle possible that passwords have been compromised Sep 13 18:39:49 whats going on? Sep 13 18:40:00 Freenode issue Sep 13 18:43:32 I cannot create a new device in Android Studio AVD manager, anyopen witht he same problem? Sep 13 18:50:37 does Android Studio / IntelliJ have something like Eclipse's Tree/Project/File View 'Go Into' ... i'd like to just focus on a subtree in the project Sep 13 18:53:15 I am implementing a age counter that has seconds how do I keep changing it every second Sep 13 18:53:58 Lonesoldier728 try http://developer.android.com/reference/android/widget/Chronometer.html Sep 13 18:54:17 its kinda weird and fiddly, but works Sep 13 18:57:33 persnickety? Sep 13 18:57:51 yeah Sep 13 18:58:24 is there another way or is this the way to do it Sep 13 19:01:06 Hello everyone, totally new here. Thought I'd say hi for the record :P Sep 13 19:01:48 are we being recorded? Sep 13 19:01:57 ah countdown uses somethign erlse Sep 13 19:02:42 Did I mention I suck at english? haha Sep 13 19:03:39 g00s http://arstechnica.com/gadgets/2014/09/weve-got-a-35-firefox-os-phone-what-do-you-want-to-know/ Sep 13 19:03:55 * capella-s3 says ouchies Sep 13 19:05:00 "The Cloud Fx can't keep up with normal-speed typing. You have to press a letter and wait." Sep 13 19:05:09 heading for a bad reputation i see Sep 13 19:06:15 Should all EditTexts in dialogs have hints? Sep 13 19:06:21 capella-s3 is it just me, or is jtml5/js like the worst possible solution for people with probably very limited connectivity Sep 13 19:06:28 TacticalJoke: not if they have a label Sep 13 19:06:48 If they don't have a label, should they? Sep 13 19:07:00 depends if the dialog only has 1 field and it has a title Sep 13 19:07:20 because then maybe you wouldnt need one Sep 13 19:07:22 just a UX decision Sep 13 19:07:39 So is this chat more of passerbys that want to know something and leave or is there some sort of community? Sep 13 19:07:52 if I have the countdowntimer going for 1 hour or even 10hours will it kill the persons memory/battery? Sep 13 19:08:21 Lorenz9: a bit of both Sep 13 19:08:36 basically I want it to be unlimited but not sure if the person is not directly on the page of the app will it still run Sep 13 19:08:43 JacobTabak: Is there any documentation here? Sep 13 19:08:46 About this UX idea. Sep 13 19:10:50 Make interactive controls clear and discoverable. Do all interactive controls have associated text labels, tooltips, or placeholder text to indicate their purpose? Are you consistent in your terminology throughout the entire app? Provide the most relevant information first to the assistive technologies. When naming elements, make sure you're consistent in your terminology throughout your app. Sep 13 19:11:00 http://www.google.com/design/spec/usability/accessibility.html#accessibility-accessibility Sep 13 19:11:26 specifically Do all interactive controls have associated text labels, tooltips, or placeholder text to indicate their purpose? Sep 13 19:11:43 you need to have one of those. either a label or placeholder text (hint) Sep 13 19:11:49 I see. Sep 13 19:11:57 Is that just for Material Design, or for Holo too? Sep 13 19:12:06 tbh its common sense UI Design Sep 13 19:12:18 if something doesnt have a label nobody knows what to do with it Sep 13 19:14:12 Okay. Sep 13 19:14:20 Side question: Are hints better than labels? Sep 13 19:14:23 I guess they take up less room. Sep 13 19:15:07 TacticalJoke: i’d just look at some apps that you think have good design and usability Sep 13 19:15:17 and see the context in which they decide to use a hint or a label or both Sep 13 19:15:47 Yeah. Sep 13 19:15:59 I noticed that Google Calendar and Google Keep use hints in every EditText I see. Sep 13 19:21:42 how do I get a color resource defined in colors.xml? Sep 13 19:21:53 look it up Sep 13 19:21:56 heh Sep 13 19:22:11 zorka copy and paste your question into google Sep 13 19:22:24 and dont forget to feel lucky Sep 13 19:22:26 http://pastebin.com/XqdHEixf Sep 13 19:22:34 what does this error mean so confused right now... Sep 13 19:22:59 thats not legal public static final int 20dp=0x7f08000e; Sep 13 19:23:10 so you have a resource called 20dp Sep 13 19:23:13 :D Sep 13 19:23:24 variabels cant start with numbers Sep 13 19:23:34 oh Sep 13 19:23:36 right I have no idea where it is damn Sep 13 19:23:36 i see thats generated lol Sep 13 19:23:48 its in your xml Sep 13 19:24:14 you probably have 0x7f08000e somewhere Sep 13 19:24:21 or something Sep 13 19:26:02 what is it an id issue Sep 13 19:26:18 u cant name stuff starting with numbers Sep 13 19:26:22 has to start with a letter Sep 13 19:26:36 Lonesoldier728 also, try running lint on the project Sep 13 19:26:38 haha thanks Sep 13 19:26:49 I did layout_below 20dp Sep 13 19:26:52 by accident Sep 13 19:26:57 g00s: but R.color is not my file, I have colors.xml in values/ but i cant find it liek so: R.colors Sep 13 19:27:28 zorka read the docs, this is basic Sep 13 19:28:21 http://developer.android.com/guide/topics/resources/more-resources.html Sep 13 19:28:36 g00s: I am reading the docs but it doesnt work as they say... Sep 13 19:28:52 in xml it works but R.color is something else than my colors.xml file Sep 13 19:29:08 delete your imports Sep 13 19:29:18 and readd them, make sure you import your R rather htan android’s R Sep 13 19:34:34 ty JacobTabak , that was the issue, R. see g00s being constructive is always better sometimes you get stuck on stupid things Sep 13 19:34:53 sorry zorka i was wrong Sep 13 19:35:08 it was probably the way you worded the question Sep 13 19:35:16 i told you to google it also lol Sep 13 19:35:31 i thought it was forgoin getColor() :) Sep 13 19:43:25 I hate it when I'm stuck on an issue and I know I don't understand it enough to properly frame my question :/ Sep 13 19:43:39 ok, no worries :) Sep 13 20:25:47 how do I notify that a textview text has been changed Sep 13 20:25:57 it doesn’t work like that Sep 13 20:26:13 you have to change the textview’s text by calling textView.setText() Sep 13 20:27:16 hm yeah I am doing that nothing is changing Sep 13 20:27:38 nvm it is something with my timer Sep 13 20:33:47 JacobTabak so if I have a map and it will not all fit on one screen meaning I will have to let the user scroll left right up down, is it best to have coordinates based on the image view and not the location on the screen? Sep 13 20:34:18 is the map an image? Sep 13 20:34:32 ya Sep 13 20:34:39 use a library Sep 13 20:35:06 https://github.com/sephiroth74/ImageViewZoom Sep 13 20:36:02 not for the zooming part that is not the issue, I need something to happen depending where on the image the user clicks Sep 13 20:36:28 ok so you’ll have your image in a scrollview Sep 13 20:36:35 right? Sep 13 20:36:38 yeah Sep 13 20:37:10 so they can only scroll up and down or do they need to be able to scroll right and left as well Sep 13 20:37:44 as well Sep 13 20:37:54 I was thinking if I have a set image size I can find the coordinates of the image Sep 13 20:37:55 ok well scrollviews can only go 1 direction so that will be another issue Sep 13 20:38:16 basically what you’ll need to do is get containers scroll position + coordinates of touch Sep 13 20:41:05 why I cannot just say the first section of hte image Sep 13 20:41:12 capella-s3, pastebin and stack traces are your friend Sep 13 20:41:26 what do you mean ‘section' Sep 13 20:41:26 is a certain coordinate and if only the second half of the image is showing it wont start at 0,0 for example Sep 13 20:41:51 it is an image of the world map and basically depending on what continent is clicked I want something to pop up Sep 13 20:41:51 mikewallacedev Indeed Sep 13 20:42:15 Trying to build https://android.googlesource.com/kernel/msm/+/android-msm-dory-3.10-kitkat-wear but I keep getting errors. Sep 13 20:42:30 This if my first time building an android OS, so I followed this guide: http://xda-university.com/as-a-developer/getting-started-building-android-from-source Sep 13 20:42:52 no fair posting cross channel Sep 13 20:42:52 The exact error is: "arch/x86/tools/relocs.h:12:10: error: 'elf.h' file not found" Sep 13 20:43:23 Just trying to find the most relevant channel that isn't also dead. :) Sep 13 20:44:51 Is there some sort of configuration that need be done prior to building? Because elf.h does indeed exist. Sep 13 20:44:58 wrong channel Sep 13 20:45:10 TheMadcapper, go to android-root Sep 13 20:45:31 I've tried that channel for days. Sep 13 20:45:31 this place may not be dead but we’re in here because we don’t want to talk about rooting or building android from source Sep 13 20:45:40 if people were interested in doing that, they would be there Sep 13 20:45:41 Oh, why not? Sep 13 20:45:41 not here Sep 13 20:45:46 because read the topic Sep 13 20:45:51 :D Sep 13 20:46:05 can we talk about my goldfish? Sep 13 20:46:06 "We don't do it because we don't do it?" Sep 13 20:46:12 oh my god Sep 13 20:46:14 Well alright then.. Sep 13 20:46:18 you might just come in here and talk about ios dev Sep 13 20:46:24 because the ios chat is empty Sep 13 20:46:26 there's a specific IRC channel for htat Sep 13 20:46:38 Lorenz9, for my goldfish? Sep 13 20:46:51 Seems relevant to android-dev to me. But, yeah, alright. Sep 13 20:47:32 No :D The android OS Sep 13 20:47:42 This channel was made for your goldfish Sep 13 20:47:44 TheMadcapper is right, we should start talking about OS development. Ready.. Ok now!!! Sep 13 20:48:07 (poof Diane Hackborn logs in) Sep 13 20:49:33 Hello! Binder, and IPC and stacks and things! Sep 13 20:49:36 I normally wouldn't even feel the need to venture into such things, but my new watch requires pairing for basic use, and well, no bueno. Plus there are things about it I find annoying. If it were a phone, that's one thing, but a watch that is affixed to my arm is an extension of myself, and so I have far higher standards for what is and isn't acceptable. Sep 13 20:50:25 I actually *am* an iOS developer, though. ^_^ Sep 13 20:50:25 maybe you should buy a watch that better suits your needs Sep 13 20:50:39 kick! :D Sep 13 20:50:40 hi Sep 13 20:51:09 * capella-s3 still thinks we should rename to #android-appdev... but there'll still be those who will ignore Sep 13 20:51:30 capella-s3: That would certainly clear things up. Sep 13 20:51:34 Ok.. without wanting to go off topic, I have an Android development related question... Sep 13 20:52:07 sometimes in gradle I can add dependency to compile, how does it work? Sep 13 20:52:12 does it involve goldfish Sep 13 20:52:22 I even don't need to download source Sep 13 20:52:24 capella-s3 most of the time, people don't care - more a thing of disregard Sep 13 20:52:43 yacek19: it’s based on the maven model, meant to simplify your life, just be happy Sep 13 20:52:43 yah... who follows directions Sep 13 20:53:22 JacobTabak: I would like to add ExoPlayer, I do something like that: compile 'com.google.android.exoplayer:library:1.0.13' and it doesn't work Sep 13 20:53:28 so I would like to debug it :) Sep 13 20:53:31 it has to exist in maven central Sep 13 20:53:35 or any other maven repository Sep 13 20:53:47 we had a guy on moz #introduction for 4 days trying to get an organization chart app recommendation and wouldn't take a hint Sep 13 20:54:00 I am hiding and showing navigation and action bar. I have a pager view. All works fine. Some of the pages show images, no problem. Some of the pages show movies, no problem. Here's the problem: when I tried to show/hide the mediacontroller with the navigation, the navigation doesn't hide! Does that ring a bell? Sep 13 20:54:12 gtft and go away Sep 13 20:54:19 yacek19: it looks like they haven’t uploaded this lib to maven central Sep 13 20:54:42 JacobTabak: that explains a lot, thanks Sep 13 20:55:48 g00s but who listens :p Sep 13 21:07:51 Okay so Sep 13 21:08:00 > you are asking for dev advice in a channel about rooting Sep 13 21:08:02 > /join #android-dev Sep 13 21:08:13 Round and round we go! Sep 13 21:08:17 android-root Sep 13 21:08:24 That is from android-root Sep 13 21:08:38 You send me there. They send me here. Sep 13 21:08:45 well, then you asked them dev questions :D Sep 13 21:09:00 No. I asked the same thing I asked you. Sep 13 21:09:02 here, you asked how to build a rom Sep 13 21:09:19 Which has to do with building android source. Sep 13 21:09:30 right, that's not what we do here Sep 13 21:10:55 wait... Let me be honest here. I've never been to Android-root. I'm just repeating what others have said here. Sep 13 21:11:13 Cause the name android-root never did makes sense to me... Sep 13 21:11:22 rooting and rom building are not the same thing... Sep 13 21:11:36 is there another channel?? Sep 13 21:11:47 list them Sep 13 21:11:52 I've always seen people write android-root Sep 13 21:12:24 anyhoo.... Sep 13 21:12:37 Here's my question, in pastebin form : http://pastebin.com/p0NkbFhv Sep 13 21:12:50 try typing /msg alis list *rom* Sep 13 21:13:03 or /msg alis list *foo* Sep 13 21:13:19 /join #android-foo Sep 13 21:17:44 * TheMadcapper sighs Sep 13 21:21:51 i think you prly should just go to xda developers :P Sep 13 21:22:45 yeah, at least they can give you better suggestions that we can :) Sep 13 21:23:12 i see this #androidrom-dev Sep 13 21:23:20 there are 14 people in it... Sep 13 21:25:14 Hello Sep 13 21:25:22 I've been in XDA for the last 3 days. I was told the channel is now mostly dead, and that only people looking for help seem to find their way in there. So it's people looking for help trying to help other people looking for help, none of which are particularly knowledgable. I was told the forums are still active, but since the channel isn't advertised anywhere, few people ever find there way to the channel. Sep 13 21:25:56 So yeah, I've already tried. Sep 13 21:26:01 Are there any good libraries for doing icon tabs like the Facebook app? Sep 13 21:26:43 there's a CM channel too Sep 13 21:28:58 was anyone able to check out my pastebin? Sep 13 21:29:14 i did but i don’t get along with mediacontrollers Sep 13 21:29:25 Bastards. I know. Sep 13 21:30:07 It's the weirdest thing... (I have a tendency to see the weirdest things...) Sep 13 21:34:18 I've got a question involving the keyboard and sliding views. The full question can be found here http://pastebin.com/F2WiYL0T many thanks in advance for any help. Sep 13 21:34:19 I'm making screen casts to better show the problem... Sep 13 21:46:16 anyone? Sep 13 21:52:04 android-dev061, lots of ways, depending on what layout you use Sep 13 21:52:17 new InitializerTask( getActivity() ).execute(); //uncheck call, do I need to worry about that? If an AsyncTask gets interrupted Sep 13 21:52:29 is parsing resources expensive? Sep 13 21:55:15 The unityview is a framelayout and the edittextbox is in a relativelayout along with a button. Sep 13 22:00:04 I am doing I/O when I create a level, I read and parse a TMX file. I better do this as an AsyncTaks right? Sep 13 22:00:14 and not block the ui thread Sep 13 22:01:13 so I made a screen cast... I'm uploading it to videobin.. That's taking forever. Sep 13 22:01:19 Oh great, it just failed. Sep 13 22:01:36 let me try something else... Sep 13 22:01:55 sqerk, absolutely. **** BEGIN LOGGING AT Sat Sep 13 22:07:00 2014 Sep 13 22:13:12 can someone help me out with Google Maps? I followed this https://developers.google.com/maps/documentation/android/start and I can't seem to do anything with my map fragment. I'm completely new (literally) to this so I hope I'm not asking for too much Sep 13 22:20:03 Is it not possible to block phones on performance (as it is on screen size)? Sep 13 22:20:11 load screens are so fugly Sep 13 22:23:11 what do you need to load Sep 13 22:29:10 JacobTabak, I need to parse a tmx file to get my level. and allocate some stuff Sep 13 22:42:32 I'm back. Found an awesome script for upload files to Google Drive from the Linux command line. Sep 13 22:42:48 here is the updated pastebin with screen captures Sep 13 22:43:08 http://pastebin.com/YvLjExyH Sep 13 22:44:10 sqerk, the thread didn't help? Sep 13 22:48:03 android:paddingRight is not working at all http://pastebin.com/xpUGLbYb please dos i made any thing worng ! Sep 13 22:52:33 does anyone know if the in-app billing API v3 is backwards compatible? Sep 13 22:52:44 meaning if I only implement v3, and install this on a device that only has v2, or v1, will this work? Sep 13 23:06:18 I've got a question involving the keyboard and sliding views. The full updated question can be found here http://pastebin.com/SAD6kr1n many thanks in advance for any help. Sep 13 23:07:01 sorry here http://pastebin.com/LkCn8GC6 Sep 13 23:08:01 echo Sep 13 23:15:25 The docs say "[I]f your text field is intended for basic text input (such as for a text message), you should enable auto spelling correction with the "textAutoCorrect" value". This doesn't make any difference for me. Autocorrect is already enabled. Why do the docs say this? Sep 13 23:18:49 Hey. Does anyone know if it's possible to have different colors on a text based on background color? I want to drawText() on top of a progress bar.. Sep 13 23:18:56 TacticalJoke: because you may want to disable it Sep 13 23:19:24 Chamooze: you can theme it however you want Sep 13 23:20:48 "theme it"? Problem is, the progress bar is a light color and the background dark, so depending on how far the progress bar has come, different parts of the text becomes unreadable.. Sep 13 23:22:18 can you pick a text color that’s visible on both Sep 13 23:22:23 ? Sep 13 23:22:50 question from me - trying to generate a release build and javadoc generator is freaking out about teh support library, any ideas? Sep 13 23:23:51 android-dev061, so you're not actually making he keyboard? You just want your app to react a certain way. Am I correct? Sep 13 23:24:26 I could muck about with colors, but I think having a "dynamic" color-thing on the text would be the best looking solution.. not finding much on Google though, don't think I'm even searching for the right stuff (since I dunno what the effect itself is even called. heh) Sep 13 23:24:40 JacobTabak, are you using Gradle? Sep 13 23:24:42 JacobTabak: But the docs say that textAutoCorrect needs to be enabled. It doesn't... Sep 13 23:24:48 yes fgsguedes Sep 13 23:24:55 i see this :http://www.gradle.org/docs/current/dsl/org.gradle.api.tasks.javadoc.Javadoc.html Sep 13 23:25:03 but i don’t have a sourceset defined, i just want it to work :\ Sep 13 23:25:20 Chamooze, I don't think there's anything native for that. Look for libraries, or get raedy to start coding a lot :) Sep 13 23:25:44 Chamooze: the palette api is probably close to what you’re looking for, but it’s only in L and above Sep 13 23:25:51 so not going to work on any device that’s currently out there Sep 13 23:26:36 Chamooze, if I understand correctly, you want one part of the text to be one color, and another part to be a different color, right? Sep 13 23:27:52 MikeWallaceDev, you are correct, It's the default keyboard for whatever device/version it is shown, I would like it to have an edit text box slide in with it like it is possible to do on ios, with out it pushing up unity view. Sep 13 23:28:54 Mike: Yeah. The big problem is that since it's a progress bar underneath, so the "size" of each part changes dynamically.. :/ Sep 13 23:29:53 any idea fgsguedes ? Sep 13 23:30:22 Chamooze, that's what I thought. First I'd look for a library. Because you will have to do it yourself, draw letter by letter, with the appropriate color... Sep 13 23:30:49 shouldn't be too hard though Sep 13 23:31:10 nah, not letter by letter, just one part of the string, and then the other part Sep 13 23:31:23 Nothing for now, the build process is interrupted when generating JavaDocs, is that right? Sep 13 23:31:27 Hmmmm... Maybe painting the text twice and using a clip Sep 13 23:31:31 sorry, I wrote an editor previously and kind of got caught up there :) Sep 13 23:31:32 that should work Sep 13 23:31:55 Chamooze, exactly Sep 13 23:32:43 I'm out... later. Sep 13 23:32:46 related question, can anyone think of a library they use that depends on teh support lib? i awnna check out their github Sep 13 23:34:47 ActionBarSherlock uses support library https://github.com/JakeWharton/ActionBarSherlock Sep 13 23:35:29 thanks fgsguedes Sep 13 23:35:35 he’s not doing anythign special :| Sep 13 23:35:50 wonder what i’m doing wrong Sep 13 23:36:02 oh Sep 13 23:36:06 he has a jar included for support lib Sep 13 23:36:12 rather than a gradle dependency Sep 13 23:36:41 Because it predates Gradle Sep 13 23:37:01 i’m trying to do a maven upload and javadoc generation is dying on the support libs, just trying to figure out whats up Sep 13 23:37:05 But his build.gradle still declares "compile 'com.android.support:support-v4:18.0.+'" dependency Sep 13 23:37:27 I think he's keeping that jar only for compability purposes Sep 13 23:37:32 With non-gradle projects Sep 13 23:37:57 Indeed Sep 13 23:38:52 Could you pastebin a log of your bild so I can see whats happening and maybe have some more ideas on how to help? Sep 13 23:38:57 sure, thanks Sep 13 23:39:35 http://pastebin.com/CpJVVYxD Sep 13 23:40:03 Well, that was ridiculously easy. Why didn't I think of that straight away? lol Sep 13 23:42:18 hmm, that's weird Sep 13 23:42:25 Is Gradle in Android Studio fast yet? Sep 13 23:42:34 is that a joke ? Sep 13 23:42:58 why do you ask if its a joke g00s Sep 13 23:43:02 Serious question. I haven't tried it in months. Sep 13 23:43:06 it used to be very slow Sep 13 23:43:10 and it’s substantially faster now Sep 13 23:43:17 The last time I tried it, it was as fast as a hungover tortoise. Sep 13 23:43:29 TacticalJoke: it’s much faster Sep 13 23:43:36 Yeah, it's pretty good now Sep 13 23:43:50 Good. Sep 13 23:44:04 still not as fast as ant, but it does so much more Sep 13 23:44:36 Which gradle and gradle-plugin versions are you using? Sep 13 23:44:59 I've got a question involving the soft keyboard and sliding views. The full updated question can be found here http://pastebin.com/MEfmW9yA many thanks in advance for any help. Sep 13 23:45:52 fgsguedes: the defaults in the latest version of AS, geting #s now Sep 13 23:46:05 plugin 0.12.2 Sep 13 23:46:20 gradle 1.12 Sep 13 23:48:13 fgsguedes: here’s the source https://github.com/jacobtabak/Fragment-Switcher Sep 13 23:49:26 i think i may have just found it Sep 13 23:49:42 nope still failing :\ Sep 13 23:51:30 How do I remove my view from its parent? Sep 13 23:52:00 viewgroup.removeview Sep 13 23:52:14 have to call it from the parent Sep 13 23:52:16 Cloned your project, trying to reproduce/fix, one second Sep 13 23:52:18 Hi guys. How do I select Thumbnails for particular images? (im my case for images stored in particular folder). I have a CursorLoader created with MediaStore.Images.Thumbnails.KIND + " = " + MediaStore.Images.Thumbnails.MINI_KIND + Sep 13 23:52:18 " AND " + MediaStore.Images.Thumbnails.IMAGE_ID + " IN (?)" (and comma separated ids in selection arguments) but it doesn't work :( Sep 13 23:52:42 zorka yourView.getParent().removeView(yourView) Sep 13 23:53:04 JakeWharton: BTW, did you see this? They're adding JVN unit-testing support to Android Studio. https://code.google.com/p/android/issues/detail?id=65186&q=robolectric&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Sep 13 23:53:05 AlexBerdnikov: use this http://developer.android.com/reference/android/provider/MediaStore.Images.Thumbnails.html Sep 13 23:53:56 public static Bitmap getThumbnail (ContentResolver cr, long origId, int kind, BitmapFactory.Options options) Sep 13 23:53:56 TacticalJoke: I have met with them multiple times about it Sep 13 23:54:19 JacobTabak, Of course I have this page opened and that's where I get and idea to use IMAGE_ID column from Sep 13 23:54:29 JakeWharton: I'm guessing it's gonna be implemented soon? Sep 13 23:54:35 But for some reason it doesn't work Sep 13 23:55:03 TacticalJoke: Depends on your definition of soon Sep 13 23:55:39 I can't move to Android Studio till this is implemented. ;| Sep 13 23:55:53 AlexBerdnikov: i have been using this api a lot the last few days Sep 13 23:56:02 for video thumbnails, but it should be the same Sep 13 23:57:25 fgsguedes: thank you for taking the time to look into it, kind of stumped :( Sep 13 23:58:19 I select images from the app-specific folder where I store the photos taken with standard Camera Activity (MediaStore.Images.Media.DATA + " LIKE '%" + APP_PICTURES_DIRECTORY_NAME + "%'" as selection). Then I extract _ID columns values, save them as array and then use it in selecting thumbnails but with no luck :( Sep 13 23:58:48 The two show-stoppers for me were (a) no JVM unit tests and (b) slow Gradle. Sep 13 23:58:53 when you say selecting thumbnails, you mean using the getThumbnail method in MediaStore.Images.Thumbnails? Sep 13 23:58:55 Seems like the latter might be fixed. The former might be fixed "soon". Sep 13 23:59:12 I'm amazed that so many people use Android Studio without JVM unit tests. Sep 13 23:59:26 Do people seriously use the emulator or devices to run automated tests?! Sep 13 23:59:36 yes, or robolectric Sep 13 23:59:42 it’s fast on genymotion Sep 14 00:00:58 JacobTabak, No I have a CursorLoader for my SimpleCursorAdapter where I select Thumbnails Sep 14 00:01:12 what are you expecting to get back? Sep 14 00:01:29 blob? Sep 14 00:03:57 God, I hate that song Happy by Pharrell. I must've heard it a hundred times by now. Sep 14 00:04:17 Yes, particular Thumbnails to be loaded and showed in my GridView. When I simply select Thumbnails with only clause (MediaStore.Images.Thumbnails.KIND + " = " + MediaStore.Images.Thumbnails.MINI_KIND) it works great but it loads all the thumbnails I have on my phone even those weren't taken from my app. Sep 14 00:04:43 The idea is that I have a particular directory where I store the photos of my app Sep 14 00:05:08 And I have the activity where I want to display their thumbnails Sep 14 00:05:18 Only for thos pics I have in my directory Sep 14 00:05:50 ANd I can easily select the photos from that directory, but I can't find the way to select thumbnails for them Sep 14 00:07:18 AlexBerdnikov: are you saying that adding a clause to your query prevents the thumbanils from working? o.O Sep 14 00:07:32 java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. Sep 14 00:07:46 thats pretty self explanatory zorka ? Sep 14 00:07:51 Not stopping, just returns empty result Sep 14 00:07:51 I get that when starting my fragment again but with the same custom view as before Sep 14 00:08:15 JacobTabak, I dont know exactly where iny mcode it hapens, no trace back to my code Sep 14 00:08:35 what is your constant APP_PICTURES_DIRECTORY_NAME? Sep 14 00:09:46 "Travel Pictures". And pictures are successfully stored there Sep 14 00:10:38 and what is the data field on resulting cursor? Sep 14 00:13:25 is it URL encoded? Sep 14 00:13:40 because if it was, the space would cause probelms for you Sep 14 00:13:47 http://developer.android.com/reference/android/provider/MediaStore.Images.Thumbnails.html here said that IMAGE_ID is The original image for the thumbnal (ID from Images table) so it seems that if I have an image inimages content provider with id = 17 then when I select Thumbnails with IMAGE_ID = 17 it should return my such... but it doesn't. Sep 14 00:14:19 It works great without the clause specifying IMAGE_ID column Sep 14 00:14:24 does it work when you use the method (getThumbnail…) Sep 14 00:14:33 rather than querying Sep 14 00:14:36 JacobTabak: No luck here :( Sep 14 00:14:38 I didn't try that Sep 14 00:14:47 And I have to leave to dinner Sep 14 00:14:53 thanks for takin a look Sep 14 00:14:57 fgsguedes, appreciate it Sep 14 00:15:03 Hope you solve it Sep 14 00:15:12 Good luck :) Sep 14 00:15:14 See ya Sep 14 00:16:21 I simply created a SimpleCursorAdapter with CursorLoader returning cursor to that for thumbnails. ANd it works perfectly unless I specify IMAGE_ID column for thumbnails. Sep 14 00:21:58 so have you tried using the getthumbnail method... Sep 14 00:27:53 You mean select images instead of thumbnails and pass getthumbnail() return value as a data for grid\list row? Sep 14 00:36:15 no, i mean passing the ID into the getThumbnail method i keep referring to you, that returns a bitmap Sep 14 00:39:51 Hey, how do I make my android app send a post request to my django server with an image and get JSON back? Sep 14 00:40:09 use retrofit Sep 14 00:41:15 Do you know how I can deal with the csrv token? Sep 14 00:41:20 can anyone tell me how to get the ‘gradle androidJavadocs’ task to work? it keeps failing on the android support lib dependency Sep 14 00:41:21 Sorry, I’m really new at all of this Sep 14 00:41:42 i don’t know what a csrv token is, is that a cookie? Sep 14 00:42:08 shit, I meant csrf_token Sep 14 00:42:14 It’s an authentication thing Sep 14 00:42:18 is it a cookie? Sep 14 00:43:41 hello everyone Sep 14 00:44:11 I don’t really know the specifics Sep 14 00:44:11 Synchronizer token pattern is a technique where a token, secret and unique for each request, is embedded by the web application in all HTML forms and verified on the server side. The token may be generated by any method that ensures unpredictability and uniqueness (e.g. using a hash chain of random seed). The attacker is thus unable to place a correct token in his requests to authenticate them.[17][1][18] Sep 14 00:46:02 ok well if it’s a django thing then you wont find the answer here Sep 14 00:46:14 but if it’s a cookie or something you attach to the request, it should be no problem to generate Sep 14 00:46:18 well it’s more of a web thing Sep 14 00:46:43 I just found this and it says about the same thing” http://stackoverflow.com/questions/9252360/android-sending-post-requests-to-django-server-csrf-failing Sep 14 00:46:53 when should one implement splashscreens when creating an application? Sep 14 00:47:32 detachYo there is no absolute answer to that Sep 14 00:47:45 you are asking for opinion, from… opinionated :) Sep 14 00:47:51 a dangers thing Sep 14 00:47:59 dangerous * Sep 14 00:48:13 I don't mind about opinions. Sep 14 00:48:14 :) Sep 14 00:48:42 well the opinions are pretty pointless without total context awareness Sep 14 00:48:48 ok then I say never Sep 14 00:48:57 capella-s3: ok, but why? Sep 14 00:49:09 cause I said so Sep 14 00:49:13 I want opinions, but also want to know why your opinion is that way. Sep 14 00:49:18 capella-s3: you're funny :) Sep 14 00:49:41 detachYo you are asking programmers for their opinion on a design issue Sep 14 00:49:46 Opinions have no relative value, that's the point Sep 14 00:49:47 not the best way to go about this Sep 14 00:50:00 * capella-s3 agrees Sep 14 00:50:05 if you cant decide then odds are you dont want one ;) Sep 14 00:50:14 haha, thats true StingRay_ Sep 14 00:50:20 capella-s3: i get your point Sep 14 00:50:29 detachYo: no splash screens Sep 14 00:50:37 but usually you have an opinion about something because there is a reason behind it. Sep 14 00:50:43 Or just ugly ones Sep 14 00:50:45 there has to be very strong reasons, either functional or design for things like splash screens Sep 14 00:51:30 Should apps have hamburger buttons Sep 14 00:51:39 or side panels Sep 14 00:51:49 capella-s3: that's a good one. haha Sep 14 00:51:54 You write it, you decide Sep 14 00:52:26 no clue why I got disconnected. Sep 14 00:52:28 Sorry about that. Sep 14 00:52:42 Should I wear white after labor day? Sep 14 00:52:48 detachYo your irc have a b*llshit question detector ? Sep 14 00:52:52 :) Sep 14 00:53:03 StingRay_: i wrote it myself, in Perl. :P Sep 14 00:53:10 nice Sep 14 00:55:17 ok another question, more realistic this time. Sep 14 00:55:26 I am trying to have user registration and authentiation in my app. Sep 14 00:55:47 I have an ec2 instance and I RESTful application, they consume json and spit out json. Sep 14 00:56:09 What's the best to create this? Do I have sharedpreferences to keep state of the user on the app? (logged in/logged out) Sep 14 00:56:13 Or do I use global variables? Sep 14 00:56:28 Or are there web session equivalents on android phones? Sep 14 01:01:27 hmmm, when sending mms on T-Mobile US I get a 400 response and obviously a fail, this has only recently started and is not the same with any other mmsc… malformed request… yeah… any way to get further info from a "response" ? Sep 14 01:02:14 pretty stumped with this as it's so hard for me to test, given the thousands of miles and lack of access to the network :) Sep 14 01:18:59 ok another interesting question … anyone attempted an ssh tunnel to usb device on a remote host for the purpose of debugging an app ? Sep 14 01:20:10 I believe you're venturing into almost completely unexplored territory ;) Sep 14 01:20:48 ravilov I do think shh tunnel may work though Sep 14 01:20:52 plink etc Sep 14 01:20:53 also no, whatever the server sends you is it, the only way to know more (like why an error happened) is to look at error logs Sep 14 01:21:16 s/error logs/server logs/ Sep 14 01:22:21 yeah it sounds feasible but definitely report back with how it went Sep 14 01:31:35 well i finally figured out this javadoc thing Sep 14 01:31:36 derrrrp Sep 14 01:31:41 https://github.com/chrisbanes/gradle-mvn-push/issues/39 Sep 14 02:11:31 anyone want to review this ? https://github.com/jacobtabak/Fragment-Switcher Sep 14 02:21:01 guys whats a good guide for eventbus Sep 14 02:21:24 the wiki Sep 14 02:21:46 StingRay_: check out my thing because why not :D Sep 14 02:21:54 cliffreich https://code.google.com/p/guava-libraries/wiki/EventBusExplained Sep 14 02:22:36 ok will read thanks Sep 14 02:23:34 i have a customview in a fragment with an onclicklistener which has an intent to another activity but it doesn't work because of getActivity()...how can I get the proper context? Sep 14 02:23:50 i know its a simple question, sorry but i dunno Sep 14 02:24:19 getActivity() should be sufficient Sep 14 02:24:36 and "doesn't work " is such a user thing to say Sep 14 02:24:48 npe Sep 14 02:24:57 http://imgur.com/jacoj Sep 14 02:25:24 stop attempting to use null then…it obviously doesn't like it Sep 14 02:30:32 JacobTabak I take issue with "100 fragments in a FragmentStateArrayPagerAdapter" Sep 14 02:30:34 lol Sep 14 02:30:40 why? Sep 14 02:30:45 that’s what its designed for Sep 14 02:31:26 its just to prove that you can do it with no effort :) Sep 14 02:32:23 well the issue for me would be use case, or lack of me being able to think of one, but that me… and if something were so complex that would need an adapter of fragments that number than many, I suspect I may try and design around it Sep 14 02:32:34 but good to know that it can be done if needed Sep 14 02:32:53 what i’m getting from this is that the sample is distracting from the actual use case Sep 14 02:33:11 which is any time you want to switch between fragments using replace() you have to do a ton of work to retain instance state Sep 14 02:34:08 i mean, right? isn’t it a huge pain? Sep 14 02:34:14 was wondering why this hadn’t been done before Sep 14 02:34:20 well I dont think so Sep 14 02:34:59 give me a setup/use case for this from a high level pov Sep 14 02:35:14 balls this is your video thing right ? Sep 14 02:36:02 no... Sep 14 02:36:03 lol Sep 14 02:36:19 this is my video thing https://github.com/jacobtabak/Picasso-Video-Frame-Loader Sep 14 02:36:37 StingRay_: the use case is for if you have a navigation drawer Sep 14 02:36:42 and need to switch between fragments Sep 14 02:37:16 fragments in the drawer ? Sep 14 02:37:34 yes, most implementations of the drawer switch between fragments in the content pane Sep 14 02:38:18 well I dont use actionbar or nav drawer, I use a view and Simons Drawer as it's more open and less, balls :) Sep 14 02:38:31 but yeah, following ish Sep 14 02:38:51 well any situation where you switch between fragments, its a pain to manage instance state Sep 14 02:43:23 JacobTabak suppose I'm just used to grabbing a Parcelable from my complex view and adding to the fragment or activity parcel… then just simple 1 item restore for that view Sep 14 02:43:35 but maybe missing lots here, brain not working well today Sep 14 02:44:00 StingRay_: if you replace() the fragment, the instancestate of the fragment is lost Sep 14 02:44:13 you need to not only save the state of your views to your fragment, but then your fragment to your activity Sep 14 02:53:24 What is the best way to set up a library project? Using maven? Sep 14 02:54:19 lasserix hm, you using eclipse ? Sep 14 02:54:39 nah Sep 14 02:54:42 using AS and intellij Sep 14 02:54:59 intelij for the library project , as for the actual app Sep 14 02:55:32 basically i want my changes int he library to be reflected into the app without having to reimport the library every time Sep 14 02:56:19 i am opne to whatever, trying to get used to actually using gradle as a build scripter Sep 14 02:59:13 my problem is that my view is accessed in a static way so onclicklistener doesn't seem to work properly. **** ENDING LOGGING AT Sun Sep 14 02:59:59 2014