**** BEGIN LOGGING AT Tue Oct 23 03:00:00 2012 Oct 23 03:00:06 the scheme wiki is entirely scheme, i think Oct 23 03:00:10 neat Oct 23 03:00:14 grothendieck: are you using jdee mode? Oct 23 03:00:25 for android in emacs, i mean Oct 23 03:00:28 No, just regular Java-mode Oct 23 03:00:46 the only thing i wish i had in emacs, was auto-imports Oct 23 03:00:47 I don't write much Java though for Android Oct 23 03:00:48 same Oct 23 03:01:01 NDK? Oct 23 03:01:03 what language are you writing android apps in? Oct 23 03:01:03 muhoo: i recall seeing a plugin for doing that in the past Oct 23 03:01:11 muhoo: mostly C Oct 23 03:01:15 with some Java glue Oct 23 03:01:17 :-0 Oct 23 03:01:18 via JNI Oct 23 03:01:31 Math libraries, etc Oct 23 03:01:36 oic Oct 23 03:01:48 Java is just for the interface Oct 23 03:01:58 And unfortunately, I suck at interfaces way more than I suck at Java Oct 23 03:02:01 lucky you Oct 23 03:02:15 haha Oct 23 03:02:17 why? Oct 23 03:02:57 When I spend months trying to debug some JNI functions Oct 23 03:03:02 does not feel so lucky :P Oct 23 03:03:08 well, true Oct 23 03:03:09 such a freakin mess Oct 23 03:03:42 do you have any experience with openCV on android? Oct 23 03:03:53 No Oct 23 03:04:02 nuts Oct 23 03:04:07 ooh but I did look at it once Oct 23 03:04:12 had an idea for a project but never got around to it Oct 23 03:04:20 seems interesting Oct 23 03:04:24 why? what are you up to? Oct 23 03:04:45 they want you to ask your users to download their manager/some package in order to use it Oct 23 03:05:02 but i got static linking to work, and was wondering if there was a downside to that Oct 23 03:05:09 No Oct 23 03:05:11 lol Oct 23 03:05:15 Absolutely no downside at all Oct 23 03:05:20 That's actually fantastic Oct 23 03:05:23 besides apk size, i guess Oct 23 03:05:27 Well Oct 23 03:05:37 That and now you have to update it Oct 23 03:05:40 it's not bad, ~4mb Oct 23 03:05:52 That's reasonable Oct 23 03:05:58 for a freaking CV library Oct 23 03:05:58 :P Oct 23 03:06:12 performance will be better Oct 23 03:06:15 yeah, opencv is one of the best, too Oct 23 03:06:16 with static linking Oct 23 03:07:13 for starters im trying to write an app that detects new features in an image, and automatically separates them into new layers Oct 23 03:07:14 I've been working on a tool to help NDK hackers port libraries to android easier Oct 23 03:07:20 oooh Oct 23 03:07:21 neat Oct 23 03:07:26 fourier transform Oct 23 03:07:54 openCV has builtin feature recognition, i probably won't even have to think at that level Oct 23 03:08:00 ah:) Oct 23 03:08:16 * grothendieck is writing an image comparison library in Perl at work Oct 23 03:08:19 :O Oct 23 03:08:35 it's basically just a toy though Oct 23 03:08:46 that sounds awful, wouldn't c be better in every way? Oct 23 03:09:01 It uses XS Oct 23 03:09:12 But to answer your question, yes absolutely Oct 23 03:09:12 :) Oct 23 03:09:17 ah Oct 23 03:10:37 I've never really understood if there is a problem with using a native binary executable on android Oct 23 03:10:48 provided it can run within the applications sandbox Oct 23 03:11:47 grothendieck: A problem in what sense? Oct 23 03:11:51 I got some C program that runs as a daemon and connects to a client over a Unix domain socket Oct 23 03:12:09 client sends commands to the server, the server pipes them into this math library and returns the result Oct 23 03:12:10 grothendieck: You're much better off making it a .so and loading it inside of JNI if you can - let it live in a java thread on its own Oct 23 03:12:15 right Oct 23 03:12:24 but damn Oct 23 03:12:53 grothendieck: the java exec() function, i forget what it is, has issues - dalvik doesn't really like the fork/delay/exec it does, tho I've used it with success, i've read that it's got a good chance to crash Oct 23 03:13:03 yeah Oct 23 03:13:06 For some stuff, i ended up writing my own fork/exec with a JNI hook Oct 23 03:13:06 I've played with that too Oct 23 03:13:24 and then using JNI to make a FileDescriptor and populate it with dup'd fd's for stdin/out Oct 23 03:13:45 anyone know of a way i can convert the pub key in developer console which is a base64 encoded string to .pem? Oct 23 03:13:46 Hi All. I'm using loadermanager with a custom simplecursoradapter. It is not being updated automatically when db changes occur. any idea what I might be missing? Oct 23 03:13:46 so I could get popen functionality w/ java file streams that way Oct 23 03:13:50 I wrote some Java method that will start a shell script, and had this shell script to start/stop a daemon...it works but yeah, no idea why it is unsupported Oct 23 03:14:02 cool Oct 23 03:14:07 thanks dragorn that is food for thought :) Oct 23 03:14:10 dragorn - honestly its getting better... but it seems like android was kinda like one of those things where Oct 23 03:14:26 if the stars align in a very specific way things will work Oct 23 03:14:30 yes Oct 23 03:14:32 exactly Oct 23 03:14:50 grothendieck: you can also do some tricks where you compile your exe as a .so then spoof argc/argv and call main directly in jni Oct 23 03:14:57 oh Oct 23 03:14:59 damn that is clever Oct 23 03:15:00 heh Oct 23 03:15:07 I dont have a partnership with google so I cant tell you 3rd parties etc have more support/access Oct 23 03:15:08 what I did a while back (nto sure if this still works) Oct 23 03:15:09 I assume they do Oct 23 03:15:10 hey Oct 23 03:15:23 but from what I've seen, its a miracle any 3rd party releases a stable android build =) Oct 23 03:15:23 grothendieck: which I've also used to great success, but with some caveats - for a one-shot it's pretty good, but for multiple runs of the same binary, global variables have a tendency to stay initialized Oct 23 03:15:25 was bundle the executable in /assets, stuck on a .jpg extension Oct 23 03:15:37 dragorn: use volatile Oct 23 03:15:47 it should solve problems Oct 23 03:15:51 grothendieck: yes, the problem in this case was that I wasn't interested in rewriting the native code Oct 23 03:15:55 ah Oct 23 03:16:02 grothendieck: it was a work project to integrate existing tools Oct 23 03:16:02 right Oct 23 03:16:22 I'd jump through a lot of hoops to avoid modifying major parts of the native code, because that would have long-lasting maintenance impacts Oct 23 03:16:39 of course Oct 23 03:17:03 nobody wants a mess of #ifdef ANDROID Oct 23 03:17:04 :P Oct 23 03:17:10 #ifdefinitely Oct 23 03:17:16 grothendieck: in this case we didn't own the native code either Oct 23 03:17:21 grothendieck: so major sync issues Oct 23 03:17:23 :) Oct 23 03:17:24 right Oct 23 03:17:30 makes sense Oct 23 03:17:57 for future reference, if on some other project you have this problem Oct 23 03:18:14 volatile is useful Oct 23 03:18:15 that said, I've wedged a 120k line c++ program doing a ton of stuff into a jni lib and spoofed main Oct 23 03:18:19 and it runs pretty happily Oct 23 03:18:22 nice Oct 23 03:18:25 yea I'll keep it in mind, thanks for reminding me Oct 23 03:18:30 I'll have to give that a try Oct 23 03:18:35 np :) Oct 23 03:18:53 * grothendieck going for a walk, bbl Oct 23 03:19:27 i want to inflate views by their ID (since they aren't each in their own file, and this do not each have their own layout number in the R file). however, the LayoutInflater only seems to accept layout numbers, not ID numbers. how can i get around this? Oct 23 03:19:36 *thus Oct 23 03:19:51 you might have to split them into their own files Oct 23 03:20:01 dragorn just ndk stuff or platform dev Oct 23 03:20:06 ron_frow_: ndk Oct 23 03:20:19 are you sure? that'd be unpleasant Oct 23 03:20:54 ron_frow_: For the most part I'm not too interested in platform dev - I don't work for a phone manufacturer, so if the answer is "roll your own rom", it means "no-one can use this" Oct 23 03:21:09 understandable Oct 23 03:21:15 just curious more than anything else Oct 23 03:21:28 seems to be outside the realm of normal for the avg android dev Oct 23 03:21:38 ron_frow_: similarly, if the answer is "requires root" it means "i probably won't bother". I've jumped through some ridiculous hoops to avoid needing root. Oct 23 03:21:52 dragorn any fun stuff thats public Oct 23 03:21:57 ron_frow_: In this case, it was getting usb host + userspace re-implementation of realtek wifi drivers + kismet running on it Oct 23 03:22:06 ahh Oct 23 03:22:11 interesting Oct 23 03:22:15 which was a huge hack, working on a re-implementation of it now Oct 23 03:22:25 Of course, the new problem with THAT is, every manuf pooches USB host in some new way Oct 23 03:22:37 which means I had to go out and spin some USB hardware to fix that Oct 23 03:22:47 now i'm working on finalizing that stuff and getting a manufacturer lined up Oct 23 03:22:50 what is the hardware Oct 23 03:23:09 wireless hardware Oct 23 03:23:11 ? Oct 23 03:23:33 Not much. It's a 1-port usb2 hub, with the ability to either a) power off the phone, b) split the power so an external battery pack powers usb devices w/out draining the phone, or c) backfeed +5v into the phone USB host chip to power it Oct 23 03:23:54 because while the galnex/n7 can do usb host w/ power just fine, their batteries drop dead pretty quick if you throw a big usb radio on them Oct 23 03:24:02 moto phones won't do usb host w/out 5v incoming Oct 23 03:24:02 ahh Oct 23 03:24:24 and a bunch of phones, moto included, won't let something as high power as a radio operate w/out a powered hub in the chain Oct 23 03:24:35 so this sort of covers all the points in one board Oct 23 03:24:52 cool Oct 23 03:25:12 ron_frow_: https://lh4.googleusercontent.com/-akjkPU1z2NM/UGDHU_8I1nI/AAAAAAAACjk/wNcmbPu84F4/s720/1348519736633.jpg Oct 23 03:25:17 in my exp with android... moto phones generally are the phones that are a pita and you have to work around stuff for Oct 23 03:25:30 yeah they don't make life easy Oct 23 03:26:07 I'm talking w/ either $newjob or some other folks about making a custom wifi usb radio w/ an OTG host cable integrated, plus the hub and power, and a lipo Oct 23 03:26:21 so you plug the radio in to charge, then when you want to use it w/ the phone, turn it on and plug it in and it "just works" Oct 23 03:27:08 dragorn: regarding global variables staying initialized - it should be possible to explicitly unload the binary Oct 23 03:27:19 I am gonna have some stuff I am gonna need to dig into some new jni... I've done a lot in the platform internals but generally hadnt needed to go creating a ton of jni integration Oct 23 03:27:31 p_l: should be; isn't as far as I could fine Oct 23 03:27:32 find Oct 23 03:27:59 ron_frow_: other than being a bit clunky it's not bad Oct 23 03:28:16 ron_frow_: if you've done reflection it's not so different Oct 23 03:28:25 I just think its a pita... because it feels like a bunch of magic Oct 23 03:28:34 yeah done tons of reflection Oct 23 03:29:07 how would i go about converting androids public key from base64encoded string to a format acceptable by openssl_verify? Oct 23 03:29:46 what format is it before they base64 it? Oct 23 03:30:49 (most ascii key formats are base64 encoded) Oct 23 03:34:43 jni just feels unnatural Oct 23 03:35:01 c++ fine, java fine... the integration point of the both... just odd Oct 23 03:35:27 dragorn did you find every security restriction in android sdk is there with the ndk? Oct 23 03:35:39 eg, still have to request network perms if you want to use network Oct 23 03:35:45 yes Oct 23 03:35:54 barring a few bugs Oct 23 03:36:17 only one comes to mind, I reported it to google a few years ago and they said "will be fixed in 3.0, will not be fixed in 2" Oct 23 03:36:36 namely, 'ping' used l2 sockets to inject pings, which bypassed the network restriction Oct 23 03:37:23 I assume you informed them to help them fix rather than its actually something you need Oct 23 03:37:54 i'm looking for a kernel patch to increase audio volume for htc desire hd. can any of you point me in the right direction? Oct 23 03:38:02 ron_frow_: yes Oct 23 03:38:13 ron_frow_: it's just an interesting artifact; the attack surface is relatively limited Oct 23 03:38:18 To call an activity from a widget's button I can use the following intent: Intent intent = new Intent(context, DK.class);, but what do I need to do if I only want to call one of that Activity's method from the widget's button? Oct 23 03:38:33 yeah so they implemented the restrictions in bionic? Oct 23 03:38:46 ron_frow_: tho if I really wanted, i could write something that had external_storage only, and parsed your photos for gps and leaked your location over ping Oct 23 03:39:16 cyclick2: unless it's a static method you can't call it w/out creating an activity Oct 23 03:39:50 cyclick2: if you want to go directly to some functionality in another activity, you'd have to make an intent that took you there (in the other activity - have it inspect it's creation intent and jump to that mode of operation) Oct 23 03:40:01 ron_frow_: well the network stuff is, afaik, pid+iptables Oct 23 03:40:19 oh thats right Oct 23 03:40:29 actually a LOT of the permission shit works exactly the same way Oct 23 03:40:32 I forgot about that Oct 23 03:40:52 ron_frow_: tho I haven't looked at it in a while. The other restrictions - yeah probably, whatever they jailed each user with. Since anything you exec lives under that wrappered jail Oct 23 03:41:07 ron_frow_: I haven't looked into it heavily Oct 23 03:41:37 I only found that out because of some stuff I fixed, but never realized because package manager hadnt reset-up the permissions Oct 23 03:44:14 thank you dragorn Oct 23 03:49:26 Anyone have time help me with LoaderManager? Mines not watching for changes like it should Oct 23 04:06:42 Would using extras be the easiest way to determine where the intent was called from? Oct 23 04:08:58 probably Oct 23 04:13:51 sorry dragon are you still here? Oct 23 04:13:57 im taking it straight from the developer panel Oct 23 04:14:16 Base64-encoded RSA public key Oct 23 04:18:44 so, if i go to repo upload, and things have been merged since my last rebase, it shows two commits. mine and something that must have been merged recently Oct 23 04:18:56 bleh wrong chan, sry Oct 23 04:24:30 why won't this code to draw on a view on a surfaceview work? Oct 23 04:24:31 https://gist.github.com/bd52ae94f112ee254ec5 Oct 23 04:26:22 any particular reason why an emulator wouldn't have internet access? the host does. Oct 23 04:26:29 it's not in airplane mode Oct 23 04:28:41 ah, it's probably trying to connect via my disconnected ethernet, instead of my connected wifi Oct 23 04:31:28 ron_frow_: http://www.phoronix.com/scan.php?page=news_item&px=MTIxMzA Oct 23 04:31:47 kick ass! Oct 23 04:31:54 I usually read phoronix every day Oct 23 04:32:32 hey guys Oct 23 04:33:35 I'm looking for a way to have a object tree, but disk based Oct 23 04:34:12 for Jake Wharton's LRU Cache looked like what I needed, but it supports string values, I would need to persist objects Oct 23 04:34:25 it supports anything Oct 23 04:34:32 BAM Oct 23 04:34:36 the man in person. Oct 23 04:34:41 the API is a stream Oct 23 04:35:07 Hey JakeWharton, I was looking at the test code as reference Oct 23 04:35:47 the tests use strings for convenience Oct 23 04:36:58 you should use the input stream methods to write whatever you want Oct 23 04:37:20 ok thanks I'll look at it Oct 23 04:45:39 hey did anyone knows an equivalent of iOS's UINotificationCenter in Android?? Oct 23 04:46:07 I wish to update my Fragment from a singleton manager async download Oct 23 04:46:44 otto Oct 23 04:46:54 Hi all, where do Android devs hang out and discuss new features / bugs etc? the bug tracker has been dead for ages, the google groups seem really quiet Oct 23 04:47:05 but thats not part of android frameowrk out of box Oct 23 04:48:17 thanks! Oct 23 05:08:06 cool, jdbm3 is now an apache project. i used jdbm2, that was the bees knees Oct 23 05:08:20 works great with android Oct 23 05:49:12 Hi! I'm using android-maven-plugin. Created project with release archetype. And after added dependency to actionbarsherlock I unable to build entire project. On integration tests it fails to add actionbarsherlock's classes because whey already added. I do not add dependency to integration tests subproject. How to fix it? Oct 23 06:18:51 is there an easy way to set the background color of a checkbox? Oct 23 06:19:00 mines grey on white Oct 23 06:23:30 mrjeff: I don't know how but did you have a look at custom styles? Oct 23 06:24:05 I don't know how familiar you are with that … I'm not at all but it'd be my first guess. Oct 23 06:24:46 I'm not too familiar with styles at all Oct 23 06:25:52 i'm hoping I can just point to the right drawable? i get the right image when using simple_list_item_multiple_choice Oct 23 06:53:40 gat damn do i love me some emulator action Oct 23 07:06:17 damn abs still dies on 4.0+ Oct 23 07:22:32 i'm using this to return the device height and widht http://pastebin.com/JX0tDgCY. it works fine on my htc desire z, but on my tab 10.1 the height shows up as 1232*800, when i'm looking for 1280*800. i'm guessing it returns the total height minus the ics navigation bar, while i want the height for both combined Oct 23 07:22:50 desire z was on gingebread,m tab 10.1 on jellybean Oct 23 07:26:26 f2prateek: you can't change the nav bar anyway, so why bother? Oct 23 07:26:37 f2prateek: you could hard-code common values and detect your orientation as well ;) Oct 23 07:27:00 ,oO( also, totally off-topic: is there any device available in europe that can replace the good old desire z? ) Oct 23 07:28:58 f2prateek: i dont actually need it it to draw a view or anything, its so that the app automatically selects a device with matching dimensions from the available list for the user (http://bit.ly/ORuWAv) Oct 23 07:29:27 Ge0rG: what do you mean hardcode common values? like automatically interpret 1232 as 1280? Oct 23 07:30:12 f2prateek: exactly Oct 23 07:31:21 might work, but if user is on custom rom then it wont work right? i know in AOKP you can change the hiehgt of the navbar so it could really be anything Oct 23 07:32:29 f2prateek: nice app :D Oct 23 07:32:52 f2prateek: but don't screenshots have the full screen res anyway? just look at the screenshot resolution... Oct 23 07:33:03 thanks, still lots to be done though :) Oct 23 07:36:10 yeah, but then that takes away option from the user, since i have to check it every time user pick a screenshot and there can be multiple device with the same size (eg: htc one x, galaxy nexus, galaxy s3), so either a) i have to prompt them for every picture, or b) automatically choose one for them, whichc means it will could end up using a deivce user didnt want Oct 23 07:37:02 all i'm trying to do is get the device size of the current deivce, find a device with matching size and set it as default the first time user runs the app Oct 23 07:37:20 after that if its not the one that they wanted, they can simply change it Oct 23 07:37:38 rather than do it for every pic Oct 23 07:41:25 hi Oct 23 07:41:47 is there an option in galaxy s3 to not lock screen while usb connected ? Oct 23 07:41:51 and where is it Oct 23 07:50:24 maybe you lock screen through services or in android manifest Oct 23 07:51:43 evelyette: maybe look at the keep screen awake setting Oct 23 07:51:48 its under developer options Oct 23 07:57:38 have You had problems with asyncTask during invoking doInBackground? i am trying to download a file, but do this in a loop, waiting for tasks to be completed. seems i close the streams, but during reading data from last file it stops Oct 23 07:58:26 its rather network sending data question, i connect through http Oct 23 07:59:24 ok thanks it works now Oct 23 08:03:41 i have file in 10.1.1.7 on server. i try to download a file and it hungs during a connection. why?sometimes works sometimes not. Oct 23 08:16:17 is there a simple way to spot open cursors in android? i cannot find the cursors that cause this warning: Cursor finalized without prior close() Oct 23 08:24:02 siyb: just log everywhere you obtain one and where you close them Oct 23 08:26:53 mr6: that seems like a very inconvenient and painful task, isn't there a better solution? i cannot understand that there is no stacktrace indicating where the cursor was opened. i suspect changeCursor(...) to be defective (v4 supportlib) Oct 23 08:27:54 guys, I have just started to learn how to develop for android. so I was wondering, is there anyway to write game without using this 9pixel thing? Oct 23 08:29:02 do you mean 9patch? Oct 23 08:29:21 siyb: yes. Oct 23 08:29:26 and yes, you can write a game without using 9patches Oct 23 08:29:35 your question doesn't make any sense to me btw Oct 23 08:30:07 it's like saying can i eat a breakfast egg without drinking orange juice Oct 23 08:31:13 I thought there will be some stretching mechanism so if I use something like drawImage(). and my game runs mainly for 1024x600. it will be scaled\streched to work on 1024x768 or even 800x480 etc. Oct 23 08:32:17 anthony_dev: the stretching can also be done with bitmaps, but then it is really stretching. You use 9path images, if you don't want to stretch your image, but want to extend it "clever", like enlarge only the body of it, but leave the corners the same Oct 23 08:32:27 siyb: my other suggestion is to code better Oct 23 08:32:51 hmm Oct 23 08:34:39 hy all Oct 23 08:34:54 timroes: thank you. I'll read more about this subject. Oct 23 08:34:59 siyb: seriosuly though, i have seen stacktraces that indicate where the cursor was opened Oct 23 08:35:29 mr6: well i only get warnings and i don't see where the cursor could still be open Oct 23 08:35:39 unless changeCursor doesn't do its job properly Oct 23 08:35:48 anthony_dev: do you want to make some real-time game or some round based/puzzle/what ever not needing 30fps game? Oct 23 08:36:04 how can I set the background color of the application? Oct 23 08:36:26 siyb: verify by closing it before calling change cursor Oct 23 08:36:30 that is valid anyway Oct 23 08:37:44 mr6: hmm i could do that, but the app is pretty big, will take a long time ;) Oct 23 08:38:12 but thanks for the suggestion Oct 23 08:39:02 heh well it's what i'd try. I assuming you're not using ms notepad to write code so you probably can use search and replace functionality. Oct 23 08:39:34 timroes: I already have in some way simple and not finished engine for (whoa!) j2me devices. so I thought it will be nice to convert that thing for android, because j2me has issues with music and sound effects. yes. I need fps and its kind of realtime engine (actually you can switch between rpg like mode and arcade) Oct 23 08:40:10 gregtom6: use a magic marker on your screen. good luck. Oct 23 08:40:26 okay, if you are coding the engine you, will need to read a lot about android :) otherwise I would have recommended, taking a look at andengine (an android gaming engine) Oct 23 08:41:00 and for real time games under android I would highly recommend you, to use OpenGL ES, instead of using the android Canvas stuff Oct 23 08:41:16 i recommend andengine Oct 23 08:41:47 mr6: that's a foreground color though :p Oct 23 08:43:41 siyb: it's fg and bg imo ;> Oct 23 09:00:35 timroes: got any suggestions "which books to read" or something like that? because I dont like how they develop a game in Practical Android 4 Games Development (from Apress) book but it is seems the best what I found on my local market. Oct 23 09:01:58 i neither have found any really good book, but the developer documentation of android is in my opinion good enough on all topics, to make the last step yourself, (especially, if you allready developed some game framework) Oct 23 09:02:09 can I use android:background in the manifest? Oct 23 09:02:19 if yes, how? Oct 23 09:02:25 can't find any example Oct 23 09:02:40 not in the manifest, but in the layout Oct 23 09:02:50 timroes: well, thanks :} Oct 23 09:03:13 You can apply a layout to an activity, like such Oct 23 09:03:23 android:theme="@style/MyStyle" > Oct 23 09:03:23 where is the layout? in every activity? Oct 23 09:03:32 You can apply that in the manifest to the whole application even Oct 23 09:03:39 okay, but I don't want a style Oct 23 09:03:45 in your values folder, you have a styles.xml Oct 23 09:03:49 I could set theme to the application Oct 23 09:04:07 should I define a style? Oct 23 09:04:10 yup Oct 23 09:04:16 define a style in styles.xml with Oct 23 09:04:18 I want only a green background Oct 23 09:04:23 okay Oct 23 09:04:36 "#00FF00" Oct 23 09:05:09 styles are a tad tricky if you want backwards compatibility Oct 23 09:07:03 What's your min SDK version? Oct 23 09:07:07 and what version are you compiling with? Oct 23 09:13:06 Tee_Pee: I don't know, 2.2 I think Oct 23 09:13:25 I want a solution what will be okay in every other Android version Oct 23 09:14:05 here's what you want then Oct 23 09:14:29 in your res folder, you should have a values subfolder, as well as values-11 and values-14, correct? Oct 23 09:15:20 res has values, menu, layout folders, and drawable folders Oct 23 09:16:12 How can I check if I'm doing a debug or a release build with ant? build.mode.debug does not seem to be working anymore Oct 23 09:16:45 alright greg, in that case, create a XML file called colors.xml in it Oct 23 09:16:58 (in values) Oct 23 09:17:02 Tee_Pee: okay Oct 23 09:17:41 and in it, you write #00FF00 Oct 23 09:18:00 just substitute the values with your real ones obviously Oct 23 09:18:38 Next up - create an xml called styles.xml (if it doesn't exist already) Oct 23 09:18:56 and in it, you write this: Oct 23 09:20:07 http://pastebin.com/y1hnE97W Oct 23 09:20:53 okay Oct 23 09:21:04 lastly, in your manifest, you apply the android:theme="@style/MyTheme" attribute to any activity (or the entire application) Oct 23 09:22:02 I couldn't write hex number values in the styles.xml, so this seems to be the only way to do this I think :) Oct 23 09:22:32 couldn't you just set android:background in activities layouts? Oct 23 09:22:44 how many activities you have? Oct 23 09:23:10 You could, but this is a better practice overall. Oct 23 09:23:30 It's a few extra steps, but it's neater :p Oct 23 09:23:36 yes it is, you set once for all:) Oct 23 09:23:37 okay Oct 23 09:24:13 is it through inheritance? all options in styles go to all layouts? Oct 23 09:24:47 nope, but if you say Oct 23 09:25:33 android:theme="@style/MyTheme" in the application section of the manifest file (Right below the android:icon, before the first ) Oct 23 09:25:34 Tee_Pee: before you said this colors.xml thing, I tried this in styles.xml: http://pastebin.com/vASbvSaQ and it said "error: string types not allowed bla bla bla" Oct 23 09:25:38 it will apply to the entire application Oct 23 09:26:12 yeah I know, you can't set string values there... to tell you the truth I don't even know how you'd hard-code a hex value into there, but it's irrelevant as you should always separate it :p Oct 23 09:26:25 so I don't know how would that previous solution be good Oct 23 09:26:42 :D Oct 23 09:26:45 okay Oct 23 09:28:17 apparently, you just code it like #000000 without the quotation marks. Oct 23 09:29:27 thats great idea with styles, like css styles for entire document lol Oct 23 09:30:25 that's the point :p Oct 23 09:30:29 However, Oct 23 09:30:35 Tee_Pee: error: unable to start activity componentinfo nullpointerexception Oct 23 09:30:36 wow Oct 23 09:30:42 If you want to make sure your app looks correct on API levels 11+ and 14+ Oct 23 09:31:03 pastebin the stacktrace. Oct 23 09:31:25 hey guys I got a strange issue. I have one main activity and a 2nd activity wich is used to scan NFC-Tags. So when I read a new tag I call finish in the 2nd activity and pass the uID via putExtra() to the mainActivity. The mainActivity calls onActivityResult(). The strange thing is that onActivityResult() is never called. It seems like calling finish in the 2nd Activity doesn't work for me. Oct 23 09:31:55 grr trying to port some obj-c to android Oct 23 09:32:03 but i suck at obj syntax Oct 23 09:32:10 couldn Oct 23 09:32:38 did you actually call setResult() in the 2nd activity? Oct 23 09:32:41 couldn't you just finish second activity, put exstra and read intent in first? you would have first working and second would be finished Oct 23 09:32:49 yes I did Tee_Pee Oct 23 09:32:55 Tee_Pee: http://pastebin.com/CAKaNWgP Oct 23 09:33:08 and did you call the 2nd activity via startActivityForResult() rather than startActivity() Oct 23 09:33:55 yes Tee_Pee it seems like it doesn't even finish my NFC-Activity Oct 23 09:34:06 gregTom6, what is in line RoboLOGO.java:63 Oct 23 09:35:50 pacior: btn_connect.setOnClickListener(new View.OnClickListener() { Oct 23 09:36:00 Cook13 - Afraid I'm not exactly sure what would cause that... You tried logging the codepath I take it? Oct 23 09:36:33 greg - btn_connect isn't initialized. Oct 23 09:36:41 I want to display multiple buttons on the screen and associate each one of them with an object in a HashMap .. How can I do so ? Oct 23 09:36:49 hence the null pointer exception :p Oct 23 09:36:54 Tee_Pee , is it possible that pendingIntent could cause it? Oct 23 09:37:02 I use it in the NFC Activity Oct 23 09:37:29 greg: try extracting it from layout through casting to Button class Oct 23 09:37:57 Cook13 - Honestly, beats the shit out of me. :p Oct 23 09:38:13 CVirus: put buttons in gridview using adapter Oct 23 09:38:26 Tee_Pee: It works with another theme Oct 23 09:38:45 what android version are you running your app with? Oct 23 09:38:56 Tee_Pee: if I change the style the problem will occurs, with the old style it works Oct 23 09:39:08 pacior: I don't want to use a gridview .. the buttons will be shown on a camera preview on different locations Oct 23 09:39:15 pacior: accroding to the sensor data Oct 23 09:39:16 Tee_Pee: 2.3.3 Oct 23 09:39:50 pacior: what do you mean? Oct 23 09:39:57 cvirus: do you have them in layout Oct 23 09:40:14 pacior: a relativelayout yeah Oct 23 09:40:36 gregTom6: Button btn_connect = findViewById(R.layout.id.button2); Oct 23 09:40:52 gregTom6:and then senonclicklistener Oct 23 09:41:29 so just but the "layout" word in that? Oct 23 09:42:15 for each activity you have layout assigned which is stored in file res/layouts regular xml file. Oct 23 09:42:32 read about creating activity in adroid developers website Oct 23 09:43:21 pacior: but it worked for me with a default style Oct 23 09:43:40 why it doesn't work now? Oct 23 09:45:25 read about observer pattern in java Oct 23 09:46:38 pacior: I don't want to read a lot because of changing a background color :) it seems to me like creating an elephant from a mouse Oct 23 09:48:16 at least you wrote that for me? or for another person? Oct 23 09:49:33 damn Oct 23 09:49:33 paste entire code of robologo method containing line 63 Oct 23 09:49:39 i need someone who know obj-c and android Oct 23 09:49:46 properly stuck ;/ Oct 23 09:51:48 gregtom: then i will write it for you and others, ist not a secret Oct 23 09:54:08 pacior: I spoke with my friend, I remembered it could solve a very easy way Oct 23 09:54:30 inside LinearLayout tags: android:background="#FFFFFF" Oct 23 09:54:36 it's the simplest way Oct 23 09:55:44 styles and colors.xml are unusable only for changing a background color, if I have a lot of problem caused by this Oct 23 10:06:50 whats the best way to communicate between service and activity. The service makes network calls Oct 23 10:07:05 should I offload it to a database Oct 23 10:07:17 ali__: depends on the type of state you want to communicate Oct 23 10:07:52 ali__: for things like connection status you can bind the service; if you want to "ping" in either direction without an answer, you can send broadcasts Oct 23 10:08:50 well my case the service makes calls to a remote webservice and that data changes frequently Oct 23 10:09:11 I need a way to send the parsed data back to the activity Oct 23 10:11:46 Ge0rG: I think I'm going to stick with the database approach. That way I can support offline mode as well.Thanks! Oct 23 10:12:18 ali__: yeah, offline mode is a great idea Oct 23 10:12:35 sounds awful for batterylife to query a server frequently :) Oct 23 10:12:35 ali__: also, please do not create a "downloading stuff" progressdialog which blocks everything :D Oct 23 10:13:03 Ge0rG: I hear you! I hate that stuff as well Oct 23 10:24:08 this might be a stupidly obvious question but anyway: Oct 23 10:24:30 if I register listener for GPS location in service, do I have to keep a CPU wakelock on to get updates while phone is locked? Oct 23 10:25:09 Mavrik: no Oct 23 10:25:21 Mavrik: you'll get proper updates without a wakelock Oct 23 10:25:38 Mavrik: I'm using the periodic GPS updates in my app to wake up the app every half an hour or so Oct 23 10:26:13 Ge0rG: thanks :) Oct 23 10:26:47 that reminds me, is there an app that will report which apps have wakelocks, so I can find these retarded apps and uninstall them? Oct 23 10:27:57 pragma-: there is a cryptic pm command to see the active wakelocks, iirc Oct 23 10:28:06 pragma-: on newer Android (like 4.0+) you'll get those apps shown in battery usage screen Oct 23 10:28:16 if they lock CPU for noticable amount of time Oct 23 10:30:35 we enter "I want my device to do millions things without ever consuming any CPU" territory here Oct 23 10:31:43 no, it's "i want my device to do certain things while i'm actively using it instead of when it's in my pocket and i don't care about it anymore" Oct 23 10:35:34 save state in database, so user can switch battery ( e.g. during walking in mountains ) Oct 23 10:38:26 Mavrik: when the battery app says the cell radio has been running x hours, is that just idle time, or actual time it spent transmiting something (a ping, data, anything) Oct 23 10:39:46 clever: IIRC it's the actual active time of radio but it could vary between android versions :\ Oct 23 10:40:16 what exactly is considered 'active' though? Oct 23 10:42:53 clever: sending data, receiving data, transmitting control data (switching cells, SMSes, establishing data connections) Oct 23 10:43:16 ah, so it should be usefull, if its fully working Oct 23 10:43:59 ive wondered if it would be feasible to put an actual current measurement sensor on each module, but that would depend on the hardware design and drive up costs too Oct 23 11:22:09 how about progressDialog? i show it on my listener using show() but it doesn't show. it is in method of asynctask which is invoked. Oct 23 11:22:14 whats the best way of making a type liek tyepdef in android? i just wanna do a wrapper i guess aorund int somehow, inherit from Iteneger? Oct 23 11:22:44 when i invoke on OnCreate it works, otherwise ( later ) no. Oct 23 11:23:09 int doesn't inherit Oct 23 11:23:15 bugger Oct 23 11:23:16 try Integer.valueOf Oct 23 11:23:39 im trying to make a type Oct 23 11:23:42 based on thi obj-c Oct 23 11:23:43 typedef unsigned int TSPathVertexPosition; Oct 23 11:23:56 so i want a type TSPathVertexPosition that is basiclaly an int Oct 23 11:26:52 so this is a wrapper. you can inherit from some numeric interface maybe? Oct 23 11:27:16 hey guys I have Activity A which calls Activity B (ActivityForResult). Activity B starts a PendingIntent for the NFC-Sensor. When I read a NFC-Tag in Activity B the result should be passed to Activity B by the method onActivityResult. Is it possible that the callback doesn't work because of PendingIntent? Oct 23 11:29:52 Cook13: erm... what does "starts a PendingIntent" mean? do you mean the result should be passed back to Activity A? Oct 23 11:32:26 Leeds I do this in activity B: pendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0); I'm not sure what it exactly does since the android doc doesn't explain that in the NFC-tutorial. And yeah the result should be passed to Activity A Oct 23 11:32:40 I'm pretty sure that pendingIntent is the reason for not finishing activity B Oct 23 11:32:52 (I call finisch() in activity B) Oct 23 11:32:58 *finish Oct 23 11:33:01 that line you quoted doesn't do anything at all Oct 23 11:34:13 I use this in onResume in Activity B mAdapter.enableForegroundDispatch(this, pendingIntent, intentFiltersArray, techListsArray); Oct 23 11:34:49 no point quoting random lines from your code when you don't really know what they do Oct 23 11:36:08 Leeds, I worked through the NFC Android tutorial by google and didn't understand everything. That's why I'm asking =) Oct 23 11:38:23 heya all Oct 23 11:41:55 I have a ClassNotFoundException which I cant track down, its telling me that my Activity_Start. but it is marked in the manifest as android:name=".Activity_Start" and when I control+click it it takes me to the class, I'm compleatly lost Oct 23 11:43:15 try to debug Oct 23 11:43:26 it does not start though Oct 23 11:43:35 when i click debug it crashes instantly Oct 23 11:43:40 write numbers line by line Oct 23 11:43:48 no, write to console Oct 23 11:44:02 in onCreate first line, and second and so on Oct 23 11:44:24 k will try Oct 23 11:44:48 Hello, I have listView over VideoView, the problem is the focus. after app is loaded the focus goes to videoview, but i need to have focus on listview any suggestions? Oct 23 11:44:50 it doesnt even get to onCreate Oct 23 11:45:21 it just crashes with this Oct 23 11:45:22 10-23 13:44:55.115: E/AndroidRuntime(9791): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.richard.aau.rebound.tracker/com.richard.aau.rebound.tracker.Activity_Start}: java.lang.ClassNotFoundException: com.richard.aau.rebound.tracker.Activity_Start Oct 23 11:45:25 clean project Oct 23 11:45:27 tried Oct 23 11:45:30 no change Oct 23 11:45:52 Is it possible to add views in code to the row view in the getView method of an arrayadapter? Oct 23 11:46:36 how can I set the general application screen size? Oct 23 11:46:36 RichardS:check android manifest? Oct 23 11:46:45 thats where i thought the problem was Oct 23 11:46:51 i want a unified size for all layouts? Oct 23 11:46:53 but i cant see an error there, let me pastebin it Oct 23 11:46:56 here is xml of my layout http://pastebin.com/bXr3x6g8 Oct 23 11:47:20 lasserix: i did so to the dridview in adapter getView method in class having arraylist Oct 23 11:47:32 pacior cool Oct 23 11:47:34 thanks Oct 23 11:47:44 heres my manifest Oct 23 11:47:45 http://pastebin.com/LSSmk9F5 Oct 23 11:47:49 i cant see any errors? Oct 23 11:48:21 and Activity_Start is the class which it says is missing, but it is not Oct 23 11:48:23 superlinux-hp: you have four different sizes Oct 23 11:48:48 when i control click it, it takes me to the Activity_Start class Oct 23 11:49:00 pacior, i mean from the manifest can i do that? Oct 23 11:49:20 richards: could you remove Oct 23 11:49:29 k, checking Oct 23 11:49:37 richards: othervise describe it properly Oct 23 11:50:12 superlinux-hp just set width and height in dp to minimum expected Oct 23 11:50:32 same error Oct 23 11:53:52 superlinux-hp: erm, you know your app is going to run on different sized (physical and resolution) screens, right? Oct 23 11:53:56 richards: android:name="Activity_start" instead of long package name in manifest Oct 23 11:54:05 already tried, same error Oct 23 11:54:27 Leeds, that's what's making my boss crazy! Oct 23 11:54:56 on Samsung Geo everything works fine Oct 23 11:55:06 on S3 no Oct 23 11:55:24 i get heaps of crashes Oct 23 11:55:52 then debug the crashes Oct 23 11:56:00 and on Geo : i can see the grid view Oct 23 11:56:05 on S3: i don't Oct 23 11:56:12 Leeds, i did Oct 23 11:56:32 but that's weird about the gridviews of images Oct 23 11:58:15 could you getmetrics and get width and height of device? Oct 23 11:59:28 superlinux-hp: you're not making much sense... Oct 23 11:59:55 i am telling you what's happening to me Oct 23 11:59:58 hi, i have a problem with background layout. I have this layout http://pastebin.com/UUVPRnnf and this 9png background https://www.dropbox.com/s/spnizexd5munppe/ballondiary.9.png Oct 23 12:00:06 Leeds, got me? Oct 23 12:00:15 no, absolutely not Oct 23 12:00:33 Result is here https://www.dropbox.com/s/u64cbiy40vf1qqb/risultato.png TextView have a top margin Oct 23 12:01:04 i don't understand because layout have this topmargin Oct 23 12:01:05 but i press where they are supposed to be in the grid and i get the event of clicking working Oct 23 12:03:47 you want padding Oct 23 12:13:41 how to enrypt entire code? can i put private key in java file to decrypt files needed by my application? Oct 23 12:14:01 how simple is decompiling apk file? Oct 23 12:15:20 you want to use progaurd Oct 23 12:15:51 but there is no way to completly "safeguard" your code or any data Oct 23 12:15:56 you can make it very difficult Oct 23 12:16:19 thanks Oct 23 12:16:36 *You can make it difficult, this is called obfuscation Oct 23 12:18:58 lasserix: yeah i found this. do you know if it changes strings names too? Oct 23 12:19:13 sorry. strings values Oct 23 12:20:26 Can I access logcat messages on my device somehow that happened in the past? I really rarely notice a bug in an app and would like to find out, what exactly crashes. All apps I found that log the logcat don't allow me to go back a few minutes to see earlier messages... Oct 23 12:21:09 evident: ctrl+a, save as and open in notepad Oct 23 12:21:53 hi Oct 23 12:22:25 is there a getDimensionPixelSize where i can give a namespace string? Oct 23 12:22:26 evident: AFAIK it's a buffer - it only goes back so far Oct 23 12:24:05 sure saving logcat out of eclipse works fine, I don't need to go back very far... but I don't want it when I am connected via adb... Oct 23 12:24:27 I've found some apps taht save the logcat, but only when these apps are running and visible... Oct 23 12:24:39 But I guess I will have to check some more... :) Oct 23 12:26:47 did anybody experience the datepicker/timepicker on a sony ericsson with white text on white background? Oct 23 12:27:20 ... and if yes, is there a non-hacky way to get this look acceptable like on all other devices? ;) Oct 23 12:51:33 is there a way to get the id of a view from a library? Oct 23 12:51:41 e.g. by a string Oct 23 12:52:32 the IDs are not exactly strings, but you can pass an instance of R.id and maybe use introspection to look up the ID against it Oct 23 12:52:39 sorry, not pass an instance but pass the reflection of R.id Oct 23 12:52:41 int resID = getResources().getIdentifier("button_%i", "id", getPackageName()); Oct 23 12:52:49 got it ; Oct 23 12:57:36 anyone can help me Oct 23 13:00:38 pepigno75, your question? Oct 23 13:01:51 i have this layout http://pastebin.com/UUVPRnnf Oct 23 13:01:55 simple RelativeLayout Oct 23 13:02:09 and? Oct 23 13:02:10 background is this https://www.dropbox.com/s/spnizexd5munppe/ballondiary.9.png a 9png Oct 23 13:02:26 i have result: https://www.dropbox.com/s/u64cbiy40vf1qqb/risultato.png Oct 23 13:02:34 can I set using code the wallpaper without making it stretched on multiple screens? Oct 23 13:02:35 there is a topmargin Oct 23 13:03:11 superlinux-hp: huh? Oct 23 13:03:23 lov, yes Oct 23 13:03:37 superlinux-hp: your question doesn't make any sense. Please try again. Oct 23 13:03:48 pepigno75: get to the point. Oct 23 13:04:19 lov, he means that he wants to set a wallpaper without it being stretched on multiple screens Oct 23 13:04:20 pepigno75: if you're not sure what's affecting your layouts, try using hierarchyviewer Oct 23 13:04:26 but stretched from one end to another? Oct 23 13:04:26 if i use background ballondiary.9.png content of RelativeLayout have a topmargin Oct 23 13:04:40 lov, what i want is to set the wallpaper programatically . but i want the wallpaper not scrolling after setting it. Oct 23 13:04:54 hmm. Oct 23 13:05:11 i can set it using code. but i cannot hold the scroll Oct 23 13:05:17 sorry, I don't know how that's handled. I'm assuming that you'll have to take the device display height/width and scale appropriately to your crop size. Oct 23 13:05:52 lov all the images are set on a default size. Oct 23 13:06:08 on a chosen well known size Oct 23 13:06:22 superlinux-hp: ok. Sorry, I don't know enough about this to help you out :( Oct 23 13:06:36 ok.. thanks mate Oct 23 13:06:41 i understand Oct 23 13:06:47 this is strange, because if png is background why content of RelativeLayout have margins? Oct 23 13:07:07 ah damn Oct 23 13:07:20 wrong channel... thought this was a linux help channel so i gave that answer, sry Oct 23 13:07:22 can you set margintop to -10dp? Oct 23 13:07:26 od padding? Oct 23 13:07:39 pacior is a bad solution Oct 23 13:08:57 no i am a human beeing, thanks for advertisement:) Oct 23 13:09:50 eheh Oct 23 13:16:05 I have a textview with a compound drawable, which right now appears rather small... is there any way to control the size? Oct 23 13:16:23 I set it programatically via textView.setCompoundDrawablesWithIntrinsicBounds(new BitmapDrawable(mContext.getResources(), avatar), null, null, null); Oct 23 13:26:45 God... Perhaps someone remember what method you call for this, I knew it the other day but can't recall where I read about it Oct 23 13:27:02 normally the viewpager keeps only the 2 adjacent fragments in memory... but there's a way to increase that Oct 23 13:28:00 setOffscreenPageLimit Oct 23 13:28:04 setoffscreenpa... yeah :) Oct 23 13:29:10 View.AccessibilityDelegate cannot be resolved to type Oct 23 13:29:13 compiling against API level 15 Oct 23 13:29:16 fuck you ADT. Oct 23 13:33:15 I can set this in styles, but is there a way to set android:panelFullBackground in code? Oct 23 13:53:33 I have a popup window that is showing a webview. If I call loadUrl on the webview, sometimes the data doesn't load. Know what the deal is with that? Oct 23 13:54:48 So... I get a funny crash - I have an activity, in it I execute an asynctask and implement an onSuccess and onFailure method. In the onFailure method I want to show a dialog showing that the operation failed. However, here's the scenario Oct 23 13:55:27 Open activity, asynctask starts, finishes, error pops up <---this is fine Open activity, asynctask starts, close activity, asynctask finishes, application crashes Oct 23 13:55:52 you need to check if the activity is null Oct 23 13:56:00 are you in a fragment? Oct 23 13:56:17 nope Oct 23 13:57:09 well what exception you getting? NPE? Oct 23 13:57:38 I honestly can't recall, I just remembered that it happened 2 days ago, haven't had time to recreate it today Oct 23 13:57:43 but I imagine it's a NPE Oct 23 13:58:12 I know that a view has method isActive(), but that requires api level 11, and I'm in activity anyhow Oct 23 14:00:51 hello Oct 23 14:08:28 Tee_Pee: cancel the asynctask in onPause, check for canceled before showing the dialog Oct 23 14:08:58 tee_pee why not use an asynctask loader Oct 23 14:09:03 it'll handle life cycle stuff for you Oct 23 14:10:12 you know? cause its always so much fun to refactor Oct 23 14:10:29 +1 Oct 23 14:10:40 lasserix - I probably ought to implement a loader one of these days... Oct 23 14:10:57 Gotta finish up all the actual content of the application, then I'll work on optimization and debugging. Oct 23 14:12:29 in asynctask i have public variable finished and checking in in a while loop Oct 23 14:12:53 additionally running all class in a looped handler Oct 23 14:13:00 pretty nice huh? Oct 23 14:17:09 no its not nice. do you know how to solve synchronization with dialog? Oct 23 14:21:41 hello, where can I find the source for adbd? Oct 23 14:21:58 system/core/, I believe Oct 23 14:23:51 That seems about right, thank you. Oct 23 14:25:57 polomolo777: shalom Oct 23 14:27:16 oy vey Oct 23 14:36:30 polomolo777: what are you working on with adb? Oct 23 14:41:33 I worked for nokia, we are developing ndb and i needed some reference. Oct 23 14:42:27 polomolo777, why didn't nokia choose android? Oct 23 14:42:46 polomolo777, wait sry there are nokia android phones Oct 23 14:43:56 polomolo777: ah, cool Oct 23 14:44:01 wei2912: there are nokia android phones? Oct 23 14:44:08 there are no Nokia Android phones Oct 23 14:44:24 Anyone here ever use SlidingMenu, I'm having issues getting it working Oct 23 14:44:39 timroes, last time i believe, but not now Oct 23 14:44:41 it's all running fine, just not actually doing the slide Oct 23 14:45:11 after i read an article... so now to rephrase my question - why is nokia abandoning android? Oct 23 14:45:26 because they want to ruin their company? Oct 23 14:45:36 timroes, ah sry it is a hacked version lol Oct 23 14:45:40 http://www.ubergizmo.com/2012/08/nokia-n9-runs-on-android-4-1-jelly-bean/ Oct 23 14:45:58 i mean look at their sale figures, and stocks Oct 23 14:49:01 Nokia has a very vast legacy, "going under" with android is not they way to survive as a company that only develops cellular phones(look at HTC's figures). Oct 23 14:51:23 I have a question: constructor Oct 23 14:51:23 I do this: Oct 23 14:51:23 String mlat = String.valueOf(latitude); Oct 23 14:51:23 start a AsyncTask: Oct 23 14:51:23 new PostData().execute(mlat); Oct 23 14:51:23 but wenn I put it here: Oct 23 14:51:24 nameValuePairs.add(new BasicNameValuePair("lat", mlat)); Oct 23 14:51:24 it is Null Oct 23 14:51:42 what is wrong? Oct 23 14:52:41 Hey all :) newbie android dev here Oct 23 14:53:00 does anyone know of an eclipse tool to convert a string literal in my code to a reference and a new string in strings.xml? Oct 23 14:53:10 thereby saving me some typing :3 Oct 23 14:54:02 if there is, let me know ;P Oct 23 14:54:03 lol wait... Oct 23 14:54:06 I thin it's built in Oct 23 14:54:49 well kinda, but it doesn't replace it in your code Oct 23 14:54:58 better than nothing though Oct 23 14:58:31 matt_j: Source -> Externalize Strings... ? Oct 23 14:58:51 dot8: gist.github.com, paste full code Oct 23 15:00:46 Hi, I have my imei number can someone recommend a free site to unlock my phone? Oct 23 15:01:30 Newb101: not here, please leave Oct 23 15:02:17 tophyr: https://gist.github.com/3939259 Oct 23 15:02:24 tophyr: yeah, that's close to what I want. I was hoping it'd convert my existing highlighted code to a getString(...) for me ;) Oct 23 15:02:42 Leeds, your every where cant get away from you Oct 23 15:02:47 correct Oct 23 15:03:04 matt_j: Ah :) sounds like a decent project for a contribution to AOSP/ADT ;) Oct 23 15:03:11 haha Oct 23 15:03:11 like nightmare on elm street Oct 23 15:03:13 I'm a newb Oct 23 15:03:14 Leeds is like Jesus Oct 23 15:03:18 converted to the dark side from iOS Oct 23 15:03:19 everywhere and nowhere Oct 23 15:03:24 freddie krugger Oct 23 15:03:28 at work I will be the only guy here who knows both :D Oct 23 15:03:31 tophyr: I help those who help themselves? Oct 23 15:03:36 Leeds: that too Oct 23 15:03:42 matt_j: makes you very valuable :) Oct 23 15:03:46 yeah :D Oct 23 15:03:51 got 5 weeks to make an enormous project Oct 23 15:03:59 so I will basically become a guru in 5 weeks :D Oct 23 15:04:00 woo Oct 23 15:04:07 heh Oct 23 15:04:15 i wish i had time to put on an enormous project :( Oct 23 15:04:28 i really want to make a game Oct 23 15:04:40 I would've though that setting a view's visibility to GONE and notifying an adapter would remove it from being displayed but it doesn't. Is there a better way? Oct 23 15:05:01 UIViewController!=Activity is the only thing I can say Oct 23 15:05:33 and design your app with fragments from the start, don't think you can easily add them later Oct 23 15:05:37 matt_j: GL with it :) loads of fun. biggest tip i have for the iOS->Android transition is do not underestimate the testing workload. the fragmentation of the android devices provides for a LOT of "wtf?!" moments compared to iOS Oct 23 15:06:20 not only device size differences, but the various versions of Android and especially the varying preloaded apps, can cause you a load of headaches if your app does any inter-app comm via intents Oct 23 15:06:46 matt_j: does that mean we're going to see you around a lot Oct 23 15:07:09 frankbro|work: gone has always removed it from the view for me Oct 23 15:07:43 dragorn: even adapter? Oct 23 15:07:58 I did the notify thing too Oct 23 15:08:31 what are you trying to remove it from? Oct 23 15:08:34 frankbro|work: i've never had a view not disappear when i set it to view.gone, but maybe not in the same situation you're in Oct 23 15:08:56 Leeds: a custom ArrayAdapter Oct 23 15:09:16 which is displaying in? Oct 23 15:09:21 dot8: your PostDataActivity.mlat variable is not the same as your mlat variable inside onClick() Oct 23 15:09:37 Leeds: a relativelayout Oct 23 15:09:42 you need to set it from the 'params' variable. bone up some more on Java and how variables and scope work Oct 23 15:09:56 why are you using an adapter for a relativelayout? Oct 23 15:10:10 ... and, *how* are you using an adapter for a RL Oct 23 15:10:19 yeah, that too Oct 23 15:10:41 Leeds: to place several things around it Oct 23 15:11:08 wait its an adapterView Oct 23 15:11:08 so you're just using it as an array? Oct 23 15:11:15 okay, bored now Oct 23 15:11:39 relativelayout holds the AdapterView, sorry Oct 23 15:12:32 still doesn't make any sense, but good luck with that Oct 23 15:12:38 AdapterView is abstract i thought. what actual *view* are you using? Oct 23 15:13:43 tophyr: thx, I will have a look on it Oct 23 15:14:21 tophyr: https://github.com/vieux/Android-Horizontal-ListView Oct 23 15:14:44 Leeds: possibly lol Oct 23 15:14:55 maybe not now since I work with a guru, but later perhaps :) Oct 23 15:15:06 ah... oh well :) Oct 23 15:19:42 whoa actually extract string did do a getString Oct 23 15:19:43 woo Oct 23 15:35:55 OpenGLES is easier to program than canvas... agree? Oct 23 15:40:48 I'm sure this is a FAQ, but Googling around hasn't yielded much in the way of a concrete answer. Is there some sort of accepted design pattern framework (MVC/MVP) and testing platform? Oct 23 15:44:34 Hey, I have a quick question. I keep forgetting the workaround for this issue: if I have two elements in a layout XML that reference each other, what special syntax do I use? For instance, a Button has layout_above="@id/the_text_view", and TextView has nextFocusDown="@+id/the_button". No matter which one I define first, lint whines that it can't find the other one (an issue that was solved years ago with respectable parsers). Do Oct 23 15:46:50 hi, Im a android newb, yaaaaaay :) Oct 23 15:47:16 xlinearx: @+id/someId defined someId if it doesn't otherwise exist. @id/someId refers to an already-existing ID Oct 23 15:48:18 I m working on an existing project, trying to understand how pngs are pulled into the project, I don't see the png file referencd ANYWHERE, its weird Oct 23 15:49:14 ubert_mac: are they not in the res directory, probably res/drawables(-something)? Oct 23 15:49:29 AHHHHHHH it references them without .png extension, so i cant find with search Oct 23 15:49:53 they are, but Im trying to see how they get pulled into the code Oct 23 15:50:13 are you asking how Android code references images? Oct 23 15:51:08 yes, starting to understand though Oct 23 15:51:22 apparently they are turned into reference able resources via R.java or seomthing Oct 23 15:51:25 odd, but Ill take it! :) Oct 23 15:51:29 correct Oct 23 15:51:58 i dropped a png in the folder and will now turn that into a tppable button on the bottom toolbar Oct 23 15:55:11 I asked this again a little while ago but it might have gotten buried already.. does anyone know how to make two views in the XML reference each other? Since one has to be defined above another with @+id, and it's impossible for both of them to be above each other, how do you do it? Oct 23 15:55:30 you can also just ignore the linter Oct 23 15:55:36 really, really, silly question: Oct 23 15:55:41 why does adb not like shell scripting? Oct 23 15:56:00 jonp: ? Oct 23 15:56:24 xlinearx: you don't have to define the id (@+) in the view whose id it is Oct 23 15:56:36 evancharlton: https://gist.github.com/3939634 Oct 23 15:56:50 evancharlton: run `adb` in a bash loop: Failure. Run the ~same command "by hand": Success Oct 23 15:56:55 evancharlton: perhaps, but if I turn of lint, then I miss a bunch of other important things too. Oct 23 15:56:56 it's _really_ annoying Oct 23 15:57:00 you can do