**** BEGIN LOGGING AT Tue Jan 22 02:59:58 2013 Jan 22 03:02:02 JatoFire: lazy load Jan 22 03:02:14 it has a thread pool and everything Jan 22 03:02:27 I need to get a rubber duck. Jan 22 03:20:01 hey goos did you see? http://www.edge.org/video/the-clothesline-paradox Jan 22 03:20:21 tdignan: sounds like you got some fun ahead of you, I would love to help but this second isn't perfect, if you have the code posted somewhere, I will look tonight (Assuming I have a spare second). Feel free to PM me the details if you want. Jan 22 03:23:34 hello Jan 22 03:23:46 is Lru cache possible to live after app termination ? Jan 22 03:23:57 because something like this seemed to happen Jan 22 03:29:44 Normally how long does it take for an App to be visible in the market after publihsing ? Jan 22 03:30:05 minutes to hours Jan 22 03:30:33 Leeds: thank Jan 22 03:30:49 wonderin how to get the link of the app Jan 22 03:31:11 https://play.google.com/store/apps/details?id=COM.YOURPACKAGENAME Jan 22 03:31:42 Leeds: is yourpackagename always prefixed by COM? Jan 22 03:31:49 no, of course not Jan 22 03:31:55 okay :) Jan 22 03:31:56 figured just checking :) Jan 22 03:32:00 http://developer.android.com/distribute/googleplay/promote/linking.html Jan 22 03:34:36 wrabbit: do you ever talk? Jan 22 03:35:36 :P Jan 22 03:39:46 wrabbit could be sending steganographic messages through the timing signal of his arrival / departure , we're just too primitive to interpret it Jan 22 03:39:57 what, every 276 seconds? Jan 22 03:40:19 :) Jan 22 03:45:20 Leeds: my friend got a samsung galaxy tab 10, and returned it because it said he could only print to samsung printers - but i was skeptical. any ideas ? user error ? Jan 22 03:47:30 g00s could i query you real quick? Jan 22 03:47:46 JatoFire: thanks for the offer, although I think it just requires time. I jumped the gun on my question there. Need a rubber duck. Jan 22 03:48:53 newby question... is there a way to add a class to manifest without copy paste? Jan 22 03:49:07 can someone check if they app page is visible https://play.google.com/store/apps/details?id=com.m7.nomad Jan 22 03:49:09 in eclipse Jan 22 03:49:24 harsh: no Jan 22 03:49:29 Trinity: thanks :D Jan 22 03:49:36 damn its taking too long to show up Jan 22 03:49:36 :P Jan 22 03:49:37 Trinity: nope... nothing there... Jan 22 03:50:33 irishgringo: can you re-phrase the question? Jan 22 03:50:59 hi, the title bar (with clock and symbols) is overlapping my app after coming back to it (restoreInstanceState), it seems the app wants to take the hole screen but not the area without the title bar Jan 22 03:51:16 I developed one app and used adb to install it in my phone. I wish my friend could try it too, how can I give him the .apk? Jan 22 03:51:52 vuln: dropbox, mail, rapidshare, bluetooth, skype, whatsapp... Jan 22 03:52:02 I have added a new class to my app. I want to add this new class to the manifest. THe way I was doing it was copying my MainActivity and pasting it in, then editing it. But I was looking for a way to do something like right clicking the class and selecting add to manifest... or something like that Jan 22 03:52:06 cliffer: can I use the .apk that is in /bin ? Jan 22 03:52:16 vuln: depends on a common communciation medium Jan 22 03:52:17 JatoFire: .. Jan 22 03:52:30 one sec man. Jan 22 03:52:31 so apparently someone was able to hack IAB and Play Store. http://www.youtube.com/watch?feature=player_embedded&v=OFAV6F5w_Ao Jan 22 03:52:44 normally it is in /data/app Jan 22 03:53:04 thank you Jan 22 03:53:28 vuln: perhaps you cant send it, so it helps to send it from sd card Jan 22 03:54:16 irishgringo: I'm fairly certain you can do this using the "Activity" tab. Jan 22 03:54:24 hi, the title bar (with clock and symbols) is overlapping my app after coming back to it (restoreInstanceState), it seems the app wants to take the hole screen but not the area without the title bar. any ideas how to limit it to the available screen space? Jan 22 03:54:32 cliffer: :( Jan 22 03:54:32 *"Application " tab Jan 22 03:54:33 JatoFire: will look Jan 22 03:55:02 irishgringo: That said I have never used it. Let me know if you have any success. Jan 22 03:55:20 i am not sure what you mean... still looking Jan 22 03:55:35 i have android:layout_height="match_parent" Jan 22 03:58:14 irishgringo: If you open "AndroidManifest.xml", there should be five tabs running along the bottom. One of these should be named "Application" Jan 22 03:58:53 irishgringo: you don't have to add an arbitrary class, only those classes subclasses on the android activity components (eg activity, service, etc) Jan 22 03:59:03 ahhh... yea... I found it... but when I add a new class, it does not see my new class... still experimenting Jan 22 04:00:18 irishgringo: lasserix has a good point, What classes are you adding? Jan 22 04:01:07 I am not sure how to explain it, but it is empty qat the moment... just ... package com.techlatin.spash02; Jan 22 04:01:09 public class myMenu { Jan 22 04:01:11 } Jan 22 04:01:25 IntelliJ IDEA can do it quite easily. Jan 22 04:01:32 just right click -> new android component Jan 22 04:01:34 and it adds it for you Jan 22 04:01:45 tdignan: was that to me? Jan 22 04:01:49 yes Jan 22 04:02:03 it also becomes part of the undo history of your manifest Jan 22 04:02:05 what is intelleJ? Jan 22 04:02:16 it's another IDE that you might consider trying. Jan 22 04:02:18 is that better than eclipse? Jan 22 04:02:24 that's subjective. Jan 22 04:02:33 it definitely will take getting used to, but it does what you asked for. Jan 22 04:02:49 well, I am an iPHONE developer learning android... which IDE should I be using? Jan 22 04:03:04 Neither is as good as xcode. Jan 22 04:03:07 irishgringo: eclipse Jan 22 04:03:36 xcode practically writes itself... Jan 22 04:03:39 tdignan: You're kidding right? Jan 22 04:03:47 but I'll stick to eclipse Jan 22 04:04:48 irishgringo: turns out tdignan's method works in eclise for adding activities, blew my goddamn mind. Jan 22 04:05:39 heh Jan 22 04:05:54 JatoFire: eh, I only tried xcode for 5 minutes last week, but in that short time it seems to be a lot better than these. Jan 22 04:06:02 having used eclipse and idea a fair amount Jan 22 04:06:39 then again, I'm only using a community edition of idea. Jan 22 04:07:03 xCode is really elegant. Have you seen the StoryBoard? sweetness Jan 22 04:07:31 should I put iDea on my eclipse? Jan 22 04:07:49 xCode is a bloated piece of s***, I outsource any iOS work, unless I need something specific for my iPad. Jan 22 04:08:10 Eclipse is a dog though. Jan 22 04:08:43 although no experience with xcode Jan 22 04:08:53 i had hard time with android to make an app Jan 22 04:09:12 android doc's use the eclipse IDE with the android sdk plugin, opinion here is to use intelleJ as your IDE Jan 22 04:10:04 in xcode everything was easier Jan 22 04:10:06 irishgringo: did you figure out your class question? Jan 22 04:11:34 lasserix: Good point. Jan 22 04:12:24 not really... I am doing it by hand Jan 22 04:14:23 what is the class you are defining besides what the wizard gives you (usually an activity with some methods automatically declared like onActivityCreated or onStart) you are trying to do? Jan 22 04:14:49 I am folloing this utube tutorial... http://www.youtube.com/watch?v=3V1wov9Jhik Jan 22 04:15:31 its doing a splash screen... and not working... hahaha Jan 22 04:16:03 JatoFire: haha Jan 22 04:17:01 actually... I am kind of waisting time on this anyway... I asked this question before.. perhaps I can get some sugestions on now to do somethng more important for me Jan 22 04:17:52 I have a project that is a multipage questionair... but its a random tree... I was thinking of using activites for each question... but I was laughed at. Jan 22 04:17:52 tdignan: I have literally used it twice since you mentioned it. Jan 22 04:18:34 irishgringo: Why would each question require its own Activity? Jan 22 04:18:51 so after some reading, ther eis something called a fragment that I was thinking of using... just make questings a view, and just show views in a single activity Jan 22 04:19:26 if someone has an iPHONE in this chat room, I can show you my iPHONE app that works perfectly... exactly what I am trying to do Jan 22 04:19:50 I have iPhone Jan 22 04:19:57 just fyi... the reason I was thinkig separate activities, is becuase I want there to be a transistion effect between questions. Jan 22 04:20:23 and the answers to the questions are actually buttons that go down specific paths. Jan 22 04:22:46 JatoFire: http://filedir.com/ios/medical/scai-qit-for-ios-downloading-1-5000485.html Jan 22 04:22:55 wrong url... sorry Jan 22 04:23:58 JatoFire: I'm on my MS computer... having trouble finding link to iTUnes... its scai-qit Jan 22 04:25:08 I found it in iTunes, I will find my iPhone and install it. Jan 22 04:25:26 this will be interesting... thanks Jan 22 04:29:08 It's dead, I will charge it. Jan 22 04:30:55 irishgringo: I would look here: http://developer.android.com/guide/topics/graphics/view-animation.html Jan 22 04:32:11 did you see the app? Jan 22 04:32:23 on iPHONE? Jan 22 04:32:31 irishgringo: Yes I have just installed it on iPad. Jan 22 04:33:14 the iPAD version is not exactly what I was going for... but you get the question concept... this animation looks interesting. Jan 22 04:36:43 irishgringo: a simple way to do what you want is use a viewpager Jan 22 04:36:53 JatoFire: so I can use a button to start a transition to another layout? Jan 22 04:37:20 the viewpager is backed by an adapter that uses a xml defined layout to pull the UI as needed, when the user swipes from right to left Jan 22 04:37:26 I think I was reading about viewpagers... but it was not clear... can I get a url to viewpager material please Jan 22 04:37:48 If I check a CheckBox and go to another Activity, can I check if that CheckBox is checked in the previous activity from the current one? Jan 22 04:37:50 are heavyweight / lightweight windows a concept in Android or is that just Titanium's word for it? Jan 22 04:38:10 with something similar to CheckBox check = (CheckBox) findViewById(R.id.checkboxFourth);boolean checked = check.isChecked(); Jan 22 04:38:35 irishgringo: if you have the time look at the tutorials on the android dev about making a simple activity that starts another activity Jan 22 04:39:15 lasserix: I have already don the tutorial about starting an activity... but I have some questionairs that get pretty deep. Jan 22 04:39:30 so activities would be kind of overkill Jan 22 04:40:33 and the views are pretty simple.. just a question with some buttons that represent the possible answers... onButtonClick transistions to the next question. Jan 22 04:41:06 Can you think of a way to refresh the layout you supplied in setContentView(...mLayout) to show a new questionarre without using a seperate activity with each question? Jan 22 04:41:31 irishgringo: I would use the same Activity for each question, however when a answer is selected I would pass that data using the putExtra() method attached to the intent you create. Jan 22 04:43:18 I actually don't really need to pass data to the next view... its a tree structure... so I just want button1 to open up view1 button2 opens view2... Jan 22 04:43:51 there are some places where I do have to make calculations... but I will cross that bridge latter Jan 22 04:44:17 To familarize yourself with android better, you should try implementing a listview with just the text of your questions Jan 22 04:45:02 you can map your tree to one of the adapter api's depending on what kind of UI you'd like, but to start make a listview work Jan 22 04:45:03 I think the pageviewer is what I am looking for... but can I get a transistion effect between views? Jan 22 04:45:13 Yeah there is animation api for that :) Jan 22 04:46:01 lasserix: ok... so my assingment is to create a single activity that displays multiple views based on a list view Jan 22 04:46:19 so each view will have one button that transistions to the next view Jan 22 04:46:38 come back to the transitioning when you get your data displayed Jan 22 04:48:01 But if you wanted too, for instance, you could list all your questions in a listview and then when the user clicks on a particular item / question row, it could (this would be an expensive way to do it) start a toast showing the adapter was working Jan 22 04:49:16 lasserix: that would only work logically for the nacs part fo the app... the other part of the app is more of a tree structure to the questions. Jan 22 04:50:19 my app is under the status bar: http://skiboerse.wittkopf.eu/Screenshot_2013-01-22-05-45-10.png anybody an ideas? have fill_parent in height in styles.xml and relativelayout of activity Jan 22 04:50:19 I have another IDE/eclipse question... is ther no way to click on a button, and go directly to the onCLick event? Jan 22 04:50:45 Ahh, sorry I see what you are getting at: why not just save the answers in some list and update the setText methods of the textviews showing the questions and use the same layout for each questionaire? Jan 22 04:51:28 because the tree layout is extremely complicated... its gets really big. Jan 22 04:52:05 irishgringo: if you mean defined in the xml of the button attributes, yeah you can do android:onClick="myFunctionName" then declare a method in the activity that uses that xml with args public void myFunctionName(View view) {} but it is discouraged Jan 22 04:52:07 after doing the iPHONE and web app, I have this already programmed in my mind to do one question for each view Jan 22 04:54:13 Sorry was gone for a bit. Jan 22 04:54:24 sorry there's no way to plug and play from xcode, you might try getting some of the basic android ui widgets working with arbitrary data to see what suits your data structures the best Jan 22 04:55:51 if I can give each button a unique name, with its own code... then I could assign some display text to the buttons. if that makes sense... then I would just be drawing layouts that I would swap out in the same activity. Jan 22 04:55:53 irishgringo: Back to your point. In the Activity in which the questions are rendered, I would create a new Intent: ie: Jan 22 04:55:57 oops Jan 22 04:55:58 does that make sense? Jan 22 04:58:25 ie: final Intent intent = new Intent(this, WhateverYourActivityClassIsNamed.class); Then when the question is answered, I would pass the answer selected along with the current node, i.e.. intent.putExtra("Question", question); Jan 22 04:59:36 Hey guys I was kinda new to this and am wondering how I can store my array or string into the memory Jan 22 04:59:38 intent.putExtra("Answer", answer); Then when you call it will start the same Activity however you will have the lead and tail node so the app can work out which question to ask next. Jan 22 04:59:44 so it won't be deleted when my proccess is killed Jan 22 05:00:15 agy2154: http://developer.android.com/guide/topics/data/data-storage.html Jan 22 05:00:25 thanks Jan 22 05:00:26 JatoFire: I was peddling my bike thinking of how to do this... and what you just said was one of the ideas that I had... Jan 22 05:00:36 agy2154: np Jan 22 05:01:18 JatoFire: would you have some example code? also, I am still working on a way to swap views with just a btnclick Jan 22 05:01:36 does the buttonclick make sence... or is that what you are proposing... Jan 22 05:02:17 If you are doing a lot of questions, recreating an activity for each questions is execution overkill Jan 22 05:02:36 phones only got so much juice! Jan 22 05:03:12 lasserix: yea... I am not doing the separate activity anymore. but I was thinking of just swapping out views in the same activity Jan 22 05:03:32 im looking at fragmentpageadapter now Jan 22 05:05:06 Hi All Jan 22 05:05:51 what will be the best implementation way to read/write on sockets constantly ? Jan 22 05:06:34 what will be the best implementation to read/write on sockets constantly ? Jan 22 05:06:56 lasserix has a good point, it would be better to simply with the view. Jan 22 05:07:14 juned: to what end? Jan 22 05:08:24 JatoFire: i want to read response from socket constantly Jan 22 05:09:58 even though you repeated the same thing three times, it still doesn't make much sense, but you're probably going to have to develop some kind of protocol that handles loss of connection and messages -- you can't reply on a 'constant' connect with mobile devices Jan 22 05:10:01 JatoFire: i have 12 digits fix array to read the response and i want to read the response continuously and based on this result i am setting up a values Jan 22 05:10:09 juned: http://docs.oracle.com/javase/tutorial/networking/sockets/index.html Jan 22 05:11:48 bankai_: JatoFire : i have implemeted this functionality but my problem is when i am reading and writing on sockets to frequently then i am getting ANR dialogs Jan 22 05:12:15 check your stack trace Jan 22 05:12:21 i am trying to find code that will change one layout to a differenet layout with a button click. what should I be looking for. this in in the same activity Jan 22 05:13:14 nope i am not getting any error, but application stops to respond Jan 22 05:14:08 here us my code snippet :http://stackoverflow.com/questions/14437420/application-crashes-in-device-while-working-fine-in-emulator-nullpointerexcept/14437876#comment20103468_14437876 Jan 22 05:14:47 you have a null pointer exception ... Jan 22 05:15:45 That problem is solved now, i am not getting that exception Jan 22 05:16:17 but when i am setting my time interval to 100ms then application gets stuck Jan 22 05:16:38 i want to improve the performance of my applcation Jan 22 05:16:44 application* Jan 22 05:18:08 Anyone know of any glitches in 4.1 where setting an image during an animation will cause it to not appear? Jan 22 05:29:53 irishgrino: depends on how much you are changing, with some simple text you can call a method in the button click event to update the text Jan 22 05:31:48 free private git exists? Jan 22 05:32:11 squ: of course it does. Jan 22 05:32:21 do you know one? Jan 22 05:32:29 No-one owns git. Jan 22 05:32:42 doesnt matter :) Jan 22 05:33:48 git is just software - you can run it anywhere, your own PC or server, etc. Jan 22 05:34:36 my status bar overlapps my app: http://skiboerse.wittkopf.eu/Screenshot_2013-01-22-05-45-10.png. This happens only, if another activity/fragment is closed. if i press home and reenter my app, the title bar fits well Jan 22 05:34:48 squ: did you mean private github? there is sw to do that too Jan 22 05:34:55 anyhow, #git Jan 22 05:34:55 sw? Jan 22 05:35:34 I would like to use a software to track changes to source code Jan 22 05:35:34 software Jan 22 05:35:48 and upload that stuff to a website probably Jan 22 05:36:01 doesnt matter to me is it git or something else Jan 22 05:36:04 what do you guys use? Jan 22 05:36:53 For public projects and open source work I use GitHub. For everything else I use git on my own server. Jan 22 05:37:11 but g00s has a point, this isn't the place. Jan 22 05:37:23 I dont care Jan 22 05:37:32 squ: about? Jan 22 05:37:50 Anyone familiar with the NumberPicker class? Jan 22 05:38:31 damn it capella found another FF bug :) Jan 22 05:38:41 squ: you're more likely to get better help on #git since , uh, you're asking about git Jan 22 05:38:56 I'm asking for common android experience :) Jan 22 05:39:03 ummm ... which one? hey g00s ! Didn't know you hung out here Jan 22 05:39:04 and preferences Jan 22 05:39:34 The only thing Git and Android have in common is the Author of the original base code. Jan 22 05:40:11 JatoFire: nonsense... they both have an 'i' in them Jan 22 05:40:24 can anyone help me to figure out my isssue? Jan 22 05:40:48 capella: this is weird; in prefs->History , when i go back and forth between 'Firefox will never remember history' and one of the other ones, eventually I get to a state where FF will not save the selected one. So, I may select 'will never remember history', close, restart FF, and go back there and the old selection is still there. i'll have to file that bug too Jan 22 05:40:54 Leeds: Dammit man! So close. Jan 22 05:41:25 g00s - I Think I've seen that before ... yah - its quirky Jan 22 05:41:41 juned: couple of things... you're not handling the socket on your UI thread, are you? Jan 22 05:42:22 JatoFire: what about using FrameLayout with my project... looks like some potential Jan 22 05:42:33 nope i am not handling sockets on UI Jan 22 05:43:15 If I implement a NumberPicker view with a min of 0 and a max of Integer.MAX_VALUE, then scroll from 0 to negative and back to positive numbers, the whell loses it's view ... displays nothing in the |selected| bar of the wheel Jan 22 05:44:13 @Leeds : i am using new thread to read/write on sockets Jan 22 05:44:48 irishgringo: that could work quite well. I would set up the view in an xml file and replace the strings as needed.. Jan 22 05:45:12 juned: you also shouldn't be polling a socket like that, I think Jan 22 05:46:02 @Leeds yeah, i am not Jan 22 05:46:27 @leeds here is the method which i am using http://paste.ubuntu.com/1557565/ Jan 22 05:47:05 Does google have a bugzilla? Jan 22 05:47:09 @Leeds i am using handler Jan 22 05:47:30 capella: you mean b.android.com? Jan 22 05:47:33 juned: dunno Jan 22 05:47:46 maybe ... lemme read... Jan 22 05:47:49 :( Jan 22 05:47:50 b.android.com is more like a online textfile you can append comments too :) Jan 22 05:48:17 Google people do occasionally get bored enough to look at it Jan 22 05:49:11 oh, sure - i was commenting more on its functionality - i haven't seen a more dysfunctional defect tracker evar Jan 22 05:49:22 leeds: nice..... Jan 22 05:49:35 otoh, bugzilla is … interesting code Jan 22 05:49:42 is bugzilla still perl ? Jan 22 05:49:50 i'm sure, i doubt anybody understands it totally Jan 22 05:52:28 I don't think bugzilla has changed significantly - certainly not significantly enough for a language change - for a long time... partly because, quite right, nobody really understands it :) Jan 22 06:02:00 so ... create generic number picker, set min=0, max=integer.max_value and get wheel scroll fail ... http://imagebin.org/243773 Jan 22 06:02:51 sounds like somebody didn't do their boundary class testing Jan 22 06:03:19 *boundary value testing Jan 22 06:03:51 NumberPicker wont handle negative numbers either, so I added a ToggleButton to the view to get that working ... just trying to get the numberpicker to scroll all possible integervalues Jan 22 06:05:12 if I set max to 2147483646 (Integer.MAX_VALUE - 1) it works ok Jan 22 06:05:45 well, 2-for-1 : you can file a documentation bug for canadiancow since the docs don't say what values are allowed; and the behavior isn't right so thats another bug Jan 22 06:06:31 yah - is why i was checking their bugzilla ... didnt see anything Jan 22 06:06:33 what would happen if I started an animation on a view while another animation was running? Jan 22 06:06:49 on 4.1 only, i think.. :/ Jan 22 06:07:11 g00s: cant believe im the only one bumped into it though Jan 22 06:07:26 (though I've caught myself saying that before) Jan 22 06:07:37 capella: well, numberpicker is api11 so - lots of people just copied the code into their own project if they target GB Jan 22 06:08:02 or froyo, don't remember Jan 22 06:08:10 it used to be private / internal Jan 22 06:08:16 Yah - still getting used to the short development cycle on android ... too damn fast for an OS Jan 22 06:08:32 i think its ok, but the ability to push updates is not Jan 22 06:08:42 i mean, unless you have a non-VZ nexus :D Jan 22 06:08:53 can't keep my froyo straight from my jellybean nor my Kiwi Jan 22 06:10:10 specifically; this animation https://gist.github.com/4bb95b3493b2218f2e30 is running when I do view.startAnimation(AnimationUtils.loadAnimation(view.getContext(), android.R.anim.fade_in)); and it gets all screwed up; but only in 4.1 Jan 22 06:10:12 any ideas? Jan 22 06:10:32 but not in 4.2 ? Jan 22 06:10:49 not in 2.2 - 4.0.4; i dont think we have a 4.2 device Jan 22 06:40:01 india barred zte/huawei from the $3.8bn NOFN project citing security threats Jan 22 06:47:36 hi out there I have some trouble with see also this question on stackoverflow: http://stackoverflow.com/q/14436641/995926 Jan 22 06:49:52 cool ... submitted Issue 43048: Apparent boundary error with NumberPicker class Jan 22 06:50:46 capella: starred :) Jan 22 06:51:15 Well .. lets hope is real ... I always worry about that Jan 22 06:51:21 >) Jan 22 06:56:06 Does someone use that ? I have trouble to build an simple image with it. Jan 22 06:58:03 yah - thats tricky too ... i gave up and put .PNGs into mine Jan 22 06:59:49 too bad that android does not support svg Jan 22 07:00:27 there is a reason why - but i suspect as time goes on , that argument will fall away Jan 22 07:01:18 g00s: what is the reason? Jan 22 07:01:42 processing svg is pretty resource intensive Jan 22 07:02:33 rekire: there is a library to do svg rendering and I have seen a native SVG library used.. Jan 22 07:02:41 for complex images this could be true but for simple things like arrows or in my case some squares not Jan 22 07:03:02 cantido: I use such a lib it has many bugs Jan 22 07:03:30 i'm guessing it doesn't implement the full spec Jan 22 07:03:46 rekire: the one used for androify (sp?) or a native one? Jan 22 07:04:54 I'm using this one: http://code.google.com/p/svg-android/ Jan 22 07:04:58 There are a few svg subspecs (or profiles whatever..) you have to make sure you export to the simplest one you can Jan 22 07:05:34 The libraries aren't going to support all of the fancy stuff Adobe design tools can but you can do pretty good stuff with it Jan 22 07:06:22 I have nothing realyl special, just some gradient backgrounds Jan 22 07:06:51 that might be one of the things that doesn't work ;) Jan 22 07:07:27 oh yes^^ but I found somewhere a patch which sloved that problem Jan 22 07:10:30 rekire: what are you using to produce the SVGs Jan 22 07:11:16 our designer uses illustrator cs5 or so Jan 22 07:11:52 after that I throw the svgs thrue some scripts to reduce the filesize Jan 22 07:12:05 i think sometime soon, i am going to write some plugin for the build system to rasterize all the svgs automatically in some smart way Jan 22 07:13:05 do you have some homepage or so where I can observe the progress? Jan 22 07:13:11 i have a python thing now that works meh … i just wish there was some easy way of separating the generated assets from the regular res/ tree Jan 22 07:13:31 rekire: not yet, but i will put it up on github once its ready Jan 22 07:14:12 i'll keep your nick in mind Jan 22 07:14:13 I was told to come here to ask a question from #android. One of my folders on my S3 is glitching. There is empty space in the folder and if I try to move any icons after the space, TouchWiz crashes. I've only tried rebooting, because I can't really think of anything to do. http://i.imgur.com/kRqXJBE.jpg Jan 22 07:14:24 Hello! 2 questions: 1 is it right every time create adapter in separate file (not inner class)? 2 where i can read guidance how better to write code in android? (for example answers on kind of questions like my first)? Jan 22 07:14:38 hmm is is possible to extend the GUI so that you can scroll it up and down? I was just asked to do something that's going to require LOTS of filling of forms so one screen does not have NEARLY enough space for all the text fields Jan 22 07:15:16 tneva82: no, there's no way to scroll a view in Android Jan 22 07:16:17 * cantido guesses it might be called a ScrollView Jan 22 07:16:20 ProfOak_: wrong channel, try samsung or something Jan 22 07:16:35 xgear: it could be an inner class, or not. ok either way Jan 22 07:17:06 I figured #android might know, but I hadn't thought about samsung. Thanks Jan 22 07:17:09 tneva82: mobile forms are hard to get right :| usability testing ahead ! Jan 22 07:17:58 turns out, people dont like pecking on their keyboards much :) Jan 22 07:18:10 bummer Jan 22 07:18:12 g00s: i mean in case of separation responsibility Jan 22 07:18:23 guess I need to do some sort of "next page" solution then Jan 22 07:18:29 how will be better Jan 22 07:18:50 [22:05:49] well, 2-for-1 : you can file a documentation bug for canadiancow since the docs don't say what values are allowed; and the behavior isn't right so thats another bug Jan 22 07:18:50 wat Jan 22 07:18:54 xgear: i tend to make a static inner class, if one the outer class will use it Jan 22 07:19:01 tneva82: also, sarcasm Jan 22 07:19:02 dont file a bug for me Jan 22 07:19:14 canadiancow: only joking ;) Jan 22 07:19:20 I'm talking about some 30 or so edit fields...Frankly don't see much fun in that seeing how slow typing is with phone's(albeit tabs help especially with stylus pen) but hey. Customer asks, I'll have to as a minimum try to see if it could work! Jan 22 07:19:36 i dont even think its possible to assign a defect to anyone Jan 22 07:19:47 when you create apadter as inner non-static class he will hold reference for base class (as usual it is Activity and this is not always good) Jan 22 07:20:02 g00s, i think you're right. a docs bug would go to someone else Jan 22 07:20:40 xgear: right, you pass in only what you need, and understand the lifecycle of the outer may be different than the inner Jan 22 07:21:21 "xgear: i tend to make a static inner class, if one the outer class will use it" - ok, is there any case when it is good to create inner not static class Jan 22 07:21:30 adapter Jan 22 07:21:35 yeah, convenience :) Jan 22 07:21:48 like, the adapter need too much shit from the outer context Jan 22 07:21:50 tneva82: tried searching the docs for 'scroll'? Jan 22 07:21:56 g00s, that's a sign of poor design :P Jan 22 07:22:01 :P Jan 22 07:22:06 but just be careful with non-static inner classes Jan 22 07:22:17 i always try to make them static Jan 22 07:22:22 as soon as you end up with code like "new A().new B()", you're in trouble Jan 22 07:22:54 g00s: but there is a lot of methods to provide this shit ... and don't hold context in adapter Jan 22 07:24:09 Is it possible to change all text colors just with setting a theme? Jan 22 07:25:20 sheesh no. I assumed guys here would have decency of not lying Jan 22 07:25:58 * capella created a bug and didn't drag canadiancow into it :p Jan 22 07:26:02 that's okay, I assumed guys here would have the decency to do a basic search for an answer to a basic question Jan 22 07:28:28 hey canadiancow, http://www.youtube.com/watch?feature=player_embedded&v=OFAV6F5w_Ao, is there anything being done about that? Jan 22 07:29:20 there's nothing to be done Jan 22 07:29:27 if you don't have a server that manages EVERYTHING Jan 22 07:29:32 you're screwed Jan 22 07:29:48 as long as you have code running on untrusted devices (i.e. users' smartphones), it can and will be hacked Jan 22 07:30:23 right... but thats a fake visa hack Jan 22 07:30:34 oh what? Jan 22 07:30:43 its not even in app billing, its straight up fake visa and getting through play store Jan 22 07:30:50 I have an animation that runs for 2000 milliseconds. I put this in the listener https://gist.github.com/52b00ee32bb257d8944f . When I slide, the animation is supposed to run, but once this animation runs it refuses to run again; any ideas? Jan 22 07:30:55 got to be careful with fake visas... immigration people will come after you Jan 22 07:31:06 fake debit/credit card* Jan 22 07:31:44 wait what Jan 22 07:31:48 what is this "freecard" thing Jan 22 07:31:50 ill query you the blog that gives you instructions if you're interested after watching, just about to use it on my own IAB game Jan 22 07:32:04 iono, some fake card that tricks market into thinking you paid already Jan 22 07:40:28 woo i dont care about animations Jan 22 07:40:40 i dont care about solving problems Jan 22 07:40:46 lets just hide them away, wooo hoooo Jan 22 07:43:54 i ordered something on amazon on saturday, with prime 2 day shipping Jan 22 07:44:02 monday's a holiday, so it said i'd get it wednesday Jan 22 07:44:10 then it shipped on saturday, and the estimate was updated to tuesday Jan 22 07:44:13 it arrived today Jan 22 07:44:18 i was impressed Jan 22 07:44:43 i would have been more impressed if they would ship the CPU i ordered a week ago though Jan 22 07:46:50 canadiancow: it seems it might have been patched, trying on my own app gives back "no connection" Jan 22 07:47:09 canadiancow: stuff from amazon gets here the next day even without prime ;) Jan 22 07:49:30 stuff from Amazon UK typically takes a week or two to get here - but firstly that means doing a significant part of a circumnavigation, and secondly it can be *cheaper* than getting it delivered to the UK Jan 22 07:50:08 Whenever I ordered stuff from amazon in the uk it came late and really beaten up Jan 22 07:51:19 Leeds: yeah i talk, but im usually asleep when others are talking Jan 22 07:51:32 wrabbit: you need to fix your connection Jan 22 07:53:04 as i just said to r00t4rd3d who is currently PM flooding me, i just bought an antenna to fix the problem Jan 22 07:53:17 but i saw that last night it did nothing, so i moved the antenna Jan 22 07:53:34 my connection is actually a lot faster now than normal, so im thinking that might have actually fixed it Jan 22 07:53:50 is there a common cause that makes web requests stall? by that i mean are there common newbie mistakes that cause behaviour like this and if there are what are they... if you could please Jan 22 07:54:41 I am trying to set a TextView's text property using ?attr/card_label but when I run my program it shows ?"longnumber" in the TextView where longnumber is the value of R.attr.card_label. Is there something obvious I'm doing wrong? Jan 22 07:54:54 balls2thewall: from the browers or from httpurlconnection or whatever? Jan 22 07:55:02 Ignoring ALL from r00t4rd3d!*@* Jan 22 07:55:20 you can stop flooding me now Jan 22 07:55:20 url connection Jan 22 07:56:14 balls2thewall: can you use wireshark or something on the connection your phone is using? Jan 22 07:56:34 * cantido has a special AP setup for this stuff Jan 22 08:08:19 balls2thewall: a common cause is mobile connection Jan 22 08:08:25 heh Jan 22 08:08:32 strikes every time ! Jan 22 08:08:41 unless you live on the googleplex Jan 22 08:11:37 g00s: mobile connection *always* fucks up Jan 22 08:11:51 it's in the nature Jan 22 08:12:21 it could be one of the thousands of microwaves close enough to cell site that causes that one frame containing ACK packet to drop :P Jan 22 08:12:21 yup Jan 22 08:12:40 although teclo does good with optimizing that Jan 22 08:12:51 it works fine and after a while the requests just stall :/ if i kill the app and restart it its fine Jan 22 08:13:04 balls2thewall: how are you connected? Jan 22 08:13:26 ... check under debugger/profiler for stale connections and/or stale sockets? Jan 22 08:13:38 also, are you using keepalive and connecting to same server? Jan 22 08:18:12 balls2thewall: here is a link i posted earlier, you might find it interesting Jan 22 08:18:16 http://www.fiercedeveloper.com/story/mobile-networking-where-html5-falls-short/2013-01-11 Jan 22 08:18:28 forget about the html5 part Jan 22 08:27:01 interesting global platform market trends http://www.kantarworldpanel.com/Global/News/Windows-sees-strong-European-growth Jan 22 08:28:27 I really cant see how ios is top in Japan Jan 22 08:29:02 all non-iphones are android, except one windows phone that AU had IIRC Jan 22 08:29:32 oh, the figure is for a single week, great Jan 22 08:30:46 no, it not a single week; it from that period last year Jan 22 08:31:04 12 w/e 25 dec 11 - 12 w/e 23 dec 12 Jan 22 08:31:53 oops, i was looking at the wrong data. its a 1w week period ending dec 23 Jan 22 08:31:58 *12 Jan 22 08:32:04 so, 1q Jan 22 08:32:06 so I was right? Jan 22 08:32:18 no, 12 weels Jan 22 08:32:26 damn i cant type tonight :) Jan 22 08:33:52 ah ok, re-read it Jan 22 08:34:57 I can imagine them being number one in sales right around an iphone refresh but I've only ever seen an iphone once here and that was some American guy Jan 22 08:35:42 #iphone Jan 22 08:36:12 i wonder what they are discussing over there Jan 22 08:36:39 rounded corners Jan 22 08:44:11 anyone know what kind of camera this is for usability testing? http://www.akendi.com/mobile-user-experience-design/mobile-user-experience-usability-testing.php Jan 22 08:49:47 g00s: the slide deck at the bottom of http://www.startupshk.com/mobilliancehk-january-event-photos-surface-di may interest you Jan 22 08:52:36 Leeds: cool, thanks. read it. did you go to the presentation Jan 22 08:52:58 yup - I've actually seen her give it twice now, saw it at an event last year as well, and had a chat with her last night Jan 22 08:53:46 she mentions useit.com; thats jakob nielsen's website Jan 22 08:54:17 i'm just finishing this http://www.amazon.com/Mobile-Usability-Jakob-Nielsen/dp/0321884485 Jan 22 08:55:24 yeah, she namedropped him a few times Jan 22 08:55:38 he's been doing this stuff for a long time Jan 22 08:55:40 particularly talking about the size of test groups Jan 22 08:56:43 http://e.asset.soup.io/asset/4023/5662_ae1d_500.jpeg ... da fuq Jan 22 08:57:40 "Thanks to all the speakers for making it a great night of learning - though it seems the general consesnus is that the Ubuntu OS is DOA." Jan 22 08:57:46 (from the link above) Jan 22 08:58:32 Leeds: are you sitting in that group picture ? (#2) Jan 22 08:59:03 the guy back there with the grey scarf looks suspicious :P Jan 22 08:59:13 yeah - white guy, beard, holding my chin Jan 22 08:59:37 right in front of grey scarf dude ? heh ! Jan 22 08:59:49 he's thinking, who is this dude in front of me ... Jan 22 08:59:53 in the picture, yeah, although I'm in the middle of the room, he's at the back Jan 22 09:00:02 :) Jan 22 09:00:35 you'd probably have found Andy's talk interesting as well - he's the local Microsoft developer advocate Jan 22 09:00:52 nice bloke, just a pity he's pushing such dead-end playforms Jan 22 09:00:59 heh Jan 22 09:01:07 "playform" :D Jan 22 09:01:13 typo :P Jan 22 09:12:58 if i want to sign my app (for using it with c2dm) .. how can i do it in eclipse? i know there's a keytool but when i debug there's always a new key generated, isnt it? Jan 22 09:13:52 you mean gcm, presumably... you should have a single debug key which is used repeatedly Jan 22 09:14:41 Yes, gcm. :) bug the debug key differs from the releasekey (sha1) right? Jan 22 09:15:22 yes Jan 22 09:16:11 okay, this may be a problem. gcm wants me to insert a key already (before registration). Im not sure if i can change it after it has been set uped Jan 22 09:17:17 I dunno... why not use your release key? Jan 22 09:17:49 if i generate a release key with the keytool.. then i cant use it in the debugmode, do i? Jan 22 09:19:22 I've never worked out if there's actually any difference in behaviour depending on what key you sign with Jan 22 09:19:26 anyone else know? Jan 22 09:20:45 mhm, bcuz it asks me for the required field "Signing certificate fingerpringt (Sha1)". Im not sure if i can still access the gcm service when the fingerprint dont match Jan 22 10:00:10 What's the approach to use GPU acceleration at a native level (NDK developed code)? I understand that RenderScript is to be used from Java code. Jan 22 10:02:56 atsui: OpenGL ES Jan 22 10:03:54 how can I rebuild the R.java of the gen folder of the project tree? Jan 22 10:04:20 superlinux-hp: compile your project? Jan 22 10:04:29 Eclipse had an option IIRC when you right clicked the project Jan 22 10:04:50 timroes, i want to regenerate R.java. it's missing Jan 22 10:04:58 but also it could mean a layout file is borked and that that is not allowing it to generate Jan 22 10:05:06 Project->Clean->Build Jan 22 10:05:09 p_l, okay, thanks Jan 22 10:05:38 i would assume eclipse generates it even if its missing when you compile it :) Jan 22 10:06:03 do not assume anything logical about Eclipse. Sooner or later you will be proven wrong. Jan 22 10:06:05 at least netbeans does Jan 22 10:06:19 Chainfire: don't worry i only assume the worst of eclipse :D Jan 22 10:06:23 Chainfire: +1, it's close to tragic at moments Jan 22 10:06:37 but that compiling the project would generate the R file is the normal procedure? Jan 22 10:06:41 timroes, what happened is i copied the strings.xml Jan 22 10:06:56 timroes, what happened is i copied the strings.xml from another project Jan 22 10:07:17 so when i did that the problem started. Jan 22 10:07:29 there is no compile option in Eclipse afaik Jan 22 10:07:37 okay I thought the build process recognizes, if something changes and rebuild the R file Jan 22 10:07:41 and resource problems are generally only solved by doing a Clean Jan 22 10:07:45 i guess its just called Build? Jan 22 10:08:09 clean usually is set to auto-build as well I think Jan 22 10:08:12 R.java is a resource problem Jan 22 10:09:16 Chainfire, i know. Jan 22 10:10:08 superlinux-hp: and if you replace strings.xml with the old one, does it compile? Jan 22 10:10:15 timroes sorry I make the distinction between compile and build, because in various tools I have used in the past they are not the same thing :) Jan 22 10:10:54 yeah, I seem to remember Linker errors back in the day Jan 22 10:10:57 Chainfire: yeah actually recognized its also called Build in netbeans and not compile :D I just use compile, because it somehow stuck in my head :D Jan 22 10:10:59 even if it all built perfectly Jan 22 10:11:06 those could take you days Jan 22 10:11:31 (as in, compile would be more of "cached" build - changes only, whereas a build would be more of a "clean" build) Jan 22 10:11:38 belgianguy: I guess in that case you would use comile and not buiild :D Jan 22 10:11:50 or at least I would say build = compile + link Jan 22 10:12:11 ok!! Jan 22 10:12:15 I go it!! Jan 22 10:12:32 the strings.xml does not have admob_id!! Jan 22 10:12:34 sorry! Jan 22 10:12:37 LOL Jan 22 10:12:45 lol Jan 22 10:12:50 i must readd it Jan 22 10:12:51 that's why copy/paste is a bad code smell :) Jan 22 10:13:13 belgianguy, it farts bugs and errors yes! Jan 22 10:14:09 you mean copy/paste isn't valid code reuse ? Jan 22 10:14:34 Chainfire: no, and santa clause doesn't exist, also there are no unicorns Jan 22 10:14:41 sorry to destroy that for you :( Jan 22 10:15:06 copy/paste too often leads to sloppy coding and oversights Jan 22 10:15:17 usually it's almost the same, but not completely Jan 22 10:16:04 my favorit copy/paste error https://www.youtube.com/watch?v=kYUrqdUyEpI Jan 22 10:16:15 also, if it is needed at multiple places, it usually signals some refactoring is needed, putting that code in its own class/function Jan 22 10:16:27 Chainfire: why am I explaining this to you :p Jan 22 10:18:20 thats odd belgianguy Jan 22 10:18:29 usually my copy/pastes are exactly the same, not almost :P Jan 22 10:18:44 there may be something wrong with your clipboard. Jan 22 10:19:08 all joking aside, I do get a bit annoyed with library hell sometimes Jan 22 10:19:59 it's often easier to copy/paste a file into your project than making a lib for every little thing, because you know it isn't going to fit inside one of your other libs, and a util-lib is not-done Jan 22 10:21:28 best example for that Base64 encoder :) Jan 22 10:21:37 (okay in android that exists, but not in regular javase) Jan 22 10:21:48 I guess its the class i copied the most often :) Jan 22 10:22:20 Chainfire: thats a general design flaw in the android sdk Jan 22 10:22:56 Chainfire: i also didn't find out, if it's possible to link resources accros projects Jan 22 10:24:18 hmm... http://picpaste.com/something-missing.png Jan 22 10:24:26 only if the resource is inside a lib, afaik Jan 22 10:24:37 and exactly which resources work that way depends on SDK version, I think Jan 22 10:26:27 Ankhwatcher you need to ping a Googler on that Jan 22 10:27:29 Chainfire: yup Jan 22 10:27:48 better yet submit a ticket @ http://code.google.com/ Jan 22 10:28:07 * https://code.google.com/p/android/issues/list Jan 22 10:28:30 Chainfire: will do, thanks for the the link Jan 22 10:28:45 there's a "developer documentation" option if I'm not mistaken Jan 22 10:32:48 Chainfire: would the developer documentation be different on different OS's? Jan 22 10:33:59 no Jan 22 10:34:41 Ankhwatcher> http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#update(java.lang.String, android.content.ContentValues, java.lang.String, java.lang.String[]) Jan 22 10:34:46 problem is present on d.android.com, so Jan 22 10:34:51 include that link in your report Jan 22 10:36:01 oki doki Jan 22 10:36:01 what was the problem with that ? Jan 22 10:36:16 g00s missing whereArgs description Jan 22 10:36:30 also for updateWithOnConflict Jan 22 10:36:44 ah Jan 22 10:37:12 i remember, back in the day, when i used to use google code search to look for examples of android api usage ... Jan 22 10:37:42 too bad they killed that off Jan 22 10:37:51 yeah, bummer :( Jan 22 10:37:55 one of the more useful Google thingies Jan 22 10:38:21 thats how i taught myself loaders; i though the docs were so vague Jan 22 10:38:35 once i saw the various ways people used it, i was like - oh, thats easy Jan 22 10:38:55 I still don't use loaders Jan 22 10:38:57 g00s: yeah, that's indeed a topic where an example is so much clearer than just the theory Jan 22 10:38:59 the docs were indeed awful Jan 22 10:39:13 and back when I *wanted* to use them, they didn't actually work properly in the support lib Jan 22 10:39:22 and anything that isn't in the support lib, is useless. Jan 22 10:39:22 how hard would it be to create a texting app with OTR support? Jan 22 10:39:28 there is still a nasty bug in CursorLoader :) Jan 22 10:39:56 what's OTR? Jan 22 10:40:18 mr0wl: very hard Jan 22 10:40:35 * Chainfire still doesn't like fragments either Jan 22 10:40:46 Fragments are awesome. Jan 22 10:41:15 well, now that they have finally fixed using fragments inside fragments, I might reconsider my opinion Jan 22 10:41:18 belgianguy: IMing encryption Jan 22 10:41:22 mr0wl: but if you don't want to reinvent the wheel... https://github.com/pfleidi/yaxim/issues/82 ;) Jan 22 10:41:23 I thought fragments are needed to be more flexible over different UI's Jan 22 10:41:27 Ge0rG: what would be the major challenges? Jan 22 10:41:27 ahh, Off The Record Jan 22 10:41:43 mr0wl: key synchronization Jan 22 10:41:45 belgianguy not really. they're a method of doing things Jan 22 10:42:03 mr0wl: also, message storage on android that does not violate OTR's implied no-storage assumption Jan 22 10:42:09 Ge0rG: is it due to data being transmitted through the network provider? Jan 22 10:42:11 also I'm not saying I'm not using them. I'm saying I don't like the implementation much Jan 22 10:42:45 ah, then I must revise my understanding of them :) Jan 22 10:42:57 with my main gripe being that a "re-usable component" you can't actually re-use inside a second re-usable component is... crock. Jan 22 10:43:39 but as I said, that has been fixed in the latest update, I believe. But a lot of things you can do with fragments you could already do with views and some interesting coding. Not as easily, not as pretty, and no - not everything. But quite a few things. Jan 22 10:43:45 Ge0rG: you're the developer for yaxim? Jan 22 10:43:48 nice Jan 22 10:43:49 mr0wl: yes Jan 22 10:44:16 it's a fantastic, app, by far the most sane one for XMPP! Jan 22 10:44:24 A lot of real-world android devleopment requires "interesting coding" and various hacks. Jan 22 10:44:27 thanks for creating it! Jan 22 10:44:45 mr0wl: actually, it was initially developed by two students in 2009, I just took over from there Jan 22 10:44:57 mr0wl: feel free to submit code Jan 22 10:45:16 Chainfire: Reported: https://code.google.com/p/android/issues/detail?id=43061 Jan 22 10:45:41 Ge0rG: have you thought about using something like cryptocat? Jan 22 10:46:16 mr0wl: that browser-based thing? nope Jan 22 10:46:35 * Ge0rG is a believer in xmpp Jan 22 10:46:47 xmpp rules :) Jan 22 10:47:02 i wish everyone who would implement a chat would use it Jan 22 10:47:15 i would like to see steam using it with a public interface :) Jan 22 10:47:26 league of legends is using xmpp, which is cool Jan 22 10:48:10 still, xmpp is really clumsy with some important things... like message reliability on mobile... or end-to-end encryption of file transfers Jan 22 10:48:27 oh yeah file transfer... Jan 22 10:48:54 * Ge0rG ranted about xep-0198 (stream management) some years ago, and still haven't successfully implemented it Jan 22 10:48:56 I don't know if its a problem in pidgin or xmpp(server), but my file transfers always need half an hour to start, but then work with full speed Jan 22 10:49:27 hard to tell, there are at least 6 different ways to initiate a file transfer in xmpp Jan 22 10:50:15 i thought xmpp was supposedly a trainwreck Jan 22 10:50:19 Hi! I want to do some if Contacts provider is changed. It is not when my app active. I've found android.intent.action.PROVIDER_CHANGED, but my receiver don't receive this broadcast. How to do it? Jan 22 10:51:10 Other broadcasts received, like BOOT_COMPLETED TIME_ZONE_CHAnged etc. Jan 22 10:53:46 why my message does not appear in the android-developers google group? Jan 22 10:53:58 squ: it's moderated Jan 22 10:54:02 it ate mine as well :( Jan 22 10:54:11 it takes a little bit Jan 22 10:54:12 squ: maybe it has to be okayed bu an admin Jan 22 10:54:17 s/bu/by Jan 22 10:54:28 I am 100% my message is ok Jan 22 10:54:33 % sure Jan 22 10:54:40 it's been a week in my case Jan 22 10:54:47 week ?! Jan 22 10:54:49 its crazy.. i get GCM Errormessage Registration error: INVALID_SENDER all the time. I'm sure the SENDER_ID is valid... Jan 22 10:55:00 squ: why not also post it to Stack Overflow? Jan 22 10:55:00 I regret spending so much time on the layout, and I fixed it myself meanwhile Jan 22 10:55:07 belgianguy: that seems too long Jan 22 10:55:19 g00s: well it's the NDK group Jan 22 10:55:25 maybe that one gets less love Jan 22 10:55:50 Udmurt have you set a "data" tag for your receiver ? Jan 22 10:56:23 Udmurt see https://code.google.com/p/notification-plus/source/browse/AndroidManifest.xml?r=ed8d326c75fabbfb66b1d38691f3770892cea5c9 for an example Jan 22 10:56:26 Chainfire, yes, with it and without it. Nothing works. Jan 22 10:57:32 then I don't know :) Jan 22 11:01:49 ah damn.. it can not work if Google Cloud Messaging is not enabled n the Services-Tab oO Jan 22 11:01:51 when i import the ActionBarSherlock lib into eclipse I get [2013-01-22 11:00:19 - AstroboyMasterConsole] Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Jan 22 11:02:29 ahh, not important Jan 22 11:03:38 another question though... Jan 22 11:04:28 when I import the library and then add it to my project build path, it complains that the support library in the ABS lib and the support lib in my project are no the same version...is it safe to just right click the abs project and do "add support library"? Jan 22 11:05:01 brx_: don't add it twice Jan 22 11:05:20 brx_ I'm not sure if this is still the case, but when I installed ABS it had its own *modified* support lib Jan 22 11:05:25 you should use that one if you're using ABS Jan 22 11:05:44 and then remove the support lib from my own project? Jan 22 11:05:57 ok i see now Jan 22 11:06:31 thanks belgianguy , Chainfire Jan 22 11:10:16 Chainfire: i wonder what happened to that actionbar lib mentioned at the last i/o. i would think, if it was implemented by google, it would be part of the support lib Jan 22 11:10:38 (not the other way around) Jan 22 11:11:13 yeah me too Jan 22 11:11:28 brx_, support lib from action bar can be removed and you can use standard from android Jan 22 11:11:49 Chainfire: are you sure the support lib is customised for use with ADB? Jan 22 11:11:54 just add dependency in abs to std support lib Jan 22 11:12:16 belgianguy I remember something like that, but maybe this is no longer the case? I've also Google'd a bit and they say you can just replace the ABS support lib with a different version Jan 22 11:12:16 I recently upgraded the support lib in my ABS folder because it couldn't find something, and that still works Jan 22 11:13:00 maybe I'm remembering it wrongly, but I do remember a Jake complaining about something that was made private or protected or whatever in the support lib (I think) which made him make a modified version, something like that Jan 22 11:13:04 In ABS 4.2.0 all work fine with standard in my case Jan 22 11:13:26 can't remember more. but if you really want to know, I guess we could always ask Jake later when he wakes up ;) Jan 22 11:13:59 Chainfire: well maybe we should, just so I don't have to fear my projects imploding down the line :) Jan 22 11:14:16 again, maybe I'm just remember it wrongly or mixing memories that shouldn't be mixed, or it has been fixed, or whatnot. Jan 22 11:14:45 Chainfire: I'm sure Jake had reason to complain, and that would explain why it's in the package instead of a seperate download Jan 22 11:14:46 I checked now the pom it uses std lib now Jan 22 11:15:35 com.google.androidsupport-v4 Jan 22 11:16:25 belgianguy it is related to this: https://code.google.com/p/android/issues/detail?id=26694 Jan 22 11:16:41 I have no time to read it now, gotta pick somebody up from the hospital, but maybe that clears thigns up Jan 22 11:18:59 Chainfire: ah thanks, that clears things up Jan 22 11:26:16 belgianguy, Chainfire .. my app relies on a method which is not available < api11, I have figured out a hacky way to get it working on < api 11 Jan 22 11:26:28 is it dirty publishing 2 versions of the app Jan 22 11:26:38 1 for api 11> and one for api 11 < Jan 22 11:30:36 Udmurt, thanks, I removed the support lib from my project and it works fine now Jan 22 11:31:58 yeah, its considered hacky by most Jan 22 11:32:29 Ge0rG: couldn't SMS be intercepted on the system level and have the encryption applied so the user can choose whatever app they wanted? Jan 22 11:32:35 I cant seem to find a framework solution to this problem though g00s :< Jan 22 11:32:43 mr0wl: maybe Jan 22 11:32:56 brx_, you can use this construction http://pastie.org/5819958 Jan 22 11:33:07 Ge0rG: does android allow that? Jan 22 11:33:10 mr0wl: however, if instant messaging is the question, sms is not the answer... Jan 22 11:33:13 mr0wl: never tried Jan 22 11:33:15 build you app against latest SDK Jan 22 11:34:07 thanks for that Udmurt I think that will come in handy for me soon :D Jan 22 11:34:25 Ge0rG: i was thinking about a central service for taking care of all messaging Jan 22 11:34:35 currently messaging is fragmented in android to different apps Jan 22 11:34:56 mr0wl: you can integrate your IM buddies into the contact list Jan 22 11:34:59 hello :) Jan 22 11:35:06 ...but I still don't see the benefit of that Jan 22 11:35:19 i'm looking for a way to store a binary file within an android app if anyone can help me with that .. Jan 22 11:35:39 its a very specific app .. not something for app store etc.. its running on a rooted device.. Jan 22 11:35:50 i cannot find info on how to store something like binary blobs within an app? Jan 22 11:35:57 Ge0rG: just one place to have messages, and have them encrypted Jan 22 11:35:58 http://stackoverflow.com/questions/14457312/sherlock-action-item-style-for-button-in-custom-action-bar-layout Jan 22 11:36:41 mXr, in apk? Jan 22 11:36:50 yes Jan 22 11:36:56 is an "asset" what i want? Jan 22 11:37:00 yes ) Jan 22 11:37:04 ahh :) Jan 22 11:37:07 i'm such a noob :x Jan 22 11:37:18 thanks Jan 22 11:37:33 me too, so always learn ) Jan 22 11:37:47 on it :p Jan 22 11:40:50 mXr, but remember about free space during installation Jan 22 11:41:32 yeah Jan 22 11:42:03 this is only a "closed playground" or something.. not an app that goes into the app store and people will yell about :) Jan 22 11:42:15 basically i'm trying to install an apk.. from this app :p Jan 22 11:42:30 mXr: you are cheating the system ;) Jan 22 11:42:35 i am Jan 22 11:43:01 Hi guys , i am facing a weird problem.I have a layout and there is a button inside that layout.On clicking of the button i need to translate that layout towards up say for example 30%.I am able to achieve this but when animation ends i loose click event on the button which a very weird and known issue to all the forums and stack overflow.I searched every where but could not find a solution.How can i perform onClick of a but Jan 22 11:43:02 but i dont want to drive over to the 10 phones i'm using for this.. and the guy who originally made the actual app didnt send me his debug signing key Jan 22 11:43:14 it has an autoupdate feature in it.. but it requires me to have his key which i dont Jan 22 11:43:17 so i'm cheating :) Jan 22 11:44:34 (and yes the devices are rooted and set to auto-allow su requests etc) Jan 22 11:48:32 StingRay_: hi , u remember me ? Jan 22 11:48:52 i must confess no Jan 22 11:49:04 but I often only commit things to memory that I need Jan 22 11:49:09 "limited space" Jan 22 11:49:11 :) Jan 22 11:49:18 StingRay_ we discussed about the list animation few days back Jan 22 11:49:34 oh your wanting kind of a view replacement thing Jan 22 11:49:38 on a list view Jan 22 11:49:42 hide unhide etc Jan 22 11:49:52 and you were for some reason using 2 lists to attempt it Jan 22 11:49:59 that you ? Jan 22 11:50:00 :) Jan 22 11:50:10 StingRay_ u got me right Jan 22 11:50:18 http://pastebin.com/8R3sbBT3 onPostExecute works only on the second time? any idea why? str is not filled at the first run but why? Jan 22 11:51:00 StingRay_ Actually , i was able to achieve that animation Jan 22 11:51:40 well done, your approach was not one that I would have done/or thought of Jan 22 11:52:02 StingRay_ : No but i have not used 2 list views Jan 22 11:52:09 oh thats better Jan 22 11:52:26 StingRay_ i redefined everything in a better way Jan 22 11:53:49 hello guys.. Jan 22 11:54:04 my android app crashes if left for hours.. How can i determine what is causing it? Jan 22 11:54:13 StingRay_ i have another problem ...could you help Jan 22 11:56:15 Parhs: looking at the stacktrace would be a good idea(tm) Jan 22 11:56:30 how to llok at it ? Jan 22 11:56:49 adb Jan 22 11:56:57 or in eclipse with ddms Jan 22 11:57:02 it should be connected during the crash ? Jan 22 11:57:21 because that might mean i should wait for hours t ohappen Jan 22 11:57:34 Parhs: mm if it didnt happen too long ago it might still be in the buffer Jan 22 11:57:51 Parhs: add something like acra to your app and get it to send you the stacktrace Jan 22 11:58:07 acra + bugsense == much lovelyness Jan 22 11:58:11 i should try acra maybe Jan 22 11:58:31 *loveliness apparently Jan 22 11:58:57 Parhs: if your app is in the market you can look for the stacktrace in the crash reports bit Jan 22 11:59:26 has there been any work done on custom community based android messaging system? Jan 22 11:59:45 like from CM, MIUI Jan 22 12:00:30 no it isnt.. it is bussiness app Jan 22 12:00:36 Android03 there are far more experienced ppl than I in this channel, I'm a 3D artist after-all, so just ask and some1 may answer : Jan 22 12:00:50 http://sphotos-b.ak.fbcdn.net/hphotos-ak-ash4/428000_527843290581401_433838539_n.png Jan 22 12:01:56 nice screenshot.. put acra in your app, you'll wish you did when you get "app crash, you fix now!" emails Jan 22 12:02:55 BugSense is a really good "backend" for ACRA. Gives you a fancy web 2.0 interface.. the alternative is to get emails, or insert rows into a google docs spreadsheet (which turns into a mess in no time) Jan 22 12:04:21 StingRay: Ya,..Can i directly ask this question to RomainGuy? Jan 22 12:04:50 Android03 it's better just to ask in the channel like I said Jan 22 12:05:17 StingRay_ : i have already posted Jan 22 12:05:50 in the channel ? didn't see Jan 22 12:05:52 sorry Jan 22 12:06:55 cantido thanks i will try it.. Jan 22 12:06:59 should i use bugsense too ? Jan 22 12:07:25 Parhs: thats just my suggestion. If you just want users to be able to email you crash reports ACRA on its own is enough Jan 22 12:08:52 this screen is from 2.3. This is my first app in android so having issues.. I had an LRU cache that seemed that it isnt empty if you close the app because it has old values.. How can this happen ? Jan 22 12:09:31 Parhs: you have it as static somewhere? Jan 22 12:09:55 Parhs: on android you can not close an app. your activity is pushed into backgrund and possibly recycled later on when you return to the app Jan 22 12:10:15 it isnt closed event you hit back back back ? Jan 22 12:10:32 even all activities are finished? Jan 22 12:10:50 Parhs: where are you creating an instance of LRUCache Jan 22 12:10:56 cantido i have a singleton instance for the cache Jan 22 12:11:16 Parhs: ok, so don't use singletons to start with, there is usually no need Jan 22 12:11:17 inside my web service class Jan 22 12:11:28 I guess that is all static? Jan 22 12:11:33 singleton too Jan 22 12:11:49 and you're expecting it to get recreating when the app starts again? Jan 22 12:11:52 so how can i share cache data with all the activities if i dont use singleton? Jan 22 12:12:24 I personally extend the Application class for stuff that needs to be shared Jan 22 12:12:39 there are many ways to do the same thing though Jan 22 12:12:44 can i put the cache there ? Jan 22 12:12:54 the first thing is to read up on the android activity cycle, though Jan 22 12:13:58 cantido: which other ways can we use to share data between activities? Jan 22 12:14:31 the Application reference actually says "There is normally no need to subclass Application" Jan 22 12:14:32 http://developer.android.com/reference/android/app/Application.html Jan 22 12:14:36 Edman: you can bundle stuff in your intent, that doesn't work for something like an LRUCache Jan 22 12:15:06 cantido: I would need something more general, for several activities, more like a global variable Jan 22 12:15:14 Edman: "Base class for those who need to maintain global application state." Jan 22 12:15:23 Edman: that sounds like it's job Jan 22 12:15:23 cantido: i used to extend application like you said Jan 22 12:16:13 How can I know from an activity X if in the activity Y I marked a checkbox? Jan 22 12:17:10 they advice against Jan 22 12:17:16 to extend it .. Jan 22 12:17:26 Edman: I *sometimes* use subclass a base class for activities and have a few statics in there.. sometimes Jan 22 12:17:30 You need to have passed the data via an intent vuln. Jan 22 12:18:07 or return it in the result to activity X Jan 22 12:19:17 cantido: hmm, so i imagine when they say "There is normally no need to subclass Application" they're talking about uses other than sharing this data globally... ok, thanks Jan 22 12:19:23 Parhs: they say to use singletons. In my mind singletons are a warning sign.. I've seen so many bad uses. But if you want to do it, go for it Jan 22 12:19:40 guys any idea why this is returning a nullpointer error, where type is a String with "TWIT"? if ("TWIT".equals(type)){ been hitting my head on this for the past couple hours Jan 22 12:20:32 Edman: they say to use singletons "as it's more modular", I don't agree, but use whatever you feel comfortable with. I guess Parhs problem is to do with using singletons Jan 22 12:20:55 catbakery: use the debugger and inspect it Jan 22 12:21:31 cantido: yeah, i don't feel good about using singletons either Jan 22 12:22:07 cantido: before reading that on the reference i thought subclassing application was the definitive solution Jan 22 12:22:19 catbakery: ty. Jan 22 12:22:22 what is a good way to place an image on a layout that has a background image with a particular square placeholder for the image Jan 22 12:22:25 so that the image fits in? Jan 22 12:22:31 Does anyone know if there is a google-chrome switch to treat the url entered as a single url, ignoring commas? I'm trying to get Eclipse to show the SDK docs in Google-Chrome Jan 22 12:22:54 Edman: seems logical to me. Many ways to skin the same cat, many ways to shoot yourself in the foot :) Jan 22 12:23:13 kitallis you would have to work out pixel offsets yourself Jan 22 12:23:30 kitallis bit of maths for ya there ;) Jan 22 12:23:54 StingRay_, I was expecting that, couldn't figure out any other way to do it Jan 22 12:24:05 kitallis to do what ? Jan 22 12:24:12 have a placeholder ? Jan 22 12:24:21 yeah Jan 22 12:24:26 use the same imageView that you will be loading into Jan 22 12:24:34 with a placeholder bitmap Jan 22 12:24:39 until it loads Jan 22 12:24:53 if the background is a 9patch it will set the padding won't it? Jan 22 12:25:23 so you could make the frame a patch, and then you getting padding to fit your image into Jan 22 12:25:58 StingRay_, that I understood, it would be something like figuring out pixel positions for the placeholder for the densities and then setting margins accordingly right? Jan 22 12:26:33 kitallis where is this image coming from, source ? Jan 22 12:26:37 http/file? Jan 22 12:26:55 the bakground layout image or the image on top? Jan 22 12:27:02 image on top Jan 22 12:27:13 the one that you need a placeholder for Jan 22 12:27:21 b4 it loads Jan 22 12:27:24 it's actually a youtube widget, but that doesn't matter Jan 22 12:27:34 it'll load after the layout background, if that's what you're asking Jan 22 12:27:50 kitallis: make the background of the imageview the image is going into a 9patch with the frame? Jan 22 12:28:01 ah no I was just thinking you can do a pre options instpection on a bitmap without loading it to get info Jan 22 12:28:09 but that wont work with your sit Jan 22 12:28:31 why doesnt dialog builder Jan 22 12:28:35 support Jan 22 12:28:37 strings Jan 22 12:28:41 or are am i doing it wrong Jan 22 12:28:42 I don't know what 9patch is Jan 22 12:28:44 * kitallis looks Jan 22 12:28:59 9patch wont work for you Jan 22 12:29:14 various densities X by various resource sizes Jan 22 12:29:19 yeah Jan 22 12:29:32 9patch has static defined margins Jan 22 12:29:39 I was about to do that myself, I was wondering if there was a simpler solution Jan 22 12:30:03 actually the layout background is just a fullscreen stretch, on which there is a placeholder box Jan 22 12:30:13 Does Dialog builder Jan 22 12:30:13 support strings Jan 22 12:30:13 as text Jan 22 12:30:19 so calculating position shouldn't be hard Jan 22 12:30:32 resizing, however might be Jan 22 12:30:34 I can't do it Jan 22 12:30:51 kitallis I have had a nightmare with screen space accross tablets and phones Jan 22 12:30:52 builder.setTitle("@string/string here"); Jan 22 12:31:22 builder.setTitle(context.getResouces.getString(r.string.myString); Jan 22 12:31:55 Excuse me, can someone point me to resources on accessing the gallery from a native app? Jan 22 12:32:05 or even easier: builder.setTitle(R.string.myString); Jan 22 12:32:07 *from NDK code Jan 22 12:32:23 Hey! Is there any sensible resource for learning about android animations? And I mean one with small examples and a video of what will be achieved. Man all these text tutorials about animation are like teaching French with sign language! Jan 22 12:32:45 lol marrrk Jan 22 12:32:46 I'm building in cocos2d-x and would like to allow the player to pick a photo from his camera gallery. Jan 22 12:32:49 Thanks Jan 22 12:32:57 marrrk I want to learn both french and sign language !!!! where are these tuts ? Jan 22 12:33:12 haha! Jan 22 12:33:13 There is more than one sign language. Jan 22 12:33:22 bsl or asl Jan 22 12:33:23 hey StingRay_ hows tings :> Jan 22 12:33:24 dont care Jan 22 12:33:33 For french you just go to France for three months and if you survive you will speak french. Jan 22 12:33:41 lol Jan 22 12:33:43 actually Jan 22 12:33:47 three months won't be enough, IMO Jan 22 12:33:51 9patch seems like a close contender Jan 22 12:33:52 didn't want to commit that much to it tbh Jan 22 12:33:53 progzer: there is a list of libraries you have access to on one of pages about the NDK IIRC, can't remember the camera being in there Jan 22 12:33:54 not sure though Jan 22 12:34:08 three months will be enough Jan 22 12:34:18 and now tell me about these animation tutorials! Jan 22 12:34:25 kitallis problem is the +y +x padding Jan 22 12:34:42 you would still have to measure the actual pixel dimens inside the act Jan 22 12:34:44 Thanks, cantido. Not so much the camera (hardware), but gallery access is probably more like filesystem access. Jan 22 12:34:49 i created a login activity using the template that comes with eclipse, it generates an XML layout, an activity class and references some strings on them, like "R.string.prompt_email"... question is: where are those strings stored? **they are not in res/values/strings.xml** Jan 22 12:35:46 https://cyanogenmod.googlecode.com/issues/attachment?aid=70150003000&name=device-2013-01-22-133148.png&token=Olvsz2ZpezOrqRv2lysKwuxDgo0%3A1358858036193&inline=1 how is this semi-fullscreen mode with faded top bar called and used? Jan 22 12:36:07 Nothing? Damn. I might have to make them. See you people gotta go Jan 22 12:36:07 cantido: I just debugged Jan 22 12:36:20 type is still the same string Jan 22 12:36:53 is the thing you're passing into equals null? Jan 22 12:39:48 how to show notification at specific date? Jan 22 12:41:45 first of all alarm must be set, which fires the code to make a notification? Jan 22 12:43:02 squ: http://stackoverflow.com/questions/7540724/how-to-start-notification-on-custom-datetime Jan 22 12:43:54 cantido: no it isnt :( Jan 22 12:44:33 after seeing what Expression Blend can do i cant help but cry looking at eclipse =/ Jan 22 12:44:41 poor animal Jan 22 12:46:17 thank you Jan 22 12:46:30 you're welcome Jan 22 12:46:31 timroes, take a look at my question: http://stackoverflow.com/questions/14457312/sherlock-action-item-style-for-button-in-custom-action-bar-layout Jan 22 12:47:13 squ: too much text, I am too lazy to read now, ask JakeWharton :P Jan 22 12:49:20 :) Jan 22 12:51:33 do I need to add something to AndroidManifest for IntentService Jan 22 12:51:52 the one from your link timroes Jan 22 12:52:17 hey, is there a way of computing crc32 checksum of a chunk of data in android? Jan 22 12:52:41 I mean, an API that does that Jan 22 12:52:46 squ: yeah you need to add the service to your manifest, like every service Jan 22 12:53:28 I think this is it: http://developer.android.com/reference/java/util/zip/CRC32.html Jan 22 12:53:41 sorry to bother Jan 22 12:54:10 hi! ..anyone around who are solid in the live wallpaper area of android dev? Jan 22 12:55:31 i've got two questions :) Jan 22 12:55:42 1 complicated one which i'll google a bit more before i ask here Jan 22 12:56:02 and 2nd, i cannot figure out how to setup a menu for settings of the live wallpaper Jan 22 12:56:14 and it's quite hard to google Jan 22 12:56:29 so someone, please help a couple of steps along the way Jan 22 12:57:19 I'm sure that's in the page about creating live wallpapers Jan 22 12:57:31 you have to give it a configuration activity or something Jan 22 12:58:00 yeah, that's how far i've gotten as well Jan 22 12:58:29 but almost everywhere i've looked they're referring to the cube wallpaper-something Jan 22 12:59:35 but ok, so i do need this activity-thing.. that's nice to know Jan 22 12:59:58 cause for the time being i've just been shooting around blindly Jan 22 13:00:32 everything else i've needed so far has been very well documented.. but i'm having trouble finding some good explanations on the menus Jan 22 13:01:40 is there a way to be invisible to certain IRC users? Jan 22 13:01:54 I've been getting bugged by the same person for weeks Jan 22 13:02:13 he doesn't even try to understand the things I've done for him Jan 22 13:02:28 but instead keeps on bugging me about them Jan 22 13:02:41 well, as far as i remember there's the /ignore function Jan 22 13:02:48 StingRay_, it's odd switching between densities, doesn't exactly change the placeholder dimensions by the 0.75 ratio Jan 22 13:02:55 lime: is that /ignore ? Jan 22 13:02:56 it will still tell you when he tries to contact you though Jan 22 13:03:03 yeah Jan 22 13:03:19 lime: ah okay, it's something, thanks Jan 22 13:03:23 hi, Can I read a png file directly with NDK? is there any read to use support library on NDK for png or jpeg images? Jan 22 13:03:31 kitallis well it changes pixels / ratio unit Jan 22 13:03:41 yeah, at least it'll let him know that you aren't interesting :D Jan 22 13:03:49 the 'talk to my hand' of irc ;) Jan 22 13:04:08 tcleval: there's libpng Jan 22 13:04:33 integrate it and you can use PNG textures, I've seen literature about it Jan 22 13:04:57 if you're going to compile something use stb_image Jan 22 13:05:02 libpng is nasty in comparison Jan 22 13:05:03 belgianguy: so, do I need to compile libpng ? or is it ready to use like stdio? Jan 22 13:05:23 well, I am used to libpng on Linux. Jan 22 13:05:44 cantido: could you explain a little more? Jan 22 13:05:50 I'm willing to switch preferences Jan 22 13:05:59 but I only saw libpng used in a book Jan 22 13:06:04 (wrt NDK) Jan 22 13:06:18 belgianguy: stb_image is a single source file, and the api is a lot cleaner than libpng Jan 22 13:06:26 and it works for png, jpg and some others iirc Jan 22 13:07:18 cantido: thx for the info. and is it std_image builtin android or it is a external library? Jan 22 13:07:35 http://nothings.org/stb_image.c Jan 22 13:07:38 that is it Jan 22 13:08:49 cantido: that was just what I was looking for, I would try litepng but it is png only. Big thx for you Jan 22 13:09:10 :) Jan 22 13:10:38 anyone a good suggestion for importing 3d models of a variety of formats? Jan 22 13:10:54 I've read about Assimp Jan 22 13:11:02 but have no idea about quality Jan 22 13:11:06 timroes, new Notification(R.drawable.icon, "reminder", when); deprecated :) Jan 22 13:11:29 belgianguy: libgdx has some model loaders.. can't remember if they are Java or "native" though Jan 22 13:11:42 squ: yeah use the notification builder Jan 22 13:11:46 http://developer.android.com/guide/topics/ui/notifiers/notifications.html Jan 22 13:14:48 thanks Jan 22 13:14:59 this is what I done before asking about alarm :) Jan 22 13:15:25 turned out notification fires at the same moment it is created Jan 22 13:15:29 cantido: android cameras usually save photos using png or jpeg? Jan 22 13:16:22 tcleval: I haven't used the camera in ages.. I can't remember what you get back from it Jan 22 13:16:31 * cantido brings up the docs Jan 22 13:17:44 AlarmManager alarmManager = (AlarmManager) this.getSystemService(this.ALARM_SERVICE); Jan 22 13:17:49 Warning: The static field Context.ALARM_SERVICE should be accessed in a static way Jan 22 13:18:06 yeah Jan 22 13:18:12 Context.ALARM_SERVICE Jan 22 13:18:19 cantido: I want to use ndk to process photos, specially the hd pictures. and stb_images does not support jpeg compression :-/ I dont know if that will be a problem Jan 22 13:18:28 tcleval: you can get raw or jpeg back Jan 22 13:18:29 you still haven't read the java book... don't access static field via an instance reference Jan 22 13:18:35 i have problem after android/eclipse update, got nullpointer exception, so i removed .metatada .. now i cant build android app http://stackoverflow.com/questions/7637144/android-requires-compiler-compliance-level-5-0-or-6-0-found-1-7-instead-plea Jan 22 13:18:46 tcleval: it seems you could get raw if the hardware supports it, otherwise you will get jpeg Jan 22 13:18:51 i think it's because it now uses system oracle jdk/jre 1.7 64 bit Jan 22 13:19:07 how to change back to 1.6 32 bit? :( Jan 22 13:19:16 miha you got a null pointer exception in your code ? and you nuked eclipse ? Jan 22 13:19:29 or null pointer in eclipse Jan 22 13:19:41 I use 64bit all fine btw Jan 22 13:20:07 and as of yesterday I think I'm on 1.7 :) Jan 22 13:20:37 StingRay_: well Jan 22 13:20:41 The only issue I have seen with jdk7 is classes compiled for 7 which the android tools will drop without telling you, leading to weird nodefclass errors when you try to run it Jan 22 13:20:50 StingRay_: source is still there (and on git server) Jan 22 13:20:51 :p Jan 22 13:21:20 fix project properties in the android menu fixes the jdk version etc I think Jan 22 13:22:12 cantido: thx, im back at nullpointer exception :) Jan 22 13:22:18 My app looks amazing in portrait (vertical). Whenever I turn aside my phone, some of the widgets (buttons) disappear. How can I easily add a scrollbar to fix it? Jan 22 13:22:36 vuln: ScrollView Jan 22 13:22:51 Thank you cantido ;) Jan 22 13:23:22 cantido: can you point me to the docs ? Jan 22 13:23:30 in my XML layout, do I need to create another layout just like the other plus the ScrollView? Jan 22 13:23:55 tcleval: http://developer.android.com/reference/android/hardware/Camera.html#takePicture(android.hardware.Camera.ShutterCallback, android.hardware.Camera.PictureCallback, android.hardware.Camera.PictureCallback) Jan 22 13:24:12 tcleval: that seems to be the one to look at, how that would work in the NDK I don't know Jan 22 13:24:41 Hello! I use zxing barcode scanner in may app. I use some classes from zxing 2.1 package from android project. Some of them i change. Do i need to save copyright information from this classes? i am about classes from android sample/ Jan 22 13:24:44 cantido: ? Jan 22 13:24:58 how to fix R cannot be resolved ? Jan 22 13:25:18 vuln: you put another child in the ScrollView, like a LinearLayout Jan 22 13:25:38 vuln: if it is bigger than the ScrollView the ScrollView will handle making it scroll for you Jan 22 13:26:19 I'm not sure if I understood it. What child should I put? Jan 22 13:27:07 vuln: your existing layout with buttons Jan 22 13:27:42 that's it? O__o Jan 22 13:27:52 vuln: that will make everything scroll Jan 22 13:27:54 alright, so i copied some code from http://www.codeproject.com/Articles/108390/How-To-Create-Android-Live-Wallpaper Jan 22 13:28:00 perhaps you want only part(center) of your layout scrollable Jan 22 13:28:00 ..and now i get this error --> error: Error: No resource found that matches the given name (at 'entryValues' with value '@array/livewallpaper_testpattern_prefix'). Jan 22 13:28:12 where would i set the entry values? Jan 22 13:28:23 how to fix R cannot be resolved ? :p Jan 22 13:28:37 lime: if you don't actually try and work it out for yourself you'll never learn anything Jan 22 13:28:38 miha when it fails to build due to error Jan 22 13:29:03 cantido, that's very kind of you :) Jan 22 13:29:20 StingRay_: what kind of error? Jan 22 13:29:26 i am aware i need to learn this stuff.. but i'm having a hard time finding documentation on this Jan 22 13:29:27 i only get unknown eclipse nullpointer :p Jan 22 13:29:52 miha manually screwed with it, id collision, xml parse issue due to syntax Jan 22 13:29:53 loads Jan 22 13:30:03 lime: http://developer.android.com/guide/topics/resources/index.html you're welcome Jan 22 13:30:22 miha: Eclipse can get confused.. sometimes cleaning a project will fix issues like that Jan 22 13:30:26 timroes, i'll check it out :) Jan 22 13:30:29 It crashes before opening=q Jan 22 13:30:33 cantido: i did that, no change Jan 22 13:30:44 ..even though it looks like you just sent me to a generic "getting started" page Jan 22 13:31:09 StingRay_: i got nullpointer from official eclipse update Jan 22 13:31:16 lime: yeah its the api guide on the resources framework Jan 22 13:31:16 don't blame everything on me Jan 22 13:31:48 and if you read it, and still don't get why you get that error, i am sure cantido will be happy to help you out again :) Jan 22 13:32:01 yeah, would it be too much to ask for a bit more specific link? :) Jan 22 13:32:21 http://developer.android.com/guide/topics/resources/providing-resources.html Jan 22 13:32:24 lime: not at all, ask here: http://google.com Jan 22 13:33:20 timroes gets a cookie for at least trying :) ..ankwatcher obviously didn't read all my lines :) Jan 22 13:33:29 i have googled like a madman :D Jan 22 13:33:40 you're holding it wrong Jan 22 13:34:12 lime: you see, if you copied just some code from some tutorial (that isn't the official android tutorial) and running into the very very basic resource stuff, but are not willing to read the documentation, on how to code, ppl here won't be very pleased to point you step by step, because in fact 80% of the questions here is stuff, ppl would have known if they just would have read the android developer documentation Jan 22 13:34:41 and if you don't fix yourself you'll back here asking the same question in no time Jan 22 13:34:59 hehe, yeah i get it :) Jan 22 13:35:18 (and from the 20% rest, 15% are basic java questions :D) Jan 22 13:35:21 i am well aware that i skipped a big part of the introduction when i jumped into this project Jan 22 13:35:39 but the actual java stuff is fairly understandable to me.. Jan 22 13:35:44 i can highloy recommend you to do these trainings: http://developer.android.com/training/index.html Jan 22 13:35:46 cantido: nice freudian slip Jan 22 13:35:55 it really covers up everythign from the very beginning Jan 22 13:35:56 the xml part hwoever is bugging me out Jan 22 13:36:23 and covers all toppics in tutorial form (in contrast to the API guides, which are guides to a specific API, but aren't tutorials on how to really build an app using it) Jan 22 13:36:28 Hello! I use zxing barcode scanner in may app. I use some classes from zxing 2.1 package from android project. Some of them i change. Do i need to save copyright information from this classes? i am about classes from android sample/ Jan 22 13:36:30 alright, i guess i'll have to try and understand what it is i'm doing :) Jan 22 13:36:33 how can multiple notifications coexist? Jan 22 13:37:00 i just thought i had gotten far enough to be able to ask more specific questions.. but i can clearly read on your language that i'm still in the noob phase Jan 22 13:37:24 Ankhwatcher: I've googled things and found a quick fix and never realised what was actually wrong until I fixed it myself.. Jan 22 13:37:29 lime: and please don't take it as offensive, if ppl here sometimes seem to be harsh, but if you get that 80% questions all day long, some time you get a bit annoyed, and it's (at least for me) nothing personal Jan 22 13:38:27 timroes, i fully understand :) ..even though i am being offended i'm starting to understand it from you guy's point of view Jan 22 13:38:54 but you gotta admit, it is a big mouthful to get into Jan 22 13:40:13 but to sum you're error up (since I rely on you anyway reading the docs :D) you are referencing to an resource (something within the res/values/.. folder. an specific array, that should have the id livewallpaper_testpattern_prefix, but the resource system can't find that array Jan 22 13:40:50 e.g. it doesn't exist, or you have it only in a specific (localized, ...) res folder, and its missing for you current device configuration Jan 22 13:40:54 that explains alot :) Jan 22 13:42:13 thanks for helping me out so far, now i'll try and understand the documentation Jan 22 13:42:20 try do the ":Getting started" trainigns: http://developer.android.com/training/index.html Jan 22 13:42:20 they cover very much of the basic stuff, e.g. resource system, lifecycle management, building UIs, intents, etc. and they are all doable within a day I would say Jan 22 13:43:11 is there any decent way to define an EditText in xml so that its width is (about) N letters Jan 22 13:43:26 cantido: yes, but you didn't tell lime to fix it himself, you told him to fix himself Jan 22 13:44:15 osxorgate: android:ems="n" Jan 22 13:44:19 Ankhwatcher: ah, I see. haha Jan 22 13:44:31 I didn't mean to ;) Jan 22 13:44:59 * cantido blames sexy dancing girl music videos on youtune Jan 22 13:45:08 s/youtune/youtube/ Jan 22 13:45:28 cantido, please share your findings with us, fellow android developers Jan 22 13:45:32 sexy girls is the source of all distractions Jan 22 13:45:40 timroes: great! thanks Jan 22 13:45:47 you're welcome Jan 22 13:46:05 btw, I was just typing a question to timroes (as always) but answered it myself when I got to typing the end of a question :) Jan 22 13:46:17 squ: we're making progress :) Jan 22 13:46:18 ok, restored from backup. it builds now with new sdk. but still get nullpointerexception Jan 22 13:46:28 squ: thats great. I always find the answer _after_ pressing return :> Jan 22 13:46:31 I use zxing barcode scanner in may app. I use some classes from zxing 2.1 package from android project. Some of them i change. Do i need to save copyright information from this classes? i am about classes from android sample? Jan 22 13:46:41 please Jan 22 13:46:42 xgear: you probably shood Jan 22 13:46:44 should Jan 22 13:46:49 xgear: it's all apache license isn't it? Jan 22 13:46:58 xgear: I think you must retain the license Jan 22 13:47:22 this project haven't files in root dir Jan 22 13:47:25 notice Jan 22 13:47:27 license Jan 22 13:47:52 but all files including layouts have comments with copyright Jan 22 13:47:53 StingRay_, ah whilst testing I was under the impression that Nexus One was mdpi Jan 22 13:48:04 xgear: All of the files have their license at the top, for generic stuff like a sample activity that shows how to use it you probably don't have to include the license Jan 22 13:48:04 xgear: afaik you need to keep a licence or notice file if it exists, if not, you need to keep the comment at the files beginning for apache license Jan 22 13:48:07 can I put extra to pendingIntent? Jan 22 13:48:10 StingRay_, but yeah, this manual calculation way seems to work Jan 22 13:48:26 StingRay_, I am however having to account for resolution as well for the margins Jan 22 13:48:44 xgear: if no license or notice exists in the root dir you don't need to create one, just leave the java comments Jan 22 13:49:08 ok Jan 22 13:49:12 thanks a lot Jan 22 13:51:14 xgear: but i am not a lawyer so this is just a private hint, no lawyal advice (disclaimer) Jan 22 13:51:31 ok ^) Jan 22 13:51:38 that why I prefere the very short licenses like MIT and BSD over apache :) you have less to read and understand Jan 22 13:51:50 :) Jan 22 13:52:12 timroes: Apache is essentially MIT + some lawyerspeak to protect ones ass against patents and similar Jan 22 13:52:25 p_l: yeah thats the point Jan 22 13:52:28 its lawyerspeak :) Jan 22 13:52:43 and if you really want to look something up, like in that case, how you need to do it, you have to understand all that Jan 22 13:52:50 even though it might be completely irrelevant Jan 22 13:53:08 I definatelly wouldn't say apache is a bad idea, just my personal preferences are using the very short ones ;) Jan 22 13:53:15 timroes: there was a good write down of what it means in practice on Chef's page, I think Jan 22 13:53:24 even then you need to get a lawyer that understands it to sign it off.. we used to have some people to look up GPL stuff to make sure it was safe to use at one place I worked Jan 22 13:53:33 and yes, I prefer short ones too, but then, I actually read the local Copyright Act Jan 22 13:53:56 p_l: do you perhaps have a link for me? Jan 22 13:54:53 Hi together, have a small question to you Jan 22 13:55:10 timroes: http://www.opscode.com/blog/2009/08/11/why-we-chose-the-apache-license/ Jan 22 13:55:12 e.g. for apache I am also always confused, do you need to put the notice file only in source code distribution of the software or also compiled software? Jan 22 13:55:17 If i compile the neweset kernel source code, would it run on my tablet device?Or what would happen? Jan 22 13:55:36 switchgott: the latest from kernel.org? Jan 22 13:55:36 Sorry for newbee quesion Jan 22 13:55:40 question Jan 22 13:55:45 yes Jan 22 13:55:54 that probably won't work Jan 22 13:56:07 could you explain why? Jan 22 13:56:15 switchgott, how do you get write permissions for device? Jan 22 13:56:46 switchgott: android kernels have bits of code to support the "board" (the phone, tablet whatever) and then a bunch of binary blobs for GPU drivers etc Jan 22 13:57:04 switchgott: you need all the necessary drivers, as well as "board config" which describes what stuff exists where and such Jan 22 13:57:10 switchgott: the android linux kernel is patched Jan 22 13:57:15 uha Jan 22 13:57:22 switchgott: it's non linux standard Jan 22 13:57:22 p_l: thanks for the link Jan 22 13:57:33 in theory, you can use git to merge the data from published device's kernel and updates from newer, but be wary of breaking stuff Jan 22 13:57:36 where can i get the neweset kernel source code for tegra3 ? Jan 22 13:57:36 switchgott: there are some boards that can run android that are supported in the main kernel source Jan 22 13:57:54 switchgott: you need kernel specific to your device, not just tegra3 Jan 22 13:58:03 switchgott: what are you trying to do? Jan 22 13:58:33 because `tegra3` says nothing about the memory layout, for example where the fuck are the I2C-connected input devices :) Jan 22 13:58:36 Id like to patch some file for my tegra3 acer a700 Jan 22 13:59:04 Yes this are my problem!Every time i get this: tegra-i2c tegra-i2c.1: no acknowledge from address 0x4c Jan 22 13:59:20 switchgott: you're trying to use i2c? Jan 22 14:00:00 hmm I would prefere and even simpler license then MIT. A do whatever you like, also remove any copyright notices, modify them or eat them Jan 22 14:00:10 Not trying, the acer A700 use it Jan 22 14:00:30 switchgott: you just want to get rid of the warning? Jan 22 14:00:39 switchgott: are you getting lag from i2c timeouts? Jan 22 14:00:45 Yes, because id like to know what it is? Jan 22 14:00:59 Its a part from amtel display controller Jan 22 14:01:15 This is the hole message Jan 22 14:01:16 tegra-i2c tegra-i2c.1: I2c error status 0x00000008 <4>[ 2969.288408] tegra-i2c tegra-i2c.1: no acknowledge from address 0x4c <4>[ 2969.288829] tegra-i2c tegra-i2c.1: Packet status 0x00010009 <4>[ 2969.301453] tegra-i2c tegra-i2c.1: I2c error status 0x00000008 <4>[ 2969.301694] tegra-i2c tegra-i2c.1: no acknowledge from address 0x4c <4>[ 2969.302110] tegra-i2c tegra-i2c.1: Packet status 0x00010009 Jan 22 14:01:21 switchgott: it probably means that something is asking the i2c controller to talk to something but the device that should be there isn't ACK'in Jan 22 14:01:36 Now on kernel.git i read about some fixes from ACK timeout Jan 22 14:01:54 switchgott: it could be probing to check if something exists Jan 22 14:01:54 Can i find out what it is? Jan 22 14:02:03 How? Jan 22 14:02:18 i.e. one version of the hardware has an i2c device and another doesn't .. so it tries to talk to the device to see if it's there Jan 22 14:02:33 My idea was, take the neweset i2c-tegra.c from kernel.git and compile it for my 3.1.10 kernel Jan 22 14:02:46 Ah ok Jan 22 14:02:54 that might work if you have the source for you phone Jan 22 14:02:59 How can i find out if my device has one? Jan 22 14:03:12 it might not work at all because of differences between 3.1 and 3.7 Jan 22 14:03:15 The kernel source for acer a700 is free!Its the kernel 3.1.10 Jan 22 14:03:29 But what is i2c? Jan 22 14:03:33 on a PC you can use i2cdetect to find stuff on an i2c bus, no idea what you could use on android Jan 22 14:03:51 switchgott: its a serial bus.. it's used for talking to things like little flash memories Jan 22 14:03:58 touch screen controllers etc Jan 22 14:04:03 power management Jan 22 14:04:09 sensors Jan 22 14:04:10 etc. Jan 22 14:04:14 etc etc Jan 22 14:04:40 you tablet might be looking for an certain i2c device to work out what screen it has or something Jan 22 14:04:42 because it fits in <5 pins (and that's for quite "full" variant, I think the minimum is 2 or 3 wires) Jan 22 14:04:49 Ok.But what the message extacrtly meen?Damage controller?Hardware error?Software?Compiled my new kernel without erros Jan 22 14:05:12 switchgott: it just means something tried to talk to something on the i2c bus and it never replied Jan 22 14:05:12 switchgott: incorrect board config and/or drivers Jan 22 14:05:15 So i can ignore this errir? Jan 22 14:05:18 yes Jan 22 14:05:34 So its a acer config problem :-( Jan 22 14:05:48 if the i2c bus isn't wired up proper you will get long timeouts.. which would be annoying but thats probably not the case Jan 22 14:05:49 Can you find out what it cause?I meen fix it? Jan 22 14:06:11 Could it cause performance problems?Lags etc? Jan 22 14:06:12 switchgott: or it's being used to work out what hardware is there, sometimes there is a reason to see if something doesn't exist Jan 22 14:06:14 Hi every body Jan 22 14:06:27 :-)) Jan 22 14:06:36 is it normal that when I do a Jan 22 14:06:36 Fragment.instantiate(_ctx, fragmentClassname) Jan 22 14:06:40 if I set: min required api to 9 (Android 2.3), Target SDK to 9 and Compile with to 17, will it work in 2.3 or do I need to set the Compile With to 9 too? Jan 22 14:06:45 he doesn't call the onCreate of the Fragment ? Jan 22 14:06:57 it's on a rotation case Jan 22 14:07:04 rohdef: it will work with 9 as long as you don't use anything from 10+ Jan 22 14:07:16 rohdef: and lint will warn you if you do that Jan 22 14:07:33 first boot of device, all went right, but after a while the error comes. Jan 22 14:07:46 ok that should be good enough, damn all those vendors not upgrading >< Jan 22 14:08:58 Ahh. Made a test!My tablets display is still off a while.Now i make it on, an!Uhh Jan 22 14:08:59 tegra_pwm tegra_pwm.0: pwm_disable called on disabled PWM <4>[ 7088.026268] tegra_pwm tegra_pwm.0: pwm_disable called on disabled PWM <4>[ 7088.026703] mXT1386E: mxt_late_resume <4>[ 7088.027081] tegra-i2c tegra-i2c.1: I2c error status 0x00000008 <4>[ 7088.027317] tegra-i2c tegra-i2c.1: no acknowledge from address 0x4c <4>[ 7088.027727] tegra-i2c tegra-i2c.1: Packet status 0x00010009 <4>[ 7088.042712] tegra-i2c tegra-i2c.1: I2 Jan 22 14:09:15 mXT1386E i2c write 3 time Jan 22 14:09:20 mXT1386E: ATMEL_Resume OK! Jan 22 14:09:29 Sorry for da** copy and past Jan 22 14:09:39 switchgott: if its a big issue you'll have to speak to the maker Jan 22 14:11:03 has anyone ever heard of a naming convention for View ids? Jan 22 14:11:14 switchgott: could be a hardware problem, too Jan 22 14:11:39 switchgott: could be some wifi issue - i have no idea Jan 22 14:12:39 you could look up what sort of devices that i2c address is used for and what devices are in your tablet Jan 22 14:12:56 Ok.Mhh.Poor.But the tab is working! Jan 22 14:12:58 s Jan 22 14:13:14 * cantido thinks it's safe to ignore Jan 22 14:13:18 But with the i2c driver i cant damage some think? Jan 22 14:13:25 switchgott: no Jan 22 14:13:42 Puh!So i can compile the kernel with new files and test it Jan 22 14:13:50 Maybe this i the solution for it Jan 22 14:13:56 switchgott: you can't damage anything Jan 22 14:14:12 With kernel mod? Jan 22 14:14:24 switchgott: if it does break that is a design issue and covered by warranty in most sensible countries Jan 22 14:14:25 I cant believe Jan 22 14:14:43 switchgott: you can't break anything from an i2c device not ACK'ing Jan 22 14:14:44 germany?? Jan 22 14:15:11 Small question again, could i case a performance problem? Jan 22 14:15:12 switchgott: I suspect that would be covered by some EU directive.. i.e. broken by design stuff is the makers problem Jan 22 14:15:38 anyone know where i can find a list of devices that ship with Android > 3.0 ? Jan 22 14:15:54 Ahh ok!Now i understand!I meen if i compile a new kernel and mod my tab, i can damage somethink!This is not a warrenty! Jan 22 14:16:13 switchgott: you can make it a brick if you mess with the kernel Jan 22 14:16:34 it's likely it has a signed bootloader to stop you replacing the kernel anyhow Jan 22 14:17:04 What this meen? if you mess with the kernel Jan 22 14:17:21 switchgott: if you replace the kernel it is using now Jan 22 14:17:49 Ah ok!But the kernel are from acer source code.Only the i2c-tegra file is mod Jan 22 14:18:15 They have to release the kernel source by law, they don't have to make it possible to use it ;) Jan 22 14:19:17 in new AlertDialog.Builder(MainActivity.this) do I have to use .show() or create().show() Jan 22 14:19:36 squ: look at the docs Jan 22 14:20:21 yes thats right!And i meen, the i2c file isnt a file where i can damage the chipwith! Jan 22 14:21:16 ? Jan 22 14:23:36 is it possible to kill by IntentService, if it is running at all? I wish to stop updates on certain moments Jan 22 14:24:06 s/by/my Jan 22 14:26:07 stopservice Jan 22 14:29:55 hm could it be so simple Jan 22 14:32:15 Thanks for realy good help!! Jan 22 14:38:07 I'm looking to debug/profile android's init profile, but I'm not seeing the prints made there in logcat or in the kernel print buffer Jan 22 14:38:19 does anyone know how to see those? Jan 22 14:42:40 last question:Could this be the solution? Jan 22 14:42:44 1.867921] mXT1386E: reenter_count: 0 Jan 22 14:42:47 1.868836] mXT1386E: Config has errors Jan 22 14:42:50 1.868951] mXT1386E: The status is 0x90 Jan 22 14:42:53 1.869137] mXT1386E: reenter_count: 1 Jan 22 14:42:57 1.870038] mXT1386E: Config status is ready Jan 22 14:44:45 Everytime i pull on the display, the error come.Ok!Give up :-( Jan 22 14:55:45 trying to stop my intentservice, I see onDestroy() getting called during onHandleIntent, but afterwards the rest of the service keeps executing o_O Jan 22 15:00:53 osxorgate how was the service started ? Jan 22 15:01:18 StingRay_: basically the same as this guy: http://stackoverflow.com/questions/12927307/intentservice-onhandleintent-still-running-after-ondestroy-fired Jan 22 15:01:21 gonna try his solution Jan 22 15:16:38 osxorgate: so the service is stopped from android's point of view, but the background thread is still executing.. there's nothing in android that takes care of background threads for you, but when the service has been stopped the process might get killed at any time if memory is running low Jan 22 15:17:44 appel1: that makes sense. the method described in that SO post works Jan 22 15:17:48 (for me) Jan 22 15:19:56 ? Jan 22 15:20:11 Anybody understand anything about fragment ? Jan 22 15:20:25 I;m sure somebody does Jan 22 15:20:27 but I dont Jan 22 15:20:36 I have a fragment that after rotation dont call onCreateView Jan 22 15:20:52 and any of the onHandler Jan 22 15:21:38 its like an undead fragment 0_0 Jan 22 15:24:18 Help please again, i guess i found th soultion!Is it possible to control the mXT1386E chip from android? Jan 22 15:30:27 Y switchgoot Jan 22 15:30:30 Titi: the funny livecycle of fragments is why i decided against using them ;) Jan 22 15:30:53 ? Jan 22 15:43:23 how can I style an ExpandableListView when using a custom adapter? Jan 22 15:44:50 anyone experienced with eclipse on v.10.5.8??? Jan 22 15:48:21 Is there a way to activate my ScrollView only when the phone is turned aside in landscape? Jan 22 15:49:33 vuln: you make two different layouts? one with scrollview and one without Jan 22 15:49:40 and place it into layout-land or layout-port Jan 22 15:50:01 I tried it before and the app didnt even launch, but I changed a few things. Maybe it'll work now Jan 22 15:50:04 (and ofc don't copy and paste everything over, but use include to include the layout into the scrollview) Jan 22 15:50:07 I'll try it out, ty Jan 22 15:50:51 why would getActivity() inside a fragment return null ? Jan 22 15:50:52 layout-land should be in res/ right? Jan 22 15:51:00 vuln: yea Jan 22 15:51:49 timroes: how do I "include" in Java? Jan 22 15:52:11 Jan 22 15:52:12 ? Jan 22 15:52:48 ? Jan 22 15:53:53 sorry, found it Jan 22 15:53:53 XD Jan 22 15:59:23 timroes: not working :( Jan 22 15:59:29 When I turn aside my phone, the screen is blank Jan 22 16:00:19 My main layout is: activity_main.xml. I created a layout-land dir inside /res with a file named activity_main.xml and inside did with the attributes and inside android:layout="@layout/activity_main" Jan 22 16:00:27 But when I turn aside the phone it gets blank Jan 22 16:07:17 vuln paste your xml layout from layout-land into pastebin Jan 22 16:08:19 StingRay_: should both have the same name? Jan 22 16:08:28 yes Jan 22 16:08:31 k Jan 22 16:09:56 my layout/ layout Jan 22 16:09:57 http://pastebin.com/fbzb0B8r Jan 22 16:10:16 my layout-land/ layout Jan 22 16:10:17 http://pastebin.com/JjkvJPf9 Jan 22 16:10:46 (This way, when I turn it aside it crashes) Jan 22 16:10:54 http://stackoverflow.com/questions/14462730/error-in-final-launch-sequence-failed-to-execute-mi-command-gdb-set-target-asyn Jan 22 16:11:00 crashed with that errror vuln? Jan 22 16:11:22 vuln well you have a cycle loop there Jan 22 16:11:40 your activity_main is attempting to include your ...... activity_main Jan 22 16:11:41 :) Jan 22 16:11:52 yeah, seeing the LogCat it shows a loop Jan 22 16:11:57 StingRay_: what am I doing wrong though? Jan 22 16:12:12 you asking layout A, to include layout A Jan 22 16:12:34 itself to include iteself that then includes itself and then.......well Jan 22 16:12:38 No. I'm asking layout A to include layout layout/A Jan 22 16:12:44 No. I'm asking layout layout-land/A to include layout layout/A Jan 22 16:12:49 no your not Jan 22 16:12:58 the resource pool has changed Jan 22 16:12:58 So, how can I do the right thing? Jan 22 16:13:07 so you just have layout Jan 22 16:13:15 that in landscape is layout-land Jan 22 16:13:21 and in port is layout Jan 22 16:13:58 How can I fix it then? Jan 22 16:14:08 use 3 layouts Jan 22 16:14:15 exclude the layout in the layout/my_internal_layout.xml Jan 22 16:14:18 and include that from both Jan 22 16:14:18 1 of which is all your stuff Jan 22 16:14:28 ya, what he said ^ Jan 22 16:14:46 didnt get it Jan 22 16:14:46 :o Jan 22 16:15:17 layout a = portrait, b = landscape, c = content Jan 22 16:15:21 a includes c Jan 22 16:15:25 b includes c Jan 22 16:15:32 oh Jan 22 16:15:38 a has a scrollView including c Jan 22 16:15:44 b just includes it Jan 22 16:16:03 a and b are same name in diff locations "land" Jan 22 16:16:16 c is just in "layout" Jan 22 16:16:29 called includeMeInBothTheLayouts.xml :) Jan 22 16:17:30 worked just fine Jan 22 16:17:34 omg, tyank you so much ;D Jan 22 16:17:59 There is one LinearLayout in activity_main and another in content.xml Jan 22 16:18:11 should I put the content in content.xml between ? Jan 22 16:18:23 I think that's the use of merge, according to what I've read. Avoid redundancy Jan 22 16:21:42 StingRay_, timroes: Another question, now that you guys saw the .xml files. Jan 22 16:22:15 In the landscape mode (when the scrollbar is on) it's able to go waaaaaaaaay below my widgets. It's like there was a page where I filled 25% but it shows everyting. I did layout_height="wrap_content". What is going wrong in here? :o Jan 22 16:29:45 I haven't been able to get eclipse to work on OS X 10.5.8 though according to google my OS is supported Jan 22 16:29:45 i just did a fresh reinstall of the IDE Jan 22 16:29:45 i updated the SDK using the manager and get "Stopping ADB server failed (code 133) Jan 22 16:29:46 and "Starting ADB server failed (code 133)" Jan 22 16:29:46 i'm not sure if this is related to the more global problem of not being able to run a test program Jan 22 16:30:16 if someone has a few minutes, I could really use some help Jan 22 16:31:20 also, "R cannot be resolved to a Jan 22 16:31:21 variable" Jan 22 16:33:01 user1 you tried firing adb from terminal and also watching the console output in "console app" and in terminal ? Jan 22 16:33:18 thanks, let me try Jan 22 16:33:47 StingRay_: I'm sorry for bothering Jan 22 16:33:54 Do you know an answer for my question? Jan 22 16:35:20 Hi, anyone here who has good knowledge how the components and multiple process in an application are connected? My first question would be if there are multiple UI threads in an application using more than one process. Jan 22 16:35:24 StingRay_ from terminal: dyld: unknown required load command 0x80000022 Jan 22 16:35:24 Trace/BPT trap Jan 22 16:35:24 whiteport:platform- Jan 22 16:35:32 I've seen this before Jan 22 16:36:51 StingRay_ the console has the same error Jan 22 16:38:38 Another question would be how one would share one single global state among all processes inside an application Jan 22 16:39:20 Let's say an application is either in state A or in state B, and all processes must know the current state Jan 22 16:39:42 or more specifically, all threads in all processes must know the current state Jan 22 16:48:03 anyone know why adb won't work on OS X 10.5.8???? Jan 22 16:48:16 anyone know what the hell adb be??? Jan 22 16:48:18 :) Jan 22 16:48:44 android debug(ging) bridge Jan 22 16:49:01 timroes: thanks!!! Jan 22 16:49:25 skip the ging, it's just Android Debug Bridge :) Jan 22 16:49:45 timroes: how can I set the maximum size a scrollview will allow the scrollbar to show? Jan 22 16:49:50 it's showing like twice the size of my real app Jan 22 16:50:12 I am not a Mac user/fanboy/liker/accepter, but might you run a 64 bit system, and are there missing some 32 bit stuff (e.g. java) what could cause adb not to come up? Jan 22 16:51:01 vuln: sounds wrong it should just stick to the content if you gave it wrap_content (what you did in your pastebin) Jan 22 16:51:12 could you paste your separate file, that you include? Jan 22 16:51:28 timroes: I don't know what's going on Jan 22 16:51:34 vuln I'm a multi OS user, inc. mac... and the error looks like a dynamic link cache error where it cant find a required resource .... but I'm guessing Jan 22 16:51:35 i'd guess either your SDR isn't where eclipse expects it to be (eclipse settings) Jan 22 16:51:44 or something is preventing the adb binary from working Jan 22 16:51:54 and yes I develop on osx, but 10.5 is a bit...ancient Jan 22 16:51:59 :( Jan 22 16:52:02 vuln: and might be a very stupid qustion too, but why don't you just leave the scrollview there, no matter if you are in port or land mode? if the inner view doesn't extend the screen size, its no effect, and if it does (on port mode) you anyway would want the user to scroll i guess? Jan 22 16:52:02 on linux, typically it means it's missing the 32bit libs. on OSX... not sure, sorry Jan 22 16:52:06 user1: Have you got 'brew' installed? I think I just did 'brew install android-sdk' Jan 22 16:52:16 Maybe it's the background image which is too large? Jan 22 16:52:48 JuiceSSH: i think i've got it Jan 22 16:52:53 http://mxcl.github.com/homebrew/ Jan 22 16:53:12 JuiceSSH: I got it Jan 22 16:53:30 it was the background LOL Jan 22 16:53:41 I think dragorn might be on to something Jan 22 16:53:58 i read something somewhere about adb binary Jan 22 16:54:10 pleed> as I understand it if you have multiple processes in a single app, each process will have its own main (ui) thread Jan 22 16:54:36 pleed> as for state crossing process/thread boundaries, normal IPC would apply, I guess Jan 22 16:54:55 StringRay:_ I hear you I'm por Jan 22 16:55:10 user1: oh on linux I know I'm right; I don't think OSX organizes system libs the same way tho so I don't know how to debug that. Jan 22 16:55:17 Step 1, try running adb in a terminal Jan 22 16:55:24 see what happens, maybe you'll get a more meaningful error Jan 22 16:55:29 dragorn: ok Jan 22 16:55:46 dyld: unknown required load command 0x80000022 Jan 22 16:55:46 Trace/BPT trap Jan 22 16:56:25 10.5.8 is the minimum OSX version Jan 22 16:56:32 so if you're on 10.5.5, bad times Jan 22 16:56:40 that's what I got 10.5.8 Jan 22 16:56:49 i'll double check Jan 22 16:56:53 timroes: it was the background Jan 22 16:56:53 hm. well, plug that error into google, you get a few results Jan 22 16:56:57 can I cut it programmatically? Jan 22 16:57:05 like only use enough part of the image to wrap the content? Jan 22 16:57:32 user1: one of the android dev leads is saying they're likely to just drop 10.5, in response to this error. https://groups.google.com/forum/#!topic/adt-dev/QxradSzgSYk Jan 22 16:57:37 Chainfire: thanks Jan 22 16:58:05 dragorn: I think I searched before, there was something Jan 22 16:58:11 yep Jan 22 16:58:30 Pleed, There's one and only one UI thread per application. Each process is running under it's own VM instance, so you get the picture. Starting a process doesn't create another UI thread on the VM. IPC is done as with any other linux, I believe. If I'm wrong here, someone please correct me. Jan 22 16:58:45 Eh, I just realized he left Jan 22 16:58:52 hello im getting a null "TimerTask myClass = new Reporting(getApplicationContext());" in the getApplicationContext() why one line before i do Class xpto = new Class(getApplicationcontext()) Jan 22 16:59:02 pleed> http://developer.android.com/guide/components/processes-and-threads.html Jan 22 16:59:13 some dude on that forum said something about downloading this junx: http://forum.xda-developers.com/showthread.php?t=1387527 Jan 22 16:59:26 i'm scerd Jan 22 16:59:32 im getting a null "TimerTask myClass = new Reporting(getApplicationContext());" in the getApplicationContext() why?since one line before i do Class xpto = new Class(getApplicationcontext()) Jan 22 17:00:39 dragorn: apparently this is the fix Jan 22 17:00:46 http://hotfile.com/dl/137291613/71fa453/platform-tools-osx.zip.html Jan 22 17:01:45 vuln: you need to create a bitmap xml drawable and tell it that you want to do that Jan 22 17:02:00 vuln: a bit of that http://stackoverflow.com/questions/5470881/problem-with-a-layout-background-image Jan 22 17:02:28 Thank you timroes Jan 22 17:02:30 but you want to set gravity to clip_horizontal|clip_vertical Jan 22 17:02:43 or if you prefere scaling fill Jan 22 17:03:13 http://developer.android.com/guide/topics/resources/drawable-resource.html#bitmap-element look at the parameters Jan 22 17:04:23 I'm having a problem getting my custom Sherlock theme to compile with the following error : error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Sherlock'. Jan 22 17:05:00 I ran into this problem before but can't for the life of me recall what I did to address this, I have already did a full re-compile of the project but no luck Jan 22 17:07:45 how do i pass context to a timertask? Jan 22 17:08:09 I did it in a simpler way timroes. Cropped the bg imags according to these values http://stackoverflow.com/questions/3694830/android-activity-image-background-size Jan 22 17:08:12 It worked. Thank you anyways Jan 22 17:08:24 vuln: that's one of the worst ways you can do Jan 22 17:08:29 think thing with adb might be ok now Jan 22 17:08:39 because if you read it, it says that these are recommended values Jan 22 17:08:43 not the consol says: dyld: unknown required load command 0x80000022 Jan 22 17:08:54 timroes: why? Jan 22 17:09:00 a device can have any other size you can imagine Jan 22 17:09:10 and aspect Jan 22 17:09:38 so be sure to have a lot of ppl having a border around your backgruond image, or beeing able to scroll past your activity (like it was beforehand) Jan 22 17:10:05 get it. Jan 22 17:10:07 You're right. Jan 22 17:10:10 working with absolute values is NEVER a good idea. Thats not an android principle, but also works for nearly every other design I have seen yet Jan 22 17:11:47 timroes, but on the iphone, you NEVER have to worry about scree resolution Jan 22 17:11:49 :P Jan 22 17:12:29 How can i get the application context inside a timer task? I dont want to change ui Jan 22 17:12:40 pass it in Jan 22 17:13:35 canadiancow: it get error cause getApplicationContext is null Jan 22 17:14:09 Class xpto = new Class(getApplicationcontext()) Jan 22 17:14:10 canadiancow: TimerTask reportClass = new Reporting(getApplicationContext()); Jan 22 17:14:14 im not sure this does what you think it does Jan 22 17:14:27 thanks for the help yall Jan 22 17:14:36 canadiancow: my example giver error since getApplicationContext is null Jan 22 17:14:52 that doesnt even make sense Jan 22 17:14:53 canadiancow: yeah and if you hit yourself to death with an iphone you won't have any problems at all anymore :) Jan 22 17:14:54 a method can't be null Jan 22 17:15:08 i might have to wait until a update this sucka Jan 22 17:15:19 timroes, i was joking at the fact that with 6 iphones, there have been 3 different screen resolutions :P Jan 22 17:15:26 going to split some wood now Jan 22 17:15:35 still way less then for android, so you still WOULD be able to make it absolute Jan 22 17:15:44 canadiancow: it cannot be null but it is Jan 22 17:15:48 and also there I would consider it reptty bad style to do so Jan 22 17:16:03 no BrixSat Jan 22 17:16:05 it isn't Jan 22 17:16:09 but I would be interested, how many ppl do absolute layouts for iphone :) Jan 22 17:16:23 timroes, prior to the iphone 5, almost everyone Jan 22 17:16:30 canadiancow: i guess you know what he means... BrixSat the return value is null, and not the method Jan 22 17:16:33 since hte iphone 5, less than almost everyone Jan 22 17:16:40 how can getApplicationContext() return null Jan 22 17:16:42 What has changed with the iphone 5? Jan 22 17:16:47 soluble, it's longer Jan 22 17:16:48 thats what I would wonder about too :D Jan 22 17:16:59 if you can call it then there is a context to be had! Jan 22 17:17:18 Ah, yes. But would it be simple to scale for backward compat? Jan 22 17:17:28 wouldn't it* Jan 22 17:18:12 BrixSat: might you have extended Application and call that line anywhere from within onCreate? Jan 22 17:18:22 na actually the context should be there Jan 22 17:18:26 but inside the constructor? Jan 22 17:18:32 timroes: http://paste.ubuntu.com/1560152/ that is my code Jan 22 17:19:05 Does android kill processes on low-memory, threads or both? Jan 22 17:19:40 To the best of my knowledge it would only make sense to kill processes but there are a lot of people talking about "os kills your thread" Jan 22 17:19:47 BrixSat: there is missing a lot :) where is context defined and gets its value, and where is the reporting class? Jan 22 17:20:20 timroes: sorry you are right the " Context context = getApplicationContext();" is right before the try Jan 22 17:20:36 in what class is that in what method? Jan 22 17:20:57 timroes: this is in the activity Jan 22 17:21:06 i gues i can say main Jan 22 17:21:18 whats the method? Jan 22 17:21:25 when is it done? Jan 22 17:21:43 protected void onCreate(Bundle savedInstanceState) Jan 22 17:21:57 okay there an applicationcontext definately should be available Jan 22 17:22:13 wicked :D have you debuged it already? Jan 22 17:22:19 im doing debug Jan 22 17:22:30 and end up with null in the line i pointed in the paste Jan 22 17:22:43 null is something i cant know why :S Jan 22 17:22:48 so context is null after you called Context context = getApplicationContext();? Jan 22 17:22:56 no Jan 22 17:23:04 okay then its not the context that is null :) Jan 22 17:23:11 You're not calling onCreate() manually are you from anywhere (testing framework?) Jan 22 17:23:46 no no Jan 22 17:24:13 so if you step into your constructor, where exactly does the line occur, or just print a full stack trace Jan 22 17:24:43 e.printStackTrace(); Jan 22 17:24:57 I would like to see the full stack trace Jan 22 17:25:04 how do i print a full stack trace Jan 22 17:25:12 3 lines above :) Jan 22 17:25:26 ok Jan 22 17:27:59 I have an edittext, and I ask people to type in an integer. What can I do if they type in 1,000, 1,000.00, etc. instead of 1000? Is there a way to simply remove undesired characters? Jan 22 17:28:41 hip2p set the editText to have an input Type Jan 22 17:28:45 that dont allow that Jan 22 17:28:47 :) Jan 22 17:29:09 http://stackoverflow.com/questions/2712761/edittext-inputtype-values-xml Jan 22 17:29:29 StingRay_ ah yes Jan 22 17:30:09 timroes: http://paste.ubuntu.com/1560189/ Jan 22 17:31:11 wow okay, i guess that wasn't the method i meant :D Jan 22 17:31:35 =D Jan 22 17:32:58 okay could you just remove the try catch around your code, let your app crash and show the error in logcat, that one is way too large :D Jan 22 17:33:35 okay perhaps we also jsut didn't understand each other Jan 22 17:33:48 within the catch block you should write the line e.printStackTrace(); Jan 22 17:33:55 ok one sec :D Jan 22 17:34:02 http://paste.ubuntu.com/1560152/ so after line 12 Jan 22 17:34:23 ok one sec :) Jan 22 17:35:46 later Jan 22 17:36:12 e.printStackTrace(); is type void :/ Jan 22 17:36:58 BrixSat: don't output the result it doesnt return anything Jan 22 17:37:04 I have a server that I am using a webview to connect to. Once I connect to that server once a pdf file is found I call a downloadFile in an AsynTask class. My problem is that my sharing of cookies doesn't seem to be working. Everything I have found on the web has led me to beleive sharing from webview to httpurlconnection is just a 2-4 lines of code. But, all the examples I have found seem to be failing me. Could someo Jan 22 17:37:06 just write the line, it prints everything to System.err Jan 22 17:37:11 n the right direction http://pastebin.com/r0nCqKMT. Jan 22 17:37:36 timroes: so how will i do it? i have put the line there in the place you said but how.... Jan 22 17:37:45 after line 12 Jan 22 17:37:52 were will i se the result? Jan 22 17:38:03 in logcat Jan 22 17:40:03 timroes: http://paste.ubuntu.com/1560221/ Jan 22 17:40:21 I know it is the cookies because the webview is connecting to a secure server and when I attempt to download the file it redirects me to the login page. Which is why I set the file to be written to .html I can't seem to get what I am missing. the url I am getting cookies for should be the url based upon the page the webview is on. The url I go to should be just the same. Jan 22 17:40:30 friggin 10 hrs on this, my head hurts. Jan 22 17:40:32 ah so you see, null pointer is in COnfig.java line 230 Jan 22 17:40:37 inside the get method Jan 22 17:40:42 what could be null there? Jan 22 17:41:46 a value string :/ Jan 22 17:42:01 but why would it stop there? Jan 22 17:42:19 because something is null and throwing an nullpointer exception? Jan 22 17:42:31 e.g. because you are trying to to null.doSomethingOnNull() Jan 22 17:44:20 you a genius timroes :d Jan 22 17:44:25 not really Jan 22 17:44:27 i missed a parameter Jan 22 17:44:38 and i would never gess it was in config ;) Jan 22 17:45:42 thanks man :d Jan 22 17:45:59 You should learn to read stacktraces Jan 22 18:00:03 I released my app today. it doesnt install on HTC phones Jan 22 18:00:17 at all .. give a UnsupportedOperationException error Jan 22 18:00:40 wondering why only on HTC phones.. any one can help me out http://stackoverflow.com/questions/14454024/android-app-crashes-on-htc-and-sony-ericsson-phone Jan 22 18:03:00 any one has a HTC phone here and can send me a crash report ? Jan 22 18:03:05 from the logcat ? Jan 22 18:03:59 harshamv: I've got a HTC with cyanogenmod, which probably won't fail Jan 22 18:07:59 can anybody tell me why Google engineers fuck with the build.xml in every SDK release? Jan 22 18:08:24 every time I update my SDK, I have to rename some properties or variables or whatever Jan 22 18:09:06 shrug, I haven't had that issue Jan 22 18:09:24 using eclipse? Jan 22 18:09:40 eclipse doesn't use build.xml, does it? Jan 22 18:10:00 nope Jan 22 18:10:34 so obviously I'm using ant Jan 22 18:11:08 Ge0rG: yeah :( Jan 22 18:11:10 and you never had any issues? do you have custom build code in your build.xml, or only the auto-generated one? Jan 22 18:11:20 just the auto-generated one Jan 22 18:12:57 there was one time where it suddenly spontaneously started throwing nullpointerexceptions in ant itself and I hadn't changed anything, and I couldn't figure it out so I just upgraded the sdk and that problem went away Jan 22 18:13:42 How difficult would it be go port the snmp utility in linux (allows you to do snmpget's walks etc) to android? Jan 22 18:14:05 this time around, r21 seems to have stopped generation of library projects' R.class Jan 22 18:14:58 did a path to the toolset get borked? #dumbguesses Jan 22 18:15:40 it looks like it is now imitting R.class from classes.jar Jan 22 18:15:43 *omitting Jan 22 18:16:25 which breaks proguard Jan 22 18:17:59 Pretty sure that happened around r14 Jan 22 18:18:15 When they also became non-final Jan 22 18:18:21 (in library projects) Jan 22 18:20:20 from http://tools.android.com/download/adt-21-preview - New in ADT 21 Preview 5: The R classes for library projects are generated with only the IDs needed by the libraries, reducing the risk of hitting dex files limits for fields and methods. Jan 22 18:20:35 Is it just me, or is that Android emulator getting slower and slower with each "upgrade"? Jan 22 18:20:51 i been waiting 5 minutes for it to "boot" Jan 22 18:20:59 only 5? go get a cup of coffee Jan 22 18:21:04 [proguard] Warning: de.duenndns.ssl.MemorizingActivity: can't find referenced class de.duenndns.ssl.R$string Jan 22 18:21:10 used to take about 2 minutes Jan 22 18:21:22 KNERD: they have "resume from snapshot" now, once you get it booted Jan 22 18:21:31 Yes, previously it made a R for your main project and every library project, all containing the same values Jan 22 18:21:31 don't shut down, just close the window Jan 22 18:21:52 though emulating anything >2.x is unusably slow imo Jan 22 18:21:54 on this box, this is the first time it's been started, but thanks for that tip Jan 22 18:22:03 Has nothing to do with whether R is included in the jar Jan 22 18:22:18 It shouldn't be included in the jar, since the ID's aren't known until the main project is compiled Jan 22 18:22:22 o/ I'm trying to get a custom dialog to work. I've got my onCreateDialog method in my activity, I've got the custom dialog xml sorted and I'm making a Builder for it inside my onCreateDialog, then inflating it using an Inflator then using setView. However, the dialog is not showing on the activity where it is supposed to be. Is someone able to help, please? Jan 22 18:22:28 KNERD: if you're on an x86 pc, use the x86 emulator image Jan 22 18:22:32 I can paste code if needed ofc. :) Jan 22 18:23:39 awsnap! tools/ant/build.xml explicitly excludes R.class from the library jar. Jan 22 18:25:07 pragma-: that's available yet? Jan 22 18:25:51 that and the x86 toolchain doesn't seem to be available normally Jan 22 18:26:19 any one has a HTC phone here and can send me a crash report for my app. which doesnt install on HTC phones Jan 22 18:26:39 ok whats the "best" visual way to maintain a scrollView on config change? Jan 22 18:27:07 obviously I get scroll positions and store, and then set again, but there is a visual jump Jan 22 18:27:14 and that just looks horrid Jan 22 18:27:38 sure there is a better way ? Jan 22 18:27:46 well not sure but asking :) Jan 22 18:29:47 oh...i was using the ARM image... Jan 22 18:30:10 it's not allowing me to change it Jan 22 18:30:44 oh i see...i changed to Android rather than Google API Jan 22 18:30:56 However it is still AMR and MIPS only..no x86 Jan 22 18:31:16 dafuq. all because a library project I was using had an outdated build.xml :> Jan 22 18:37:29 o/ I'm trying to get a custom dialog to work. I've got my onCreateDialog method in my activity, I've got the custom dialog xml sorted and I'm making a Builder for it inside my onCreateDialog, then inflating it using an Inflator then using setView. However, the dialog is not showing on the activity where it is supposed to be. Is someone able to help, please? Jan 22 18:40:06 WhereIsMySpoon you read that ?http://developer.android.com/guide/topics/ui/dialogs.html Jan 22 18:45:37 StingRay_: yes Jan 22 18:45:50 WhereIsMySpoon pastebin of your code ? Jan 22 18:47:28 so I've got a function that I need to call every 1 second to update a text view. I tried using a Timer, but timer uses a separate thread from the UI thread so it doesn't let me touch the view. any idea what I should do here? Jan 22 18:47:38 StingRay_: http://pastie.org/5826287 the activity java code; http://pastie.org/5826286#8 the custom dialog view xml; http://pastie.org/5826288 the activity xml Jan 22 18:48:26 WhereIsMySpoon i can see you have not read that link Jan 22 18:48:41 or if you have not taken it in or understood Jan 22 18:49:35 StingRay_: i did read it, ive put in the code from the multiple choice bit modified so it fits me and the xml from below that, but modified so i jsut have the textview Jan 22 18:49:51 i think its odd how it didnt mention about the activity xml, but i will read it again Jan 22 18:50:10 well it's about extending or implementing Jan 22 18:50:19 and then the bit your missin, creating it Jan 22 18:50:21 :) Jan 22 18:50:26 have a read Jan 22 18:50:28 tis there Jan 22 18:50:32 hm, is there a way to check if an app is currently receiving locationupdates through pendingintents? Jan 22 18:51:01 I want some kind of toggle where I can switch it Jan 22 18:51:04 StingRay_: i thought the Inflator and builder created it Jan 22 18:51:10 but I don't want/need a 24/7 running service Jan 22 18:51:44 it does Jan 22 18:51:52 and where do you call that to get a new instance Jan 22 18:52:07 and without extending or implementing anything it's just another method Jan 22 18:52:21 honest tis all there in that link Jan 22 18:52:29 even a bit on "how to show" Jan 22 18:52:31 StingRay_: do i need to start over and use fragments Jan 22 18:52:37 or can i do this inside an activity Jan 22 18:53:16 WhereIsMySpoon the question isn't really relevant to what you doing at the moment, nor can ne1 but you really answer that Jan 22 18:56:25 WhereIsMySpoon: I don't think you can do both setView and setMultichoiceItems Jan 22 18:56:28 It doesn't make sense anyway Jan 22 18:56:37 You either handle the view yourself, or you let AlertDialog do it Jan 22 19:01:25 So I'd like to make an app that is setup similar to how the email and gmail client does things: ListFragment on the left that shows a list of "categories" of how items are filed, then tap one and it brings up (what I assume to be) another ListFragment of items, then tap an item to bring up a Fragment that shows the details of the item, hiding the "categories" ListFragment. The Email client Jan 22 19:01:25 source is very complex and has way more than I need to look through it. Is there a code available for another app that does what I am describing? Jan 22 19:04:12 any one has a HTC phone here and can send me a crash report for my app. which doesnt install on HTC phones Jan 22 19:04:43 harshamv whats your app? Jan 22 19:04:57 dont have a htc, just interested to know Jan 22 19:05:00 StingRay_: https://play.google.com/store/apps/details?id=com.m7.nomad Jan 22 19:05:05 oh actually I may have Jan 22 19:05:17 next time I go for a ciggy, I will look Jan 22 19:05:29 StingRay_: have posted the crash report here :D http://stackoverflow.com/questions/14454024/android-app-crashes-on-htc-and-sony-ericsson-phone Jan 22 19:05:41 StingRay_: sure :D Jan 22 19:06:01 http://pastebin.com/Bnv1X3j1 this is seven or eight different kinds of stupid Jan 22 19:06:46 MercuryTW: what u trying to achieve Jan 22 19:06:47 ? Jan 22 19:06:56 harshamv: Make sure you don't have any attributes in themes that are loaded on platforms where it doesn't exist (like having android:actionBarStyle in values/) Jan 22 19:07:01 I need to update a TextView every second Jan 22 19:07:31 harshamv you use sp unit on fonts ? Jan 22 19:07:41 StingRay_: yeah sp Jan 22 19:07:45 that does it, but it aint pretty Jan 22 19:07:59 if there's a cleaner way to do it, I'm all ears Jan 22 19:08:03 SimonVT: oh okay. let me check i dont rememebr what i ahv used :P Jan 22 19:08:40 SimonVT: does it mean. its trying to get the records from the local system and since its not there it crashes Jan 22 19:08:53 mHandler.postDelayed(mUpdateTextViewRunnable, 1000); Jan 22 19:09:37 does that run once or does it repeat? Jan 22 19:09:51 You keep posting the runnable from your runnable Jan 22 19:10:02 oh duh. makes sense Jan 22 19:10:06 Remember to call mHandler.removeCallbacks(Runnable) from onPause Jan 22 19:10:12 And you can start it from onResume Jan 22 19:10:25 gotcha. Jan 22 19:10:29 SimonVT: this is my style. i dont see anything from @android: Jan 22 19:10:31 http://pastebin.com/z0xrYt7h Jan 22 19:10:50 harshamv: Then you're blind Jan 22 19:10:52 what type is mHandler? Jan 22 19:10:55 Jan 22 19:11:00 Jan 22 19:11:02 etc Jan 22 19:11:06 It's a Handler Jan 22 19:11:11 haha ok Jan 22 19:11:46 SimonVT any idea on my question earlier ? ScrollView position on rotation change and setting it again cause visible jump and look horrid Jan 22 19:12:25 Pretty sure ScrollView already saves it's scrolled state Jan 22 19:12:34 SimonVT: i need to remove them all ? then i wont be able to customize the action bar right Jan 22 19:12:51 You need to move them to e.g. values-v14 Jan 22 19:12:54 Somewhere they do exist Jan 22 19:13:24 SimonVT not when I have to re-create all views in it Jan 22 19:13:30 to be landscape ones Jan 22 19:13:33 :) Jan 22 19:15:26 SimonVT: doesnt HTC phones run the styles from values-14 folder ? Jan 22 19:15:29 JatoFire: are you here? Jan 22 19:16:21 harshamv: I doubt the issue is on ics+ devices Jan 22 19:16:26 newby question... I am transitioning between views in a single activity... using setContentView. is there a way I can add a right to left transition? Jan 22 19:16:39 StingRay_: I don't know then ;O Make sure the state is restored before the scrollview is drawn Jan 22 19:16:50 irishgringo: No, use fragments Jan 22 19:17:06 SimonVT I do that too, oh well, will just do a fade in I guess Jan 22 19:17:19 Alternatively, make your own scrollview :p Jan 22 19:17:40 maybe Jan 22 19:18:48 Any android-GL programmers here today Jan 22 19:18:50 ? Jan 22 19:19:21 Thanks, btw, Simon Jan 22 19:19:53 JohnnyL: I've been toying with it, but wouldn't say I'm good at it Jan 22 19:19:57 SimonVT: actually the issue is only on ICS devices. HTC running 2.3x is working fine. anything 4.x is not :P Jan 22 19:20:03 I am an iPHONE developer... just learning ANdroid. but I have a decision tree that I am trying to setup. Each layout is a separate question. The buttons on the layout are specific answers. I am using views now, but should I be using fragments instead? Jan 22 19:21:36 irishgringo: depends, if the logic per view is the same it's not strictly necessary Jan 22 19:22:14 that's the major advantage of using fragments here, as well as convenient replacement animations Jan 22 19:22:24 there are some slight differences. Especially on the Conclussion pages. Jan 22 19:22:34 harshamv: I don't know then, drop support for broken devices Jan 22 19:22:46 irishgringo: Fragments do not replace views Jan 22 19:23:14 irishgringo: but it might be a nice exercise, it's certainly not wrong to use fragments here Jan 22 19:23:42 I have the views example working... and it just lacks the transition. Jan 22 19:23:49 looking at fragments docs... Jan 22 19:24:02 also, I want to run on 2.1 devices Jan 22 19:24:20 hum, i wonder what the odds are of google moving away from gcc Jan 22 19:24:51 oGMo: ?? Jan 22 19:25:38 i.e. llvm or whatnot Jan 22 19:26:23 gcc has some things that aren't necessarily portable, but are less stupid, and since gcc is the only compiler right now ... Jan 22 19:26:31 does anyone happen to know whether it's possible to check whether a broadcastreceiver is currently receiving location updates (through pendingintents)? Jan 22 19:27:15 I want something that toggles updates on/off, and I currently have a service with a locationlistener Jan 22 19:27:41 but it only needs to be active when updated with a new location, not all the time Jan 22 19:33:03 http://chanarchive.org/4chan/b/66573 Jan 22 19:33:19 ? Jan 22 19:36:18 Hi all, is it possible to use a .eps image in an Android app? Jan 22 19:38:23 snowinferno: there's a library to handle svg. haven't tried eps. Jan 22 19:38:50 https://github.com/mrn/android-svg Jan 22 19:38:55 If it's not native I'll just convert it into png, if I can. Thanks novie Jan 22 19:39:00 err Jan 22 19:39:09 https://github.com/mrn/svg-android Jan 22 19:41:48 SimonVT: is there any good read up on the values Jan 22 19:42:07 and how to make sure it works seamlessly on multiple devices Jan 22 19:44:46 If I want to add an "overlay", all I do is to just setContentView and then setContentView the old one back, right? Jan 22 19:54:10 My application has a relative layout where I wish to have UP TO 5 buttons. However, depending on a condition, there can range from 0 to 5 buttons on the relative layout. I am having trouble dynamically adding them. Also, they need to be added referenced in another class...how should I go about in implementing this? (for example, I am unable to reference them in the other class because they havn't been added to the layout. How can i prepare Jan 22 19:54:12 that class to reference them?) Jan 22 20:03:22 I want to run some code whenever the keyboard is shown or hidden. Is there a callback for that (or can I set one up somehow)? Jan 22 20:08:23 hi Jan 22 20:09:19 belgianguy: In your opinion should I just go straight GL without SDL. I know how integration can be. I want to make this as pure as possible. It will be a convert from the pc platform which also supports ES , at least in the browser. Jan 22 20:09:22 ? Jan 22 20:09:46 I was thinking of make it first in 2d. But 3d seems to be the in thing these days. Jan 22 20:10:04 Hey all Jan 22 20:14:00 I have a question Jan 22 20:14:05 when u click the back button Jan 22 20:14:21 does that fire the pause event? Jan 22 20:14:40 Yes Jan 22 20:14:42 And onDestroy Jan 22 20:14:52 it finishes your activity Jan 22 20:15:07 so what happens if the android Pedometer is started? Jan 22 20:15:14 before pausing? Jan 22 20:15:25 Then you hopefully stop it Jan 22 20:15:35 I should stop it? Jan 22 20:15:40 I thought it wouldn't stop Jan 22 20:16:22 but, does it remove stuff from memory when paused SimonVT ? Jan 22 20:17:00 What do you mean Jan 22 20:17:21 well..I am doing a app in phonegap that ports to android right Jan 22 20:17:40 the other folks on my team..when paused...they assume the pedometer isn't stop and let it continue Jan 22 20:17:54 counting Jan 22 20:17:56 I have an Android 2.3.3 emulator running. I want to use the querty keyboard but when I click on a text box the keyboard is of a classic cell phone. How do I change to a qwerty keyboard? Jan 22 20:18:39 when it resume...they just render the html Jan 22 20:18:56 but, the counting pedometer is way off Jan 22 20:19:05 I don't know what kind of app you're doing.. But generally, when your activity is paused, you should stop stuff so it doesn't keep the device awake Jan 22 20:19:18 Unless you're doing stuff that needs to run, even when the app is not in focus Jan 22 20:20:49 second point is true SimonVT Jan 22 20:24:11 Something is VERy wrong with this Android Eclipse install. It refuses to connect the emulator thus RUN AS-> is empty. Anyone got an idea on how to troubleshoot this? Jan 22 20:24:46 you can try to restart adb Jan 22 20:25:02 check if adb regocnizes the emulator with command adb devices Jan 22 20:25:20 recognizes* Jan 22 20:25:38 Is there any way to run some code whenever the keyboard is shown or hidden. Is there a callback for that (or can I set one up somehow)? Jan 22 20:26:06 okay vavirta..thanks I will give it a try Jan 22 20:27:30 and if you don't see your emulator there, you can try to restart the adb with adb restart Jan 22 20:27:46 how ever I'm usully doing it with adb kill-server and after that starting it again with adb start-server Jan 22 20:28:30 yeah, according to docs, you should first kill it with adb kill-server Jan 22 20:28:44 what folder is it located? Jan 22 20:28:53 uhm Jan 22 20:28:58 in your android sdk folder Jan 22 20:29:00 i got it Jan 22 20:29:21 /platform-tools/ yeah Jan 22 20:30:50 adb restart is not a valid command, but I will go through the list of options it gave me Jan 22 20:31:10 reboot? Jan 22 20:31:11 uhm yeah Jan 22 20:31:15 try adb kill-server Jan 22 20:31:20 to kill it, and after that adb start-server Jan 22 20:31:45 yeah, my bad. restart isn't valid command, sorry for confusing you :P Jan 22 20:31:57 I have a list activity that potentially takes a while to load. It seems that if I set up an empty view, (android:id="@android/id/empty"), that displays both when the list is loading, and when the list has finished loading but has no elements. Jan 22 20:32:23 Is there a proper way to distinguish those? Jan 22 20:32:47 okay vavirta> restarting the emulator, that command was corect Jan 22 20:33:17 Hello, I'm try to integrate Twitter in my android Jan 22 20:33:30 but I'm having problems with the call_back url Jan 22 20:33:40 Can anyone help me? Jan 22 20:35:27 anelrh26: http://www.catb.org/esr/faqs/smart-questions.html Jan 22 20:35:34 ok KNERD, do you see your emulator with command adb devices Jan 22 20:35:47 if not, then try to restart the emulator Jan 22 20:36:07 yes, it shows up Jan 22 20:36:16 ok great, and does eclipse show it now? Jan 22 20:36:25 no it does not Jan 22 20:36:41 crap, have you tried to restart eclipse then? :P Jan 22 20:36:57 xalbo: you can either change the text of the empty view, or make it somethign custom that you can change later whne your adapter gets updated Jan 22 20:37:18 also, not 100% sure about that, but does your running emulator meet the requirements of the app you are trying to run Jan 22 20:37:48 vavirta: I am just trying to get the hello world example to run Jan 22 20:37:51 because I think that devices with lower requirements won't show up in the list Jan 22 20:37:54 ok Jan 22 20:37:58 stil la no go Jan 22 20:38:28 ok, can you then try to start the new emulator? Jan 22 20:38:47 okay shutting down and going to restart Jan 22 20:38:53 if we are speaking about the same situation. You are trying to run helloworld app by pressing the 'play' button Jan 22 20:39:01 after that the device selection screen shows up Jan 22 20:39:09 there should be option to start new emulator also Jan 22 20:39:59 Thanks, I'm trying to set up the application in Twitter configuration, but it's asking me the callback url, when the authentication is complete, so my app can come back. The thing is, Im setting something like this callback://twitter, but I had an error that the url is invalid Jan 22 20:40:34 vavirta>; correct, but not showing up Jan 22 20:40:41 karakuri: Yeah, that's probably the best solution. Thanks! Jan 22 20:41:04 anelrh26: I believe there's some twitter support options for that kind of stuff. Jan 22 20:41:17 isn't really android specific Jan 22 20:41:34 KNERD: not even the device selection screen showing up? :o Jan 22 20:41:41 have you set it tu run as an android application Jan 22 20:41:59 I don't have any android sdk in this computer, so can't check those things myself :/ Jan 22 20:42:01 i can't it is emtpy Jan 22 20:42:25 okay... then are you sure that you have installed the android sdk properly? Jan 22 20:42:34 especially the eclipse plugin-thingy Jan 22 20:42:45 oh yes...i have it installed on anothe r machine Jan 22 20:42:55 I am merely just following this: http://developer.android.com/training/basics/firstapp/creating-project.html Jan 22 20:43:15 it works on my other machine just fine, but not the one i just installed it on Jan 22 20:43:49 ok, really strange Jan 22 20:44:19 if you have the other machine somewhere near, you can cross check that your projects has the same settings Jan 22 20:44:25 vavirta: It was seeing it earlier, but stopped. However, it was refusing to install the Hello World example on the emulator Jan 22 20:44:44 yeah, I can do that Jan 22 20:44:48 ok Jan 22 20:44:55 KNERD: I had a similar problem configuring the Eclipse with And-SDK. The problem was the Eclipse type. I downloaded "Eclipse IDE for Java Developers" (Version: Juno Release) and started the whole configuration again without problem. Jan 22 20:45:00 but if it was seeing it earlier, i think that settings should be correct Jan 22 20:45:13 also sometimes simply restarting the computer helps Jan 22 20:45:28 MOUD: that is the version I am using Jan 22 20:45:39 yea, let me restart it Jan 22 20:45:48 these are really stupid problems Jan 22 20:45:56 and take too much time to solve in my opinion :P Jan 22 20:47:03 no kidding..wasting so much time..reminds me of that old Apple ad https://www.youtube.com/watch?v=ATj3zkxRAF0&list=FLHZ9MUzizXVSEcmi2PH_GGQ&index=7 Jan 22 20:47:49 :d Jan 22 20:47:52 yeah Jan 22 20:48:21 and the funny thing is that more frustrating you get, somehow more time it takes to solve these kinds of problems Jan 22 20:48:28 smashing the keyboard rarely helps :P Jan 22 20:48:56 actually it does help. Jan 22 20:49:10 then you can;t type anymore so you have to go to store to buy a new one Jan 22 20:49:15 giving you a breather Jan 22 20:50:12 lol Jan 22 20:53:05 vavirta: yeah same result. There is no Android selection in RUN AS Jan 22 20:53:53 you know..the last Working install was with the Juno version for CPP Jan 22 20:54:23 pk, sorry but can't help further. Usually restarting the computer, eclipse and adb works for me Jan 22 20:54:47 yeah thanks for your time. Guess I will try the CPP version on that computer Jan 22 20:57:02 he Jan 22 20:57:03 heh :P Jan 22 20:58:31 nVidia puts out their own Eclipse versiom for development. I don't see why google can; Jan 22 20:58:33 t Jan 22 21:00:03 KNERD: like... http://developer.android.com/sdk/installing/bundle.html Jan 22 21:01:47 hmmm Jan 22 21:01:59 thanks..let me check that out Jan 22 21:02:07 in my android project guys...what would I need to do to say the pedometer doesn't need to stop? Jan 22 21:02:29 If I have only Android 2.3.3 SDK and Android 4.2 SDK installed but not Android 4.0.3, and my phone has Android 4.0.3, will the apps work fine or will create compatibility problems? Jan 22 21:04:18 I am asking this because I have a very slow connection and with a 4GB bandwidth limit Jan 22 21:04:32 Does apple have a patent on multi touch so android can't use it? Jan 22 21:04:48 that did not help Jan 22 21:05:30 Even that bundle can't see any eumulator Jan 22 21:06:03 does anyone know what will hebben if I give something a pendingintent, then unregister the target of said event? Jan 22 21:06:22 *said intent Jan 22 21:06:58 specifically, I'm wondering whether it's a good idea to control a background location intent broadcast receiver Jan 22 21:07:00 Like do android phones have multi touch? Jan 22 21:07:04 by turning it on and off Jan 22 21:07:36 i guess Google doe snot want people deveopling for them android Jan 22 21:08:03 ie, if the locationmanager will continue to fire events? Jan 22 21:12:33 Hi guys.. I test my app directly on my mobile.. I install it using ADB.. It works ok until tonight where I keep losing the adb connection.. Is this a known issue and has some fix/workaround? thanks Jan 22 21:13:30 Does weight influence both widths if they are both 0? Jan 22 21:16:41 No Jan 22 21:16:50 Only in the orientation of the linearlayout Jan 22 21:21:28 MOUD: they'll work fine (as long as you don't call methods that only exist in the newer API) Jan 22 21:22:02 I see. thanks gilez Jan 22 21:30:29 yo ... got a quickie question ... i've got a long op on keypress an an activity (~10s) ... what's the best way to prevent the user from doing anything (inside my app) while the op is running Jan 22 21:33:09 freakolowsky your own boolean flag, a dialog of some sort with no dismiss ? Jan 22 21:33:59 can't the dialogs be dismissed just by pressing back? Jan 22 21:34:23 not if you intercept the back key Jan 22 21:34:30 but thats not really nice to do Jan 22 21:34:49 back would/should cancel your op and back on the host activity Jan 22 21:35:03 or back to just cancel your op and dialog Jan 22 21:37:04 hmmm ... hmmm ... i get the point why it's not ql, but i'm guessing i'll just have to make my longop resumable ... 10x 4 idea Jan 22 21:38:42 freakolowsky what are you doing in the long op ? Jan 22 21:44:09 I'm using a custom list adapter and an xml layout for each item... Works fine. Beautiful... Is there a simple way to implement a list separator to inject a 'category title' type thing between two sections of items I've added? Or would I just have to put in a flag of some sort into my hash-map and then say "if map.KEY_VAL is 'separator'" then somehow tell it to pop in a different XML ? Jan 22 21:45:29 pierpark well you could have a 2 level adapter Jan 22 21:46:01 or do what you said Jan 22 21:46:06 :) Jan 22 21:47:56 I am referencing buttons in my layout. How can I remove those buttons from the layout with java? Jan 22 21:48:56 MajorZero get a reference to the parent and the views and call removeView Jan 22 21:48:58 StingRay_ thanks I'll see if it works the way I think it might... about to see Jan 22 21:48:59 on the parent Jan 22 21:49:39 StingRay_ thanks I'll try it now Jan 22 21:49:44 MajorZero: what StingRay_ said. find the view by the ID of the button, and then either make it invisible or remove it. Jan 22 21:50:24 MajorZero: for example: Button tempName = (Button)findViewById(R.id.ID_OF_YOUR_BUTTON); Jan 22 21:50:31 MajorZero what pierpark said: with addition of looking at View.GONE state too ;) Jan 22 21:50:47 and then tempName.setVisibility(View.GONE) Jan 22 21:51:00 I think. Not quite awake yet. Jan 22 21:51:02 One more detail, I may have trouble with it because I am referencing these buttons in a custom ArrayList adapter I made for a list view....the findViewById(R.id.buttonID) method isn't working Jan 22 21:51:31 You'll need to use view.findViewById(R.id.BUTTON_ID) then Jan 22 21:52:31 pierpark thank you, I'll try it now. It's been causing me trouble for 2 hours now Jan 22 21:52:43 MajorZero or if you button holder is a ViewGroup you can Jan 22 21:53:52 ((ViewGroup)findViewByID(R.id.something).getParent)removeView(findViewByID(R.id.something)); Jan 22 21:54:07 Yep, what StingRay_ said, too. Inside your adapter, if you've got something like this: if (convertView == null) vi = inflater.inflate(R.layout.tube_list_category, null);, then you would call: vi.findVieById(R.id.BUTTON_ID) in order to touch it... See, because vi is the view you are returning. Jan 22 21:54:33 But that should point you in the right direction and you should have it figured out soon. If not, post your code. Jan 22 21:54:35 ooo missed a dot ((ViewGroup)findViewByID(R.id.something).getParent).removeView(findViewByID(R.id.something)); Jan 22 21:55:10 ooo missed some braces ((ViewGroup)findViewByID(R.id.something).getParent()).removeView(findViewByID(R.id.something)); Jan 22 21:55:28 Ha ha. Gotta love those. We need an IRC client with a syntax highlighter. Jan 22 21:55:33 god bless you guys. You guys are saviors. Thats exactly the type of code im working with right now. Basically Im trying to hide buttons that aren't in use, and my butons are contained inside my listview Jan 22 21:55:57 listview adapter* Jan 22 21:56:16 MajorZero oooo careful Jan 22 21:56:37 the re-cycle thingy dont mess you around when setting view states Jan 22 21:56:50 so you would need remove Jan 22 21:56:54 I think Jan 22 21:57:00 rather than View.GONE Jan 22 21:57:26 so removeView(R.id.button)? Jan 22 21:57:57 MajorZero: Yeah, he's right... If you are using an if statement to check against a flag to determine if you should hide/show certain items in your XML, and you insist on doing it that way, you will most definitely need your ELSE statement... Otherwise, you will end up showing what you want per certain item, then when you scroll, it'll disappear ;) Jan 22 21:58:58 if(tube.get(TubeActivity.KEY_TYPE).equalsIgnoreCase("video")){songIcon.setVisibility(songIcon.INVISIBLE);}else{songIcon.setVisibility(songIcon.VISIBLE);} Jan 22 22:01:14 The ELSE would be to make sure that when you scroll your list past the item that is supposed to be showing a certain icon that others are NOT supposed to be showing, that it doesn't remove the icon once you've scrolled past it. Make sense? That will work and do just fine, but if your O.C.D. starts flaring up, then you will have to find another way. Jan 22 22:01:56 perfect, i see what you're saying. Thank you very much, I'm going to try it out. Hopefully it'l stay put. Jan 22 22:02:35 If you use the else statement with your if, it'll work.. because like StingRay_ said... it's going to recycle it and then it'll have forgotten your "if" ... so use else with it. Jan 22 22:03:05 gotcha, I'm keeping it there then Jan 22 22:04:12 Basically, if you had a list of 1000 items, and you scrolled through the list... you'd start tying up memory... fast (depending on what is inside it.. images/icons/etc)... so to my knowledge, when you scroll through, it is unloading the off-screen items from memory and reloading them when you scroll back to it... hence, the recycle part. Jan 22 22:04:19 Okay cool let us know if it doesn't work. Jan 22 22:11:59 is there a way to keep the default line under an EditText while also specifying a background color? Jan 22 22:12:33 Keeping the bottom border ? Jan 22 22:13:10 is that what it's called? :) Jan 22 22:13:25 whatever the default thing is that's kind of shaped like |______| Jan 22 22:13:45 well it's a system thing and not like that on older android versions Jan 22 22:14:05 right, this is for a 4.x app Jan 22 22:14:19 i just noticed it goes away when I try to add a background color to the EditText Jan 22 22:15:06 tnzr cause it is the background I think Jan 22 22:15:21 StingRay_ is right. But if you add a background to your EditText that is NOT a solid color (for example, a nine patch image) then you can specifiy. Jan 22 22:15:28 For example... (hold on) Jan 22 22:15:34 ahh I see Jan 22 22:15:36 it's an asset Jan 22 22:15:39 thanks! Jan 22 22:16:55 Forgive me for loading code up in here like this, but make a file in drawable folder called: edittext_bg.xml Jan 22 22:16:59 Jan 22 22:16:59 Jan 22 22:16:59 Jan 22 22:16:59 Jan 22 22:16:59 Jan 22 22:16:59 Jan 22 22:17:37 :/ sorry, hate doing that.. have to walk the dog though. Stroke is obviously your border. Solid is your inner solid color. Jan 22 22:17:44 be back in a bit Jan 22 22:17:59 oh and, set your edit text background to: edittext_bg Jan 22 22:27:05 ok I keep encountering the same problem Stingray__. findViewById(R.id.button) returns that findViewById isundefined for my CustomAdapter class Jan 22 22:27:26 my custom adapter is extending ArrayAdapter Jan 22 22:27:27 MajorZero call it on your inflated view Jan 22 22:28:07 View v = Inflate$(*&%($%£$$ so v.findViewById(*****) Jan 22 22:36:04 okay...Android Eclipse now sees the eumu;ator, but it is not installing the app on the eumulator via RUN As-> android application Jan 22 22:38:10 I have a class named NetPaintCanvas that extends BitmapDrawable. In my java code I want to access the NetPaintCanvas object that is declared as in activity_main.xml. But when I do NetPaintCanvas c = (se.dose.netpaint.NetPaintCanvas) findViewById(R.id.canvas); in MainActivity.java I get "Cannot cast from View to NetPaintCanvas." Am I doing this fundamentally wrong Jan 22 22:43:16 kdehl view != drawable Jan 22 22:43:33 If I create a theme and set android:textCursorDrawable directly under the theme, would that propagate to, for instance EditText:s? Jan 22 22:43:40 Or should it Jan 22 22:43:40 view is a gui element like a button or progressbar Jan 22 22:44:34 xorgate: Right. So I misunderstood it. Jan 22 22:44:49 xorgate: Do you understand what I wanted to do? Jan 22 22:44:59 kdehl a view can have for example a background that is a drawable Jan 22 22:45:19 Okay.. Jan 22 22:46:58 I just thought all drawables inherited View, so that I could cast it like that... Jan 22 22:47:19 why would you think that? Jan 22 22:47:20 java.lang.Object Jan 22 22:47:20 ↳ android.graphics.drawable.Drawable Jan 22 22:47:45 Oops. I guess I just made it up. Jan 22 22:48:22 So how do I access the "canvas" instance of NetPaintCanvas from my java code? Jan 22 22:49:06 it has none Jan 22 22:49:11 http://developer.android.com/reference/android/graphics/drawable/BitmapDrawable.html Jan 22 22:49:16 it can draw itself onto a canvas Jan 22 22:49:45 drawable means 'i can draw' not 'you can draw on me' Jan 22 22:50:02 Oh. Jan 22 22:50:04 Man. Jan 22 22:50:40 Kinda the opposite of X11. Jan 22 22:50:51 I just assumed it'd be the same thing. Jan 22 22:51:07 Thanks for clearing that up! Jan 22 22:51:14 youre welcome Jan 22 22:51:33 that last url is what you should have looked at, searching for canvas Jan 22 22:52:15 I'm reading it as we speak. Jan 22 22:54:14 I guess I should just extend Canvas instead... Jan 22 22:54:44 http://developer.android.com/guide/topics/graphics/2d-graphics.html Jan 22 22:54:56 I started by extending View, and that worked. But then I saw BitmapDrawable and thought it was just the same as what I had just implemented. Jan 22 22:55:03 Right. Jan 22 22:55:05 what is it you want to do? Jan 22 22:55:59 I'm making a very simple paint program with network support. Jan 22 22:56:29 I have implemented this in both C++/Qt and C/Xlib before, and now I want to do the same in Android. Jan 22 22:56:40 like i draw here and it shows up there? Jan 22 22:57:20 then i think you might just use a View and override onDraw and call invalidate() when you want to update Jan 22 22:57:38 Almost. When you draw on the canvas, the touch events will be sent to a tool, which in turn create an image based on the events to a server. The server in turn responds with the new canvas. Jan 22 22:57:46 Yeah, that's exactly what I did at first. Jan 22 22:58:02 So I gues... I did it right to begin with. Heh. Jan 22 22:59:05 Anyhow, that's how I designed the Qt and Xlib versions, so I figured I should do it similarly this time. Jan 22 22:59:13 *guess Jan 22 22:59:41 StingRay__ thank you very much for your help. Unfortunately i havn't been able to get it working. I am able to find the view by referencing my viewgroup that i inflate, but unfortunately no matter what i reference, whether it be the parent() or even the layout that contains my buttons, i am unable to implement the removeView() function Jan 22 22:59:52 Alright, so you don't think I'd get any support by extending Canvas instead of just View? Jan 22 23:00:07 *get helped Jan 22 23:00:57 wait a second, I forgot my casting for the Viewgroup...i spoke too soon. Thank you very much again StingRay__!! Jan 22 23:01:23 kdehl i think you have your concepts mixed up Jan 22 23:01:31 xorgate: I agree. Jan 22 23:01:45 canvas to you = something to dump my draw commands on Jan 22 23:01:57 as in, that's how you should ook at it Jan 22 23:02:02 Right. Jan 22 23:02:13 That's not the case in Android, huh? Jan 22 23:02:16 View = the rectangular thing on screen that has a canvas Jan 22 23:02:34 View gives you a Canvas to draw on Jan 22 23:03:25 im not sure what would warrant extending Canvas or how to even implement it Jan 22 23:04:07 Ah. Okay. Jan 22 23:04:45 if you just want to show a pic you get from your server then it's just overkill Jan 22 23:04:52 extending canvas won't be so easy, since its actual impleemntation is native in the Skia lib :) Jan 22 23:05:07 Ah. Okay. Jan 22 23:05:57 Hm. Maybe I should rename the class to something like PaintArea... or something. Jan 22 23:06:22 okay and as far as I read now your actual question, you need to design a protocol (or had this already for qt and xlib) that you want to draw on the canvas? Jan 22 23:06:39 I have that already, yes. Jan 22 23:06:54 http://dose.se/~madman/pics/NetPaint-Xlib5.png Jan 22 23:06:54 so you have a bitmap of some sorts maybe Jan 22 23:07:15 Right. Jan 22 23:07:21 anyone use chrisbanes pulltorefresh code? Jan 22 23:07:29 canvas.drawBitmap() i would guess :) Jan 22 23:07:29 An RGB array of ints in Network Endian. Jan 22 23:07:42 kdehl: so you COULD extend canvas, and instead of letting it draw use your protocol Jan 22 23:07:49 I'm getting some stupid distortion of the list view when it does its pull to refresh animation Jan 22 23:07:55 and also retrieve stuff, and call the super methods, that should be possible Jan 22 23:08:20 (The server is written in C with ncurses.) Jan 22 23:08:47 since you don't actually need to change the implementation as far as I see (that would be vere Skia comes into play again) Jan 22 23:08:50 Hey guys is there a way to get headphones that have a volume rocker (like the Bose sport) to work on a GS3? Jan 22 23:08:55 ... meaning have the volume functionality Jan 22 23:08:59 Right. Jan 22 23:09:32 zfly9 #android Jan 22 23:09:33 But then you mean it would read from the network every time the window needs to be redrawn? That wouldn't work. Jan 22 23:09:59 na the reading you would need ofc to handle in a separate thread Jan 22 23:10:08 Right. Jan 22 23:10:17 putting everything you want to draw to a queue, and everytime the canvas needs a redraw, see if there is something in the queue Jan 22 23:10:49 Because the server only sends a new canvas when it updates its own canvas. The clients have no rights, really. Jan 22 23:11:16 so is really the whole canvas send as a bitmap or the operations, like drew a line from x,y to x,y? Jan 22 23:11:36 And the clients send transparent pictures of the same size as the canvas, but only with a single line or square or whatever the tool produces to the server. The server can then do whatever it wants with it. Jan 22 23:12:14 And normally it puts it on its own canvas and then sends the updated canvas to all the connected clients. Jan 22 23:12:36 So, yes, lots of bitmaps are being sent. Compressed with zlib though. Jan 22 23:12:40 sounds like causing a lots of bandwidth, for sending all the time whole bitmaps around Jan 22 23:13:21 but anyway you could do it that way. just send bitmaps via the network, if a new bitmap was received on client side, draw that the next time the canvas is updated Jan 22 23:14:10 bitmap class: http://developer.android.com/reference/android/graphics/Bitmap.html Jan 22 23:14:10 canvas: http://developer.android.com/reference/android/graphics/Canvas.html#drawBitmap(android.graphics.Bitmap, float, float, android.graphics.Paint) Jan 22 23:14:48 Or, really, it should be drawn whenever a new canvas is receieved from the server. Jan 22 23:14:51 http://dose.se/~madman/pics/NetPaint-Android.png Jan 22 23:14:58 and of course you need some background thread, that handles the connection (and be aware, that connection under android could also be mobile connection, that you should not expect to be as stable, fast or anything like your regular network connection on a pc) Jan 22 23:15:03 This is what it looks like right now on Android. Jan 22 23:15:19 It's compressed with zlib, though, so the actual data sent isn't that much. You can see that in that scree4nshot. Jan 22 23:15:36 Just want to throw a thanks once again to StingRay_ and pierpark. The buttons get removed, it just now clashes with my ui so I have to work with that. But thank you very much! Jan 22 23:15:55 glad to help Jan 22 23:16:41 kdehl: so your backgruond thread just set the new bitmap on the canvas that should be drawn the next time, and invalidates it? Jan 22 23:16:55 so you won't have unnecessary redraws Jan 22 23:17:15 anyway i am now off, wish everyone a good night/day/morning whatsoever :) Jan 22 23:17:18 That's the thought. Jan 22 23:18:09 I haven't gotten that far yet, actually it only receieves a canvas when it starts, and then disconnects. Jan 22 23:18:43 Of course the thread will stay in the background and ontinueusly listen for new canvases from the server. Jan 22 23:19:39 I used doInBackground(), but as I understand it that's only for things that take a few seconds or so, not for threads that stay in the background until the program closes down. Jan 22 23:21:25 9262 bytes of data for a 1370 x 650 pixels' canvas. Not too bad, really. But it's mostly one single color, so it's not very strange, I guess. Jan 22 23:36:03 Hey all! Does anybody have any seasoned advice re: ORMS on android? I've had so many headaches with half-baked solutions that I'm about to refactor my whole app using just a ContentProvider. Anything that will give me peace of mind and is threadsafe :) Jan 22 23:36:05 thanks errrone Jan 22 23:44:28 does anyone know of a working example of how to use the android.support.PARENT_ACTIVITY metadata information in the manifest with NavUtils? Jan 22 23:56:54 this is strange... I check to see whether a View is visible by checking View.isShown(), and it returns false even though the View is indeed visible on my screen Jan 23 00:02:43 Has someone sent Base64 strings between android and a python application? And if so, what did you use? Ive tried binascii library in python, tried the base64.b64encode and also base64.standard_b64encode. And on android I tried Base64.DEFAULT, Base64.NO_WRAP and Base64.NO_PADDING. Always get an unreadable string out Jan 23 00:10:43 Hi, is it possible to add/change the arguments that the kernel boots with? like the ones in /proc/cmdline Jan 23 00:14:49 My application needs to save diagnostic files that can be found by users using the adb shell. Where should I store the files? Jan 23 00:16:52 jfpoole any user accessible area Jan 23 00:17:00 externalStorage? Jan 23 00:17:53 StingRay_: Does every Android device have external storage? Jan 23 00:18:32 externalStorage() is a big diff to "external" storage Jan 23 00:18:35 yes, but it isn't necessarily always accessible Jan 23 00:18:42 so yes and no Jan 23 00:18:56 externalStorage() is user/shared thingy Jan 23 00:19:14 that can exist either as an sd card or internal storage Jan 23 00:19:21 StingRay_: "external" in externalStorage() just means external to the app? Jan 23 00:19:48 http://developer.android.com/guide/topics/data/data-storage.html Jan 23 00:21:18 google io, when they sellin' tickets ? Jan 23 00:21:44 Yo Jan 23 00:21:54 Anyone here have a Nexus 7? Jan 23 00:21:59 yes Jan 23 00:22:02 funkbox: https://plus.google.com/+GoogleDevelopers/posts/bLnk6DmRzhT Jan 23 00:22:15 jfpoole: no dates sadly :( Jan 23 00:22:21 So like Jan 23 00:22:30 My N7 went to 0% battery Jan 23 00:22:32 i started recharing it Jan 23 00:22:34 but like Jan 23 00:22:40 as the charging animation was going Jan 23 00:22:42 it just froze Jan 23 00:22:46 and now I cant turn the tablet on and off Jan 23 00:22:48 D: Jan 23 00:22:55 have you tried buying a new one ? Jan 23 00:22:59 lol Jan 23 00:23:35 press on/off and both volumes for a few secs Jan 23 00:23:59 xorgate: Tried that Jan 23 00:24:08 StingRay_: Thanks for the link. Jan 23 00:25:23 press on button for 30s Jan 23 00:30:14 SpeedEvil: tried that too Jan 23 00:34:05 wait. Jan 23 00:34:17 or remove back, unplug and replug battery Jan 23 00:34:44 first leave on charge 12h Jan 23 00:38:09 Hi everyone! Got a quick question, the app I'm making displays the name of the app below the status bar and for the life of me I can't find out how to hide this. I don't want it full screen but I really don't need the name of the app displayed on each activity either, thanks! Jan 23 00:39:04 Is there a setting in the manifest or in the layout files for each activity? Jan 23 00:40:00 SpeedEvil: How do you get the back off the N7 off? Jan 23 00:40:49 Brian|CS a drop of 12ft or more seems to do it, hard surface needed Jan 23 00:41:00 failing that there are many youtube vids ;) Jan 23 00:41:06 showing how Jan 23 00:42:22 can someone recommend me a wireless debug tool? Jan 23 00:42:41 never mind I found it. Jan 23 00:43:03 android:theme="@android:style/Theme.NoTitleBar" in case anyone was wondering what I was talking about. Jan 23 00:48:28 I'm trying to get adb Wireless running (a tool that let's me debug my apps via wlan instead of the usb cable), apperently it should run without installing anything on windows except the android sdk, but it doesn't Jan 23 00:49:17 well have you connected to it ?? Jan 23 00:49:25 and if so whats the error ? Jan 23 00:49:48 my computer just doesn't recognize the adb command Jan 23 00:50:21 erm Jan 23 00:50:27 is adb there ? Jan 23 00:51:04 nevermind Jan 23 00:51:22 in all the tutorials it worked from every folder, seems like that's not the default though Jan 23 00:51:39 well it is if you rebooted and a path var is set Jan 23 00:51:42 if not then no Jan 23 00:51:48 so i had to go into my ..\android-sdk\platform-tools\ first Jan 23 00:52:39 well, i definitely rebooted since the sdk was installed here, but the path var wasn't set by default but i thought that was the case since none of the tutorials mentioned it Jan 23 00:53:31 well, it works now Jan 23 01:12:51 am I reading this right? http://developer.android.com/reference/android/support/v4/app/TaskStackBuilder.html it sounds like its saying that on API 11+, the back button should behave the same as the action bar up button Jan 23 01:16:03 If I have a string-array in my strings.xml how do I reference the array itself so I can put it in an android:text element of a textview? Jan 23 01:16:10 @string/arrayName doesnt work Jan 23 01:17:50 <|0xD34D|> arrays are referenced using @array/arrayName Jan 23 01:18:14 oh, oops :p Jan 23 01:24:37 Is it possible to record a call of a specific person? I think I'd have to have a Broadcast Receiver to run the Service when the specific number XXXX-XXXX calls and then the Service would be in charge of recording the conversation. Jan 23 01:24:42 Is it that way? Jan 23 01:25:27 WhereIsMySpoon, you cant put an array in the text Jan 23 01:25:30 how would that work Jan 23 01:25:47 Is there someone who would be willing to help troubleshoot an issue with getting the Play Store to recognize an app as being able to be run on phones /and/ tablets? Right now, it says it is incompatible with tablets, and I have changed every setting in the manifest that I can think of. Jan 23 01:25:52 canadiancow: i was just expecting it to put all the text from the array in teh textview Jan 23 01:25:59 i can see that isnt how it works as it isnt working here Jan 23 01:26:01 i dont think it works that way Jan 23 01:26:09 donburks, link please Jan 23 01:26:12 its just showing the first elemnet Jan 23 01:26:27 WhereIsMySpoon, that's better than i expected :P Jan 23 01:26:32 canadiancow: To the app, or to a pastebin of the manifest? Jan 23 01:26:54 canadiancow: hm. to google i guess Jan 23 01:27:00 donburks, both Jan 23 01:27:47 canadiancow: Manifest is http://pastebin.com/5cjepTR6 | App is https://play.google.com/store/apps/details?id=com.nickler.nickler&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5uaWNrbGVyLm5pY2tsZXIiXQ.. Jan 23 01:28:42 i'd recommend removing the "supports-screens" element Jan 23 01:29:25 can someone help me understand how to convert linux drivers into android drivers? I'm switching my hp tx2500 from ubuntu 12.04.1 to android 4.0 Jan 23 01:29:40 im having trouble with bluetooth, wifi, and the touchscreen digitizer Jan 23 01:29:46 canadiancow: ha, in the graphical view of the xml in eclipse it shows the first element in text. on teh actual app on the device, it just shows the id of the string :p Jan 23 01:29:50 which is a long int Jan 23 01:29:51 this is an app development channel linux_is_my_hero Jan 23 01:29:56 yea, this isnt working at all :p Jan 23 01:30:55 WhereIsMySpoon how would you expect a string array to show in a textview ? out of interest Jan 23 01:31:12 StingRay_: just having all the text elements in the textview Jan 23 01:31:24 StingRay_: it was just a naive assumption Jan 23 01:31:29 obviously, i was wrong Jan 23 01:32:11 whats the idea of the array ? Jan 23 01:32:16 donburks, uses-implied-feature:'android.hardware.telephony','requested a telephony-related permission or feature' Jan 23 01:32:27 hint: aapt dump badging my.apk Jan 23 01:32:29 StingRay_: just to display a list of some fruits Jan 23 01:32:43 key word there for your ui adventure Jan 23 01:32:47 list <---- Jan 23 01:32:51 ah donburks you have RECEIVE_SMS permission Jan 23 01:32:57 which implicitly requires the TELEPHONY feature Jan 23 01:33:07 Yes, because the app receives push notifications. Jan 23 01:33:10 listview instead? Jan 23 01:33:15 <|0xD34D|> depends how you want to display that list, if you want it itemized like a list try using a listview Jan 23 01:33:22 "push notifications" (i assume you mean GCM) have nothing to do with SMS Jan 23 01:33:22 now if you just want some static crap, maybe just use a string itema\nitemb\nitemc etc Jan 23 01:33:39 Yes, GCM. Jan 23 01:33:42 canadiancow: may i pm you? Jan 23 01:33:46 linux_is_my_hero, no Jan 23 01:33:53 i have nothing to offer you Jan 23 01:33:56 <|0xD34D|> denied Jan 23 01:34:10 canadiancow being a bit harsh on yourself Jan 23 01:34:14 oh don't be like that, i'm sure you have plenty to offer ... Jan 23 01:34:14 lol Jan 23 01:34:16 sure you have loads to offer Jan 23 01:34:19 ;) Jan 23 01:34:20 canadiancow: So without the telephony feature, it would be compatible with tablets? Jan 23 01:34:28 yes Jan 23 01:34:33 canadiancow: Thank you. Jan 23 01:34:34 but i want to know why you have the RECEIVE_SMS permission at all Jan 23 01:34:37 it's not required for GCM Jan 23 01:34:58 It got added with the 3rd party lib I'm using for push notifications/GCM Jan 23 01:35:04 * Leeds thinks steak with maple syrup Jan 23 01:35:16 well donburks, it should NOT be required Jan 23 01:35:30 Thank you. I will give that a try. Jan 23 01:35:31 if, for whatever reason, it is, then you can just explicitly declare TELEPHONY as an optional feature Jan 23 01:35:52 Ah, okay. Jan 23 01:36:29 * pragma- pats his hspa+ nexus 7 Jan 23 01:36:57 canadiancow: would you mind telling me that issue gets resolved , if you can of course Jan 23 01:37:06 how does using simpleDateFormatter kk:mm:ss give me 24:55:51 Jan 23 01:37:13 am I being dense ? Jan 23 01:37:13 Trinity, i wont be able to Jan 23 01:37:29 StingRay_, what are you trying to get? Jan 23 01:37:36 should that not be 00:55:51 Jan 23 01:37:40 oh Jan 23 01:37:43 what's "kk" Jan 23 01:37:46 it's usually "hh" Jan 23 01:37:47 24h Jan 23 01:37:53 hh 12h Jan 23 01:37:53 or HH Jan 23 01:37:54 or wahtever Jan 23 01:38:16 oh crap Jan 23 01:38:17 http://developer.android.com/reference/java/text/SimpleDateFormat.html Jan 23 01:38:19 yeah look at the docs :P Jan 23 01:38:19 yeah Jan 23 01:38:22 1-24 Jan 23 01:38:22 kk is 1-24 Jan 23 01:38:26 HH is 0-23 Jan 23 01:38:27 :P Jan 23 01:38:39 wtf? Jan 23 01:39:08 who ever uses that? Jan 23 01:39:23 wait Jan 23 01:39:25 1-24? Jan 23 01:39:25 I did! Jan 23 01:39:25 O.o Jan 23 01:39:28 canadiancow: no biggie, thanks anyways Jan 23 01:39:30 unknowingly Jan 23 01:39:31 24 isnt even an hour Jan 23 01:40:54 http://pastie.org/5827906 this isnt showing anything inside the listview, its just blank :| what on earth is going on? Jan 23 01:41:09 canadiancow: Thanks, that did it. 324 more devices suddenly available. I appreciate it. Jan 23 01:41:27 WhereIsMySpoon thats not really how it works Jan 23 01:41:53 http://developer.android.com/guide/topics/ui/layout/listview.html Jan 23 01:42:10 yeah donburks, just be aware that asking for permissions will implicitly require a feature in many cases Jan 23 01:42:33 so you can always say if you dont need it Jan 23 01:42:51 like an app that can use NFC if it's present, but doesn't require it Jan 23 01:42:55 Good to know, never even thought about that. Just getting into mobile dev, been a web dev all my life. These are the gotchas that I'm learning. Jan 23 01:43:38 !topic Jan 23 01:54:08 I'm a newbie that is trying to learn by writing the same simple app in as many different ways as I can come up with in order to learn different things. Jan 23 01:54:46 My app is pretty basic. You enter text into two fields, select a number of runs and it will randomly choose a winner between the two Jan 23 01:55:47 As a fully native app built with a RelativeLayout it works Jan 23 01:56:13 as an app that just uses webview to interact with a webpage that does it it works Jan 23 01:57:45 I then decided to load the first page as a local html file ... but I don't know how to load the page the data was posted to. What do I need to do? That content is dynamically generated so I can't just load an asset Jan 23 02:15:39 if I execute an asynctask, and within the asynctask's doinbackground I execute another asynctask, am I back on the main thread in the 2nd asynctask's onpostexecute? Jan 23 02:16:36 hip2p: why would you fire a second asynctask from one already started? Jan 23 02:17:42 novie I'm reworking my code, so I'll probably end up getting rid of the 2nd asynctask. As it stands right now, the 2nd asynctask was a call to a mysql database. the first asynctask handles a long string of functions that need to take place off of the main thread Jan 23 02:18:34 the problem is i don't want to incorporate the mysql call into the first asynctask, as I want to be capable of running it later from a separate function. Jan 23 02:20:32 previously what I had was the first asynctask, and then its postexecute I would run the 2nd asynctask, then in the 2nd asynctask's postexecute I would add 1 to a variable and then call the first asynctask again to run as a loop, this time with the first asynctask doing a different task based on the changed variable, and so on Jan 23 02:20:35 hi folks Jan 23 02:21:00 but it occurred to me that by doing it that way, I was going back onto the main thread in the onpostexecutes Jan 23 02:21:24 onPostExecute is on the calling thread. Jan 23 02:21:33 I'm totally newbie to android development, but quite experienced in many languages. I'm researching how to install android in a ubuntu, and how to do a 'Hello World' test app Jan 23 02:21:37 not the thread used in doInBackground() Jan 23 02:21:48 aFeijo: http://d.android.com Jan 23 02:21:51 right, ok Jan 23 02:22:14 novie, thanks Jan 23 02:22:28 so I guess what I'll have to do is either do all of this within one asynctask's doinbackground, or separate tasks into new runnables Jan 23 02:24:48 you could break out the code so it isn't in the actual task Jan 23 02:25:16 it sounds like you can simplify the logic, but I don't know enough about the structure to say exactly how. Jan 23 02:25:28 yeah I'll have to reorganize this Jan 23 02:35:06 SDK to target should I pick version 2.3.3? Jan 23 02:37:21 uhhh Jan 23 02:37:30 what device(s) do you have? Jan 23 02:37:40 atrix, xoom, S3 Jan 23 02:37:47 and what versions are they running Jan 23 02:37:56 2.3, 4 and 4 Jan 23 02:39:09 so maybe 4 would be a better target Jan 23 02:40:12 canadiancow, but would my app work in my atrix if I target 4? Jan 23 02:43:04 yes Jan 23 02:43:06 SimonVT, link plz Jan 23 02:43:44 aFeijo, http://simonvt.net/2012/02/07/what-api-level-should-i-target/ Jan 23 02:47:25 heh, this business with Oracle Java updates installing the Ask toolbar is really sleezy Jan 23 02:48:01 the installer doesn't run for 10 minutes, so if you check your system after java updated nothing will show up. but yo would be wrong :) Jan 23 02:48:14 hmm what confuses me canadiancow is why would it say that "free applications are not allowed" yet angry birds star wars is a free game but it connects. Jan 23 02:48:45 i guess im sort of lucky since my game is immune to the injection Jan 23 02:50:24 Trinity, what? Jan 23 02:50:38 free games are not allwoed where Jan 23 02:51:06 the IAB hack, it says for my game which is listed as a free game "hack with not work for free game" whereas for angry birds where it does work it connects and the hack works Jan 23 02:51:26 i dont know Jan 23 02:51:34 im not too familiar with in-app billing Jan 23 02:51:39 or hacking it Jan 23 02:51:49 mhmm, of course ill stop bothering you about it Jan 23 02:55:05 oh nice, the how to guide was removed from youtube :) **** ENDING LOGGING AT Wed Jan 23 02:59:59 2013