**** BEGIN LOGGING AT Tue Mar 12 02:59:58 2013 Mar 12 03:52:37 anyone about? Mar 12 03:56:43 hi. question: my activity does not receive broadcasts while it is paused, right? Mar 12 03:57:01 is there any way of 'queueing' broadcasts so they are processed the next time the activity starts? Mar 12 03:57:23 I have a service receiving messages via GCM, and I want to display these in an activity Mar 12 03:57:48 the service sends broadcasts with the messages and creates a notification, the notification opens the activity Mar 12 03:58:15 but at the time the user taps the notification, the broadcasts are long gone and the activity shows nothing. :-/ Mar 12 03:59:57 if I have the android source code on my machine, how can I tell JDB about it so I can step through it? Mar 12 04:02:09 any frenchies awake? Mar 12 04:04:57 tinloaf: wrong. if your activity registers a broadcast receiver, it will get those broadcasts, even while paused. Mar 12 04:05:45 that's assuming that the activity wasn't destroyed, of course... Mar 12 04:08:25 alex_PP: get any good shots ? i took my camera out today, more / lots bad pictures ;) Mar 12 04:10:24 lov: but 'destroyed' should only happen when the user manually halts the activity, right? Mar 12 04:10:51 (which will show him a 'this could make the app malfunction' warning..) Mar 12 04:11:09 so basically you say, I can rely on broadcasts being received? Mar 12 04:15:38 anyone know why MediaRecorder.stop() would just silently fail? Mar 12 04:25:22 g00s, nope Mar 12 04:25:24 :( Mar 12 04:25:34 got distacted by beer Mar 12 04:25:43 tonight's the night tough Mar 12 04:25:47 *though Mar 12 04:25:54 alex_PP: awesome :) Mar 12 04:27:07 i saw a nice bobcat today, but he was pretty big. it was dark, so i was going to have to get kinda close to him to light him up. decided, not to :D Mar 12 04:28:14 * alex_PP googles bobcat Mar 12 04:28:23 cute! Mar 12 04:29:04 :) Mar 12 04:29:23 Hey y'all, I am new to android, and I am trying to add onTap(GeoPoint p, MapView mapView) to my public class MainActivity extends MapActivity implements LocationListener class. However it says I need to remove @Override, and it underlines it in red, how do I fix this issue? Mar 12 04:29:49 are you supposed to use MapActivity still ? Mar 12 04:30:03 i thought all that changed with play services Mar 12 04:30:11 g00s: I have no idea Mar 12 04:30:56 http://developer.android.com/google/play-services/maps.html Mar 12 04:31:11 g00s: well that isn't my issue right now Mar 12 04:31:21 MapFragment Mar 12 04:32:01 of course its your issue now, you're using the wrong thing :) Mar 12 04:32:33 g00s: this isn't my code, I am adding to an existing project, I can't change it Mar 12 04:32:42 ah, sorry Mar 12 04:33:19 well, i guess first make sure you have java 6 compliance so its not complaining about annotations in general Mar 12 04:33:49 if that doesnt fix it, well - that means you are trying to override something that the superclass / interface doesn't have ;) Mar 12 04:34:10 hmm, any idea how to fix that? Mar 12 04:34:26 The method onTap(GeoPoint, MapView) of type MainActivity must override or implement a supertype method Mar 12 04:40:07 which folder do drawables for nexus 7 go in .. layout-xlarge-xhdpi ? Mar 12 04:40:58 sw600dp Mar 12 04:42:24 thanks Mar 12 04:43:26 JakeWharton is there a table that shows all most common devices and their drawable/layout etc folders? Mar 12 04:43:45 no Mar 12 04:43:53 you shouldn't target a device anyways Mar 12 04:44:11 no qualifier = all devices, sw600dp = 7" tablets, sw720dp = 10" tablets Mar 12 04:44:24 mdpi/hdpi/xhdpi for the different densities Mar 12 05:05:24 hi guys, anyone know why i got the assert failed....on prop thing? trying to flash with TWRP Mar 12 05:05:47 do i have to modify something in zip file? Mar 12 05:05:50 phong_: you again :) see topic Mar 12 05:06:18 ? Mar 12 05:06:33 go to #android-root Mar 12 05:06:53 ok Mar 12 05:06:56 i think i know the answer Mar 12 05:07:04 just the delete the assert part :) Mar 12 05:25:43 I'm trying to download some code from code.google.com but I'm running into a probelm with the link provided. It says that file not found. Mar 12 05:51:07 Question about listviews: If I have a short list (around 5-10) what's the best way/standard way to display it in an application. Should I just use an array or a database? Mar 12 05:59:46 EGamerHDK: If you know the items ahead of time just use an array, there's no reason to involve a database Mar 12 06:03:28 hum. question: when I change screen orientation, onSaveInstanceState() is not being called. Is that intended behavior or did I break something? Mar 12 06:03:47 if that is 'normal', how am I supposed to preserve data on screen rotation? onDestroy() does not give me a bundle to write into? Mar 12 06:04:54 save it in onPause() Mar 12 06:05:26 and then restore in in onResume()? Mar 12 06:05:49 hum.. the problem is: I have an ArrayList that backs an ArrayAdapter that I want to save Mar 12 06:06:00 that array adapter is being written to from a broadcast receiver Mar 12 06:06:11 that's not normal Mar 12 06:06:14 don't put it on onPause Mar 12 06:06:20 now, theoretically, between onPause() and onResume(), something could be written to the list, right? Mar 12 06:06:33 and then if I restore it in onResume(), I'll drop that change, not? Mar 12 06:06:53 wabz: so what's the best way to make an ArrayList inside a Fragment survive screen rotation? Mar 12 06:07:28 tinloaf: maybe just make the fragment retainInstance Mar 12 06:07:45 huh, retainInstance. Something new to google. being right back. ;) Mar 12 06:07:52 sorry I thought it was an activity Mar 12 06:08:38 oh I see. Basically, the activity is destroyed/created, but the fragment survives and is re-attached? Mar 12 06:08:47 Yes Mar 12 06:08:52 let me try that, that sounds like what I want. Mar 12 06:10:24 Can anyone point me in the right direction for getting android souce code from code.google.com? Every time I try a link provided by google it says 404 not found. Mar 12 06:10:45 hum. onCreateView() is still being called, although i set setRetainInstance(true)... :-/ Mar 12 06:11:40 oh, wait a second! Mar 12 06:11:53 i should create that arraylist in onCreate(), not in onCreateView()! Mar 12 06:15:01 nope, data still doesn't survive *sigh* Mar 12 06:16:10 and yes, onCreate() is also being called Mar 12 06:16:23 that should not happen with setRetainInstance(true), should it? Mar 12 06:18:22 EGamerHDK: You can't get the android source tree from code.google.com Try following the directions at source.android.com Mar 12 06:19:51 how can I get root access in a receiver? Mar 12 06:20:21 call the 'su' binary Mar 12 06:20:54 yeah, I did that Mar 12 06:21:02 I need the superuser thing to pop up though Mar 12 06:21:12 mdwright: yeah, I'm trying the link here: https://code.google.com/p/gtfs-android/ but I can't get the code. Mar 12 06:21:53 JakeWharton: I know you've made ton's of android app and libraries... have you ever had to work with GTFS? I have to make an app using it, but can't find anywhere that helps me. Mar 12 06:22:20 no, never heard of it actually Mar 12 06:23:43 Well it's " General Transit Feed Specification (GTFS)." And I found something on code.google that should "Build a local transit Android app for your community using the General Transit Feed Specification (GTFS)." But I can't get the svn link (provided by google) to work! Beyond aggravation setting in... Mar 12 06:24:26 oh, this is strange. In my Fragment, neither onDestroy() nor onSaveInstanceState() are being called on screen rotation. Mar 12 06:24:39 yet, onCreate() is being called afterwards... Mar 12 06:26:02 *sigh* its incredible through how many hoops you have to jump just to retain a damned array on screen rotation... Mar 12 06:28:23 come on, this is silly. setRetainInstance only causes onDestroy() not to be called, onCreate() still is called? is this the way it *should* behave? and if yes, who thought of this? Mar 12 06:28:41 *sigh* this is frustrating. Mar 12 06:33:28 tinloaf: onCreate will not be called on the fragment, read the documentation: http://developer.android.com/reference/android/app/Fragment.html#setRetainInstance(boolean) Mar 12 06:33:51 mdwright: my LogCat says otherwise :-/ Mar 12 06:34:02 I read that part of the documentation. Mar 12 06:34:06 Yet, my onCreate() is being called. Mar 12 06:34:27 Currently the lifecycle on screen rotation looks like this: onDetach(); onAttach(); onCreate(); Mar 12 06:34:38 note there is no onDestroy(), but a onCreate()... Mar 12 06:35:27 oh, and not only is onCreate() being called, but all the fields are nulled, so checking for null in onCreate() (and only initializing the objects if they are null) does not work Mar 12 06:35:39 so basically - something is killing the object without calling onDestroy. Mar 12 06:38:29 tinloaf: are you checking your FragmentManager to see if the fragments exist already or are you just creating new ones every time? I suspect the latter. Mar 12 06:39:47 mdwright: oh. onRetainInstance does not magically tell the fragmentManager not to create a new fragment? Mar 12 06:39:56 that could be it... *mumble* .. let me check. Mar 12 06:40:42 can I just check for findFragmentById == null? Mar 12 06:41:04 yes Mar 12 06:42:20 Your FragmentManager doesn't "create" fragments, you do. It just holds on to them for you and allows you to manage their transactions. Mar 12 06:42:47 humyes. And I've always replaced it. just a second... Mar 12 06:44:32 hum, ok... after rotation, the manager does not find the fragment anymore and replaces it... :-/ Mar 12 06:45:36 use tag, not ID Mar 12 06:46:28 still no luck (just switched to tag) Mar 12 06:46:38 i find it odd that it's not there Mar 12 06:46:44 of course, i lack about 99% of the context required to help you Mar 12 06:46:45 and i'm going to bed Mar 12 06:47:09 http://pastebin.com/7AiueMRc should work, shouldn't it? Mar 12 06:47:14 good night, and thanks. Mar 12 06:49:10 tinloaf: You're never actually adding it to the FragmentManager Mar 12 06:49:44 mdwright: doesn't replace do that? it replaces whatever was in the container with the ID before with the new fragment? Mar 12 06:52:09 Ugh, too many things open at once. Yeah, that should work. Mar 12 06:53:11 ok, but by reading heaps of docs I've learned i should probably be using ListFragment (instead of Fragment) as a base class anyway Mar 12 06:53:28 so I'll probably refactor that and hope that it makes my problems magically disappear... Mar 12 06:53:39 before going completely crazy with this... Mar 12 06:54:28 I mean.. I'm trying to do a very simple thing. Not to lose my list on rotation. Can it be that hard that someone who is very well adapt at programming (not in Java/Android though) needs 5+ hours to get it to work? Mar 12 06:54:56 tinloaf: are you overriding onSaveInstanceState? Mar 12 06:55:19 On the fragment Mar 12 06:56:34 mdwright: yes. Mar 12 06:56:39 it's not being called. Mar 12 06:57:01 tinloaf: make sure to call super.onSaveInstanceState Mar 12 06:57:12 same goes for any of the other lifecycle methods you've overridden Mar 12 06:57:13 i do Mar 12 06:57:20 hum, let me check the others... Mar 12 06:58:57 oh this is great. The code auto-generated by eclipse (for a blank project with dropdown menu) skips calling the super-methods -.- Mar 12 06:59:03 thanks eclipse for being so helpful. Mar 12 06:59:31 tinloaf: oh, ugh :/ try calling the super methods. I'm betting it'll work then. Mar 12 06:59:43 I'm not sure why it isn't an error not to call the super methods on the support lib fragments. Mar 12 06:59:49 if it now works I'm so filing a bug with eclipse... Mar 12 07:00:11 tinloaf: file a bug against our tools team (b.android.com) Mar 12 07:00:12 mdwright: i've seen android bug reports around that not calling super in onSaveState() does not trigger an exception. Mar 12 07:00:24 I'm testing now... Mar 12 07:01:05 bam, there is onSaveInstanceState() in the fragment! Mar 12 07:01:20 mdwright: b.android.com is the place to file bugs against ADT? Mar 12 07:01:24 tinloaf: yes Mar 12 07:01:31 going there now. Thanks for the help. ;) Mar 12 07:01:41 Sure thing, glad we could sort that out Mar 12 07:02:19 Anyways, yeah, Android is like learning a new programming language, a new UI toolkit, and new OS principles all at once Mar 12 07:02:25 so it can be a little overwhelming Mar 12 07:02:56 the problem is that you really have to do a *lot* for some things Mar 12 07:03:02 and really little for other Mar 12 07:03:12 for example: sending/receiving broadcasts is a breeze Mar 12 07:03:14 I strongly suggest you skim through the title of all the training docs at least and read the relevant ones. Same for the API Guides, but they're slightly less important Mar 12 07:03:22 but there is no ORM for the SQLite? Mar 12 07:03:38 tinloaf: Does Windows provide you with an ORM? OSX? :) Mar 12 07:03:57 Android is an OS. It's up to other developers to provide the ORMs for the platform (and they exist). Mar 12 07:04:08 no, sure not.. but still. Windows does not delete all my objects when I look at the monitor from a different angle. ;) Mar 12 07:04:18 yep, I'm using ORMLite Mar 12 07:04:25 it's actually pretty OK Mar 12 07:04:44 Writing applications that span multiple device sizes is also fairly difficult in windows Mar 12 07:05:11 wouldn't know, I'm not really in the windows world.. but you're right, basically everything doing UI is ... dirty. Mar 12 07:05:20 that why I normally don't do UI *cough* Mar 12 07:05:57 Yeah. And Android's goal isn't to make spanning a *massive* range of devices /easy/ necessarily, but possible. Mar 12 07:06:24 Because it really isn't possible on any other platform. iOS requires you to do a separate UI for each device profile, similar with windows, etc. etc. Mar 12 07:08:10 mdwright: http://code.google.com/p/android/issues/detail?id=53115&thanks=53115&ts=1363072070 - in case you want to categorize it or so Mar 12 07:08:12 mdwright: problem is, you can has your ORMs but your content providers have to pass Cursors - and thats baked into the OS Mar 12 07:08:49 that's true, that's making ORMs in these cases not really easy to implement. Mar 12 07:10:10 tinloaf: thanks for filing! Mar 12 07:11:32 no problem. but a last question for my actual problem: With a ListFragment, onSaveInstanceState() is indeed the right place to store the ArrayAdapter? Mar 12 07:11:57 I just want to make sure I don't screw up again. ;) Mar 12 07:13:38 g00s: is your issue with an ORM interacting with ContentProviders from a consumption or creation standpoint? Because I think both are solvable, but it just requires an ORM to be written for /android/ rather than for just SQLite (which, to be fair, is a lot more work) Mar 12 07:15:07 tinloaf: Yes. And then restore it in onCreate, onCreateView, or onActivityCreated Mar 12 07:18:34 mdwright: that sounds easy enough :) (considering that I already made everything inside Parcelable... I'd really hate to see that work go to waste ;-)) Mar 12 07:19:03 ha! works out of the box! success! Mar 12 07:19:12 \o/ Mar 12 07:20:18 thanks a lot ;) Mar 12 07:20:42 Sure thing. Like I said, glad we could get it sorted out. Mar 12 07:21:20 now i can display a list. I'm the king. Or so. ... I probably should really read through the training docs that I've not read so far.. Mar 12 07:21:26 where does one finnd the logs of this channel? Mar 12 07:23:27 oh by the way - mdwright you're not an expert on those ADT templates, are you? Because I think there is another bug in that one ADT template. Mar 12 07:23:52 it basically gives me a Force Close without changing anything in the template. Mar 12 07:26:37 gnuskool: There's no official logs of any sort. Sorry. Mar 12 07:26:53 tinloaf: which template Mar 12 07:28:33 mdwright: the "Blank App with Dropdown Menu" Mar 12 07:29:01 mdwright: you know which I mean? Mar 12 07:29:51 the problem arises when you start the app while it is not in the foreground (e.g. via eclipse/adb) .. then the onNavigationItemSelected() in the MainActivity will fire and do stuff Mar 12 07:30:05 and you get a "this is not allowed after onSaveInstanceState()" - Exception Mar 12 07:30:30 I guess that the application is instantly being paused when it is started in the background, and you may not start fragment transactions while being paused? Mar 12 07:38:29 I'd have to look at the stack trace myself to have an idea, but yeah, you can't do any fragment transactions after onSaveInstanceState Mar 12 07:40:15 hum, one moment, have to use a real logcat for the backtrace.. Mar 12 07:41:33 mdwright: http://pastebin.com/zQzeh1ft Mar 12 07:42:16 line 153 is the one doing the .replace() in the FragmentTransaction Mar 12 07:42:38 should I file another bug? Mar 12 07:43:54 Yeah. This might be a support lib bug though. Not entirely sure. Mar 12 07:44:15 regardless, b.android.com is the right place to file it. let them figure out where to route it. Mar 12 07:45:43 :) Mar 12 08:13:01 by the way is it normal that all the views are being rebuilt when I add() something to the Adapter of a ListView? Mar 12 08:13:20 this seems pretty inefficient (since I'm loading an image from SD storage every time...) Mar 12 08:28:46 <[SP]JESTER> yo anyone awake i need some help real quick Mar 12 08:29:14 [SP]JESTER: no meta questions please! Mar 12 08:29:52 <[SP]JESTER> okay? Mar 12 08:30:16 <[SP]JESTER> im just trying to fix the ids on this public.xml for 3 icons i added, that is all i don't know the hex ranges Mar 12 08:30:35 "is anyone awake here?', 'can someone help me?', 'does anyone know about listviews?' ; just ask your question and if someone will be able to help they will do so :) Mar 12 08:30:48 <[SP]JESTER> http://pastebin.com/wm3ZJb7f Mar 12 08:32:16 [SP]JESTER: what are you trying to do? Mar 12 08:32:29 you shouldn't normally not touch that file Mar 12 08:32:36 <[SP]JESTER> add these menus Mar 12 08:32:36 <[SP]JESTER> https://dl.dropbox.com/u/52578087/Screenshot_2013-03-12-01-58-40.png Mar 12 08:32:41 <[SP]JESTER> to sense Mar 12 08:32:53 <[SP]JESTER> the HD settings section Mar 12 08:32:57 <[SP]JESTER> the 3 custom tabs Mar 12 08:33:20 <[SP]JESTER> they have images that pull from drawables and strings so i have to Mar 12 08:33:45 am i understanding right you are extending htc sense? Mar 12 08:34:07 <[SP]JESTER> yea but its a aosp settings mod, i already added the buttons to the settings_headers.xml and stuff Mar 12 08:34:12 <[SP]JESTER> its just the public needs new ids Mar 12 08:34:14 <[SP]JESTER> so i can compile it Mar 12 08:34:21 <[SP]JESTER> so they will be "defined" Mar 12 08:34:36 yeah but for htc sense i am out, i like not to support bad designs :D Mar 12 08:34:50 (and i never modified public.xml) Mar 12 08:34:59 <[SP]JESTER> lol its such a nightmare Mar 12 08:35:06 <[SP]JESTER> especially since htc touched it Mar 12 08:35:24 I just wouldn't buy any device using android 4+ without holo UI Mar 12 08:35:39 google did such a great job with their UI, and then come samsung or htc and put their crap on it Mar 12 08:36:03 and honestly it might have been better in the 2+ versions than the default, but it is soooo much worse than the default holo style Mar 12 08:36:11 <[SP]JESTER> hmmm Mar 12 08:36:23 nexus devices for the win :) Mar 12 08:36:29 (or custom roms with default UI :D) Mar 12 08:37:04 <[SP]JESTER> ill try to compile without editing public.xml Mar 12 08:37:47 you can (a) just give it ids (that are free) Mar 12 08:38:03 <[SP]JESTER> yea thats the thing tho, i dont know what ids are free lol Mar 12 08:38:05 or (b) just compile it without the id field, then the framework should add an id to it Mar 12 08:38:13 <[SP]JESTER> hmm Mar 12 08:38:18 i mean this id field is just so they won't change during compilation Mar 12 08:38:30 if it isn't there the framework will add ids dynamically Mar 12 08:38:38 Has anyone here had to deal with GTFS files before? Mar 12 08:38:41 timroes, I like the sony UI Mar 12 08:38:46 <[SP]JESTER> it built without editing public.xml, gnna see if it works Mar 12 08:38:46 (might cause you to clean and build your project sometimes, when you add new resources) Mar 12 08:39:00 Zharf: never used or seen it (googling now :D) Mar 12 08:39:26 okay that looks at least pretty close to the original holo Mar 12 08:40:16 but had some weeks ago an enlighting moment on how bad samsung really designs its UI. someone in the bus asked me if I know about all that new mobile stuff, because he couldn;t call anyonre anymore, because his dialpad in the telephon app vanished Mar 12 08:40:47 :O Mar 12 08:40:51 where did it go then Mar 12 08:41:04 took me around 15 mins to figure out what was wrong... they implemented scrolling tabs, but there always fit an exactly 4 tabs on the screen, and if you switch the tabs the tabs won't recenter, you have to horicontal scroll them Mar 12 08:41:09 (searching screenshot to make it clear :D) Mar 12 08:41:35 aha Mar 12 08:42:06 http://www.blogcdn.com/www.engadget.com/media/2011/05/netflix-android-05-12-2011-1305228842.jpg this is not at all the phone app but i can use it for my point :D Mar 12 08:42:19 it was like the tabs in that app, and if you press a tab it switched to it Mar 12 08:42:22 I kinda liked the swipe to call/send message to person from the contacts list in my old samsung galaxy 3 Mar 12 08:42:37 but to show the other tabs (currently not on screen) you have to swipe over the tabs left and right Mar 12 08:42:49 even if you select the last one (or first one) it won't scroll to the left and right Mar 12 08:43:05 timroes, right, it had no hint that there were hidden tabs because it fit the 4 tabs on the screen, right? Mar 12 08:43:08 and somehow the girl managed to get to the last tab, and now the dialpad was the first tab (that wasn't visible anymore) Mar 12 08:43:11 exactly Mar 12 08:43:16 yeah that's horrible Mar 12 08:43:34 makes again a point for the most important design principle: DON'T FU*** HIDE FUNCTIONALLITY Mar 12 08:43:41 I agree Mar 12 08:43:44 (though i think the 2nd word isn't in the book :D) Mar 12 08:43:49 like google did with youtube Mar 12 08:44:03 yeah but their tabs at least scroll when you go through them Mar 12 08:44:09 like you click the last one, that becomes centered Mar 12 08:44:15 I mean just the regular youtube webpage Mar 12 08:44:17 (if you meant the tabs) Mar 12 08:44:20 ah okay :D Mar 12 08:44:44 it has hidden links that you don't know are links before you move your mouse close to them Mar 12 08:44:47 it's just horrible Mar 12 08:44:47 yeah thats true too :) Mar 12 08:45:03 but thata samsung shit made me kind of angry :D Mar 12 08:45:20 i mean I work with these devices every day, since I develop every day 8 hours for them Mar 12 08:45:27 and i wasn't able to figure it out in 15 mins Mar 12 08:45:31 to reach the telphon dial pad Mar 12 08:45:43 some years ago the most important function in a cellphone Mar 12 08:45:46 it should be a max 30 second process Mar 12 08:45:54 and even that is too long imho for the dial pad Mar 12 08:45:55 for the first time user Mar 12 08:46:20 such a bad design Mar 12 08:46:44 (but i guess the android 4 samsung phone app looks a bit different, that was a pre 4 problem) Mar 12 08:47:58 I have an S3 aroudn here somewhere Mar 12 08:48:04 but I've never used the dialer in it :p Mar 12 08:48:21 untiol the time you rwant to call the ambulance Mar 12 08:48:31 and need 15 minutes to figure out how to get the god damn dial pad :D Mar 12 08:48:35 I have like 5 phones Mar 12 08:48:48 the other 4's batteries are dead :) Mar 12 08:48:57 :p Mar 12 08:52:28 nice :D Mar 12 08:52:37 asked my wife (she has pre 4 samsung) if she can make me a screenshot Mar 12 08:52:43 she now first discovered the app has 5 tabs :D Mar 12 08:52:49 when i told her how to do it Mar 12 08:52:50 heh Mar 12 08:52:59 I should check my galaxy 3, when I get back home Mar 12 08:55:13 *sigh* whenever I update the android-sdk, it breaks my build Mar 12 08:58:06 hiii Mar 12 08:58:11 i need some help Mar 12 08:58:17 for android development Mar 12 08:58:40 can I ask for that?? Mar 12 08:58:55 Zharf: http://s14.directupload.net/images/130312/fnp4twaf.png Mar 12 08:59:01 Just ask your question. Don't ask if you can ask. Mar 12 08:59:16 have fun guessing there is a 5th tab :D Mar 12 08:59:39 okk i am getting some exceptions Mar 12 08:59:47 while runnig my app Mar 12 09:00:12 papa07672: paste your logcat output (to pastebin) and some parts of the relevant code Mar 12 09:00:16 its a simple app tutorial module from build first app from adroid .google .com Mar 12 09:00:42 hmmm Mar 12 09:00:43 1 min Mar 12 09:06:56 http://pastebin.com/5jzwm8Sa Mar 12 09:07:03 this is the link Mar 12 09:07:12 for logcat Mar 12 09:12:50 papa07672: for next time, just paste the exception (and if you think relevant some lines before it :D) Mar 12 09:13:57 where at all is the exception :D Mar 12 09:14:18 i only see the emailcommon exception but don't find yours Mar 12 09:39:55 Hello, i have a problem here with my app, i'm kinda new to java and android dev but i made this app wich runs on my phone 2.3.3 but crashes instantly on a new version could someone take a look at it ? https://gist.github.com/anonymous/5141567 Mar 12 09:40:46 most likely because you are doing network on the main thread, but logcat output is pretty helpful in that case :) Mar 12 09:43:53 Ye that might be it, now i just need to firgure out how to make a thread or asyntask outside the main thread :p Mar 12 09:44:05 yeah you do Mar 12 09:44:18 you have all basic java threading stuff available Mar 12 09:45:12 uh.. so .. how am I supposed to create a notification? Mar 12 09:45:29 eclipse tells me i should use Notification.Builder() (because the other stuff is deprecated) Mar 12 09:45:43 but then it wines about Notification.Builder only being available since API level 16... Mar 12 09:47:32 timroes, apparently on this galaxy note all 5 tabs are visible :) Mar 12 09:47:39 but this thing is ridiculously wide Mar 12 09:47:52 Zharf: yeah :) Mar 12 09:47:59 and still i guess we both agree, thats pretty bad design Mar 12 09:48:04 yep Mar 12 09:51:48 Hi :) Mar 12 09:52:06 hello Mar 12 09:52:35 question: I have an ArrayAdapter backing a ListView containing some stuff. Now, when I tap my App icon on the home screen, my app seems to be re-started and the data in the adapter/list vanishes... Mar 12 09:52:48 is there any way of preserving this data without storing it somewhere? Mar 12 09:54:03 Where can i find some useful libs that will work with AutoCompleteTextView and allow fill there data from remote http server with JSON DATA ? Mar 12 10:06:52 hi guys i am facing problems while setting setCustomAnimation( int,int,int,int ).When i set the animations it applies only to the fragment being entered and exited but it doesn't applies to the fragment which is being replaced even when i popbackstack from the current fragment and move back to the previous fragment.what is the issue i am not getting Mar 12 10:07:33 i have got latest support lib , i have called setCustomAnimations before replace method Mar 12 10:07:54 Please help me on this eating up my whole day Mar 12 10:12:34 this stupid galaxy note doesn't print anything to the logs about native code crashes, also it doesn't actually kill the app either, it just freezes :E Mar 12 10:12:43 and I can't reproduce on other devices :E Mar 12 10:25:29 On this last post: http://stackoverflow.com/questions/8653260/autocomplete-in-android-not-working-with-dynamic-data Mar 12 10:25:41 we had aAdapter = new ArrayAdapter(getApplicationContext(),R.layout.item,suggest); Mar 12 10:25:50 what is this R.layout.item there? Mar 12 10:27:35 the layout each item should be shown in Mar 12 10:27:59 so when you put this adapter e.g. to a list each item will use that layout (and fill it with data) Mar 12 10:28:20 hello guys Mar 12 10:28:30 can android -> chrome stream ogg videos? Mar 12 10:28:40 i got it working on safari on samsung note 2 Mar 12 10:28:43 but not on chrome Mar 12 10:28:47 dmonjo: that is more a question for #android not here Mar 12 10:35:45 <_kud> Hey Mar 12 10:35:58 <_kud> My app isn't available on tablet, however it should be Mar 12 10:36:09 I have 2 fragments A and B. I am replacing fragment A with B and setting setCustomAnimation( right_to_left , fade_in ,fade_out , left_to_right ).In this case B is behaving as it as like it entering from right to left and when i press back button and do popbackstack it leaves from left to right but nothing is happening on fragment A .why? Mar 12 10:36:11 <_kud> it's a directive in my androidmanifest.xml which is wrong, right? Mar 12 10:36:25 <[SP]JESTER> heres my problem guys, any help with this is appreciated, http://forum.xda-developers.com/showthread.php?t=2187192 Mar 12 10:37:19 [SP]JESTER: such questions might be best on stackoverflow :) Mar 12 10:37:31 <[SP]JESTER> hmm alrighty! Mar 12 10:38:12 <_kud> I'd like to limit my app to android >= 3.x Mar 12 10:38:24 <_kud> and be available on smartphone and tablet Mar 12 10:40:47 [SP]JESTER: i meant then in xda-forum, not than in here (here is pretty the right palce to ask) Mar 12 10:41:16 <[SP]JESTER> yea just puttin it out there tho Mar 12 10:41:30 <[SP]JESTER> with all the edited files provided Mar 12 10:41:34 <[SP]JESTER> on pastebin Mar 12 10:43:05 timroes: well i dont get it... Mar 12 10:43:29 hetii: this might help http://www.vogella.com/articles/AndroidListView/article.html Mar 12 10:48:50 for eg. i see android.R.layout.simple_list_item_1 Mar 12 10:49:01 but where this simple_list_item_1 is defined ? Mar 12 10:49:15 is it a property or what? Mar 12 10:49:46 okay you don;t know anything about android resource system, right? Mar 12 10:50:20 http://d.android.com/training please start there and do at least the basic trainings (that also will answer your questions [and the upcoming ones]) Mar 12 10:57:24 Help me also guys Mar 12 11:23:31 timroes: huh, ok i can imagine based on this reference http://developer.android.com/reference/android/R.layout.html that those properties comes from internal part of Android Mar 12 11:31:43 hetii> http://developer.android.com/reference/android/R.layout.html Mar 12 11:32:40 ok but on this artice that i give up someone refer just to item property and that the point. Mar 12 11:32:47 Is it his own xml layout class Mar 12 11:32:55 or is is a part of os? Mar 12 11:41:43 I have an ImageView that is clickable and would like to have the selector to be drawn on top of the src image. Is this possible? Mar 12 11:42:39 hetii those ones are predefined in the OS Mar 12 11:45:11 So why i get: item cannot be resolved or is not a field Mar 12 11:51:50 hetii: most likely because you import the wrong R? Mar 12 12:04:09 hey Mar 12 12:09:00 need help to open a pdf in android 4 http://pastebin.com/0qj5yX1E this code open to my galaxy nexus with 4.2.2 thinkfree pdf viewer but i recieve error from pdf viwer Mar 12 12:09:39 "not enought memory" but if download pdf from browser and open manually works Mar 12 12:09:42 why? Mar 12 12:14:00 xan_IT: perhaps it only supports local files? Mar 12 12:16:21 i dont know, try adobe ? Mar 12 12:17:29 xan_IT: you could try to download the pdf yourself, and then point to the local file in your intent to view it. Mar 12 12:18:25 adobe opens but tell me "no documents to view" Mar 12 12:19:13 appel1 how? Mar 12 12:20:53 xan_IT: if your minimum api level is 9 or higher you could use DownloadManager for example Mar 12 12:21:34 xan_IT: if you google you can find plenty of other documentation and examples on how to download over http as well Mar 12 12:22:50 it's getting exciting Mar 12 12:22:59 almost 24 hours to IO registration Mar 12 12:23:22 and then 6 minutes to sellout Mar 12 12:23:36 and then 14 minutes till 6000 people riot Mar 12 12:23:40 like your mom Mar 12 12:23:57 should we place bets whether the servers will hold ? Mar 12 12:24:16 i wonder if me having multiple browsers, with multiple tabs was what killed it for me last eyar :( Mar 12 12:24:33 they warn against that this year Mar 12 12:24:46 myeah I wonder how they're catching that though Mar 12 12:24:52 surely not IP lock Mar 12 12:25:00 google plus account lock Mar 12 12:25:07 ah, yes, of course Mar 12 12:25:27 no excuse, its 2 PM and I've had my coffee. Mar 12 12:25:33 from my investigation, the site is configured to act slow as shit even under no load Mar 12 12:25:36 :| Mar 12 12:26:11 well, with some luck, even if you don't get a ticket tomorrow, you can get one in the upcoming competition. Everybody got in last year ;) Mar 12 12:26:30 what are the chances that they fuck up 2 years in a row? Mar 12 12:26:58 based on past experience with Google, 105% Mar 12 12:27:19 nah I doubt they'll make this exact mistake again Mar 12 12:27:47 no, they'll make new and interesting mistakes Mar 12 12:27:50 then again, I also doubted they'd release the Nexus 4 with broken OTG, as they'd messed that up on the GalNex as well. There's no telling. Mar 12 12:27:53 getting the first question "wrong" initially demoralized me Mar 12 12:28:09 nobody cares about OTG Mar 12 12:28:21 anyone going for an interview today? Mar 12 12:29:04 im supposed to be interviewing someone who said theyve been in here previously Mar 12 12:29:08 lol Mar 12 12:29:35 you could interview me but I'm not taking the job Mar 12 12:30:10 in fact, I'm cancelling the interview. You can go home now ;) Mar 12 12:30:15 thankjs Mar 12 12:30:40 my work setup is blasphemous Mar 12 12:31:05 I had Win 7 taskbar at the bottom of my laptop screen Mar 12 12:31:15 and windows 8 rdp on the left screen Mar 12 12:31:22 on a retina macbook pro Mar 12 12:31:47 win Mar 12 12:58:02 You guys let users send you stacktrace via email in your app? Mar 12 12:59:36 Anyone here working with SWIG code generation along the Android NDK ? I call swig with -importall and -Ipath/to/headers command line options and I get errors saying "Error: Unable to find header.h". There -I flag doesn't seem to work, is there another way to tell SWIG where to look for my headers? Mar 12 12:59:37 Quacked: no we let them send them to google play :D Mar 12 13:00:15 timroes: how is that done? Mar 12 13:00:43 you don;t need anything to do Mar 12 13:00:59 as soon as your app crashes, google play automatically offers the user a dialog to send a report to you Mar 12 13:01:08 this will all show up in the android developer console Mar 12 13:01:13 Cool Mar 12 13:01:36 Even if I set my catch to blank? Mar 12 13:01:48 Or should it print stacktrace Mar 12 13:02:07 I still like to include a "Bug report/feedback" menu item in my apps that shows a dialog where users can describe an issue or feedback, and has a checkbox for "Attach debug log" that will attach the device's logcat to the email it sends to me. Mar 12 13:02:15 logcats are very handy to go with stacktraces! Mar 12 13:02:17 eh if you catch your exceptions they will ofc not be send to google playt :D Mar 12 13:02:33 because your app didn't crash or so Mar 12 13:02:46 Yeah, that was my questions really :P Mar 12 13:02:57 * pragma- also offers his apps as APK downloads on various sites that are not Google Play, so ... Mar 12 13:02:58 so if you want to send yourself catched exceptions you need to do it by hand Mar 12 13:03:13 the better question would be.. why the hell do you want to send them to you, if you already catch them and handle them? Mar 12 13:03:19 e.g. F-Droid Mar 12 13:03:26 And directly from code.google.com Mar 12 13:03:59 pragma-: sounds nice Mar 12 13:04:51 according to apkudo.com, my app only crashes on 4 devices Mar 12 13:05:04 Yeah, the "Bug report/feedback" item also appends additional debug information such as the app version, make and model of the device, android version, cpu arch, and more. Mar 12 13:06:00 E.g., one of my apps is a network monitor that uses iptables, so the bug-report option will include the iptables and kernel version, as well as the contents of /proc/net/ip_tables_targets, etc Mar 12 13:06:35 Much easier than asking users to figure out this information and e-mail it to me :) Mar 12 13:08:14 "User Bob, please open a terminal shell on your device and type: uname -a, cat /proc/net/ip_tables_targets, etc, and send me the output" Mar 12 13:08:57 A few of those devices that fail show Caused by: android.os.TransactionTooLargeException in the traceback Mar 12 13:09:03 Not sure what that is Mar 12 13:09:09 java.lang.RuntimeException: Adding window failed Mar 12 13:09:55 You'll never see a bank complain about that! Mar 12 13:10:22 I am trying to pull down the Android source with the repo sync command, I have about 3.8G but now it always exits with "Exited sync due to fetch errors" is there a log somewhere or a verbose option that I can use to strat troubleshooting this? Mar 12 13:11:42 Quacked: have you read http://developer.android.com/reference/android/os/TransactionTooLargeException.html ? Mar 12 13:14:55 so, how does one profile application startup ? Mar 12 13:15:14 hello Mar 12 13:15:22 funkbox: logcat, traceview Mar 12 13:16:12 pragma-: i mean can i have traceview start the app ? Mar 12 13:16:46 window move 3 Mar 12 13:16:48 argh Mar 12 13:17:05 you can use startMethodTracing()/stopMethodTracing() in your app to fine-tune when profiling occurs Mar 12 13:17:11 so you can limit it to app-start up, or whatever Mar 12 13:17:14 I am using fragments to display multiple panels. one of those panels has a listview in the layout xml file, what i would like to do is be able to select multiple files, then find out which of those files are selected Mar 12 13:17:15 ahh thanks! Mar 12 13:17:55 is it correct, or appropriate to just define my listview in the xmlfile and just extend the fragment with @override onCreate and so on, or should I extend listview? Mar 12 13:18:10 im a bit confused with how things are being nested... Mar 12 13:18:33 ottoman, probably better to use a ListFragment in that case Mar 12 13:18:38 you shouldn't need to extend listview except for when you want to override its functionality Mar 12 13:19:12 rugby, so one of my fragments would extend ListFragment? Mar 12 13:19:21 i have three in total, each one is a bit different Mar 12 13:19:24 Yes Mar 12 13:19:47 one is just a multiple choice list, another is buttons plus multiple choice list and the last one is just a textview Mar 12 13:20:18 appel1: yes, but I don't really understand why it's happening on just a few devices Mar 12 13:20:23 rugby: the xml definition for the fragment would stay the same, I would just be extending ListFragment instead? Mar 12 13:20:57 Are you placing the fragment via FragmentTransaction, or inflating via XML? Mar 12 13:21:04 Quacked: do you do any ipc with resolution dependent bitmaps for example? Mar 12 13:21:05 inflating Mar 12 13:21:34 appel1: it happens on the Motorola 4.0 devices Motoluxe and Droid Razr Maxx HD Mar 12 13:21:38 you should have aloof at http://developer.android.com/reference/android/app/ListFragment.html Mar 12 13:22:07 specifically, if you create your own XML for the ListFragment, set the id to @id/android:list Mar 12 13:23:25 appel1: I do update .setSmallIcon in a Service which uses the drawable ic_launcher (which has various sizes in hdpi, mdpi, etc). That what you mean? Mar 12 13:26:36 appel1: maybe try a drawable that doesnt change between screen size? Mar 12 13:35:50 appel1: it didnt help Mar 12 13:37:54 can I extend ListFragment within an Activity that extends FragmentActivity?? Mar 12 13:41:02 appel1: one device said it got it when I hit OK on an AlertDialog.. too much stuff happening onClick here perhaps? http://pastebin.com/1HqLCZc0 Mar 12 13:45:18 Quacked: not sure, I've mostly seen it related to launcher widgets with to big bitmaps or layout change transactions Mar 12 13:47:22 hmm.. ok Mar 12 13:48:36 I see theres a few devices pointing out that the transtoolarge is caused by the alert.show(); line Mar 12 13:49:20 checking what happens if I disable the creation of that dialog completely Mar 12 13:51:46 ottoman: what? Mar 12 13:51:55 to have an inline class? Mar 12 13:52:08 you could, not sure why you'd want to do it that way though Mar 12 13:52:19 the point of fragments is so that they can be reused Mar 12 13:55:54 Which sdk versions do we need to support? Mar 12 13:56:13 I have it set at 6 at the moment Mar 12 13:57:08 apple741: i guess you mean which android version? and not sdk? Mar 12 13:58:29 timroes: I think so, sdk is just the software we are using to develop with,right? Mar 12 13:58:37 exactly :) Mar 12 13:58:38 http://developer.android.com/about/dashboards/index.html Mar 12 13:58:45 the dicision is up to you what you want to support Mar 12 13:58:48 i normally do 9+ Mar 12 13:59:34 this might help with that decision http://developer.android.com/about/dashboards/index.html Mar 12 13:59:51 market share by version Mar 12 13:59:57 KungFuHamster: too slow :P Mar 12 13:59:58 sort of Mar 12 14:00:05 oh, my bad Mar 12 14:00:05 timroes + KungFuHamster : Awesome thanks guys :) Mar 12 14:00:15 missed that you'd already posted it Mar 12 14:00:51 I lag behind in IRC becuase it's on a secondary monitor. I really shouldn't be looking at all.. Mar 12 14:01:29 but secondary monitor makes it faster to look :) you don't need to switch windows all the time :) Mar 12 14:01:35 froyo is still a good-sized segment Mar 12 14:01:48 timroes, yeah it has IRC, bandwidth monitor, IMs.. Mar 12 14:02:08 On an unrelated note, do you guys notice decreased IAP sales from apps greater than 50mb in the google play store? Mar 12 14:09:08 sorry, I'm a noob. I've dabbled, but not published anything Mar 12 14:09:10 yet Mar 12 14:09:26 KungFuHamster: and that makes you how a noob? Mar 12 14:09:44 I have no info on apple741's question Mar 12 14:10:40 if you don't know the answer, you can just not answer the question. Mar 12 14:11:21 there was a lot of silence, so I figured in this case a negative would be acknowledgement. Mar 12 14:11:22 and we are back to rude comments instead of being silence, nice.. Mar 12 14:17:42 KungFuHamster: No problem, thanks :) Mar 12 14:18:03 Yeah it is really quite in here quite often :) Mar 12 14:19:19 * kaneda^ crickets Mar 12 14:20:02 I'll try asking that last question again later anyway when more people are chatting :) Mar 12 14:32:20 any of you use ormlite? i'm seeing OrmLiteSqliteOpenHelper take a HUGE amount of time at startup. most of it spent in AndroidConnectionSource Mar 12 14:46:54 what can i use to gracefully handle errors in my app? Like some sort of 'catch all' thing that sends me a stacktrace? Mar 12 14:47:04 along with a nice message for the user Mar 12 14:47:31 xorgate, it's except by exception, but if your program crashes yuo should always get a stacktrace Mar 12 14:47:34 xorgate: crittercism or bugsense Mar 12 14:47:55 cheers Mar 12 14:48:37 bugsense is cheaper. Mar 12 14:50:49 Does google provide anywhere to store large IAP that I don't want to be in the app initially? - to keep it below 50mb Mar 12 14:51:12 not really for IAP, no Mar 12 14:51:51 apple741: store it on dropbox Mar 12 14:52:47 Not really. Use an OBB or something. Mar 12 14:53:16 xorgate: there's the UncaughtExceptionHandler. Mar 12 14:53:26 xorgate: that said, if the app is on play it should handle reporting crashes for you Mar 12 14:53:42 mikedg: Thats a good idea! Could dropbox have a problem with that if the download volume becomes too high? (unlikely but you never know :) ) Mar 12 14:53:50 yes Mar 12 14:53:53 nah, just use crittercism or bugsense. it's a line of code and it does everything for you Mar 12 14:54:15 xorgate: dont crash Mar 12 14:54:26 mikedg ah hadn't thought of that, thanks Mar 12 14:54:33 no problem Mar 12 14:54:37 xorgate: look up ACRA? Mar 12 14:55:15 lov play does that automatically? Mar 12 14:56:34 I'll probably just split the app as lov suggested in that case and 'hide' the IAP when the user downloads the app, I was just trying to get around the 50mb limit to prevent the user needing to download the full app but it sounds like more trouble than its worth in my case. Mar 12 14:56:49 again, don't just use a service. it's not worth the time expended to write all your own crap when someone already did all the ghard work Mar 12 14:56:59 err JUST use a service Mar 12 14:58:49 xorgate: http://developer.android.com/reference/android/os/storage/StorageManager.html and http://developer.android.com/google/play/expansion-files.html Mar 12 15:11:16 lov im sure that was for apple741 ? Mar 12 15:11:27 my q was regarding error reporting Mar 12 15:15:47 xorgate: whoops, yes, it was for apple741 Mar 12 15:15:49 Is anyone familiar with the API for sending SMS? Mar 12 15:16:08 elplatt: No. No one has ever used this API before. Mar 12 15:16:17 You are a brave explorer in an untested wilderness of code Mar 12 15:16:23 (Just ask your question) Mar 12 15:16:57 go north Mar 12 15:17:11 you see a key Mar 12 15:17:23 look key Mar 12 15:17:30 throw bottle in crack in mountain Mar 12 15:17:39 xyzzy Mar 12 15:17:52 is there some tablet device at Android 3.1 without possibility to upgrade to 3.2? (any link about this?) Mar 12 15:17:57 the key is for a hash table, which does not appear to be here. you see a stack trace leading to the east. Mar 12 15:18:11 mastro: I don't think that there are any devices out there like this, but I'm not sure. Mar 12 15:18:26 oGMo: look stack trace Mar 12 15:18:38 testing for 3.1/3.2? ouch Mar 12 15:19:43 lov: it looks to have been left by a local tribe of kobold programmers Mar 12 15:20:24 brb Mar 12 15:21:01 my immersion! D:! Mar 12 15:21:30 mastro: I suppose you could look for an older flash image for a xoom and downgrade it Mar 12 15:21:32 * kaneda^ kills the kobolds, takes the gold Mar 12 15:22:46 dragorn, I don't need a 3.1 device :) I would like to be sure that there is no 3.1 device out there without the upgrade to a greater version Mar 12 15:23:03 Is it appropriate to extend Service to make a background REST checker? O_o Mar 12 15:23:05 dragorn, actually I would love some official link saying that Mar 12 15:23:11 lov, I hope so Mar 12 15:24:11 mastro: i dont' know of one Mar 12 15:24:16 but there won't be an official link Mar 12 15:24:33 actually... who made 3.x tablets? motorola, not much else Mar 12 15:24:33 *COBOLds Mar 12 15:25:01 Using the default text messaging app I can send an sms to an email address. I would like to take advantage of this functionality in code. It looks like an OUTGOING_SMS intent does not work if you set "to" to an email address. Does anyone know how to take advantage of the email gateways provided by most carriers? Mar 12 15:25:29 in a listView/listAdapter, what could be the cause of getView being called on position 0 128 times, and if there is 2 items 256, with the 2nd item or any other items just having the one call ? Mar 12 15:25:56 elplatt: you can just pull the messaging app from the AOSP source. Just be warned that there be dragons, since SMS/MMS is a godawful mess. Mar 12 15:27:07 lov, does that involve user interaction? Mar 12 15:27:11 dragorn, talking about the xoom I think... well nope there's the galaxy tab too Mar 12 15:27:16 samsung Mar 12 15:27:22 mastro: http://www.pocket-lint.com/news/37621/android-honeycomb-android-3-devices Mar 12 15:27:24 mastro: more than i thought Mar 12 15:27:31 mastro: you'd have to check each of them and see if they went to 3.2 Mar 12 15:27:43 dragorn, thanks! Mar 12 15:28:29 lov, oh, you mean look at the code. I was hoping someone here would know whether there was a simple way to do it. Mar 12 15:28:31 mastro: there may be others, i was hoping to find a link of like... 2 ocmpanies making them and nothing else Mar 12 15:29:23 Anyone got a guide for a WP7 developer dropped onto an android project with no knowledge of the framework or java? :P Mar 12 15:30:04 LambdaSix: looked at training and api guides at http://developer.android.com/develop/index.html ? Mar 12 15:30:12 appel1: Yup, not really helping a lot. Mar 12 15:31:26 LambdaSix: what is it you have trouble understanding? Mar 12 15:33:20 *shrug* any of it? :P Mar 12 15:33:24 I dunno, I'll go read the docs again Mar 12 15:34:45 I ended up drawing the short straw and getting lumped with porting the WP7.5 app (sends/recieves stuff via json requests to a web server, displays information to the user, sends back if they finished the job) to android, except I haven't the faintest clue about android Mar 12 15:35:46 LambdaSix: You looked at https://developer.android.com/training/index.html , yes? Mar 12 15:35:57 Also, start with https://developer.android.com/guide/components/fundamentals.html Mar 12 15:36:00 lov: yes, re-reading the stuff again Mar 12 15:36:02 that gives a high level overview of Android. Mar 12 15:36:28 Make sure that you read https://developer.android.com/guide/components/activities.html and https://developer.android.com/guide/components/services.html Mar 12 15:36:33 Services are really, really, really important. Mar 12 15:36:53 Also make sure that you understand intents: https://developer.android.com/guide/components/intents-filters.html Mar 12 15:37:16 Intents are one of the biggest parts of what makes Android fundamentally different from other OSes Mar 12 15:39:09 err.. how can i copy/paste stuff from trace files? Mar 12 15:39:16 ddms is being diffcult Mar 12 15:39:18 lov: ta ^_^ Mar 12 15:40:29 lov: Just left feeling rather stupid, it took me a few days to port the app to WM6.1 and CE5 -.-' Mar 12 15:40:48 Hi! I have updated my sdk from 21.0 to 21.1 but the eclipse plugin is still at 21.0 and it won't find the update by itself Mar 12 15:41:03 and therefore mostly refuses to work :( Mar 12 15:44:43 using 'select new software' appears to work Mar 12 15:44:49 ' "Android Development Tools" is already installed, so an update will be performed instead.' Mar 12 15:45:06 just what I need :) Mar 12 15:46:31 you know you are trying too hard if you attempt to use a generic type parameter as a value to an annotation Mar 12 15:47:16 is there any easy way to see what process or method is calling or responsible for getView() on an adapter ? Mar 12 15:47:33 responsible for calling* Mar 12 15:49:27 oh, now it fails with errors like "No repository found containing: osgi.bundle,com.android.ide.eclipse.adt,21.1.0.v201302060044-569685" Mar 12 15:53:03 I am getting runtime error in runnig an app Mar 12 15:53:13 what should I do ?? Mar 12 15:53:15 :( Mar 12 15:53:33 you should paste the complete stack trace :) Mar 12 15:53:35 sacrifice a goat Mar 12 15:53:38 JACOJ Mar 12 15:54:23 is there any way of being notified when sdk components are updated? now i have to check manually and find out Mar 12 15:54:31 dragorn, thanks that link is perfect... I'll check each device with some patience :) Mar 12 15:54:44 Logs from my app com.myapp shows in adb logcat in eclipse. But if i use a logcat app it doesn't show. All logcat apps reading dev/log/main Mar 12 15:54:48 any idea Mar 12 15:54:58 Manavan: what OS version? Mar 12 15:55:02 * lov points at the topic and then glares at papa07672 Mar 12 15:55:10 4.2 Mar 12 15:55:23 Manavan: that doesn't work anymore, unfortunately :( Mar 12 15:55:34 READ_LOGS only lets you read your own logs now, iirc Mar 12 15:55:35 yeah, I think apps can't read other app's logs any more Mar 12 15:55:54 ohh! Mar 12 15:56:25 and no more apps can read the radio log :( Mar 12 15:56:28 so there is no solution i guess? I have to connect to adb in my pc. thats the only way Mar 12 15:57:34 Or can i write the logs with tag = "main" Mar 12 15:57:55 Manavan: A) I don't think that changing your tag will affect this since it goes based on pid Mar 12 15:58:06 Manavan: B) Yes, pretty much, you need to use adb to actually examine the logs. Mar 12 15:58:22 oh ok Mar 12 15:58:25 Manavan: mind you, you can do adb via IP now, so you can do wireless debugging. Mar 12 15:58:42 Manavan: you can also root your phone and grant one of the log cat apps the proper status Mar 12 15:59:18 oh ya i like the adb over ip. where do i read about that Mar 12 16:02:27 hrm Mar 12 16:03:41 i filed a bug on robotium. They say it's black box testing. To test, you need the name of the class. Basically, the title of the class in code matches the file name. Requiring a class name and the title of a class are equivalent conditions that map to needing source code. Mar 12 16:03:56 Stupid maintainer closed the issue as "invalid" with no comments Mar 12 16:04:03 Despite the fact that it is NOT black box testing. Mar 12 16:04:25 didn't bother to explain why my issue is invalid. Mar 12 16:04:35 just changed it to "invalid" becuase he's full of crap Mar 12 16:04:50 http://code.google.com/p/robotium/issues/detail?id=414 Mar 12 16:06:16 so much bullcrap going on in the software world. people, why haven't you yet learned? you will get rehired with more money paid to you if you don't lie, don't bullshit, don't obfuscate for the sake of job security or otherwise do any sort of shady crap Mar 12 16:09:45 dogarrhea: You could just, you know. Not use it. Mar 12 16:10:30 I'm not. but i'm sort of annoyed that the developer/maintainer of this product lied about it being black box and making me waste 15 minutes of my time Mar 12 16:10:44 so i'm letting people in here know that the maintainer is full of crap and the product is garbage to discourage future use Mar 12 16:10:56 since you know. this is the android-dev channel Mar 12 16:11:25 http://pastebin.com/zudZnakp Mar 12 16:11:33 i am getting runtime error Mar 12 16:11:37 plz help? Mar 12 16:13:02 papa07672: you see the error ? Mar 12 16:13:05 not to keep this rant going, but I liked robotium in the past and will likely use it in the future even if it's not 100% black-box testing (oh noes!!!11) Mar 12 16:13:26 Hi! I have updated my sdk from 21.0 to 21.1 but the eclipse plugin is still at 21.0 and it won't find the update by itself. Using "Install New Software" seems to work, with messages like "'Android Development Tools' is already installed, so an update will be performed instead." but when I try it, it fails with errors like "No repository found containing: osgi.bundle,com.android.ide.eclipse.adt,21.1.0.v201302060044-569685". Help!? Mar 12 16:13:32 papa07672: look at line 32 in your pastebin Mar 12 16:13:37 dogarrhea: Just fork it and fix what you see to be such a major problem with it Mar 12 16:14:00 dogarrhea: That would be much better for everyone involved than filing bugs that are really just "I don't like the way you did this" Mar 12 16:14:01 any recommendations for an imap library? any issues with Javamail? Mar 12 16:14:08 papa07672: "Edittext" isn't a class. "EditText", however, is. Mar 12 16:14:08 jrajav Mar 12 16:14:11 dogarrhea: And you may find out that he had a good reason for it Mar 12 16:14:16 it's not a "I don't like the way you did this" Mar 12 16:14:22 it says that it's BLACK BOX TESTING Mar 12 16:14:23 and it's not Mar 12 16:14:36 that's a very very critical blocker type bug Mar 12 16:14:40 that's racist, though. Mar 12 16:14:43 why does the box have to be black? Mar 12 16:14:48 lov: So a service isn't really something I'd want to put a json request loop on? :/ Mar 12 16:14:59 yes. black cock testing. it has to be racist Mar 12 16:15:09 vesicant: actually, a service is probably what you do want to put a json request loop on. Mar 12 16:15:14 vesicant: an activity, probably not so much. Mar 12 16:15:16 whatever. i'm just letting people know that the maintainer/developer is peddling snake oil Mar 12 16:15:18 lov: If it was white, it would work already Mar 12 16:15:18 :P Mar 12 16:15:22 oh shit Mar 12 16:15:35 no, shit is black Mar 12 16:15:37 or brown Mar 12 16:15:40 vesicant: you probably wouldn't want to put it in an activity, though. Mar 12 16:15:40 but not white Mar 12 16:15:47 unless you're a bird :D Mar 12 16:15:49 um. if it's black there's something wrong with your liver Mar 12 16:16:02 yes, snake-oil that you don't pay for. Makes sense to me. Anyway, please take your rant somewhere else or chill out Mar 12 16:16:12 evanc, i paid for it with my time :/ Mar 12 16:16:14 or the light in the bathroom just failed Mar 12 16:16:24 lov: Right. I figured as much, is it more 'androidy' to have the service tell the activity (an intent?) it's got new data, or have the activities poll the service? Mar 12 16:16:28 why don't people understand after all these years the actual costs of open source Mar 12 16:16:35 it's not a rant. Mar 12 16:16:42 huh? Mar 12 16:16:55 dogarrhea: once again, chill out Mar 12 16:17:04 huh? i have never paid for software in my whole *live* Mar 12 16:17:13 * Peetz0r <3 FOSS Mar 12 16:17:25 would you not agree with the following point: "You are required to know what is in code to test something => not black box testing" Mar 12 16:17:36 (okay, I'm a student, my time is practically free anyway) Mar 12 16:17:39 it may take up to 6 minutes to get your IO ticket Mar 12 16:18:03 and when one of the features is that it is black-box testing, this is a blocking bug heh Mar 12 16:18:12 * StingRay_ is about to leave a very crappy bug in his app cause it's just....odd Mar 12 16:18:30 StingRay_: explain.. ? Mar 12 16:18:38 job security most likely Mar 12 16:18:54 "if there are no bugs to fix, what am I going to do?" Mar 12 16:19:04 dogarrhea: we get it, you don't agree with robotium. Take it up with them and move on with your life Mar 12 16:19:08 more importantly, let us move on Mar 12 16:19:20 yes, i'm glad you know now Mar 12 16:19:25 Peetz0r: tis a getView() in an adapter, called 128 times for the 1st item, and if there are 2 items 256 for the 1st and once for the 2nd Mar 12 16:19:43 wut? Mar 12 16:19:53 also 384 times if there are 3 items? Mar 12 16:20:37 see at 1st I thought it was my custom listView that I expand and measure, but onDraw only gets called the number of times/items Mar 12 16:20:48 then I replaced it with fixed listView Mar 12 16:21:01 then I took out all the things that happen to the items Mar 12 16:21:23 tis just 4 hours of nothing that I've done today Mar 12 16:21:32 paid nothing? Mar 12 16:21:51 well tis a personal project Mar 12 16:21:57 ah, that kinda sucks Mar 12 16:22:09 Peetz0r, you pay for software in one way or another. time/taxes/tuition/whatever it is, it's not a free lunch Mar 12 16:22:14 but I don't think I know why that would happen Mar 12 16:22:20 ie, when you're 40 and a virgin, that's a cost i think Mar 12 16:22:36 dogarrhea: I spend a whole lot of time in software, but my time really is free Mar 12 16:22:44 and I am not even close to 40 :p Mar 12 16:25:12 I need some help Mar 12 16:25:14 http://pastebin.com/zudZnakp Mar 12 16:25:23 my app is not running :( Mar 12 16:25:26 anyone have any idea why an adapter would call getView() (number of items x 128) for 1st item, and then once for all items in the list ? Mar 12 16:25:43 StingRay_: something is calling getView(0)? Mar 12 16:25:57 papa07672: dude, as I told you last time, look at line 32 Mar 12 16:26:06 yes sir Mar 12 16:26:22 Hello gentlemen! Mar 12 16:26:23 ??? Mar 12 16:26:36 papa07672: line 32 in the pastebin you just gave us Mar 12 16:27:02 I've got a wee problem compiling android for my tablet. Is there anyone who'd be willing to help me? Mar 12 16:27:38 yes sir Mar 12 16:27:38 atanasb: sure, but it would help if you'd explain the problem Mar 12 16:27:42 i got it Mar 12 16:27:52 but I have added the required fiel Mar 12 16:28:03 Should I explain it here, or on private? Mar 12 16:28:09 here Mar 12 16:28:17 papa07672: have you changed Edittext into EditText? Mar 12 16:28:47 evanc: not that I can see Mar 12 16:29:10 import android.widget.EditText; Mar 12 16:29:17 okkk this donot work >> Mar 12 16:29:18 ?? Mar 12 16:29:41 this 128 is nothing to do with item/view height, ruled that out, nothing to do with any parent view, nothing to do with any layout adjustment Mar 12 16:29:44 papa07672: sigh Mar 12 16:29:58 papa07672: you put in your XMl instead of Mar 12 16:30:14 hmmm Mar 12 16:30:31 but the Edittest is the object Mar 12 16:30:42 StingRay_: search your whole project for the number 128 Mar 12 16:30:46 StingRay_: put int getViewCount = 0; in your adapter, increment it in getView(), and set a breakpoint if (position == 0 && getViewCount > 1) Mar 12 16:30:57 see what's calling it Mar 12 16:31:04 papa07672: no it's not Mar 12 16:31:14 papa07672: case matters Mar 12 16:31:19 hmmm Mar 12 16:31:24 i am getting the point Mar 12 16:31:41 Hi! I have updated my sdk from 21.0 to 21.1 but the eclipse plugin is still at 21.0 and it won't find the update by itself. Using "Install New Software" seems to work, with messages like "'Android Development Tools' is already installed, so an update will be performed instead." but when I try it, it fails with errors like "No repository found containing: osgi.bundle,com.android.ide.eclipse.adt,21.1.0.v201302060044-569685". Help!? Mar 12 16:33:44 evanc: sir i have change the xml file as but still the app is not runnig Mar 12 16:36:05 evanc: I do that, I have counters in there (now) all over the place, it will break 128 + 2 times for 2 items, getCount() = 2, number of views = 2, convertView operates as expected Mar 12 16:36:52 tried different layouts for the rows, everything, just that 128 is bugging me for obvious reasons Mar 12 16:37:31 I am trying to compile Android for my tablet from public git repos. I downloaded the device configuration tree and its dependancies and then extracted the vendor files.When I source the /build/envsetup.sh I get: $including device/acer/a100/vendorsetup.sh... So my device tree is being detected.The problem is that when I try to set my device using "lunch" I can't see it in the devices. How should I go about fixing that? Mar 12 16:39:06 as in convertView gets a recycled view 128 times, just for clarification Mar 12 16:40:16 papa07672: then you have another error. Check (and read!) logcat Mar 12 16:40:50 StingRay_: right, but my point was to trigger the breakpoint at e.g. the second iteration for item 1 and look at the stack trace Mar 12 16:42:03 Well, I reinstalled ecplise from the 21.1 zip, and it works now. But still weird... Mar 12 16:46:30 http://pastebin.com/JBNhDfGz Mar 12 16:46:38 please point out my mistake Mar 12 16:46:45 i am new in development Mar 12 16:47:54 papa07672: checl all your capitals Mar 12 16:48:00 it's Button, not button Mar 12 16:48:03 check* Mar 12 16:48:32 also, if you're using ADT (Ecplise with the android development plugin), then you should see red lines in your code Mar 12 16:48:49 just like a spell checker in a word processor :) Mar 12 16:49:11 hmmm Mar 12 16:49:19 how it should be Mar 12 16:49:19 ? Mar 12 16:49:59 oh well, the red lines don't always appear (I just tried it, and I didn't see them :p ) Mar 12 16:50:34 papa07672: once again, look at like 32 (once again, casing matters) Mar 12 16:50:43 papa07672: also, read http://en.wikipedia.org/wiki/CamelCase Mar 12 16:50:54 papa07672: I get the feeling that you're just writing stuff and hoping it compiles Mar 12 16:51:09 and also http://en.wikipedia.org/wiki/Naming_convention_(programming)#Java Mar 12 16:54:05 Hi there, anybody here doing cocos2d-x projects? Mar 12 16:54:38 My app loads a URL into a webview using webview.loadURL which works fine. My only problem is that it takes a couple of seconds to load the URL and the webview is just a blank white page while it's loading. Is there a way to display something else in the webview while the URL loads so I don't have to stare at an all white screen Mar 12 16:55:34 I have a problem creating the hybrid project: http://www.raywenderlich.com/forums/viewtopic.php?f=2&t=6795&p=38071#p38071 Mar 12 16:56:12 I tried doing webview.loadData and injection html to display a spinning wheel to indicate that it's loading but it doesn't appear Mar 12 16:58:19 evanc: looks like onMeasure is triggering obtainView, due to views way up the hierarchy. Do these measure calls get stacked/queued for any reason ? or is that the norm ? Mar 12 17:01:23 i am getting my app bug free step by step Mar 12 17:01:25 http://pastebin.com/Pwq6eHSR Mar 12 17:01:32 kindly tell me the error Mar 12 17:02:11 papa07672: if you can't read that... Mar 12 17:02:16 Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ? :'( Mar 12 17:03:30 papa07672: What pragma- said, the exception tells you what to do. :) Mar 12 17:03:49 sir i know c++ very well but it is all about exceptionhandling Mar 12 17:03:54 which i donot know Mar 12 17:04:03 papa07672: it says it can't find a method named callFunction() that takes a View parameter in the onClick handler for your button Mar 12 17:04:06 papa07672: line 123 this time. It would probably be faster to just give us a blank input and type your app line-by-line for you instead Mar 12 17:04:50 say you have two TextViews side-by-side, and the right one can be of variable length.. what's the best way to prevent it from affecting the left one's right-alignment? Mar 12 17:05:01 * pragma- doesn't see any mention of line 123 in the paste. Mar 12 17:05:14 pragma-: line 123 in the pastebin Mar 12 17:05:17 ie: say I Have a duration and a date, and when the date is longer it pushes the duration left and when its shorter the duration gets pulled a little right, etcf Mar 12 17:05:18 vesicant: to answer your question from before, it's usually best for the activity to register a listener with the service, and unregister when it's destroyed/etc. Mar 12 17:05:22 oh Mar 12 17:05:39 yes sir I have defined that method properly Mar 12 17:05:51 in my requierd class Mar 12 17:05:59 but still an exception Mar 12 17:06:00 :( Mar 12 17:06:22 papa07672: do you know Java? Mar 12 17:06:28 If you don't know Java, you should learn Java before you do android. Mar 12 17:06:42 we're not going to do your job/homework for you. Mar 12 17:07:05 no sir its not my homework Mar 12 17:07:08 if you're going to be a developer, you need to learn to think about the problems that you run into instead of shouting "HALP! A PROBLEMS!" Mar 12 17:07:20 its a app code from training session Mar 12 17:07:25 I see. Mar 12 17:07:28 Go talk to your trainer then? Mar 12 17:07:29 of google android training Mar 12 17:07:35 * lov sighs Mar 12 17:07:47 papa07672: Do you know Java? Yes or no. Mar 12 17:07:48 #android-dev is like my co-worker that I don't have to pay Mar 12 17:08:08 papa07672: pastebin your MainActivity.java, then Mar 12 17:08:09 no sir Mar 12 17:08:13 but good in c++ Mar 12 17:08:21 try{ do exceptional stuff; } catch (Error err) { System.out.println("shit shouldnt be happening");} Mar 12 17:08:23 donot know java Mar 12 17:08:36 papa07672: Learn Java before you do anything with Android. Mar 12 17:08:39 Hey all... Which method in SQLite Database should I use to do: «UPDATE table SET field1 = field2 WHERE field3 = ?». Mar 12 17:08:51 papa07672: Having at least a minimal fluency in Java is mandatory for learning Android. Mar 12 17:09:14 i know only core java Mar 12 17:09:20 no, you apparently know no java. Mar 12 17:09:23 and i think that suffice it well ?? Mar 12 17:09:34 Either that or you literally refuse to think Mar 12 17:10:03 knowing core java should give you an advantage Mar 12 17:10:12 i think yuo HAVE to know core java Mar 12 17:10:16 i dont think it's an option for android Mar 12 17:10:47 its a last error in my app Mar 12 17:11:06 pragma-: is this you? http://www.reddit.com/r/Android/comments/1a578t/ive_released_a_free_opensource_network_monitor/ Mar 12 17:11:11 i have defined the functinn well in my main_actvity.java fle Mar 12 17:11:27 * lov sighs Mar 12 17:11:39 main_activity.java? Mar 12 17:11:39 pastebin your main_activity.java file, the stacktrace, and the layout file. Mar 12 17:11:45 main_Activity is a horrible name Mar 12 17:12:03 you no know no java! Mar 12 17:12:07 lov: Ah, I figure I'll google stackoverflow for.. whatever that means :P Mar 12 17:12:27 vesicant: ha. Read about services, and binding to services. Mar 12 17:12:31 http://pastebin.com/eaD3ggK0 Mar 12 17:12:40 this is my main_activity.java Mar 12 17:12:41 lov: On, is that was the onBind() is for? Mar 12 17:12:47 s/On/Oh/ Mar 12 17:13:00 lov: I thought that caused the service to get terminated once that activity went out of focus? Mar 12 17:13:06 vesicant: not necessarily! Mar 12 17:13:31 if you haven't called startService, then yes, that can happen. Mar 12 17:13:50 mm Mar 12 17:13:52 calling startService, however, will have it continue to run until stopService is called (or the OS kills it but we'll get into that later) Mar 12 17:14:02 I think I need to re-inform the PM that this will take longer than 8 days Mar 12 17:14:06 * Lachezar finds IntentService helpful in most need-a-service cases. Mar 12 17:14:19 papa07672: and which line has callFunction(View view) ? Mar 12 17:14:33 hint: it's not line 20 Mar 12 17:14:51 in pastebin it is at line 20 Mar 12 17:14:57 no, it's not. Mar 12 17:14:57 papa07672: no it's not Mar 12 17:15:00 re-read that line. Mar 12 17:15:02 CAREFULLY. Mar 12 17:15:10 papa07672: line 20 is callFunciton(View view) Mar 12 17:15:26 javac does not include a built-in autocorrect Mar 12 17:15:30 and as much as I'd like to call funky town, it's not relevant. Mar 12 17:15:38 lov++ Mar 12 17:15:43 so i am getting what you are pointing to?/ Mar 12 17:15:49 are you? Mar 12 17:16:19 papa dont preach Mar 12 17:17:02 opppss Mar 12 17:17:12 Help me with this please: Jean-Yves Mengant, Mar 12 17:17:14 ups Mar 12 17:17:19 http://www.raywenderlich.com/forums/viewtopic.php?f=2&t=6795&p=38071#p38071 Mar 12 17:18:01 Hey guys..!! I have a listview done via Loader API and ListActivity using SQLite.. Now I have a button in each listitem.. It is clickable from the start but I dont know how to use it to make a delete operation on the corresponding row in the db.. How do I approach..? Mar 12 17:18:02 kone: we're not cocos2d support. Mar 12 17:18:06 * vesicant goes home Mar 12 17:18:20 sorry sir Mar 12 17:18:21 lov: Its not cocos2d, its cocos2d-x Mar 12 17:18:28 kone: we're not cocos2d-x support. Mar 12 17:18:28 it was my mistake Mar 12 17:18:36 and maybe someone here does cocos2d-x projects Mar 12 17:18:39 PLEASE DON'T USE COCOS2D-X Mar 12 17:18:40 papa07672: no shit. That's not the point. Mar 12 17:18:45 it's the most horrible abomination I've ever seen Mar 12 17:18:46 really Mar 12 17:18:55 app ran successfully Mar 12 17:18:56 papa07672: the point is that you refused to think about your problem. Period. Mar 12 17:18:56 I've had to use it for the past 6 months ;_; Mar 12 17:19:03 mission accomplished Mar 12 17:19:05 :) Mar 12 17:19:08 Zharf: so what do u suggest to port and existing iOS cocos2d project to android? Mar 12 17:19:15 using cocos2d of course Mar 12 17:19:16 kone, rewrite Mar 12 17:19:30 Hello, i created a class that extends TextView because i want to add some variables. The problem is that i can get the values of standard fields (as text), but when i try to get a custom variable its value is null, what's happening? Mar 12 17:19:43 uragano2: I don't know, what is happening? Mar 12 17:19:57 it is going to be rewritten, but i don't find any other way to work with cocos2d and android Mar 12 17:20:11 sir there is a folder /src ......is it neccesarry to put all the source file into that only ? Mar 12 17:20:29 kone, other cocos2d projects are dead, and cocos2d-x is just horrible :E Mar 12 17:20:30 Zharf: what was wrong with C2D exactly? Mar 12 17:20:55 TheBunnyZOS, it's a mess, full of undefined behaviours and the framework is making you write in an absolutely horrendous manner Mar 12 17:21:15 TheBunnyZOS, and I'm talking about the -x version Mar 12 17:21:16 :) Mar 12 17:21:27 Zharf: so? I don't really know how would I do cocos2d-android (cocos2d is needed because of external programs, exactly levelhelper) Mar 12 17:21:28 The little I used it I thought it was just laid out as a clone? Mar 12 17:21:35 I swear to god. Mar 12 17:21:38 lov: i don't know...i set a value, put it in the ListView, but when i get the object the custom fields are null Mar 12 17:21:41 of the IOS framework Mar 12 17:21:52 What does: 'SQLiteDoneException: unknown error' mean? Mar 12 17:22:18 uragano2: pastebin your relevant code please :> Mar 12 17:22:25 TheBunnyZOS, that's true, and it's horrible Mar 12 17:22:27 Lachezar: you've unleashed the kraken Mar 12 17:22:32 ap Mar 12 17:22:33 whops Mar 12 17:22:39 kone i have seen people move games to C2D X in a few days work Mar 12 17:22:52 performance etc I can't comment on Mar 12 17:22:56 cocos2d-x ?? Mar 12 17:22:58 lov: Figured that much :(. Damn... No way to execute atomic updates in Android? Mar 12 17:23:20 Oh I swear theres some other porting to android tech for C2D Mar 12 17:23:24 Lachezar: sqlite doesn't really handle concurrency very well, or at all. Mar 12 17:23:31 I'm trying to do that, make the game in cocos2d-x (I'll only use the android project, as I already have done the iOS project) Mar 12 17:23:34 Lachezar: http://howfuckedismydatabase.com/sqlite/morethanone.php Mar 12 17:23:36 I've been working on one cocos2d-x game port from iOS to android for the past 6 months... but then the original code wasn't written by us either so it's even more horrible than just plain cocos2d-x ;) Mar 12 17:23:44 lov: Not concurency: UPDATE tbl SET f1 = f2 WHERE f3 = ? Mar 12 17:23:51 cocaine 2d! Mar 12 17:24:17 so stuck porting a lot of crapply written objC? Mar 12 17:24:25 Anybody know how to change the bg color of the InfoWindow in Maps V2? Tried this in both events, but it didn't work: http://pastie.org/6462221# Mar 12 17:24:46 Lachezar: uh.... seriously? Mar 12 17:24:52 TheBunnyZOS, no, most of it was c++, crappily written, including the cocos2d-x part to which we've made a ton of patches Mar 12 17:24:54 lov: Seriously! Mar 12 17:25:11 Lachezar: you know there's an 'update' method for SQLiteDatabase, right? Mar 12 17:25:45 lov: I have _no_clue_ how to reference other fields in a ContentValues :-/ Mar 12 17:25:53 hmm. Mar 12 17:25:59 ok, you're right; that's not appropriate for that. Mar 12 17:26:03 lov: I'd like to avoid: SELECT and then UPDATE. Mar 12 17:26:11 and rawQuery threw an error? Mar 12 17:26:39 er Mar 12 17:26:42 exec rather Mar 12 17:27:14 TheBunnyZOS, we didn't have the time to rewrite in the original contract (which gave us 2 months time) but in the end we could've done much better if we had written it from scratch using some other engine, and it would've taken at 3-4 months :E Mar 12 17:27:19 I hate software development contracts Mar 12 17:27:22 they're always fucked up Mar 12 17:27:48 lov: http://pastebin.com/bcC1v9bN Mar 12 17:28:01 Lachezar: pastebin code plz Mar 12 17:29:04 Anybody? Mar 12 17:29:40 My app loads a URL into a webview using webview.loadURL which works fine. My only problem is that it takes a couple of seconds to load the URL and the webview is just a blank white page while it's loading. Is there a way to display something else in the webview while the URL loads so I don't have to stare at an all white screen. I tried doing webview.loadData and injection html to display a spinning wheel to indicate that it's loading but it Mar 12 17:30:21 lov: http://pastebin.com/KwN3eJu7 Mar 12 17:31:10 DatabaseUtils.longForQuery Mar 12 17:31:19 pastebin that, please. Mar 12 17:31:20 lov: ok, i'm ready Layout: http://pastebin.com/i1Nr4rYF Post.java: http://pastebin.com/KXyk2HGf Set and get: http://pastebin.com/w7NwvM56 Mar 12 17:31:37 lov: That's ANdroid! Mar 12 17:31:48 lov: Not mine. Android PAI Mar 12 17:31:55 s/PAI/API/ Mar 12 17:33:42 Lachezar: it's making a query call, that's probably the problem. Mar 12 17:34:03 You probably want to use execQuery, though I'm not sure how you'd get the number of rows updated, etc. Mar 12 17:34:07 you might want to ask stackoverflow. Mar 12 17:34:08 lov: Ahhh... Lemme try manually handling the cursor... Mar 12 17:34:28 Anybody know how to change the bg color of the InfoWindow in Maps V2? Tried this in both events, but it didn't work: http://pastie.org/6462221# Mar 12 17:34:49 uragano2: ok, so. I'm not really sure what exactly you're doing. Mar 12 17:35:48 it's possible that you're referencing a Post object that's not the one you added? Mar 12 17:36:04 this whole view.getParent().getParent() thing is a little strange. Mar 12 17:36:33 view.getGrandfather()? Mar 12 17:36:38 * lov rolls his eyes Mar 12 17:36:49 more the getChildAt(0) bit Mar 12 17:36:55 lov: Does not work... I'll have to check if (possibly) the rowid has changed. Mar 12 17:37:05 not so much that I don't understand it as I don't understand why you're going that route Mar 12 17:37:07 * Lachezar is tired and decided to call it quits. Mar 12 17:37:22 Good night all... Mar 12 17:38:20 lov: i want to extend TextView because i want to have more variables when the object return itself calling onClick method. The layout that you see is in an other layout. Mar 12 17:39:12 I need so much getParent because the button return itself, i get the parent and the parent of parent that contains the object (Post) which i need Mar 12 17:45:53 I have an Activity where theme is Theme.DeviceDefault.Dialog. I then create a button, but I want it to be borderless and without color like if I created an AlertDialog.Builder. How can I do that? Mar 12 17:46:35 lov: can this http://pastebin.com/WfuN13ZG be useful? i put this in setListAdapter(new ListViewAdapter(this,ListviewContent)); Mar 12 17:47:08 If i want to have a resource which is an html file which folder would I put it in in eclipse under res/? Mar 12 17:47:16 aha, and now it is clear. Mar 12 17:47:27 uragano2: Listviews recycle content. You're aware of this, yes? Mar 12 17:47:49 You don't want to look at content directly within a view. Mar 12 17:48:02 You want to query your adapter for the item, and look at the information there. Mar 12 17:49:33 no, i wasn't aware, sorry. Mar 12 17:50:22 I want it the button to look like this: http://bildr.no/image/1413832.jpeg and not like this: http://bildr.no/image/1413833.jpeg Mar 12 17:50:45 uragano2: take a look at http://developer.android.com/guide/topics/ui/declaring-layout.html#AdapterViews Mar 12 17:51:12 the first is with AlertDialog.Builder and the second is regular Activity with Theme.DeviceDefault.Dialog Mar 12 17:51:28 lov: i will. Thanks for your help! Mar 12 17:54:46 Nobody? :| Mar 12 18:10:09 how about just Theme.Dialog Mar 12 18:14:00 Hello Mar 12 18:14:15 I've got a problem Mar 12 18:14:19 I am trying to compile Android for my tablet from public git repos. Mar 12 18:14:29 that is a problem. Mar 12 18:14:30 I downloaded the device configuration tree and its dependancies and then extracted the vendor files. Mar 12 18:14:42 (hah yea) Mar 12 18:14:58 The thing is Mar 12 18:15:01 When I source the /build/envsetup.sh I get: Mar 12 18:15:09 $including device/acer/a100/vendorsetup.sh Mar 12 18:15:19 and I'm trying to compile it for Mar 12 18:15:21 Acer A100 Mar 12 18:15:32 but when I do "lunch" Mar 12 18:15:36 my device is not on the list Mar 12 18:15:37 is acer a100 and AOSP-supported device? Mar 12 18:15:41 I doubt it is Mar 12 18:15:56 well there's a branch on github Mar 12 18:16:05 and people have been compiling it from there Mar 12 18:16:05 :/ Mar 12 18:16:41 the device tree depends on this one Mar 12 18:16:42 https://github.com/iconia-dev/android_device_acer_t20-common Mar 12 18:18:24 osxorgate: that makes the button even whiter Mar 12 18:18:45 any ideas on how I can check if the device tree config is valid? Mar 12 18:18:57 osxorgate: and the background completely black and ugly :P Mar 12 18:24:18 i'm still undecided whether i should tablet-optimize my app, but maybe its time now http://appleinsider.com/articles/13/03/12/idc-projects-android-tablets-will-pass-apples-ipad-this-year-sees-little-good-news-for-microsoft Mar 12 18:24:25 otoh, ITC numbers have been kinda bogus Mar 12 18:25:04 atanasb: not really. You might want to try #android-root or #android-platform or #cyanogenmoddev or something. Not a lot of folks in your situation stop by here. Mar 12 18:25:36 is #android-platform still alive? Mar 12 18:26:00 lol, its just me and lol and zinx Mar 12 18:26:01 lov: thanks for the advice. I'll see if they can help Mar 12 18:26:02 :) Mar 12 18:26:05 (lov Mar 12 18:26:28 g00s: #android-platform isn't an official channel, sadly. #android was supposed to fulfill that purpose, but it's mostly a n00b channel now Mar 12 18:27:11 in any case, me/lov do know a good bit about the platform :) Mar 12 18:28:14 yeah, the idc numbers are channel shipments, bogus. Mar 12 18:28:25 yeah Mar 12 18:28:44 actually I know very little about bring-up and that sort of thing, I've just hacked on the frameworks lightly. Mar 12 18:47:44 ok so how does a upstream parent call to onMeasure() cause my fixed height listView with adapter to call getView() on the 1st item many hundreds of times (depending on item count) Mar 12 18:51:53 I'm using an external jar under libs in an android library project. How can I make the build to not include this jar so the client has to explicitly include it? Mar 12 18:54:25 can a fragment be the parent of a listview? Mar 12 18:56:25 what do you mean, "parent"? Mar 12 18:57:37 maybe he means can it contain one Mar 12 18:58:05 Fragments are a management container around a View (or dialog, or nothing) Mar 12 18:58:09 ListView is a View Mar 12 19:03:32 JakeWharton, most examples i come across dont put fragments and listviews inside one xml file. they place them separately and then use the code to combine them Mar 12 19:03:40 is that what Im supposed to be doing? Mar 12 19:05:35 I have never inflated a fragment from XML because it's inflexible. You can use any type of view inside of the view a fragment manages though Mar 12 19:06:16 public class WhateverFragment { @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.list_view, container, false); } } Mar 12 19:10:35 JakeWharton, one more thing. a view becomes a fragment when you extend a fragment class and not only when you use the fragment tag in an xml file? Mar 12 19:10:46 a view can never be a fragment Mar 12 19:10:58 a fragment can manage a view Mar 12 19:11:03 but they are two totally separate entities Mar 12 19:11:06 a fragment is not a UI object Mar 12 19:12:33 JakeWharton, so then how can i tell when I or someone else is using a fragment? Mar 12 19:16:03 tell how? Mar 12 19:16:06 why do you need to know? Mar 12 19:17:35 is it necessary to keep all the resource file in /src file ?? can it be in other independent file like /res....?? Mar 12 19:17:36 i was surprised when i was looking at an xml file that used "fragment" in its name but didnt have a fragment tag/element Mar 12 19:20:02 i guess it all comes down to when they are using the fragments manager and doing .add() Mar 12 19:21:19 I'm trying to accomplish a simple animation of a listview item by animating the height to 0. This works, but OnAnimationEnd, the height is never even close to 0, so I set that manually then, but after I delete the associated item's content and I get back to my CursorAdapter's bindView(), the height is already set to a small amount again. Why might that be? Mar 12 19:23:10 papa07672: Huh? All resource files go in /res as it is, not /src Mar 12 19:24:34 My animation code is at http://pastebin.com/nAEdE1H0 , if that helps with my problem. Mar 12 19:25:58 Why would any layout changes occur between my button's onclicklistener, which just adds that animator and returns, and my bindView(), once the cursor changes? Mar 12 19:28:04 or rather, between that OnAnimationEnd listener and bindView(). And why does the animation never actually reach the intended value (0)? It always seems to end at a different value, which is why I manually set it to 0 OnAnimationEnd. Mar 12 19:31:09 openback: no i am asking if I put all the source file in a folder like (root dir)/in/sdslab/iitr/ ....then is it right ?? Mar 12 19:33:19 papa07672: Well if you're using eclipse, you can right-click in your porject and use New->"Source Folder" to add other source folders. Mar 12 19:34:50 hmmm!!! thats fine ...but these days i am learnig some reverse eng in android appp Mar 12 19:35:04 so i have got the source code of an app Mar 12 19:36:09 but still the file structure is not appropriate as sorce code is going in a separate folder other than /src...:( Mar 12 19:36:26 on making new projects using existing source code Mar 12 19:38:41 Why does BitmapFactory default to 1024 sized chunks when utilizing an extended bufferedinputstream for .decodeStream ? Mar 12 19:39:07 the default buffer size is 8kb in bufferedinputstream, 16kb in bitmapfactory... Mar 12 19:39:32 i overrode the constructor that specifies the buffer size to set it to at least 8kb... Mar 12 19:40:58 papa07672: wut dafuq are you talking about. you make no sense at ALL Mar 12 19:41:46 dafuq makes no sense Mar 12 19:43:30 StingRay_: linguistic style matching :) Mar 12 19:43:39 :) Mar 12 19:43:41 can some tell what kind of exception is this ??http://pastebin.com/X93Vp4mf Mar 12 19:43:49 i am new indevelopment Mar 12 19:43:56 papa07672: we told you before. Mar 12 19:43:59 You need to learn Java first. Mar 12 19:44:20 "03-12 19:31:15.852: E/AndroidRuntime(876): Caused by: java.lang.ClassNotFoundException: Didn't find class "in.co.sdslabs.iitr.Multi.Splash" on path: /data/app/in.co.sdslabs.iitr.Multi-1.apk~" Mar 12 19:44:25 reading above, sounds like he is trying to reverse an app Mar 12 19:44:26 What do you think this means? Mar 12 19:44:48 g00s: oh yes, he admitted he's a winzipper. Mar 12 19:44:57 this channel is not for clueless idiots reversing apps Mar 12 19:45:11 https://play.google.com/store/apps/details?id=in.co.sdslabs.iitr.Multi&hl=en Mar 12 19:45:20 that what your attempting to steal from ? Mar 12 19:45:49 and if so what part exactly ? Mar 12 19:45:52 being a free app, I'm not really sure what he's trying to steal :P Mar 12 19:45:59 i am not stealing anything .... i am just learning the app development and reverse engineering Mar 12 19:46:14 papa07672: I'm going to be gentle here: Reverse engineering means that you actually know how apps work. Mar 12 19:46:28 yes offcourse Mar 12 19:46:33 Don't bother reverse engineering anything before you Mar 12 19:46:35 A) Know Java Mar 12 19:46:37 B) Know Android Mar 12 19:46:45 C) know asm Mar 12 19:46:46 really, again, I strongly encourage you to solve A before you solve B. Mar 12 19:46:46 sir soory but you are not judging me correctly Mar 12 19:46:54 no, I'm pretty sure that I am. Mar 12 19:46:59 Boy! ClassNotFoundException! Mar 12 19:47:03 What kind of exception could that be? Mar 12 19:47:17 The worst kind Mar 12 19:47:33 it means the app developer hacked your system Mar 12 19:47:42 papa07672: do you know what reflection is? I'm guessing no. Mar 12 19:47:52 Class : A set or category of things having some property or attribute in common and differentiated from others by kind, type, or quality. Mar 12 19:47:56 The worst... I imagine that would be ConcurrentModificationException Mar 12 19:48:12 papa07672: you are indeed a ClassException Mar 12 19:48:22 Joozey: the worst is "RuntimeException" because that means you're my coworker who doesn't know what he's doing :( Mar 12 19:48:30 :D Mar 12 19:49:36 papa07672: It is very admirable that you are trying to take the initiative and learn on your own. However, you are very, very, very quickly wearing down everyone's patience. Mar 12 19:49:51 papa07672: If you haven't read this yet: http://www.catb.org/esr/faqs/smart-questions.html you really, really ought to read it. Mar 12 19:49:56 It explains why people are being rude to you. Mar 12 19:50:18 lov: that explains I'm from yorkshire in england ? Mar 12 19:50:28 * StingRay_ runs of to read Mar 12 19:50:31 well, one reason people are being rude. Mar 12 19:52:33 sir, i am a new in dedvelopment ...my friend told me keep on developing like this and you will learn alot in short span of time Mar 12 19:52:47 because i am very good in c++ Mar 12 19:53:23 the problem is that "developing like this" appears to be a combination of "treat other people as your own personal google search" and "just decompile other people's applications instead of learning how to program" Mar 12 19:53:24 but its okk !!! if you are telling me something ... you are senior from me Mar 12 19:53:39 so sorry if I have hurted you in any way Mar 12 19:54:10 when i was a kid, i took apart out vacuum cleaner because i was curious how it worked (to the chagrin of my parents). but you dont have to take apart somebody's apk to learn how to android. just go to d.android.com and start reading the lessons. Mar 12 19:54:59 i have done that before i started reverse eng. thats why i was pretty sure to get a great idea from that Mar 12 19:55:00 and you cant get the source code (in its ideal form) by decompiling, which makes it less than suitable for study Mar 12 19:55:21 there are plenty of open source things which are good examples to study Mar 12 19:55:45 yes, especially that. Decompilers are going to make a mess of the actual source. Look at some actual open source projects. Download the Android source code from source.android.com and look at the apps that come with the frameworks. Mar 12 19:55:50 Look at the API demos that come with the Android SDK. Mar 12 19:56:16 hmmm Mar 12 19:56:29 what is the api demo ?? Mar 12 19:56:33 I was able to decompile and see the code of Whatsapp, what're you talking about? Mar 12 19:56:38 is it a readme file ?? Mar 12 19:56:55 15:56:39 < papa07672> what is the api demo ?? Mar 12 19:57:16 Do you have the ADT installed? Are you using eclipse? If so, go to new -> Android Sample Project Mar 12 19:57:27 select "ApiDemos" Mar 12 19:57:28 hmmm Mar 12 19:57:35 ohh you are talking of that Mar 12 19:57:39 hmmm Mar 12 19:57:43 i have seen several Mar 12 19:57:49 its a good resource Mar 12 19:57:59 it's a better resource than a decompiler will give you. Mar 12 19:58:12 sir can you tell me some rource that is fast enough to learn java?? Mar 12 19:58:28 have you been to http://docs.oracle.com/javase/tutorial/ yet? Mar 12 19:58:38 if not, go to http://docs.oracle.com/javase/tutorial/java/index.html and http://docs.oracle.com/javase/tutorial/essential/index.html Mar 12 19:58:45 yeah sir i have seen that Mar 12 19:58:51 but its too large Mar 12 19:58:55 no it's not. Mar 12 19:59:00 Look, you're not going to learn all of this in a day. Mar 12 19:59:06 i was trying to find something concise Mar 12 19:59:18 you won't find it; Java is a huge topic, and so is Android. Mar 12 19:59:26 like for pythone ----byteofpythone Mar 12 19:59:32 the best book...:) Mar 12 19:59:36 * lov shrugs Mar 12 19:59:45 You can search the internet but there's a lot to learn. Mar 12 19:59:53 hmmm Mar 12 20:00:07 hello, I put an app on the market and it doesn't automatically update when it needs to, I have automatic updates enabled, I can manually update it, the permissions haven't changed, other apps do update automatically, am I missing something? Mar 12 20:00:31 I will read the java part from there Mar 12 20:00:36 thanks sir Mar 12 20:01:12 great, i ask german wikipedia to give me a list of essential articles, first hit is "AIDS".. not what i wanna show my users on first starup i guess Mar 12 20:01:45 essential articles starting with B :P Mar 12 20:05:40 any good resourece to learn android programming ?? Mar 12 20:06:05 d.android.com Mar 12 20:07:13 papa07672: start at https://developer.android.com/training/index.html Mar 12 20:07:28 any ideas regarding my question? Mar 12 20:07:48 hmmm that is there !!! but is there any series of videos ?? Mar 12 20:08:49 I developed an application on 2.2-2.3 and it runs perfectly on those platforms (in my emulator with 512mb of ram allocated for the device) however whenever I try to run it on 4.0+, I get a message on log cat saying "Skipped xx frames, the application may be doing too much on its main thread" is there anyway to optimize my application for 4.0 +? Mar 12 20:10:20 MajorZero: I don't think it's a 4.x quirk, I think only 4.x started reporting delays in the main loop Mar 12 20:10:52 MajorZero: you can try to optimize your layout so it doesn't do repeated drawing (there's a lot of articles about this, I don't have links offhand, but you can turn on redraw display under developer options) Mar 12 20:11:04 MajorZero: and you can shift calculation/io stuff to its own thread Mar 12 20:12:13 hmm okay thank you. I notice it performs a little slower on 4.0 +' ill check out your suggestion Mar 12 20:13:59 ChibiSUN-L: it takes a while to propagate the update Mar 12 20:14:12 check out http://developer.android.com/reference/android/os/StrictMode.html which will help identify things you are doing on your main thread that you should not be Mar 12 20:16:24 osxorgate, what does propagate mean? if I can see the update button and update manually, doesn't it mean the update propagated? Mar 12 20:16:44 ChibiSUN-L: there are a lot of servers that need to receive your update, it takes time Mar 12 20:18:02 I see, thanks for the info Mar 12 20:19:14 thank you kevinb Mar 12 20:31:11 I'm trying to animate the a SimpleCursorAdapter-backed ListView item's height to 0. This works, but OnAnimationEnd, the height is never even close to 0, so I set that manually then, but after I delete the associated item's content and I get back to my CursorAdapter's bindView(), the height is already set to a small amount again. Why might that be? I've verified it isn't set anywhere else. Mar 12 20:31:47 The animation code is at http://pastebin.com/nAEdE1H0 Mar 12 20:38:11 whats ~Binder driver could not be opened. mean exactly? Isn't that part of the kernel? Mar 12 20:44:00 Whats the difference between super.read() and in.read() in a bufferedinputstream? Does super point to something else?... Mar 12 20:44:14 ah nvm i just answered my own question Mar 12 20:44:29 :) Mar 12 20:44:31 super.read() calls bufferedinputstream's read func, in.read calls its inputstream's read func Mar 12 20:44:32 derp Mar 12 20:45:03 re :) Mar 12 20:45:48 Why does BitmapFactory request 1024 chunks of data from an extended bufferedinputstream?... Mar 12 20:46:23 the internal bytearray is properly sized to my desired 16k bytes Mar 12 20:46:47 but when read[] is called, only 1024 are requested Mar 12 20:47:19 the default buffer size in bufferedinputstream is 8kb, and the default size for bitmapfactory is 16kb Mar 12 20:47:37 looking at the source for decodeStream shows no mention of 1024 other than setting a marking location... Mar 12 20:47:54 looking at the native source for skia shows no mention of 1024 either Mar 12 20:47:56 :| Mar 12 20:50:35 I want to ask about few things. First i want to use a tablet with android as a custom device. There will be installed just one application. Mar 12 20:50:35 This application need to work all the time,and in case when its died it need to be restarted. Mar 12 20:50:35 Is it possible to write application that will disable all buttons and possibilites that end user will change something in this device? Mar 12 20:50:35 So he need to be allowed just work with this application. Mar 12 20:51:13 custom rom? Mar 12 20:52:17 well, if there are no other option then could be some solution Mar 12 20:53:51 But then what i should consider or hack in original rom ? Mar 12 20:55:01 Is it possible to write application that will disable all buttons and possibilites that end user will change something in this device? Mar 12 20:55:10 ALL = you need to modify the rom Mar 12 20:55:28 an app cant prevent anything outside of its own instance Mar 12 20:56:23 yep i was afraid that... Mar 12 20:56:35 is there a hook I can use to know when an spelling error is added Mar 12 20:56:57 I want to programmatically restrict some words from being flaged as a spelling error Mar 12 20:57:26 let me guess your first choice is "flaged" Mar 12 20:57:27 * oGMo runs Mar 12 20:58:15 JakeWharton (or anyone else): Is it correct that the SherlockFragmentActivitiy does not have an onCreate(), or am I doing something wrong? Mar 12 20:58:25 and if yes, how am I supposed to 'bootstrap' this? Mar 12 20:58:27 you're doing something wrong Mar 12 20:58:33 oh. Mar 12 20:58:36 that explains a lot. Mar 12 20:59:16 Hum, OK, eclipse tells me the hierarchy of my MainActivity is inconsistent now. :-/ .. that could probably be the problem. Mar 12 21:01:06 oh could this be because I use the wrong target SDK version? let me try. Mar 12 21:04:12 hargh Mar 12 21:04:31 I seem to have lost the ability to launch my project with cmd+shift+F11 Mar 12 21:06:05 Here's the code of my read methods in my extended bufferedinputstream. http://pastebin.com/jPUC3gJB The size of the bytebuffer is 16kb, yet bitmapfactory.nativedecodestream requests 1024 chunks... would anyone know why? Mar 12 21:06:13 03-12 14:00:28.951: D/skia(17419): Read[] off 0 len 1024 r 1052333 bsize 16384 Mar 12 21:06:17 is the log.d message Mar 12 21:11:39 ooh, I see. Eclipse warns me about different versions of the android-support-v4.jar file being in my build path... Mar 12 21:11:59 JakeWharton: should I remove the jar from my build path? Since it should be included by the library anyway? Mar 12 21:12:13 replace both with r123 Mar 12 21:12:15 r12, rather Mar 12 21:13:31 is there a way of knowing the revision from the jar file? Mar 12 21:14:02 I'm sorry, I'm sort of new to the Java business... Mar 12 21:14:36 no, Android saw fit to take us back in time to the days of copying around jars Mar 12 21:15:16 you _copy_ your jars? how quaint Mar 12 21:15:26 heh Mar 12 21:16:04 *sigh*, OK, let me try to figure out the version I have by comparing SHA1-sums... Mar 12 21:16:13 i guess at a bare minimum you could have a local repository and an ant task to copy the jar Mar 12 21:16:18 i quantumly entangle them with other jars using sophisticated alien technology, lasers, and ordinary table salt Mar 12 21:17:06 I just have the 1 jar, and move it around between projects when I need to compile them Mar 12 21:17:11 you could but meta data about the version in META-INF/MANIFEST.MF … if you know what you're doing ;) Mar 12 21:17:34 SimonVT: all of your projects only have a single dependency? Mar 12 21:17:48 i am placing a fragment into a view using fragment manager and FragmentTransaction. It is a map fragment. I need to call getMap() on it, to get the pointer ot the GoogleMap object. problem is getMap() returns null if the fragment is not finished loading in. i call commintPendingTransactions() but still getting null Mar 12 21:18:00 and he round-robins the dependency at build time ! Mar 12 21:18:07 ok, seems my sdk manager has the current version, let's use that one. Mar 12 21:18:42 birbeck: Custom ant targets that moves it between each dependency, of course Mar 12 21:20:29 i thought executePendingTransactions() was suppose to force the transactions synchronously, so i don't understand how getMap() would still return null afterwards Mar 12 21:25:33 quick question, do anyone know how to send data via HTTP POST requests such that it doesn't replace > with %3E Mar 12 21:26:15 agargiulo: change mime-type? Or to be specific, don't do url-encoding? Mar 12 21:27:13 perhaps don't put it in the url, but in the payload body? Mar 12 21:27:24 I'm not too sure how to set the mime type, but I know I'm never actually encoding it. Mar 12 21:27:59 yay for a downwards-compatible ActionBar \o/ thanks JakeWharton for an awesome piece of software. :) Mar 12 21:28:03 yes, but whatever you're using is doing url-encoding on the request data Mar 12 21:28:15 p_l: yeah, probably. Mar 12 21:28:55 this is the HTTP library I am using: https://github.com/loopj/android-async-http and before that I was using the the DefaultHttpClient class Mar 12 21:29:14 https://github.com/agargiulo/gatekeeper-android <-- My code Mar 12 21:29:19 that library again Mar 12 21:29:56 oh? Mar 12 21:30:24 why not use the ole, whats it called, URL majig Mar 12 21:30:40 URL.getHTTPConnection or whatever, i can't remembner Mar 12 21:31:31 because this is how I learned to do HTTP requests, and because I need them to be async Mar 12 21:31:42 finally, an app that connects to my car to get the OBD II codes ! \o/ apple though Mar 12 21:32:16 Is there a Wake up Bug in GCMIntentService? It seems that i receive all commands by GCM but as soon as the Keyguard has been locked the processing of the message does not work anymore. Receiving the messages still work. Any idea? In some cases it works for a few seconds straight after keyguard has been locked Mar 12 21:32:35 g00s: what did you mean by "that library again"? Mar 12 21:32:51 agargiulo: http://developer.android.com/reference/java/net/HttpURLConnection.html Mar 12 21:33:09 agargiulo: oh, there was some useless abstraction ontop of httpclient or something - i thought that was the one Mar 12 21:33:18 all network transfers have to be async from the main thread, btw Mar 12 21:34:10 g00s: maybe they are useless, but it made the code more readable to me Mar 12 21:34:23 all libraries are useless. write your code in assembly Mar 12 21:34:30 JakeWharton++ Mar 12 21:34:52 * speakingcode-wor digs through ABS source looking for machine code Mar 12 21:35:27 thats easy, i can write that library's asm in 1 second : NOP Mar 12 21:35:52 what the fucking fuck why does bitmapfactory only request 1024 bytes... Mar 12 21:36:14 lmao Pyuruku i battled iwth bitmap stuff last week, totally feel your pain Mar 12 21:36:26 this makes absolutely NO sense Mar 12 21:36:33 the bitmap/canvas/paint api is crap Mar 12 21:36:49 i specify a fucking size for my byte array, and it the size of it is what I requested Mar 12 21:37:00 the default size for a buffer in bufferedinputstream is 8kb, 16kb for bitmapfactory Mar 12 21:37:04 and yet, i get 1024 reads Mar 12 21:37:27 i tried passing a 16kb buffer through inTempStorage, no change Mar 12 21:37:41 gl is all i can say Mar 12 21:37:50 I've done this stuff before, and ive never had this problem Mar 12 21:42:01 hey! I'm working with google maps api v2. When I use a small project just for test it's work fine but when I use with "the big" project I have a strange error : Permission denial : receiving Intent (act=com.google.android.maps.api.action.TOKEN_RESPONSE ..... pkg=my package (has extras)) to processrecord (...) requires my package.permission.MAPS_RECEIVE due to sender com.google.android.apps.maps any idea ? plz Mar 12 21:42:33 my eclipse stops responding after I open my workspace... anybody got experience with that? I think I remember I had to remove a project file somewhere.. Mar 12 21:42:45 P-l: Mar 12 21:42:48 are p_l and P-l the same person? Mar 12 21:42:48 in your manifest Mar 12 21:42:56 nop agargiulo Mar 12 21:43:03 okay Mar 12 21:43:11 speakingcode-wor, already present :/ Mar 12 21:43:39 you also have Mar 12 21:43:42 ? Mar 12 21:44:12 yep like I said I c/c between my 1st application for test and my second Mar 12 21:44:21 And I adapt the name of the package :/ Mar 12 21:45:12 sure you got the package name in the and tags? Mar 12 21:45:39 double check it Mar 12 21:46:25 you can write your own permissions? Mar 12 21:47:51 pastebin.com/1K4A6Lza Mar 12 21:49:06 speakingcode-wor, agargiulo an idea ? :-( Mar 12 21:49:31 Got it, I had a corrupted workspace Mar 12 21:49:36 does anyone know of other android dev irc rooms? Mar 12 21:49:50 are we not nice enough? Mar 12 21:49:53 :P Mar 12 21:49:57 :) Mar 12 21:49:58 No one seems to be able to help me here Mar 12 21:50:25 Pyuruku: Sorry Mar 12 21:54:28 :-( Mar 12 21:59:26 uhm. there are rumors out there[tm] that having "too many" AsyncTasks is bad.. is that true? Mar 12 22:00:21 it looks like i've run into such a situation. populating my ListAdapter one-by-one works (each time creating an AsyncTask to load an image..), but if I populate it in onCreate() from the database, the doInBackground methods are not being called... Mar 12 22:00:27 Nobody has been able to help me so far, so instead, can someone point me to an example of animating the removal of a ListView item that is backed by a CursorAdapter? Maybe I could solve my issue that way. Mar 12 22:02:21 so I found a reason to use the Loopj http libraries. It makes jumping between http and https hosts super simple Mar 12 22:04:43 I was trying to use nhaarman's ListViewAnimations, but I couldn't figure out a way to use that with a CursorAdapter rather than ArrayAdapter. Mar 12 22:08:18 ohh.. I think I see. Is it correct that every app has only a certain number of AsyncTasks? Mar 12 22:08:44 i.e. if an asyncTask is started and trying to reach a nonexistent server, waiting for a timeout, everything "behind" it is blocked? Mar 12 22:10:47 http://developer.android.com/reference/android/os/AsyncTask.html read the part about order of execution. Mar 12 22:11:54 oh I see. Yeah, I head the 'from donut on there are multiple tasks' thing in my mind Mar 12 22:12:17 I didn't know they reverted that.. thanks a lot. I should rebuild that using a proper Thread, I gues... Mar 12 22:14:23 -hmm Mar 12 22:14:38 how can i swith off the sceen and after a while on ? Mar 12 22:15:05 press the power button and after a while press it again Mar 12 22:15:41 haha Mar 12 22:15:43 no, no, by application way. Mar 12 22:16:04 currently to keep it on i use getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); Mar 12 22:16:26 Hi. Mar 12 22:17:03 I would like to play RTP streams.But Android's MediaPlayer does not play it. It can play RTSP but can't play RTP. Mar 12 22:17:30 tinloaf> chance .execute(...) into .executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, ...) for all those AsyncTask you want running... async. Mar 12 22:18:11 no need to switch to threads just for that change Mar 12 22:18:59 Is there any way to play RTP Streams ? Mar 12 22:19:07 hetii: I'm pretty sure you can't Mar 12 22:19:26 Chainfire: thanks, I'll try that. Mar 12 22:20:02 you could remove the FLAG_KEEP_SCREEN_ON flag again to let the screen timeout as normal, you need DeviceAdmin to force turn off the screen. You should question if thats really what you want to do - because probably you don't. Mar 12 22:21:42 well my device will work 24/h so i want to reduce consumption of led usage. Mar 12 22:21:45 hmm Mar 12 22:22:12 Is it a testdevice? Mar 12 22:22:31 in that case, see if you can remove the flag, and configure your screen timeout to 30 seconds manually or something Mar 12 22:23:18 kakazza: currently yes but in real application it will work as the same way Mar 12 22:23:22 or switch to a wakelock which I'm certain will work that way ... Mar 12 22:23:32 Chainfire: what's your thought on this android.permission.ACCESS_SUPERUSER thing? Mar 12 22:23:33 (but is more or less deprecated) Mar 12 22:24:02 hetii: And it's not connected to a power source 24/7? Mar 12 22:24:09 it will Mar 12 22:24:12 (custom user-made permission introduced by koush for the cyanogenmod superuser built-in) Mar 12 22:24:45 pragma- SuperSU supports it as well... my thoughts are "meh" but I have nothing against it Mar 12 22:24:58 Then I don't see the problem with keeping the screen always on. In the project I am working on we have two test devices which are on 24/7 for about a year now. With some reboots here and there. Mar 12 22:25:03 it certainly provides an easy way for OEMs to shut out all root apps :) Mar 12 22:25:23 What exactly are you concerned about? Mar 12 22:25:31 kakazza: well and the displays still works fine ? Mar 12 22:25:36 Work fine, yes. Mar 12 22:26:02 hmm Mar 12 22:26:08 Nexus S btw Mar 12 22:26:15 interesting how long they can survive on this mode. Mar 12 22:26:28 The display is dimmed when nothing is running iirc. Automatically. Mar 12 22:26:47 We did not use the flags you used. We just set it to always on Mar 12 22:26:49 aye but you can dim lower manually, it seems Mar 12 22:27:03 Not sure if it dims when using those flags. Mar 12 22:27:16 the auto-dim thing doesn't let you configure it Mar 12 22:27:20 Chainfire: pragma-: a concern of mine is that the permission description sounds very scary (which yeah root access is), when my apps only use root optionally and the permission description makes it sound like it's required (as for other permissions it is) Mar 12 22:27:31 Well, hence "auto" Mar 12 22:28:05 The lowest dim setting on my sgh-t999 sgs3 is still quite bright :( Mar 12 22:28:16 my point was that you can implement this in-app, together with screen always on, by using getWindow().setAttributes(), .screenBrightness parameter Mar 12 22:28:16 kakazza: so how you set your application to have them dimmed instead sleeping ? Mar 12 22:28:30 even if the flag doesn't combine :) Mar 12 22:28:38 hetii: I do remember there are ways to turn on the screen and unlock it. Or was it just unlocking? I don't remember. KeyGuard? KeyManager? Mar 12 22:28:47 hetii: I don't. The device dims. Mar 12 22:28:49 you could also use the draw over apps permission to draw a transparent black quad over the entire screen Mar 12 22:28:52 But never turns off. Mar 12 22:29:13 translucent Mar 12 22:29:22 Or yeah, what Chainfire said. But we just let the device handle brightness. Mar 12 22:30:06 ok will do some test and let you knows Mar 12 22:30:10 in a similar project we dim the screen and overlay a black square, because the power button is inaccessable (doh)... and you can't turn off the screen without turning off the touch layer on the Nexus7, far as I've found. Mar 12 22:31:08 Is there any way to play RTP Streams with Android MediaPlayer ? Mar 12 22:32:06 kevinb I have some similar reservations as well. I am not planned actually blocking apps that do not have it. Let's just see where this goes first. Mar 12 22:33:24 ilkerdagli seeing as you've asked this at least three times in the past few minutes and nobody has responded, I'm going to venture a wild guess that nobody currently reading actually knows Mar 12 22:38:18 The layout of my app keeps hiding behind the soft button/clock bar on my tablet. Mar 12 22:38:37 It's a LinearLayout if that helps Mar 12 22:38:55 all widgets are layout_height="fill_parent" or match_parent. Mar 12 22:46:23 maybe i should not be amazed at the sleaze that goes on in the play store wrt competitors and their reviews Mar 12 22:46:53 for example, you get a good review … a day later, something almost copied / pasted from your review winds up on your competitors review Mar 12 22:47:40 "tried all the others" … ok, lets seem if i have this dude in my payment history. i mean, there are only like 2 companies making this app. Mar 12 22:47:41 nope Mar 12 22:47:53 yeah lots of comments like those Mar 12 22:48:01 blatant nonsense as well Mar 12 22:48:11 do you want to buy 1000 positive comments? Mar 12 22:48:24 hi pals Mar 12 22:48:26 :) Mar 12 22:48:49 I really am stuck Mar 12 22:48:56 also, i notice that every time i put out an update - my competitor puts out an update, but he has nothing under 'whats new' hehe. Mar 12 22:48:56 I like those reviews where an app gets a high rating despite failing to work. "Tornado warning app: 5 star - great UI; 5 star - Pretty icon; 4 star - I like pickles; 1 star - did not warn about tornado" Mar 12 22:49:13 xkcd Mar 12 22:49:29 i mean, i do like 3 or 4 releases per year. its pretty obvious with that frequency Mar 12 22:49:32 please can someone check my code. I have no idea why but it's not writing a string to an NFC tag for some reason Mar 12 22:50:39 please Mar 12 22:51:10 coco89: all these messages and not a single one has contained source code... Mar 12 22:51:16 lol Mar 12 22:51:21 evanc: exactly what i was thinking Mar 12 22:51:34 coco89: Since you have 0 code, i suspect that is why your app isn't working Mar 12 22:53:09 how do I get my LinearLayout to not overflow behind the soft button row on my tablet? Mar 12 22:53:47 jorizma: code or else Mar 12 22:55:34 this is an Activity styled as Theme.Dialog, but how can I get a line underneath the title so it's separated from the text? http://bildr.no/image/1414153.jpeg Mar 12 22:56:08 Quacked: Add it under the TextView? Mar 12 22:56:25 For > 2.3 I use Theme.Holo.Dialog which has a line there by default Mar 12 22:56:25 *on top of Mar 12 22:56:55 hwrd|work: create some kinda border? Mar 12 22:58:01 Quacked: Yeah. Or you could use HoloEverywhere… Sorry I don't know enough around it to help much more than that. Mar 12 22:58:49 Yeah, I tried getting holoeverywhere to work some time ago, but just couldn't get it to work Mar 12 22:58:54 hwrd|work: "code or else" was that directed to me? Mar 12 22:59:32 i am using a singleTop activity. when a new intent is delivered to activity i dont want the activity to come to the top of the stack Mar 12 22:59:55 brx_: then why is a new intent being delivered? Mar 12 23:00:02 (i am updating it with onNewIntent(), but i want it to remain at its position in the activity stack) Mar 12 23:00:07 brx_: it seems like you're looking for a broadcastreceiver Mar 12 23:00:22 ok Mar 12 23:01:05 hi Mar 12 23:01:12 i have a question Mar 12 23:01:45 no need to announce it, just ask ... Mar 12 23:01:50 pepigno75, i dont believe you Mar 12 23:02:18 sorry... Mar 12 23:03:04 can i open default camera app and receive info ? I must record only a video max 30 seconds Mar 12 23:03:23 hwrd|work: xor eax, eax Mar 12 23:03:25 why you buggin me Mar 12 23:04:12 pepigno75, find a camera/surfaceview implementation and use the OnInfoListener of mediarecorder class, that was you get a callback when x seconds has passed (using setMaxVideoDuration on your recording object) Mar 12 23:04:20 well, thats what i'd do Mar 12 23:04:39 What i should use if my device should listen on some port for commands? Mar 12 23:04:46 joar-web: yeah Mar 12 23:05:08 jorizma: leal eax Mar 12 23:05:09 brx_: with surfaceview i get image/video in my app, i want open default app camera... Mar 12 23:05:10 i found: http://android-er.blogspot.com/2011/01/implement-simple-socket-server-in.html Mar 12 23:05:25 pepigno75, why use another app to use the camera? Mar 12 23:05:44 evanc: http://pastebin.com/ktV70Wpw Mar 12 23:06:09 brx_: default app camera have more settings Mar 12 23:06:37 but devices dont always come with a default camera app do they? Mar 12 23:06:50 brx_: is it possible control default app camera? Mar 12 23:07:14 they come with "A" default camera app lol Mar 12 23:07:46 my nexus 7 didnt come with one at all Mar 12 23:08:08 (plus what jug6ernaut_ said) Mar 12 23:08:09 n7 doesn't have a camera Mar 12 23:08:14 has front Mar 12 23:08:15 brx_: i dont' know performance of surfaceview implementation. Mar 12 23:08:23 not one for picture taking* Mar 12 23:08:47 you can take pictures on it. he said he wants 30 seconds of video anyway Mar 12 23:09:38 ok.. i try surfaceview implementation Mar 12 23:12:11 hey guys, can anyone pleaes check my code. for some reason it's not writing a string to an nfc tag i'm really stuck.. http://pastebin.com/ktV70Wpw Mar 12 23:14:56 coco89: did you look at logcat? (I'm not familiar enough with NFC code to be much help) Mar 12 23:16:06 evanc: using the simulator gives an error message but only because it can't NFC but let me try with my phone one sec Mar 12 23:21:26 evanc: here's the log http://pastebin.com/XdeGZHgL Mar 12 23:21:32 evanc: not sure if there's anything wrong with it Mar 12 23:27:11 anyone? Mar 12 23:30:27 hwrd|work: This is the main.xml: https://gist.github.com/joar/33f36b19607cc90a91ca do you need anything else? Mar 12 23:30:41 Hey is there a way to tell an adapter view to hold on to more child instances. Like if a list view takes 3 child views to fill up a screen, can I force it to hold onto 10 before it recycles them? Mar 12 23:31:03 joar-web: layout_weight is your friend. Use it. Mar 12 23:31:29 hwrd|work: thanks for the pointer :) Mar 12 23:31:39 np Mar 12 23:35:18 jayd16: I don't think so, but the fact that you're asking makes me scared Mar 12 23:35:34 hey guys, can anyone pleaes check my code. for some reason it's not writing a string to an nfc tag i'm really stuck.. http://pastebin.com/ktV70Wpw .. and here is the log: http://pastebin.com/XdeGZHgL Mar 12 23:35:45 jayd16: you could always say there are 10 view types and then return the correct one in getItemViewType(int) or whatever Mar 12 23:35:59 coco89: IRC is a patient man's game. Maybe try StackOverflow Mar 12 23:36:22 evanc: sorry will continue to wait Mar 12 23:38:56 evanc: That would be a neat trick. I guess the type would be (pos % cachedViewCount). Is this such a bad idea? View pager has an option to pre-render a set number of pages in advance. Mar 12 23:40:12 in eclipse's graphical layout tool, any new views that I add do not show up. Even when I add them directly into the xml myself. Mar 12 23:40:49 the new views won't show up in the graphical layout tool or the Outline either. Mar 12 23:41:04 burrito_: rebuild your project Mar 12 23:44:30 jayd16: I would bet it's not the worst thing you could do, but why are you doing it? Mar 12 23:45:16 evanc: to implement pre-loading of images, basically. Mar 12 23:45:39 bankai_ that didn't work.. any other ideas? seems like an eclipse issue. Mar 12 23:46:14 jayd16: building extra views seems like the wrong way to do that Mar 12 23:46:26 why not just queue up a bunch of loaders (however you're doing that (asynctask?)) Mar 12 23:47:37 burrito_: i'm not really sure what you're doing, but the rendered image in eclipse is rarely accurate or helpful, especially for things that are dynamically populated. Mar 12 23:47:57 hwrd|work: do you have an authoriative resource that I can read about layout_weight on? Mar 12 23:48:02 Is there a way to test my OBB setup from google play? Mar 12 23:48:13 I'm not sure, it seems like it's intended for use with RelativeLayout Mar 12 23:48:21 (layout_weight) Mar 12 23:48:42 evening Mar 12 23:49:04 bankai_ I understand. But, even when I run the project in an emulator the views still do not show up, despite having been written into the xml file directly. Mar 12 23:49:23 evanc: its a large list of images, I can't just queue up everything because it will actually kick images that are just out of view, out of memory, and you would see thrashing happen. I'm basically doing this so I have some idea of what I should pull into memory. I guess I could save a little by just invoking the loader from the adapater but not actually hold on to extra view instances. Mar 12 23:50:02 burrito_: in that case, make a quick change to a .java file (add a space or something), then redeploy your project Mar 12 23:51:00 still no luck Mar 12 23:51:11 hey guys, can anyone pleaes check my code. for some reason it's not writing a string to an nfc tag i'm really stuck.. http://pastebin.com/ktV70Wpw .. and here is the log: http://pastebin.com/XdeGZHgL Mar 12 23:51:13 you've done something wrong them, dump your xml file somewhere Mar 12 23:52:48 joar-web: No, its intended for linearlayout, its basically "percentage". http://stackoverflow.com/questions/3995825/what-does-androidlayout-weight-mean Mar 12 23:56:29 anyone? Mar 12 23:56:31 bankai_ which xml file? the one for the specific layout? Mar 12 23:57:07 eclipse won't even let me start a new project from existing source code, including this particular project.. Mar 12 23:58:26 hwrd|work: doesn't seem to work though -- found the culprit, an implementation of ViewGroup appends some ImageViews to the view. Mar 12 23:59:55 hmm Mar 13 00:02:18 hey guys, can anyone pleaes check my code. for some reason it's not writing a string to an nfc tag i'm really stuck.. http://pastebin.com/ktV70Wpw .. and here is the log: http://pastebin.com/XdeGZHgL Mar 13 00:03:21 on my main activity in onCreate() i put Log.d(TAG, "Hello from onCreate"); But in Eclipse the console or LogCat don`t show it. Mar 13 00:03:28 Any clue why ? Mar 13 00:04:13 in logCat i just see: Unable to open log device /dev/log/main: No such file or directory. Mar 13 00:05:28 joar-web: Ah, I see. Mar 13 00:08:33 hwrd|work: fixed now, looks beautiful. Thank you! Mar 13 00:09:53 hey guys, can anyone pleaes check my code. for some reason it's not writing a string to an nfc tag i'm really stuck.. http://pastebin.com/ktV70Wpw .. and here is the log: http://pastebin.com/XdeGZHgL Mar 13 00:10:04 stop asking! Mar 13 00:10:14 :| Mar 13 00:10:54 can I put a swipe and drop down on the same action bar? Mar 13 00:12:07 i'm stuck :( Mar 13 00:12:50 I'm trying out how to draw a selector on top of an ImageView... Any suggestions? Mar 13 00:19:36 joar-web: No problemo! Mar 13 00:21:00 Hi. I built an ExpandableListView with simple TextViews, but some child items are longer than 1 line and the text gets cut off: https://dl.dropbox.com/u/22760184/screenshots/Bildschirmfoto%20vom%202013-03-13%2001%3A19%3A00.png - what do I need to change? Mar 13 00:22:53 Kopfgeldjaeger: isSingleLine, or you need to create a custom textview that sizes text to fit Mar 13 00:23:19 hey guys, can anyone pleaes check my code. for some reason it's not writing a string to an nfc tag i'm really stuck.. http://pastebin.com/ktV70Wpw .. and here is the log: http://pastebin.com/XdeGZHgL Mar 13 00:23:50 ffs Mar 13 00:24:04 I'm flummoxed. I'm trying the (basically) hello-world of an android app that tries to use the google drive API, using directions from https://developers.google.com/drive/quickstart-android I compile succesfully, install on nexus-4, and get the following: http://pastebin.com/qnYvZ2G9 (also note the many missing methods prior to stack trace.) I must be missing something obvious -- suggestions for debugging? Mar 13 00:24:06 Mar 13 00:24:55 hwrd|work: I just saw it was the most obvious possible error... height was set in code, not WRAP_CONTENT, so of course it does not scale right. Ah, stuff like that happens when using someone's code and not thinking about it Mar 13 00:24:58 hey guys, can anyone pleaes check my code. for some reason it's not writing a string to an nfc tag i'm really stuck http://pastebin.com/apKJiBhR Mar 13 00:25:24 coco89: Try stackoverflow, people here don't seem to have an idea Mar 13 00:25:47 kbs: read the error ... Mar 13 00:25:55 Mar 13 00:26:09 bankai_: yes, I have -- would you be kind enough to enlighten me on where one might find that missing class? Mar 13 00:27:55 kbs: google the errro Mar 13 00:28:02 kbs: do you find anything? anything like http://stackoverflow.com/questions/14790149/java-lang-noclassdeffounderror-com-google-android-gms-common-accountpicker Mar 13 00:28:35 hwrd|work: yes, I have. That solution makes no sense -- importing that class that doesn't exist is not a solution for me. Mar 13 00:28:50 hwrd|work: (I've seen that SO suggestion prior to coming here...) Mar 13 00:29:22 kbs: If the jar is in your build path then I'm out of ideas :-\ Mar 13 00:30:28 hwrd|work: right, I don't see this being one of the "obvious" answers, hence my question... :) my understanding is that the referenced class is specific to the google play services apk, rathr than a library class. I of course, have this on the nexus, so I must be missing something else Mar 13 00:31:11 hwrd|work: also, I should point out that the code clearly compiles -- ie, there's no such jar that one can build against. Mar 13 00:31:33 hwrd|work: however, it's being referenced way inside one of the bulid jars.... Mar 13 00:35:20 hey guys, can anyone pleaes check my code. for some reason it's not writing a string to an nfc tag i'm really stuck http://pastebin.com/apKJiBhR Mar 13 00:49:26 hey guys, can anyone pleaes check my code. for some reason it's not writing a string to an nfc tag i'm really stuck http://pastebin.com/apKJiBhR Mar 13 00:50:20 ask another time, things may have changed Mar 13 00:51:01 bankai_: sorry for asking so many times, i mean a quite a few people have joined so i'm taking a chance, this will be the last Mar 13 01:03:14 bankai_ out of curiosity have you checked the code? Mar 13 01:04:01 no ... i don't read "please look at my code" links with no descriptions or errors :) Mar 13 01:05:54 bankai_: well, i already said before Mar 13 01:06:25 bankai_: i'm trying to write a string to an nfctag Mar 13 01:06:46 textedit button press button makes it write to a tag Mar 13 01:06:52 i don't think there are any errors Mar 13 01:07:02 or maybe i can't see them Mar 13 01:31:34 yo guys my code, check now. go! http://pastebin.com/70tcA5UX Mar 13 01:39:19 Hi all. I am parsing a webpage and checking for 4 different values, numbers. I currently display them in a single TextView, but wanted to display a very small image beside them, just like how it's on the website. I have only 2 options here. Either use a separate TextView for the 4 different strings, and 4 imageviews, or use a spannablestring in which I can embed an image. I decided on Mar 13 01:39:19 option 2, but after following some examples, there is no image displayed. Any ideas to the problem? Mar 13 01:39:59 diki: no just no, i've asked like so many questions there's a queue here Mar 13 01:40:04 nobody is answering :( Mar 13 01:42:34 bankai_: sorry for asking so many times, i mean a quite a few people have joined so i'm taking a chance, this will be the last Mar 13 01:42:51 KungFuHamster: OO <- suck em Mar 13 01:44:19 hi. quick question: Is there any way of getting an ImageView into a Message? (It's not really parcelable...) Mar 13 01:44:34 tinloaf: no Mar 13 01:45:12 I have a Thread that should load images and put them into ImageViews (in doInUiThread()) ... now I'm wondering how to get the ImageView to the thread. :-/ Mar 13 01:45:26 tinloaf: no Mar 13 01:45:51 "no" meaning "everything you do is terribly wrong"? .. you're probably right. ;) Mar 13 01:50:06 successful troll is succesful Mar 13 01:50:13 he's never coming back Mar 13 01:53:51 yeah, so much for having a stable system. Mar 13 01:53:58 did anyone write something regarding my problem? Mar 13 01:54:43 tinloaf: no Mar 13 01:56:02 :-D Mar 13 01:56:11 tinloaf: no Mar 13 01:56:14 you have a shortcut for that, don't you? ;) Mar 13 01:59:32 then I probably have to create a new thread for every ImageView and pass the view to the constructor. not nice, but should work. :-/ Mar 13 02:01:27 no matter what I do Mar 13 02:01:33 the stupid image does not show.. Mar 13 02:05:12 tinloaf: no Mar 13 02:05:16 diki: no Mar 13 02:12:33 coco89: i love your positive attitude :-P Mar 13 02:15:27 I have two radiobuttons in the same radiogroup that have exactly the same di Mar 13 02:15:28 id Mar 13 02:17:00 burrito_: no Mar 13 02:17:14 I had set an onclick event to change the text of a textview on my layout to show the id of selected radiobutton and they are both the same. I was previously having issues with their input being the same Mar 13 02:17:47 i couldn't get them to change the value within a formula because no matter which one i pressed in the emulator, the value would remain the same Mar 13 02:19:18 the function would evaluate the ids of the radiobutton, then check to see which one was selected and change the value based upon which one was selected, but it wouldn't change the value, it remained the same. so that's when i wrote up a ditty to set the textview text to show the id of the selected radiobutton and it was the same for both Mar 13 02:20:57 i don't understand this at all.. blows my mind.. i figured there was no way they could be the same without it being obvious in the Outline at least.. Mar 13 02:28:08 burrito_: no one cares Mar 13 02:29:28 hmm, good job buddy.. I think you're in the wrong channel, there might be some teen swag channels on chatjunkies.. Mar 13 02:29:55 he maddd Mar 13 02:30:13 i'm such an asshole Mar 13 02:39:50 Hi is there a way to get a keyboard with decimals that is in a grid format? like the phone one? Mar 13 02:40:00 totic: no Mar 13 02:40:20 coco89: want to be a bit more specific? Mar 13 02:41:49 no Mar 13 02:42:37 is there a place were I can see all the keyboard and what inputtype makes them pop? Mar 13 02:42:54 or is it possible to make my own keyboard? Mar 13 02:43:47 coco89: but the old tablet had that: http://docs.huihoo.com/android/2.3/resources/articles/images/ime.png Mar 13 02:48:17 i think InputType.TYPE_CLASS_NUMBER Mar 13 02:49:30 *bashed head in desk* Mar 13 02:49:37 No matter what I do... Mar 13 02:49:42 totic: nope Mar 13 02:49:47 kevinb: no Mar 13 02:50:36 coco89: click on the text of a NumberPicker Mar 13 02:50:40 and observe the keyboard Mar 13 02:51:27 i guess it depends on the IME actually, but with stock android and the default android IME, it's grid like in the NumberPicker's EditText at least Mar 13 02:52:44 kevinb: i dont understand Mar 13 02:53:24 kevinb: you talk in maths Mar 13 02:53:26 arrest this man Mar 13 02:53:42 you buzz like a fridge Mar 13 02:53:47 can someone kick him, please / Mar 13 02:54:02 oh no we dont want that Mar 13 02:59:23 see nobody wants that **** ENDING LOGGING AT Wed Mar 13 02:59:58 2013