**** BEGIN LOGGING AT Sat Feb 04 02:59:58 2012 Feb 04 03:24:11 Silly question, but where in eclipse can I see messages logged with Log.i(foo)? Feb 04 03:25:39 logcat Feb 04 03:26:26 As4xk: I'm not seeing anything in there Feb 04 03:26:33 (I'm in the DDMS perspecctive) Feb 04 03:26:43 doing adb logcat works Feb 04 03:28:04 try selecting your device in the devices view in DDMS Feb 04 03:29:20 As4xk: select as in double-click? Should the messages show up then? Feb 04 03:29:44 (because they're not...) Feb 04 03:31:11 single click. I have experienced thet logcat does not show anything. and selecting my device there fixed it. If this does not fix it, then i'm sorry, but dont know whats wrong Feb 04 03:31:38 you have selected all mesages (no filters) in logcat? Feb 04 03:59:54 hey peeps, what's up?!? Feb 04 04:00:19 so what's preferred here, pastebin or something ? Feb 04 04:00:24 nm, looking at this free blackberry promotion O: Feb 04 04:00:39 else, something else? Feb 04 04:00:59 havoc: I'm new here, but I'd guess pastebin would be fine? Feb 04 04:01:56 kk, i have an issue with a member variable not initializing in the constructor, it's declared as public final int, but won't initialize when created Feb 04 04:02:51 the weird part about it is, i have two public final integers, one is an array. The array initializes just fine Feb 04 04:03:30 i'm new to android development and java for that matter, I'm a c/c++ programmer, but I can't figure this thing out Feb 04 04:03:51 any thoughts anyone ? Feb 04 04:04:06 Can you explain what you mean by "initialize when created"? Feb 04 04:04:25 i'll paste bin it….. gimme a sec..... Feb 04 04:04:54 You just have to assign a value to every final variable member by the end of each constructor. Feb 04 04:05:49 Also, ... final T[] is an easy bug. Feb 04 04:05:58 final just means the variable cannot be rebound. Feb 04 04:06:07 The contents of the array can still be modified though. Feb 04 04:06:21 So, you can change the members of the array, but you can't change which array it is Feb 04 04:07:43 ok, here ya go: http://pastebin.com/tn2ipprb Feb 04 04:07:47 If you need the members of the array to be immutable, Feb 04 04:07:48 I would suggest Feb 04 04:07:55 public final List foo; Feb 04 04:07:56 ... Feb 04 04:08:11 foo = Collections.unmodifiableList(Arrays.asList(a, b, c, d, ...)); Feb 04 04:08:13 ok, i see what you mean now, but i am initializing them in the constructor Feb 04 04:08:40 what's the error? Feb 04 04:09:33 the array is initialized correctly, but the integer is initialized as it's size, e.g. 2131034112 Feb 04 04:09:44 what are the reasons i can get foreign key mismatch? Feb 04 04:10:05 even though i see that values are correct, i still keep getting foreign key mismatch Feb 04 04:10:06 havoc74: ...what's the error? :P Feb 04 04:10:31 well, the first number represents the size of the array, which is supposed to be 38, but shows as 213… Array Out Of Bounds Exception Feb 04 04:11:22 i suppose i could do with out the array size holder and just use the array.size() member... Feb 04 04:11:22 is it bit weired that sqlite does not support long, where android insert method returns id as long? Feb 04 04:11:31 havoc74: That code is fine. Feb 04 04:11:40 You're probably just passing an incorrect number. Feb 04 04:11:45 And yeah, just use array.size(). Feb 04 04:11:47 it's doesn't work when used in a for... loop Feb 04 04:11:47 KISS. Feb 04 04:12:01 I think your bad code is elsewhere. Feb 04 04:12:09 yeah, that could be true.... Feb 04 04:12:12 Use a debugger to find where the value changes. Feb 04 04:12:25 i am initializing it using a resource reference Feb 04 04:13:06 i'll just do it the kiss way….. thanks for verifying my code though, i thought i was losing it…. lol Feb 04 04:13:17 so, i guess the insertion is failing coz id type is long, and in sqlite id type is integer Feb 04 04:14:56 02-04 05:14:39.738: INFO/Database(338): sqlite returned: error code = 1, msg = foreign key mismatch Feb 04 04:14:56 02-04 05:14:39.749: ERROR/Database(338): Error inserting note_fk=1 item_text=tomas Feb 04 04:14:56 android.database.sqlite.SQLiteException: foreign key mismatch: , while compiling: INSERT INTO note_item(note_fk, item_text) VALUES(?, ?); Feb 04 04:15:04 sorry for pasting code Feb 04 04:15:07 i will use pastebin Feb 04 04:15:28 http://pastebin.com/hPvMFMXg Feb 04 04:16:28 tad a!! yeah, i should have known the kiss method would work - always does :) Thanks again !! Feb 04 04:17:43 any idea why i am getting that exception? Feb 04 04:27:39 well I'm new, and I wish I could help you, but I haven't even started to code yet. Still configuring eclipse Feb 04 04:47:38 how does one get understanding on how to use a class from the android API..it does not tell me how to create this class Feb 04 04:48:06 calling new (); doesnt work Feb 04 04:53:45 Anyone care to look at this? It's the output from building the project, uploading, and running ndk-gdb on the process. When the app crashes (induced) the wrong line is reported in gdb. https://github.com/Starlon/AndroidGDBBug/blob/master/output.txt Feb 04 04:54:25 Feel free to try for yourself; that's why I made a git repo out of it. Feb 04 05:53:29 hey I need some help with intent filters for opening a url in an app. I've got it working for just host but whenever I add the android:path parameter it just doesn't work :/ Feb 04 05:57:03 my intent filter looks like this Feb 04 05:57:03 https://gist.github.com/1735716 Feb 04 06:00:01 hi Feb 04 06:00:17 I was trying to use adb but it doesn't really work: http://fpaste.org/sGUN/ Feb 04 06:00:26 does someone have an idea what is going wrong/what I need to do from here? Feb 04 06:06:37 DallaRosa: put a '/' prefix on your paths Feb 04 06:07:40 I think it needs it in intent filters. I just checked one of my projects that captures http urls, and I have used paths with a leading / Feb 04 06:14:18 satori99: hey! thanks! Feb 04 06:14:25 that works Feb 04 06:14:29 worked Feb 04 06:28:21 Hi all,i'm passing JSON in android to another webservice.Is there any way to verify the parameters that i'm actually passing over in android? Feb 04 06:28:38 To verify that its actually passing in JSON Feb 04 06:53:29 is there any way of checking what values are passed actually in a android webservice in JSON? Feb 04 07:05:49 I feel like you're just throwing in keywords trying to explain what you want... Feb 04 07:06:09 you want to check what values are being sent from the android device to a webservice on another server? Feb 04 07:07:56 Yeah,i need to deserialize the JSON string passed Feb 04 07:08:12 so... do that Feb 04 07:08:37 deserialize it on what end? Feb 04 07:08:54 not that it makes a difference Feb 04 07:09:49 i might offer a reward for fixing bugs Feb 04 07:09:51 what's a good amount? Feb 04 07:10:02 1.21 JiggaWatts! Feb 04 07:10:29 like cash reward or like SO Bounty? Feb 04 07:11:47 cash Feb 04 07:12:26 guess I could define a different amount for each Feb 04 07:12:32 based on estimated complexity Feb 04 07:12:44 Getting down to srs biznesssss Feb 04 07:13:08 this for fixing bugs in ABS and your other projects? Feb 04 07:13:51 just ABS Feb 04 07:13:57 i need to get 4.0 RC1 out the door Feb 04 07:16:57 I'm trying to draw incrementing numbers on my camera preview .. similar to this article http://imrannazar.com/Augmented-Reality-with-the-Android-NDK:-Part-1 ... But for some reason the numbers are displayed on top of each other ! Feb 04 07:17:22 the canvas is not cleaned after each number is displayed Feb 04 07:23:11 wow, alarm manager + intent service rocks Feb 04 07:23:43 well,deserialize it on a C# webservice Feb 04 07:24:01 Hey, I know you you shouldn't have the Constructor of subclass of Activity with parameters Feb 04 07:24:05 but I don't know why Feb 04 07:24:36 I've been asked why putting parameters wouldn't let the activity start but I just don't know how to answer that Feb 04 07:27:27 I'm checking the class' source but I can't really see anything Feb 04 07:28:22 ya and i know.... i knowwwwwwwww because of KRS 1 Feb 04 07:28:57 be a producer! Feb 04 07:32:39 ViewPager shows the left/right hints when you reach the end automatically right? Feb 04 07:33:19 found the answer to my question http://stackoverflow.com/a/6995087/452430 Feb 04 07:34:28 ah Feb 04 07:34:29 nevermind Feb 04 07:34:33 <-- idiot Feb 04 07:38:55 right.. is there a way in eclipse to actually resolve git conflicts? Feb 04 07:58:52 is anyone up in here?? Feb 04 07:59:00 need some feedback Feb 04 07:59:03 hello, I'm working with alertDialogs and when calling finish(); from the dialog onClickListener method, the activity exits but then the program force closes saying "did not call through super.OnDestroy();" Feb 04 07:59:12 not quite sure how to solve this Feb 04 08:00:02 dlaroche, on what? Feb 04 08:00:34 What is the best way to send mouse commands over wifi?? For instance, do you just use an Enum system, or would you send a Serialized object over wifi? Feb 04 08:00:39 nevermind, I figured it out Feb 04 08:00:40 thanks Feb 04 08:01:43 Right now I am using java.io for both the client and server Feb 04 08:02:26 I am using a Serialized object which is a very simple object that has a few integer fields to hold the mouse x,y position Feb 04 08:03:15 sorry that's way beyond my thinking level at 3am Feb 04 08:03:20 going to bed Feb 04 08:03:21 night Feb 04 08:03:45 The communication is great, except for the fact that some how I keep getting corrupt data in on the server side where my Y variable starts climbing in to the 40K-50K range while it's throwing errors Feb 04 08:04:01 good night Feb 04 08:04:38 I will check out the Java channel as this is probably more a pure Java implementation question if anything Feb 04 08:20:06 do i need to rephrase the question?? Feb 04 08:20:35 surely somebody has some input on network IO Feb 04 08:21:18 does anybody have experience with ObjectStream's?? Feb 04 08:23:04 I can sit here all night, and keep asking my question Feb 04 08:23:18 Ravensoul: you looking for help? Feb 04 08:23:47 Anyone has experience in android webservices in JSON? Feb 04 08:23:58 yes Feb 04 08:24:25 no i don't dlaroche Feb 04 08:24:34 i'm doing JSON webservice where i have to pass user/password,and return the result of the database query Feb 04 08:24:36 good maybe you can help me with mine then Feb 04 08:25:04 Zenix11: are u connecting with your own server? Feb 04 08:25:10 yes,i'm hosting it in IIS Feb 04 08:25:21 <-Shakes is head Feb 04 08:25:23 ok Feb 04 08:25:36 so what is your specific question related to this? Feb 04 08:26:42 since its passing in username and password in JSON,i'm wondering whether i need to specify 2 parameters in my webservice Feb 04 08:27:22 explain further, the 2 parameters, what do you mean? you do want to get the both of them in the same request Feb 04 08:27:59 yeah,i would need both parameters in 1 request Feb 04 08:28:22 are you asking how to do this, or something else? Feb 04 08:28:33 just trying to understand you here so we are on the same page Feb 04 08:28:47 I'm bored and want to help Feb 04 08:29:55 i'm asking about whether its fine to pass in only 1 string in JSON for username/password to my webservice Feb 04 08:30:13 and at the other end,deserialize that only string Feb 04 08:30:24 and return a int result Feb 04 08:30:43 Zenix11: yeah that is fine, it would work, but think about it like this Feb 04 08:31:12 uhhuh Feb 04 08:31:15 first you are putting extra load on the server, by making it decode the string Feb 04 08:31:33 JSON is setup to send multiple data items, so use it Feb 04 08:31:59 so i should actually send 2 different parameters instead? Feb 04 08:32:02 then you can get your variables from the incoming JSON Feb 04 08:32:06 I would Feb 04 08:32:21 JSON can handle it fine, and was designed to do so Feb 04 08:32:27 Alright Feb 04 08:32:30 also Feb 04 08:32:39 you can't just return an int Feb 04 08:32:48 do you know why? Feb 04 08:33:17 hmm..no idea Feb 04 08:34:11 since this is probably related to a login scheme, I'm assuming, then you what happens if say.....a hacker comes along Feb 04 08:34:40 I'm tripping up the error at http://androidxref.com/source/xref/dalvik/vm/reflect/Proxy.cpp#975 - "null result when primitive expected" NPE when calling bindService - has anyone else gotten this? BT: http://pastebin.com/6NNyfCQp Feb 04 08:34:55 HashMap.put itself is erroring out... Feb 04 08:35:01 all he has to do is intercept the network traffic and inject a packet back to your app with either a 0 or 1 to indicate an authenticated login Feb 04 08:35:28 vadi2: i'm the only one awake in here helping people so hold on, I will get to you Feb 04 08:35:40 okay, thanks Feb 04 08:36:03 vadi2: is the JNI related?? Feb 04 08:36:21 yeah,there would be security issues Feb 04 08:36:25 Zenix11: are you understanding Feb 04 08:36:29 ok Feb 04 08:36:37 Well, the error is coming out deep from within it, yes Feb 04 08:36:37 so what you need to do is....this Feb 04 08:36:45 Only http://androidxref.com/source/xref/dalvik/vm/reflect/Proxy.cpp#975 raises that particular msg Feb 04 08:36:52 vadi2: but your aren't working in JNI Feb 04 08:37:11 Okay, well, dalvik vm Feb 04 08:37:23 Oh Feb 04 08:37:28 Sorry, I am working with JNI Feb 04 08:37:47 The objects I'm passing to bindService are made with JNI's assistance Feb 04 08:38:05 but since i can't pass an int,would a string be fine? Feb 04 08:39:19 Zenix: no, you don't want to pass nothing to the server unencrypted or pass nothing back unencrypted Feb 04 08:39:45 so i should just encrypt it with something to be secure Feb 04 08:40:07 since this involves authentication you will want to encrypt everything. I was trying to find some good articles for you on Google pertaining to this, but you will have to search it yourselft Feb 04 08:40:14 Sure Feb 04 08:40:16 You should be good to go on the right track though Feb 04 08:40:21 Would passing in something like {"password":"test","username":"tester"} be considered 2 parameters? Feb 04 08:40:29 yes Feb 04 08:40:53 vadi2: explain further please! Feb 04 08:41:15 that's what i'm passing after i checked,so i suppose the problem's actually on the other end Feb 04 08:42:24 zenix: since i'm really bored, do a pastbin.com of the code you got, and I will look through it. Looks like vadi2 stopped responding so I can continue to help you. Feb 04 08:42:35 Well, http://pastebin.com/wSW0xJRE is what I do Feb 04 08:42:48 oppps.... Feb 04 08:42:48 And it crashes deep in bindService: http://pastebin.com/6NNyfCQp Feb 04 08:42:49 ok Feb 04 08:43:09 The objects get initialized properly, I'm fairly certain Feb 04 08:43:35 Hmm alright Feb 04 08:43:52 vadi2: sorry bro, but I don't mess with JNI yet... Feb 04 08:44:14 I'll wait then Feb 04 08:44:25 I'm strictly Java, and web languages, besides some C++, Visual Basic, yada yada Feb 04 08:44:43 but I'm not familiar with JNI Feb 04 08:45:05 it has it's own way of doing things, even though it is C Feb 04 08:45:06 Why do you suspect it's the JNI? Feb 04 08:45:24 Pastebin's here http://pastebin.com/Ue0DgfMZ Feb 04 08:45:52 I don't, but since you are trying to interface with JNI, from the looks of it, I don't know it Feb 04 08:46:36 Not really sure i'm doing it correctly,but i hope so Feb 04 08:46:52 Zenix11: where do your userID and password variable get initialized?? Feb 04 08:47:20 Inside onCreate Feb 04 08:50:08 Zenix11: i have spotted a few miss understandings that you have on the way you are passing things with JSON. Google "android json authentication example" and start reading. It appears that your flow logic on how things should be processed is right, but you need to take a closer look at how you are putting together your JSON object before it is sent Feb 04 08:50:30 Hmm alright,thanks a lot Feb 04 08:51:15 Zenix11: Android doesn't have any packages that really make JSON easy Feb 04 08:51:38 Yeah,but i'll try Feb 04 08:51:40 but there are external libraries that are worth looking into that do make it easier Feb 04 08:52:17 you are trying to re-invent the wheel Feb 04 08:52:42 You don't even have error handling implemented, and there is a lot when dealing with network IO Feb 04 08:53:14 it should be in async task too Feb 04 08:53:40 Zenix11: if you understand on how to implement other libraries then you should check out this one Feb 04 08:53:41 http://code.google.com/p/android-json-rpc/ Feb 04 08:54:00 yes, java IO task normally do what is called blocking Feb 04 08:54:17 which halts the flow of execution until it receives a response back Feb 04 08:54:56 it would..hang the application even probably Feb 04 08:55:49 oh yeah Feb 04 08:55:52 definetly Feb 04 08:56:06 yeah,i was only trying to get it work and fix it later Feb 04 08:56:47 i am working on something similiar with java io, but with a client/server implementation so I am pretty up to this Feb 04 08:57:01 Zenix11: wrong approach buddy Feb 04 08:57:54 take everything a step at a time, and remember that java is OOP, so everything is pretty much all "plug and play modules" Feb 04 08:58:16 i meant,getting the correct values returned by testing,and moving all code to background tasks Feb 04 08:58:22 i would recommend reading up first on how network authentication happens, and the security behind it Feb 04 08:58:36 then read up on the JSON library link I sent you Feb 04 08:58:41 it should all come to you then Feb 04 08:59:11 put your project aside for a few hours, and read up the suggested material Feb 04 08:59:21 hmm alright,i'll do that then Feb 04 08:59:26 Zenix: it doesn't work like taht Feb 04 08:59:47 you might get aways with sending one packet with out using threads/asynctask Feb 04 09:00:14 you have to program it solid foundation from the ground up when dealing with IO Feb 04 09:00:38 I have discovered that, and am struggling on passing objects over the network now Feb 04 09:00:42 grrrrrr Feb 04 09:01:19 but nobody is awake in here to help me with it, so I thought I would just be an example and start helping others Feb 04 09:01:31 Hmm okay Feb 04 09:01:58 Say I'm a lazy bastard who's tired (and fed up) with all the different languages, and only wants to use one language or framework to be able to develop for as many devices as possible..... it seems there are quite a few options then. Like Qt, J2ME Polish, LWUIT....... and most likely many others... Feb 04 09:02:26 Any particular solution that (in your opinion) stands out, and is the only logical obvious choice? Feb 04 09:03:04 JAVA!!!???!!!! Feb 04 09:03:16 you program once, and the JVM handles the rest Feb 04 09:03:29 Android doesn't run java Feb 04 09:03:37 lol Feb 04 09:03:38 nor j2me Feb 04 09:03:46 explain how it doesn't run java????? Feb 04 09:05:14 so you are saying i can't program an app in Java and it not run on an Android powered device mr_lou???? Feb 04 09:05:19 I want to hear this Feb 04 09:05:21 It is true that you use the Java language to code. But technically (and legally) you can't say Android runs java. Too lazy to discuss that. For now let's just settle for the fact that you use a ton of Google specific classes to develop for Android. Therefor, whatever you dev for Android will not run anywhere else. Feb 04 09:06:10 but it does include some default Java languages, and does get converted to a byte code from my understanding on run time Feb 04 09:06:37 but i don understand the last part Feb 04 09:06:41 I want to "write once, run anywhere".... run on J2ME, Symbian, Windoze Phone 7, Android, iPhone... in other words, some SDK that let's me code using only one language, and compiles into binaries for lots of platforms. Feb 04 09:07:02 or use phonegap, and use javascript Feb 04 09:07:15 mr_lou: i have been kinda following some development like this, but nothing promising yet Feb 04 09:07:41 satori99: but then again you can't run on pc's, or other devices Feb 04 09:07:53 Phonegap claims support for 7 platforms, uses html5 and js, but I have never used it Feb 04 09:07:56 True, unless the SDK / Framework also compiles into that platform. Feb 04 09:07:59 *for Feb 04 09:08:38 I learned J2ME because it was the language that ran on most platforms. Then comes Google and Apple and messes everything up for me. Feb 04 09:08:45 satori99: i have looked into it, but it very limited on it's ability. Right now development tools like that are focused towards making simple business front apps, and such Feb 04 09:09:08 Have been looking at some Android coding, and even coded a few abstraction classes so that I can stick with my J2ME coding style. Feb 04 09:09:11 i have exp with it at all. Feb 04 09:09:33 ^no Feb 04 09:09:46 This here is interesting for porting J2ME to Android. http://www.assembla.com/spaces/j2ab/wiki Feb 04 09:09:50 But I'd like more than that. Feb 04 09:09:50 mr_lou: why would u do such a thing Feb 04 09:10:23 dlaroche, Coz I'm lazy. I wanna support more than just J2ME devices, but too lazy to port my J2ME stuff for e.g. Android and Windoze Phone 7 and iPhone. Feb 04 09:11:25 mr_lou: I just jumped in the realm of mobile device programming, but I have learned your frustration, and know what a pain everything is Feb 04 09:11:31 Code once using J2ME, and compile to those platforms would be nice. There's absolutely no reason whatsoever why Android can't run J2ME. Well... the reason is of course that Google won't pay Oracle for the license. All other smartphones (except iPhone) can run J2ME. Feb 04 09:12:04 I do understand Google's decision though. Feb 04 09:12:34 Waiting for MIDP evolution is really something that seriously tested everyones patience. Feb 04 09:12:52 i think it had a lot to do with them wanting to tie their low level stuff to a familiar language Feb 04 09:12:59 nah Feb 04 09:13:17 They just wanted to avoid need approval from anyone else, when they wanted to implement extra features. Feb 04 09:13:18 It's clever. Feb 04 09:13:58 never thought of it like that Feb 04 09:15:12 That's also the only good part about it. Feb 04 09:15:32 Android developers all over the world don't have to wait like J2ME developers have done for ages, when they crave for new features. Feb 04 09:16:00 Heh... since when? There are so many android devices running old versions. Feb 04 09:16:28 Still... for lazy coders like me, I'm honestly surprised there still doesn't seem to be any tools to directly port J2ME bytecode to Android bytecode.... simply convert a JAR to APK. Feb 04 09:16:58 Maybe that's too hardcore. But then at least some tool that can compile J2ME source code directly into Android APK. Feb 04 09:17:15 Of course it can be done. Feb 04 09:18:02 vadi2, I mean J2ME developers would have to wait years before some suggested new feature of the next version of MIDP was approved by all parties. Not so with Android. Feb 04 09:19:01 Yes, that's certainly true - I've read what Google wrote themselves that they couldn't accept the slow pace Feb 04 09:19:11 I think on their defence of creating Dalvik Feb 04 09:19:45 Yea, that's why they went that way. Feb 04 09:20:34 And that's ok. I understand that. It's just annoying for J2ME devs like me that my (much simpler J2ME stuff compared with Android) stuff can't just run on Android devices. Feb 04 09:21:40 I'd look about, I've seen some similarly-looking games in the market. Maybe people ported some things and put up tips Feb 04 09:21:55 hi ... someone could tell me why the icon on notification bar when a nitification intent is sent is not resized anymore ? Feb 04 09:22:39 vadi2, I have a feeling I'll just end up paying people to port my stuff. Feb 04 09:22:44 vadi2, I'm that lazy! :-> Feb 04 09:25:00 as long as it still brings in a profit! Feb 04 09:25:54 is it possible to apply a theme for a fragment only? Feb 04 09:28:57 hi i've installed android sdk and eclipse but i'm having difficulty in configuring them. please help me Feb 04 09:32:36 hey guys, I'm getting "R cannot be resolved to a variable" in eclipse. I've googled this, and deleted my line that imported android R, but the error is still shown. How do I fix this? Feb 04 09:33:54 this is the exact problem I have, except deleting the line for importing android R isn't fixing it: http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error Feb 04 09:35:59 hi i've installed android sdk and eclipse but i'm having difficulty in configuring them. please help me Feb 04 09:36:26 arunkumar: what's the problem with the android sdk and eclipse? Feb 04 09:36:39 are you trying to add the android ADT to eclipse? Feb 04 09:37:45 arunkumar413: ^ Feb 04 09:38:10 Snuupy: yes Feb 04 09:38:16 Snuupy: look in your XML files to see if there is any error....a lot of the times Eclipse struggles with spotting and keeping up with errors associated with your XML files Feb 04 09:38:30 thanks dlaroche, I'll take a look Feb 04 09:38:38 sometimes it wont even let you know there is an error with them Feb 04 09:38:41 arunkumar413: okay, go to help-->install new software Feb 04 09:39:18 Snuupy: ok Feb 04 09:39:21 arunkumar413: read this: http://developer.android.com/sdk/eclipse-adt.html Feb 04 09:39:30 arunkumar413: the generated R file has nothing to do with what you are suggesting. It might help it from happening again in the future but it won't fix his current problem Feb 04 09:39:32 if you don't understand anything on that page msg me Feb 04 09:39:57 I just started doing this today, but I'll try to help (: Feb 04 09:40:03 Snuupy: yeah i've gone through that. I'm getting an error Feb 04 09:41:02 Does anyone have experience with sending serialized objects over sockets/network? Feb 04 09:41:19 arunkumar413: what's the error? Feb 04 09:41:27 Snuupy: this is error i'm getting http://pastebin.com/dWcZ8Y10 Feb 04 09:41:48 are you sure you installed the sdk? Feb 04 09:42:00 looks like you Feb 04 09:42:04 need the sdk tools or something Feb 04 09:42:07 exactly Feb 04 09:42:13 that's what i was going to suggest Feb 04 09:42:22 Snuupy: i downloaded the sdk and unzipped it Feb 04 09:42:24 your SDK directory is probably wrong or not setup Feb 04 09:42:25 I'd run sdk manager Feb 04 09:42:43 you have to tell Eclipse where to find the SDK Feb 04 09:43:09 dlaroche: how to tell eclipse Feb 04 09:43:10 haha, try looking at thenewboston's youtube videos Feb 04 09:43:22 he explains it there - that's what I'm following Feb 04 09:43:30 Snuppy: they are excellent tuts for beginners Feb 04 09:43:38 good :D Feb 04 09:43:42 i will find it Feb 04 09:43:52 youtube it Feb 04 09:44:59 http://www.youtube.com/playlist?list=PL2F07DBCDCC01493A&feature=plcp Feb 04 09:45:24 oh wow, started a new project and the error's gone! Feb 04 09:45:27 start with tut 1 and go through to about 3-4 to ensure everything is configured, and installed correctl Feb 04 09:45:32 ^correctly Feb 04 09:45:40 lol Feb 04 09:45:42 dlaroche: yeah, had to view them like 3 times on one vid xD Feb 04 09:45:44 he was going fast Feb 04 09:45:51 yeah he does Feb 04 09:46:06 but I learned all my knowledge from reading tuts Feb 04 09:46:21 cool Feb 04 09:46:29 I'm trying to cram learning app development Feb 04 09:46:32 then I usaually fall asleep watiching Android development videos now Feb 04 09:46:41 I just gotta make an app that has two functions Feb 04 09:46:52 yeah I'm new to mobile device programming too Feb 04 09:46:58 explain?? Feb 04 09:47:04 uhh Feb 04 09:47:11 so there's this new blackberry playbook promotion Feb 04 09:47:23 if you're a dev, you could qualify for a free playbook Feb 04 09:47:36 http://us.blackberry.com/developers/tablet/playbook_offer2012.jsp Feb 04 09:47:42 i'm not familar with blackberry development Feb 04 09:47:47 Snuupy: those tutorials are for mac Feb 04 09:47:54 arunkumar413: same for windows, or almost the same Feb 04 09:48:14 yeapers Feb 04 09:48:15 Snuupy: i use linux Feb 04 09:48:16 dlaroche: you program an android app then convert it to the playbook app Feb 04 09:48:25 arunkumar413: oh...haven`t touched linux much Feb 04 09:48:29 sorry Feb 04 09:48:34 Eclipes was programmed in Java so it will function and look almost the same on any OS Feb 04 09:48:58 dlaroche: then if it qualifies under the TOS, you get a PB Feb 04 09:49:12 what is a PB Feb 04 09:49:20 free marketing?? Feb 04 09:49:47 blackberry playbook Feb 04 09:50:00 uhh, they want devs for developing PB applications I guess Feb 04 09:50:17 I think that's why they're giving out playbooks to developers Feb 04 09:50:19 hmmmm....it's all new to me....like i said im new to mobile device programming. Android is my first OS Feb 04 09:50:39 yeah, same here Feb 04 09:50:48 like I said earlier, started today xD Feb 04 09:50:58 but I know java - from the console in class Feb 04 09:51:05 i make about $400-500/month right now with just two apps Feb 04 09:51:07 I just don't know much about android dev Feb 04 09:51:12 dlaroche: nice, which two apps? Feb 04 09:51:41 Free Field Caller - Deer Calls, and Free Field Caller - Elk Calls Feb 04 09:52:03 they are hunting apps that make animal calls Feb 04 09:52:08 lol nice Feb 04 09:52:10 paid? Feb 04 09:52:26 yes, but i don't get nothing on the paid versions Feb 04 09:52:32 oh, ads then? Feb 04 09:52:34 i make all my money on the ads on the free ones Feb 04 09:52:50 haha nice Feb 04 09:53:01 mainly push notifications which i hate, but they bring the money in right now Feb 04 09:53:36 i'm working on one now that will interface your Android tablet with Photoshop, and allow you to do all kinds of cool things Feb 04 09:54:39 cool Feb 04 09:55:07 that one should bring in mass amounts of paid version income.... Feb 04 09:55:40 lol that's true Feb 04 09:55:55 I like HTML > XML Feb 04 09:56:04 a lot of the features will be locked out on the free one, but you can either unlock features with in-app purchase, or getting the paid version which I think I will set at $4.99 Feb 04 09:56:04 but maybe that's because XML is super new to me Feb 04 09:56:20 dlaroche: adsense for in app ads? Feb 04 09:56:34 they are the same syntax, just different element names Feb 04 09:56:41 lol...HELL NO Feb 04 09:57:13 adsense is the most reliable in my opinion, but pay like 75% less then other ad providers Feb 04 09:57:34 lol, what ad network are you using? Feb 04 09:57:37 I'm using a combination of Double Click for Publishers, Airpush, and Leadbolt Feb 04 09:57:51 cool, thanks Feb 04 09:58:13 how long have you been a dev? Feb 04 09:58:15 i just swtiched over to airpush, but the results so far have surpassed Leadbolt's payout Feb 04 09:58:22 3 months Feb 04 09:59:01 everybody on this channel get's made at me because of how long I have been in the mobile environment, and make what I do Feb 04 09:59:19 I was smart about it Feb 04 09:59:30 I seen most my installs were the free version Feb 04 09:59:44 so I tried out different ad networks for one week each Feb 04 10:00:09 took the highest paying one at the end of the week for each type of ad i was serving and went with them Feb 04 10:00:24 I get CPM's around $80 Feb 04 10:00:30 that's goundbreaking stuff man, you're so smart Feb 04 10:00:55 selckin: your a perfect example of what I'm talking about Feb 04 10:01:10 you're Feb 04 10:01:16 lol Feb 04 10:01:24 wow Feb 04 10:01:24 trying to help somebody, and you want to jump in the room and start talking down Feb 04 10:01:31 XML is making me mad D: Feb 04 10:01:56 if you want two text fields, you gotta them seperately? Feb 04 10:02:10 yeah, it tripped me up from the beginning too, because Android uses it's own elements I wasn't familiar with Feb 04 10:02:15 yes Feb 04 10:02:32 and they have to have different ID's Feb 04 10:02:41 wait, IDs? Feb 04 10:02:46 of course, so you can differentiate them in Java Feb 04 10:02:47 they don't have an ID... Feb 04 10:02:50 lol Feb 04 10:02:51 O.o Feb 04 10:02:53 yeah they do Feb 04 10:02:55 they do? Feb 04 10:03:03 I didn't assign them an ID Feb 04 10:03:05 they're just text Feb 04 10:03:09 not variables Feb 04 10:03:12 how do you think you access them from your Java code?? Feb 04 10:03:16 no Feb 04 10:03:31 they are a View object from inhertance Feb 04 10:03:51 could you say that in coherent english please? xD Feb 04 10:03:52 snuppy: you got some reading to do buddy Feb 04 10:03:58 yeah, I do Feb 04 10:04:09 ok Feb 04 10:04:11 dlaroche: I'm not accessing them from my java code, they're just text put in Feb 04 10:04:11 hold on Feb 04 10:04:13 k Feb 04 10:04:18 oh Feb 04 10:04:23 yeah then that will work Feb 04 10:04:32 yep Feb 04 10:04:35 the buttons have ids Feb 04 10:04:57 what does the @override do? Feb 04 10:05:01 but if you want to later change the text based on something that happens from your Java code, then you will need to access them through their ID Feb 04 10:05:11 alright, thanks^ Feb 04 10:05:32 do I have to initiate my variables before the @override? Feb 04 10:05:39 @Override tells the compiler that you are over riding or superceding a parent class Feb 04 10:06:25 but I don't have code before it... Feb 04 10:06:27 yes, if you don't intialize them in onCreate, then you will want to intialize them when you declare them Feb 04 10:06:37 what do I the override for? Feb 04 10:07:10 so can I just do int variable = "3" after the override, inside the onCreate method? Feb 04 10:07:35 instead of int variable before the method, and variable = 3 inside the method? Feb 04 10:08:34 yes if you want. it depends on the flow of your logic. I would also suggest reading on the app life-cycle for Android apps Feb 04 10:09:15 Android developer site has a lot of good info on the Dev Guide tab Feb 04 10:09:44 yep, I'll do that after I get my first app working Feb 04 10:10:06 is it usually this quiet in this chan? Feb 04 10:10:46 Snuupy: i installed the sdk 2.2 but still getting the same error for installing the adt plugin Feb 04 10:10:50 at 4am?? yeah Feb 04 10:12:07 ^5AM xD Feb 04 10:12:51 arunkumar413: what's the link again? Feb 04 10:13:00 to the error on pastie Feb 04 10:13:57 Snuupy: http://pastebin.com/dWcZ8Y10 Feb 04 10:15:39 okay, I'd suggest to open up android sdk manager Feb 04 10:15:55 checkmark tools Feb 04 10:16:01 android 2.2, and extras Feb 04 10:16:18 then install? Feb 04 10:17:39 hey, I'm getting an error on line 20, http://pastie.org/private/txuudneehmee2yvz0pkuxg Feb 04 10:18:40 Snuupy: Well, are you sure that the id is correct? Feb 04 10:19:35 uhh Feb 04 10:19:38 there's no ID for it Feb 04 10:19:51 I initiated TextView at the top Feb 04 10:19:57 then called on it later Feb 04 10:20:10 this is the tut I'm using Feb 04 10:20:11 http://www.youtube.com/watch?v=WjE-pWYElsE&feature=bf_next&list=PL2F07DBCDCC01493A&lf=plpp_video Feb 04 10:22:22 Snuupy: Does your layout (main.xml) has a TextView that matches the id R.id.tvDisplay? Feb 04 10:22:39 uhh Feb 04 10:22:56 how would I do that? Feb 04 10:24:53 You have a TextView in your layout, right? It's ID should be @+id/tvDisplay Feb 04 10:25:25 did you read the tutorials and at least the first parts of the dev guide? Feb 04 10:25:29 you should... Feb 04 10:25:36 main.xml: http://pastie.org/private/ckkocrnatzgcbbxiewzpiq Feb 04 10:25:42 Zharf: yeah, I did. Feb 04 10:25:47 I hope I didn't miss anything O: Feb 04 10:26:21 well you don't have a textview called tvDisplay Feb 04 10:26:24 ohh, did I need to add the ID thing to one of them? Feb 04 10:26:31 but which one do I add it to? The first one or the second? Feb 04 10:27:06 that's up to you, which one do you want to modify in code Feb 04 10:27:13 Snuupy: Depends on which one you want to use in your java code Feb 04 10:27:14 the second one Feb 04 10:27:23 since that one changes and updates Feb 04 10:27:39 Then add: android:id="@+id/tvDisplay" Feb 04 10:27:44 done Feb 04 10:27:48 thanks! Feb 04 10:30:56 Now I'm getting "The method setOnclickListener(new View.OnClickListener(){}) is undefined for type Button. Feb 04 10:31:33 Click should be with a captial C Feb 04 10:31:54 it's changed with a capital C in the code... Feb 04 10:32:05 oh, saving it put the error away Feb 04 10:32:12 :) Feb 04 10:32:15 guess it wasn't reading from the updated file Feb 04 10:32:19 (: Feb 04 10:36:24 Who wants a free Blackberry Playbook? --> http://devblog.blackberry.com/2012/02/latest-blackberry-playbook-tablet-offer-for-android-developers/ Feb 04 10:36:29 ^yeah I know Feb 04 10:36:35 That's why i'm doing this app thing xD Feb 04 10:36:50 and also because I wanna learn, and I've put it off for a while Feb 04 10:37:09 is it possible to clear all previous configurations in eclipse? Feb 04 10:37:31 there's one that I can't find in there Feb 04 10:37:37 and I can't write over it Feb 04 10:38:04 Snuupy: I'm also planning an app but I have to make sure I don't put more effort than what ius worth for a Playbook and at the same time make sure, they'd consider it worthwhile. Feb 04 10:38:39 yeah, I'm not so sure about what I'm going to do eithe Feb 04 10:38:41 either* Feb 04 10:38:59 The_Phoenix: are you already an android dev? Feb 04 10:39:57 Snuupy: I haven't really published anything but I've been learning. Feb 04 10:40:36 The_Phoenix: cool, I'm looking to publish by the end of this weekend - which gives me about 10 hrs to write, upload, convert, and submit my app. Feb 04 10:40:54 I'm more of a modder. I just want to make apps so users who want to apply my mod can simply install an app and tap a button rather than play around with Terminal. Feb 04 10:41:07 mod for? Feb 04 10:42:16 Snuupy: Android devices. lol Feb 04 10:42:50 Snuupy: A script kiddo maybe? The kind of person who plays around with build.prop or userinit.sh. Feb 04 10:43:03 lol Feb 04 10:43:07 cool Feb 04 10:44:50 how do I reset my configurations for eclipse? Feb 04 10:44:56 Snuupy: Actually, it' not worth spending more than 10 hours. Playbook runs only at around 225$. Feb 04 10:45:14 that's $22/hr Feb 04 10:45:18 >minimum wage Feb 04 10:45:29 and I get to learn stuff which I wanna learn Feb 04 10:45:42 I'd actually go lower if it came to that Feb 04 10:46:18 I'm kind of struck for an idea. Am willing to spend around 16 hours since am a college student on holidays. Feb 04 10:46:44 yeah, it's going to be full of flashlight apps Feb 04 10:46:45 xD Feb 04 10:47:12 Snuupy: Flashlight apps would be excluded I think. Feb 04 10:47:34 http://devblog.blackberry.com/2011/01/free-blackberry-playbook-tablet-offer/ Feb 04 10:47:44 lol they only have 1 function Feb 04 10:47:46 WTF. Do they plan on going bankrupt? Feb 04 10:47:49 needs to have 2 Feb 04 10:47:53 The_Phoenix: the need devs Feb 04 10:47:56 and they have too many PBs Feb 04 10:48:44 Am thinking of writing a book. I wonder if it'd be excluded. Hmm. Feb 04 10:49:00 err function 1) book Feb 04 10:49:06 function 2...keeps the light onÉ Feb 04 10:49:09 ? Feb 04 10:49:18 umm Feb 04 10:49:40 yeah...not really =/ Feb 04 10:50:18 Snuupy: They didn't say one function apps are excluded. A word processor would not be excluded even though it's a one function app I guess. They just want to avoid simple apps like "I'm rich" which simply display an image or simple flash light apps like you suggested. Feb 04 10:50:55 lol the i'm rich app in the appstore Feb 04 10:50:57 xD Feb 04 10:53:21 This doesn't exclude open source apps, right? Feb 04 10:54:15 from what I've read, it doesn't mention anything about open source apps, though I think you have to code it yourself? Feb 04 10:54:17 maybe not... Feb 04 10:55:37 kay, I need to reset the run configurations on eclipse, google isn't providing me with answers. Feb 04 10:56:24 New_Configuration and New_Configuration(1) are said to exist, but I don't see them in the manager Feb 04 10:57:05 I think something's corrupted. Feb 04 11:00:10 found it: https://bugs.eclipse.org/bugs/show_bug.cgi?id=280602 Feb 04 11:03:40 morning Feb 04 11:05:52 hello. Feb 04 11:08:45 Yay! My first app works :D Feb 04 11:10:40 Snuupy: Great :) Got the ID problem fixed and all? Feb 04 11:12:10 yeah! Feb 04 11:12:22 I'm wondering if it's possible to change the package name Feb 04 11:12:31 when I do in the xml file, it gives me errors Feb 04 11:12:43 R cannot be resolved to a variable. Feb 04 11:12:56 What package name do you mean? Feb 04 11:13:48 I wanna change the package name Feb 04 11:14:00 the one in AndroidManifest Feb 04 11:14:36 I can't change the package name? Feb 04 11:15:35 You would need to change to the same package name in your code (java) Feb 04 11:15:45 where are they referenced? Feb 04 11:16:24 In src, you should have the package, in which you have your .java files Feb 04 11:16:42 And in the top of each java file you have the package XXXX; line Feb 04 11:16:59 You could let Eclipse do the work for you though Feb 04 11:17:28 Right click your package in the package explorer, Refactor->Rename Feb 04 11:17:39 ohhhhh Feb 04 11:17:44 thanks. Feb 04 11:18:23 How to set the layout gravity to center in java ? (android:layout_gravity in xml) Feb 04 11:18:42 android:layout_gravity="x" Feb 04 11:18:50 where x is center, left, right, etc Feb 04 11:19:23 I want to set this value in Java code... Feb 04 11:19:41 I don't think you can, what's wrong with it being in xml? Feb 04 11:20:17 I'm adding the views to LinearLayout dynamically in java code.. so I want to set the views to be in center horizontal... Feb 04 11:20:31 D: Developers need to pay $25 to create apps? Feb 04 11:20:55 banpdtr_: I think you can do it with .setLayoutParams() Feb 04 11:21:09 I..don't have $25, or a credit card Feb 04 11:21:27 banpdtr_: The LayoutParams class has a gravity member Feb 04 11:22:36 banpdtr_: http://stackoverflow.com/questions/4818889/setting-margin-and-gravity-of-textview-in-code-doesnt-work Feb 04 11:22:42 There are code examples there Feb 04 11:22:50 oh.. thanks.. Feb 04 12:20:35 hi, how to close the android virtual emulator Feb 04 12:21:12 Like you close any other window Feb 04 12:22:05 SimonVT: the window is bigger. cant see the close button Feb 04 12:22:22 alt-f4? task manager? Feb 04 12:24:10 SimonVT: ok, but how to reduce the size of the virtual device Feb 04 12:24:27 whats your resolution? Feb 04 12:25:02 i used the default Feb 04 12:25:31 your desktop resolution Feb 04 12:25:44 wvga800 Feb 04 12:25:53 sorry Feb 04 12:26:06 that the resolution of the virtual device Feb 04 12:28:32 G4r10n, i use see the option of setting the screen size in inches Feb 04 12:28:43 G4r10n, now i cant find it Feb 04 12:58:13 how to change the size of the emulator Feb 04 13:20:15 arunkumar413: The size of what? The screen? Feb 04 14:13:18 should I use eclipse, or would anybody tell me to start out with a different IDE? Feb 04 14:14:15 or to not even use an IDE Feb 04 14:15:51 ericandrewlewis: if you're new to Android you should start with Eclipse Feb 04 14:16:02 k Feb 04 14:16:04 thx Feb 04 14:16:18 lowers the learning curve a bit as all the instructions are about eclipse Feb 04 14:16:36 how do updates work? do i have add something into my app to accept them or is it just when there is a version diff in the market? Feb 04 14:23:41 DarkArtist69: You don't have to do anythin. You upload the new APK, and Market will handle the update for you Feb 04 14:24:11 ok cool, just wanted to make sure. thank you! Feb 04 14:41:18 is it better practice to add java views in xml layouts, or import xml layouts in java, when making a dynamic ui Feb 04 14:47:27 i think the xml layouts are more maintainable Feb 04 14:47:33 and easier to work with Feb 04 14:48:35 i think it's better practice, because that's what google intended Feb 04 14:48:50 ahh i see Feb 04 14:49:16 to answer your question, yes: becaue it's the standard way of doing things, other people will expect it when looking at your code Feb 04 14:50:02 cool thanks. ill centralize it around the xml then Feb 04 14:50:14 but if you aren Feb 04 14:50:38 't planning on anyone else using your code, do what makes the most sense to you tbh Feb 04 14:50:55 (still getting used to my new keyboard) Feb 04 14:52:41 ah yeh Feb 04 14:53:04 hi Feb 04 14:53:27 hi! Feb 04 14:53:54 Hi Feb 04 15:02:14 Hello everyon. Please how can I achieve following image view constelation? http://www.pasteall.org/pic/25820 I can't get this working with FrameLayout or RelativeLayout. Note that red ImageView is fill_parent on its width and aligned to the top, and green ImageView is wrap_content and aligned to the bottom-right. Feb 04 15:05:00 relativelayout should work... did you want the green one on top of the red one? Feb 04 15:05:56 storkme: the red one Feb 04 15:06:13 the red one on top of the green one? Feb 04 15:06:15 storkme: sorry, the green one Feb 04 15:06:21 i'm confused Feb 04 15:06:30 storkme: the gren one on top of red one Feb 04 15:07:03 either way, all you need is a parent relativelayout with two imageviews - one set to alignParentTop=true and the other set to alignParentBottom|Right = true Feb 04 15:07:24 storkme: the red one is one pixel width header background which will be stretched over whole width and the red one is picture Feb 04 15:08:00 storkme: I already tried that let me give you the code... Feb 04 15:09:52 i'd be interested to know how it looked as well, on the device Feb 04 15:10:01 storkme: ok, working on that Feb 04 15:12:05 http://www.pasteall.org/28809 Feb 04 15:14:42 Sorry for the image it is smeared since it is confidential http://www.pasteall.org/pic/25821 but basically the red image view is not visible at all and green one is stretched accross whole width even it shouldn't Feb 04 15:28:57 is it expected for eclipse to take 5 minutes to boot up an AVD? Feb 04 15:29:34 is it a tablet AVD and/or a slow PC? Feb 04 15:30:24 2.4 MBP, 4.0.3 on the AVD… Feb 04 15:30:55 4.0.3... with a tablet (or other big-screen) config? Feb 04 15:31:08 I'm following an android tutorial where they use the EditText control,but I can't find it in my designer and when I add it in the XML I get an error saying it doesn't exist, what have I missed? Feb 04 15:31:14 ericandrewlewis: It does take quite some time to boot it up. But you don't have to boot it up between every test though Feb 04 15:33:06 maffelu: It should be under "Text Fields" in the Design view. It's not there? Feb 04 15:33:13 ah I think it was because it was my first build now it's not getting stuck on the "Android" splash screen Feb 04 15:33:29 no, it's not there, very weird Feb 04 15:33:41 I've managed to add it now in XML, but it is not there in the designer Feb 04 15:33:56 maffelu: That's weird Feb 04 15:36:07 maffelu: just started android dev, but it should show up on a right click on a Text Field object Feb 04 15:40:31 I can't google up anything -- is there a library which can decode png/jpg images straight into a ByteBuffer (i.e. bypassing Bitmap entirely) ? Could save a lot of time and memory e.g. for reading texture images which end up being uploaded to OpenGL through a Buffer anyway. Feb 04 15:42:28 i was under the impression a bitmap was basically a byte[] Feb 04 15:43:38 actually idk Feb 04 15:43:49 I think saving time and memory is not very relevant. There's a GL helper library for uploading bitmaps into textures though Feb 04 15:44:09 it's native code, but the gpu and cpu memory are separate so in sense a copy will be made and what the gpu has a texture doesn't count against your heap Feb 04 15:44:11 currently what I do (and am looking for better alternatives) is to decode an image using BitmapFactory.decodeStream(...), then extract the pixels from a Bitmap into a ByteBuffer -- double the memory, wasted time copying data around Feb 04 15:44:24 yes, completely pointless Feb 04 15:44:29 use the gl helper to upload bitmap as texture Feb 04 15:45:23 that would be GLUtils.texSubImage2D or something Feb 04 15:45:28 can even work with non-power-of-two textures Feb 04 15:45:32 err, bitmaos Feb 04 15:45:33 or actually access Bitmap.mBuffer Feb 04 15:45:34 ...which takes Bitmap as an argument Feb 04 15:45:41 to access the bitmaps m,emory directly Feb 04 15:45:46 (for reading) Feb 04 15:45:51 https://github.com/android/platform_frameworks_base/blob/master/graphics/java/android/graphics/Bitmap.java Feb 04 15:46:04 today is the most beautiful morning i have seen in a long time Feb 04 15:46:07 spectacular Feb 04 15:46:19 I am so excited for such a beautiful day on the coast today. <3 u all. Feb 04 15:46:35 .. super gay Feb 04 15:46:51 is it a bird? is it a plane? no... Feb 04 15:49:42 it's a pimp pullin a wheelie Feb 04 15:49:44 <- Feb 04 15:50:12 ok, I'll look into it but I got rid of GLUtils recently as I needed extra flexibility and switched to direct GL calls instead ;) I may need to use both actually... Feb 04 15:51:07 although, having a library which reads to Buffers directly would be ideal -- have you ever heard of such a beast? I don't care if it's extra lib or a native component as long as it supports NIO Buffers... Feb 04 15:56:08 good afternoon everyone Feb 04 16:12:50 d Feb 04 16:12:53 I'm trying to get the back button disabled for only one layout or one public void. whichever is correct.... Can anyone suggest a "if" statement that can be used to get this done? here is my code. http://pastebin.com/Xxk5rX5n Feb 04 16:17:45 I tried the Notepadv1 tutorial and noticed that it only runs on a 4.0.3 device, is there a way I can "downgrade" it to 2.3.3 so that I can run it on my phone? Feb 04 16:18:51 Are you using Eclipse? Feb 04 16:18:57 Don't set minimum SDK to more than 8? Feb 04 16:19:10 yES kNOSSOS Feb 04 16:19:13 sorry, caps Feb 04 16:19:27 xodbx: what do you mean back button disabled for one layout or one public void Feb 04 16:19:52 Mavrik, the tutorial asked me to simply import the files, so i couldn't change settings. Feb 04 16:20:05 Goto your project settings and goto android Feb 04 16:20:07 well, go to the project properties then :) Feb 04 16:20:21 Check the version there Feb 04 16:20:26 c'mon explore, how the heck do you think you'll develop full apps if you can't click around Eclipse to find a solution -_- Feb 04 16:20:30 Then it will compile to the version you set Feb 04 16:20:39 oh, thanks Feb 04 16:20:41 sileni, the hard back button. i want it disabled for a certain layout only. Feb 04 16:21:06 As long as the app isnt using parts of later sdks Feb 04 16:21:41 seems to have worked Feb 04 16:22:02 Mavrik, by looking up the things I need at that moment. Feb 04 16:24:28 xodbx: shouldn't you just override the default functionality of KEYCODE_BACK in the layout that you want disabled. Feb 04 16:33:31 sileni, I will try. thanks Feb 04 16:33:46 xodbx: no problem Feb 04 16:34:13 i just need to figure out the code now. Feb 04 16:42:14 what would be a sane way to "queue" countdowntimer? i could call the method from onFinish, but that's basically unnecessary recursion? Feb 04 16:42:29 tobib: It's not recursion Feb 04 16:42:56 tobib: there is a global queue, and adding a timer just adds to that one Feb 04 16:43:12 oh the method finishes? Feb 04 16:43:50 yeah Feb 04 16:45:24 so Feb 04 16:45:25 http://pastebin.com/kAsy3jWV Feb 04 16:45:36 something like that would be "ok"? Feb 04 16:45:53 it seems like bad code practice Feb 04 16:46:41 (obv there is no break condition in my example" Feb 04 16:47:32 tobib: yeah, looks good to me. Your call to startUnitTimer() will simply return, and once it expires onFinish will be called by the main event loop Feb 04 16:48:12 loke or anyone, how would I find out which layout is active. i want to use this http://pastebin.com/Xxk5rX5n , but i want it only applied to a certain layout. Feb 04 16:50:55 xodbx: You add that to your Activity class. Or do you have several layouts in one Activity? Feb 04 16:52:00 several layouts in one activity Feb 04 16:54:22 xodbx: Can't you just have a member variable in that class that you change when you change layout? Feb 04 16:54:42 And then where you check if the back key is pressed, you also checks that the correct layout is active Feb 04 16:56:00 i will try that. thanks Feb 04 17:08:40 hey all Feb 04 17:08:50 was wondering if I can get some help with building my app Feb 04 17:09:40 i have an android app for my business, but all it does is launch a web page, i'd like to make a proper app. Feb 04 17:09:54 hi Feb 04 17:10:28 hey evely Feb 04 17:10:40 my first question is how do i get two columns of icons? Feb 04 17:11:08 I'm sending messages back and forth beteen the client/server and showing them on the android screen in activity - this is done all the time. I would like to know what should I use to implement the communciation to be done in background? Asynctask, or should I use something else? Feb 04 17:14:43 dunivan: A GridView would fit quite good for that Feb 04 17:14:52 thats what I was thinking Feb 04 17:15:03 i was going to modify this: http://developer.android.com/resources/tutorials/views/hello-gridview.html Feb 04 17:15:36 that should do the trick for the layout of the images right eclaesson Feb 04 17:15:38 ? Feb 04 17:15:49 dunivan: That seems like a good idea Feb 04 17:16:13 Yes, just change it two two columns and you should have what you want Feb 04 17:16:19 *to two Feb 04 17:16:47 awesome, thanks eclaesson Feb 04 17:16:56 now below each image i can put text right? Feb 04 17:18:16 dunivan: Yes you can. But it would need some modification of the code Feb 04 17:18:53 would gridview not be good for it then? Feb 04 17:19:31 i have a mockup of the revision, but its only half done if you'd like to see it maybe you know of a better route: http://m.allthingssearch.org/ Feb 04 17:20:06 You should be able to do that with a GridView. I never used it myself though, so i'm afraid i can't help you with the text-part of it Feb 04 17:21:51 i'll try it and see Feb 04 17:21:55 ill probably back Feb 04 17:23:16 now how do I automatically import declarations Feb 04 17:25:07 dunivan: is this a web based app? Feb 04 17:25:15 it was Feb 04 17:25:28 i want to convert it over to a traditional android app Feb 04 17:25:33 and you are trying to convert it over to a stand alone app?? Feb 04 17:25:37 cool Feb 04 17:25:57 yeah Feb 04 17:26:01 I don't know if I would go with a gridview on this type of layout Feb 04 17:26:06 though Feb 04 17:26:12 what would you recommend Feb 04 17:27:37 I would probably use a TableLayout, as you can define it as a 2 column/3 rows Feb 04 17:28:34 I would use a vertical LinearLayout as your root layout, then ad your heading, then the TableLayout Feb 04 17:28:52 should get you pretty close to what you have on your webpage Feb 04 17:29:02 sweet Feb 04 17:29:19 and the I can import the image through the text view attribute right? Feb 04 17:29:49 hmmm Feb 04 17:29:58 what image? Feb 04 17:30:22 the icons or heading image? Feb 04 17:30:28 the icons Feb 04 17:30:53 also, give this a look over for layouts http://developer.android.com/guide/topics/ui/layout-objects.html Feb 04 17:32:17 also for the icons you could handle them a few different ways Feb 04 17:32:56 the way I would go about it would be to create your own ImageButton for the icons Feb 04 17:33:29 thanks for that object thing, that helps a lot Feb 04 17:34:00 kinda gives you a list of layouts to go through to see which one would better suit your needs Feb 04 17:34:50 for the icons, you could also create your own View object that renders out an ImageView, and the sub text Feb 04 17:35:01 there is a few ways to handle that one Feb 04 17:35:49 i think i'll try imageview Feb 04 17:35:51 dunivan: here is another good article to read that might help you out Feb 04 17:35:52 http://developer.android.com/guide/topics/ui/custom-components.html Feb 04 17:37:20 if you make your own buttons you can then have different button states. For instance, you could have the icon, but if they click it, it would show a different image to show that it is being pressed. Feb 04 17:37:44 now can I make some sort of left and right padding for the content in table row? Feb 04 17:37:51 yes Feb 04 17:38:33 would it be: android:padding-left="3dip" Feb 04 17:38:45 for column one that fills to the left side of the screen Feb 04 17:40:24 I would define a margin withisorry Feb 04 17:40:29 sorry Feb 04 17:40:45 i was incorrect, the TableRow object only has margin settings Feb 04 17:40:56 here is a good tutorial on TableLayouts http://developer.android.com/resources/tutorials/views/hello-tablelayout.html Feb 04 17:41:29 I've downloaded the android music player source code to play with, but for some reason everywhere in the code its says: isExternalStorageRemovable is undefined for the type Environment Feb 04 17:41:42 thanks dlaroche_ im a noob Feb 04 17:42:28 me too, just started Android development 3 months ago, but no one in here likes to help us noobs so I jump in here once and a while to give back what I have learned Feb 04 17:42:53 noah023, it's probably annotated with @hide Feb 04 17:43:07 which means you can only use it if you're compiling with the platform and not from the public SDK API Feb 04 17:43:34 Jake: quick question Feb 04 17:43:59 JakeWharton: where would I find this @hide so I can play with it on eclipse and with my sdk? Feb 04 17:44:36 is it better to compile against a higher android version, but set the min SDK version to what you are really trying to support? Feb 04 17:44:37 it's just a Javadoc annotation which hides the method Feb 04 17:44:42 dlaroche_, yes Feb 04 17:45:00 dlaroche_: that's how it is done Feb 04 17:45:01 just be careful not to use any newer methods without proper abstraction Feb 04 17:45:13 cool, lol...that's not how I have been doing it Feb 04 17:45:30 JakeWharton: where is the javadoc that refers to this method? Feb 04 17:45:39 you mean you set your .properties file to a higher sdk right? Feb 04 17:45:39 noah023: The method is not public Feb 04 17:45:48 You can't build it with the sdk Feb 04 17:46:26 SimonVT: so it's impossible to run it on eclipse because it always sees it as an error? Feb 04 17:46:46 dlaroche_: Set minSdkVersion to the min api level you support, targetSdkVersion to the highest version you tested it on Feb 04 17:48:42 noah023: You have to either compile it with the platform as JakeWharton said, or fix the errors eclipse highlights Feb 04 17:48:43 is there anyway to use html in an app? Feb 04 17:49:47 ok Feb 04 17:50:03 so what does changing the "target" in the project.properties do then? Feb 04 17:50:22 does that set the min or max Feb 04 17:50:34 SimonVT: Eclipse only highlights the isExternalStorageRemovable function, how do I make it so that it recognises that method? Feb 04 17:50:41 That's just the api level you build against Feb 04 17:50:43 or is that the version that is compiled against Feb 04 17:50:46 As in, which APIs are available to you Feb 04 17:50:52 It makes no difference to the final apk Feb 04 17:51:13 cnn.com has a mobile phone development article in its tech section that says it costs the developer at minimum $10,000 to develop an extremely simple app. Feb 04 17:51:36 For instance, AdMob wan't you to change this to 3.1 and higher I think, to have it's code work correctly, but I didn't fully understand why I needed to make these changes Feb 04 17:51:38 noah023: If the method is not public, you can't use it Feb 04 17:52:08 Alright, I need some help now Feb 04 17:52:10 dlaroche_: If you want to use APIs that were added in 3.1, you have to build against 3.1 Feb 04 17:52:16 "Making an app will cost you, at the very minimum, around $10,000. This is for a super-simple program . none of that fancy enterprise or social networking jibber-jabber." Feb 04 17:52:19 who is familiar with object streams Feb 04 17:52:41 SimonVT: but will the app still work on lesser versions? Feb 04 17:52:57 dlaroche_: Yes, as long as you don't call newer APIs on older versions Feb 04 17:52:59 it also suggests: "Consider also producing an embeddable YouTube or Vimeo ad of some sort" Feb 04 17:53:04 yes, provided you don't use new APIs without wrapping them somehow Feb 04 17:53:09 cool Feb 04 17:53:11 once again, CNN reminds me why I don't pay attention to them Feb 04 17:53:44 lol Feb 04 17:54:28 I am working on an app that sends mouse commands over the network to a java server that I created. Right now, I am just sending a simple serialized object over the the network using java IO, but keep getting corrupt data. Is this a known issue?? Feb 04 17:55:05 why... are you sending... "mouse commands"? Feb 04 17:55:15 dlaroche_: ... I don't think there's guarantee that DVM-serialized objects are compatible with JVM serialization Feb 04 17:55:19 why you no just interact directly with java server's API? Feb 04 17:55:22 What kind of overhead does using serialized objects over the network have pertaining to packet size, and speed Feb 04 17:55:36 p_l: yeah I don't think so either Feb 04 17:55:51 dlaroche_: I'd go with some portable serialization system Feb 04 17:55:59 ASN.1 or ProtocolBuffers or something like that Feb 04 17:56:02 sometimes it will work great, but then sometimes it just gets errors due to the data coming in Feb 04 17:56:06 reminds me of this guy who uses some Windows mouse recorder to record the mouse opening an app and clicking on dialog buttons instead of just making a batch file. Feb 04 17:56:36 users had to have their desktop icon in the right place and had to be sure not to touch the mouse or keyboard while his script was running Feb 04 17:56:41 pragma_: I prefer the ones that walk the GUI object tree and do proper actions :D Feb 04 17:56:46 we soon fired him and wrote a shell script instead Feb 04 17:57:17 SimonVT: I'm on the Android API and it says the method is public Feb 04 17:57:23 pragma_: i think cnn are saying it would cost that if you paid someone to make the app for you Feb 04 17:57:31 would it just be better for speed considerations to just send an int over the network that would symbolize the mouse action that is taking place? Feb 04 17:57:34 noah023, then you're compiling with the wrong version Feb 04 17:57:37 noah023: Then check your build target Feb 04 17:57:52 1=move mouse left one pixel, 2=move mouse right one pixel Feb 04 17:57:53 Amphoras: nope, it's for a single developer making an app from his garage. Feb 04 17:58:24 "Unless you have some basic design skills, you'll need to enlist the help of both a programmer and a designer. And these guys ain't cheap — particularly programmers who, thanks to a pronounced shortage of qualified coders, can pretty much name their prices." Feb 04 17:58:59 pragma_: maybe that's the "effort" cost as well - how much, using standardized stats, the code is worth in man/hours etc. Feb 04 18:01:20 would it just be better for speed considerations to just send an int over the network that would symbolize the mouse action that is taking place? Feb 04 18:02:13 then their wouldn't be no overhead correct?? compared to using serialized objects Feb 04 18:02:26 The import android.media.RemoteControlClient cannot be resolved..... any reason why it can't get this import? Is it my JDK? Feb 04 18:03:37 because you're not compiling with ICS Feb 04 18:04:45 thanks Feb 04 18:06:23 some of this makes no sense Feb 04 18:07:58 to define columns you have to limit rows? Feb 04 18:10:57 dunivan: in order to create the table it needs to know how many rows and columns it has Feb 04 18:11:51 dunivan: make a root vertical LinearLayout, then add a TextView or what ever to handle the header, then add a table layout under that which will hold the icons Feb 04 18:16:10 p_l: i just read that if the client/android and the server/JVM don't use the same package then it could break things....does this mean it might still work if I change the package names around Feb 04 18:16:54 dlaroche_: no idea, I dislike using Java built-in remoting stuff Feb 04 18:17:00 i mean it works right now, but i get weird errors, from the wrong data coming in, and I know it's not my logic Feb 04 18:18:04 p_l: would it just be simpliar, and probably faster to just send raw coordinates over the network then? I only want to send mouse commands, like left click, position, and such Feb 04 18:18:25 dlaroche_: as long as you remember to correct for byte order Feb 04 18:18:50 p_l: could you explain a little further please so I can look it up Feb 04 18:19:59 p_l: im using TCP and not UDP Feb 04 18:20:16 i thought TCP sent them in sequential order Feb 04 18:20:24 dlaroche_: I meant endianess Feb 04 18:21:04 can't i just send a packet, flush, and reset before sending the next one to ensure the server has processed the first incoming packet? Feb 04 18:21:32 dlaroche_: ... that's completely not the issue Feb 04 18:21:42 TCP will send the packets in sequential order, yes Feb 04 18:21:59 the thing is, different computers don't agree on ordering of bytes in an int :) Feb 04 18:23:21 so is it safer to send a string that contains the int, and then just cast or parse it on the server side? Feb 04 18:24:16 dlaroche_: or just ensure there's a set endianess in your protocol (traditionally networks work with big-endian) and just use appropriate routines to change it from/to network order and back Feb 04 18:24:22 ^that is one implementation that I tried out, and it did seem to work the best, but changed up my code later on to use object streams to help clean things up logically, but guess that is not an elegant solution Feb 04 18:24:39 or just use something like ASN.1 or protocol buffers to define your serialization format and generate code from that spec Feb 04 18:25:11 p_l: ^not familiar with either one, but will devote some time to researching them Feb 04 18:27:08 who was I discussing whether Android runs Java or not last night at like 3-4am???? Was that you JakeWharton?? Feb 04 18:27:16 no Feb 04 18:27:19 Android doesn't run Java Feb 04 18:27:21 though Feb 04 18:27:32 Yeah, i just realized that Feb 04 18:27:44 except maybe in Oracle's eyes Feb 04 18:27:55 if it did then it wouldn't have no problems being compatible with JVM's Feb 04 18:28:29 damn, serialization over networks is for sure shows the differences in abilities Feb 04 18:29:02 dlaroche_: ok, text for the header is there, but only shows at a height of 0dip Feb 04 18:29:10 basically, Java is the high level language tailored to Android so that it can run basically in JNI correct??? Feb 04 18:29:55 dunivan: set the height to wrap_content or set a static height for it. Pastebin your xml code real quick and I will take a look at it before getting off here Feb 04 18:30:51 i really do appreciate all the help dlaroche_ Feb 04 18:30:59 need to leave Java alone for a bit, and go pound away on some hex to re-tune my car Feb 04 18:31:03 http://pastebin.com/49sjvLaj Feb 04 18:31:06 no problem Feb 04 18:34:01 dunivan: remove line 10 from your XMl Feb 04 18:34:06 ^xml Feb 04 18:34:20 layout_weight Feb 04 18:34:33 then you will want to set the gravity to "center" too Feb 04 18:34:56 dlaroche_: that makes the text disappear Feb 04 18:34:58 That should give you the desired results Feb 04 18:35:18 what android version are you coding for? Feb 04 18:35:25 2.3.3 Feb 04 18:35:32 k hold on Feb 04 18:36:23 ahh there we go Feb 04 18:37:44 dunivan: try this http://pastebin.com/c0yTu4gu Feb 04 18:37:55 it got me pretty close to what you are wanting Feb 04 18:38:38 How do I ensure that a view and its children are redrawn (if say I add childrens to a FrameLayout)? Is it view.invalidate()? Feb 04 18:39:07 perfect, thanks dlaroche_ Feb 04 18:39:21 now last question - how do I center the tables? Feb 04 18:39:29 or at least get the content off the edges? Feb 04 18:39:42 pakerfeldt: Yes it is Feb 04 18:39:43 dunivan: hold on I was already working on that Feb 04 18:39:55 awesome Feb 04 18:40:16 eclaesson: And if it doesn't have any effect, is there any troubleshooting to do? If I open the hierarchyviewer and load the hierarchy the views appears Feb 04 18:40:40 pakerfeldt: If invalidate() does not work I have no idea. sorry Feb 04 18:42:17 Pressing Load View Hierarchy in hierarchyviewer have the side effect to draw the views I'm not seeing for some strange reason Feb 04 18:51:26 dunivan: try this http://pastebin.com/eE7aCBMC Feb 04 18:51:40 might have to play with it some more though Feb 04 18:53:02 awesome, i will tweak that a bit Feb 04 18:53:04 thanks! Feb 04 18:53:07 no problem Feb 04 18:53:44 alright buddies, I'm out of here....time to go play outside....lol Feb 04 19:00:48 Hello everyone Feb 04 19:03:29 hey Weaselmode Feb 04 19:03:57 does anyone know how to add an image above the text in a textview Feb 04 19:04:36 drawableTop Feb 04 19:05:39 Wouldn't it be better to use an ImageView above the TextView in a Vertically oriented Layout? Feb 04 19:05:45 no Feb 04 19:06:03 compound drawables were made to avoid that Feb 04 19:07:25 storkme: can I turn that into a button? Feb 04 19:07:56 buttons have compound drawables too Feb 04 19:10:26 im trying to make this using tables: http://m.allthingssearch.org/ Feb 04 19:11:28 i'd use a bunch of linear layouts.. i don't know if it's optimal but it's what i've done before Feb 04 19:11:34 I summarized my question in a stackoverflow question. Any help is much appreciated. http://stackoverflow.com/questions/9143653/childrens-in-framelayout-is-not-drawn Feb 04 19:11:56 hey it's you again :o Feb 04 19:12:08 how would I space the two text views? Feb 04 19:12:18 me storkme? Feb 04 19:12:29 storkme: :x Feb 04 19:12:38 storkme: sorry x( Feb 04 19:13:08 I'm having an issue with bindService crashing deep in HashMap, this is the bt: http://pastebin.com/6NNyfCQp and this is what I'm doing: http://pastebin.com/wSW0xJRE Feb 04 19:13:42 dunivan: a vertical linearlayout, then three horizontal ones - each with layout height set to 0dp and weight set to 1 Feb 04 19:13:43 Would anyone have any ideas on what to look for? Feb 04 19:13:54 each button in the horizontall ayouts is width 0dp and weight 1 Feb 04 19:14:04 and height match parent Feb 04 19:14:22 and I can get the text below centered to the images? Feb 04 19:14:32 yeah Feb 04 19:15:32 wow, stallman's only computer has a 9" display Feb 04 19:16:04 i'll bet he uses vi Feb 04 19:16:17 neekers: :| Feb 04 19:16:22 and refused to upgrade to vim. :) Feb 04 19:16:22 emca Feb 04 19:16:25 emcas Feb 04 19:16:30 *emacs ! Feb 04 19:16:50 g00s: step away from the keyboard. ) Feb 04 19:16:52 : Feb 04 19:16:55 stallman probably use 'ed' Feb 04 19:17:05 http://richard.stallman.usesthis.com/ Feb 04 19:17:13 is view or surfaceview better for something like a pie chart or graph? Feb 04 19:17:43 g00s: i hope this doesn't sound to incendiary, but has he ever done anything useful? :) Feb 04 19:17:58 neekers: in past? yes Feb 04 19:18:01 stalman is a douche Feb 04 19:18:04 currently? not anymore Feb 04 19:18:08 and yes, he is a douche Feb 04 19:18:26 p_l: maybe he did something in the past. i don't know... :) Feb 04 19:19:09 neekers: GCC and related tools, FSF Emacs, various other bits Feb 04 19:19:21 um Feb 04 19:19:23 question! Feb 04 19:19:24 can anyone here recommend me a really fast micro sdcard? (for htc desire) Feb 04 19:20:12 millenomi! Feb 04 19:20:12 does a WebView have to be in the view hierarchy to load pages? Feb 04 19:20:12 neekers! Feb 04 19:20:27 pakerfeldt: i don't see you setting the width and height of the view anywhere? Feb 04 19:21:49 millenomi: can you elaborate on that a little... Feb 04 19:22:06 for reasons that are convolute and top secret at the same time for silly reasons, Feb 04 19:22:20 I have to load a webpage without the user seeing it. is this possible? Feb 04 19:22:40 it seems that if I don't add the webview to the hierarchy, it doesn't load, although I might be missing something trivial. Feb 04 19:23:30 storkme: Of the FrameLayout? I don't want to set it? I want to read it. Feb 04 19:23:33 I'd really prefer not to have to do that. Feb 04 19:23:48 of the child chers pakerfeldt Feb 04 19:23:52 hmm, maybe try the 1pixel trick? that is just a total guess Feb 04 19:23:53 child views* Feb 04 19:24:06 I'd really really prefer not to do that. Feb 04 19:24:12 yeah... Feb 04 19:24:23 hey, trying to install the eclipse addon for android, http://pastebin.com/DdvTUnvm getting this error Feb 04 19:24:24 it is pretty cheesy Feb 04 19:24:33 views generally don't do much without being attached Feb 04 19:24:50 you could probably override it and override onlayout+ondraw or something Feb 04 19:25:06 in what sense? Feb 04 19:25:16 storkme: they get their width in placeView(). FrameLayout.LayoutParams params = new ... Feb 04 19:25:23 which is WRAP_CONTENT Feb 04 19:25:23 I need to have this page, and I need to run JS in the context of this page, and I need the user not to see it happening except if the page redirects to a login URL. Feb 04 19:25:43 storkme: But I don't believe their width or height has anything to do with this? Feb 04 19:25:56 i think in a framelayout they are 0px unless thy're set to match parent Feb 04 19:26:01 idk, i'm guessing here Feb 04 19:26:27 storkme: guesses are most welcome! Feb 04 19:26:54 storkme: But the childs are drawn as expected if I execute the logic in a AsyncTask Feb 04 19:27:00 millenomi: have you figured out how to do it in ios? Feb 04 19:27:08 UIWebView just works in iOS. Feb 04 19:27:11 which is weird as hell. Feb 04 19:27:14 heh Feb 04 19:27:16 desktop WebView has a flag for it. Feb 04 19:27:34 so I know WebKit can do it, I just can't see the equivalent in android.*.WebView. Feb 04 19:28:11 millenomi: there is a different version of webkit with each version of android, so ... Feb 04 19:28:26 yep, but this flag goes a long way back according to docs. Feb 04 19:28:28 storkme: setting the LayoutParams to match_parent didn't change anything. Feb 04 19:28:31 though I understand Google forks it. Feb 04 19:28:45 and I don't know enough of the internals to judge whether this is possible or not. Feb 04 19:29:19 storkme no text displays Feb 04 19:29:34 dunivan: make a textview with a drawableTop Feb 04 19:29:49 millenomi: well, if it gets down to it, you can always study the source for the webview class Feb 04 19:31:05 pakerfeldt: when you call invalidate does onSizeChanged get called again? Feb 04 19:31:43 storkme: let me se. Feb 04 19:31:45 see Feb 04 19:32:35 i wish google had not gotten rid of googe code search. such a mistake... Feb 04 19:32:46 storkme: no, is that a strange thing? Feb 04 19:33:53 this has to be a horizontal linear layout right? Feb 04 19:34:30 You must supply a layout_width attribute. Feb 04 19:34:31 You must supply a layout_height attribute. Feb 04 19:34:37 im getting those errors Feb 04 19:35:00 linear layout is set to android:layout_height="0dip" Feb 04 19:35:00 android:layout_weight="1" Feb 04 19:35:38 * g00s needs to learn another mobile platform and can't decide which Feb 04 19:36:14 pakerfeldt: so you initialize the views when onWidthChanged is called (by the view when its onSizeChanged is called)? and they don't appear but they are attached to the view? Feb 04 19:36:20 but they do appear in an asynctask? Feb 04 19:36:58 g00s: do what you *want* to do. :) Feb 04 19:37:34 i want to do wp7, but it seems like wp8 will be so much different Feb 04 19:37:51 not that much Feb 04 19:38:03 microsoft is not going to freak out all of thier devs... Feb 04 19:38:09 wp8 will still be able to run wp7 apps, but it seems more like an emulation layer Feb 04 19:38:12 storkme: can i make these vertical linear layouts and do three of them, then center the two icons in each layout? Feb 04 19:38:15 g00s: not really Feb 04 19:38:23 The heck.. anyone ever seen this class?: http://developer.android.com/reference/android/widget/TwoLineListItem.html Feb 04 19:38:31 SimonVT: heh, yeah Feb 04 19:38:44 lol SimonVT Feb 04 19:38:47 brilliant Feb 04 19:38:48 i have created **class Panel1 extends View {..canvas draws stuff.}**in my java file and in the xml layout file associated with that java file i try to call it with **** but when i launch on emulator it crashs and says process stopped unexpectedly..... is there something wrong with the method im doing? Feb 04 19:38:54 g00s, if you really want to do another platform, it should be ios Feb 04 19:38:58 storkme: yes, if you by attach mean they are listed with view.getChildAt(). And yes, they do appear if I run the same logic inside an AsyncTask instead. Feb 04 19:39:02 SimonVT: i'm waiting for a 3 line version :P Feb 04 19:39:21 pfn: hmm, i'm taking your advice seriously Feb 04 19:39:40 g00s, I mean, why do the last-place platform, unless there's something really compelling about it that you like Feb 04 19:39:45 i.e. they're paying you a lot of money Feb 04 19:39:51 g00s: :p Feb 04 19:39:52 or you really like xaml, and .net Feb 04 19:39:58 and you said it didn't work if you called invalidate() some time later? Feb 04 19:40:27 storkme: yes, I have a listener for when I touch the FrameLayout. So I just added invalidate() to that listener. Feb 04 19:40:35 pfn: well, wp7 is riskier ... but seems like less competition. Feb 04 19:40:36 I can touch the FrameLayout how much I like, nothing happens Feb 04 19:40:53 BUT, if I load the view hierarchy with hierarchyviewer, the views appear Feb 04 19:40:55 g00s, if you're looking to write basic apps that already exist on other platforms, maybe Feb 04 19:41:03 shit i just realized i can't even run xcode 4.2 on os x 10.6.8 Feb 04 19:41:04 what is the ip address of the emulator if i run a ServerSocket on it, i want to be able to connect to it from the pc? what is it? Feb 04 19:41:47 g00s: upgrade to lion for 29 bucks Feb 04 19:42:11 pakerfeldt: interesting.. what happens if you wrap each call to placeView() in a runOnUIThread runnable Feb 04 19:42:17 what is the ip address of the emulator if i run a ServerSocket on it, i want to be able to connect to it from the pc? what is it? Feb 04 19:42:39 testt: try asking again, i don't think anyone heard Feb 04 19:42:44 g00s: i really do agree with pfn, i think ios is the way to go, between ios and android and porting, there is an awful lot of work available. Feb 04 19:43:11 ... Feb 04 19:43:23 storkme: I wrapped the whole for loop in a runOnUiThread and that didn't change a thing. Would it make a difference if I did it per item you think? Feb 04 19:43:53 i think perhaps Feb 04 19:44:10 storkme: ok, let me try. I have to add a few more views first (have only one at the moment) Feb 04 19:46:34 storkme: no views are seen Feb 04 19:46:44 any way there to connect to the emulator's port from the pc? Feb 04 19:48:14 I would like to emphasize the fact that if I load the view hierarchy with hierarchyviewer they appear in the emulator. Feb 04 19:48:16 what happens if you put a delay on that runonuithread call Feb 04 19:48:29 owch, found out what was going on Feb 04 19:48:31 storkme: yes, I've tried that alread as well ;) Let me do it again. Feb 04 19:48:38 the SSL certificates in the emulator must be outdated Feb 04 19:48:43 rgh Feb 04 19:50:31 storkme: I added a 1 second delay and that didn't make any difference either. Feb 04 19:50:33 lame, so a galaxy nexus isn't easy to unlock Feb 04 19:50:50 This is really odd. Feb 04 19:51:12 storkme: in what sense? Feb 04 19:52:18 damn pakerfeldt :/ Feb 04 19:52:33 p_l: i was hoping for like 1 click root or something Feb 04 19:54:00 pakerfeldt: maybe there's something else you need to hook on instead of onSizeChanged. maybe onSizeChanged is called before some important other activity that a framelayout is using to place child views Feb 04 19:54:48 storkme: fastboot oem unlock, then possibly use fastboot to load a kernel+initrd that will let you add su to system partition :P Feb 04 19:55:44 i don't know whjat most of what you just said is :( Feb 04 19:56:10 ... kinda explains why you found unlocking nexus to be har Feb 04 19:56:12 *hard Feb 04 19:56:20 :( Feb 04 19:56:53 storkme: yes, perhaps you're right Feb 04 19:57:01 the first is a command, which according to what I recall unlocks the phone, the second let's you override any problems left over :P Feb 04 19:57:38 haven't had a nexus device so I can't test it, used samsungs which are ridiculously easy to unlock Feb 04 19:57:39 fastboot unlock is easy Feb 04 19:57:49 there's also mempodip which is easy, too Feb 04 19:57:52 (samsungs using samsung's SoC) Feb 04 19:57:56 lol @ mempodip Feb 04 19:57:57 mempodip allows rooting easily Feb 04 19:57:59 maybe I'll try it then Feb 04 19:58:07 yeah, mempodip is fun :D Feb 04 19:58:17 mempodip won't allow you to install custom roms easily Feb 04 19:58:18 though you first need a suid binary Feb 04 19:58:27 does @drawable call to anything in /res/? Feb 04 19:58:30 p_l, there are plenty of those in the base image Feb 04 19:58:31 pfn: well, there's kexec Feb 04 19:58:33 or only the drawable folders? Feb 04 19:58:37 dunivan, @drawable references /res/drawable Feb 04 19:58:56 so i can put my app icons in any one and it will be found? Feb 04 19:59:08 dunivan, no, there are rules on what the various drawable folders are Feb 04 19:59:48 so I have to resize them all? Feb 04 19:59:57 it's best if you do Feb 04 20:00:02 thanks Feb 04 20:00:04 because it provides optimum quality on all devices Feb 04 20:00:14 if you're lazy, you can provide a single mdpi image Feb 04 20:00:17 and it's supposed to scale, I think Feb 04 20:00:26 i just want to test Feb 04 20:00:49 this app conversion is kind of a pain Feb 04 20:02:20 a lot of times, I get lazy and just throw my drawables in drawable/ Feb 04 20:02:23 and let android scale Feb 04 20:03:01 i have 3 drawable folders Feb 04 20:03:07 can i make a single one? Feb 04 20:03:14 I'm having an issue with bindService crashing deep in HashMap, this is the bt: http://pastebin.com/6NNyfCQp and this is what I'm doing: http://pastebin.com/wSW0xJRE - anyone have any suggestions? Feb 04 20:03:21 if you want your icons to be ugly when they get scaled Feb 04 20:03:25 just throw them all in drawable Feb 04 20:06:08 i'll scale em all after this is done Feb 04 20:06:41 or if it's just for development, put them in whatever dpi corresponds to your device while testing Feb 04 20:16:06 ok - next question how do I turn a textview with a drawableTop into a button Feb 04 20:16:55 Can bindService be called in onCreate? Feb 04 20:17:30 vadi2: yes Feb 04 20:17:53 can i define a custom font? Feb 04 20:25:05 Project_2502: is project 2501 finished ? Feb 04 20:27:21 dunivan, you can load any ttf you want Feb 04 20:30:56 sweet Feb 04 20:31:01 i was reading it was only otf Feb 04 20:33:27 can someone help me with my java file Feb 04 20:33:50 for some reason there are errors in this: http://pastebin.com/ya7SCF7Z Feb 04 20:35:19 says typeface can't be resolved Feb 04 20:35:44 recommended tutorial for someone very good at Java that will just go through the basics of terminology (activity/whatever) and configuration files? Feb 04 20:36:23 and what this "R" thing is about. lol Feb 04 20:37:08 how do i fix declarations in eclispe? Feb 04 20:38:38 R is just a generated class that holds constants Feb 04 20:38:56 if you already know Java there's plenty of tutorials on d.android.com Feb 04 20:39:57 all the ones im finding just goes like "create this, see it does this" and not "attributes are defined here and referenced like this" "an acitivity is something you initi..." etc Feb 04 20:40:16 aca20031, read the dev guide top to bottom Feb 04 20:40:24 headache Feb 04 20:41:15 hmm, how to change the default Georgia font on Kindle for Mac. yuck. Feb 04 20:42:07 aca20031, get a book for that kind of stuff Feb 04 20:42:16 expensive headache :( Feb 04 20:42:52 also the tutorials seem to reference a default created Activity whereas mine has a default created Application Feb 04 20:44:13 hmm... guys, how do you deal with "fake"/"bad" reviews on Android Market? Feb 04 20:44:36 meaning, the 1-star "your app doesn't work on my 3rd party broken ROM"? Feb 04 20:44:54 ignore them Feb 04 20:44:55 Nothing, if your app is good then the good responses will flood it out Feb 04 20:44:56 what can you do? Feb 04 20:45:58 hrm, ok Feb 04 20:46:41 it's still annoying getting 1 star review on top of review list noting "your service doesn't work" when it does :\ Feb 04 20:46:54 is there a simple way to log to the eclipse console when testing an app by launching a virtual device from eclipse? Feb 04 20:47:14 use android.util.Log Feb 04 20:47:17 and read the logcat view Feb 04 20:48:35 ok. i have an xml layout and trying to add a view (drawing a line inside) inbetween 2 linearlayouts in the xml, but there is just empty space so maybe im not adding the view to the xml properly? i have uploaded the code of the java and xml file here http://pastebin.com/X8Gn0uvP Feb 04 21:02:35 for the record: what was happening a few hours ago is that I was getting a SSL error and my Web*Clients did not handle that. apparently the emulator's SSL certificates are outdated? Feb 04 21:19:57 Anyone have any idea why this is happening: The import android.media.RemoteControlClient cannot be resolved Feb 04 21:20:36 what's your targetApi? Feb 04 21:21:10 compile with Android 4.0 or newwer Feb 04 21:21:38 My JDK doesn't have that.... but does that mean I can't run this program on my droid x2 running 2.3.4? Feb 04 21:22:01 haha Feb 04 21:22:02 no Feb 04 21:22:03 Android doesn't use the JDK Feb 04 21:22:05 and that is correct Feb 04 21:22:13 RemoteControlClient was added in 4.0 Feb 04 21:22:32 which you can see if you looked at the docs Feb 04 21:22:54 Hmm. Do you know where I could find source code for a pre 2.3.4 music player? Feb 04 21:23:00 unless you convince JakeWharton to backport it Feb 04 21:23:06 * JakeWharton runs Feb 04 21:23:10 :p Feb 04 21:23:18 or convince google to add it to the compat library Feb 04 21:23:26 hay JakeWharton Feb 04 21:23:28 did you fix my bugs? Feb 04 21:23:31 no Feb 04 21:23:36 i hate you and your bugs Feb 04 21:23:40 D: Feb 04 21:23:40 hehe Feb 04 21:23:41 :( Feb 04 21:23:52 i don't even remember which are yours Feb 04 21:23:57 the one logged by me Feb 04 21:23:59 overflow measurement Feb 04 21:24:00 Well, I'm off to find some music player source code.. Feb 04 21:24:01 and the one about the really big thing Feb 04 21:24:06 and back button Feb 04 21:24:42 those are easy compared to some of the others so they're lower priority Feb 04 21:24:59 i almost just fixed fragment/action item interaction Feb 04 21:26:22 Can you somehow disable the keyboard for a numberpicker? It appears after a while if I touch the screen. Feb 04 21:26:28 Or can you delay its appearance? Feb 04 21:27:13 Well I did find another music player source code, but it for some reason won't generate R Feb 04 21:28:03 the reasons are listed in the error pane Feb 04 21:28:54 * g00s downloads lion in the library - this probably isn't going to end well Feb 04 21:29:34 JakeWharton: did i see you enter a new issue for that support library context menu bug ? Feb 04 21:30:29 i may have Feb 04 21:30:37 i put a patch in Gerrit for it Feb 04 21:30:45 it used to be piggy backed on another bug Feb 04 21:30:48 don't remember if I filed an actual bug or not though Feb 04 21:30:48 ah, that was it Feb 04 21:34:50 where exactly is the mediastore database? Feb 04 21:34:55 on android 2.2 Feb 04 21:34:58 i can't find it Feb 04 21:35:19 i know 'mediastore' is the content provider, but i mean the tables that back it up Feb 04 21:37:18 * g00s thinks the ActionBarCompat should not be an apidemo, but part of the acl or a standalone library Feb 04 21:42:02 can anyone help me make a text view that is in a table view a selectable button? Feb 04 21:42:23 a textview within tableRow Feb 04 21:42:36 which obviously is inside a TableLayout Feb 04 21:48:13 dunivan: just give it a onClickListener Feb 04 21:48:39 which will make it clickable. maybe also make it focusable, and give it a background with a selector that makes it highlight Feb 04 21:49:58 hi! need advice on how to pass constant strings from resources to non-UI and non-activity classes; i.e. i have some purely non-ui classes that represent entities but i need to access string resources, as a result i am forced to pass the applicationContext to the plain java class and it looks like sort of dirty; what is the clean way to pass data from the app to pure java entity classes? Feb 04 21:50:31 launching something in debug mode in eclipse, it says it installed the .apk on the device, but theres no icon in the apps tray. Did I miss a setting? Feb 04 21:50:37 xh: thats all you can really do Feb 04 21:51:34 g00s: so it means one has to contaminate the business logic with android stuff, right? Feb 04 21:51:47 yeah Feb 04 21:52:58 g00s: hm, i see, is there some established pattern for this? i.e. like have some kind of cleaner 'facade' or something like that, or maybe nice ready-made annotations? Feb 04 21:54:33 g00s: ..or does it basically boils down to 'you always have to pass on the context', right? Feb 04 21:54:41 xh: basically, es Feb 04 21:54:43 *yes Feb 04 21:54:59 g00s: ok, i see, thanks! Feb 04 22:00:07 pfn: still there ? Feb 04 22:00:13 g00s! Feb 04 22:00:18 canadiancow|work: ! Feb 04 22:01:13 g00s, sup Feb 04 22:01:27 pfn: have you seen any of the 4sevens lights ? Feb 04 22:01:40 nope, haven't Feb 04 22:01:51 my flashlight experiences are pretty much limited to surefire and fenix Feb 04 22:01:54 if you like the fenix pd / ld they have similar form factors Feb 04 22:02:11 pd is good, because lithium ftw Feb 04 22:02:18 thanks g00s Feb 04 22:02:34 xm18 is $2499? are they crazy much Feb 04 22:03:15 heh, nah, the Quarks Feb 04 22:04:26 one thing i didn't like about fenix is a got a few puke green tints Feb 04 22:04:29 yeah, just looked at the quark 123 Feb 04 22:04:47 stay away from xp-g s5s which can be puke green often Feb 04 22:05:12 but its usually a lottery. the r4's are generally good tints Feb 04 22:05:13 mode selection sounds like a pita Feb 04 22:05:34 the Zebralights have the best UI imho. just 3 modes. Feb 04 22:05:50 tactical 2 mode is ok, I guess Feb 04 22:05:52 hi, i want to learn android. I tried with eclipse but i'm unable to understand what is that happening and how are different files related. please guide through a non eclipse, easy to understand tutorials Feb 04 22:06:12 arunkumar413, if you're familiar with java, just use ant Feb 04 22:06:39 I'd rather have 3 quickly accessible modes Feb 04 22:06:47 tactical brightness, the normal and low Feb 04 22:06:49 s/the/then Feb 04 22:07:37 i'm familar with java. In android there are lot of files being created and not understanding for coding one file, permissions one file, and so on... Feb 04 22:07:45 How to disable the keyboard for NumberPicker? Feb 04 22:07:49 arunkumar413, use ant and 'android' Feb 04 22:07:52 android create project Feb 04 22:07:59 pfn: what's ant? Feb 04 22:08:04 .. Feb 04 22:08:08 you're not familiar with java Feb 04 22:08:08 anyone having any problems with github? Feb 04 22:08:26 canadiancow|work: no! Feb 04 22:08:32 pfn: i know java but not a pro Feb 04 22:08:35 i cant pull :( Feb 04 22:09:02 arunkumar413, that's not knowing java... Feb 04 22:09:54 pfn: if u know ant. tell me what is it Feb 04 22:10:30 SimonVT: https://status.github.com/ Feb 04 22:10:31 liar Feb 04 22:11:00 arunkumar413: "android" command sets up the skeleton, including build.xml if you are using ant Feb 04 22:11:02 arunkumar413, ant is a java build tool, like make Feb 04 22:11:47 pfn: will i be able to use the emulator then Feb 04 22:11:52 yes Feb 04 22:12:23 but given your knowledge, you sound like you'd be better off working in eclipse Feb 04 22:12:40 eclipse makes it kind of easy Feb 04 22:13:01 it's pretty intuitive - i've been building for a while and I think im asking for minimal help Feb 04 22:13:04 pfn: yes, but not understanding the relation between the files Feb 04 22:13:05 how can i access audit data on android? Feb 04 22:13:12 which all who have helped I do appreciate it! Feb 04 22:13:20 where is it kept if it is kept anywhere - audit data ? Feb 04 22:13:20 arunkumar413, read d.android.com, dev guide, top to bottom, then you will understand Feb 04 22:14:02 pfn: eclipse will simplify the development things it will not make us understand what is happening Feb 04 22:15:05 arunkumar413, I told you what to do Feb 04 22:15:10 14:13 arunkumar413, read d.android.com, dev guide, top to bottom, then you will understand Feb 04 22:16:13 canadiancow|work: I haven't had any issues with github cus I haven't been using it ;/ Feb 04 22:16:46 pfn: first i want to do some simple programs using the traditional way with a text editor and command line to compile Feb 04 22:17:12 pfn: please guide me to such examples Feb 04 22:17:13 SimonVT: so why did you answer :( Feb 04 22:17:20 Cus you asked :p Feb 04 22:17:28 I didn't lie to you ^_^ Feb 04 22:20:07 arunkumar413: ... read the manual. It has that example Feb 04 22:20:21 hell, just the output of 'android --help' includes info on that Feb 04 22:22:00 fuck, so i go through the hassle of d/l os x lion over the library internet connection, to just find out apple fucked some stuff up and is pulling 10.7.3 updates Feb 04 22:22:13 hey, how can i put a view below another on the LinearLayout ? Feb 04 22:22:18 which means ... what exactly :/ Feb 04 22:22:57 it always put next to the previous Feb 04 22:26:56 * neekers watches the g00s show with mild amusement... Feb 04 22:27:12 We always do Feb 04 22:27:19 apple really fucked up that 10.7.3 update Feb 04 22:27:33 http://www.macworld.com/article/165183/2012/02/some_10_7_3_users_encounter_nasty_bug_fix_available.html Feb 04 22:28:18 g00s: so are you running lion now? Feb 04 22:28:27 no, i 'm downloading it Feb 04 22:28:34 not sure if i should have waited a while Feb 04 22:28:35 ahh Feb 04 22:28:45 maybe for 10.7.4 Feb 04 22:28:52 ffuuu Feb 04 22:28:53 naw Feb 04 22:29:10 once you have all teh updates, its very stable Feb 04 22:29:20 my mbp has never had a problem Feb 04 22:29:33 * neekers hugs his mbp Feb 04 22:30:02 * g00s looks for something to hug Feb 04 22:30:05 <.< Feb 04 22:30:07 >.> Feb 04 22:30:16 * g00s sees random stranger at library Feb 04 22:30:37 i think SimonVT is available for a hug... Feb 04 22:30:40 :) Feb 04 22:31:07 Don't wanna get c00ties Feb 04 22:35:41 hi, can someone point me to a tutorial explaining how to use a custom rendering thread (using requestRender()) to draw using a GLSurfaceView at custom fps? Feb 04 22:38:10 google Feb 04 22:38:17 I did google it a lot Feb 04 22:38:26 moar Feb 04 22:38:27 I couldn't find a single tutorial or example Feb 04 22:39:28 I see mentions of requestRender(), I implemented threaded rendering a few different ways. sometimes the actual onRender() method isn't even called. sometimes it's called but nothing is drawn despite that Feb 04 22:47:51 iOS Tech Lead - 1) Anchor the iphone app development at onsite 2) should be able to work in conjunction with offshore" <-- fuck that Feb 04 22:48:52 :) Feb 04 22:49:21 its like recruiter spam season of the sudden Feb 04 22:49:23 we did this crap at DHL, they wanted experienced devs to babysit offshore Feb 04 22:49:31 this is how it worked Feb 04 22:49:43 offshore asked us for airtight specs Feb 04 22:49:53 "Interviews are occurring this week and early next week, so apply now if you are interested and a fit." Feb 04 22:49:58 OMG HURRRY! Feb 04 22:50:08 (which of course, we know how that goes - waterfall - and you're not even the one writing the sw) Feb 04 22:50:16 and then they blamed us for anything that went wrong Feb 04 22:50:28 and then of course, they had fun building while we just let our skills erode Feb 04 22:50:32 fuck everything about it Feb 04 22:51:11 Where can I find "Android Tools" menu in Eclipse? I'm not seeing it. Feb 04 22:51:20 It wants me to run "Fix Project Properties" Feb 04 22:52:25 Oh, right-click on project. Feb 04 23:05:11 g00s: lol Feb 04 23:05:29 if you need to add some 3rd party documentation to your project is it reasonable to include some @annotations for this so they can be automatically generated? Feb 04 23:10:45 has anyone tried to emulate an rfid card with nfc? Feb 04 23:20:09 Hello world! Feb 04 23:22:29 canadiancow|work: :D Feb 04 23:22:33 Moooooo Feb 04 23:22:35 what Feb 04 23:22:48 Hello cow! Feb 04 23:23:44 http://stackoverflow.com/questions/9145338/open-forum-in-tapatalk-via-intent :( Feb 04 23:26:46 hmmmm Feb 04 23:27:25 is that link supposed to be interesting in any way? Feb 04 23:28:41 neekers: Well, I'd appreciate someone shedding some light on it :-) Feb 04 23:29:06 oh.. thats you? Feb 04 23:30:25 Yessir, in my own e-flesh and e-blood! Feb 04 23:30:43 is this for just launching forums for for linking from inside a webview? Feb 04 23:31:00 Unpack tapatalk, check its intent filters Feb 04 23:31:16 because I'm pretty sure most tapatalk supported forums already detect browser type and ask if they want to use tapatalk Feb 04 23:31:40 hrm Feb 04 23:31:52 t0mless: However, their links don't actually prompt the app. So I'd like to know it "before" they end up in the *popup* so to speak. :-) Feb 04 23:31:55 I'm having an issue with LoaderManager.LoaderCallBacks... Feb 04 23:32:04 SimonVT: I'll do that, good idea! Feb 04 23:32:15 * n20 runs to the Batmobile. Feb 04 23:32:36 when I use my custom Loader that uses a custom object to return MyLoader extends AsyncTaskLoader Feb 04 23:32:58 then try to implement LoaderManager.LoaderCallbacks it freaks out Feb 04 23:33:29 says trying to use incompatible return type... Feb 04 23:33:37 Oh, right, while I'm asking. Feb 04 23:34:41 has anyone tried to emulate rfid tags with open-nfc? Feb 04 23:34:56 SimonVT: If I have a TextView with it's content run through Html.fromHtml() - is it possible for me to somehow *detect* the "clickable links" and make the rest of the TextView (non-link) let the click event pass-through to the parent? Feb 04 23:43:17 SimonVT: Alright, so they do actually have intent filters defined in their AndroidManifest.xml - what now? :-) Feb 04 23:59:30 is there somekind of prohibition on using gpl licensed software on android aswell? Feb 04 23:59:41 mesger: no Feb 04 23:59:45 mesger: it all depends on how anal you are Feb 04 23:59:54 very anal Feb 04 23:59:59 :D Feb 05 00:00:22 had it since i was 6 years old very heavy but was over after 1year Feb 05 00:00:42 mesger: then you probably can only distribute it yourself because of crazy over-interpretation of certain terms Feb 05 00:01:00 not on the market Feb 05 00:01:10 in practice - it's alright to publish it on the market Feb 05 00:01:11 and if i'm not anal? Feb 05 00:01:19 ow ok Feb 05 00:01:33 mesger: people forget that you're supposed to provide sources on *demand* Feb 05 00:01:33 because those anal guys from apple screwed me over Feb 05 00:01:39 not include them everywhere Feb 05 00:01:54 i'm planning to release the source Feb 05 00:02:00 mesger: sure Feb 05 00:02:08 just give info how to reach it Feb 05 00:02:19 where should i give that info? Feb 05 00:02:37 / isn't a special character for String.format right Feb 05 00:02:41 I don't have to escape it? Feb 05 00:02:47 mesger: can be in market, I think Feb 05 00:03:03 but i can make it a paid app? Feb 05 00:03:09 yes Feb 05 00:03:20 mesger: yes Feb 05 00:03:20 you'd have to give the sources if someone asks, though Feb 05 00:03:20 ok thank god for good old android Feb 05 00:10:14 Jesus. Feb 05 00:10:30 #android-dev started crashing XChat. Feb 05 00:10:34 Had to switch clients. Feb 05 00:11:23 RMapZero: ?! Feb 05 00:12:10 stupid ios Feb 05 00:12:37 I was getting some Microsoft C++ Runtime Library error. Feb 05 00:12:41 Any time I joined #android-dev. Feb 05 00:12:49 That's interesting o_O Feb 05 00:13:01 That's one way to put it. Feb 05 00:13:23 I wonder what 2^20 is. Feb 05 00:13:35 Hmm, not too much. Feb 05 00:13:41 * n20 retrhinks his gameplan. Feb 05 00:14:38 is it possible to use OnSystemUiVisibilityChangeListener from a service? Feb 05 00:14:56 RMapZero, no issues here, XChat 2.8.9 on Win7 x64 Feb 05 00:15:09 Yeah, I dunno, it's weird. Feb 05 00:15:13 I'm on HydraIRC now. Feb 05 00:15:17 Maybe this'll be better. Feb 05 00:16:16 Does anyone know the timing of listview/adapter population better than me? I've got a weird problem. Feb 05 00:16:28 I've got some UI elements that are enabled based on the number of items in an adapter/listview. Feb 05 00:17:10 But if I set myListView.setAdapter(myAdapter); and then myAdapter.getCount();, nada. Feb 05 00:17:15 It's 0. Feb 05 00:17:23 That's in onCreateView in a fragment. Feb 05 00:17:46 The listview populates, but I'm not sure when. Feb 05 00:17:55 I think that onStart is the only thing after onCreateView. Feb 05 00:19:05 .. when does your adaptor populate the data Feb 05 00:19:11 getCount() calls size(), length(), whatever directly on your dataset. It doesn't have to wait for the listview to draw Feb 05 00:19:13 RMapZero: Have you tried using registerDataSetObserver(DataSetObserver observer) on the adapter? Feb 05 00:19:30 If getCount() returns 0, you haven't populated the adapter yet Feb 05 00:19:36 Lemme check the population. Feb 05 00:19:56 I considered an observer, but it's really only a problem at the beginning, registering an observer seems overkill. Feb 05 00:20:02 you made that sound far more impressive than it actually is Feb 05 00:23:47 Ah, I see this. Feb 05 00:24:02 I'm porting changes from one thing to another, they work a bit differently. Feb 05 00:24:08 I'm populating later in this one. Feb 05 00:24:11 That makes sense. Feb 05 00:24:12 Thanks. Feb 05 00:24:59 1234e6y8 Feb 05 00:24:59 8g Feb 05 00:24:59 +9 Feb 05 00:25:02 Ah Feb 05 00:25:07 My keyboard jammed, sorry! Feb 05 00:56:01 hey everyone Feb 05 00:56:25 Does anyone here use the ndk? Feb 05 00:57:45 romainguy: is there a reason that Animation#clone isn't visible? Feb 05 00:58:23 correction, TransitionAnimation#clone Feb 05 01:04:45 tbws: yeah Feb 05 01:05:11 were the android docs a good place to start for you? Feb 05 01:05:48 in my particular case, I branched an existing github project that had it already setup. Feb 05 01:06:04 can't comment there Feb 05 01:06:12 Ok thank you very much vadi2 Feb 05 01:23:10 hey you galaxy nexus peeps... do apps that use the header's for prefs look right on the GN? Feb 05 01:24:23 nvm, just loaded a 4.0 emu and looked at system settings compared to my tablet on 3.2 Feb 05 01:47:39 hey all Feb 05 01:48:55 wondering if someone could help me figure out how to make a clicked item open up a new screen Feb 05 01:51:31 dunivan: read up on setOnClickListener then launching new activity via Intent Feb 05 01:55:15 JakeWharton does the ABS Preference Plug support preference headers? Feb 05 01:55:41 for v3.x? Feb 05 01:55:55 it supports whatever PreferenceActivity does Feb 05 01:56:39 for 2.x Feb 05 01:56:59 thanks qube2 - can set object listener work on a text area thats made clickable Feb 05 01:56:59 i mean ABS v3.x Feb 05 01:57:02 oh Feb 05 01:57:08 right Feb 05 01:57:09 actually both Feb 05 01:57:16 whatever you can do with a PreferenceActivity it'll do Feb 05 01:57:18 but is the PreferenceFragment available? Feb 05 01:57:20 no Feb 05 01:57:34 it requires access to all kinds of non-public things Feb 05 01:57:39 there's a version out there that uses reflection Feb 05 01:57:40 ahh Feb 05 01:57:41 dunivan: ya... yourView.setOnClickListener(new View.OnClickLis Feb 05 01:57:45 should build the stub of code Feb 05 01:57:47 haven't tried it yet Feb 05 01:57:51 then you can add all your logic in the onClick() Feb 05 01:58:13 Fixed any bugs lately, JakeWharton ? :P Feb 05 01:58:19 the docs are very sparse about what attributes prefrence header's can have Feb 05 01:58:26 SimonVT, action items in fragments Feb 05 01:58:31 *and Feb 05 01:58:34 sort of Feb 05 01:58:38 needs more testing Feb 05 01:59:06 i'll finish it off and hopefully one or two others tonight Feb 05 01:59:14 one day someone is gunna ask about ABS bugs and he's just gunna flip out on them Feb 05 01:59:23 Oh, what's the issue with them? Feb 05 01:59:52 for some reason things weren't working properly Feb 05 01:59:53 and now that I mentioned it... it will probably be me -_- Feb 05 01:59:57 ok, im a noob, is yourview the activity name, or an id i give the button? Feb 05 01:59:57 specifically in a ViewPager Feb 05 02:00:04 so i rewrote the FragmentActivity Feb 05 02:00:04 Ah, right. The disappearing Feb 05 02:00:15 fixed the disappearing but the initial state doesn't work Feb 05 02:00:26 but as soon as you invalidate again (e.g., start paging) it works great Feb 05 02:02:38 Hopefully it's fixed then Feb 05 02:02:45 Doesn't seem to be that many bugs left Feb 05 02:06:34 is there a good tutorial for setobjectlistener? Feb 05 02:07:04 hmmm... do preferences look stupid on HC+ tablets without headers? Feb 05 02:07:44 Yeah Feb 05 02:08:13 guess I'll go the extra effort then Feb 05 02:12:45 has anyone tried nfc card-emulation? Feb 05 02:13:18 dunivan: your object name Feb 05 02:13:38 dunivan: TextView blah = (TextView) findViewById(R.id.something); blah.setOnClickListerner.... Feb 05 02:13:49 android:id="@+id/card" ? Feb 05 02:14:17 replace R.id.something with R.id.card Feb 05 02:14:32 and TextView with your actual View, whatever it may be.. Button etc.. Feb 05 02:15:18 final TextView view = (TextView) findViewById(R.id.card); Feb 05 02:15:21 does that work? Feb 05 02:15:40 i found that in a tutorial, but i don't get what the final means Feb 05 02:15:51 since its my first onclick Feb 05 02:15:56 you should rename view to something more descriptive like: save or something that is more descriptive Feb 05 02:16:13 dunivan: final means it cannot be reassigned/changed Feb 05 02:16:54 so final is good Feb 05 02:17:02 yes Feb 05 02:17:03 as i want the button to do one thing Feb 05 02:17:08 huh Feb 05 02:17:15 dunivan: its a button or textview? Feb 05 02:17:21 its a textview Feb 05 02:17:22 intellij doesn't have a version resource modifier option Feb 05 02:17:34 with a drawableTop icon Feb 05 02:19:09 so it acts like a button, but it is indeed a textview Feb 05 02:19:53 dunivan: http://pastebin.com/9Aj4Y3a2 Feb 05 02:20:12 but replace YOUR_NEW_ACTIVITY with the actual name of your other activity class you want to launch Feb 05 02:20:31 also make sure that your activity that you're launching is defined in the manifest otherwise you'll crash with a ActivityNotFound error Feb 05 02:21:54 How can I stop my app from waiting for a debugger to connect? I'm using ddms stand-alone now, yet the app is still expecting a debugger. Feb 05 02:25:00 QubeZ: is doSomething definable Feb 05 02:25:17 dunivan, what do you mean definable? You can name it anything you want Feb 05 02:25:23 it has to match up with the name of your TextView Feb 05 02:25:30 should it match the next activity Feb 05 02:25:47 dunivan: no, it needs to be the name of your TextView variable. Feb 05 02:26:01 in your case: view <-- but I'd name it something more descriptive Feb 05 02:26:59 so you are doing: TextView somethingDescriptive = (TextView) findViewById(R.id.card); then somethingDescriptive.setOnClickListener... See, you are actually setting a click listener on the view you defined it to be on and you reference it by the variable you named in your TextView line. Feb 05 02:27:25 I'm just saying if the "button" is supposed to be like a Save button or Edit button, then you should name the variable something that describes that action. Feb 05 02:28:14 [21:17:15] dunivan: its a button or textview? Feb 05 02:28:20 a Button is a TextView... Feb 05 02:28:42 canadiancow: i'm trying to not get into that detail with him, trying to keep it simple Feb 05 02:28:44 and if all you're doing is setting an onclicklistener, just use it as a View to eliminate unnecessary casting that can cause problems later Feb 05 02:29:14 i've never had problems with that usage Feb 05 02:29:34 if i have a textview, i use TextView and if its a button I use Button Feb 05 02:29:40 the problem is when you have LinearLayout something = (LinearLayout) findView... Feb 05 02:29:53 or lets use the button example Feb 05 02:29:54 heres my xmls - http://pastebin.com/Vh6gTuwg Feb 05 02:30:08 Button b = (Botton) findViewBy...; b.setOnClickListener(...); Feb 05 02:30:09 and thats all Feb 05 02:30:16 then you decide later you want an ImageButtonc Feb 05 02:30:17 dunivan: you should be fine with the example I gave you but canadiancow knows more than I do Feb 05 02:30:21 chagne the xml, classcastexception Feb 05 02:30:32 if you had done View b = findV..., you would have been fine Feb 05 02:30:34 i think its a text view, because button isn't called Feb 05 02:30:59 dunivan: so its working for you or what? Feb 05 02:31:25 im not sure Feb 05 02:31:32 like I said I am a noob Feb 05 02:31:37 uhhh, compile it! Feb 05 02:31:38 fuck Feb 05 02:31:50 so now I have to figure out how to declare the next activity Feb 05 02:31:59 and it also gave me errors in eclipse Feb 05 02:32:12 pastebin isn't loading for me for some reason Feb 05 02:32:24 or rather, that link Feb 05 02:32:39 dunivan: so build your new activity, call it and test Feb 05 02:32:40 let us know Feb 05 02:33:19 again, noob - but do I build the new activity in src? Feb 05 02:33:28 How can I kill an application that I lunched on my device through eclipse ? Feb 05 02:33:39 you build your activity the exact same way you built the activity you're in right now Feb 05 02:34:00 CVirus: eclipse will either relaunch it when you launch the app again, or use a task manager on the phone Feb 05 02:34:16 and save it as another file in /src Feb 05 02:34:30 dunivan: you build a new xml for that actiivity, build another src class then call that activity from your other activity Feb 05 02:34:31 vadi2: well the application freezes the phone so I wanted to kill it through eclipse Feb 05 02:34:43 CVirus: lol, write better code ;) Feb 05 02:34:47 heh Feb 05 02:34:49 don't have to, next time you launch, it'll be killed and relaunched Feb 05 02:35:01 heyyy everybodyyyy Feb 05 02:35:06 sup Tricknology Feb 05 02:35:18 every time i see you, I think of Trick Daddy Feb 05 02:35:42 haha Feb 05 02:36:22 Does anyone now how I would go about querying google with a search term and return gps coordinates? Feb 05 02:36:54 like if i wanted to type in "sbcc physical sciences building" in google maps it shows the location Feb 05 02:37:19 i want to do that in my app but show the location in my map Feb 05 02:37:21 Tricknology: use their geocoder class or use their Geocoding API Feb 05 02:37:34 the geocoder build into Android is kinda lame though and unreliable Feb 05 02:38:07 http://code.google.com/apis/maps/documentation/geocoding/ Feb 05 02:39:21 reverse geocoding? Feb 05 02:40:03 word Feb 05 02:40:20 no, reg geocoding Feb 05 02:40:30 reverse geocoding is input: lat/lng and output: address Feb 05 02:40:42 for reg geocoding input: address output: lat/lng Feb 05 02:41:43 2,500 query limit per day so not sure if that is enough for ya Feb 05 02:41:50 QubeZ: heres the java: http://pastie.org/private/5l8xsjrbebznuqhid9ybrw Feb 05 02:42:24 dunivan: you have a typo on line 13. OnClaick? Should be OnClick Feb 05 02:43:07 dunivan: also your TextView and openBusinessCard... all that needs to be in your onCreate() Feb 05 02:43:14 right now you have it above the method Feb 05 02:43:27 thanks, fixed line 13 Feb 05 02:44:29 you should get in the habit of capitalizing your class names like BusinessCard.java / BusinessCard.class instead of businesscard Feb 05 02:45:07 your code at the bottom public class BusinessCard extends... needs to be in another java file called BusinessCard.java Feb 05 02:45:32 and update the xml to not point to R.layout.main unless you want the same layout launched... is that what you want? Feb 05 02:46:50 no, it'll have a different layout Feb 05 02:46:52 no icons Feb 05 02:47:41 1) separate out that businesscard code into another java file and name it properly BusinessCard.java Feb 05 02:47:52 2) update your Intent to use BusinessCard.class Feb 05 02:48:17 3) move your TextView openBusinessCard line and the onclicklistener to onCreate of your AllThings... activity Feb 05 02:48:54 1) done Feb 05 02:51:04 when you say textview and openbusinesscard and moving that to the onCreate, should i then move lines 12-20 below the custom font info? Feb 05 02:51:21 ya sure Feb 05 02:53:12 is oncreate the creation of the app window on the device load? Feb 05 02:53:24 and again, thanks for taking the time Feb 05 02:53:32 not on device load, on activity load Feb 05 02:53:37 when your activity is loading, onCreate is run Feb 05 02:54:02 guys what would cause a textview not to update but only give the initial result every time unless you turn its on its side and destroy the activity and recreate it Feb 05 02:54:16 every time = every button click when it should be updating Feb 05 02:54:31 eoss: show us the code Feb 05 02:54:39 http://pastebin.com/a6J0YFiR Feb 05 02:54:52 gimme a sec, i'm expanding a NAS volume Feb 05 02:54:58 im appending it to make sure i know the onclick is working Feb 05 02:55:13 and its appending the same status every time, even when the network changes state Feb 05 02:55:32 now if i turn the phone on its side and it recreates the activity, i can get the new state to appear Feb 05 02:56:06 ok, i think i got 3) done Feb 05 02:56:20 eoss: checking now Feb 05 02:56:24 cool.. Feb 05 02:57:46 now to update the intent, is that in manifest.xml? Feb 05 02:58:03 dunivan: line 17 Feb 05 02:58:11 BusinessCard.class Feb 05 02:58:41 so it's already defined? Feb 05 02:59:13 ya just update the capitalization because your actual activity shoud be BusinessCard.java Feb 05 02:59:29 eoss: what is ni? Feb 05 02:59:40 network interface? Feb 05 02:59:42 right Feb 05 02:59:44 awesome thanks **** ENDING LOGGING AT Sun Feb 05 02:59:59 2012