**** BEGIN LOGGING AT Sun Aug 05 02:59:59 2012 Aug 05 03:11:06 JakeSays: have you tried turning it on and then off ? Aug 05 03:11:30 funktronic: off, or power down? Aug 05 03:12:12 i'll reboot it Aug 05 03:12:43 hopefully its not a cm9 issue Aug 05 03:13:21 funktronic: ah hah! restarting it seems to have helped Aug 05 03:13:56 that actually worked ? Aug 05 03:14:00 my god, i was just trolling Aug 05 03:14:04 i never meant to help anoyne Aug 05 03:14:16 funktronic: LOL yup. worked great D: Aug 05 03:27:27 i subclassed AlertDialog class like this: http://pastebin.com/d2a9ssN0 the last line is how i instantiated it but its force closing with this error "android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application" what am I doing wrong ? Aug 05 03:40:16 is anyone here Aug 05 03:40:21 no Aug 05 03:41:32 I'm looking at the docs for the method public void setButton (int whichButton, CharSequence text, Message msg) for the alertDialog class at http://developer.android.com/reference/android/app/AlertDialog.html I'm trying to understand how i define the message parameter Aug 05 03:41:36 can you help me Aug 05 03:41:54 devslash: I don't really have time to help right now, but you shouldn't need to subclass AlertDialog, have a read of http://developer.android.com/guide/topics/ui/dialogs.html Aug 05 03:42:09 It's a string is it not Aug 05 03:42:15 your message Aug 05 03:42:28 the prompt ? Aug 05 03:42:31 What's the problem? Aug 05 03:42:45 Yes Aug 05 03:42:59 theres my code Aug 05 03:43:00 http://pastebin.com/UUPYgvXa Aug 05 03:43:10 I'm stuck at line 15 Aug 05 03:43:41 i want to add a Yes and No button and have an event called when you click on either button Aug 05 03:44:28 Why are extending the class?? Aug 05 03:44:34 devslash: you're calling show() from the constructor of a subclassed AlertDialog, that's all kinds of wrong, read that link if you want to avoid pain Aug 05 03:44:47 AlertDialog has everything u need Aug 05 03:44:49 i just want to prompt the user Aug 05 03:44:55 but it doesn't work in my code Aug 05 03:44:58 You're doing it wrong Aug 05 03:45:02 why Aug 05 03:45:22 Don't extend it Aug 05 03:45:25 just use it Aug 05 03:45:35 i tried and it didn't work Aug 05 03:45:39 evancharlton: ping? Aug 05 03:45:43 hang on Aug 05 03:46:23 doc_savage: he's way away and I hope he's not checking IRC Aug 05 03:46:59 ah, thanks JakeWharton, evancharlton.com is throwing a 503, I was just going to let him know Aug 05 03:47:58 oh, haha Aug 05 03:48:00 nice Aug 05 03:50:36 "Evan: Oh well" Aug 05 03:50:39 "Evan: I'll try and fix it tomorrow" Aug 05 03:51:00 and he said thanks Aug 05 03:51:35 JakeWharton: ah cool, np, I got what I needed from google's cache anyhow :) Aug 05 03:59:30 devslash: I don't know why I'm googling shit for you. http://m.helloandroid.com/tutorials/how-display-alertdialog-your-android-application Aug 05 04:02:50 themirror: thanks but i guess ill try it without sublclassic alertdialog Aug 05 04:02:56 now that there are more people here, i might ask again - written my first activity with a view, basically it just displays key/value pairs nicely - am i going about it the right way, how else would you do it differently? https://gist.github.com/2938e8e8ece8f7acfe23 Aug 05 04:04:04 themirror: the method setButton (CharSequence text, Message msg) is actually deprecated Aug 05 04:04:24 Yeah use setpositivebutton Aug 05 04:04:55 Id paste my code but only have internet on my phone atm. Aug 05 04:05:20 Hold on ill get the better link Aug 05 04:05:38 I'm not sure where setpositivebutton is defined. maybe the Dialog class Aug 05 04:05:41 does anyone have experience with bluetooth and vibrating headsets? Aug 05 04:05:50 but its not defined in the AlertDialog class Aug 05 04:11:39 devslash I think I used this. 5th link on Google. I'm not helping for easily accessible stuff anymore. http://www.androidsnippets.com/prompt-user-input-with-an-alertdialog Aug 05 04:11:54 w/e Aug 05 04:12:48 If you need the text do add .toString() at the end Aug 05 04:15:19 if you don't want to help then don't Aug 05 04:27:01 Strange request. Only have internet on my phone. My phone browser won't download this file. can someone send this to peerintothemirror@gmail.com Aug 05 04:27:09 https://aur.archlinux.org/packages/xv/xvidcap/xvidcap.tar.gz Aug 05 04:28:51 sent Aug 05 04:29:13 Thx Aug 05 04:29:50 n[ Aug 05 04:29:51 np Aug 05 04:30:43 themirror: the reason i wanted to subclass alert dialog is because i had the yes no button events set a variable so my activity class knows what was clicked Aug 05 04:31:23 Yes but that can be done in the onclicklistener Aug 05 04:31:42 no Aug 05 04:31:47 it doesn't work properly Aug 05 04:31:50 in onClick, set a field value Aug 05 04:31:56 let me explain Aug 05 04:31:59 k Aug 05 04:32:22 my activity extends PreferenceActivity Aug 05 04:33:32 i have a Close button to exit the activity but it does error checking first. if a string isn't how its supposed to be, it prompts the user with a message "hey thats not right. do you want to save it anyways ?" and which point they click yes or no Aug 05 04:34:41 Right. So if its the case in which the string is wrong, generate the alert Aug 05 04:34:42 heres my code Aug 05 04:34:43 http://pastebin.com/i1qaB99p Aug 05 04:34:59 look at line 42 Aug 05 04:35:05 if yes, put saveData() in onclick for yes Aug 05 04:35:12 i don't need to save it Aug 05 04:35:27 if the user clicks yes, i want to close the activity. Aug 05 04:35:52 if the user clicks no, i want to return false for boolean onPreferenceClick so the activity does not exist Aug 05 04:36:02 but i can't do that within the onclicklistener Aug 05 04:36:18 Sure you can Aug 05 04:36:25 how Aug 05 04:37:12 the onClick event is void Aug 05 04:37:18 MyActivity.this.finish(); Aug 05 04:37:34 yes thats fine if the user clicks on yes Aug 05 04:37:57 ahh nm Aug 05 04:37:57 You don't need to return false Aug 05 04:37:59 just realized Aug 05 04:38:14 if i don't call finish the activity remains open which is what i want Aug 05 04:38:16 either set a field or call another method yeh Aug 05 04:40:11 hello Aug 05 04:40:43 can i use the savedInstance param passed into the onCreate method of an activity to pass objects to new activities Aug 05 04:42:59 if someone could please help... Aug 05 04:43:02 hamo__: no, you add extras to the Intent you use to start the activity, you can then get them in the new activity with getIntent().getExtras() Aug 05 04:43:18 doc_savage: thank you for the prompt reply Aug 05 04:43:23 :) Aug 05 04:43:40 doc_savage: I intended on using that as a backup alothough now I have to change all my dtos to implement Serializable Aug 05 04:43:48 which is fine :) Aug 05 06:26:47 is it possible to browse the aosp source online? Aug 05 06:34:01 hi Aug 05 06:34:18 Just testing if my messages can now be sent. Aug 05 06:34:43 who said that? Aug 05 06:35:17 Leeds, are you talking to me? Aug 05 06:35:54 maybe... Aug 05 06:36:23 Cool, alright looks like I have this IRC thing all settup. Sorry, I'm new to the irc concept. Aug 05 06:36:34 welcome... Aug 05 06:36:41 Would you happen to know why I cannot make a connection to "#android"? Aug 05 06:37:13 should be able to Aug 05 06:38:23 Hmm... I am able to do it now. Aug 05 06:38:34 Maybe I had to register with #android-dev first? Aug 05 06:39:02 no, you have to register with services and login Aug 05 06:39:42 Hmm... I only registered with android-dev and now I can chat in #android Aug 05 06:40:02 you don't register with a channel Aug 05 06:41:14 Oh. Then I'm not sure what I did. heh. Aug 05 06:41:17 so anybody know of a way to send commands to a bluetooth headset? i want to make the headset "ring" Aug 05 06:43:25 There is a Android Bluetooth Chat App sample application Aug 05 06:44:05 yeah but that doesnt do anything with headsets Aug 05 06:44:48 Then... no. I don't. Haha Sorry Aug 05 06:46:13 Anyone here good with fragments? I'm trying to remove a fragment but I get no eclipse or runtime errors but it doesn't remove. Posted the question on stackoverflow, but no hits... http://stackoverflow.com/questions/11813862/remove-a-fragment-from-inside-a-fragment-activity Aug 05 07:37:44 Hi :) is it possible to open a persistent https connection with a server ? Aug 05 07:38:03 i'm having terrible issues with the handshake process, it takes 6-9 seconds for each post Aug 05 07:38:26 another solution could be to find a way to shorten the handshake without compermising the security... is that possible ? Aug 05 07:39:35 any ideas ? :) Aug 05 07:58:37 Hi all, new to Android dev, will I cause problems with the GC if I have a object's event listener be the object that owns it? Aug 05 08:00:44 GC? Aug 05 08:01:19 EGamerHDK: garbage collector Aug 05 08:14:58 PerishableDave You mean if your object event listener is it self? Or what you mean? Aug 05 08:17:00 ArGGu^^, Well I have a view that has a gesture detector, I was thinking of settings the gesture detectors listener to the view. Aug 05 08:18:11 I don't think you would want to do that regardless of whether it works or not. It makes no sense to have an event listener with an event listener... Aug 05 08:19:38 An event listener waits for an event to be called, then does something Aug 05 08:26:14 PerishableDave well I don't see problem with GC, why you think it would cause problems? Aug 05 08:28:58 well if the view owns the gesture detector and the gesture detectors listener is set to the view, thought there might be a cyclic ownership Aug 05 08:29:13 I'm not too familiar with how Java's garbage collection works Aug 05 08:29:33 themirror why say event listener with event listener? only listener the view would implement is gesture listener. Aug 05 08:31:25 His question as worded makes zero sense Aug 05 08:31:26 PerishableDave GC deletes object when there is no reference anymore. Aug 05 08:31:38 Right, but wouldn't they reference each other? Aug 05 08:32:46 hmm that true I did not think that Aug 05 08:32:49 but there's no reference to them from the 'roots' Aug 05 08:32:51 The listener can reference the object that instantiated it, sure no problems Aug 05 08:33:13 yuizy: ah ok Aug 05 08:33:45 Thanks for the help, I'm off to sleep, night Aug 05 08:33:55 gc will recognize those are isolated nodes Aug 05 08:33:56 afaik Aug 05 08:33:58 oh, gn Aug 05 08:34:05 Anyone good with fragments on here? Aug 05 08:34:09 LOL that discussion made zero sense! Aug 05 08:34:53 And yuizy's answers were wrong and assumptive Aug 05 08:34:58 whatever idc Aug 05 08:35:09 oh, ok Aug 05 08:36:15 I have a fragment activity that tries to remove a fragment and perform a toast. I get no errors, I get a toast, but the fragment doesn't remove. Aug 05 08:36:57 If anyone has any desire to take a look or upvote. I'd appreciate it... http://stackoverflow.com/questions/11813862/remove-a-fragment-from-inside-a-fragment-activity Aug 05 08:37:23 I see a lot of posts about fragments from a lot of people lately. Why do you need a fragment over a View? Aug 05 08:38:15 Ontouch, set the other view to invisible or gone Aug 05 08:38:23 hi Aug 05 08:38:28 i am from india Aug 05 08:38:40 made paid google play ac Aug 05 08:38:55 i dont see india in google checkout Aug 05 08:39:12 anybody from india able to sell applications Aug 05 08:39:23 themirror: how were yuizy's answer wrong? Aug 05 08:39:43 themirror, need it to work just like that. But the code works in a mainactivity. but not in a fragment activity. and with no errors, I don't understand why. lol Aug 05 08:39:58 GC used in android (both old and new one) are proper GCs and can detect cycles and collect them Aug 05 08:40:29 yeah Aug 05 08:41:00 i want to sell application using gc,india is not listed Aug 05 08:41:07 so if a cycle isn't referenced by at least one object connected to GC roots, the cycle is considered garbage Aug 05 08:41:15 Well that tidbit is fine, but in the context of the question originally asked it didn't address the design flaw Aug 05 08:41:30 wp-developer: I don't know if India is available at all for purchasing apps from Play Aug 05 08:41:42 i am able to purchase Aug 05 08:41:52 i want to develop and sell Aug 05 08:41:59 well the context of question for me was "i'm not too familiar with how java's garbage collection works" Aug 05 08:41:59 i see lot of indians selling Aug 05 08:42:18 wp-developer: and you can't find an option to register for paid app selling? Aug 05 08:42:32 so i deemed it reasonable to explain that GC will deal with cyclic references correctly Aug 05 08:42:42 wp-developer: or were you looking for region control? Aug 05 08:43:10 yuizy: it takes a pretty shitty GC to not deal with them coughperlcough Aug 05 08:43:48 :D Aug 05 08:43:50 p_l|bus i i am trying to create google merchant account in google play Aug 05 08:44:20 anybody from india is able to sell applications on google play? Aug 05 08:46:38 I don't see a valid case in which an event listener would have an event listener Aug 05 08:46:52 though I need to one day sit down and read through GC_CONCURRENT in DVM Aug 05 08:47:45 themirror: yes, but the question was about GC behaviour in case of two object cycle, although with not necessarily best example Aug 05 08:48:04 hmm... okay, the question wasn't worded best ;) Aug 05 08:48:58 Okay well true, but I suppose its a matter of taste. I was trying to get at the bigger problem of making a program make sense :) Aug 05 08:49:10 is it common to see this in logcat ? 08-05 01:48:32.690: D/dalvikvm(19115): GC_CONCURRENT freed 490K, 19% free 4186K/5123K, paused 12ms+9ms, total 44ms Aug 05 08:49:39 the conetext was "gc deletes object when there is no reference anymore." => "but wouldn't they rreference each other?" Aug 05 08:49:58 nothing assumptive in my answer :) Aug 05 08:52:06 It doesn't matter anymore. I didn't mean you were wrong per say, but I perceived his question to be grounded on faulty premises about what an event listener is, so rather my opinion was that your answer wasn't the point. I was frustrated that he left without addressing the bigger issue Aug 05 08:53:49 *per se? (sp) Aug 05 08:55:01 ah Aug 05 08:55:08 no worries, he will come back soon Aug 05 08:55:41 apologies I scapegoated you :X Aug 05 08:58:38 anybody from india is able to sell applications on google play? Aug 05 08:58:47 devslash yes it is common. It just means you are de-referencing somewhere Aug 05 08:58:57 ok Aug 05 08:59:00 read up on garbage collector Aug 05 09:01:27 Hey wp-developer, from a quick Google search, doesn't look like it atm, but cant say for sure. Aug 05 09:02:25 themirror i am looking for someone who is from india and sell app using google play Aug 05 09:03:05 Right so it seems India ip's cannot publish paid apps at this time Aug 05 09:03:24 its not ip issue Aug 05 09:06:14 http://lmgtfy.com/?q=android+publish+from+india Aug 05 09:12:50 themirror, quite convincing argument you have there with that last link... Aug 05 09:13:22 Hi, trying to build ADB and I'm getting commandline.c:(.text+0xac4): undefined reference to `load_file' Aug 05 09:43:27 for the (delayed) record, India is not on the list of countries from which you can sell apps: https://support.google.com/googleplay/android-developer/bin/answer.py?hl=en&answer=150324&topic=15867&ctx=topic Aug 05 09:51:39 they dont even have electricity there :P Aug 05 09:52:03 g00s: did you see the Onion story about that? Aug 05 09:52:16 hehe, no Aug 05 09:53:20 pretty much said "after a heroic effort by staff, all services have returned to normal, vast swathes of the the country without power or running water" Aug 05 09:53:31 haha Aug 05 09:53:57 their problems related to managing their hydroelectric infrastructure are related to incompetence and corruption Aug 05 09:55:51 of course, we have plenty of that here too :P Aug 05 09:55:58 humans are doomed Aug 05 09:55:59 indeed Aug 05 09:58:30 nope, although man will eventually consume space in the known universe, he will probably find a way to create a new one Aug 05 09:58:51 I have created a custom class that extends ArrayAdapter. What is the preferred way of rebuilding the ArrayAdapter if one of its items changes? (i.e. new sort order, state of item X changes etc.) Can anyone refer me to some literature I can read? Aug 05 09:59:15 there is no foreseeable ending to intelligent life Aug 05 09:59:28 we're not intelligent though Aug 05 10:00:22 the mere fact that you are aware that you are not intelligent shows that you are Aug 05 10:00:37 and we probably won't leave our planet before the earth is destroyed, or our solar system before the sun explodes :) Aug 05 10:00:45 a rock is not aware that it has no thought Aug 05 10:02:33 aaah, probability.. probably in this universe, but in some alternate universe, that would not be the case Aug 05 10:05:21 Okay what's the point of alternate universes other than a what if scenario Aug 05 10:05:35 these universes don't exist Aug 05 10:07:22 what if alternate universes didn't exist? Aug 05 10:07:33 there is a logical bomb for you :-) Aug 05 10:07:43 but it does Aug 05 10:09:41 An alternate universe in which alternative universes don't exist? Ahh Aug 05 10:10:55 well, it depends on whether copenhagen or many-worlds is correct, and those are the simpler ones, iirc Aug 05 10:11:06 anyone speaking Czech here? Aug 05 10:17:39 i think this is profound: Aug 05 10:17:42 " It’s almost uncomfortable the first time you see Photosynth as a UI designer because it seems that there is no interface—the interface is just the content. But when you push yourself to approach UI in this manner, you focus on designing the interaction instead of the interface. It’s a subtle yet very important difference that I think will distinguish interfaces from the last 10 years to the interfaces of Aug 05 10:17:42 the next decade. " Aug 05 10:37:33 I'm using Eclipse 3.7 with android - is it safe to upgrade to Eclipse 4? Aug 05 10:37:45 3.8 is probably best Aug 05 10:38:27 Best eclipse version or best compatibility with android? Aug 05 10:38:54 best with android Aug 05 10:39:59 3.8? All I see is Eclipse Juno (4.2) Eclipse Indigo (3.7) Aug 05 10:41:11 http://download.eclipse.org/eclipse/downloads/eclipse3x.html Aug 05 10:41:36 http://download.eclipse.org/eclipse/downloads/drops/R-3.8-201206081200/ Aug 05 10:42:03 i get 'platform runtime binary' and then later add JDT & ADT Aug 05 10:43:11 ok thanks. Are there instuctions for adding JDT somewhere? Aug 05 10:47:39 g00s: Why isn't 3.8 listed on the main page and what problems did you have with 4.x? Aug 05 10:50:29 how can I check if my code is being run in the Graphical Layout tool in eclipse? currently, it fails due to my activity not being launched before the layout is created. Aug 05 10:56:20 hi everyone Aug 05 10:56:24 I noticed that if I have a line of text in a button, the size and position of the button looks good; but, if I add a two line text to the button, the position of the button moves Aug 05 10:56:26 hi everyone Aug 05 10:56:31 is there a way around this issue? ^ Aug 05 11:14:27 lou_: could you post an xml? Aug 05 11:22:15 fucking XML says I can't have integer values in tags like "android:paddingLeft="30dip" Aug 05 11:22:21 what else am I going to have there! Aug 05 11:24:44 anybody used admob Aug 05 11:25:25 is this correct for admob Aug 05 11:28:52 Hi, what would be the best way to run a background operation of sending a pulse to the server ? Aug 05 11:28:53 what is wrong with this manifest ? http://pastebin.com/jCcKS5k9 Aug 05 11:29:09 i cannot figure it out but now my app has a lot of error Aug 05 11:30:03 ntcase: can you help me out Aug 05 11:30:23 devslash, i'm looking at it :) Aug 05 11:30:27 ok thanks Aug 05 11:34:14 heh Aug 05 11:34:33 did you see anything Aug 05 11:34:42 http://pastebin.com/8cJDPbUH Aug 05 11:34:50 one slash too many :) Aug 05 11:34:59 at least i think it will work now :) Aug 05 11:35:00 devslash: #1 is closed using />, but I think > should be used in this case since it has subtags Aug 05 11:35:09 yeha well if two people are saying the same... Aug 05 11:35:12 probably this is it :P Aug 05 11:35:41 the errors are still there after saving and doing clean build Aug 05 11:35:52 you sure you removed that slash ? Aug 05 11:36:04 i copied and pasted that paste bin into my manifest Aug 05 11:36:34 where does it say the error is ? Aug 05 11:36:39 you sure you copied the right one ? Aug 05 11:36:46 Description Resource Path Location Type Aug 05 11:36:46 error: Error parsing XML: not well-formed (invalid token) strings.xml /MyMusicServer-Android/res/values line 1 Android AAPT Problem Aug 05 11:36:49 make sure android:theme="@android:style/Theme.NoTitleBar"> Aug 05 11:36:53 is not android:theme="@android:style/Theme.NoTitleBar" /> Aug 05 11:37:06 well... then the problem now is in a different place Aug 05 11:37:07 yea Aug 05 11:37:12 as it sais Aug 05 11:37:23 the issue is with the strings.xml now Aug 05 11:37:57 ok Aug 05 11:37:59 fixed it now Aug 05 11:38:24 thanks Aug 05 11:38:32 :) Aug 05 11:44:38 eclipse keeps adding xmlns:app="http://schemas.android.com/apk/res/com.joel.cards" to my layout root elements. I dislike this behaviour -> how do I disable it? Aug 05 11:45:13 'com.joel.cards' is the package name of the project Aug 05 11:49:01 hi Aug 05 11:49:22 kmap2, hi Aug 05 11:51:16 my R won't build, this is my XML http://pastebin.com/Vg07cn9X Aug 05 11:51:17 any idea? Aug 05 11:51:50 I don't see anything wrong there..everything is in dp and...the image names are fine.. Aug 05 11:51:59 i get error in admob says "you must have adactivity declared" Aug 05 11:53:14 what error do you get Sicp? Aug 05 11:53:32 I don't get a specific error and there are no red markers, R just won't get built Aug 05 11:54:46 any idea? Aug 05 11:55:10 android developer console wont let me remove a draft apk, :( Aug 05 11:55:22 Sicp: my eclipse doesn't give me any error either. what other xml resources do you have? Aug 05 11:55:46 I have the main layout which has always been working, it's just with the addition of this file that it fucked up Aug 05 11:56:54 ive now tried in firefox and IE, not going to install chrome Aug 05 11:57:16 meh, guess i have to publish a broken apk to market and then replace it immediately Aug 05 11:57:35 Sicp: see if the error persists when removing the resource (you have a copy online so there should be no data loss) Aug 05 11:58:35 Sicp: or you could zip the whole project and upload it, and I'll give it a try Aug 05 11:59:51 Sicp: isp failure? Aug 05 11:59:57 country failure Aug 05 12:00:05 it went away joel135, but where do I start looking? Aug 05 12:00:23 I think it's a gravity issue Aug 05 12:00:30 or those fucking dp things Aug 05 12:04:37 Sicp: those seem to be good enough to build. i think the error lies somewhere else Aug 05 12:05:02 it works now since I removed and put it back in Aug 05 12:05:07 god, eclipse is such shit Aug 05 12:07:01 any good tutorials to get me started fast Aug 05 12:07:19 Sicp: I know, eclipse is horrible. If the issue was solved by just tmp removal, maybe cleaning the project (Eclipse -> Project -> Clean...) would have helped too Aug 05 12:07:29 I did taht a lot too Aug 05 12:08:09 onats: what experience, if any, with programming do you have? Aug 05 12:08:38 joel135: I know java, i do grails dev, Aug 05 12:08:59 a little bit rusty on java coz i somewhat got spoiled on groovy Aug 05 12:09:08 i'm thinking of writing an app that would say play a sound on my phone, when someone else presses a button on theirs. But i want to select who gets to 'trigger' me. How can i go about doing this? google accounts something? Aug 05 12:10:02 onats: I find Lars Vogel's Android tutorials to be great for beginners: http://www.vogella.com/android.html Aug 05 12:11:18 onats: as you already know java, just code something and learn by that. otherwise, I agree with v3gard Aug 05 12:12:00 joel135: I want to understand the right way to structure stuff in android Aug 05 12:12:24 xorgate: you definately need something server side to keep track of your users. also you need to implement support for C2DM Aug 05 12:12:46 xorgate: you might want to check out http://www.vogella.com/articles/AndroidCloudToDeviceMessaging/article.html Aug 05 12:14:26 v3gard yeh, my concern now is how to implement 'finding' eachother. and granting those permissiosn Aug 05 12:14:55 onats: you get that from the documentation, source code etc when programming anything. eclipse helps you with the very basic structure Aug 05 12:15:24 joel135: i intend to use intellij.. that ok? Aug 05 12:15:34 v3gard: C2DM? Aug 05 12:15:39 i can write server side using grails Aug 05 12:16:06 intellij even better Aug 05 12:16:13 onats: cloud to device messaging framework Aug 05 12:16:51 agh that i have lots to learn Aug 05 12:17:01 onats: eclipse isn't that good after all. I bet intellij (never used it) is better Aug 05 12:18:37 joel135: i believe its free for android dev Aug 05 12:18:51 xorgate: well, you need a client applications on both phones. the phone with the play sound button on it has to send a message to your server. there, the server checks with phones that are associated with your phone (unless you want to handle that client side), and the server uses C2DM to push a notification to the other phone which in turn will play the sound Aug 05 12:19:19 ouch, lots of spelling errors there :p Aug 05 12:20:01 one question guys, i read a post somewhere that in order for me to have a good app, i have to test it in multiple machines? there was an HK development company who had around 600 android devices Aug 05 12:20:03 v3gard yes, i get that. specifically i'm thinking about how to manage the user accounts, how will my friend be able to 'add' me etc Aug 05 12:22:38 xorgate: keep a sql database on your server with a table that relates one user to another. add a method on your server called relate(user_a, user_b) that relates user a to user b. then, on your phone, use httplib or something to send a query to the server (using json for instance) that executes the relate method Aug 05 12:22:43 onats: for a small app, you're fine using the emulator. for a large app, you get beta testers easily Aug 05 12:24:40 hi i get this error inside ad box of admob "you must have ad activity declared in androidmanifest.xml with configchanges" Aug 05 12:26:45 if the RelativeLayout calls invalidate(), which views will have their onDraw() called? http://goo.gl/ZaC0H [Image] Aug 05 12:29:19 v3gard right, but users would need to 'sign up'. i'm hoping to keep this process as simple as possible Aug 05 12:31:32 xorgate: well, you could simply create a NewUser activity that runs a query to your server adding the new user.. that will assign a username to all your users which you can use for the relate method. don't know if you can make it any simpler than that Aug 05 12:32:38 hi i get this error inside ad box of admob "you must have ad activity declared in androidmanifest.xml with configchanges" Aug 05 12:33:16 kmap your admob activity apparently needs that permission.. google configchanges Aug 05 12:33:29 the admob thing wants to know when you rotate your phone Aug 05 12:35:01 Hey guys, I want to have a listview with radiobutton (singleChoice). I have a costum adapter+xml with image and checkedListView Aug 05 12:35:42 How do I keep only 1 checkedListView checked? where do I store the state? Aug 05 12:36:33 omar in your adapter. you detect when user clicks, then disable all others Aug 05 12:36:40 (and refresh) Aug 05 12:38:00 how to disable all the others? Aug 05 12:38:13 your adapter deals with the data you want to show, so that's the place to store which is selected Aug 05 12:38:40 set the current one to false, loop over all visible rows, if that's the current one, set checked to false Aug 05 12:44:04 xorgate: I've done what u said and I have only 1 problem. If I check a row and then scroll, other rows are shown as checked as well! Aug 05 12:44:58 Here is getView(): http://pastebin.com/xrEdGphr Aug 05 12:48:41 xortage what do i need to do Aug 05 12:50:05 kmap, did yuo google 'android configchanges' ? Aug 05 12:50:40 Omar, your listview rows get recycled, so if a row is checked, it stays checked, unless you tell it otherwise Aug 05 12:51:04 omar: first order of business: http://www.youtube.com/watch?v=wDBM6wVEO70 Aug 05 12:54:00 xorgate: The problem is not that the row I checked stays checked (thats what I want), but it is that other rows are checked as well Aug 05 12:55:31 they get checked when you press? or at the start Aug 05 12:56:56 i think the way to go is: the items in your adapter have a boolean, in your getview you figure out if this row is checked or not and set the checkbox. Then you have a clickhandler (on the listview, not on the item) that determines where the click is. Then update all relevant data items, and update the listview so it shows the correct checked/unchecked Aug 05 13:01:49 I did everything u wrote except for this part: "Then you have a clickhandler (on the listview, not on the item)" .. so the click handler shouldnt be in the adapter class? Aug 05 13:03:30 what is a way to tell to the system that there is internet connection and possibly direct it to the one. I have BlueVPN connected to my BB and some of the apps do not work on tether - for instance Gmail, Google Talk... Aug 05 13:03:36 But Chrome works and so do most of other apps Aug 05 13:04:12 I am thinking of setting this up manually later on so I was wondering how would one go about passing that information to the system.... Aug 05 13:08:45 omar, i think if you have a list item, and on that 'level' you manipulate the parent listview, you're doing things wrong. so the listview should catch the click (onitemclicked or sth) Aug 05 13:10:45 anyone with the SDK source code could tell me how large is the .repo directory approximately? Aug 05 13:11:42 sam: 5.2 GB Aug 05 13:12:33 joel135: thank! still 1 hour until it's downloaded then :) Aug 05 13:17:16 copy Aug 05 13:17:48 paste Aug 05 13:18:39 hmm Aug 05 13:18:58 hi Aug 05 13:36:23 is there a rss/atom feedparser you can recommend? preferably with few or no external dependencies Aug 05 14:15:58 tango Aug 05 15:07:31 how do i use GCM with a python appengine app? all examples seem to be for java backend Aug 05 15:14:20 can i post my new application here Aug 05 15:17:45 if i have 2 buttons and setOnClickListener() set, will they respond to multitouch? (ie, can i press 2 buttons at the same instant?) Aug 05 15:18:16 catniya: sounds like horrible ui Aug 05 15:18:53 then again, maybe not; e.g., gamepads Aug 05 15:19:42 pragma-: why 2 Buttons are horrible Aug 05 15:20:10 can someone test my application Aug 05 15:20:14 will both of them work at the same instant? if i press both of them, one with one finger and the other with another Aug 05 15:26:11 http://www.moboing.com/smallshow.jpg - If I wanted to make it so the balloons pop on touch and those stars/glares animate and fall off, what would be the best method/direction in achieving that animation? Aug 05 15:32:50 is there some recommendable multilangual EULA freely avaible which suits android apps? Aug 05 15:34:43 there should be an online service for generating EULAs with preset clauses which are commonly used, would be useful Aug 05 15:38:34 hi. what do you think about an online marketplace web site to let android app Developers, Graphics Designers, Music Composers/Editors, Youtube Video Promoters, App Reviewers list their profile and let others search for them? Is there any similar site? Is there any problem in this business model? Aug 05 15:39:38 mobilegamelabs its good idea Aug 05 15:39:42 why youtube video promoters? Aug 05 15:40:02 kmap2: really? is there any problem in such model? Aug 05 15:40:18 i dont think so mobilegamelabs Aug 05 15:40:20 haskeller: promote via youtube Aug 05 15:40:57 Explain. Aug 05 15:41:28 kmap2: do you think there is a demand? Aug 05 15:41:28 haskeller: youtube users help to make youtube videos Aug 05 15:41:44 if i have 2 buttons and setOnClickListener() set, will they respond to multitouch? (ie, can i press 2 buttons at the same instant?). will it work? Aug 05 15:42:14 what is the actual intent of the website? help developers/designers/etc.. find partners? Aug 05 15:42:16 catniya, after you wrote such code, what happened? Aug 05 15:42:41 mobilegamelabs, http://forrst.com/ Aug 05 15:42:50 And I'm sure there are others. Aug 05 15:42:52 haskeller: i havent tested it yet, downloading the emulator, im trying android coding for the first time Aug 05 15:44:58 Ok, we'll wait for the download to complete. Aug 05 15:45:32 opinions? http://dribbble.com/shots/675056-Icon-for-Toddler-Color-App Aug 05 15:46:14 dreamache, yours? Aug 05 15:46:55 ya Aug 05 15:47:26 Missing some yellow. Aug 05 15:47:36 I kid, I like it Aug 05 15:47:58 How much fo such an icon? Aug 05 15:48:01 unfortunately I'm a much better designer than I am a coder. Aug 05 15:48:07 s/fo/for Aug 05 15:48:26 the other way here. Aug 05 15:49:12 of course depends on the specs of the icon, but $350'ish. Aug 05 15:49:57 i'm primarily a logo designer, I've done near 1800 logos in the last 5 yrs. Aug 05 15:50:12 (loved http://dribbble.com/shots/517936-Orba-Social-Icon-Set-Free) Aug 05 15:51:10 thx, yeah, I'm trying to generate $ in other ways so I'm looking into android apps. I released an app last week and then realized I ruined the launch and should have had a pre-launch strategy etc.. Aug 05 15:51:53 Well, you can set up a page on app.net Aug 05 15:52:01 with "Coming Soon" Aug 05 15:52:06 get excited the app is finished, put it on the market.. hurr durr what's next? ;) Aug 05 15:52:38 dreamache: same lol ;) Aug 05 15:52:49 haskeller: thanks! Aug 05 15:52:53 ah.. yeah I listened to a mobile app launch podcast on mixergy yesterday, which kinda pointed out a good strategy for launching apps. realized I botched mine. Aug 05 15:52:58 haskeller: any more? Aug 05 15:53:33 mobilegamelabs, not that I can think off. Aug 05 15:53:46 dreamache: which mixergy episode was it? Aug 05 15:54:04 mobile app marketing andrew warner Aug 05 15:54:12 it's geared towards iphone but the same concepts apply. Aug 05 15:54:13 you know app.net is in the middle of an attempted pivot to being a paid social network? Aug 05 15:54:37 thanks. I hate marketing! :( Aug 05 15:54:49 Yeah, I read that on dalton's blog. Aug 05 15:55:04 Well not hate, but just don't particularly like. Aug 05 15:55:20 mobilegamelabs, dribble, bisquits, hartli, 500px Aug 05 15:56:39 the podcast summarized is basically build a solid pre-launch email list with the help of launchrock.com or launcheffectapp.com / punchtab.com - launch in the market only once you have a big enough list to get a lot of initial d/l's / reviews. Aug 05 15:56:54 increase email submit incentive with a giveaway of some sort. Aug 05 15:57:17 or, y'know, you could work on the app Aug 05 15:57:27 haskeller: thanks! Aug 05 15:57:37 Leeds: if only quality determined the success of a product. Aug 05 15:57:55 Hey Guys, is there a good office, docs library for android Aug 05 15:58:12 Idealism vs Realism! ;) Aug 05 15:58:12 I wanted to give docs, pdf preview capability in my app Aug 05 15:58:56 hemanshu use google docs Aug 05 15:59:27 dreamache: was it the appsavvy interview? Aug 05 16:00:12 kmap2: like launching google docs in a webview ? Aug 05 16:00:30 when does google play update the new version after uploading apk Aug 05 16:00:40 yes himanshu Aug 05 16:00:58 kmap2: in theory pretty much immediately - in practice, can be up to a few hours Aug 05 16:01:44 what version do u see https://play.google.com/store/apps/details?id=com.calculate.sum Aug 05 16:02:24 1 Aug 05 16:02:39 i have uploaded 2 Aug 05 16:02:56 um... "This application is used to calculate sum of two numbers" - why on *earth* did you publish that? Aug 05 16:03:04 lol Aug 05 16:03:23 Leeds is it not usefull Aug 05 16:03:43 of course it's useful, there's a huge untapped market of down syndrome android owners Aug 05 16:03:59 also, do you own calculate.com? because you shouldn Aug 05 16:04:01 kmap2, do you own calculate.com? Aug 05 16:04:07 Loved the screenshots Aug 05 16:04:10 EPG: high five :) Aug 05 16:04:13 :D Aug 05 16:04:16 thanks dreamache ,i studied the market and did not found such application Aug 05 16:04:25 dedicated to two numbers Aug 05 16:04:30 kmap2: you didn't find any applications which could add two numbers? Aug 05 16:04:45 Leeds only two number Aug 05 16:04:49 installing it Aug 05 16:05:04 ah, because applications which have far far far less functionality than others are important Aug 05 16:05:30 yes Leeds Aug 05 16:05:33 seriously... nothing wrong with something like that as a toy, to learn how to put together an app - but publishing it seems... weird Aug 05 16:05:46 I'd call it "highly specialized" Aug 05 16:05:47 people hate complex applications Aug 05 16:05:57 we'll see Aug 05 16:06:22 kmap2: okay, enough joking now Aug 05 16:06:34 it's a genius strategy.. charge $9.99 for it, the idea becomes so absurd it'll get featured on every major website like techcrunch and bam, profit. Aug 05 16:06:34 ok leeds Aug 05 16:06:44 wow Aug 05 16:06:52 next thing you know he's the next steve jobs Aug 05 16:06:56 millions of people installing i can feel it Aug 05 16:07:24 jonh: you mean... dead? Aug 05 16:07:27 (too soon?) Aug 05 16:08:00 never too soon Aug 05 16:08:09 Works fine. Aug 05 16:08:19 i need postive feedback Aug 05 16:08:24 positive Aug 05 16:08:30 *making a subtract app* Aug 05 16:08:40 But I desperately need a version that can subtract numbers Aug 05 16:08:41 *publishing it* Aug 05 16:08:50 no Aug 05 16:08:51 should make apps that leave nuggets of wisdom for the user Aug 05 16:09:02 u can enter second number as negative Aug 05 16:09:09 "there is no app, just this text" Aug 05 16:09:27 Why do you allow inpu ton the "Result" field? Aug 05 16:09:43 oh haskeller Aug 05 16:09:52 u found a bug thanks haskeller Aug 05 16:10:08 haha Aug 05 16:10:19 kmap2: leave it in, document it as a feature Aug 05 16:10:29 *input Aug 05 16:10:52 no it has to go john ,i want it as straight of art with no bugs Aug 05 16:11:03 And the font is too small. Aug 05 16:11:23 haskeller i will make it bigger Aug 05 16:11:34 thanks haskeller Aug 05 16:11:45 No problem. Aug 05 16:12:31 Does anyone know why showDialog would crash with "android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@41b0f070 is not valid; is your activity running?" every second time I run my app? Aug 05 16:13:16 I'm passing the activity as context, so it's not the issue with "getApplicationContext()" that you'll find all over stackoverflow if you google that exception Aug 05 16:13:57 On dalvik, is copying a reference an atomic operation? Aug 05 16:16:20 Amazing app kmap2. I hope you make back your $25 reg fee! ;) Aug 05 16:16:48 thanks code1 Aug 05 16:17:17 np. you'll probably need to make a pro edition though. Aug 05 16:17:37 i have sent whole day on it Aug 05 16:17:44 spent Aug 05 16:18:05 but from now on you cant put a price on this very app. Aug 05 16:18:16 you can limit it, though. Aug 05 16:18:38 An interval, say -1000 +1000 Aug 05 16:19:30 or have it give a wrong result 1% of the time to entice upgrading to the pro version - "100% accurate edition". Aug 05 16:19:38 i have added ads Aug 05 16:19:50 in the version 2.0 Aug 05 16:20:14 I thought it already ads? ;) Aug 05 16:20:23 I mean adds Aug 05 16:20:31 admob ads Aug 05 16:21:00 of course you have Aug 05 16:22:33 Well good luck with it kmap2. I would d/l it but my phone already has a calculator. Aug 05 16:22:35 you can name it "add (ad-free)" and "ad(d)" Aug 05 16:23:07 EPG wont offer ad-free Aug 05 16:23:41 after i make $10000 ,then i will realease ad-free version Aug 05 16:24:43 what about taxes? Aug 05 16:25:00 making some k$ sounds like business Aug 05 16:25:19 EPG i pay my taxes Aug 05 16:25:25 thats not a problem Aug 05 16:25:49 i have 10 people who manage those things for me Aug 05 16:26:16 Make sure they use your app to calculate the right tax rate. Aug 05 16:26:40 tax rate? code1 Aug 05 16:26:55 tax to pay. Aug 05 16:27:21 which tax code1 Aug 05 16:27:37 the tax you pay Aug 05 16:28:02 thats there headache how they calculate it Aug 05 16:28:38 bill gates never used calculator to calculate his taxes Aug 05 16:29:01 True but it might be nice to direct them to your app, in case they need to add up your total tax bill. Aug 05 16:29:15 is it possible to just make a fragment be the main controller in your app with a single layout (like a hud) ? If so, how does one define onCreateView() in the fragment? Aug 05 16:29:15 yes code1 Aug 05 16:29:24 if there is no parent ViewGroup to add your layout to, that is Aug 05 16:55:19 hi Aug 05 16:56:35 is there an easy way to get context in this example from a global source? http://pastebin.com/FGtrffxp ... i would like to remove that parameter which i typically pass as the MainActivity Aug 05 16:58:52 "public static void alert(Context context, String message) {... }" ...i'd rather have ... "public void alert(String message) { ... }" Aug 05 17:03:26 Context.getApplicationContext Aug 05 17:34:38 Anyone worked with the queueEvent interface to GLSurfaceView's Renderer interface? Aug 05 17:35:12 I am wondering: When I push a Runnable using queueEvent, when does it get executed? I understand that onDrawFrame occurs once for each frame... that much is obvious. Aug 05 17:35:31 I need to understand the relationship of the execution of Runnables pushed by queueEvent and the frame rate. Aug 05 17:35:38 but nothing in the docs says anything about this. Aug 05 18:06:31 is there a good guide on how I can pay taxes to the U.S. for incomes on apps i sold there over google play as a non resident alien? Aug 05 18:10:38 Guys, how could I get Dropbox like expand menu like this http://imgur.com/OeQJg Aug 05 18:22:28 Anyone know how to call a method to happen in a fragment. (The method is in the fragment activity though) Aug 05 18:22:44 fragment parent* Aug 05 18:23:12 Sorry, let me reword that. I need to call a method from inside a fragment, but the method exists in the fragments parent. Aug 05 18:23:56 I think you can do getActivity().method() Aug 05 18:24:13 Will try that out. Thanks Aug 05 18:24:40 may need a cast Aug 05 18:24:43 aye Aug 05 18:25:00 also needs to be in particular lifecycle phases of fragment Aug 05 18:26:32 What kind of cast Aug 05 18:26:40 Sorry I'm not great at programming Aug 05 18:27:07 ((MyActivityInstance)getActivity()).foo(); Aug 05 18:27:14 er, subclass Aug 05 18:27:50 I would caution you against this strategy Aug 05 18:29:15 fn0rd: what is the best practice in that case? Aug 05 18:29:25 technically it's also a questionable thing because fragments aren't supposed to grow dependencies to the activity holding them. According to the android UI design idea, activity is chosen/changed based on the type of device, and the fragments are at most allowed to use the activity through some API. Aug 05 18:29:39 true. Aug 05 18:29:43 that makes sense. Aug 05 18:29:47 still, as long as there's but one activity, it doesn't strictly speaking matter. Aug 05 18:30:04 " the source code for Visual Studio 2012, formerly known as Visual Studio 11, consists of about 50 million lines of code. " holy fuck Aug 05 18:30:17 But, I'm trying to remove a fragment, from another fragment. Aug 05 18:31:02 Check out my stack question please. maybe you can help fn0rd and tnzr: http://stackoverflow.com/questions/11813862/remove-a-fragment-from-inside-a-fragment-activity Aug 05 18:33:29 tnzr: i would try to extract the methods he needs that are in the Activity and put them in a helper class Aug 05 18:33:32 EGamerHDK: at the very least you should leave fragment operations to be done by the activity. Think of it as the master which controls the show. Aug 05 18:33:52 tnzr: the helper class methods can take Activity instance or Context as a parameter Aug 05 18:33:59 that way the activity and fragment are not tightly coupled. Aug 05 18:34:11 fn0rd: cool cool..i'm trying to learn more about how to deal with that kind of stuff from a design perspective Aug 05 18:38:00 Awesome. Do you think one of you guys can answer the question on stack overflow to share your knowledge? It's much appreciated. I've been working on this to get it working for about a week. Aug 05 18:39:21 dealing with a design dilemma of my own right now as well Aug 05 18:39:39 queueEvent() from GLSurfaceView, takes a Runnable. That's where I'm supposed to execute my code. Aug 05 18:39:56 I need to execute code in that runnable that has a reference to the OpenGL ES context object. Aug 05 18:40:06 I don't want to use a singleton. Aug 05 18:40:14 I don't want to use a global. Aug 05 18:40:16 :( Aug 05 18:40:40 but I might have to. Aug 05 18:41:15 bah Aug 05 18:41:25 this queueEvent method ... I'm going to forsake it. Aug 05 18:42:41 I'm thinking I can use AtomicReference Aug 05 18:53:48 Thanks for the help guys. My application works now! All hail: android.support.v4.app.FragmentTransaction transaction = getSupportFragmentManager() Aug 05 18:53:48 .beginTransaction(); Aug 05 18:54:01 haha Thanks again. peace Aug 05 18:57:44 Ahoy! Aug 05 18:59:20 So, I have a VZW droid Razr that I want to play with the build on...(yes it is already rooted et al). Is there a way to actually clone that phone into a virtual machine (Oracle Virtual Box) So that way I can play with it without even remotely hurting my phone? Aug 05 19:00:08 google's search results were non-deterministic. Aug 05 19:07:06 anybody used loaders (specifically for networking with AsyncTaskLoaders?) Aug 05 19:20:52 <[maTa]> is there any way to use viewflipper.showNext() in onReceive() appwidgetprovider with remoteviews? remoteviews.shownext()? Aug 05 19:53:38 I want to exclude ldpi devices, is the new way of doing this? Aug 05 20:08:34 Is there any way to upload new APK:s without publishing them, using the new preview version of Developer Console? Aug 05 20:51:16 I'm losing it over this. The first time I call setcontentview, everything is fine in that I have a black screen. I wait for the surface to be created, and all views get their initial draw at the same time, as desired. Aug 05 20:52:06 but on the second time I do this, I make all views fresh. Yet it draws out of order Aug 05 20:52:26 break points don't show the issue Aug 05 21:01:53 Simple question. Aug 05 21:02:01 You can do an onClick ot a new layout right? Aug 05 21:02:17 I just don't see too many examples of it. Aug 05 21:03:42 Tracks, yes Aug 05 21:03:47 thanks Aug 05 21:27:43 can anyone explainme what Intent(this, otherActivity.class) does? why do i need .class? Aug 05 21:28:56 it specifies the activity you are trying to launch with your intent Aug 05 21:29:53 .class just makes it explicit that your not trying to call a static method, or handle an instance Aug 05 21:31:06 ok Aug 05 21:31:24 in C# it's a Type or a typeof(foo) Aug 05 21:36:46 java.lang.NoSuchMethodError: android.widget.ImageView.getX Aug 05 21:36:58 erm. that an addition since ics? Aug 05 21:41:38 How should an Adapter be notified about data change through a Loader? I was expecting onLoadFinished to be called every time the Loader loaded new data but that is not the case. Aug 05 21:44:41 I've got a problem my toast messages are not appearing. this is my toast message Toast.makeText(this, "Please click on Settings and set the URL to your site" ,Toast.LENGTH_LONG).show(); i put a Log.v command right before which is see in the LogCat window so I know that the method is being executed. Aug 05 21:45:27 devslash, is 'this' pointing to your activity currently being visible? Aug 05 21:45:34 this is in my oncreate Aug 05 21:45:38 I'm not sure if that matter Aug 05 21:45:40 yea Aug 05 21:45:50 i also did getApplicationContext() Aug 05 21:48:05 devslash, are you calling it after super.onCreate() ? Aug 05 21:48:20 yes Aug 05 21:49:25 devslash, try putting it in onResume Aug 05 21:49:38 well that won't irk for my app Aug 05 21:49:42 work Aug 05 21:49:54 well theoretically at onCreate your app is not yet visible Aug 05 21:49:57 i need to display the toast if a condition is true when first running the app Aug 05 21:50:18 save the state then Aug 05 21:53:36 doesn't the activity appear after the call to setcontentview ? Aug 05 21:54:52 devslash, http://developer.android.com/images/training/basics/basic-lifecycle.png Aug 05 21:55:08 according to that it probably appears after onStart Aug 05 21:55:29 If you call setContentView in onCreate, it will appear sometime after onCreate returns Aug 05 21:55:33 ok Aug 05 21:58:44 anyone know where error reports live in the developer console preview? Aug 05 21:59:11 ive gone round in circles but cant seem to find it anywhere Aug 05 22:00:56 its not appearing period Aug 05 22:01:13 Eclipse plugin displaying the line before the last in LogCat anyone? Aug 05 22:01:39 devslash, not even in onresume? Aug 05 22:01:57 no Aug 05 22:04:41 i need to update the position of an imageview at run time and imageview.setX() is not available on my hardware (ics?) Aug 05 22:04:45 how would i do this? Aug 05 22:05:13 <_AtilA_> Hi, I just wanted to know if gcc support for Bionic implies that -nostdlib and linking with the crt is not needed anymore Aug 05 22:05:31 <_AtilA_> Just by adding -mandroid -mbionic options Aug 05 22:05:50 <_AtilA_> I'm talking about gcc 4.6 NDK toolchain Aug 05 22:07:12 how would i set the position of an imageview at run time WITHOU&T using setX() Aug 05 22:09:11 mark, this looks relevant http://stackoverflow.com/questions/3294590/set-the-absolute-position-of-a-view-in-android Aug 05 22:10:00 i wouldnt expect ImageView to declare new methods for handling position, it should really be View Aug 05 22:11:04 it works in the emulator which is running ics Aug 05 22:11:16 You really shouldnt try to position views absolutely. If you need absolute position, do it *within* the view Aug 05 22:11:25 yer, the method is inherited from View, not ImageView Aug 05 22:12:10 this view is a single pixle wide :) Aug 05 22:12:13 its a time marker Aug 05 22:13:25 Anyone have an idea why I am getting a NoClassDefFound error in an android project using Jaxb? (specially javax.xml.bind.JAXB)? Aug 05 22:13:39 I have the JDK 1.7, but I'm using 1.6 I believe because android doesn't use 7 yet. Aug 05 22:14:22 what is the supposed way of notifying an adapter that an asynctaskloader loaded new data? Aug 05 22:15:07 out of interest, surely the nomenclature for making a class compatible with an interface is to "implement" the methods, not "override" them? there is no previous implementation to "override" ... Aug 05 22:15:59 dr_traktor, i pass the data into my adapters through custom methods Aug 05 22:16:00 the @Override keyword is used in Java anyhow Aug 05 22:16:26 true, seems stupid but no point arguing with that Aug 05 22:17:15 what im baffled with is that deliverResults() have no effect on the adapter whatsoever Aug 05 22:17:20 and onLoadFinished is called only at creation Aug 05 22:17:28 seems very counter intuitive to me Aug 05 22:17:43 which one are you subclassing? Aug 05 22:19:04 AsyncTaskLoader Aug 05 22:19:45 I just looked up its source code (Loader). deliverResult should be calling onLoadComplete Aug 05 22:19:50 robb_www: in the interface, there is a trivial declaration of the method, so when you implement, you are providing another declaration, so it is an override technically Aug 05 22:20:15 its moot anyway, i cant use setX() on a view OR an imageView. the method does not exist other than in ICS Aug 05 22:20:45 or the emulator is broken by allowing that method call on the imageView which my phone tells me does not exist Aug 05 22:20:55 mark4, true, but if you look at the link Aug 05 22:21:03 sorry which link? Aug 05 22:21:04 ik missed Aug 05 22:21:11 mark, this looks relevant http://stackoverflow.com/questions/3294590/set-the-absolute-position-of-a-view-in-android Aug 05 22:21:14 "i missed" Aug 05 22:21:18 and i cant type either lol Aug 05 22:21:57 oooh i can set its left margin ! Aug 05 22:22:00 themirror, ok that makes a lot more sense, i was thinking in terms of concrete implementations Aug 05 22:22:01 is there a max left margin? Aug 05 22:23:16 ok that code doesnt really help me tho. they are creating a new relative layout and setting its parameters. this layout is defined within my xml and im not sure how to translate that code for an existing layout Aug 05 22:24:06 think i need to rtfm the = new RelativeLayout.LayoutParams(30, 40); Aug 05 22:24:06 method call used here Aug 05 22:24:08 you can grab the relativelayout by id Aug 05 22:24:27 oh right. ya duh Aug 05 22:25:44 robb_www so your Loader contains a reference to an adapter? Aug 05 22:26:43 honestly i dont have a loader, i thought we were just talking about adapters here Aug 05 22:26:59 my problem is specifically with loader Aug 05 22:27:30 explains why i didnt recognise those methods, all my queries are very light-weight Aug 05 22:28:12 Hey all, is there anyway to intent my way into the android browser and pass a cookie? Aug 05 22:28:30 I can get to the browser with an intent, but I can't figure out how to set a cookie Aug 05 22:28:49 I have an http client that is logged in, and I don't want to force the user to login again in the browser Aug 05 22:29:03 i think im abandoning the loader idea Aug 05 22:31:10 Argh, anyone have any success using JAXB with Android? Aug 05 22:35:52 I've got a problem. my onCreate has a Toast message that just doesn't appear. I've uninstalled the app and reinstalled it using Eclipse Aug 05 22:37:52 are you remembering to call .show() ? simple omission, ive done it myself Aug 05 22:38:27 yea Aug 05 22:39:35 hello hello. How can I set GridView params programatically? I'm trying to use a LayoutParam object, but i'm having trouble Aug 05 22:39:43 in fact eclipse gives you a warning if you don't add .show() Aug 05 22:42:11 devslash have u pastebin'd any code Aug 05 22:42:28 hng on I'm checking something Aug 05 22:42:32 i have 2 android devices Aug 05 22:42:40 hmm Aug 05 22:43:10 the problem of the toast not showing only happens on my android tablet. my phone shows the alert correctly Aug 05 22:44:43 does it show if you put the toast in onResume Aug 05 22:46:05 thebishop, make a layout params object for the type of layout most immediately parent to the gridview and do addView(myGridview, gridParams) Aug 05 22:46:23 no hang on i may have found a solution Aug 05 22:51:23 weird Aug 05 22:53:41 it works on my phone Aug 05 22:55:00 i am using alarm manager to star a service. the service simply checks the filesize of a remote file. should i be running the code in new thread? Aug 05 22:56:40 has anyone had a problem where Toast notifications do not appear on a tablet ? Aug 05 22:59:10 themirror, what's the 'default' layout for an activity with no xml? the gridview takes up the entire screen Aug 05 23:00:18 thebishop, then there's no need for any LayoutParams Aug 05 23:01:40 themirror, ok, then how do i modify the attributes of the gridview? by default it seems to be one column of images along the left side. i'd like to have 3 columns of images, increase their size, and have a text label below each on Aug 05 23:01:46 *one Aug 05 23:03:14 hi there Aug 05 23:03:29 does anyone happen to know things about ADK and Arduinos and such? Aug 05 23:04:16 I already have a couple of Arduinos, and I know ADK is almost the same as Arduino Mega + USB host shield, so I was thinking of buying this: http://iprototype.nl/products/arduino/shields/usb-host Aug 05 23:04:41 but are all usb host shields compatible with adk 2012 and aoa protocol 2.0? Aug 05 23:05:23 if not, does anyone know if this usb host shield is aoa protocol 2.0 compatible? Aug 05 23:05:58 marcolorenzo_: you need the software Aug 05 23:07:11 it is all about using the right software and libraries? Aug 05 23:08:01 arduinos can work with the adk Aug 05 23:08:09 There are tons of tutorials online Aug 05 23:08:13 no matter which usb host shield I use? Aug 05 23:08:13 shouldn't be a problem Aug 05 23:08:17 yeah Aug 05 23:08:21 ok Aug 05 23:08:21 cool Aug 05 23:08:22 it should be standardised Aug 05 23:08:26 I'm not 100 % sure though Aug 05 23:08:30 I will be receiving mine soon Aug 05 23:08:41 But I hate the usb shield Aug 05 23:08:48 I have already half a dock for my phone lying here Aug 05 23:08:53 why do you hate it? Aug 05 23:08:56 but old android phones mostly don't support usb host mode Aug 05 23:09:05 ah Aug 05 23:09:20 and you need to feed it power Aug 05 23:09:23 yeah, it is a bit annoying that there is so little info on making a slave device Aug 05 23:09:27 while the phone can be a good power supply Aug 05 23:09:33 that too Aug 05 23:09:42 I had a good link that you might like Aug 05 23:09:46 just a sec Aug 05 23:09:52 well, I want to make a dock, and it seems google intended to make a dock work as a host Aug 05 23:10:00 so for my purposes atm, it is okay Aug 05 23:10:09 but it would be nice if we could create slaves too Aug 05 23:10:34 I have a galaxy S3, I saw people connecting usb hubs, hard drives and other things to it Aug 05 23:10:58 yeah but thats only possible if the creator implements the code Aug 05 23:11:00 if you want to custom design a game controller, usb host is just annoying Aug 05 23:11:08 samsung does a good job of it, but htc sucks bawls Aug 05 23:11:09 http://android.serverbox.ch/?p=549 Aug 05 23:11:24 here some info, it gives a pretty good view to start with Aug 05 23:11:33 thanks Aug 05 23:11:38 I suppose another reason to liek samsung Aug 05 23:11:39 code wise, I dont think host mode would change much Aug 05 23:11:49 I also choose samsung for its ease to root it Aug 05 23:12:00 samsung doesn't care what the bloody hell you do with their phones Aug 05 23:12:14 yeah my next one will prolly be a samsung Aug 05 23:12:31 I'm tired of flashes my kernel for every feature Iwant extra Aug 05 23:12:36 I wish they had made the S3's menu key a bit bigger Aug 05 23:12:46 that is the only bad thing I can say about it Aug 05 23:12:46 it has a menu key ? Aug 05 23:12:55 its deprecated ... Aug 05 23:13:05 it has three hardware buttons, just liek the old S1 Aug 05 23:13:50 I must admit it is Samsung's fault I don't fully understand Google's ideas about what Android should be like Aug 05 23:13:54 I have seen the software keys Aug 05 23:14:20 but I don't truly understand how Google wants to see it controlled Aug 05 23:14:30 I don't think they know it either Aug 05 23:14:39 but it will come in time prolly Aug 05 23:14:44 I suppose Aug 05 23:14:49 I don't mind much Aug 05 23:14:56 Anyway, gl on your usb project Aug 05 23:15:02 thanks Aug 05 23:15:18 I'll bookmark that link you sent and prolly order that one usb host board Aug 05 23:15:24 post it on hackaday if its finished, could be interesting Aug 05 23:15:43 marcolorenzo_: there are two different interfaces depending on mode you use Aug 05 23:15:45 the guy has multiple articles about usb transfer, its a good read Aug 05 23:15:47 I still have a lot to do Aug 05 23:16:38 p_l|abdn what do you mean? Aug 05 23:17:17 marcolorenzo_: the ADK can be connected either as USB slave or as USB master Aug 05 23:17:25 it can? Aug 05 23:17:35 marcolorenzo_: yes. You have different protocols for those, though Aug 05 23:17:53 if you use it as slave, won't it just be seen as an Arduino Aug 05 23:17:58 instead of a dock or somethign else? Aug 05 23:18:03 S3 has usb host, so it would be easier to connect it as slave, IMHO Aug 05 23:18:05 The change I thought was the one who initiates the connection Aug 05 23:18:21 then program it like normal USB arduino Aug 05 23:18:34 but older phones don't have the feature Aug 05 23:18:38 durp: yes, but it's a low level difference - USB protocol tries to put all logic into host Aug 05 23:18:41 so if you want to support the legacy ... Aug 05 23:19:22 is that a requirement ? Aug 05 23:19:23 I was mainly thinking of using it for myself, though I actually think for a dock, arduino in host mode would be easier Aug 05 23:19:30 there is a lot of documentation on that Aug 05 23:19:36 marcolorenzo_: well, it should work Aug 05 23:19:48 ADK as host uses ADB protocol, iirc Aug 05 23:20:07 if I use the dock as a slave device I probably need to create a seperate app that communicates with it Aug 05 23:20:13 yeah Aug 05 23:20:29 what is the dock actually going to do ? Aug 05 23:20:30 I'm assuming android can actually detect it as being a dock if I make it run in USB host mode Aug 05 23:20:35 well, nothing too fancy Aug 05 23:20:52 I just found out AOA protocol 2.0 supports external speakers, so I probably want one of those Aug 05 23:20:54 you know you can trigger the host mode with the 5th pin right ? Aug 05 23:21:16 then the phone switches in a sort of dock mode for the car Aug 05 23:21:21 and I will use a Nokia 5110 screen to display time and weather info Aug 05 23:21:31 I don't know that, actually Aug 05 23:21:31 nice Aug 05 23:21:33 durp: pins outside USB spec are undefined Aug 05 23:21:42 what ? Aug 05 23:21:48 micro usb has 5 pins ... Aug 05 23:21:58 it does/ Aug 05 23:21:59 durp: I meant mode triggers outside of USB Aug 05 23:22:04 ah Aug 05 23:22:11 and Samsung has tendency to not publish theirs Aug 05 23:22:15 I though it was in there Aug 05 23:22:26 since the fifth pin can trigger the host mode Aug 05 23:22:29 to the point that there's a near-mythical device known as Samsung Any Jack :)( Aug 05 23:22:32 *:) Aug 05 23:22:35 lol Aug 05 23:22:39 didn't know that Aug 05 23:22:46 what is that any jak supposed to do? Aug 05 23:22:56 damn, I am making so many typos Aug 05 23:22:56 which has all of the diagnostic resistances/voltages to trigger different modes of samsung's microUSB ports Aug 05 23:23:01 I thought it was the same for all devices Aug 05 23:23:54 marcolorenzo_: if you put certain resistance on one of the pins, you get serial console on two others, if you put a different value, you get car dock, some other values are dock buttons, etc. Aug 05 23:23:56 so phone makers are actually free to define part of the USB stuff themselves? Aug 05 23:24:14 I just thought it was 4-pin standardized stuff and no room at all for changes Aug 05 23:24:27 the car dock is just grounded Aug 05 23:24:39 marcolorenzo_: well, it's outside of USB spec. Some of it is defined by MHL spec (so there's standard way to recognize you connected a HDMI cable not USB, etc) Aug 05 23:24:55 interesting Aug 05 23:24:55 durp: we once got a list of values for my phone (i5700) Aug 05 23:25:11 durp: among other things it included serial console including bootloader access :) Aug 05 23:25:15 lol Aug 05 23:25:32 damn I would really like to know more about it in my electronics Aug 05 23:25:47 so it just spews out serial and other stuff ? Aug 05 23:26:00 and what range are we talking about ? Aug 05 23:26:25 don't remember, but I think it was 100-500 kOhm Aug 05 23:26:31 I must admit I still only understand it just partially Aug 05 23:26:39 but it sounds heck very interesting Aug 05 23:26:56 cut open a cable and play with pin 5 Aug 05 23:27:02 durp: there's a switching chip that routes different signals based on the values Aug 05 23:27:35 that is pretty cool Aug 05 23:27:40 indeed Aug 05 23:27:49 I'l try it when I have some time Aug 05 23:27:51 I'm off Aug 05 23:28:23 hmm, derp is from a neighbour coutnry it seems Aug 05 23:28:26 it is late aroudn here Aug 05 23:28:33 half past 1 am Aug 05 23:31:13 I think I will just try to follow the Google way with my device Aug 05 23:31:23 they have some info already on docks Aug 05 23:31:30 so no need to make my own slave protocol Aug 05 23:31:37 when they have AOA 2.0 ready for use Aug 05 23:32:18 really need to create lots of bitmaps too for the 5110 screen Aug 05 23:38:42 So, I compiled the OpenSSL library which is in native code, I even specified TARGET_ABI=android-8-armeabi which is API lvl 8 or Android 2.2. My project is also api lvl 8 however when I run the app on an emulator with android 2.2, my application force closes, whereas on my actual phone running 4.0.3 it works flawlessly. What could be the problem? Aug 06 00:04:26 @diki I can't say I have much experience with programming and all, but I have had a bit of a fight with my emulator too Aug 06 00:04:39 sometimes it just seems code runs better on real phones Aug 06 00:04:54 i stopped running on emulators in general... now I just use real phones Aug 06 00:05:12 and to check layouts, I just view in the real-time viewer and set different sizes there... Aug 06 00:05:12 there is a website that lets the code run on many different real phones Aug 06 00:07:06 https://www.appthwack.com/ Aug 06 00:07:16 this might be a nice website for testing Aug 06 00:07:36 I believe you get 10 tests for free each month Aug 06 00:07:52 so you can still test your app on many devices Aug 06 00:08:14 it can give very interesting results Aug 06 00:08:19 I already have a program where I am using fragments and the app screen is split between them. Is it possible to have one of those fragments replaced with a view pager instead. Aug 06 00:10:33 I know how to use the ViewPager once I get it created, but can't seem to see a way to let it exists on the same screen as other fragments that are not contained within itself Aug 06 00:11:03 sorry, can't help with that Aug 06 00:12:43 no problem, just curious if anyone knew. It is kicking my but right now. Do you know if there is a way to separate a fragment activity from the mainactivity. For example Aug 06 00:13:11 when making fragments, you can just use XML to create them, then use the class called from XML to populate the fragment Aug 06 00:13:18 can the same thing be done with FragmentActivities Aug 06 00:13:18 Sweet service, but I can't seem to (easily) find that 10 tests per month. Aug 06 00:13:53 I think I saw it after I signed up Aug 06 00:14:08 there is somethign saying "you have 10 tests left this month" Aug 06 00:14:10 or something Aug 06 00:14:15 Oh, I see. Aug 06 00:14:28 And does one test account for that many devices? Aug 06 00:14:34 Or one test = one device? Aug 06 00:14:38 no Aug 06 00:14:46 one test = a lot of devices Aug 06 00:14:48 dunno how many Aug 06 00:14:52 but definitely quite a few Aug 06 00:14:56 https://www.appthwack.com/devicelab Aug 06 00:15:27 Hum, that's something I've been looking for for quite sometime. Aug 06 00:15:34 one test means they run the app on each of those devices once Aug 06 00:15:57 Really cool, thanks for the tip! Aug 06 00:16:02 yw Aug 06 00:16:12 "You have 5 runs left this month" Aug 06 00:16:18 onyl 5? Aug 06 00:16:21 *only Aug 06 00:16:23 ;( still nice though Aug 06 00:16:49 just 1 test can give you a lot of feedback Aug 06 00:18:10 I'm not compeltely sure how does tests are done, I have done only one run yet Aug 06 00:18:23 and got 296 pieces of feedback Aug 06 00:18:30 262 passes Aug 06 00:18:34 and 34 problems Aug 06 00:19:30 all those 34 problems come down to one activity Aug 06 00:19:37 I think I already know what is wrong with it too Aug 06 00:20:53 you can get a whole log of each error Aug 06 00:21:03 just like you would see exceptions normally Aug 06 00:21:11 They use Robotium, which I know nothing about. Aug 06 00:21:27 In my app I created a BackupAgent and added the neccesary lines to the Android manifest file but then changed my mind and removed the Agent class and the lines in the manifest file. But now my app is crashing on startup on my phone and logcat says ClassNotFoundException and that the missing class is the BackupAgent. But I have searched the project and there is no such reference anywhere in the project. What can be wrong? Aug 06 00:21:51 I have no idea what Robotium is, I just know the website works and it works well Aug 06 00:22:08 Just in case you were wondering about the pricing, like me: http://appthwack.uservoice.com/forums/155761-improvements/suggestions/3030901-take-our-money- Aug 06 00:22:42 so no pricing yet, eh? Aug 06 00:22:44 shame Aug 06 00:22:52 dunno if I was planning to pay Aug 06 00:22:59 but I really can't decide this way Aug 06 00:23:24 it is nice being able to debug on many different devices at once Aug 06 00:23:32 gives you a clear view of things Aug 06 00:23:52 If I had a successful app and/or was a successful freelancer, definitely Aug 06 00:24:17 well, maybe only a professional freelancer would do ;P Aug 06 00:24:29 I am a freelancer Aug 06 00:24:32 professional? Aug 06 00:24:34 not so much :P Aug 06 00:24:53 I am currently working on an Android interpretation of a certain iOS app Aug 06 00:24:54 lol. Aug 06 00:25:06 but the iOS developers are slow woth their communication >.< Aug 06 00:25:11 *with Aug 06 00:25:25 I need some data from them Aug 06 00:25:43 they seem to be having a holiday atm Aug 06 00:26:02 well, I still have enough trials left Aug 06 00:26:07 so no need to pay yet Aug 06 00:26:34 I currently have three activities, and I only need a few more for the settings Aug 06 00:26:41 How do I prevent Android from instantly caching my service as soon as my app isn't in the foreground anymore? I'm trying to keep a network connection alive. Aug 06 00:28:05 decltype: make it a foreground service, give it a notification Aug 06 00:28:14 Yeah, five will do for the time being. Aug 06 00:28:57 http://developer.android.com/guide/components/services.html#Foreground Aug 06 00:32:38 ok ive looked at the RelativeLayout.LayoutParams and i STILl have no freeking idea what RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(30, 40); the 30,40 parameters are Aug 06 00:32:49 thats one line out of a stackoverflow posting Aug 06 00:32:56 30 what? 40 what Aug 06 00:32:57 ? Aug 06 00:33:29 why does hardware-qemu.ini revert if i modify it with vim? Aug 06 00:33:45 quit qemu first? Aug 06 00:33:51 kill it. modify ini then launch it? Aug 06 00:33:58 maybe its overwriting its own ini file Aug 06 00:34:01 the lock files are gone... Aug 06 00:34:45 params = new RelativeLayout.LayoutParams(30, 40); <-- what are the 30/40 parameters passed to this method? Aug 06 00:35:11 Anyone that knows why the BackupAgent settings in AndroidManifest doesn't change when updating the app? Aug 06 00:35:14 width and height Aug 06 00:35:37 The javadocs should tell you this Aug 06 00:36:24 i looked. i did not see any public methods to RelatvieLayout.LayoutParams that geve me any clue at all Aug 06 00:36:40 One more time, just to see. I already have a program where I am using fragments and the app screen is split between them. Is it possible to have one of those fragments replaced with a view pager instead. Aug 06 00:36:59 probablyh because you have to know 40 or 50 totally separate gigs of shit before any of what google fobs off as documentation makes any sense what so ever Aug 06 00:37:00 I know how to use the ViewPager once I get it created, but can't seem to see a way to let it exists on the same screen as other fragments that are not contained within itself Aug 06 00:39:02 this code is no good to me. it doesn help me one iota. i have my view defined in xml. what i need to do is MOVE the ImageView left or right by some distance. Aug 06 00:39:14 unfortunately setX() seems to be ICS only Aug 06 00:39:45 this code creates a view programatically, sets its relative position to some NON relative value Aug 06 00:40:07 what i want to do is programatically increment or decrement the views RELATIVE x position Aug 06 00:40:21 not set it to some specific location. Aug 06 00:40:35 its location is defined in the relative layout in main.xml Aug 06 00:40:57 @Leeds: are you around? Aug 06 00:41:14 this code creates a relative layout parameters, stuffs it with an X and a Y then applies that to the view Aug 06 00:41:20 totally no good to me Aug 06 00:41:49 i need to move a relative layout relative to its "relative" home position Aug 06 00:41:59 josepharmbruster: maybe... Aug 06 00:42:21 Leeds: so, you know how I brought up that Verify Error the other day? Aug 06 00:42:32 mark4: do you know what a relativelayout actually is? Aug 06 00:42:35 josepharmbruster: yup Aug 06 00:42:38 Leeds: I've been sick a few days and started feeling better tonight.... so I took another stab at it... Aug 06 00:42:57 Leeds: Looks like it has something to do with the number of instructions in one method.......... Aug 06 00:43:29 yes. every view in the layout is positioned relative to some other view or to some position in the root view Aug 06 00:43:40 i.e. relative to bottom right. relative to @id/something Aug 06 00:43:40 you've got a massive method and it doesn't work? Aug 06 00:44:06 Leeds: yes... it fails to verify the class because it doesn't like the number of instructions in a method. Aug 06 00:44:28 so once you split up the method into separate readable methods, you're good? :) Aug 06 00:44:33 I am kind of looking forward to that Mars project Aug 06 00:44:40 those photos are going to be interesting Aug 06 00:44:46 marcolorenzo_: did it land? Aug 06 00:44:47 i have a an ImageView. it has been layed out within main.xml. what i need to be able to do is move it right or left of where ever main.xml put it Aug 06 00:44:58 it has yet to, I believe Aug 06 00:45:05 I believe it will land in 5 hours Aug 06 00:45:12 programatically. i was using setX() but that method does not exist on my hardware even tho it exists in the emulator Aug 06 00:45:23 emulator is ics so i assume the method is ics only Aug 06 00:45:36 Leeds: in a perfect world, yes. Sometimes you just need a lot of math in one place, see SGP4. Aug 06 00:46:11 mark4: so assuming you do know Java already - the RelativeLayout.LayoutParams docs looks relatively simple to understand Aug 06 00:46:26 josepharmbruster: really... Aug 06 00:46:31 don't know what sgp4 is Aug 06 00:47:12 drpenguin prolly will land in 5 hours, I believe. I am not particularly interested in the whole extraterrestial life business. I just want to see Mars surface in a somewhat high resolution Aug 06 00:47:13 Leeds: at least I got to the bottom of it... Aug 06 00:47:21 true :) Aug 06 00:47:22 I wonder what the atmosphere looks like Aug 06 00:47:35 Leeds: what's frustrating is this same Exact code built and ran fine on my old phone with gingerbread.... ... . quite a wtf moment. Aug 06 00:47:41 leeds im not exactly expert at java and the code im finding to move an imageview about the display programaticaly creates the layout, the layout parameters, the imageview. and does a shitload of other stuff that does not help me Aug 06 00:47:57 maybe im not even doing what im trying to do in any way someone with a clue would do it Aug 06 00:48:00 anyhow, i'm out... I figured I would share my findings. Aug 06 00:48:21 bedtime for me, bye guys Aug 06 00:48:25 quite an interesting IRC this is Aug 06 00:49:10 i have a bar that shows day/night and the transitions between. so the left half of the bar is bright for daytime. then thers a transition to dark for night time. then a transition back to light... the view im trying to move is a vertical bar over the top of this that i want to move as an indicator of where on that timeline the player currently is Aug 06 00:49:48 so i have a 121x20 bitmap. and i have a 10x20 bitmap i want to position over the top at an x offset based on time Aug 06 00:49:53 how would you do that Aug 06 00:50:31 because fudging the indicators margin/padding/whatever just seems like a KLUDGE fi Aug 06 00:51:13 leeds. how would YOU do that? Aug 06 00:52:01 I'd probably do with with margin/padding/whatever :P Aug 06 00:52:20 totally kludgificated Aug 06 00:52:35 this setX() does it nicely if only that method were available prior to ICS Aug 06 00:53:23 and my java skills are obviously not up to par because NONE of the example code ive found for repositioning a relative layout even gives me half a clue how to do this Aug 06 00:53:31 right Aug 06 00:53:45 you don't reposition a layout - you reposition a view within a layout Aug 06 00:54:00 thats what im doing. Aug 06 00:54:11 "repositioning a relative layout" Aug 06 00:54:50 alternatively, just make it a simple imageview and draw your bitmap into it at the appropriate position Aug 06 00:54:51 ok so instead of splitting hairs maybe you could help me figure this out? Aug 06 00:55:17 hrm. THAT sounds somewhat better Aug 06 00:55:38 hrm? Aug 06 00:55:48 okay, I'll go back to my breakfast Aug 06 00:56:33 oh man Aug 06 00:56:42 my brain's fucked up from all this debugging... Aug 06 00:57:58 Anyone familiar with ViewPager and Fragments Aug 06 01:10:22 grrr Aug 06 01:10:35 Egit just deleted 6 hours worth of work Aug 06 01:12:06 evening Aug 06 01:13:01 4 hours and 18 minutes :) Aug 06 01:13:34 i'm (very) new to android programming and wondering what direction to go… i want to make a grid of buttons that extends beyond the screen in both directions, can be dragged either way, and 'snaps' to the button grid so the layout always looks the same, even when buttons have been dragged around Aug 06 01:15:48 Does anyone else have a problem with screen redraw the second time a surfaceview attaches to the window? The first time is fine, but every other time the non-surfaceview screen portion is slow to clear Aug 06 01:17:36 ultra-, that's cool for a initial project. go for it. Aug 06 01:19:14 i'm a little lost with the different view types, and i don't think any particular one does what i want… can you give me an idea of what to look into? Aug 06 01:19:21 CURIOSITY LIVESTREAM: http://www.livestream.com/spaceflightnow Aug 06 01:19:23 i'm not looking for specific code, just a direction of what to research Aug 06 01:20:19 Gridview? Aug 06 01:20:41 it looks like gridview might only scroll in one direction Aug 06 01:20:44 i'll look at it some more Aug 06 01:22:51 is there a way to use tabsAdapter outside of a fragmentactivity (i.e. in a regular activity extension) Aug 06 01:24:41 nm Aug 06 01:40:21 can someone help me here? i installed the android soruces plug in to eclipse and it worked, but when i reset my pc i can no lnger browse sources. i tried re-nstalling the plug in but i still can't browse sources Aug 06 01:40:35 running ubuntu 12.04 Aug 06 01:41:45 sysRPL: was eclipse updated? Aug 06 01:41:51 no Aug 06 01:42:16 which eclipse are you using? Aug 06 01:42:21 indigo Aug 06 01:42:34 Version: 3.7.2 Aug 06 01:43:01 Is there anyone to do a ViewPager with the mainactivity not extending FragmentActivity, but maybe another class does Aug 06 01:43:06 *anyway Aug 06 01:43:25 sysRPL: id try reinstalling eclipse Aug 06 01:43:32 oh lordy Aug 06 01:43:33 no Aug 06 01:43:49 do you have the android sources add on? Aug 06 01:44:08 sysop2, instead of eclipse try intelij idea. you will NOT regret doing so Aug 06 01:44:09 can you tell me where it put the source files so i can check my disk? Aug 06 01:44:12 sysRPL: I dont know? is it apart of adt? Aug 06 01:44:28 eclipse is horrendously badly designed and worsely implemented Aug 06 01:44:54 http://www.androidpolice.com/2011/12/22/gold-for-android-developers-add-aosp-source-code-to-eclipse-with-the-android-sources-plugin/ Aug 06 01:45:16 sysRPL: by the way, why is "reinstalling eclipse" not an option for you? Aug 06 01:45:58 drpenguin, i doubt it would fix the problem and i am afraid it would get hopelesly fubared Aug 06 01:46:10 sysRPL: ok then ;) Aug 06 01:46:48 drpenguin, just fyi ... what i am talking about is the ability to caret over an android.jar type/method, press f3, and open the correct source file Aug 06 01:49:03 i agree with wozniak's attitude towards the cloud http://phys.org/news/2012-08-apple-co-founder-wozniak-cloud.html Aug 06 01:49:12 or i should say, i have the same attitude Aug 06 01:49:46 philosophical question: whats the point of an open platform when its focal point is a closed system you have no control over ? Aug 06 01:50:12 kinda wish diaspora like things would take off Aug 06 01:51:09 Anyone familiar with ViewPager at all? I am either trying to do something that is not allowed or am missing something on how to do it? Aug 06 01:53:52 g00s: the cloud is over hyped Aug 06 01:54:00 g00s: hence why everyone wants it Aug 06 01:54:11 08-05 20:42:20.757: ERROR/TrafficStats(1647): [QCTMM]tryAll index=1 Aug 06 01:54:16 what is this thats spamming my logcat? Aug 06 01:54:32 mark4: maybe a lane is closed and traffic is backed up? Aug 06 01:55:06 maybe someone who knows can answer :/ Aug 06 01:55:17 :( Aug 06 01:55:37 my app crashes. i get NOTHING what soever in logcat other than that shit there Aug 06 01:55:46 error wise i mean Aug 06 01:55:59 what is traffic stats? Aug 06 01:56:01 mark4: thats, rather odd Aug 06 01:56:04 g00s: interesting article. i wonder, genuinely, if the cloud will force legislative changes in the future that redefines what it really means to own content digitally Aug 06 01:56:09 and what minimum rights you have over the content you own Aug 06 01:56:14 mark4: do you know *relatively" where its crashing at? Aug 06 01:56:25 I am currently using theme Theme.Black.NoTitleBar.Fullscreen ; how do I add windowBackground null to this? Can I append a qualifier to that theme to disable it? Aug 06 01:56:51 i know exactly where its crashing at. im sure i can fix the crash even without logcat, right n ow i want to know wtf that traffic stats bullshit is Aug 06 01:58:20 http://forum.xda-developers.com/showthread.php?t=1033306 <-- no answers at all Aug 06 01:58:27 just more "yea i see that too!" Aug 06 01:58:47 mark4: does the trafficstats log coincide with when the crash occurs? Aug 06 02:00:10 no. Aug 06 02:01:14 theres nothing on the web to tell me what the fuck that QCTMM bullshit is Aug 06 02:01:18 wtf is qtcmm? Aug 06 02:01:19 mark4: k Aug 06 02:01:38 romain could probably tell us if he were here Aug 06 02:01:47 but then hed have to kill you Aug 06 02:02:30 romainguy: how can I combine NoTitleBar with Fullscreen and windowBackground null all in one? Aug 06 02:05:58 I want a list of buttons that take me to other list of buttons. Aug 06 02:06:06 A layout witha list of buttons. Aug 06 02:06:17 What type of layoutt would you recommend? Aug 06 02:06:27 How do I handle that on onClicks? Aug 06 02:06:39 I can't find it in the docs. Aug 06 02:07:45 Is it possible to have regular fragments beside a ViewPager (that has its own fragments). Aug 06 02:09:12 Why is this information so hard to find; i should be really easy. Aug 06 02:09:22 ill read layouts again. Aug 06 02:11:01 lol Aug 06 02:11:08 I should have read layouts before iasked that question Aug 06 02:11:09 nevermind Aug 06 02:11:14 im so lazy Aug 06 02:41:38 The first time I attach my SurfaceView to the window with setContentView, the previous screen clears immediately. However, after changing layouts and trying to reattach it, the screen does not clear uniformly. The place where the surfaceview belongs clears right away, but the rest of the screen lags behind before updating. Any ideas? I've tried breakpoints, using a new surfaceview, but nothing solves or hints at why this is happe Aug 06 02:46:56 Anyone on here familiar with ViewPager and Fragments **** ENDING LOGGING AT Mon Aug 06 02:59:58 2012