**** BEGIN LOGGING AT Sun Jul 15 02:59:59 2012 Jul 15 03:00:21 gv.setAdapter(new ImageAdapter(this)); Jul 15 03:00:31 ImageAdapter() is not known :/ Jul 15 03:00:42 no ammount of googling is telling me wtf i need to import. Jul 15 03:00:50 intelij idea cant figure it out either Jul 15 03:01:38 Do you have a class called imageadapter? Jul 15 03:01:44 nope Jul 15 03:01:49 ..... Jul 15 03:01:56 http://developer.android.com/guide/topics/ui/layout/gridview.html is the only link i find Jul 15 03:02:04 i was looking at the tutorial for gridview Jul 15 03:02:13 so im gyessing you do the tut and didnt read far enough Jul 15 03:02:33 99% if googles example code leaves me totally stumped as to what the fuck they were trying to do/say Jul 15 03:02:49 idont want to implement a custom adapter Jul 15 03:03:20 i juist want to put a bunch of buttons arranged in a 6x3 table into something a little less verbose in the xml Jul 15 03:03:46 but if i have to add 500 gigs of obfuscated bullshit code to accomodate this ill leave the clusterfuck in the xml Jul 15 03:04:56 oh, canada... http://www.speedtest.net/result/2064270597.png Jul 15 03:05:42 canadiancow, im wifi tethered and everyone round here on 4g gets a nice 30k download speed and a 2 meg upload speed Jul 15 03:05:54 its funny Jul 15 03:05:59 rogers cable internet: MAX 2Mbps up Jul 15 03:06:05 if you pay them a bajillion dollars Jul 15 03:06:10 but get the cheapest LTE plan from rogers Jul 15 03:06:13 and you can upload at like 50Mbps Jul 15 03:06:28 and fyi: that speedtest was cable internet Jul 15 03:06:33 not cellular Jul 15 03:06:43 that cant be verizon :) Jul 15 03:06:52 no, it's rogers Jul 15 03:06:55 in canada Jul 15 03:09:28 ls Jul 15 03:09:28 cc Jul 15 03:09:35 ah, my bad Jul 15 03:09:38 failed to alt tab Jul 15 03:09:53 or command tab, rather Jul 15 03:12:16 why can i not just describe an entire gridview in xml and specify the images for each cell? Jul 15 03:12:22 fucking stupid Jul 15 03:12:44 gridviews are universally implemented poorly. Jul 15 03:12:53 i've never found one that had a coherent approach Jul 15 03:14:05 the one thing im hating MOST about android is the humongous amount of goblldegook you have to code to achieve anything Jul 15 03:14:35 I440r: it's almost like writing Java Jul 15 03:14:36 oh, wait Jul 15 03:14:49 and the fact that you have to know 40 billion terabytes of poorly written api documentation Jul 15 03:14:56 INSIDE OUT Jul 15 03:15:05 It's not that hard Jul 15 03:15:22 or well, I guess it's hard when one of the issues you're having is why you can't call an instance method from a static method Jul 15 03:15:37 i can fucking write an entire assembler for a new processor and implement a complete tethered, direct threaded forth compiler on it in less time than it takes to code hello world Jul 15 03:15:47 tethered even Jul 15 03:16:09 im getting slightly " <--- frustrated Jul 15 03:17:34 this documentation you have set me onto is TLDR jasta Jul 15 03:17:36 very tldr Jul 15 03:19:09 and i could study that shit for an entire year and still know not one fucking thing about how to achieve what im trying to do Jul 15 03:19:33 i just want one fucking simple bubble of fucking simple text Jul 15 03:23:11 hello. what is the best place to go for opengl ES 2.0 with c++ on android Jul 15 03:24:14 bfig http://developer.android.com/tools/sdk/ndk/index.html Jul 15 03:25:08 the documentation is in the zip, for the most part Jul 15 03:25:35 ok. what about opengl ES in particular? Jul 15 03:25:46 bfig: read the docs, it's in there Jul 15 03:25:55 ok Jul 15 03:26:02 Unless you're asking how OpenGL ES works in general. Jul 15 03:26:08 http://www.khronos.org/opengles/ Jul 15 03:26:11 perhaps? Jul 15 03:26:15 just in case i was misunderstood, i know openGL 1.0, and Jul 15 03:26:21 yes, maybe that's better :) Jul 15 03:29:15 I need to read some error log file but the eclipse dialog closed before I could figure out what log file it was talking about Jul 15 03:29:54 after I try to set build target Jul 15 03:30:28 well I give up for now Jul 15 03:30:47 yup. all day fighting this and i still dont know how to put ONE simple bubble of text on my display :( Jul 15 03:31:28 given a text string and a 9 patch... put text on display at given location... simple right? Jul 15 03:35:06 im stumped. totally freeking stumped Jul 15 03:38:52 I440r, have you tried something simpler? Jul 15 03:39:14 TextView + 9-patch + LayoutParams Jul 15 03:39:28 = Win \o/ Jul 15 03:39:49 Pragma you merge your changes to that graphing library yet? Jul 15 03:40:13 i cannot see how to stuff text thats known only a run time into a 9 patch and then display that bubble at ANY location within one specific view Jul 15 03:40:27 you don't put them into the 9 patch Jul 15 03:40:36 you put them into the text view that has the 9patch as a background Jul 15 03:40:39 i know i was simplifying it Jul 15 03:40:43 yes i know Jul 15 03:40:46 you were complicating it Jul 15 03:40:50 s/were/are/ Jul 15 03:40:52 and then you use layout parameters to place it where you want Jul 15 03:41:12 no fucking idea how to set layout parameters and ive been looking all day for how Jul 15 03:41:46 i had the textview wiht a 9 patch background coded in 2 minutes. Jul 15 03:41:53 LayoutParams lp = new ViewGroup.LayoutParams(); lp.marginLeft = 52; lp.marginTop = 167; view.setLayoutParams(lp); Jul 15 03:41:56 putting that in my view? im lost Jul 15 03:42:17 JakeWharton, and thats documented WHERE Jul 15 03:42:43 http://developer.android.com/reference/android/view/ViewGroup.LayoutParams.html Jul 15 03:42:46 http://developer.android.com/guide/topics/ui/declaring-layout.html#layout-params Jul 15 03:43:12 API Guides > UI > Layouts Jul 15 03:43:13 http://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html Jul 15 03:46:38 with API 11 or higher you can even just use view.setX() Jul 15 03:46:49 and view.setY() Jul 15 03:49:50 still cant get it. LayoutParams is unresolved. Jul 15 03:50:02 and ViewGroup.LayoutParams() is an unknown constructor Jul 15 03:51:09 put WRAP_CONTENT in for the width/height Jul 15 03:51:16 and why is it unresolved, are you not importing it? Jul 15 03:51:31 thers 238475626432 of them to chose from Jul 15 03:51:43 MarginLayoutParams Jul 15 03:51:57 is the one you want, if you want to use the margin attributes to position the view Jul 15 03:51:58 thats not what he typed Jul 15 03:52:17 .:20:43:26:. ( JakeWharton ) http://developer.android.com/reference/android/view/ViewGroup.MarginLayoutParams.html Jul 15 03:52:18 and that takes parameters that just fuck with me even more Jul 15 03:52:53 im already at that page. and im MORE clueless now than i was at 8 am this morning Jul 15 03:53:04 Really? Jul 15 03:53:06 the parameters define the measurement spec used when performing layout of the view Jul 15 03:53:09 Do you not know java or something? Jul 15 03:53:11 you want WRAP_CONTENT for both Jul 15 03:56:00 l44or why don't you just make a new project, instance a textview and it to the main root layout, and apply layoutparams to it until you get the jist of how to do such stuff? Jul 15 03:56:28 you want layoutparams to match the type of layout you are adding it too Jul 15 03:57:00 theres about 15 different layoutparams imports to chose from. none of them are marginlayoutparams. Jul 15 03:57:32 lasserix, what is it that you dont understand about my nick :/ Jul 15 03:57:37 http://pastebin.com/HwnVL9GX Jul 15 03:58:30 now imagine specsview is your textview programmatically instanced, mBaseOverlay is your root view (use find view by id or whatever to get its reference) Jul 15 03:58:41 ty but that doesnt even help me. iv no idea how to go from this contrived example to the specific example im trying to achieve Jul 15 03:58:51 O Jul 15 03:58:55 err, I'm trying to explain Jul 15 03:58:56 that Jul 15 03:59:00 oh Jul 15 03:59:36 Textview mSpeech = new TextView(whatever context); mSpeech.setText("Hello world I'm an npc"); Jul 15 03:59:48 what is your root layout ? Jul 15 03:59:54 ie is a linear frame relative etc Jul 15 04:00:09 by root layout I mean what viewgroup type are you adding the textview too? Jul 15 04:00:41 no ia com.reality.retrorpg.tileView to be exact Jul 15 04:00:44 to a Jul 15 04:00:54 that's a viewgroup? Jul 15 04:01:01 no Jul 15 04:01:03 its a view Jul 15 04:01:31 Oh I don't think you can add a view to a view like that Jul 15 04:01:32 i can wrap it in a viewgroup Jul 15 04:01:39 all apps are kept inside a base frame layout Jul 15 04:01:42 yu cant. but heres the thing Jul 15 04:01:50 whose parent is tileView? Jul 15 04:02:03 i dont want [view1][view2] i need [[view1 and 2]] in the same physical space Jul 15 04:02:12 wait Jul 15 04:02:20 That's what a viewgroup does Jul 15 04:02:46 http://bpaste.net/show/35058/ Jul 15 04:02:50 thats my main.xml Jul 15 04:03:03 so a linear layout Jul 15 04:03:09 is your root view Jul 15 04:03:15 yes Jul 15 04:03:43 but the chat bubble has to overlay the tileview. it cant go anywhere near the table Jul 15 04:04:19 I440r: put the TileView and the TextView in a FrameLayout Jul 15 04:04:20 it has to be positioned within the bounds of the view space used by the tileview but heres the thing im worried about Jul 15 04:04:31 or just add it to the root framelayout Jul 15 04:04:47 createa a frame layout wrapping the tileview? Jul 15 04:05:01 You could do that as well Jul 15 04:05:08 if you do that you can add the textview speech bubble to the frame layout, and position as you need too Jul 15 04:05:22 that sounds perfect Jul 15 04:05:26 gimme a sec Jul 15 04:05:43 using the layoutparams as shown above, instanced as FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(wrap, wrap) Jul 15 04:05:52 to position it you modify params.x params.y Jul 15 04:06:18 pretty sure x and y don't exist for framelayout params Jul 15 04:06:23 have to us margins Jul 15 04:06:27 oh nevermind use margins Jul 15 04:06:29 or setX/Y on the view itself Jul 15 04:06:37 but that would require api11+ Jul 15 04:07:06 i have some issues with adding this framelayout... thers things ive specified in my tileView that i THINK i need to move into the framelayout Jul 15 04:07:15 like my weight="1" for example Jul 15 04:07:20 Avoid setX/Y if you can, relying on static pixel values will make you run into trouble once you're on a variety of devices Jul 15 04:07:27 I440r: yes Jul 15 04:07:29 it took me about a month to get that layout Jul 15 04:07:30 truth Jul 15 04:07:47 but if you're pulling the x/y value from where something else is already positioned Jul 15 04:07:53 it should be relatively safe Jul 15 04:08:08 something else already positioned by the framework* Jul 15 04:08:10 t0mless: only if you're laying it at those *same* x/y values, but even then you'd be better off using something like relative layout Jul 15 04:08:33 Yea Jul 15 04:08:55 but that would only work for him if he npc guys were accessable views Jul 15 04:09:01 not a hackjob of a single view Jul 15 04:09:09 heh Jul 15 04:09:30 i dont think i want to creat a separate view for every tile in the current view Jul 15 04:09:38 the number of tiles would change based on zoom level Jul 15 04:09:57 its simpler to just cookiecut each tile into a single view using source and destination rectangles Jul 15 04:10:13 how do you draw your npcs? Jul 15 04:10:59 I say because whatever method you are using to draw your npcs, you could draw your text above the npc Jul 15 04:11:14 i have 3 layers. the first two layers are defined in my map data. ground and object. i superimpose the object over the top of the ground on a tile by tile basis. i construct a 2 layered 1 tile wide/high bitmap Jul 15 04:11:34 i then cookiecut that entire tile into my tileView at a tilex/y offset within it Jul 15 04:11:46 the npc's are then drawn as a third layer over the top of that Jul 15 04:11:53 or to put it another way, think of the speech bubble as an npc, and just draw it above your npc Jul 15 04:12:26 yes except that limits it to 72 by 72 pixles for the entire text and it will be scaled to fit whatever display the view is drawn into Jul 15 04:12:50 i need to have the bubble drawn with minimal scaling or it will look fscked up Jul 15 04:12:54 you can just override the OnMeasure to take care of dimensions Jul 15 04:13:10 and set the background to be your 9 patch Jul 15 04:13:31 my 9 patch is of dynamic width and height. tiles are 72x72 Jul 15 04:13:51 if you are drawing it above the tiles, it can be whatever size? Jul 15 04:14:12 well yes it can be but it cant be treated as an npc because npc's are also tiles Jul 15 04:14:48 HOLY SHIT. XBMC has an official android release Jul 15 04:14:51 not a remote Jul 15 04:14:52 a "tile" tile as seen by the player has 3 layers. 2 layers are defined in the map data. the third is defined by what mobs exist and where they are located Jul 15 04:14:54 a player Jul 15 04:15:46 if i could take my textview and convert it to a bitmap i would have ZERO problem stuffing that into my existing view ANWYERE i want Jul 15 04:16:32 you can do that as a custom view Jul 15 04:16:39 TextView foo = new Textview(mContext); tv.setBackgroundResource(R.drawable.bubble); Jul 15 04:16:51 tv.setText("blah"); Jul 15 04:16:58 how do i convert that to a bitmap Jul 15 04:17:17 thers a 9 patch drawable resource too but ive no idea how to wrap that around some text Jul 15 04:17:21 extend textview and in the ondraw method Jul 15 04:17:31 i dont know how to do it exactly but i've seen it done Jul 15 04:17:34 in the ondraw method for what? Jul 15 04:17:36 you can make a bitmap from a canvas Jul 15 04:17:39 a custom textview Jul 15 04:18:03 ok... so i create a custom textview which is customized in what way Jul 15 04:18:04 ? Jul 15 04:18:27 a canvas is just an place to draw a bitmap Jul 15 04:18:32 it can just be a view, but you will have to draw the text, Jul 15 04:18:40 a google search for "android render view to bitmap" may turn up what you need Jul 15 04:18:43 yeah but you can use canvas.setBitmap(myBitmap), but not drawBitmap(). Jul 15 04:19:04 http://stackoverflow.com/questions/4013725/converting-a-canvas-into-bitmap-image-in-android Jul 15 04:20:15 Create a bitmap of the correct size using Bitmap.createBitmap() Jul 15 04:20:19 therein lies the rub Jul 15 04:20:28 the SIZE of the bitmap depends on the text Jul 15 04:20:34 and the font size Jul 15 04:20:37 on the ondraw method you can getdrawingrect Jul 15 04:20:42 to find the size Jul 15 04:21:09 nope. this is getting squirly again. Jul 15 04:21:52 i dont want to construct a bitmap of some convoluted dimensions calculation size Jul 15 04:22:20 i want to draw text into a textview that has a 9patch background and then draw THAT into a bitmap of exactly the right size. ie.e convert that into a bitmap Jul 15 04:22:28 would be nice if that could be done. problem over Jul 15 04:22:54 something my mind says should be 4 lines of code MAX will take an entire sourcefile to achieve Jul 15 04:23:36 http://stackoverflow.com/questions/2801116/converting-a-view-to-bitmap-without-displaying-it-in-android Jul 15 04:23:40 that might be the solution Jul 15 04:29:09 no i dont think i can make that work Jul 15 04:29:24 it wants a view. im trying to pass it a textview and its saying that it cannot be applied Jul 15 04:29:25 :/ Jul 15 04:29:40 and getLayoutParams on my textview does not exist Jul 15 04:29:47 $*^#)&&^$(! Jul 15 04:30:32 I440r: then you're not using a standard android textview. Jul 15 04:33:13 i am but the method wanted a view not a textview. i cahnged it to wanting a textview Jul 15 04:33:22 im just too frustrated over this to think is all Jul 15 04:33:29 i think this IS the solution Jul 15 04:37:21 does anyone know how to tell a WebView to either zoom in on the center of a page or center the view on the center of the page? Jul 15 04:37:58 no that code references Bitmape.createBitmap(int, int) which does not seem to exist Jul 15 04:38:45 why the fuck would two different posters post references to non existent constructors Jul 15 04:38:52 no it doesn't Jul 15 04:39:00 what code are you reading? Jul 15 04:39:26 no. my bad, its posted into a stupid horizontally scrolled window bullshit Jul 15 04:39:37 it does have a Bitmap.Config in there Jul 15 04:39:59 like i said, so freeking frustrated over this that my mind is totally blank and incapable of rational thought Jul 15 04:40:03 l44or since you are obviousily frutsrated, maybe take a walk and breather? Jul 15 04:40:06 http://stackoverflow.com/questions/2801116/converting-a-view-to-bitmap-without-displaying-it-in-android Jul 15 04:40:09 actually, the second one (centering the WebView on the page it's viewing) would be ideal Jul 15 04:40:31 please stop using an L in my nick lol Jul 15 04:40:50 oh i can't tell Jul 15 04:41:00 umm try casting the textview as a view? Jul 15 04:41:01 heh pick a better font :) Jul 15 04:41:03 its an I :) Jul 15 04:41:20 nah i modified the code to take a textview. this will work Jul 15 04:43:22 this reminds me of the parable about the novice monk who was assigned to sweep the rock / sand garden, but the monastary had many cats and after sweeping everytime the cats would leave their tracks after his meticilious sweeping, so the monk goes to the master and complains, and the master says, "all you can do is sweep it again" Jul 15 04:46:27 Just curious, would I be crazy _not_ to use eclipse for development? Jul 15 04:46:41 absolutely not Jul 15 04:47:00 kiren: It's possible, but you'll have a much better experience using Eclipse than not thanks to the official Android Development Tools Jul 15 04:47:20 It's possible to develop outside of Eclipse, that is. Jul 15 04:47:27 I'm just wondering how prevalent it actually is in the development community. Jul 15 04:47:46 ryanm: that's a false statement Jul 15 04:47:58 which one? Jul 15 04:48:02 personally i think anyone and everyone that uses eclipse is insane Jul 15 04:48:05 I suppose I should just get comfortable with eclipse at this point Jul 15 04:48:07 thats just me Jul 15 04:48:15 ryanm: "you'll have a much better experience using Eclipse" Jul 15 04:48:24 kiren i advocate Intelij Idea over eclipse Jul 15 04:48:33 you will not have to just get used to Idea Jul 15 04:48:35 i too advocate IntelliJ IDEA Jul 15 04:49:01 use eclipes, spend 99% of your time fighting and it Jul 15 04:49:04 I440r: haven't you just spent the last several hours ranting about how idea can't find your imports? Jul 15 04:49:12 use IJ and love it from the get go Jul 15 04:49:13 lol Jul 15 04:49:22 ryanm, thats ME not it Jul 15 04:49:40 I really didn't mean to spark an IDE holy war, I just really like my command line tools :P Jul 15 04:49:47 In any case, my personal recommendation would be to use eclipse, but you don't have to. Jul 15 04:50:12 I would recommend Eclipse only if you had a gun to your head and are forced to use it :) Jul 15 04:50:23 actually, I might let them just kill me Jul 15 04:50:33 I think I'll try it out since its got nice support until it (if it) gets in my way Jul 15 04:51:09 lol Jul 15 04:51:12 Never used IntelliJ, but Resharper is amazing. Jul 15 04:51:17 I never really had any problems with Eclipse in general. It's just an inferior product. Jul 15 04:51:25 fair enough Jul 15 04:51:38 its a horrendously badly designed and worsly implemented product Jul 15 04:51:57 it isnt designed Jul 15 04:52:15 its just eveyr fucking dumbass idea its developres can think of are mashed into it Jul 15 04:52:35 it makes the "a patchy" web server look like a masterpiece (and i mean from when it was just a series of patches) Jul 15 04:54:38 why can i not call getLayoutParams().width/height on my TextView ? Jul 15 04:54:57 it compiles fine. it craps out on the call to getLayoutParams() Jul 15 04:55:16 what's the error? Jul 15 04:55:35 where do i find that Jul 15 04:55:52 either logcat or the debugger Jul 15 04:56:19 yea logcat is just puking out gazillion lines of goop every second Jul 15 04:56:24 constantly Jul 15 04:56:59 but found it Jul 15 04:57:03 null ptr Jul 15 04:57:28 what's the exact line of code it's crashing on? Jul 15 04:58:16 int w = v.getLayoutParams().width; Jul 15 04:58:20 therefore v is null? Jul 15 04:58:22 wtf Jul 15 04:58:29 most likely Jul 15 04:59:09 ok how do i create a new textview. right now my code says TextView tv = new TextView(mContext); Jul 15 04:59:13 is that not the right way to do it? Jul 15 04:59:26 one is tv, the other is v Jul 15 04:59:36 a textview is a view Jul 15 04:59:50 i pass in tv and the method refers to it as v Jul 15 05:00:34 Bitmap b = loadBitmapFromView(tv); Jul 15 05:00:48 and the first line of that method is the one im crashing on Jul 15 05:01:07 public static Bitmap loadBitmapFromView(View v) Jul 15 05:01:09 { Jul 15 05:01:13 ... <-- crash here Jul 15 05:01:37 I'm not sure what the issue is, sorry. Jul 15 05:01:42 view v is not null in the calling method, is null in the called method? Jul 15 05:01:56 ill test that theory Jul 15 05:02:08 if it's definitely not null, check what getLayoutParams is returning Jul 15 05:02:11 tv is not null... Jul 15 05:02:25 its not returning anything. its null pointer extepting Jul 15 05:02:28 excepting Jul 15 05:03:38 Are you doing this before actually attaching it to a parent view? Jul 15 05:03:50 its not getting attached to any view Jul 15 05:04:00 then it won't have layoutparams Jul 15 05:04:13 until you give it some Jul 15 05:04:15 ok. how do i determin its width and height Jul 15 05:05:00 getMeasuredWidth/Height Jul 15 05:05:27 if it hasn't been attached to anything it surely hasn't been measured Jul 15 05:05:33 indeed Jul 15 05:05:50 then getWidth() ? Jul 15 05:06:01 it hasn't been measured so it will return 0? Jul 15 05:06:15 yes Jul 15 05:07:38 i44or, you can determine how big some text will be by using a Paint.measuretext Jul 15 05:08:00 v.getWidth()/height() work but... the subsequent Bitmap b = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); craps out too Jul 15 05:08:38 i 440 r --- single letter, number 440, single letter Jul 15 05:08:55 ahahah that's what you were saying before Jul 15 05:08:57 and that only tells me how big the text is. not how big the text AND 9 patch is Jul 15 05:09:03 yes lol Jul 15 05:09:26 its one of my guitars. an Ibanez 440 radius. thats the guitar that the JS series (Joe Satriani) are based off Jul 15 05:09:31 the JS series is a pile of trash Jul 15 05:09:36 right right totally missedit Jul 15 05:09:43 heh Jul 15 05:10:07 in over 10 years NOBODY has ever used this nick but me and almost nobody understands it :) Jul 15 05:12:46 yup. my view width and height are zero which is fucked up. ive drawn shit into the view.. it must have a width and height :/ Jul 15 05:13:26 the whole freeking point is that this textview gets converted to a bitmap WITHOUT being stuffed into my layout Jul 15 05:13:38 I440r you can call measure on the TextView, and pass in whatever MeasureSpec makes sense. After which, getMeasuredWidth() and getMeasuredHeight() should be set. Jul 15 05:14:09 nexsoftware, i dont want to tell IT how big it is, i want it to tell ME how big it is Jul 15 05:14:26 that's why you give it a MeasureSpec Jul 15 05:14:28 i dont fucking know . i dont wnat 238659265462 fucking gigs of code just to draw a simpe fucking bubble of text into my view Jul 15 05:14:34 so choose the measurespec that says unspecified Jul 15 05:14:43 sorry. Jul 15 05:14:48 splane that. Jul 15 05:14:57 can anyone help me solve this issue? http://paste.ubuntu.com/1092029/ Jul 15 05:15:30 to what exactly do i give a measurespec. my textview? Jul 15 05:16:59 The measure method on your textview takes two measurespecs, one for width and one for height. Jul 15 05:17:08 yes Jul 15 05:17:13 k Jul 15 05:17:41 so tv.measure(w,h) Jul 15 05:18:53 vwhere w and h are measurespecs of unspecified Jul 15 05:19:15 tv.measure(MeasureSpec.makeMeasureSpec(someWidth, MeasureSpec.UNSPECIFIED), MeasureSpec.makeMeasureSpec(someHeight, MeasureSpec.UNSPECIFIED)); Jul 15 05:19:55 ok i get all that except the someWidth/Height Jul 15 05:20:17 im specifying a width and height and calling them "unspecified" ? Jul 15 05:20:24 just pass 0 Jul 15 05:20:31 thats what i was asking :) Jul 15 05:20:37 give it some value - whatever you want. unspecificied means you don't care what they do with it. Jul 15 05:20:44 typing fail Jul 15 05:25:55 amfg Jul 15 05:26:37 question tho. when i do tv.setText("blah"); how do i define the font and text size? Jul 15 05:27:05 setTypeface Jul 15 05:27:07 setTextSize Jul 15 05:27:11 did you even look at the Javadoc? Jul 15 05:27:26 lol Jul 15 05:27:37 i have nfi where the javadoc is lol Jul 15 05:27:58 d.android.com Jul 15 05:28:02 we've linked to it about 50 times today Jul 15 05:28:12 oh Jul 15 05:28:22 im about 1/100000000000 of the way thru that TLDR page Jul 15 05:28:40 the one for view that is Jul 15 05:29:25 so been as i didnt set a font size or typeface there must be some default for each Jul 15 05:29:47 LfourfourOReo do you have intillsense? you can just browse methods from your objects... Jul 15 05:30:01 hi, I am working through the tutorial on the GOOG android developers site. I have followed the tutorial all the way through and now none of the View objects are showing. Jul 15 05:30:04 http://developer.android.com/training/basics/firstapp/starting-activity.html Jul 15 05:30:34 One thing I notice is that eclipse has created a RelativeLayout while the GOOG documentation is creating a LinearLayout Jul 15 05:31:25 wolgo can you post your activity in pastebin? Jul 15 05:31:38 My question: Is it possible for the layout to push View objects off the screen? Jul 15 05:31:41 lasserix: sure Jul 15 05:31:42 and the layout XML Jul 15 05:32:05 wolgo its possiblebut if none of yours are showing Jul 15 05:32:40 http://pastebin.com/itYqJMe8 Jul 15 05:33:03 lasserix: okay, thanks. I am just learning this so I do not know wtf I am doing heh. Jul 15 05:33:09 aside from the java code Jul 15 05:33:30 what should my AndroidManifest show? Jul 15 05:33:37 wolgo Jul 15 05:33:41 when you call SetContentView Jul 15 05:33:54 it replaces whatever contentview you had already Jul 15 05:34:01 in this case all your showing is the textview Jul 15 05:34:28 okay Jul 15 05:34:33 so the tutorial has a bug in it then Jul 15 05:34:44 let me remove that and test it Jul 15 05:36:11 can anyone help me solve this compilation issue? line 417 dalvik/vm/native/dalvik_system_Zygote.c:191:19: error: storage size of 'rlim' isn't known Jul 15 05:36:11 http://paste.ubuntu.com/1092683/ Jul 15 05:36:45 hmm Jul 15 05:36:58 I think that google should update the tutorial Jul 15 05:37:09 for now Jul 15 05:37:11 There are differences between how the files are created by eclipse Jul 15 05:37:15 go into your main.xml Jul 15 05:37:32 okay Jul 15 05:37:43 add the line " android:id="@+id/myRootLayout" " to the topmost linearlayout Jul 15 05:37:54 above android:layout_height or whatever Jul 15 05:37:57 It is not linearLayout Jul 15 05:38:02 oh what is it? Jul 15 05:38:06 Eclipse created a RelativeLayout Jul 15 05:38:08 when I created it Jul 15 05:38:14 that is another difference from the tutorial Jul 15 05:38:23 don't stress it it can be whatever you want Jul 15 05:38:27 anyways Jul 15 05:38:29 okay Jul 15 05:38:34 add the line "android=id Jul 15 05:38:45 This one-> "android:id="@+id/myRootLayout" Jul 15 05:39:10 make sure to include @+id/ the difference between that and and @id is that the + makes it so that it's added to the resource ids in your project Jul 15 05:39:11 yeah Jul 15 05:39:33 okay I added it Jul 15 05:39:38 now in your activity Jul 15 05:40:04 add RelativeLayout mRootLayout = (RelativeLayout) findViewById(R.id.myRootLayout) Jul 15 05:40:12 in oncreate Jul 15 05:40:20 how long does an android compile from source generally take (full-eng)? I am looking for a rough time. I am doing this on a dual core processor with 4GB RAM. Jul 15 05:40:36 this will make a reference for you to use in your code to the xml Jul 15 05:40:57 change setContentView(textview) to setContentView(R.layout.main) Jul 15 05:41:49 and now use the addView method of the relativelayout to add the textview, mRootLayout.addView(textview); Jul 15 05:43:33 thanks lasserix Jul 15 05:44:08 did it work? Jul 15 05:44:12 nah Jul 15 05:44:19 too much of a headache to deal with Jul 15 05:44:20 lol Jul 15 05:44:27 I hate bad docs Jul 15 05:44:32 Thanks for trying though. Jul 15 05:44:32 http://pastebin.com/XSUwjK9g Jul 15 05:45:01 the problem is sinceit's a relativelayout you have to position them, they won't place themselves as nicely as they will Jul 15 05:45:29 you can solve this by going into main xml and changing the relative to a linear and adding android:orientation="horizontal" Jul 15 05:46:48 thebitguru: on my MacPro 12-cores with 26 GB of RAM and compiling on an SSD with a dedicated hard drive for ccache, it takes me about ~35 minutes to do a build from scratch Jul 15 05:49:22 romainguy__: lol, nowhere close to that specs :) This thing's been going for hours :) I need to upgrade Jul 15 05:49:32 romainguy, that sounds as sexy as my rampage iv extreme Jul 15 05:49:36 tho i only have 16 gigs Jul 15 05:49:40 4.7Ghz oc tho Jul 15 05:50:02 romainguy, dont compile on an ssd. create a ramdrive and compile on that Jul 15 05:50:20 i can put 64 gigs in this puppy... soon as i win the lottery Jul 15 05:50:55 I440r: very cool :) Jul 15 05:52:09 I440r: a RAM drive wouldn't be big enough to hold everything I need to compile Jul 15 05:52:14 thanks lasserix for the assistance Jul 15 05:52:18 I don't compile for only one device Jul 15 05:52:24 I usually need to compile for 3 Jul 15 05:52:25 going to try some different documentation Jul 15 05:52:31 and usually in 2 branches Jul 15 05:53:09 romainguy, is that your ram cap on that box? would not 64 gigs of ram hold it? Jul 15 05:53:24 well i guess that leaves nothing for anything other than the ram drivelol Jul 15 05:53:31 yep :) Jul 15 05:53:43 including the compilation process itself Jul 15 05:54:10 anyway, it's fast enough Jul 15 05:55:23 soon as i get my freeking stupid 4g downloads to go faster than 3k per second i want to suck down an android repo and build it in under an hour }:) Jul 15 05:55:55 you want to contribute to AOSP? :) Jul 15 05:56:06 you trust me to do that? Jul 15 05:56:08 lol Jul 15 05:56:12 i would LOVE to contribute Jul 15 05:56:26 only... the only time my box would be on the net would be when im at it Jul 15 05:56:36 the only net i have here is wifi tether thru the android Jul 15 05:56:42 and thers an issue with the cell towers Jul 15 05:56:53 we can all upload at 2 megs a second. download is 30k a second Jul 15 05:57:12 if i had a permanant cable connection i would gladly give you a shell on this box Jul 15 05:58:14 looks to me like android does not honor the padding specified in a 9 patch properly Jul 15 05:58:43 time to go kill some alliance in wow Jul 15 06:00:13 it does though Jul 15 06:00:20 we use this feature extensively throughout the OS Jul 15 06:01:02 well it seems like its writing beyond the right edge of the area i specified Jul 15 06:01:17 i.e. the left padding is right. the right padding is too small Jul 15 06:01:26 the padding specifiers are fine that i can tell Jul 15 06:01:31 even made sure they were solid black Jul 15 06:04:28 yup, my patchis good, i just filled in all the areas and verified that they were all the right solid color... the textview im setting this patch as a background in has the text closer to the right edge of the patch than the left edge Jul 15 06:04:35 fix tomorrow. pvp time :) Jul 15 06:04:48 and if i get this box on a REAL interwebz u want that acct? Jul 15 06:06:27 quit Jul 15 06:06:31 lol, sorry Jul 15 06:07:00 Hi guys. Anyone can recommend a quick framework and language to program the backend of an app ? Jul 15 06:08:19 python/java + app engine Jul 15 06:08:35 python/java/scala/ruby/javascript + heroku Jul 15 06:09:28 I need something quick and easy to develop and less "industrial level". Jul 15 06:09:37 I like the Play Framework Jul 15 06:09:40 Problem with java is that it is less fast to develop with Jul 15 06:09:48 false Jul 15 06:10:02 theres always some servlet and other over head to deal with Jul 15 06:10:07 false Jul 15 06:10:11 :/ Jul 15 06:10:50 for example in simple things like json_encode in php Jul 15 06:11:10 I440r: make sure your 9patch is in the right density directory Jul 15 06:11:26 both GSON and Jackson do the very same thing Jul 15 06:11:30 JakeWharton: Play is pretty awesome Jul 15 06:11:31 yea i was starting to think that was the issue, right now its just in drawable :) Jul 15 06:11:41 there you go Jul 15 06:12:09 the clue was that for certain font sizes i was getting different results Jul 15 06:13:18 I managed to introduce Play at my last job. I'm trying to get this project off the ground at work that uses it too. Jul 15 06:14:47 I donno, like everything in java, it seems, massive. Jul 15 06:15:53 well if you're going to bring your preconceived notions to the party then go for a hipster framework like Rails where everything is "fresh", "dynamic", and "lightweight" Jul 15 06:17:30 JakeWharton: aren't you supposed to use node.js and NoSQL these days? Jul 15 06:18:46 I do love me some node.js for really small things. Not sure I'd want to write a large application on it though. Jul 15 06:19:55 And I really love graph databases and document databases. I don't wave the NoSQL flag but I quietly support it wherever I can. Jul 15 06:21:18 I'm dying to work with Neo4J on something real. I think the app I'm pushing at work will be Neo4J + Play Jul 15 06:24:22 romainguy__: do your pictures on 500px have license info attached to them? Jul 15 06:27:48 romainguy_: I converted the 20 textviews that are updated every 30ms or so to custom views, and draw their updated values via canvas.drawText but it still creates garbage since the drawtext uses abstract string builder, is there any way around this? Jul 15 06:28:16 the reason I say is because I'm animating something at the same time--it's mostly fluid now, but still hiccups every so often Jul 15 06:30:13 JakeWharton: CreativeCommons, free for non commercial use Jul 15 06:30:35 lasserix: drawText() doesn't use or shouldn't use string builder Jul 15 06:30:48 are you concatenating strings using the + operator? Jul 15 06:31:12 yeah Jul 15 06:31:19 since the values im updating are floats, Jul 15 06:31:39 there's your problem Jul 15 06:31:50 its either string.valueof or "" + value, is there no way to resolve this? Jul 15 06:31:54 you can create a stringbuilder as a field Jul 15 06:32:01 and use the append()/clear() methods to reuse it Jul 15 06:32:06 romainguy_: i really liked your picture of the dock with the stars in the background. do any of your pictures have the settings with which they were shot? Jul 15 06:32:10 ahh thanks! Jul 15 06:32:20 f2prateek: they all do (geotag + full exif data) Jul 15 06:32:58 f2prateek: that one in particular was shot with a Canon 5D Mk III, a Zeiss 21mm ƒ/2.8 lens at ƒ/3.2 for 15 seconds, with ISO set to 1600 Jul 15 06:34:41 f2prateek: that's my phone background now Jul 15 06:34:42 l Jul 15 06:34:44 cool, i just downlaoded it and looked it up on my desktop, any way to do it directly within google plus? Jul 15 06:34:45 looks awesome Jul 15 06:35:01 f2prateek: yes, G+ has a link somewhere to show the details Jul 15 06:35:20 f2prateek: note that my photos on G+ are limited to 2048px wide Jul 15 06:35:32 if you go to my Flickr page instead you can download them in full res (up to 22 Mpix) Jul 15 06:35:51 oh excellent, thanks for the tip Jul 15 06:35:51 (and I really need to find a way to monetize my photos and pay for all that gear :) Jul 15 06:36:36 haha, i bet Jul 15 07:13:38 hey romainguy, how do I convert the StringBuilder into something drawText can use ? or did you mean StringBuffer? Also either doesn't have a clear method. Jul 15 07:13:57 yeah sorry there's no clear Jul 15 07:14:01 but there's a method that does the same Jul 15 07:14:03 one sec Jul 15 07:14:28 delete() Jul 15 07:14:50 I still have lots of garbage between toString / and this delete method? Jul 15 07:15:12 you can also use setLength(0) Jul 15 07:15:52 also, there's a variant of drawText() that takes a CharSequence Jul 15 07:15:57 and StringBuilder *is* a CharSequence Jul 15 07:16:05 Ahh, that should help. Thanks Jul 15 07:16:35 Man I been doing so much clean up in the code the other night I had a dream my subconscious was being GC'd and I had to optomize my day's perceptions Jul 15 07:16:39 :p Jul 15 07:21:25 Alright, thanks, animation is fluid and no gc hiccups! Jul 15 07:21:34 \o/ Jul 15 07:22:01 stupid GC Jul 15 07:22:06 I want a generational GC Jul 15 07:23:51 Well I had some exp with c/c++ but having to learn the ins and outs because of things like GC is helping me a lot understand the power of c/c++ over a language like java, plus the practical side of computer theory is really cool Jul 15 07:24:06 and the other way around too Jul 15 07:24:30 having a GC is tremendously useful Jul 15 07:25:54 For your petapixel photographs you're using a gigapan actuator? Jul 15 07:26:10 which one? Jul 15 07:26:14 I mean what picture? Jul 15 07:26:21 any of those >10mb Jul 15 07:27:05 I pretty much never shoot panorama pictures Jul 15 07:27:25 oh the camera itself is just taking the photograph at that resolution? Jul 15 07:27:38 yes Jul 15 07:27:46 my camera has a 22 Mpixels sensor Jul 15 07:28:19 which reminds me when is Google going to do Google Nature where you do street view but for famous national parks? Jul 15 07:28:29 lasserix: done Jul 15 07:28:34 really? Jul 15 07:28:44 lasserix: http://www.engadget.com/2012/07/14/google-street-view-california-national-parks-live/ Jul 15 07:29:04 Ohh I mean, actually building a backpack camera that hikers can use Jul 15 07:29:32 ahaha i see Jul 15 07:29:40 yeah they have that too: http://www.wired.com/gadgetlab/2012/06/google-reveals-an-image-capturing-backpack-and-new-3d-maps/ Jul 15 07:30:45 Ahh wow this is really awesome Jul 15 07:31:14 and they used it for the national parks: http://www.engadget.com/2012/03/08/national-parks-street-view-style-trails-goes-live-avoids-the-go/ Jul 15 07:31:21 These can be accessed off of googlemaps? Jul 15 07:31:32 I believe so Jul 15 07:32:26 Now we just need a time machine, big enough for a camera posted to John Muir's address Jul 15 07:32:42 hey guys! is it possible to have different settigns turned on for different API version in the manifest? I want to have hardwareAccelerated="true" for API >= 16 and "false' for the rest Jul 15 07:32:46 is that possible somehow? Jul 15 07:33:06 p3sho: what do you want to turn off? Jul 15 07:33:30 romainguy__, hardware acceleration Jul 15 07:33:55 ah you mean you want hardware acceleration off on API level < 16? Jul 15 07:34:04 right Jul 15 07:34:10 why? :) Jul 15 07:34:35 it seems to make the performance of a game running in a webview quite sluggish Jul 15 07:34:54 all until I was upgraded to jelly bean Jul 15 07:34:57 when it became the other way around Jul 15 07:35:08 you ship your game as a webview? :( Jul 15 07:35:15 anyway, yes you can Jul 15 07:35:17 yeah :( Jul 15 07:35:28 it's a prototype we're trying out Jul 15 07:35:29 either from onCreate() Jul 15 07:35:40 or in XML instead of setting the value to true or false Jul 15 07:35:46 just use @bool/hardwareAcceleration Jul 15 07:35:50 if it turns out to be successful, all is going to be rewritten in native Jul 15 07:36:04 and in res/values/ create a settings.xml Jul 15 07:36:09 that defines the boolean to false Jul 15 07:36:20 and in res/values-v16/, define a boolean set to true Jul 15 07:36:59 thanks a bunch! Jul 15 07:37:14 you're welcome Jul 15 07:54:39 if a SurfaceView's canvas is locked, can the view's visibility be changed? Jul 15 07:55:06 I believe so Jul 15 07:58:44 romainguy: thanks, just wanted to confirm that's where i finally suspect the issue to be night ttyl Jul 15 08:01:56 Is there a way to get when an acitivity's content view is finished loading without writing a custom class for the root viewgroup of that content view? Jul 15 08:02:15 after setContentView() returns Jul 15 08:06:54 Ahh if only it were that simple Jul 15 08:11:25 Ahh but it gave me an idea, thanks Jul 15 09:04:24 can you specify locale when creating an AVD via the CLI? Jul 15 09:04:45 no clue Jul 15 09:05:15 can you switch it via am somehow? Jul 15 09:05:36 JakeWharton: for some reason I think i remember coming across this before, and the answer is yes. Jul 15 09:06:00 I'm trying to remember where I read on this Jul 15 09:06:33 looks like it may be able to be set on startup? http://stackoverflow.com/a/2418724/132047 Jul 15 09:06:59 http://stackoverflow.com/questions/2417427/changing-the-android-emulator-locale-automatically Jul 15 09:07:05 not am, but setprop probably Jul 15 09:08:59 interesting. it would be cool to be able to change on-the-fly rather than having to resart Jul 15 09:09:11 go to settings? Jul 15 09:09:48 this is for automation :) Jul 15 09:10:04 two solutions Jul 15 09:10:18 1. setprop + a way to send a config change to all the processes (maybe am?) Jul 15 09:10:21 2. use a monkey script Jul 15 09:11:44 ~ https://play.google.com/store/apps/details?id=engrave.shake_o_meter :P Jul 15 09:12:33 harsh reviews Jul 15 09:21:04 JakeWharton: only 4 reviews Jul 15 09:21:07 that aint bad Jul 15 09:21:19 two 5's and two 1's Jul 15 09:21:26 that's unfortunate Jul 15 09:21:55 looks to be a cool game Jul 15 09:22:01 JakeWharton argh, I know, the 2 1-stars come from an old app :S Jul 15 09:22:09 I just replaced the old :o Jul 15 09:22:14 (because its a beta version) Jul 15 09:36:29 GSON and Jackson spoil me Jul 15 09:36:44 the parsers for other formats are so archaic and unintelligent Jul 15 09:38:36 JakeWharton: what's the difference between the two libraries? Jul 15 09:39:42 Jackson goes for speed whereas GSON is designed to be more secure and flexible Jul 15 09:40:12 I like speed Jul 15 09:40:48 Speed at the cost of security isn't always the best bet. GSON is still very fast. Jul 15 09:41:38 how exactly do they trade security for speed? Jul 15 09:43:10 You can DOS a server running Jackson with a relatively small JSON document since it uses a HashMap in the implementation. The hashCode() algorithm of String is a well known algorithm. You can engineer all the JSON's keys to have the same hash code which degrades the HashMap into having only a few keys that are really long ArrayLists. Jul 15 09:43:34 Jackson also interns every String it sees apparently Jul 15 09:43:40 Ah, I was thinking of the client side Jul 15 09:45:43 yeah I got a nice education on the internals of both a week or two ago from Jesse Wilson when he found out I was using Jackson in one of our internal apps Jul 15 09:48:16 maybe one day I'll write an app that needs JSON :) Jul 15 09:48:53 hi Jul 15 09:49:10 should my app not be visible after ~20hours after publishing? Jul 15 09:49:12 I can not find it Jul 15 09:50:18 I'm dealing with YAML now and it's horrid Jul 15 09:51:41 never used YAML either but I never liked it on paper Jul 15 09:51:51 JSON on the other hand looks very nice Jul 15 09:52:51 I'm trying to have a human-readable configuration file that's easily modifiable but the fact that I cannot do List l = yaml.load(stream); is bothering me. Jul 15 09:55:06 Oh, someone wrote a YAML module for Jackson. Boom. Jul 15 09:55:54 Anyone use the stand-up desk stations? Jul 15 09:56:05 I do every day for about 4 hours Jul 15 09:56:16 I split between sitting and standing Jul 15 09:56:57 I always use the built in JsonReader / JSONObject / etc...should I look into one of those? Jul 15 09:56:58 makes a difference? Jul 15 09:57:29 codebutler: GSON and Jackson map JSON to concrete objects rather than JSONObject which acts as a Map Jul 15 09:58:51 codebutler: basically it masks the fact that you're even using JSON. All your code ever sees is real objects that you can interact with. Jul 15 09:59:15 lasserix: I'm not sure if it makes a real difference but it makes me feel like less of a lazy slob for sitting 8-10 hours a day Jul 15 09:59:17 Ah. I kind of like having a map-like interface since I'm used to ruby, etc... I'd rather JSONObject actually implement Map though... Jul 15 09:59:59 hmm, I just tend to slouch a little as a habit from younger years, was thinking of setting up a stand-up desk to do some coding every so often Jul 15 10:00:23 you'd rather have a map? you enjoy doing casting and validation yourself everywhere? Jul 15 10:01:29 Well with JSONObject there's no casting. I'd have to create a _lot_ of objects if I were to go that route. Jul 15 10:02:18 (The serialization route). Jul 15 10:02:26 JakeWharton> really half a day standing... isn't that tiring ? You'd think it'd save your back though Jul 15 10:02:42 it was bad the first week, now it's no problem Jul 15 10:02:47 I need to get a standing desk Jul 15 10:02:49 I could imagine not being able to stand half a day in the same spot... walking for half a day sure, but standing Jul 15 10:03:01 definitely going to check this out Jul 15 10:03:19 make sure you have decent shoes and potentially cushioning inserts Jul 15 10:03:42 I know people who buy floor mats etc Jul 15 10:03:49 what I'm concerned about more is how to get it done technically, heh. Is it a desk that can go really high, or do you have two different desks ? Jul 15 10:03:51 I've even seen a standing desk connected to a walking trendmill Jul 15 10:04:04 codebutler: standing desks at google come with special floor mats Jul 15 10:04:12 lasserix: we have that on campus Jul 15 10:04:20 romainguy__: neat Jul 15 10:04:36 Chainfire: I've seen both at the office; the fancy model has a switch to change between the low and high positions Jul 15 10:04:46 and then you can hook up the treadmills to generate electricity ;p Jul 15 10:06:16 Chainfire: we have a few standing desks around the office. I just grab my laptop and go find an open one. Jul 15 10:06:33 lucky the man who can work on a laptop Jul 15 10:06:37 ah right Jul 15 10:06:42 I have 3x 24" Jul 15 10:06:50 and a desktop ;) Jul 15 10:07:13 haha Jul 15 10:07:17 I don't need the screen estate Jul 15 10:07:20 I need the computing power :) Jul 15 10:07:22 romainguy__: the team just got a bunch of MacPros. I opted out hoping I could leverage the fact that I passed to get a new retina Macbook Pro Jul 15 10:07:29 no such luck (yet) Jul 15 10:07:47 meh Jul 15 10:07:47 I found when I added extra moniters my productivity would go down because of too much multitasking Jul 15 10:07:55 I do need the screen estate. I have noticed that with two screens, I really am about 1.7x as efficient as with a single screen Jul 15 10:08:11 the third screen isn't really effective though Jul 15 10:08:18 My only computer is an 11" Air...value the portability over pixels Jul 15 10:08:23 I have a 30" + a 24" Jul 15 10:08:37 codebutler: it's the computer I use the most when not at my desk :) Jul 15 10:08:45 and I would love to work only on this little guy Jul 15 10:08:49 but compiling Android... Jul 15 10:08:52 I do absolutely need a separate keyboard though, so "just" laptop work is out of the question, and once you have a separate keyboard, you need a separate monitor too because of the increased distance of the screen to your eyes Jul 15 10:09:09 at least for my 13" laptop that is true ;) Jul 15 10:09:41 compile it remote :) Jul 15 10:09:52 romainguy__: yeah... not quite enough juice for that. Good enough for writing apps though! Jul 15 10:09:59 codebutler: definitely Jul 15 10:10:10 maybe it's time you came over into the app world, romainguy__ :) Jul 15 10:10:31 but who would make Android ? :) Jul 15 10:10:48 JakeWharton: I used to write Launcher ;-) Jul 15 10:14:32 @romainguy, have you tried the android hud glasses? Jul 15 10:14:37 Ah so its not just me who finds laptop keyboards awkward? Jul 15 10:14:51 its not just that they're awkward Jul 15 10:14:52 lasserix: I have Jul 15 10:14:58 well Jul 15 10:15:01 if you're talking about Glass Jul 15 10:15:02 working on a laptop keyboard for two months gave me RSI Jul 15 10:15:03 I can type rapid on a normal keyboard, then I absolutely fail on my laptop. I'm not sure why. Jul 15 10:15:07 which is just that, Glass Jul 15 10:15:11 working on a natural keyboard has fixed it Jul 15 10:15:23 I don't type on anything but a natural these days ... Jul 15 10:15:23 can you see yourself using it / it being something "reasonable" to wear? Jul 15 10:15:23 What is RSI exactly? Just paid. In your muscles? Jul 15 10:15:37 lasserix: sorry, can't talk about it Jul 15 10:15:41 AKK9: I'm opposite, I can type rapidly on a laptop but not on a normal kbd.. :P Jul 15 10:15:42 figures :p Jul 15 10:15:49 AKK9> repetitive strain injury Jul 15 10:16:04 i just have some app ideas i've wanted to develop for HUDs style devices for a long, long time now. Jul 15 10:16:12 muscle pain often related to things like mousing and typing Jul 15 10:17:34 Heh, its strange. I spent a year living away with just a laptop. Used it everyday, the. I got home and used a PC for the first time in over a year and I could still type much faster. Jul 15 10:17:44 well yeah Jul 15 10:17:50 bigger keyboard == better positioned fingers Jul 15 10:18:18 and if you go so far as using a natural, you will automatically learn to type even faster, unless you were already a perfect 10-finger typist Jul 15 10:18:23 we just need tesla's "death ray" so EVERY thing can go wireless Jul 15 10:19:50 hey all, i kind of soft bricked my sensation 4g, i was wondering if any of you can lend a helping hand Jul 15 10:20:06 ZCX381: #android-root Jul 15 10:20:26 thanks Jul 15 10:20:40 hey all, just wanted to see if someone could help me build jelly bean for the sprint galaxy nexus Jul 15 10:21:52 @ romainguy__ its probably your day off, but I just discovered that rending Bitmap.Config.RGB_565 bitmaps that have a width that isn't a multiple of four, can cause the image to be rendered skewed (like the stride is off by two pixels) - this is new in Jelly Bean Jul 15 10:22:30 in software or hardware? Jul 15 10:22:41 How good is Google Translate for internationalizing different string resources? Jul 15 10:22:49 awful Jul 15 10:22:52 don't do it :D Jul 15 10:22:55 the activity has hardwareAccelerated="true", if that is what you mean ? Jul 15 10:23:12 Mavrik: any suggestions on obtaining the strings to use then? Jul 15 10:23:27 honestly? someone who speaks the language and is willing to help Jul 15 10:23:37 dlaroche: Take a look at Oracle development tools and see what good automated translation will get you Jul 15 10:23:40 "engrish"-type translations just look aweful Jul 15 10:23:44 dlaroche: ... horrible Jul 15 10:23:53 Chainfire: it seems specific to your app, we have a bunch of 565 bitmaps that don't suffer from this issue Jul 15 10:23:54 engrish is better than the common output Jul 15 10:23:56 and make your app look very unprofessional Jul 15 10:23:59 Chainfire: anyway, please file a bug at b.android.com Jul 15 10:24:27 @ romainguy__ will do ... oddly it doesn't happen every render ... sometimes it happens, sometimes it doesn't. I'll try isolating the case. Jul 15 10:24:49 only thing I know is that if I force the width to be a multiple of four, it stops happening :) Jul 15 10:25:00 might be specific to one bitmap Jul 15 10:25:08 or maybe a GL driver bug Jul 15 10:25:12 on what device do you see this issue? Jul 15 10:25:17 Nexus 7 Jul 15 10:25:21 have also seen it on Galaxy Nexus Jul 15 10:25:29 both on JB Jul 15 10:25:44 then please file a bug with an apk I can run to repro the issue Jul 15 10:28:23 hello, Jul 15 10:28:34 anyone is able to use ADT with eclipse juno? Jul 15 10:28:54 nuba: I am not sure it's ready for Juno yet Jul 15 10:29:50 romainguy__, i already installed it, but there isn't any options related to android found anywhere. Jul 15 10:30:17 i started a SO thread here, even though there isn't any answer yet. http://stackoverflow.com/questions/11491027/no-android-project-option-on-eclipse-juno Jul 15 10:30:25 anyone had the same problem? Jul 15 10:31:35 ADT 20 works for me, it's not officialy supported though Jul 15 10:31:39 nope, I had other issues with ADT Jul 15 10:31:51 alot of plugins are broken, I suggest you rollback to previous version of eclipse Jul 15 10:31:56 (can't generate projects, add fragments etc.) Jul 15 10:31:58 nubits: I heard others having problem. You could install the Indigo Java EE version from http://www.eclipse.org/downloads/packages/release/indigo/sr2 Jul 15 10:35:24 luyang, well, i guess i'll try that for now, thanks, Jul 15 10:35:36 you're welcome! Jul 15 10:38:24 Is it normal that on JB, StrictMode.setThreadPolicy() is not honoured and StrictMode is enabled no matter what? Or is that the case only in the emulator and the JB developer preview ? Jul 15 10:40:59 Does calling onDraw in a view cause its parent's to relayout? Jul 15 10:45:49 The reason I ask is because I'm iterating parameterizations (in effect, animating the curve) of a polar curve rendered to an opengl surface view, and have a handler that updates the values of parameters in a custom view (showing the equation). This changes every 15 - 30 ms, and when I have the custom view invisible the opengl runs dramatically smoother, than when it is visible. There's no Jul 15 10:45:49 gc occuring, the only difference is that invalidate is being called. Jul 15 10:47:04 the system calls onDraw for you Jul 15 10:48:03 ? Jul 15 10:49:55 Is it a good idea to put MediaPlayer inside of it's own thread or can it be ran on the UI thread? Jul 15 10:50:58 dlaroche, seperate UI thread from rendering ofc Jul 15 10:51:56 that holds true for whatever framework you happen to program in the future Jul 15 10:52:07 thanks Jul 15 11:03:18 Quick UI question Jul 15 11:03:36 I have a ViewPager, and inside it I have a ListView with some custom controls on each item Jul 15 11:04:06 it seems that scrolling the ViewPager is really choppy, so I'm wondering how the view pager handles invalidation of child elements Jul 15 11:04:39 (since my view takes a while to draw each time) Jul 15 11:05:53 dlaroche: as far as I know, MediaPlayer does its own threading. Jul 15 11:07:33 I thought it was non-blocking also unlike AudioTrack. However, it won't hurt to put it in it's own thread will it? Jul 15 11:08:10 It will make things complicated because the callbacks require UI access, I believe. Jul 15 11:08:19 i see Jul 15 11:08:21 ok Jul 15 11:11:56 ViewPager is just a ViewGroup that keeps track of scroll offset Jul 15 11:12:25 it's essentially no different than putting your ListView in a FrameLayout Jul 15 11:12:49 there's also a development setting that will flash the screen on invalidate so you can see what parts of your application are being redrawn Jul 15 11:17:22 hi Jul 15 11:17:34 hi Jul 15 11:29:28 Why can't you use vector graphics as resources, and then let the system scale them for different screens? Doesn't AndEngine have a feature like this?? Jul 15 11:39:24 because: http://www.pushing-pixels.org/2011/11/04/about-those-vector-icons.html Jul 15 11:43:12 CAN SOMEONE in the know confirm that on final JB shipping on Nexus 7, StrictMode.setThreadPolicy() is effective ? Jul 15 11:43:35 unlike in the emulator and the JB developer preview Jul 15 11:50:11 I keep getting the following error: "The method sin(double) is undefined for the type Sphere" Jul 15 11:50:14 On this line: Jul 15 11:50:25 VERTEX[n].X = R * sin((a) / 180 * PI) * sin((b) / 180 * PI) - H; Jul 15 11:50:58 I tried importing java.lang.Math and java.math.* and android.util.FloatMath... none of it worked. Jul 15 11:51:12 what about Math.sin Jul 15 11:51:18 "Sphere" is my class. Jul 15 11:59:24 that seems to have fixed it. thanks. Jul 15 12:06:58 hi Jul 15 12:08:53 JakeWharton: nice read. Thanks for the info. That sheds some light on the subject. Jul 15 12:10:06 what sheds some light on which subject? Jul 15 12:10:09 hi JakeWharton Jul 15 12:10:22 yeah hey Jul 15 12:10:26 going to bed as it's 5am Jul 15 12:10:35 California? Jul 15 12:10:39 indeed Jul 15 12:10:55 okay Jul 15 12:10:57 sleep well Jul 15 12:11:02 sleep well Jul 15 12:32:57 curious that FindBugs is buggy Jul 15 12:33:56 have found multiple suggstions of fields not being used (which are used on the subsequent line), and a switch statement which included a default case that FindBugs didnt recognise as being there Jul 15 12:55:10 hi Jul 15 12:55:44 i bought galaxy tab 2 samsung ,does they offer google developer account with it ($25) Jul 15 13:00:49 wp-developer: there's no real connection between having a device and having a developer account - many people have one without the other :) Jul 15 13:01:05 if you want to publish on the play store, just sign up and pay the $25 Jul 15 13:02:46 is there a chart which contains information about common aspect ratios of android devices? Jul 15 13:02:59 wp-developer: did you see what I wrote? Jul 15 13:03:13 like xx% have 0.6 or something Jul 15 13:11:29 I need the opportunity for my users to select certain dates for a 'payday calculation program'; every other Friday to be exact. Jul 15 13:12:03 DatePicker doesn't seem to work for my options, and building CalendarView doesn't seem to work either as it's API 11 or greater. Jul 15 13:12:50 I've though about hardcoding values somehow, but don't like this option if I can avoid it. Jul 15 13:13:07 Can you guys give some other options on how I can go about picking dates as such? Jul 15 13:20:02 hi, I need to map some resource ids (strings) to some other resources ids (sound files) Jul 15 13:20:16 what is the best way to do this? Jul 15 13:20:33 the only thing that I would prefer is if I could declare the mapping in one go, i.e. Jul 15 13:20:48 map = {string1:sound1, string2:sound2} Jul 15 13:20:49 etc. Jul 15 13:20:50 String path = R.raw.soundFile Jul 15 13:21:49 dlaroche, i'm sorry I don't think that would do what I wantr Jul 15 13:21:51 *want Jul 15 13:21:57 essentially I am making a soundboard Jul 15 13:22:10 and want to iterate through my mapping, to create a button for each sound Jul 15 13:22:30 the string would be the text in the button, and the sound, the sound which is played when the button is clicked Jul 15 13:22:40 a WeakHashMap maybe? Jul 15 13:22:57 any argument against a simple map? Jul 15 13:23:14 Note that the iteration order for HashMap is non-deterministic. If you want deterministic iteration, use LinkedHashMap. Jul 15 13:23:36 EPG, maraz, I am quite new to java and android so I don't know if I can declare either of those like I want Jul 15 13:23:40 map = {string1:sound1, string2:sound2} Jul 15 13:23:44 is that possible? Jul 15 13:24:23 Eclipse says I should use SparseIntArray but again I don't know if I can declare that as I wish ^ Jul 15 13:24:26 could you do the mapping in xml? Jul 15 13:24:28 https://developer.android.com/reference/java/util/Map.html Jul 15 13:24:42 LinkedHashMap is an implementation of Map that guarantees iteration order. Jul 15 13:24:46 maraz, I guess but I wouldn't know how to retrive it :) Jul 15 13:25:06 you can define arrays using xml Jul 15 13:25:57 aren't the resources sorted alphabeticaly? Jul 15 13:28:15 how to I call predefined android functions from c++? (requestWindowFeature to be specific, I want to hide the title bar) Jul 15 13:31:55 Waynes: are are you developing in c++ Jul 15 13:32:00 ^how Jul 15 13:32:59 dlaroche: http://developer.android.com/tools/sdk/ndk/index.html Jul 15 13:34:10 Waynes: from my understanding of the NDK you have to use a callback function to notify your Java code to use that function. Jul 15 13:34:29 dlaroche: I don't have java code Jul 15 13:34:36 poor guy Jul 15 13:35:50 Waynes: i'm confused then. The NDK should only be used to execute c++ for CPU intensive task Jul 15 13:36:01 How can I associate a set of integars with a set of a set of floats? Jul 15 13:36:36 a set of *sets of floats Jul 15 13:36:52 hi all! i'm new to android development and dont know the inner workings very well, but i have been wondering if it is possible to connect to ddms inside the phone, i mean without the usb and a pc? is it somehow restricted that only connections trough usb are accepted? Jul 15 13:37:14 dlaroche: it's possible to write the whole code in c++, but it seems like some things are easier from the java side :/ Jul 15 13:37:40 is there a GNU GCC app for android? Jul 15 13:37:43 aikakana: what do you think you're going to do with ddms onboard? Jul 15 13:37:46 Waynes: yeah I think you are going about things the wrong way Jul 15 13:37:51 leeds, screen caps Jul 15 13:37:53 written_tabletpc: look up the ndk Jul 15 13:38:24 leeds, more specifically, screenshots without requiring root Jul 15 13:38:34 aikakana: no can do Jul 15 13:38:40 i could not find almost any info about this in the web Jul 15 13:38:59 leeds: do you know how it is done to restrict connections to ddms onboard? Jul 15 13:39:28 maraz, how could I do the mapping in XML ? Jul 15 13:40:13 leeds: does the system somehow know the connection comes from usb rather than onboard? Jul 15 13:40:19 Leeds: ok. and the ndk also has gnu make and other build tools? Jul 15 13:40:32 hello, how do I show a PNG image saved as a sqlite3 blob in a listview? Jul 15 13:40:33 yes, by the fact that it comes over USB... sense is not being made here Jul 15 13:40:38 written_tabletpc: yes... look it up Jul 15 13:40:45 using a cursoradapter Jul 15 13:40:56 Leeds: thanks Jul 15 13:41:46 leeds: sorry for being insensible ;) so there is a way to see from which interface the connection cones right? Jul 15 13:41:59 *comes Jul 15 13:42:18 sheepz: http://stackoverflow.com/a/3697104/1425076 Jul 15 13:42:30 aikakana: when someone comes into your house, can you tell if they're coming in through the door, or through the bathroom sink? Jul 15 13:43:13 leeds: well.. maybe Jul 15 13:43:25 aikakana: you're weird Jul 15 13:43:56 if they are wet then they came in from the sink...lmao Jul 15 13:44:37 leeds: i have olny used accept to accept from any interface, didn't even come to my mind actually you could restrict it, but now it seems obvious Jul 15 13:45:35 not letting wet people to my house anymore Jul 15 13:45:38 dlaroche: thanks, I will try it out Jul 15 13:47:43 aikakana by your answer to leeds question i get the feeling you've ready way too much h. murakami Jul 15 13:48:02 eclipse does not detect my phone (android 4.0) what to do Jul 15 13:48:36 lasserix: what? :D Jul 15 13:48:43 wp-developer: is usb debugging turned on? Jul 15 13:49:01 wp-developer: phone in debug mode? what say 'adb devices'? u installed usb drivers? Jul 15 13:49:31 Leeds: i installed eclips + sdsk + ndk Jul 15 13:49:45 how to trun on debug mode on phone Jul 15 13:49:54 Leeds: where should i look next? Jul 15 13:50:00 wp-developer: google it Jul 15 13:50:02 there's a japenese novelist by the last name of murakami whose internationally known and writes something bordering on magical realism, as in he'd probably write a short story about how someone coming through the bathroom sink is not too much different than coming in through the door ;p Jul 15 13:50:03 https://developer.android.com/tools/device.html Jul 15 13:50:19 lasserix: hehe Jul 15 13:50:22 wp-developer: read the fucking manual Jul 15 13:51:52 Leeds: i already created a working helloworld app for android. Jul 15 13:52:10 written_tabletpc: congratulations! Jul 15 13:52:39 Leeds: what i`m looking for is to do a native build of openwrt on android Jul 15 13:53:26 openwrt is a 'linux distribution' like android Jul 15 13:53:27 just one step away from helloworld Jul 15 13:53:28 ah, that's just a short hop from hello world Jul 15 13:53:33 Leeds: so i need android packages for gcc, make, flex, bison, subversion, perl and so on Jul 15 13:53:52 oh u wanna compile openwrt on android? :o Jul 15 13:54:04 ixc: yes Jul 15 13:54:35 one question, why? Jul 15 13:55:23 ixc: because i don`t like to install a full blown linux on my android device for this. android is linux Jul 15 13:55:47 ah, sense is no longer being made here either Jul 15 13:55:51 strange evening Jul 15 13:56:18 Leeds: where did all these 'gurus' come from?? 8) Jul 15 13:56:24 so its root + port ur development tools if its not ported yet Jul 15 14:00:24 okay, I've got to ask... Jul 15 14:00:49 written_tabletpc: what the hell use do you think openwrt is going to be on an android device? Jul 15 14:00:57 lol Jul 15 14:01:13 let him waste his own time there Leeds Jul 15 14:01:54 i think he dont want run on android, just build it Jul 15 14:02:20 i would also like to waste some time here with some insensibilities, is it possible to mimic a usb device onboard, so to connecto to usb from which to connect to ddms? ;) Jul 15 14:02:22 either way. I see no point in it. Jul 15 14:02:41 he is bored, and wanna spend lot of time Jul 15 14:03:30 aikakana: go try it and find out Jul 15 14:04:01 and waste my own time, bummer Jul 15 14:04:07 i enabled usb debugging on device still adb devices show no device Jul 15 14:04:08 exactly Jul 15 14:04:26 wp-developer: what OS u use? Jul 15 14:04:35 i use windows 7 ixc Jul 15 14:04:45 I'm trying to stop the alert dialog from closing after clicking a single item (list of files and folders) however I can't seem to figure out how: http://pastebin.com/40tcqsHH Jul 15 14:04:47 wp-developer: have you even read this yet? https://developer.android.com/tools/device.html Jul 15 14:04:50 http://pastesite.com/39794 Jul 15 14:04:54 read manual again, and install usb drivers Jul 15 14:04:56 this is a small camera app example.. Jul 15 14:05:04 i have a question though about layouting the surfaceview Jul 15 14:05:22 i want to size it such that it fills the screen, but keeps the aspect ratio of the preview.. Jul 15 14:05:23 ixc : i have galaxy tab 2 do i need to install samsung kies Jul 15 14:05:43 so i need to be able to get the size of the relativelayout holding the view.. Jul 15 14:05:54 but the layouting is done sometime after onResume() Jul 15 14:06:04 can i count on it being done in surfaceChanged()? Jul 15 14:06:14 tapas: no Jul 15 14:06:29 extend your own view, and then over ride the onMeasure() Jul 15 14:06:42 dlaroche: ah ok.. that does make some sense.. Jul 15 14:06:58 dlaroche: i thought there was maybe a way around that.. hmm Jul 15 14:07:14 a view doesn't know it's size until it is drawn. This is the best approach to getting the size of a view like this Jul 15 14:08:28 Wow.... the irony amazes me Jul 15 14:08:30 it would be awesome if views had a callback mechanism for when they were sized :D Jul 15 14:08:47 i.e. a View.LayoutCallback :D Jul 15 14:09:27 tapas: was you trying this? View.getWidth() Jul 15 14:09:55 dlaroche: well that only gives sensible results *after* the layout pass.. Jul 15 14:10:20 dlaroche: i have implemented views and viewgroups, so i am aware on how the layouting works.. Jul 15 14:10:23 tapas: excatly. That's why it is usually best to create your own view Jul 15 14:10:32 tapas: ok. Jul 15 14:10:39 just checking Jul 15 14:10:41 dlaroche: i'd just like a way to "inject" a callback.. subclassing stuff is cumbersome :D Jul 15 14:11:38 increases maintenance load and sometimes complexity.. but i have to bite the bullet i guess in this case Jul 15 14:12:44 oh Jul 15 14:12:52 http://developer.android.com/reference/android/view/View.OnLayoutChangeListener.html Jul 15 14:13:05 this might work.. Jul 15 14:14:00 now it gets interesting with the ordering of the different events happening.. Jul 15 14:15:04 tapas: you might want to look at the API level for that callback. It requires API level 11. Not sure if that effects you though. Jul 15 14:15:39 dlaroche: it does.. :( Jul 15 14:15:41 dammit.. Jul 15 14:15:57 forgot to set the filter :9 Jul 15 14:16:10 tapas: yea... ran into that crap with my application as well. :-( Jul 15 14:17:51 now if we had aspect oriented programming in android.. Jul 15 14:17:53 hmm Jul 15 14:31:06 could someone walk me through the second step here please: http://blog.crazybob.org/2010/02/android-trusting-ssl-certificates.html I am on windows Jul 15 14:31:19 Rescue9_Away: this might work: http://developer.android.com/reference/android/app/Activity.html#onWindowFocusChanged(boolean) Jul 15 14:31:24 at that point the layouting pass is done.. Jul 15 14:31:33 so i can determine the size of the layout holding the view.. Jul 15 14:31:56 with some caveats.. Jul 15 14:40:40 could someone walk me through the second step here please: http://blog.crazybob.org/2010/02/android-trusting-ssl-certificates.html I am on windows Jul 15 14:42:41 is it possible to connect over network connections to a phone that's connected to a computer via usb? i want to ssh in to my phone while i'm developing Jul 15 14:45:29 erdos: adb via tcp not ok? Jul 15 14:46:34 most probably is ok! Jul 15 14:46:59 what should i be reading to know this? i'm doing everything through eclipse at the moment Jul 15 14:47:05 it's taking care of all the tricky stuff Jul 15 14:47:31 im never used eclipse; via adb u can do: adb tcpip 5555 Jul 15 14:47:54 when u done, u cna connect via tcp: adb connect ipaddr:5555 Jul 15 14:49:30 soo.. where it says ip address you mean to put the ip address of the phone? i'm not sure it has an ip on my local network Jul 15 14:50:06 hmmm Jul 15 14:50:10 its work over public ips too, so take care Jul 15 14:50:10 i think i need to read the adb docs Jul 15 14:50:18 yes, u should :) Jul 15 14:50:20 thanks for that! Jul 15 14:50:28 np Jul 15 14:51:52 It is only me or is the market console showing "Others" for jelly bean installations? Jul 15 14:54:00 hmm, intersting.. is it possible to make a view bigger than the encompassing layout? Jul 15 14:58:55 ok, i got it Jul 15 14:59:04 all without implementing my own view for the camera :D Jul 15 15:12:25 http://pastesite.com/39798 Jul 15 15:12:36 Does anyone know how the MediaRouter API in Jelly Bean actually works? Jul 15 15:12:43 pahttp://pastesite.com/39799 Jul 15 15:12:51 i.e. if you wanted to invent a media route for streaming to an AirPort Express (given the right code), for example Jul 15 15:12:54 FYI: camera preview with correct aspect ratio filling the screen Jul 15 15:13:01 I don't see where you handle the audio stream and implement your own interface Jul 15 15:14:13 what's a good place for this sample project (minimal camera preview app that works on 2.2, keeps the aspect ratio and doesn't use a subclass of SurfacePreview) Jul 15 15:21:51 neilalexander: good question...the WTF of this API is : "where do I get the audio PCM stream to do whatever I want with it ?" Jul 15 15:23:12 oh well, i put it here: https://github.com/fps/AndroidCameraPreviewAPI8 Jul 15 15:25:26 Hey guys, I had a splashscreen which worked fine but logically didn't do what it was meant to on a fresh install. So I fixed that by adding a new myhandler and runnable to delay a function.. but now it no longer shows the contentView in splashscreen.. Code is here: http://pastebin.com/Ghhf5JKt Jul 15 15:25:49 Its the last thing I need to fix before I can finally say im done coding with the app and focus on the write up! Jul 15 15:27:54 bubbleguuum: Exactly, I guess we are missing something Jul 15 15:28:26 I wonder whether a message to the android-developers mailing list might reveal something Jul 15 15:28:35 Timmaah1201: is not related for ur problem, but with asynctask it not easier? Jul 15 15:29:02 so the runnable and handler is in an asynctask Jul 15 15:29:07 neilalexander: I hope the answer is not: "you do not get the PCM stream because of blabla...." Jul 15 15:29:16 Heh Jul 15 15:29:19 It would be a fairly useless API if that is the case Jul 15 15:29:52 neilalexander: I suspect Google to have introduced this api to route audio to the Nexus Q from the Google Music app Jul 15 15:29:57 so it goes to asynctask: ObtainData, opens up another asynctask to download the file.. if its not downloaded, it runs the delay, and then parses (which isnt an asynctask) Jul 15 15:30:20 bubbleguuum: I figured the same but also A2DP must be implemented somewhere too Jul 15 15:30:28 in fact suspect that many of the audio new stuff in 4.1 was added specifically for the Q Jul 15 15:30:36 neilalexander: erm... it looks pretty obvious to me that it's a way for apps to control the routing of their media to system-defined routes, not a way for apps to define new routes Jul 15 15:30:46 i think better if u download file in async task, and when its done (post execute) u start process it Jul 15 15:30:56 Leeds: This seems fairly useless :( Jul 15 15:31:03 if you cannot create new route it is useless Jul 15 15:31:04 good thinking ixc.. Jul 15 15:31:08 makes more sense Jul 15 15:31:15 I expected that MediaRouter.UserRouteInfo would be some way to create your own route implementation Jul 15 15:31:17 it's useless if what you want to do is create your own destinations Jul 15 15:31:27 it's useful if you're an app and want to control where your media is routed to Jul 15 15:32:14 a bit like complaining that an audio playing API is useless if what *you* want to do is record audio Jul 15 15:33:01 It strikes me as odd that they want to make USB audio accessories and Nexus Q-like experiences, and then deny developers the opportunity to actually do that Jul 15 15:33:43 they are providing developers with the opportunity to *use* those accessories Jul 15 15:33:44 I wish MediaRouter can be used to capture audio out but I have the feeling the purpose is different...which is sad Jul 15 15:33:50 not to create them - to *use* them Jul 15 15:34:58 Bleaugh Jul 15 15:35:21 Is there a way to receive a text message (using the typical BroadcastReceiver method) so that the user is not bothered by the message? Can I delete messages from the phone programmatically? Jul 15 15:44:12 Anyone knows how to check if a Jelly Bean release is the developer preview from Google I/O or the final release ? Jul 15 15:44:56 My application is just an ActionBarSherlock and a ViewPager with a tab strip, yet as soon as I launch another activity (that has nothing but an Actionbar) I get an "OutOfResources" Exception from ViewRoot Jul 15 15:49:35 the system does not issue APP_CMD_SAVE_STATE when closing any loner :S Jul 15 15:49:53 does anyone have an idea where the save state usually is triggered from? Jul 15 15:54:47 so I removed the code from my splashscreen which redirects it.. but the background still doesnt show.. it just ends up being a black space :/ Jul 15 15:55:02 I'm looking for a reasonably complete guide to tearing down and rebuilding a rom Jul 15 15:55:12 even if i change nothing Jul 15 15:55:19 shave999_: I expect you want #android-root maybe Jul 15 15:58:45 Anyone know why my 2nd android device doesn't print to logcat? Jul 15 15:59:45 anyone having issues on Jelly Bean throwing NetworkOnMainThreadException even with StrictMode disabled with StrictMode.setThreadPolicy(ThreadPolicy.LAX) ? That's horrible. Jul 15 16:00:11 bubbleguuum: you know strict mode is there for a reason, right? Jul 15 16:00:29 doing network operations in the main thread is horrible :P Jul 15 16:00:36 I am getting errors that "bitmap too large to be made into texture" is that possibly why its not showing? Jul 15 16:00:42 Leeds: yes but the ability to disable it is there for a reason too Jul 15 16:00:54 bubbleguuum: and that reason is? Jul 15 16:00:59 it seems it is not possible to disable it anymore on JB Jul 15 16:01:09 the reason being there is an API call to do it Jul 15 16:01:24 er, no... why should you be able to disable it? Jul 15 16:03:11 okay, good, so there's no good reason to disable it. fix your code Jul 15 16:03:34 Leeds: because I do not want to create a thread just to call InetAddress.getHostName() that may ANR because of idiotic Android DNS resolution failure which is not my app's problem. All other networking is threaded as required. Jul 15 16:04:09 I means if DNS resolution fails, the phone and user has other more urgent issues on his phone than my app giving an ANR. Jul 15 16:04:13 erm... you don't want to create a thread to run an operating which may last for long enough that your app could be killed? Jul 15 16:04:18 meh, whatever Jul 15 16:04:29 Hello everybody , I'm trying to consume JSON string from Http response to a POST action , tested on 3 devices and everything is ok , but on droid x it just keeps waiting on Inputstream.read() Jul 15 16:06:00 anyway, has anyone seen mention of StrictMode.setThreadPolicy() not being honoured on JB? Jul 15 16:27:54 Hi all, Jul 15 16:27:56 I have an error : when displaying my game with a canvas, some users experience a weird problem Jul 15 16:28:17 a part of the screen is painted in black Jul 15 16:28:22 like in https://www.dropbox.com/s/vauanpk3erwrnuf/Screenshot_2012-07-13-15-23-24.png Jul 15 16:28:37 I seem to have narrowed down the problem a little, I have some views in a fragment, how can I force the views to be GC'd Jul 15 16:28:39 but I cannot reproduce this problem in the emulator Jul 15 16:28:47 once the fragment is no longer visible Jul 15 16:28:53 anyone has an idea ? Jul 15 16:32:51 How I can dissable USB Mass Storage with code? I tried Settings.Secure.USB_MASS_STORAGE_ENABLED to set it to 0 and ADB_ENABLED but it seems that only the second one is working Jul 15 16:34:46 I don't believe that's osmething you can do as an application Jul 15 16:34:54 since it would be a denial of service against other apps on the system Jul 15 16:36:26 ok any idea how I can disable it. I edite initl.rc file stopping any mtpd and adbd but again when I plug the cable I can see the device Jul 15 16:36:29 is it guaranteed that the picture taken from a camera has the same aspect ratio as the preview sizes? Jul 15 16:39:09 i guess not.. so this is interesting, too. hmm Jul 15 16:40:43 hello, well Installed eclipse for mobile apps and it works fine Jul 15 16:40:58 I think maybe I should have upgraded the other version of eclipse even though docs said it was ok Jul 15 16:41:33 I'm not having the api version issues and String not found issues now Jul 15 16:42:01 so maybe in 8 mins today after lunch I can deploy a hello world app :) Jul 15 16:42:36 Is it possible to get a ViewPager to free the Views once the activity looses focus? Jul 15 16:45:46 Hello world! Jul 15 16:46:22 Is the "Contacts" category heading a style that we can use in our apps, or do we have to invent it ourselves? Jul 15 16:46:34 Mainly in the Contacts list, "ME", "A, "B," and so on. Jul 15 16:46:47 Spotify has it in their app too, fits in nicely. Jul 15 16:48:24 danharibo: implement onWidowFocusChanged in your activity Jul 15 16:48:35 danharibo: there set the two views of the view pager to empty views Jul 15 16:48:46 danharibo: then your original views should get collected by the GC Jul 15 16:49:08 ah Jul 15 16:49:10 thanks Jul 15 16:49:44 erm, s/two/n/ Jul 15 16:50:04 i was thinking view flipper. sorry Jul 15 16:50:06 Hi. I have a black part in my app cf. https://www.dropbox.com/s/vauanpk3erwrnuf/Screenshot_2012-07-13-15-23-24.png Jul 15 16:50:12 something simialr might work for a pager too though Jul 15 16:50:18 and the whole thing is not drawn. Any idea ? Jul 15 16:51:27 danharibo: after a quick look at viewpager (i thought view flipper first): it might not be as simple as that.. Jul 15 16:52:06 ah :\ Jul 15 16:52:47 danharibo: are you using an adapter? Jul 15 16:52:56 or do you just add your views? Jul 15 16:53:09 An Adapter Jul 15 16:53:52 ok, here's a simple hack that might work: in each of your views wrap your content in an extra layout and keep a list of your views around in your adapter.. Jul 15 16:54:16 danharibo: then when you want to "clean" the views, iterate through that list and set a new View() as the only child of that layout Jul 15 16:54:30 danharibo: and clean out the normal view.. Jul 15 16:54:34 Ah Jul 15 16:54:35 ok Jul 15 16:54:38 danharibo: anyways: may i ask why you want to do that? Jul 15 16:54:50 I have some custom views on some of the pages Jul 15 16:54:52 maybe there's a better way to achieve a solution to your problem.. Jul 15 16:55:04 and I keep getting a OutOfResources Exception Jul 15 16:55:08 when I move to a new activity Jul 15 16:55:27 sounds more like a bug than a problem with clearing views.. Jul 15 16:55:41 yeah I have been trying to track down where the problem is coming from Jul 15 16:56:07 danharibo: can you tell us, roughly, what your custom views do?> Jul 15 16:56:21 They allocate a bitmap + a canvas the same size as the view Jul 15 16:56:45 must be overusing memory tapas Jul 15 16:57:04 yeah.. be aware of Bitmap.recycle() Jul 15 16:57:07 tapas : try to manage the resources ,destroy them Jul 15 16:57:20 wp-developer: it's not my problem :D talk to danharibo :D Jul 15 16:57:24 Should I call recycle() myself? Jul 15 16:57:35 danharibo: it all depends on your exact code.. Jul 15 16:58:00 Well the first views I create allocate a 480x180 pixel bitmap Jul 15 16:58:04 RGB_565 Jul 15 16:58:30 once the bitmap is not used anymore it's a good idea to call recycle() on them as this will run before the GC sweeps most of the time.. Jul 15 16:58:37 ok Jul 15 16:58:56 Should I retain a bitmap at all times, or allocate a new bitmap when draw() is called? Jul 15 16:59:57 OutOfResources exception? That's new Jul 15 17:00:36 danharibo: once you are done with the bitmap, recycle it.. if you are not done with it, don't recycle() it.. :D Jul 15 17:00:51 "done" as in "don't need the reference to it anymore" Jul 15 17:00:58 or rather the contents.. Jul 15 17:01:27 hmm I was keeping it around so that when the view was invalidated, I could just re-draw the bitmap instead of all of the data on the Bitmap Jul 15 17:01:43 But I will remove the bitmap for now Jul 15 17:02:53 SimonVT, one time i referenced R.drawable too much Jul 15 17:02:56 and i got an OOR Jul 15 17:03:11 i guess they only include a finite number of each resource in the apk Jul 15 17:03:18 so if you load it too many times... Jul 15 17:03:22 or maybe just if you load it withotu returning it Jul 15 17:03:48 oO Jul 15 17:03:56 :P Jul 15 17:04:00 and dont manually call recycle() Jul 15 17:04:04 its not necessary since 3.0 Jul 15 17:04:06 troll Jul 15 17:04:18 and its VERY easy to fuck stuff up with it Jul 15 17:04:53 i consider calling recycle() because of OOM to be roughly equivalent to doing if (x == null) return; because of NPE Jul 15 17:05:04 sure it might prevent the crash, but it doesnt fix the underlying problem Jul 15 17:05:06 lol Jul 15 17:05:22 deferred memory deallocation is the problem Jul 15 17:05:27 dumbest idea i ever saw Jul 15 17:05:39 Might reimplent this in C++ Jul 15 17:05:44 i love me my c++ where i have full control over what happens when ;D Jul 15 17:05:53 take the miniscule time NOW to free thnat ONE item instead of collecting 49 million of them and stalling everyhthikn g when you decie to clean up Jul 15 17:06:24 and aah RAII :D Jul 15 17:06:31 thats great until you build an actually complex system where it's not obvious when something is no longer required Jul 15 17:06:52 yeah, then you have the choice of using various auto pointer systems Jul 15 17:07:06 like, say, java's garbage collector? :) Jul 15 17:07:06 and with enough analysis you still know exactly when stuff happens.. Jul 15 17:07:18 im referring to places where you have, say, a cached bitmap Jul 15 17:07:20 no, there's quite a difference to a language provided GC Jul 15 17:07:24 that can be used by any number of screens Jul 15 17:07:32 so jsut because X is done with it, doesnt mean Y is Jul 15 17:07:40 and this is the big problem i see with people calling recycle() Jul 15 17:07:49 yeah.. you have to be careful when calling recycle() Jul 15 17:07:59 and meditate over your code a bit.. Jul 15 17:08:06 just dont do it Jul 15 17:08:12 P Jul 15 17:08:13 :P Jul 15 17:08:23 hehe.. rather du bitmap = null; GC(); :D Jul 15 17:08:25 the problem is people load in 1024x1024 bitmaps, and display them as 100x100 in a listview Jul 15 17:08:27 s/du/do/ Jul 15 17:08:28 I want the source for Settings->Applications->Manage applications in Android 2.3. How can I be systematic about searching/Where is it? Jul 15 17:08:31 and then wonder why they crash Jul 15 17:08:39 tapas, prior to 3.0, that didnt "work" well Jul 15 17:08:50 because the bitmap's byte array was on the native heap, and it took a few GC passes to actually free it Jul 15 17:08:54 recycle() just sped that up a bit Jul 15 17:09:01 on 3.0+, it's on dalvik, so there's really no gain Jul 15 17:09:25 joel135: download teh android source Jul 15 17:09:29 hmm, too bad most people own devices with android < 3.0 :D Jul 15 17:09:29 git checkout gingerbread Jul 15 17:09:30 done Jul 15 17:09:38 or maybe i'm missing something.. Jul 15 17:09:41 tapas, but as i said, its a hacky fix Jul 15 17:09:46 canadiancow: yeah.. Jul 15 17:09:49 [13:08:26] the problem is people load in 1024x1024 bitmaps, and display them as 100x100 in a listview Jul 15 17:10:06 if you're storing a 4MB image to display where you only need like 40KB... Jul 15 17:10:15 canadiancow: about the listview stuff: i know about BitmapFactory.decode with subsampling options.. Jul 15 17:10:24 many people don't probably though.. Jul 15 17:10:26 canadiancow: how do I locate it within the gingerbread folder? Jul 15 17:10:41 get an OS with a search tool Jul 15 17:10:49 and use it Jul 15 17:11:41 >.> I removed all of my custom views, started the new activity Jul 15 17:11:43 OutOfResourcesException locking surface Jul 15 17:11:47 where is this coming from! Jul 15 17:11:58 Google says it's the entire system running out of memory Jul 15 17:12:02 Seems like a device bug Jul 15 17:12:24 wasn't there also something about not closing file streams leaking resources? Jul 15 17:12:37 i'm pretty new to java, so forgive me if i'm on the completely wrong tangent here.. Jul 15 17:13:17 lol my boss' boss was jsut stopped at the airport because a similarly named person born on the same day is on the persons of interest list Jul 15 17:13:36 what a coincidence Jul 15 17:13:40 murica!!! Jul 15 17:13:48 canada* Jul 15 17:14:01 XD Jul 15 17:14:05 although im sure our list comes from DHS or something Jul 15 17:14:38 oh here we go Jul 15 17:14:50 some system dialogs aren't showing up either Jul 15 17:15:04 rebooting to see if that helps Jul 15 17:23:53 seems like it's just a ROM issue Jul 15 17:24:04 sometimes it just gives up allocating surfaces Jul 15 17:26:13 hmm, a question about camera previews: Jul 15 17:27:23 is there any requirements for system implementors about the aperture that the preview images show? Jul 15 17:27:48 i ask this because we have a requirement to fit an image overlay over the taken camera picture Jul 15 17:27:59 and the user uses the preview to align it before taking a picture Jul 15 17:28:16 so there's the correspondence problem of pixels in the preview to pixels in the taken picture Jul 15 17:29:13 if there's no such guarantee we would have to work with the data coming in into the preview callback, as at least there we know where pixels in that image correspond to pixels in the shown preview... Jul 15 17:29:46 http://www.youtube.com/watch?v=Tu-mSpFmx7g Jul 15 17:29:48 my new gam Jul 15 17:29:50 game Jul 15 17:40:22 can i restore app from ics to gb? Jul 15 17:43:43 Help Jul 15 17:44:09 ask your question and wait for an answer Jul 15 17:44:43 When I try to implement the tablistener from http://developer.android.com/guide/topics/ui/actionbar.html#Tabs i get "ActionBar.TabListener can't be resolved to a type" even though it's imported help Jul 15 17:45:28 Did you import ActionBar? Jul 15 17:50:29 anyone here tried RIMs "gameplay" engine? Jul 15 17:50:41 From what I can see it looks good, wondered if anyone had anything to say about it Jul 15 17:52:14 Thanks SimonVT, I think I need too get some sleep if I didn't notice that... Jul 15 17:52:36 Or if anyone has any better suggestions? Jul 15 18:00:09 what does it mean with adb install to forward-lock an app? Jul 15 18:00:45 is that just like a maxsdkversion? Jul 15 18:01:00 I have no idea Jul 15 18:01:09 just found the option and nothing is of much help so far Jul 15 18:01:33 http://www.youtube.com/watch?v=yMuCjNAw38w Jul 15 18:28:44 whoa, i didn't know android's documentation doclet was open sourced as a separate component Jul 15 18:28:48 that's fantastic! Jul 15 18:29:00 (it's called Doclava, btw, for anyone else similarly unaware) Jul 15 18:31:40 hello Jul 15 18:32:49 caverdude hi Jul 15 18:33:39 I got eclipse for mobile developers installed, I wonder what the difference in that and the standard eclipse is Jul 15 18:34:04 anyway created an app for my phone 2.3.2 I think and am about to test it using the emulator then deploy and test Jul 15 18:34:04 it does not have api for mobile Jul 15 18:34:08 it compile s fine Jul 15 18:34:16 hmm Jul 15 18:34:16 ok caverdude Jul 15 18:34:24 well it picked up the api I had installed with the other one Jul 15 18:34:48 aparrently the problems I had yesterday was because I didn't have the latest eclipse Jul 15 18:35:10 ok Jul 15 18:35:16 the plugin was behaing strangely Jul 15 18:35:19 behaving Jul 15 18:35:35 you mean ADT caverdude Jul 15 18:35:41 ya I suppose so Jul 15 18:35:53 the new android app wizzard Jul 15 18:35:59 what problem u r facing Jul 15 18:36:02 nothing now Jul 15 18:36:21 did u installed SDK Jul 15 18:36:25 yesterday stranges things were happning, such as i couldn't select the target platfomr Jul 15 18:36:37 and the finish button would do nothing Jul 15 18:36:42 did u installed SDK Jul 15 18:36:42 stuff like that Jul 15 18:36:53 yes, but the problem was the eclipse version Jul 15 18:36:59 apparently Jul 15 18:37:11 i am using eclipse indigo Jul 15 18:37:12 though the docs said my version was ok Jul 15 18:37:20 thats the one that gave me problems I think Jul 15 18:37:33 which one u r using now Jul 15 18:38:35 is it luna? Jul 15 18:38:37 let me check Jul 15 18:38:44 no juno Jul 15 18:38:46 its juno Jul 15 18:39:18 i installed juno first and i was having prob Jul 15 18:39:26 ha Jul 15 18:39:42 till u completely install everything ,u will face problems Jul 15 18:39:44 juno mobile edition is working for me, and indigo was not Jul 15 18:39:59 maybe I needed a fresh install of indigo Jul 15 18:40:09 its my 4th day unable to download whole SDK Jul 15 18:40:26 why unable to download? Jul 15 18:40:40 SDK manager is so slow Jul 15 18:40:44 hmm Jul 15 18:40:55 sounds more like your conneciton is too slow Jul 15 18:40:57 how much time SDK took for u Jul 15 18:41:09 an hour or so Jul 15 18:41:27 i have 100 KBPS speed for file download Jul 15 18:41:37 how much is urs Jul 15 18:41:37 I'm not sure what mine is Jul 15 18:41:53 its around 1 Mbps Jul 15 18:42:31 they shd give this as single file Jul 15 18:42:59 single file would be harder to update Jul 15 18:43:17 or seperate files Jul 15 18:43:28 so we can manually update Jul 15 18:43:55 right now cant use a download manager to download as one single file Jul 15 18:44:05 with multiple threads Jul 15 18:45:04 wp-developer: well... check Arch's AUR, they have links to individual files Jul 15 18:48:30 I dont' understand why all file downloaders now can't simply pickup where they leave off Jul 15 18:48:46 insteadof having to start over if dissconnected or whatever Jul 15 18:49:06 anyone ehre got experience with OpenGL ES 2.0, C++ (NDK), 3d game engines on android that are open source, the only one Ive sorta liked so far is "gameplay" but its by RIM... Jul 15 18:49:33 is NDK for Objective C android? Jul 15 18:51:04 caverdude: its dependant on both server and client handling it properly Jul 15 18:51:34 caverdude: well... you could fit objective C in this way, but you'd have to supply your own runtime (not that hard... but then the libs :P) Jul 15 18:51:52 hmm ok Jul 15 18:53:16 Objective-C is easier to support than C++ anyway Jul 15 18:53:43 p_l|backup: are you an ios developer/ Jul 15 18:53:48 ben1066: no Jul 15 18:53:57 osx? Jul 15 18:54:00 no Jul 15 18:54:11 then why are you wanting to use obj-c Jul 15 18:54:17 its a pain on any other platform Jul 15 18:54:21 objective-c or cocoa? Jul 15 18:54:36 ben1066: I'm not the one who wanted to use it. I did mention that it's easier to get it running than C++ Jul 15 18:54:40 C++/Qt is much better for development than ObjC/Cocoa, imho Jul 15 18:55:02 except C++ is already "running" so I dont see how that works Jul 15 18:55:49 ben1066: C++ is incomplete etc. - whereas Objective-C doesn't need extensive support above what C needs Jul 15 18:56:07 (at least for standard Objective-C, not talking about Apple's extensions) Jul 15 18:56:20 im fairly sure there are complete c++ implementations, and I also thought that as of recent NDKs C++ was complete anyway Jul 15 18:56:36 C++ works fine in the NDK Jul 15 18:56:38 and has for some time Jul 15 18:57:14 ben1066: and it required, among other things, modifications to shared library loader Jul 15 18:57:36 I'm not talking whether C++ is there or not, just that Obj-C is simpler to get implement Jul 15 19:05:27 hello everyone. I am trying to setup Eclipse to work with ant and ndk-build. So far cant find a good tutorial or example I could download. Could someone point me to where I could get that please? Jul 15 19:05:55 I am simply trying to add nocompress to assets folder Jul 15 19:05:59 oO gameplay has lua in the "next" version Jul 15 19:15:46 perhaps I could just get a link to source code that uses eclipse+ant+ndk-build? Jul 15 19:20:42 romainguy, romainguy__ Jul 15 19:21:03 i hate new design on developer site :( Jul 15 19:21:25 :( Jul 15 19:21:30 but it's so modern Jul 15 19:21:40 but search box is uncomfortable Jul 15 19:21:52 especially whyn i open search box in chrome Jul 15 19:24:00 do I have to use ant to pass nocompress to assets? Jul 15 19:30:12 im impressed by the lua bindings in gameplay, they seem to bind everything Jul 15 19:39:39 SergeyK: yes, or give the assets one of the filetypes that won't compress (which is silly, I know) Jul 15 19:41:03 yeah, its extremly annoying. not sure who designed the build system, but they did a terrible job Jul 15 19:41:09 so, I kind of have everything working Jul 15 19:41:13 ndk and all Jul 15 19:41:26 but how do I setup Eclipse to only use ant build system? Jul 15 19:41:46 so I dont have to type anything in console every time Jul 15 19:45:43 im having issues with 9 patch png's, it doesnt seem to scale right based on the text im using i with Jul 15 19:46:52 well I deleted the first app i made and now the android wizzard is creating a new app with errors Jul 15 19:46:53 great Jul 15 19:47:07 AndroidManifest has errors Jul 15 19:47:20 MainActiivity.java has errors Jul 15 19:47:34 the first time I didn't have errors Jul 15 19:48:56 good job Jul 15 19:49:14 I create an app with a different name however and it has no errors Jul 15 19:49:31 sounds like something from Twin Peaks Jul 15 19:49:43 maybe its wrong to delete a project and start it over :< Jul 15 19:49:56 http://bpaste.net/show/35161/ <-- can someone look at this and tell me why the 9 patch is not being scaled right for the text here? Jul 15 19:50:07 i can put the 9.png somewhere where you can verify its correct Jul 15 19:51:31 ok i can init opengles 1.x Jul 15 19:51:32 9 patch is at www.isforth.com/bubble.9.png Jul 15 19:51:34 but now need 2.x Jul 15 19:55:26 romainguy: I just moved things around. You CANNOT, in fact, change the visibility or layout if the canvas is locked. Only after unlocking can anything be done with regards to the visibility of the SurfaceView. Jul 15 19:56:16 things work now that i unlock before showing the pause screen Jul 15 19:59:17 so any chance anyone can look at the code i pasted above and the 9 patch i gave the url to and tell me why im getting a wrongly scaled 9 patch with the text im using? Jul 15 19:59:19 can you just arbitrarily delete odex files???? just like... delete every one of them... off with their heads???? Jul 15 20:00:29 some texts look good. some font sizes look good.. change the number of chars or font size and things change drasticallyh Jul 15 20:00:36 moin - i compiled xbmc and now have an xbmcapp-debug-armeabi-v7a-unaligned.apk, but when I try to install it, it tells "Application not installed". How to debug this? Jul 15 20:00:44 by good i dont mean right. the text is never centered within the 9 patch Jul 15 20:02:49 does it make sense to keep static members in a Service so they live longer? would that even work? Jul 15 20:03:22 can you just arbitrarily delete odex files???? just like... delete every one of them???? Jul 15 20:03:36 does anyone happen to live or work in DC here? have a few questions since im moving there. please pm me Jul 15 20:05:37 sorry, only work with AC Jul 15 20:06:44 E/PackageParser( 2268): Package org.xbmc.xbmc has no certificates at entry res/layout/main.xml; ignoring! <- so still something wrong with aapt ;-( Jul 15 20:10:18 is there a default UI panel when you make a new app for the first time or do you have to add one to even draw lines? Jul 15 20:10:21 for example Jul 15 20:11:04 drawing a line would require a bitmap and a canvas and a view i believe Jul 15 20:16:18 findViewById(R.id.button1) is returning null for me. What am I doing wrong? Jul 15 20:16:43 theres no button1 in the view Jul 15 20:17:13 good point >_> Jul 15 20:17:34 then where is button1? Jul 15 20:17:52 defined somewhere in an xml file Jul 15 20:18:42 getRootView().findViewById got it Jul 15 20:18:57 bitmap? canvas? why not JPanel and Graphics object? Jul 15 20:19:00 mark4 Jul 15 20:19:08 why does repo sync keep crapping out. why does it start over from scratch every time i restart it Jul 15 20:19:15 isn't canvas awt? Jul 15 20:19:22 no idea Jul 15 20:19:32 hmm Jul 15 20:19:37 no Jul 15 20:20:03 I see Jul 15 20:20:12 Android has its own window and widget set Jul 15 20:20:37 so who is willing to look at my pasted code that can tell me why the 9 patch is not being scaled right? Jul 15 20:20:49 http://bpaste.net/show/35161/ Jul 15 20:26:32 this 9 patch is NOT working right Jul 15 20:26:35 wtf over? Jul 15 20:28:33 What 9patch Jul 15 20:30:52 Hello. I need help with getting only some lines from a string and put them in some new strings. Code: http://pastebin.com/Y5ZmYrxi Jul 15 20:31:14 http://developer.android.com/guide/topics/resources/drawable-resource.html#NinePatch Jul 15 20:31:27 hm seems more to upgrading to opengles 2.0 than adding EGL10.EGL_RENDERABLE_TYPE, 4, to eglChooseConfig attrib_list Jul 15 20:33:59 Anyone? Jul 15 20:34:14 I've got a really weird problem; I did a reinstall of ubuntu and now every android project I have throws errors for @override directives, even when the method is clearly an override. has anyone seen this before? Jul 15 20:35:27 cconstantine: did you restart eclipse? Jul 15 20:35:32 Waynes, yes Jul 15 20:35:39 a few times Jul 15 20:35:41 would have been to easy x) Jul 15 20:35:45 yeah :) Jul 15 20:35:59 Snoxie, could you be more specific? Jul 15 20:36:11 Your project settings are set to java 5 Jul 15 20:36:22 Waynes, I've even reinstalled openjdk-6-{jre,jdk} Jul 15 20:36:52 I want to take the two first lines from rawmeminfo and put them in a string each :) Jul 15 20:37:02 SimonVT, you are a mind (eclipse) reader... is that a default somewhere? Jul 15 20:37:18 No idea, I don't use eclipse :p Jul 15 20:37:18 Or just take it from result because i am not really sure rawmeminfo works... Jul 15 20:37:42 cconstantine: http://stackoverflow.com/questions/4761888/override-annotation-error-android-prefs already read this? Jul 15 20:37:56 Waynes, nope, thanks Jul 15 20:38:08 probably the same as SimonVT said though Jul 15 20:38:19 yup Jul 15 20:39:03 cconstantine, I want to take the two first lines from rawmeminfo and put them in a string each :) Or just take it from result because i am not really sure rawmeminfo works... Jul 15 20:39:36 Snoxie, so you want to take a single string that has newlines and split it on newlines? Jul 15 20:40:12 any idea why I get the text of the Tabs in this screenshot touching the icons? I implemented the TabHosts code in the API as is, https://dl.dropbox.com/u/19390574/SC20120714-192625.2.png Jul 15 20:40:34 Yeah and put the two first lines into two seperate strings Jul 15 20:41:27 Snoxie, check out http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/String.html#split(java.lang.String) Jul 15 20:42:18 What? Jul 15 20:42:30 I dont see anyting useful there. Jul 15 20:44:59 Waynes, SimonVT Changing to java 1.6 and restarting eclipse did it. Thanks :) Jul 15 20:45:06 cconstantine, Could you please just teach me how? Jul 15 20:47:27 Snoxie: http://ideone.com/9KOOS Jul 15 20:50:06 Waynes, that is an awesome code pastebin! Jul 15 20:50:12 it runs it for you :) Jul 15 20:51:19 yeah, I always wonder why people use these pastebins which don't although some noob pastes code from ideone every few minutes Jul 15 20:52:28 this 9 patch is getting a bit annoying, why would a 9 patch not scale right to fit the text? Jul 15 20:54:24 So I searched for updates in Indigo and am since a few hours back running Juno Eclipse and it seems to work well together with Android for my needs (but I'm currently doing lots of debugging on the phone) Jul 15 21:01:33 . Jul 15 21:02:27 what do you bet the tutorial is for android 4 and because I'm trying to deploy on my android 2.3.2 I'm getting some errors Jul 15 21:02:28 for example.. DisplayMessageActivity is not found Jul 15 21:02:28 lesson being, it sucks to be poor Jul 15 21:02:28 I would have got android 4 but $250 instead I bought this android 2 for $2 Jul 15 21:02:41 Hi all Jul 15 21:02:47 im 10 miles down a cave in utah testing uplink technology Jul 15 21:03:12 hmm, how you getting a signal in a cave? Jul 15 21:03:24 How do one usually implement the getItemId(position) method in an adapter? Jul 15 21:03:40 better latency than my smartphone over 3g Jul 15 21:03:51 I'm trying to write an app that will create a Google Alert and have it sent as a feed but Alerts has no published API that I can find, can anyone give me a hand? Jul 15 21:03:58 caverdude: that error has nothing to do with the version of Android you are running Jul 15 21:04:30 well, I was just following the tutorial, so what else might it be? unless I missed something Jul 15 21:05:03 can someone help me figure out why this 9 patch is not working right? Jul 15 21:05:26 Waynes: 07-15 20:59:17.634: E/AndroidRuntime(227): Caused by: java.lang.StringIndexOutOfBoundsException Jul 15 21:05:27 oh I havn't gone far enough Jul 15 21:05:29 sorry Jul 15 21:05:50 Deifyed: Most implementations just return the position. It depends on your data Jul 15 21:05:59 I just read that th class hasn't been created yet Jul 15 21:06:06 Deifyed: If it's a cursor, it returns the database id Jul 15 21:09:53 btw the first app had a string Hello World but when I ran it all I got was A N D R O I D .. cursor Jul 15 21:10:04 which was odd Jul 15 21:10:59 That's the emulator boot screen Jul 15 21:16:46 I'm trying to write an app that will create a Google Alert and have it sent as a feed but Alerts has no published API that I can find, can anyone give me a hand? Jul 15 21:19:29 Ok, I've got another one... I have an android lib project that needs to be linked in. My main project compiles just fine, but when run on the device it can't find the classes defined in the lib. How do I get eclipse to link it in? Jul 15 21:19:55 I have it in the Java build Path -> Libraries, and -> Projects Jul 15 21:20:36 I'm trying to get the value of my spinner with this statement: R.id.spin_cat1.getSelectedItem().toString() however it's saying it cannot invoke getSelectedItem on an an integer... why would the spinner be an int? Jul 15 21:21:14 spin_cat1 is an int Jul 15 21:21:37 go read http://developer.android.com/training/basics/firstapp/index.html Jul 15 21:21:44 and http://developer.android.com/guide/components/fundamentals.html Jul 15 21:21:51 and http://developer.android.com/guide/components/activities.html Jul 15 21:21:53 already read them, thanks Jul 15 21:21:56 no you didnt Jul 15 21:22:03 or you wouldnt be making a mistake like that Jul 15 21:22:12 and asking a question like that Jul 15 21:22:20 cconstantine: http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject Jul 15 21:22:26 but if you're going to sit here and lie to me, then im not going to bother helping you Jul 15 21:22:38 canadiancow is it possible that I read them but forgot? Jul 15 21:22:58 why do you automatically presume that I'm lying? Jul 15 21:23:58 If you read that you'd know how to get a view from an id Jul 15 21:24:20 SimonVT, Thanks, now I feel dumb Jul 15 21:24:25 you mean like findViewById(R.id.spin_cat1)? Jul 15 21:24:40 I already knew that, I just made a mistake since I've been in a hospital all weekend stressed out, I had a brain fart, my bad Jul 15 21:24:47 doesn't mean I didn't read the fu cking documents Jul 15 21:25:04 I'm sorry Jul 15 21:25:08 cconstantine: Basically you shouldn't need to go to java build path, ever Jul 15 21:25:39 SimonVT, so, oddly enough it appears to work for .jar files I've downloaded Jul 15 21:26:05 you put jars in libs/ Jul 15 21:26:11 Then ADT adds it to your build path Jul 15 21:26:15 SimonVT, ah Jul 15 21:26:34 magic Jul 15 21:27:37 You can do it manually like you did Jul 15 21:27:45 Buut, most people end up with issues eventually Jul 15 21:29:52 im mad Jul 15 21:30:01 the world is being controlled Jul 15 21:30:10 the goverment is lying too us Jul 15 21:30:18 they're trying to control us Jul 15 21:30:26 hi Jul 15 21:30:51 sobliminal messages, toxcins, cures for diseases that wont be released Jul 15 21:30:55 EditText editText = (EditText) findViewById(R.id.edit_message); I get that the R.id.edit_message is not found? Jul 15 21:31:05 are there anybody who can answer a question about opengl es? Jul 15 21:31:33 The Goverment is evil, the goverment is ruled by one religion. illumaniti Jul 15 21:32:21 any people for opengl? Jul 15 21:33:08 anyway there is a string for edit message in strings.xml Jul 15 21:34:05 You should probably make an id as well Jul 15 21:34:41 hmm Jul 15 21:34:43 where at? Jul 15 21:35:21 Yep, like that Jul 15 21:36:54 hey Jul 15 21:37:09 I did that Jul 15 21:37:19 then this error Jul 15 21:37:24 SimonVT: thanks, sorry for the delay, I got busy : ) Jul 15 21:37:31 What R did you import? Jul 15 21:37:34 amk Jul 15 21:37:52 android.R Jul 15 21:37:56 si that wrong? Jul 15 21:37:58 There you go Jul 15 21:38:03 That's not your R Jul 15 21:38:06 ok cool, so what do I need to import Jul 15 21:38:08 hmm Jul 15 21:38:20 anybody hear me? Jul 15 21:38:37 please someone say yes Jul 15 21:38:43 teksTurkey1: no but I can see what you're typing Jul 15 21:38:59 why i can't ask a question? Jul 15 21:38:59 SimonVT, I didn't make an R as far as I know Jul 15 21:39:18 caverdude: it's generated automatically and it will be in the same package as defined in your manifest Jul 15 21:39:23 that is the one you need to import Jul 15 21:39:55 well hmm I don't think it was generated Jul 15 21:40:10 jake? Jul 15 21:40:21 caverdude: then you have an error in your resources somewhere Jul 15 21:40:45 would it be in the gen folder? Jul 15 21:40:45 it should show up under the gen/ folder Jul 15 21:40:51 hmm ya its not there Jul 15 21:41:06 if you're using Eclipse there's an error pane somewhere that shows you problems Jul 15 21:41:14 the only file that is there is BuildConfig.java Jul 15 21:41:28 ok Jul 15 21:41:59 anybody hear me?why i can't ask a question? Jul 15 21:43:22 teksTurkey1: you just asked two. Jul 15 21:43:39 but no one answers Jul 15 21:43:45 so i asked again Jul 15 21:44:07 teksTurkey1: JakeWharton answered you. Was that not good enough? Jul 15 21:44:33 he said no then i asked why Jul 15 21:44:38 but no answer Jul 15 21:45:00 Read what he said Jul 15 21:45:03 I said I couldn't hear you. This remains true. I also said that I could see what you were typing though. Jul 15 21:45:06 teksTurkey1: Are you trolling? Jul 15 21:45:20 teksTurkey1: this is IRC -- nobody can "hear" anything. Jul 15 21:45:30 teksTurkey1: but everyone is seeing what you type. Jul 15 21:45:30 ow i understand you joke Jul 15 21:45:47 my english is not very good Jul 15 21:45:57 i know that you can't hear me Jul 15 21:46:02 teksTurkey1: anyway, since he responded, it's pretty obvious that he "heard" you. :-p Jul 15 21:46:12 i sead it figuratively Jul 15 21:46:16 said Jul 15 21:46:29 Anybody here good at ui/background threading? Jul 15 21:46:49 luyang: just ask your question and we'll answer if we can Jul 15 21:46:57 i supposed that he is a moderator or something like that Jul 15 21:47:04 What is the best way to communicate with the main thread (activity UI updates) from an Intent Service? Messenger/handler or BroadCast receiver thingy? or runOnUiThread on an activity reference? And should the data be passed via the database and/or a content provider (for a single app)? Or are all the ways equal with their pros/cons. I wanna be able to reuse as much as possible and have as little boiler-plate as possible while maintaining proper thre Jul 15 21:47:28 say I make an RSS feed parser… Jul 15 21:47:33 My question about creating a loading screen in opengl es Jul 15 21:47:37 rss reader even Jul 15 21:47:43 How to fix this error? "07-15 21:16:25.924: E/AndroidRuntime(383): Caused by: java.lang.StringIndexOutOfBoundsException " Code: http://pastebin.com/0JtyCsmg Jul 15 21:47:55 luyang: I would avoid Broadcase Receivers since it's a lot of boilerplate just to pass a single message Jul 15 21:48:06 in R.id.edit_message what is R.id? Jul 15 21:48:07 i'm loading my textures but i want that my app is responsive while it's loading Jul 15 21:48:21 but opengl has a seperate thread Jul 15 21:48:22 I have layouts A and B. If I have an instance cv of my CustomView in A and change my layout to B, how can I ensure that after setting layout back to A that the cv will be attached to the window instead of a new CustomView? Jul 15 21:48:22 A generated class Jul 15 21:48:27 JakeWharton: thanks! Jul 15 21:48:36 how can i message with it? Jul 15 21:48:39 oh its an inner class Jul 15 21:48:43 this is SurfaceView I'm talking about, which I'm currently getting a null pointer exception for at its surfaceCreated Jul 15 21:49:20 themirror: You'll have to do it manually Jul 15 21:49:44 caverdude: it's the resources generated file to store integers corresponding to your values Jul 15 21:50:02 Also, you shouldn't really call setcontentview several times (if that's what you're doing) Jul 15 21:50:21 caverdude: don't edit it directly. and you may need to explicitly specify your package before using R, as in com.mysite.myapp.R.id.myButton Jul 15 21:50:31 someone from 699 people :) ? Jul 15 21:51:06 How to fix this error? "07-15 21:16:25.924: E/AndroidRuntime(383): Caused by: java.lang.StringIndexOutOfBoundsException " Code: http://pastebin.com/0JtyCsmg Jul 15 21:51:17 themirror, if I don't edit it directly, then how is it generated? Jul 15 21:51:24 SimonVT: As in, I can't declare it in the xml and have it remain the same exact object? Jul 15 21:51:32 because apparently it isn't being generated Jul 15 21:51:41 caverdude: Put your resources in their folder under res Jul 15 21:52:00 anypeople knows something about gameprogramming? Jul 15 21:52:04 caverdude: Once you clean your project, R will be updated as long as there are no compilation errors in code or xml Jul 15 21:52:17 themirror: Every time you inflate your layout file a new view is instantiated Jul 15 21:52:17 are you saying that if I edit an xml file under res that R.java is autogenerated on the fly? Jul 15 21:52:25 hmm ok Jul 15 21:52:50 quit Jul 15 21:53:11 I cleaned the project and the R.java I was putting there is gone Jul 15 21:53:22 hmm Jul 15 21:53:24 caverdude: yes, if you put main.xml in the layout folder, it will be populated in R Jul 15 21:53:36 there is going to be comipilation errors in the code because R.java is missing Jul 15 21:54:05 as in, assigned an id Jul 15 21:54:21 the ok, well that might be a problem because i was using the generated file activity_main.xml instead of main.xml Jul 15 21:54:35 I didn't realize there was a difference Jul 15 21:55:32 caverdude: shoudn't matter, R.java won't be the perpetrator in the event of compilation error. If you think it's missing, then its probably because you compiled with an error Jul 15 21:56:16 caverdude: if you think your code compiles now, clean the project under Eclipse's Project menu Jul 15 21:56:49 SimonVT: Thanks, I suspected as much. Will try it tonight Jul 15 21:57:52 ok I made a main.xml] Jul 15 21:57:58 still after clean, no R.java file Jul 15 21:58:26 I have two spinners with the same array of options. I want to make it so both spinners cannot have the same value at the same time. More than that, I want to make it so the 2nd spinner doesn't even show the value of the first one, and vice versa. How can I do this? Jul 15 21:59:03 I guess I need to start this over again Jul 15 22:04:46 caverdude: Yeah R.java is in the gen folder, layouts need to be in the res/layout folder, strings should be in the values folder, and if you need to reference these resources in the code, do packagename.R.id or packagename.R.layout and you should see it Jul 15 22:06:40 How to fix this error? "07-15 21:16:25.924: E/AndroidRuntime(383): Caused by: java.lang.StringIndexOutOfBoundsException " Code: http://pastebin.com/0JtyCsmg Jul 15 22:13:33 is it possible to make it so I can select two options within 1 spinner at the same time? Jul 15 22:14:09 SimonVT: Jul 15 22:16:24 What Jul 15 22:19:16 Looking at the docs for 'sendMultipartTextMessage' http://developer.android.com/reference/android/telephony/gsm/SmsManager.html#sendMultipartTextMessage%28java.lang.String,%20java.lang.String,%20java.util.ArrayList%3Cjava.lang.String%3E,%20java.util.ArrayList%3Candroid.app.PendingIntent%3E,%20java.util.ArrayList%3Candroid.app.PendingIntent%3E%29 The docs say it's deprecated and to use smsManager but this method is part of smsManager and I don't se Jul 15 22:19:16 e any other replacement methods? Jul 15 22:29:49 deadmund: i think you're looking at android.telephony.gsm.SmsManager not the android.telephony.SmsManager it suggests to use instead Jul 15 22:30:14 Stew-a: a-ha!! You're right :) Jul 15 22:36:47 Anyone ever set up Mediation ads for admob? Jul 15 22:39:08 x Jul 15 22:59:09 well after the 3rd clean project the R.java dissapears following the tutorial Jul 15 23:06:45 caverdude, you have an error in your xml then Jul 15 23:07:23 damn i cant get opengles 2.0 to init Jul 15 23:08:13 ok Jul 15 23:08:36 I'm wondering the tutorial says use main.xml which doesnt exist from the new project wizzards build Jul 15 23:08:45 it only has main_activity.xml Jul 15 23:08:53 I should remove that maybe? Jul 15 23:10:00 this tutorial is assuming my files are setup differently than they are Jul 15 23:10:26 Does anyone know Admob's refresh rate for their website Jul 15 23:10:38 I'm jumping in and trying to edit this thing the adt wizzard created and its not working Jul 15 23:10:42 Like when they update the info on the website, like numbers, adding/deleteing house ads/etc Jul 15 23:10:47 hmm Jul 15 23:12:00 Hi All. Im a super-n00b, just doing my first tutorial, but I get an error: Error: No resource found that matches the given name (at 'label' with value '@string/title_activity_my_second'). Jul 15 23:12:11 is there any way to determine if the onItemClick is being triggered because of a user click or gallery init? Jul 15 23:12:14 Basicly all I've done is make this activity xml: http://pastebin.com/BQ7PcvTv & this strings.xml: http://pastebin.com/VHdQVWQs. Jul 15 23:12:55 It's the standard first tutorial: http://developer.android.com/training/basics/firstapp/building-ui.html.. Jul 15 23:13:06 Anybody any idea on what is wrong? :) Jul 15 23:15:53 What are the normal TTYs of an android device Jul 15 23:16:07 USB ttys Jul 15 23:18:04 I see ttyGS0 and ttyHS0 Jul 15 23:20:10 When my application tries to send a 3 part multipart sms message from one avd to another it comes out on the other end as complete jargon which java crashes trying to parse. Is this a known issue? I'm getting this error on the sender: request time failed: java.net.socketException address family not supported by protocol but I don't know what this means? Jul 15 23:25:07 I found it out, it was due to I had no string Title Activity Jul 15 23:25:09 I'm trying to write an app that will create a Google Alert and have it sent as a feed but Alerts has no published API that I can find, can anyone give me a hand? Jul 15 23:33:32 woohoo!@&*@!&*@&! opengles 2.0 initialized*!@^&@!^ Jul 15 23:35:36 everything seems working but cubemap Jul 15 23:39:08 I can't figure out how to get two elements to display next to each other in the XML. http://pastebin.com/ZdjFMyn0 Jul 15 23:39:21 "myimageview" appears Jul 15 23:39:26 but myimageview2 does not Jul 15 23:41:17 zacharycohn: myimageview uses the whole layout width Jul 15 23:41:54 cketti: because of match_parent which is matching fill_parent? Jul 15 23:42:05 try changing width to wrap_content Jul 15 23:42:18 When I choose run @ eclipse, and i didnt change something in the code, the eclipse dont rebuild the project right? Jul 15 23:42:58 I need to add some code to MySecondActivity class in eclips. Where can I do this? all ive done before is edit XMLs Jul 15 23:43:10 Thom: Under source Jul 15 23:43:26 on the left side of eclipse are your projects Jul 15 23:43:30 find your project on the list Jul 15 23:43:37 expand it Jul 15 23:43:39 go under src Jul 15 23:43:48 then under your package Jul 15 23:43:50 and edit the code Jul 15 23:43:51 Ahh there it is :) Jul 15 23:44:00 Thanks! Jul 15 23:44:05 :) Jul 15 23:47:04 Can I somewhere in eclipse turn on, that it rebuild the installtion file everytim, when I run my project? I changing files in the asset folder outside from eclipse and it dont notice that I changes something Jul 15 23:48:20 sukra: Go under project at the top, go to clean, and select your project Jul 15 23:49:00 I have the feeling that this tutorial : http://developer.android.com/training/basics/firstapp/starting-activity.html#RespondToButton is horribly outdated :P Jul 15 23:49:38 ThomQ: Why? Jul 15 23:49:43 Thom: looks fine to me Jul 15 23:50:17 little things, mostly regarding eclipse Jul 15 23:50:59 menu things that are different/ not there Jul 15 23:51:10 But, im getting there :) Jul 15 23:51:46 So, I get an error on this method: public void sendMessage(View view) { // Do something in response to button } Jul 15 23:51:56 View cannot be resolved to a type? Jul 15 23:52:06 you need to import it Jul 15 23:52:15 Ctrl + shift + o Jul 15 23:52:19 import android.view.View; Jul 15 23:52:40 yeah, that doesn't work for me for some reason. I can't ctrl v as well in eclipse Jul 15 23:53:28 thomq: Also, if theres an error of missing class in Eclipse and you hover over the variable it marks as an error, usually there is a suggestion that says to import. Click it and it will add the import statement for you Jul 15 23:53:55 :D thanks Jul 15 23:54:08 which version of eclipse are you using? Jul 15 23:54:31 I've installed 4.2.0 the classic version Jul 15 23:54:59 ThomQ: is the project an Android project? Jul 15 23:55:18 Yup Jul 15 23:55:21 Have you tried the standard Right-click project, Android tools->Fix project properties Jul 15 23:55:24 Then Project-Clean Jul 15 23:56:40 thanks luyang, that fixed it Jul 15 23:56:49 ThomQ: you're welcome Jul 15 23:56:58 standard stuff that keeps happening Jul 15 23:56:59 is it because I manually deleted a folder from my workspace folder? Jul 15 23:57:11 perhaps Jul 15 23:59:11 I parse a txt file (UTF-8) an save the text in the database. When I now select the text from the Database and put it into a Textview, it shows me \n as \n and not as a word-wrap Jul 16 00:00:09 lolwut…just read this in the docs. "When first introduced, AsyncTasks were executed serially on a single background thread. Starting with http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#DONUT, this was changed to a pool of threads allowing multiple tasks to operate in parallel. Starting with http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#HONEYCOMB, tasks are executed on a single thread to avoid com Jul 16 00:04:42 cool Jul 16 00:04:55 btw, is LED notification not supported on SGS2? Jul 16 00:05:35 (googling => no) Jul 16 00:07:01 alright then why my cubemap no work, elvish magic? Jul 16 00:07:26 luyang: erm... it doesn't have a notification light Jul 16 00:07:44 true =) Jul 16 00:07:57 I was thinking it could use the flash light but I was … obviously wrong Jul 16 00:08:14 yes, you were Jul 16 00:08:27 Failed to allocate memory: 1455 Jul 16 00:08:27 [2012-07-15 19:06:01 - Emulator] Jul 16 00:08:27 [2012-07-15 19:06:01 - Emulator] This application has requested the Runtime to terminate it in an unusual way. Jul 16 00:08:46 Leeds: led notifications seem cool Jul 16 00:08:52 there are things like noLED, which does on-screen notifications, but lack of a notification light is one of the very few things which are missing from the S2 Jul 16 00:09:14 I see Jul 16 00:09:18 Anyone know about the house ads in mediation for admob, please :? Jul 16 00:09:46 Leeds: I also think that the "joystick" thing on the HTC desire was nice and I sometimes miss that and the search button on my sgs2 Jul 16 00:10:09 search button and navigation are long dead, menu button is dying Jul 16 00:10:49 yeah Jul 16 00:11:02 Android is moving towards iPhone's single home button Jul 16 00:11:11 I thought it was cool that Android had extra buttons Jul 16 00:11:28 menu almost added an extra dimension to things Jul 16 00:11:33 I don't think back is going anywhere, even with the actionbar 'up' stuff Jul 16 00:11:51 what do you mean Jul 16 00:12:01 hm, I want ta make a list (looking like this: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_lists4) in a textview... but how? Jul 16 00:12:25 3 different text views? Jul 16 00:12:30 In a linear layout Jul 16 00:13:06 if repo sync craps out half way thru like it KEEPS fucking doing... that mean s i start over from scratch right? Jul 16 00:13:07 should the AndroidManifest.xml have only one element? Jul 16 00:13:43 yes Jul 16 00:13:52 but multiple activity elements? Jul 16 00:13:56 yes Jul 16 00:14:33 mark4: no, it's just doing ~250 git fetch commands Jul 16 00:14:51 my bandwidth usage is at zero Jul 16 00:14:56 its not downloading a freeking thing now Jul 16 00:14:58 its stalled Jul 16 00:15:02 crank it to 11 Jul 16 00:15:02 has been stalled for over an hour Jul 16 00:15:20 if i kill it i start over from scratch right Jul 16 00:15:21 ? Jul 16 00:15:26 as I said, no Jul 16 00:15:27 i.e. it doesnt continue Jul 16 00:15:45 i was under the impression taht git had no resume feature Jul 16 00:16:08 my build has failed, and I'd like to check the fatal error in logcat, but it keeps scrolling back to the bottom (no new messages) Jul 16 00:16:17 how do I stop that? Jul 16 00:16:19 ThomQ: click on a line Jul 16 00:16:23 sukramTM: have you tried to see if this works? myTextView.setText(Html.fromHtml("
  • Item 1
  • Item 2
")) also see http://stackoverflow.com/questions/2196499/ordered-lists-inside-an-android-textview Jul 16 00:16:31 or in Eclipse there's some button that supposedly pauses it Jul 16 00:17:05 hi guys - what do you suggest for parsing a json reponse Jul 16 00:17:19 oh, ok html works in android? Jul 16 00:17:22 @ Jake, doesn't work, it keeps popping back down Jul 16 00:17:38 joikus: eval() often is fine. Jul 16 00:17:47 Failed to allocate memory: 1455 This application has requested the Runtime to terminate it in an unusual way. I get this now Jul 16 00:17:55 is that an emulator problem? Jul 16 00:17:59 joikus: But there's JSON.parse that I think is well supported. Jul 16 00:18:02 rking, what about making a web call to it - im new to android dev Jul 16 00:18:05 even when I drag the scrollbar it keeps popping down Jul 16 00:18:08 anything new with android 4+ Jul 16 00:18:09 ThomQ: are you using Eclipse? There's some button you have to click or something Jul 16 00:18:27 Anyone use mediation (android) with house ads? Jul 16 00:18:34 joikus: um, yes. a l ot. Jul 16 00:18:40 joikus: Hrm. You don't make a web call "to JSON", though. Jul 16 00:18:42 Ahh scroll lock, thanks! Jul 16 00:18:47 any nice wrapper classes that wrap the same old code "GET", setTimeout, etc Jul 16 00:19:07 I meant, making a GET web request that return json Jul 16 00:19:09 joikus: use GSON or Jackson to parse JSON responses Jul 16 00:19:10 sorry Jul 16 00:19:33 ok thanks, GSON Jul 16 00:19:35 heard o it Jul 16 00:19:40 heard of it, I'll read up Jul 16 00:19:41 joikus: you could built-in stuff like JSONObject jsonString = new JSONObject(jsonString); String name = jsonString.getString("name"); Jul 16 00:19:50 yes or gson or jackson or something else Jul 16 00:20:20 oh I used same variable name as input string :P Jul 16 00:20:29 what is the SD card size setting? Jul 16 00:20:32 All this code should run into a separated thread, right? http://pastebin.com/CrMcj6iS Jul 16 00:20:32 I have left that blank Jul 16 00:20:43 then it has a file option Jul 16 00:20:53 caverdude: give it 100MB or something Jul 16 00:20:59 ok Jul 16 00:21:04 problem is that Android will complain about "Caused by: android.os.NetworkOnMainThreadException" Jul 16 00:21:25 }).run(); Jul 16 00:21:34 SimonVT: yes? Jul 16 00:21:35 You're just calling the run method on the ui thread, you need to call start() Jul 16 00:21:45 ah, thanks :) Jul 16 00:22:43 nope got the same failed to allocate memory problem Jul 16 00:22:49 oh well Jul 16 00:22:57 SimonVT: Why would the android dev site have bad code for? Jul 16 00:23:03 I'm closer anyway Jul 16 00:23:13 They have "public static class TabListener implements ActionBar.TabListener {" Jul 16 00:23:22 static isnt allowed Jul 16 00:23:29 Yes it is Jul 16 00:23:35 there was also something in red that said no launcher activity found Jul 16 00:23:37 ??? Jul 16 00:23:37 If it's an inner class Jul 16 00:23:48 top-level classes are static by default Jul 16 00:24:03 I acidentally closed some debug windows. How would I reset the debug view back to default? Jul 16 00:24:09 can the JSONObject(String json) accept a url Jul 16 00:24:13 or only a json string Jul 16 00:24:16 JakeWharton: So they're code is bad. Jul 16 00:24:22 no Jul 16 00:24:24 It is not Jul 16 00:24:28 they're implying an inner-class Jul 16 00:24:33 JakeWharton: Unless it's a inner class Jul 16 00:24:36 joikus: JSON string only Jul 16 00:24:53 Persepective, found it :) Jul 16 00:25:07 ok Jul 16 00:26:59 JakeWharton: I would change public void onAttach(Activity activity) to public void onAttach(SherlockActivity activity) right? Jul 16 00:27:26 I don't think so, no Jul 16 00:28:18 ok gson or jackson, or JSONObject to parse, but what about making the actual webcall - what are the recommended ways? Jul 16 00:28:18 Cause on a google search you had said anything that can be turned into sherlock should me Jul 16 00:28:33 I'm finding articles from 2010 and 2011, wondering if there are better ways Jul 16 00:28:51 plus a activity wont be attaching, a sherlockactvity would Jul 16 00:29:08 activity is a superclass of sherlockactivity Jul 16 00:29:18 hmm I rebooted eclipse and it started up Jul 16 00:29:24 I know Jul 16 00:29:29 Sherlock is more pecific Jul 16 00:29:35 so I should use sherlock Jul 16 00:30:01 joikus: they used to recommend HttpClient but now they seem to .. http://android-developers.blogspot.se/2011/09/androids-http-clients.html Jul 16 00:30:08 I still have only A N D R O I D _ showing? no user interface, same thing I got with the Hello World app Jul 16 00:30:09 I just want too be sure with the magnificent JakeyHuggyBear himself Jul 16 00:30:17 :P Jul 16 00:30:40 caverdude: That's the basic boot screen. Jul 16 00:30:41 caverdude: wait longer :) Jul 16 00:30:48 LOL Jul 16 00:30:49 ok Jul 16 00:31:09 ya it has been slow to startup Jul 16 00:31:12 caverdude: want a hug? Jul 16 00:31:15 YoYo: you cannot replace a more generic class type with a more specific one as a method argument in Java Jul 16 00:31:20 I second the LOL Jul 16 00:31:20 i always do Jul 16 00:31:26 yoyo if this works ya Jul 16 00:31:32 Fragment uses onAttach(Activity) Jul 16 00:31:40 caverdude: are you working on Hello World? Jul 16 00:31:53 I was working on the 2nd part Jul 16 00:31:54 I think I found my problem: I haven't declared an activity correctly in my manifest. Could someone take a look? http://pastebin.com/uBPRcRY7 Jul 16 00:32:03 adding ui components with the text box and button Jul 16 00:32:04 Ive added line 5 Jul 16 00:32:20 luyang, ok thanks Jul 16 00:32:55 I'm going to have to set a smaller resolutionon the emulator, I can't see the bottom of the window Jul 16 00:33:01 can't even resize it Jul 16 00:34:26 yeah choose HVGA or something Jul 16 00:34:40 plus it will make the emulator run faster. less pixels to render Jul 16 00:34:57 JakeWharton, good grief how long do I have to wait? Jul 16 00:35:40 luyang: medi_kontra_tv.setText(Html.fromHtml('
  • test
  • test
')); dont work, the result is testtest Jul 16 00:36:11 use the x86 emulators and enable GPU acceleration and things will be much faster Jul 16 00:36:34 JakeWharton, in the emulator settings? Jul 16 00:36:40 k Jul 16 00:36:49 the latter is, the former is a special package you have to install Jul 16 00:36:55 oh! the android went away, I'm getting closer Jul 16 00:37:21 ah now I see a shiney android lettering Jul 16 00:37:31 k my cubemap works FINE on iphone Jul 16 00:37:40 android is like ... black ... nothingness Jul 16 00:37:48 JakeWharton: Any news on PreferenceFragment? Jul 16 00:38:03 nope Jul 16 00:38:05 not working on it Jul 16 00:38:25 Ok, any workaround for now? Only saw the xda link in the issue. Jul 16 00:38:51 No idea. I don't use them. Jul 16 00:38:56 commons ware has a solution I think Jul 16 00:39:05 commons ware? Jul 16 00:41:38 yes the commonsguy guy Jul 16 00:42:26 https://github.com/commonsguy or http://commonsware.com/ or http://stackoverflow.com/users/115145/commonsware Jul 16 00:43:08 kakazza, did you check this, http://forum.xda-developers.com/archive/index.php/t-1363906.html Jul 16 00:44:42 .....15 minutes later still shiney android text Jul 16 00:45:19 maybe I should abort and play with the settings on the emulator? Jul 16 00:45:21 caverdude: what's going on Jul 16 00:45:35 caverdude: considered killing the emulator and rerunning? Jul 16 00:45:38 just trying to startup the tutorial app on an emulator Jul 16 00:45:45 luyang, ya Jul 16 00:45:57 caverdude: you could try this in a shell too adb kill-server; adb start-server Jul 16 00:45:59 I rebooted eclipse just to get it to start to begin with Jul 16 00:46:01 thanks, will check it out Jul 16 00:46:10 luyang, ok Jul 16 00:46:36 hmm the shiney android text stopped animating Jul 16 00:46:39 maybe its closer Jul 16 00:46:55 i used that class in my project, and it works fine... till now Jul 16 00:47:27 caverdude: that's what she said Jul 16 00:47:44 ha Jul 16 00:48:35 hmmm, well, I´m none the wiser. LogCat shows this fatal exception± http://pastebin.com/ZaWJxEmG. Am I correct in decoding it that the DisplayMessagActivity is the reason? Jul 16 00:49:03 ThomQ: 07-16 02:25:06.386: E/AndroidRuntime(6724): Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.mysecondapp/com.example.mysecondapp.DisplayMessageActivity}; have you declared this activity in your AndroidManifest.xml? Jul 16 00:49:11 ^^^ have you? Jul 16 00:49:50 I think I have, is this correct?: http://pastebin.com/vi331c1T Jul 16 00:53:40 I think it's incorrect in a way, try changing to etc (I had similar issues before, you could always recreate the hello world app and compare) Jul 16 00:54:46 if I understand it correctly, it basically concatenates the package and the name attribute of the activity into the fully qualified name of the activity Jul 16 00:54:58 ThomQ: ^ Jul 16 00:56:49 yeah you were right, thanks! Jul 16 00:56:52 ok so why is the emulator startup so slow? Jul 16 00:57:07 indeed, in the hello world example they do just .Activityname Jul 16 00:57:24 ThomQ: ok so it works now? great Jul 16 00:57:42 one of those little things thats different since that tutorials been published :) Jul 16 00:57:45 caverdude: it's not THAT slow Jul 16 00:58:34 caverdude: do you still have emulator issues? Jul 16 00:59:02 Anyone use mediation (android) with house ads? (admob) Jul 16 00:59:37 Are resource lookup results cached by android? Jul 16 01:01:06 ya Jul 16 01:02:00 caverdude: how is that possible? do you want teamviewer help or you manage? Jul 16 01:02:59 uh? what do you mean? Jul 16 01:03:32 if you want help Jul 16 01:03:42 I'm developing on a netbook because my laptop died Jul 16 01:03:55 which may be part of the problem Jul 16 01:03:56 1 gig ram Jul 16 01:04:21 http://blog.xamarin.com/2012/05/01/android-in-c-sharp/ Jul 16 01:04:38 what is teamviewer help? Jul 16 01:05:04 remote desktop/vnc kinda thing http://www.teamviewer.com/ Jul 16 01:05:19 oh naw Jul 16 01:05:30 but I think it might be your weak computer as you say Jul 16 01:05:33 can anyone explain to me why a 9 patch is not being scaled correctly? Jul 16 01:05:46 probably Jul 16 01:05:53 so i ported my opengles 2.0 from iphone to android Jul 16 01:05:53 its truncating the end of the string Jul 16 01:05:56 and the cubemap is all black Jul 16 01:06:08 I mean is this emulator as resource hogging as say world of warcraft? Jul 16 01:06:25 caverdude: "It can easily take 15-20 minutes to start up on a slow computer." http://stackoverflow.com/questions/10155186/android-emulator-is-not-starting Jul 16 01:06:31 world of warcraft is not resource hogging at all Jul 16 01:06:39 i can be emerging uDN world while playing wow no problem Jul 16 01:06:40 ok Jul 16 01:06:59 do you leave it running and rerun the app after changes? Jul 16 01:07:01 as they said you could also try to recreate the avd Jul 16 01:07:10 YES Jul 16 01:07:14 ok Jul 16 01:07:16 leave it running is the thing to do Jul 16 01:07:23 btw, can't you run it on your phone? Jul 16 01:07:24 ok cool Jul 16 01:07:25 via usb Jul 16 01:07:36 probably I wanted to try the eumulator first Jul 16 01:07:52 ok…. just saying running on the phone is a nice option Jul 16 01:08:37 might be the better option for me Jul 16 01:11:33 why does android have the will to dominate all life Jul 16 01:11:52 free will Jul 16 01:14:52 Judas: Resistance is futile. You will be assimilated into the Android Collective. Jul 16 01:14:59 We will add your likeness to our own. Jul 16 01:27:20 how come when I get to this line during debugging Gson gson = new Gson(); I get "Source not found" Jul 16 01:27:31 FutureTask.class opens up Jul 16 01:28:24 under referenced libs I have gson-2.2.2.jar, gson-2.2.2-javadocs.jar, gson-2.2.2-sourcs.jar Jul 16 01:28:42 and in code, import com.google.gson.Gson; compiler not complaining Jul 16 01:30:09 Anyone use mediation (android) with house ads? (admob) Jul 16 01:31:24 joikus: you have to tell eclipse where to find the source. just click the "Attach source..." button Jul 16 01:32:07 you should not have the javadocs and the sources in your libs folder Jul 16 01:32:40 I wonder why windows 7 won't detect my phone when I plug it in Jul 16 01:32:55 the driver install directions are wrong for my windows 7 Jul 16 01:34:50 cketti: I clicked "change attached source..." and pointed to /testapp/libs/gson-2.2.2-sources.jar Jul 16 01:34:58 JakeWahrton maybe I should remove it from there Jul 16 01:35:42 I still get "The Source attachment does not contain the source for the file FutureTask.class Jul 16 01:37:49 joikus: probably because FutureTask isn't part of the gson library Jul 16 01:38:55 I'm using Eclipse's graphical layout, changed themes and set the screen to landscape. I don't see that translated into the xml file, nor in when running the app. Is there a step that I'm missing? Jul 16 01:38:58 I'm confused, I thought it was part of android API Jul 16 01:41:01 Hi all, im having some troubles inflating a layout from the constructor of an object Jul 16 01:41:22 I'm just trying to make a webrequest to a url that returns json, and parse it using Gson http://pastebin.com/tkpHxctw Jul 16 01:41:40 It just dies at the line Gson gson = new Gson(); Jul 16 01:41:50 gson 2.2.2 Jul 16 01:43:21 I wonder if it's because I'm in a background thread Jul 16 01:43:35 your app hardly dies. you probably get a nice exception with a hint to what the problem could be... just have a look at that Jul 16 01:44:47 that's what I'm looking for Jul 16 01:44:51 I see no exception with a hint Jul 16 01:45:11 if i comment out the gson line and dont parse and return null, the app keeps running with no results Jul 16 01:45:16 Anyone use mediation with house ads? (admob) Jul 16 01:45:43 but if i bring it back, I never get to gson.fromJson(inputStreamReader, Response.class); Jul 16 01:46:02 logcat shows nothing Jul 16 01:46:43 do you have any filters set? Jul 16 01:46:54 this is what I get : http://pastebin.com/gtR9X36X Jul 16 01:46:55 you should definitely see something in logcat if your app crashes Jul 16 01:46:58 im not sure wht this means yet Jul 16 01:47:35 "Unfortunately testapp has stopped" Jul 16 01:48:06 nothing in logcat, I clicked on "All messages" Jul 16 01:48:11 i see. run the app without the debugger if you don't know how to use it :) Jul 16 01:49:05 ok let me try Jul 16 01:49:31 I keep getting that error and it stops Jul 16 01:49:34 > "Unfortunately testapp has stopped" Jul 16 01:49:37 this is without debug Jul 16 01:49:51 now check logcat Jul 16 01:51:49 http://s11.postimage.org/o172o6dm9/logcat.jpg Jul 16 01:51:59 this is a screenshot after the app crashed Jul 16 01:52:02 In eclipse, how would I set the theme in the graphical layout, and see the resulting code in the manifest? Jul 16 01:52:21 Im switching themes around, but the manifest xml doesnt change. Jul 16 01:53:02 Hi all, please look at my problem. http://pastebin.com/ncB0UnbH Its about layout inflater. when I try to move the assignment of my view into the constructor of my object it stops working. Jul 16 01:53:51 Belacan you gave up on making a viewgroup!? Jul 16 01:54:06 joikus: looks like the logcat view isn't attached to the emulator/device Jul 16 01:54:06 No i lost your code :/ Jul 16 01:54:08 Don't keep static references to views Jul 16 01:54:26 ahh shit okay, well I need to take a walk before the sun sets I'll repost it in an hour or so Jul 16 01:54:31 it was here http://pastebin.com/rvnZnRDx Jul 16 01:54:33 :( Jul 16 01:54:52 Okay :) Jul 16 01:55:15 cketti ok let me google how to attach it Jul 16 01:56:37 but from that screenshot, is there a reason to you why the line of code Gson gson = new Gson() would just stop the ap Jul 16 01:56:40 app* Jul 16 01:57:12 joikus: for me the following usually works: go to the devices view (window > show view > other... > android/devices), then double click your app's process Jul 16 01:57:29 joikus: it's most likely the next line that throws the exception Jul 16 01:57:53 How can I save added widgets to my application as the home screen does? And can I add widget without showing the list of widgets to pick from it( I know the id) Jul 16 01:58:27 well I found the motorol device manager from motorola which will install the drivers... looking promising Jul 16 02:00:49 cketti, when I hit F6 in eclipse, it wont get to the next line Jul 16 02:01:02 let me check the devices view Jul 16 02:02:05 wow that's pretty cool Jul 16 02:02:15 being able to see all the app processes Jul 16 02:02:38 my process isnt there :P Jul 16 02:02:51 maybe you mean check there during debugging before it crashes Jul 16 02:03:54 ok i see my process, and a green bug beside the name Jul 16 02:04:11 probably a bug showing it's being debugged Jul 16 02:04:32 if I set a breakpoint here, this.response = gson.fromJson(inputStreamReader, Response.class); it never gets to it Jul 16 02:04:39 this is the line right after Gson gson = new Gson(); Jul 16 02:05:22 just get the stacktrace Jul 16 02:05:32 Belacan: just typed it up so may have errors but here : Jul 16 02:05:33 http://pastebin.com/7hHU71er Jul 16 02:05:45 sweeeet Jul 16 02:05:48 thanks so much again Jul 16 02:06:09 quick walk Jul 16 02:06:22 Quicker to type up then walk, like to take my time go through the park Jul 16 02:06:41 cketti: what do you mean by "get the stacktrace" Jul 16 02:07:01 anyways one thing I didn't test you should make sure is that the onclicklistener when you click widget a's button only calls that button, I believe this should be how it works but again haven't tried Jul 16 02:07:29 in the console the last I see is Jul 16 02:07:31 [2012-07-15 22:03:03 - com.androidsmith.sacc.SouthernAfricaCapitalClientActivity] Attempting to connect debugger to 'com.androidsmith.sacc' on port 8709 Jul 16 02:07:37 meaning since R.id.my_valve_button is the same in both a and b, it should now to differentiate them since they are all generated in R., but again I don't know since I haven't done that specific thing Jul 16 02:07:54 a simple logcat will tell you Jul 16 02:08:10 yeah i think it works Jul 16 02:08:12 ill give it a shot Jul 16 02:08:15 thanks once again Jul 16 02:09:05 joikus: when an exception is thrown you also get the state of the call stack. the visualization of this is usually called stacktrace Jul 16 02:09:44 can I open that from Show View-> ? Jul 16 02:09:48 click on any process line in the devices view, the check if you see any messages in the logcat view Jul 16 02:10:33 no msgs in logcat view Jul 16 02:10:44 it just looks like the screenshot i showed you, as I click on different processes Jul 16 02:11:54 eclipse sucks... try restarting eclipse, then the emulator Jul 16 02:12:57 YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Jul 16 02:13:06 ok Jul 16 02:13:06 I DID IT!@!!!!11!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Jul 16 02:13:16 lasserix thanks so much Jul 16 02:13:24 I did not use your solution exactly Jul 16 02:13:30 but it inspired greatness Jul 16 02:13:34 hahah Jul 16 02:13:38 You're freaking out Jul 16 02:13:49 Bro ive been stuck on this problem since friday Jul 16 02:13:57 Hey me too Jul 16 02:14:04 Er, thursday? Jul 16 02:14:09 But I didn't work on it friday, was busy Jul 16 02:14:22 i worked on saturday Jul 16 02:14:27 Apparently no one in thie whole chat uses admob Jul 16 02:14:30 so thats two full days for one simple problem Jul 16 02:14:31 And it's driving me crazy Jul 16 02:14:42 try #programming Jul 16 02:14:48 I think I figured it out actually Jul 16 02:14:49 or #stackoverflow Jul 16 02:14:50 ok launching emulator, slow.. Jul 16 02:15:09 Just gotta wait like 10+ minutes for each update I do on their website, for it to actually register Jul 16 02:15:34 lasserix: i simply passed the context using 'this' instead of getbasecontext() and it was A ok. Jul 16 02:17:54 cketti: I restarted everything now I see stuff in logs Jul 16 02:18:21 great. now crash your app and get the stacktrace from the log Jul 16 02:20:09 http://pastebin.com/q46NKYK3 Jul 16 02:20:22 line 20 Jul 16 02:20:27 what the Jul 16 02:22:18 Guess you didn't properly add some jar Jul 16 02:22:56 I right-clicked referenced libraries Jul 16 02:23:07 build path, add jars.. Jul 16 02:23:32 Why didn't you just put it in libs/ Jul 16 02:24:21 I'm writing a singleton class to share some data between two different activities. Should I worry about multi-threading? Jul 16 02:25:21 no? Jul 16 02:25:21 ok let me add libs folder Jul 16 02:25:24 and dump in there Jul 16 02:25:43 why are you worrying about multi threading Jul 16 02:26:01 And remove anything you added to build path Jul 16 02:26:14 Belacan apparently writing a singleton class in java is not easy. I'm finding tutorials that bring it up Jul 16 02:26:27 that was it! Jul 16 02:26:35 everything works now :( Jul 16 02:26:45 I just dumped gson.jar in /libs Jul 16 02:27:09 thanks cketti and SimonVT Jul 16 02:27:14 <-- C# world :/ Jul 16 02:37:42 Belacan, depending on your target screen catagory and how many valve widgets, you may want to use a custom adapter Jul 16 02:37:50 in a gridview Jul 16 02:38:23 HA YES Jul 16 02:38:39 I'm freaking out like Belacan was Jul 16 02:38:54 Now if only everyone will update their servion of all my apps -.- Jul 16 02:39:03 not quite like i was Jul 16 02:39:08 but good effort haha Jul 16 02:39:08 Woah dyslexia fail Jul 16 02:39:10 version* Jul 16 02:39:16 I think I got it Jul 16 02:39:18 :D Jul 16 02:39:24 lasserix: whatcha mean? Jul 16 02:39:34 oh shit balls Jul 16 02:39:36 maybe not Jul 16 02:39:43 you mean gridview instead of linear layout Jul 16 02:39:49 i was thinking Jul 16 02:39:54 I wonder why this url works with Gson http://api.androidsmith.com/capitals.php Jul 16 02:40:02 but not this: http://tradegoodz.inlinefx.com/search/getsearchresult?pageNo=0&q=phone Jul 16 02:40:06 when you do addView() is is confined to a limited number of entries per row? Jul 16 02:40:09 is it because data is capitalized? Jul 16 02:40:11 say i want a grid of 8 by 4 Jul 16 02:41:36 no explanation why perfectly valid opengles 2.0 runs perfectly on iphone but not android Jul 16 02:41:46 the cubemap skybox and reflective surfaces come out all black Jul 16 02:41:52 T-Dub listen to this for your achievement. its my favourite triumphant journey music http://www.youtube.com/watch?v=4uOxOgm5jQ4 Jul 16 02:42:03 ohterwise the rest succeeds on android Jul 16 02:42:21 hmm Jul 16 02:42:25 this make me very angry Jul 16 02:42:31 I'm thinking more of... Jul 16 02:42:57 http://www.youtube.com/watch?v=PvquWIULIFA&feature=player_detailpage#t=116s Belacon Jul 16 02:43:00 More like that Jul 16 02:43:20 hahaha Jul 16 02:43:51 I was like this http://www.youtube.com/watch?v=T1ZcIAAFU7I Jul 16 02:44:23 lmfao everyone is doing it Jul 16 02:45:03 http://www.youtube.com/watch?v=X8iztY-U9lQ I was like that Jul 16 02:45:13 does anyone know what I could be getting a FileNotFound exception (no such file or directory) error, when I know the file exists and I have the WRITE_EXTERNAL_STORAGE permission? Jul 16 02:45:20 *why Jul 16 02:45:43 I can pastebin if necessary Jul 16 02:45:46 Belacan: if you are going to show 100+ widgets on the screen, the easiest way is to setup a custom adapter, which will "iterate" your valve widgets to the screen Jul 16 02:46:15 cool cool that sounds like what i need Jul 16 02:46:19 will it arrange them too? Jul 16 02:46:36 C0: print out your path and make sure its pointing where you think Jul 16 02:46:46 I'm and it is. Jul 16 02:46:54 Yeah, that's the idea Jul 16 02:47:16 Mintoris: http://downloads.typr.co/2F0t332V2p3V1e3U3P1O Jul 16 02:47:36 i need to select some game music Jul 16 02:47:49 first is the directory, last is the file chosen Jul 16 02:48:34 look at your DDMS tab and see if you can browse the sdcard Jul 16 02:50:07 Mintoris: strange, I can't Jul 16 02:50:22 is your device mounted? Jul 16 02:50:41 whats secret code to make opengles 2.0 cubemap work on android once it works on iphone Jul 16 02:50:44 no, I only have it connected via adb Jul 16 02:51:59 well either try unpluging and pluging back, or check if your sdcard is installed properly Jul 16 02:53:31 well I've tried unplugging and plugging it in, and the sdcard is in it Jul 16 02:53:44 idk Jul 16 02:53:49 lemme pastebin Jul 16 02:54:08 http://pastebin.com/Q1ExZXYn Jul 16 02:54:18 if you cant browse it in ddms then... Jul 16 02:55:42 hi did anybody try create AppEngine Backend option? Jul 16 02:56:14 guess id try mounting it and browsing with explorer Jul 16 02:56:45 I can do that just fine Mintoris Jul 16 02:56:53 and I'm getting the error on multiple devices :/ Jul 16 02:57:17 nvm... I'm such an idiot... Jul 16 02:57:27 :) Jul 16 02:57:58 I'm not appending the directory to the filename when I call the File constructor... Jul 16 02:58:13 * C0deMaver1ck *facepalm* Jul 16 02:59:14 in other words, you *were* using the wrong path, however sure you were that you were logging it **** ENDING LOGGING AT Mon Jul 16 02:59:57 2012