**** BEGIN LOGGING AT Sat Apr 07 02:59:59 2012 Apr 07 02:59:59 Hey, I have a wierd bug with the ProgressBar, has anyone came across this, it seems to be cut at the edge picture: http://i.imgur.com/eVVDL.png Apr 07 03:04:33 bored_worker: progressbar or seekbar? Apr 07 03:05:07 have you tried setting margin's on left and right to see if it still is cut off? Apr 07 03:06:12 QubeZ: progressbar Apr 07 03:06:35 ill give that a go, i think they have some already but ill check Apr 07 03:09:19 didnt seem to affect it Apr 07 03:09:31 im out of ideas :\ Apr 07 03:09:32 still cutting off where it wants to put the end drawable Apr 07 03:09:35 odd Apr 07 03:09:39 maybe its android specific Apr 07 03:09:49 never use the reg progbar, i've just used the indeterminate one in my app Apr 07 03:10:01 might get rid of it Apr 07 03:10:07 dont think its totally needed Apr 07 03:11:11 cheers anyway Apr 07 03:11:21 np Apr 07 03:22:44 anyone else use Robolectric + library projects + r17? Apr 07 03:27:18 not i Apr 07 03:28:55 What the heck, has anyone ever had problems with mediaplayer after it was working perfectly? Apr 07 03:30:29 hey all.. I'm looking for an example where I can display a compass icon that points to the direction of a destination location in a ListView... (Example: https://encrypted-tbn3.google.com/images?q=tbn:ANd9GcSjwX-6SoJOWEzUtYucpXVF5TyznFclrN-0mB2tgQx0nHUSG5jl Apr 07 03:30:46 https://encrypted-tbn3.google.com/images?q=tbn:ANd9GcSjwX-6SoJOWEzUtYucpXVF5TyznFclrN-0mB2tgQx0nHUSG5jl Apr 07 03:31:01 http://www.fishbox-tales.org.uk/wp-content/uploads/2011/11/device-2011-11-27-161908.png Apr 07 03:31:26 JakeWharton_: looking at roboelectric now though, thx Apr 07 03:31:30 Yup.. better link: Apr 07 03:31:31 http://www.fishbox-tales.org.uk/wp-content/uploads/2011/11/device-2011-11-27-161908.png Apr 07 03:34:43 radio check Apr 07 03:34:47 anyone here? Apr 07 03:34:57 no Apr 07 03:35:07 looking at it because it's broken? Apr 07 03:35:34 jeppy.. must be reenacting the Christ execution today Apr 07 03:37:32 Robolectric is one of those libraries where it was a fantastic idea from the start but they only implemented what they needed Apr 07 03:37:55 I'll ask around later.. this channel is fucking dead 2night Apr 07 03:38:10 The view management between the activity and the window is done in a completely incorrect manner Apr 07 03:38:32 JakeWharton_: how so? Apr 07 03:38:37 any activity of library that relies on the Window rather than the Activity is left picking up scraps Apr 07 03:38:45 look at ShadowActivity and TestWindow Apr 07 03:38:57 it's absurd Apr 07 03:40:04 looking at shadowactivity, where are you referring to? Apr 07 03:40:07 just trying to learn Apr 07 03:40:36 well, the fact that it maintains the content view Apr 07 03:40:44 the activity does zero content management on true Android Apr 07 03:41:15 so anything that relies on the Window having view management is instantly broken Apr 07 03:41:50 granted that's arguably edge-case stuff but even common patterns aren't supported Apr 07 03:41:58 anything support library related? you're on your own Apr 07 03:42:15 so you're trying to use this for ABS and sol? Apr 07 03:42:32 I'm not, but others are Apr 07 03:42:33 and fragments Apr 07 03:42:35 and loaders Apr 07 03:42:38 and viewpagers Apr 07 03:42:46 and anything else this side of Android 3.0 Apr 07 03:43:37 it is a perfect exemplification of how to solve a problem incorrectly Apr 07 03:43:50 JakeWharton_, actionbarsherlock? Apr 07 03:43:53 fork them =) Apr 07 03:43:59 if you're calling setContentView(R.layout.my_simple_layout) and findViewById(R.id.my_simple_id) you're fine Apr 07 03:44:10 but anything beyond that and you are in no-man's land Apr 07 03:44:13 we did Apr 07 03:44:29 we have our own implementation with fragments, viewpager, ABS, loaders Apr 07 03:44:36 ABS is win Apr 07 03:44:46 thank you very much for making it :P Apr 07 03:44:57 you are welcome Apr 07 03:45:04 I'm glad you're getting good use out of it Apr 07 03:45:06 or at least I hope you are Apr 07 03:45:18 i'll be implementing it in the next version of TDM so i'll be appreciative soon Apr 07 03:45:26 Oh man, it makes backwards compatibility so much easier Apr 07 03:52:01 JakeWharton_, check out my plugin 0.2.0, it now includes device support Apr 07 03:52:24 JakeWharton_, so you can android:install and/or android:run Apr 07 03:52:38 JakeWharton_, or, if you want to be really lazy ~android:run Apr 07 03:52:56 * pfn needs to figure out how testing works on android to setup something similar Apr 07 03:54:36 JakeWharton_: can ActionMode not be used in a SherlockListFragment? Apr 07 04:06:28 Can you not put buttons inside a scrollview? Apr 07 04:06:38 It says something about only having one child, and I don't know java that well Apr 07 04:07:02 that is not java Apr 07 04:07:04 that is android Apr 07 04:07:14 and what you generally do is put something like a LinearLayout inside a ScrollView Apr 07 04:07:20 which can then contain whatever you want Apr 07 04:07:27 but a SV can only have one immediate child Apr 07 04:10:42 Oh I gotcha Apr 07 04:10:47 Thank you. Apr 07 04:13:30 Do ScrollViews not take up all of the width? Mine is cutting the width short, even though I have fill_parent Apr 07 04:13:35 <`teh1> hey guys, any ideas on how to stop the world from "looping" in map view? it's causing my overlay items to jump around, meaning the lines i draw between them go nuts Apr 07 04:18:51 looping i.e. refreshing? Apr 07 04:18:57 we need to see code for your mapactivity Apr 07 04:19:13 http://www.forbes.com/sites/alexknapp/2012/03/30/are-apps-the-future-of-book-publishing/ Apr 07 04:19:20 oh god fucking no - please no Apr 07 04:19:27 no app per book pls Apr 07 04:20:06 i'm pissed that this kindle ebook i want is $40, and the print book is $42 Apr 07 04:20:14 crooks Apr 07 04:22:18 <`teh1> QubeZ: as in if you keep scrolling in a direction the world flips back to the other side Apr 07 04:22:31 <`teh1> to make it seamless Apr 07 04:22:49 <`teh1> but it causes the overlay items to jump as well which makes the lines drawn in between them super crazy Apr 07 04:23:23 oh, i've never flipped view like that on map Apr 07 04:23:31 i've just dealt with "local to the user" Apr 07 04:23:38 you're drawing a path or something? Apr 07 04:24:02 <`teh1> QubeZ: im talking about … uhh Apr 07 04:24:07 <`teh1> fuck ill jut video record it Apr 07 04:24:19 heh k Apr 07 04:24:22 <`teh1> ios solves this buy just drawing its overlays on every map no matter how many times its reepeated Apr 07 04:24:26 <`teh1> instea dof moving the overlays Apr 07 04:27:13 When doing screencapture in DDMS how can you resize the window? Apr 07 04:28:06 you don't Apr 07 04:28:11 you resize using an image editor Apr 07 04:28:39 g00s, total ripoff Apr 07 04:28:50 g00s, I will always pirate ebooks until the price becomes reasonable vis a vis hardcopy Apr 07 04:29:18 or when every hardcopy comes with an e-copy Apr 07 04:30:14 pfn: i hate the ebook situation Apr 07 04:30:30 oreilly is awesome, though Apr 07 04:30:33 wheel of time series is ending this coming january, finally Apr 07 04:30:34 Well the window is bigger than my screen height Apr 07 04:30:35 It cuts off Apr 07 04:30:46 but the ebook won't be out until the following april Apr 07 04:30:48 ... Apr 07 04:31:30 Oh nvm I just hit save, thanks pfn. Apr 07 04:32:44 Anyone know why my scrollview won't take up the whole parent? Image: http://puu.sh/ojoM code: http://pastebin.com/htCwHtcj Thank you Apr 07 04:33:00 The right side is the part that I want to go longer Apr 07 04:38:25 how would I initiate my broadcast receiver to have its onReceive called right away? Do I just set the PendingIntent with alarm to System.getTimeInMillis() so it goes off right away? Apr 07 04:38:28 T-Dub|DlolPics, what exactly isn't taking up the entire view Apr 07 04:38:44 I'll use my awesome paint skills, one second Apr 07 04:38:46 QubeZ, why would you do that Apr 07 04:39:58 pfn: I have preferences setting to set interval for syncing gtasks... I want it to run as soon as a setting is changed. Should I just separate out the code into another class so onReceive shares it with Prefs? Apr 07 04:40:13 right now I have all of the code in onReceive, I just want it called instead of having to duplicate in Prefs Apr 07 04:40:19 probably bad design Apr 07 04:41:15 pfn, http://puu.sh/ojsN Apr 07 04:42:08 T-Dub|DlolPics trying to get it to fill? Apr 07 04:42:16 Oh it's motorola, I hate how they do dialogs. Apr 07 04:42:23 Yeah, I'm already using fill_parent Apr 07 04:42:38 Try making a custom class which extends Dialog Apr 07 04:42:43 And treat it the same way. Apr 07 04:42:55 I can "cheat" and if I do like 500dp for the width and it will stretch it, but that isn't really the way I want to do it Apr 07 04:43:04 T-Dub|DlolPics: did you create that font/graphics for that screenshot, or is that a theme you chose and installed or what? cuz it's fucking ugly. Apr 07 04:43:06 The diloag will extend if I like make a longer text. Apr 07 04:43:17 T-Dub|DlolPics make a custom dialog class Apr 07 04:43:28 I don't think it's the dialog class, look, sec. Apr 07 04:44:12 nice white square on the notification bar Apr 07 04:44:18 that's the only thing that's not so ugly about it Apr 07 04:44:19 T-Dub|DlolPics like so. http://pastebin.com/RnqpU4EV Apr 07 04:44:49 Write your own dialog and don't depend on motorola configurations. Apr 07 04:44:53 See if that fixes it. Apr 07 04:45:21 I had to extend Dialog also in my project, looked all jacked up on my Razr initially Apr 07 04:45:24 Well just to show you guys, but I think I figured what I'll do. Apr 07 04:45:34 http://puu.sh/ojuc see the dialog will extend if it needs to Apr 07 04:45:42 It should for the scrollview but apparently it doesn't care about it Apr 07 04:45:45 nice, even uglier Apr 07 04:45:58 T-Dub|DlolPics do what I just showed you. http://pastebin.com/RnqpU4EV Apr 07 04:46:24 thats a HUGE dialog Apr 07 04:46:43 make it smaller, too much whitespace to the right... you can probably arrange those components better Apr 07 04:47:05 Yeah it was an example to show that the dialog extends Apr 07 04:47:46 T-Dub|DlolPics i'm not talking about making a dialog extend, i'm talking about writing a dialog programmatically. Apr 07 04:48:22 Yeah I will use that, thanks Joe. Apr 07 04:51:35 omg http://www.youtube.com/watch?v=j1uSEtlXFC0&feature=relmfu Apr 07 04:52:46 wow thats dumb Apr 07 04:53:32 it's so hilariously bad Apr 07 04:54:26 lyrics probably sounded good on paper Apr 07 04:54:31 stupid white boy walk Apr 07 04:54:41 'oh, i'm talking, look, i better move my arms so they know i'm walking' Apr 07 04:54:45 s/talking/walking/ Apr 07 04:55:02 why the fuck do white people move their arms to show that they're walking? Apr 07 04:55:18 white ppl iz crazy Apr 07 04:58:10 Disliked. Apr 07 04:58:26 I think I lost some will to live while watching that waste of space. Apr 07 04:59:05 Today's humans: clumsy naive retards. Apr 07 04:59:43 For a LinearLayout, is there a way to fill like a percentage? Like instead of fill_parent it's 75% or something? Apr 07 05:00:05 T-Dub|DlolPics: look at layout_weight Apr 07 05:00:18 I'm trying that but it isn't working for me Apr 07 05:00:42 look at layout_weight on children of the LL and layout_weightsum for the parent LL Apr 07 05:00:53 <`teh1> QubeZ: did you get my PM Apr 07 05:01:04 `teh1: i did, that is jacked up Apr 07 05:01:12 <`teh1> that's default android behavior -_- Apr 07 05:01:15 <`teh1> fuckin lamo Apr 07 05:02:06 if thats true, ya thats dumb Apr 07 05:03:21 the file name expresses your frustration Apr 07 05:03:25 <`teh1> yeah Apr 07 05:03:29 <`teh1> android is a fucking bitch Apr 07 05:03:31 <`teh1> hate. Apr 07 05:03:45 <`teh1> ios works fine Apr 07 05:04:39 there are good and bad in both platform Apr 07 05:04:50 fucking wicked cool http://www.gizmag.com/autodesk-octocopter-3d-images/22083/ Apr 07 05:04:52 dont judge Android based on how map's work in one vs the other Apr 07 05:06:10 maps ? Apr 07 05:06:25 * g00s is late to the conversation Apr 07 05:06:36 man i want to get into robotics Apr 07 05:06:46 g00s: yeah, fucking wicked cool invasion of privacy Apr 07 05:06:57 then again, I don't believe in privacy in the first place. Apr 07 05:07:09 oh yeah, not cool for invasion of privacy. Apr 07 05:07:17 We're all of this world, which we do not understand; the individual is a contradiction of the unity of existence. Apr 07 05:07:21 i don't want to be hiking and followed by a quadricopter Apr 07 05:07:50 unity of existence ? wut Apr 07 05:07:59 * pragma- nods solemnly. Apr 07 05:08:15 The causal flow, young grasshopper. Apr 07 05:08:49 Everything is all one. Apr 07 05:08:49 re: weights, you need to make the children's widths = 0dp to make it work properly Apr 07 05:08:56 or heights if the LL is vertically oriented Apr 07 05:09:12 *nod* Apr 07 05:17:48 implementing recurring tasks is tricky Apr 07 05:18:51 wondering if its best to only set the next alarm after the first one fires or just setRepeating(..) Apr 07 05:33:43 hey Apr 07 05:38:38 so ever since android market automatically updated to googleplay store; EVERYTIME I open up play store and go to update programs that need updated, it automatically forces close everytime. I have tried using ROM manager to "fix permissions from force closing", tried uninstalling/reinstalling, tried going under "manage applications" and choosing clear cache, clear data (force close) and Apr 07 05:38:38 nothing seems to work; still forces close when trying to update programs...ANY ideas without having to reformat and start fresh? maybe some of the market database files got corrupt somehow? and can possible delete anything market related and retry to install? Apr 07 05:43:02 I am not pragma-. Apr 07 05:43:03 #android or #android-root Apr 07 05:43:20 seems everyone is away in those channels Apr 07 05:54:00 Quagmire3: if we cared, we would be there too Apr 07 05:54:06 :) Apr 07 05:54:18 so you are in a quagmire Apr 07 05:56:30 oh you Apr 07 05:57:33 im in a quagmire? Apr 07 06:10:21 Siri, which has been well-received, translates spoken commands into actions for the iPhone, such as looking up information or making appointments. Google is reportedly working on voice-recognition software for Android. Apr 07 06:10:22 ... Apr 07 06:10:28 journalists Apr 07 06:13:15 <`z> JOURNALISTS Apr 07 06:18:18 hey guys, I have some noobie question Apr 07 06:18:37 something happened or I hit something now my R. no longer works Apr 07 06:18:53 why did you hit your R ? Apr 07 06:19:03 it must have fallen off Apr 07 06:19:03 says R cannot be resolved to a variable Apr 07 06:19:11 clean the project Apr 07 06:19:15 whats a common rookie mistake here Apr 07 06:19:24 using eclipse ;) Apr 07 06:19:31 import it? Apr 07 06:19:42 ummm Apr 07 06:19:46 android:visibility="8"/> Apr 07 06:19:49 this is also wrong Apr 07 06:20:12 yeh incorrect xml makes it unpossible to make R Apr 07 06:21:13 visibility="8" ? Apr 07 06:21:22 you know it only accepts odd values Apr 07 06:22:10 ooOOOoo public static final int 1=0x7f020000; Apr 07 06:22:35 did you say android:id="1" Apr 07 06:22:55 fixed it Apr 07 06:23:02 I had a picture with the file name of 1.png Apr 07 06:23:10 in my drawable folder Apr 07 06:23:19 android doesnt like that Apr 07 06:23:23 thanks guys! Apr 07 06:23:30 try a file with a space Apr 07 06:23:43 int my drawable=0x1234567890; Apr 07 06:26:29 android:visibility="Where_Can_I_FindThese?" Apr 07 06:28:15 nice, nice Apr 07 06:28:20 this is goign to be a fun game Apr 07 06:43:07 so i guess colloquy officially is 2.4, finally. Apr 07 06:43:17 pile of poo Apr 07 06:46:02 g00s: it makes me sad that Colloquy is the least offending client I could find on OSX :) Apr 07 06:46:31 i haven't tried textual, some people like that. Apr 07 06:46:45 yeah, i am surprised there aren't more choices Apr 07 06:47:11 Apple users are probably too good for something as crude as IRC :) Apr 07 06:53:58 romainguy_: if you dont mind me asking, what kind of branching scheme do you like for your personal android projects in git ? Apr 07 06:54:16 what do you mean? Apr 07 06:55:14 how do you organize your branches … which get merged where, which ones are long living, etc. for example, here is one way http://nvie.com/posts/a-successful-git-branching-model/ Apr 07 06:55:20 but its too complcated for me Apr 07 06:55:34 yeah I don't do that Apr 07 06:55:43 most of the time I have a single branch Apr 07 06:55:53 pfn uses another one like this: http://www.ustwo.co.uk/blog/branching-strategies-with-git/ Apr 07 06:56:03 and when I (rarely) need to work on two bug fixes at the same time I create branches as needed Apr 07 06:56:19 you you pretty much just do all of your stuff on master ? Apr 07 06:56:28 we all do Apr 07 06:56:42 unless we work on a special project Apr 07 06:56:48 then we create a branch for that project Apr 07 06:57:20 towards the end of the release master turns into a release branch Apr 07 06:57:31 and we work in the release branch Apr 07 06:57:37 ah Apr 07 06:57:42 that second link is very close to what we do Apr 07 06:58:03 except we create a different release branch per release (more or less) Apr 07 06:58:13 ok, thanks much - i think i can understand the 2nd one :) Apr 07 07:00:16 Cannot cast from Object to int Apr 07 07:00:27 romainguy_: the fella that lives next to me works for adobe on color correction algorithms; he recommended this book to me. http://www.amazon.com/Photoshop-LAB-Color-Adventures-Colorspace/dp/0321356780 … its very interesting, but a bit over my head. so i like it :) Apr 07 07:00:35 ListIterator itr = numberset.listIterator(); int get =(int) itr.next(); Apr 07 07:00:40 oh yeah Apr 07 07:00:44 I've read that book Apr 07 07:00:45 why I can do this in regular java but not in android? Apr 07 07:01:22 i wonder if i can apply this to lightroom 4; i don't know enough about either yet Apr 07 07:01:36 g00s: I found this book interesting 6 or 7 years ago but newer algorithms have rendered most Lab tricks useless to me Apr 07 07:01:44 (actually I don't use any of them anymore) Apr 07 07:01:45 mantas322: try casting it to "Integer" Apr 07 07:01:49 hmm Apr 07 07:01:56 mantas322: it should work, what's the issue? Apr 07 07:02:18 that worked, thanks jeppy Apr 07 07:04:58 you can't cast an object to int in java Apr 07 07:05:19 you can cast to Integer and then autobox Apr 07 07:08:59 romainguy_: can you recommend any books like this, but maybe more general and not tied to a tool? the only thing i could find is http://www.amazon.com/gp/product/0240813359 … i guess color correction in general Apr 07 07:09:24 i might pick up lr4, but i'm still not that interested in buying ps Apr 07 07:09:38 no idea Apr 07 07:09:42 ok Apr 07 07:09:47 stop looking for books, just do it :) Apr 07 07:09:52 :D Apr 07 07:10:12 i 'did it' for several years and f'd up hundereds of could-be great shots Apr 07 07:10:26 now i'm trying to learn for real ;) Apr 07 07:11:45 always save the originals Apr 07 07:11:52 * pfn & Apr 07 07:11:59 yeah, i do. but there is no un-suck filter :P Apr 07 07:12:15 * g00s is learning about composition too Apr 07 07:15:29 photography is subjective Apr 07 07:17:23 is there something I can do with context or something that would restart public void onCreate(Bundle savedInstanceState) { Apr 07 07:17:35 I have some code that populates some buttons once Apr 07 07:17:59 I want that to happen again and again Apr 07 07:18:09 when the user clicks a button Apr 07 07:18:10 create a method and call it again and again? Apr 07 07:18:22 okay Apr 07 07:20:37 interesting, i wonder if this makes sense over canvas for what i am doing http://www.histogrem.com/ Apr 07 07:20:56 oh wait, uh Apr 07 07:22:12 some how I was able to do this maybe, inside a buttons' setOnClickListener within public void onClick(View v) can I get the name of the button? Apr 07 07:22:25 liek the text property Apr 07 07:24:39 i set the button to final and used getText() Apr 07 07:24:55 im on a roll tonight Apr 07 07:25:46 I cant append the same onclicklistener to multiple buttons right? Apr 07 07:26:02 yes you can Apr 07 07:26:47 pfn: damn it, i lost one of my AW 2900 18650s on the trail Apr 07 07:27:23 think i might replace with a redlast 3100 Apr 07 07:27:30 *redilast Apr 07 07:31:42 okay well now how do I know which button I clicked on Apr 07 07:31:45 hmm Apr 07 07:31:57 somehow I was able to get that information from the View v Apr 07 07:33:16 if (v == buttonx) ... Apr 07 07:34:03 you can also do v.getId() == R.id.blah Apr 07 07:35:06 would that be faster? Apr 07 07:35:47 since it's using ints instead of the whole object? Apr 07 07:36:03 no, it's just nice that you don't have to keep a reference to the buttons if you don't need to Apr 07 07:36:27 ah Apr 07 07:36:36 Anyone around that can offer a suggestion as to why repo sync keeps failing for me? Apr 07 07:37:13 romainguy_: Can you think of a reason I shouldn't do this? http://stackoverflow.com/questions/10012214/android-pass-array-via-content-uri Apr 07 07:38:10 besides that it is complicated to implement. I started but decided to work on more important things Apr 07 07:50:00 protected void onRestoreInstanceState (Bundle ) why is not called ? Apr 07 08:10:30 3 am already Apr 07 08:10:39 praise 3 day weekends! Apr 07 08:22:10 How can I make ListFragment, that uses SimpleCursorAdapter, items use ListView.CHOICE_MODE_MULTIPLE? Apr 07 08:22:18 i should go to bed Apr 07 08:22:20 bye Apr 07 08:23:26 i don't understand the reason why the SQLiteCloseable interface does not have the method signature close(); .... and i don't really undertand the usefulness of its methods right now Apr 07 08:25:33 in SQLiteDatabase for example, the close(); method does exist, and in many other classes that implemented SQLiteCloseable, but those classes have the close(); method with no need to @Override anything Apr 07 08:26:27 why the method close(); was not declared into SQLiteCloseable ? .. currently, i see no good reason, but just want to know ^^ Apr 07 08:40:52 Hello I am facing a problem while trying to launch an activity on the press of a button. I am getting the error : "unable to instantiate activity" in the LogCat. Apr 07 08:41:09 can anyone help ? Apr 07 08:44:14 I have a class(extending Thread class) within the main class which extends activity Apr 07 08:46:03 my logcat is here: http://pastebin.com/RiPYqz36 Apr 07 08:55:13 another erorr which comes is: System services not available to Activities before onCreate() Apr 07 08:55:21 What is the solution to this? Apr 07 08:55:29 I am using Bluetooth adapters in my application Apr 07 09:39:27 I have a strange behaviour Apr 07 09:40:03 I am binding a service in onCreate() ... then unbinding isFinishing==true in onPause() Apr 07 09:40:44 all good but no when I rotate the screen ... cause the onPause is called but isFinisching == false Apr 07 09:40:58 and then in onCreate I am binding another time Apr 07 09:41:19 do I have to unbind always in onPAuse and bind on onResume ? Apr 07 09:41:54 aLeSD: see activity lifecycle Apr 07 09:41:58 you obviously do not know it Apr 07 09:42:03 or I have to bind in onCreate only when savedInstanceState != null ? Apr 07 09:42:25 alankila, I have it in front of me Apr 07 09:42:25 also consider fragments Apr 07 09:42:39 okay. Well, you should see that onCreate and onPause are not logical opposites Apr 07 09:42:53 therefore to bind and unbind in these methods strikes me as unwise at best Apr 07 09:43:16 yes I see ... but onCreated is called when a new activity is created Apr 07 09:43:29 indeed. and onDestroy is called when it is destroyed. Apr 07 09:43:46 these are logical opposites. Not saying that you must bind and unbind in that pair, but just saying. Apr 07 09:43:52 what he is getting at (I think), is the onResume() method is more the opposite of onPause() Apr 07 09:43:55 if I am rotating onCreate is called so new activity ... that means that the previous was finished Apr 07 09:44:40 fragments also have a way of solving that rotate thing Apr 07 09:44:55 because with fragments the view creation is separate from fragment creation. Apr 07 09:44:58 I am unbinding on onPause cause it's not killable ... and I was checking isFinishing to know if it is finishing Apr 07 09:45:03 one of the critical improvements that fragments bring to the table Apr 07 09:45:33 but it seems not working on rotation Apr 07 09:46:30 alankila, from your experience do you see problems in binding unbinding in onResume/onPAuse ? Apr 07 09:47:32 I have a better question: what problems do you expect because you aren't doing it that way already? Apr 07 09:47:51 That is what I would do, but that isn't proof of best practice ;P Apr 07 09:47:58 alankila, the proble in rotation : binding 2 times Apr 07 09:48:35 ok ... so now I am always unbind in onPause and always bind in onResume Apr 07 09:48:37 well the onResume/onPause pair will solve that, if you just unconditionally bind and unbind in that Apr 07 09:48:59 every onResume will always be followed by onPause according to the lifecycle chart. Apr 07 09:50:09 I personally have fallen out of love with services because the bind takes too many lines of code to do and is asynchronous Apr 07 09:50:44 so I just don't use services, except one which I have decided to start calling ProtectionMoneyService. It pays android its dues so that android doesn't kill my app until I'm ready to allow android to kill it Apr 07 09:51:15 everything else is AsyncTask or Application subclass shit or something like that, which can be arranged to be global within the app process image Apr 07 09:51:38 not exactly the right thing to do, but if google wants me to use services, it better provide a synchronous binder that doesn't look and feel like total shit to use Apr 07 09:51:45 Last thing I used a service for was a download manager built into the app. Pretty necessary for that purpose. Apr 07 09:51:59 and AsyncTasks, love em ;D Apr 07 09:52:12 what the hell is wrong with SomeServiceOfMine foo = bindService(SomeServiceOfMine.class); Apr 07 09:52:44 ok .. this point is solved for me Apr 07 09:52:47 instead of all that clags and connections and then it fucking doesn't connect until the activity/fragment state transitions have all run Apr 07 09:52:50 that pisses me off Apr 07 09:52:56 clags = flags Apr 07 09:54:05 now I have my service that go foreground and send and intent if the use push the entry Apr 07 09:54:26 notificationIntent = new Intent(this, SensorMeterActivity.class); Apr 07 09:54:32 so Apr 07 09:54:34 so you get an event in your client code & you need a service to deal with it & if the service connection doesn't already exist, you're forced to design some god damn Runnable which holds what you need to do and then schedule that to run after the bindService is done, and then you have the problem that you need an error feedback API too just in case something goes wrong Apr 07 09:54:40 it's such a giant pile of code Apr 07 09:54:49 all because these services can't be bound synchronously Apr 07 09:55:14 and yet those services are in the same process, literally nothing more than object instances. What crazy machinery to hide that. Apr 07 09:55:39 alankila, if the binder is null I do nothing .. Apr 07 09:55:59 better ... ultil the binder is null I do nothing Apr 07 09:56:22 now Apr 07 09:56:41 the user start the activity ... the activity start the service that goes foreground Apr 07 09:56:42 I'm sorry for ranting but I'm just so incredibly frustrated with Services that I simply don't use them to do anything else except show notifications and keep android from killing my process. Apr 07 09:57:13 heh, i remember alankila doesn't like this stuff. i hate it too Apr 07 09:57:16 the user press the notification entry and a new activity is created in front of the other Apr 07 09:57:45 I don't want it ... I want to return to the activity ... not create a new one Apr 07 09:57:48 is it possible ? Apr 07 09:58:09 maybe that's the prob :::: notificationIntent = new Intent(this, SensorMeterActivity.class); Apr 07 09:58:31 do you understand the prob ? Apr 07 09:59:33 aLeSD: uh, vaguely. I do not remember what the correct thing to do is, you can either set the activity to only have one global instance, or maybe you can tell android to return to a specific instances instead of an all new one somehow. Apr 07 10:00:11 I mean I want to create a new Activity if the previous was finished or return to the previous Apr 07 10:00:44 sounds like you might want the single global instance behavior to me. Apr 07 10:01:17 PendingIntent contentIntent = PendingIntent.getActivity(context, 0, getIntent(), 0); Apr 07 10:01:50 that might do it. I imagine you need the original Activity's Intent that you wish to return to Apr 07 10:03:26 this is all rather vague to me. I have no true idea if android actually links specific intent instances to specific activity instances Apr 07 10:04:47 but the intent which launched that activity is worth trying Apr 07 10:05:53 * alankila thinks about reading the implementation of context's startActivity Apr 07 10:07:30 mainthread execStartActivity. I should have known nothing is simple. :-p Apr 07 10:07:44 aLeSD: you want your activity to be brought to the front instead of launched if it is running? Apr 07 10:07:46 alankila, I don't think that exists an Intent that will create or use an existing Activity as I want Apr 07 10:07:54 readme, yes Apr 07 10:08:13 I believe you just need to use android:launchMode="singleTask ... or ... singleInstance" Apr 07 10:08:15 totally yes Apr 07 10:08:23 in your activity tag in the manifest Apr 07 10:08:26 ok Apr 07 10:09:27 aLeSD: the intent which launched your activity is supposed to return you to that activity... There's ActivityMonitor that matches the Context and the Intent instances, I think if those match then it returns that particular activity Apr 07 10:09:27 singleInstance Apr 07 10:09:31 readme, perfect. Thanks Apr 07 10:10:41 ok .. all is working Apr 07 10:11:33 now I have to Serialize for the Bundle stuff Apr 07 10:11:38 http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_REORDER_TO_FRONT Apr 07 10:11:42 that is interesting, too Apr 07 10:13:31 strangely, though, I can't seem to find the implementation for Context's match() Apr 07 10:13:41 anyway Apr 07 10:14:51 oh, I see why. Never mind. Apr 07 10:15:09 now if I sorved all the behaviour in pressing homebutton, press the notification entry Apr 07 10:15:23 the last thing is solve the rotation behaviour ... Apr 07 10:15:50 are there other scenes ? Apr 07 10:18:29 reading android code makes my head hurt. *shudder* Apr 07 10:18:42 alankila, why ? Apr 07 10:18:43 That's beause it isn't Python. Apr 07 10:18:46 is it bad ? Apr 07 10:20:55 I am sorry for what I am asking now ... but I am really confused on one thing Apr 07 10:21:09 in my app .. the user adds on runtime views Apr 07 10:21:33 you could strip the curly braces out of my code and it would almost be valid python :) Apr 07 10:21:45 so when I rotate the screen the views disappear ... do I have to save them in the Bundle ? Apr 07 10:22:00 I just dislike the android source's complexity Apr 07 10:22:18 aLeSD: no, you should instead save the state that causes the views to appear Apr 07 10:22:25 so much junk to it, and methods that seem ill-conceived, and only to be used in some special circumstances, it seems pretty messy to me Apr 07 10:22:31 or keep a static reference to your state so you don't lose it on orientation change Apr 07 10:23:10 readme, could you explain me better please ? Apr 07 10:23:18 I dons't understand it Apr 07 10:23:22 aLeSD: what are you trying to do? Apr 07 10:23:30 show me the complete picture Apr 07 10:23:47 alankila: there are so many places in the source code i ask myself "can any human understand this?" Apr 07 10:23:53 ok I am trying to use pure MVC design Apr 07 10:24:24 the M is a service more a graph of nodes in the activity Apr 07 10:24:50 the nodes process the data coming from the service Apr 07 10:25:29 in the V I have a kind of ObserverViews that at runtime the user connect to the Nodes of the M Apr 07 10:25:41 they show the data Apr 07 10:26:03 * alankila hopes that google will drop compat to source versions < 2.0 eventually, at least, and proceed to delete methods that were deprecated by 2.0, and so on Apr 07 10:26:04 stop Apr 07 10:26:04 in the simplies case you start listening to a sensor in the service Apr 07 10:26:11 stopped Apr 07 10:26:14 The notion of "observer" and "view" should not be coupled together Apr 07 10:27:00 but lets solve your immediate problem, fast forward to the end Apr 07 10:27:07 what is the immediate problem you are trying to solve Apr 07 10:28:17 observerview, imo, makes sense, as long as it isn't critical to correct functioning of the model. I'd just call that view though (which accepts a model (node) to visualize). Apr 07 10:28:21 first I want to resume the ViewNode on rotation ... then I want to resume the graph of the M in rotation Apr 07 10:28:51 what is a ViewNode? Apr 07 10:29:01 I will paste the code Apr 07 10:29:05 ok Apr 07 10:29:55 readme, http://ideone.com/IZngu Apr 07 10:30:59 the problem is you're storing all the state inside the view Apr 07 10:31:14 see your mView.updateData() where you add data Apr 07 10:31:44 that shouldn't happen to the view. You should just mView.setDataSource(mData); mData.addData(); mView.notifyDataSetChanged() (like the Adapters do) Apr 07 10:31:57 then that way you have the data separate and it can be serialized easily Apr 07 10:32:03 you shouldn't try to serialize entire views Apr 07 10:32:38 the code reads to me like it was prepared to detach from the views, anyway Apr 07 10:33:05 btu that just means that the state is lost when the view is lost, which is not optimal Apr 07 10:33:27 of course, if the SensorPointsArray is always a complete set, then maybe not Apr 07 10:33:52 you should be able to keep a static ref to your state Apr 07 10:34:05 that when on configuration change you just tell the new view about the state and call update() Apr 07 10:34:43 serialize it if the user hits the back or home button, though Apr 07 10:34:49 my brain is blowing Apr 07 10:35:04 it's not really that complicated. you have used a ListView, right? Apr 07 10:35:21 * alankila thinks everything in android _is_ complicated. Apr 07 10:35:27 when you use a listview, you keep the data separate from the view Apr 07 10:35:28 yes ... this is why I am using create and release View Apr 07 10:35:36 I'm making an example Apr 07 10:35:40 largely because the platform manages lifecycle of stuff, and it's fairly antagonist to what you normally want Apr 07 10:36:05 aLeSD: so, if you had a listview, you'd have an array, or an arraylist or some list of data for it Apr 07 10:36:18 aLeSD: to feed the data to it, you'd give it to the adapter Apr 07 10:36:24 to tell it about changes, you'd call notifyDataSetChanged() Apr 07 10:36:53 the view does not need to own the data Apr 07 10:36:53 readme, I call notifyDataSetChanged() when the number of view changes Apr 07 10:37:15 I paste the code of one of the view I have Apr 07 10:37:26 aLeSD: but in a listview, you call notifyDataSetChanged() when the number of elements in your array changes, the amount of *data* changes Apr 07 10:37:29 the *data changes* Apr 07 10:37:37 you are coupling your views and your data Apr 07 10:37:40 your MVC pattern is broken Apr 07 10:37:45 keep the data separate from the views Apr 07 10:37:49 hi Apr 07 10:38:02 hi RobinB Apr 07 10:38:05 readme, you mean that the data has to stay in the Model ? Apr 07 10:38:19 aLeSD: the view should be able to have a reference to the model, so that it can display it Apr 07 10:38:24 cause I put the ViewNode in the View Apr 07 10:38:26 aLeSD: that is the usual way, model holds the data, the view, if attached to a model, displays it but doesn't retain it, just asks the model each time Apr 07 10:38:30 but the model should not be encapsulated inside the view Apr 07 10:38:34 which seems to be what you have Apr 07 10:38:44 readme, alankila understood Apr 07 10:38:47 that way you only serialize the model! Apr 07 10:38:48 :) Apr 07 10:38:59 yes I totally did it Apr 07 10:39:45 however I don't need to store the data .. Apr 07 10:39:52 the view needs to be told to refresh somehow though. Apr 07 10:39:53 I try to explain better Apr 07 10:40:05 so when model changes, the view needs to know about it. Apr 07 10:40:09 the service hold the data = buffer Apr 07 10:40:48 then the graph in the asctivity ask (by binder) the last data (or all the buffer) to the service Apr 07 10:41:12 the data is porcessed by the nodes (Observable , Observers) Apr 07 10:41:20 the last node is the ViewNode Apr 07 10:41:52 really I can put ViewNode where I want in the graph Apr 07 10:42:34 I paste a view Apr 07 10:43:13 http://ideone.com/Y2OMk Apr 07 10:44:05 updateView() is called by the UIThread .. updateData byt the Model thread Apr 07 10:44:20 is it wrong, isn't it ? Apr 07 10:44:59 you have a model thread? Apr 07 10:45:49 alankila, yes ... it update the receiver node (it asks the data to the service) that notify all the nodes ... Apr 07 10:46:02 I have some code which reads from a an InputStream object and displays whatever it gets Apr 07 10:46:08 and put the data in the View Apr 07 10:46:09 and I have another device sending data to that input stream Apr 07 10:46:28 and I know it sends the same data over and over, but I only ever see one output Apr 07 10:46:42 could someone please take a nosey at my code and tell me if it's stupid? Apr 07 10:46:59 maybe I overengineered the stuff ... but I can use it for each signal source in the future Apr 07 10:47:05 I am too hung over to look at code Apr 07 10:47:18 readme are you coping ? Apr 07 10:47:21 :D Apr 07 10:47:27 aLeSD: I see. This does seem rather complicated. What is the eventual objective, some kind of general signal-processing framework that is configurable at runtime? Apr 07 10:47:27 http://pastebin.com/mNFayRx9 Apr 07 10:47:31 but here is a picture of a squirell eating pizza http://i.imgur.com/4PsOW.jpg Apr 07 10:47:39 alankila, yes Apr 07 10:48:04 thanks - squirrel makes as much sense as my code I'm sure Apr 07 10:48:09 the problem is not enough pineapple Apr 07 10:48:14 Lucky squirrel. Apr 07 10:48:22 squrrel Apr 07 10:48:24 thats a funny word Apr 07 10:48:37 squirrel Apr 07 10:48:41 alkjdfhlakdj Apr 07 10:48:52 alankila, the final goal is that the use can create the graph visually Apr 07 10:49:05 s/use/user/ Apr 07 10:49:15 aLeSD: okay. A suggestion. A typical way to arrange this is to define a list of input ports, and list of output ports, to each processing node. Data arrives from the service to the root node's input, and that may just be a dumb copier that pushes it forwards to all its outputs, or whatever you want Apr 07 10:49:48 alankila, tha's done by Observe pattern in the graph Apr 07 10:49:59 Node extends Observable implmenets Observer Apr 07 10:50:01 the views can be designed as listeners that just get refreshes each time a node's state changes (it receives new data to input, and consequently its internal state is determined to change by the processing node) Apr 07 10:50:28 aLeSD: yes, but I see that it's not very suitable for your use, Object this and Object that and casting. Apr 07 10:51:08 I think the views should not listen, they should just have a setter for data that gets called by an "observer" that does the listening Apr 07 10:51:22 urgh, no no no :p Apr 07 10:51:39 if the observer can call the view the dependency is the wrong way round Apr 07 10:52:08 readme, the ViewNode to is Apr 07 10:52:12 s(is/it Apr 07 10:52:16 ahhhh Apr 07 10:52:24 ViewNode.setData Apr 07 10:52:32 aLeSD: but your ViewNode also: creates views, and manages views Apr 07 10:52:35 that's not single-purpose Apr 07 10:52:59 ok I paste another peace so you can see why Apr 07 10:53:18 If only it were that easy. Apr 07 10:53:19 then it keeps a reference to a view Apr 07 10:53:21 Peace getting pasted. Apr 07 10:53:35 aLeSD: i'm sorry but I just don't agree with the way you have written ViewNode. More code isn't going to change my opinion. Apr 07 10:53:38 you are free to do whatever Apr 07 10:54:07 * Skwint has a flash of inspiration Apr 07 10:54:19 my code is writing a screen full of blanks and then continuing to work off the bottom where I can't see it! Apr 07 10:54:22 ok ... the Views are in a ListView ... and I had to use an Baseadapter Apr 07 10:54:28 * Skwint isn't very good with java :/ Apr 07 10:54:36 so public View getView(int position, View convertView, ViewGroup parent) { Apr 07 10:54:37 return (View) list.get(position).createView(mContext); Apr 07 10:54:40 Neither the View or the Observer should depend on each other Apr 07 10:54:52 you should have a Fragment or Activity that has both a View, and an Observer Apr 07 10:55:37 then I release the views that are not visible in the ListView Apr 07 10:55:59 aLeSD: the ListView metaphor was a metaphor, a tool for illustrating why you should separate the data from its representation Apr 07 10:56:09 I don't actually care about any real ListViews you might have Apr 07 10:56:27 * alankila saw that jdk7 allowed me to write List> fooClassList = Arrays.asList(DerivedFromFoo.class, AnotherDerivedFromFoo.class) Apr 07 10:56:37 hell yes, another case of no more @SuppressWarnings Apr 07 10:56:52 ok .. wait Apr 07 10:57:16 I try your way Apr 07 10:57:39 If I understand good I have a finalNode where the data is tored Apr 07 10:57:50 and the associated View take them Apr 07 10:57:51 is it ? Apr 07 10:58:02 make a diagram Apr 07 10:58:25 aLeSD: sounds to me like you should rather talk about, say, "new BufferNode(100)" which means: buffers last 100 inputs it has received Apr 07 10:58:35 i've got to get coffee and do some work Apr 07 10:58:39 got a lot of code to write today Apr 07 10:58:53 no reason to make it final. You can just think that this is a FIFO. You can design a visualizer for BufferNode that knows that it has a list inside and accesses it to visualize it Apr 07 10:58:54 quick simple question - how do I make a TextView object scroll downwards automatically when I append too much text? I want a console log that's all... Apr 07 10:59:10 there isn't an obvious API for it :/ Apr 07 11:00:22 so you can do something like: new BufferNodeView(bufferNode) which is a specific type of view capable of displaying BufferNode instances Apr 07 11:00:28 http://stackoverflow.com/questions/4055537/android-linearlayout-scroll Apr 07 11:00:38 or you can decouple this through some observer/event framework if you like Apr 07 11:01:19 thanks alesd Apr 07 11:02:08 but I like compile-time checkable designs and if you do some Object event shit then you can't get safety Apr 07 11:02:46 alankila, so my view has a reference to the BufferNode and I have to code something like BufferNode.haveNewData() , BufferNode.getNewData() ? Apr 07 11:03:53 the API can be very specific to buffernode, but I would advice an interface that is common between all nodes and their visualizers, which allows the node to call into the view and notify it should refresh itself. Apr 07 11:04:32 but I'm sure someone is headdesking out there right now and thinking this should be designed yet another way :-p Apr 07 11:04:53 alankila, so instead of put the data in the View the Node tells the view that new data arrived .. the View ask for the new data ? Apr 07 11:05:21 that means the BufferNode has a reference to the View and the View has a reference to the BufferNode Apr 07 11:05:42 aLeSD: if we make it so that node holds an instance of the view (or list of views attached to that node) it can just call view.postInvalidate() on all the views when the model state changed. That API is given to you by android. Apr 07 11:06:14 then the node just needs to implement an API that allows the view to add itself to the list of notifiers that gets told when the model changes, and some way -- which can be specific to node type -- to get the data to visualize Apr 07 11:06:42 but yes, they would reference each other. Apr 07 11:07:47 I dislike mutual references, but given that there is no guarantees when android gets around to updating the view, it seems to me that data should be asked when the view updates, and not just set to the view Apr 07 11:08:19 and since you have a model updating thread, you need to be careful to not call any methods in the view that might try to do something with its state Apr 07 11:08:19 I will think about a bit Apr 07 11:09:03 aLeSD: why are LSD capitalized :D Apr 07 11:09:22 I am really going out of mind Apr 07 11:09:37 but maybe the BufferNode could be a good think Apr 07 11:09:40 aLeSD: we all have different, conflicting designs for something like this Apr 07 11:10:10 so you can't integrate them all into one design. The design should be as complex as necessary, and extensible towards anticipated future needs (but not so extensible that there's tons of useless boilerplate around everything). Apr 07 11:11:06 alankila, in the real I ma blind cause I can't take a decision cause I don't know how I can resume the view in rotationg the screen Apr 07 11:11:23 aLeSD: :( Apr 07 11:11:42 and if you really are serious about a input -> process -> output design, you need to do signal propagation properly. For instance, if same signal is routed through two different processing chain to a third processing node that integrates the results of these two distinct chains, you need a design that flags that all your inputs are processed before the output gets processed Apr 07 11:11:44 aLeSD: if you separate the data from the view, resuming the view is as simple as keeping a static ref to your data and re-creating the view, then passing that in. Apr 07 11:11:44 readme, I am sorry .. but really I don't understand the stuff Apr 07 11:12:39 give a simple procedural example : I have two views Apr 07 11:12:42 store them Apr 07 11:12:45 for example, the simplest case is with a TextView and a number Apr 07 11:12:56 we keep static int persistedNumber = 2; Apr 07 11:12:59 yes yes give me Apr 07 11:13:03 each time, we call setText(persistedNumber) Apr 07 11:13:07 and that's how we "persist" Apr 07 11:13:14 it seems to me that it's easy enough, a node can be processed only until all its inputs have been updated in this processing cycle, so as new data arrives to the root node, it gets processed, its outputs are added to Set of potentially yet-to-be-processed nodes, and then you try to find one node at least in the Set whose inputs have all been updated Apr 07 11:13:23 if you need it to last suepr long, you can use parcelable, serializable, or sqlite Apr 07 11:14:59 I feel stupid ... or maybe my question is too supid and you don't see it Apr 07 11:15:31 readme's static suggestion doesn't work as soon as you have more than one instance of that class though Apr 07 11:15:35 in your case that seems like a risk Apr 07 11:16:00 the activity is recreated the savedInstance != null ... how can I see that previously I had 4 SensorTextView ? Apr 07 11:16:08 I don't care about the data Apr 07 11:16:22 I want to readd the 4 SensorTextView Apr 07 11:16:50 in the onPause, for instance, you write a config file that says you had 4 views, here are their classes and parameters, and the links they had between each other Apr 07 11:17:03 you need to give every node some unique identifier so that you can conveniently describe how they were linked together Apr 07 11:17:34 ah Apr 07 11:17:35 so you can say, for instance, that the Root was attached to nodes 8 and 31, and node 8 is a Foo instance with the following parameters ... Apr 07 11:17:46 or you could just use ObjectOutputStream to serialize the whole graph at once Apr 07 11:17:48 so in the end I store in the Bundle the name of the config file not the struct Apr 07 11:18:07 * alankila has no idea what you are talking about, especially as java doesn't have structs Apr 07 11:18:08 alankila: true, but it's the fastest solution if you don't Apr 07 11:18:17 if he only has one instance, i'd recommend it Apr 07 11:18:38 readme, the config file or the serializable stuff ? Apr 07 11:19:13 I think I will try in normal java some serialization to understand how make it work Apr 07 11:19:17 aLeSD: to persist your data on configuration changes, using a static is fastest because it's a O(1) operation. You're just storing a ref, no matter what. If you want to serialize it, then you'll actually be doing work. Apr 07 11:19:42 the only work you'll do is when your view goes back over the data and processes it again Apr 07 11:19:47 in any case, a human-readable configuration file would begin by listing every node and its implementation and relevant parameters, and in that parameter list somewhere is also a list of the inputs it was attached to, and the outputs it was attached to, and any state you want to persist (if you think you need to). Apr 07 11:19:50 then it could be complex, but I think you can optimize it more, from what I read Apr 07 11:20:11 if you want to use alankila's idea of human readable, i suggest you serialize into json Apr 07 11:20:13 then when restoring you make all the objects back into a HashMap, and then rebind the inputs and outputs, and set the internal state too Apr 07 11:20:33 http://jackson.codehaus.org/ Apr 07 11:20:38 and then you return the root node, which you can identify by a fixed ID of, say, 0. Apr 07 11:21:34 alankila: that's prohibitively slow just for restoring the state after someone rotates the phone Apr 07 11:21:48 it would make sense if the user backed out of the app, or hit the home key Apr 07 11:22:03 * alankila doubts it makes a damn difference Apr 07 11:22:08 I think his data is big, a ton of stuff from the sensors Apr 07 11:22:15 speed is rarely an argument. Apr 07 11:22:20 alankila: it does, it will cause at least a 2 second lag Apr 07 11:22:40 that's even more ridiculous. That depends on the specifics of how many objects and how much data. Apr 07 11:22:51 readme, I will nopt (never) store the data cause the data is in the Service Apr 07 11:22:55 alankila: I have an idea of what amount of data he has, and it should be quite a bit. Apr 07 11:23:09 he's reading it from the sensors, which spew data very rapidly Apr 07 11:23:12 aLeSD: the state of your processing chain is not in the service. But alright, maybe you can recreate the state by replaying from beginning Apr 07 11:23:17 * alankila is not sure what the idea is Apr 07 11:23:28 never store the data ... the activity will ask the service to gives all the data it has the first time Apr 07 11:23:34 readme: it doesn't mean all data has to be retained. Maybe it's just a single damn integer inside a node Apr 07 11:23:48 alankila: occams razor says he should just use a static field Apr 07 11:23:59 static field doesn't work if you have multiple instances of the same object Apr 07 11:23:59 you're talking about hours of work vs 5 minutes Apr 07 11:24:04 I don't think he has them Apr 07 11:24:08 and in this design it sounds to me like he has Apr 07 11:24:14 earlier he was talking about using singleInstance Apr 07 11:24:20 for the activity, yes. Apr 07 11:24:22 to bring the already started activity to the front Apr 07 11:24:25 but the nodes and views, they are same instances Apr 07 11:24:32 eh Apr 07 11:24:33 same classes Apr 07 11:24:55 the purpose here is some kind of runtime-configurable generic processing framework Apr 07 11:25:08 yeah Apr 07 11:25:12 I am a genious Apr 07 11:25:17 data comes from a service, goes into nodes, nodes process and forward it, and views are somehow attached to the nodes for displaying the state in each node Apr 07 11:25:27 ingenious, but genius. hth. Apr 07 11:25:30 that's my software Apr 07 11:25:30 yeah, I get that. Apr 07 11:25:55 whatever, you can serialize all your data just to flip the screen and then see how long it takes to restore it all Apr 07 11:26:03 it's going to be too slow Apr 07 11:26:07 don't say I didn't warn you Apr 07 11:26:09 the service it will rest active cause if it's storing it start itself Apr 07 11:26:12 aLeSD: I really hope you have a good reason for this sort of thing. If you never actually need to do any runtime configuring, this is all giant waste of time that could have been written simply in a few lines of direct code Apr 07 11:26:16 so .. no problem to save thge data Apr 07 11:26:50 * alankila thinks people grossly overestimate serialization costs. And all this could be avoided with fragments and setRetainInstance(true) anyway Apr 07 11:26:55 I really dunno what I am doing or going to .. I was only try to learn Android Apr 07 11:26:57 :D Apr 07 11:28:21 well one of the next features will be another service that will bind to the storeService and export by CORBA or ICE the data on a PC Apr 07 11:29:04 for example by my software I just found a bug on the firmware of Nexus Apr 07 11:29:30 I am getting past events sometimes Apr 07 11:31:20 ok Apr 07 11:32:00 if I have a ArrayList of all my nodes and I make the nodes serializable and I serailize the Array. Will I get the same graph ? Apr 07 11:37:56 aLeSD: sure, if they reference each other then those references are also retained. You could actually serialize any node that is part of the graph and if there are direct references to other objects, they too will be retained Apr 07 11:42:10 note that if you however resolve objects through some hashmap scheme, then that breaks direct references. For instance, you could do a soft reference like Object x = someMap.get("y"); and serialization is completely clueless about this. Apr 07 11:42:27 someMap is assumed to be a static here Apr 07 11:42:35 should have written SOME_MAP Apr 07 11:44:01 lol, I have neither noticed the imgur pic in the topic Apr 07 11:45:27 hi , i am getting a problem in editing my code, i modified my code and installed on emulator but it is showing output of previous apk (previously installed). i used ant to build the code Apr 07 11:54:18 alankila, I will put all in an ArrayList> Apr 07 11:57:18 eh. Why 2-dimensional? Apr 07 11:57:40 up to now I am thinking to use get(0) the source node Apr 07 11:58:12 :( I totally overengineered the stuffffff Apr 07 11:58:45 alankila, maybe the best way it to put the fromework outside from Android and make it general... Apr 07 11:58:49 to make tests Apr 07 11:59:18 so I can use a random number generator to make the tests Apr 07 11:59:22 and not a service Apr 07 11:59:52 I create an interface that will implmenet the binder in Android Apr 07 12:00:26 * aLeSD thinks it will pass 2 more month to make it work Apr 07 12:02:26 well, I'm looking at somebody's code that reads like this http://www.mysticpaste.com/private/KNdrOcT8xf/ Apr 07 12:03:04 always makes java look like the worst programming language ever Apr 07 12:03:42 I prefear C++ Apr 07 12:03:44 indents going from edge to edge, ugly debug prints, useless objects instantiated, difficulties with logic, ugly design .. Apr 07 12:04:22 c.QName.toString().equalsIgnoreCase("CorrectlySpelledCasing")) .. jesus christ, this could be c.QName == "CorrectlySpelledCasing" in that language Apr 07 12:04:29 or even a switch Apr 07 12:06:40 and if java had property references, truly impressive algorithms would be possible to write, ones where you just generate hashmaps from name of xml element to the property set it to... { "ScrubbedZip": #foo.postalCode } and you'd do something like var pr = map.get(c.QName); pr.set(c.Text); Apr 07 12:06:47 actually this is language called gosu Apr 07 12:07:03 not that I know it, but it's just sort of halfway there Apr 07 12:07:32 you can do property references via string if you like, you'll just use reflection and hack through the problems. Apr 07 12:08:11 for instance, apache wicket has PropertyModel(foo, "bar").setObject(x), and it will do foo.setBar(x) or die trying in case types don't match. Apr 07 12:11:48 my code smells Apr 07 12:21:13 alankila, I think I found the soution to my prob Apr 07 12:21:28 2 beers Apr 07 12:21:49 I love that solution Apr 07 12:22:03 well ... I will create a new class that will store all the Nodes , RecevierNode , etc etc Apr 07 12:22:47 than the model will ask for the node it has to bind to the Service by the serialVersionUID Apr 07 12:22:57 and the View the same Apr 07 12:23:16 I will serizalize , deserialize that class and I think I did the trick Apr 07 12:23:23 alankila, what do you think ? Apr 07 12:23:34 Is there much overhead when adding new classes to an android project / APK? Is there any reason to keep the number of classes down? With refactoring I'm adding some more classes to separate certain utility algorithms etc. Apr 07 12:28:32 aLeSD: serialversionuid is meant to identify a version of the class you need, and to provide means to load wrong serialversionuid serialized data in a later version Apr 07 12:29:01 alankila, I will use another static id Apr 07 12:29:09 but do you like the solution ? Apr 07 12:29:32 and my ViewNode is amazing cause it create / realease the view using its reference id Apr 07 12:29:40 so everything works Apr 07 12:30:36 * alankila shrugs. It's a solution, you live with it, you do what you think is best Apr 07 12:31:03 I am happy Apr 07 12:31:14 I will dring 2 more beers Apr 07 12:56:11 http://www.fishbox-tales.org.uk/wp-content/uploads/2011/11/device-2011-11-27-161908.png Apr 07 13:02:00 http://www.fishbox-tales.org.uk/wp-content/uploads/2011/11/device-2011-11-27-161908.png Apr 07 13:06:13 hi, is it normal to have slow emulator on dualcore notebook? Apr 07 13:08:31 azm: depends on lots of factors, like available ram, and which emulator image you are using Apr 07 13:08:46 hi somehow the system bar disappears on my phone. how to make it appear again? Apr 07 13:09:42 readme, well I have 4 years old thinkpad 2gigs ram and using the stock avd. IN processes the emulator take 350mb(more then java SE) Apr 07 13:10:09 azm: the fastest emulator you can use is the new intel image that runs on x86 Apr 07 13:10:28 uses the virtualization extensions available on many cpus Apr 07 13:10:31 but only for 2.3 Apr 07 13:11:00 for speed with ICS, use virtualbox and the image here http://www.buildroid.org/blog/ Apr 07 13:11:19 you will need to figure out how to set up adb over tcpip to debug on it, i've been meaning to set this up and do a video tutorial Apr 07 13:11:32 great thanks for tips, didnt know there are some other avds Apr 07 13:11:35 but I flashed ICS onto my droid 3, so my incentive is a bit low Apr 07 13:11:45 if you update to the latest sdk there is the intel one Apr 07 13:11:59 also make sure you update your adt in eclipse, because that is new (r17) Apr 07 13:12:05 other enhancements to benefit from. Apr 07 13:12:18 well Id like to build apps compatible with most possible versions of android Apr 07 13:12:37 target 4.03 and make your min either 2.1 or 2.2 Apr 07 13:12:48 2.1 is only 6% so it's reasonable to sacrifice Apr 07 13:12:51 since tech moves real fast Apr 07 13:12:57 hehe, yea I onw HTC with 2.2 Apr 07 13:13:06 2.2 is still worth supporting :) Apr 07 13:13:28 nice to hear, mu legend is kinda oldish but still great phone! Apr 07 13:14:27 why some people think 2.2 is better than 2.3? I didn't get it ...... don't have time to read the change atm :\ Apr 07 13:14:54 I'm pretty sure they don't think it's better, that they are just locked in by their vendor Apr 07 13:15:00 no offense @ all Apr 07 13:15:08 ah lol Apr 07 13:15:16 well some talk about the notification Apr 07 13:15:33 they think the 2.2 is better in that way ..... but since I didn't have time to try it out Apr 07 13:15:38 so basically your version depends solely on your provider ? Apr 07 13:15:42 so don't know about it @ all :P Apr 07 13:15:53 azm: unless you're a root type :) Apr 07 13:16:01 azm most likely ..... especially when talking about the drivers Apr 07 13:16:07 * readme is running CM9 (ICS) on his droid3. Apr 07 13:16:16 those are too low level and can't reverse them easily Apr 07 13:16:26 I see. Well I will stick with unroot but heared all great things about CM Apr 07 13:16:26 is this the right channel to ask question about device usage? Apr 07 13:16:28 luckily Samsung has released kernel src Apr 07 13:16:33 for a few devices :) Apr 07 13:16:35 xeon: #android Apr 07 13:16:43 xeon: but if someone knows here they will answer Apr 07 13:16:45 I just don't know Apr 07 13:17:13 I dont have the sd card reader to try cm Apr 07 13:17:23 would have to buy all the things needed. Apr 07 13:17:33 well azm you don't need it Apr 07 13:17:35 just use adb Apr 07 13:17:40 and push the file on the internal sd Apr 07 13:17:47 or the external one Apr 07 13:17:53 how can I put the result front this ( distance = locationA.distanceTo(locationB);) into the mapoverlay snippet? Apr 07 13:20:06 I use a network traffic control app, when I click one soft button in that app, my phone suddenly rebooted. then the system bar disappeared. anyone know what happened? and how to make it appear again? Apr 07 13:23:22 xeon: blunt solution: go to settings and do a factory data reset Apr 07 13:23:30 backup anything you want to keep beforehand Apr 07 13:23:34 and don't use the offending app again Apr 07 13:27:11 I just want it to show the distance when the user clicks the point Apr 07 13:42:29 can NfcAdapter be used to enable the adapter, not only check if it is enabled? Apr 07 13:46:42 is there any way to programatically tell a View to occupy 75% of its parent width ? Apr 07 13:47:02 with: 75%? Apr 07 13:47:32 rvsjoen: you use layout_weight. I am not sure of the math though, you'll have to experiment. Apr 07 13:48:25 I have been using layout_weight, problem is I have two fragments which each has their own LinearLayout, so setting a weight in each of them will not work Apr 07 13:48:35 readme my solution seems to work Apr 07 13:48:52 aLeSD: what did you do Apr 07 13:49:14 I created a new class that store in an ArrayList all the Nodes Apr 07 13:49:18 it's serializable Apr 07 13:49:19 I figured maybe I could set the width in onCreateView() through setLayoutParams() or something Apr 07 13:49:35 aLeSD: and do you serialize it on each orientation change? Apr 07 13:49:58 readme, yes Apr 07 13:50:21 aLeSD: put the highest expected load on it and flip your phone. does it take long? Apr 07 13:50:50 I will try ... I am just recoding half of my framework ... holy shit! Apr 07 13:51:09 aLeSD: i predict serializing your object each time you flip the phone is going to be a bit slow. Apr 07 13:51:19 a user does not want to see a delay when he changes orientation Apr 07 13:51:27 it should be magic to them Apr 07 13:52:12 I did a big mistake when I started my app ... do it without knowing of Serialization Apr 07 13:52:34 java serialization is not the optimal solution Apr 07 13:52:53 afaik on android it's not super performant and it's also a blob Apr 07 13:53:37 readme, I can change the design of my app using that central class ... then use seriañlization in first implementaion then use another technique Apr 07 13:53:45 aLeSD: yeah, I agree Apr 07 13:53:53 that your class is separate is good Apr 07 13:54:32 I have serialized with java serialization on android before, back as far as 1.6 Apr 07 13:54:38 and I've seen the phone lag up to 3s to read the data back :) Apr 07 13:54:56 newer versions and newer phones, probably are better. Apr 07 13:55:00 but still Apr 07 13:55:37 readme, you will try my app Apr 07 13:55:38 :D Apr 07 13:55:44 aLeSD: sure Apr 07 13:56:38 i've got a sensor lab type project of my own that I keep secret and work on, so you might incur some liability in showing me it. Apr 07 13:56:59 that is, if you show me it, don't accuse me of stealing your ideas. Apr 07 13:58:04 readme, you already stolen my ideas Apr 07 13:58:10 :D Apr 07 14:00:38 aLeSD: there are apps on the market that create graphs for all the sensor data already Apr 07 14:00:42 your ideas are public knowledge Apr 07 14:00:51 lol Apr 07 14:01:08 anyway, if you ever get into an NDA problem, this is how you fight it Apr 07 14:01:18 prove what they accuse you of stealing was already public knowledge Apr 07 14:01:31 and that you could have known it Apr 07 14:01:53 that said, I'd be glad to look :) Apr 07 14:02:36 are you going to write a backend, too? Apr 07 14:03:05 well I have a very basic one Apr 07 14:03:17 It's my first app Apr 07 14:03:25 its a good project Apr 07 14:03:42 I usually work on realttime and industrial automation Apr 07 14:04:20 I am just trying a way to be free Apr 07 14:04:22 ;) Apr 07 14:19:30 http://developer.android.com/reference/android/app/ProgressDialog.html Apr 07 14:19:34 spot the errors! Apr 07 14:19:50 (hint, there's not less than 10) Apr 07 14:20:02 I am now pragma-. Apr 07 14:56:54 http://codepad.org/czAtjgxv <--- isn Apr 07 14:57:07 Isn't this the correct way to do it? Apr 07 15:18:17 :( Apr 07 15:21:00 sorry to ask here, but I'm trying to find the overlap of 2 webcam images - is there any algorithm for this? Apr 07 15:21:08 the images may be slightly panned, rotated or otherwise altered Apr 07 15:22:00 I know they use this in video encoders, called motion-detection or something Apr 07 15:22:23 xix19: the opencv version for android might have some examples for "stitching" Apr 07 15:22:57 xix19: http://code.google.com/p/android-opencv-panorama/source/browse/android/pano/src/net/pandorica/opencv/pano/PanTiltCapture.java?r=07b4a6f8db461cc5758dd73dbed31678bf08ab27 like this Apr 07 15:35:17 stride: thanks! reading it now Apr 07 15:46:53 http://codepad.org/czAtjgxv <--- Is this the correct way to rotate a view? Apr 07 15:55:23 what wersion of Android-x86-4.0-RC1 should I download in order to use it in virtualbox + as avd ? Apr 07 15:56:09 azm: the one i showed you on that link Apr 07 15:56:21 there is an article in that blog that is about android on virtuabox, read it Apr 07 15:57:36 readme, oh you mean this http://www.buildroid.org/blog/?p=69 Apr 07 15:58:23 well I found something similiar her http://keyable.blogspot.com/2011/12/try-android-x86-40-on-virtualbox.html but I wanted to make sure have the lastest version Apr 07 15:58:53 personally i used iso, but he has ova Apr 07 15:59:06 the reason I use buildroid is because theirs has ethernet working Apr 07 16:00:26 like in the virtual enviroment ? Apr 07 16:00:46 yeah Apr 07 16:00:46 well I use ethernet Apr 07 16:00:56 so that would be nice Apr 07 16:01:00 you'll need the buildroid one if you want to be able to use networking. Apr 07 16:01:22 afaik, anyway Apr 07 16:01:36 ok and the ova format is same installation in VM as with iso? Apr 07 16:01:48 the ova is a prebuild vm, i think Apr 07 16:01:49 I used iso Apr 07 16:01:54 cant hurt to try the ova Apr 07 16:02:44 I woke up this morning thinking, 'cool, im going to play with my new app!'.... then i remembered I couldnt export the apk correctly... wel it would export when when i sent it to an android device it said "couldnt parse" Apr 07 16:04:54 within my within my Android SDK manager in Eclipse indego, I see "Updaye available: recv:3" for Android 4.0 Apr 07 16:05:07 how important is this update in the creation of an apk Apr 07 16:05:21 and second question Apr 07 16:05:38 why cant I downgrade my target API Apr 07 16:05:39 hey guys if i remove the bin and res directories from my project are they automatically regenerated when i compile my code? Apr 07 16:05:40 mantas322: if you are not able to compile hello world and push it to your device, you did not follow directions correctly Apr 07 16:05:47 unless your device is broken, which I doubt Apr 07 16:05:50 so start over and be more careful Apr 07 16:05:54 :< Apr 07 16:05:58 readme: i bet he doesn't have usb debugging enabled Apr 07 16:05:59 okay side question Apr 07 16:06:29 if I startget a specific android 2.2 or 4.0 will a 4.0 target work on 2.2? Apr 07 16:06:40 Target* Apr 07 16:06:43 readme: are the res and bin files automatically regenerated when ones project is recompiled? Apr 07 16:06:46 * mantas322 needs coffee Apr 07 16:06:48 yes, if you set your minSdk to 8 and don't use any api calls for 4.0 unless you're sure the app is running on 4.0. Apr 07 16:06:58 eagles0513875_: res is not generated, gen is Apr 07 16:07:21 thats what i meant is it save to remove the bin and gen directories Apr 07 16:07:25 if you have build automatically checked gen/ and bin/ are constantly updated. Apr 07 16:07:31 ok Apr 07 16:07:32 yes, it's safe to remove them Apr 07 16:07:41 well i need to remove them from a repository then push it to a remote git repo i have Apr 07 16:07:58 okay i need to try to "within an already made project downgrade the minSdk" thanks readme Apr 07 16:08:06 git rm --cached -rf bin; git rm --cached -rf gen Apr 07 16:08:26 cat > .gitignore <<< EOF \nbin/\ngen/\n EOF Apr 07 16:08:37 readme, I get error with the prebuilld one: Nonexistant networking interface name, Intel Centrino Advanced 6200agn Apr 07 16:09:13 azm: try #android-x86 -- i can't offer support for it Apr 07 16:09:23 ok, thanks Apr 07 16:09:38 adios Apr 07 16:14:56 SUCESS! Apr 07 16:14:58 Any of you has problems with 4.0.4? Apr 07 16:15:03 all I needed was to go to sleep Apr 07 16:15:06 last night Apr 07 16:15:49 404, that must be my favorite android revision Apr 07 16:16:36 except ... I can't see any such version in sdk manager Apr 07 16:17:06 morning Apr 07 16:17:55 * alankila still waits for LTO-capable gcc to appear in the NDK Apr 07 16:18:23 with the performance increases that ought to bring, you'd think google would have placed some priority on getting even 4.5 on android Apr 07 16:18:40 LTO? Apr 07 16:18:56 a cross-procedure optimizing strategy. Apr 07 16:19:01 ah Apr 07 16:19:40 currently optimizing is compile-unit only. LTO makes it possible to optimize the whole program at once at the time the final executable is assembled. Apr 07 16:20:10 for instance, math primitives from math libraries might be inlined into the main program, and who knows, maybe it can do partial evaluation too Apr 07 16:20:49 (call a function with constant value -> compiler folds constant into the procedure, skips runtime tests and dead code.) Apr 07 16:20:49 is it due to process hijacking concerns? Apr 07 16:21:37 or security of some sort possibly? Apr 07 16:21:56 alankila: im with you, my previous research into compiler design led me to read about these types of optimizations Apr 07 16:22:30 alankila: i have noticed that even with -O3 on gcc it doesnt seem to optimize the code that well, say in comparison to the intel compiler Apr 07 16:23:11 gcc is probably just harmed by the too many targets it supports Apr 07 16:23:26 always easier to design compiler for one processor family only Apr 07 16:24:14 I have a hero m10 tablet running android, there is little to nothing available for that thing however Apr 07 16:24:21 I think cause of the processor Apr 07 16:24:25 alankila: true but i still doesnt stop them adding an optimization level on the arch level Apr 07 16:25:07 xbp: do you have it hooked up to ADB? if so run: adb shell cat /proc/cpuinfo and put the result on pastebin and link here Apr 07 16:25:18 Freescale CPU, i.MX515 1GHZ ARM Cortex-A8 Apr 07 16:25:29 hrm I can connect it to adb, I haven't ever tried Apr 07 16:26:02 brb Apr 07 16:26:07 k Apr 07 16:26:31 hey guys noob question where is android tools fix project properties located in eclipse Apr 07 16:28:59 this thing is like an ipad, needs a special plug to connet it Apr 07 16:29:05 i never noticed it didn't have usb lol Apr 07 16:29:17 wow. i wonder if they sent that to me, brb again :( Apr 07 16:29:27 xbp: i guess its not rooted then Apr 07 16:29:33 so I have a questio nabout GoogLePlay which used to be the Androidmarket Apr 07 16:29:42 ask Apr 07 16:29:57 am I Allowed to upload an app, thats kind of for just fun? Apr 07 16:30:06 like I write this app and I posted the source code somewhere Apr 07 16:30:18 and if you copy and paste the code u can compilke the app for yourself Apr 07 16:30:37 and make it also available on GoogPlay Apr 07 16:30:39 right, i dont see why not Apr 07 16:30:45 plenty of people do that Apr 07 16:30:58 well With iOS AppStore they would reject it cause its not Apple Worthy Apr 07 16:31:05 lol Apr 07 16:31:13 thats Apple Apr 07 16:31:24 I was curious maybe GoogPlay raised their standards and changed their policies? Apr 07 16:31:33 nope, google has no standards Apr 07 16:31:34 or is it still about the same as it was when it was called Android market? Apr 07 16:31:42 lol okay good to know Apr 07 16:32:10 google has beta, not standards Apr 07 16:32:12 <3 Apr 07 16:32:15 it is rooted yes Apr 07 16:32:40 i have the connector but my wife is sleeping and i would hate for her to wake up this early hehe Apr 07 16:32:44 xbp: then you could install a virtual terminal app and run the command locally Apr 07 16:32:59 over wifi 'virtual terminal' or on the machine with connectbot Apr 07 16:33:10 huh? Apr 07 16:33:13 on the device Apr 07 16:33:17 a wifi virtual terminal would be elite. Apr 07 16:33:20 *ideas* Apr 07 16:33:20 install a virtual terminal device Apr 07 16:33:22 :( Apr 07 16:33:25 think i broke my project Apr 07 16:33:32 ik Apr 07 16:33:38 ok rather Apr 07 16:35:16 xbp: https://play.google.com/store/apps/details?id=jackpal.androidterm Apr 07 16:35:30 is a good one, you can also change it to "green and black" Apr 07 16:35:52 so what do the majority of you target? Apr 07 16:36:00 palevich Apr 07 16:36:04 \got it Apr 07 16:36:36 whats the Best Android Version to target for maximumversatility? Apr 07 16:36:57 generic buttons for 2.2 just dont tickle my fancy Apr 07 16:38:31 pastebin.com/QCN8Lss8 Apr 07 16:38:44 i like the jackpal term, nice touch :) Apr 07 16:38:49 copyall works great <3 Apr 07 16:39:40 what can I run with this? There is very little out there that I am aware of due to fukushima Apr 07 16:40:16 the freescale facility was right in the heart of the tsunami ... or at least that is my understanding. This was sent to me right before the tsunami :/ Apr 07 16:40:23 I like big buttons and I cannot lie Apr 07 16:41:19 Home,Menu,Back,Search do not exist on this hardware either. Leaving those out is difficult so they built them into the titlebar on android Apr 07 16:42:11 rgravenger :D Apr 07 16:42:11 the emulator that shows up while developing is a pOs. How can i sell an app with screen prints of that 1993 looking brick phone Apr 07 16:42:32 xbp: i see no reason why you shouldnt be able to get most stuff from google market Apr 07 16:42:55 google market seems to work, I have bria connected to my pbx Apr 07 16:43:22 TF and SD also Apr 07 16:53:13 is it possible to connect the x86 from VM to eclipse as avd ? Apr 07 16:53:45 if the version Im using does not support my ethernet drivers Apr 07 16:54:29 good question. I am wondering if I can satellite connect adb to a device on another machine on my network Apr 07 16:54:35 virtual terminal literally Apr 07 16:55:03 i need the usb node to become a network node sharable so that other things can write and read it Apr 07 16:55:15 is there already a standard built in for this? Apr 07 16:55:45 im sure this was one of the first things included, i just don't know how to use it Apr 07 16:58:23 well Ifound this http://androiddevnotes.com/2011/03/08/1299521520000.html Apr 07 16:58:35 but I dont know how to do the alt+f1 f7 thing Apr 07 16:58:54 sounds like screens Apr 07 16:59:29 shoult the shortcut toggle terminal in the android enviroment ? Apr 07 16:59:38 if yes then it does not work for me Apr 07 17:00:10 should in the vm Apr 07 17:00:16 that's for terminal screens yes Apr 07 17:00:21 ok guys I'm having issues i want to use my phone to test and develop on instead of the emulator and for some reason eclipse isn't picking up my phone I'm doing my work on kubuntu 11.10 Apr 07 17:00:22 inside the virtual box vm i believe Apr 07 17:00:45 usb drivers installed/ Apr 07 17:00:59 huh, how does @TargetApi work? I still get lint warnings if I @TargetApi(11) Apr 07 17:01:28 xbp: it was working dunno what is up all of a sudden Apr 07 17:02:42 pfn: You annotate the class or method Apr 07 17:02:51 no shit Apr 07 17:02:59 I do @TargetApi(11) on my method Apr 07 17:03:02 That's it :p Apr 07 17:03:07 but it still results in a lint warning Apr 07 17:03:15 Did you rebuild? Apr 07 17:03:33 yeah, I'm rebuilding Apr 07 17:03:44 I wonder if it's a scala incompatibility with annotations and the way lint works Apr 07 17:04:04 * pfn tries @SuppressLint({"NewApi"}) Apr 07 17:04:21 You aren't doing stuff that removes annotations when you build or something? Apr 07 17:04:42 I suppose it's possible that it might be checking the proguard output, depending on how lint works Apr 07 17:04:43 With ActionBarSherlock, I can set the icons of Action Items without problem (e.g. R.drawable.ic_refresh) - that's fine if I use Theme.Sherlock and the item is in the ActionBar. But if it's an Overflow Item, the icon cannot be seen because e.g. white on white does not work that well. What's the way to handle that? Apr 07 17:04:47 whether it processes the .class or jars Apr 07 17:04:47 anyone have any ideas as to why ubuntu isn't picking up my htc desire hd in eclipse? Apr 07 17:05:02 Kopfgeldjaeger: There's no icons in the overflow menu Apr 07 17:05:48 still shouldn't be the case, since I added -keepattributes *Annotation* in my proguard config Apr 07 17:05:49 SimonVT: Whoa. OK, thanks. So my approach of using Theme.Sherlock and just using the normal, non-inverted icons is OK? Apr 07 17:07:03 * pfn tries a clean compile Apr 07 17:07:42 Kopfgeldjaeger: your icons only show up in the action bar (and possibly options menu on (don't blink you may miss the Android boot screen). Apr 07 17:08:35 <3 <3 Reminds me of when nortel took the cs1000 enterprise phone switch and ran it in a screen. The ini boot process went from 15 minutes to under 4 seconds :) Apr 07 17:10:26 ok guys I'm getting really pissed off Apr 07 17:10:32 eclipse isn't finding my desire hd Apr 07 17:10:34 any ideas as to why Apr 07 17:10:45 it was working before and now all of a sudden its not working and finding the device at all Apr 07 17:11:24 tried system restart? Apr 07 17:11:42 eagles ... what does "adb devices" tell you? Apr 07 17:12:11 its seeing my device Catherall Apr 07 17:12:19 brx_: i already did due to kernel udpate Apr 07 17:12:56 I dunno why, but lint isn't picking up the annotations Apr 07 17:13:03 javap -verbose shows that my method is annotated Apr 07 17:15:14 Catherall: any ideas Apr 07 17:15:20 how can i tell eclipse which device to use Apr 07 17:18:43 meh, even putting @TargetApi(11) at the top level of my class results in lint warnings Apr 07 17:18:57 Dunno, pfn :F Blame scala Apr 07 17:19:01 Works fine here Apr 07 17:20:13 With buttons you can set the onClick method to use in the XML, I tried to follow that and set the onEditorAction for an textbox in XML but it doesn't seem to work. Do you have to do that progmatically? Apr 07 17:20:45 I'll try last time on the line to see if that makes a difference Apr 07 17:20:53 onClick is one of very few (possibly even the only one) events you can set directly in xml Apr 07 17:21:21 Chainfire: Oh that's a shame Apr 07 17:21:28 agreed! Apr 07 17:22:25 setting onClick from xml is teh suck Apr 07 17:22:27 eagles0513875 ... your computer sees the device ... but I donno how to config eclipse Apr 07 17:23:12 i want a drawable as background but keep ratio, could someone help? Apr 07 17:23:23 pfn: For what reason? Apr 07 17:23:38 Although there is more than 50% of free ActionBar space, android decides to only show one of four icons directly when using SHOW_AS_ACTION_IF_ROOM. Why? Apr 07 17:24:11 ^- http://dl.dropbox.com/u/22760184/screenshots/screenshot-2012-04-07T19%3A23%3A57.png Apr 07 17:24:12 kzar, they quickly lead to bizarre errors when your method name and stuff don't match Apr 07 17:24:45 kzar, it's especially the case when you re-use views Apr 07 17:25:28 good to know thanks Apr 07 17:25:51 pfn, have you solved my math problem from yesterday? Apr 07 17:26:03 mantas322, haven't really cared about it Apr 07 17:26:05 Kopfgeldjaeger: I believe Google thinks that less than 50% of actionbar space should contain icons Apr 07 17:26:13 * mantas322 sniff Apr 07 17:26:18 anyone know about getting devices to work in eclipse Apr 07 17:26:38 eagles0513875_: Define "getting to work" please? Apr 07 17:26:41 Self-Answer: Android decides to only show 2 icons for screen width <360 dp - for some reason. Also, there is a 50% rule, fifarunnerr Apr 07 17:27:40 fifarunnerr: dab devices sees my phone yet eclipse doesn't seem to be picking it up in the AVD Apr 07 17:28:21 adb* Apr 07 17:28:48 eagles0513875_: Dump question, but is your ADT tools in eclipse correctly installed? Apr 07 17:28:55 dumb* Apr 07 17:28:56 fifarunnerr: yes it was working Apr 07 17:29:28 is adb devices reporting "offline"? Apr 07 17:30:04 Maybe check your run configuration or something Apr 07 17:30:28 adt should use adb devices to list available devices Apr 07 17:30:30 odd adb doesn't automatically start on kubuntu it seems Apr 07 17:31:18 working now Apr 07 17:31:34 i have to start the adb via adb devices Apr 07 17:31:35 odd Apr 07 17:39:00 <`teh1> anyone know how to solve the problem of pins jumping?: http://dl.dropbox.com/u/15218301/fuckyouandroid.mov Apr 07 17:44:57 How can I access anything from the View that is set up from .setActionView(R.layout.collapsible_edittext) Apr 07 17:45:25 i new to android programming and was wondering if someone could help me out with this code http://pastebin.com/5eu7FRfx Apr 07 17:45:41 EditText search_box = (EditText)findViewById(R.id.search_text); doesn't return error, but search_box.getText() returns null pointer exception. Apr 07 17:45:58 it compiles and installs fine but FC when ran Apr 07 17:47:01 janhouse: findViewById never returns an error. It'll return 'null' when it can't find the View Apr 07 17:47:11 ok Apr 07 17:47:20 so, any suggestions hot to access those items? Apr 07 17:47:43 janhouse: getActionView Apr 07 17:47:53 thx, will check now. :) Apr 07 17:55:33 SimonVT, well.. Apr 07 17:56:13 if no one can help me with that does anyone know where can find an example of tcp connection/sending recieving Apr 07 17:57:18 ok, cool Apr 07 17:57:19 works :) Apr 07 18:04:00 <`teh1> anyone ? Apr 07 18:04:18 <`teh1> SimonVT: any chance you know a solution to my issue? Apr 07 18:04:23 <`teh1> i need a tissue for my issue Apr 07 18:04:37 teh1: No sorry :( Apr 07 18:04:44 No idea Apr 07 18:04:52 <`teh1> isnt it just the lamest problem? im so surprised no one has had it... Apr 07 18:04:53 What's your issue? Apr 07 18:04:56 <`teh1> http://dl.dropbox.com/u/15218301/fuckyouandroid.mov Apr 07 18:04:59 <`teh1> the markers Apr 07 18:05:13 <`teh1> notice as they jump violently from one world to the next :P Apr 07 18:06:33 Kinda seems like that would be the intended behavior Apr 07 18:07:03 <`teh1> SimonVT: no fucking way. have you seen what happens on iOS? Apr 07 18:07:17 I have not :p Apr 07 18:07:23 <`teh1> the correct thing. it maintains coordinate systems and draws the markers+lines once on every world that shows up Apr 07 18:08:30 Never worked with maps Apr 07 18:08:41 Keep googling :p Apr 07 18:08:42 I want some view to show and set the status of some class in my Model ... how could I do ? Apr 07 18:10:25 aLeSD: Make a subclass of your view, edit some methods? Apr 07 18:10:56 fifarunnerr, yeah but Iwon't break the MCV pattern Apr 07 18:12:11 then make a method for showing the view which also sets the status? Apr 07 18:13:15 fifarunnerr, for example I have a class that store some data and has some settings that will change the data ... and a View that will change the settings and show the data Apr 07 18:13:51 now for what I understood the data has not to be stored inside the View Apr 07 18:14:09 so the View has a reference to the DataClass to ask for data ... is it ? Apr 07 18:14:58 Not sure what the view is, but what about an onClicklistener which will call a method of the data-storage-class? Apr 07 18:18:30 hey guys with this line in my main.xml file I'm getting an error Apr 07 18:18:34 the xml is as follows Apr 07 18:19:04 android:text="@string/TEST 123" and the error is no resource found that matched the given name Apr 07 18:19:07 wait a min Apr 07 18:19:58 i don't think spaces are allowed Apr 07 18:20:01 Check your strings.xml file Apr 07 18:20:18 And remove the space Apr 07 18:20:33 lo Apr 07 18:20:36 ahh ok Apr 07 18:20:37 If you just want "TEST 123" to appear, remove @string ;) Apr 07 18:20:53 does anyone know how to completely kill an app from memory? Apr 07 18:21:02 ok also have an error with android:id @id/textview Apr 07 18:21:05 erebel55: Your own app, or a random app? Apr 07 18:21:14 I'm guessing i would need to change that as well to the name of the file in the strings.xml Apr 07 18:21:41 fifarunnerr: my app Apr 07 18:21:56 eagles0513875_: android:id="@+id/textview" should work fine Apr 07 18:22:25 giving me same error as the string Apr 07 18:22:47 eagles0513875_: try another name :) Apr 07 18:22:56 name of what Apr 07 18:23:17 @+id/infoTextView Apr 07 18:23:21 @+id/textview does not give you an error that resource was not found.. Apr 07 18:23:36 if it does, you didn't enter @+id/textview Apr 07 18:23:48 its not working :( Apr 07 18:23:49 find the IP address of the android VM, by going to the console and then typing: netcfg Apr 07 18:23:54 oh Apr 07 18:23:54 doh Apr 07 18:23:56 forgot the + Apr 07 18:24:00 please where should I press the shortcut ? Apr 07 18:24:16 I cant get any terminal showing up Apr 07 18:24:59 fifarunnerr: is something like System.runFinialization(); System.exit(0); sufficient? Apr 07 18:25:04 azm: local IP-adress of WiFi is in advanced wifi settings Apr 07 18:25:14 finish(); seems to leave some data on the stack Apr 07 18:25:26 fifarunnerr, I need to run netcfg Apr 07 18:25:28 erebel55: I'm not sure if System.exit removes all data Apr 07 18:25:32 so I need the console Apr 07 18:25:38 erebel55: Why do you need to remove all data in RAM? Apr 07 18:26:05 azm: Open terminal emulator? Apr 07 18:26:20 azm: Or open a terminal(cmd), and then: "adb shell netcfg" Apr 07 18:26:24 well, I have an exit button, so when the user exiits and reopens the app I don't want data to be left over in any of the textedit's or anything Apr 07 18:26:43 erebel55: In that case, finish() should be fine. Apr 07 18:26:44 *edittext's Apr 07 18:26:51 fifarunnerr, yes open terminal emulator Apr 07 18:26:53 That'll clear data like that Apr 07 18:26:53 but how ? Apr 07 18:27:00 oh ok thanks Apr 07 18:27:05 crtl+f1 does nothing Apr 07 18:27:25 azm: In windows: Start: cmd, on Linux: CTRL + ALT + T might work Apr 07 18:28:40 Don't offer an exit button.. Apr 07 18:29:20 fifarunnerr, I need to do this Apr 07 18:29:20 find the IP address of the android VM, by going to the console and then typing: netcfg Apr 07 18:29:26 from here http://www.android-x86.org/documents/debug-howto Apr 07 18:29:49 might be crazy Apr 07 18:29:52 but Im lost Apr 07 18:29:54 azm: Are you running android on your pc/laptop without using the Android SDK? Apr 07 18:30:08 AKA: As OS Apr 07 18:30:09 Im running eclipse with A SDK Apr 07 18:30:12 on windows Apr 07 18:30:22 I want to connect VM with androidf with eclipse Apr 07 18:30:39 so Ican debug on VM machine instead on the stock virtual device Apr 07 18:30:49 because its slow Apr 07 18:30:57 so I need to find the ip Apr 07 18:31:01 what a good forum for android programming questions? Apr 07 18:31:14 http://stackoverflow.com/a/6058689 Apr 07 18:31:27 azm: If ALT+F1 on the VM isn't working, try installing terminal emulator Apr 07 18:31:34 M360, http://developer.android.com/resources/community-groups.html Apr 07 18:32:10 fifarunnerr, you mean this https://github.com/jackpal/Android-Terminal-Emulator/downloads from within the virtual eniroment? Apr 07 18:32:41 azm: I guess that one will work fine Apr 07 18:32:51 Download and install the apk in the VM Apr 07 18:32:55 then run it, and enter netcfg Apr 07 18:33:00 ok, thanks Apr 07 18:33:10 well I was thinking I keep making some silly mistake Apr 07 18:42:41 anyone interested in a complex math problem? Apr 07 18:46:13 mantas322: no :( Apr 07 18:46:23 ^That :) Apr 07 18:47:01 well here it is anyways http://mantascode.com/?p=768 Apr 07 18:47:15 I made that into a android app and contemplating uploading it to google play Apr 07 18:47:25 still working out the reward system Apr 07 18:47:33 but? Apr 07 18:47:39 for every 10 correct answers you get 1 gooseberry Apr 07 18:48:14 Oh, you made an game where you need to answer math problems Apr 07 18:48:31 I thought you had a weird bug in one of your algorithms which you couldnt solve Apr 07 18:48:38 you can use the goose berry to get a hint as to what multiple choice answerr is correct Apr 07 18:48:54 no - the quiz is on a particular data set Apr 07 18:49:13 the math problem is how do I figure out all unique questions and possible answer sets Apr 07 18:49:48 some simple permutation math should do it Apr 07 18:50:00 anywho I have the answer but I used brute force of computational power to get it and not real maths Apr 07 18:50:32 I'm interested in this real math to confirm my answer Apr 07 18:50:41 anywho back to the reward system Apr 07 18:50:53 you also accumulate banannas Apr 07 18:51:05 but unlike gooseberries you can lose bannanas Apr 07 18:51:18 and go into bannana Debt Apr 07 18:51:51 staying out of bannana debt is a huge incentive not to answer a multiple choice question incorrectly Apr 07 18:52:15 if you can +20 abnnnas you can unlock a sushi roll or seomthing Apr 07 18:52:21 I havent drawn that yet though Apr 07 18:52:27 this is going to be great Apr 07 18:53:41 you can also use bannas to see the correct answer Apr 07 18:53:59 but people will be discouraged from doing so because they want to stay out of bannana debt Apr 07 18:54:39 take notes zynga empployees Apr 07 18:55:19 banana debt? Apr 07 18:55:38 if you answer more quesitons incorrectly then correctly Apr 07 18:55:46 you go into bannnana debt Apr 07 18:57:38 oh that sounds fun Apr 07 18:57:41 i should clone it Apr 07 18:57:49 oh wait... Apr 07 18:57:49 :O Apr 07 18:58:13 any you pros help a android newb out please http://stackoverflow.com/questions/10057367/android-client-force-closing Apr 07 18:58:29 if you dont want to force close, don't clikc "force close" Apr 07 18:58:36 problem solved Apr 07 18:59:07 "force close" is an action a user can (must?) take when an app crashes, or can take when it lags like hell Apr 07 18:59:08 * SimonVT throws NetworkOnMainThreadException Apr 07 18:59:12 an app cannot force close on its own Apr 07 18:59:28 you need the stacktrace Apr 07 18:59:43 also, stack trace or gtfo Apr 07 18:59:45 read the topic Apr 07 18:59:51 M360: You should replace "MY IP ADRESS HERE" with your own IP ;) Apr 07 19:00:07 that too Apr 07 19:00:11 and read the topic :D Apr 07 19:01:06 i did put my ip i just dident want to post it Apr 07 19:01:50 i just wrote MY IP ADRESS so not post my ip Apr 07 19:02:53 Over the next few weeks, we’ll be adding nearly 500 new Paramount Pictures films to Google Play for people in the US and Canada. Apr 07 19:02:53 wow Apr 07 19:03:00 didnt realize canada was getting stuff too Apr 07 19:03:00 :) Apr 07 19:03:09 M360: you mean 96.27.66.93 ? Apr 07 19:03:14 now we just need europe Apr 07 19:04:55 SimonVT: Correct :( Apr 07 19:05:12 :D Apr 07 19:05:17 I'm happy Apr 07 19:05:33 fixed up my project and created it in the LibreOffice android directory in a subdirectory called UI :D Apr 07 19:05:36 and the project is in there :D Apr 07 19:05:46 submitted a patch for inclusion :) Apr 07 19:05:49 into the project Apr 07 19:17:29 is it possible to have multiple for instance in the same file Apr 07 19:17:38 <[Pi]_> does anyone have the energy to pull me through deploying ' hello world ' onto a Samsung Galaxy 2 (OSX lion) ? Apr 07 19:18:07 nm answered my own question Apr 07 19:27:00 would anybody happen to know if a list like: 'my app crashes in 4.0 for dummies' type list been made? Apr 07 19:28:23 stack trace or gtfo Apr 07 19:30:23 banana debt... I'm on to something here Apr 07 19:30:33 canadacow you want to play my quiz game? Apr 07 19:30:45 say yes , and I'll upload it to google play Apr 07 19:35:42 I cant run terminal emulator in nadoird 4 Apr 07 19:36:02 how IM supposed to get ip ? Apr 07 19:36:09 need to run netcfg Apr 07 19:37:01 is there any other way I can find the ip of the device ? Apr 07 19:37:41 Hi i have a problem. I'm building a breakout-game and i need a algorithm to see in what direction a cube was hit Apr 07 19:38:41 I am getting column _id doesn't exist in my custom content provider. I have no idea why when there is an _id column. This is my first time doing a content provider. Here is the code with logcat: http://pastebin.com/7kvAw8QK Apr 07 19:39:22 azm, through your router? Apr 07 19:39:34 or external ip through 3g/gsm? Apr 07 19:39:46 cooldman224: That's your adapter throwing that exception, not your contentprovider Apr 07 19:39:54 You need to query the _id as well Apr 07 19:40:08 Zooklubba, Im running Android4 in VM and want to connect it to eclipse via adb connect Apr 07 19:40:12 wait Apr 07 19:40:20 oh Apr 07 19:40:20 yes Apr 07 19:40:42 SimonVT: query it where, in my adapter or content provider? Apr 07 19:40:53 Wherever you query for a cursor Apr 07 19:43:30 SimonVT: String[] projection = { SelectedDrinksTable.DRINKNAME, SelectedDrinksTable.OCCURENCE }; add it to there? CursorLoader cursorLoader = new CursorLoader(..., SELECTED_DRINKS_URI, projection,...); Apr 07 19:43:38 Yes Apr 07 19:43:42 That's the columns you query Apr 07 19:44:04 I think I have might have tried that but we shall see Apr 07 19:44:26 I guess I didn't seems to be working, thanks Apr 07 19:45:29 yup all good, thanks SimonVT Apr 07 19:54:48 SimonVT: if i wanted to use abs now (4.0.1) is it likely i would run into any issues ? are things pretty stable ? Apr 07 19:55:36 Things are stable Apr 07 19:55:52 thx Apr 07 19:56:52 hey guys, I have a listview, and onItemClickListener, that passes me a list item's View. So I apply some animation on this passed view, and it works just great, but another random list item starts to animate too. I don't know why, so my animation plays twice on the view that has passed to onItemClickListener (which is fine) and then it plays on the other random list item. what am I doing wrong? Apr 07 19:58:35 I am using this animation only in this method, which passes me a desired View object Apr 07 19:59:13 why another random View gets the startAnimation too? Apr 07 20:00:27 oh man Apr 07 20:00:31 terrible reviews :< Apr 07 20:00:44 Could somebody please shed some light into why this try/catch for sending a message to a computer worked in GB but no longer in ICS? tyia Apr 07 20:01:37 mantas322, what do you mean? Apr 07 20:01:48 for an app I made along time go Apr 07 20:01:53 nevermind Apr 07 20:03:49 http://pastebin.com/Kz8Ns0SA link for last post *palm face* Apr 07 20:04:37 is there a way to find out IP of VM without terminal emulator please ? Apr 07 20:04:58 I installed it but its crashing under aandroid 4 Apr 07 20:05:37 im pulling my hair out here trying to figure out why ADB hates me.... anyone ever run into problems with adb not working correctly? eclipse claims it starts your app but it doesnt... also shows debug as off... and doesnt have access to full filesystem.. Apr 07 20:06:15 tried reboot of everything, killed adb manually restarted it manually Apr 07 20:06:29 stiggpwnz, are you aware how listview view recycling works? Apr 07 20:07:40 fload - i had the same problem a couple of days ago and had to set the run config to Launch: url.package.pagename Apr 07 20:09:28 hmm ill try that! Apr 07 20:10:17 canadiancow, I don't really get you, you mean like removing invisible items from the memory and showing them with the adapter? Apr 07 20:12:06 No, like how once a view goes off screen, it will be reused for another position in the list Apr 07 20:18:30 Wtf is wrogn with googleplay Apr 07 20:18:30 Off (Application can be copied from the device)On (Helps prevent copying of this application from the device. Increases the amount of memory on the phone required to install the application.) Apr 07 20:18:49 says I need to Copy protection on or off Apr 07 20:18:54 but both wont work Apr 07 20:26:11 okay... Apr 07 20:26:26 who wants to play my game Apr 07 20:27:39 https://play.google.com/store/apps/details?id=Quizer.Quiz Apr 07 20:28:40 with this amazingly immersive reward system I've concocted, I'll be able to get people to learn things about any dataset Apr 07 20:29:12 * mantas322 feels pretty proud of himself Apr 07 20:29:23 saturday well spent Apr 07 20:30:06 SimonVT, but whenever I click my view, it always on the screen, but another random view gets animated too, but they're completely different Apr 07 20:30:25 hey guys i am following this http://developer.android.com/resources/tutorials/views/hello-listview.html Apr 07 20:30:28 and i have an issue Apr 07 20:31:18 in the code in the onCreate() method i have an issue with t the setListAdapter and an error with R.layout.list_item Apr 07 20:31:57 how can i fix it Apr 07 20:33:03 nm fixed it Apr 07 20:38:59 why would SOCKET = new Socket(SERVER_IP_ADDRESS, PORT) stop working in 4.0? :( Apr 07 20:42:42 Brian125: networking in main thread error? Apr 07 20:44:19 alankila - ye Apr 07 20:44:52 well there's a manifest attribute to make android shut up about it again Apr 07 20:45:06 or you could put all networking into its own thread Apr 07 20:45:43 (typically easier said than done, I know) Apr 07 20:46:10 how to stop mediaplayer preparing? Apr 07 20:46:25 *interrupt Apr 07 20:46:25 alankila - what's the manifest attribute? :* Apr 07 20:47:01 reset() doesn't stop the preparing process Apr 07 20:48:38 don't remember Apr 07 20:48:58 ok, thanks for pointing me in a better direction Apr 07 20:49:46 i need some help I'm getting dalvik compiler failures :( something about core being in part of my project how do i remove it Apr 07 20:51:57 http://i41.tinypic.com/25plswl.png Apr 07 21:33:59 alankila - I've got my app working in 4.0 now, thank you very very very very much Apr 07 21:34:12 I'll be able to sleep tonight :P Apr 07 21:43:41 I am having trouble getting my action mode to start in my listfragment, errors on getActivity().startActionMode. here is the code with the error: http://pastebin.com/w7th77iL Apr 07 21:46:24 i've got a preference on the preference screen that i'm trying to use to delete a bunch of files. I have the delete method in my main activity. I've been trying to figure out how to hook it all together, but nothings really worked so far. i've a sharedpreferencechangelistener, but that doesn't work for straight preferences. any clues Apr 07 21:46:42 i'd like to keep the delete method in the main activity Apr 07 21:48:37 cooldman224: getSherlockActivity Apr 07 21:48:47 Don't try to pass sherlock classes to framework methods Apr 07 21:49:22 confab: Why is the method in your main activity if it's invoked from the preference activity Apr 07 21:50:09 SimonVT: it removes rows from the database and deletes files from the ext.storage Apr 07 21:50:44 SimonVT: should i not be doing it that way? Apr 07 21:50:48 Doesn't quite answer my question Apr 07 21:51:25 Are you also using the method in your activity? Why not put it in a helper class Apr 07 21:51:45 SimonVT: once again thanks, can you explain your last statement so I don;t make the mistake again? Apr 07 21:53:31 Eh.. If you're using ABS, don't call framework actionbar methods Apr 07 21:56:25 SimonVT: no, it's not currently being used in the main activity, i was basically being too lazy to create the database stuff again Apr 07 21:56:55 SimonVT: thanks for the suggestion, i'll rip it out of the main activity Apr 07 22:01:26 SimonVT: ah the gears just fully turned, I understand now. thanks Apr 07 22:08:51 test Apr 07 22:09:03 there we go Apr 07 22:09:13 sweet. thanks Aaronds Apr 07 22:09:20 Hi everybody! I was wondering how I combine activities? I'm developing a simple android app that needs to do some Bluetooth communication. I'd like to use the BluetoothChat activities but when I add them to my project in Eclipse, fix the compile errors, and try to deploy I get a ClassNothFoundException. Did a little searching, but couldn't fix the problem Apr 07 22:10:09 no problem Apr 07 22:11:24 I made the classname fully qualified like could some please help me out info on my problem here http://stackoverflow.com/questions/10057367/android-client-force-closing Apr 07 22:18:55 M360: you've been offered a solution on that page Apr 07 22:38:53 does anyone know why I might be getting classnotfoundexceptions when attempting to combine activities? I've verified that the .class files are present in the apk and I think the manifest is correct. Argh! Apr 07 22:40:06 and I appreciate any tips! Apr 07 22:41:28 logcat? Apr 07 22:45:25 freecandy: are you asking me? Apr 07 22:45:48 yes Apr 07 22:46:42 freecandy: one sec Apr 07 23:01:13 I'm trying to create an Android Project that uses an NDK-built shared library, that also uses a static library. I don't know how to make an Android.mk file that appropriately links the static library to the shared library. Apr 07 23:01:20 I have completed the tutorial on http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/ and it works perfectly. Apr 07 23:02:21 So, I know I can run an Android program that uses a c compiled shared library, BUT when I try to have that c code reference a static library, it has issues linking. Apr 07 23:04:31 I've pulled the Android source from dropbear that uses the libtomcrypt library. Apr 07 23:05:32 I ran "make" in Cygwin for the tomcrypt and tommath libraries, and they compiled to libtomcrypt.a and libtommath.a files, respectively, without a hitch. Apr 07 23:06:41 The only problem I have, AFAIK, is that when I run ndk-build to compile the ndkfoo shared library, I get errors that I am not linking to the tomcrypt library properly. Apr 07 23:07:13 Are there any examples I can follow that will show me which parameters or Android.mk entries I need to do this?? Apr 07 23:20:34 I guess this isn't the best time to ask these things, considering the whole weekend/passover/easter thing going on. Apr 07 23:20:50 gist: 2332779 Apr 07 23:20:58 freecandy: https://gist.github.com/2332779 Apr 07 23:29:42 I see Android.mk files for compiling tomcryptlib like https://www.codeaurora.org/git/projects/qrd-gb-dsds-7225/repository/revisions/cc99b832a941dc8cbb86f1607d04eb87935ddbfd/entry/android/external/dropbear/libtomcrypt/Android.mk but there's also a Makefile.in in the same folder. Is it supposed to be compiled twice?? Is the second Android.mk file here just for linking purposes? Apr 07 23:30:06 josh: I don't know enough to help, sorry. Apr 07 23:49:41 does any1 know how to retain information in arraylist of custom objects...im passing the arraylist from main activity to broadcast receiver using putParcelableArrayList, putting the code in debug, the arraylist in the main activity is properly populated with data, but when i use getParcelableArrayList to get the arraylist, it has part of the information missing or null...does any1 have Apr 07 23:49:41 any idea? Apr 07 23:53:35 Pdawg: You would have to show the two arrays for that to make any sense to a debugger. In any case, the data that is missing can be a huge clue, like if you ran the array through a filter, or if you are only displaying certing items in the "after" case. Apr 07 23:55:05 what do u mean show the two arrays? Apr 07 23:55:44 Like print it out and throw it in pastebin or something so we can see what you are going through. We aren't psycologists. Apr 08 00:06:48 anyone beat my app yet? Apr 08 00:07:07 SimonVT: there Apr 08 00:07:08 ? Apr 08 00:07:15 Here! Apr 08 00:07:33 about this https://github.com/JakeWharton/ActionBarSherlock/issues/394 Apr 08 00:08:04 i thought abs was independent of the acl now Apr 08 00:08:46 Just drop the new ACL in ABS libs/ and change scope of SherlockFragmentActivity.supportInvalidateOptionsMenu to public Apr 08 00:12:13 It's independent of ACL in the sense that it doesn't modify any of its code, so new revisions can just be dropped in Apr 08 00:13:30 ah, ok. but the situation could arise where acl 8 is released but abs is incompatible with it, so have to wait until that is changed. the dependency is still there, its just a matter of physical packaging Apr 08 00:13:50 ok Apr 08 00:14:38 is anyone using github for a closed source project (private repo) … but which still allows access to the public for bugs ? Apr 08 00:15:17 g00s: is that possible? Apr 08 00:15:22 I didn't know you could do that. Apr 08 00:15:27 i have no idea Apr 08 00:17:19 There's only compatibility issues cus Jake filed a bug for changing scope of that one method Apr 08 00:17:51 Which should've been public to begin with to match the framework api Apr 08 00:19:59 heeeeeerp Apr 08 00:20:30 derp derp derp Apr 08 00:20:45 who is at work this hour? Apr 08 00:21:08 And the "dependency" on ACL is only there since people are most likely going to use it with FragmentActivity anyway. It could be removed, but I doubt many are interested in linking FragmentActivity and ABS manually Apr 08 00:26:40 SimonVT, do you ever sleep? Apr 08 00:27:05 I try to Apr 08 00:28:37 g00s: Are you pro at making graphics? :p Apr 08 00:31:56 Sleep is overrated, imo. Apr 08 00:32:02 lol Apr 08 00:32:17 I get about 6 hours of sleep each night. Its just a bit late now. Apr 08 00:32:31 I'm a 3-5 person. Apr 08 00:32:45 SimonVT, whats your clock? Zeh standard. Like, PDT, CET, etc Apr 08 00:32:59 GMT is standard, no? Apr 08 00:33:34 CEST Apr 08 00:35:27 Does anyone here have experience with using the NDK to compile a shared library that uses a static library? Apr 08 00:36:17 MyApp --> MyCLibrary --> StaticLibrary Apr 08 00:37:51 how come starting my app with "am start -n ..." results in a new activity being called every time I hit home, then launch it through the menu? If I force stop the app, then only launch it through the menu, then the same activity gets reused every time. Apr 08 00:42:45 Hi Apr 08 00:42:50 what input type to use for ip addresses? Apr 08 00:43:02 of an edit text Apr 08 00:46:30 I want to port my android phone app to android tablet 10.1. Is it possible to get 10.1 tablet simulator Apr 08 00:51:33 <`z> mun24, yes Apr 08 00:51:38 <`z> just set the screen size Apr 08 00:51:40 <`z> i think Apr 08 00:54:36 There is an emulator for samsung 7" tablet but not for 10.1. Is is available? Apr 08 00:55:11 Just make a tablet sized emulator Apr 08 00:55:15 You don't dev for a specific device Apr 08 01:39:36 How do you install google apis for android api 10? I dont see it on the list :/ Apr 08 01:52:09 So I currently am using a Dialog theme for an activity, but is there any type of notification or popup class that doesn't use a new activity, just opens like a dialog that returns true or false depending on what you choose (like two buttons and a textview basically) Apr 08 02:12:26 How do you just send a bogus view? Apr 08 02:12:34 Can you just do new View(this) Apr 08 02:13:03 nvm that works Apr 08 02:26:24 whats the best way to create methods for my common queries of my content provider? like getContentResolver().myCommonQuery... Apr 08 02:31:46 ill find out later... Apr 08 02:34:19 Not sure what you mean. Apr 08 02:37:45 hm, there's something I don't understand about layouts, is there a way to determine what the total width of the screen is? I have a edittext and button inside a table row inside a table layout inside a linear layout and I want the edittext to limit its width, and grow downwards if need be Apr 08 02:51:35 You can nest it and just do fill_parent Apr 08 02:51:46 Oh grow downwards Apr 08 02:51:54 Hmm, might be a boolean to do that but idk Apr 08 02:51:55 b0nn: you want to determine the total width of the screen? Apr 08 02:52:35 You can do that from the display metrics… Apr 08 02:52:53 Which way does it grow now, just to be curious? Apr 08 02:53:38 Probably just stays the same size, but follows Apr 08 02:53:47 so you have to scroll to the left to get back to the beginning Apr 08 02:55:40 hwrd|work: it's growing width ways, which means that the form grows larger than the screen Apr 08 02:57:31 b0nn: Maybe set the TableLayout colum stretchableness to false? Apr 08 02:58:07 Other than that, I'm not sure. Apr 08 02:58:26 oh, that's an idea Apr 08 02:58:32 will loook into it Apr 08 02:59:28 b0nn: Cool. Let me know if it helps. **** ENDING LOGGING AT Sun Apr 08 03:00:01 2012