**** BEGIN LOGGING AT Tue Oct 09 02:59:59 2012 Oct 09 03:00:01 not that its on topic, but I want you guys to see my new baby Oct 09 03:00:03 moo Oct 09 03:00:06 I'm all proud and shit Oct 09 03:00:07 http://sphotos-b.xx.fbcdn.net/hphotos-ash3/560555_4713805282622_551755633_n.jpg Oct 09 03:00:24 very nice Oct 09 03:00:35 fork(): true Oct 09 03:00:44 ron_frown: i was ready to see an infant and comment on it's cuteness.... Oct 09 03:00:44 child process created Oct 09 03:00:48 :| Oct 09 03:00:59 nice ron_frown Oct 09 03:01:02 got the ducati Oct 09 03:01:04 oh. lol Oct 09 03:01:12 is cute Oct 09 03:01:16 what's the cc Oct 09 03:01:35 http://sphotos-a.xx.fbcdn.net/hphotos-ash3/12875_527335563947350_665012484_n.jpg Oct 09 03:01:36 fine Oct 09 03:01:40 there updated picture Oct 09 03:01:44 both my babies Oct 09 03:01:52 848 Oct 09 03:01:52 i'd love a road bike, but there's about 100m of good tarmac here Oct 09 03:02:28 lol Oct 09 03:02:39 inlnie 4? Oct 09 03:02:43 inline* Oct 09 03:03:07 oh vtwin Oct 09 03:03:54 hell yes Oct 09 03:03:56 vtwin Oct 09 03:04:09 bet that motherfucker rumbles eh Oct 09 03:04:38 not like a harley Oct 09 03:04:53 for a streeter tho Oct 09 03:04:57 my neighbour over the street has a harley Oct 09 03:05:09 i'm going to kill him one day soon Oct 09 03:05:11 i want a vrod Oct 09 03:05:17 comes home at mignight everyday Oct 09 03:05:36 *everynight Oct 09 03:05:38 or a custom chopper with ape hangers n such Oct 09 03:15:46 this is so weird, so if I check whether an object is null with an if (just to log whether it is) it'll work, but if I don't it'll throw a NPE Oct 09 03:23:20 looking for a tutorial on how to make eclipse or dab recognize my nexus 7 tablet so i can deploy to it, anyone have a link? google's not helping me much Oct 09 03:24:04 farekerhaiku Oct 09 03:24:11 search asus nexus 7 drivers, then install them Oct 09 03:24:14 it'll work after that Oct 09 03:40:27 lasserix, thanks. that comment led me to http://www.android.com/filetransfer/ which is all i needed Oct 09 03:51:49 lasserix, made a ghetto-rigged version using a ViewFlipper and onTouchListener. Not as elegant, but it does work :P Oct 09 03:54:52 does the ant build output in terminal give you all the errors you would get from javac, or the equivelent amount of information for debugging Oct 09 03:59:04 better question for #ant but I believe there are flags/properties that can influence the behavior Oct 09 04:02:28 Is it possible to replace a child view for a viewFlipper at index with another view? Oct 09 04:03:00 removeView(i) addView(view i - 1) Oct 09 04:04:14 sorry, no -1 Oct 09 04:11:51 alex_PP, that would add the view to the end of the list, wouldn't it? addView(view, i); Oct 09 04:16:21 hey, is it possible to detect when a user makes a call or sends a text? i'd like to record my calling/texting activity for a research project i'm working on Oct 09 04:16:33 i'm assuming that you'd catch an intent that's fired from those apps when you call/text Oct 09 04:16:53 hey all, I want to make list view that the item only snaps to the center of the list view. How can I do that? Oct 09 04:20:59 alex_PP: Is there any method to do it in one step? Somthing like replaceView(index, view); Oct 09 04:24:03 why is the nexus7 hdmi port upside down compared to the galaxy nexus :( Oct 09 04:26:47 yeah i dunno either ;p Oct 09 04:28:18 napster, not that i know of Oct 09 04:28:23 ok Oct 09 04:29:00 should happen atomiclly. you can't do much yo views from other threads Oct 09 04:29:03 *to Oct 09 04:29:48 ok Oct 09 04:30:41 actually I was using a button to flip across child views using setDisplayedChild() Oct 09 04:31:22 my concern was that, if the user fires a click even on the flip button, while I'm replacing the child view, it may go wrong. Oct 09 04:31:36 should be ok Oct 09 04:31:40 ok Oct 09 04:31:44 input events happen on the main thread too Oct 09 04:32:06 I see Oct 09 04:32:10 if replacing just catch the event rerun it later Oct 09 04:32:27 ok that seems neater Oct 09 04:33:02 but how to do it? Oct 09 04:36:46 napster, it'll be fine Oct 09 04:36:58 ok Oct 09 04:37:15 if you really want, you can put a sleep between the removce and the add so you have time to press the button if you don't trust me :P Oct 09 04:38:44 :) lol Oct 09 04:52:54 for what it's worth, i figured out how to capture incoming and outgoing calls Oct 09 04:53:41 this is kind of a stupid question, but does anyone happen to know of an android sqlite tutorial that was released relatively recently? i've already browsed through the existing tutorials, which i've used before, but found confusing back then Oct 09 04:53:48 or preferably something that's easy to understand Oct 09 04:54:24 (i'm familiar with sql and sqlite for the record, and have implemented a data access layer via a provider before, although i'm not sure if using a provider is overkill if the data will never leave my app) Oct 09 04:55:24 perhaps there's some kind of android ORM that won't bloat my app too much, but makes the whole db thing easier to handle? Oct 09 04:55:57 ormlite looks pretty promising... Oct 09 04:56:48 if you find a nice ORM package, let me know Oct 09 04:57:13 also, i've never bothered with content providers for data that's not going to another app Oct 09 05:03:45 There's a notepad tutorial that uses sqlite and a content provider on android training. It's older than the training site, not sure if it was updated when it was added there or not. Oct 09 05:03:46 http://developer.android.com/training/notepad/index.html Oct 09 05:04:05 thanks :) and will do, alex_PP...going to try out ormlite and see how i fare Oct 09 05:04:16 i'll check out the notepad example too, although i think i might have seen it before Oct 09 05:04:38 heh, i guess it's not so much a matter of not knowing how to do it as being apprehensive of the amount of work i remember it involving @_@ Oct 09 05:04:52 yeah, lots of boiler plate too Oct 09 05:05:19 indeed :\ not to mention lots of puzzling out how to map the database to meaningful URIs if you do end up implementing a content provider... Oct 09 05:05:40 i recall that being among the most annoying parts to maintain Oct 09 05:07:30 i think the SQLiteOpenHelper's onUpgrade is what always gets me. I seem to always mess up my sql statements there in some way and testing is slow as you have to keep switching between two versions of apps Oct 09 05:08:26 ah, yeah, especially when they're cobbled together with lots of funny-looking string concatentations and constants defined elsewhere Oct 09 05:08:51 albeit that goes for sql statements in general, since java doesn't have nice syntax for string substitution, sadly Oct 09 05:09:05 anyway, i could complain all day :) Oct 09 05:09:17 :) Oct 09 05:12:08 if i have a few buttons that are the same on multiple activities, should i make a class that sets up the listeners+intents for them, instead of repeating that code for every activity class? Oct 09 05:13:38 tech1 extend activity so each is included Oct 09 05:14:44 Escherial what is your particular problem? Oct 09 05:14:55 I am just about to finish an app I had to learn content provider ins and outs Oct 09 05:15:15 so the buttonClass extends activity, then my activities extend buttonClass instead of extending activity? Oct 09 05:15:17 actually quite a convient class, even for internal app stuff Oct 09 05:15:32 I haven't done it but yeah that's the idea Oct 09 05:15:37 ButtonActivity Oct 09 05:15:40 lasserix: agreed, content provider's are great if you have the time to implement them Oct 09 05:15:50 What's your particular hold up? Oct 09 05:15:55 i see. ill try that thanks Oct 09 05:16:04 also, i don't have a real problem, was just looking for more of a refresher on all the sqlite-related stuff or potentially an easier way to do it (e.g. an orm) Oct 09 05:16:37 it's been a long time since i've implemented a data access layer in an android app and consequently i've forgotten a lot, although i'm sure it'll come to me when i dive in Oct 09 05:16:40 If you are sharing content or using cursor loaders content providers are great Oct 09 05:17:18 i'll likely use a cursor loader, on second thought; perhaps a content provider is necessary after all Oct 09 05:17:49 cursor loaders are nice because they'll manage the cursor life for you Oct 09 05:18:21 this might be interesting: https://github.com/commonsguy/cwac-loaderex Oct 09 05:18:52 SQLiteCursorLoader - Loaders w/o need for ContentProvider Oct 09 05:19:18 ah, i love this guy's stuff :) thanks! Oct 09 05:39:30 would i need the onCreate method and setContentView() in the ButtonActivity? i can compile it all but i get an error when running the app Oct 09 05:40:57 stacktrace Oct 09 05:42:39 as long as whatever class extends the buttonactivity overrides the oncreate method should be okay Oct 09 05:59:32 it seems that putting the ButtonActivity(){ } constructor inside the ButtonActivity class makes it crash Oct 09 06:00:29 though i can't use onCreate either, so not sure where to setup the button listener in the button class Oct 09 06:00:40 you should be able to override oncreate Oct 09 06:01:04 but you don't need a constructor, essentially you are just making another activity Oct 09 06:01:09 however with subclassed attributes Oct 09 06:05:35 http://pastebin.com/PYdFNu02 Oct 09 06:16:10 tech1: i haven't done this but baseactivity should extend activity Oct 09 06:16:26 and then include the buttons you want every subclassed activity to contain Oct 09 06:16:54 then gameactivity should subclass baseactivity Oct 09 06:17:05 and wire up the buttons via xml in there Oct 09 06:18:41 *baseactivity shouldnt override oncreate but have a helper method that takes the ids of the buttons and finds them and assigns them the onclick listeners etc Oct 09 06:19:08 no GameActivity is the class just for the buttons, BaseActivity is actually one of the game screens holding what will be a menu, its called Base because it is where you view your base/facility in the game Oct 09 06:19:20 so GameActivity is ButtonActivity Oct 09 06:19:26 right Oct 09 06:19:37 but you're using inheritance Oct 09 06:21:22 so gameactivity extends button activity but you don't override oncreate in gameactivity Oct 09 06:21:32 you just have a method called "initButtons" or whatever Oct 09 06:22:08 oh i see what you mean Oct 09 06:22:17 and in base activity's oncreate pass the ids of the buttons to gameactivity's helper function that takes those ids and assigns them sets up click listeners etc Oct 09 06:22:51 so GameActivity dosnt need a constructor, it just needs a helper method that BaseActivity calls Oct 09 06:22:56 yeah Oct 09 06:23:01 from baseactivity's oncreate Oct 09 06:23:05 i get it now Oct 09 06:23:12 that's the idea of inheritance Oct 09 06:24:56 im sure in vanilla java i used to put this kind of stuff in the superclass constructor Oct 09 06:25:07 maybe i was doing something slightly different Oct 09 06:25:18 yea Oct 09 06:25:41 thanks for the help anyway. i know what needs to be done now Oct 09 06:25:54 :) Oct 09 06:28:21 tech1 you might try and get a hold of beginning android games Oct 09 06:28:37 great reference/resource for what (im imagining) you are doing Oct 09 06:29:02 i have it actually. i still need to read it Oct 09 06:29:14 if you are making a game definatly do! Oct 09 06:30:18 ill have a good look through it today Oct 09 06:36:50 Is there a simple way to get a text view to have the background of the standard settings headers? Oct 09 07:13:44 my spinner isn't showing the little triangle in the bottom-right corner or any of the other nice bits of formatting for spinners. the theme is set to Theme.Holo.NoActionBar. how can i fix this, and show the default spinner? Oct 09 07:14:05 Hey folks, I'm trying to implement a UI like the following : http://troll.ws/image/f2d3284d What is the best method to achieve this Oct 09 07:15:56 I think actionbar does not support the pageswitcher right? Oct 09 07:20:16 whomp_: May be you can theme it yourself Oct 09 07:21:22 * whomp_ is not a sado-masochist Oct 09 07:32:44 g'day Oct 09 07:33:30 google day:) Oct 09 07:34:17 Just a quick beginner question - I require my main activity to not have the title bar with the app icon and app name on top. Oct 09 07:34:25 Is there a way to do that? Oct 09 07:35:19 android:theme="@android:style/Theme.NoTitleBar" Oct 09 07:35:36 in either activity or application node depending whether you want it to apply to all activities or not Oct 09 07:35:37 i think he want to hide actionbar Oct 09 07:35:46 yeah that doesit Oct 09 07:35:58 nah, that's the one, I just did the smart thing and actually google'd it. Oct 09 07:36:01 Thanks Oct 09 07:36:03 .FullScreen will also hide notification bar Oct 09 07:36:04 right after 3.x Oct 09 07:36:15 no works on <3.x Oct 09 07:36:33 works but remove the titlebar:) Oct 09 07:37:31 ? Oct 09 07:38:28 Hey folks, I'm trying to implement a UI like the following : http://troll.ws/image/f2d3284d What is the best method to achieve this Oct 09 07:38:30 I think actionbar does not support the pageswitcher right? Oct 09 07:38:41 is it fine for an app which is not a game, but has quite a few bitmaps and drawables use 35mb of heap? Oct 09 07:39:15 on some devices you'll get an OOM you should make sure to call bitmap.recycle on all unused bitmaps after initialized Oct 09 07:39:32 napster, you can put a custom view un the bar Oct 09 07:39:34 *un Oct 09 07:39:37 *in Oct 09 07:39:40 hmmm... except this does nothing... Oct 09 07:39:47 and use factory's config for fine it Oct 09 07:40:09 ah, there we go Oct 09 07:40:12 even after doing all the recycle business my heap size grows up to 35MB. Oct 09 07:40:30 maybe not bitmaps leaking Oct 09 07:40:36 and it is like almost always 91-93% of heap is allocated. Oct 09 07:41:44 this MAT is too complicated :( Oct 09 07:42:24 So... another small question... Now that I've set the NoTitleBar layout the views lost the sleek JB look and defaulted to the old boring look Oct 09 07:42:28 Can that be rectified? Oct 09 07:43:02 alex_PP: You mean use three custom views for the page switcher? Oct 09 07:46:18 Hi Oct 09 07:47:31 I've downloaded Neils Coverflow, and some other examples, but they all display images "for example" by creating new cowerflow programaticalty. When I try to embeed it to my project and use it through created element in XML, I get Inflation error - Binary XML bla bla ... Oct 09 07:47:53 I even tried to modify original example, behaves the same.. I assume something with styles / themes is missing Oct 09 07:47:58 but I can't figure out what Oct 09 07:49:05 alex_PP: How about customizing the actionbar tabs : http://developer.android.com/images/ui/actionbar.png Oct 09 07:49:06 ? Oct 09 07:56:13 Anyone? Oct 09 07:56:32 <[deXter]> Bueller? Oct 09 07:58:01 How do I define @color/my_custom_color ? Oct 09 07:58:03 How / where Oct 09 07:58:52 Tee_Pee I have colors.xml in my values folder Oct 09 07:59:00 #ffffff Oct 09 07:59:09 and then I use @drawable/white Oct 09 07:59:16 for what ever I need... Oct 09 08:01:33 Got it, thanks Oct 09 08:01:46 Balky: Tee_Pee For normal colors, I would use the tag itself Oct 09 08:02:11 then use @color/color_name Oct 09 08:02:24 for instance : #FFFFFFFF Oct 09 08:02:34 Yes, can be done with colors, but from what I've seen (and I might be wrong), the only difference is that that u use it through @color/white ... Oct 09 08:03:50 hmmm... ok, here's an interesting one, doesn't seem to be that cut and dry Oct 09 08:03:51 yes that is the only difference. @drawables are more or specific for composit components with states Oct 09 08:04:27 napster, not sure Oct 09 08:04:32 never tried Oct 09 08:04:37 I have a logo, which needs to be displayed on the activity, easy enough... What I need to do however is leave some spacing on the sides, i.e. give it a 90% width, something along those lines. Oct 09 08:04:40 ok alex_PP Oct 09 08:09:58 is it possible to add a ProgessBar (the sprinning circle) to my ActionBar? There I have a reload option which fires some AsyncTask. While it's loading I would like the Refresh-Icon to become a spinning circle and set it back to the refresh icon when the AsyncTask has finished Oct 09 08:10:03 any ideas? Oct 09 08:14:17 evident: You will be able to set either a indeterminate progressbar or an animated actionview to spin. Oct 09 08:22:50 napster: thank you! I will have a look at that! Oct 09 08:27:14 I must admit that I'm euphoric here Oct 09 08:27:46 The folks I work for wanted a cross-platform app so they've had me working with phonegap and sencha touch. Oct 09 08:27:54 It's relieving to actually work natively on the android now. Oct 09 08:28:02 Although it does take a bit of getting used to. Oct 09 08:28:51 What is even phonegap and sencha touch Oct 09 08:28:58 And is it that hard to PROPERLY port android <-> ios? Oct 09 08:30:34 what I understand is that there are a lot of HTML/CSS experts out there. They wanted to develop apps for mobile. Oct 09 08:31:00 so there comes the phonegap kind of frameworks Oct 09 08:31:09 blah Oct 09 08:31:14 they should stick to their ugly websites. Oct 09 08:31:15 >.> Oct 09 08:31:30 xD Oct 09 08:31:46 the result is, mobile apps that does not work properly on any platforms. Oct 09 08:31:55 Yup Oct 09 08:32:06 And it's probably ugly on any platforms too, I bet Oct 09 08:32:17 Not that how pretty it is or isn't matters much when it doesn't work Oct 09 08:32:40 Also, I wonder if Ansmann batteries are better than Duracell Oct 09 08:33:03 "Man dies after roach-eating contest" omg Oct 09 08:33:09 lolwut Oct 09 08:33:15 ew Oct 09 08:33:29 http://www.azcentral.com/news/articles/20121008florida-man-dies-after-roach-eating-contest.html?nclick_check=1 Oct 09 08:33:42 In conclusion, chew your food? Oct 09 08:33:48 hey, is there any way to do center-locked in list view? just like gallery Oct 09 08:33:51 Cookies must be enabled to view articles on azcentral.com Oct 09 08:33:54 ...but...they are... Oct 09 08:33:58 wafgsadgs Oct 09 08:34:01 fak u. Oct 09 08:34:03 weird Oct 09 08:34:11 meanwhile, back in the barnyard Oct 09 08:35:08 edwinkcw: That should be hard to do. Oct 09 08:35:13 there is a case for html5 mobile apps; for example a car rental company that … wants you to use their thingy on a phone, but you'll probably only use it once and html 5 lowers the barrier to use Oct 09 08:35:32 Well sure, but then why can't it just be a website? Oct 09 08:35:35 napster: but any suggestion to do it? Oct 09 08:35:52 Why would I have to install an app to do something once that I could just do on a website through my browser? Oct 09 08:37:37 RazielZ: yeah, thats what i mean Oct 09 08:38:12 Yay! Oct 09 08:38:15 plus they can use their html5 app as mobile view of their page if you open it via mobile Oct 09 08:38:25 RazielZ: discoverability, or management heard that you just have to have an app ;) Oct 09 08:38:26 Speaking of which, youtube should fully switch to html5 already Oct 09 08:38:29 Flash is driving me nuts Oct 09 08:38:41 And it's driving said nuts into titanium walls at mach 2 speeds Oct 09 08:38:53 appel1, XD Oct 09 08:39:43 accessing a specific website that I could do just as well on the phone's browser? Oct 09 08:39:45 there's an app for that Oct 09 08:42:13 It gets on my nerves when I open a forum and it's like HEY WE HAVE AN APP Oct 09 08:42:21 Well good for you, I have a browser and it's apparently working just fine. Oct 09 08:42:40 <[deXter]> Exactly. Oct 09 08:44:39 hi, how can i dev some drag-n-drop in API10 ? seems all the doc refers to API11 Drag interface Oct 09 08:44:40 well, for high-end clients we normally give them the option to choose. if there's hardware api's required, or we can really add value via the apps, then we go that route. what I find stupid is mobi sites wrapped in apps. they're normally sluggish, but then again - its a quick buck. Oct 09 08:45:00 DysonReturns, sure, that makes perfect sense Oct 09 08:45:56 drag-n-drop <-- actually, not really. I just want to draw lines with the finger Oct 09 08:46:33 Hmm Oct 09 08:46:34 but dnd was the #1 idiom upon googling :) Oct 09 09:01:39 nevermind, found it :) Oct 09 09:08:48 So... I got an imageview with its width set to fill_parent Oct 09 09:09:07 is there an easy way for me to say "me its height as big as needed to contain the image" Oct 09 09:09:18 wrap_content seems to take up the entire screen vertically Oct 09 09:09:20 Hey guys, I need some help regarding the server side of my application Oct 09 09:11:10 Tee_Pee: I think there's an attribute called adjust bounds or something? try that Oct 09 09:12:10 That's exactly what I needed Oct 09 09:12:12 Many love Oct 09 09:12:15 np Oct 09 09:12:18 (no homo) Oct 09 09:12:21 hah Oct 09 09:12:31 I have a servlet that manages jobs created and updated by the android application, I want to keep a job list on the server and update it when needed, I'm thinking of using either SQL or save a list on the servlet context... what way you would recommend? servlet context should be done atomic and might create a bottle neck if many updates will accure, SQL could be expensive both in time and Oct 09 09:12:31 money (I think), or maybe there is a third way to do so? Oct 09 09:15:42 I got .plist from IOS version of the app... there is some data that need to be saved to DB on app first run Oct 09 09:16:02 is there any normal way to export .plst to XML, as this iOS xml is ugly to the bone Oct 09 09:20:01 Balky: http://code.google.com/p/plist/ Oct 09 09:37:42 Hey guys, just a quick question regarding activity practice - I am currently working on my MainActivity being the user login screen... However, if the user is logged in, I want the application to default to a different activity. How would I structure this? Make a check in the MainActivity and just call an intent if the user is logged in? Oct 09 09:37:57 Or is there some other, better way? Oct 09 09:41:24 aaand google is my friend once again. Oct 09 09:46:31 Leslie ... what to do with it :)) Oct 09 09:46:47 it looks like thing that could help, but I don't see the documentation Oct 09 09:52:04 Balky: there's just example code Oct 09 09:52:07 in the wiki Oct 09 10:02:30 fuf... there is example, but ... Oct 09 10:06:42 Quick question - I have an imageview in a relative layout, and I'm trying to change its alignParentTop to false dynamically from an activity via setLayoutParams Oct 09 10:06:52 However, I'm not sure how to configure the layoutParams to get the desired effect Oct 09 10:08:14 Ok, Changing a bit... is there any simple example (for noob) how to parse XML with multiple nested things. I have XML with recipes, so it has ...... so Ingridients are nested within recipes Oct 09 10:08:47 I assume XmlResourceParser should be enough, but I'm not sure how to use it Oct 09 10:16:27 hello fine people. I have struck a big problem to which I cannot find a solution. Please read the description here: http://stackoverflow.com/questions/12796493/android-sending-a-file-over-bluetooth-does-not-finish Oct 09 10:26:32 Hi, what object can i use the return a cursor. I want to create an in memory sql query result dataset and return a cursor for that dataset. Oct 09 10:35:12 Anyone know the default diver line color for listviews? Oct 09 10:49:04 lasserix: It should be different for different themes I think, Oct 09 10:49:12 on JB, I see some grey Oct 09 10:49:31 I guess you asked about the divider line ;) Oct 09 10:51:13 Tee_Pee: You can use RelativeLayout.LayoutParams and set it to the imageView in question. Oct 09 10:51:52 aye, figured it out in the meantime :p Currently dealing with the joys of dp to px conversion. Oct 09 10:54:24 Hey y'all don't miss the man who fell to Earth. http://www.redbullstratos.com/live/ Oct 09 10:54:32 t minus 1:35 Oct 09 10:54:38 in minutes or hours? Oct 09 10:54:42 hours minutes Oct 09 10:55:40 nifty Oct 09 10:55:57 I think my boss has left for a meating there, giving me time to watch stuff like that Oct 09 10:56:47 Anyone know the conversion for textsize in code to sp/dp? Oct 09 10:58:33 your boss went to a meeting involved with that? Oct 09 10:59:22 hi Oct 09 10:59:23 s/there/then Oct 09 11:12:26 I found a gap in the API Level compatibility documentation Oct 09 11:13:02 Is it possible to create LayoutParams without specifying the width and height, essentially just saying "keep them the same as they already are"? Oct 09 11:13:24 There's no way to know when a class begin implementing an interface, if the method you want to call existed prior. Oct 09 11:16:41 mrenouf: you can change the API level of the docs at the top of the package list, methods implemented after that level will be greyed out Oct 09 11:17:07 is that what you meant? Oct 09 11:17:16 doc_savage, *if the method call existed prior Oct 09 11:17:59 ie: when did class X begin implementing interface Y Oct 09 11:19:48 case in point: android.database.Cursor Oct 09 11:19:56 implements Closeable Oct 09 11:20:02 but... since when? Oct 09 11:20:30 I guess I can look at when Closeable was included, since it was most likely the same release. Oct 09 11:20:36 but no guarantees there Oct 09 11:20:47 mrenouf: ah yes, I see what you mean Oct 09 11:22:17 mrenouf: in fact, if you click onto Closable, then change the API level, the 'Known Indirect Subclasses' does grey them out Oct 09 11:22:43 [23~/topic Oct 09 11:23:11 doc_savage, thank you! Oct 09 11:23:28 np Oct 09 11:23:42 that's an impressive show of doc knowledge :) Oct 09 11:24:19 I kind of hate the git web view Oct 09 11:24:22 RandomSort: I think experimentation is possibly a better definition :) Oct 09 11:24:33 *googlesource version Oct 09 11:24:56 :) Oct 09 11:26:02 um. Oct 09 11:26:36 not seeing that behavior Oct 09 11:26:54 set API Level: 1 Oct 09 11:27:00 I'm trying to find an example to confirm that statement, as it may just be when that particular class was added Oct 09 11:27:01 and AbstractCursor is still listed Oct 09 11:27:10 I think that is the case Oct 09 11:27:38 since prior to (at least Gingerbread, still checking) Cursor did not implement Closeable Oct 09 11:28:36 So... API Level 13 uses getSize(), while the ones before use getWidth and getHeight... using the latter gives me a deprecation warning. Is it possible to add a conditional which says to use one for api level 8-12, other for 13 and above? Oct 09 11:28:43 do we have a librery that allows me to assign a value to a label in my app by getting a value from a certain web page? Oct 09 11:29:13 What is a good way to go about setting up Eclipse on CrunchBang/Debian? Oct 09 11:29:30 psychuil, thats far too specific for a library Oct 09 11:30:01 Well, i ment if there's a one or two line solution for that kinda thing Oct 09 11:30:10 Or do i have to build something myself Oct 09 11:30:11 Ankhwatcher, install java6+, go to eclispse.org, download, unzip, run Oct 09 11:30:34 mrenouf: okay, cool Oct 09 11:30:40 I've done that Oct 09 11:30:54 the packaged version is chronically behind Oct 09 11:31:03 Tee_Pee: the deprecation is not a problem for now. Rely on the forwards compatibility as given by the minsdk Oct 09 11:31:15 mrenouf: unusably so, I tried that too Oct 09 11:31:33 Tee_Pee: if you are annoyed by the warning, juse use a @SuppressWarnings annotation on the method Oct 09 11:32:23 Assuming it doesn't come back and bite me in the ass later on, sure :p Oct 09 11:32:26 thanks Oct 09 11:32:27 mrenouf: how can I set up eclipse so it runs from the Run program dialog? Oct 09 11:33:10 put it in your path Oct 09 11:33:27 i just put it in /hom/mrenouf/eclipse Oct 09 11:33:34 *home Oct 09 11:33:39 Tee_Pee: it is likely that once you can raise minsdk high enough, the deprecated methods will actually have been removed from the sdk and it won't compile Oct 09 11:34:00 I've got it in /home/Ankh/applications/eclipse Oct 09 11:34:09 but then you just switch to the new API. In some further distant future, the compatibility is probably removed from android runtimes too. Oct 09 11:34:35 if I put a link to it in /home/ankh/bin, will that work? Oct 09 11:34:53 yes it will Oct 09 11:34:55 handy Oct 09 11:38:15 doc_savage, whats worse, I can't find a way in eclipse to find method calls made through Closeable. :-( Oct 09 11:38:52 Hi, can anyone help me decrypting https traffic in wireshark from androi emulator. I use the emulators tcpdump parameter to log the traffic to a pipe, that i read with wireshark. So I see every traffic there. To decrypt https traffic I would need the private key of that the emulator use. Can I get that somehow? Has anyone decrypted already https traffic from emulator here? Thanks! Oct 09 11:39:23 mrenouf: I think with Cursor, because it already implemented Closable (it had a close() method) before it actually implemented it, there's no way to determine when it implemented it, but because the method existed it shouldn't matter... Oct 09 11:40:13 as another example, AbstractInputMethodService implements ComponentCallbacks and after API level 14, ComponentCallbacks2 Oct 09 11:40:15 doc_savage, it does matter. If I pass it to a method that accepts a Closeable. Oct 09 11:40:54 that can be seen in the 'Inherited methods' with the API level Oct 09 11:40:58 such as Guava's Closeables.closeQuietly Oct 09 11:41:57 ignorant question: do android devices a differ a lot from unix architecture? Oct 09 11:42:03 mrenouf: this may be going over my Java knowledge, but if you pass a pre-Closables Cursor, it still has the close() method, so shouldn't that still work? Oct 09 11:42:46 doc_savage, my "java.lang.IncompatibleClassChangeError: interface not implemented" says otherwise ;-) Oct 09 11:43:46 mrenouf: ah :) have you tried casting it to Closable? Oct 09 11:44:10 doc_savage, then I'd get a ClassCastException instead Oct 09 11:44:50 besides, in the target sdk it already implements Closeable, so it would be a no-op cast Oct 09 11:44:57 mrenouf: ah, this is where my Java knowledge is lacking, how the exceptions are thrown, i.e. if it just looks for the method or actual implementation of the class Oct 09 11:45:48 No, simply having the method is not good enough, it has to declare that it implements the interface. This is where Go kicks ass. Oct 09 11:46:48 still syncing aosp head, i've gotta find out where this changed. I think maybe 14. Oct 09 11:47:19 also my tests suck for not catching this. Oct 09 11:47:41 ah I see, that does suck you've got to dig through git to find that out Oct 09 11:48:44 well, its just for my own curiosity. The fix is to remove my usage of Closeables.closeQuietly(cursor) and replace it with the equivalent try { if (c!=null) c.close() } catch (Exception e) {} Oct 09 11:49:35 I can haz try_with_resources plz? http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html Oct 09 11:50:12 * mrenouf dreams about when Android starts supporting Java8 lambdas and all users have upgraded past API Level 18 so I can actually use it Oct 09 11:51:53 Silly mrenouf, programming is for humans not for cats. Oct 09 11:52:26 lasserix, I disagree: http://lolcode.com/ Oct 09 12:04:02 anyone know how to handle zoomcontrol clicks? Oct 09 12:04:30 I'm building an application where the user uses twitter or fb to sign-in ... How can I link the 2 services ? I mean if the user logs in from twitter and then adds something to the db, then later on her logs-in from fb he has to see the same change in the db .. How can I do so ? Oct 09 12:06:08 does anyone here have an example of a hierarchical content provider (with multiple path segments?) Oct 09 12:06:49 I want to develop an application where android app will communicate to PC software through USB connection. I have full control over platform and sign my application with platform certificate. So my question is, is it doable? Is there any API support for such thing? Any link or any thing to google? Oct 09 12:10:21 Guys I am thinkinh abouty creating online radio app and I am courious how does retrieving of name of song from stream work so I can show it to user Oct 09 12:12:36 dialogs are deprecated? Oct 09 12:12:52 ya lol Oct 09 12:12:59 DialogFragment is not Oct 09 12:13:21 everything not ending in Fragment is deprecated... Oct 09 12:13:53 Fragment rulez Oct 09 12:14:46 oh man Oct 09 12:27:55 whats the equivalent of prepare dialog for dialog fragments? Oct 09 12:35:43 Guys I am thinkinh abouty creating online radio app and I am courious how does retrieving of name of song from stream work so I can show it to user Oct 09 12:35:53 lasserix, ever get the feeling we're going to have to make our own view to make this work? Oct 09 12:36:47 Trudko, typically you just send the client the info through a socket? Oct 09 12:37:07 Komak57: not sure if it works this easy Oct 09 12:37:37 sockets were MADE to send data Oct 09 12:38:48 PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(client.getOutputStream())), true); out.println("SONG NAME HERE\r\n"); (Android side) Oct 09 12:40:22 byte[] buf = Encoding.ASCII.GetBytes(msg + "\r\n");int bytesSent = clients[ip].socket.Send(buf); (C# pc-side) Oct 09 12:41:19 Komak57 dialogs are deprecated gotta use dialog fragments with custom layout Oct 09 12:41:54 meh. when I call Barcode scanner by intent, create a new activity when it returns and close that activity, my initial activity is partially hidden behind the status bar Oct 09 12:43:17 Is there any equivalent method for dialog fragments as onPrepareDialog of dialogs of yonder? Oct 09 12:53:14 lasserix: onResume perhaps? Oct 09 12:58:36 dialogfragments have an onCreate that is called when the fragment is being created as a view.. not sure exactly why you would want "prepare" instead? Oct 09 13:00:03 hello all Oct 09 13:00:07 bleh =.= don't listen to me... i just woke up and my minds not in the game at all yet Oct 09 13:00:23 anyways, off to work Oct 09 13:04:11 i have one question. I have a ListView with several records and when I click on one record a popup opens (LayoutInflater and PopupWindow). The popup is opend as dropdown but when i choose the last element on the screen the popup opens throuought the screen and I can' scroll down. How do I get it to be scrollable ??? Oct 09 13:05:30 work computer sucks ugh Oct 09 13:08:03 Anyone knows how to direct the canvas page to be the app on the app center? Oct 09 13:13:05 copter: can you explain a bitt better Oct 09 13:14:08 JakeWharton, once issue I need to tackle, order of @Produce - > @Subscribe is undefined. Makes it inconvenient where handling Event B expects that Event A happened previously. Oct 09 13:14:17 JakeWharton, talking about Otto of course Oct 09 13:14:36 Hope he'll read that when he wakes up in 3-4 hours :-) Oct 09 13:17:21 oi oi Oct 09 13:19:59 lets build a stable rom! Oct 09 13:20:09 get the fuck out Oct 09 13:20:13 and go to #android-root Oct 09 13:20:47 wtf? Oct 09 13:20:54 oh hi. Oct 09 13:21:19 ... Oct 09 13:22:51 all the verbal abuse in #android-dev lately Oct 09 13:24:06 It is how I show that I care Oct 09 13:24:48 how good is android.hardware.camera.FaceDetectionListener? Oct 09 13:25:05 how can I measure how well face tracking happens from frame to frame? Oct 09 13:25:06 Try it and see Oct 09 13:25:11 is it hardware accelerated? Oct 09 13:25:19 if not, what is the CPU load like? Oct 09 13:25:24 * lov shrugs Oct 09 13:25:27 09:25:11 < lov> Try it and see Oct 09 13:25:40 as I just said in another channel Oct 09 13:25:41 i'll do that no matter what Oct 09 13:25:45 freenode is turning into efnet =) Oct 09 13:25:59 ron_frown: lol Oct 09 13:26:36 ron_frown: I assume you are talking about the RTFM type answers? Oct 09 13:26:36 ask a question? you get the STFU RTFM Oct 09 13:26:40 hahaha Oct 09 13:26:42 lol Oct 09 13:26:45 just the hostility Oct 09 13:26:49 totally agree Oct 09 13:27:06 people who do that are like security guards guarding an empty bank Oct 09 13:27:58 they act like there is a lot going on but in reality not really Oct 09 13:28:51 so what kinda stuff you all build? Oct 09 13:29:09 AR apps Oct 09 13:29:15 AR = ? Oct 09 13:29:21 Augmented Reality Oct 09 13:29:24 oh nice Oct 09 13:29:33 I am a n00b Oct 09 13:29:35 I always liked AR shit, but havent found a practical application for it =) Oct 09 13:30:19 it will be here whether you like it or not, like 3d tv Oct 09 13:37:20 I'm building an application where the user uses twitter or fb to sign-in ... How can I link the 2 services ? I mean if the user logs in from twitter and then adds something to the db, then later on her logs-in from fb he has to see the same change in the db .. How can I do so ? Oct 09 13:37:43 android supports oauth2 in the form of the "accounts" framework Oct 09 13:37:49 which you can search and find more information on Oct 09 13:37:56 I've used it to auth with googles oauth shit Oct 09 13:37:58 worked good Oct 09 13:38:03 nevery tried fb or twitter Oct 09 13:43:39 anyone can help me with strictmode log? http://pastebin.com/vRBGML7a Oct 09 13:44:01 xanScale: it's pretty self explanatory Oct 09 13:44:10 CVirus, you need a mechanism for the user to join accounts, and handle merging Oct 09 13:44:30 the question is : which resource? Oct 09 13:44:36 how i can find resource? Oct 09 13:44:37 CVirus, StackOverflow does this, you can associate multiple OAuth profiles Oct 09 13:44:58 xanScale: I'm guessing it's at com.google.ads.af$a.run(SourceFile:94) Oct 09 13:44:59 mrenouf: if only twitter provided the E-mail address of the user it would have been easy Oct 09 13:45:05 which means that it's your google ads that's leaking Oct 09 13:45:17 you should see if you're forgetting to release something manually, etc. Oct 09 13:45:23 I'm not familiar with google's ad framework at all. Oct 09 13:45:25 lol there is admob library Oct 09 13:45:25 CVirus, maybe you should use something else Oct 09 13:45:47 mrenouf: like what ? Oct 09 13:45:59 google admob fail google strictmode.... GOOD!!! Oct 09 13:46:00 Well, Google accounts work nice :-) Oct 09 13:46:15 mrenouf: it's a requirement :( Oct 09 13:46:17 in fact Twitter seems to be the oddball here Oct 09 13:47:01 mrenouf: exactly ! Oct 09 13:48:35 wait, why do you need the email address? Oct 09 13:49:31 also, the difference is twitter is only implementing OAuth, not OpenID Oct 09 13:49:39 Twitter is not and identity service Oct 09 13:51:40 I am using an adapter to draw items and I have an issue where changing the background of an item (when onClick is triggered) doesnt seem to trigger the redraw. I know about notifydatasetchange in case the content (add/remove) change but is this what I want to use for only changing the background of an item? Oct 09 13:52:03 one thing to keep in mind... there is a huge amount of speculation about the oauth2 spec. One of the lead enginers / designers on oauth2 spec walked away from it Oct 09 13:52:14 mrenouf: here's my scenario .. the user has only 2 login buttons: 1) Login with facebook 2) Login with twitter .. and there is no sign-up page ... Now assume the user used (1); then he made a change to his profile then he logged out and logged in again via (2), he won't see his change in the profile ... My question is how to associate the twitter and fb accounts ? Oct 09 13:54:04 CVirus, you need to assume they are two different accounts. Then give you user the option to add a second login when they are logged into the first account. When you authenticate the second account, you can check the verified id from the login provider, verify it doesn't already belong to another account, then add it to the list of valid credentials for that account. Oct 09 13:54:41 mrenouf: I see Oct 09 13:55:05 Again, take a look at stackoverflow, and how you can add multiple logins to the same account Oct 09 13:55:14 mrenouf: thanks a lot ! Oct 09 13:55:15 they did a great job Oct 09 13:55:58 And consider supporting Google profiles too Oct 09 13:56:03 *plug* Oct 09 13:56:15 Cause lots of people have 'em and are already logged into gmail, etc Oct 09 13:56:31 yeah Oct 09 13:57:13 Not to mention there's a 99% chance the device already has an account set up Oct 09 13:57:23 yeah sure Oct 09 13:58:28 anyone have an idea why google drive rejects file uploads that dropbox has no problem with? "Upload failed - click to retry" is the onyl message I get from it Oct 09 14:00:03 sent with action_send, extra_stream and a URI to my file on the sd Oct 09 14:01:44 dragorn: because google drive Oct 09 14:01:46 I don't even bother using it Oct 09 14:01:59 mrenouf: stackoverflow doesn't provide twitter login .. LOL .. freaking twitter Oct 09 14:03:39 lov: hm Oct 09 14:05:48 lov: my theory is it doesn't like the mime type Oct 09 14:05:53 lov: but i havne't tested yet Oct 09 14:17:22 Hi. I'm having a problem with expansion files. First time using them. I've uploaded the APK and the expansion file to Play, but I cannot test the download. I run my app through Eclipse + my device, but it can never download it...I am not 100% sure from the logs why but I think it's a licensing issue. I'm following the docs (http://developer.android.com/guide/google/play/expansion-files.html) Oct 09 14:17:22 and using the two libraries it recommends...any ideas? Oct 09 14:22:48 lov: the answer is, dropbox likes a Uri.parse("/mnt/sdcard/foo"); just fine, while drive requires Uri.parse("file:///mnt/sdcard/foo"); Oct 09 14:24:29 dragorn: well, the former isn't really a file uri now is it? :P Oct 09 14:24:38 lov: no, it isn't. definitely a case of user error Oct 09 14:24:52 lov: I think I presumed that Uri.parse would handle adding it Oct 09 14:25:21 well, Uri.parse is supposed to take a Uri that you give it and turn it into a Uri class Oct 09 14:25:34 /foo/bar is totally ambiguous Oct 09 14:25:43 did you really mean http://foo/bar ? Oct 09 14:25:44 yup. amazingly dropbox likes it just fine Oct 09 14:25:57 which led me to suspect the problem lay elsewhere Oct 09 14:25:58 they probably special case it Oct 09 14:26:06 "is the user a tard? if so, assume sdcard" Oct 09 14:26:13 aka if(1) { sd } Oct 09 14:26:15 haha Oct 09 14:26:26 I'm actually surprised that Uri.parse would handle that and not go "zomg!" Oct 09 14:27:52 Uri.parse() doesn't do checking so I guess Uri.parse("WTF") works Oct 09 14:28:22 URI and URL are not sufficient. Google *had* to invent Uri. Oct 09 14:28:52 well, "WTF" is a valid relative URI :P Oct 09 14:28:59 Is there a way to use a AutoCompleteTextView directly with a SQL database instead of loading 50,000 values into an arraylist first ? Oct 09 14:29:44 Blou_Aap: use an adapter based on CursorAdapter Oct 09 14:40:16 Guys I am thinkinh abouty creating online radio app and I am courious how does retrieving of name of song from stream work so I can show it to user Oct 09 14:45:40 Trudko: step 0 is to learn how "online radio" works. Oct 09 14:46:42 Is anyone here using HoloEverywhere? When I do git submodule update --init it doesn't populate the contrib/ActionBarSherlock folder with any source files. I think I'm missing a step after that Oct 09 14:46:48 hi there Oct 09 14:47:36 does anyone know if it is possible to change the bitrate of the video encoder on the fly? Oct 09 14:47:46 fnord`, that's not how you init submodules is it? Oct 09 14:48:01 git submodule init Oct 09 14:48:08 whitby: that's what the readme file says. This is the first time I have worked with submodules. Can you offer some advice? Oct 09 14:48:13 git submodule update Oct 09 14:48:15 DownloadManager - when I queue up a few downloads via DownloadManager some of the notifications overwrite the others where others open individually - seems inconsistent. has anyone encounteredd this before? Oct 09 14:48:16 I'll try that Oct 09 14:48:38 at least that's how I do it Oct 09 14:49:21 whitby: i think git submodule update --init is a shortcut for what you just did Oct 09 14:49:35 kinda like git checkout --branch Oct 09 14:50:09 I'll try it nevertheless. Fresh HoloEverywhere checkout. Oct 09 14:50:24 ah, makes sense Oct 09 14:57:10 yeah it's exactly the same Oct 09 14:57:19 * fnord` stumped Oct 09 14:57:29 abs, y u no in my repo Oct 09 14:58:02 I just tried it, got fatal: reference is not a tree: 90939dc3925ffaaa0de269bbbe1b35e274968ea1 Oct 09 14:58:19 But I can checkout the fork of ABS directly Oct 09 14:59:03 fnord`, you could just clone the HoloEverywhere repo then add ABS yourself afterwards Oct 09 14:59:55 I fixed it Oct 09 15:00:16 I just need to fix it again now so I can be sure of what I did :) Oct 09 15:16:46 top of the morning gents Oct 09 15:16:56 * SpeedEvil quacks, Oct 09 15:17:04 * SpeedEvil is a duck, Oct 09 15:18:17 apparently it's a frequent problem people experience with submodules Oct 09 15:18:20 http://stackoverflow.com/questions/2155887/git-submodule-head-reference-is-not-a-tree-error Oct 09 15:18:55 whitby: ^ that's what I did, but I didn't figure out the rest of it. Gonna make my own fork and correct all this. Oct 09 15:20:09 whitby: thanks for helping Oct 09 15:20:41 I did very little, Oct 09 15:20:42 no problem though Oct 09 15:20:53 Hope you work it out. Oct 09 15:47:56 I am trying to validate an XML on Android using a Schema, but it seems that the implementation of SchemaFactory is missing in Android. I have tried including Xerces, but this seems to depend on javax.xml.transform.stax, which is not included in Android's core libraries. Does anyone know how to use Schemas on Android? Oct 09 15:48:30 (I hope this is the right channel, someone in #android told me that this question might perhaps be better answered here) Oct 09 15:48:46 skoodge: wich minimum version? Oct 09 15:48:56 schema validation works as far as i tested from 2.3 on Oct 09 15:54:12 timroes: I just checked and I'm using a minSdk level of 11. What did you use to validate the xml? I am trying to use SchemaFactory, but SchemaFactory.newInstance(...) always fails with an IllegalArgumentException Oct 09 15:56:25 I also used SchemaFactory.newInstance(...). But was some time ago, and my solution that time was, not to check it, after i recognized, that it would require 2.3. But i remeber that it worked when tested under 2.3 Oct 09 15:58:51 * ron_frown sighs Oct 09 16:01:02 I'm trying to do tests on my Library project using JUnit for Android but "ant debug install test" fail installing the library apk on the device (I think it's normal because there is no way to produce apk of a library) so the tests are not run. Whereas if I run "ant test" just after it works fine. Do you have a clue to fix it? Thanks Oct 09 16:02:06 timroes: that is strange. I have read on multiple sites that XML validation is simply not supported in Android, but perhaps that was pre 2.3. Do you happen to still have the portion of the code that called SchemaFactory.newInstance(...)? Oct 09 16:14:19 does anyone know if it is possible to change the bitrate of the video encoder on the fly using MediaRecorder? Oct 09 16:21:52 yay, holoeverywhere is compiled :) Oct 09 16:22:04 just had to checkout to the last release in the log. Oct 09 16:22:33 What's a good pastebin I can use? (something with very wide lines) Oct 09 16:22:38 JulienDev: i use a stub project Oct 09 16:22:54 JulienDev: make a project that has no purpose but to link to the library, then test that project Oct 09 16:23:09 then you can export the symbols from the library and you have them available in your test project. Oct 09 16:25:41 I have a service that uses a thread to make an xmpp connection. I want the thread to updated a button on the activity (that is bound to the service). However when I run I get a null pointer exception. I can't find anything that is null. Stacktrace: http://pastebin.com/fKkXLvLN Oct 09 16:26:32 the problematic function: http://pastebin.com/Jx4yfbyg Oct 09 16:27:26 deadmund: you can not access the ui from a service Oct 09 16:27:45 deadmund: you need to give a runnable to run on UI thread Oct 09 16:27:53 Ge0rG: yes you can Oct 09 16:27:56 deadmund: you need to either bind to it from the ui (and use callbacks) or a BroadcastReceiver or something like sqlite Oct 09 16:28:01 Ge0rG: I believe that the method I am using (a broadcast receiver) is the correct way to have a thread modify the UI? Oct 09 16:28:07 deadmund: right Oct 09 16:28:22 That's what I'm doing... Maybe I should show more code... Oct 09 16:28:27 services can draw windows, it might surprise you though. Oct 09 16:28:51 fnord`: only in the notification area, if you are not doing it horribly wrong. Oct 09 16:29:09 the NPE apears to be on xmppThread.java line 49 Oct 09 16:29:38 Ge0rG: no, you can draw complete windows with a service Oct 09 16:29:43 it's not "the right way" in 99% of cases Oct 09 16:29:44 but you can Oct 09 16:29:53 hi Oct 09 16:30:02 fnord`: stop nitpicking Oct 09 16:30:18 is there an api that reports the dpi , resolution, screen size of device? Oct 09 16:30:42 is there an APK that reports the dpi , resolution, screen size of device? Oct 09 16:30:43 deadmund: paste xmppThread.java line 49 please Oct 09 16:30:53 fnord`: line 49 of xmppThread is: "announceConnection(true);" and eclipse sees no issue with it. Maybe announceConnection is a protected method of the service. The thread is a sublcass of a service. announceConnection is entered Oct 09 16:31:05 deadmund: maybe your Context reference in the thread is null? Oct 09 16:31:15 scratch that "Maybe" announceConnection IS a protected method.. Oct 09 16:31:26 deadmund: are you calling that _before_ service.onStart()? Oct 09 16:31:33 deadmund: a Thread should not be a Service subclass.. What the hell library are you using? Oct 09 16:31:55 also you shouldn't extend Thread, which is another conversation. Oct 09 16:32:12 its better to have a thread in a service than to draw windows from it... Oct 09 16:32:32 fnord`: Why should a thread not be a service sublcass? I don't know what you use by library. Lemme read and thing about what you all said Oct 09 16:32:38 Ge0rG: a Thread IN a service != a Thread IS A Service Oct 09 16:32:44 subclass = is a Oct 09 16:33:01 deadmund: the service should *have* a thread in it. Oct 09 16:33:03 fnord`: I think deadmund meant an inner class Oct 09 16:33:14 s/think/hope/ Oct 09 16:33:19 Inner makes sense, sure, but the subclass should implement Runnable Oct 09 16:33:24 Thread should not be extended Oct 09 16:33:31 public class xmppThread extends xmppService Oct 09 16:33:46 implement Runnable, then pass your subclass to Thread(Runnable r) Oct 09 16:33:59 your object, that is. Oct 09 16:34:16 lets see xmppService..? Oct 09 16:34:17 I should be more complete. public class xmppThread extends xmppService implements Runnable Oct 09 16:34:33 ok, sounds good Oct 09 16:34:34 anyone know offhand where i can download an OSMdroid project with all the offline maps already inside it? Oct 09 16:34:38 hi, i made application which makes a file, but I have a problem because I can't find this file on my phone Oct 09 16:34:58 I had plug it in my computer and searched it's disk drive but I still can't find it Oct 09 16:35:19 context is null instead xmppThread I believe Oct 09 16:35:35 deadmund: I don't think line 49 of xmppThread is announceConnection() as you said it was. I think that's line 164 of xmppService Oct 09 16:35:48 can you please check line 49 of xmppThread.java again Oct 09 16:35:59 lemme look Oct 09 16:36:20 if I implement a FaceDetectionListener, is there anything I must do to let the camera know about my implementation? Oct 09 16:37:15 How else would it know about it Oct 09 16:37:48 right so how do I do that? Oct 09 16:37:56 Dunno, check the docs Oct 09 16:38:10 I was working on an android project for one week and when I tried to run my project today, I got an error saying "Conversion to Dalvik format failed with error 1" Oct 09 16:38:11 fnord`: I have changed some code while we spoke. New stacktrace: http://pastebin.com/DbpVevKc Line 48 of xmppThread is: announceConnection(true); I am quite sure. announceConnection is a protected method (on line 160 of xmppService). Oct 09 16:38:24 what may be the reason? Oct 09 16:38:38 deadmund: that can't possibly be the location of the NPE Oct 09 16:39:02 Hello Oct 09 16:39:02 Maybe it's a bug in the 2.3 emulator? Oct 09 16:39:06 For OAuth authentication and authorization, do you advice signpost ? Or do you've a "better" method ? Oct 09 16:39:44 deadmund: show the code where you actually create a Thread object and pass the Runnable to it Oct 09 16:39:49 and then call start() Oct 09 16:40:11 maybe you're doing like, Thread(null) or something. I'm not sure what happens when you do that, though. Oct 09 16:41:30 fnord`: You'll notice the stacktrace goes into announceConnection and mentions line 164 (which is the call inside announceConnection to sendBroadcast. Here is the code for creating the thread: http://pastebin.com/YELL25p4 It is inside onBind which is in xmppService (and has a @override) Oct 09 16:42:30 I was working on an android project for one week and when I tried to run my project today, I got an error saying "Conversion to Dalvik format failed with error 1". What may be the issue? Oct 09 16:43:27 deadmund: if you comment out sendBroadcast() in announceConnection, does the NPE still occur? Oct 09 16:43:37 fnord`: I'll try... Oct 09 16:44:47 fnord`: When that line (sendBroadcast() in xmppService) is commented out the NPE does NOT occur Oct 09 16:44:59 fnord`: So what is happening? The intent isn't null... Oct 09 16:45:08 The context is null, I think. Oct 09 16:45:14 I think Ge0rG may have said that Oct 09 16:45:15 not sure Oct 09 16:45:36 Can pullParser be used to handle unknown number of nested items in XML? ( ) Oct 09 16:46:42 I'll investigate... Oct 09 16:46:44 er, well. The context can't be null, because Services are Context Oct 09 16:46:51 Something is null Oct 09 16:47:04 haha Oct 09 16:47:06 I do not recall if onCreate is called before or after onBind Oct 09 16:47:33 my oncreate is only a call to super.onCreate()... Oct 09 16:48:13 maybe an explicit call to to onCreate in onBind ? (although it doesn't make sense to be able to bind to the service if it has not been created...) Oct 09 16:49:31 Do not manually call lifecycle methods Oct 09 16:49:42 I figured that's not the solution Oct 09 16:50:49 I cannot pass a context in to the thread because I'm binding... Oct 09 16:51:54 http://stackoverflow.com/questions/3157368/android-nullpointerexception-when-calling-sendbroadcastintent Oct 09 16:55:04 I tried to use getApplicationContext() inside announceConnection and that too throws a NPE. I think I don't have a context in this service (bizarre) but I don't know how to get one now! Oct 09 16:55:38 Your service is a context Oct 09 16:55:51 You most likely can't use that context before onCreate is called Oct 09 16:56:51 hi all Oct 09 16:57:15 SimonVT: so how do I fix this? Oct 09 16:57:28 Don't call context methods before onCreate is called Oct 09 16:57:59 I have a bitmap which is aroudn 3000x2000 and 200kb, I keep getting an OutOfMemoryError when trying to load it. first of all, is it the resolution causing this error? because 200kb is small no? secondly, is it possible to keep that resolution and load the image? Oct 09 16:58:02 SimonVT: How do I get onCreate called? Apparently binding to the service does not call it? Oct 09 16:58:57 Did you check? Oct 09 16:59:10 SimonVT: I don't understand. Check what? Oct 09 16:59:19 If onCreate is called Oct 09 16:59:58 deadmund: onCreate is called before onBind Oct 09 17:00:05 however, onCreate is NOT called before your constructor. Oct 09 17:00:09 checking... Oct 09 17:00:28 You cannot have something like class Foo extends Service { private Context mContext = this.getApplicationContext(); onCreate() { .... } } Oct 09 17:01:54 SimonVT: onCreate is called before the NPE. lov I do not have a constructor for the service class Oct 09 17:02:36 deadmund: can you please pastebin your code? Oct 09 17:02:53 lov: which? The xmppService? Oct 09 17:03:12 whatever is crashing with an NPE Oct 09 17:03:12 does anybody have experience with the android port of cocos2d? Oct 09 17:04:47 lov: SimonVT fnord` Here is the entire xmppService class. The NPE is on line 163 in the last function "sendBroadcast(intent);" http://pastebin.com/BFfkVP5v Oct 09 17:09:37 How is xmppThread getting an instance of your service Oct 09 17:10:00 And dude, naming conventions Oct 09 17:10:07 SimonVT: public class xmppThread extends xmppService implements Runnable Oct 09 17:10:27 What Oct 09 17:10:33 new xmppThread( Oct 09 17:10:42 doin it wrong Oct 09 17:11:09 SimonVT: please explain? Oct 09 17:11:12 deadmund: make an inner class that extends Runnable. Oct 09 17:11:16 You start a service with startService Oct 09 17:11:21 ^ Oct 09 17:11:27 You do not "MyService service = new MyService()" Oct 09 17:11:33 as I said earlier: services are not threads. Oct 09 17:12:31 what you did can be made to work but it's ugly Oct 09 17:12:36 ? I do not have new xmppService. I have an activity that binds to xmppService Oct 09 17:12:38 it should really just be an inner class. Oct 09 17:12:53 xmppThread is a service Oct 09 17:12:59 deadmund> SimonVT: public class xmppThread extends xmppService Oct 09 17:13:02 You said so right there Oct 09 17:13:10 fnord`: Why is it better as an inner class? Is there a difference between inner class and extends? The only reason I don't want to make it an inner class is because the file is large. Oct 09 17:13:22 it is calling announceConnection on itself Oct 09 17:13:28 a-ha! Oct 09 17:13:31 make it an external class the. Oct 09 17:13:32 A service that has not been set up by the framework at all Oct 09 17:13:33 then Oct 09 17:13:50 I see... Oct 09 17:14:07 so I'll make the thread a subclass, remove the extends xmppService... Oct 09 17:14:20 Ok, I have to refactor a bit. Lemme see if I can fix it... Oct 09 17:14:23 inner class* Oct 09 17:14:29 A subclass is one that extends Oct 09 17:14:35 inner class* Oct 09 17:14:37 thank you Oct 09 17:17:55 hm, what's the typical time after app publish that you can access it using the package name details url? Oct 09 17:18:00 deadmund: there is a difference. The service itself does not need to be a runnable. Don't make it one. Oct 09 17:18:07 separation of purposes Oct 09 17:18:08 i.e. for it to be visible on the play store page. Oct 09 17:18:10 fnord`: yes, I see... Oct 09 17:18:17 keep each class to a single purpose Oct 09 17:18:26 er, concerns Oct 09 17:19:02 I published an app more than an hour ago, but still can't access it on the play store. Oct 09 17:19:24 Be patient Oct 09 17:20:21 I am. :) Just that it's an event-specific app that is going to take place in another 10 hours from now. So hoping it is live by then. Oct 09 17:23:17 fnord`: SimonVT Ge0rG lov Thank you so much for the help! It's working now :) Oct 09 17:23:39 fnord`: And I appreciate the advise on separating things into correct classes and files. I find that the hardest part to learn :) Oct 09 17:29:39 what the @#%$ is renderscript? Oct 09 17:29:51 is that like a shading language? Oct 09 17:30:18 http://developer.android.com/guide/topics/renderscript/index.html Oct 09 17:31:03 thx Oct 09 17:31:17 hey, i have an EditBox that's not editable (by my choice). for some reason it's not scrollable as well, is it related? Oct 09 17:33:37 hello Oct 09 17:34:14 hi Oct 09 17:37:22 android:inputType="none" does seem to have an effect on a EditText, am i missing something? Oct 09 17:37:28 Has anyone ever gotten a WebView to successfully report the height of its content? there seem to be 50 different ways of getting dimensions, and not a one actually does anything. I'm hooked all the way into onSizeChange() of the web view and it still doesn't know the height even in there. Kind of baffled why this is such a mysterious piece of information. Oct 09 17:38:02 Hi all, I am unable to use std::string in my ndk code Oct 09 17:38:18 any pointers/ insights Oct 09 17:38:24 Loonacy, paste some code Oct 09 17:38:34 Looney, paste some code Oct 09 17:38:36 sure thing Oct 09 17:38:37 Loonacy, sry Oct 09 17:38:51 no problem ;-) Oct 09 17:39:23 i'm a complete noob on android development... I installed the SDK last night, finished the "Building your first app" tutorial on android.com Oct 09 17:39:44 Helbom: not really a question... Oct 09 17:39:54 deadmund: it's coming Oct 09 17:39:58 i then wanted to start trying out other stuff so I gave gps and location a go Oct 09 17:40:10 how'd you fare Oct 09 17:40:25 Helbom: there is a big bug in the emulator regarding service provider based (coarse location) Oct 09 17:40:26 I use eclipse and I tried to make it work in API level 15 Oct 09 17:40:35 using the wizard Oct 09 17:41:09 after I clicked finished I got the same Hello World project as normal Oct 09 17:41:38 then when I tried to run it, Eclipse said that I have an error in my code that I had to fix first Oct 09 17:41:49 without me touching any code at all Oct 09 17:42:05 I am not sure if I am passing string correctly because I am using C++ after a long time Oct 09 17:42:10 here is the pastie http://pastebin.com/9DCCvGq3 Oct 09 17:42:22 and the error icon appeared on the project root folder in the project explorer Oct 09 17:42:28 but nowhere else in the project Oct 09 17:42:37 was no icon trace route to follow Oct 09 17:42:42 error is on the using std::string; line Oct 09 17:42:49 Helbom: Did you read the error message? Oct 09 17:43:16 there was no error message anywhere.. only a message like "You have some error(s), fix them first" Oct 09 17:43:27 i checked eclipses log and the log cat Oct 09 17:43:31 Helbom: Build outside of eclipse. What is the error message? Oct 09 17:43:32 but both were empty Oct 09 17:43:49 tried gnustlport_static and other online available solution for Application.mk Oct 09 17:44:03 dunno how to do that freeone3000 ... but I'll read about it Oct 09 17:44:25 what I thought might be a reason was because I had installed all API levels and extras Oct 09 17:44:36 so I deleted everything to start from scratch Oct 09 17:44:42 Looney: Your header includes are a weird mix of C and C++. What compiler are you using? Oct 09 17:45:07 the string and strings include shows my desperation to nail the code Oct 09 17:45:17 is there anything wrong with installing all levels and extras? Oct 09 17:45:25 or should I avoid doing this again? Oct 09 17:45:29 I am using ndk-build which in turns uses gcc I assume Oct 09 17:45:59 Helbom: You can install all levels and extras just fine. Oct 09 17:46:07 ok Oct 09 17:48:05 i'll install all level and then set up a new project like before... Oct 09 17:48:19 freeone3000: do you have a link for how to build outside eclipse on windows 7? Oct 09 17:48:37 Helbom: `ant build` Oct 09 17:49:05 freeone3000: thanks... i'll google it :) Oct 09 17:50:14 so, is there any solution to the problem which I have brought to limelight :-P Oct 09 17:50:24 Looney: Okay. Looks like ndk-build is recognizing your CPP files as C files. Pretty common. Setting LOCAL_CPP_EXTENSION=".cpp" in Android.mk fixes it. Note that the SO entry point (what Java calls) must be in a C file. Oct 09 17:50:56 ok, let me make the entry in .mk file Oct 09 17:51:53 Looney: Note that libc++ must be compiled statically, which may include a few other edits. And note that extern "C" means literally that - you can't use any C++ inside of it. Oct 09 17:52:29 ok Oct 09 17:54:41 what else to be used along with -lstdc++ in .mk file Oct 09 17:55:02 Looney: Should be it. Probably. Oct 09 17:55:48 ok, removed extern "C" and added the -lstdc++ Oct 09 17:56:07 still getting std::string has not been declared Oct 09 17:56:21 Looney: Your file does end in .cpp, yes? Oct 09 17:56:29 it does Oct 09 17:57:03 to stlport_static or not ? ? Oct 09 17:57:06 Looney: Does your host system use separate compiler names for C and C++? (Debian, for instance, refuses to compile C++ unless `g++` was invoked) Oct 09 17:57:31 it does use g++ for C++ Oct 09 17:57:39 openSUSE KDE Oct 09 17:57:46 Looney: Does typing `gcc yourfile.cpp` result in the same error? Oct 09 17:57:58 let me see Oct 09 17:58:15 nope Oct 09 17:58:36 fatal error jni.h not found Oct 09 17:58:49 :-P let me comment that line for once Oct 09 18:00:05 (Or link with your system jnilib.) Oct 09 18:01:21 same proble with gcc, std::string has not been devlared Oct 09 18:01:27 *declared Oct 09 18:02:01 Looney: Perfect. Figure out which flags to gcc make `gcc -someflagsgohere foo.cpp` compile. Oct 09 18:10:13 in android 4.0.4 is there a way to get the height of the actionBar? ActionBar bar = this.getActionBar(); doesnt seem to work Oct 09 18:12:02 anyone have any experience with APK expansion files? trying to test out my app for the first time, downloading one, but simply will not work... Oct 09 18:12:08 cannot find files to download... Oct 09 18:14:14 freeone3000 using lstdc++ alleviates the problem Oct 09 18:14:22 adding a filter to an arrayadapter breaks .getCheckedItemPositions(). anyone know the best way to fix this? Is there a way to get the filtered list? Oct 09 18:14:30 but I am using it in the .mk file and still getting problem Oct 09 18:23:03 or is there a way to force an arraylist to use stable ids? Oct 09 18:32:47 Hello guys Oct 09 18:33:06 I have issue by using FragmentActivity Oct 09 18:33:22 I want to change TextView text by using setText method Oct 09 18:33:44 the method is working properly with activity.. (changing my text as expected) Oct 09 18:33:54 but not when I use FragmentActivity Oct 09 18:34:02 the text never change Oct 09 18:34:18 Is there someone getting this issue ? Oct 09 18:36:31 pastebin your code Oct 09 18:37:00 ok canadiancow Oct 09 18:38:40 lov you still around ? Oct 09 18:40:26 here my code : http://pastebin.com/Cnb71RjM Oct 09 18:41:20 in t he onStart() method if i put something like homeDuration.setText("hello world"); Oct 09 18:41:30 te text will never be updated on the fragment Oct 09 18:44:26 any idea ? Oct 09 18:46:12 hi, how can i make a screen video of my app ? Oct 09 18:47:38 video camera, the capture methods I have seen suck Oct 09 18:48:37 video camera sucks, just run it in the emulator and use a capture program Oct 09 18:48:43 how are the video from the playstore done ? Oct 09 18:48:54 TheSnide: emulator with capture. Oct 09 18:49:03 avd emu ? Oct 09 18:49:04 +1 to pragma-'s plan Oct 09 18:49:53 pragma-: does it have to be realtime ? Oct 09 18:50:18 since the emu runs awfully slow on my box Oct 09 18:50:43 I run on a Mac at work, I have the same prob Oct 09 18:51:09 TheSnide: it can be frame-by-frame Oct 09 18:51:31 pragma-: oh, that's nice :) Oct 09 18:52:07 TheSnide: gutano: do you guys have gpu acceleration turned on, and are you using x86 images? Oct 09 18:52:22 codebutler, far as I know, it doesn't work on Mac (or linux?) Oct 09 18:52:28 it works great on mac Oct 09 18:52:31 have not tried on linux Oct 09 18:52:45 *shrug* my phone emu's run ok, tablet ones run like crap Oct 09 18:52:57 tablet works fine if you fix your settings Oct 09 18:53:11 *shrug* too busy writing code Oct 09 18:53:28 *shrug* too busy shrugging Oct 09 18:53:32 ; ) Oct 09 18:53:46 codebutler, I'm all ears.. I am interested in your solution for TheSnide Oct 09 18:54:06 gutano: I have a work-in-progress blog post here: http://codebutler.com/2012/09/16/configuring-a-usable-android-emualtor its not yet published, but it should be mostly correct Oct 09 18:54:08 pragma-: any url by chance ? Oct 09 18:54:20 thanks =D I will check it out Oct 09 18:54:41 codebutler: oh, thx. will check that out :) Oct 09 18:54:47 codebutler, perhap I'm not making the right distinction between haxm (hardware acceleration, cpu?) and gpu acceleration? Oct 09 18:54:56 those are separate options Oct 09 18:59:46 I <3 codebutler Oct 09 19:00:23 did that work? Oct 09 19:00:32 the gpu acceleration works fantastic! Oct 09 19:01:01 I didn't bother with the density/res tweaks, as they compromise my testing, but this is night/day Oct 09 19:02:37 was several haxm convo's while idling that led me not to pursue emu tweaks any further Oct 09 19:03:12 can you detect a click on a disabled preference? Oct 09 19:03:21 unless you're doing JNI stuff... the x86 images work great. Oct 09 19:13:26 I have an android application which is using android's GCM -- I think some devices might be registering twice…but I'm at a loss to debug because I can't replicate the issue with any of my devices -- could it be a phone specific issue? Oct 09 19:23:05 hi everybpdy. c Oct 09 19:23:55 can anybody tell me how the maturity rating works? Oct 09 19:24:11 the description is very confusing for me... Oct 09 19:25:16 my app doesnt do anything "illegal" and nothing for adults only... should be used by everyone... that's it Oct 09 19:25:25 ok, so click the option for everyone. Oct 09 19:25:47 choose "Low Maturity" Oct 09 19:26:14 when do I choose everyone and when "Low Maturity"... Oct 09 19:26:26 Just choose Low Maturity and move on. Oct 09 19:26:31 That's the new "Everyone" rating Oct 09 19:26:55 First I thought it is about age or something... but the help page confused me a bit... Oct 09 19:27:00 but ok thank you! Oct 09 19:27:09 i'd choose "everyone" Oct 09 19:27:13 it's the lowest level imo Oct 09 19:27:21 as in, "no maturity" as opposed to "low maturity" Oct 09 19:28:00 altho supposedly any app w/ user-generated cnotent can't be "everyone" Oct 09 19:29:13 user-generated content? doesn't any app generate some content? Or do you mean user-generated content that is shared with other users? Oct 09 19:29:49 right, any app that hosts user-genned content Oct 09 19:29:53 this is all on the help page btw Oct 09 19:31:07 Can a sync adapter work without an account? Lets say I want to use it to sync data from an api that doesn't require any sort of authentication? Oct 09 19:31:33 doogan: thank you... starting to get a clue how all this is meant... ;) Oct 09 19:33:25 the maturity is in relation to the user, not the content (I can see how that's confusing. ie: "We don't want kids seeing this immature material -- blowing up barbie dolls with firecrackers") hehe Oct 09 19:56:49 does anyone know how to apply a GooglePlay application filter that will target only a specific device? (not an individual device but all devices of a specific model/signature)? Oct 09 19:59:28 i dont know specifically but i think so. do you mean screen sizes or api level or what? Oct 09 19:59:41 no...exact device (manfuacturer/model) Oct 09 20:00:15 ah manufacturer. im afraid i dont know Oct 09 20:00:44 why are you targeting a manufacturer, just wondering Oct 09 20:01:10 it's a launcher app custom to a specific tablet Oct 09 20:05:00 there is a uses-lib or something like that, that the market can use to filter apps for devices Oct 09 20:05:06 it's like never used though Oct 09 20:05:43 and it will only work if the tablet you are targeting has a relevant lib you can reference Oct 09 20:05:51 yes, so in that case it would require that there is an app on the device required in order for the GP app to be available, right? Oct 09 20:06:14 a system installed library, not just an app Oct 09 20:06:15 http://developer.android.com/guide/topics/manifest/uses-library-element.html Oct 09 20:07:10 i guess it's not just for filtering though, as it also includes code. Probably not appropriate if the vendor you are targeting isn't providing a lib for the launcher customization in question Oct 09 20:09:22 yeah...I know that devices get registered with GP and that specifies a custom device Id (signature). I was hoping to filter based on that but I don't see that option anywhere. Oct 09 20:50:30 hi, just one question the default browser delivrered with the default rom is based on chromium ? Oct 09 20:53:19 zenithar: it's webkit Oct 09 20:54:43 ok thx Oct 09 20:54:54 zenithar: there's certain level of code reuse, but it's not chrome Oct 09 21:05:11 Quiet today! Oct 09 21:05:35 lets shake things up! Oct 09 21:05:38 I can fix that Oct 09 21:05:50 anyone here have any experience with expansion files? that is, dealing with apps bigger than 50MB? Oct 09 21:05:54 * C0deMaver1ck hands g00s and mrenouf|work a case of monster Oct 09 21:06:09 * mrenouf|work just made his 2nd latte of the day Oct 09 21:06:33 * g00s lights something on fire Oct 09 21:06:34 I had 3 too many cups of coffee Oct 09 21:06:43 fire, fire! fire ! yeah ! Oct 09 21:06:45 I'm always "working" so that nick was just uneccessary ;-) Oct 09 21:07:16 I'm having a blaze tossing out all this shit code I wrote and replacing with Otto Oct 09 21:07:22 F@*#& callbacks Oct 09 21:07:28 * pragma- personally doesn't care whether someone is at work, on the laptop, in the kitchen or on their android. Oct 09 21:07:28 :) Oct 09 21:07:42 such nicks are an annoyance. Oct 09 21:07:46 mrenouf: yeah, i especially hate the binder callback for the service connection Oct 09 21:07:47 * p_l explodes a WC Oct 09 21:07:52 its always … at the wrong time Oct 09 21:08:01 pragma-, its more for my knowledge, so I know where I forgot to log out from Oct 09 21:08:29 just use screen and an ssh connection, then you always have one connection that you can log into and share from anywhere. Oct 09 21:08:51 g00s, I made a LocalServiceHelper which manages all that. Using a callback. But I should fix it to work with bus events. Oct 09 21:09:07 mrenouf: btw, for parts where you can't avoid callbacks and state becomes tricky, there is an internal HiererchicalStateMachine class in android which is fing awesome as hell Oct 09 21:09:25 g00s, whoa Oct 09 21:09:32 g00s: ... link please? :D Oct 09 21:09:36 in fact , hsm + guava eventbus = WIN Oct 09 21:09:37 * mrenouf Oct 09 21:09:46 hold on Oct 09 21:09:58 that's like... KUNG FOO! Oct 09 21:10:12 it used quite a bit internally in android Oct 09 21:10:16 so very well testes Oct 09 21:10:22 *tested :D Oct 09 21:10:36 http://bitgrind.com/android/android-4.1.1_r4/com/android/internal/util/StateMachine.html ? Oct 09 21:11:00 I put all the source in jxref format and had Google index it for me :-) Oct 09 21:11:04 yes Oct 09 21:11:07 its awesome Oct 09 21:11:29 JavaDoc: TL;DR Oct 09 21:11:36 WHAT-THE_F&#$ Oct 09 21:11:46 That's nothing to toss into your app lightly Oct 09 21:11:52 i went back and forth between that and another tool called SMC. Oct 09 21:11:57 hmm anyone know a good MIT/Apache licensed playing cards deck? Oct 09 21:12:02 sure, its very self contained. like 2 or 3 files Oct 09 21:12:13 mrenouf: look at the unit tests for examples Oct 09 21:12:32 best one I found was LGPL, and in SVG Oct 09 21:13:05 (and the third party to render SVG wasn't 100%, sadly) Oct 09 21:13:06 also, if you grep the android codebase, you'll see it being used a lot. plenty of examples Oct 09 21:13:08 thankfully I'm processing events received on the bus, and just have a sequence to receive, and they arrive out of order sometimes, so it's a simple state check to process them in order Oct 09 21:13:17 mrenouf: it's a state machine, it's not exactly tricky ;P Oct 09 21:13:28 mrenouf: oh yeah, i fixed that in my version by having ordered delivery Oct 09 21:13:38 g00s: btw, if you want quick and documentable state machine, look into ragel Oct 09 21:13:40 each subscriber has a priority Oct 09 21:13:49 g00s, on @Produce? Oct 09 21:13:56 p_l: yeah, i use ragel in the same project Oct 09 21:13:59 hi, does anyone know how to use file descriptor outside asset folder? Oct 09 21:14:12 ragel is awesome too, but a different niche Oct 09 21:14:19 I need to use this function setdatasource(fd, offset, length) for my mediaplayer Oct 09 21:14:40 but my files are not in the asset folder ( and I don't wanna move them to the folder) Oct 09 21:15:14 g00s, do you have the equivalent of @Produce that Otto has? Oct 09 21:15:27 mrenouf: whatever guava eventbus did. i thought it was @Subscribe Oct 09 21:15:38 both come from guava, dont know if Otto changed that Oct 09 21:15:59 i also had to have production and delivery on different threads, so i had to do that differently also Oct 09 21:16:40 This is added in Otto. Annotate getters with @Produce. On register, any @Produce which return matching types are invoked and delivered to the newly added listener, if the return value is non-null. Oct 09 21:16:52 It's the "what did I miss?" feature. Oct 09 21:17:17 ah, cool Oct 09 21:17:44 I'm doing stuff in a service in between activity transitions, so it's insanely helpful, cause I can't guarantee reception when the value is posted. Oct 09 21:18:19 anybody using holoeverywhere? Oct 09 21:18:37 no one Oct 09 21:18:56 mrenouf: hmm. the pattern i used in my app was to subscribe as usual, but when an activity onStart was call, to query the state of the service. so state is broadcast and is queryable Oct 09 21:19:15 whatever works though ;) Oct 09 21:19:35 g00s, that works, but has the side effect of sending those updates back out to ALL listeners, not just the ones that were just attached. It really is quite elegant. Oct 09 21:19:49 i have to look at it a little closer Oct 09 21:19:50 Though that's rarely an issue, it can be problematic sometimes. Oct 09 21:20:14 evancharlton, it's a pretty bad library Oct 09 21:20:16 Can anyone help me with a E/WVMExtractor( 2340): Failed to open libwvm.so error in the logcat? Oct 09 21:20:22 like, I can't even shut it down, or set theme Oct 09 21:20:23 or any sort Oct 09 21:20:31 unless i want my entire app to adopt it Oct 09 21:21:11 Hi, Oct 09 21:22:13 i have an old motorola xoom 32gb wifi xoom tablet --- trying to google it's screen density and i get weird value of 150dpi --- is that all it has? can someone verify? Oct 09 21:22:24 lulz, there is a xoom 2? Oct 09 21:29:05 yes it is a xoom 2 also Oct 09 21:29:10 xoom sucks Oct 09 21:29:21 my galaxy has 217dpi Oct 09 21:30:01 anyone here use expansion files? Oct 09 21:30:31 Can anyone help me with a E/WVMExtractor( 2340): Failed to open libwvm.so error in the logcat? Oct 09 21:31:37 anyone knows anything about google earth? Oct 09 21:32:13 I am importing track in to it, but I don't know how can I make show speed and time in the bubble waypoint Oct 09 21:33:56 convivial, i think 150dpi is about right for a 10 inch 1280x800 Oct 09 21:34:00 it would definitely be mdpi Oct 09 21:34:47 my little galaxy s2 is 21dpi LOL Oct 09 21:35:13 i dont know why that's "LOL"worthy Oct 09 21:35:19 and im assuming you accidentally a digit Oct 09 21:35:36 LOL Oct 09 21:35:42 * Jug6ernaut did that just to annoy canadiancow Oct 09 21:35:48 T_T Oct 09 21:35:54 canadiancow: the forthcoming google/samsung tablet is supposed to be around 300dpi Oct 09 21:35:55 217dpi Oct 09 21:35:55 * canadiancow sets mode: +o canadiancow Oct 09 21:36:06 * Jug6ernaut hides Oct 09 21:36:18 \I find it funny because this small device has more pixels per area Oct 09 21:36:24 ... Oct 09 21:36:26 thats not funny Oct 09 21:36:28 that's normal Oct 09 21:36:31 is there a design issue behind that? Oct 09 21:36:39 you hold it closer to your face Oct 09 21:36:41 theres a design issue behind everything Oct 09 21:36:42 so it needs higher density Oct 09 21:37:03 oh, so its a UX performance issue.... Oct 09 21:37:26 ok, thanks I did not realize that. Oct 09 21:37:47 the xoom, nexus 7, and galaxy nexus all have the same number of pixels (roughly) Oct 09 21:37:52 but they are 10, 7, and 4.65 inches Oct 09 21:37:55 i guess we'll see how well project butter works with a 10" 300dpi tablet Oct 09 21:38:16 g00s what tablet is that Oct 09 21:38:27 http://www.gizmag.com/nexus-10-google-samsung--high-end-tablet/24476/ Oct 09 21:38:41 rumors rumors rumors gotta love um Oct 09 21:38:43 * Jug6ernaut needs to stop buying tablets Oct 09 21:38:45 i have 3 Oct 09 21:38:48 i dont use any of them :S Oct 09 21:39:02 Jug6ernaut: i'll take one :) Oct 09 21:39:10 all i have is a froyo device Oct 09 21:39:23 if a user has set one of their apps to update automatically via Google Play, but a new update requires a new permission, this will force the user to update the app manually, right? Oct 09 21:39:24 i got xoom & touchpad, name a price :P Oct 09 21:39:45 i'll give you three fiddy Oct 09 21:39:49 well, you'd have to pay me to take the xoom Oct 09 21:39:53 +1 Oct 09 21:40:00 :o Oct 09 21:40:04 no love for xoom? Oct 09 21:40:04 did it get JB? Oct 09 21:40:07 ofc Oct 09 21:40:17 its so heavy Oct 09 21:40:21 it is :\ Oct 09 21:40:28 Jug6ernaut: so, you pay for shipping and we'll call it even :D Oct 09 21:40:38 lol Oct 09 21:41:09 canadiancow name anoher android device that has a led indicator for the front camera? Oct 09 21:41:11 is there any way to force user to update the app manually via Google Play, even though they've set it to download automatically? Oct 09 21:41:21 *force the user Oct 09 21:41:26 Jug6ernaut, gtab 10.1? Oct 09 21:41:29 * canadiancow guesses Oct 09 21:41:34 does it? Oct 09 21:41:36 name a feature i care about Oct 09 21:41:37 :D Oct 09 21:41:43 :( Oct 09 21:41:48 how about: not heavier than my laptop Oct 09 21:41:52 charging led? :D Oct 09 21:41:57 whaat Oct 09 21:41:59 idk about that Oct 09 21:42:25 canadiancow wanna buy my desktop then? :D Oct 09 21:44:24 barbs, if the app permissions change, I believe auto-update is suspended Oct 09 21:44:34 correct Oct 09 21:44:49 nice Oct 09 21:44:52 * Jug6ernaut didnt know that Oct 09 21:45:32 gutano: I believe you're right, though i'm wondering if there's another way I can do this (i.e. explicitly force a manual update) Oct 09 21:46:02 there may be other ways.. I'm not very informed on the topic Oct 09 21:46:23 thanks anyway :) Oct 09 21:46:28 =D Oct 09 21:47:05 * Jug6ernaut knows this is an eclipse question Oct 09 21:47:17 but is possible to do an in text search of all open documents? Oct 09 21:47:38 Hi, is there any way to dial via !googlevoice in the dialer? a certain conf bridge # my work uses is filtered apparently from google. (218) prefix, gv dials and says 'Number is invalid' and hangs up. TIA also Oct 09 21:47:39 as in all the open tabs? Oct 09 21:47:48 barbs no project wide Oct 09 21:47:52 so all documents in project lol Oct 09 21:47:55 Can anyone help me with a E/WVMExtractor( 2340): Failed to open libwvm.so error in the logcat? Oct 09 21:48:12 flea, try #android or a google voice support forum or something Oct 09 21:48:23 guys, how do i test my app can download expansion files without actually releasting my APK and expansion files? Oct 09 21:48:29 releasing* Oct 09 21:48:38 hi canadiancow, thanks i did try heavy search and #android to no avail. will keep doing dilligence Oct 09 21:48:43 Jug6ernaut: I use Search -> File… and ensure that Workspace is selected in scope…not sure if that's too broad for you though? Oct 09 21:48:57 actually, that only searches open projects, so maybe that's what you needed? Oct 09 21:49:20 where is Search under lol Oct 09 21:49:32 & does it search in document or just document name Oct 09 21:49:32 in the top bar, with File, Edit etc Oct 09 21:49:39 searches within documents Oct 09 21:49:49 o Oct 09 21:49:50 hmm Oct 09 21:49:51 xD Oct 09 21:49:55 * Jug6ernaut tries Oct 09 21:50:30 another quick way to do it is to highlight text and press Command Option G on the mac (I forget what it is on other systems) Oct 09 21:51:17 barbs nice Oct 09 21:51:20 should work :D Oct 09 21:51:28 * Jug6ernaut doesnt know why he doesnt try the obvious Oct 09 21:51:32 excellent :) Oct 09 21:52:02 Eclipse is a bit like that, things seem obvious once you find them Oct 09 21:52:06 soon they'll become second nature though ^^ Oct 09 21:53:25 lol Oct 09 21:55:38 hey guys, trying to use ant to build Oct 09 21:57:02 if you end goal is to port a game to the ouya, which tablet is better to start porting with - the nexus 7, amazon kindle fire hd, or galaxy tab 2.0? Oct 09 21:57:07 *your end goal Oct 09 21:57:20 nexus 7 Oct 09 21:58:06 definitely nexus 7 Oct 09 21:58:13 does it have several hardware specs in common? Oct 09 21:58:22 meetoman: have you done "android update project -p ." in the directory that has your AndroidManifest.xml? Oct 09 21:58:54 both have a tegra 3 SoC and nexus 7 doesn't have funky OEM stuff Oct 09 22:02:39 louielouie, i have already done it Oct 09 22:03:01 louielouie, i keep getting class com.android.ant.NewSetupTask cannot be found Oct 09 22:03:25 eclipse is pretty much done, crashes everytime i do a launch Oct 09 22:06:00 dang it, for chrome : Adblock or Adblock Plus? i can never remember which is which Oct 09 22:06:22 adblock is the one with kittens Oct 09 22:06:38 well, we dont want that do we Oct 09 22:06:41 lol chrome Oct 09 22:06:49 it's optional :P Oct 09 22:07:09 meetoman: sounds like you've got a problem with your ant classpath Oct 09 22:08:33 g00s: well they do keep the rats away Oct 09 22:09:34 how does one program kindle fire? Oct 09 22:09:46 it does not show up in my eclipse ddms Oct 09 22:10:03 convivial: ask amazon. Oct 09 22:10:34 that sucks Oct 09 22:10:41 its android 'based', but doesn't pass the CTS - so … we dunno Oct 09 22:10:50 well, i should speak for everyone, but Oct 09 22:10:59 i'm going to through it out the window from 20 stories up … don't care about it anymore Oct 09 22:11:20 i would try to put JB on it first ;) Oct 09 22:11:36 convivial: check out the first answer for http://stackoverflow.com/questions/8347561/adb-cannot-detect-my-kindle-fire-on-windows-7-but-device-manager-can Oct 09 22:11:38 if that doesnt work, yeah, then you can throw it someplace Oct 09 22:11:41 jb? what is jb? Oct 09 22:11:49 elly bean Oct 09 22:11:52 *jelly Oct 09 22:12:11 convivial: on Mac/Linux, that file is at ~/.android/adb_usb.ini Oct 09 22:13:03 there is no updates for kindle fire Oct 09 22:13:10 i'm on mac Oct 09 22:13:10 justin bieber Oct 09 22:19:51 this may be a very very newb question, but what are the benefits (other than the 0.1-0.9 range) of using a float over int in relation to Rect vs RectF? Oct 09 22:20:33 canadiancow: i'm betting that was a freudian slip :| you listen to the biebs dont you Oct 09 22:20:46 hellz yea Oct 09 22:21:22 i was at the supermarket the other day and they had this aweful crap on, so i asked the cashier 'wut is this crap' and they said it was the biebs Oct 09 22:21:44 i think even the kale was wilting quicker Oct 09 22:21:56 what kind of a supermarket plays music Oct 09 22:22:03 trader joe's ;) Oct 09 22:28:16 thanks, glad i did not throw it from window Oct 09 22:28:37 is it possible to increase the rate that motion events are polled, or is that something that's built into the hardware? Oct 09 22:28:58 the problem is detecting ACTION_UP vs dragging off-screen Oct 09 22:31:36 hi anyone around Oct 09 22:31:47 i wana know about andriod mobile app for my internet radio Oct 09 22:32:30 what? Oct 09 22:32:38 what? Oct 09 22:32:39 this Oct 09 22:32:51 O.o Oct 09 22:34:15 no one knows what your internet radio is Oct 09 22:34:31 ummm Oct 09 22:34:37 its shoutcast streamer Oct 09 22:34:53 like http://176.31.239.83:8408/listen.pls Oct 09 22:35:05 i need an app for this Oct 09 22:35:20 you want to buy an app? Oct 09 22:35:25 you want to write one? Oct 09 22:35:32 you want to hire me to write one? Oct 09 22:35:40 lol Oct 09 22:35:52 isnt it available free? Oct 09 22:36:01 nothing Oct 09 22:36:04 is free Oct 09 22:36:21 right as I was thinking "nothing in life is free" heh Oct 09 22:36:21 how much for this app ? Oct 09 22:37:00 * Jug6ernaut wonders how much canadiancow would charge Oct 09 22:37:06 you're in the wrong channel Oct 09 22:37:09 this is for developers Oct 09 22:37:14 you are not a developer Oct 09 22:37:17 * Jug6ernaut goes back to diging through code Oct 09 22:37:28 Jug6ernaut, over nine thousand Oct 09 22:38:39 estimate development time Oct 09 22:44:38 i dont nkow enough about streaming audio Oct 09 22:44:54 so i'd estimate two weeks for functional, but looks like ass Oct 09 22:44:57 so thats 80 hours Oct 09 22:45:01 at $100/hour Oct 09 22:45:08 so not quite over nine thousand Oct 09 22:45:13 lol Oct 09 22:45:40 streaming audio... Oct 09 22:45:43 doesnt sound like fun Oct 09 22:46:13 O.o Oct 09 22:48:05 You want #android-consulting It's right over there ---> Oct 09 22:49:20 hhmm i've got a wierd effect i'd like to get rid of. I have a Frame inside a layout, and i use that as a container to dynamically swap out fragments (animated), some fragments are smaller than others, but the frame stays the same size. However, the animation only plays in the view space of the new fragment being swapped in. Thus if a smaller fragment is replacing a larger frag, the larger frag dissapears instantly except for the area that overlaps Oct 09 22:49:20 the new framgment, its quite jarring Oct 09 22:51:07 hey guys Oct 09 22:51:13 i gotta couple newb questions Oct 09 22:51:28 Whats the "R" , is that application instance ? Oct 09 22:51:47 i read a bit online in the docs but still missing a few things Oct 09 22:52:04 R is automatically generated, and contains the definitions to certain key resources Oct 09 22:52:21 and you always define key resources in your layout xml file ? Oct 09 22:52:28 correct Oct 09 22:52:41 do you need to always have a layout xml file ? or can you do everything in code ? Oct 09 22:53:09 you can go 1, the other, or both ways Oct 09 22:53:23 use xml Oct 09 22:53:28 or you'll regret it Oct 09 22:53:41 yea, im coming from ios dev, where i did everything in code Oct 09 22:53:48 so trying to make the transition Oct 09 22:53:49 think of the xml file as a 'template'. use it whenever possible to increase compativility Oct 09 22:53:56 gotcha Oct 09 22:54:12 so, heres a more specific question on what im working on Oct 09 22:54:16 doing a basic list view Oct 09 22:55:00 -nods- ? Oct 09 22:55:16 one sec, reading my code to make sure im saying this right Oct 09 22:56:05 i have a basic list view, where the xml file has a single TextView Oct 09 22:56:15 Now i want to customize that , and put more text Oct 09 22:56:23 First step is to make additional textviews in my xml ? Oct 09 22:56:29 then use an adapter Oct 09 22:57:06 depending on what text you want to add, and how you want it to look, can alter how you build your xml Oct 09 22:57:17 if you call startActivityForResult(), you will always get a callback to onActivityResult(), right? Oct 09 22:57:25 you can have a layout within a layout with all the text you want, or many other options Oct 09 23:01:51 okay, and i can always change my listviews adapter if neeed ? Oct 09 23:02:15 basically i have a HashMap Oct 09 23:03:05 Komak57: did you try that idea with the dialog fragment instead? Oct 09 23:17:30 hey , so I am get an xml file no problem, and get the InputStream, does that InputStream contain the whole file already ? Oct 09 23:17:51 because then i read that file with a buffer, but thats a fixed len Oct 09 23:17:58 and i wont know the length of the file Oct 09 23:18:12 So i guess, how do I read from the InputStream an unknown file size Oct 09 23:19:54 i guess a buffered reader works, seems to be what i want Oct 09 23:22:09 if i have a canvas and i want to clear it, canvas = new Canvas(bitmap); should work right? Oct 09 23:23:30 how does one differentiate between a finger being dragged off-screen, and MotionEvent.ACTION_UP? Oct 09 23:24:57 RichardS: no Oct 09 23:25:07 RichardS: a Canvas is only a pass-through, it's not the storage Oct 09 23:25:17 RichardS: use canvas.drawColor Oct 09 23:25:18 RichardS: your goal is actually to clear the underlying bitmap Oct 09 23:25:19 I have no memory of changing anything in my code, but suddenly for some reason a View is taking up the whole screen, including the button bar at the bottom (thus inaccessible) Oct 09 23:25:24 so either use Canvas.drawColor Oct 09 23:25:27 anyone know why this is? Oct 09 23:25:27 or Bitmap.eraseColor Oct 09 23:25:38 Hodapp: you changed your code :)) Oct 09 23:25:56 how about replacing the bitmap in the imageview? Oct 09 23:26:04 as canvas.drawColour has not worked so far Oct 09 23:26:24 how are you calling drawColor()? Oct 09 23:26:58 canvas.drawColor(Color.WHITE); as a button click Oct 09 23:27:26 but i dont need to "clear", i need to "return to origional state" Oct 09 23:27:32 as it is a custom canvas Oct 09 23:27:40 what's the original state? Oct 09 23:28:10 http://pastebin.com/zz0taeCa Oct 09 23:28:11 this :) Oct 09 23:28:28 it's weird to override CAnvas Oct 09 23:28:59 I couldnt figure another way to make a clickable grid which i could draw on :/ Oct 09 23:29:13 extend View Oct 09 23:29:36 Canvas is just a way to draw onto a Bitmap or the screen Oct 09 23:29:41 it's not an interactive component Oct 09 23:30:22 I think ill re-write it to work like that, but at the moment i kinda need a quick fix to clear it. Oct 09 23:34:14 http://pastie.org/5019397 Oct 09 23:34:22 but if i do make update-api Oct 09 23:34:26 it gives me the same exact error Oct 09 23:34:41 i can post github link withthe entire chnges Oct 09 23:34:54 if anyone is bored enoug to have a look Oct 09 23:35:05 im building jelly bean with mods on top ofc Oct 09 23:37:21 Is there anyway i can download my own app from my dev console? Oct 09 23:37:32 no Oct 09 23:37:38 but you can do it from the play store... Oct 09 23:37:48 romainguy: If only I used version control and could check whether or not I changed my code... Oct 09 23:37:52 romainguy: Oh. I am. And I didn't. Oct 09 23:37:59 canadiancow: can I rip my own app? Oct 09 23:38:58 rip Oct 09 23:39:00 ? Oct 09 23:39:17 i had some real hq images Oct 09 23:39:19 on my old app Oct 09 23:39:29 can I get them somehow? extracting the apk? Oct 09 23:40:08 yea Oct 09 23:40:10 use apktool Oct 09 23:40:18 techdigy: this tool can do that: http://code.google.com/p/android-apktool/ Oct 09 23:43:20 the apk is just a zip file you know Oct 09 23:44:02 yeah I used 7zip once. Can I trust the APK Downloader downlaoder extention Oct 09 23:44:02 ? Oct 09 23:44:04 for chrome Oct 09 23:45:59 I'm sureprized noone uploaded my app to a file sharing site...haha Oct 09 23:46:34 at some point they will be crypted though. Oct 09 23:46:35 wtf, why aren't my assets being pulled in when I use aapt package -f .... -A /path/to/my/assets Oct 09 23:46:40 Not sure when that turns on Oct 09 23:46:47 it's not showing up in the resources.apk Oct 09 23:47:23 So in the future no one will be able to pirate apps? Oct 09 23:49:59 interesting, it only looks in the last -A location specified Oct 09 23:52:19 pfn: yep, that's a major shortcoming right now Oct 09 23:53:05 wait mrenouf are apps still being pirated right now? Oct 09 23:54:35 I find encryption possibly problematic, and it may reduce my likely hood to purchase. I want to be able to side load onto devices that may not e supported Oct 09 23:54:42 * techdigy starting to learn fragments Oct 09 23:54:54 mrenouf, it'd be nice if aapt would emit a warning if it ignored an argument Oct 09 23:55:22 I heard google is going to do something else. Like they already made a feature long time ago where your app actualy uses the internet to connect to the play store to check if the user brought it. Oct 09 23:55:34 What would encryption mean though? What exactly do you mean by encryption? Oct 09 23:56:42 It means, the apk encrypted with a device-specific key before it's downloaded to the device Oct 09 23:56:54 SpeedEvil, any app that allows you to side load will be distributed outside of the market Oct 09 23:56:58 where encryption is not a problem Oct 09 23:57:09 encryption in downloading from the market is not a problem Oct 09 23:57:23 get a device that has google stuff on it and this is not a problem Oct 09 23:57:31 apps can still opt to support backup Oct 09 23:57:38 techdigy: apps are always pirated. And given that my brother ended up grabbing iOS apps anyway, I wouldn't say iOS is better :) Oct 09 23:58:31 this was mentioned, I forget when. Not sure if it's happening. It was talked about around the same time the differential download feature was announced. Oct 09 23:58:34 I hate that apps may not support Google backup Oct 09 23:58:58 SpeedEvil, not Google backup, but device backup, re: adb backup Oct 09 23:59:26 but far more apps should support Google backup, like GAMES. God, wtf. Oct 09 23:59:48 (context - I have purchased only about 5 apps, and use a couple side loaded, as the dev pulled them from the market, or my device.) Oct 10 00:01:11 right now it's absolutely trivial to pull apks off a rooted device Oct 10 00:01:32 my problem with games isnt something the cloud backup would really solve Oct 10 00:01:36 its meant for like...settings Oct 10 00:01:49 with games, i want to start on my phone, then go to my n7, then to my gtab, then back to my phone Oct 10 00:01:57 so it needs "live" synchronization Oct 10 00:02:00 at least with encrypted apks, it would make it so a each person that wants to pirate would have to extract a device key somehow Oct 10 00:02:04 canadiancow, true. Oct 10 00:02:16 ive debated putting cloud backup into an app of mine for a while Oct 10 00:02:22 but for like 5 settings... Oct 10 00:02:25 and they're all boolean Oct 10 00:02:32 its like why bother Oct 10 00:03:11 canadiancow: do bother, please Oct 10 00:03:36 but i have more important things to do :( Oct 10 00:03:41 although i would like to learn cloud backup :) Oct 10 00:03:43 canadiancow: I had to deal with wacky update process that involved full wipe, restoring from google backup was godsend when it works Oct 10 00:03:46 On android you don't really need to pirate apps. Most of the good ones are free unlike iOS. My parents are forcing me to get iOS wtf. Oct 10 00:04:02 and basic support for android backup is simple Oct 10 00:04:11 * canadiancow says something bad about techdigy's parents Oct 10 00:04:33 I had CM once and I never got the call so my parents got freaked out so my dad doen't trust android anymore. Oct 10 00:04:56 anyway, piracy is little technical, and lots psychological issue Oct 10 00:05:18 he blames android, and you blame CM Oct 10 00:05:19 DRM doesn't work, pretty certain you could make a proof about it Oct 10 00:05:22 nice Oct 10 00:05:36 Blame Verizon, etc. Oct 10 00:05:42 that Oct 10 00:06:18 I hate DRM. haha I was checking out this app which was forced to go free on both iOS and android because its piracy rate once reached 90%+ Oct 10 00:06:41 "forced" Oct 10 00:06:47 was that the publicity stunt one? Oct 10 00:06:54 The zombie game? Oct 10 00:07:01 i dunno Oct 10 00:07:04 what's PC piracy rate? Oct 10 00:07:08 i bet its at least as high Oct 10 00:07:17 techdigy: for the first year or so of owning an android phone, I was forced to pirate apps because I simply couldn't buy them even if I had the money. Something that was probably a big impact into "android piracy" rates Oct 10 00:07:31 p_l, that exactly Oct 10 00:07:38 canadiancow: dunno, Steam seems to have acquitted itself well on PC, at least for games Oct 10 00:07:40 nwo that im living in the US of A, im buying all my music Oct 10 00:07:45 slowly going through my entire library Oct 10 00:07:51 since google music sells here :) Oct 10 00:07:54 if you can't buy even cheap apps, why do you even have a smart phone? :p Oct 10 00:08:00 they cost money too Oct 10 00:08:02 My computer comes with a genuine Windows 7 Home premium. After a couple of times I got tired of entering in the sereal so I just use the preactiviated edition... Looks like pirating things even makes it easier for the end consumer. Oct 10 00:08:22 Xerion: I couldn't, because they wouldn't accept my money Oct 10 00:08:36 It was a case of "I'm throwing money at the screen and nothing happens!" Oct 10 00:08:46 ah I missunderstood then ;) Oct 10 00:08:50 yea Oct 10 00:08:54 p_l: why wouldn't they? Oct 10 00:09:00 country restrictions Oct 10 00:09:03 once I could buy stuff, I bought all the apps I actually used, and deleted the rest Oct 10 00:09:06 p_l: ohh Oct 10 00:09:17 techdigy: broken-ass Google Wallet approach Oct 10 00:09:33 p_l: haha Oct 10 00:09:46 yeah in my country most people don't have credit card, wanting to use payment methods that are more common Oct 10 00:09:51 it probably gives them better part of the 30% they charge you, but it leads to slower adoption. Same for "who can sell paid apps" Oct 10 00:09:56 even though the latter give way less buyer protection Oct 10 00:10:07 Xerion: in Poland nearly everyone has debit card Oct 10 00:10:21 p_l: Do you guys make a living by devloping apps? Oct 10 00:10:27 Google Wallet simply wouldn't take the money Oct 10 00:10:41 I got a credit card years back to be able to buy some things, but everything I spend is automatically deducted from my account each month Oct 10 00:10:46 techdigy: I was once in a startup that had android as one of major platforms Oct 10 00:10:54 Xerion: that's pretty much "debit" card Oct 10 00:10:56 so not really debt that way Oct 10 00:11:27 yeah it works like that, but also got a common debit card like everyone does ;) Oct 10 00:11:33 Did google buy android ? Oct 10 00:11:41 techdigy, i dont make a living with my own apps Oct 10 00:11:47 but i've been a full-time android dev for a while Oct 10 00:11:59 As a matter of fact does anyone here work for google? Oct 10 00:12:05 but really even if you do not want a credit card like I have there are still multiple companies offering pre-paid credit cards Oct 10 00:12:11 techdigy, a few people in here do Oct 10 00:12:18 it's just a lame excuse for piracy Oct 10 00:12:25 techdigy: google acquired android when it was very early in developement. as for googlers, ctate, romainguy, etc. Oct 10 00:12:36 even if google could do more to support different kinds of payment Oct 10 00:12:39 Xerion: no, it's the part where piracy offers more worth Oct 10 00:12:47 I know Oct 10 00:12:57 but people always come up with excuses Oct 10 00:13:11 as Valve put it - you win with pirates by offering, in effect, lower price - because time spent etc. is also a cost Oct 10 00:13:16 Is there any alternative to teh android market? Oct 10 00:13:24 and frankly speaking, I pity anyone who tried to pirate Sword of the Stars 2 Oct 10 00:13:30 the android market doesnt exist anymore Oct 10 00:13:33 it's the google play store Oct 10 00:13:35 (that game would be impossible without Steam) Oct 10 00:13:39 I sometimes pirate an app because I want to properly test it first Oct 10 00:13:57 but if I actually use it (or play it with games) I buy it Oct 10 00:14:23 canadiancow: yeah lol Idk why I referr to it as that Oct 10 00:14:37 * p_l once "pirated" an app for RE (I have a goddamned legal right to RE everything. Woohoo!) Oct 10 00:14:42 Xerion: you have like 30 minutes for a refund Oct 10 00:14:43 heh when the name just changed I was constantly searching for it :p Oct 10 00:14:56 30 mins is way too little time Oct 10 00:15:17 Shoot why not just pirate an app from the play store itself by downloading it ... backing it up... requesting a refund. Oct 10 00:15:22 isn't it actually 15 minutes? Oct 10 00:15:31 The only app i have on my device is silent time... and its free. Oct 10 00:15:34 i think i remember it actually being 24hr? Oct 10 00:15:52 waffleeater: it was, once, 24h Oct 10 00:15:53 techdigy: which is why they reduced time to 15 minutes for refund, and why apps are now connecting to the market to validate themselves (if the developer turns on those features) Oct 10 00:15:59 waffleeater: 7 days i think Oct 10 00:16:12 yeah nvm its 15 thanks dragorn Oct 10 00:16:16 15 mins? pff Oct 10 00:16:23 when do those start? Oct 10 00:16:29 when you pay Oct 10 00:16:34 well Oct 10 00:16:35 which is silly Oct 10 00:16:40 it could still be downloading Oct 10 00:16:41 ohh you have 7 days to return media if you dont play back Oct 10 00:16:42 it starts when the download finishes Oct 10 00:16:46 i dont know how the hell they can know that Oct 10 00:16:48 used to start when you pay Oct 10 00:16:57 the funny thing is that I was apparently refunded for broken purchase once... but the application is left installed Oct 10 00:17:00 I brought soundhound for .25 cents Oct 10 00:17:11 I need to be way quick testing some apps on multiple devices then ;) Oct 10 00:17:21 ha yeah. Oct 10 00:17:49 and perhaps it works but then after a few days it turns out not to be quite what I was looking for after all Oct 10 00:18:14 Can you request a refund from the Dev? Oct 10 00:19:00 then the dev would have to pay google's cut too Oct 10 00:19:39 devs can refund from checkout.google.com Oct 10 00:19:40 is setRetainInstance(true) generally a good idea? Oct 10 00:19:47 and google refunds the fee in that case Oct 10 00:19:52 ah ok Oct 10 00:20:26 but really, while I have bought a few apps, I haven't had the need for any in quite a while Oct 10 00:20:52 almost everything has a free alternative anyway Oct 10 00:21:01 or in my case, doesn't run on my hw Oct 10 00:21:14 yeah that happens as well :D Oct 10 00:21:21 Hope google releases new nexus line phone by new years Oct 10 00:21:24 I guess what I need is to detach/reattach instead of using ft.replace(tag) Oct 10 00:21:27 right? Oct 10 00:21:45 techdigy, me too! Oct 10 00:21:56 haha I think its going to be HTC 6435LVW Oct 10 00:22:02 well, by the time I get to access Play Store licensing code, a lot of the woes might be fixed Oct 10 00:22:08 techdigy, there was an article about the LG device Oct 10 00:22:30 Yeah Idk htc or LG. Seems like samsung is making the new nexus tablet though? Oct 10 00:22:51 I think it's awesome there aren't any leaks yet. Like Apple used to be. Excitement and suspense :-) Oct 10 00:22:55 Whatever the heck its going to be made by... Its probiably going to be good. Oct 10 00:23:46 the refund window starts when the download completes Oct 10 00:23:46 Wait are android updates alphabetical. Oct 10 00:23:47 ? Oct 10 00:23:52 yes techdigy Oct 10 00:24:04 canadiancow: Wow just noticed. Oct 10 00:24:24 not sure what they're going to do with 480ppi. That's crazy. And way too high for xhdpi.... xxhdpi? Oct 10 00:24:44 i think the max the eye can see would be around 330ppi i read that somewhere Oct 10 00:24:57 everything will be scaled up, but you wont be able to tell. At least text will look incredible. Oct 10 00:25:00 or at least distignush the indiviidual pictures Oct 10 00:25:30 http://static.googleusercontent.com/external_content/untrusted_dlcp/source.android.com/en/us/compatibility/4.1/android-4.1-cdd.pdf Oct 10 00:25:33 section 7.1 Oct 10 00:25:35 screen density Oct 10 00:25:36 xxhdpi Oct 10 00:25:53 I think this story is BS. Why would an HTC phone sport DROID branding? I highly doubt Motorola would license that out. Oct 10 00:25:56 techdigy, thats what apple claimed when they released a 330dpi device Oct 10 00:26:02 sonofa Oct 10 00:26:05 mrenouf, Droid is licensed to Verizon Oct 10 00:26:07 not Motorola Oct 10 00:26:13 I jsut recalled that. thanks Oct 10 00:26:22 there have been HTC Droids Oct 10 00:26:30 droid inc Oct 10 00:26:33 And it belongs to Lucas. But I wonder if Verizon has some exclusive deal. Oct 10 00:26:38 Was not aware. Interesting. Oct 10 00:26:44 Motorola Split. I think I know someone who used to work in their cell phone devision which is close to were i live Oct 10 00:27:13 i had to explain what google, android, droid, nexus and galaxy were and how they all related to each other to an iphone user today Oct 10 00:27:24 lol Oct 10 00:27:27 Does google have any jobs in Chicago? Oct 10 00:27:36 techdigy, google.com/jobs Oct 10 00:27:59 im gonna go on a limb here and say that google probably employs someone in every state Oct 10 00:28:06 "Life at Google" looks fun. Is it hard to get in? Oct 10 00:28:23 not if you're awesome :) Oct 10 00:28:35 techdigy: depends Oct 10 00:28:45 birbeck: nothign in montana and North Dekota Oct 10 00:28:53 if you're smart and have a good attitude, you can get a job Oct 10 00:28:58 anywhere Oct 10 00:28:58 Yes, there is a Chicago office. Oct 10 00:28:59 http://brage.info/~svein/sre.jpg <--- regarding position I'm applying for in march Oct 10 00:29:08 Not sure about Eng though. Oct 10 00:29:15 lol p_l Oct 10 00:29:18 you applying to google? Oct 10 00:29:21 techdigy: they may not have offices or jobs listed in those states, but im sure they have field agents Oct 10 00:29:23 canadiancow: second time Oct 10 00:29:31 good luck :) Oct 10 00:29:33 p_l: lol Oct 10 00:29:45 lemme know when you get in Oct 10 00:29:47 canadiancow: according to recruiter, I barely missed it last time (on programming question - had I applied for pure SRE, not SRE/SWE, I'd have got in...) Oct 10 00:29:47 birbeck: probably Oct 10 00:29:55 canadiancow: when you gonna take me up on that beer i promised? Oct 10 00:30:03 not all the offices are quite that awesome looking Oct 10 00:30:06 birbeck: they probably have a CDN in every state lol Oct 10 00:30:07 birbeck, uh Oct 10 00:30:09 asap? :D Oct 10 00:30:25 lol. you're in mv, not downtown? Oct 10 00:30:28 http://www.google.com/about/datacenters/inside/locations/index.html Oct 10 00:30:33 I like the Dublin one Oct 10 00:30:34 this is actually public now Oct 10 00:30:36 live in SF, moving into my place in soma on saturday Oct 10 00:30:40 working in mtv Oct 10 00:30:40 Re: CDN Oct 10 00:30:50 ah cool. taking caltrain or shuttle? Oct 10 00:30:57 shuttle obviously Oct 10 00:31:03 lucky Oct 10 00:31:08 caltrain would take longer and cost more Oct 10 00:31:10 canadiancow, you joined Google? Oct 10 00:31:13 yeah Oct 10 00:31:18 caltrain also sucks Oct 10 00:31:21 heh Oct 10 00:31:23 ive never used it Oct 10 00:31:27 no vpn to the office Oct 10 00:31:28 * p_l got a bunch of friends/acquaintances at Google Dublin Oct 10 00:31:29 almost once, when evancharlton told me to Oct 10 00:31:43 mrenouf: no, he's a zynga employee Oct 10 00:31:45 well i work in fidi Oct 10 00:31:56 pragma-, please just stop Oct 10 00:31:59 im around soma all the time though Oct 10 00:32:08 * techdigy time to get started working up my resume for google Oct 10 00:32:14 stop wut, that's what you are. Oct 10 00:32:23 heh. we had some zygna guy come here the other day and give a presentation Oct 10 00:32:24 you troll me like 24/7 Oct 10 00:32:38 all i could think the whole time is "this is why your stock is tanking" Oct 10 00:32:38 and no, you're wrong Oct 10 00:32:46 * pragma- nods at birbeck Oct 10 00:32:47 birbeck :( Oct 10 00:32:50 i own ZNGA :( Oct 10 00:33:01 that sucks :-P Oct 10 00:33:04 * pragma- is doing everything he can to help zynga go out of business Oct 10 00:33:13 on the plus side, google is going up :) Oct 10 00:33:26 actually it went down today :P Oct 10 00:33:27 but yea, in general Oct 10 00:37:30 i feel like a lot of people promised me a beer Oct 10 00:37:35 except i didnt write down their names Oct 10 00:42:26 is adding an sdcard to an avd meant to restart it? Oct 10 00:44:54 you're supposed to Oct 10 00:45:13 typically adding/removing hardware from phones is bad Oct 10 00:45:16 (while they're on) Oct 10 00:45:23 even my galaxy nexus threw a fit when i pulled my sim card Oct 10 00:45:24 has anyone ever experianced text lag when typing, im on a galaxy tab 2 10.1 with android 4.0.4. the first few letters are ok and then it has around a 1s lag to each letter Oct 10 00:45:25 its an emulator Oct 10 00:45:29 "your device must restart" Oct 10 00:45:36 isnt it safe? Oct 10 00:45:37 exactly. it emulates a phone :) Oct 10 00:45:50 what's it gonna cost you... Oct 10 00:45:57 you just start it again, so what Oct 10 00:46:21 i mean thers no chance of hardware damage Oct 10 00:46:38 unless the programmed the avd to simulate hardware damage... which i doubt Oct 10 00:46:41 there IS no hardware Oct 10 00:50:52 RichardS: my fascinate does that, I can type about 4 words ahead of what my phone shows on the screen, then it goes crazy and types it all at once to catch up Oct 10 00:51:13 just found out of i clear the keyboard cache it speeds up Oct 10 00:51:16 fyi :) Oct 10 00:51:20 hmm good to know Oct 10 00:51:43 Theres still no ViewPagerIndicator in the support library, right? Oct 10 00:51:48 im actually considering going back to gingerbread, it started doing this with ics, jb is slightly better but still not perfect Oct 10 00:51:53 is adb in the command prompt or do i have to navigate? Oct 10 00:52:05 techdigy: yeah you do it from the command prompt Oct 10 00:52:12 raymonddull: thanks Oct 10 00:55:12 can 2 emulators share the same sdcard? Oct 10 00:55:40 without adding and removing the card each time you run an avd Oct 10 00:56:22 tech1: maybe but you cant use them at once Oct 10 01:02:36 the sd card isnt appearing Oct 10 01:03:25 should this have worked? emulator-arm -sdcard cardname.img -avd avdname Oct 10 01:05:01 I think it needs to be in the avd definition Oct 10 01:07:47 where can i find the apk on my phone/ Oct 10 01:08:16 /data/app/ Oct 10 01:09:18 romainguy: thats what i thought but it wont show up Oct 10 01:09:24 onthe sd and the phone mem Oct 10 01:09:34 wat Oct 10 01:09:41 by definition, /data isnt on the sd Oct 10 01:10:44 canadiancow: except for on the nexus devices. well ok I guess technically the sd is on /data Oct 10 01:11:11 on nexus it's still mounted at /sdcard Oct 10 01:11:19 i have a nexus Oct 10 01:11:23 /data/app is where normal apks go Oct 10 01:11:26 after install Oct 10 01:11:27 yes but its just a bind mount to /data/media Oct 10 01:11:39 but if the app is installed on the sdcard yeah it's different Oct 10 01:11:42 yeah Oct 10 01:12:03 * canadiancow feels like we're teaching someone how to pirate apks Oct 10 01:12:05 sec ill find out Oct 10 01:12:24 canadiancow: probably Oct 10 01:12:35 i cant move it to SD Oct 10 01:12:40 the button is like not focused Oct 10 01:12:41 that never happens Oct 10 01:12:49 Leeds: nope never ever Oct 10 01:13:09 ohh Oct 10 01:13:16 maybe DEv mode on with Debuging? Oct 10 01:14:58 YES! Android/data Oct 10 01:15:04 hahah Oct 10 01:15:16 on the AS Oct 10 01:15:20 *SD Oct 10 01:16:38 66666666666 Oct 10 01:16:58 i feeel like an idoit those are thedefult android files Oct 10 01:17:21 the apk isnt there Oct 10 01:17:36 thats just where an app can store large amounts of data Oct 10 01:18:28 not in data app Oct 10 01:29:28 Alright peace guys. Big headache Oct 10 01:29:49 hey guys, i have a strange issue with my widget Oct 10 01:30:06 it starts to update only when I rotate the screen Oct 10 01:30:20 http://stackoverflow.com/questions/12765192/appwidget-does-not-finish-updating-when-adding-it-for-the-first-time Oct 10 01:30:28 this the stackoverflow question about Oct 10 01:30:31 it Oct 10 01:30:38 can anyone take a look? Oct 10 01:32:17 iv pushed a couple of jpgs to the sdcard with adb.... now in the ddmms file explorer i can see the images in /mnt/sdcard ... however they dont show up in the emulator gallery Oct 10 01:33:34 oh it works now Oct 10 01:33:47 i had to run media scanner in dev tools -which i found by luck Oct 10 01:37:26 i am going to know preferences inside and out by the end of the week Oct 10 01:38:57 tech1: yeah the media scanner usually happens on boot or when mounting/unmounting the card which would happen with a normal usb connection, using adb throws it a curveball because media scanner isn't told there's new files to scan Oct 10 01:40:33 i see. ill have to remember it Oct 10 01:44:15 is there a way to change the ddms logpanel font colors? all the other panels take my gui colors(bright text,dark background), but the log panel takes my dark background and puts darkis font colors on it Oct 10 01:44:30 darkish* Oct 10 01:59:48 is anybody using the google-http-java-client library on Android? Is it worth using? Oct 10 02:04:29 I am trying to periodically execute code and I am using the Timer class Oct 10 02:04:37 But for some reason it is not looping Oct 10 02:05:19 anyone here tried Vitamio API ? http://vov.io/vitamio/ Oct 10 02:13:25 is it possible to route the ddms log output to a terminal? Oct 10 02:21:37 tech1, run adb lolcat in a terminal Oct 10 02:21:46 logcat ;) Oct 10 02:22:11 lolcat works too :D Oct 10 02:22:19 hehe is that some sort of easter egg Oct 10 02:22:20 this is handy for viewing logcat in a terminal Oct 10 02:22:21 http://jsharkey.org/blog/2009/04/22/modifying-the-android-logcat-stream-for-full-color-debugging/ Oct 10 02:23:26 oh cool. thanks. this solves my gui issues :) Oct 10 02:23:52 right on Oct 10 02:36:46 is ViewPager *only* in the v4 compat lib? if i targeted ICS as my minSdk, but still wanted to use ViewPager... would i still have to include the v4 support lib? Oct 10 02:53:04 Hello folks! Oct 10 02:54:35 I need to implement a desktop java game and I found a android java game tutorial which uses android.graphics.* and contents.*, I wonder if it is possible to adapt it for a desktop version? Oct 10 02:54:43 Could someone help me to figure it please? Oct 10 02:57:31 im sure it is possible. just learn swing and other java graphic stuff Oct 10 02:58:03 eww Oct 10 02:58:12 * Jug6ernaut avoided/s swing Oct 10 02:58:14 if you want to remake it for desktop Oct 10 02:58:22 or you can probably run the apk on desktop somehow Oct 10 02:58:29 yeh swing is a pain Oct 10 02:59:41 oh its a tutorial **** ENDING LOGGING AT Wed Oct 10 02:59:58 2012