**** BEGIN LOGGING AT Sat Jul 28 02:59:59 2012 Jul 28 03:01:23 is there a way I can progamatically set my account for play store? Jul 28 03:08:22 How much difference is there between OpenGL ES 1.0 and 2.0? Jul 28 03:09:45 My game project will presumably run in 1.0, but how hard is it to switch to 2.0 on future projects if I feel like I need to? Jul 28 03:09:59 Syzygy: rewrite Jul 28 03:10:11 different syntax? Jul 28 03:10:14 1.x and 2.0 are incompatible Jul 28 03:10:35 Syzygy: 1.x is based around classic OpenGL 1.x fixed pipeline Jul 28 03:11:00 ES 2.0 is based exclusively around programmable pipeline Jul 28 03:11:33 so to put a single triangle on screen filled with colour, you need a vertex and fragment shader Jul 28 03:12:24 And I don't need that on ES 1.0? Jul 28 03:13:47 Syzygy: The way you draw anything on screen is different Jul 28 03:14:03 Let me rephrase my initial question. For someone just learning how to develop for android, as well as just learning OpenGL (but as someone who wrote a basic 3D renderer before), would you recommend learning 1.0 or 2.0? Taking into consideration the number of devices that could run 1.0 Jul 28 03:15:13 The fact that I can't emulate 2.0 puts me off a bit, but I can test it on my phone. Jul 28 03:16:20 Syzygy: the decision, unforunately, depends on what exactly you want to make. Phones with 2.0 will run 1.x software Jul 28 03:17:01 however, if your game is graphic intensive enough that 1.x phones won't run it anyway, or are in minority? Go for 2.0 Jul 28 03:17:23 as for learning in general... if you were developing for desktop, I'd say go the shader route Jul 28 03:17:46 It won't be very graphics intensive, and hopefully not were taxing from a logic side as well. Jul 28 03:18:14 then you might as well go with 1.x for greatest portability Jul 28 03:19:25 that's my way of thinking. But for potential future projects that might require 2.0 (not porting older projects over) how hard is it to switch to 2.0? is the syntax much different? Jul 28 03:21:41 Syzygy: the syntax itself isn't. It's just that ES1.x is basically a simplified and a bit refined fixed-pipeline subset of OpenGL (aka *OLD* - pre GeForce 3 stuff), while ES2 contains only the "modern style", aka programmable shaders being used for everything Jul 28 03:22:44 Hmm, I guess shaders would be kind of funky for microtransaction style skins. Jul 28 03:23:10 Especially if they can include stuff that reacts to movement I guess. Jul 28 03:23:19 Thanks a lot, I'll go with 2.0 then. Jul 28 03:26:06 http://www.arcsynthesis.org/gltut/ <--- while this isn't exactly about GL *ES*, it talks about the same style done on modern OpenGL, and thus will get you easier conversion :) Jul 28 03:26:50 thanks. Jul 28 03:28:21 now I need to figure out how I can get a decent game loop going and how to load sprites, after that I have completed most of my basic "engine" and can focus on the game itself. I guess I should continue with the tutorials. Jul 28 03:29:19 with sprites, be wary of what texture compression you're using Jul 28 03:29:24 (if any at all) Jul 28 03:29:41 recommendations? I'm thinking png right now. Jul 28 03:30:14 well, texture compression is for textures that are decompressed by the GPU itself Jul 28 03:30:19 if it's supported Jul 28 03:30:23 oh. Jul 28 03:30:37 you can load uncompressed (that is, GPU gets pure bitmap) from anything Jul 28 03:30:44 PNG can be pretty good choice Jul 28 03:31:35 I guess I'll see if I run into any problems and will check back here as well as some other IRCs. Jul 28 03:31:56 I don't think it's a very good idea to consider the stuff I barely understand yet. Jul 28 03:32:06 At least not something like texture compression. Jul 28 03:32:39 well, the problem with compressed textures is that not all GPUs support the same formats Jul 28 03:33:02 Not even on android phones? Jul 28 03:33:23 It would make sense to standartize stuff like this. Jul 28 03:34:17 Syzygy: I don't know details, but I think ECT1 compression is supported by *most* if not all (well, not all - I have a ES2 GPU that has no compression support at all) Jul 28 03:34:48 I guess uncompressed is the way to go then. Jul 28 03:37:24 Are sprites and textures considered the same (talking strictly 2D right now)? Jul 28 03:46:43 well... I don't know how they classify "sprite" today, I learned that term back on 8bit atari, so no - texture would be the graphic you put on a sprite Jul 28 03:50:49 So in this case sprites would be the shapes, and textures the paint. Jul 28 03:51:09 I consider sprites more of an "all in one" kind of deal where it's both. Jul 28 03:52:25 Syzygy: sprite would be the whole object that you track for collisions etc. Jul 28 03:53:32 they would be drawn using triangles (manipulated by vertex shader, for example translating them into correct position) which would be filled with textures (using fragment shader) Jul 28 03:55:14 ok. Jul 28 03:55:52 well, i guess for now I can use stand in triangles for demos. Jul 28 03:56:15 but i need to figure out how to get drawn shapes into the game. Jul 28 03:56:36 probably a quick read if i search for it on google, but it's 6am, to tired. Jul 28 03:58:03 the link has it all :) Jul 28 03:59:13 just remember that textures can have transparency, and most of the time you need just two triangles to make a rectangle Jul 28 03:59:22 (for 2D) Jul 28 04:00:53 most of the time? I can't think of any case where that's not the case Jul 28 04:05:33 I guess using the impostor technique discussed in lighting would be the most performant. Jul 28 04:09:39 Rendering all sprites simply as trigs or boxes(2trigs), and simply discarding anything that's not covered by a texture during the fragment shader. Jul 28 04:20:02 exit Jul 28 05:00:09 A single one-star can really screw your sales :(. Jul 28 05:01:06 huh? Jul 28 05:01:07 counterbalance that by rating every app on the market 1 star. Jul 28 05:01:18 brilliant Jul 28 05:01:21 lol Jul 28 05:01:25 then the law of averages should save you Jul 28 05:02:37 "works for a few days, then stops" he wrote... my app doesn't keep any state though... so that's impossible. obv he didn't read the instructions. Jul 28 05:02:58 came right after a review that said, "I TESTED IT FOR 2 MONTHS AND IT IS ROCK SOLID *****" Jul 28 05:03:53 hehe, i couldn't care less what my users think of my stuff. Jul 28 05:04:17 i like when they buy it. Jul 28 05:04:29 my customers are not users. Jul 28 05:04:38 what are they? Jul 28 05:05:11 i sell exclusively to robots Jul 28 05:05:41 currently, I don't have a free version. not sure if I'm going to continue working on the app, but if I do.. kind of have to make one now. Jul 28 06:16:53 Hi, I'm trying to get into android development. I'm looking for an extremely simple sample game. Something that's so simple it's not even a game. I'm thinking something like just moving a square around the screen. Anyone know of something like that? Jul 28 06:35:47 the API demos has a Lunar Lander example Jul 28 06:36:49 hmm and no mars rover lander demo! Jul 28 06:45:39 RylandAlmanza, me and a friend are currently trying to learn android game making Jul 28 06:45:52 we're in #vidyadev Jul 28 07:56:46 hello Jul 28 07:58:22 do you have to use eclipse to write android apps? Jul 28 08:00:45 no Jul 28 08:01:11 you can use your fav editor + ant | maven, or intellij Jul 28 08:04:14 i understand via tha android openGL API that "OpenGL ES 2.0 is supported by most Android devices" - but besides the openGL software are there hardware requirements for android devices to be able to use openGL, what exactly are the requirements? Jul 28 08:06:06 i guess what im asking is what does openGL support rely on, sufficient cpu speed and tha availability of the software library? Jul 28 08:26:42 can i use a viewstub without the android:layout argument and then get it via findViewByID and use it for dynamic elements of my layout? Jul 28 08:27:03 or do i have to use another premade layout and load it? Jul 28 08:32:57 sonOfRa: yes you can Jul 28 08:33:03 see ViewStub.setLayoutResource() Jul 28 08:33:06 but if you're doing that Jul 28 08:33:11 you don't need ViewStub really Jul 28 08:34:07 how would i add something to a regular layout? All I see is overwriting the whole layout with another view. However I just got through the tutorial for that and im not too sure about that Jul 28 08:34:15 addView() Jul 28 08:35:17 Im writing an app that has a view that is displayed when you run the app. Is there a way that someone could modify the apk so that this view never loads? Jul 28 08:35:38 I'm trying to follow the OpenGL ES 2.0 tutorial, but I got kind of stuck because there's suddently a "vertexCount" variable in the code, but it's not defined anywhere else, I haven't found it on any of the previous pages. Jul 28 08:35:55 I tried substituting it for 3 (because I'm just trying to render a triangle) Jul 28 08:36:04 which probably works Jul 28 08:36:23 but my triangle doesn't render which might or might not have something to do with it. Jul 28 08:36:33 it's hard to say Jul 28 08:36:41 when something doesn't render with GL ES 2.0 there can be dozens of reasons Jul 28 08:36:54 So I'd do something like View view = (View) findViewByID(R.layout.main); view.addView(); Jul 28 08:36:55 writing OpenGL code often means staring for hours at blank screens :) Jul 28 08:37:05 sonOfRa: you have to cast to ViewGroup Jul 28 08:37:07 I believe I've followed the tutorial faithfully Jul 28 08:37:13 ViewGroup, thanks Jul 28 08:37:46 OpenGL is all about making tiny baby steps and testing the shit every time you make a change. I pity people who can't build a gradual path for getting from here to there Jul 28 08:37:55 yeah Jul 28 08:38:01 and OpenGL is also quite low level Jul 28 08:38:07 but that alone tells a lot about the quality of this graphics stack. I really don't know why it has to be so miserable Jul 28 08:38:08 the amount of code you need for Jul 28 08:38:14 the amount of code you need for "simple" things is quite astonishing Jul 28 08:38:35 http://developer.android.com/training/graphics/opengl/draw.html Jul 28 08:38:44 Im writing an app that has a view that is displayed when you run the app. Is there a way that someone could modify the apk so that this view never loads? Jul 28 08:38:55 I find it kind of strange that there's no vertexCount variable in the rest of the code. Jul 28 08:39:15 how do you download the source for ICS Jul 28 08:40:05 Syzygy: did you download the source? Jul 28 08:40:27 No, I typed it, feels like it goes into my head easier that way Jul 28 08:40:43 Syzygy: the tutorial only shows excerpts Jul 28 08:40:48 oh Jul 28 08:40:51 you need to follow with the full source Jul 28 08:40:54 it has the missing pieces Jul 28 08:41:05 how do you download the source code? Jul 28 08:41:35 Lil_ole_Me: source.android.com Jul 28 08:42:34 suddenly hundreds of lines of code D: Jul 28 08:42:54 and a lot of it is done for you by GLSurfaceView Jul 28 08:43:11 if you want to draw a single textured quad in OpenGL ES 2.0 Jul 28 08:43:15 and you don't use GLSurfaceView Jul 28 08:43:20 it requires ~450 lines of code Jul 28 08:43:32 like I said, it's quite a low-level API :) Jul 28 08:43:39 D: Jul 28 08:45:53 Wow Jul 28 08:47:07 what knda sucks about opengl is that you need to get a bunch of setup things exactly right or nothing happens Jul 28 08:47:15 and then you need to figure out what you did wrong Jul 28 08:47:18 yep Jul 28 08:47:29 like I said, you spend a lot of time staring at a blank screen :p Jul 28 08:47:38 (I did it again Tuesday night :) Jul 28 08:47:39 i still wonder how i got it working :0 Jul 28 08:48:03 I remember when I started working on the OpenGL backend for the Android UI toolkit Jul 28 08:48:20 it took me a week before I had enough infrastructure to start seeing simple things on screen ^^ Jul 28 08:50:58 last time I did this it worked right away T_T Jul 28 08:51:50 the implementation of the GLSL is horrible imho... the way you need to code the whole thing in a string :/ Jul 28 08:53:06 I noticed I wrote gl_position instead of gl_Position ... but since I changed that my background turned black (should be gray),... which is kind of strange considering the shader should only be applied to my one single triangle... Jul 28 08:53:07 at least that allows runtime manipulation of shaders in an easy way Jul 28 08:53:25 How can I specify my preferences activity to not be remembered. Like, I go to prefs activity, press home button, launch some other apps, play some games, ten launch my app again, and I end up in prefs activity. It's ok with normal activites, but I don;t want it at my prefs activity. Jul 28 08:53:26 I guess. Jul 28 08:54:43 Syzygy: yeah, strings are not great… the GL renderer used by Android needs to be able to generate several millions of different shaders Jul 28 08:54:52 Syzygy: it's a lot of fun to write the code that generates the strings… Jul 28 08:55:14 alankila: with the right tools yes Jul 28 08:55:24 D: Jul 28 08:55:31 it's getting worse and worse Jul 28 08:55:51 time to start sprinkling your code with glGetError() calls :) Jul 28 08:57:12 write the code that generates the strings? what are you talking about? Jul 28 08:57:18 use your editor and edit a .glsl file Jul 28 08:57:43 sam: re-read what I just said Jul 28 08:58:04 romainguy_: I read it very well thank you Jul 28 08:58:10 how can a shader applied to a triangle change the way the background is handled? Jul 28 08:58:23 romainguy_: use the preprocessor Jul 28 08:58:25 *rendered Jul 28 08:58:48 sam: an über-shader would be too messy to write Jul 28 08:59:05 über-shaders are best ahders Jul 28 08:59:08 *shaders Jul 28 08:59:08 of course not, it's what I do Jul 28 08:59:21 I'm talking about my particular use case Jul 28 09:00:08 then you shouldn't use your particular use case to talk Syzygy out of doing things properly Jul 28 09:00:19 but I'm not telling him to do that Jul 28 09:00:30 wait, I can use GLSL files? Jul 28 09:00:38 of course you can Jul 28 09:00:43 Syzygy: if you read them and load them in a string, yes Jul 28 09:00:53 GL won't open/read them for you Jul 28 09:01:25 alright, is there something to read up on that? because the tutorials seem to do it in the strings from the start Jul 28 09:03:20 Syzygy: any tutorial explaining how to read from a file will do Jul 28 09:03:36 (either an asset or a raw resource) Jul 28 09:04:58 Syzygy: http://blog.shayanjaved.com/2011/03/13/shaders-android/ appears to load shaders from files Jul 28 09:06:26 alright, thanks Jul 28 09:06:47 Syzygy: on what device are you testing btw? Jul 28 09:10:20 galaxy s 2 Jul 28 09:11:36 romainguy_: the next google phone better have a hardware slider keyboard Jul 28 09:12:01 pragma-: and if it doesn't? Jul 28 09:12:05 not buying! Jul 28 09:12:14 ah Jul 28 09:12:25 well that's the beauty of Android, you have choice :) Jul 28 09:12:38 google's flagship phones should showcase all the features of android Jul 28 09:12:50 a lack of a hardware keyboard is inexcusible! Jul 28 09:13:07 right... Jul 28 09:13:12 * pragma- nods. Jul 28 09:13:21 I've found hardware keyboards to small for my bearhands Jul 28 09:13:25 on phones Jul 28 09:13:30 at least last time i used them Jul 28 09:14:00 I believe I have eloquently stated my case and that the next phone will now have a hardware keyboard. Jul 28 09:14:06 * pragma- can now sleep peacefully. Jul 28 09:19:54 this song is weird :/ Jul 28 09:24:11 romainguy, so if i have my viewgroup set up now, how do i set the contentview? setContentView(group) is getting me an error, and I can't find a method to get a view from the viewGroup. Or do i simply have to cast back to View? Jul 28 09:24:31 a ViewGroup is a View Jul 28 09:24:34 and what error do you get? Jul 28 09:25:09 hang on, how can i copy the entire stacktrace from logcat? Jul 28 09:26:25 http://pastebin.com/iZLV0ysu Jul 28 09:27:10 you're adding a null View Jul 28 09:27:15 right now i was just trying to get the viewGroup and then set it Jul 28 09:28:27 ViewGroup group = (ViewGroup) findViewById(R.layout.activity_evaluation); Jul 28 09:28:28 setContentView(group); Jul 28 09:28:34 nothing in between yet. Jul 28 09:28:44 er Jul 28 09:28:47 you cannot do this Jul 28 09:28:51 simply doing setContentVie(R.layout.activity_evaluation) works. Jul 28 09:29:02 findViewById() lets you find a View in the UI tree Jul 28 09:29:10 but the UI tree is empty before you call setContentView Jul 28 09:29:27 just do setContentView(R.layout.activity…) Jul 28 09:29:37 also findViewById() does use R.layout.* values Jul 28 09:29:40 but R.id.* values Jul 28 09:30:35 right. so i set the contentView first, and then create the viewGroup and modify the layout? Jul 28 09:30:56 no Jul 28 09:30:58 setContentView Jul 28 09:31:06 then findViewById the ViewGroup you want Jul 28 09:31:10 and then modify the layout Jul 28 09:31:43 alright, i'll try that, thanks Jul 28 10:43:00 what is the point of the toggleButton Text? It also defines onText and offText, but i can't seem to find a use for Text Jul 28 10:43:32 is that just inherited from button and not needed? Jul 28 10:44:38 it should show on-off text when you switch it Jul 28 10:44:44 yes Jul 28 10:44:46 i know that Jul 28 10:44:53 but what is Text Jul 28 10:44:56 there is onText when its on Jul 28 10:45:00 offText when its off Jul 28 10:45:04 and then there's Text Jul 28 10:45:16 aa.. well probably is inherited Jul 28 10:46:01 alright, thought so. Jul 28 10:46:38 yep in the official documentation settings for this button are only on/offText and dissabledAlpha Jul 28 10:46:52 everything else is inherited from Button probably or ToggleButton Jul 28 10:47:03 Compound Button sorry Jul 28 10:47:11 http://developer.android.com/reference/android/widget/ToggleButton.html Jul 28 10:59:55 does actionbar (sherlock?) have a built-in progress indicator? I'm perusing the andlytics app and can't for the life of me find out where the progress indicator is defined Jul 28 11:06:01 xorgate http://thanksmister.com/2012/03/30/change-default-progress-actionbarsherlock/ Google? First record? Jul 28 11:06:55 shame on me Jul 28 11:07:01 thanks, F1rstAid ;0 Jul 28 11:09:19 :P Jul 28 12:18:58 How do I go about decompiling an apk on ubuntu? Jul 28 12:19:10 Hi guys, whats the recommended version to develop for? 4.1? Jul 28 12:19:30 Drager, probably the latest, depends on your target audience Jul 28 12:19:37 Drager: who's your target audience? Jul 28 12:19:54 and are we talking about "developing for" or "supporting" versions? Jul 28 12:20:29 Hm, I have no specific audience I guess. So the newest would be the best I think Jul 28 12:20:37 Drager, look at this pie chart http://developer.android.com/about/dashboards/index.html Jul 28 12:21:33 ~ 80% of android phone owners have < api 12/ honeycomb Jul 28 12:21:58 so if you use a minimumsdk / minimum support for 4.1 those people won't be able to use your app Jul 28 12:22:24 lasserix: Ye alright, so I should aim for the people who is the most populated ones Jul 28 12:22:28 however you can target 4.1 and require a mininum of 2.3.3 Jul 28 12:22:43 Just depends on what you are doing, Jul 28 12:22:48 Yea, that works Jul 28 12:23:14 In that case you'll probably want to pull the drawables from res/platform and the android designer icon pack Jul 28 12:23:29 so that users on <4.1 can still get the 4.1 feel Jul 28 12:23:46 Okey, sweet. Will google that Jul 28 12:23:56 Thanks for this information! Jul 28 12:23:58 Also there is something called Sherlock Action Bar which is popular way to add an action bar to pre honeycomb phones Jul 28 12:24:51 Well in my project I have Build SDK: 4.1 and Minimum Required one set to Android 2.2 Jul 28 12:25:17 Drager: *shameless self-promotion* https://www.virag.si/2012/06/must-have-libraries-in-modern-android-developer-toolbox/ Jul 28 12:25:20 this could be of use :) Jul 28 12:25:20 So my app will be supported on 2.2 and forwad Jul 28 12:25:34 Mavrik: Thanks Jul 28 12:25:52 but if I have that setting so it will work on 2.2 -> 4.1? Jul 28 12:25:56 Mavrik thanks! Jul 28 12:26:18 Drager: it will show up on Play Store for all people with 2.2+ Jul 28 12:26:30 Drager: if it will work will depend on which API calls you will use Jul 28 12:26:31 so still with the progress indicator, i defined a hdpi drawable which is a 72x72 png (white square). I tell ABS to use this resource. It comes out like this: http://i.imgur.com/mUEuH.png (the outer drawable is a slightly rotated square). Standard ABS uses 72x72 abs__spinner_48_outer_holo. Why is my bitmap being resized to 24x24 ? Jul 28 12:26:48 if you'll call functions not available on 2.2 (without checking first) the app will crash on 2.2 Jul 28 12:26:57 Mavrik: Okey, API16 Jul 28 12:27:11 that's why libraries like ActionBarSherlock, NineOldAndroids and Android Support Package are so useful: Jul 28 12:27:17 they make sure API calls from 4.x work on 2.2 Jul 28 12:27:37 Sounds wonderful Jul 28 12:29:15 xorgate if you are creating your square drawable in a graphics program, maybe it's not setting the correct resolution? Jul 28 12:29:32 Drager: when reading Android documentation you'll see at each function call from which Android API is it supported Jul 28 12:29:37 lasserix no i'm sure it's 72x72 Jul 28 12:29:53 not size, but resolution Jul 28 12:30:05 lasserix not sure what you mean Jul 28 12:30:07 as in the density may actually by lower than the HDPI requires, so it is shrinking Jul 28 12:30:07 Is it wise to scroll a large PNG image for a 2D game or should it be tiled? Jul 28 12:30:11 lasserix: android designer icon pack btw? Jul 28 12:30:25 Mavrik: Okey, thanks! Jul 28 12:30:26 what's that? :) Jul 28 12:30:39 Mavrick: http://developer.android.com/design/downloads/index.html Jul 28 12:31:04 ooooo. Jul 28 12:31:09 lasserix still not sure what you mean :) the png is 72x72 pixels. which afaik is all that matters Jul 28 12:31:42 the ppi of the png may not be HDPI Jul 28 12:31:51 even tho the size is 72x72 Jul 28 12:32:38 windows by default uses some ppi i can't remember, but i don't think its HDPI so when you are creating the image in the graphics program, you are actually using a lower density of pixels than necessary for HDPI hence it is shrinking Jul 28 12:33:39 I'm not sure--I've been figuring out this myself the other day--but it seems if you use one of google's HDPI drawables as the base image (ie just open it up) it'll preserve the density so maybe try that? Jul 28 12:34:01 *just open it up and erase everything and draw on the empty space Jul 28 12:34:43 how can i dynamicaly add buttons to fragment? http://pastebin.com/V2djPYrF (the actual progressbar and button manipulation will be done in asynctask later, when I get the list of profiles to create buttons) Jul 28 12:36:07 lasserix i think i got it.. my custom style extended @android:style/Widget.ProgressBar.Small (blindly copied from example), extending @android:style/Widget.ProgressBar fixes the issue Jul 28 12:36:43 ahh cool Jul 28 12:40:46 Hi guys Jul 28 12:41:13 anyone here using GIT by any chance? Jul 28 12:41:13 Anyone here had the gradient banding problem on ice cream sandwich ? Jul 28 12:41:38 whats your git problem ? Jul 28 12:41:47 everyone uses it prolly Jul 28 12:44:22 Its my first time using.. I cloned an SDK, but wasn't asked for a directory.. Where does it store the repository? Jul 28 12:45:10 depends on what program you used Jul 28 12:45:23 normally it asks for a directoy to clone it in Jul 28 12:45:31 i used the GIT CMD Jul 28 12:45:54 then prolly the current dir Jul 28 12:46:02 or check the argumets Jul 28 12:46:09 you should prolly provide a directory Jul 28 12:46:18 ThomQ: it created a subdirectory in directory where you ran the command Jul 28 12:47:31 Sorry it was GIT Bash.. Well it takes you to a CMD :P Jul 28 12:48:11 I did look in the GIT folder.. Jul 28 12:48:39 But can't find anything with "madvertise" (the SDK i cloned) Jul 28 12:49:12 and no *.jar for that matter Jul 28 12:49:48 afaik Git bash doesn't start in GIT folder Jul 28 12:51:08 ahh found it. It was my User folder.. I was looking for a .jar, but it's a folder Jul 28 12:51:11 thanks :) Jul 28 12:55:02 Ugh.. 1 last question :) So I found the folder, go to project properties -> android, where I should add the library, or at least a reference.. Only my list of library projects is empty? Jul 28 13:00:53 To add support for facebook putting or not to add support for facebook putting. Jul 28 13:12:21 lol, installing madvertise is about as easy as sneaking into the queen's palace.. Jul 28 13:13:51 So, the tutorial is telling me to "add a new project with sources from [PROJECT_ROOT]/madvertiseSDK/ to your workspace" I tried importing Excisting Android Code into Workspace, since that's the only import option that even let's me finish. But, upon importing, I get hhit with 13 errors about methods that need to override a superclass method.. Jul 28 13:14:12 have you tried the latter Jul 28 13:15:18 remove all @Override ? Jul 28 13:16:53 doing it now.. Im a n00b (ofcourse), but I keep running into these kind's of errors from tutorial code.. Has there been some recent update or something that changed it? Jul 28 13:18:29 Don't remove overrides.. Jul 28 13:18:40 Change compiler compliance to 1.6 in your project settings Jul 28 13:19:20 That's the min API right, not the Build Target? Jul 28 13:19:25 In this channel, could people get help with code? If it crashes for instance. Jul 28 13:19:54 That's neither of those Jul 28 13:19:59 It's "compiler compliance" Jul 28 13:20:28 :D thanks, googling now Jul 28 13:24:55 Simon: Thanks, the Madvertise-SDK is error free now.. It isn't showing up as a library reference for my main app though, should I change it's compiler compliance to 1.6 too? Jul 28 13:25:20 You should probably add it as a library reference Jul 28 13:26:59 Ahh, yes. Got it, thanks again Simon, you've been a great help this last week! Jul 28 13:27:18 reading up on java compliance levels Jul 28 13:33:34 hmmm, the reference to the library keeps breaking.. I remove the old one, add it again, it gets a green check, I apply and close.. all code regarding to the library errors, and when I check again, the library reference is broken again Jul 28 13:35:30 hey guys, how to connect my android to linux in debug mode? Jul 28 13:37:26 anyone? Jul 28 13:38:51 nope sorry, not a linux user Jul 28 13:40:05 Xtreme: plug it in with a usb cable Jul 28 13:40:15 lol, i did Jul 28 13:40:21 i am getting no permission msg. in adb Jul 28 13:40:30 what distro Jul 28 13:40:37 Debian Jul 28 13:40:47 might have to modify your udev rules, google it Jul 28 13:40:55 on my gentoo box it "just worked" Jul 28 13:41:21 what is the difference between gyroscope and accelerometer in android device? Jul 28 13:41:45 Xtreme: you need to find out what group you need to be in to be allowed to access usb devices Jul 28 13:42:02 adb fails to open /dev/ttyUSB* Jul 28 13:42:02 http://pastebin.com/JN4zYZ0x Jul 28 13:42:27 ls -l /dev/tty* Jul 28 13:44:22 it worked Jul 28 13:44:25 awesome :) Jul 28 13:45:22 If I want to use icons in my app, where should I put those icons? Jul 28 13:45:35 Xtreme: just in case, if you did chown or chgrp on something in /dev, that will be undone after the next reboot Jul 28 13:45:50 no, i started adb server as root Jul 28 13:45:57 that's bad Jul 28 13:46:09 find out what rights your user needs and give yourself those rights Jul 28 13:46:27 nah, this is better. i dont want my nephew to fuck it up :) Jul 28 13:46:46 don't give your nephew your account, make a new one for him ;) Jul 28 13:47:33 there is some problem with the eth0 interface, so he cant use net without turning it off :( Jul 28 13:47:41 anyways, got to go Jul 28 13:47:42 thanks Jul 28 13:49:53 lol, library reference kept breaking because I didn't import the SDK project into my workspace..? Jul 28 13:57:17 Drager res/drawable- Jul 28 13:57:51 wongk-home: Ye, I did put my icons there but they wont display Jul 28 13:58:15 where are they supposed to be displayed? Jul 28 13:58:22 In the menu Jul 28 13:59:08 wongk-home: This is how I do it: https://pastee.org/8qbvc Jul 28 13:59:19 and you refer to them like android:icon="@drawable/foo"? Jul 28 13:59:45 oh, why not use xml? Jul 28 13:59:46 in the ? Jul 28 13:59:54 Is that the better way to do it? Jul 28 13:59:55 xml? Jul 28 13:59:58 yes Jul 28 13:59:59 Not a fan of it rly Jul 28 14:00:00 hmm.. Any reason why a clean Hello World project in eclipse has errors just after creating? Jul 28 14:00:08 but okey wongk-home, will try that :) Jul 28 14:00:23 Parser Exception, and R. cant be resolved to variables.. Jul 28 14:00:47 ThomQ: because eclipse + ADT can be finicky Jul 28 14:01:06 sometimes the android resource compiler doesn't run Jul 28 14:01:10 wongk-home: Should I put the code in /layout/activity_myproject.xml= Jul 28 14:01:15 try cleaning the project Jul 28 14:01:30 Drager: menu/ Jul 28 14:01:42 and create a file called that? Jul 28 14:01:47 equex: Tried, get 40 or more parser errors.. Jul 28 14:01:50 yes Jul 28 14:01:55 okey, thanks! Jul 28 14:02:01 It does it with every new project Jul 28 14:02:04 ThomQ: what version of java is it using? Jul 28 14:02:41 uhmm 7.5 Jul 28 14:02:54 that's not a valid answer Jul 28 14:03:03 your choices are 1.5, 1.6, or 1.7 Jul 28 14:03:17 7.5 is a sub version of 1.7 Jul 28 14:03:19 ahh 1.5 Jul 28 14:03:28 probably java7u5 Jul 28 14:03:32 which is essentially 1.7 Jul 28 14:03:34 needs to be 1.6 Jul 28 14:04:19 you can use java 7 if you do not want to install java 6 in addition. however, you will have to stop using things like Strings in switches, or multiexception catching Jul 28 14:04:27 hmmm, new ADT Jul 28 14:04:46 wow 'compute launch buttot tooltip'has encountered a problem." Jul 28 14:05:01 you can use the java 7 jdk, but the compatibility level still needs to be set to 1.6 Jul 28 14:05:18 project is set to 1.6 compiler compliance, errors are still there Jul 28 14:05:36 you cleaned and then built? Jul 28 14:05:46 yes Jul 28 14:05:51 Trying a clean project now Jul 28 14:05:59 im not sure what to tell you Jul 28 14:06:51 lol Jul 28 14:07:11 I get that 'compute launch buttot tooltip'has encountered a problem." when cleaning Jul 28 14:07:33 your eclipse sounds busted Jul 28 14:08:16 hmm, made a New project, with a different name then the ones i deleted, and now it creates it without errors Jul 28 14:11:18 ok, I found what's causing it.. I reference the MadvertiseSDK project, try to add a madvertise view, wich gives an unbound prefix error, and upon cleaning, I get the R. errors.. Jul 28 14:11:24 And the party is back on :D Jul 28 14:28:23 JakeWharton: too bad :/ Jul 28 14:28:42 Finally, fixed everything.. Set up a new workspace, got everything to work Jul 28 14:29:11 How can I overlay a "camera" over a canvas so I'm only showing a portion of what was drawn? Jul 28 14:31:42 clipping planes maybe? Jul 28 14:42:26 When I set the icon in my xml file like so: android:icon="@drawable/ic_settings" where will the icon appear? Jul 28 14:42:31 Is there a way to have a radioGroup in both horizontal and vertical directions? Jul 28 14:43:17 i don't think it will appear, you have to put it in your drawable folders Jul 28 14:43:54 sonOfRa: I have it there Jul 28 14:44:15 Should it appear next to the text "Settings"? Jul 28 14:46:17 Just for now I see one icon next to my app name Jul 28 14:46:41 not the others and I thought they should be next to the title from the MENU Jul 28 14:46:59 in your app, or in the IDE? Jul 28 14:47:05 IN my app Jul 28 14:47:15 Maybe I have to set showASAction to something? Jul 28 14:49:39 you mgiht want to read this Jul 28 14:49:40 http://developer.android.com/guide/topics/graphics/2d-graphics.html#drawables Jul 28 14:49:49 it shows how to use your drawable resources Jul 28 14:49:57 Okey, thanks Jul 28 14:54:34 Drager: you know that actions in the action bar overflow menu don't show icons? Jul 28 14:57:39 wongk-home: Oh yeah? I checked here: http://mobileorchard.com/android-app-development-menus-part-1-options-menu/ Jul 28 14:57:50 Down there he got icons? Jul 28 14:58:16 Outdated Jul 28 14:59:06 Ah ok Jul 28 14:59:11 So no icons there for now? Jul 28 15:00:02 Nope Jul 28 15:00:09 Only icons for items shown in the action bar Jul 28 15:00:14 Ah Jul 28 15:00:19 Thats why they were there :D Jul 28 15:00:40 Drager: there's no action bar or overflow menu in this example Jul 28 15:00:56 those types of menus still behave as this illustrates Jul 28 15:01:09 YE, I didnt followed it Jul 28 15:01:15 Checked at androids site Jul 28 15:01:22 then they were at the top Jul 28 15:04:50 Ok this is really difficult Jul 28 15:04:56 I'm working on a pixel*pixel scroller Jul 28 15:05:08 Drawing sprite sheet bitmaps onto the canvas Jul 28 15:05:17 But I only want to display a portion of the canvas. A camera if you will Jul 28 15:05:20 How do I do this? Jul 28 15:09:09 Bacta, make the canvas smaller to start? Jul 28 15:09:22 * j0hnsm1th confused Jul 28 15:09:28 How can I do that? Right now it draws fullscreen Jul 28 15:10:06 whats your canvas operating on? Jul 28 15:10:10 are you inside a View? Jul 28 15:11:02 A SurfaceView Jul 28 15:11:17 dont know anything about those :( Jul 28 15:11:19 sorry Jul 28 15:27:00 Hi guys! Anybody know about restrictions of using third party inapp payment systems (like paypal or paymentwall) in Google Play? I mean can I be banned by google for using these payment processors? Jul 28 15:33:08 What is the purpose of /data/system/usagestats ? Jul 28 15:41:36 Alright, I'm running into an interesting issue here. I have most of this app working now but everytime I try to launch an intent from inside an onClickListener with in a Widget settings Activity logcat starts shitting twigs everywhere saying "No activity found to handle intent" Even though everything is clearly marked in the manifest. Jul 28 15:48:09 im having probs getting files onto my tablet when i hit run in eclipse, it keeps saying the device is offline, if i unplug and plug back in sometimes it works most times not, any ideas? Jul 28 15:48:21 com.android.ddmlib.AdbCommandRejectedException: device offline Jul 28 15:49:13 gaz`: Maybe a reboot on the system / computer? Jul 28 15:49:18 hey guys, does anyone know how to get more menu items with cwm touch? i ported it from a higher res device (nexus 7) to a lower res device (china tablet) and it shows only 1 item in menu list Jul 28 15:49:32 DeadByLead yeh that sometimes works Jul 28 15:49:36 when flashing from sd Jul 28 15:49:44 but tablet has just been turned on first install worked then none after Jul 28 15:51:27 piezo: #android-root Jul 28 15:51:44 SimonVT done Jul 28 15:53:54 Is there any tags for making text bigger? Jul 28 15:54:06 Not all text, just some text Jul 28 15:54:12 like tags of something? Jul 28 16:12:57 I'm wondering; how many "real" developers have been coding their menus properly for proper behaviour on Android 4? Jul 28 16:15:11 what are real developers and what is proper :P Jul 28 16:18:52 i.e. Real as in more major things like companies/stuff Jul 28 16:19:09 And proper menu behaviour as in, the overflow button not appearing on Android 4 Jul 28 16:19:49 Do you really have to restart the emulator every time I update the code? Jul 28 16:19:58 Drager, app code ? Jul 28 16:20:02 Ye Jul 28 16:20:07 no just push the new apk Jul 28 16:20:08 Drager: no, of course you don't Jul 28 16:20:11 i.e. press eclipse play Jul 28 16:20:21 menu button != overflow button Jul 28 16:20:24 Ah Jul 28 16:20:33 yea Jul 28 16:20:39 The latter should very well appear Jul 28 16:20:40 overflow button is SUPPOSED to appear Jul 28 16:20:44 :D Jul 28 16:20:57 Thanks guys Jul 28 16:21:22 Very much effort to restart the emulator every time :D Jul 28 16:22:42 Drager, make sure to test on real device too, the emulator sometimes isn't accurate in its behavior Jul 28 16:23:50 dark3n: Ye, I will Jul 28 16:23:55 get a new droid Jul 28 16:24:01 no availble for the time being Jul 28 16:34:24 http://harmful.cat-v.org/software/xml/xml_ascent.png Jul 28 16:34:45 although one must say that there's one more step of bureaucratization of XML this one doesn't cover: namespaces Jul 28 16:43:04 is it possible somehow to set onClick for many buttons at once, or do i have to do it for each one individually? Jul 28 16:51:25 how can i set button width programmatically using something like 50dp instead of 50px? Jul 28 16:52:40 sonOfRa: http://stackoverflow.com/questions/2406449/does-setwidthint-pixels-use-dip-or-px Jul 28 16:53:03 ah, thanks Jul 28 16:57:29 I have some problem in my code and when I run, my program simply stops running. It doesn't crash, there is no traceback. This makes the problem hard to find. How can I get the emulator to crash on this error and give a line numbeR? Jul 28 16:58:59 Attach a debugger, set breakpoints, see where it stops Jul 28 16:59:27 SimonVT: ok. Jul 28 17:08:26 SimonVT: That was a helpful. Real for-head palm moment :P Jul 28 17:08:29 SimonVT: thanks Jul 28 17:12:02 deadmund: what was the problem? Jul 28 17:12:38 How do I get a button on "one page"? when I put a button now it is over the text on each "page" Jul 28 17:13:43 Leeds: BigInteger(String.valueOf("2.0")) Can't create a BigInteger from a double! Regardless of it in converts to an int nicely :) Jul 28 17:14:20 ah... and why wasn't it showing an exception? Jul 28 17:19:15 Leeds: That's what I was in here asking originally. Jul 28 17:19:17 Leeds: I don't know. Jul 28 17:19:32 fair enough, just want to learn for when it happens to me :) Jul 28 17:19:39 Haha Jul 28 17:26:53 hey guys i am developing a music player, but the problem is no sound comes out from the music player application. Jul 28 17:27:50 that *does* sound like a problem for a music app Jul 28 17:27:58 haha Jul 28 17:28:21 hahaha! yeah bit weird, but the code is pretty straight forward Jul 28 17:29:23 how do you people do music and sound effects mixing for game? Jul 28 17:29:31 openal or just in software? Jul 28 17:29:50 i just created a MediaPlayer object and did Obj.start() Jul 28 17:30:00 is there anything else i need to do? Jul 28 17:33:29 There's an article on media playback on the dev site Jul 28 17:33:35 Go look if you need to do anything else Jul 28 17:36:35 pallavagrawal, this is just guessing: some sort of setOutput? or prepare() call missing ? is your sound maybe just set too low? Jul 28 17:37:31 dark3n: i am using musicPlayer.create(this, URI); it takes care of the prepare(). i checked the volume also but no help! Jul 28 17:54:48 when an article talks about using GWT to convert java apps to something that will run on IPhone its actually talking about making a javascript app that runs in a browser from a web site right? we are not talking about a javascript app running in a frame that someone can purchase on google play? Jul 28 17:56:37 How do I get a button on "one page"? when I put a button now it is over the text on each "page" Jul 28 18:01:26 Question, does the High Resolution Application Icon have to be the same as the Launcher Icon? Jul 28 18:01:54 Or can it be a little bit different? Jul 28 18:06:38 I have one menu called Settings, there I want to display one button and some text as content and I got another menu called About, there I want another button and some text on the content. How can I do this`? Jul 28 18:15:23 caverdude u got a link? you can embed web stuff into a webview and itll run in an app that can be sold on google play, but applets wont work Jul 28 18:16:16 gaz' ah very god Jul 28 18:16:18 good Jul 28 18:16:34 i wish it was easier to convert java to work on ios/android Jul 28 18:16:47 ios/android? Jul 28 18:16:56 iOS == iphone Jul 28 18:17:05 oh Jul 28 18:17:30 so maybe google web took kit is a good thing to learn to use Jul 28 18:17:41 its just for making back end stuff tho isnt it Jul 28 18:17:44 id like to learn it too Jul 28 18:17:57 but i guess u could make sites with it and use them in a webview Jul 28 18:18:03 webviews are a bit crappy tho imho Jul 28 18:18:08 just a sec Jul 28 18:18:13 prefer native feel Jul 28 18:18:51 ouch when u test ur app on a bigger screen device it can be disheartening :-/ tons of stuff not actually fitting Jul 28 18:19:25 hello Jul 28 18:19:34 yo Jul 28 18:19:36 http://www.larrydgray.net/PolygonCalculator/polygon-calculator.html Jul 28 18:19:42 this was made with google web tool kit Jul 28 18:19:45 is this the right place to discuss kernel / custom rom dev? Jul 28 18:19:52 it was made for one of my blog post Jul 28 18:20:02 nice Jul 28 18:20:10 so yeh that would fit nicely in a webview and work on ios/android Jul 28 18:20:16 I have one menu called Settings, there I want to display one button and some text as content and I got another menu called About, there I want another button and some text on the content. How can I do this`? Jul 28 18:20:22 so long as you make it stretch to whatever container its put in Jul 28 18:20:31 did you put some corners in it and radius/ Jul 28 18:20:40 and hit calculate? Jul 28 18:20:42 Drager just looks up a tutorial on making menus Jul 28 18:20:45 yes caverdude Jul 28 18:20:58 its awesome Jul 28 18:21:13 I had it made for calculating some angles for the making of a quanset hut style metal structure Jul 28 18:21:22 gaz`: Hm Jul 28 18:21:32 and for roof structures for round can shaped buildings Jul 28 18:21:37 nice Jul 28 18:21:41 such as mogolian yurt Jul 28 18:21:58 dragorn - easily the best solution, no one here is gonna wak u thru that when one google search will bring it up in perfect detail with free code etc Jul 28 18:21:59 tin roof on a yurt Jul 28 18:23:16 gaz`, I paid a developer $50 to make that for me lol Jul 28 18:23:27 caverdude nice Jul 28 18:23:29 felt like supporting some poor vworker lad at the time Jul 28 18:23:33 :) Jul 28 18:23:42 now hire me to make ur androdi apps Jul 28 18:23:43 :) Jul 28 18:23:57 gaz`: Cant find anything regarding that state of making Jul 28 18:23:58 lol ok I'll beg mom for the money since I'm now unemployed Jul 28 18:24:12 hehe Jul 28 18:24:41 Drager https://www.google.com/search?q=android+menu+tutorial Jul 28 18:24:53 2nd hit loosk good http://www.androidhive.info/2011/09/how-to-create-android-menus/ Jul 28 18:25:04 Yes ofc, but the fact of how I get a button on each page Jul 28 18:25:25 then u need to work out how to make an activity Jul 28 18:25:27 with a button it Jul 28 18:25:33 and how to launch the activity from a menu press Jul 28 18:26:18 gaz`: I have, this is how I did it: https://pastee.org/2rc2g Jul 28 18:26:40 and the menu_() is just text saying a bounch of things Jul 28 18:26:42 to the context Jul 28 18:29:51 but the button is everywhere. Jul 28 18:31:26 use the same button, with the same attributes and the same ID Jul 28 18:31:52 sonOfRa: I only want the button on one "page" Jul 28 18:46:50 can anyone help me with an LG Spectrum not being detected by adb devices? Jul 28 18:49:48 That's odd Jul 28 18:50:11 On my HTC Desire, a ToggleButton does not use the specified offText when first created Jul 28 18:50:42 Is anyone else's stats on google play not updating? Jul 28 18:50:44 i have to toggle it twice in order for it to use the offText. At the beginning it apparently uses just Text, instead of onText or offText. Is this intended behaviour? Jul 28 18:50:48 I've had the same stats for 3 days now Jul 28 18:55:57 Is there a common reason why Eclipse Juno should be unacceptably slow with the Android SDK? Jul 28 18:57:08 i dont fee it being slow really Jul 28 18:57:42 the different tabs don't load instantaneously, but it's not really disturbing the workflow Jul 28 18:58:38 So I'm attaching an OpenGL ES 2.0 vertex shader with a typo to a vertex, and it renders the background color as expected, but when I fix the typo, the background color suddenly turns black. Jul 28 18:58:48 which is strange because it shouldn't even be affected obviously. Jul 28 18:58:54 Dr_traktor: which host OS, and which Java SDK?. I'm in ubuntu 11.04 -- people on the web recommended switching from the default java to Oracle Jul 28 18:59:04 did not notice much of a difference when i did this, though Jul 28 19:00:24 KhanFused, win7 64 with Oracle JDK 64. Switching between different source files takes 2-5 seconds while javaw consumes max cpu. Jul 28 19:03:07 Anyone have a moment for a newbie question? I'm just starting in 'this android development thing' (and haven't used eclipse much either), and am working through the first lessons in developer.android.com. I have the first assignment done -- creating an activity w/text box and submission button, then passing what was typed into a display activity. I THINK I have all of the code in as requested. However when I run in t Jul 28 19:04:47 there's probably a full source code download on the top right that shows you the way it should be Jul 28 19:05:28 I hadn't seen anything like that (checking again) Jul 28 19:05:50 also, your question didn't quite get through Jul 28 19:06:08 there's usually displays at the end of the lesson to say 'this is what (FILE NAME) should look like when finished" -- I'd matched them Jul 28 19:06:19 syzgy ... sorry ... one second ... Jul 28 19:06:31 Anyone have a moment for a newbie question? I'm just starting in 'this android development thing' (and haven't used eclipse much either), and am working through the first lessons in developer.android.com. I have the first assignment done -- creating an activity w/text box and submission button, then passing what was typed into a display activity. Jul 28 19:06:41 I THINK I have all of the code in as requested. However when I run in the AVD (ICS 4.0.3) and the app comes up, the app AND the virtual device crash the moment I type something. Anyone see this before? Any suggestions on where I go to debug? Jul 28 19:06:48 I've already tried running the app while viewing the output from logcat ... when the app/AVD crashes, the only error I get is 'device disconnected'. Suggestions pls? Jul 28 19:06:50 logcat Jul 28 19:06:55 oh Jul 28 19:07:03 faulty cable? Jul 28 19:07:05 KhanFused: switch to Debug perspective and there you'll see logcat Jul 28 19:07:17 snuffel: it's the virtual device Jul 28 19:07:20 not physical Jul 28 19:07:22 heh Jul 28 19:07:28 try to google it Jul 28 19:07:35 snuffel -- been googling it Jul 28 19:07:54 of the people who've seenthis-- their solutions don't apply Jul 28 19:07:58 khan there is a typo Jul 28 19:08:06 which tutorial are you following (link)? Jul 28 19:08:07 or I'm not being precise in my search terms Jul 28 19:08:21 lasserix: http://developer.android.com/training/basics/firstapp/index.html Jul 28 19:08:50 2nd time through it -- the first time I skipped a step and the things I typed weren't being passed to the second activity Jul 28 19:09:03 okay Jul 28 19:09:14 in your activity where it says " setContentView(textView);" Jul 28 19:09:26 that makes ONLY the textview as what is displayed Jul 28 19:09:31 i think this is a typo Jul 28 19:09:40 but what you need to do is Jul 28 19:09:53 and this will be helpful for later Jul 28 19:10:12 oh ... is that where I was originally told to do setContentView(...somthing more verbose ... ) Jul 28 19:10:14 here is comes Jul 28 19:10:16 it Jul 28 19:10:20 andt hen in the summary they say (textview) Jul 28 19:10:31 add the line android:id="@+id/linearlayout_root" to the top Jul 28 19:11:25 and in your activity add a variable LinearLayout mLinearLayout. in the oncreate you have to call mLinearLayout = (LinearLayout) findViewById(R.id.linearlayout_root); Jul 28 19:12:11 How is the textview on the second activity which shows nothing but the result related to the linearlayout in the first activity where the text is entered? Jul 28 19:12:13 then instead of setContentView of textview , do mLinearLayout.addview(mTextView); setContentView(R.layout.main) Jul 28 19:12:33 oh is that the second activity? Jul 28 19:12:42 nevermind, disregard everything i've said Jul 28 19:13:01 That Jul 28 19:13:03 sorry too much multitasking Jul 28 19:13:05 's what it says Jul 28 19:13:47 KhanFused post your error from logcat on pastebin Jul 28 19:13:52 easiest way for anyone to help Jul 28 19:14:07 Anyway, the avd crashing is not related to your app Jul 28 19:14:12 It's some other issue you need to fix Jul 28 19:17:12 SimonVT, they are related by magnets with jelly Jul 28 19:20:05 I'm looking in the various logcat entries (error,debug, verbose) ...not seeing anything that looks like an error other than the 'device disconnected' alert ... though I've been using eclipse/Android SDK for a couple of days now & had only used eclipse for C++ classwork before that... I may not yet know how to drive this part of eclipse Jul 28 19:24:26 Ok... got it ... on a hunch I turned off GPU support in the virtual device Jul 28 19:32:09 help please, my $_POST is empty.. http://stackoverflow.com/questions/11686559/android-multipart-post-to-php Jul 28 19:37:25 j4hr0m: Just do if(isset( Jul 28 19:37:32 Classic php Jul 28 19:38:15 Drager: how does this solve the issue? Jul 28 19:38:41 Well, does the file get uploaded? Jul 28 19:38:59 You're trying to echo something that doesnt exist Jul 28 19:38:59 no Jul 28 19:39:34 You're getting that notice because you dont have any file Jul 28 19:40:10 right, but i still wonder why.. Jul 28 19:40:48 I dont really have any idea tbh. Jul 28 19:41:04 Not so good at android programming ;< Jul 28 19:41:08 Sorry Jul 28 19:41:14 ok, thx btw Jul 28 19:41:31 but you should do if(isset because if a user visits that link Jul 28 19:41:33 it will say that Jul 28 19:41:47 or you can turn of notices in php.ini ;) Jul 28 19:41:56 ok Jul 28 19:42:11 I'm currently trying to accomplish this task aswell Jul 28 19:42:15 but with ruby Jul 28 19:42:20 and android Jul 28 19:43:08 i have a listview that is being populated by a list of class instances through an arrayadapter. What would be the recommended way of accessing each instance once it has been displayed in the listview, and the user clicks one of the items? Jul 28 19:44:01 with the listview, it is not hard getting the id of the listview itself (starting with 0 for the first item), but how would I go about accessing the class instance that is being presented there? Jul 28 19:44:25 good luck Drager Jul 28 19:44:43 s/id of the listview/id of the listview item/ Jul 28 19:45:07 j4hr0m: Thanks, u2 mate. Would be glad if you gave me a heads up if you solve it. (If it was the android part). Jul 28 19:45:38 i guess it is the android part, becaus upload_file.php works from form.. Jul 28 19:45:48 Ye alright Jul 28 19:46:26 thanks for the help guys ... ttyl Jul 28 19:49:29 ping Jul 28 19:49:43 !give me ping Jul 28 19:49:43 pong Jul 28 19:49:44 ACTION gives thinkanish a printer cartridge Jul 28 19:49:44 ACTION gives me a laptop Jul 28 19:50:28 Hi, i am new to andorid and wanna become a app developer.... I dwnloaded android sdk.. what must i do now? Jul 28 19:50:32 j4hr0m: print the content of $_FILES to see how/what are you really sending to the php file Jul 28 19:50:48 thinkanish: read a book or follow a tutorial Jul 28 19:51:02 Versuchen: $_FILES is not being created Jul 28 19:51:25 thinkanish: Lars Vogels' tutorials are very good http://www.vogella.com/android.html Jul 28 19:51:28 beacuse $_POST isn't as well Jul 28 19:51:41 i mean $_POST is empty Jul 28 19:51:51 thinkanish: please don't PM me without permission. that's just rude. Jul 28 19:52:01 oh! my..goodness.. v3gard.. are you human? Jul 28 19:52:17 indeed Jul 28 19:52:44 v3gard: I am really sorry... since you replied for the !give command, i thought you as a irc bot... sorry again Jul 28 19:52:44 ACTION gives thinkanish The Family Learning Channel Jul 28 19:52:56 j4hr0m: is that all the android code? where are you calling the upload_file.php file ? Jul 28 19:52:56 np Jul 28 19:53:21 Versuchen i am calling it in the APIcontroller Jul 28 19:53:43 String resource = APIcontroller.buildUrl( "" ); <- it's empty Jul 28 19:53:54 v3gard: one small question - how to identify name of the bot in a irc? Jul 28 19:54:37 thinkanish: a bot is accessing IRC the same way as a human does. unless the nick or name in a /whois reveals it, you can't Jul 28 19:54:58 you might identify a bot based on whatever he/she writes, but that's about it Jul 28 19:55:11 Versuchen, no, the URL is hardcoded in the APIcontroller, the "" is the resource addition Jul 28 19:55:14 v3gard: ty. who is the bot here? Jul 28 19:55:22 Iam Jul 28 19:55:38 ٩ԾᴗԾ۶ Jul 28 19:56:11 j4hr0m: so, that's not the whole android code, ok Jul 28 19:57:09 Drager !give me source Jul 28 19:57:10 ACTION gives thinkanish a catholic priest Jul 28 19:57:18 How do I force an editText to be scrollable instead of going multiline when the string runs past the field? number fields seem to do this by default, however normal editText fields do not Jul 28 19:57:24 Versuchen: no its not, do you need it? Jul 28 19:57:27 (in XML, not in code if possible) Jul 28 19:57:40 thinkanish: There is no such things as bots in here. I'm sorry Jul 28 19:58:00 Drager: then who is Quacktop? Jul 28 19:58:08 I have no idea sir Jul 28 19:58:17 thinkanish: a guy who types really fast Jul 28 19:58:32 j4hr0m: i cannot test your stuff, so at least I need to know as much as possible about what you've got Jul 28 19:58:37 Drager: ty, I ll figure it out Jul 28 19:58:41 :D Jul 28 19:59:13 Quacktop: Hi Jul 28 20:00:21 Versuchen: http://pastebin.com/X3qweYUG Jul 28 20:01:28 Versuchen: and here http://pastebin.com/k4wACiZX Jul 28 20:01:48 theanks for testing Jul 28 20:03:40 Hey guys, I have a quick question... why does some apps (like whats app) require a varification code on the first run? Jul 28 20:04:03 !give me source Jul 28 20:04:04 ACTION gives thinkanish a small electric generator Jul 28 20:04:05 ACTION gives me Tintin's father Herge Jul 28 20:04:46 sasson: this is because of security, you need to sign your app, optherwise it cannot be regarded as trustworthy. hope this helps Jul 28 20:05:21 j4hr0m: is APIController execute sending the file ? Jul 28 20:06:05 Versuchen: yes, through client.execute( request ); Jul 28 20:06:09 j4hr0m: What file chooser do you use? Own written one? Jul 28 20:07:02 time Jul 28 20:07:56 Drager Drager, simple intent.setAction( Intent.ACTION_GET_CONTENT ); Jul 28 20:08:08 hi, is ther any other good website to learn android app devel for absolute beginners? Jul 28 20:08:33 !give me roulette Jul 28 20:08:34 ACTION gives thinkanish a spork Jul 28 20:08:34 ACTION gives me a small bell Jul 28 20:08:45 j4hr0m: I dont follow you. Jul 28 20:08:51 j4hr0m, I can't see the reason behind this security varification... didn't find anything on google either Jul 28 20:09:25 j4hr0m: so, are you sure, I mean, can you actually check how many bytes you send in the execute function ? Jul 28 20:09:27 !give me wiki android Jul 28 20:09:28 ACTION gives thinkanish a microphone Jul 28 20:09:28 ACTION gives me a perl script Jul 28 20:09:41 Drager, ACTION_GET_CONTENT calls some app that is capaple of filechoosing Jul 28 20:09:49 Ah ok Jul 28 20:10:22 good bye fellas Jul 28 20:15:30 Does anyone else get this? When I try to autocomplete things in any layout xml, eclipse doesn't supply any suggestions, instead it says in the bottom right Element is unknown. Not just TableRow though, any element on wich I try to autocomplete Jul 28 20:18:07 Hi, little question I got activity A launching activity B for result, Activity B launch a call intent, then hangup, and then return result. I call finish on activity B but the call log is still the activity on top of the stack. Is there a way to simply get back to activity B after a call. I assume that if I lauch a intent then it will execute all stuff from activity B again which is what i want to prevent. If I simply click b Jul 28 20:18:24 Versuchen: don't know how to do it, i need to reboot, brb Jul 28 20:19:30 like is there a REGAIN FOCUS method in android that would go straigth to the onResume Jul 28 20:19:56 or a way to call finish remotly to the call log :S Jul 28 20:24:16 if you are inspired in any keywords to might fit what im requesting I'm also a taker. I have hard time figuring out a query that will give me this type of answer Jul 28 20:24:31 hey, i'm working with gallery. How can I set snap Item to center onFling, I mean not when item got focus (it happens when you scroll like half of the screen) but when I scroll just a little bit (~100dp) Jul 28 20:26:45 mobidroid, no Jul 28 20:27:03 mobidroid, once an Activity object goes out of focus, you have to assume it has been killed Jul 28 20:28:12 mobidroid, that's what it says in the Activity life cycle documentation. You may luck out and be able to use an object of an Activity that has gone off-screen, but according to the documentation and logic, you have to assume that the off-screen Activity object was killed Jul 28 20:28:21 Ologn argg, that sad so i guess i need to save the state where it was and then call it back prior the intent, because even if she lost focus I still see the async task running my stuff in background Jul 28 20:28:43 or i need to move all these operation in a service Jul 28 20:29:39 think ill move all this in a service and then call the "master activity", well thx for the inspiration Ologn ;) Jul 28 20:29:47 mobidroid, I usually use a service. You might grab the old Activity 80%, 90% of the time, but sometimes it will be gone, I guess it depends how powerful their phone is and what else they have runnign on it Jul 28 20:30:47 Ologn, yeah it will be more stable with a service. I get used to avoid service since the damn binding work half of the time on my project :S Jul 28 20:30:52 Versuchen: any new insights? Jul 28 20:31:26 Ologn I mean the onConnect is not always called not too sure why anyway Jul 28 20:34:43 j4hr0m: first you need to be sure that you are sending the file properly Jul 28 20:37:50 Versuchen: i will later say.. of course it was this way.. Jul 28 20:40:59 j4hr0m: also, you could check the response message from your response object to see if there is something wrong sending/receiving Jul 28 21:03:55 my game has its own music. how can i make the volume buttons control only its music and not all media music? i.e. what if i want to use 'Music' with my app? Jul 28 21:12:13 ?? Jul 28 21:17:46 how can I find the max size of a string that would fit on a rectangle? Should I have a loop which calls Paint.getTextBounds() until the bounds are outside the rect? Jul 28 21:19:14 WindowsNT: i suppose you could just figure out the metrics of a single glyph and use math Jul 28 21:19:19 yes, most fonts arent monospace Jul 28 21:19:25 like q Jul 28 21:19:30 the content of the string matters Jul 28 21:19:31 something with a descnder Jul 28 21:20:50 also Jul 28 21:22:03 i 'm trying to align text vertically but it doesn't quite succeed.. Jul 28 21:22:23 It took you a minute to type that? Jul 28 21:22:44 float x = rc.centerX() - tb.width()/2.0f; similar for yes Jul 28 21:23:12 x works Jul 28 21:23:21 ydoesn't Jul 28 21:23:28 the text isn't exactly aligned Jul 28 21:57:27 How can I set up test devices for the eclipse emulator for specific phones? Jul 28 21:57:49 Like if I wanted to test my device in the "samsung galaxy s2" is there a setup I can do to replicate that? And maybe one for like a droid x2, etc Jul 28 21:57:52 is there a way to do that? Jul 28 21:58:05 that would be a cool service Jul 28 21:58:18 So it isn't possible? Jul 28 21:58:24 a db of phones and params to create avds most like it Jul 28 21:58:36 online, you might be able to find some specifications for certain phones Jul 28 21:58:40 and then you can replicate it Jul 28 21:59:08 I tried that Jul 28 21:59:12 I tried to replacate the resolution Jul 28 21:59:16 but it is obviously different Jul 28 21:59:18 yeah , but thats a pita. it would be nice to see a spot that had all the things like heap size, density, screen size etc in one place Jul 28 21:59:29 wiki says it is a 470 by 800 resolution, the emulator on my comp is huge though Jul 28 21:59:38 480* Jul 28 21:59:42 T-Dub: hmm - see the -scale option Jul 28 21:59:49 hmm Jul 28 21:59:52 let me see if I can find that Jul 28 21:59:58 i haven't used the emu in a long long time :) Jul 28 22:00:09 like -scale 0.7 or something like that Jul 28 22:00:12 yeah, i usually grab my colleagues phones Jul 28 22:00:17 emulator is just terribad Jul 28 22:00:31 I usually use my phones too Jul 28 22:00:37 well Jul 28 22:00:44 try setting the abstract lcd correctly Jul 28 22:00:50 I have a dx2 and a d1, but the ui looks great on them. My friend has a samsung galaxy and it's completetly crap Jul 28 22:00:54 the density pixels are way off Jul 28 22:01:05 and it cuts off so much it's ridiculous Jul 28 22:01:14 set abstract density Jul 28 22:01:14 abstract lcd, hmm ok Jul 28 22:01:15 -http://stackoverflow.com/questions/4533300/abstracted-lcd-density Jul 28 22:01:20 Shouldn't the Holo.Light theme have a light grey action bar? Jul 28 22:01:33 refer to the link to calculate Jul 28 22:01:43 T-Dub: also the newest ADT i think has some preview things that show your layouts in a whole bunch of ways at once Jul 28 22:02:01 I do a lot of my ui in java Jul 28 22:02:06 so i have to actually run something Jul 28 22:02:09 eek Jul 28 22:03:25 can't get around that mostly... I try to use lots of tablelayouts, they make things alot easier when positioning things via java Jul 28 22:03:35 hmmm Jul 28 22:03:36 ok Jul 28 22:03:40 so let's figure this out! Jul 28 22:03:40 sqrt(x*x + y*y)/d Jul 28 22:03:50 !calc 480*480 Jul 28 22:03:53 argh Jul 28 22:11:14 I'm using Holo.Light but the action bar is dark. What am I doing wrong? Jul 28 22:12:32 It's probably just that theme Jul 28 22:13:01 Maziz, I got the dpi all good and it's showing it the same way my friend's real phone was showing it, so I'm happy for that. But how do I get the hardware buttons to show up? Jul 28 22:13:13 It just shows 100% of the phone's screen, no back or anything Jul 28 22:13:33 How do I get an EditText to scroll instead of expanding downwards? Jul 28 22:13:41 Maziz: like so http://puu.sh/MylE Jul 28 22:13:53 Put it in a scrollview Jul 28 22:14:11 Or I'd assume horizontalscrollview because you want it to scroll to the right Jul 28 22:14:18 right, thanks Jul 28 22:14:41 it seemed odd to me that my EditText with number as inputType did this automatically, but the other one didnt Jul 28 22:14:45 i think you can add "keyboard support" in the hardware Jul 28 22:15:00 edit the AVD settings Jul 28 22:15:04 Ok thanks. Jul 28 22:17:40 no problem Jul 28 22:18:38 http://pastebin.com/gDwTt4Sq Jul 28 22:18:41 this still does not scroll Jul 28 22:19:11 i assume that is what you meant by put it in a scrollview? Jul 28 22:19:54 you can limit the size with maxlines Jul 28 22:20:20 in the editText or in the ScrollView? Jul 28 22:20:46 edittext Jul 28 22:21:17 http://developer.android.com/reference/android/R.styleable.html#EditText Jul 28 22:25:08 gah. this has me enabling the editText again. is there a way to give it no inputType at all and have the user only use the buttns specified by the app? I'm building a small boolean evaluator, and I only want the inputs (A-F), and the operators available... Jul 28 22:26:16 I've looked at creating a soft keyboard, but that seems like too much for such a small-scale application Jul 28 22:32:41 Is there a way to scale the android emulator when clicking the run for testing an app Jul 28 22:32:54 if I manually start the emulator on my own a window pops up asking me if I want to scale Jul 28 22:33:07 but if I just click run on the project it auto opens my list but doesn't allow me to scale? Jul 28 22:34:46 T-Dub: No, you'll have to start it yourself if you want to scale it unfortunately Jul 28 22:34:53 hmm Jul 28 22:34:54 dang Jul 28 22:34:55 thanks Jul 28 23:12:55 So I'm trying to convert my layout from relative to linear Jul 28 23:13:09 and im not getting why my layout is aligning itself to the left Jul 28 23:13:11 or wait Jul 28 23:13:12 fml sec Jul 28 23:14:54 wait ya i don't get it Jul 28 23:15:50 http://pastebin.com/gFaLf8tE I don't understand why everything under the first view (imageview) is appearing to the right of it (off screen) Jul 28 23:15:58 i thought linearlayouts worked it's way down? Jul 28 23:20:01 http://developer.android.com/reference/android/widget/LinearLayout.html "The default orientation is horizontal" Jul 28 23:23:17 That explains everything Jul 28 23:23:23 is there a vertical linearlayout? Jul 28 23:23:33 I hate linearlayouts. relative all the way Jul 28 23:24:38 If the default is horizontal, it must mean there is another option Jul 28 23:30:11 T-Dub, android:orientation="vertical" is what you're looking for Jul 28 23:30:22 Yeah, thanks :) Jul 28 23:31:19 but i agree with you, relative layouts are great. but tableLayouts are even more awesme Jul 28 23:33:44 It all depends on what kind of layout you're doing Jul 28 23:34:04 yeah Jul 28 23:34:19 i find tablelayouts to be rather versatile though Jul 28 23:34:19 There is no one size fits all Jul 28 23:34:30 nah, thats obvious Jul 28 23:35:36 Sure, you can make a lot of different layouts with tablelayout, or by just nesting linearlayouts Jul 28 23:35:52 (which is basically the same) Jul 28 23:36:04 But it's by no means efficient Jul 28 23:38:09 Just like making a linear row of views can be done with a relativelayout is possible, doesn't mean you should Jul 28 23:59:38 Well I love relative layout Jul 28 23:59:41 and have always used it Jul 28 23:59:54 but it has been brought to my attention that my ui is horrible on a specific device Jul 29 00:00:05 so im changing everything to linearlayout and useing weight sum Jul 29 00:00:07 rather than dp Jul 29 00:00:29 although I have to redo everything Jul 29 00:00:35 im slowly getting it, and it seems to be pretty nice now Jul 29 00:21:34 T-Dub: You could just improve how you use relative layouts. Jul 29 00:21:49 Easier said then done. Jul 29 00:21:54 Not every just knows everything. Jul 29 00:21:58 I improve as I learn Jul 29 00:22:13 For example I have a more universal layout now Jul 29 00:22:23 Well, you're not going to learn anything about RelativeLayout by using LinearLayout. Jul 29 00:22:27 it looks nicer even on my bigger screens where dp wasn't an issue Jul 29 00:22:53 Just because there was improvments I could make on my relativelayout doesn't mean using a relativelayout over a linearlayout in this case is a better choice. Jul 29 00:23:09 RelativeLayout is the one true layout to rule them all. Jul 29 00:23:20 For all I know using a linearlayout is the more appropriate approach and from the beginning I was doing it wrong. I don't know. Jul 29 00:23:35 Well that seems a tad bit one sided :P Jul 29 00:23:58 My precioussss layout. Jul 29 00:25:27 Lol. Jul 29 00:25:34 Well I would agree with you know, I like it a lot better. Jul 29 00:25:50 But my rations are a lot nicer using weightsum for the layouts rather then dp Jul 29 00:26:02 on my smaller screens it looks nice and compact Jul 29 00:26:26 and on my big screens it looks nice and proportionate and centered Jul 29 00:26:36 rather than perfect on small screens and bloated on big screens Jul 29 00:27:42 anyone bored? I am working on an opensource project for Games and Graphics in Java, Currently I'm working on a TileMap component that will for now display a grid of tiles in layers.. so roads are on top of terrain for example.about to start some xml file work Jul 29 00:43:13 When I change my Spinner's background color, I lose the bottom right arrow Jul 29 00:44:15 That is the background Jul 29 00:45:14 right hmm Jul 29 00:45:28 so I just overwrote the Spinner's default background with a solid color Jul 29 00:46:35 yep Jul 29 00:47:42 ok thx Jul 29 01:10:43 I have a string-array and I am trying to apply to some of the items, but it is not working. I see the text, but it is not striken. http://pastebin.com/5XEFXnnF Jul 29 01:11:22 Strike it harder Jul 29 01:11:50 drpenguin, i gave it all ive got! Jul 29 01:12:21 then you are weak Jul 29 01:12:22 :P Jul 29 01:12:34 I kid I kid Jul 29 01:12:48 any thoughts on whats up with this? Jul 29 01:16:04 nothing works no bold or italics, nothing... Jul 29 01:16:50 The stringbuffer is probably stripping the styling Jul 29 01:17:00 Try escaping the tags and manually calling Html.fromHtml Jul 29 01:18:08 SimonVT, escape the tags in the xml file? Jul 29 01:18:22 yes Jul 29 01:18:27 where do i call Html.fromHtml? Jul 29 01:18:35 in the java? Jul 29 01:18:46 Can't really call it in xml Jul 29 01:19:19 Set the textview text to the result Jul 29 01:19:46 \Blah.\ gives error Jul 29 01:20:41 I mean, make the strange %32asd32 things instead of <> Jul 29 01:21:01 oh Jul 29 01:25:12 yea, same issue Jul 29 01:25:53 SimonVT, %3Cstrike%3EBlah.%3C/strike%3E throws xml error Jul 29 01:26:45 < < Jul 29 01:26:45 > > Jul 29 01:26:51 From first hit when searching for xml escaping Jul 29 01:30:34 SimonVT, Nope that causes an error too in the xml. and i removed the string buffer and just appended to the TextView. Same result. Jul 29 01:31:26 Then String probably can't hold the style information Jul 29 01:33:46 Also, I get no xml errors with those tags Jul 29 01:34:31 sorry i forgot the ';' but it still isnt styling.... Jul 29 01:34:53 Im now just using tv.append(item/string) Jul 29 01:34:59 no string buffer Jul 29 01:35:10 It probably uses a stringbuffer internally Jul 29 01:35:15 And you're not calling Html.fromHtml Jul 29 01:36:27 Anyway, I'm off Jul 29 01:36:40 Im going off of this example: https://developer.android.com/guide/faq/commontasks.html#selectingtext but the id="@+id/name" stuff throws an error saying string needs a name Jul 29 01:39:13 Anyone still on that can help me with an issue in the app I am working on? **** ENDING LOGGING AT Sun Jul 29 02:59:58 2012