**** BEGIN LOGGING AT Wed Feb 06 02:59:58 2013 Feb 06 03:00:58 trinity? Feb 06 03:02:13 just get eclipse classic lol Feb 06 03:02:15 http://developer.android.com/tools/sdk/ndk/index.html Feb 06 03:02:20 install NDK through there Feb 06 03:02:25 hello Feb 06 03:02:26 thanks Feb 06 03:02:46 sleepster: yeah, it'd be import android.content.ClipData; Feb 06 03:03:10 evanc: thanks. I tried that, but the AOSP build system is telling me that the class does not exist Feb 06 03:03:24 evanc: interestingly enough, I am also importing android.os.ParcelFileDescriptor Feb 06 03:03:28 sleepster: is your package processing aidl files? Feb 06 03:03:29 and it is able to find that correctly Feb 06 03:03:38 evanc, yeah my package is Feb 06 03:03:51 hmmm, can you pastebin your .aidl and the error message? Feb 06 03:04:05 hey, i will start to develop and app... But at the moment i an learning python, and not the android sdk... Also, i pretend to make the base of this app in other systems, so... I have read that i can use python to make adroid apps Feb 06 03:04:05 evanc: sure. it's pretty simple Feb 06 03:04:18 my question is, is worth it? Feb 06 03:04:40 akruz: no, you can't use Python to make "real" android apps Feb 06 03:04:51 you can run some basic code in sandboxes, but don't even bother Feb 06 03:05:02 ah okay, ty Feb 06 03:05:19 so, its leraning adroid sdk, loLXD Feb 06 03:05:36 er, no Feb 06 03:05:40 it's learning java, mainly Feb 06 03:05:43 evanc: http://pastebin.com/Vk50iCSj Feb 06 03:06:06 sleepster: error message? Feb 06 03:06:10 oh sorry Feb 06 03:06:52 no worries Feb 06 03:07:03 evanc: "couldn't find import for class android.content.ClipData" Feb 06 03:07:12 ahhh Feb 06 03:07:14 future makesex = sex.get_future(); Feb 06 03:07:36 evanc: if you go to the android website, it shows that ClipData is Parcelable too Feb 06 03:07:53 evanc: http://developer.android.com/reference/android/content/ClipData.html Feb 06 03:08:02 yeah Feb 06 03:08:05 ron_frown: wut :) Feb 06 03:08:16 sleepster: http://fauxgrammer.com/?p=4 ? Feb 06 03:08:23 some dude talking about c++ 11 features Feb 06 03:08:58 evanc: thanks. hmm. the problem is that I didn't implement that class :( Feb 06 03:09:07 yeah :-/ Feb 06 03:09:14 not sure if it's related, just food for thought Feb 06 03:09:29 thanks for the help Feb 06 03:09:36 I bet I just need to update some path variable Feb 06 03:09:39 i was just reading google came out with come nice b*tree backed stl containers Feb 06 03:09:59 sleepster... I dont know java either lol, not yet... But i know c++ Feb 06 03:10:07 what's weird is that androi.os.* would be configured but not android.content.* Feb 06 03:10:10 g00s fer what Feb 06 03:10:27 akruz: :) well I am pretty familiar with the language.. just not sure why the compiler doesn't want to find it Feb 06 03:10:49 I mean, it could find android.os.* correctly, but not android.content.* Feb 06 03:10:50 ron_frown: the current impl uses red-black trees Feb 06 03:11:00 ahh Feb 06 03:11:16 stuff like vector<> Feb 06 03:11:17 lol, i have started to learn and is not seens that hard... Once you know the bases, you can learn ant language Feb 06 03:11:33 akruz: yeah, but ant sucks and it will fuck your mind up Feb 06 03:11:44 oh, you meant *any* language Feb 06 03:11:46 haha Feb 06 03:12:31 g00s ant? Feb 06 03:12:31 sleepster: just for shits and giggles, change it to return a Bundle and see if it compiles Feb 06 03:12:38 (just fake the .java code) Feb 06 03:13:18 ron_frown: are you using mac? which version? what version(s) of the JDK do you have installed ? Feb 06 03:13:18 evanc: using bundle works Feb 06 03:13:24 sleepster: hmmmmmmm Feb 06 03:13:27 evanc: I think Bundle works because it is in android.os Feb 06 03:13:36 yes mac Feb 06 03:13:38 10.8.2 Feb 06 03:13:40 and I dont know Feb 06 03:13:53 the platform (don't have aosp checked out right now) might have one of those .aidl files for Bundle but not ClipData Feb 06 03:14:02 try making one for ClipData and put it in your tree Feb 06 03:14:19 (in the right package) Feb 06 03:14:47 evanc: oh I see the aidl files and the java files for ClipData in: ../frameworks/base/core/java/android/content/ClipData.java Feb 06 03:14:50 ../frameworks/base/core/java/android/content/ClipData.aidl Feb 06 03:14:56 both are there Feb 06 03:14:57 hrm Feb 06 03:15:14 and they look identical to android.os.Bundle :) Feb 06 03:15:29 I know it doesn't help you, but I'm stumped Feb 06 03:15:35 when you do: "import" in AIDL, does it look for the aidl file? Feb 06 03:15:36 ron_frown: i was in such a cluster fuck with apple and oracle's jvm; woe to the poor fuck that gets this messed up Feb 06 03:15:38 I'll keep thinking about it, but if you figure it out, ping me Feb 06 03:15:42 or the generated java file Feb 06 03:15:45 ClipData is API 11, if you're building against an older SDK it won't work Feb 06 03:15:45 thanks evanc for the help Feb 06 03:15:50 sleepster: good question; I would guess .aidl Feb 06 03:16:14 kevinb: ah. thanks. let me see if that is the problem :) Feb 06 03:16:32 oh, haha Feb 06 03:16:35 good call, kevinb Feb 06 03:16:45 ? Feb 06 03:18:44 kevinb: hmm. actually I forgot I put "LOCAL_SDK_VERSION := current" Feb 06 03:18:47 in my Android.mk Feb 06 03:18:52 which I believe uses the latest (17?) Feb 06 03:18:58 yeah, it does Feb 06 03:19:12 okay, now that i will de facto learn the sdk and etc... Feb 06 03:19:32 someone know a good online course (a free one, is what i can afford in the moment) Feb 06 03:19:43 i and taking the alison course Feb 06 03:19:44 akruz: d.android.com Feb 06 03:20:23 akruz: http://developer.android.com/training/index.html Feb 06 03:20:33 ty :) Feb 06 03:21:50 evanc, just to know... Is there a course (and its for future, so can be a paid one) that give a certification Feb 06 03:21:59 is have to be online, since i and form brazil Feb 06 03:22:05 an Feb 06 03:22:15 who knows, but here's a tip: not a single person in the world cares about certifications Feb 06 03:22:20 at least none that you want to work for Feb 06 03:22:42 lol Feb 06 03:23:55 evanc ty... I am trying to make my owm apps... But also, if is need to start my bussines (you know, ts need money) i want to search a job as android developer Feb 06 03:24:52 akruz: the best piece of advice i can give you, is know both iOS and Android. You may have to know others (html5/WP) soon. But if you want to freelance, or start a company, you need to know these 2 Feb 06 03:24:54 anyone know of a way to build using Android.mk file in Eclipse? Feb 06 03:25:24 I have a project I am working on that builds one way using eclipse, and another way using the Android.mk file Feb 06 03:25:30 it would be nice to not have to worry about that Feb 06 03:25:31 sleepster: I've never heard of anyone doing such a think since it's make-based Feb 06 03:25:43 evanc: ah I see Feb 06 03:25:44 g00s yes, i will learn both... But have to start in one of then right :) Feb 06 03:27:10 hi all, is there a way to get the id of a row in a database? Feb 06 03:27:18 I wish I didnt have software development A.D.D. Feb 06 03:27:18 akruz: yeah, at this point you can start with either; a year or 2 ago , i would have said start with iOS because the VCs wanted to back companies with iOS products Feb 06 03:27:24 I had a look at the cursor and it doesn't have a get._id() Feb 06 03:27:38 ron_frown: irc makes it worse :) Feb 06 03:27:56 I wanna buy myself my ferrari Feb 06 03:28:14 need to squeeze in a few more bucks Feb 06 03:28:27 g00s you ever get any pandaboards? Feb 06 03:28:39 no i haven't ! i'm not sure what panels to get Feb 06 03:29:22 g00s, i know that dont count, but i hate i-anything -_- (run from a possyble i-tard) Feb 06 03:29:25 I was talking with powers that be about next gen panda Feb 06 03:29:31 its built, and its impressive Feb 06 03:29:36 but may never see the light of day Feb 06 03:29:47 oh no Feb 06 03:29:53 is the project dying ? Feb 06 03:30:10 well TI decided not to specifically focus mobile/tablet Feb 06 03:30:14 and with the omap5 stuff Feb 06 03:30:17 I cant blame em Feb 06 03:30:22 oh yeah, i forgot they were behind that Feb 06 03:30:37 they spent a ton of cash on the next gen panda Feb 06 03:30:38 i have friends that work on omaps and snapdragon Feb 06 03:30:50 my buddy in tx is worried about stuff Feb 06 03:31:09 and it has a lot of the crap I've had to add to my panda derived hardware Feb 06 03:31:17 hum... help me to choose here, i just donwload the adt bundle or work another way around? Feb 06 03:32:04 ron_frown: i keep getting the panda and beagle mixed up Feb 06 03:33:07 which had build support in aosp ? Feb 06 03:33:46 panda Feb 06 03:33:53 it was somewhat half assed Feb 06 03:34:05 it was always only head Feb 06 03:34:13 and head was... broke more than it was good Feb 06 03:34:16 lets just put it like that Feb 06 03:34:17 haha Feb 06 03:34:23 :( Feb 06 03:34:51 finally I just ported all the shit over, stuck with a specific version of gfx driver and went to town with that Feb 06 03:34:51 i wonder if qualcomm had any dev kits Feb 06 03:34:58 I am sure they did/do Feb 06 03:35:09 but probably all NDA and shit Feb 06 03:35:14 so, what did tou all recomend? adt bundle or something else? Feb 06 03:35:19 you Feb 06 03:35:23 fuck the bundles Feb 06 03:35:37 install the stuff yourself so you know whats there Feb 06 03:36:16 g00s ty, lol i was thinking that would have a problem Feb 06 03:36:29 from my understanding, I can use Maps and Lists in AIDL.. I am trying to return the type: Map > Feb 06 03:36:31 but it fails Feb 06 03:36:51 I import java.util.Map and java.util.List Feb 06 03:36:56 everyting has to be Parcelable Feb 06 03:37:05 Ineteger and String are not Feb 06 03:37:21 oh CharSequence Feb 06 03:37:24 and Integer probably Feb 06 03:37:25 there is probably a dedicated container for strings Feb 06 03:37:25 thanks Feb 06 03:37:29 install the bundle after you've installed everything separately Feb 06 03:37:41 :p Feb 06 03:38:15 "With a single download, the ADT Bundle includes everything you need to begin developing apps" Feb 06 03:38:20 what about jdk?!?! Feb 06 03:40:06 wabz, but IF i will install everything before why i need to install the bundle? Feb 06 03:40:26 is not better to analyse what to install, like for example, something else than eclipse Feb 06 03:40:42 (or the eclipse, if i choose it in the end) Feb 06 03:41:12 forget the bundle. Install JDK 6; Install Eclipse 3.8.1 platform runtime; install android sdk; add JDt + ADT to eclipse, done Feb 06 03:41:21 hey, can anyone familiar with the apache HttpPost methods help me figure out why an image is being send, but a StringBody isn't? here's the code: http://pastebin.com/1xCmtTwZ Feb 06 03:41:40 whats going to happen on line 8 and was the interface instantiated on line 3? http://mysticpaste.com/view/jpjj7Sca5T?2 Feb 06 03:42:20 hmm.. Map works, but not Map Feb 06 03:42:29 String is one of the acceptable types for AIDL Feb 06 03:42:30 of course, ron_frown would say, forget eclipse altogether and install intelliJ Feb 06 03:43:13 ron_frown: can you tell me if you have the apple java or the oracle java ? Feb 06 03:43:19 g00s, is what i was saying, i will choose the plataform that fits me :) Feb 06 03:43:43 costs money Feb 06 03:46:07 g00s apple Feb 06 03:46:34 hmmm beer Feb 06 03:47:15 ron_frown: thx. i installed the oracle one and all shit broke loose Feb 06 03:47:42 oracle.* has been pretty shitty for me Feb 06 03:48:05 g00s its seems that some people really recommends intellij instead of eclipse Feb 06 03:48:39 I certainly do Feb 06 03:49:53 ron_frowm, what is the maind difference? Feb 06 03:50:07 just way better Feb 06 03:50:08 I dont know Feb 06 03:50:17 code completion works a lot better Feb 06 03:50:26 ui seems more conducive to writing code Feb 06 03:50:56 ron_frown, i will try it then :) Feb 06 03:51:12 i tried running same project on both IDE, the compiled APK on intellij crashed Feb 06 03:51:39 any fundamental difference in those 2 idea in compiling android stuff. Setting are the same Feb 06 03:51:47 I've had places where converting projects over, wasnt super srtaight forward Feb 06 03:51:56 but never seen it crash trying to compile same projects Feb 06 03:52:10 it didn't crash while compiling, crashed while running Feb 06 03:52:28 probably a fluke thing Feb 06 03:53:16 hmm Feb 06 03:53:22 didn't delve deep in that Feb 06 03:53:40 IntelliJ is very nice when you import Maven projects. Feb 06 03:53:56 And it feels a lot snappier. Feb 06 03:59:49 I concur Feb 06 04:01:31 here you go ron_frown http://www.gizmag.com/rocket-motorcycle-brittain-ebay-sale/26017/ Feb 06 04:01:57 i know that is boring lol, but i have another question... (in the future i will be here helping 2) Feb 06 04:02:02 is 400 mph fast enough? Feb 06 04:02:08 hoenstly there are plenty of bikes that are scary enough to ride Feb 06 04:02:16 is there the need of some kind of database in android dev? Feb 06 04:02:17 without the need for rockets Feb 06 04:02:27 akruz sqlite is built in Feb 06 04:02:39 yeah but rockets and lasers ftw Feb 06 04:02:59 ah okay ty, sql is the database that i an used with :) Feb 06 04:03:41 ron_frowm, but i can make all the database, the tables and etc... Or the sdk will just do this for me? Feb 06 04:03:56 by default you do all that for it Feb 06 04:04:11 or you could use something like activeandroid Feb 06 04:05:21 ron_frowm i preffer do by myself Feb 06 04:05:34 there you go Feb 06 04:07:35 ron_frowm i just use auto stuff when i have sure what its doing and i have sure that i will not change anything about that Feb 06 04:08:16 hm, I'm trying to get the id of a row, I've pasted the create db get single row, and error at http://pastebin.com/MP5dU991 Feb 06 04:08:39 Essentially the error is saying that the id row doesn't exist Feb 06 04:10:33 b0nn: you're not selecting ID in your cursor Feb 06 04:10:44 b0nn: you're using it as a where clause, but not in your list of selected columns Feb 06 04:10:50 Oh Feb 06 04:10:55 that could be it :) Feb 06 04:11:08 thanks :) Feb 06 04:11:11 so it's position is -1 since it's not in there, which gets you your error. I believe. Feb 06 04:11:39 makes sense now Feb 06 04:11:55 for some reason I had thought I had selected allrows Feb 06 04:24:40 i have to install apache ant if i have installed intelij? Feb 06 04:29:25 no Feb 06 04:29:33 okay :) Feb 06 04:33:36 what versions do you recomend for me install (of the android)? Feb 06 04:34:23 lol @ 'the android' Feb 06 04:35:17 lol, okay, serious Feb 06 04:35:35 i just install the last one, or i should install other versions? Feb 06 04:37:09 what version(s) are you targeting? Feb 06 04:38:38 lol, at the moment i dont really know... But lets say that i want do a app that have an wide audience Feb 06 04:39:31 so what is the most worldwide version, or in other words, is there and "obsolet" version? Feb 06 04:39:56 ho hum... http://developer.android.com/about/dashboards/index.html Feb 06 04:40:42 ty :) Feb 06 04:40:45 so its 2.3 Feb 06 04:41:32 it's a matter of opinion... Feb 06 04:41:58 anyone aware of examples how to best approach to queue messages to a server until the user comes online? Feb 06 04:42:05 I don't even know how to phrase it to google for it... Feb 06 04:42:48 Leeds is the most common nowdays... Feb 06 04:43:31 akruz: how long do you think it will take to write the app? i would say, for learning, right now, its easiest just go with android 4 and higher Feb 06 04:43:36 anybody know what the most common phones are right now? Feb 06 04:43:52 then you dont have to concern yourself with GB, its old crufti weirdness, honeycomb, etc Feb 06 04:44:11 g00s: hey, there are lots of people still using HC... 100s, at least! Feb 06 04:44:12 BennyT http://restmq.com/ Feb 06 04:44:31 mheld: http://www.appbrain.com/stats/top-android-phones Feb 06 04:44:41 bingo! thank you! Feb 06 04:44:44 g00s i will install both Feb 06 04:45:04 g00s: gracias sir Feb 06 04:45:16 I remember seeing instagram having some stats somewhere, too Feb 06 04:45:27 ah this is server side Feb 06 04:45:46 I need send a message to the server when the device comes online Feb 06 04:46:06 BennyT: what does your message exchange pattern & payload look like ? Feb 06 04:46:58 request / response, pub / sub, etc Feb 06 04:47:07 g00s: it is to request an offer, so the request includes only a few numeric/string parameters Feb 06 04:47:34 whats the matter with http there :| Feb 06 04:47:37 the user selects an offer, but I don't want to stop the user from using the cached info Feb 06 04:47:52 most of the users using this app won't have access to the internet Feb 06 04:48:10 so i can use http, but I can't count on it being available Feb 06 04:48:23 the user will be working from a cached version of data Feb 06 04:48:28 hello all Feb 06 04:48:33 hey QubeZ Feb 06 04:48:37 yo g00s Feb 06 04:48:59 I have a new set of images for a splash screen style tutorial for the user... but I'm trying to find a way to implement it while keeping the size down Feb 06 04:49:07 but 5 images taking up 1.2M is kinda bloating the apk Feb 06 04:49:09 BennyT all I can think of is to check for internet and make a http request each time your app starts up Feb 06 04:49:45 and just store the info in a local Sqlite database? Feb 06 04:50:00 would MessageQueue make sense in this case? Feb 06 04:50:12 each time user is going to send data Feb 06 04:50:15 check for internet access Feb 06 04:50:22 and just send if it's available Feb 06 04:50:28 if it isn't Feb 06 04:50:42 cache it using whatever storage you can imagine Feb 06 04:50:55 yea, for instances like that I have a helper method called isOnline that I call each time just to ensure intenret connectivity Feb 06 04:51:05 or you can even implement a network change receiver Feb 06 04:51:11 if you need low latency update Feb 06 04:51:34 i wonder why the GB 9 people aren't on GB 10 Feb 06 04:51:36 just check Feb 06 04:51:40 ah nice, i like that idea qubez Feb 06 04:52:09 ok, you guys have helped to get my brain going, thank you! Feb 06 04:52:16 np Feb 06 04:52:17 periodically using service Feb 06 04:52:49 i wouldn't recommend a service for that, just subscribe to a network change receiver so as soon as network goes offline or online, you're notified Feb 06 04:53:11 right, thats really all i need Feb 06 04:53:23 cool, thanks again Feb 06 04:53:27 oh! Feb 06 04:55:16 didn't know that simple solution Feb 06 04:56:04 i use that in To Do Mapr Feb 06 04:56:20 that RestMQ thing had me thinking it was related to MQ, like ActiveMQ or MQ, MQTT, Websphere MQ, etc Feb 06 04:56:46 RabbitMQ, etc Feb 06 04:56:51 well, i have to sleep, i will let the manager dowloading everything, later i finish this and atart to study and devoloping in android Feb 06 04:57:01 night o/ Feb 06 04:57:20 or day, if where you live have passed 6:00 am Feb 06 05:02:03 does anyone know how I might be able to get the current frame's exposure level when using Camera with SurfaceTexture? Feb 06 05:02:11 Hi! In what environment does : {@link #openFileOutput} Actually work like a link? Feb 06 05:04:16 jda2000: javadocs Feb 06 05:04:35 evanc, Thanks. Feb 06 05:05:09 * jda2000 googles Javadocs Feb 06 05:45:45 Huh! Just stumbled upon NsdManager in the docs. Very cool! Feb 06 05:48:57 Will the browser on the Nexus 10 be able to easily open locally advertised web servers? Feb 06 06:04:32 hmm, where can I get the htc one x+ Feb 06 06:17:43 this amazon coins thing for android … Feb 06 06:18:04 * g00s doesn't see where bezos is skating to Feb 06 06:26:48 how many android mips devices are there? Feb 06 06:27:15 my app now supports mips, arm and x86 but its filesize increased from 800k to 2.2mb -- i could reduce the size by 1mb by not supporting mips Feb 06 06:31:59 pragma-, whats your app? Feb 06 06:42:47 g00s amazon coins? Feb 06 06:43:17 canadiancow: yeah. reading more here http://www.theverge.com/2013/2/5/3955202/why-amazon-wants-its-own-currency Feb 06 06:43:32 i dont get it Feb 06 06:43:36 how is this different than a google play balance Feb 06 06:43:42 pragma-: I doubt there are many/any real devices Feb 06 06:43:52 canadiancow: can I use a Play balance at Amazon? Feb 06 06:44:00 :P Feb 06 06:44:04 not quite what i was getting at Feb 06 06:44:58 * g00s is still not happy with what amazon has done with android Feb 06 06:46:06 but they do have a cool A/B testing library :) Feb 06 07:59:40 anybody use pf here? Feb 06 07:59:40 this one seems to block mobile devices trying to connect to my website: pass in on $ext_if inet proto tcp from any to any port { 80, 25 } keep state (max-src-conn 100, max-src-conn-rate 15/5, overload flush global) Feb 06 07:59:44 full pf.conf for what it's worth: https://gist.github.com/shhhhh/4716633 Feb 06 07:59:47 port 80's connection rate has never been a problem with desktop computers, im guessing mobile devices connect differently somehow? Feb 06 08:03:22 erm, Android is Linux at the networking level - nothing more, nothing less Feb 06 08:15:03 guys, I have tabHost, which has its own idea for Activity's lifecycle (e.g. navigating from pauses activity). I want for every tab's activity to start from scratch (somewhat similar behaviour to FLAG_ACTIVITY_CLEAR_TOP - but I want to think of other options) . What would you advise Feb 06 08:15:03 ? Feb 06 08:19:46 If any one have ever tried to return a custom view for viewpageindicator and can help me. I posted question on SO. http://stackoverflow.com/questions/14706501/custom-pageindicator-from-viewpagerindicator-has-no-style Feb 06 08:30:04 What is it with the CREATOR field for parcelable? Feb 06 08:30:19 Did they try to fake multiple inheritance there? Oo Feb 06 08:41:38 any NoyPi in here ? Feb 06 08:59:39 ah, so all these reviews were for the Surface /Pro/ … i was wondering why all of a sudden there would be a raft of Surface RT reviews. Feb 06 08:59:57 seems like MS will have to work a little harder :) Feb 06 09:00:06 surface rt sucks Feb 06 09:02:00 i think ms is on the right road tho. the first android tablet sucked even more XD XD Feb 06 09:02:17 Does anyone know if for in app billing version 2 the nonce verification should be done on the server or the application? Currently I'm doing the signature verification on the server, but I don't know what to do about the nonce. Feb 06 09:03:25 The sample application for v2 does the nonce verfication on the device to keep a list of known nonces generated but doesn't suggest any best practice on where to do it... Feb 06 09:07:55 Hi Feb 06 09:07:55 how to setup SDL native on android with c++ (crosscompiling from windows, building with eclipse) ? Feb 06 09:19:30 what does this mean? error opening trace file: No such file or directory (2) Feb 06 09:21:57 is there any way I can open an old log file with eclipse so that I can read it with colors (errors=red, warnings=yellow, info=green, etc) Feb 06 09:22:51 gmag: not the best answer to your question, but you can use the console and an android color logcat script to colorize it Feb 06 09:23:07 (for eclipse I don't know, since I don't use it) Feb 06 09:23:11 hi guys, can I ask a question? Feb 06 09:23:39 timroes, but do you have that that script? Feb 06 09:23:44 I dont mind using the console Feb 06 09:23:45 https://github.com/timroes/android-snippets/tree/master/tools Feb 06 09:24:06 two python scripts, one for coloring one for just showing stuff related to your app Feb 06 09:24:13 i normally use it like: Feb 06 09:24:14 can somebody explain min sdk target sdk and compile sdk Feb 06 09:24:18 loggrep my.package.name | logcat Feb 06 09:24:58 ok, and do I need logcat script as well? Feb 06 09:25:24 logcat script is for coloring Feb 06 09:25:28 you can use it like: Feb 06 09:25:30 adb logcat | logcat Feb 06 09:25:32 or just easier: Feb 06 09:25:34 logcat Feb 06 09:25:49 loggrep is just if you want to see only messged for your app Feb 06 09:26:05 er... not sure I understand loggrep Feb 06 09:26:26 you mean, when a logfile has messages from different apps? Feb 06 09:26:32 ah yeah Feb 06 09:26:37 oh ok Feb 06 09:26:40 i am talking about adb logcat :) Feb 06 09:27:45 kk Feb 06 09:28:21 but if you have a protocolled log you can use it like Feb 06 09:28:25 cat my.log | logcat Feb 06 09:28:28 to just colorize it Feb 06 09:28:40 timroes, yup that will be exacly what I want Feb 06 09:28:45 you can pipe any adb logcat output into both of the scripts or if you don't pipe anything into them, they will read adb logcat Feb 06 09:28:55 I see Feb 06 09:28:59 great Feb 06 09:29:58 any1 free for question? Feb 06 09:30:43 sucejson: you won't get answers here on meta questions, just ask your question and if someone knows, s/he mightbe answering Feb 06 09:30:49 can i use compile sdk google api 17 with my android 4.0.3? Feb 06 09:31:55 it does tend to help if your question makes sense though Feb 06 09:32:41 sucejson: min sdk version means how old version of android you want to support. if thats what you meant Feb 06 09:32:41 If you mean what i think you mean, you can compile against any api level and 'use' the app on any device between your minSdkNumber and maxSDKNumber defined in your manifest file Feb 06 09:33:06 though you won't have methods, added in later api levels ofc, and you app might crash at runtime, if you try to use them Feb 06 09:33:34 heya folks, quick question - I have a MenuItem with an actionLayout, but I want that actionLayout to be the same size as the actual menu item... it seems to take up all the available space in the action bar regardless of the fact that it's set to "wrap_content" Feb 06 09:34:08 I'm flipping between my activity and the home-screen (e.g. no screen rotation). Do I understand it correctly that onRestoreInstanceState() is never called after going back to the application? Feb 06 09:34:09 all it has in it is the image that was used for the menu item in the first place, and a textview Feb 06 09:34:55 peroht not when your activity is not destroyed Feb 06 09:35:36 xorgate: ok, so in the scenario that it is destroyed (e.g rotation) there is a call to onRestoreInstanceState(). Feb 06 09:36:07 hi timroes :) Feb 06 09:36:18 This method is called after onStart() when the activity is being re-initialized from a previously saved state, given here in savedInstanceState. Feb 06 09:36:23 squ: good morning :D Feb 06 09:37:07 google apis 17 uses android 4.2 compiler while my device is version 4.0.3. does it make any hindrance creating an app? Feb 06 09:37:21 can somebody clear me on this? Feb 06 09:37:31 xorgate: I see. And the same Bundle is sent to both onCreate() and onRestore..()? Feb 06 09:37:33 sucejson only if you use >4.0.3 methods Feb 06 09:37:37 timroes, I like your logcat script coloring scheme, really nice. But is it possible to navigate on the file? Cause cat is just printing the content of the log with the coloring Feb 06 09:37:59 what do you mean by 'navigating'? Feb 06 09:38:10 you can just scroll up and down your console :) Feb 06 09:38:11 peroht first time onCreate: bundle is null. onSaveInstanceState(bundle) bundle goes to next onCreate Feb 06 09:38:22 thanks Feb 06 09:38:35 i mean, scroll up and down Feb 06 09:38:42 I see Feb 06 09:40:16 you could perhaps also use an additional program what can handle ansi color codes :) Feb 06 09:40:19 xorgate: ok. And in that next onCreate, if I've done an orientation change within or outside the activity, the onRestoreInstanceState is also executed with the same Bundle content? Feb 06 09:40:20 less can't as it seems Feb 06 09:40:40 I have a Hallo World example compiled bu have by "adb push hello /data/misc/hello" a "failed to copy 'hello' to '/data/misc/hello': Permission denied" what to do? Feb 06 09:40:46 gmag: cat my.log | logcat | more Feb 06 09:40:55 press h in more to get a help :D Feb 06 09:40:58 peroht hm now you mention it.. not sure. try it Feb 06 09:41:00 is usefull if you want to search or such Feb 06 09:41:10 perlite ive never used onrestoreinstancestate anyways Feb 06 09:41:49 xorgate: yea, I'll implementing some logging of the method life-cycle to sort this out right now. Feb 06 09:43:48 gmag: cat my.log | logcat | less -R (with -R it can handle colors, and in my opinion `less` is more comfortable to use than `more`) :) Feb 06 09:46:55 xorgate: yes, if i've navigated to the homescreen onStop is called. then i rotate the device. then return to the activity a call to onDestroy is executed, followed by onCreate, onStart and what I suspected onRestoreInstanceState. Question answered :) Feb 06 09:48:00 have how to push something in /data without root mode? Feb 06 09:48:21 i think you can try 'run-as' Feb 06 09:48:32 depends on what you're trying to do Feb 06 09:48:36 peroht cool.. Feb 06 09:48:44 but you can still only touch your own app's storage area, not arbitrary locations Feb 06 09:48:51 hey Feb 06 09:48:57 I need help with my app Feb 06 09:49:03 can anyone help in private? I will maybe pay Feb 06 09:49:10 you're ok, your app is ok Feb 06 09:49:10 peroht: well.. thanks for initial pointer. Feb 06 09:51:01 Ilhami: you will way more likely get answers, if you just ask your questions and if someone knows they will answer Feb 06 09:51:05 hello, if I buy an application from market and then later I install another ROM of format the phone then what will happen to that purchased application ? Feb 06 09:51:15 (basic concept of iRC help channels) Feb 06 09:51:20 Yes but its so hard to explain.. you will need to see my code as well Feb 06 09:51:30 you can paste it to pastebin Feb 06 09:51:37 the parts that are relevant Feb 06 09:51:55 timroes, that's cool Feb 06 09:52:00 jennie: a) this channel is for app development, not general questions and b) the purchase *almost* always goes with the account, not the specific device or OS install, so as long as you login to the same account, the same apps are available - and might even automatically reinstall themselves Feb 06 09:52:38 Leeds, so I can install it as many times in same device ? Feb 06 09:52:44 yup Feb 06 09:53:09 and if I login my google account in other phone then I can install it in other phone too ? Feb 06 09:53:19 yup Feb 06 09:53:27 magic of cloud :D Feb 06 09:53:27 (and #android is still the right place to ask about this) Feb 06 09:54:59 where is the normala path for apps (.apk) under android? /data ? Feb 06 09:55:04 http://pastebin.com/kpm1GcqW Feb 06 09:55:17 I tried to make a handler like this. I cannot open my app now Feb 06 09:55:24 crashes at launch time Feb 06 09:55:48 Ilhami: pastebin the crash trace as well Feb 06 09:56:22 in ormlite, if I in class Foo have ForeignCollection, is the only way of adding these really to have a field: private Foo parent; on Bar? Feb 06 09:56:34 Hello, I am using Sherlock AB and I want to change the bottom border of a selected tab how can I do that ? ( I read the stackoverflow didn't find any answer) Feb 06 09:57:22 http://pastebin.com/MS4Hik4E Feb 06 09:57:33 this is my error log Feb 06 09:58:06 you have somewhere in yuour layout an onClick method defined (on button startButton) but never have implemented that method in your activity class Feb 06 09:58:28 or to put it another way, is there "a method startButtonClicked(View) in the activity class com.example.quiz.MainActivity"? Feb 06 09:59:06 No there isnt.. I tried with startButtonClicked but I removed it and tried with the other.. it didnt work Feb 06 09:59:23 you have to implement it then? Feb 06 09:59:37 so public void startButtonClicked(View v) ? Feb 06 09:59:38 make a method public void startButtonClicked(View v) { ..} in your acitivty Feb 06 09:59:54 and then you can define that in onclick in the layout file Feb 06 10:00:03 *or* don't have onClick="startButtonClicked" in the layout if you don't actually have a method called that Feb 06 10:00:48 define the handler in the layout XML *or* in the code, not both Feb 06 10:00:48 I made that already Feb 06 10:01:20 android:onClick="startButtonClicked" /> Feb 06 10:01:24 I have this line Feb 06 10:01:54 yeah but obviously not the matching method in your activity Feb 06 10:02:00 that could be called when you click the button Feb 06 10:03:14 I will post my whole MainActivity class Feb 06 10:03:20 in a pastebin Feb 06 10:03:52 http://pastebin.com/y72rMt5G Feb 06 10:04:00 I still have the same error Feb 06 10:05:00 try a clean and build Feb 06 10:05:39 morning! :) Feb 06 10:05:48 beer o'clock! Feb 06 10:06:00 coffee'o'clock! Feb 06 10:06:07 bacon o'clock Feb 06 10:06:20 mmmmmhhhdroooool bacon Feb 06 10:06:21 NO BACON Feb 06 10:06:51 I tried timroes Feb 06 10:06:53 no luck Feb 06 10:07:07 i also tried timroes :p Feb 06 10:07:09 giggidy Feb 06 10:07:17 :D Feb 06 10:07:41 frankly, we've *all* tried timroes at one time or another Feb 06 10:07:42 he might be feisty at first Feb 06 10:07:51 Anyone knows if the nonce verification for the Google Play In-App billing API v2 should be done on the app or on a server? The documentation only mentions "A number used once. Your application generates the nonce and sends it with the GET_PURCHASE_INFORMATION request. Google Play sends the nonce back as part of the JSON string so you can verify the integrity of the message." Feb 06 10:07:55 but just give him some chocolate Feb 06 10:08:06 timroes if you want I can pay you 10 dollars for helping me :D Feb 06 10:08:12 oh man, chocolate with bacon Feb 06 10:08:25 how about chocolate with chili? Feb 06 10:08:42 hmmm... Feb 06 10:08:43 na Feb 06 10:08:54 chocolate with chili actually aint bad Feb 06 10:09:11 i also had some choclate covered ginger candy Feb 06 10:09:28 got chili chocolate kit kats here, bought them in Japan over Christmas Feb 06 10:09:42 that sounds rad Feb 06 10:09:51 timroes or 20 dollars? Feb 06 10:09:55 BadDesign: just to say, we see you - but people generally don't answer if they don't know Feb 06 10:10:28 I need a programming mentor Feb 06 10:10:44 Ilhami: you need to take it slow and learn Feb 06 10:10:44 Ilhami: read a book Feb 06 10:10:45 google is my mentor Feb 06 10:11:08 Its an assigment for thursday.. just mentioning... Feb 06 10:11:12 so I dont have so much time Feb 06 10:11:23 ah, school :) Feb 06 10:11:27 yes Feb 06 10:11:28 then you gotta learn quick :p Feb 06 10:11:29 left to the last minute? Feb 06 10:11:30 :( Feb 06 10:11:36 almost hh Feb 06 10:12:02 have to turn it in tomorrow... hopefully I can get some help before Feb 06 10:12:57 Ilhami: and what would I do with 20$ :D Feb 06 10:13:02 just draw them a picture of your favorite cartoon character getting roflstomped by your less favorite pokemon with the comment "---- ate my homework" Feb 06 10:13:21 buy a car Feb 06 10:13:21 :D Feb 06 10:13:29 lol Feb 06 10:13:40 Ilhami: could you perhaps with the corrections you made post the layout file, the strack trace and activity class again Feb 06 10:13:41 that hardly pays for the cup holder Feb 06 10:13:58 for 20$ i can't even refill gas for my car :D Feb 06 10:15:02 whatever problem you have Ilhami i can fix it for the simple price of one million euros Feb 06 10:15:27 hhh Feb 06 10:15:48 don't mock the euro! Feb 06 10:15:58 it's a very promising valuta Feb 06 10:15:59 yeah i would also prefer being paied in euro, since dollar is not the strongest currency :D Feb 06 10:16:16 If ih register a BroadcastReceiver, will it stay if i close the App? Feb 06 10:16:21 here's the xml file http://pastebin.com/qVx5a7Bq Feb 06 10:16:26 (and i meant that absolutely not sacrasticly, just calculated how much 20$ would be in euro here :D) Feb 06 10:16:52 hehe.. yeah, the euro is a bit more worth than the dollar Feb 06 10:17:14 however, you do not wish to be paid in DKK Feb 06 10:17:32 but we have taxes Feb 06 10:17:40 i general prefer being paid in food :) Feb 06 10:17:47 so we pay the same as dollar... Feb 06 10:17:55 YOU CANNOT BUY FOOD WITH FOOD! Feb 06 10:17:57 but I wont pay for pork :) you can eat halal food Feb 06 10:18:01 lime, why don't you want to be paid in DKK? Feb 06 10:18:01 (i am from germany) Feb 06 10:18:12 I will pay you in Danish Kroner Feb 06 10:18:13 DKK Feb 06 10:18:30 rohdef, if he's used to the dollar, and get the same amount in dkk.. he would feel cheated :) Feb 06 10:18:52 lime, well true, but that's a simple matter of calculation Feb 06 10:19:16 I live in Denmark... any Danes here? Feb 06 10:19:18 aren't you the a walking calculator, huh? Feb 06 10:19:33 Ilhami, der er ingen danskere her.. Feb 06 10:19:46 nej jeg kender intet til Danskere Feb 06 10:19:48 hhh lime hjælp mig lige.. :D Feb 06 10:20:00 Jeg er træt af alle de der errors Feb 06 10:20:16 det forstår jeg da ikke.. jeg elsker errors Feb 06 10:20:22 ... Feb 06 10:20:44 hhh lime er du fra Kbh området? Feb 06 10:20:45 the funny thing is that "..." is universal Feb 06 10:20:47 kommer lige forbi Feb 06 10:20:55 i could also replace it with -.- Feb 06 10:20:59 that is also very universal :D Feb 06 10:21:03 Ilhami, i'm from nørrebro Feb 06 10:21:13 but you probably know more about this stuff than i do Feb 06 10:21:20 Ilhami, I just started reading the conversation, so I don't know the challenge yet (Tror vi skal holde os paa Engelsk, af hensyn til chatten) Feb 06 10:21:27 er du på KEA? Feb 06 10:21:33 as a german that always sounds like some IKEA furniture :D Feb 06 10:21:39 what rohdef said ^^ Feb 06 10:21:54 (though i know ikea is swedish and not danish, and their names are anyway fantasy names, not real swedish) Feb 06 10:22:17 timroes, their names are usually 'people-names' Feb 06 10:22:24 the ikea furniture Feb 06 10:22:27 in germany not Feb 06 10:22:32 lime går du på KEA? :) Feb 06 10:22:35 well, swedes are weird Feb 06 10:22:36 (ikea has afaim internationalized names) Feb 06 10:23:00 Ilhami, nope i'm not on kea.. in fact i don't even study this stuff yet Feb 06 10:23:03 in germany they take english/german word bases explaining the furnite and make them sound skandinavian) :) Feb 06 10:23:12 lime jeg er også på Nørrebro hh Feb 06 10:23:30 oh that sounds terrible timroes Feb 06 10:23:40 vil du have en 100kr seddel for at hjælpe? Feb 06 10:23:41 okay at least for the small stuff, furniture might be names :D Feb 06 10:24:15 Ilhami, på trods af at jeg er på røven og egentlig godt kunne bruge penge så er 100kr altså bare ikke særlig meget :p Feb 06 10:24:32 hvor meget vil du da have? Feb 06 10:24:35 hmm perhaps its really scandinavian words, what would make it even more funny :D Feb 06 10:24:49 en million kroner Feb 06 10:24:56 :D Feb 06 10:25:05 så rig er jeg ikke :( Feb 06 10:25:06 candles = glimma (german glimmen = to glow) Feb 06 10:25:08 scandinavian words are really messed up Feb 06 10:25:23 timroes, that works in swedish as well Feb 06 10:25:39 so i'd say that is an actual word Feb 06 10:26:26 after taking german classes here in denmark, and everyone telling me german is alot like danish i'm gonna go ahead and claim that it's actually much closer to swedish Feb 06 10:26:36 yes, i'm also fluent in swedish Feb 06 10:27:03 and not so fluent in german Feb 06 10:27:20 lime kan du ikke add'e mig på skype? Feb 06 10:27:21 yeah german is a fu**ed up language Feb 06 10:27:26 ich verstehe es überhaupt nicht Feb 06 10:27:33 wouldn't want to learn it as a foreig language :D Feb 06 10:27:50 timroes, i totally agree Feb 06 10:28:05 but then again.. dutch would be a worse language to learn Feb 06 10:28:29 timroes did you look at the xml file? Feb 06 10:28:30 try finish if you really want to mess up yoru mind Feb 06 10:28:38 haha Feb 06 10:28:50 some chicks in town once taught me some finish.. Feb 06 10:28:58 Ilhami: I did, still waiting for new logcat and class file :) Feb 06 10:29:13 lime: in german eyes, finish really looks like an imaginary language to fill places Feb 06 10:29:24 like that pseudo language you use in printing (lorem ipsum...) Feb 06 10:29:39 http://pastebin.com/teVH6UyC this is the class file Feb 06 10:29:44 way too much 'y' and 'ü' in their language :D Feb 06 10:30:20 http://pastebin.com/fGLG1Sby error log Feb 06 10:30:33 timroes, the worst thing is, they think they belong on the scandinavian unity.. but hell, their language is more slavic (and just a mixture of characters with alot of umlaut on top of that) where as the rest of the scandinavian languages are germanic Feb 06 10:30:59 Ilhami: that was the error log you already sent before you fixed it... Feb 06 10:31:11 the times are exactly the same, I would like to see a new error log :D Feb 06 10:31:27 hhh oops Feb 06 10:31:38 but its the same Feb 06 10:31:47 this is the newest but let me try to run it again Feb 06 10:32:04 lime: yeah finish is ungarian afaik, (what is in a longer distance germanic again) wheres scandinavian are not so far from germanic away Feb 06 10:32:07 i'm still trying to figure out what 'hhh' is supposed to mean.. is it like the spanish jajajaja? Feb 06 10:32:20 i think it means hahaha? Feb 06 10:32:24 laughing Feb 06 10:32:27 yeah, my thought too Feb 06 10:32:34 i just dunno any other danes writing hhh Feb 06 10:33:23 i care way too much about languages *-) Feb 06 10:33:27 and slang Feb 06 10:33:51 http://pastebin.com/EBD1Ybv3 new log file Feb 06 10:34:33 btw, that video on memory leaks was really interesting.. just, after i had watched it an tried his method on my own project it didn't even come close to his results.. Feb 06 10:34:36 hmm that is really strange, it looks all right to me Feb 06 10:34:43 If i register a BroadcastReceiver, will it stay if i close the App? Feb 06 10:34:47 class names seem to match, i don't see any typos Feb 06 10:35:05 timroes...teamviewer? :D Feb 06 10:35:27 where's the actual script for this set of errors? Feb 06 10:35:42 Im just copying from the log cat Feb 06 10:35:53 yeah.. but what does the code look like? Feb 06 10:35:59 did you pastebin it somewhere? Feb 06 10:36:11 lime: code: http://pastebin.com/y72rMt5G , xml: http://pastebin.com/qVx5a7Bq Feb 06 10:36:12 (i've been told i shouldn't use the word 'script') Feb 06 10:36:22 perhaps someone else will find an error Feb 06 10:36:59 i just got out of bed, don't count on me :D Feb 06 10:37:13 Ilhami: don't have teamviewer installed here and also not in the mood to do so :D Feb 06 10:37:33 but if that is really the code, I would assume something withing your build process goes wrong Feb 06 10:37:45 e.g. you have a real device connected to which you build but look all the time at an emulator :D Feb 06 10:37:50 has happened to me already several times Feb 06 10:38:03 could anyone advice a good practise on how to display elapsed time to the UI when using a handler with postdelay to 1 minute. I want to nicely update every 10th second like: 0 -> 10 -> 20... 100 END Feb 06 10:38:04 I use the emulator Feb 06 10:38:20 but I bought a device which I will use later today Feb 06 10:38:41 I will restart the emulator now Feb 06 10:39:16 well, i don't think that's where errors come from.. Feb 06 10:39:27 and just plug the device in already Feb 06 10:39:30 :D Feb 06 10:39:30 at least shouldn't Feb 06 10:39:36 first I was thinking to use two handlers, one with postdelay to one minute and another with delay to 10 seconds and this one update the ui, is tha tokay? Feb 06 10:39:39 I dont have the device yet.. Feb 06 10:42:42 alright, so what i normally do when I stumble into errors, is take away all the new lines of code i added.. see if it want to build it, and then slowly add the new lines and try and build again until i've isolated the line that messes it all up Feb 06 10:44:17 I can launch the app now :) Feb 06 10:44:22 after I restarted the emulator Feb 06 10:44:51 when I press the start button the app crashes though... Feb 06 10:45:01 and uhm.. all the times i've messed around with xml eclipse has forced me to add an @Override onClick in there Feb 06 10:45:45 yeah if you override a method you should use @OVerride annotation, but in that case you are not overriding anything, just implementing a method, that should be called when clicked Feb 06 10:46:54 also, i'm not sure if this counts for buttons.. but for my menu i use textviews as buttons and i'm forced to add android:clickable="true" Feb 06 10:47:05 timroes Feb 06 10:47:11 new error log... http://pastebin.com/NTeusd6k Feb 06 10:47:33 what the hell are you trying? :D Feb 06 10:47:47 what do you mean? Feb 06 10:47:55 so many errors :s Feb 06 10:48:02 when I press the start button it happens.. Feb 06 10:48:03 hhh Feb 06 10:48:05 are you just facerolling the keyboard? Feb 06 10:48:08 :D Feb 06 10:48:59 well.. this is a new one --> java.lang.IllegalStateException: Could not execute method of the activity Feb 06 10:49:09 where it said a specific method before Feb 06 10:49:26 * lime is observant \o/ Feb 06 10:50:10 I think its my arraylist.. without being sure Feb 06 10:50:27 i feel like dropping by KEA just to yell at you in real life Feb 06 10:50:31 I made an ArrayList with questions in another class. Feb 06 10:50:39 hhh Feb 06 10:50:43 kom forbi Feb 06 10:50:51 Ilhami: no that problem is really explained very detailes, that it can't find a method that obviously is there Feb 06 10:51:01 afaik either there is something wrong with the build process Feb 06 10:51:14 that you actually don't use THAT code we have seen in the pastes Feb 06 10:51:22 or some other very really strange things going on Feb 06 10:51:39 new Bundle().putLongArrayList is not available? Feb 06 10:51:45 did you set the activity in the manifest yet? Feb 06 10:51:54 yes Feb 06 10:52:13 ok, just checking :) Feb 06 10:53:37 Ilhami: i installed teamviewer.. Feb 06 10:53:42 pm me your id and pin Feb 06 10:56:04 has some one expireance with SDL? need help with setpuing it through windows crosscompiling Feb 06 10:59:03 could anyone advice a good practise on how to display elapsed time to the UI when using a handler with postdelay to 1 minute. I want to nicely update every 10th second like: 0 -> 10 -> 20... 100 END Feb 06 10:59:04 first I was thinking to use two handlers, one with postdelay to one minute and another with delay to 10 seconds and this one update the ui, is tha tokay? Feb 06 10:59:12 Aren't view states in a fragment automatically saved and restored on rotation? Feb 06 10:59:39 no? Feb 06 10:59:45 in ormlite, is there a way to create an object with a foreigncollection, without having to specify the parent on the children? Feb 06 11:00:06 Daani: you only just asked that Feb 06 11:00:11 patience Feb 06 11:00:14 / If activity recreated (such as from screen rotate), restore Feb 06 11:00:14 // the previous article selection set by onSaveInstanceState(). Feb 06 11:00:32 from FragmentBasics.zip http://developer.android.com/training/basics/fragments/creating.html Feb 06 11:00:53 is google playstore able to update an app even when it has deviceAdminpermissions? Feb 06 11:03:43 daaamn.. it's snowing outside :s Feb 06 11:04:38 timroes, can I view your desktop too? :-) Feb 06 11:04:50 squ: i viewed his desktop :D Feb 06 11:06:11 Ilhami, i'm interested what's your course called? Feb 06 11:06:30 Datamatiker.. Det er valgfag Feb 06 11:06:35 altså android Feb 06 11:06:38 og vi er næsten lige startet Feb 06 11:06:45 aah ok.. jeg har også planer om at læse datamatiker Feb 06 11:06:50 her til sommer Feb 06 11:07:04 Jeg er ikke så god til det... :( Feb 06 11:07:10 Hi. Is there some working way, to calculate Y position of webview? Feb 06 11:07:11 altså android Feb 06 11:07:15 I am trying to make "ebook" app with only one long page in webview...user can add bookmarks to current position. The problem is, that while restoring the position, it is different for every zoom level or screen orientation and I can't find any working formula on the internet Feb 06 11:07:19 engelska! Feb 06 11:07:20 Sorry for my english, hope you understand Feb 06 11:07:41 Zharf, nääh, danska är mycket bättre Feb 06 11:07:58 but yeah, we're in an international chatroom Feb 06 11:08:03 so i agree, lets stick with english Feb 06 11:08:30 Ilhami, you problem is that it can't find the method for event handling? Feb 06 11:08:35 Svenska! :P Feb 06 11:08:40 Ilhami, or have you solved that part? Feb 06 11:08:48 rohdef I solved that part Feb 06 11:08:53 great Feb 06 11:09:02 squ, yes.. that's what I usually tough.. but I have a view here that doesn't retain it's Visibility state on rotation Feb 06 11:09:10 Ilhami, ok what is the current challenge? Feb 06 11:09:14 lime, the only reason I understood some of that is because I "know" some swedish <.< Feb 06 11:09:31 now I need to get the timer to work with the questions Feb 06 11:09:33 zharf, hehe, fair enough Feb 06 11:09:44 so when the time is up the question has to change Feb 06 11:10:22 Ilhami, so you fixed the problem you had before? Feb 06 11:10:27 yep Feb 06 11:10:32 the start button works as well now Feb 06 11:10:36 great :D Feb 06 11:10:54 How should I make answers for the questions? Feb 06 11:11:02 I need 4 possibilities Feb 06 11:11:06 for each question Feb 06 11:11:07 clickable textviews \o/ Feb 06 11:12:16 ok let me try to make them in xml first... Feb 06 11:12:16 clickable textviews = badcoding-style Feb 06 11:12:32 misterli what do you recommend? Feb 06 11:12:35 misterli, so i assumed :) Feb 06 11:12:35 a list? Feb 06 11:12:38 design a Button Feb 06 11:12:49 misterli I am new to Android Feb 06 11:13:02 Just design a Button that it looks like your TextView Feb 06 11:13:44 I need 4 buttons then? Feb 06 11:13:47 do images drawable-hdpi e.t.c. need to hold the images directly under ./ or can I use sub directories? seem to fail if I use ./blah/image.png Feb 06 11:13:59 I dont know what you are trying. Just rode that you love clickable Textviews Feb 06 11:15:16 ahhughes. Subfolders are not (yet) supported Feb 06 11:16:00 Probaby you want to use the assets folder instead :) Feb 06 11:17:26 cheers misterli Feb 06 11:21:39 thisPath.moveTo((float)x1, (float)y1); ...alright, so i assume this is bad coding.. should i make it a float before i use the variable? Feb 06 11:24:45 I just got finally hit on the head by a fragmentation issue where iOS is much better :( Feb 06 11:24:54 is the implementation of Localization behavior Feb 06 11:25:00 Samsung just suck at that Feb 06 11:25:33 and I made my program to work properly on samsungs, and this introduced lots of corner cases where it won't work Feb 06 11:25:59 I have lost my password for my signing key. (I know how signing works and know there is no recovery). What will I need to change in a new app I upload in order to have it exist as a separate app? How do I get the best transition between the two apps? Feb 06 11:26:25 I just downloaded the image bundle from here http://developer.android.com/design/downloads/index.html problem is all the files are named with a numeric prefix like... 10_xxxxx.png and my generated R contains illegal java field names! argh! Feb 06 11:26:30 where/how can i read these log messages while writing code in C++ via JNI? For example: line#24 http://bpaste.net/show/XrEgVBWP0H0Rw2IKQAOG/ Feb 06 11:28:52 is there a way to add information to the /strings.xml fuke with every build? Feb 06 11:28:59 speeder_: what do you mean by "fragmentation" exactly? Excuse the n00b question. Feb 06 11:31:10 how do you disable buttons until a button has been pressed? Feb 06 11:31:36 FreeAir: fragmentation: when there are lots of different ways the devices behave, and break your code Feb 06 11:31:50 I see people complaining of this all the time, usually related to screen sizes Feb 06 11:31:54 but I managed greatly Feb 06 11:32:04 until I started having localisation problems Feb 06 11:32:18 Samsung way to implement localisation suck Feb 06 11:32:21 hi.. what's the problem when I launch my app together with the emulator.. can't find the AVD device emulator to select and run to Feb 06 11:32:46 there's no option for any running android emulators Feb 06 11:33:25 speeder_: thanks for the explanation Feb 06 11:34:44 I can't find any avd device to work with my app. what problem?? Feb 06 11:35:36 I have a view which is Visible in the XML Layout, when I create the View, the firt time (when savedInstanceState is null) I set it to Visibility.GONE, then I manipulate the view visibility according to the user UI manipulation. Never set it again programmatically if not when a user require it. --- So I expected the view to retain its visibility state when rotating, instead it DOES NOT... do you have any idea what coul Feb 06 11:35:36 d it be? Feb 06 11:37:59 the same layout has some view in it (EditText view) which retain their state as I expect (the text written by the user in it) Feb 06 11:39:00 what is GPU host? Feb 06 11:42:01 "Use Host GPU" iirc Feb 06 11:42:31 So you can run OpenGL ES 2.0 applications inside the emulator. Feb 06 11:42:53 sucejson: that refers to the GPU of the computer running your emulator Feb 06 11:43:47 yeah. absolutely run all my avd device. next question is, why I can't enable both GPU and snapshot together when running an emulator device? Feb 06 11:45:20 anybody here? Feb 06 11:45:30 sucejson: because you can't safely/sanely snapshot GPU state Feb 06 11:45:34 lime are you here? Feb 06 11:45:44 i'm still around Feb 06 11:46:03 Må jeg lige spørge om noget? Feb 06 11:46:12 p_l: pft, every game emulator under the sun can do so Feb 06 11:46:26 then in terms of speed running emulators virtually. what alternative will you use other than snapshot? Feb 06 11:46:28 if you're gonna ask in danish keep it to pm to avoid pissing off the crowd ;) Feb 06 11:46:45 p_l: Is that the technical reason? I've not seen that written down anywhere. Feb 06 11:47:11 lime: In the end, I had pizza yesterday! Feb 06 11:47:21 hello android-devs, can anyone explain how a setjmp can fail in this context? if (setjmp(png_jmpbuf(png))) { Feb 06 11:47:21 LOGE("failed png setjmp\n"); Feb 06 11:47:21 Feb 06 11:47:31 how to find height of View which layout_height is set to match_parent ? Feb 06 11:47:33 kakazza, lol.. i just ended up eating cereals :) Feb 06 11:47:36 layoutparams retursn -1 Feb 06 11:47:45 but now you made me crave pizza again Feb 06 11:48:09 I want to dynamically adjust height of a view (in percents) of total available height Feb 06 11:48:42 one choice is programmatically set linear layout weight or get total height Feb 06 11:49:11 pragma-: and all of them *emulate* the whole GPU with really convoluted stuff and only then call into their own GL pipeline, instead of translating GLES pipeline onto hosts GL pipeline Feb 06 11:49:57 and all of them manager to run 500 times faster than the android emulator Feb 06 11:50:13 how can I make my view shrink to the visible screen size when the keyboard is opened? Feb 06 11:50:48 pragma-: because they emulate *old* stuff, so doing cycle-accurate timings in certain paths (Emotion Engine... *shiver*) is easier Feb 06 11:51:13 ps2 and wii aren't that old Feb 06 11:52:06 pragma-: Architecturally PS2 is, at best, a cross between Voodoo and GeForce 2 ;) Feb 06 11:52:20 and direct VGA register access Feb 06 11:53:54 anybody? I have 3 questions in an ArrayList... how can I assign 3 answers to each of those questions? Feb 06 11:54:23 I hate using the android emulator. It's so derpy. Simple commands like 'su -c "logcat -v time"' work as expected on devices and in linux shells, but the emulator barfs on the quotes for some absurd reason. Feb 06 11:54:59 and babbles inane things like "uid 10047 is not allowed to su" Feb 06 11:55:15 ... sounds quite clear Feb 06 11:55:22 inane! Feb 06 11:55:52 test-keys is more like joke-keys Feb 06 11:56:43 aah, android:windowSoftInputMode="adjustResize" Feb 06 11:57:14 anybody? I have 3 questions in an ArrayList... how can I assign 3 answers to each of those questions? Feb 06 11:57:22 those were two separate unrelated issues, by the way Feb 06 11:57:48 yet both of them can be fixed by getting a proper Chainfire su/superuser.apk installed Feb 06 11:59:14 Ilhami: Have a SparseArray with ((questionIndex), answer) Feb 06 11:59:32 never tried it Feb 06 11:59:50 Ilhami: or store them as an Array > Feb 06 12:00:10 or use to HashMaps Feb 06 12:00:23 I guess there are loads of ways Feb 06 12:00:24 :) Feb 06 12:00:31 I believe he wants more than one answer for each question Feb 06 12:01:01 ABSURD! Feb 06 12:01:22 oh, then a SparseArray> Feb 06 12:01:33 or your own object Feb 06 12:02:17 3 answers for 1 question .hmmm but 1 is correct I take it ? Feb 06 12:02:18 pragma- I've never even bothered launching the emulator, but if I'm not mistaken, Google's completely-incompatible-with-everything-else-in-the-world su accepts commands as: su targetuid commands (example: su 0 logcat -v time) Feb 06 12:04:25 StringRay Feb 06 12:04:29 StingRay Feb 06 12:04:38 3 answers and one of them is correct yes Feb 06 12:04:57 you should really do your own object Feb 06 12:05:06 question object Feb 06 12:05:23 with question, answers[], int correct Feb 06 12:05:48 well, I thats what I would do Feb 06 12:06:04 StingRay can you show me how I use them? Feb 06 12:06:15 use what ? Feb 06 12:06:31 SparseArray Feb 06 12:07:10 http://developer.android.com/reference/android/util/SparseArray.html Feb 06 12:07:18 I did make an object alreday for Questions Feb 06 12:08:58 already* Feb 06 12:09:57 StingRay can you help me in private? Feb 06 12:10:35 I'm a little scared of private chat,help... sorry Feb 06 12:10:49 hhh why? i will give you access to my PC Feb 06 12:10:50 you dont know who's around or what they "really" want Feb 06 12:11:02 this is an assignment for my school Feb 06 12:11:21 Ilhami: do you have a class for answer too? Feb 06 12:11:29 Ilhami: that has to be the crappiest thing I've heard today, private chat + access to your comp Feb 06 12:11:30 no edman.. should I make one? Feb 06 12:11:32 why not ask professor for some advice Feb 06 12:11:47 you can also just choose the access to my comp :D Feb 06 12:11:50 that depends on your specific problem Feb 06 12:12:13 Im making a quizApp Feb 06 12:12:13 Ilhami: dont offer ppl access to your computer Feb 06 12:12:18 why not? Feb 06 12:12:18 lol Feb 06 12:12:20 not good Feb 06 12:12:26 trusting/naive Feb 06 12:12:28 good way to be Feb 06 12:12:30 plus honestly Feb 06 12:12:33 but not in the internet Feb 06 12:12:41 hmm... Feb 06 12:12:48 most people dont take kindly to homework help in programming channels Feb 06 12:12:56 if thats the only way I can get help... Feb 06 12:13:01 I mean I'm all for helping Feb 06 12:13:07 I dont care about my PC... :) Feb 06 12:13:15 (13:10:37) Ilhami: this is an assignment for my school Feb 06 12:13:15 missed that Feb 06 12:13:19 but I'm not gonna go out of my wya to do someones homework for them Feb 06 12:13:42 you should not do them... only help :) Feb 06 12:13:50 I need to learn as well Feb 06 12:13:52 where's the line? Feb 06 12:14:05 it's part of the learning process doing things by yourself Feb 06 12:14:05 >_> anyone happened to encounter a problem where a listView lags when reaching either end? at first i thought my list item was too complicated but i noticed even with just simple ImageView as soon as the list reaches either end it lags like mad Feb 06 12:14:21 you can come and ask as many times as you need, someone is probably gonna answer Feb 06 12:14:26 edman I have tried Feb 06 12:14:42 and I dont have much time Feb 06 12:15:01 thats why I am saying... I can undestrand asking very specific questions about things, but I really dont see you learning much from having someone telling you how you should design your classes Feb 06 12:15:12 all my xml is almost done.. I just need some logic Feb 06 12:15:44 e.g. how to assign answers to one question Feb 06 12:15:47 get some classes representing your real world objects Feb 06 12:16:06 question could have an array of answers on it, or it could have Answer1, answer2 etc Feb 06 12:16:35 I need 3 possible answers for each question where one of them is the correct one. Feb 06 12:16:38 and it could have an int referencing the correct answer, or Answer could have bool CorrectAnswer Feb 06 12:16:39 what is the URL to open Google Play and list all my apps? Feb 06 12:16:42 I mean the sky's the limit Feb 06 12:16:52 could be one of a million diff means Feb 06 12:17:03 If i register a BroadcastReceiver, will it stay if i close my app? Feb 06 12:17:05 I tried market://search?q=pub:kidoteca but I only got a "pub:kidoteca not found" Feb 06 12:17:09 seems like if you were assigned this, you'd have to have to have the tools in your toolbox Feb 06 12:17:34 Styler2go - registered through manifest, or through your activity Feb 06 12:17:37 ron_frown: or be able to find it out Feb 06 12:17:54 activity: registerReceiver(reveciver, new IntentFilter(DownloadManager.ACTION_DOWNLOAD_COMPLETE)); Feb 06 12:18:39 I try to create a build.xml in all my library projects so I can automate a hit version to the manifest, but the consol always tells me there's a problem creating the R files for the referenced projects are throwing errors Feb 06 12:18:53 any thoughts on how to automate git versions into my project? Feb 06 12:20:02 ron_frown in Activity... Feb 06 12:20:21 well heres the thing, the registration would probably stay, but the activity will get cleaned up eventually Feb 06 12:20:45 you are supposed to remove registrations in pause/suspend/whatever Feb 06 12:20:46 i have the problem that the braodcast receiver never gets executed... Feb 06 12:21:07 how can i register a global boracast receiver? Feb 06 12:21:23 manifest + subclassed Reciever Feb 06 12:21:56 dou you have an example link? if not i will search :) Feb 06 12:23:11 not off the top of my head Feb 06 12:23:44 for something that runs indefinitely you may need to do that from a service too Feb 06 12:23:46 you can test that =) Feb 06 12:24:29 i found something, i will try that, thanks! Feb 06 12:25:56 can some tell me the logic of having a button, normally placed near the app logo when inside your app a few level that goes to the previous activity ? cause doesn't the back button do the exact same thing ? Feb 06 12:26:18 read on up vs back navigation in the android style guide Feb 06 12:26:32 StingRay_: logic -> not existing Feb 06 12:26:42 yeah seems odd Feb 06 12:26:47 and a waste of space Feb 06 12:27:05 and ugly not fitting style guides and breaking usability :) Feb 06 12:27:35 lacking a point is enough :) Feb 06 12:27:45 or duplicating functionality Feb 06 12:28:10 StingRay_, not all Devices have a Back"Button"? Feb 06 12:28:27 what? Feb 06 12:28:28 StingRay_: e.g.? Feb 06 12:28:39 misterli: What device does not...? Feb 06 12:28:58 backbutton hardware/software button ? they dont ? Feb 06 12:29:05 I mean Hardware-BackButton :) Feb 06 12:29:15 oh Feb 06 12:29:16 yes :) Feb 06 12:29:24 timroes: eg ? Feb 06 12:29:32 eh sorry i meant to highlight misterli :) Feb 06 12:29:37 ah Feb 06 12:30:17 so all devices have a back button hw/sw and yet loads of app seem to duplicate this... Feb 06 12:30:26 oh. I'm wrong. It's required to have a BackButton Feb 06 12:30:32 reasons unknown ? unless they manage their own flow Feb 06 12:30:33 yeah otherwise they are not allowed to call themself android devices :) Feb 06 12:30:43 the navigtion parts are key of the CDD Feb 06 12:30:55 change key with part :D Feb 06 12:31:30 I can understand ppl putting "another" back button to manage content flow, but not activity Feb 06 12:31:39 oh well, just wondered Feb 06 12:31:43 Well, there are some other Reasons. For example useability. Mostly its easyier to touch a Button on the Header then touching the HW Button on the Footer of the Device Feb 06 12:31:44 exit Feb 06 12:32:01 misterli: I strongly disagree Feb 06 12:32:04 misterli: because yuo hold your mobile at the top? Feb 06 12:32:09 lol Feb 06 12:32:12 Hello, I'm using ActionBar sherlock. I used getSupportActionBar().setHomeButtonEnabled(true); to enable the up navigation button. But I want to show an arrow to indicate the navigation action Feb 06 12:32:15 How to add it ? Feb 06 12:33:19 mahmoud__: getSupportActionBar().setDisplayHomeAsUpEnabled(true) Feb 06 12:33:32 misterli: if I had chimp hands with a thumb that is as long as my fingers and could reach the top of a 4.7" screen then I would agree Feb 06 12:34:10 you'v a second hand to touch the screen ;) Feb 06 12:34:22 think about tablets for example Feb 06 12:34:24 oh so for 2 handed operation Feb 06 12:34:27 timroes: Thank you! Feb 06 12:34:36 then it's a draw on that one Feb 06 12:34:42 but not for a phone Feb 06 12:34:43 How about if the Backbutton is implented in a Fragment? Feb 06 12:35:07 back works on fragment stack Feb 06 12:35:20 if you add it Feb 06 12:35:52 and if anything, you will overwrite the function of the navigation back button (and you should have really good reason to do so), but don't introduce a second back button, that does something else, then the back button Feb 06 12:36:17 the only usecase that comes close to that, where it would b e accapetable I guess are Wizzards, with a previous next options (but that should be at the bottom) Feb 06 12:36:33 (see also yesterdays Android Design in Action episode) Feb 06 12:37:04 well all my tools/icons/actions are at the bottom Feb 06 12:37:15 top if for info, indication, title and brand Feb 06 12:37:19 and it's small Feb 06 12:37:43 I dont want users hand covering content to have to do anything with that content Feb 06 12:39:25 StingRay_: misterli there's a difference between the android system back button and the action bar home button Feb 06 12:39:36 if the accelerometer samples and the gyroscope samples after it, and they are 0.007 seconds apart, can one assume that to be "at the same time" Feb 06 12:39:45 or do I need to sleep my thread for that? Feb 06 12:39:51 edman: now that I know, but I dont use actionBar Feb 06 12:39:58 so it's closer to 0.0005 or something Feb 06 12:40:10 and I will manage back on any user action interfaces Feb 06 12:40:30 but was just commenting on the amount of apps that duplicate the back button Feb 06 12:40:41 their navigation is different... the home button has an up effect in your app view hierarchy, while the back button goes back in the activity stack Feb 06 12:40:45 while also making it far enough away to be a hinderance Feb 06 12:40:59 then again, my accelerometer and my magnetometer can have as much as 0.01 second in between them, which is quite long Feb 06 12:41:03 the back button may navigate between different applications, the home button will never do that Feb 06 12:41:42 home button as in home button or up button (in the actionbar)? Feb 06 12:41:48 i don't think you should handle the back key event by yourself Feb 06 12:42:07 edman: I did not say the key event Feb 06 12:42:10 appel1: home button is also how you call the logo button in your action bar Feb 06 12:42:11 and no I would not Feb 06 12:42:28 appel1: sorry for the ambiguity Feb 06 12:42:52 edman: really? I've only ever seen it referred to as the up button in the docs. Feb 06 12:43:19 appel1: is that right? as far as i remember it's home button Feb 06 12:43:28 i may be wrong, my memory sucks Feb 06 12:44:03 appel1: yes, to activate it you do actionBar.setHomeButtonEnabled(true0 Feb 06 12:44:04 edman: for example http://developer.android.com/design/patterns/navigation.html Feb 06 12:44:29 edman: interesting =) Feb 06 12:45:03 http://developer.android.com/reference/android/app/ActionBar.html#setHomeButtonEnabled(boolean) Feb 06 12:45:06 edman: you've proved me wrong Feb 06 12:45:28 appel1: well, you proved your side too... they really called it up button in the reference Feb 06 12:45:29 edman: you'd think I'd remember that :D Feb 06 12:46:08 it was the design guide section of the dev site... but it still counts :) Feb 06 12:54:24 hmm, perhaps I should try something else Feb 06 12:54:47 I'm trying to implement a Kalman filter, and am sampling from different sensors (each in a different thread), there's a slight delay between samplings, at what point can one consider two events to happen "at the same time" Feb 06 12:55:12 (and thus not poisoning my Kalman filter) as two sets of data have to go in, accelerometer and gyroscope data Feb 06 12:55:26 and if they are offset too much, the whole purpose of the Kalman filter fails Feb 06 12:56:21 belgianguy: why not take a mean sample over x time of both to pass to filter ? Feb 06 12:57:06 StingRay_: means would drive down the accuracy Feb 06 12:57:26 I have 600 Downloads since 20.01.2013, is this much? Feb 06 12:57:35 not really Feb 06 12:57:42 but depending on what your app aims for :D Feb 06 12:57:51 if its an app for your local town, it might be much :D Feb 06 12:58:02 so its not much.. Feb 06 12:58:06 ok :) thanks ^^ Feb 06 12:58:19 Styler2go: I'll add one more if ya want Feb 06 12:58:29 link? Feb 06 12:58:32 timroes: I just want to implement a Kalman filter, and it'd be a shame if the data was already off before it went in Feb 06 12:58:42 you dont need to :D Feb 06 12:58:53 belgianguy: dude is that yoru new job? :D Feb 06 12:58:57 the only good thing is that i have 4,57 stars! :D Feb 06 12:59:09 no 1-star or 2-star rating :D Feb 06 12:59:11 timroes: I'd wish, I have pulled out more hairs using the NDK than ever Feb 06 12:59:20 timroes: it's to add to my CV Feb 06 12:59:29 so I can say "hey I did _this_" Feb 06 12:59:44 and people will throw money at me Feb 06 13:00:02 you could become a prostitute, ppl also throw money at them ;) Feb 06 13:00:16 timroes: that's always an option Feb 06 13:00:17 SOME ONE with SDL expireanse? Feb 06 13:00:31 programmer, prostitute, not so different anyway Feb 06 13:00:31 belgianguy: but I have no idea about kalman filters, so won't be a help there :D Feb 06 13:00:35 guys, which is the best compromise between features and user availability in the api range? is there a guide on this somewhere? I'm guessing a 3.x variant is a good choice? Feb 06 13:00:53 timroes: I have sampling at 100Hz atm Feb 06 13:01:05 I can average inter-sensor gaps of 0.003 seconds Feb 06 13:01:12 as they now each have their own thread Feb 06 13:01:24 could one assume those differences to be not noticable? Feb 06 13:01:52 FreeAir: if you want to hit a large user audience, try to reach 2.3. Thanks to backwards compatibility libs thats also possible. E.g. Use the google compatlib, use actionbarsherlock to give it an actionbar also on older devices, use (if you wish so) holoeverywhere to also style the elements on pre 3.0 devices Feb 06 13:02:14 how much downloads did you have with your apps in the first days? :o Feb 06 13:02:29 if you aim for gretting an app fast, and don't care soo much about downloads for now, go with 3.x so you won't need to take so much care of backward compatibility Feb 06 13:02:41 I thought in the first few days for my first app 600 would be much :D Feb 06 13:03:17 Styler2go: I just added another ;) Feb 06 13:03:23 Styler2go: it is really highly depending on the kind of app you created Feb 06 13:03:25 and on its quality :D Feb 06 13:03:43 it's high quality :D no user had prolem till now Feb 06 13:03:54 but I dont read german Feb 06 13:03:55 can you write the link here? Feb 06 13:04:04 ugh Feb 06 13:04:08 timroes: thanks for the insight Feb 06 13:04:11 there was no app like this before :D but its a very speciifc app Feb 06 13:04:30 Styler2go: only german though ? Feb 06 13:04:32 thats what i meant with limited user group, so if its very specific to several ppl, 600 might be much :) Feb 06 13:04:34 yes Feb 06 13:04:44 and only german is ofc also limiting the user range quiet a lot Feb 06 13:04:59 its only germany, yes Feb 06 13:05:22 Styler2go: dont like the playOff table "item background" Feb 06 13:05:44 repeating and contrasting pattern is not great for user Feb 06 13:05:48 Styler2go: everyone is curious, send the link for your app already :) Feb 06 13:05:54 the listview? Feb 06 13:05:57 yea Feb 06 13:06:03 edman: +1 :D Feb 06 13:06:05 the playOff-tabelle Feb 06 13:06:05 yeah.. that was my designer... Feb 06 13:06:16 the item background as a designer is a no no Feb 06 13:06:28 yes :D Feb 06 13:06:29 Styler2go: LIIINK :D Feb 06 13:06:31 and a no no for any kind of game textures btwn Feb 06 13:06:35 btw* Feb 06 13:06:46 guys it's not hard to find Feb 06 13:06:49 I found it Feb 06 13:07:00 with no name and only IRC nick Feb 06 13:07:02 :) Feb 06 13:07:04 which one :D Feb 06 13:07:12 Tip: i am using the same nick everywhere Feb 06 13:07:13 https://play.google.com/store/apps/details?id=de.tecfriends.vbtsplash2013 Feb 06 13:07:24 okay because there are two from him :) Feb 06 13:07:55 okay I would say that is pretty specific the app, so might be a good download rate (don't know the audience size) Feb 06 13:08:17 but you might want to change the designer, to some designer that has at least red the android design guidelines :D Feb 06 13:08:38 i dont know any, and i am really bad at those things :D Feb 06 13:08:57 just some hints (just from the screenshots) the background what StingRay_ alrad mentioned Feb 06 13:09:08 borders around the list items, that make the whole list look like its falling apart Feb 06 13:09:41 the buttons on the first screen are from what I see a bit too small in its height, and too close together, from what is recommened for touchable areas Feb 06 13:09:44 android design guidline: clone the accompanying iOS app as close as possible Feb 06 13:09:51 that makes me cry ;( Feb 06 13:10:01 LOL Feb 06 13:10:03 ? Feb 06 13:10:26 balls2thewall: hehehe Feb 06 13:10:29 also your app would improve I guess a lot from using the more common layout of an actionbar Feb 06 13:10:32 for me, there will be no ios app Feb 06 13:10:41 Styler2go: balls2thewall illustrated some awry designer choices that pass by here sometimes Feb 06 13:10:43 it doesn't have the necessary hw/apis Feb 06 13:11:07 how could i use actionbar if i want my app to be available in android 2.3 Feb 06 13:11:11 the B in VBT looks like an R in the first screenshot Feb 06 13:11:12 ABS Feb 06 13:11:24 ActionBarSherlock Feb 06 13:11:30 yeah Feb 06 13:11:37 thats ok with the vbt, everybody knows whats meant by the app :D Feb 06 13:11:41 its actually not very hard to use and you will be pretty fast Feb 06 13:12:16 i dont want to waste more and more time in my app if there are not many users u know Feb 06 13:12:39 but if you get used to use these standard techniques, you can start your next app right from the beginning using them Feb 06 13:13:15 on the beginnig my app had everyting new, actionbar, the swipefragment navigation Feb 06 13:14:05 that's okay if you target only the high end devices (4.x), but limits you to a much smaller userbase Feb 06 13:14:23 belgianguy: why? Feb 06 13:14:32 every of that is available from at least 2.2 with libs I guess Feb 06 13:14:33 thats why i dont want to do it Feb 06 13:14:44 timroes: performance wise I reckon Feb 06 13:14:53 maybe if you kept it modest, it'd do okay Feb 06 13:15:00 but if you wanted all bells and whistles Feb 06 13:15:11 i am counting the button presses in my app, since 4 days over 14k clicks Feb 06 13:15:23 over 500 downloads inside my app (movies) Feb 06 13:15:37 i dont know if this is not much :D Feb 06 13:16:22 much is relative Feb 06 13:16:28 i would say sounds too much :D Feb 06 13:16:56 how many clicks a user have to do in your app, shouldn't be an indicator for quality :) Feb 06 13:17:03 in a good app the user have to click as less as possible Feb 06 13:17:04 lol Feb 06 13:17:10 indicator for feustration Feb 06 13:17:15 no its not how many times he have to click Feb 06 13:17:16 frustration* Feb 06 13:17:20 but I wouldn't say you can use that at all for indication of quality the pure numbers Feb 06 13:17:27 its how often they click on the same button to see the information again Feb 06 13:17:30 timroes it might indicate people is using it Feb 06 13:17:43 yeah it might, and it might indicate ppl getting frustrated with it Feb 06 13:17:45 for a while i thought half of you guys were non-native english speakers, then i realised that you're probably just using androids to enter your messages :-) Feb 06 13:17:59 e.g. if they click on the same button to see the information again, why do they still have to click on that button to see it? Feb 06 13:18:00 yeah, it might Feb 06 13:18:18 I don't mean that now related to that special app, perhaps it makes sense in that case, perhaps not Feb 06 13:18:23 maybe i shoudl try to contact the organizer of this tournament to ask for a official news post :D Feb 06 13:18:47 I just think pure clicking numbers are not at all an indicator, you can see any great value from Feb 06 13:22:01 hlaf? we're 90% indians Feb 06 13:22:01 ok so guys.. Feb 06 13:22:08 here a problem: Feb 06 13:22:46 i need a globsal broadcast reciever for when the downloadmanager is finished, i have to use the manifest, right? Feb 06 13:23:04 Styler2go: you can also register broadcast recievers via code Feb 06 13:24:23 but they won't be global? if i close the app they wont execute? Feb 06 13:25:17 yeah thats right Feb 06 13:25:35 if you register it via code it depends on your application life time, in manifest it will be called anyweay Feb 06 13:26:02 thats what i need Feb 06 13:26:46 hey I'm trying to learn some basic android development.. and atm. I'm attempting to create a fullscreen in an activity and not sure how to proceed Feb 06 13:26:57 so i added in my manifest: and in my receivedownloadevent: http://pastebin.com/hidXk23N but its not wkring Feb 06 13:27:27 I made an imageView of the 'desired' picture and did layout_height, width 'fill_parent' Feb 06 13:27:43 but its not exactly going fullscreen.. just stretching the picture a bit at the bottom of my AVD Feb 06 13:27:48 Styler2go: perhaps you want to add an intent-filter to your receiver :) Feb 06 13:27:55 so its knowing what it should receive Feb 06 13:27:56 will i need it? Feb 06 13:28:00 SOME ONE with SDL expireanse? Please HElp with Setup Feb 06 13:28:20 otherwise you say, i am a broadcast receiver, and I want to be started for no broadcast Feb 06 13:28:54 would this be correct? Feb 06 13:29:43 maybe that...? Feb 06 13:31:04 your wanting "anything: the user downloads ? Feb 06 13:31:05 P3nnyw1se realize that there are millions of different screensizes Feb 06 13:31:42 i am starting an download inside my app and iw ant to wait until it is done Feb 06 13:32:11 I do xorgate.. but how do I make it 'attempt' fullscreen on whatever device might load it Feb 06 13:32:19 I'm trying to make a 'loadScreen' Feb 06 13:32:34 well first off don't make loadscreens, nobody wants them :) Feb 06 13:32:49 :D Feb 06 13:32:57 if you want to use a bitmap then you will have problems always Feb 06 13:32:59 me neither.. but this is an exercise from my teacher :) Feb 06 13:33:09 other options are 9patch or xml drawables Feb 06 13:33:33 the concept is.. make a loadscreen Activity.. make it run for a few seconds(probably using threads) and then switch to another activity Feb 06 13:33:39 and the loadscreen is suppose to be fullscreen Feb 06 13:33:42 no idea? Feb 06 13:33:57 yeh ok well just use a gradient as background or sth Feb 06 13:34:07 so no Imageview? Feb 06 13:34:14 and place a view with that gradient as background Feb 06 13:34:31 imageview is physical pixels -> gives you problems Feb 06 13:34:32 Styler2go: but would you not need a service to persist "if" the user closes your app while a download is still going ? Feb 06 13:35:10 xorgate: imageView dont have to be physical pixels, tis rather the source that dictates that ? Feb 06 13:35:14 i dont know... Feb 06 13:35:20 will i need it? Feb 06 13:35:39 you send to download manager so no you wouldn't Feb 06 13:35:41 lol Feb 06 13:35:43 just thought Feb 06 13:35:58 I've already imported a picture as Imageview and made the 4 different versions that android wants.. Feb 06 13:36:06 I just thought height"fill_parent" Feb 06 13:36:08 would do the trick Feb 06 13:36:10 but guess I was wrong Feb 06 13:36:30 so why not just log the download and destination ? and store that.... and then check the download manager when your app starts back up ? Feb 06 13:36:30 uhm... Feb 06 13:36:34 it's not taht it's impossible Feb 06 13:37:06 xorgate, lets just say I wanna make it work and not pretty.. how in the xml file Feb 06 13:37:11 do I force it to 'attempt' fullscreen Feb 06 13:37:26 it needs to extract the zip it downlaoded immediatly after download finished Feb 06 13:37:34 you make a layout xml with an imageview and setContentView(R.id.thatlayout) Feb 06 13:37:46 Styler2go: service then Feb 06 13:37:47 insta fullscreen Feb 06 13:37:53 (the layout, not the imageview) Feb 06 13:38:03 but.. how? Feb 06 13:38:08 service Feb 06 13:38:15 that sounds... hmm.. like something I can do Feb 06 13:38:17 be back in 5min Feb 06 13:38:18 yeah service... Feb 06 13:38:20 i know Feb 06 13:38:52 ListView showing ImageViews provided by a subclassed BaseAdapter: is there a way to make the Adapter more eager instead of just invoking getView() for the ImageView that is about to be shown when scrolling the ListView? Feb 06 13:39:10 eager ? Feb 06 13:39:12 will i need to start the download in the service? Feb 06 13:39:17 eager = less lazy Feb 06 13:39:26 any further informations StingRay_? :-( Feb 06 13:39:37 Styler2go: well thats all down to design now Feb 06 13:39:40 SD_R3veNG whats the problem? Feb 06 13:40:17 ahhh.. damn Manifest Feb 06 13:40:27 xorgate: if I scroll through my ListView at a high speed, the Adapter cannot keep up with it and the ImageViews returned by getView() appear with some delay Feb 06 13:40:54 SD_R3veNG ah then load them in threads Feb 06 13:41:54 xorgate: the ImageView that getView() returns is already loaded using an AsyncTask Feb 06 13:42:14 then you're shit outta luck :) Feb 06 13:42:28 maybe you could prefetch the images somehow Feb 06 13:43:41 xorgate: that is what I'm asking to the channel: can it be done by simply setting some value representing the number of offscreen items kept alive by the adapter Feb 06 13:44:15 SD_R3veNG: sounds like you're doing it all wrong Feb 06 13:44:41 pragma-: please tell me what I'm doing wrong Feb 06 13:47:50 hard to say without a testcase/code snippet Feb 06 13:51:23 who is up for some stupid basic questions Feb 06 13:52:07 I wanna make a new Activity startup as a Thread.. and its .. not going well Feb 06 13:52:35 well your teacher should be slapped for coming up with dumb exercises :) Feb 06 13:53:01 what you do is start the activity and after x time do something else Feb 06 13:53:03 probably :P.. but thats not gonna hold up when I go to my next lessons Feb 06 13:53:06 -s Feb 06 13:53:33 lets just 'pretend' :P . .I wanna instantiate an Activity as a Thread Feb 06 13:53:37 how so ? Feb 06 13:53:45 what does that even mean Feb 06 13:53:51 when exactly does a fragment start running? does a call to commit() or onCreate() start it? Feb 06 13:54:30 It means I was hoping to do something like Thread s = new Thread(new Intent("path.className"); Feb 06 13:54:40 and my monitor spat in my face Feb 06 13:54:53 Threads do not work that way Feb 06 13:55:08 at least provide it with a Runnable Feb 06 13:55:14 ? Feb 06 13:55:21 I did provide the class with a Runnable Feb 06 13:55:25 but probably you'll want a Service, or a AsyncTask Feb 06 13:55:30 the 'path.className' Feb 06 13:55:32 as Threads are hard to manage Feb 06 13:55:51 I've done a chatServer before.. holding multiple threads in an ArrayList Feb 06 13:55:54 so I thought I had that part covered Feb 06 13:56:23 goddamn i am stuck in developing.. i dont know how to use thie service and downloadmanager together -.- Feb 06 13:57:03 Styler2go: take it easy, make a test project where you can focus on those two things Feb 06 13:57:10 can I stream my android phone's radio on my PC ? Feb 06 13:57:11 what's the point of putting an activity in a new thread? Feb 06 13:57:11 that usually clears up things for me Feb 06 13:57:27 I'm just 1 week into Android programming.. and it seems to me like every activity is started using 'intent' ... and I can't seem to grasp how I would apply that to a thread Feb 06 13:57:43 edman. I wanted to be able to control how long the activity should run before returning to the 'creating' activity Feb 06 13:57:47 Sleep(); Feb 06 13:57:49 P3nnyw1se: the Android OS manages Activities Feb 06 13:58:01 putting them in a Thread will only cause weird errors IMO Feb 06 13:58:08 and break about everything Feb 06 13:58:13 anybody ? Feb 06 13:58:15 can I stream my android phone's radio on my PC ? Feb 06 13:58:31 real radio Feb 06 13:58:43 solancer: is the radio sensor readable? Feb 06 13:58:44 not internet Feb 06 13:58:57 belgianguy, the what ? Feb 06 13:59:03 the FM antenna Feb 06 13:59:06 I reckon Feb 06 13:59:07 so you're saying that people never use Threads with Android developing ? Feb 06 13:59:16 they do Feb 06 13:59:20 P3nnyw1se: they do, but they know what they are doing Feb 06 13:59:24 when uploading an app to google play is the supported devices list only available after i publish? or it just takes a while to load Feb 06 13:59:25 not putting activities on it Feb 06 13:59:26 thats why I'm here Feb 06 13:59:41 the activity show your information Feb 06 13:59:44 belgianguy, by antenna you mean my headphones right ? Feb 06 14:00:10 if you wanna do any sort of processing, download, or whatever that's gonna take you more than 5 seconds, you create a thread for that Feb 06 14:00:19 usually by an asynctask or service Feb 06 14:00:44 edman what I'm attempting to achieve right now.. is having 2 activityes.. one of them a loadScreen.. now the reason I wanted to put that into a thread Feb 06 14:00:52 solancer: not really, the chip that produces the audio Feb 06 14:00:54 was so I could manipulate for how long it should be running each time I use it Feb 06 14:00:57 20sec.. 5 sec Feb 06 14:00:57 etc. Feb 06 14:01:26 you can call Thread.sleep in your load screen Feb 06 14:01:28 guys.. another thing. you know the facebook app? or the google+ app? they have on the left this grey list, is this a view in android? can ir ecreat it easily? Feb 06 14:01:50 grey list.. Feb 06 14:02:00 * Zharf never used either app ;) Feb 06 14:02:07 belgianguy, I'm sorry I'm not into android development, I'm jus a web-developer/ Designer Feb 06 14:02:10 edman.. wouldn't I need to wrap the class into a Thread first ? Feb 06 14:02:16 no Feb 06 14:02:19 http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6eemOeH66zsD2T3FGikRraJTBcH9V.jpg like that Feb 06 14:02:25 every program runs in a thread Feb 06 14:02:37 i mean, every piece of code Feb 06 14:02:37 solancer: glancing the developer docs, I don't see a FM sensor Feb 06 14:03:00 but if I go Thread.sleep just randomly inside a class without having it wrapped as a Thread Feb 06 14:03:01 you can always reference the thread your code is running on Feb 06 14:03:04 nothing else would be going on right ? Feb 06 14:03:04 belgianguy, oh I see Feb 06 14:03:08 Styler2go: you don't want to ouse that :) Feb 06 14:03:17 it will sleep for the time specified Feb 06 14:03:19 really? :D Feb 06 14:03:22 it is meant to be the last place to store menu options Feb 06 14:03:34 belgianguy, no wonder I couldn't find a single app for it. Feb 06 14:03:35 if you really really running out of place everywhere else (actionbar, actionspinner, etc.) Feb 06 14:03:41 i want to store a user list in it Feb 06 14:03:43 if its for the app you showed earlier, ther eis plenty of space Feb 06 14:03:57 solancer: it's something phone specific I think, for which different HAL exist Feb 06 14:04:01 hmm thats a use case haven't seen it for yet :D Feb 06 14:04:09 Hardware Abstraction Layers Feb 06 14:04:13 but it would be a use case for it, or? Feb 06 14:04:17 but thats even a use case I would think it can be used for without too much disturbance Feb 06 14:04:21 that's also why it often doesn't work in custom ROMs Feb 06 14:04:22 belgianguy, I'm using a xperia tipo Feb 06 14:04:48 solancer: I believe Sony has been contributing that code Feb 06 14:04:52 but you normall get it via the up button, that doesn't make sense to show the contact list (i assume its about your chat?)) Feb 06 14:04:54 at least for some devices Feb 06 14:05:25 Styler2go: perhaps you can change it, so an actionbar items opens the contact list, and it swipes in from the right side, instead the left (or the left, but not via up button) Feb 06 14:06:42 Styler2go: I guess thats the most common lib for it https://github.com/jfeinstein10/SlidingMenu Feb 06 14:07:09 uhm Feb 06 14:07:14 is it difficult to setup? Feb 06 14:07:24 its described in the readme how to set it up :) Feb 06 14:07:43 and since you need actionbarsherlock then anyway, insert the actionbar again :D Feb 06 14:08:48 nah Feb 06 14:08:51 then i wont use it :D Feb 06 14:09:42 anyone has experience with using curl on android ? Feb 06 14:09:46 like how to add --form etc Feb 06 14:09:54 Good morning does anybody knows how to bind a Handler without leaks on activitys destroy Feb 06 14:10:05 bind a service with a handler Feb 06 14:10:18 like in BluetoothChat example Feb 06 14:11:16 timroes: maybe i will just use a simple popup? :D Feb 06 14:11:25 toxie: why not use the native http client classes? Feb 06 14:12:19 Styler2go: http://d.android.com/design takes you about 1 hour to read everything there (if at all) please do so :) Feb 06 14:12:31 i did Feb 06 14:12:35 I think it should be in the contract of play store, only ppl are allowed to upload apps, that have read that :D Feb 06 14:12:45 :D Feb 06 14:12:48 i have read that Feb 06 14:12:55 and you still want to use a popup :) Feb 06 14:13:09 this was mor elike a joke :D Feb 06 14:13:11 i dont know how to use native things Feb 06 14:13:13 more like* Feb 06 14:13:21 i think the sliding menu idea wasn't so bad (would need to see if it works in practice) Feb 06 14:13:26 i think i will use the sliding menu Feb 06 14:13:26 i'm programming on java Feb 06 14:13:47 i guess what I would do (and I also saw in a lot of apps) just make a different fragment for the contact list Feb 06 14:13:54 but why i need the actionbar? Feb 06 14:14:13 on smartphones you will have to switch between them, but on a tablet you can make a multipane layout to show both beside each other Feb 06 14:14:43 the actionbar is a standard android UI pattern, which you should always include unless you have a very good reason not to Feb 06 14:14:47 it shows your logo all the time, gives the user an idea where he is, via the title, enabled hierachical navigation Feb 06 14:14:56 allows to place several actions in it Feb 06 14:14:56 (ie, you're making a full screen game or something) Feb 06 14:15:08 gives access to the menu Feb 06 14:15:12 i dont want tablets to use my app :D Feb 06 14:15:15 (15:11:54) timroes: http://d.android.com/design takes you about 1 hour to read everything there (if at all) please do so :) Feb 06 14:15:15 off I go, to soak up some basics Feb 06 14:15:29 yipiii! Feb 06 14:16:33 oh btw i just downloaded your app, and one very very very large issue: you don't give feedback on pressure Feb 06 14:16:50 on a touch device its very important to give immediate feedback when a user touchs a button (a "pressed" state) Feb 06 14:18:24 okay and a lot of other stuff. If you want a free redesign, ask the Android Design in Action guys on Google+ if they would like to do your app (they take suggestions) and they do a complete redesign, how it would be good and even give you psd's and everything for free Feb 06 14:19:11 but pretty much the worst is atm: no touch feedback, missing actionbar, so I have always go back to enter another screen Feb 06 14:19:14 hmm Feb 06 14:19:16 presumably that involves sharing the source and is thus only ok for foss stuff, and even then only if you don't need a CAA? Feb 06 14:19:23 I know how that 1400 clicks in 4 days came :D Feb 06 14:19:29 so, i cant use the sliding menu without actionbar? really? Feb 06 14:19:59 I don;t know a lib doing it, since actionbar is THE default design element in every modern android app Feb 06 14:20:15 btw you have e.g. icons in your top row undescribed that are absolutely not understanable what they do Feb 06 14:20:20 yeah btu what about android 2.3 Feb 06 14:20:27 works all perfectly :D Feb 06 14:20:29 then i will need this actionbarsherlock Feb 06 14:20:30 LIBS! Feb 06 14:20:33 yeah Feb 06 14:20:48 uhm Feb 06 14:20:59 it works exactely like regular actionbar, you just replcae all import android.view.actionbar... with import org.actionbarsherlock... whatsoever Feb 06 14:21:05 APi is the same Feb 06 14:21:11 and i would have to think about a complete new concept for my app Feb 06 14:21:15 just for a list? Feb 06 14:21:20 on android 4 above it uses the native implementation and below it draws the actionbar itself Feb 06 14:22:02 its not about THAT app necessarily (I even don't know when that tournemant is over) but to practice and how to make androd apps :) Feb 06 14:22:29 so i actually can use sliding menu without actionbar? :D Feb 06 14:22:49 I only know the SlidingMenu lib, that is using the ActionBarSherlock lib inside Feb 06 14:23:07 yeah, i can import the actionbarsherlock, but i dont have to use it? Feb 06 14:23:11 because somewhat its expected when you insert such a sliding menu, that you already have used the very basic design elements Feb 06 14:23:39 i already used the actionbar i previous versions of the app Feb 06 14:23:48 but then i decided to support android 2.2 :D Feb 06 14:24:10 and again actionbarsherlock :D Feb 06 14:24:20 it is at least recommended by the google guys to use it Feb 06 14:24:21 :D Feb 06 14:24:28 but i dodnt know this a few days before :D Feb 06 14:24:28 but what does they know about android development Feb 06 14:24:53 yeah, exactly, what do they know! nothing! :D Feb 06 14:25:40 u know what.. i will put the actionbar back, this would make the naviagtion easier Feb 06 14:25:47 and i would know where to set all the buttons Feb 06 14:26:08 and you get a search view instead of your strange search stuff there :D Feb 06 14:26:15 hey guys, my toshiba at100 tablet all of a sudden stopped being shown in adb devices - anyone know what could have happened? It was just 2 days ago :( not sure why!! Feb 06 14:26:29 what? search view? Feb 06 14:28:11 hey i just tried to do my first android application. its a flashlight. problem: when i change the device orientation and switch it on/off fast i get errors connecting to the camera service. what am i doing wrong? code: http://paste.debian.net/232211/ Feb 06 14:29:30 why did he have to call oncreate() explicitly? http://mysticpaste.com/view/jpjj7Sca5T?2 Feb 06 14:31:08 Why would the same helvetica*.otf font show up differently in a tablet than an android phone? Feb 06 14:33:19 ninjaz: because he isn't using the FragmentManager for some strange reason Feb 06 14:33:25 (guessing) Feb 06 14:35:25 appell, new AbstractNewsViewProvider(this).get(); returns a class that uses the FragmentManager Feb 06 14:37:20 Hello is there a way to get reference to the EditText view from the IME service? I want to set the typeface of the editText from my IME application. Feb 06 14:40:33 ninjaz: in the constructor of for example SinglePaneNewsView ? Feb 06 14:41:19 appell, no, in SinglePaneNewsView 's onCreate() Feb 06 14:42:01 http://mysticpaste.com/view/FMFRJZblAk?3 Feb 06 14:42:46 howdy Feb 06 14:48:54 ninjaz: ok, so SinglePaneNewsView isn't a view or fragment Feb 06 14:49:25 ninjaz: so its onCreate has nothing to do with the lifecycle methods on activities or fragments Feb 06 14:50:21 ooh :o Feb 06 14:51:58 since he didnt inherit anything,did he have to override onCreate in SinglePaneNewsView ? Feb 06 14:53:16 ninjaz: he implements onCreate from the AbstractNewsView interface Feb 06 15:00:28 My android app's xmlhttprequests fail when i build it in release mode with my private key but work when I make a debug build. Is there any way to get console log output in release mode? Feb 06 15:01:31 bobsapp: adb lgocat? Feb 06 15:01:45 will that work when i build the release application? Feb 06 15:02:05 sick thanks man Feb 06 15:02:08 it should, why not try it Feb 06 15:02:58 and for the actual problem my very wild guess would be proguard :) Feb 06 15:04:18 thanks guys ill look into this Feb 06 15:06:16 guys I made an ImageView loaded in a picture in good quality. now have 4 versions of it in my folder 'hdpi,ldpi etc. etc.' Feb 06 15:06:48 I wanted to make it fullscreen.. so I did 'fill_parent'.. what it does though is just stretching a thumbnail version Feb 06 15:06:51 so the picture looks like crap Feb 06 15:06:57 I'm not sure what I*m doing wrong Feb 06 15:07:22 http://proguard.sourceforge.net/index.html#manual/examples.html < nice i was about to ask "can you drive proguard with annotations, and of course, yes :-) Feb 06 15:20:35 nobody? Feb 06 15:23:02 I dont understand when I have a picture with good resolution when I import it as ImageView and make it 'Fill_parent' Feb 06 15:23:07 it stretches a thumbnail version Feb 06 15:27:42 P3nnyw1se: got some source code to show us? Feb 06 15:28:10 my question dont need a source code.. let me just ask it simply then to avoid wasting your time Feb 06 15:28:45 I have a 800x600 picture.. that I wanna import and set it as background Feb 06 15:28:54 when I try and import it I get a 100x50 version something of it Feb 06 15:28:59 that it only stretches Feb 06 15:30:03 noone will be able to tell why without source code. Feb 06 15:30:59 ... how can I make a source code out of an import question Feb 06 15:31:01 alright 2 sec Feb 06 15:31:33 P3nnyw1se: show us your layouts, etc. Feb 06 15:31:37 use pastebin please Feb 06 15:32:15 its 3 lines.. fill_parent on height and width .. and then android:background="@drawable/loadScreen" Feb 06 15:32:21 .. Feb 06 15:34:02 humor us. Feb 06 15:34:33 what you are describing does not at all match the behavior which is supposed to happen, so we need more information. Feb 06 15:36:31 http://pastebin.com/bv6sEhk8 Feb 06 15:38:52 P3nnyw1se: maybe house it in a view that supports bitmaps better ? Feb 06 15:39:01 like an imageView Feb 06 15:39:48 I tried that.. I will show you what happens Feb 06 15:39:49 http://i50.tinypic.com/10dryue.jpg Feb 06 15:39:50 you have the add options for scaleType then Feb 06 15:39:52 P3nnyw1se: that should be fine. Feb 06 15:40:03 something is up with your resources. Feb 06 15:40:03 look at that picture lov thats a high resolution picture Feb 06 15:40:08 yeah I see it Feb 06 15:40:21 what does your res/drawable* directory layout look like Feb 06 15:40:52 which one of them :P Feb 06 15:41:02 they all the have 'LoadScreen' Feb 06 15:41:30 so screw the quality atm. Feb 06 15:41:38 how do I make it go 'really' full screen ? Feb 06 15:41:44 as background seems to have invisible borders Feb 06 15:42:22 I put the * to mean all of them Feb 06 15:42:29 What I'm seeing happening is a very small image getting upscaled Feb 06 15:42:36 but, you're saying that you're placing your images appropriately Feb 06 15:42:41 so, something else is happening Feb 06 15:42:53 yes and even the smallest one of those.. in the recourse folder Feb 06 15:42:59 is actually in a bit better quality than what I get displayed Feb 06 15:44:05 forget about the stretching lov.. can you tell me how to get rid of invisible borders ? Feb 06 15:44:47 there shouldn't be any invisible borders either, frankly. I'm assuming that's an artifact of the image source... Feb 06 15:45:39 I really do think that something is wrong with your actual source resources Feb 06 15:45:51 it's possible that they're modified and you didn't realize it Feb 06 15:46:00 try removing all of your resources except for one, in hdpi or something Feb 06 15:46:09 and verify that image in a separate image viewer Feb 06 15:46:15 then refresh your project Feb 06 15:46:32 So I guess this is more of a Java question than an Android one, but at least in here the specific objects are recognized. I've got a ViewPager in a Fragment. The Fragment has a CursorLoader and it implements LoaderManager.LoaderCallbacks. In the PageAdapter (which is inside of the Fragment) for the ViewPager, I want to do a LoaderManager.initLoader(). How can I refer to the Feb 06 15:46:32 LoaderCallbacks that are part of the Fragment from within the PageAdapter ? Feb 06 15:47:46 the picture has no borders.. guess I will delete it an import again Feb 06 15:47:57 Jouva: you mean viewpager is an inner class? Feb 06 15:48:06 Yes it's an inner class Feb 06 15:48:37 Err no not ViewPager Feb 06 15:48:55 Well, I have an inner class ViewPagerAdapter that extends PagerAdapter Feb 06 15:48:55 Hello guys, I use two dynamic Fragments, which can be shown both of them if in landscape mode or just one of them in portrait. But sometimes the fragments needs to rebuild and to prevent a second Fragment to be built in protrait mode, I perform a check whether it's landscape or not. Is this a clean solution? Feb 06 15:49:26 Jouva: if its an inner class you can reference any variable in the scope of the outer class Feb 06 15:51:14 edman: The thing is I'm trying to reference "this". The callbacks are all in line with other functions and Fragment callbacks, since the Fragment implements the LoaderManager.LoaderCallbacks Feb 06 15:51:24 when i've an activity as DeviceAdmin which created a Service .. Do i need to make the Service as DeviceAdmin again or does it inherit the permissions? Feb 06 15:51:48 that's because in this case "this" refers to the object of your inner class Feb 06 15:51:57 to access the outer "this" you do "OuterClass.this" Feb 06 15:53:43 edman: Tried that and it still had issues. Let me look at the exact error to see if I can find out what's going on Feb 06 15:53:56 When would one use BufferedInputStream over InputStream? I'm capturing and storing raw audio for calculation of acoustic metrics and wonder if InputStream (and Outpustream) itself is sufficient. Feb 06 15:54:38 freiform: if you're willing to do your own buffering, then it's not necessary Feb 06 15:54:43 most people don't need/want to do their own buffering Feb 06 15:54:43 Why can I not add a Canvas element to my new LinearLayout programmatically? Feb 06 15:54:48 Jouva: ok, let me know how that goes Feb 06 15:55:31 lov: well, i use two 'buffer' vectors to store the data (as i have to convert from byte to short anyway). Feb 06 15:55:34 e.g. you can use an InputStreamReader, but that pulls one character at a time. That's very inefficient if you're reading from a file. Feb 06 15:55:37 edman: It says that the fragment "Cannot be cast to android.app.LoaderManager.LoaderCallbacks" Feb 06 15:55:47 Rather than doing the buffering yourself, you just wrap your InputStream in a BufferedInputStream Feb 06 15:55:59 presto, your I/O is buffered and dramatically faster Feb 06 15:56:24 so, for your case, you may not get any value out of a BufferedInputStream Feb 06 15:57:00 lov: very well, thanks. Feb 06 15:59:04 Jouva: that sounds right Feb 06 15:59:07 could you tell me whats wrong here Feb 06 15:59:08 http://pastebin.com/BkFzRzmD Feb 06 15:59:24 I removed all the pictures.. and reloaded them and I got it to work 'qualitywise' Feb 06 15:59:29 but I can't seem to fillout the screen Feb 06 15:59:55 Jouva: I suppose you have a variable of the class that extends LoaderCallbacks Feb 06 15:59:57 whats the result Feb 06 16:00:15 P3nnyw1se well you would have to set the scale type to distort the image Feb 06 16:00:21 fitXY Feb 06 16:00:29 Jouva: i mean, implements LoaderCallbacks Feb 06 16:00:34 edman: I decided to say screw it and do it in a new LoaderCallbacks() variable and just pass the variable Feb 06 16:00:38 but it dont make things look like sh*t by default Feb 06 16:00:40 :) Feb 06 16:01:05 StingRay just added fitXY Feb 06 16:01:12 it still has like 1 inch.. around it Feb 06 16:01:21 doesn't go fully to the border anywhere Feb 06 16:01:25 Jouva: I would try to understand what's the problem now before moving on, but it's your choice Feb 06 16:01:26 Uhhhh Feb 06 16:01:34 Type safety: Unchecked cast from LoaderManager.LoaderCallbacks to LoaderManager.LoaderCallbacks Feb 06 16:01:38 P3nnyw1se: then it's your source graphic Feb 06 16:02:26 P3nnyw1se: set you image view to be a solid color or drawable rather than the image Feb 06 16:02:41 and you will see it's either src graphics or parent view that is restricting it Feb 06 16:03:11 can I trigger a share intent with a url? Feb 06 16:03:22 Jouva: can you show us your code in pastebin.com? Feb 06 16:03:54 when I add the IC_Launcher isntead the invis borders remain .. hrmfff thats annoyning Feb 06 16:04:12 I am making a non-native app Feb 06 16:04:16 I need to open the "share" menu Feb 06 16:04:30 there are a URL protocol that allows that? (similar to market:// that opens the market?) Feb 06 16:05:04 hello guys Feb 06 16:05:38 i need to control keypress event EditText, can someone give one example please Feb 06 16:07:13 tona: Make it Clickable and handle with with a ClickListener Feb 06 16:09:36 tona: misterli i think she refers to keypress events, not click Feb 06 16:10:06 whops, sorry :) Feb 06 16:10:49 Not even a Problem. Use a TextWatcher and handle beforeTextChanged and onTextChanged to see if a Key was pressed Feb 06 16:11:20 tona: you can also implement the callback for the key press event http://developer.android.com/reference/android/view/View.html#setOnKeyListener(android.view.View.OnKeyListener) Feb 06 16:19:35 I'm trying to do some very simple graphing of values in an array. I can handle the scaling of the data to fit in the graph window. What I can't figure is what element to use for graphing. canvas seems to be some low-level object used for drawing all other widgets, plus every tutorial involves over-writing on-draw. My goal is to click a button and whatever is in a certain array gets graphed. what GUI element should I use? Feb 06 16:20:19 either find a graph lib or use canvas and draw some lines Feb 06 16:21:10 edman: I chopped down some of the code that was not necessary to see (e.g., the onCreateLoader and onLoadFinished logic) Feb 06 16:21:14 http://pastebin.com/UhScgGLd Feb 06 16:22:50 xorgate: I'm having trouble adding a canvas programmatically. http://pastebin.com/jNhhnVkM addView doesn't like the canvas object. What should I do instead? Feb 06 16:22:54 Jouva: where exactly is the error line in the file you sent me? Feb 06 16:23:03 line 95? Feb 06 16:23:15 Yes line 95 Feb 06 16:23:37 deadmund you make a new class extending View and onDraw gives you a canvas Feb 06 16:23:49 getActivity().getLoaderManager() Feb 06 16:23:51 Canvas is not a thing in itself Feb 06 16:23:54 That's the native loadermanager Feb 06 16:23:56 Not the support version Feb 06 16:24:04 It's Activity#getSupportLoaderManager Feb 06 16:24:04 it is a way of using the draw functionalities of something else Feb 06 16:24:06 Aha! Feb 06 16:24:12 But Fragment itself has a getLoaderManager method Feb 06 16:24:13 Just use that Feb 06 16:24:21 It'll be the right type when you're in the support fragment Feb 06 16:24:43 xorgate: ummm. ok? strange then that there is a canvas class and I can create an instance. So my class implements canvas then? and I @overwrite onDraw ? Feb 06 16:25:20 Jouva: the class that implements LoaderCallbacks is the fragment Feb 06 16:25:28 wait Feb 06 16:25:34 deadmund http://developer.android.com/reference/android/view/View.html#onDraw(android.graphics.Canvas) Feb 06 16:25:50 xorgate: thanks... reading... Feb 06 16:26:12 AHA Feb 06 16:26:17 SimonVT was right Feb 06 16:26:19 Thank you Feb 06 16:29:38 Bah. This logic isn't exactly what I want. Though I guess I want something more like a tab interface Feb 06 16:30:26 GLES20/shader/buffer question: I load a number of values into my shader through a buffer so that they can be used for coloring my primitives, now if I want to draw a new set of primitives (same count) with the same color data, do I need to reload the data into the buffer? Feb 06 16:30:49 no why Feb 06 16:31:23 o/ Feb 06 16:32:32 xorgate: was that directed at me or deadmund/Jouva/… Feb 06 16:32:38 \o Feb 06 16:32:54 why would you think you cant reuse the data Feb 06 16:33:15 err first time someone answer in the rigth way today :D Feb 06 16:33:16 state machine and all Feb 06 16:34:50 on sdk 15, my lovely android packager is yelling on me for a String type not allowed while trying to add screenSize to android:configchanges in my activity , any miracle tips for me? :) Feb 06 16:35:03 xorgate: Basically, because I don't know that I /can/ reuse the data, iirc the buffers have read and write pointers that move around when reading/writing, and I don't know how the shader access the data, so if the pointers would change, the data may not be valid for a second pass Feb 06 16:35:09 My SettingsActivity exists if I press back button instead of "back" on the action bar. What could be wrong? Feb 06 16:36:03 tlvb you upload a buffer with your shader data, this buffer does not change. you need to tell the renderer how it's organized with eh... glUniformLocation or what it's called Feb 06 16:37:38 xorgate: oh, yes, I have the actual data transfer already working, but as I i.e. draw x different primitives with the same colors I should be able to save some redundant buffer loading, if it is possible to just load it once, and then have it stay valid for until I change it myself Feb 06 16:37:54 xorgate: which you say is possible, so I will try that, thanks :) Feb 06 16:38:08 oh well, nevermind, act as I never ask, shame on me :D Feb 06 16:38:12 opengl is a state machine Feb 06 16:38:19 if you don't change things, things stay the same Feb 06 16:39:36 sometimes it's a question of what they stay the same as Feb 06 16:40:05 ive a question.. how can i check why my App (in Playstore) is not compatible with my Tablet? the android version matches.. ive no more restrictions Feb 06 16:40:49 I want to build an app to report sensor data back to my website in real-time. Can anyone give me an idea of how this can be achieved? (POST-ing to my server and storing in DB isn't live enough) Feb 06 16:41:54 misterli: I don't know of any automated version, but there are several things you can check: API version, all features you require, app size (if its too large some smartphones with smaller caches myight deny it) Feb 06 16:42:30 xorgate: As it is data only read by opengl I would not expect it to change, it is more of what I could expect out of java that I worried about. Feb 06 16:42:32 or you set something in google play like allowed countries or such (but since it works for one device I don't think thats possible) Feb 06 16:42:56 startActivity(new Intent(packagePath.ClassName)); Feb 06 16:42:58 shouldn't this work `? Feb 06 16:43:14 P3nnyw1se: new Intent(this, packagePath.CLassName) Feb 06 16:43:51 if I do that Feb 06 16:44:00 it goes 'remove arguements to match Intent(String); Feb 06 16:44:26 I should mention I'm doing this startActivity inside the onCreate Feb 06 16:44:29 of another activity Feb 06 16:44:42 yeah Feb 06 16:44:56 new Intent(this, packagePath.ClassName.class)) should work there Feb 06 16:45:10 http://developer.android.com/reference/android/content/Intent.html#Intent%28android.content.Context,%20java.lang.Class%3C?%3E%29 Feb 06 16:45:21 While in SettingsActivity, if I press hardware button 'back', the app exits. If I press back button on the action bar it goes to previous Activity. What could be wrong? Feb 06 16:46:04 there should be no back button actionbar? Feb 06 16:46:17 there is only an UP button in actionbar Feb 06 16:47:03 that's what I meant Feb 06 16:47:13 it doesn't... :( Feb 06 16:47:28 tlvb did they already fix the 2 missing opengl methods? Feb 06 16:47:49 timroes: btw, why is the UP button in actionbar if I don't have this: getActionBar().setDisplayHomeAsUpEnabled(true); Feb 06 16:48:16 perhaps its default to true? don't know Feb 06 16:48:30 default is not true Feb 06 16:48:41 you can set some stuff in the manifest though, that will make it work Feb 06 16:48:44 on... JB+? Feb 06 16:48:47 I have Fragments that I want to load that I'd like to have use something like the navigation tabs. Problem is I already am using a spinner for another purpose. The ListFragment can list open and closed "tickets" so I want to use a spinner in the action bar to choose between open, closed and all. But the ticket has 2 distinct page views. What should I do here? Feb 06 16:49:01 erm.. I am starting to digg on android OS source code. I find it very hard with gedit because there are references to other classes on other files all the time. Is there any better way of travelling through the source code? Feb 06 16:49:05 xorgate: I have no idea, I am very much a newbie regarding opengl stuff, and pretty much when it comes to android too… Feb 06 16:49:17 gmag, eclipse? Feb 06 16:49:20 any real ide? Feb 06 16:49:24 canadiancow: android:parentActivityName= ? Feb 06 16:49:32 Quacked, sure Feb 06 16:49:35 tlvb well anyway i made this https://bitbucket.org/codestare/fix-gles20 Feb 06 16:49:49 i cant see myself using that until my minSdkVersion supports it though Feb 06 16:49:55 well technically jake made it ;) Feb 06 16:50:10 Ok. Anyways, why is my hardware back button not bringing me UP till previous Activity? Feb 06 16:50:13 canadiancow, but how do I tell eclipse those files belong to same project? Feb 06 16:50:25 It's only like this from my preferences activity Feb 06 16:50:33 uh...becuase they're in one project? Feb 06 16:50:55 Which basically only contains: addPreferencesFromResource(R.xml.settings); Feb 06 16:51:14 canadiancow, so how would I exacly open the project with eclipse? Feb 06 16:51:21 Hey. Feb 06 16:51:39 xorgate, this is better https://github.com/nicolasgramlich/AndEngine/blob/GLES2/src/org/andengine/opengl/GLES20Fix.java Feb 06 16:51:53 I mean, I have downloaded the source from here http://www.android-x86.org/getsourcecode Feb 06 16:51:58 gmag, i'm not 100% sure, but something like "file->open" Feb 06 16:52:03 I have a problem: When I draw a bitmap, it works fine, but whenever I fill a rectangle with canvas.drawRect(x, y, width, height, paint), it is completely off. Feb 06 16:52:08 canadiancow, very funny Feb 06 16:52:09 And I have no idea what is causing it. Feb 06 16:52:10 :) Feb 06 16:52:24 Has anyone here used Google Cloud Messaging? Does it work well? Feb 06 16:52:29 yes, yes Feb 06 16:52:50 xorgate: I think that I have seen glDrawElements in the android gl tutorial at leat, the pointer one I haven't used, although I've seen it in the docs, I am unsure if it was android docs, or just regular gl docs Feb 06 16:53:09 anyway why dont you just not support froyo Feb 06 16:53:10 Quacked: Back doesn't bring you UP because it brings you BACK Feb 06 16:53:14 that fixes all your GLES2 problems Feb 06 16:53:18 (although if there are bugs with the android ones I would not know) Feb 06 16:53:29 canadiancow: Great. Is there an equivalent Google service for Cloud Messaging not specific to Android? (I take it that this is specifically Android push messaging) Feb 06 16:53:47 no... Feb 06 16:53:50 canadiancow, probably Im not making my self clear, I mean, what to open? Is there a android_OS.project file? Or should I just start opening random cpp files and he will figure out where to open a file if I need to travel to a class on another file? Feb 06 16:53:57 all the benefits of GCM come from the fact that it's built into the platform Feb 06 16:54:10 just open it as a new java project Feb 06 16:54:33 canadiancow, java?? But it is C++ code Feb 06 16:54:41 what is? Feb 06 16:54:51 canadiancow, the operating system source code Feb 06 16:55:01 android OS source code Feb 06 16:55:06 what exactly are you trying to do Feb 06 16:55:19 :D Feb 06 16:55:27 I want to read the OS code Feb 06 16:55:36 but I find it very tough with gedit Feb 06 16:56:03 what "OS code" Feb 06 16:56:06 because when a reference is made to a class on another file I have to find the file myself and open it Feb 06 16:56:17 http://www.android-x86.org/getsourcecode Feb 06 16:56:43 no Feb 06 16:56:45 what specifically Feb 06 16:56:58 well, specifically the stagefright framework Feb 06 16:57:03 i have no idea what that is Feb 06 16:57:05 sorry Feb 06 16:57:07 omg Feb 06 16:57:20 gmag: http://androidxref.com/ Feb 06 16:57:23 maybe that'll help Feb 06 16:57:24 this is an app development channel Feb 06 16:57:32 your questions are not in relation to app dev Feb 06 16:57:33 SimonVT: still, why does it exit the app instead of going back to previous Activity? Feb 06 16:57:38 I read that on XDA, haven't used it though Feb 06 16:57:43 i'd suggest the android-build google group or something Feb 06 16:57:51 I don't know what you're doing Feb 06 16:57:58 Quacked, becuase you misunderstand it, or you're doing something wrong Feb 06 16:58:01 Source: http://www.xda-developers.com/android/browse-and-search-the-aosp-linux-and-cm-sources-online/ Feb 06 16:58:02 Back will finish the current activity, showing the previous one in the stack Feb 06 16:58:14 If you fucked up the stack, it's going to exit the app Feb 06 16:58:37 gmag: on Linux usage of grep can also pinpoint files of interest Feb 06 16:59:00 the PreferenceActivity is simply started with: Intent i = new Intent(this, SettingsActivity.class); startActivityForResult(i, RESULT_SETTINGS); Feb 06 16:59:08 belgianguy, yeah, but it still is cumbersome. But Im reading your references, seem good! Feb 06 16:59:59 don't see how that can fuck up the stack :P Feb 06 17:00:48 You may be using funny flags in your manifest, or doing other stuff that Feb 06 17:00:51 Who knows Feb 06 17:00:57 where can i find out how the android file system works? i want to write an analysis of it Feb 06 17:01:08 All I know is that back finishes the current activity and shows the previous one. Unless you somehow changed that Feb 06 17:01:29 Yeah Feb 06 17:02:58 guys I'm in an activity wanting to display a full sized image.. then wanting to wait while showing this image for 10 seconds.. then go to another activity Feb 06 17:04:08 what I did was in the onCreate setContentView(R.layout.loadscreen), Thread t = Thread.currentThread(); . t.sleep(10000); startActivity(new Intent(Classpath)) Feb 06 17:04:10 Figured out my problem. Now it looks fantastic :D Feb 06 17:04:18 canadiancow: So for GCM, the expected use case is for pushing messages to an Android device, but there is no provision for a reply message - that is just presumably a normal HTTP request or whatever you want? Feb 06 17:04:21 if you wanna do it android, make an intentservice that sleeps for 10 sec then broadcasts a message that your activity listens to Feb 06 17:04:21 the thing that doesn't work is.. when the thread is sleeping Feb 06 17:04:34 the background image isn't displayed Feb 06 17:04:43 Anickyan: what was the issue? Feb 06 17:05:01 canadiancow: Essentially I want to send a message from a web client to my Android device, and to be able to send data back to my web client from Android (ie. not just POSTing to my server). Feb 06 17:05:53 xorgate the Thread.sleep seems to work.. it does nothing for the 10 seconds .. and then moves on to my other activity Feb 06 17:06:01 the problem is.. it doesn't display my image in those 10 sec either Feb 06 17:06:07 You're blocking the ui thread Feb 06 17:06:14 While you're blocking the ui thread, it can't draw the ui Feb 06 17:06:17 So no image Feb 06 17:06:20 how do you suggest I work around this Feb 06 17:06:26 Start another thread Feb 06 17:06:34 I wanna : draw Image -> sleep 10 sec -> switch activity Feb 06 17:06:36 Or use Handler#postDelayed Feb 06 17:06:52 I'm 1 week into android programming so the easiest one would be nice :) Feb 06 17:08:00 setContentView with your layout, boom you have pic. Now to wait 10 sec without blocking everything. Start something in background that when done, informs the activity it's done Feb 06 17:08:14 Use the handler way Feb 06 17:08:33 of course noone in his right mind would want to let the user wait 10 seconds while forcing him to watch your logo Feb 06 17:08:44 Ubisoft would Feb 06 17:08:45 and do Feb 06 17:08:57 no they dont Feb 06 17:09:00 /care Feb 06 17:09:02 Noone who cares about their users anyway Feb 06 17:09:12 anyways lets assume I don't care about users :P Feb 06 17:09:27 First hint that the app is crap, splash screen Feb 06 17:09:35 P3nnyw1se if you wanna score points with your teacher, do the intentservice and broadcast Feb 06 17:10:51 alright I haven't heard of it before tohugh Feb 06 17:12:04 P3nnyw1se: Basically you're trying to do a splash screen? Is this for a class? Feb 06 17:12:10 and tell your teacher xorgate said he should make better exercises Feb 06 17:12:23 yes its for a class.. I dont enjoy making load screens :P Feb 06 17:12:37 thats good, noone likes looking at them :) Feb 06 17:13:07 I would make some sort of snarky remark in comments saying something like "I don't know why I'm making a splash screen, since good applications let users access their data asap" Feb 06 17:13:08 here is the task... start App -> loadscreen on screen for 5-10 sec -> switch activity to a puzzle game with questions -> when all questions are answered show score Feb 06 17:13:42 again.. 1 week into android programming.. I'm sure everything could be done better but if I start eating from every side of the cake I won't finish 1 piece Feb 06 17:13:43 ;) Feb 06 17:14:42 This already sounds like a bad class. Even if it's for a "learning exercise", teaching somebody bad ideas from the start doesn't work well, and people in that class will be tempted to make splash screens for all apps Feb 06 17:14:46 make the pzzle first Feb 06 17:14:57 The only ones that really should ever use splash screens are large games Feb 06 17:15:07 then tell your teacher you didnt do the splash because its silly Feb 06 17:15:09 And even then... Feb 06 17:15:26 sounds like the same advices when you start out learning java ;) Feb 06 17:15:33 'how do I do this..' 'dont.. do this instead' Feb 06 17:15:33 :P Feb 06 17:15:40 Exactly Feb 06 17:15:49 if you want to learn something useful, make the puzzle Feb 06 17:16:24 I am going to.. I just wanted to make this transition and painfree as you said yourself I wont be doing splash screens Feb 06 17:16:29 hey guys :) Feb 06 17:16:37 The problem with loading screens is that people on a mobile device want to do things now. In fact if they could, they'd want it done before now. Feb 06 17:16:52 but reading up on your suggestion of intetservice and broadcast Feb 06 17:16:53 So a teacher saying "hey make a splash screen" is kinda gross ;) Feb 06 17:16:59 seems like a lot of time to waste Feb 06 17:17:36 yeah well you guys must have been to school at some point :) .. I can say 'its a bad idea' thats fine Feb 06 17:17:41 I still gotta turn in the product though Feb 06 17:18:19 P3nnyw1se http://www.youtube.com/watch?v=--TW18e2HPQ Feb 06 17:18:46 alright well thx :D ... I guess Feb 06 17:19:33 i'd say the broadcast and srevice are a nice solid way to achieve what you want Feb 06 17:19:51 using core concepts Feb 06 17:19:56 = brownie points Feb 06 17:20:30 Most apps do have load screens when they are loading the gamefiles.. its not like this is a revolution :P Feb 06 17:20:51 guys Feb 06 17:21:13 i now downloaded SlidingMenu.. but i cant find the *.jar... is it this time without a jar? Feb 06 17:24:22 Styler2go: are you just grabbing any and all projects and attempting to integrate them ? Feb 06 17:25:13 i think i found otu how to integrate it.. Feb 06 17:25:18 looking at git thats just a project Feb 06 17:25:28 that you make a lib project Feb 06 17:25:33 yes Feb 06 17:25:34 and thats it Feb 06 17:26:16 http://developer.android.com/about/dashboards/index.html < re my earlier query about choice of api, good info. Feb 06 17:26:56 10, 15, 16 are good choices, then Feb 06 17:27:22 3.x is a poor choice, disproving my hypothesis Feb 06 17:27:33 ya Feb 06 17:35:03 http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6eeAK1kQmwyjifVmYJu7HZlx7XWWO.jpg Feb 06 17:35:10 why i have this problem in slidingmenu? :o Feb 06 17:36:20 Because you're building against an api level where those methods don't exist yet Feb 06 17:36:47 isnt sliding menu für every sdk? -.- Feb 06 17:37:14 It might use new APIs when running on newer API levels Feb 06 17:37:28 As long as it checks the api level before calling them Feb 06 17:37:32 uhm.. what can i do with this problem? Feb 06 17:37:52 Build against a newer api Feb 06 17:38:08 was meinst du? Feb 06 17:38:19 oh sry Feb 06 17:38:22 wrong language xD Feb 06 17:38:24 what do you mean? Feb 06 17:38:37 Change your build target to a higher api Feb 06 17:38:41 Where all those methods exist Feb 06 17:39:05 its the slidingmenu?! Feb 06 17:39:13 why should i change something there... Feb 06 17:39:53 If it's failing to build, you already did change something Feb 06 17:40:29 i iwll reimport it... Feb 06 17:40:36 https://github.com/jfeinstein10/SlidingMenu/blob/master/library/project.properties Feb 06 17:40:50 That's slidingmenus build target Feb 06 17:40:57 16? Feb 06 17:41:09 yes Feb 06 17:41:18 Google API, api level 16 Feb 06 17:41:22 why the hell should i use it then if i want to run it on 2.3? Feb 06 17:41:35 http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Feb 06 17:41:38 Read this Feb 06 17:42:28 yeah.. this wont help me i guess.... every targetSDK is on 17 Feb 06 17:42:43 target sdk != build target Feb 06 17:42:47 != min sdk Feb 06 17:42:58 You need to learn the difference between these Feb 06 17:43:16 yeah i c Feb 06 17:43:27 but... how can i change buil dtarget? Feb 06 17:43:47 Project settings Feb 06 17:44:29 project.properties Feb 06 17:45:07 ok... some problems are ok now but... Feb 06 17:45:16 http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6eeBpzdWCDVTcLrUDqzO2pNF46FoE.jpg Feb 06 17:47:54 it cant find the import com.google.* ... Feb 06 17:48:31 hey where can I find android freelancers? Feb 06 17:48:40 You're not building against google api's Feb 06 17:48:53 Ilhami: Not here Feb 06 17:49:00 It's even in the topic Feb 06 17:49:22 I know its not here Feb 06 17:49:26 but I asked where Feb 06 17:49:56 anyone here with experience on sqlcipher for android? i'm trying to create an sqlite3 user defined function Feb 06 17:50:14 SimonVT and what can i do that it works...? Feb 06 17:50:38 I need help... how can I assign 3 answers to a question where one of them is correct. I'm making a quiz app Feb 06 17:53:25 need someone who can help me Feb 06 17:53:26 I will pay Feb 06 17:53:40 SimonVT any details? :-/ Feb 06 17:55:50 Open your sdk manager, see if you can find anything about google api's Feb 06 17:55:54 Build against those Feb 06 17:56:15 i dont know what you mean with "build against those" Feb 06 17:57:03 ah i think i found it.. i found that i need 4.0.3 Feb 06 17:58:59 its still not working... Feb 06 17:59:12 Ilhami: are you willing to pay $100/hr and up with a 2 hr minimum? Feb 06 17:59:20 regardless, Feb 06 17:59:22 * lov points to the topic Feb 06 17:59:40 no.. thats too expensive Feb 06 17:59:57 not if you want someone that isn't useless Feb 06 18:00:07 I am trying to update a progress bar from a Handler, thing is, nothing happens at all. I have two handlers, one with postdelay of 20 seconds and one with delay of 2 seconds. The runnable which is invoked every other second is trying to update the progress bar. I have uploaded the code http://pastebin.com/ZweGs8LR I hope someone can see what i am missing Feb 06 18:00:27 regardless, we'd be happy to answer any development questions you have and help you with your development Feb 06 18:00:40 but we're not a marketplace, and you'll have to look elsewhere for someone to freelance Feb 06 18:00:41 no idea why my slidingmenu is not wokring? :( Feb 06 18:00:54 no, I do not know where that elsewhere would be. Try rentacoder or something. Feb 06 18:01:29 I'm trying to have AlarmManager play a sound, but if the device is locked, I get this in LogCat: "Activity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView [...]" Feb 06 18:01:51 er Feb 06 18:01:59 AlarmManager won't play a sound, it will send an intent. Feb 06 18:02:05 lov maybe you could help me? :-/ Feb 06 18:02:09 And it only plays the sound for less than a second Feb 06 18:02:14 Styler2go: for sliding menus, no. Feb 06 18:02:25 Quacked: are you starting an activity with your broadcast, or a service? Feb 06 18:02:42 no its more a problem with eclipse and .. arrr i dunno.. Feb 06 18:02:47 also, what exactly is your use case? Is it OK to just use a Notification? Feb 06 18:03:00 If it's not, you'll need to actually write a service to acquire a wakelock to ensure the phone stays awake to play the sound, etc. Feb 06 18:03:07 i need to import com.google.android.maps.MapActivity; but it cant fond com.google Feb 06 18:03:17 When time's up and Activity should start Feb 06 18:03:18 Styler2go: it's in the Google Apis target Feb 06 18:03:36 an* Feb 06 18:03:38 Quacked: bear in mind that when the phone is locked, the activity may not actually get displayed. Feb 06 18:03:42 this again wont help me.. sorry but.. what can i do against it... Feb 06 18:04:02 Styler2go: project -> properties -> Android Feb 06 18:04:13 Project Build Target, select Google APIs Feb 06 18:04:28 awwww i love you Feb 06 18:04:35 I lov you too Feb 06 18:04:44 wat Feb 06 18:04:52 hi canadiancow Feb 06 18:04:53 oh no... how it cant find @TargetApi(Build.VERSION_CODES.HONEYCOMB) Feb 06 18:05:00 now* Feb 06 18:05:03 Shouldn't AlarmManager by itself hold a cpu wakelock Feb 06 18:05:13 is your Google APIs api level > Honeycomb? Feb 06 18:05:17 Quacked: no. Feb 06 18:05:29 Quacked: again, and this is important, AlarmManager is just a mechanism for delivering intents. Feb 06 18:05:35 Once that intent is delivered, its job is done Feb 06 18:05:40 oh yeah Feb 06 18:05:43 now its working Feb 06 18:05:48 again, i love you <3 Feb 06 18:05:59 Now, while it's delivering a broadcast intent, the phone will be kept awake, but that's only for a few seconds max Feb 06 18:06:13 there's some commonsware code to handle transitioning to starting a service while holding a wakelock, check that out Feb 06 18:06:15 Am i going bonkers? The new Android marker UI has no way to upload an APK without publishing it. I have a publish button and a cancel (which throws the upload away). Feb 06 18:06:17 lov, yeah, but it delivers the intent as it should since I hear a sound Feb 06 18:06:52 Quacked: your phone likely hasn't gone to sleep. Screen off != CPU off Feb 06 18:07:34 ok Feb 06 18:07:39 hi lov Feb 06 18:09:12 so perhaps I should let a broadcastreceiver play the alarm instead of an Activity Feb 06 18:11:01 uhm.. what was the NoClassDefFOundError again? Feb 06 18:12:47 Quacked: Again, should really start a service to do this. Feb 06 18:13:21 lov: looks like it plays the sound fine if I don't have MediaPlayer.stop() in onStop(), the activity doesnt show though Feb 06 18:13:59 IntentService works? Feb 06 18:14:51 I have two questions about the emulator. The first is that I would like to get, call it a "factory rom" of a Galaxy Note 10.1 2) Where can I find the parameters for a avd to use with that rom? Feb 06 18:15:05 I use IntentService for my notifications Feb 06 18:17:58 whats the problem with NoClassDefFound? Feb 06 18:18:33 ? Feb 06 18:18:41 ehrm i mean Feb 06 18:19:09 i am getting noClasDefFound error in LogCat... there was an easy way to fix that, or? Feb 06 18:19:24 ah dnno Feb 06 18:19:52 Run on a device with the google targets instead of an emulator without them Feb 06 18:19:54 when using a progress bar, are there any workorounds or tricks to make it slide more nicely, at the moment I want it to slide down in 20 seconds. Fastest frequency is at this point 0,2 seconds. It makes it choppy Feb 06 18:20:04 i am working on my device Feb 06 18:20:14 And what class is not found Feb 06 18:20:33 every 0,2 second I set the progress down by 1 unit, it is not good enough Feb 06 18:20:35 java.lang.NoClassDefFoundError: com.slidingmenu.lib.SlidingMenu Feb 06 18:21:13 * lov shrugs Feb 06 18:21:18 fix your project imports I guess? Feb 06 18:21:19 http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6eeDLUgGUkJdJ3zPVLkXkuRO3iVFM.jpg Feb 06 18:21:39 lov can you help me with my problem here? Feb 06 18:21:49 you read it before, didnt you ? Feb 06 18:21:58 NoClassDefFound means that the dvm tried to load the class, but it's not actually present in either your app or as a built-in Feb 06 18:22:07 hi Feb 06 18:22:13 anyone here? Feb 06 18:22:16 but.. i included it.. :-/ Feb 06 18:22:17 Ilhami: Are you actually a developer? Feb 06 18:22:21 Styler2go: might be dumb question, but why is that a jar? Feb 06 18:22:25 Ilhami: I'd be happy to answer development questions Feb 06 18:22:28 i thought slidingmenu is an android lib Feb 06 18:22:31 12:50:46 < Ilhami> I need help... how can I assign 3 answers to a question where one of them is correct. I'm making a quiz app Feb 06 18:22:35 define a developer... Feb 06 18:22:35 this sounds like homework, though. Feb 06 18:22:36 i exported it to try getting it to work this way Feb 06 18:22:41 I'm trying learn the art of creating android apps Feb 06 18:22:51 I just learned how to create a listview Feb 06 18:22:53 Styler2go: you cannot export android libs to jar files like that :D Feb 06 18:22:58 they have resources and stuff Feb 06 18:23:02 that doesnt work with jar files Feb 06 18:23:03 Rob|boR: start at https://developer.android.com/tools/index.html and then https://developer.android.com/training/index.html Feb 06 18:23:05 damn! but a nice try! or? :D Feb 06 18:23:08 I'm building a source with ndk, but ndk-build can not find the include GLES/gl.h but this file exist in the platforms/android/arch-arm/usr/include folder of the ndk. I think the path is not set somethere in a makefile, but where? Feb 06 18:23:14 otherwise the developers would just create a jar file for you its way easier Feb 06 18:23:15 but how do I go about, linking a selection in the listview, to a different screen Feb 06 18:23:20 I can code some java but not much.. Feb 06 18:23:31 Ilhami: perhaps you should fix that first, and go to ##java to do so. Feb 06 18:24:03 Your question is incredibly vague, like "how do I make the car go" and "what do I do to make this work?" Feb 06 18:24:06 ok now i have added the 2 porjects to my build path Feb 06 18:24:15 So, no one is going to spend time even bothering Feb 06 18:24:35 i don't know how it works in eclipse, but i guess there is aalso some point in the project settings where you just add a path to an android lib project Feb 06 18:24:36 is this the 2nd guy wanting help with the SAME homework ? Feb 06 18:24:37 and its included? Feb 06 18:24:41 it seems impossible to get a higher frequence Feb 06 18:24:46 well my question is, if I already set up a listview, if I choose one of hte options in that listview, how can I make it go to a different screen Feb 06 18:25:06 because the second screen has another listview that is dependent on the selection of the first screen Feb 06 18:25:25 Rob|boR: have an item listener set on your listview Feb 06 18:25:35 ok, I will look into that Feb 06 18:25:36 thank you Feb 06 18:26:25 and i am still getting the error message. my build path: http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6eeE6BPMHmTk1b9PcxasyCHS360ZM.jpg http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6eeE6CudoR50t5IA00kLiBWiEV5uK.jpg http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6eeE6DLVC7JlVFXhMOG2A6BKdZXps.jpg Feb 06 18:26:31 jesus Feb 06 18:26:57 was this too much text? i dont see how long the link to the screens are... Feb 06 18:27:01 i am sorry for that... Feb 06 18:27:36 Styler2go: Android libraries shouldn't be included as regular projects. Android will handle that automatically. Feb 06 18:27:40 Remove the project references. Feb 06 18:28:13 in the "Android" tab? Feb 06 18:28:36 no, in the Projects tab. First link. Feb 06 18:28:52 my current setup for the initial listview content goes something like this: String[] values = new String[] { "Android", "iPhone", "WindowsMobile", Feb 06 18:28:52 "Blackberry", "WebOS", "Ubuntu", "Windows7", "Max OS X", Feb 06 18:28:52 "Linux", "OS/2" }; Feb 06 18:29:03 then my code gets marked red Feb 06 18:29:13 pastebin! pastebin! Feb 06 18:29:42 so if I add the setListItemClick, how do I specify the value Android, iphone etc Feb 06 18:29:54 okay I'll use pastebin, figured since it was short code, I can paste it in here Feb 06 18:30:10 lov if i remove the project from there it cant find "SlidingMenu" Feb 06 18:30:51 I have two fragments contained in FrameLayouts is it possible to allow them to overlap eachother? Feb 06 18:31:13 where can I find freelancers? Feb 06 18:31:23 NOT HERE. Feb 06 18:31:42 I asked WHERE can I find freelancers? I didnt say I could find them here Feb 06 18:31:58 you are asking the 3rd time Feb 06 18:32:05 yes Feb 06 18:32:12 and I will ask until I get an answher Feb 06 18:32:14 and they told you that this is not a marketplace and you ave to look somewhere else Feb 06 18:32:15 answer Feb 06 18:32:18 Well.. Feb 06 18:32:24 and they dont know where somewhere is... Feb 06 18:32:41 dont answer on others behalf Feb 06 18:32:42 who are you ? Feb 06 18:32:45 they told you rentacoder Feb 06 18:33:12 lol Feb 06 18:33:32 no muslims here? Feb 06 18:33:42 allahu akbar Feb 06 18:33:48 or only kuffar? Feb 06 18:33:57 dirty kuffar Feb 06 18:33:59 yes Feb 06 18:34:02 they are Feb 06 18:34:04 :) Feb 06 18:34:11 sunni? Feb 06 18:34:16 Alhamdulillah Feb 06 18:34:23 Ahlul Sunnah wal Jamaah Feb 06 18:34:28 Shia are not muslims most of the Feb 06 18:34:28 m Feb 06 18:34:29 them Feb 06 18:34:39 god... Feb 06 18:34:39 where are you from buddy? Feb 06 18:34:45 Denmark Feb 06 18:34:58 Any Idea how can i import the SlidingMenu now? Feb 06 18:35:08 I've been to copenhagen, nice town Feb 06 18:36:53 hey Ilhami i see ASWJ calls for jihad, why is that? Feb 06 18:37:12 I kickbanned Ilhami for constantly asking for contractors Feb 06 18:37:14 islam is peace my friend Feb 06 18:37:19 you can go chat with him in #android or something Feb 06 18:37:21 ok fair enough Feb 06 18:37:24 he wanted too much lov Feb 06 18:37:28 it's true. Feb 06 18:37:33 There's a limit to how much lov I can give Feb 06 18:37:37 i'm just curious because he is in a known terrorist organisation Feb 06 18:37:41 :) Feb 06 18:37:50 uhm Feb 06 18:37:55 Everything you hear on the internet is true. Feb 06 18:38:00 No one ever lies about who they are on the internet. Feb 06 18:38:05 - Abraham Lincoln Feb 06 18:38:08 ^^ Feb 06 18:38:12 no his nick is known Feb 06 18:38:17 guys.. can you help me now? :D Feb 06 18:38:22 to be a member of ASWJ Feb 06 18:38:31 i have a haedache now from this... thing... Feb 06 18:38:37 Styler2go: sure you could figure things out in the same amount of time that you spend asking Feb 06 18:38:39 Well, he's not in here now so I really don't care :> Feb 06 18:38:47 fair enough Feb 06 18:38:54 I have two fragments contained in FrameLayouts is it possible to allow them to overlap eachother? Feb 06 18:38:54 i tried StingRay_ Feb 06 18:38:57 sorry i asked that before Feb 06 18:39:09 Styler2go: and if you want to use lib projects then I would learn how to setup/add deps. Feb 06 18:39:35 and you cant tell me a link where i can learn that? Feb 06 18:39:36 Styler2go: http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject Feb 06 18:39:52 Styler2go: the credit list on you app maybe stretching to 100 pages already :) Feb 06 18:40:04 xD Feb 06 18:40:10 yeah :D Feb 06 18:40:25 or a simple "Made by #nadroid-dev on freenode" Feb 06 18:40:28 :D Feb 06 18:41:11 odd I skimmed though the chat history and read some1 mentioning the windows95 killa, OS/2 ? :) Feb 06 18:41:16 I need a VM of that Feb 06 18:42:39 what if this is not working? Feb 06 18:43:06 Styler2go: learn why and fix Feb 06 18:43:11 :) Feb 06 18:43:25 or learn why and "use something else" Feb 06 18:43:33 or learn why and "ditch the idea" Feb 06 18:43:39 depending on what the "why" is Feb 06 18:43:55 yeah.. i am thing about just delete this .. "very cool" SlidingMenu and ActionBar again. Feb 06 18:44:10 thinking* Feb 06 18:44:44 well to be honest I only want to use libs that I can understand/do myself, that just save me time Feb 06 18:44:59 I have not used soo many things cause I just dont quite get them yet Feb 06 18:45:21 i just dont get why it is so difficult to include this things... i have seen other libs for android which i can include with one click Feb 06 18:45:47 and why there is no walkthrough on the git site... Feb 06 18:46:21 it probably assumes knowledge of lib projects and dependancies Feb 06 18:46:55 maybe its because there is a red X on the left of the reference Feb 06 18:46:59 but i dont know why :D Feb 06 18:47:29 then learn why Feb 06 18:47:45 where? Feb 06 18:47:49 or: how Feb 06 18:48:13 so you have read up on lib projects ? Feb 06 18:48:19 and how to include them ? Feb 06 18:48:37 done any tests creating your own lib project ? Feb 06 18:48:52 yes but the problem is i dont have a green mark after saving and reopening it Feb 06 18:49:09 when i chose the project htere is a green mark but if i reopen the preferences there is a red X Feb 06 18:49:23 your missing the point Feb 06 18:49:32 you can always ask and get answers Feb 06 18:49:46 but sometimes it's not the answers that are gonna benefit you Feb 06 18:49:57 all the answers will do is create a reliance on this channel Feb 06 18:50:30 so sometimes use of this channel can hinder you lots Feb 06 18:50:31 are you breaking up with me? :'( Feb 06 18:50:53 no but I am an instructor of many years in another area Feb 06 18:50:56 :D Feb 06 18:51:05 so maybe I do rant a bit Feb 06 18:51:07 :) Feb 06 18:51:07 it shoudl be a joke :) i know what you mean.. Feb 06 18:51:20 so let me ask you a question Feb 06 18:51:35 the project in the package explorer view that your using as a lib Feb 06 18:51:41 does that have a red x ? Feb 06 18:52:19 no Feb 06 18:52:31 and is the project built properly with no errors ? Feb 06 18:52:41 the lib pproject Feb 06 18:53:14 are the zero problems reported on that project ? Feb 06 18:53:24 does it clean properly ? Feb 06 18:53:27 etc Feb 06 18:53:28 etdc Feb 06 18:53:30 oops Feb 06 18:54:56 i dont know if the project is built proerly, there are zero problems, i dont know if it cleans properly and at last this is the only problem i can see for now: http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6eeFYsO1ZmA6jNGZCRQKkKHYYs2ux.jpg Feb 06 18:57:23 Styler2go: you need to have the project in that folder loaded into Eclipse as well Feb 06 18:57:52 http://ft.trillian.im/f9a4bf4963860c6af13335c6d005f99c2496a025/6eeGajtBBzrnwdcsS363IY7FwjDjJ.jpg Feb 06 19:00:14 i think this should be correct :-/ Feb 06 19:08:30 so nobody have an idea Feb 06 19:08:36 or eerybody leaves me alone :D Feb 06 19:10:15 Styler2go: well as a test I've just grabbed it Feb 06 19:10:19 imported it Feb 06 19:10:22 set as lib Feb 06 19:10:26 compiled it Feb 06 19:10:31 and it's fine Feb 06 19:10:43 and i am trying it since 18 o'clock Feb 06 19:10:47 not working yet Feb 06 19:10:50 so I would read up on lib stuff that has been linked to you Feb 06 19:15:11 is there one way to send one message in android like vb.net like messagebox Feb 06 19:22:08 tona: AlertDialog Feb 06 19:27:06 Hey, I'm trying to use Jsoup, but I get a RuntimeException on the first line of code that references is: http://pastebin.com/raw.php?i=45CgkVKf Feb 06 19:32:45 i have a nice hot bowl of Jsoup right here.. mm tasty Feb 06 19:33:31 I'm trying to set the next focusable id of a view to the home button on the ActionBar (technically using ActionBarSherlock) and I have tried android.R.id.home and a few other ActionBarSherlock ids but no success. Feb 06 19:35:39 liono: From what I understand, the actionbar buttons don't really exhibit state (if you're looking for a drawable to reflect its state) Feb 06 19:35:48 hey i have a problem getting getIdentifier to work, it always returns 0, what am i doing wrong? code: http://paste.debian.net/232281/ Feb 06 19:36:19 StingRay_: I completely recreated my eclipse workspace and it still wont work Feb 06 19:36:34 hwrd|work on a gtv device and I would like to be able to hit left on the dpad from anywhere in the list view and the focus to pop up to the action bar. Feb 06 19:37:33 no it works now... Feb 06 19:37:58 danners: Basically you're telling it to look for R.drawable.R.id.imageButton Feb 06 19:38:17 Styler2go: see, wasnt that better than asking for 30-40 minutes ? :) Feb 06 19:38:37 SimonVT: ehm so how do i just look for R.id.imageButtonx ? Feb 06 19:38:43 much better... Feb 06 19:39:07 danners: remove the R.id from the string Feb 06 19:39:14 :) Feb 06 19:39:15 public int getIdentifier (String name, String defType, String defPackage) Feb 06 19:39:20 The name is imageButtonx Feb 06 19:39:23 The type is an id Feb 06 19:39:30 Package, you got that covered Feb 06 19:39:51 what is the type of a imagebutton? Feb 06 19:40:05 You're not looking for an imagebutton, you're looking for an id Feb 06 19:40:16 You can later use that id to find an imagebutton, but that doesn't matter right now Feb 06 19:40:28 yeah i know that i want to get an id Feb 06 19:43:00 StingRay_: Could you find where R.dimen is from? :-/ Feb 06 19:43:18 well its in ref to dimension resource Feb 06 19:43:49 yes but i dont habe it in my project and i cant find the folder "dimen" in any project Feb 06 19:43:52 res/value/nameded anything: containing a dimension Feb 06 19:43:58 oh Feb 06 19:44:07 values.. ok Feb 06 19:44:11 SimonVT: so how can i get the id of an imagebutton? Feb 06 19:44:28 name,"drawable",packagename ? Feb 06 19:44:48 Think about it for a minute Feb 06 19:44:52 drawable != id Feb 06 19:45:11 yeah well i dont have the id Feb 06 19:45:19 Just put "id" as the type.. Feb 06 19:45:22 oh Feb 06 19:46:10 seems to work thanks a lot Feb 06 19:46:47 i have to sleep, have a headache now :D good night and thanks <3 Feb 06 19:51:45 hwrd|work I stepped away for a min, Do you have any ideas on how to set next focusable id? Feb 06 19:56:27 liono: Not for that view :-( Feb 06 19:57:49 arg It appears the gridview does the correct thing with nearest neighbour but having issues with listview. One other thing to add complication is that fact that I have focusables within the listview. Feb 06 20:05:58 anyone has experience with curl on android ? Feb 06 20:06:07 like adding a form Feb 06 20:08:06 if i want my imagebutton have an image from the start, it declare it in the xml right? it seem i can only do android:src="drawable/myname" now i have 4 different drawable folders. where shut i put my image? Feb 06 20:09:28 best is putting it in all 4 in different sizes Feb 06 20:09:35 hmm okay Feb 06 20:10:38 what happens if it is too high resolution for the device? does it get downscaled but looks not so good ? Feb 06 20:11:25 ye i think it will be downscaled, but that doesnt reduce its quality much Feb 06 20:18:27 some one done some native coding? where is the path to the GLES iclude folder to enter? as I wanna compile a native SDL example code it miss the GLES\gl.h file... Feb 06 20:18:39 hi Feb 06 20:19:47 or should I change the platform to android-14 ? but where? Feb 06 20:20:01 Is it possible to record audio using an AudioRecord but not write the data to a file? (Just write it into an array in ram?) Feb 06 20:21:41 I try to display a ARGB buffer that I get from JNI in a java ImageView on android. Please see my code: http://codepad.org/pnuX4wJ2 It's not working. => SKImageDecoder:: Factory returned NULL: Any ideas? Feb 06 20:21:56 possible to get more info from ImageFactory? Feb 06 20:25:33 I allways get "Compile thumb : SDL <= SDL_render_gles.c Feb 06 20:25:33 In file included from D:/android/android-project//jni/SDL/src/render/opengles/SD Feb 06 20:25:33 L_render_gles.c:27:0: Feb 06 20:25:33 D:/android/android-project//jni/SDL/include/SDL_opengles.h:33:21: fatal error: G Feb 06 20:25:33 LES/gl.h: No such file or directory Feb 06 20:31:43 has anyone worked with the Camera? Feb 06 20:37:26 I've a Question.. My GCM Register works on my SGS3 (JB) and on my Galaxy TAB 10.1 On all other Devices it stucks at "Registering App com.myapp... of senders senderid. I dont get an onRegistered or onError back. What could it be? The manifest is correct.. Feb 06 20:38:34 When i change the SENDER_ID to an invalid one.. i dont even get an Error Feb 06 20:44:50 is it not possible to set the clearColor of a glsurfaceview more than once? (GLES20.glClearColor(...)) Feb 06 20:47:24 hm, or maybe it is a threading issue Feb 06 20:56:56 is it right that setImageBitmap is nonblocking? Feb 06 20:57:10 I'm using Amazon In-App Purchasing and I am experiencing a problem Feb 06 20:57:23 when the purchase completes the activity i'm on is killed and restarted Feb 06 20:57:38 that very activity is responsible for listening to the purchases. but because it is killed, it doesn't do anything Feb 06 20:57:46 how can I prevent an activity from being destroyed? Feb 06 21:02:46 how can i make sure that i block until a image is loaded with setImageBitmap? Feb 06 21:03:18 Is there a Problem with Emulator and GCMIntentService? Feb 06 21:03:21 danners: why would you want to ? Feb 06 21:03:49 StingRay_: because its important that the image is shown for some time before i progress Feb 06 21:04:24 danners: "progress" < -- ? Feb 06 21:04:53 and whats the src of the image ? Feb 06 21:05:04 it a resource ? Feb 06 21:05:11 well im doing a memory when i click some buttons they get revealed. if two cards are open i check if they match, now it doesnt wait until the 2. image is loaded Feb 06 21:05:27 its an asset that i load into an imagebutton Feb 06 21:07:41 could i do the checkin in a new thread and pause the checking thread so the loader finishes? Feb 06 21:12:41 you set an image, the view is invalidated, the next time a frame is drawn, so is the image.. This usually happens within 16ms when running at 60fps.. I dunno why you need to wait, it'd hardly be noticeable Feb 06 21:13:13 hmm yeah that seems unlikely Feb 06 21:16:20 maybe there is something wrong with my logic Feb 06 21:16:25 Its fucking annoying. GCM Register works on ICS and JB without any Problems. On Gingerbread gcmintentservice is not even called... Feb 06 21:21:27 Hi - I'm trying to get an AlertDialog to display on the main thread if an AsyncTask times out. Is there an easy way to go about this? The AsyncTask is basically an HttpClient GET request. Feb 06 21:21:46 does timing out throw an exception? Feb 06 21:22:24 if so, catch the exception, cancel(true); in the catch block, and do the handling in onCancelled() Feb 06 21:25:56 sonOfRa: I have to show the AlertDialog in the main thread, though. Feb 06 21:26:10 read up on asynctasks then :) Feb 06 21:26:25 onPreExecute(), onPostExecute() and onCancelled() are invoked on the UI thread Feb 06 21:26:41 Oh! Derp. Feb 06 21:26:43 >.< Feb 06 21:26:50 I just saw that in the docs as you were typing it. Thakns! Feb 06 21:26:55 s/kns/nks/ Feb 06 21:28:47 They were clever enough to call the only method not called on the ui thread doInBackground Feb 06 21:29:07 * clever looks up! Feb 06 21:29:49 but be careful with asynctasks Feb 06 21:29:52 they are a deathtrap Feb 06 21:30:01 ^_^ Feb 06 21:30:15 yeah, ive had problems where onPostExecute runs in a activity that has been onDestroyed Feb 06 21:30:20 causing all kinds of issues Feb 06 21:30:23 exactly! Feb 06 21:30:27 wow... https://play.google.com/store/apps/details?id=com.thedoctorsays.predicktor Feb 06 21:30:30 i dont even know what to think Feb 06 21:30:47 oh god Feb 06 21:30:54 ? Feb 06 21:31:14 thanks canadiancow Feb 06 21:31:19 hahaha Feb 06 21:33:38 Does noone have Problems with GCM and Android 2.3? oO Feb 06 21:35:25 I don't know, does anyone? Feb 06 21:35:25 you're welcome lov Feb 06 21:35:27 I don't Feb 06 21:37:03 :p Feb 06 21:38:06 canadiancow: now, make that a google glasses app with some basic CV Feb 06 21:38:12 and AR … hah :) Feb 06 21:38:28 that's exactly what i'd want to be looking at all day long Feb 06 21:38:36 and it's Glass, not "glasses" Feb 06 21:38:55 add credit score, "ratings from previos GFs" Feb 06 21:39:02 Glass = meltdown of society Feb 06 21:44:01 my theory, maybe someone else has come up with this, is that day to day functioning of society probably requires some degree of ignorance and forgetting; once AR and ubicomp annotate our social interactions with too much information it will cause society to break down Feb 06 21:44:38 especially if the annotated information is wrong or outdated Feb 06 21:45:22 i'm sure i read a paper among these lines somewhere … wish i could find it; surely its more articulate Feb 06 21:47:09 oh this is cool, the Samsung Galaxy Discover is stock android … but 4.0 :P Feb 06 21:49:50 Hi folks Feb 06 21:50:16 I've asked this b4 and forgot Feb 06 21:50:24 but ne1 on osx here ? Feb 06 21:50:32 just found something quite nice Feb 06 21:51:20 StingRay_: i have osx, what did you find ? Feb 06 21:51:58 well just looked Feb 06 21:52:04 and it for linux and win Feb 06 21:52:10 so osx irrelevant Feb 06 21:52:13 called pencil Feb 06 21:52:20 http://pencil.evolus.vn/Stencils-Templates.html Feb 06 21:52:44 quite nice if you want to mock screens and take them into another app to protype anims etc Feb 06 21:52:50 prototype* Feb 06 21:55:25 I'm gonna replace some of the android template stuff Feb 06 21:55:33 but it seems quite nice Feb 06 21:55:34 :) Feb 06 21:55:39 :) Feb 06 21:55:49 anyone know the purpose behind the parent attribute of ? it doesn't seem to inherit styleables Feb 06 21:56:08 you looked at it g00s ? Feb 06 21:56:22 no, not yet Feb 06 21:56:49 i'm always interested in prototyping tools for mobile tho Feb 06 21:57:45 if Lucy Suchman's theory on situated cognition is correct, a good way to design your mobile app is via participatory design Feb 06 21:57:57 using props and stuff Feb 06 21:59:38 I'm trying to implement my own custom listview cell, which has an imageview and two textviews. I wan to use this imageiew as cell background image but when I implement my custom ArrayAdapter I don't get the expected result... Here is the layout code ( http://pastebin.com/DNE2uZWr ), here arrayAdapter implementation ( http://pastebin.com/XxDLhpHQ ) and here the image of what I got ( Feb 06 21:59:38 http://img41.imageshack.us/img41/3219/snapshop.png ) the image is cut at the bottom and I want to put all cells together. Any idea what is wrong? Thanks in advance! :) Feb 06 22:01:16 Hi guys, I was thinking about building an app involving nfc, would it be possible? how would it work? Feb 06 22:01:26 ops, solved! Feb 06 22:01:40 Sepho: I would "guess" "@drawable/cell_simple" is your prob Feb 06 22:01:52 can somebody try browsing http://home.no/reddvinylene/test and see if it crashes? Feb 06 22:01:52 just put my image as relativeLayout background instead of use an imageView Feb 06 22:01:54 it's work safe and all, i think there's a bug in my javascript though Feb 06 22:02:32 was gonna say, you have it in an un-constrained view Feb 06 22:02:33 :) Feb 06 22:03:14 sorry that was suppose to be: Feb 06 22:03:17 can somebody try browsing http://home.no/reddvinylene/test on mobile (applewebkit) and see if it crashes? Feb 06 22:04:08 anyone? Feb 06 22:04:32 marco_: yes, up to you Feb 06 22:05:21 marco_: but I think if your asking other people how your app will work, thats a sign of trouble Feb 06 22:05:55 marco_: maybe a bit of design lacking somewhere in there Feb 06 22:05:58 :) Feb 06 22:06:05 StingRay_: I'd like to use nfc's as a registering service.. I'm new to NFC, I have a rough idea of how it would work but my question is more how does nfc work Feb 06 22:06:34 can you store data in a chip which gets transferred to your mobile? Feb 06 22:06:41 how do i store this data Feb 06 22:06:42 etc etc Feb 06 22:06:55 dunno, read the api docs Feb 06 22:07:01 ah right Feb 06 22:07:05 wilco Feb 06 22:09:55 daowdkjwad .. so does noone know why unRegistered in GCMIntentService is not called on Android 2.3? Feb 06 22:11:13 holy crap, in 2012 Apple and Samsung together grabbed 100% of the mobile phone profits Feb 06 22:11:39 htc, nokia, sony, moto, bb … not even blips Feb 06 22:12:06 misterli: valid google account setup on your 2.3 device ? Feb 06 22:12:25 Yes. Valid means just added a Google-Account without any other Settings like Sync, etc. Feb 06 22:12:48 not sure but does sync need to be on ? Feb 06 22:12:53 < 4 Feb 06 22:13:05 can i make a textview use two columns in a gridview ? Feb 06 22:13:15 dont think so. But its annoying that i cannot find Google Play in my Emulator (Even if its the Google API Emulator) Feb 06 22:15:38 anyway it should fail registering with an error (for examplE ACCOUNT_MISSING). But nothing. Logcat says: "resetting backoff for ...." Feb 06 22:19:09 can i add two layouts to an activity? Feb 06 22:27:31 danners: I dont understand your question Feb 06 22:27:41 you mean setContent() twice ? Feb 06 22:27:50 yeah but it will swap Feb 06 22:28:06 if you mean layout as in viewGroup you can have as many as you want Feb 06 22:28:09 no one part should use gridview and the other part another layout Feb 06 22:28:15 dislayed at the same time Feb 06 22:28:28 yeah why not ? Feb 06 22:28:47 cause i cant seem to figure out how to do that in eclipse :P Feb 06 22:29:05 you add a layout to another layout Feb 06 22:29:14 inside? Feb 06 22:29:22 and repeat until you have enough Feb 06 22:29:24 yeah Feb 06 22:29:56 can add lots of gridViews listView imageViews etc Feb 06 22:30:00 all to same layout Feb 06 22:30:03 or Feb 06 22:30:05 omg that was too easy Feb 06 22:30:10 you can have layout A Feb 06 22:30:18 that calls layout B and C Feb 06 22:30:26 into itself with Feb 06 22:32:23 hmm doesnt work like i wanted... let me describe you what i have done: i have a gridview with 4 columns, multiple row. now i want to add a textfield into the last row but its bigger then one cell. it messes everything up. Feb 06 22:33:18 why does it need to be in the grid ? Feb 06 22:33:22 it doesnt Feb 06 22:33:31 then put it underneath Feb 06 22:33:33 :) Feb 06 22:33:38 that doesnt work :) Feb 06 22:33:47 it really does Feb 06 22:33:51 ;) Feb 06 22:34:22 my grid is taking all space i cant dragndrop under it Feb 06 22:34:44 then look at layout:weight Feb 06 22:39:55 are the cyans and grays that the cm10 default theme is based on listed anywhere? Feb 06 22:40:21 Is there a way to get the timestamp of creation of a contact record? Feb 06 22:49:42 hmph Feb 06 22:50:43 so now i have two layouts on top of each other, problem is that on the bottem one the background seems to be the top one repeated. what could cause this? Feb 06 22:51:33 the bottom one has the same background as the top one ? Feb 06 22:51:53 that could cause it Feb 06 22:51:54 :) Feb 06 22:52:04 omfg.. days of days of days because of this crappy problem and at the end it was just a simple fucking ... -.- Feb 06 22:52:09 nah it has the contents of the first one as background Feb 06 22:52:14 god i hate gui Feb 06 22:52:27 misterli: your wife? Feb 06 22:52:31 misterli: and it was ? Feb 06 22:52:33 haha :> Feb 06 22:53:02 only decleares that there are permissions. I just had only but not uses-permissions after that. And i was looking at the Receiver and GCMIntentService all the time.. Feb 06 22:53:34 oh well Feb 06 22:53:38 sorted now :) Feb 06 22:53:41 feel happy Feb 06 22:54:01 took about 12 hours of tracing the bug Feb 06 22:56:04 can we create custom name qualifiers for resources ? Feb 06 23:00:27 StingRay_. I dont feel happy. Wanna know why? Feb 06 23:00:45 getting a cold ? Feb 06 23:00:55 taken sad pills ? Feb 06 23:01:00 it's late ? Feb 06 23:01:16 I give in, why? Feb 06 23:01:18 Because it's crappy GCM does NOT Log an "Permission Denied" error even if it should. Im still sitting in office (at 00:00 Night) and my GF is sleeping well since about 4 hours? lol Feb 06 23:01:58 just because of 1 fucking line which can be discovered when GCM would send some Log.e/i/d/v whatever Feb 06 23:02:21 how do people here pronounce "query" Feb 06 23:02:26 misterli: look at it this way, least you haven't been stalled for weeks Feb 06 23:02:37 in the past week, i've heard two people say "q-where-eeee" Feb 06 23:02:44 haha Feb 06 23:02:47 but ive never heard that anywhere else Feb 06 23:02:50 errr no Feb 06 23:02:55 <--- british Feb 06 23:03:03 <--- invented English Feb 06 23:03:06 * jug6ernaut knew it Feb 06 23:03:07 and no Feb 06 23:03:53 canadiancow: you would pronounce it like queeereee? Feb 06 23:04:08 qwuerreee Feb 06 23:04:37 quiz Feb 06 23:04:43 qui'reeee Feb 06 23:05:05 omfg why the hell does a layout that has no background set use another layout as background.... Feb 06 23:05:13 i think for a not native speaker q-where-eee sounds mroe like the word looks :) Feb 06 23:05:29 danners: pastebin you layout Feb 06 23:05:35 at least here (in germany) q-where-eee I hear way more often then qui'reee Feb 06 23:05:56 StingRay_: now i have it fixed, i set a layout but it took me 30minutes to figure that out Feb 06 23:09:25 timroes, yes Feb 06 23:09:42 queer-eeeeeeeeeeeeeeeee Feb 06 23:10:07 canadiancow: so its mostly like queer? Feb 06 23:10:24 yeah thats whay i always think about when i hear ppl pronounce it the right way :D Feb 06 23:10:35 * timroes also pronouncing it wrong :D Feb 06 23:11:22 http://www.openstreetmap.org/?lat=18.598462&lon=-72.256431&zoom=18&layers=M Feb 06 23:11:31 timroes: same for me :D i just don't like it the other way and people will still get what i wanted to say Feb 06 23:12:16 if there is a lake in a woods, is there anythign wrong with making the lake way an inner polygon? Feb 06 23:12:30 will it still render as a lake? Feb 06 23:12:43 did anyone figure out what happen when an App has deviceadmin and google play shots out an update? Is Google Play able to disable/install over the App? Feb 06 23:13:02 and I asked in the wrong channel, sorry :) Feb 06 23:18:08 are there any guidelines on how to present a users contact information in an app? Feb 06 23:19:08 Hey all. Just wondering if there is a place for kinda entry level questions besides this channel? Feb 06 23:19:44 liquidamber: stackexchange has a pretty active android community Feb 06 23:20:15 dragorn: thanks. i'll check it out Feb 06 23:22:05 karlsve: dont think so, anyway you want i guess Feb 06 23:22:06 thats what i do Feb 06 23:24:59 StingRay_: okay doing that too :D thanks Feb 06 23:28:03 hi there Feb 06 23:29:01 does anyone know the "definitive answer(TM)" regarding if it's possible to have multiple receivers for the same intent filter ? I've reading in a lot of places, and everyone seems to have their own idea... Feb 06 23:29:38 I'm specifically interested in com.android.vending.install_referrer Feb 06 23:30:11 I need to catch that intent in a couple of places Feb 06 23:30:48 lack of good documentation seems to be the norm in the Android world it seems Feb 06 23:31:01 xroberx: canadiancow is fixing that \o/ Feb 06 23:31:29 need to go and hack the source code of the SDK to find out what the hell is going on Feb 06 23:31:36 not funny Feb 06 23:32:33 g00s: ask the canadian cow to give me some milk, I'm thirsty Feb 06 23:33:09 hmm, the new dropbox sync looks cool - but no idea on how it handles conflicts Feb 06 23:34:24 I will go back to code in assembler if this continues ... Feb 06 23:35:08 at least it's not overengineered Feb 06 23:35:32 you have the opcodes and the machine nothing more, nothing less Feb 06 23:36:09 not the latest $)%==Q$()% SDK made my some motherfu**er Feb 06 23:36:26 and you know how you are Feb 06 23:38:34 g00s, sigh Feb 06 23:38:38 xroberx, ask him yourself Feb 06 23:39:03 i dont see why you couldnt have multiple receivers with the same intent-filter... does it work? Feb 06 23:39:05 mmm... maple syrup and milk Feb 06 23:39:11 wow, a cow that know how to talk Feb 06 23:39:51 * canadiancow gets his milk-hose ready Feb 06 23:39:55 and beign canadian your milk will be less poluted than in those poor third world countries Feb 06 23:40:06 full of pesticides Feb 06 23:40:43 do you generally troll the ops of channels you visit? Feb 06 23:40:59 an SMS message is only assigned _id, thread_id, body, address, etc... when it has been stored into the Inbox? Feb 06 23:41:04 I don' troll, I'm THE troll Feb 06 23:41:10 Sicp: yes Feb 06 23:41:13 because I seem to be in a predicament..I parse received SMS messages and store them into the inbox, and later on I have this option that allows certain SMS messages to be deleted in a bunch (the ones that my app has tampered with).. Feb 06 23:41:22 so how am I able to find out which SMS messages I am looking for if I can't get their _id, thread_id at the beginning even before they are stored? Feb 06 23:41:47 Sicp: you cant then :) Feb 06 23:41:48 canadiancow give some milkkkkkkkkk come on pleaseeeeeeee Feb 06 23:41:59 * Sicp slaps xroberx across the face Feb 06 23:42:02 be quiet, boy Feb 06 23:42:07 hahahaha Feb 06 23:42:08 fuck you Sicp Feb 06 23:42:11 fuck you putio Feb 06 23:42:12 get cancer Feb 06 23:42:15 hahaha Feb 06 23:42:26 oh well Feb 06 23:42:27 you can do it Feb 06 23:42:39 :) Feb 06 23:42:48 just had to flex and he gets scared off Feb 06 23:43:08 upon receiving and storing (I only store the ones that I've tampered with, so I *know* which ones I can delete later on if only I could get some sort of info about it (id or some sort)) Feb 06 23:46:50 Hi room ! Feb 06 23:47:15 I never understood why ppl call channels rooms Feb 06 23:47:30 have i missed something obvious ? Feb 06 23:47:38 <--- genuin question Feb 06 23:47:47 that I've put of asking for 20 years Feb 06 23:47:51 :) Feb 06 23:47:53 because its like a room you can chat in Feb 06 23:48:00 really? Feb 06 23:48:01 thats how it was sold to people in 1995 Feb 06 23:48:03 lol Feb 06 23:48:05 thats it ? Feb 06 23:48:06 on webpagese and whatnot Feb 06 23:48:26 I missed the memo on that Feb 06 23:48:30 blah Feb 06 23:48:36 :) Feb 06 23:48:44 I never got why we didn't just stick to irc back then, and I still don't know Feb 06 23:49:45 that's true I don't use IRC from 1995 :-) Feb 06 23:49:56 I did Feb 06 23:50:02 and i call it room ! old slang ! Feb 06 23:50:09 befor then too Feb 06 23:50:13 e* Feb 06 23:50:34 but never realised why the "room" thing stuck Feb 06 23:50:53 angryTarsiER: was it you , the other day, who wasn't happy with dev support on Play? i may have confused you with somebody else Feb 06 23:50:55 because its easier for non techies to imagine it as a room with people you can talk to Feb 06 23:51:11 g00s sounds like me, but I'm sure we didn't have that chat. Feb 06 23:51:32 g00s, he seems angry Feb 06 23:51:45 g00s : i am new ! Feb 06 23:51:46 Chainfire: but I never came across ads or anything calling it that, or even promoting irc Feb 06 23:51:47 Chainfire: did you see this? http://www.androidpolice.com/2013/02/05/open-letter-please-help-yourself-to-helping-yourself-why-google-needs-to-rethink-the-concept-of-developer-support/ Feb 06 23:52:42 although I do remember compuserve firing up some service like that Feb 06 23:52:44 :) Feb 06 23:52:53 the room thing isn't from IRC Feb 06 23:53:04 it's from people used to webchat and icqs and whatever coming to irc now Feb 06 23:53:26 oh right Feb 06 23:53:30 BBS was before Newsgroup right? Feb 06 23:53:48 or fidonet ? :) Feb 06 23:53:56 used BBS b4 newsgroups Feb 06 23:54:26 i think first there was just 1 room, but later functionality was added for multiple rooms Feb 06 23:55:07 bbs and newsgroups are from the same era Feb 06 23:55:28 and 1 still stands strong today :) Feb 06 23:57:55 ah, back in the days when we used zmodem and gopher Feb 06 23:58:00 >.> Feb 06 23:58:05 * tear* Feb 06 23:58:21 wildcat.. worldgroup gallacticomm Feb 06 23:58:59 ok well, my "room" question has somehow turned into a depressing example of how old we all are! Feb 06 23:59:08 I apologise Feb 06 23:59:09 haha Feb 06 23:59:28 finally my emulator ran!!! :) Feb 06 23:59:42 I have no control buttons, that is weird. How to summon it? Feb 06 23:59:55 Kermit ftw ! Feb 06 23:59:57 tis in avd settings Feb 07 00:00:14 @aFeijo Feb 07 00:00:16 i had to use zmodem the other day to fix a zipit Z2 Feb 07 00:01:01 StingRay_, I think I found it, thanks Feb 07 00:02:08 g00s myeah Feb 07 00:02:15 I agree with the article wholeheartedly Feb 07 00:02:23 yesssssssssssss, finally! My app ran Feb 07 00:02:40 everybody duck! Feb 07 00:02:55 Now I can be rich. Feb 07 00:03:23 but I have no illusions about these things ever changing... it's Google. This isn't exactly "new" Feb 07 00:03:57 seriously though, what support do you think you would get ? and out of interest what level would it be at ? Feb 07 00:04:20 I know that sony dev support for things like p2 and p3 are quite good Feb 07 00:04:25 thanks StingRay_ :) Feb 07 00:04:26 the author gives a great example with his case Feb 07 00:04:29 but you pay 20+k for that Feb 07 00:04:40 the maturity got changed without him being informed, he has no way to appeal or find out what was what, or why Feb 07 00:05:04 oh Feb 07 00:05:10 yeah thats crap Feb 07 00:05:13 if there are metric fucktons of money involved, they'd better do their job Feb 07 00:06:20 and that's the whole point really, when you really need somebody, Google is nowhere to be found Feb 07 00:07:08 in most situations "help yourself" is fine... people tend to find the answers by themselves eventually, and I'll bet a lot of the time before the other party has had a chance to respond Feb 07 00:08:50 so I've manually inserted SMS messages after receiving (and tampering with them) into ContentValues, into content://sms/inbox, can't I now do cursor = cr.query(SMSmessage.SOMETHING, new String[] { "myTag1", "myTag2") ?? Feb 07 00:13:35 brb Feb 07 00:15:06 I still get failed because the query says that there are no such columns as the ones I was querying for (the ones I had .put() into ContentValues earlier, inside content://sms/inbox) Feb 07 00:18:15 Sicp: there is no reliable way to do what you want "content://sms/inbox" there is no public api or access method afaik Feb 07 00:18:35 then how the hell would you delete an SMS that you've "tagged" or played with, later on? Feb 07 00:18:45 how on earth will you figure out which one it was if you can't tag it with something? Feb 07 00:19:01 it's not in a public api Feb 07 00:19:08 of course it can be done, I just don't know what's going on exactly here Feb 07 00:19:16 to the SimonVT!! Feb 07 00:20:11 my point is the structure and maybe even the uri may change from version to version or from manuf. even Feb 07 00:20:27 but are you aware of exactly what it is that I'm trying to do? Feb 07 00:20:34 exactly!!! Feb 07 00:20:47 I have not seen 1 SO thread about this; all were about something else that had no relation to deleting specific SMS message Feb 07 00:20:57 just ones that have been received lately, or all, or something Feb 07 00:26:01 dude, since we know that the SMS only gets assigned those attribs *after* it gets into ContentValues...what if I just store it and then retrieve it right there a second time, grab its ID or the whole threadID and store it somewhere Feb 07 00:26:21 later when I want to purge all of what *I myself* have stored, I can know exactly which they were Feb 07 00:26:46 brb when it fails. Feb 07 00:26:54 Sicp: there will be a delay between the boadcast and the valid db entry write Feb 07 00:27:05 causing....? Feb 07 00:27:31 well you intercept the intent yes ? Feb 07 00:27:40 yea Feb 07 00:27:58 then it goes to content system, then database read, then bit of logic then write to db Feb 07 00:28:15 so maybe a little delay Feb 07 00:28:41 no the reading from DB later on is going to be totally separate, it will be according to something in Preferences; Purge all X-messages every X-minutes/days/etc.... Feb 07 00:28:53 what it does then is read from .......yea it's a face-fuck Feb 07 01:07:41 hey y'all Feb 07 01:08:29 hey first thing is first... question, is it normal practise or dumb of me to create fragments as inner classes Feb 07 01:08:33 instead of their own classes Feb 07 01:09:47 I have a listview (as content) and a linearlayout (as a footer) -- when I scroll down, I'm moving the top of the linearlayout, however I'm left with a big white gap (where the linearlayout was) even though the listview has a weight of 1 Feb 07 01:10:27 I tried re-setting the layoutparams to have a weight of 1, but then the footer wouldn't move Feb 07 01:10:48 is there something I should be doing to re-set the calculation of the height of the listview (with a weight) Feb 07 01:10:51 ? Feb 07 01:12:11 vote for creating #android-dev-fragments Feb 07 01:13:08 Sicp: what would be the point, most here use fragments Feb 07 01:13:15 hmm? Feb 07 01:13:36 no I mean a channel for discussing them, a huge portion of the questions here deal with fragments alone Feb 07 01:13:41 then there's everything else Feb 07 01:14:06 well I guess you could just answer the questions then :P Feb 07 01:14:09 like mine.. 10 lines up Feb 07 01:14:17 yea I've never worked with 'em Feb 07 01:14:21 P3nnyw1se: it depends IMO, small classes are OK as inner classes, but larger ones should be on their own just for the sake of readability Feb 07 01:14:48 alright AlCapwn here is my issue and I'm 1 week into android programming so its probably an easy/dumb fix Feb 07 01:15:35 I've made a Fragment.. containing a few buttons . the Fragtment also constains an onClick method.. with a switch statement on view.getID to figure out which button was clicked Feb 07 01:15:36 I tend to stick large ones in their own sub package Feb 07 01:16:15 the problem is... when I get to the selection on my virtual device.. and click a button.. it stops, and in my logcat it says that its looking for the onClick(); in my MainActivity Feb 07 01:16:21 and not my MainActivity.innerClass Feb 07 01:16:39 which is where the onClick method is Feb 07 01:18:18 so.. MainActivity -> Fragment1(innerClass) -> onClick(); Feb 07 01:18:26 Double check what you're passing in your setOnClickListener method Feb 07 01:18:30 but when I hit the button it only searches .. MainActivity -> onClick(); Feb 07 01:18:58 ehmmm :P Feb 07 01:19:01 well this is awkward Feb 07 01:19:26 I dont use any setOnClickListener method Feb 07 01:19:54 I havent done so in any of the examples I've tried.. like 'passing data' example Feb 07 01:20:32 So how are you telling your views who the recipient of the click event is? Feb 07 01:21:18 well I have the onClick(View view); in in that I do a switch(view.getID()) Feb 07 01:21:25 I figured that way I could tell which button Feb 07 01:21:29 used its onClick method Feb 07 01:21:56 but Feb 07 01:22:00 now that you put it Feb 07 01:22:03 that way I see it makes no sense Feb 07 01:22:09 as I don't give it Feb 07 01:22:10 a view Feb 07 01:22:41 You must be setting a listener on the view somewhere, either in code or XML Feb 07 01:24:11 mmmmm Feb 07 01:24:37 do I need to set a Listener on each button? lets say I have 3 Yes,No,Maybe Feb 07 01:24:45 and I only wanna 'accept' one answer Feb 07 01:25:19 set the same on all Feb 07 01:25:23 then use your switch Feb 07 01:25:57 Clicking on a button will by default do nothing, unless you tell the button what click listener to call Feb 07 01:26:01 why are you using buttons for that Feb 07 01:26:04 use a spinner Feb 07 01:26:07 or radio buttons Feb 07 01:26:15 or something designed to allow you to choose one item from a set Feb 07 01:27:47 because a penny ain't worth a cent Feb 07 01:28:03 cause I couldn't figure out radio buttons Feb 07 01:28:06 and they pissed me off Feb 07 01:35:00 hello guys Feb 07 01:35:35 how can i use key event in TextEdit in android Feb 07 01:45:39 tona: a key event ? Feb 07 01:45:46 not sure you could Feb 07 01:46:01 can listen for changes to the editText value though Feb 07 01:46:29 ok Feb 07 01:47:22 StingRay i have found few manual related with android programming can you recommend me one Feb 07 01:47:37 fraid not Feb 07 01:47:43 never read one myself Feb 07 01:47:50 so no experience in that Feb 07 01:48:02 you can definitely get keyevents in an EditText Feb 07 01:48:08 the same way you would on any view Feb 07 01:48:19 is there one way to send one message like messagebox in vb.net Feb 07 01:48:24 key events from IME ? Feb 07 01:48:40 tona, go read d.android.com/guide Feb 07 01:49:26 where is it Feb 07 01:53:11 how can i set one messagebox in android Feb 07 01:54:24 tona: use the link canadiancow gave you and search for dialog and dialogFragment Feb 07 01:56:42 ok Feb 07 01:58:18 no AlCapwn :( Feb 07 01:58:30 when someone clearly has not read anything, you try to get them to read everything Feb 07 01:58:35 dont tell them what to search for :p Feb 07 02:04:45 hmm, looks cool http://www.infoq.com/news/2013/02/RxJava Feb 07 02:04:49 this supports Android Feb 07 02:10:32 Can someone explain adb for me? I get the general concept, but does adb run on a PC or the tablet? Feb 07 02:13:22 MouseTheLuckyDog: http://forum.xda-developers.com/wiki/Android_Debug_Bridge Feb 07 02:13:39 and http://www.xda-developers.com/android/adb-easy-tutorial/ Feb 07 02:16:43 Thanks StingRay, that clears things up. Feb 07 02:21:04 uh, i just realized that the 'email developer' thing in Google Play is just a mailto: link with .. my gmail. Feb 07 02:21:17 google you fucking idiots Feb 07 02:24:54 u can change it Feb 07 02:25:49 Ubububu: where ? Feb 07 02:26:38 view your app Feb 07 02:26:44 well, yeah … thats not the point Feb 07 02:26:53 and find "contacts" Feb 07 02:27:10 their should be some form based submission Feb 07 02:27:40 ah **** ENDING LOGGING AT Thu Feb 07 02:59:58 2013