**** BEGIN LOGGING AT Fri May 11 02:59:59 2012 May 11 03:00:06 t0mless hould respond: "the beach is … that way" May 11 03:00:15 * t0mless flexes May 11 03:06:37 how can I determine if my service was stopped manually? May 11 03:06:55 read the cat log? May 11 03:07:16 o, u mean outside debug? May 11 03:07:29 I guess u gotta do a log May 11 03:09:51 well ondestroy works but I need to use sendbroadcast and i think ondestroy kills my service before the broadcast is sent May 11 03:10:41 I haven't the slightest May 11 03:10:41 do it in onStop() ? May 11 03:10:43 anybody got fragment pager adapter to work? May 11 03:10:49 Yes May 11 03:11:45 did you ever get 05-11 09:57:29.051: E/AndroidRuntime(17849): java.lang.IllegalArgumentException: No view found for id 0xffffffff for fragment SandboxFragment{41852090 #0 id=0xffffffff android:switcher:-1:0} May 11 03:11:49 t0mless, there is no onStop May 11 03:14:25 hrm May 11 03:14:28 that is interesting May 11 03:22:08 why would ondestroy stop your service before it's sent? May 11 03:22:26 if your code is executing, it gets sent May 11 03:23:19 pfn, I do not know. Maybe a code sample would help? May 11 03:23:45 code sample? @Override public void onDestroy() { sendBroadcast(...); super.onDestroy(); } May 11 03:23:57 seems quite straightforward May 11 03:24:27 ltr May 11 03:24:50 alex_PP got some source and full stack trace? May 11 03:25:13 pfn, wow i epic fail.... need to call super after i sendbroadcast May 11 03:25:48 cooldman224, don't think you have to, but that's the easy way to try it and see May 11 03:28:01 http://pastebin.com/vRkj8vjd May 11 03:28:24 http://pastebin.com/YXsJxdTK May 11 03:29:19 id = -1 May 11 03:31:37 what the if redunancy??? May 11 03:32:10 why would fragments.get() suddenly not become null one line later? May 11 03:32:28 oh, yes, i've rewritten this a few time to make it work May 11 03:32:31 that's a bit special May 11 03:32:40 what's the fragment code? May 11 03:33:01 it fails even with return new SandboxFragment() May 11 03:33:22 inflate a text view in on create view May 11 03:33:35 it's meant to be a simple example for some other our new staff May 11 03:33:58 because it seems that your onCreateView() is not working May 11 03:36:02 pfn, hmm I thought that would have done it but it didn't. I guess a code sample is needed: http://pastebin.com/cCGtMern May 11 03:36:26 ok, i'll check there May 11 03:37:03 cooldman224 log the value of finished May 11 03:37:20 maybe you're not even dropping into that code May 11 03:38:26 t0mless, but I think I am? At line 69 May 11 03:41:48 huh? May 11 03:42:00 that is totally different class May 11 03:42:04 I meant line 42 May 11 03:42:26 your broadcast might never be fireing because of that if check May 11 03:42:30 so log the value May 11 03:42:33 or put a breakpoint May 11 03:42:39 or something along those lines May 11 03:42:55 http://pastebin.com/tHeEmaE3 May 11 03:43:02 onCreateView is never called May 11 03:46:05 I'm curious how your code even compiles with fragmentTypes.get(position).newInstance(); May 11 03:46:21 unless Fragment does implement newInstance() and I just don't see it in the docs May 11 03:46:51 t0mless, the if statement fires and returns true and I even see the bundle of my broadcast intent: Log.i("OnDestroy", broadcastIntent.getExtras().toString()); that sendBroadcast must not be firing May 11 03:47:55 get returns a class May 11 03:48:04 right May 11 03:48:06 newInstance is a method on class May 11 03:48:10 but Fragment doesn't have newInstance May 11 03:48:36 unless your Fragment class you're importing there isn't the android.app.Fragment May 11 03:48:59 new instance on class calls the default constrctor on the class it represents May 11 03:49:24 ahh May 11 03:49:28 so, Fragment.class.newInstance() == new Fragment() May 11 03:49:45 * t0mless headslaps May 11 03:50:27 lol May 11 03:50:58 something is making the fragment not return a view May 11 03:51:32 poss May 11 03:51:36 piss* May 11 03:51:38 got it May 11 03:52:00 if i'm not lazy and declare an XML layout for the activity it works fine May 11 03:52:26 what were you doing before? May 11 03:52:29 i assume ViewPager had a size of 0x0 and didn't feel the need to inflate any views May 11 03:52:42 Adding the ViewPager as the content view dynamically May 11 03:52:46 setContentView(new ViewPager(this)); May 11 03:52:54 ahh May 11 03:53:13 that makes sense May 11 03:53:24 cheers, t0mless May 11 03:53:29 probably also because you had no adapter May 11 03:53:33 was nice to have someone else have a look May 11 03:53:40 it had an adapter May 11 03:53:47 but I assume you added the adapter later May 11 03:54:05 new CP, addAdapter, setCV May 11 03:54:19 yea May 11 03:54:25 lesson learned, don't be a lazy bum May 11 03:54:28 Interesting May 11 03:56:56 even doing it that way though, as long as the adapter wasn't empty, should be able to inflate properly May 11 03:57:24 will have to try just putting an empty viewpager in and see what happens May 11 03:57:46 an empty adapter worked May 11 03:58:39 but fragment manager expected views when there were fragments. i'm pretty sure viewpager.layout will return after doing nothing when it's 0x0 May 11 03:58:52 most frameowrk views do May 11 03:59:06 I could believe that May 11 03:59:27 maybe setting the content view and then in onStart setting your adapter May 11 03:59:27 so that means fragments that never get thier views inflated May 11 03:59:36 works now May 11 03:59:48 just trying to figure out how to make it work without XML May 11 03:59:55 never going to have inline views in production, i'm happy May 11 04:00:02 :) May 11 04:00:28 finding the right LayoutParams incantation for setContetnView should do it May 11 04:22:19 t0mless, any ideas why sendBroadcast isnt firing? May 11 04:22:35 I think your if statement is not being satisfied. May 11 04:22:42 did you ever log the statement? May 11 04:24:24 t0mless, yes i did, it goes through May 11 04:25:17 make sure broadcastIntent is a valid intent? May 11 04:26:08 what you mean by that? May 11 04:27:02 I don't see where you declare the intent anywhere May 11 04:27:48 cooldman224, most likely, you don't have a receiver for the intent May 11 04:27:51 its in my onCreate but I did this too and still not working: sendBroadcast(new Intent(BROADCAST_ACTION).putExtra(STATUS, SERVICE_STOPPED)); May 11 04:28:17 pfn, but my receiver receives my other broadcasts May 11 04:29:14 and you're sure you didn't typo the action anywhere? May 11 04:29:26 did you register your receiver in code or manifest? May 11 04:30:27 im double checking for typos, has to be it, i register the receiver in my onResume and unregister in onPause May 11 04:30:27 cooldman224, you don't have a default: case that logs anything May 11 04:30:40 then your service got destroyed after onPause May 11 04:30:43 sounds very likely May 11 04:33:44 so register it in the manifest instead of in onresume/onpause? May 11 04:35:15 well, have you proven that your broadcast is being sent while your receiver is still listening? May 11 04:36:30 yes, through logging I can tell that my service is sending values and when I resume the activity the textview is updated correctly May 11 04:37:18 huh? May 11 04:37:21 you're not being clear May 11 04:37:35 the service is sending the broadcast while your receiver is not listening May 11 04:37:40 that's what you just said May 11 04:38:48 er May 11 04:39:15 then your activity updating the textview is not a result of the broadcast May 11 04:39:18 the service is running when i click back May 11 04:39:41 i see the values in the log May 11 04:39:49 so then your activity would be paused May 11 04:39:52 pastebin your log indicating this May 11 04:39:55 and your listener is no longer listening May 11 04:40:06 i.e. log onResume, onPause May 11 04:40:08 and onDestroy May 11 04:40:24 that should make it immediately apparent May 11 04:44:48 Yeah I think you have a point, I kinda forgot about the unregistering of the receiver. http://pastebin.com/prfaSytw May 11 04:46:12 so look at the log at what order things are May 11 04:46:26 is your service onDestroy() log after the onPause log of your activity? May 11 04:47:45 ah, let me see May 11 04:48:48 onPause and then onDestroy, so my receiver is no longer up May 11 04:52:07 yes, that should have been pretty clearly obvious from the getgo May 11 04:54:05 so i should just declare my receiver in the manifest? May 11 04:55:05 if you want it to be listening all the time, yea May 11 04:55:38 though make note, receivers registered in manifest are not registered until your app is run at least once May 11 04:56:12 ah ok well thats fine, but I think that having it running all the time might annoy me so Ill try handling it myself first May 11 05:01:16 hi May 11 05:04:09 hi May 11 05:06:01 pretty cool http://99designs.com/tech-blog/blog/2012/05/11/color-analysis/ May 11 05:06:14 python script for generating palettes from pngs May 11 05:38:42 Hello May 11 05:39:21 android 4.0.4_r1.2 May 11 05:40:27 hi all! i create class with static method and call it from activity and i have error in ClassLoader.java file. why? May 11 05:42:47 slavabulgakov pastebin the full stacktrace May 11 05:44:05 ,slavabulgakov what is the log? May 11 05:45:00 t0mless: sec May 11 05:46:09 anyone know of a good android widget guide May 11 05:47:54 hello everybody May 11 05:49:33 t0mless: http://pastebin.com/scYsK8Xc May 11 05:49:52 djshotglass: Surf over to http://developer.android.com and do a search for "homescreen widget" May 11 05:51:24 has anyone here used a map view ? May 11 05:52:09 "Figures from T-Mobile USA on Thursday, added to earlier reports from other companies, indicate that the U.S. wireless industry lost subscribers from contract-based plans for the first time in the first quarter." … sweet May 11 05:54:20 why weet ? May 11 05:54:27 sweet May 11 05:54:58 wut http://phandroid.com/2012/05/10/samsung-says-they-chose-pentile-for-galaxy-s3-to-help-display-quality-last-longer/ May 11 05:56:31 devslash: fuck n year contracts :) May 11 05:56:40 ? May 11 06:02:41 how do i prevent a redraw when changing the orientation May 11 06:04:11 google currents has gone bizarre: http://farm9.staticflickr.com/8005/7174967818_46d32d783b_o.png --> press list button --> http://farm6.staticflickr.com/5337/7174969918_6921a62581_o.png May 11 06:04:16 hi all! i create class with static method and call it from activity and i have error in ClassLoader.java file. why? http://pastebin.com/scYsK8Xc May 11 06:07:27 devslash: http://developer.android.com/reference/android/R.attr.html#configChanges May 11 06:07:50 i did that but its still getting redrawn May 11 06:08:46 i added android:configChanges="orientation" and overrode public void onConfigurationChanged(Configuration newConfig) May 11 06:09:33 hmm, cool http://www.gizmag.com/portable-butane-fuel-cell/22496/ May 11 06:09:45 i read about that May 11 06:09:54 i dunno that id wanna carry fuel in my pocket May 11 06:09:59 also this HTC One S has a cool exterior http://www.gizmag.com/htc-one-s-microarc-oxidation-android/22481/ May 11 06:19:19 hi all! i create class with static method and call it from activity and i have error in ClassLoader.java file. why? http://pastebin.com/scYsK8Xc May 11 06:19:59 slavabulgakov, try the same thing in a normal console java app May 11 06:20:07 see if it works there May 11 06:20:31 tank-man: ok May 11 06:21:30 Hi i have a question about apk expansion file May 11 06:21:36 google says: Most of the time, Google Play downloads and saves your expansion files at the same time it downloads the APK May 11 06:21:54 what if i dont want it to be donwload at the same time with app? May 11 06:22:54 am i supposed to use setChecked on my compound button to change the toggle state ? May 11 06:23:06 and i wan to download it, wheneverh i want.. May 11 06:28:14 can anyone help me May 11 06:30:47 hi all May 11 06:31:29 am i supposed to use setChecked on my compound button to change the toggle state ? May 11 06:43:27 so I have discovered that calling setFocusable(false) && setOnClickListener() on an EditText appears to make it behave like a button. Anyone ever do this? May 11 06:43:37 I'm wondering how likely it is to blow up on some random device. May 11 06:43:49 readme: yeah, do it all the time May 11 06:43:53 neato May 11 06:44:04 I'm using it to launch a datepicker, basically. May 11 06:44:14 when sometimes the field is used with the keyboard, others with the datepicker. May 11 06:44:30 just give the TextView affordance, maybe by settings its background to something with a chevron May 11 06:47:18 yeah that would be a nice touch May 11 06:47:18 C++11 std::function looks pretty cool May 11 06:47:42 damn it, c++ got lambdas and first class functions before java, hahahaha May 11 06:48:31 I used function in c++ 6 years ago already... May 11 06:48:58 was std::function part of boost ? May 11 06:48:59 lambdas back in those days were a bit crude though ;) May 11 06:49:00 g00s: and C got generic functions... ;) May 11 06:49:11 yes, boost::function May 11 06:49:14 ah ! May 11 06:49:22 don't remember if COS had method combinations, though May 11 07:00:51 this was a great idea https://play.google.com/store/apps/details?id=com.revsoft.doctormole#?t=W251bGwsMSwxLDIxMiwiY29tLnJldnNvZnQuZG9jdG9ybW9sZSJd May 11 07:01:06 all the good ideas have been done apparently :| May 11 07:06:13 what better c2dm or admob like ads ? May 11 07:08:39 g00s: u made a mole app lol May 11 07:09:21 no, i didn't make that May 11 07:10:22 lol May 11 07:10:31 dominicdinada: c2dm isn't an ad framework. May 11 07:10:55 and for the record ads in notifications are almost as bad as terminal illness. May 11 07:11:04 ight but there are add networks on c2dm May 11 07:11:24 yup and there's poop in my bum. May 11 07:12:03 cause there hard to track well impossible for standard novice users May 11 07:13:50 fire up my handy dandy permission droid and look at when they appeared at the apps May 11 07:14:44 I only ever got ads in notification on my phone once when I installed a stupid soundboard to play with my girlfriend's dog. May 11 07:14:49 then I uninstalled it. May 11 07:15:01 but I was pretty pissed off. May 11 07:15:07 yup i got those also May 11 07:15:50 Also u can bypass permission by making a manifest.java ? May 11 07:15:53 :O May 11 07:29:16 ads in notifications, what the fuck o.O May 11 07:30:35 ya they blow May 11 07:30:40 readme: did you see this ? http://news.ycombinator.com/item?id=3953886 May 11 07:30:49 but May 11 07:30:53 no but May 11 07:31:02 readme: yep, I've done that (edit text thing you mentioned earlier) May 11 07:31:45 then again storkme thinks linux is hard to learn :) May 11 07:32:32 you're an idiot May 11 07:33:00 was just kidding mr hostile May 11 07:33:15 i was going to point out how you came to that mistaken impression but i don't think it's worth it May 11 07:34:14 earlier today but in all it is as easy to learn as anything. May 11 07:35:00 how do I add the viewpagerindicator library project to my ant project? I tried using android update project --library path/to/viewpagerindicator/library and it updated my project.properties, but when I build ant complains about an invalid build.xml May 11 07:35:24 yo May 11 07:35:49 what are the requirements for android emulator using 3d acceleration May 11 07:37:56 it's complicated. May 11 07:38:14 great, viewpagerindicator is missing a build.xml file May 11 07:38:54 if its from jake, it probably has a pom :) May 11 07:39:14 sam is that for me May 11 07:39:28 im planning to develop android app from my laptop May 11 07:39:47 i just imported viewpagerindicator into eclipse and it worked fine May 11 07:39:51 but i only have intel mobile 4 express chipset May 11 07:40:55 ? May 11 07:40:57 guys May 11 07:41:12 solved it an android update lib-project May 11 07:41:16 what are the requirements for the android emulator to work properly so that you have 3d acceleration May 11 07:41:46 storkme: I don't use eclipse or maven May 11 07:42:01 storkme: good to know. May 11 07:42:13 just thought I'd throw that one out there May 11 07:42:15 g00s: yeah, that stoked my interest a bit May 11 07:42:22 :) May 11 07:42:29 g00s: did you read the article about the guy who didn't get his bonus? May 11 07:42:42 heh yeah, but now i think he got his bonus May 11 07:42:54 really? May 11 07:43:09 "I'm CEO of Miso. Let me start by saying, this was our mistake and we apologize. We reached out to Joshua Wu and we are paying his referral bonus. " May 11 07:43:34 that guy is going to suffer for that 10k when no one will hire him now. May 11 07:43:45 his blog post was downright stupid. May 11 07:44:05 "Yeah, I nuked the db and quit, but.. where's my bonus? " May 11 07:44:31 i wasn't even paying attention May 11 07:44:50 i missed that May 11 07:44:56 if you share a same layout between activities and change e.g. a header in it when the activity is created, the header changes for both activities which is seen during a activity transition May 11 07:45:29 is there a way to go around this other than separate layout files? May 11 07:45:30 readme: did you see this from a few days ago ? http://megrobichaud.tumblr.com/post/22147155867/everything-i-wish-someone-had-told-me-about May 11 07:48:51 qnother good one from this week was http://blog.asmartbear.com/price-vs-quantity.html May 11 07:50:00 the first one is designer centric, but ... May 11 07:50:12 Yeah, I read that May 11 07:50:34 I need to get my tax stuff together badly. May 11 07:50:46 ? May 11 07:50:51 right now I am up to my neck in work though May 11 07:53:35 yeah that's an interesting one. May 11 08:00:26 oh yeah May 11 08:00:35 this is infinitely better than tabs May 11 08:02:11 guys does anyone know May 11 08:02:13 please May 11 08:19:05 Hi, I have a problem where I do not have any idea how to solve it. I got a working Android Eclipse Setup from a colleague that is working on his Windows System. When I compile it on my OSX system there is no error but the App immediately crashes with a ClassNotFound Exception (My Main Activity). I can also see that the classes.dex its 4 times smaller. Where can I start searching the problem? May 11 08:19:17 * hoangtran looking for a good irc client on windows May 11 08:19:39 hoangtran: i liked hydra May 11 08:19:50 pidgin May 11 08:20:06 cygwin+screen+irssi May 11 08:20:17 +putty-tray May 11 08:20:21 * pragma- nods. May 11 08:20:42 thx, will try (except pragma- things :D) May 11 08:21:12 you seem like a mirc user May 11 08:21:30 fornax: the canonical build should be command line driven May 11 08:21:42 (ant). if you want o use one ide, its up to you May 11 08:21:50 if the other dev wants to use another ide, its up to them May 11 08:21:57 ssh + screen + irssi May 11 08:22:11 there is a modern replacement for screen, wtf is it May 11 08:22:17 tmux May 11 08:22:21 ah yes May 11 08:22:32 screen is still perfectly capable May 11 08:22:44 pragma-: chatzilla normally, but now I'm on Bersirc, err May 11 08:23:23 tmux is good, but im lazzy replace screen on irc vm :) May 11 08:23:49 I have screen all set up the way I like it with custom status bars etc May 11 08:24:09 g00s: What do you mean by this? What should I do to debug the problem? We have different sdk versions but this shouldn't be the problem, shouldn't it? May 11 08:24:23 fornax: it could be May 11 08:24:29 some sdks were lenient with lib/ May 11 08:24:35 not it is libs/ though May 11 08:24:44 same for me, and i dont waste time for this vm. only used for irc :) May 11 08:24:45 *now May 11 08:27:14 g00s: so, how can I solve this. I'm a newbie related to the android toolchain. May 11 08:28:19 you should both be on the same sdk. make sure your stuff is in libs/. make sure you can build from the command line with ant (see the docs). May 11 08:28:46 stuff specific to ides should not even be checked into version control May 11 08:29:14 if you are using git, for example, your gitignore would exclude .classpath, .settings, and .project to name a few May 11 08:29:39 HI, I got a static method, how can I update some gui elements from that method ? May 11 08:29:40 gen May 11 08:29:42 the final release which gets deployed to the market should be done via the command line May 11 08:29:48 g00s: He also updated to the latest version and now has the problem that he cannot build anything, anymore. For me only the one app does not build. I will try to build from the command line… It is not versioned, got this test setup from an usb stick. May 11 08:29:52 Zharf: oh yeah, gen. and bin/ May 11 08:29:59 or out if you're using idea May 11 08:30:32 fornax: usb stick ? May 11 08:30:41 get your act together man ! May 11 08:30:43 :D May 11 08:32:23 g00s: All version control systems are blocked and I have no root privileges on my system, all pki card protected… usb stick is the only option, yet May 11 08:33:04 fornax: who is your employer? so i don't apply there :) May 11 08:33:26 seriously, i think msysgit works without root ? isn't there portable git ? May 11 08:33:32 g00s: but this is an other copy, very sad topic… One of the biggest companies worldwide May 11 08:34:07 fornax: i think you can put portable git on the usb drive :) May 11 08:34:23 and you can use the usb drive as your golden git repo May 11 08:34:32 pass it around to your buddy and sync that way May 11 08:34:37 holy crap man May 11 08:35:05 what May 11 08:35:08 no vcs? May 11 08:35:11 o.O May 11 08:35:44 well, it could be worse … the company i worked for had clearcase, required everyone to use it … but had no CC admins May 11 08:35:49 g00s: I just started with the new project, give me two weeks and I have a working hg setup from my company. I have to follow the rules. This is a development unit with highest restrictions. But have to wait a few days. This should however not be the problem May 11 08:35:52 and CC needs admins, its way too fucking complicated May 11 08:35:58 g00s, hahah May 11 08:36:30 fornax: ok May 11 08:39:50 g00s: We have more than 500.000 employees so I can understand that the IT has to find solutions to control the script kiddies. But when you work as developer they will setup your infrastructure, but this takes some days so we use sticks for the first time… I'm on my private notebook now, where I have the same problem but more privileges. Only the firewall is blocking a bit…. I will read how to compile it manually. May 11 08:40:26 yeah, i had the same problems at my old company May 11 08:40:39 large german company :) May 11 08:41:19 g00s: I worked for 5 years in international atomic reactors and their policies where not so hard ;-) Also large company germany, now. May 11 08:41:41 hi, I can play this on the native browser in 2.3.6 http://jplayer.org/latest/demo-05/ May 11 08:42:05 now I try to convert an audio file to this codec and play it (with that player) May 11 08:42:11 fornax: my previous exployer was Deutch Post May 11 08:42:24 but I fail, it says it is an m4a with aac apple itunes codec May 11 08:42:30 g00s: Okay, this is automotive... May 11 08:42:38 siemens :) May 11 08:42:40 but even converted with itunes it does not work, do you know which codec to use? May 11 08:43:14 i'm just guessing May 11 08:43:25 fornax: good luck May 11 08:43:56 g00s: I hope I will have it soon, this took me 2 full days, now. May 11 08:51:44 AttributedCharacterIterator wat t f May 11 08:58:25 hi May 11 08:58:27 i'm having lots of cancelled sales in the last few hours and no successful sales in about 4 hours (my app sells about 4 per hour normally). anyone else having issues? May 11 09:01:12 * Ge0rG can't even do real-time monitoring of sales. May 11 09:01:12 ok, I've got a cancelled order from 5min ago, due to an internal error in Market. May 11 09:03:29 Ge0rG: the hamsters might be on lunch break May 11 09:03:44 I have to create a list of things and allow the user to create this list whether the user has created a certain entry in another table or not, that has a one to many relationship to this list. May 11 09:03:56 then, if the user saves his entry, I need to associate it with the list May 11 09:04:03 but i'm using autoincrement ids May 11 09:04:18 the first solution that comes to mind is to use a temporary id of say maxint -1 May 11 09:04:25 then swap it later if the user saves May 11 09:04:30 but how bad is that =O May 11 09:08:46 http://i.imgur.com/HVXFu.jpg May 11 09:08:52 yeah... for, um... cooking May 11 09:09:19 readme: primary key is synthetic, autoincrement - foreign key points back to the parent May 11 09:10:05 newer versions of sqlite enforce the FK relationship, and have stuff like delete cascading May 11 09:10:17 pre froyo, it did not May 11 09:10:48 I'm just going to stop the user if he hasn't filled out the required fields. May 11 09:11:05 I've got this listview-adapter which keeps track of audio samples ( 2 textviews, 2 buttons, 1 progressbar ). Is it normal to handle the click-events in the adapter, our should this be handled by the activity? May 11 09:11:10 bad idea, readme May 11 09:11:18 check it on the server side May 11 09:11:34 never trust the client May 11 09:11:54 what server? May 11 09:12:31 I didn't scroll up, I just see db talk and something about "just" checking input fields May 11 09:12:51 which is a recpie for disaster May 11 09:12:55 *recipe May 11 09:19:01 interesting, so smart - who makes the smartcar - is using a smartphone (uh) as the instrument cluster for their scooter May 11 09:22:01 g00s: irony is the guy why made those 2 wheell power stand up scooters and he died on one :) May 11 09:22:22 seagways lol he went poof over a cliff May 11 09:22:40 someone that worked in my building had one, and was killed - hit by a car May 11 09:22:51 oh, he just had a regular scooter, not a segway May 11 09:23:08 dominicdinada: he was the owner, not the creator May 11 09:23:34 sam ok owner i thought inventor as well May 11 09:23:49 I think he bought segway later on; not sure though May 11 09:24:44 well he went off a cliff on one promoting safety lol May 11 09:27:35 you should hit refresh on google news May 11 09:27:41 pretty sure you are looking at 2 years ago May 11 09:28:31 root66: no it was a comment someone made scroll up May 11 09:28:54 interesting, so smart - who makes the smartcar - is using a smartphone (uh) as the instrument cluster for their scooter May 11 09:29:29 way to overexplain your overexplaination May 11 09:29:32 "we get it" May 11 09:30:00 love the ignore for trollers May 11 09:30:31 want to explain how /ignore works too? May 11 09:30:48 no u could tho May 11 09:30:59 (obviously) May 11 09:48:49 I have seen a smart car get totally crushed before May 11 09:49:04 definitely not a safe car. May 11 10:05:12 that sounds like a really gay reason not to get a car May 11 10:18:26 can I send and object with sendBroadcast? May 11 10:19:06 an* May 11 10:19:14 can i use 9patch png as background and only scale horizontaly? vertically i should repeat it (book shelves) May 11 10:19:53 gnu_d: u can put object to intent, yes May 11 10:19:57 Nope May 11 10:20:30 9patches don't repeat May 11 10:20:37 Only stretch May 11 10:20:47 ixc: how ? May 11 10:21:44 SimonVT: thanks May 11 10:22:26 gnu_d: check intent's putExtra(s) May 11 10:22:42 ixc: I already am :) May 11 10:23:51 http://stackoverflow.com/questions/2139134/how-to-send-an-object-from-one-android-activity-to-another-using-intents May 11 10:23:54 check this May 11 10:24:59 and http://stackoverflow.com/questions/2736389/how-to-pass-object-from-one-activity-to-another-in-android May 11 10:25:08 this two was usefull help if my bookmars are good May 11 10:25:09 :D May 11 10:25:53 ixc: my bookmarks are now full of un-read stuff o.O May 11 10:26:25 around 1month ago i categorised them May 11 10:26:43 made a unread category and sub categories :) May 11 10:26:52 i habe an array with names from a mysql database and im passing this names to an ArrayAdapter for a ListView. now i want onListItemClick to do something with the ID of the mysql data. how can i do this? May 11 10:27:16 vorwaerts: setTag? May 11 10:27:32 dont know May 11 10:27:42 settag is a method of what? May 11 10:27:46 i also dont remember, today i back to android, for long time i was on ios :) May 11 10:28:19 ixc: incidentally I read the same question :D May 11 10:28:54 gnu_d: of course most helped link are firsts in google :) May 11 10:30:45 vorwaerts: help me remember, in listview u need make textviews? May 11 10:31:24 or some view May 11 10:31:33 yes May 11 10:31:36 for views u can setup a tag with setTag method May 11 10:31:56 on click method u reach these views, so u can get the tag from view May 11 10:32:05 i need a list_item.xml with a listview and a item.xml with a textview or something else i want to post to May 11 10:33:33 i think u inflate list_item May 11 10:33:42 so u can set tag for it May 11 10:33:56 this is my code http://nopaste.info/dc25f6097e.html May 11 10:36:17 idk about how u can do it with arrayadapter May 11 10:36:21 hi guys, i pretty sure my problem is caused by my noobness about maven. I'm doing my "hello maven" with abs4 and ignition but looks like it doesn't add the abs4 properly. http://dl.dropbox.com/u/6260980/screen.png Any idea? May 11 10:36:28 but u can make another adapter where u make the views May 11 10:36:40 and i dont know how ^^ May 11 10:37:30 vorwaerts: http://android.amberfog.com/?p=296 May 11 10:37:37 is first example from google :o May 11 10:46:16 ixc this doesnt help me out May 11 10:57:43 i habe an array with names from a mysql database and im passing this names to an ArrayAdapter for a ListView. now i want onListItemClick to do something with the ID of the mysql data. how can i do this? May 11 11:02:36 vortexion`: return it in getItemId(int position) and you will get it in your onItemClick May 11 11:03:22 can i setitemid? May 11 11:03:36 I mean vorwaerts May 11 11:03:54 no you need to override getItemId(int) in your ArrayAdapter May 11 11:04:50 and there i can override the id of the item with the id from the mysql database? May 11 11:08:00 cyrilmottier there is ne overridemethod getItemId May 11 11:08:58 i have ArrayAdapter adapter = new ArrayAdapter(this, R.layout.list_item, R.id.listtext, daten); May 11 11:09:08 there is adapter.getItemId(); May 11 11:10:53 vorwaerts: Do you know Java or even OOP? May 11 11:11:18 im about to learn it May 11 11:11:52 vorwaerts: You should definitely learn it prior trying to use Android because I can't help you if you don't know about method overrides May 11 11:12:30 i found this: http://nopaste.info/aeda8be8d5.html May 11 11:16:29 cyrilmottier If I knew exactly how I do it, I do not know how I get the id of the database in the method. May 11 11:17:46 hi May 11 11:18:20 cyrilmottier I need to save the ID when I create the array? May 11 11:18:20 I can't find a multi dimension json array parser, soes someone have a good tutorial about that ? May 11 11:19:22 maxagaz u mean just more than one array in the feed or something else? May 11 11:20:45 gaz`: yes, something like { foo1: { foo11: "bar", foo12: {...} } } May 11 11:21:49 cyrilmottier to override the method getItemId() i neet to create a new public class MyArrayAdapter extends ArrayAdapter where I can @Override getItemId(), right? May 11 11:23:52 Hi all May 11 11:24:21 i got this now: http://nopaste.info/0640acc079.html this will override the method May 11 11:25:41 how can I set the mysql database id now? i dont know May 11 11:27:18 maxagaz sorry gf called May 11 11:27:19 http://pastebin.com/R3XPeW0x May 11 11:27:31 gaz`: hehe May 11 11:27:34 maxagaz if u can fish through my other crap this shows u houw to grab 2 arrays from a json feed May 11 11:27:51 like JSONArray fixturesList = jsonObject.getJSONArray("fixtures"); May 11 11:28:12 and JSONArray newsList = jsonObject.getJSONArray("news"); May 11 11:31:05 fuck aokp May 11 11:33:31 when is an arrayadapter setting an id? May 11 11:34:55 vorwaerts: Define "an id". You've been talking about MySQL in your issues and I can't separate what id you are referring to. May 11 11:35:43 i got a listview and an arrayadapter and an array with category names from a mysql database May 11 11:36:24 and onListItemClick() i want to use the ID of the item that is the id from the database not the id from the listview item May 11 11:37:25 vorwaerts: Alright. Seems pretty clear what you want to accomplish. May 11 11:38:21 "select id, caterory FROM categorys WHERE category = '" + here the category name +"';"; May 11 11:38:41 the sql-part is not the problem May 11 11:39:19 anyone use bugsense? May 11 11:39:26 vorwaerts: A question to you: How would your app know what category-id in your MySQL-database is connected to what item in the list? May 11 11:39:52 THAT is the problem :D May 11 11:40:00 vorwaerts: As in, do you store the category id's from the MySQL database anywhere? May 11 11:40:12 not yet May 11 11:40:18 cause i dont know where May 11 11:40:27 vorwaerts: You can't expect the app to know how to connect the dots if you're not providing the dots. May 11 11:40:28 or what to do with it May 11 11:41:32 drlaban http://nopaste.info/0f090c9ac2.html in line 79 there is the id May 11 11:41:34 vorwaerts: One way, I'm pretty sure it's not the most effective one, would be to also, in addition to storing category names in the app, would be to store the category id's in the app. Perhaps in a Category-object. May 11 11:45:09 drlaban but how do i combine these things? May 11 11:47:33 ArrayAdapter has getItemId - that returns the Items ID - so anywhere the id has do be set - and THERE i could store the mysql id so that the item id is the mysql id May 11 11:49:47 vorwaerts: it sounds like you should use a JOIN. May 11 11:49:53 i have another idea - i could generate a second array with the ids - so because both arrays are index - i can use the normal item id May 11 11:50:00 maybe create a view in mysql with the join on the two tables. May 11 11:50:03 then just select from it May 11 11:50:14 vorwaerts: As far as I know you can't set your own custom id of an arrayadapter. May 11 11:50:18 don't do what SQL is supposed to do in java. May 11 11:50:34 vorwaerts: Or rather, your own custom item id. May 11 11:50:43 Unless you want to never finish and write slow code :) May 11 11:50:52 vorwaerts: i still dont understand why u dont put IDs to view's TAG May 11 11:51:04 cause i dont know hoe May 11 11:51:10 drlaban how? May 11 11:51:37 vorwaerts: How what? Not to set a custom item id? May 11 11:51:41 i linked to u a page where describe how u can make self own views (or also can inflate the default ones) May 11 11:51:46 u need call settag on view May 11 11:51:48 and its done May 11 11:52:22 but would it be the best way to set custom item id? May 11 11:52:53 hey guys! I gotta question about the emulator... I have my app with targetSdkVersion="14" and minSdkVersion="7" (it's a bit confusing but necessary because of ABS).... however, i can't select any android emulator with preICS May 11 11:53:30 u want aditional information to view's, tags for this May 11 11:53:30 Aeefire: no, you definitely can select one.. but is it crashing? May 11 11:53:34 vorwaerts: We're telling you _not_ to set a custom _item_ id. You need to handle this in another way, for instance by using a tag, or by using your own custom object, or another of the proposed suggestions. May 11 11:53:54 Aeefire: it's possible for your app to crash on versions < targetSdkVersion if you use an API that isn't present in that API level. May 11 11:53:58 i can't select it. May 11 11:54:05 oh, you can select it. believe me. May 11 11:54:13 something is not right on your end May 11 11:54:13 my view is the textview in my item.xml? May 11 11:54:24 yes, that's what i am looking for May 11 11:54:27 what is wrong May 11 11:54:30 what is a labal370 variable in android ? May 11 11:54:30 that's why i am asking May 11 11:54:36 WHAT COULD be wrong :P May 11 11:54:40 are you assuming because there's a red x means you "cant select it" May 11 11:54:42 because you can. May 11 11:54:46 label any number represent ? May 11 11:55:12 when trying to launch the app and select launch a new android virtual device, the list only contains avds with ICS+ May 11 11:55:27 go to run configuration and select manual May 11 11:55:37 Anybody have a recommendation for a good beginner site geared towards development on linux? Specifically a debian distro? It's not that I can't google, I did. However there are so many I was just wondering if you guys preferred one over the other. May 11 11:55:55 ixc so i need to override getView method? May 11 11:56:24 vorwaerts: One way I could have done it would have been to store the id of the category and the category name in a custom object. Then I would've created a List that gets populated with values from MySQL. Then I would've connected that list to the Adapter. May 11 11:56:50 Divinius: there's nothing special to know. Just follow the instructions on d.android.com to get setup. ubuntu 10.04 is officially supported and extremely similar to debian, so it should work. make sure you are using the sun jdk and don't install eclipse from apt, definitely get it from eclipse.org. May 11 11:57:11 Noted, thanks for the heads up. May 11 11:57:11 so any idea what could be wrong readme ? May 11 11:57:16 drlaban but this doesnt work with an arrayadapter? May 11 11:57:35 Aeefire: did you try selecting manual in run configurations May 11 11:57:52 how to set space between elements in LinearLayout? May 11 11:57:52 it is May 11 11:57:58 already set at manual May 11 11:58:14 vorwaerts: No, but it would work with an adapter of your own. May 11 11:58:14 in the run configurations all AVD under 4.0 won't even get displayed THERE. lol May 11 12:00:59 Aeefire: go to window->avd manager and start one first. May 11 12:01:44 what is a labal370 variable in android ? May 11 12:01:47 label any number represent ? May 11 12:01:58 ok I have to get some stuff done :| May 11 12:03:02 dominicdinada: I have no idea. In what context? May 11 12:03:03 lol works now readme May 11 12:03:22 still weird, but thanks for that simple solution :) May 11 12:03:56 label170: int j = localCursor.getCount(); May 11 12:04:01 and such May 11 12:04:33 and no. they don't crash :)) May 11 12:04:47 i love android 2.1 running with working action bar :D May 11 12:05:06 What does this: "Permission Denial: receiving Intent" means and how to resolve it? May 11 12:05:06 dominicdinada: Still no idea, have you read this somewhere? Link? May 11 12:05:48 drlaban: here ill pastebin the statement May 11 12:06:31 http://pastebin.com/W3q0mE54 May 11 12:07:13 drlaban: ^^ May 11 12:07:34 Stop decompiling other peoples apps, and write your own May 11 12:08:09 SimonVT: i do i learn by looking and reading thanks May 11 12:08:25 dominicdinada: Never seen it. Looks like something that's been copied of a website where "labelxxx" means a character or something. May 11 12:09:12 its not in the R but ya.... need a how stuff works May 11 12:11:08 anybody had much experience with ORMlite for android? May 11 12:11:15 SimonVT: so u never learned how to change u breaks from watching others.... most of the ones ive checked out are on googlecode May 11 12:12:16 drlaban: anyhow i guess i know what it means but the reference... to the label for a switch case is mia. May 11 12:12:44 dominicdinada: Did you cut and paste it from somewhere? May 11 12:12:57 Also if i wanted to decompile the gtalk app ??? why cant i i hate the graphics theme and fonts May 11 12:13:07 drlaban: ya its decompiled source. May 11 12:13:20 from an app like gtalk. hate that theme May 11 12:13:52 dominicdinada: Then your guess is as good as mine. I have _no idea_ what that reference is. Try and take it out and see what happens. May 11 12:14:16 it errors on the first line i pasted in here May 11 12:14:24 label170: int j = localCursor.getCount(); May 11 12:15:12 at int j .... oh well i am gonna ask miui and or the many other cooks if they adb pulled and have a totally decompiled i can retheme for my self May 11 12:15:15 dominicdinada: Ok, so you get an error after you've deleted "label170" _everywhere_ in the code? May 11 12:15:47 dominicdinada: THAT'S probably your best bet. In Android development, label170 means nothing. May 11 12:15:52 drlaban: ya ill just goto the pros on that May 11 12:16:43 is there a way for an app to use activities from a library without having to explicitly declare them in the manifest? May 11 12:16:57 drlaban: but get string is easy to find.... its in the R file... hmmmm May 11 12:18:12 dominicdinada: Alright, so what does the reference "label170" have as value? May 11 12:18:12 Hello guys, I have a question relating to Android Timers. Imagine i have scheduled a timer for single execution which will occure about 5 sec. And after 2 sec. I scheduled the same timer again, will it crash or will it be ignored until the previous has finished? May 11 12:18:25 drlaban: the best person be to ask would be JF but idk if thats a result of baksamli or jad May 11 12:18:40 tapas: no May 11 12:19:00 tapas: Gotta declare them or extend them May 11 12:19:14 Tho I believe work has started on auto-merging library projects manifests May 11 12:19:14 dominicdinada: I can tell you, I have never decompiled an app before and probably never will, so you better ask someone who has and you seem to have a few names. May 11 12:19:48 SimonVT: ok, thanks :D May 11 12:20:09 drlaban: ya theres tons of cooks and i have hated gtalk for ever and the gmail app... at least put diff themes for us to use :) May 11 12:20:10 is there any tool to verify that a file is a valid APK? May 11 12:20:51 SimonVT: I'm guessing there will be a 50/50 cool vs wth opinion about that, among developers. :) May 11 12:20:55 l0nr4n: liscensing May 11 12:20:55 I saw some talking about decompiling others work, what can I do to safe guard against it besides making my code cryptic to others with minimal comments? May 11 12:21:15 comments* May 11 12:21:40 drlaban: Yeah :p Probably gonna break some stuff May 11 12:21:47 Divinius: there is nothing you can do about that, even obfuscation doesn't prevent it May 11 12:21:52 But that's normal for SDK updates May 11 12:22:15 SimonVT: broke my usb drivers on both my phones May 11 12:22:34 wongk: doesn't obfuscation make it harder though? May 11 12:22:40 code1: yes May 11 12:22:44 my mesmerize and electrify. i never checked my Transformer yet though and then it wouldnt update May 11 12:22:45 Divinius: wongk: i guess you could parse your source, then apply invariant transformations on the AST May 11 12:22:52 [invariant wrt semantics] May 11 12:22:52 well, harder to understand decompiled code May 11 12:22:59 wongk: so it's worth doing anyway? May 11 12:23:11 And then ending up here asking why things don't work or what things mean... May 11 12:23:13 and then generate the new java code from your parse tree May 11 12:23:16 Well damn is is a big thing in the android dev scene to reverse engineer others work? That kind of sucks T_T I mean I'm not against what I give for free to be looked at but IP is a whole other issue. May 11 12:23:22 proguard is worth doing even if it didn't obfuscate, so yes May 11 12:23:25 code1: someone determined can and will do it well in java ioncube in php is so much harder May 11 12:23:29 dominicdinada, do u have a link? cant find it on google May 11 12:23:42 lonr4n ill look May 11 12:23:43 problem though: the java compiler is also good at finding semantically invariant parse tree transformations, so he might just revert your changes :D May 11 12:23:54 s/he/it/ May 11 12:24:21 dominicdinada: well if it turns everything into label170 then I guess it's worth doing! ;) May 11 12:24:27 http://developer.android.com/guide/market/licensing/index.html May 11 12:24:32 This* my damn keyboard is acting funky today. May 11 12:24:39 code1: thats googles own code though May 11 12:24:58 i use gtalk all the time but hate the themes etc want to slightly modify it May 11 12:25:02 xchat in general is acting odd I'm about to switch applications May 11 12:25:24 konversation is bitchin if your a KDE man :P May 11 12:25:25 Divinius: the problem with IP in code is: your program is an input output system. it's always possible to infer the working of that system given enough input/output examples May 11 12:25:27 and jesusfreak or the dex2jar or the jad decompiler devs are the ones who talk to May 11 12:25:38 wongk: have you use bugsense? May 11 12:25:40 Divinius: since your code has to do what it does to implement it's desired functionality May 11 12:25:41 I will look into it wong I am indeed a kde man May 11 12:25:45 code1: never heard of it May 11 12:25:47 there's no way around reverse engineering ever May 11 12:25:58 Hey fellow geeks, got a weird problem with a LinearLayout that doesn't like to be resized once i've shrunk it down to 0, my animation won't run to bring it up to size again, it's really odd, can i link to Stack overflow here? May 11 12:26:00 wongk: lol ok, what about acra? May 11 12:26:07 I see your point tapas May 11 12:26:07 code1: nope May 11 12:26:27 wongk: never mind then May 11 12:26:30 :P May 11 12:26:33 so the whole concept of hiding an implementation to protect IP is totally wrong from the start May 11 12:26:37 :D May 11 12:26:38 tapas: For each obfuscating technique, if it's used everywhere, will get 10 reverese engineering techniques against it. May 11 12:27:02 tapas: Sorry, wasn't meant to be directed at you in particular. May 11 12:27:06 the behaviour of the code is always visible and then an equivalent code can be written May 11 12:27:16 drlaban: indeed, good point though May 11 12:27:16 l0nr4n: but even the liscense checks are faulty and breakable to someone smart enough and determined enough May 11 12:27:32 Well thats why you make your code very hard to read. This protects against skiddies but we all know in the right hands its a null point. May 11 12:27:54 code1: my apps don't crash, i don't need this tomfoolery! ;) May 11 12:28:12 Divinius: true :D i guess it's always a tradeoff.. May 11 12:28:14 dominicdinada, thats ok, i just need something simple May 11 12:28:21 Divinius: yes not like good programmers would name every var with its purpose May 11 12:28:34 Divinius: once, some code's behaviour is valuable though, a great amount of resources will be spent to reverse engineer it May 11 12:28:37 lose lose all around :D May 11 12:28:47 wongk: haha wish I could say the same! ;p May 11 12:28:55 A dirty game app deving is :D May 11 12:29:14 l0nr4n: like ive told others 1%ers root phones and about that same one percent would know how to "crack" it. so yes it is to stop the masses May 11 12:29:18 nah, just provide a better service than the knockoffs would :d May 11 12:29:28 then people will stay with you :D May 11 12:30:13 dominicdinada, i just need a simple wat to verify is a given file has APK structure and proper files. I can code it myself, but wanted to know if there's sth out there already May 11 12:30:13 sorry, i'm rambling :D [/me is a damn hippie] May 11 12:30:17 you have to remember you can't just compile decompiled code and have a working application May 11 12:30:18 Start naming _all_ your variables to i, as you go along, increase one i. and randomly change that behaviour. there you go, probably an obfuscating technique that not many would use, and with that, pretty safe (but not really) from reverse engineering May 11 12:30:40 tapas: exactly nobody knows the code better than the person whom wrote it and while a person is trying to figure things out the devs has weeks to make better May 11 12:30:50 I'm all about that 20k-30k d/l's for 1.99 then just not caring. Moving on to the next project. I mean half these asshats just down your prog the pirate the shit out of it anyways on top of returning it May 11 12:30:50 hello May 11 12:31:20 is there a command to change emulator orientation? shortcuts are not working.. May 11 12:31:31 luckily i'm in the position to write apps for customers of our shop, so i don't care about downloads at all ;D May 11 12:31:37 l0nr4n: i dont know the answer for checks and balances but take a look at npr on google code they do that May 11 12:31:38 only about fullfilling the requirements :D May 11 12:31:59 pi_anto: You could create another emulator instance that has the width and heights switched, if nothing else.. May 11 12:32:03 playing with it to see how it worked threw errors all the time about having a proper apikey May 11 12:32:31 drlaban, i need to check activities lifecycle when orientation changes May 11 12:32:35 Alright dudes I'm going to pass out and chill afk lurking. Talk to you gents later. May 11 12:32:48 Divinius: later May 11 12:33:04 ixc I now got the tag set to the view - how do i call it now? May 11 12:35:01 I've got a simple animation, that resizes the height of an object, however once the object has reszied to 0, if the button that causes the animation to run isn't next to the target object, it won't resize, any clues? May 11 12:37:59 if i set a tag to a view by overriding ArrayAdapters getView method, how do i GET the tag in onListItemClick method? May 11 12:38:10 View.getTag(position) returns null May 11 12:38:26 but what i set to the tag isnt null May 11 12:38:39 Are you sure you're calling getTag on the same item May 11 12:40:49 view.setTag() :)) May 11 12:41:09 no i did set the tag May 11 12:41:44 http://nopaste.info/b4fcf43faf.html line 31 May 11 12:42:16 You set a tag on textView.. Then try to get it on rowView May 11 12:42:23 ^ May 11 12:44:07 http://nopaste.info/fdd4699243.html in line 103 there is my gettag - but it returns null May 11 12:44:31 View v is the View returned from getView May 11 12:44:34 That's rowView May 11 12:44:40 You are not setting a tag on rowView May 11 12:44:57 hm May 11 12:45:01 textView.setTag(ids[position]); May 11 12:45:45 SimonVT so i neet to settag to rowview? May 11 12:46:10 Well, if you want to getTag on rowView, you need to set one as well May 11 12:47:43 yea this is working fine May 11 12:52:21 Hello May 11 12:52:57 anybody there? May 11 12:53:09 does anyone know why sensors are turned off on HTC phones, when the screen is of? and how to work around it? May 11 12:53:39 keep screen on? May 11 12:53:54 does anybody know how can i store the contact number in favorite number? May 11 12:54:25 gaz`: no, not that kind of workaround :) May 11 12:55:10 well it would work May 11 12:55:14 wake lock or somethin its called May 11 12:55:39 gaz`: no, it's not an option May 11 12:55:45 k May 11 12:56:14 any other options? something to keep sensors active even when the screen is off May 11 12:56:45 or at least one sensor, the one that I am using. I wonder why it's only, afaik, on HTC May 11 12:56:49 <`z> simh, sensor May 11 12:56:50 <`z> which sensor May 11 12:57:09 i know that this problem occures with light and motion sensor May 11 12:57:23 `z: May 11 12:57:23 when i have this json array: [{"data":{"id":"25","name":"...... May 11 12:57:38 how can i check if the first object is data? May 11 12:57:42 <`z> o.o May 11 12:57:48 <`z> simh, well then May 11 12:57:49 <`z> wakelock May 11 12:57:52 JSONArray Jarray = new JSONArray(data); if ....? May 11 12:58:51 `z: as I said to gaz`, it's not an option. I am developing a service which should work al the time. keeping screen on is impossible May 11 12:59:18 <`z> WAKELOCK May 11 12:59:33 <`z> maybe May 11 12:59:35 <`z> you should google May 11 12:59:36 <`z> ^_^ May 11 12:59:37 wakelock doesn't necessarily mean screen is on May 11 12:59:43 <`z> ^^ May 11 13:00:07 it does mean your battery is dieing :P May 11 13:01:26 SimonVT: `z thnaks. But I understand this will have significant impact on the battery life May 11 13:01:32 <`z> simh, that's why May 11 13:01:34 <`z> keep it on the charger May 11 13:01:43 Keeping sensors on uses power May 11 13:01:47 <`z> ^ May 11 13:01:48 Reading sensors uses battery May 11 13:02:05 Not letting the cpu go into deep sleep uses battery May 11 13:02:19 my app sais it's not responding. Can I find out what functions it's haning in? May 11 13:02:21 The only way to save battery, is to not do what you're doing while the screen is on May 11 13:02:27 off* May 11 13:03:35 SimonVT: `z. Yea, I know that pooling sensors uses battery. But any other phone, that I tried, does that. Only HTC is turning sensors off. Tested with wildfire and One X May 11 13:04:02 probably because HTC phone already have a terrible battery life with them off :P May 11 13:04:07 but OK, thanks. Will try it. Maybe it wont be as bad with PARTIAL_WAKE_LOCK, maybe it will be enough May 11 13:04:18 it will be bad May 11 13:04:39 but empirical data is good =] May 11 13:06:06 I have motorola milestone, and on my phone the power drain is insignificant. doesnt even show up on the android battery life monitor May 11 13:06:35 sure, but you're not holding a persitent partial wake lock at this point May 11 13:06:55 wongk: exactly. That is my problem with HTC :) May 11 13:07:14 Hi guys May 11 13:08:37 I'm completely blacked out and need an idea. I have a webview controller which reads some HTML, and I need to make some parts clickable - and what more, I need to make sure a certain action happens to the text when I click it. What's the best way to go about it - inject Javascript, or perhaps something else? Ideas? May 11 13:09:27 To be specific, the original page has a 'spoiler' style which is just the text in white. I want to replace those with a clickable link that once clicked, reveals the text. May 11 13:10:38 I thought about trying to just change change it with inline functions, but that seems a little too 'hacky'. May 11 13:11:51 I have a followup question. Why the motion sensor on two different phones returns complately different values on different phones. The documentation says that the return values should return increments of g. But on my motorola I can *easyly* achieve 100s of "g" with simple shake. On HTC 20g is max. How can I calibrate or unify it somehow? May 11 13:12:38 Ambious: you will need to inject JS May 11 13:13:31 Got it. I'll have to pre-add IDs because the original page doesn't have any. Oh well, I was hoping there was an easier way. Thanks for the tip. May 11 13:14:11 hi, i want to dynamically fill a table. can i define a table row in layout/my_row.xml with some TextView s and call findViewById()? atm it gives me null. May 11 13:16:08 m1hael: after you inflate your row XML findViewById is returning null? May 11 13:16:51 Also an unrelated question: The connection speed on my AVD is extremely slow. The AVD itself is fast enough, but network transfers (both while transferring files on/from the AVD and when using webview and jsoup etc.) are extremely slow. I tried googling, but all the results were for slow emulator speeds, not slow network speeds on emulators. Any ideas? May 11 13:16:56 hi. i am trying to create a stack of 2 webviews in a single activity with each being displayed alternately when a link is clicked along with some animation. how do i write the xml layout for these stack of webviews? May 11 13:16:56 wongk: inflate ... i knew i had missed something May 11 13:17:53 are there any animation/layout gurus here? I'm banging my head against a brick wall with this problem at the moment May 11 13:18:17 maybe you should be banging a logcat May 11 13:18:20 onto pastebin May 11 13:18:38 * root66 outs a cigarette at you May 11 13:18:43 There isn't a logcat, i'm not getting an error as such, it's just not running the animation, as per my previous posts May 11 13:20:54 wongk: do i call inflater.inflate(...) for each table row or do i need to inflate just once? May 11 13:21:15 wongk: ... and the call findViewById() (will this give me a new instance) May 11 13:21:59 m1hael: that is dependent on the View parameter passed to the getView method May 11 13:22:07 you should recycle this View if possible May 11 13:22:36 otherwise you need to inflate May 11 13:23:25 wongk: another dumb question: how would i recycle a view? (never done this) May 11 13:23:56 update the display value on the controls May 11 13:24:23 hi all! i have button and others elements on linearlayout. i want to hide button and smoothly move other elements on button place. how do I do? May 11 13:25:45 is there a java debugger? May 11 13:26:25 java is smart enough to fix your bugs for you, no reason for one May 11 13:26:27 KungPhoo: eee...yea? May 11 13:26:39 wongk: lol May 11 13:30:27 wongk: filling the table works now. thanx for helping a noob. May 11 13:31:12 my app says it's stuck. How can I find out where? May 11 13:31:37 pause it when it's stuck and look at the stack May 11 13:31:49 in the debugger? May 11 13:31:51 yes May 11 13:32:07 what command to use to get the debugger? May 11 13:32:19 "get the debugger"? May 11 13:32:32 uhm. I have no IDE May 11 13:32:37 why not May 11 13:32:47 I'm working with the NDK May 11 13:33:18 sounds like you'll want ddms, but i don't know how useful it is as a debugger May 11 13:33:35 KungPhoo: then why are you asking about java debugger? May 11 13:33:44 i don't really ever use that inteface directly May 11 13:34:05 ok. I seem to have it fixed already. But good to know May 11 13:34:19 maxagaz did it help May 11 13:37:43 how can i add a view between two views? May 11 13:38:30 if 'fill_parent' is deprecated why is it used when a new android project is set up? Why isn't match parent used? May 11 13:40:20 john_doe_jr, i've wondered the same thing myself May 11 13:40:37 to be fair though, FILL_PARENT == MATCH_PARENT May 11 13:40:45 so it's not like it matters too much May 11 13:41:33 anyone still play around with droid inc? May 11 13:42:45 canadiancow|work: yup, I agree but it's just werid May 11 13:43:07 i guys, i'd like to use action bar sherlock 4 with maven. i added the dependency to the pom but i can't understand why eclipse doesn't see abs classes. any idea? May 11 13:43:29 but if i compile from command line it works May 11 13:50:34 how can i check, if a View.tag is a number? May 11 13:52:40 vorwaerts u could try to parse it into an int May 11 13:53:01 try { Integer.parseInt(mytag)} catch(exception e) { /*must not be a number*/ } May 11 13:56:39 vorwaerts, define "number" May 11 13:56:42 hi everyone, I'm trying to customize the overflow menu text-color and also the popup menu text/background colors, I'm using the actionbarsherlock library, until know I managed to olnly change the background colors using 9 patch drawables, any ideas on how to change the text color ? May 11 13:57:38 ang1 http://bit.ly/INTdhN May 11 13:58:52 canadiancow|work: thanks, I based my work on that until now, unfortunatily I didn't find anything about changing overflow/popup menu text colors May 11 14:00:37 so go look in the themes... May 11 14:00:41 that page doenst list every attribute May 11 14:00:44 it tells you how to change stuff May 11 14:01:40 canadiancow|work: I've been looking in http://developer.android.com/reference/android/R.styleable.html .. didn't manage to find the value for the overflow text color though :( May 11 14:01:50 go look through the themes included in ABS May 11 14:03:55 I did that, again nada, I have a feeling that they are using more generic styles like textColorPrimary May 11 14:04:53 is there a brute force app to check nfc mifare card keys? the only one claiming so on the market unfortunately is full of fail May 11 14:08:48 is there a canonical way to hide items in a listview? May 11 14:09:26 i'll try visibility=GOE, but my research seems to indicate this might fail May 11 14:09:51 with your own Adapter, anything is possible May 11 14:10:01 i do have my own adapter :D May 11 14:10:22 but i do have requirements that would make the bookkeeping by the listview very useful :D May 11 14:10:41 mainly that i'd like to display the position with the hiddn elements taken into account.. May 11 14:10:51 easy code, but even easy code is better when onme doesn't have to write it :D May 11 14:11:43 so you want hidden elements to display in the list, emptyish? May 11 14:12:07 no.. i want to return a view that is totally gone for some positions.. May 11 14:12:07 :D May 11 14:12:32 this way i wouldn't have to touch the adapter except for setting visibility to gone for some items May 11 14:12:39 wouldn't an "empty" view of the same height be functionally the same? May 11 14:12:40 and everything would work as per my requirements May 11 14:13:28 here's the usecase: display a highscore list. each view displays the player's position and takes this directly from the position passed to getView May 11 14:13:54 what am i doing wrong? http://nopaste.info/00b0d2681c.html May 11 14:14:02 i try to start a dialog May 11 14:14:08 the user can filter the list, but the position in the highscore list of course is invarint May 11 14:14:31 i see what you're saying May 11 14:14:33 so for those filtered out i would just return a view that doesn't take up any space at all.. May 11 14:14:43 ah i guess i can just return a view with zero height or something May 11 14:14:55 yes but you might have issues with dividers stacking... May 11 14:15:05 dividers are turned off luckily May 11 14:15:07 well, if View.GONE doesn't work, your looking at like an hour's worth of code otherwise :P May 11 14:15:07 but good point May 11 14:15:17 hm then it's worth a shot May 11 14:15:25 if not just change the data backing the adapter and notifyDataSetChanged() May 11 14:15:38 Rockmaninoff: yeah, i'm aware of that path, but i'm a lazy ass :D May 11 14:15:56 it'd be nice to have a built-in filter proxy May 11 14:16:03 indeed indeed May 11 14:17:04 i was quite surprised to find android ot to have such a thing :D May 11 14:17:15 s/ot/not/ May 11 14:18:00 android doeesn't have a lot of such things, it's still very young May 11 14:18:42 talk May 11 14:18:47 it works, fine May 11 14:18:48 so hi May 11 14:19:08 i have a question to those who know their way around the android ndk May 11 14:19:33 i'm trying to compile a library that has make files for their subdirectories May 11 14:19:43 but when i'm trying to include them i always get May 11 14:19:52 make: *** jni: Is a directory. Stop. May 11 14:20:22 hi there. is there a way to export a certificate from my credential storage? May 11 14:20:28 the line in my Android.mk responsible for this is: include $(LOCAL_PATH)/Ubitrack/Android.mk May 11 14:23:31 ok, great, works.. one has to take some care with convertView.. but i solved that by doing a instanceof typecheck for my more precise type. and only if it matches i reuse the convertview May 11 14:24:21 tapas: so to confirm, ListView supports View.GONE for its child Views? May 11 14:25:22 wongk: no, i return new View() if the filtering condition fails May 11 14:25:35 wongk: thus the extra check when reusing the convertview May 11 14:26:12 i see May 11 14:26:54 what happens when scrolling and it tried to recycle an empty View? do you have a check for that? May 11 14:26:58 tries May 11 14:32:13 im still tripping balls over the github ui changes May 11 14:33:17 they changed a few icons :P May 11 14:34:08 ive got to make this layout wher eon the left its a list and on the right it can sort of slide out to show a webview anyone know what gui component sounds right? May 11 14:35:13 GAZ!!! May 11 14:35:20 sup man!!! May 11 14:35:23 hey man May 11 14:35:37 not much just the usual working hard and getting pay delayed by months.. May 11 14:35:38 u ? May 11 14:35:43 how goes the zombie game? May 11 14:35:57 on hold for now! May 11 14:35:59 canadiancow|work: it looks the same to me :P May 11 14:36:09 o.O May 11 14:36:11 javalover latest is - www.radiantsilverlabs.com/tdw May 11 14:36:17 the icons are all different May 11 14:36:34 omg how epic is that May 11 14:36:38 cmon people give it up for gaz May 11 14:36:49 haha May 11 14:37:00 i ALMOST won £25,000 May 11 14:37:11 then got disqualified May 11 14:37:20 cause my team isnt all located in uk May 11 14:37:21 YAY May 11 14:37:37 canadiancow|work: your tripping balls over a couple icons? :P May 11 14:37:39 but im glad u appreciate javalover :) May 11 14:37:42 In a relative layout....what is the android:layout_alignParentLeft="true" mean? what is the parent? May 11 14:37:45 you're* May 11 14:37:54 yeah yeah May 11 14:38:03 pub time any minute May 11 14:38:04 stuff this.. May 11 14:38:05 it inspires me May 11 14:38:42 :D May 11 14:39:45 looks like a sliding drawer is what i want May 11 14:39:53 but i need it to be slid out a little bit May 11 14:39:58 not entirely shut, if thats feasible May 11 14:44:49 Hey guys! I want to use MD5 in the framework of Android! I found the header file of MD5, https://github.com/android/platform_external_openssl/blob/master/include/openssl/md5.h Could anyone tell me how to use the function? May 11 14:46:06 can you have rows in a relative layout? May 11 14:46:13 netchip: are you using the NDK? May 11 14:46:57 wongk: yes May 11 14:47:09 wongk: Android framework May 11 14:47:13 the source code May 11 14:47:23 why to get PhoneState changed status, android provides two way: BroadcastReceiver with action android.intent.action.PHONE_STATE, and using TelephonyManager with a PhoneStateListener ? May 11 14:47:25 oh May 11 14:48:06 in order to have my webview load a local file, i use "file:///android_asset/". is it possible that on certain devices i need to use "\" instead of "/" ? May 11 14:48:31 xorgate: no May 11 14:49:20 great! :0 May 11 14:49:56 how about "file:///" ? May 11 14:50:15 when i have a file on sd card i mean May 11 14:57:20 not sure if you can access it with file:// May 11 14:59:34 yeah that works May 11 14:59:41 just need to use another path May 11 15:00:33 question from a colleague: suppose slide a view over to the right, during the animation do you think that the typical View rendering is occuring (presuming it walks through the View and its children), or do you think there could be an optimization where it uses a bitmap of the view and translates that? May 11 15:01:07 osxorgate: you can try file:///mnt/sdcard I guess May 11 15:01:14 canadiancow afaik it uses a bitmap May 11 15:01:16 canadiancow|work: IIRC ListView does that at least when scrolling May 11 15:01:46 canadiancow you can start the anim and delete the original view May 11 15:01:57 i do that when i display an old distance and a new distance, fading them May 11 15:02:34 p_l yeh that works, im just wondering about systems where the fileseperator might be \ May 11 15:03:05 canadiancow i believe chet also says it in one of his talks May 11 15:03:14 osxorgate: don't have to wonder, because you're using URLs, not filesystem's native path format May 11 15:03:37 p_l good point.. didnt think of it like that May 11 15:03:47 osxorgate: File.separator is how you get the directory separator May 11 15:03:48 though there are definitive outliers May 11 15:04:31 however, it shouldn't matter in a URL May 11 15:04:35 hrnt yep thanks, its just i didnt realize file:// does not mean path but url May 11 15:04:46 osxorgate: mind you, the only widespread OS that uses '\' as path separator uses '/' natively May 11 15:05:45 yeah, you can use / in windows as well May 11 15:06:01 hrnt: since MS DOS 2.0 :) May 11 15:06:16 that is not a widespread OS anymore ;) May 11 15:06:28 not on android anyway May 11 15:06:44 and i think the older command prompts do not support / May 11 15:06:49 anyway, the only OSes where you might find anything truly bizarre don't run android May 11 15:07:02 hrnt: command.com supports / by changing some obscure setting May 11 15:07:37 the change from / to \ happened because options used / May 11 15:07:44 gaz`: I'm still on it May 11 15:08:09 gaz`: (sorry, I went to eat meanwhile) May 11 15:08:49 p_l: heh, yeah May 11 15:09:28 if you have c:\d and c:\t, then cd/t works but cd/d does not :) May 11 15:11:21 well, it's still 0 confusion compared to paths like http://dtsc.dfw.ibm.com/MVSDS/'HTTPD2.ADCD.GLOBAL.HTML(READ110S)' May 11 15:12:32 p_l, eh? May 11 15:13:04 / isn't used as a path separator natively on windows May 11 15:13:21 pfn: / and \ are considered the same in internal path routines May 11 15:13:40 not most of them May 11 15:14:07 fight! May 11 15:14:16 wongk: lol May 11 15:14:50 pfn: given the mess that is windows' APIs... everything is possible May 11 15:14:59 some do treat \ and / as the same May 11 15:15:01 e.g. url handlers May 11 15:15:04 most do not May 11 15:15:45 pretty much all the underlying win32 apis that operate with paths do not accept / as a path separator May 11 15:16:06 pfn: NT routines were iirc supposed to handle them. But I haven't programmed much on Windows in a long time May 11 15:16:21 * pfn looks for this hidden cmd.exe option to be able to use / as dirseps May 11 15:16:45 cmd.exe didn't have hidden options (though it accepted them whenever I used them, so...) May 11 15:16:50 command.com had May 11 15:17:14 there's been no command.com on a mainstream windows since xp May 11 15:17:53 pfn: yes. And XP's cmd.exe supported / as path separators. Unless all the XP versions I had were mad as hatters May 11 15:18:08 (one *was* mad as a hatter) May 11 15:18:25 * Ge0rG remembers reading that ms-dos supported / as a path separator from the beginning on... May 11 15:19:08 anyway, / and \ is small problem May 11 15:19:29 such an annoyance May 11 15:19:36 probably my #1 annoyance working in the shell May 11 15:20:03 * p_l has systems that don't have the concept of "cd" command... May 11 15:20:32 p_l: what system is that? May 11 15:22:05 Zider: VMS and MVS/zOS are two that are still in use May 11 15:22:46 p_l: my wife does drivers for MVS :) May 11 15:22:50 one has "default directory" which might actually be a group of layered directories, the other has no concept of directories :) May 11 15:22:58 * dragorn worked on z boxes for years in a previous job May 11 15:23:21 dragorn: heh. I'm considering IBM mainframes as a backup, emergency job :) May 11 15:23:23 p_l: if you use SFS you can get directories... of course, then your filesystem is a DB2 database May 11 15:23:29 p_l: sounds like.. fun.. :P May 11 15:24:20 dragorn: apparently there are problems hiring *new* people for mainframe jobs, because a typical graduate has no idea wtf is going on :) May 11 15:24:27 p_l: this is true May 11 15:24:42 p_l: ibm has been outsourcing the z/os dept lately tho May 11 15:25:18 dragorn: well, it still seems better managed than VMS group at HP May 11 15:25:26 p_l: I don't know how they're doing with z/vm and the linux stuff, when I got out of that stuff that was their primary focus May 11 15:26:13 p_l: they were moving a lot of z/vm functionality into the lpar hypervisor and prism, then I stopped caring :P May 11 15:26:44 <`z> oh why May 11 15:26:47 well, what my meager searches suggest is that z/VM finally got into limelight, and seems that new suggested deployments are z/VM running various components on top May 11 15:26:51 <`z> "z" highlights me D: May 11 15:26:54 <`z> well fuck it May 11 15:26:57 lol May 11 15:27:05 p_l: I was the first person outside of ibm to run linux on a z box, b/c at the time their lawyers wouldn't let them do the distribution May 11 15:27:58 heh. Now it costs less to get a cpu for linux/solaris use than for classic mainframe May 11 15:28:08 wongk: that's why i used instanceof on the convertView to check if it has the required type before reusing it May 11 15:28:20 [re: discussion about filtered listviews] May 11 15:28:38 that is so an hour ago May 11 15:28:51 tapas you dont need to do that.. May 11 15:28:58 you get the right type already May 11 15:29:23 other topic: if all my activities are embellished with the noHistory flag: is there a way to start an activity via intent for e.g. grabbing an image fmor the gallery that it does return? :D May 11 15:29:44 osxorgate: no, in the case of the filter predicate not being met i returned new View() May 11 15:30:08 osxorgate: thus some views in my listview are of my child view type and some are just View.. May 11 15:30:22 tapas oh my... May 11 15:30:25 osxorgate: before reusing them (since the user can change te filter) i have to check for the right type May 11 15:30:35 osxorgate: it's simple and works great though. May 11 15:30:49 whats the filter about then? May 11 15:31:19 osxorgate: in the case of this app: show all entries vs. show only FB friends in a highscore list May 11 15:33:00 can anyone point me to some good github repos of android source code :)? May 11 15:33:14 connectbot, k-9 mail May 11 15:33:53 i might argue about the "goodness" of some of the k-9 source ;) May 11 15:33:56 is there a way to identify an android phone via nfc, i.e. a unique id of the nfc controller or some such? May 11 15:35:18 amoxibos: https://github.com/JakeWharton May 11 15:35:32 what does this error mean: W/System.err(12591): org.json.JSONException: Value {"Professional purpose":{"subtitle":"You wish to... ? May 11 15:36:05 it's followed by this: at org.json.JSON.typeMismatch(JSON.java:100) May 11 15:36:36 wongk: thanks May 11 15:36:40 I've tested the json, it's correct May 11 15:36:45 I mean, valid May 11 15:49:24 i have an activity - in it i have some radio-buttons, on-off buttons, now, if user selects the on button i want to persist his choice in some data- file properties, so that when i load back the activity or return to it i have the chosen options selected - how do i go about this? - point me to some guide on the net? May 11 15:50:24 sharedpreferences probably May 11 15:52:36 dragorn: thanks - found great tut on http://www.kaloer.com/android-preferences May 11 15:55:46 amoxibos yep shared prefs, other option is sql May 11 15:56:29 osxorgate: thanks May 11 15:57:19 i have a vertical list view and i want to center a button and not strech it across the whole screen - suggestison? May 11 15:58:39 first build after sdk upgrade, i get VFY: unable to resolve exception class (something defined in .jar which is still there...) May 11 15:58:50 any ideas what i can do? May 11 15:59:01 i get it when installing apk May 11 15:59:24 amoxibos your row layout should take care of that May 11 16:08:31 when I'm looking at something's vertex definition (in a float array), what what does the U and V mean? as in X, Y, Z, U, V ? May 11 16:09:51 texture x and y May 11 16:10:00 ohhh thanks May 11 16:12:57 has anyone had any problems with devices that have the Android Market (i.e. not updated to Play Store yet) and in-app billing? May 11 16:19:13 Is the Chromium http backend for stagefright commonly used in devices ? Or is that something still experimental used in custom ROMs ? May 11 16:26:48 does anyone recommend a particular git plugin for eclipse? May 11 16:26:59 I'm used to the cli version so I've never used it in eclipse before May 11 16:32:23 hi, I'm trying to locate the source for the Microbes live wallpaper I have on my Galaxy Nexus...but it doesn't seem to be in the 4.0 source tree? May 11 16:41:11 good morning! May 11 16:41:20 its friday :-) May 11 16:45:23 how do i get the emulator to allow my app to connect to my local machine? The dev guide says that the emulator runs behind a router/firewall service to isolate it but I want to test a connection to a local web server. The browser in the emulator gets to the internet fine but can't route locally. May 11 16:45:37 10.0.2.2 May 11 16:46:50 you're saying set the web server to 10.0.2.2? May 11 16:47:08 you can access your local machine via the ip 10.0.2.2 May 11 16:47:16 thanks May 11 16:47:23 if you open the android browser in your emulator and connect to 10.0.2.2 you will see the site May 11 16:47:34 your apps can communicate with it from that ip as well May 11 16:48:59 that should work. is there some compelling reason why they block off the local net? I would think there should be an easy way to set that but I found nothing. thanks for the tip May 11 16:49:41 the emulator creates a bridge to the local net as opposed to nat May 11 16:49:53 it just keeps the emulator in isolation from the network May 11 16:51:07 10.0.2.2 worked thanks! May 11 16:57:17 hi, I'm trying to locate the source for the Microbes live wallpaper I have on my Galaxy Nexus...but it doesn't seem to be in the 4.0 source tree...can anyone point me to the right location? May 11 16:58:59 andrew`, packages/wallpapers May 11 16:59:40 pfn: I looked in there, however it seems the microbes is not included May 11 16:59:45 only a few others there May 11 17:01:15 microbes isn't from aosp then May 11 17:01:17 my gn doesn't have it May 11 17:01:37 oh, nevermind, I do have it May 11 17:02:16 not in aosp though May 11 17:02:17 * pfn shrugs May 11 17:02:21 hmm. I thought everything on GN was from aosp May 11 17:02:28 thanks anyway, though, pfn May 11 17:02:47 anybody want to play with my app before i release? May 11 17:04:42 sure May 11 17:06:27 hey guys, how do I get my adsense account approved for Google Play payments? They disapproved my application because of not enough content on my website May 11 17:06:54 but I don't need any money from ads. I just need adsense for google play May 11 17:07:02 what? May 11 17:07:11 doesnt google play pay through wallet? May 11 17:07:30 Is there any reason I can't install the usb driver? Windows says that it can't find the driver May 11 17:07:49 I assume the device I need to install it for is "Android Phone" May 11 17:08:31 canadiancow, http://dl.dropbox.com/u/32772116/Capture.PNG this is what I got in my Developer Console May 11 17:08:55 wtf May 11 17:09:57 where do you see that? :S May 11 17:10:01 regardless, i have no idea May 11 17:10:06 i have an adsense account, but i actually use it for ads May 11 17:11:19 if I have included a jar in my project (i.e. added to libs/). Is there a way I can use java.util.jar.jarfile to access the manifest (so I can get version info, etc). I.e., what path would I use? May 11 17:11:51 canadiancow, http://dl.dropbox.com/u/32772116/Capture1.PNG I got this in my Dev Console May 11 17:12:17 what country are you in? May 11 17:12:40 canadiancow, Russia. ah, maybe that's the problem May 11 17:13:13 =\ May 11 17:13:19 yea i have no idea, sorry May 11 17:22:44 cc|w, did you get your adb working? May 11 17:44:55 Hi, I've modified an Open-source app, and I want to release my fixes. I have 2 problems with releasing: package names (com.example.name), and signing. May 11 17:45:03 First the package name, it is recommended/convention to release under a owned domain name. Is this necessary? I have one that I could use, but it has a dash in it which is not allowed for the package name. May 11 17:45:46 I have an android app which uses an android library project. I change the code in this library project each time I hit build, so obviouslyy this library project needs to be built every time along with the normal project - but eclipse tries to install the LibraryProject.apk each time I run my MainProject.apk which is really annoying May 11 17:45:58 how can I tell eclipse to just build the jar file and not try to launch the apk? May 11 17:46:23 roler: Use ant? May 11 17:46:31 ant debug May 11 17:46:51 JamesJRH just remember that once you publish with a packagename, theres no way back May 11 17:46:53 I've got this activity that has only 80 views on one page...I'm using a nested table layout for 4 tables on 1 page.....how do I reduce the complexity on this design? I've thought about using relative layout but it doesn't allow table rows or columns...any ideas? May 11 17:46:54 (I don't know I'm new.) May 11 17:47:10 JamesJRH id suggest getting a 'normal' account, its not expensive May 11 17:48:07 osxorgate: What's a 'normal' account? May 11 17:48:40 JamesJRH i misspoke i meant normal domain May 11 17:48:45 without funky chars May 11 17:49:05 JamesJRH: interesting. am I not supposed to have a AndroidManifest in a library but instead a build.xml? May 11 17:49:52 osxorgate: Yes, it seems an oversight that Android apps can't phase over to new domains and signing keys. :-( May 11 17:51:30 It would be good if an app can declare that in a few months the key will be renewed. Rather than having keys set to expire after 2033! May 11 17:51:32 never mind May 11 17:51:46 roler: Not sure. May 11 17:52:09 roler: Probably still needs the manifest. May 11 17:53:01 aha May 11 17:53:03 roler: Does eclipse not use build.xml? (I don't use eclipse.) Ant uses it though. May 11 17:53:17 JamesJRH: it appears it doesn't May 11 17:53:39 anyone got time for a Dialog question? May 11 17:54:29 Don't ask to ask, that wastes everyone's time, just ask May 11 17:54:34 if someone is willing and able to help, they will May 11 17:54:42 roler: My IDE is my window manager, my editor is (g)Vim. May 11 17:54:46 cant please everyone i guess... just trying to be polite May 11 17:55:02 i'm attempting to use a single color picker dialog to assign background colors to 4 individual buttons May 11 17:55:24 unfortunately, because im not very apt with the dialogs yet, im using the API demo ColorPickerDialog.java as a starting point May 11 17:56:14 and just FYI, it's an almost absolute certainty that I won't be able to help, I'm still very new at android development. lately all my android dev work is just fixing my Indian programmer's typos :P May 11 17:56:15 but I cant seem to figure out how to make the OnColorChangedListener determine which button was clicked May 11 17:56:20 there are some people here that really know there stuff though May 11 17:56:26 er, their* May 11 17:58:13 has anyone seen an app that lets you move fragments around (like windows) in an activity? May 11 17:58:24 not firsthand May 11 17:59:19 osxorgate: Seeing as both package names and keys are not changeable, it gives me the idea that a package name could be based on a public key's ID/fingerprint. For example: pubkey.F423A90B.name May 11 18:02:00 osxorgate: For Open-source where it is commonplace to fork and merge, domain names are not always practical. Or what about 'org.gitorious.user.projectname'? May 11 18:02:07 Is that allowed? May 11 18:03:12 Or 'net.sourceforge.user.projectname' etc.. May 11 18:03:57 Oh wait. Can I actually have 4 parts to a package name? May 11 18:04:19 you can have as many as you like May 11 18:04:26 anyone got any tips on applying an animation manually.. ie) not to a view. I need to change the values of a Paint but since this is 2.2+ cannot use ObjectAnimator. May 11 18:06:06 JamesJRH: any name is "allowed" but it's generally bad form to use a domain you don't own May 11 18:07:34 JamesJRH: thats hard core. I love vim for PHP but i'm not ready for android/java :) May 11 18:07:36 dragorn: What about for an 'owned' project on a code hosting site such as gitorious, sourceforge, launchpad, etc.? May 11 18:07:57 roler: ;-) May 11 18:08:56 I've got this activity that has only 80 views on one page...I'm using a nested table layout for 4 tables on 1 page.....how do I reduce the complexity on this design? I've thought about using relative layout but it doesn't allow table rows or columns...any ideas? May 11 18:09:00 im thinking of creating the animation and calling the getTransformation manually in my onDraw, but is there a correct way to do this? May 11 18:09:08 roler: It's not too bad actually. I just make some changes then run: May 11 18:09:13 $ ant debug && adb -d install -r bin/IsoKeys-debug.apk May 11 18:09:32 id assume that onDraw is restricted to the frame-rate of the device May 11 18:10:32 john_doe_jr: normally you would use a listview and put each row in each view, therefore reducing the actual ammount of views created May 11 18:13:01 Do apps per default have a Shared preferences? May 11 18:14:11 roler: BTW, the build.xml and stuff is created automatically by running 'android update ...'. I never check it into Git. May 11 18:14:22 roler: See: http://developer.android.com/guide/developing/projects/projects-cmdline.html#UpdatingAProject May 11 18:14:47 roler: And: http://developer.android.com/guide/developing/building/building-cmdline.html May 11 18:14:51 xarxer: if you use a SharedPreferences object to modify prefs, then your app will have them May 11 18:15:24 or a PreferencesActivity, etc... May 11 18:15:34 wongk: So by "adding" a pref, if it does not exist it will be created automatically? May 11 18:15:43 Napalm: I was thinking of using gridlayout but eclipse gives me an error...this book I'm reading says that it was added in Android 4 May 11 18:15:49 xarxer: yes May 11 18:16:10 wongk: And if I try to get a pref that does not exist? Exception? May 11 18:16:27 john_doe_jr: your book is wrong, it was added in 14 May 11 18:16:40 xarxer: you specify a default May 11 18:16:44 read the docs May 11 18:16:50 wongk: Ok, thanks! :) May 11 18:17:37 wongk-home: well I need to develop for honeycomb 3.0 so I guess I won't be able to use girdlayout right? May 11 18:17:38 john_doe_jr: there is a supprt library available that makes it available for 7+ May 11 18:25:46 We have a custom rom that we need to update a /system/app apk. Is there a method for updating this? The APK is an update manager. It downloads new APKs and launches the package manager, but when we install the new version of the manager, it gets reverted upon reboot. The rom isn't rooted and using an update.zip isn't possible due to how many devices there are. May 11 18:26:51 TheVirus: ask in #android-root, but i would assume you have to remount the /system parition before install or something May 11 18:31:06 bam May 11 18:31:26 hey TachyonDev May 11 18:31:30 The problem, Napalm, is that root isn't available. The app runs as app_0. May 11 18:31:33 Napalm: hola May 11 18:31:40 I tried mount -o etc but it gives permission denied. May 11 18:31:42 anyone know which 2.2 branch has the most installs? May 11 18:31:47 i assume unaffiliated/crack3r) May 11 18:31:48 [19:30] * Joins: maxagaz_ (~maxagaz@ May 11 18:31:52 oopsy May 11 18:31:58 android-2.2_r1 May 11 18:32:03 Napalm: http://www.tachyondev.com/android/colorchooser.png May 11 18:32:11 nice May 11 18:32:23 been pimping out that dude's source code May 11 18:32:29 bringing it into the fragment age May 11 18:32:46 TachyonDev: got any clues as to what the best way to implement Animation manually is.. May 11 18:32:49 let me explain May 11 18:33:03 Napalm: FragmentTransaction? :P May 11 18:33:04 i need to change the properties of a Paint but cannot use ObjectAnimator May 11 18:33:41 ive actually not played too much with animations May 11 18:33:47 im thinking create an Animation object, and call getTransformation manually in onDraw and apply the tranformation properties to the Paint May 11 18:34:05 Napalm, how can I help you? May 11 18:34:23 crack3r: sorry mate, copy-pasted your name by acceident May 11 18:34:33 if you want to help you can May 11 18:34:51 so my Animation should work, and since Animation uses time elapsed since first started it should be smooth May 11 18:35:06 and i assume i invalidate inside the onDraw May 11 18:35:14 but that seems kinda... May 11 18:35:27 which interpolator are you using? May 11 18:35:46 so im also going by the assumtion that onDraw is max called per frame and that is fixed at the display frame-rate May 11 18:36:22 TachyonDev: shouldnt matter, but probably AccelerateInterpolator May 11 18:37:50 any reason after logging in and starting the next activity, if i touch the back button it tries to login without touching the login button? - the reason i know that it is trying to login is becuase it is displaying the "Login Incorrect" message. http://pastebin.com/ffLZpxnx May 11 18:39:41 is there any major difference in fine vs coarse geo location when it comes to the ad networks? May 11 18:39:59 (I take it "fine" is GPS, "coarse" is mobile network dependent?) May 11 18:42:52 Hi, I try get data from my database MySQL, it's like this: MySql -> PHP -> JAVA, but if I my value in my database contain an accent : "éèà......" The only thing I get, directly from my php, is "nameColumn":null..... Bwarf..... My database is encode in utf8 May 11 18:43:07 if you want a link: http://quebecenfetes.toile-libre.org/test.php May 11 18:43:24 But for the ones without accents, it works well May 11 18:44:02 are you asking us a PHP question May 11 18:44:45 Yep... May 11 18:45:21 O.o May 11 18:45:57 I didn't think, sorry..., I was thinking about it, because it's for an android app... May 11 18:46:14 android.os.Process only defines SIGNAL_QUIT, SIGNAL_KILL and SIGNAL_USR1... could I still use sendSignal to send either SIGINT (2) or SIGTERM(15)? May 11 18:46:19 >.< May 11 18:46:33 Nic007: make sure your output from the web server is UTF-8 as well, and that Java treats the data as UTF-8 May 11 18:47:52 any reason after logging in and starting the next activity, if i touch the back button it tries to login without touching the login button? - the reason i know that it is trying to login is becuase it is displaying the "Login Incorrect" message that comes from the server. http://pastebin.com/ffLZpxnx May 11 18:48:19 ^^ its like the onClick is running on the back button... May 11 18:51:06 hi, I want to build an actionbar with fragments, using the sherlock action bar but everytime i get a nullpointerexception from the ontabselected function, does anyone know a solution? http://pastebin.com/ZwHH3zhm May 11 18:54:39 xertoz, yep I did this, I added a utf8-encode in my php and before I add null, now I have \u00e0 for my accents... :P May 11 18:57:35 Krid: Try using the newest version of ABS May 11 18:58:46 Nic007: go to e g #php on quakenet if you want PHP assistance :p May 11 18:59:02 oh :P Thanks May 11 18:59:05 SimonVT: can i use the latest one if i develop for an android 3.2 device? May 11 18:59:15 er, yeah? May 11 18:59:27 The whole point of ABS is backporting the action bar to before it was available May 11 18:59:39 hmm May 11 18:59:44 It'd make no sense if it didn't work on <4.0 May 11 19:00:19 ok, i will try May 11 19:02:20 this tig ncursus ui for git looks kinda cool May 11 19:02:40 hah May 11 19:02:45 that's ridiculous May 11 19:04:16 hey, have any of you guys used OrmLite? Is it any good? May 11 19:06:08 I'm using ActiveAndroid right now, but its closed source and can't do bulk inserts so I'm looking around for other options May 11 19:15:37 turntable.fm looks like an ios app too, wut is with these dumbasses May 11 19:24:25 Anyone write Free/Open-source apps here? May 11 19:24:51 several May 11 19:25:32 About the package names... I filed this: https://code.google.com/p/android/issues/detail?id=30867 May 11 19:25:33 I think I'm gonna open source qicr, don't feel like keeping it proprietary May 11 19:26:06 package names are arbitrary May 11 19:26:15 the guideline is to use a domain name, since those are guaranteed to be controlled May 11 19:26:18 pfn: Never heard of it but congrats if you do. :-) May 11 19:26:21 you can choose to use anything else you want May 11 19:26:30 Problem with Java now, I do in java with a JsonObect, data.getDouble("number"), I get an error.... for casting.... So I did a if(!data.isNull("number"){data.getDouble("number")}. The getDouble is read again, but I don't want because there is nothing.... May 11 19:26:49 pfn: But it's not recommended. May 11 19:27:06 JamesJRH, sure; not recommended, but not disallowed May 11 19:27:52 pfn: It wouldn't be as much of an issue if they could be changed at a later date. May 11 19:28:21 package names can never be changed May 11 19:28:38 Exactly. May 11 19:28:57 still, what's the point? May 11 19:29:34 this buys you nothing May 11 19:30:04 pfn: Err, well what can happen? Do conflicts happen? May 11 19:30:15 personally, i would use a MD5 hash as my package name May 11 19:30:22 just kidding :) May 11 19:31:36 I guess I just like the idea of each key having a sub-namespace. May 11 19:31:42 JamesJRH, it's a terrible idea May 11 19:31:57 because then you really have no idea who the hell owns the application when 100 people all publish the same thing May 11 19:32:20 And? May 11 19:32:38 Open-source is owned by all! May 11 19:32:39 I seriously do not want to accidentally run some random asshole's code that decided to fork some popular application May 11 19:32:46 no, it's not May 11 19:33:31 So you stick with the developer you trust. May 11 19:33:53 and that is completely opaque with generic package names and signatures May 11 19:34:06 you still aren't buying anything with this proposal May 11 19:34:14 and for developers that use a single key for each app they sign? May 11 19:34:24 Huh. May 11 19:34:33 Well. May 11 19:34:50 pfn: ughghghghg yeah. don't do that unless you have a compelling reason to do so. May 11 19:35:00 ctate, potential acquisition May 11 19:35:16 ctate: don't do what ? May 11 19:35:16 ctate, e.g. someone may want to buy app A, where one has a suite of A, B, C and D May 11 19:35:24 don't use the same key for multiple apps May 11 19:35:31 oh May 11 19:35:33 that May 11 19:35:38 * pfn does it currently May 11 19:35:39 * pfn shrugs May 11 19:35:54 hey, could be iOS May 11 19:35:54 ctate: Why not? May 11 19:35:59 which runs all apps as the same user :) May 11 19:36:11 JamesJRH: it greatly increases your security surface area May 11 19:36:13 ctate: good advice May 11 19:37:13 Does anyone know how i can use the latest ABS for older devices? The Requirements says, that i have to compile my project with android 4.0 ... May 11 19:37:34 Krid, that doesn't mean you have to target only 4.0 May 11 19:37:52 Krid, it just means you must compile against 4.0 libraries, you can still continue to run on any older device that you're willing to program to May 11 19:38:50 ctate: Doesn't it depend on how you manage the many different keys? If you keep them all together, you could just as easily have them all compromised. May 11 19:38:54 http://simonvt.net/2012/02/07/what-api-level-should-i-target/ May 11 19:38:59 Know your manifest attributes May 11 19:39:40 JamesJRH, in any case, a fork should not be publishing to market unless it significantly changes its package name anyway May 11 19:39:45 JamesJRH, conflicts are not an issue here May 11 19:40:00 Hmm... May 11 19:40:04 and for local development, still not an issue May 11 19:42:42 pfn: Should I even be using the same app name? I was planning to release with the same name. Unfortunately, the original developer is nowhere to be seen, so I can't ask him to pull my fixes. May 11 19:42:45 JamesJRH: same key means you can run as the same uid on device May 11 19:42:55 Yep. May 11 19:42:59 or in the same process May 11 19:43:16 so if someone gets a key, they can compromise *all* of your apps that share that key May 11 19:43:21 instead of just that one May 11 19:43:25 i.e. surface area May 11 19:44:18 JamesJRH, notice how most open source projects handle forks, they don't publish under the same name after forking May 11 19:44:26 e.g. synergy -> synergy+ May 11 19:44:32 openoffice->libreoffice May 11 19:44:44 linux->android May 11 19:44:45 ;-) May 11 19:44:50 :-P May 11 19:45:00 :-) May 11 19:45:13 loads of other examples, but that's what comes to mind right now May 11 19:45:29 don't forget Java -> Dalvik! May 11 19:45:31 * wongk ducks May 11 19:45:36 well, in the android store, there's connectbot -> irssi connectbot May 11 19:45:50 thanks Simon & pfn May 11 19:46:25 in general, there should only be one canonical publisher for a given application, otherwise, you're just asking for confusion for your users May 11 19:47:03 pfn: But the projects on GitHub and the like just fork and merge all the time. There would really be too many names in the world if they all renamed. :-S May 11 19:47:20 JamesJRH, there's only one canonical publisher on github May 11 19:47:31 everyone forks and merges, but who's considered the owner of the project, there is one May 11 19:47:47 Hmm. May 11 19:48:08 just like linux, linus and git May 11 19:48:18 there's a bajillion committers May 11 19:48:22 who puts out new kernel versions? May 11 19:48:34 hint: it's not those individual committers May 11 19:48:35 But that's a team. May 11 19:48:40 what team? May 11 19:48:51 ibm, microsoft, vmware are all a team? May 11 19:48:57 well, not vmware May 11 19:48:59 citrix May 11 19:49:16 they all work in concert to put out new versions of linux? May 11 19:49:18 no May 11 19:49:20 If Linus Torvalds dies, Linux will still exist. May 11 19:49:40 someone will take over, but it's 1 person/group who will take over the role of gatekeeper and publisher May 11 19:49:59 you're not going to have 500 different versions of linux 10.0 May 11 19:50:28 you have one canonical 10.0 release, and redhat will have their own fork of the kernel locally, but it's not promoted as the canonical 10.0 May 11 19:50:35 new MyActivity() isnt showing my activity May 11 19:50:36 help May 11 19:50:49 canadiancow|work: Remember to call onCreate May 11 19:51:09 o May 11 19:51:31 MyActivity a = new MyActivity(); a.onCreate(new Bundle()); May 11 19:51:33 still not working May 11 19:51:40 should i call onresume too? May 11 19:52:43 well, duh May 11 19:52:55 MyActivity a = new MyActivity(); a.onCreate(new Bundle()); a.onResume(); May 11 19:52:57 still not working May 11 19:53:07 hmm, 2 interviews on monday..., 9:45am-2:45 and 3:30-6:30+... ouch May 11 19:53:11 oh i forgot the onstart lol May 11 19:53:18 pfn: with whom? May 11 19:53:21 setContentView(a) May 11 19:53:31 a big java shop, and a scala + android shop May 11 19:54:05 pfn, do much scala these days? May 11 19:54:09 scala + android shop ? at the same time? :P May 11 19:54:12 pfn: Ok, so I want to takeover IsoKeys because the developer hasn't been around for months, and I have received no replies (I really hope he's ok BTW). I'm not forking due to political reasons like OpenOffice/LibreOffice, I just want to keep the project going. May 11 19:54:25 g00s, well, android isn't in scala yet, but they're interested in it May 11 19:54:36 luxurymode, as much of it as I can vs. java May 11 19:55:04 Really, it should keep the name. May 11 19:55:07 JamesJRH, send an announcment to the users of the app (forum, mailing list whatever) that you're forking May 11 19:55:09 pfn, meaning you try to write scala if you can…in preference to java? also, you writing android stuff in scala? May 11 19:55:20 luxurymode, my irc client is in scala May 11 19:55:34 recontrolr is, too, but that's scala in java-style May 11 19:56:06 the scala + android shop started their backend in ocaml, then added scala May 11 19:56:31 scala seems pretty cool…would be fun to write some android stuff in scala at work, but i fear that other devs who'd have to look @ the code now or in the future might not be so thrilled May 11 19:56:39 I hope I do well at the java shop's interview May 11 19:56:53 they're notorious for rough interviews May 11 19:56:58 what kinda work does the java shop do? May 11 19:57:07 ive never done any java outside of android May 11 19:57:08 luxurymode, everything May 11 19:57:16 ive actually never done any major programming outside of android May 11 19:57:17 so lol May 11 20:00:47 luxurymode, for an android project in a team, it's really hard to slip it in unnoticed May 11 20:01:00 yeah May 11 20:01:03 luxurymode, for most any other java project, though, it's relatively easy to implement parts in scala without people knowing before it's too late May 11 20:01:06 ;-) May 11 20:01:15 any good posts on how to get up an running with it…using intellij preferably May 11 20:01:24 android+scala? May 11 20:01:24 doesnt seem to be a ton of intros out there May 11 20:01:40 create an android project, use my sbt plugin, and go May 11 20:01:50 is basically the easiest way to get started with android+scala May 11 20:01:50 well just setting up scala May 11 20:01:51 oh ok May 11 20:01:56 wheres your sbt plugin? May 11 20:02:03 https://github.com/pfn/android-sdk-plugin May 11 20:03:51 sweet May 11 20:04:08 so you can obviously write whatever mix of java/scala as you want, right? May 11 20:04:13 yes May 11 20:04:27 that part is sweet…because you can maybe write some stuff that would be especially tedious in java in scala and gain from that May 11 20:04:32 so doesnt have to be all or nothing May 11 20:06:36 I have an interview in 2 hours May 11 20:07:27 NDK question… I have my java and C++ all building in eclipse, editing etc all works fine,,,, but when I do a build it seems to compile all my NDK libs etc … BUT does not seem to update the pkg file for the app unless I do a Clean build. Why? and do can I fix this? Do I need to erase some file to trigger the package to be rebuilt? May 11 20:07:40 The last interview I had I was asked the difference between pixels and density-independent pixels. I actually knew that one but I don't think my answer was coherent May 11 20:07:42 Ologn, good luck May 11 20:08:51 pfn, good luck on yours. I had an interview at Goldman Sachs years ago, and after that some Ernst and Young subcompany...I lost track of time at GS though and ran over...I had to run ten blocks to my next interview May 11 20:10:55 pfn: What do you think about keys that can't be replaced and that never expire? May 11 20:11:22 Ologn, thanks.... not so worried about the later one May 11 20:11:31 been reviewing algos and datastructures for the early one May 11 20:12:02 although, with other obligations, it isn't as much review as I'd like May 11 20:14:05 JamesJRH, what do you mean exactly May 11 20:14:22 I think it would be a good idea if keys could be renewed. May 11 20:14:53 Yeah, google gotta get that sorted out, only 20 years to go on our current ones May 11 20:15:43 They should make it possible to declare in the manifest that soon the application will use a new key (and declare the future public key). May 11 20:15:58 Then transition could be seamless. May 11 20:16:27 indeed, that would be a nice way to update May 11 20:16:43 but it means that users must get intermediate version B before getting version C May 11 20:16:44 SimonVT: 20 years is bad. Keys should be renewed far more often. May 11 20:17:18 if you transition your key from A -> B -> C and B is where you transition, you're screwed if users don't get B first May 11 20:17:45 pfn: Yeah, better than nothing. There could be a few months overlap, and B should remain available. May 11 20:18:22 It could be declared for a while before transition. May 11 20:20:32 What about apps that are rarely updated May 11 20:20:35 Does anyone not like that idea? I think that's a much better aproach than my previous suggestion. May 11 20:21:04 SimonVT: Then the transition remains available. May 11 20:22:32 Are you not required to change key? Or? May 11 20:23:20 If there's no requirement, it seems useless to spend time doing it.. If it's required, you're forcing every app to upload a new update every few months May 11 20:23:26 For no reason May 11 20:24:34 What about older platform versions that don't suppose this May 11 20:24:46 SimonVT: No. It would be up to the developers to declare key renewals in the manifest. May 11 20:25:09 SimonVT: Yeah, I'm still thinking about that... May 11 20:26:13 in general, useless May 11 20:26:14 SimonVT: Well Google Play can offer different apk's to different versions. May 11 20:26:25 JamesJRH, and doesn't resolve your problem of a team lead getting hit by a bus May 11 20:26:36 s/team lead/project owner May 11 20:28:13 pfn: It means that things aren't set in stone. If a future package name could also be declared in the manifest, potential conflicts could easily be resolved. May 11 20:28:28 not quite so easy May 11 20:28:36 that requires cooperation May 11 20:28:44 cooperation you may or may not get May 11 20:28:50 good, for when you sell an application to another party May 11 20:29:03 bad, for when the originating party is hit by a bus May 11 20:29:04 Well, at least it's not the limiting factor. May 11 20:31:32 * pfn tries brewing up a purty capuccino May 11 20:32:57 wget http://waf.googlecode.com/files/waf-1.6.11 May 11 20:32:59 er May 11 20:46:07 damn, it came out ugly May 11 20:46:36 kill it and hope for better luck next time May 11 20:46:51 wait, are we talking about the same thing? May 11 20:47:01 Lol. May 11 20:49:16 I think i have coded myself into a corner. My app must be location aware. I have created a LocationHelper that contains the user location and business logic relevant to that location. I would like to let activities derive from LocationHelper (and move LocationListener logic into LocationHelper) - I cannot do this, as activities may need to implement one of several activities, MapActivity, ListActivity, Activity, etc. My solution is to say screw being DRY, a May 11 20:49:16 nd create LocationAware -MapActivity, -ListActivity and -Activity who each has an instance of LocationHelper as well as logic for LocationListeners. Activities can then derive from one of these. How can i improve this? May 11 20:57:44 SQLStud, your nickname is awesome May 11 21:01:25 mgj: why not have a service that manages location stuff, and which all of your activity flavors then consult in order to do their work? May 11 21:02:56 But the LocationListener logic should follow the lifecycle of an activity, not a service May 11 21:05:07 man what a great day May 11 21:05:17 why? :) May 11 21:05:20 (to mgj) May 11 21:05:21 because it's friday May 11 21:05:25 monday's gonna be great, too..... May 11 21:05:38 since I'm taking the day off work May 11 21:05:42 pfn: monday i will be on vacation, today its like im on paid vacation May 11 21:05:57 birbeck, -> ctate May 11 21:05:57 oh wait, all next week is paid :-) May 11 21:07:26 nice, going anywhere? May 11 21:07:33 ctate, i do not want to keep listening to e.g. gps 24/7. If i create a service for it, i would still need to control that service from the activities and then what have i really gained? I would still need LocationAware-*-Activity for hiding the interaction with the service - just as im doing now (with an instance of LocationHelper) May 11 21:07:49 pfn: tahoe and reno, social d concert in reno May 11 21:08:04 why tahoe? snow season is over, early camping? May 11 21:08:06 I'm all of a sudden getting an error "unable to resolve static method ..." for a class that's in a referenced library. It was working and all of a sudden it's not and I don't know what I did to break it. Any thoughts? :/ May 11 21:08:15 mgj: you've gained a shared resource that all UIs presented by your app can use, without having to worry about each activity setting up its own location services etc May 11 21:08:21 pfn: boozing and relaxing May 11 21:08:25 remember that getting location info can take a fairly substantial setup time May 11 21:08:36 * pfn is gonna take a cruise in july, first ever May 11 21:08:42 dunno whether to go carribbean or alaska May 11 21:08:46 awesome, never been May 11 21:08:56 That is true, i SHOULD be doing that, thank you May 11 21:10:54 mgj: reto had an extensive blog post on gps stuff May 11 21:11:04 on the official android website May 11 21:11:53 hmm, dropbox or gdrive May 11 21:12:32 i need to recommend something for a friend who doesn't have a computer, needs to work at resume & stuff at libraries May 11 21:13:04 thank you, will read. May 11 21:13:13 does anyone know if dropbox requires client software installation, or does it have web access also ? May 11 21:13:39 pretty sure it has web access May 11 21:13:54 yes, but i dont know about web viewers May 11 21:14:01 i dont really use dropbox at all though May 11 21:14:21 i guess if its somethng the browser can render it wont matte May 11 21:14:23 r May 11 21:14:26 k, thx May 11 21:14:28 when Icecream sandwich will be available for my galaxy note please tell ? May 11 21:14:35 jennie: now May 11 21:14:37 i thought it was already ? May 11 21:14:46 how can i get it please help May 11 21:15:03 wait a few days May 11 21:15:14 staged rollout, should hit all devices shortly May 11 21:15:16 all the cloud storage things have webapps for access May 11 21:15:32 * pfn uses box.net on occasion May 11 21:15:44 I used it to shared financial docs with my mortgage broker when refinancing my house May 11 21:16:14 birbeck didnt get you May 11 21:16:28 jennie, wait a while is the answer May 11 21:16:31 jennie: your galaxy note on at&t? May 11 21:16:49 no its any network May 11 21:17:23 who do you have it serviced through? May 11 21:17:32 ? May 11 21:17:34 pfn: hmm, thanks May 11 21:17:50 jennie: hmm, well just wait, it should hit your device in the next few days May 11 21:18:13 how i will know then it is hit ? May 11 21:18:25 a notification in your status bar May 11 21:18:50 status bar in cellphone ? but my data network mode is always off then ? May 11 21:19:01 so turn it on May 11 21:19:28 is it out for galaxy s2 ? May 11 21:19:35 pfn: have you tried google drive yet ? May 11 21:19:42 (has anybody?) May 11 21:19:47 yeah May 11 21:20:01 (-> g00s) May 11 21:20:15 birbeck: what did you think ? May 11 21:20:17 g00s, if you've been using google docs, you've been using drive, for all intents and purposes May 11 21:20:30 depends on what you need May 11 21:20:31 g00s: umm its fine i guess May 11 21:20:41 i just share screenshots and crap on it May 11 21:21:07 pretty simple, take screenshot, share with gdrive, set share option to anyone with link and send it to them May 11 21:21:20 this is really for a friend w/o a computer, that needs to keep just a few things like a resume. she works on the resume from different libraries. i guess she could use google docs, or word + dropbox | box.net (library computers have word) May 11 21:21:30 use google docs then May 11 21:21:32 easiest way to go May 11 21:21:38 k, thx May 11 21:21:43 gdocs == gdrive May 11 21:21:48 all-in-one editing suite May 11 21:21:54 on-phone, or at a random pc May 11 21:21:58 just use the browser May 11 21:22:03 don't need word, either May 11 21:22:04 but yeah, upload it to drive, set share to anyone with link and send out the shared link May 11 21:22:13 or can download it from gdocs and sent the .doc May 11 21:22:19 cool, thanks May 11 21:22:24 when it's done, then download it into a .doc and format it properly May 11 21:22:31 actually, it has an email option, no downloading involved May 11 21:22:31 big problem with gdocs is that it doesn't have real formatting tools May 11 21:22:58 true, gdocs wont always format well in ms word May 11 21:23:00 google docs should allow typesetting via latex in an advanced mode May 11 21:23:06 that would be win May 11 21:23:15 "always".equals("never"); May 11 21:23:34 * pfn writes his resume using xml, though May 11 21:23:47 and use xslt/xsl:fo to convert to html and pdf May 11 21:25:23 and I hate it when recruiters ask for resumes in word format... May 11 21:25:51 so behind the times May 11 21:26:11 it's so they can slap their stupid letterhead around it May 11 21:26:19 and so they can get creative and edit it May 11 21:26:31 i hate it when the edit it May 11 21:26:51 then you end up like the ceo of yahoo and getting fired for false info on your resume May 11 21:26:53 hey pfn May 11 21:27:00 What is prefered, extend Thread or implement Runnable? May 11 21:27:05 xarxer, latter May 11 21:27:13 sup Napalm, go to sleep May 11 21:27:25 no, must code May 11 21:27:37 * Napalm acts like a zombie code monkey from hell May 11 21:27:40 pfn: Is there any easy explanation for why? May 11 21:27:55 xarxer, flexibility May 11 21:27:58 i wouldn't hire a CEO that isn't able to insert at least 3 lies in his resume May 11 21:28:06 and there is no reason to ever extend thread May 11 21:28:09 pfn: Ok! thanks.. May 11 21:28:23 there are a few, but from an application's perspective, never May 11 21:35:07 xarxer: err, apples and oranges May 11 21:35:16 Thread is about implementing a new kind of thread May 11 21:35:32 RUnnable is just a general interface for providing a run() method, used by a number of different mechanisms May 11 21:41:41 wow, Darcey 7 Conder's "Android Wireless Application Development" got so fing bigm they had to split it into two 500+ volumes May 11 21:42:38 Paid by the page May 11 21:48:43 Hi! I read in a file using InputStreamReader but don't see the swedish åäö in the text. BufferedReader br = new BufferedReader(new InputStreamReader(file, "ISO-8859-1")); should do the trick? May 11 21:48:50 neither androids logcat nor the text written to the TableLayout shows åäö. Can't see whats wrong May 11 21:48:55 when I open the csv-file in e.g. openoffice calc with ISO-8859-1 encoding, I can see all text perfecly. May 11 21:50:28 Android's default charset encoding is going to be UTF-8, so yeah, you will need to convert May 11 21:50:35 s/going to be // May 11 21:51:35 I thought so, but shouldn't the above sentence do the trick to show me the correct characters? May 11 21:52:42 ctate, that's what inputstreamreader(..., "iso-8859-1") should be doing May 11 21:55:22 does anyone have any recommendations about where I can do some research about salary expectations regarding android developer jobs? May 11 21:55:49 craigslist? May 11 21:55:52 indeed.com? May 11 21:55:55 * pfn shrugs May 11 21:56:14 craigslist not so much, I was thinking more about full time employment rather than contracting May 11 21:56:23 I will check indeed.com though, thanks May 11 21:56:44 lots of stuff stuff on craigslist is for fulltime positions May 11 21:57:07 actually, pretty much everything I've seen on craigslist is for fte May 11 21:57:10 oh ok, damn haha May 11 21:57:12 thanks May 11 21:59:24 pfn: Hopefully we get it by 2033: https://code.google.com/p/android/issues/detail?id=30870 May 11 21:59:28 :-p May 11 22:02:17 How do I sign an apk using GPG? May 11 22:02:23 you don't May 11 22:02:30 Thought no. May 11 22:02:33 not* May 11 22:02:49 Why is it so weird? May 11 22:02:55 what is weird May 11 22:03:17 Signing. May 11 22:03:22 weird to you May 11 22:04:07 Why can't I use my GPG for signing? It's RSA, and apparently that's what Android uses. May 11 22:04:19 different signing format, gpg isn't compatible May 11 22:04:38 What do Android use then? May 11 22:04:43 does* May 11 22:04:55 it uses jarsigner May 11 22:05:05 Hmm. May 11 22:05:54 I'm completely new to Android and Java, BTW. May 11 22:06:13 If I'm not using fragments, besides the depreciated onRetainNonConfigurationChange() - is there any other way to retain listview contents on orientation change? May 11 22:06:23 is there any sample how I could implement overscrolling on ScrollView? right now I'm thinking about hiding one item on top of the scrollView and do autoscroll to the bottom of this item when user dont need overscroll. am I thinking in right direction? May 11 22:06:58 vadi2: onSaveInstanceState May 11 22:07:05 Ahh right May 11 22:07:58 pfn: So how do I attach this keystore thingie to my keyring? May 11 22:08:08 you don't May 11 22:08:38 No, I do want that. May 11 22:08:51 unless the keyring supports arbitrary pkcs12, you don't May 11 22:10:09 pfn: Ok, I'll check... May 11 22:20:28 I'm all of a sudden getting an error "unable to resolve static method ..." for a class that's in a referenced library. It was working and all of a sudden it's not and I don't know what I did to break it. Any thoughts? :/ May 11 22:20:56 re-add the library May 11 22:20:58 rebuild the library May 11 22:20:59 etc. May 11 22:22:26 clean build? May 11 22:23:08 hey any one here have xperia s May 11 22:23:24 i am stuck on status 7 error :( May 11 22:23:46 now i cant connect to my xperia sd card May 11 22:23:55 stuck on recovery mode May 11 22:24:55 ryzy: you're probably in the wrong channel. try #android? May 11 22:32:43 pfn, leslie : I've tried playing around with the build path, removing/re-adding the library. I've cleaned the projects.. I've just manually uninstalled & reinstalled, still having the same issue... May 11 22:33:12 in Eclipse? May 11 22:33:17 yeah May 11 22:33:20 hmm May 11 22:33:56 then the library doesn't have the method you thought May 11 22:34:53 is it an Android library (with source) or just a standard .jar? May 11 22:34:57 how do you use StrictMode...when I implement it in my app how do I use it? May 11 22:35:07 you just turn it on May 11 22:35:11 then look at your log May 11 22:35:15 assuming you don't set penaltyDeath May 11 22:35:23 in which case, your app just exits May 11 22:36:10 but it was working yesterday and I haven't touched the library. The library is a standard .jar May 11 22:36:37 navigate the project and look at the jar you have in your path May 11 22:36:50 browse to the class in particular and see if the method you're calling is there May 11 22:37:26 ok May 11 22:38:00 pfn: can I see the log in DDMS in eclipse? May 11 22:38:07 john_doe_jr, yes May 11 22:38:56 pfn: yep it's there May 11 22:39:34 screenshot May 11 22:41:28 pfn: http://i.imgur.com/7Mvjb.png May 11 22:41:41 the class is SHA1Digest May 11 22:42:43 It fails on this: digest = new SHA1Digest(); May 11 22:43:40 nplus: is this library in "libs"? May 11 22:43:43 what's it have to do with static May 11 22:43:57 and yes, provide a larger screenshot May 11 22:44:02 no context to tell if you have the jar in the right place May 11 22:44:05 by the looks of that, no May 11 22:44:40 wongk-home: I think it's in a folder called lib, in another project May 11 22:44:45 i'll rename it May 11 22:45:01 you don't have the library added to the path in your project May 11 22:45:08 and it's typically libs, not lib May 11 22:45:40 if you want it to be installed with your app, it's libs :P May 11 22:47:00 Ok, I'll do that. I swear, it was working before when I referenced a library in a a different project :/ May 11 22:48:03 pfn: alright, I got my app running in the emulator and I can figure out what the StrictMode is doing in the logging...what am I looking for? May 11 22:48:13 john_doe_jr, filter on StrictMode May 11 22:48:24 Ok, I renamed lib to libs and it's working again - libs is still in a different project :/ May 11 22:48:51 thanks for the help May 11 22:49:45 pfn: filter name = strict_mode? May 11 22:50:12 StrictMode May 11 22:50:50 pfn: I just see the same old stuff nothing new May 11 22:51:32 pfn: I do see some that have the tag StrictMode... May 11 22:51:55 then there you go May 11 22:53:08 pfn: what's so great about StrictMode? May 11 22:53:28 john_doe_jr, it's just a diagnostic tool for making sure you don't transgress May 11 22:53:31 who said it's great? May 11 22:54:18 it's awesome May 11 22:54:21 i have it turned on by default May 11 22:54:25 play store app is bad at it May 11 22:54:27 always flashing red May 11 22:54:28 :( May 11 22:55:04 pfn: Alright May 11 22:59:34 pfn: does strict mode show you all the main thread processes ? May 11 22:59:53 no May 11 23:44:49 i currently have an asynctast that populates a listview from a mysql database. I was just wondering if someone knows of a way or can point me to some documentation on how to "listen" for new items and populate the item(s) to the top of the listview? May 11 23:49:47 dumb question, anyone know how to fix the situation where eclipse doesn't display class methods while you type? May 12 00:34:44 pfn: Did you know it's actually already possible to to change the signing key?: http://stackoverflow.com/questions/2881904/how-to-sign-an-apk-with-more-than-one-certificate May 12 00:42:56 JamesJRH, is that so, interesting May 12 00:43:23 that's quite handy May 12 00:45:39 holy crap - went to the library with a friend to work on their resume. they had ms word 2007 there … i guess the last word i must have used was 2005, I could not figure this thing out to save my life. the ribbon thing is aweful. then i tried google docs, the formatting is so limited May 12 00:46:31 openoffice is pretty damn good by comparison :) May 12 00:48:11 i think there's a way to toggle the ribbon but don't quote me on that May 12 00:48:33 i was trying to get it to revert back to 2003/2005 look :) May 12 00:48:41 i guess i cant computer May 12 00:49:32 you get used to the ribbon after a while May 12 00:49:46 yeah its not so bad after a while May 12 00:52:52 it's certainly different, but the way some of the stuff is surfaced is prettyn ice May 12 00:53:52 woot, converted TabHost/TabActivity to ViewPager/FragmentActivity/etc May 12 00:54:05 http://code.google.com/p/iptableslog/ <-- thing of beauty now May 12 00:54:05 nice, and viewpagerindicator? May 12 00:54:06 which app? May 12 00:54:14 yes, and viewpagerindicator May 12 00:54:19 indeed May 12 00:54:51 cool, even does per-app network accounting, nice May 12 00:54:59 * pragma- smiles happily. May 12 00:55:12 i wonder if i should recommend this for her http://www.resumonk.com/ May 12 00:56:24 the compat lib has a viewpageindicator now, right ? May 12 01:00:09 If I go into my my 'Android 4.0" library into the package android.app and then pick a class, I get the message, "source not found" ...I'd like to take a look at how the class is created w/ out having to go online...it asks if I'd like to change the attached source but I don't know where to point it...any ideas ? May 12 01:04:06 pfn: I also wonder whether there's some workaround way of renaming a package by installing both apps with the same key then allowing one to replace the other... May 12 01:06:16 I recently renamed one of my apps. I simply selected "Upload Application" to create a new page, and unpublished the old listing. May 12 01:06:58 pragma-: Did it replace? Or install new? May 12 01:07:13 Well, I chose a new package name too. May 12 01:07:22 I didn't try to replace the old listing. May 12 01:07:47 I suspect it would have errored if I used the same package name. May 12 01:08:00 Yeah, that's what I'm talking about. May 12 01:08:29 I still have a few hundred users still stuck on the old unpublished app :/ May 12 01:08:56 Missing out on this glorious viewpager update May 12 01:09:25 g00s, not that I'm aware of, no May 12 01:11:12 pragma-: Supposing you have an app with many many users, and you want to move the domain name, but keep the title. Is it possible if they are both signed with the same key for the new version to replace the old? May 12 01:11:57 uh, i'm reading this techcrunch article about Android, Animoca, and fragmentation. they are testing on 400 android devices. friends that work for shops doing android work have about 35 test devices; but they say they have this many because its required to test the devices being sold in the asian market May 12 01:12:47 JamesJRH: I do not know. May 12 01:13:28 i would expect changing the application name would require making a new application in the market May 12 01:13:45 no, you can change the name easily May 12 01:14:04 g00s: there is a service called testdroid that can deploy your tests to hundreds of devices at once in the cloud May 12 01:14:04 Pragma: sorry, by name i meant identifier May 12 01:14:24 readme: yeah, there are a bunch of services, at least 6 May 12 01:14:28 Ok, I don't know enough about 'replacement'. What actually happens when an app is replaced? What is kept? May 12 01:14:33 right, application name == easy, package name == dunno May 12 01:14:50 g00s: all are slightly different though. I found testdroid interesting because it seems focused on automated unit tests and comes with a lot of premade test suites. May 12 01:14:57 JamesJRH: don't know if you can replace, in the first place May 12 01:15:00 I also tried perfectomobile which kind of lets you human test remotely May 12 01:15:06 I disliked it, it was slow and clunky. May 12 01:15:15 http://stackoverflow.com/questions/4612211/changing-the-name-of-package-for-android-application May 12 01:15:18 only thing it is good for is giving yourself a free review on play :) May 12 01:15:22 tl;dr: no, you can't change the package name May 12 01:15:29 you can rename the application name as easily as you can update the description/what's new, etc May 12 01:15:41 pragma-: I'm talking about _package name_, like I said at the start. May 12 01:15:59 yeah, no idea if you can unpublish and then publish another identical package name May 12 01:16:29 doubtful, and even if you could I doubt the new updates would reach the old app May 12 01:16:34 not really sure how it all works under the hood there May 12 01:17:09 I would think if you used the same key and package name the new app would just replace the old one via an update. May 12 01:17:29 And what happens? May 12 01:17:41 * dragorn wonders what hijinks you're trying to pull May 12 01:17:57 unpublishing/publishing another would allow you to wipe the negative comments, for one thing May 12 01:18:04 (also the positive ones too) May 12 01:18:23 Installing the very same apk twice will 'replace' itself, but what is it doing? What is it keeping? May 12 01:18:55 I have an issue with my classpath settings that I can't figure out. My project builds fine but crashes on launch with a NoClassDefFoundException. This is for some 3rd party jars in my project that worked until I broke something just now. How/what can I check to make sure it's looking for things in the right places at runtime? May 12 01:19:39 pragma-: This is nothing to do with Market/Play. This is about how Android deals with .apk files. May 12 01:19:48 if you're doing a replacement install, e.g. adb install -r then it just replaces the apk otherwise the uninstall/install process wipes its data (minus anything it created outside of the internal storage apis), etc May 12 01:20:14 Right, what is that data? Where is it? May 12 01:20:21 /data/data/ May 12 01:20:28 Ah! May 12 01:20:31 but when you update on the market, the databases are preserved May 12 01:20:40 Yes. May 12 01:20:41 so I'm guessing the other stuff, like prefereneces are too. May 12 01:21:01 Adb... May 12 01:21:02 /data/data /sdcard/Android/data etc May 12 01:23:49 Yes, then we have the package name, such as: /data/data/com.inept.isokeys/ May 12 01:24:19 shared_prefs? May 12 01:24:33 What are they shared with? May 12 01:26:48 JamesJRH: shared across user sessions May 12 01:30:12 they can also be shared amongst apps that have the same signing key May 12 01:30:20 I think May 12 01:37:46 pfn: That's what I'm wondering about - Can the new app (which is signed with the same key) copy over the old data, then offer to uninstall the old app? May 12 01:38:03 apps cannot install or uninstall other apps May 12 01:38:14 I don't think May 12 01:38:23 can copy over old data, though, yes May 12 01:38:31 need to specify a shared userid first, though May 12 01:39:20 pfn: They can't directly, but they can request an uninstall. May 12 01:43:37 Doesn't even look like any special 'uninstall' permission is needed. TubeMate used to do it /a lot/ for their old versions (because they kept getting kicked off the market). May 12 01:44:17 But maybe it can only work with no permission for apps with the same key. May 12 01:46:07 <`z> 9789810017613 May 12 01:46:10 <`z> oh May 12 01:46:11 <`z> what May 12 01:46:11 <`z> the May 12 01:46:12 <`z> fuck May 12 01:46:12 <`z> no May 12 01:48:36 Lol! May 12 02:18:11 hello - i want to create help activity for my app- i need to divide it in llist of links 1) how to use item1, 2) how to use item 2 - and when someone clicks on a link it will take him to a page with explanation - what is the best way to build helper activity? May 12 02:18:18 best approach, how to go about this May 12 02:19:05 amoxibos: use a webview May 12 02:19:26 aha May 12 02:19:29 any tutorials on this? May 12 02:19:37 d.android.com May 12 02:21:02 hey readme May 12 02:21:14 readme: thanks May 12 02:21:15 i found one May 12 02:21:17 ur awesome May 12 02:21:18 :) May 12 02:22:16 heh May 12 02:23:01 damn guys, you know when a project has a grip on your mind, when you wake up and you've been dreaming up a code solution May 12 02:23:05 :| May 12 02:25:16 Hello Napalm May 12 02:25:40 hey readme May 12 02:25:53 this project must have a real grip on my mind atm May 12 02:26:07 what is it? May 12 02:26:16 complicated May 12 02:26:16 lol May 12 02:34:55 it means you need to spend more time sleeping so that you're fresh and can come up with solutions in the morning :p May 12 02:35:23 well while this answer is is my mind im coding it now May 12 02:35:33 then back to sleep for an early start tommorow **** ENDING LOGGING AT Sat May 12 02:59:58 2012