**** BEGIN LOGGING AT Thu Aug 02 02:59:59 2012 Aug 02 03:00:00 Gotta make more resources >:( Aug 02 03:02:24 When I started in June, xhdpi devices had less than 2%. Now over 20%. Incredible Aug 02 03:02:52 Started in June hehe Aug 02 03:03:20 that was *months* ago! Aug 02 03:05:11 Might as well be, I can't remember it xD Aug 02 03:13:15 can anybody point me to a good working tutorial that takes a picture and has a text input that can be sent to a webserver? Aug 02 03:32:08 I have a scroll view with a relative view inside of it. The relative view is stuck to the upper left hand size of the scrollview. I want to drag the relative layout, but it's locked to the top left. Any idea what is setting this? Aug 02 03:32:42 all I've explicitly set are width, height, and orientation Aug 02 03:37:20 I manually set android:alignParentTop="false", yet when I go back to graphical view, it's true again... Aug 02 03:50:18 hello! when trying to install an apk in the android sdk, i get this message: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY] Aug 02 03:52:33 JoseeAntonioR: I recommend installing whatever library is missing Aug 02 03:55:33 how can a loadermanager be used with a listview thats part of a dialog? Aug 02 03:58:12 Leeds: and how could I check which one's missing? Aug 02 03:58:44 that;s the onl traceback I get Aug 02 03:58:59 thaat's the only traceback i get* Aug 02 03:59:33 what are you using that might need a shared library? Aug 02 03:59:53 any third-party APIs? Aug 02 03:59:56 erm, tasker Aug 02 04:01:37 Leeds: plus, one more thing, in the topic it should be /msg nickserv help register Aug 02 04:02:05 because help doesn't show register as one of the options? Aug 02 04:02:59 it does, but does not give much detail about it, instead, register shows detailed info, and procedure is in the freenode webpage Aug 02 04:04:23 if they can't figure out how to register, they probably can't contribute with much here either Aug 02 04:04:34 yeah, this is meant to be a developer channel... Aug 02 04:05:14 right Aug 02 04:05:54 well, getting back to the topic, I was trying to install tasker as it has the feature to export tasks as apps, and I can't seem to be able to install it ask per the error given before Aug 02 04:06:20 wait, you're trying to install tasker itself? Aug 02 04:06:47 Leeds: yep, to get a task exported as an app and then make a mod Aug 02 04:07:21 It probably needs google api's Aug 02 04:07:46 SimonVT: ANY IDEAS ON HOW TO INSTALL IT TO THE SDK? Aug 02 04:07:57 oops, caps fail Aug 02 04:08:35 JoseeAntonioR: Have you tried just using Google to search for that error Aug 02 04:08:41 download one of the google api packages Aug 02 04:08:44 create emulator Aug 02 04:09:12 I bet you that's one of the first hits if you google it Aug 02 04:10:15 oh, I've already done that Aug 02 04:10:36 yep, also the first hit when you search for gangnam style Aug 02 04:10:51 kroot: yep, and says there are some missing libraries, but I'd like to know how to check which ones are they Aug 02 04:11:04 JoseAntonioR: adb logcat Aug 02 04:12:45 it's full of wi-fi errors Aug 02 04:13:20 try doing it as you're installing Aug 02 04:14:01 so, running both of them at the same time, you mean? Aug 02 04:14:17 sure or close in time Aug 02 04:15:59 yay, got the result! it's the googlemaps library Aug 02 04:16:06 thanks, kroot! Aug 02 04:27:27 what are the implications of running two apps in the same process? Aug 02 04:28:00 and change I change what process an app runs in without forcing the user to uninstall first? Aug 02 04:28:34 If I am including music tracks in my app, should I go with aac, ogg, or mp3? The filesizes need to be small, quality isn't needed to be too high, and I want battery consumption to be low Aug 02 04:29:34 I heard mp3 decoding on Android is optimized, but its an outdated codec imo Aug 02 04:29:36 <[deXter]> You should go with Opus Aug 02 04:29:51 <[deXter]> Opus is the new kid in town and beats the pants off every other codec out there. Aug 02 04:30:42 Supported by Android though? Aug 02 04:30:57 <[deXter]> Not yet Aug 02 04:31:06 <[deXter]> but it's fully open so you could compile it yourself Aug 02 04:33:43 <[deXter]> Otherwise AAC is still a good choice Aug 02 04:34:20 Okay thanks for the tip Aug 02 04:36:41 * [deXter] waves to the fellow kiwi Aug 02 04:37:55 should be about 3 seconds or work to get it compiled into the Android frameowkr Aug 02 04:38:03 framework Aug 02 04:56:50 is there a way to force an item into the action bar's overflow list? i'm playing with ABS on gingerbread atm and i can only see how to have it on the action bar, or on the regular 'menu button' menu Aug 02 04:57:47 There's no overflow button on devices with a menu button Aug 02 04:58:03 well that explains that then Aug 02 04:58:21 thanks Aug 02 05:10:47 How to compile a ICU Library for Android ? Aug 02 05:21:52 hm, new platform version stats Aug 02 05:22:42 do applications that run in the same process share the same classloader? Aug 02 05:22:45 g00s: yeah, cheap ICS phones arrived just in time for a bunch of contract changes ;) Aug 02 05:23:25 JakeWharton: not necessarily Aug 02 05:23:47 JakeWharton: I think it might depend on what code is getting shared Aug 02 05:24:08 i.e. from same publisher, or is it external service etc. Aug 02 05:24:12 JakeWharton: framework.jar or whatever has a different classloader from your app for instance Aug 02 05:24:18 I have two totally separate APKs that will run in the same process. Trying to determine whether or not I should mark common dependencies as "provided" in one of them Aug 02 05:25:00 I mean, I guess I could just try but I'm an hour or two away from actually compiling Aug 02 05:28:27 does anyone know of an ICU Library for Android ? Aug 02 05:30:08 heh, GoDaddy is still frontrunning in 2012 Aug 02 05:30:22 i thought they stopped that shit Aug 02 05:33:28 let's try again: Anybody can give guidance on how to implement feature in application where you pressing button automatically log into web page? Simply calling browser with POST request would be fine but can't seem to find way to do that with POST request. So I tried for webview widget but unless user has logged in previously on phone's web browser it complains cookies not supported. Aug 02 05:54:54 hi, i have serious problem with twitter integration Aug 02 05:55:11 i have tries 10-15 example but all do'nt work Aug 02 06:11:24 Yay, Just waited 2 months to be sent something that doesn't work. sad face :( Aug 02 06:17:02 fuck. how the program again started to restart itself after shutting the service Aug 02 06:17:12 can't even keep the program down by killing it in the task manager Aug 02 06:18:13 now I deinstalled the program and the service still is there... Aug 02 06:18:16 help! Aug 02 06:19:09 isn't stopService(intent) and unbindService(connection) calls enough? Aug 02 06:25:39 I have a bitmap in res/drawables/ that Android seems to be scaling up by default on my Nexus 7.. is that expected behavior? Aug 02 06:25:47 drawable* Aug 02 06:26:28 yes Aug 02 06:26:33 drawable == drawable-mdpi Aug 02 06:26:40 Nexus 7 == -tvdpi Aug 02 06:27:56 romainguy: okay, that explains it. thanks. Aug 02 06:28:10 Related, what ratio is tvdpi to mdpi. How to provide resources for nexus 7 Aug 02 06:28:33 tvdpi = 213 dpi Aug 02 06:28:35 mdpi = 160 dpi Aug 02 06:28:46 the easiest thing to do is to supply resource for hdpi (240 dpi) Aug 02 06:28:47 Great thanks Aug 02 06:28:49 and let the system scale them Aug 02 06:29:03 that's what we do for all the assets Aug 02 06:29:36 how would i get string resource from it's name? Aug 02 06:29:53 look at the Resources class Aug 02 06:29:56 Resources.getString Aug 02 06:29:57 it has the methods you need Aug 02 06:30:02 note: it's not very efficient Aug 02 06:30:23 Resources.getString gets it from id Aug 02 06:30:25 not the name Aug 02 06:31:04 You're better off externalizing, just saying Aug 02 06:31:18 lil_Worker: look at the doc of the Resources class Aug 02 06:31:30 getResourceName or something Aug 02 06:32:49 or getIdentifier Aug 02 06:33:20 getIdentifier seems to be what i need, thnx Aug 02 06:34:43 romainguy: so if I want a size of 30dp, for a hdpi bitmap I need 30 * 3/2 = 45px? Aug 02 06:34:55 what's wrong about Resources.getSystem().getIdentifier ( "boo", "string", getPackageName() ); ? Aug 02 06:34:56 yep Aug 02 06:35:02 cool, thanks Aug 02 06:35:40 nvm, got it working Aug 02 06:42:35 guess people just don't want to help me :( Aug 02 06:42:51 we're sleeping Aug 02 06:43:03 tneva82_: what you wrote made no sense Aug 02 06:43:43 *yawn* Aug 02 06:44:00 as if that would be the explanation Aug 02 07:02:24 I would hate to say to boss I can't do this but ATM feels like without help from experienced android progammer this is going to take years to fix it :( Aug 02 07:02:59 tneva82_: years? to do what exactly? Aug 02 07:04:00 figure why this program works in completely random and unacceptable way Aug 02 07:04:14 ATM it's crashing and I have no idea what caused this to begin and before that it DOESN'T STAY DOWN! Aug 02 07:04:25 even killing it in task manager doesn't help. it just reboots itself Aug 02 07:04:44 sounds like you created a very decent virus Aug 02 07:04:55 lol Aug 02 07:05:10 except of course deinstal program+reboot phone does get rid of this Aug 02 07:05:31 Does the Misc category in Settings -> Storage show up for anyone with JB? Aug 02 07:08:32 tneva82_ not sure if helps but assuming your task manager calls System.exit(0) then if there are multiple activities on the activity stack only the topmost one will have finish() invoked and the Application will restart Aug 02 07:11:06 It helps if you ask modular, specific questions about the platform. Aug 02 07:21:26 hmmm does there become multiple activities of same program if I press main screen button and then the icon of program again? if yes then how to make it so that program icon goes to same activity? Or is that even possible? Aug 02 07:22:55 god. obviously this program is as good as useless as it is Aug 02 07:23:19 It is, launchMode singleInstance in your manifest Aug 02 07:23:45 nothing I try gets it to work. It shouldn't even create the service if it's running. is service running check says yes but STILL service's oncreate gets called Aug 02 07:23:59 Not so much same activity and all. Read up on Activities on the dev site Aug 02 07:25:30 Sprinkle log.d anywhere and everywhere. It's the poor man's debug ;) Aug 02 07:27:35 singleinstance didn't help Aug 02 07:28:01 heck now it even started service before I could even log in. Service is not even supposed to be launched first time before login process is done Aug 02 07:28:24 are you sure it is your service? Aug 02 07:28:42 what other program would use our logo and have exact same toast pop up? Aug 02 07:29:01 service is foreground service so it shows nice visible logo Aug 02 07:29:04 Use logs man. You're gonna have to get your feet wet. I'm gonna code my own app now bye Aug 02 07:37:24 Hi, I have an FrameLayout as container for fragments and add fragments to it using fragmentransaction replace(R.id.container, fragment, tag). Is there any way to find out what fragment is currently added to the container? Aug 02 07:39:10 romainguy: that scaling I mentioned earlier (1dp for every 3/2px in an hdpi image).. is that always exact, or does the ratio vary by device somehow? Aug 02 07:40:15 3:4:6:8 Aug 02 07:40:24 do i use fm.findFragmentById(R.id.container) ? Aug 02 07:40:35 ldpi, mdpi, hdpi, xhdpi Aug 02 07:40:39 I'm seeing some weird behavior Aug 02 07:40:58 And it varies by device Aug 02 07:41:05 Those are guidelines Aug 02 07:41:17 tmandry: we "bin" devices Aug 02 07:41:22 the dpi of each device varies a bit Aug 02 07:41:28 but we match them to the closest bin Aug 02 07:41:38 for instance a Nexus 7 is not actually 213 dpi Aug 02 07:41:39 right, I understand.. I just thought(hoped) the scaling ratio would be the same Aug 02 07:41:42 but we treat it as such Aug 02 07:41:45 it is Aug 02 07:41:51 I mean, you can assume it is Aug 02 07:41:54 it'll work Aug 02 07:42:27 in practice you only have to worry about mdpi, hdpi and xhdpi Aug 02 07:42:32 doesn't seem to be working in my case. I'm trying to align the size of a view to a whole number of reptitions of a repeated bitmap Aug 02 07:43:08 tmandry: how did you size the view? Aug 02 07:43:29 Use getWidth on bitmap for that I'd say Aug 02 07:43:43 android:layout_height Aug 02 07:43:56 what value do you use? Aug 02 07:44:13 64dp (or a multiple of 8dp) Aug 02 07:44:24 the image is 12px high and is in the _hdpi bin Aug 02 07:44:49 hm Aug 02 07:45:05 i wonder what sort of layout i should create for a calendar my app uses Aug 02 07:45:14 then you might have margins or padding set somewhere Aug 02 07:45:40 themirror: this is for a launcher widget, so I need to do as much in XML as possible so it works with RemoteView Aug 02 07:46:28 romainguy: okay, that's possible.. Aug 02 07:47:11 you can also use hierarchyviewer to inspect your layout Aug 02 07:50:00 https://dl.dropbox.com/u/36259099/Screenshot_2012-08-02-16-48-24.png i want to create a calendar that kinda matches this design, any tips? Aug 02 07:50:51 if theres an example of a very similar calendar id love to take a look at it Aug 02 07:51:23 where is the calendar ? Aug 02 07:52:08 theres 5 tabs, home / myfood / calendar / summary / other peoples fooditems Aug 02 07:52:19 you can swipe or click a tab to switch the view Aug 02 07:52:55 the current view just lists all the items, sorted by time Aug 02 07:54:48 then again hm might just as well add some sort of title "bar" to separate each day on the list Aug 02 07:55:28 id just love to borrow ideas from other similar applications/examples Aug 02 08:00:17 its weird looking through the newspaper story about flooded neighborhood, and then seeing a picture of a coworker :( Aug 02 08:01:02 Trying to clear the back/forward list for my webview but .clearHistory doesn't work for me.. any ideas? Aug 02 08:03:37 When I'm loading a certain URL, I'd like to clear the browsing-history so that the user cannot navigate back/forward Aug 02 08:17:06 hmm, in a spinner adapter i also have to implement getView.. should that just call getDropDownView? Aug 02 08:17:27 up to you Aug 02 08:18:01 what part of the functionality does the spinner widget actually use? Aug 02 08:18:14 both Aug 02 08:18:17 i.e. what does a spinner call and what does it do with the data? Aug 02 08:18:41 there's the view used to show the currently selected item in the spinner Aug 02 08:18:49 and the views used to show all the possible choices when you click the spinner Aug 02 08:18:52 aaah, ok, i think i get it.. Aug 02 08:19:05 damn you sparse docs!!! :D Aug 02 08:19:12 yeah :) Aug 02 08:19:30 it made more sense when spinner looked more like a combo box with an actual drop down menu :)) Aug 02 08:19:40 i programmed Qt app for too long.. i'm spoiled with respect to documentation ;D Aug 02 08:19:51 s/app/apps/ Aug 02 08:19:53 QT is nice Aug 02 08:19:57 very nice Aug 02 08:19:59 indeed Aug 02 08:20:03 but also a lot older :) Aug 02 08:20:11 which version? Aug 02 08:20:12 XD Aug 02 08:20:22 ah you mean, "older" as in "more mature" Aug 02 08:20:26 yep Aug 02 08:20:26 not as in "obsolete" Aug 02 08:20:32 +1 Aug 02 08:24:45 respect your elders, son Aug 02 08:24:53 and wear sunscreen Aug 02 08:28:17 tapas: http://www.phoronix.com/scan.php?page=news_item&px=MTE1MTc Aug 02 08:28:56 g00s: yeah, they will fail horribly :D Aug 02 08:29:02 g00s: windows phones - pah :D Aug 02 08:29:19 its probably good for Qt though they get away from Nokia :) Aug 02 08:29:41 tapas: i love the metro UI :) Aug 02 08:30:38 g00s: yeah, people love the design.. it's decent XD Aug 02 08:31:38 romainguy might dig this http://web.mit.edu/newsoffice/2012/better-programming-language-for-image-processing-0802.html Aug 02 08:31:53 especially the designers in our shop.. Aug 02 08:33:11 cool Aug 02 08:33:14 i just read an interview with Mike Kruzeniski on some of the design ideas of metro; it was very interesting. this book is about next generation mobile UIs … one this is for sure, what is described here is very far away from android and ios :) Aug 02 08:33:33 s/one this/one thing Aug 02 08:33:51 hmm, a language for dynamic programming Aug 02 08:34:07 a prof at my uni did research in a similar direction but for a much broader problem domain Aug 02 08:35:16 http://bibiserv.techfak.uni-bielefeld.de/adp/adplit.html Aug 02 08:35:47 it's all done in haskell though ;D Aug 02 08:36:17 :) Aug 02 08:37:48 g00s: looks a lot like a shader language + threading APIs Aug 02 08:38:05 the spinner looks horrible when i just return the same view for getDropDownView and getView.. Aug 02 08:38:16 Halide = clever name :) Aug 02 08:38:35 [just a simple text view] Aug 02 08:39:15 oh and i know why, too: because i set the background color :D Aug 02 08:41:21 and the spinner design breaks when the view is a multiline text view :D Aug 02 08:41:36 romainguy: have you tried AutoPano Pro by any chance? hugin sucks. Aug 02 08:41:46 hugin works just fine Aug 02 08:41:51 I use Hugin and Photoshop Aug 02 08:42:01 it keeps loading all my pictures upside down Aug 02 08:42:41 maybe i'm just need to rotate the screen :) Aug 02 08:43:36 Question.. I have an EditText field that I want to force the format ddd.dd (d=Integer) Aug 02 08:43:56 Ive made the EitText be inputType= numberDecimal Aug 02 08:44:26 but still, I want it to be so that you can only type in max 5 numbers, and after the first 3, a decimal will be inserted Aug 02 08:44:28 if that made sense Aug 02 08:46:02 Is a TextWatcher the way to go, or? Aug 02 08:46:25 Inputfilter Aug 02 08:46:55 http://developer.android.com/reference/android/widget/TextView.html#setFilters(android.text.InputFilter[]) Aug 02 08:49:22 hey guys would you mind taking a look at navigation issue here https://groups.google.com/forum/?fromgroups#!topic/android-developers/QcAW-UOEiW8 ? Aug 02 08:53:41 hey guys would you mind taking a look at navigation issue here https://groups.google.com/forum/?fromgroups#!topic/android-developers/QcAW-UOEiW8 ? Aug 02 08:53:53 Can I find default "drawables" from android? I have a togglebutton that I want to look excatly like a normal android-button. Anywhere I can find that resource the normal button use, to put in on the togglebutton? Thanks! Aug 02 08:54:02 man i suck with proguard. Aug 02 08:54:20 johanhar: why are you trying to do that. Aug 02 08:54:22 i just do random shit with it until it works Aug 02 08:54:32 danharibo: does it matter why I am trying to do taht? Aug 02 08:54:55 Well ToggleButtons have a clear UX Aug 02 08:55:00 why would you want to obscure it Aug 02 08:56:08 and according to Google, you shouldn't depend on internal android resources. Aug 02 08:56:27 I want a normal looking button to be in a pressed state after you release the "click". And when you click again, let it be in a normal unpressed state. A normal button does not have functionality like this, but toggle button does. But I dont like the look of it, I want to simulate the button being pressed. Easier to show you, not so easy to explain here on irc. Aug 02 08:56:33 Ok, thanks. Aug 02 08:57:14 johanhar: you can fetch the drawables from the platform dirs in the sdk. Aug 02 08:57:39 can't i have Aug 02 08:57:44 kind of layout Aug 02 08:57:49 johanhar: but you'll be stuck with a certain platform's style. Aug 02 08:58:03 cause my radio buttons aint getting connected Aug 02 08:58:48 Hello colleagues. Aug 02 08:58:48 HDroid: Ah, I see. Well thanks ;) Aug 02 08:59:08 I would like to use some kind of Google Play replacement for the applications I am developing. Aug 02 08:59:34 The applications are for an Enterprise, that does not want them public, but I still have to maintain an upgrade cycle. Aug 02 08:59:55 morning Aug 02 09:00:04 I am considering Aptoide. Any other solutions? Aug 02 09:00:11 has anyone ever had a problem with fragments returning null for getActivity().getApplication() ? Aug 02 09:00:22 or at least throwing a NPE Aug 02 09:00:28 anyone? Aug 02 09:00:31 yes, someone has: you :D Aug 02 09:00:40 erm @ CallumTaylor XD Aug 02 09:00:43 obviously Aug 02 09:00:47 so what's null, the activity or the application Aug 02 09:00:51 i think the activity Aug 02 09:00:57 but I'm not sure why and how to prevent it Aug 02 09:01:09 I'm guessing its getting killed in the background and when the user goes back into the app it throws Aug 02 09:01:48 CallumTaylor: are you somehow calling getActivity before the fragment has been attached to the activity? Aug 02 09:01:58 uh Aug 02 09:02:01 CallumTaylor: getActivity() works between certain lifecycle methods. Aug 02 09:02:02 check out Aug 02 09:02:04 shouldn't be, ill take a look Aug 02 09:04:50 I connected a different phone, running android 4 (project for 2.1 and older phone as well). Cant see it in the list of devices when I click run project, but I can see the phone in explorer... hmm Aug 02 09:05:13 johanhar: USB debugging enabled? Does it show up in adb? Aug 02 09:05:20 Yes, adb? Aug 02 09:05:25 Debugging enabled Aug 02 09:05:33 "adb devices" in a shell Aug 02 09:05:42 will list devices that ADB can see Aug 02 09:06:25 Not sure... Aug 02 09:08:12 whats the set way to simulate your app being killed in the background? Aug 02 09:09:28 nvm, found it Aug 02 09:09:44 CallumTaylor: well, on my shitty droid-1, going to the browser and loading a few tabs did it :) Aug 02 09:09:56 lol :D Aug 02 09:09:57 CallumTaylor: out of curiosity, what did you come up with ? Aug 02 09:10:06 http://stackoverflow.com/questions/5287237/simulate-killing-of-activity-in-emulator Aug 02 09:10:08 good ol' adb Aug 02 09:10:14 oh Aug 02 09:13:09 Haha reading a major android bug thread and at the bottom see that my friend Aug 02 09:13:18 Opened it lol Aug 02 09:13:39 CallumTaylor: I use Settings->Applications->Manage, and force-stop it. Aug 02 09:14:00 but is that the same as the system closing the app in the background Aug 02 09:14:08 CallumTaylor: Pretty much. Aug 02 09:16:09 Ooh netsplit how exciting. Woo time for bed Aug 02 09:25:11 is there some hope to get ADT to get better multiple device support? Aug 02 09:25:22 i.e. having more than one device attached and logcat not crashing :D Aug 02 09:37:34 i'm having problems with support library and the on screen keyboard Aug 02 09:37:49 when using the fragmentmanager i can get it in state where it doesn't show anymore Aug 02 09:42:03 * stork spends all day playing with proguard :| Aug 02 09:47:18 Hmmm... Seems Aptoide has droppped the roll-your-own market ability. Any pointers to an alternative. I'd hate to have to reinvent the hot water. Aug 02 09:47:22 i swear fucking proguard is ignoring all my directives.. it keeps throwing away enums Aug 02 09:50:26 is it possible to update a ListView (a la the Weather Widget sample) directly from onUpdate() in the AppWidgetProvider (eg. addressing the listview somehow?) Aug 02 09:54:24 i have an idea for an app... since my nexus 7 and galaxy nexus both have nfc, i was thinking of making an nfc tethering app - knock the two devices together and it automatically sets up tethering between them Aug 02 10:06:54 sounds like fun. Aug 02 10:08:03 stork: Isn't it easier to stick an nfc-sticker on the tablet and the phone to turn WiFi-HotSpot on reading that sticker? Aug 02 10:08:32 stork: Sticking the sticker on the tablet is not necessary (if it wasn't obvious) Aug 02 10:10:15 stork: I myself have WiFi anywhere I go, but I was considering putting such a sticker at home: I put the Phone on to of it, and take the Tablet, that sees the WiFi Hot Spot, and automatically connects. Aug 02 10:11:22 * Lachezar looks at the 'on to of it' part of his message and ponders what exactly does that mean. Aug 02 10:14:10 * danharibo is confused Aug 02 10:15:51 i'm not sure i followed all of that either Aug 02 10:15:57 I've always liked the idea of using the detection of a particular bluetooth device as a good gatekeeper for a room Aug 02 10:16:12 you should make an NFC app that steals peoples credit car- Aug 02 10:16:29 ooh I want a credit car Aug 02 10:16:36 or to put that in a readable way: BT has a good range to be detectable in a 'room' rather than a building/floor like wifi, or within mm like NFC Aug 02 10:17:04 isn't that kind of a battery killer? Aug 02 10:17:35 I think just polling for BT is relatively cheap Aug 02 10:18:23 normally i always have my phone and tablet with me, so in that case presumably both devices would always be tethered Aug 02 10:29:08 has anyone had any success using proguard to remove log statements Aug 02 10:29:22 stork: having both devices tethered 100% will probably eat the battery on both. Aug 02 10:29:35 yeah i wouldn't want to do that Aug 02 10:31:22 stork: There are a number of applications on the Market, that can launch tasks when they see a tag. Aug 02 10:31:48 stork: I would use that to turn on the WiFi Hot Spot of the phone. Aug 02 10:32:10 i'd want it to automatically negotiate the connection as well Aug 02 10:32:25 stork: Possibly the same tag could be used to make the tablet turn WiFi on and connect. Aug 02 10:32:39 stork: What negotiation? Aug 02 10:33:31 i guess i'd want it to enable wifi on both devices if not already enabled Aug 02 11:05:03 lala Aug 02 11:07:23 if I use the Download Manager in my app, the app cant be used on versions preior to 2.3??? Aug 02 11:09:37 its early and im obvious and idiot but can someone look at this and let me know why it hits a reutnr in the first block then goes to the return in thee second part Aug 02 11:09:57 http://pastebin.com/Y2f3EVpX Aug 02 11:12:41 Hi everybody! I am new, I'm following the tutorial but I cannot find the "run" button on Eclipse... only Run > external tools. What am I supposed to do? Aug 02 11:13:18 Learn eclipse before you learn android? Aug 02 11:13:32 Which Perspective have you opened, i.e. what icon do you have in the top right corner? Aug 02 11:13:34 There might be an #eclipse channel. Aug 02 11:13:42 * wonderb0lt slaps UnbertKant around a bit with a large trout Aug 02 11:13:43 Yeah, that would help, you're right! :) Aug 02 11:14:03 Wow, guess we have some aggressive people around here. Aug 02 11:14:33 You can also try right click on your android project and select run from there. Aug 02 11:14:46 Hi! I have a question of myself Is there any recommended way if I use actionbar tabs and a viewpager in each tab? Normally both require fragments which is not possible. Aug 02 11:15:27 thanks! I'll try! Aug 02 11:15:42 Bye and thank you all! Aug 02 11:16:58 wonderb0lt that sounds awful. You should switch your customer. Aug 02 11:18:46 UnbertKant, this is not an option ;) Aug 02 11:32:11 hello, I have some UI problem. I'm using fragments. And I have a EditText among a lot of other objects. My problem is: When I click the EditText the keyboard is shown, but not in fullscreen. Above the keyboard are all the fragment objects clumped up and it looks terrible, I cannot even see what I'm typing in the EditText. I want the keyboard and the previewed text to be fullscreen. Someone have any tips or solution to this proble Aug 02 11:43:25 hi. there's someone that can give some advice to develope an android client that connects to a java server? Aug 02 11:43:58 i bet there is Aug 02 11:44:06 try finding him/her on google? ;) Aug 02 11:44:38 finally fixed proguard Aug 02 11:44:46 i've tried Aug 02 11:45:01 maybe is a simple socket application Aug 02 11:45:05 right? Aug 02 11:45:06 LucaS05: yes, every hour do 10 pushups, and that way by the end of the day you have done about 100. Aug 02 11:45:07 LucaS05: What kind of Java Server? Aug 02 11:45:27 LucaS05: i would also recommend lowering your carb intake. protein bars are great for breakfast Aug 02 11:45:42 wait, what Aug 02 11:45:48 he wanted advice Aug 02 11:45:59 LucaS05: sockets are iffy with mobile devices. Aug 02 11:46:14 what are you talking about, no they aren't Aug 02 11:46:31 depends on how long you keep them open Aug 02 11:47:46 It's still interesting to know what protocol... HTTP? FTP? Custom? Aug 02 11:49:12 this is only for a test Aug 02 11:49:26 i'm not realizing anything such as an enterprise app Aug 02 11:49:44 this is a very abstract question. Did you write the server? Do you know what the protocol is? Aug 02 11:49:59 server-side sockets are also tricky to get to scale well Aug 02 11:50:03 * funktronic waits for the rebuke Aug 02 11:50:23 the only thing i know from my java experience is socktes Aug 02 11:50:40 i've nevere used HTTP Aug 02 11:50:43 never* Aug 02 11:50:51 or others kind of protocols Aug 02 11:51:27 this is a really abstract vague discussion Aug 02 11:51:40 "hi can you help me do something?" "what is it?" "i have no idea. can you help me?" Aug 02 11:51:44 i'm sorry i will go to clarify it Aug 02 11:53:15 what i've to do is connect some android phones to a server. they must exchange files in their communication Aug 02 11:53:36 and i need an advice for doing this with an android client Aug 02 11:53:54 just use java.net.Socket like you would in any other situation Aug 02 11:53:54 the only thing i know to do this is using Socket Programming that java has Aug 02 11:54:34 ok Aug 02 11:54:47 LucaS05, Another way may be transferring the files via HTTP Aug 02 11:54:47 but is good to use socket? there are problem with them? like performance or other kind of problems... Aug 02 11:55:17 It's a well known protocol which comes with an implementation with Android. Aug 02 11:55:28 LucaS05: it doesn't matter what you know, you can always learn to do new things :| Aug 02 11:55:37 don't stick to what you know already Aug 02 11:55:52 there are no problems, besides the usual problems with socket communications (which might be slightly amplified on a mobile device what with the sometimes unreliable data connections) Aug 02 11:56:21 yuizy for that i coming here...for hear some other ways than socket Aug 02 11:56:22 sockets* Aug 02 11:57:33 ok Aug 02 11:59:36 i was asking (about the perfomances) cause i've use sockets in java (with a java client (not android) and a java server) but on the same machine so i don't know about performances on more real use of sockets Aug 02 11:59:39 thanks anyway Aug 02 11:59:54 LucaS05: what kind of file exchange? Aug 02 12:00:09 i'd just use HTTP since there's tons of stuff already written for it Aug 02 12:00:16 a simple .txt file Aug 02 12:00:35 why not just serve the files with HTTP ? Aug 02 12:00:52 writing your own sockets and all is just wasting time on stuff that's probably not that important Aug 02 12:01:04 the main purpose is to send to the server a text file that has in the information of the accelerometer of the android client Aug 02 12:01:07 spend a day to learn how to use HTTP and save yourself tons of headache Aug 02 12:01:28 LucaS05: and then another device reads that info? Aug 02 12:01:39 no the server reads it Aug 02 12:01:44 LucaS05: are you streaming accelerometer data ? Aug 02 12:01:58 in that case sockets would be good Aug 02 12:02:46 Anyone ever succeeded in adding a bookmark to the launcher using default_workspace.xml ? I can't find any examples at all =( Aug 02 12:02:47 yes...accelerometer data and some other data in the same text file that the client sends to the server at some point Aug 02 12:03:12 how important is it that it be realtime? Aug 02 12:03:44 maybe a little. cause the server makes the request for all the device for getting this text file Aug 02 12:03:52 devices* Aug 02 12:03:53 If I want a clickable widget, I have to add a new activity that handles the click, right? Aug 02 12:03:58 what's the other data? Aug 02 12:04:33 simple data such as: first name, last name, timestamp Aug 02 12:05:15 LucaS05: no, don't PM Aug 02 12:05:33 ok...that are the other data Aug 02 12:08:49 imagine that the android phone is used by a person that goes house to house for making some house controls (e.g. for maintenance)...when they make every control (the control ends) they send the data for the control (that will be appended with the accelerometer info) to the server Aug 02 12:09:12 then have a simple HTTP server and do it that way Aug 02 12:10:00 but at some point of time the server admin must make a request for the complete logged file that every device has Aug 02 12:10:12 is http server good in this case? Aug 02 12:10:35 in general i prefer http in these cases Aug 02 12:10:54 for example the device may be on a network with a firewall that blocks anything but http and https Aug 02 12:11:27 i assume that the devices will use the cellular data connection (3G) no wifi Aug 02 12:12:43 is good anyway? Aug 02 12:14:03 meh, do it whatever way you want Aug 02 12:14:07 hello, I have some UI problem. I'm using fragments. And I have a EditText among a lot of other objects. My problem is: When I click the EditText the keyboard is shown, but not in fullscreen. Above the keyboard are all the fragment objects clumped up and it looks terrible, I cannot even see what I'm typing in the EditText. I want the keyboard and the previewed text to be fullscreen. Someone have any tips or solution to this proble Aug 02 12:14:10 won't be a huge difference either way Aug 02 12:14:26 m1hael: adjustPan Aug 02 12:14:46 err Aug 02 12:14:49 funktronic: i think you meant m1kaal =) Aug 02 12:15:00 err windowSoftInputMode Aug 02 12:15:08 look that up Aug 02 12:15:44 yeah thanks .. Aug 02 12:15:52 it looks better . but not perfect :( Aug 02 12:20:46 Any ideas how I can update my widget when I click on it? Aug 02 12:24:26 fragmentTransaction.setBreadcrumbTitle("My title"); does not work.. Trying to add breadcrumb to the actionbar.. Aug 02 12:24:57 do I need to add FragmentBreadCrumbs as customview to the actionbar as well? Aug 02 12:28:33 Oh, I had to use getBroadcast Aug 02 12:28:40 funktronic: it looks better. but i think want the input mode where my fragment is "replaced" with a white box above the soft keyboard.. Aug 02 12:30:02 A widget and an app from the same project can't share the same SharedPreference, right? Aug 02 12:40:48 Kake_Fisk: why do you think they couldnt Aug 02 12:47:11 Because I need the activity context, don't I? Aug 02 12:47:59 guys, how to run some function (which collect info via http) and not freeze GUI while it process Aug 02 12:48:00 ? Aug 02 12:48:08 Runnable don't help :( Aug 02 12:48:30 AsyncTask or Thread Aug 02 12:48:39 runnable does not use a thread Aug 02 12:48:50 oh... thanks! Aug 02 12:50:04 Is anyone having problems logging into the Merchant Account through the developers console on Google Play? It redirects me to Google Wallet, and then gives me an error saying that it can't load my profile?? Aug 02 12:50:39 Works for me Aug 02 12:50:58 HDroid: thanks for checking Aug 02 12:51:13 checkout.google.com/sel//orders Aug 02 12:51:15 er Aug 02 12:51:19 checkout.google.com/sell/orders Aug 02 12:51:24 ok Aug 02 12:51:53 Nope the same error Aug 02 12:51:57 gives me an error logging in too Aug 02 12:52:25 trys to redirect me to google wallet even though I'm using the link provided Aug 02 12:52:38 you could just d/l checkout tracker and not have to worry about the website: https://play.google.com/store/apps/details?id=com.kwproductions.checkouttrackerv2&hl=en ;) Aug 02 12:52:46 I have created a upload method for an app but I want the file to be uploaded when the user presses a button. Now it gets uploaded right away. Aug 02 12:52:52 https://pastee.org/2ygav Aug 02 12:53:38 put it in a button click listener Aug 02 12:53:48 wongk: All that code? Aug 02 12:54:00 you're also doing network comms on the main thread Aug 02 12:54:02 bad Aug 02 12:54:30 yeah, if your run it on a device that is 3.0+ it will error on you Aug 02 12:54:38 Hm, what do you mean? I should have the upload method in a own class? Aug 02 12:54:46 only if target SDK is set properly, which it typically isn't Aug 02 12:54:52 no, in it's own thread or asynctask Aug 02 12:54:57 class != thread Aug 02 12:55:03 Ye Aug 02 12:55:04 Alright Aug 02 12:55:20 people seem to make that mistake a lot, it's curious Aug 02 12:55:28 I figure :p Aug 02 12:55:38 Then I'll have to fix that. thanks Aug 02 12:55:42 but the button thingy Aug 02 12:55:56 Drager: look at this article http://developer.android.com/reference/android/os/StrictMode.html Aug 02 12:56:17 May help you out some Aug 02 12:56:24 Thanks Aug 02 12:57:11 Sweet. Checkout is working now. WTH. It took me to checkout now instead of Wallet?? Aug 02 12:57:29 wallet is for purchases Aug 02 12:58:21 that's what I thought. so why was the developer console trying to direct me there? Now it doesn't. Google must have a crap load of updates going on or something. Aug 02 12:58:43 if you go to plain ole checkout.google.com it redirects there Aug 02 13:00:06 yesterday I couldn't even log into the developer console. Kept giving me a 404 error after logging in with my credentials Aug 02 13:01:47 hi, i have a linearlayout in my main xml, and i would like to inflate it with other xml items Aug 02 13:01:54 what's the easiest way ? Aug 02 13:02:20 why can't you just put it all in one xml? Aug 02 13:02:40 dlaroche: I cant turn on strictmode Aug 02 13:02:44 because i would like to add X of these elements programatically Aug 02 13:02:45 if you are trying to dynamiclaly change the layout at runtime then look into using fragments Aug 02 13:02:53 oh i see Aug 02 13:03:17 it's a tiny xml with a frame layout that superimposes 2 images Aug 02 13:03:24 but that doesn't matter Aug 02 13:03:41 inflate the view programatically and add it to the righ view group Aug 02 13:03:42 just through it in the main xml and set there visibility to GONE Aug 02 13:03:50 so i do a findview of my linearlayout Aug 02 13:03:54 yes Aug 02 13:04:07 and then how do i inflate this ? Aug 02 13:04:07 then you can add children views to it Aug 02 13:04:26 you inflate your main layout, and then you programmatically add the other views. Aug 02 13:04:39 I don't think you can combine two different xml files though Aug 02 13:05:02 may use Fragments for this Aug 02 13:05:11 you can inflate anything at any time through the inflater service Aug 02 13:08:32 My widget almost works now, I just need to know how I can get data from the app to the widget Aug 02 13:08:49 wongk: So I should create a new thread? Thread myThread = new Thread(new Runnable(){ Aug 02 13:09:05 and then do the stuff there? Aug 02 13:09:12 yes, or an AsyncTask is typically more convenient Aug 02 13:09:36 Kake_Fisk: is the data persisted? Aug 02 13:09:36 okey, but I can do this in MyApp.java? Aug 02 13:09:50 Drager: yes Aug 02 13:09:58 Alright, thanks guys Aug 02 13:10:00 sure, but you might want to think about code structure Aug 02 13:10:27 use an AsyncTask to keep things clean, plus it provides a way to post data back to the main thread Aug 02 13:10:39 Makes sense Aug 02 13:10:42 wongk: I store the data with SharedPreferences, if I somehow could access that from the widget. Aug 02 13:10:51 you can Aug 02 13:10:55 Kake_Fisk: you can Aug 02 13:11:06 Even though it is MODE_PRIVATE? Aug 02 13:11:08 thanks guys looks like i got it working ;) Aug 02 13:11:09 how much data are you storing in there? Aug 02 13:11:15 Just a string Aug 02 13:11:18 yes Aug 02 13:11:40 the widget is still part of the application so it has access to the same shared prefrences Aug 02 13:12:17 so now that i inflate with this xml, is there any way to refer to my xml i inflated to set a different image to each element ? Aug 02 13:12:58 of course, the same way you alsways do Aug 02 13:13:06 it just returns a View Aug 02 13:23:12 hey guys... so i have a ListView and each item can be totally different... so i decided to have an ArrayAdapter and its getView would just return the actual item..... it seems that this approach uses up too much memory and can get slow when scrolling... any other suggestions? Aug 02 13:24:55 Yuyo: did you implement the view type methods in the adapter? Aug 02 13:25:02 Yuyo: you have an adapter with Views in it? Aug 02 13:25:13 and what do you mean by "just return the actual item" Aug 02 13:25:42 But I need the context to get the shared preference, but the widget's context is the homescreens context. Aug 02 13:26:17 Kake_Fisk: you can use the applicaiton context for that purpose Aug 02 13:26:58 But getApplicationContext() is a method of Activity :S Aug 02 13:27:27 AppWidgetProvider doesn't have that Aug 02 13:28:55 Kake_Fisk: don't you get a Context in all the public methods of appwidgetprovider? Aug 02 13:29:04 good morning. Aug 02 13:29:19 But I thought the Context was the homescreen's context. Aug 02 13:29:48 getApplicationContext() Aug 02 13:29:49 ah, could be Aug 02 13:30:15 I'm a bit sceptical. But I will try it and see if it works. Aug 02 13:30:39 getApplicationContext is a member of Context Aug 02 13:32:18 What is the preffered paste site in here? Aug 02 13:32:31 facebook Aug 02 13:32:35 hah Aug 02 13:32:47 we don't really care, pastebin.com is default Aug 02 13:32:52 Allright :) Aug 02 13:33:23 I'm probably doing something wrong, but this is what I tried http://pastebin.com/enmgihbt Aug 02 13:33:56 I get "The method getPreferences(int) is undefined for the type Context" error Aug 02 13:34:12 wongk: So I have done it like this; https://pastee.org/s95w2 but I dont know how to do about the filePath. Aug 02 13:34:15 i wonder why this doesn't show the image on my LG p500 Aug 02 13:34:16 http://pastesite.com/40876 Aug 02 13:34:27 while it shows ok on the samsung galaxy and the htc desire Aug 02 13:35:13 Kake_Fisk: uhm, isn't it getSharedPreferences? Aug 02 13:35:30 Kake_Fisk: http://developer.android.com/reference/android/content/Context.html#getSharedPreferences(java.lang.String, int) Aug 02 13:35:33 meh, i'm stupid :D Aug 02 13:35:37 Ohh Aug 02 13:35:38 internet was disabled on the LG Aug 02 13:36:35 Drager: pass it as an argument Aug 02 13:36:44 tapas: how long did you spend on figuring that one out?? lol Aug 02 13:36:58 tapas: i've not that before too :P Aug 02 13:37:00 er Aug 02 13:37:02 i've done Aug 02 13:37:09 me too. lol Aug 02 13:37:10 Oh, but I was using getPreferences() instead, that one doesn't have to have a filename. Should I use Shared Preference instead? Aug 02 13:37:20 "wtf is this throwing an IOException?!" Aug 02 13:37:21 yes Aug 02 13:38:03 Kake_Fisk: yes, you need "application wide" preferences, not prefs for a specific activity Aug 02 13:38:14 Ah, okay. I see Aug 02 13:38:32 dlaroche: 2 minutes :D Aug 02 13:38:52 actually maybe 10 Aug 02 13:38:57 I think I spent an hour one time with a similar issues tapas Aug 02 13:39:19 felt so stupid when I discovered I didn't have no data connnection.....lmao Aug 02 13:39:28 i ended up in the java code for AccountManager before i realized my wifi wasn't connected :P Aug 02 13:39:42 lol Aug 02 13:40:02 <3 grepcode Aug 02 13:42:20 It worked, thanks! :D Aug 02 13:46:01 Hmm, I have a warning :S "Exported receiver does not require permission" Aug 02 13:46:26 warnings are not errors Aug 02 13:47:17 Yeah, but they are there to warn you about something Aug 02 13:47:31 greetings Aug 02 13:47:35 To me, it sounds like some security warning Aug 02 13:47:54 i have a table set to "wrap content" but the rows contain text that goes beyond the edge of the screen, how is this possible? Aug 02 13:49:11 Kake_Fisk: Sounds like a receiver which lets anyone access it without being explicitly given permission? Aug 02 13:49:30 wongk: Hm Aug 02 13:49:31 Kake_Fisk: yes, you have a receiver that can be triggered by any application... it's not necessarily an issue Aug 02 13:49:42 Ah, okay Aug 02 13:49:43 you can turn it off in lint Aug 02 13:49:46 Kake_Fisk: it means that other applications can bind do your receiver Aug 02 13:49:52 yeah what wong said. Aug 02 13:49:53 hrnt, wongk: sorry for the delay.. hrnt: the only method i overrode in the adapter is getView and it just returns getItem(position).... yes wongk, i do :) Aug 02 13:50:04 uhm, what? Aug 02 13:50:17 does your getItem(position) return a view? Aug 02 13:50:18 Kake_Fisk: if that intent can do anything important, like wipe your database or something, or initiate downloading a file, you probably want to restrict it Aug 02 13:50:21 Yuyo: that's not what adapters are for, they adapt your data Aug 02 13:50:32 wongk: How would I do that ? Aug 02 13:50:42 yeah, hrnt, it's an ArrayAdapter Aug 02 13:50:42 Yuyo: you only want Views for those items specifically visible in the viewport Aug 02 13:50:55 Ahh. It doesn't do anything important, but I guess there's no reason to let other apps bind to my receiver Aug 02 13:51:02 Drager: did you read the AsyncTask docs? Aug 02 13:51:03 Yuyo: that's not how adapters work Aug 02 13:51:03 Is there a setting to disable it Aug 02 13:51:27 wongk: Yea Aug 02 13:51:46 Yuyo: you store the actual data in the arrayadapter. Aug 02 13:52:00 Yuyo: your getView() constructs a View for a particular item Aug 02 13:52:24 Drager: what is the purpose of the first template argument to AsyncTask? Aug 02 13:52:34 so getView(25, ...) should create a View that represents the object in position 25 Aug 02 13:52:38 that is the basic idea Aug 02 13:52:43 yeah.... i figured it wasn't the right approach, but i haven't figured a better option... the data i have doesn't represent 1 view per item of data unfortunately.... i might have to preprocess it Aug 02 13:52:51 wongk: the three arguments are: the Argument type, the result type and the progress type Aug 02 13:52:58 Yuyo: could you elaborate Aug 02 13:52:59 wongk: i don't remember which is the first.. Aug 02 13:53:08 Yuyo: how could it be more than one view per item of data? Aug 02 13:53:12 tapas: thanks, but that was for Drager to answer Aug 02 13:53:18 :P Aug 02 13:53:35 wongk: oh ok.. i thought it was a genuine question, not a pedagocical one :D Aug 02 13:53:46 my bad Aug 02 13:53:49 np Aug 02 13:54:03 Yuyo: it's called an adapter for a reason =] Aug 02 13:54:04 :( Aug 02 13:56:24 but that doesnt help me? Aug 02 13:56:44 it's a question, answer it :P Aug 02 13:57:45 it is very clearly documented Aug 02 13:57:52 Yes Aug 02 13:58:10 Params, Progress, Result Aug 02 13:58:14 Was the three steps Aug 02 13:58:24 so what is the purpose of Params Aug 02 13:58:39 To send parameters Aug 02 13:58:48 like, maybe a filename? Aug 02 13:58:50 they get supplied to the doInBackground method Aug 02 13:58:57 yeah a filename or a url or whathaveyou Aug 02 13:58:58 hrnt: nope, it's actually one view per one or more items of data.. it's a network app that receives and sends messages.. messages have ids, and several messages can have the same id... i need a view per group of messages that have the same id.. each message that arrives would make the views in the ListView show something different Aug 02 13:59:03 wongk: Maybe yeah Aug 02 13:59:13 * wongk meeting Aug 02 13:59:54 i'm guessing i'll need to preprocess the messages into a MessageGroup or something... and make an adapter of MessageGroup's.... does that sound right? Any better ideas? Aug 02 14:01:08 well, it sounds better Aug 02 14:01:13 so you have one view per one item of data Aug 02 14:01:24 yup.. Aug 02 14:01:42 i think i'll try that, thanks Aug 02 14:02:08 Dont get how I should pass the filename to that though.. Aug 02 14:02:28 anyone in need of a designer? Aug 02 14:03:07 OR maybe like this? protected String doInBackground(Void...filePath) Aug 02 14:05:39 How do you make these nice layouts where you can drag the screen up and down? Aug 02 14:08:18 stork: You here? Aug 02 14:08:21 hi Aug 02 14:08:35 Is this valid? protected String doInBackground(Void... filePath) Aug 02 14:09:34 it's a void type so no :p Aug 02 14:09:51 What should I set it to? Aug 02 14:09:53 I tried string Aug 02 14:09:59 It's perfectly valid but what are you going to do with a bunch of Voids :D Aug 02 14:10:19 I want it to be a String I guess Aug 02 14:10:26 but that gives me a bounch of errors.. Aug 02 14:10:54 Well you have to adjust the type in the <...> as well, of course. Aug 02 14:11:09 You have to write your AsyncTask like this: class MyAsyncTask extends AsyncTask Aug 02 14:11:21 HDroid: I have done that Aug 02 14:11:29 The constructor File(String[]) is undefined Aug 02 14:11:41 wtf? Aug 02 14:11:44 You called your task File? Aug 02 14:11:45 I have an edittext box, but it's too big for the screen. I need to be able to move the view up and down Aug 02 14:11:58 i think you need to learn java :( Aug 02 14:12:12 HDroid: On this line; File file = new File(filePath); Aug 02 14:12:42 Well yes, Asynctask assumes more than one. Aug 02 14:12:48 The input type of doInBackground(String... filePath) is actually an array of strings Aug 02 14:12:52 Yes Aug 02 14:12:53 Anybody know any free resources for somebody who took some programming classes in college a decade ago, but forgot most of what he learned and wants to break into the Android market??? Aug 02 14:13:03 Ah Aug 02 14:13:06 Thats why Aug 02 14:13:11 If you're only passing one, you have to take out the only one with filePath[0] Aug 02 14:13:20 http://developer.android.com/reference/android/os/AsyncTask.html look there, you can use the same pattern... and it'll work just as well with a single file argument. Aug 02 14:14:05 Yes, thanks Aug 02 14:14:24 Though I've passed arguments through the constructor as well, and used Void for the first type, to circumvent it. Aug 02 14:15:01 Anybody? Aug 02 14:15:34 In all honestly, I've been using RoboAsyncTask from the RoboGuice framework the last year or so, it's much nicer (but requires the entire roboguice framework -- which is nice for other things as well, though). Aug 02 14:15:37 http://code.google.com/p/roboguice/wiki/RoboAsyncTask Aug 02 14:15:59 I prolly need a beginners guide, but it needs to be free, since i have no money Aug 02 14:16:23 Hey, it's dreamreal! Aug 02 14:16:28 HDroid: hey Aug 02 14:16:31 Hi :) Aug 02 14:16:39 * dreamreal is playing around with android development now :/ Aug 02 14:16:46 Haha, not too happy about it? Aug 02 14:16:49 HDroid: you ever deploy services as part of an android app Aug 02 14:16:55 actually, the development itself is a lot of fun Aug 02 14:17:02 does it handle config changes and stuff Aug 02 14:17:18 * dreamreal preens about his s3 Aug 02 14:17:20 Deploy services? As in, use Android Services? or backend? Aug 02 14:17:26 android services, yeah Aug 02 14:17:30 basically SPI for android Aug 02 14:17:55 Yes but I've only used them internally in an app. Aug 02 14:17:58 I need to put together a messaging layer that will eventually use a different transport than the initial transport available Aug 02 14:18:14 can you deploy a service as part of a single AndroidManifest.xml? Aug 02 14:18:28 Hmm, no, that violates what I'm trying to do too Aug 02 14:18:42 I don't know how to deploy services, esp when the app depends on the service to work Aug 02 14:19:13 I guess that's a no? Aug 02 14:19:38 Lil_ole_Me: get a good java book Aug 02 14:19:54 I need a free book Aug 02 14:20:04 Know of one? Aug 02 14:20:17 oracle has a bunch of guides Aug 02 14:20:29 Oh yeah? Aug 02 14:20:42 I'll look into that Aug 02 14:21:08 http://is.gd/R41l1O :x Aug 02 14:21:37 Lil_ole_Me: http://www.oracle.com/technetwork/java/index.html Aug 02 14:22:17 dreamreal: AFAIK there is the AIDL approach and the Messenger approach, for remote services. Aug 02 14:23:04 HDroid: any urls to point me to? Aug 02 14:23:22 dreamreal: in any case, you put the service in your manifest (which may or may not be a separate app), and other apps can call the service through the package name + classname, calling bindService. Aug 02 14:23:49 http://developer.android.com/reference/android/app/Service.html under "Remote Messenger Service Sample" is the non-AIDL approach. Aug 02 14:24:00 So I go through two deployment steps, I take it Aug 02 14:24:33 What do you mean by deployment? Aug 02 14:25:06 http://developer.android.com/guide/components/aidl.html aidl example Aug 02 14:25:20 well, if I have a service, i have to deploy THAT, then I deploy my app Aug 02 14:25:44 dreamreal: a service can be part of an app, and that same service can be run independently from the app if it's in the app package. Aug 02 14:26:06 I.e. you can include a service that's available to other apps in your app package. Aug 02 14:27:04 HDroid: *nod* well, the whole point is to deploy an http transport first (because the other transports aren't available yet) and replace it with the other transport when it becomes available Aug 02 14:28:15 how do you guys handle spinners being so completely differently drawn by different android versions? Aug 02 14:28:30 tapas: partay! :) Aug 02 14:28:53 changing the layout of the items displayed in them makes them look unappropriate on another :D Aug 02 14:29:01 dreamreal: partay is always a good option Aug 02 14:29:09 :) Aug 02 14:29:23 I'm still waiting for JB on the S3. It's a new device, people. Port. Aug 02 14:31:31 * Kake_Fisk requests some simples layout assistance :) Aug 02 14:31:53 We use HoloEverywhere to make them all look Android 4'd up, but after all you might just have to use your own drawables for the spinners., Aug 02 14:32:35 hi, anybody have an idea why bouncycastle is found on android 2.2 and not on android 4.0.3 ? (api 8 and api 15) Aug 02 14:34:19 dreamreal: well, the service layer would offer the proper layer of abstraction... i.e. you can include the http-based service in your app and upgrade the app package whenever the other layer becomes available... only issues I see is deprecation strategy and switching strategy (i.e., do other apps need to be aware of the different transport layer), if that's relevant. But hard to say without context. Aug 02 14:34:42 dreamreal: also, "still waiting" a month after JB was released, you must be new, try a year :P Aug 02 14:35:44 My Galaxy tabs are supposed to get ICS (from honeycomb) this month, ICS was released in October 2011. Aug 02 14:36:02 10 months!! Aug 02 14:36:10 october? Aug 02 14:36:14 define "released" Aug 02 14:36:28 maybe it was ANNOUNCED in october Aug 02 14:36:29 HDroid: wait - that actually sounds worthwhile Aug 02 14:36:40 Well, source became available Nov 14. Aug 02 14:36:50 are you sure about that? Aug 02 14:36:59 http://en.wikipedia.org/wiki/Android_version_history#Android_4.0.x_Ice_Cream_Sandwich the WIKI might lie. Aug 02 14:37:26 hmmm ok Aug 02 14:37:34 the first device wasnt out until late november though Aug 02 14:37:38 thats why android is awesome, you dont have to wait on official releases Aug 02 14:39:51 I keep hoping cyanogenmod will get sprint activation working Aug 02 14:41:20 I can't figure out how to use scrollview Aug 02 14:41:32 There's not much to it. Aug 02 14:41:37 In jellybean I am calling removeAllViews on a linearlayout and then re-adding the children. Sometimes my linear layout fails to draw the newly added children. What gives? Aug 02 14:41:56 Kake_Fisk: that's unfortunate. Aug 02 14:42:07 I'll try find a youtube video Aug 02 14:42:17 Kake_Fisk: scrollview? just wrap your children inside of it. Aug 02 14:42:18 A Youtube video... splendid. Aug 02 14:42:32 But the children is always the wrong size Aug 02 14:42:46 I want the children to match_parent, but it doesn't Aug 02 14:44:02 Kake_Fisk: use a listview then Aug 02 14:44:11 Oh Aug 02 14:44:17 Listview with one element in it? Aug 02 14:44:56 Kake_Fisk: pastebin your layout please. Aug 02 14:45:11 does anyone have expirence with AndEngine? Aug 02 14:45:49 i do Aug 02 14:45:53 http://pastebin.com/PTttSm89 Aug 02 14:47:46 does anyone work at tumblr? Aug 02 14:47:53 can you shrink your oauth mobile view page Aug 02 14:47:57 yes, people work there Aug 02 14:48:01 nobodies screen is that small Aug 02 14:48:04 that large Aug 02 14:48:42 Kake_Fisk: that does not display a fullscreen edittext? Aug 02 14:48:52 Nope Aug 02 14:48:53 ««canadiancow|work»» i dont understand something pretty basic - why in all the examples i can find the baseGameActivity implements "onLoadEngine" and "onLoadScene" etc and when i import andengine the baseGameActivity implements other base methods like "onCreateResources" and "onCreateScene" etc .. ? Aug 02 14:48:56 Just one line Aug 02 14:49:20 snooplsm, seriously Aug 02 14:49:22 what is up w/ that Aug 02 14:49:25 Kake_Fisk: eh can't have the container wrap_content and edittext match_parent. Aug 02 14:49:32 j0e^, are you using GLES2? Aug 02 14:49:37 I.e. the scrollview has to match_parent for that to work. Aug 02 14:49:48 ««canadiancow|work»» yea.. gles1 is deprecated now Aug 02 14:49:50 you should use the actual AndEngineExamples project Aug 02 14:49:56 the examples you're looking at are probably based off GLES1 Aug 02 14:50:00 Okay, I'll try that Aug 02 14:50:27 doogan: i dunno, it probably looks fantastic on the iphone Aug 02 14:50:28 where do i find them? i tried looking for suiting examples all over the web Aug 02 14:50:53 https://github.com/nicolasgramlich/AndEngineExamples Aug 02 14:51:14 wongk: I have done this; https://pastee.org/4sf2f so far. Aug 02 14:51:16 I get "This EditText should use android:layout_height="wrap_content"" Aug 02 14:51:34 Kake_Fisk: tell it to buzz off :P Aug 02 14:52:05 ««canadiancow|work»» whoa ill try that thank you very much! Aug 02 14:52:05 Maybe I should look for an other solution. Maybe add a scrollbar to the edittext Aug 02 14:52:10 wongk: Any thoughts and ideas how to continue from there? Aug 02 14:52:49 Well... not sure why you'd put a single edittext in a scrollview, it does its own scrolling already, doesn't it? Aug 02 14:53:25 But the message you got is just a suggestion, it's not always right. Aug 02 14:53:38 My textbox does not scoll, no Aug 02 14:53:57 I just want to be able to see all the content when the keyboard is up Aug 02 14:54:58 why the feck isn't proguard removing my logging code Aug 02 14:55:19 http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft maybe one of those options gives satisfying behavior? Aug 02 14:55:50 I'll try Aug 02 14:57:20 Anybody here putting apps on the maket? Aug 02 14:57:43 * HDroid raises hand Aug 02 14:57:52 After "Source Code" happened to be a Groundhog's Day with bombs, I just know Hollywood is going to come out with a movie titled, "Logging Code", and have it be about tree cutting rules. Aug 02 14:58:21 funny thing about hollywood is that they don't think that actual source code is exciting Aug 02 14:58:24 see: swordfish Aug 02 14:58:27 Hrm. Aug 02 14:58:37 swordfish was actually filmed with the guy writing source code, in a somewhat technically accurate way. Aug 02 14:58:41 * rking hands 3 IRCPoints to HDroid for not simply saying, "Don't ask to ask." Aug 02 14:58:44 the producers had them replace that scene with pretty pictures of boxes Aug 02 14:58:51 I'm curious when somebody buys an app you posted, does google pay for each app, or do you get "paid" like every week biweekly, what? Aug 02 14:58:56 Yeah, because real programmers drink wine standing up while programming. Aug 02 14:59:02 lov: Oh, that sucks. Aug 02 14:59:20 I avoid all movies where I actually know something about the subject matter. It keeps my blood pressure down. Aug 02 14:59:28 Lil_ole_Me: you get paid whenever you get over $10 owed to you, or daily, whichever is longer iirc Aug 02 14:59:30 lov: Is that really true?? Aug 02 14:59:33 it might be weekly Aug 02 14:59:34 Jonathan_Eyre: yes Aug 02 14:59:42 Jonathan_Eyre: at least as far as I read it in a magazine :( Aug 02 14:59:51 That makes me unaccountably sad for some reason. Aug 02 14:59:59 lov: You might be glad to know that Minority Report is the opposite. The UI that the main character is using is from an actual UI futurist, whose TED talks you can still see. Aug 02 15:00:05 s/still/now Aug 02 15:00:24 Jonathan_Eyre: then you may not want to see http://www.youtube.com/watch?v=u8qgehH3kEQ Aug 02 15:00:25 http://www.ted.com/talks/john_underkoffler_drive_3d_data_with_a_gesture.html Aug 02 15:00:34 HDroid: Actually, that worked like a charm. Thanks" Aug 02 15:00:53 Still I've never seen a programmer use red wine as the liquid of choice during programming sessions. After, maybe. Aug 02 15:01:13 Lil_ole_Me: you get paid monthly. some time in the past you could choose the payout interval, but no more. Aug 02 15:01:36 i'll create a GUI interface using visual basic... Aug 02 15:01:40 see if i can track the killer's IP address Aug 02 15:01:51 I've heard that it's a really increased value of malware android aps Aug 02 15:02:17 Drager: what is? Visual Basic or red wine? Aug 02 15:02:22 At least the dragon tattoo girl used real MySQL code to access police databases. Aug 02 15:02:35 That made me happy. Aug 02 15:02:41 Jonathan_Eyre: :) Aug 02 15:02:45 heh Aug 02 15:02:47 lov: What? Aug 02 15:02:48 :_D Aug 02 15:03:32 Jonathan_Eyre: http://oracle-wtf.blogspot.se/2012/05/girl-with-ansi-tattoo.html Aug 02 15:03:35 :) Aug 02 15:04:01 Why do Content Observers run on a different thread than the main thread? Are they not just a callback mechanism? Aug 02 15:04:27 She used aliases to make the output look prettier, but it was real MySQL happening. I was thinking, I wonder what INDEX they use on that database? Aug 02 15:05:26 Jonathan_Eyre: I havent seen the movie in english, is it any good? Aug 02 15:05:41 Also, they used a lot of text fields (varchars) for the crime data instead of using crime numbers. I thought that could have been better. Aug 02 15:06:11 I would have a table of crime names to crime ids in a table, and I would have used foreign keys. Aug 02 15:06:29 But you can't expect the police to think of everything. Aug 02 15:06:41 :) Aug 02 15:07:14 Drager: that's neat Aug 02 15:07:51 Jonathan_Eyre: maybe it was MySQL 3.x ;) Aug 02 15:10:59 though even then numbers would be more useful due to easier indexing (and police depts already use similar scheme) Aug 02 15:14:23 someone knows a way to check if the title in the actionbar was ellipsised? Aug 02 15:15:38 lov: What is? Aug 02 15:16:14 11:03:39 < Drager> Jonathan_Eyre: http://oracle-wtf.blogspot.se/2012/05/girl-with-ansi-tattoo.html Aug 02 15:16:21 Ah yeah Aug 02 15:16:22 :) Aug 02 15:16:39 lov: Have you seen the movie? Aug 02 15:17:25 Drager: I saw the swedish version Aug 02 15:17:36 which was pretty neat since it sounded like everyone was the swedish chef Aug 02 15:17:47 haha, you're swedish? Aug 02 15:17:58 no, but the movie on netflix was Aug 02 15:18:10 (fun fact: the american remake was a remake) Aug 02 15:18:13 Ah, I have seen the swedish version aswell Aug 02 15:18:21 Ye I know Aug 02 15:18:30 Swedish version is the orginal Aug 02 15:18:48 anyhoo, this is #android-dev not #dragon-tattoo Aug 02 15:18:54 :D Aug 02 15:18:56 or #swedish-meatballs Aug 02 15:19:44 Hm, yeah. I'm currently stuck Aug 02 15:21:57 Kanelbullar! Aug 02 15:22:23 Kake_Fisk: English not norska Aug 02 15:22:24 :) Aug 02 15:22:45 ^^ Aug 02 15:24:01 Fragment question: When adding a fragment to a container by ID, how can I target a specific container if I have multiple containers with the same ID, since they are inflating the same XML? Do I need to use tags instead? Aug 02 15:24:46 I'm trying to use AsyncTask for uploading files but I'm currently stuck, I dont really know how to continue. https://pastee.org/sddt7 Any ideas? For now the app crashes but that's expected. Aug 02 15:27:21 Drager: your onClick should only be kicking off that asynctask Aug 02 15:27:25 it shouldn't be showing the dialog itself Aug 02 15:27:39 Drager: you also have to do your UI updates OUTSIDE of doInBackground Aug 02 15:27:49 Drager: I strongly recommend that you read the AsyncTask documentation before continuing Aug 02 15:28:19 lov: That was some nice info. Thank you sir Aug 02 15:31:30 lov: I should put my UI updates onm the onPostExecute with a response? Aug 02 15:32:05 hey, what android:persistent attribute does? Aug 02 15:33:53 Drager: that's where you should put UI updates when you're all finished Aug 02 15:34:12 Drager: I'd recommend creating your progress dialog in onPreExecute, and dismissing it in onPostExecute. Aug 02 15:34:28 Drager: you can update it in onProgress, and you can display the result in onPostExecute Aug 02 15:34:43 Makes sense. Aug 02 15:34:44 Drager: this is what those generic types you're providing are for Aug 02 15:36:01 Drager: listen to lov, he is god Aug 02 15:36:12 hey dudes Aug 02 15:36:17 i have a design question Aug 02 15:36:32 mikedg__: Yes, very good info Aug 02 15:36:36 in my C# projects i normally split up my classes/structs in different namespaces Aug 02 15:36:58 now in java my main namespace/package is com.smartsoftware.joystick/mobile Aug 02 15:37:10 err / -> . Aug 02 15:37:13 anyway Aug 02 15:37:14 k Aug 02 15:37:36 is it acceptable to name my other packages like com.smart......mobile.events Aug 02 15:37:39 and so on Aug 02 15:37:43 yup Aug 02 15:37:44 or just events Aug 02 15:37:49 thats usually how its done Aug 02 15:37:54 the first way Aug 02 15:37:57 yea one thing about that Aug 02 15:38:06 the name gets horribly long in eclipse Aug 02 15:38:19 and i have to scroll the navbars to view hte package name Aug 02 15:38:38 expand that pane Aug 02 15:39:29 * alankila wonders how heretical it would be to just use 2-component package names ... foo.bar, where foo is your name in some nice form and bar the name of software Aug 02 15:39:32 you can do whatever works best from you, but dont just do package events Aug 02 15:40:32 http://ravenlabs.org/storage/eclipse.png Aug 02 15:40:56 thats what eclipse made by default, but it seemed fishy Aug 02 15:41:01 so i changed it to the full name Aug 02 15:41:05 but then that happaned Aug 02 15:41:19 and i really wanna have more room for code rather than solution explorer Aug 02 15:41:32 why keep it expanded? Aug 02 15:41:32 is there really no way to shorthen the names or use some settings Aug 02 15:41:39 because i just around Aug 02 15:41:43 jump* Aug 02 15:41:56 that's natural Aug 02 15:42:01 especially in this early stage Aug 02 15:42:53 I'm getting mad. Aug 02 15:43:05 I've just made an application that puts the phone in constant vibration. Aug 02 15:43:34 viiibbbbbbrrrrrrrrrrraaattor Aug 02 15:43:34 that would make me mad too Aug 02 15:43:38 webczat: that's nice to hear, and a little hot too. Aug 02 15:43:44 hah Aug 02 15:43:44 Should sell well Aug 02 15:43:50 that would just arouse me instead of making me mad, though. Aug 02 15:43:58 hahaha Aug 02 15:44:07 pay $50 for that. :D Aug 02 15:44:14 there's a zillion apps that do that already Aug 02 15:44:19 and even if there weren't, it's trivial to do. Aug 02 15:44:24 yep Aug 02 15:44:34 but it's fun anyway. :) Aug 02 15:44:55 i bet it is ;) Aug 02 15:44:58 Can I make the app autostart on phone startup? Aug 02 15:45:10 or use broadcast receiver on boot completed? Aug 02 15:45:11 the more advanced ones had some "patterns" and so (morbid curiosity :D) Aug 02 15:45:59 or do you use other techniques? Aug 02 15:46:03 the latter Aug 02 15:46:11 you register for boot complete broadcasts, and request the appropriate permission Aug 02 15:46:19 mhmm... Aug 02 15:46:24 have that start a service (or a foreground service, since this is directly interacting with the user, yowza) Aug 02 15:47:05 it already starts a normal one. it's an experimental app for fun, so I don't think that it needs higher priority. Aug 02 15:47:15 and it can be stopped from apps. Aug 02 15:48:37 I would probably put some preferences to be able to decide if the app was stopped or not... hmm Aug 02 15:51:16 I have a linearlayout that separates 2 other linearlayouts as a divider. How do I make it so I can move this divider up and down so that either the upper or lower layouts take up more of the screen? Aug 02 15:51:44 how does a WebView handle cookies? (per-device, per-app or just per-session basis?) Aug 02 15:53:34 i hope i'm not too annoying with my stupid questions Aug 02 15:54:14 i have a public void MyMethod(string user, string pass, MyInterface call) Aug 02 15:54:24 inside that i have an anonymous AsyncTask Aug 02 15:54:44 in order to use the arguments i have to either pass them in the asynctask Aug 02 15:54:53 or eclipse suggests making them final Aug 02 15:55:08 whats the acceptable solution Aug 02 15:55:38 I use final Aug 02 15:56:41 I'm coming from C# as well--and my understanding of final is just that the memory reference isn't going to change. As long as that is acceptable, final should work fine. Aug 02 15:56:44 Ravenheart: I'd recommend passing them into the AsyncTask as arguments. Aug 02 15:56:59 final will work but it isn't really the proper solution, at least imo Aug 02 15:57:44 consider making a non-anonymous subclass of AsyncTask for this purpose that accepts whatever you need to pass as arguments Aug 02 15:58:15 if the value (or reference) isn't supposed to change, i use hte final keyword, becuase it tells other devs not to fuck with this because i expect it to remain constant Aug 02 15:58:20 lov i'm gonna have tens of methods Aug 02 15:58:25 and i get the benefit of being able to use it in anonymous classes Aug 02 15:58:33 anonymous inner classes are lame Aug 02 15:58:36 its not practical to make 20 asynctasks Aug 02 15:58:50 then you're doing something wrong Aug 02 15:59:10 well at this points its gonna be around 10 Aug 02 15:59:17 but its gonna grow fast Aug 02 15:59:21 twss Aug 02 15:59:41 :P Aug 02 16:00:48 Ravenheart: tens of methods meaning what? tens of different types of network connections you'll be using an async task for? Aug 02 16:00:56 tens of different network requests? Aug 02 16:00:59 yes Aug 02 16:01:15 i'm gonna be querying a webservice Aug 02 16:01:18 why not have a subclass of AsyncTask for performing network requests against your server, which accepts args for the relative path, and other important information Aug 02 16:01:44 because you have operations as simple as a login Aug 02 16:01:53 and as complex as registering a new examination Aug 02 16:02:10 so have a task that accepts a URI and a Map of parameters Aug 02 16:02:18 i cant imagine any HTTP request you're doing needs more than that Aug 02 16:02:43 perhaps a List of named value pairs and a url Aug 02 16:03:02 then just parse the resulting string Aug 02 16:03:06 i just said that Aug 02 16:03:10 yes i know Aug 02 16:03:16 i'm thinking out loud with you! Aug 02 16:03:34 think louder Aug 02 16:03:52 i can't think louder than my music is playing Aug 02 16:10:20 Is there a Device Configuration for the Droid Razr in Eclipse? Aug 02 16:12:31 Hi! I have a view with a tabhost in it and each tab contains a viewpager which contains fragments. For one tab it works perfect, but for the other i don't see anything. Any idea? Aug 02 16:13:41 lov: Your info helped me, I have moved a bounch of info. Everything works without the file to be uploaded ;) Aug 02 16:23:56 I created a colors.xml file in my res/values folder. How do I refer to it in xml? is it background="@color/black"? Aug 02 16:24:07 lov no matter how i think about it, i can't imagine how asynctask will handle multiple callback types :\ Aug 02 16:24:24 a huge switch and cast to interface X is one way Aug 02 16:24:30 but is it the proper way Aug 02 16:27:59 http://blog.callumtaylor.net/automaticversioncodeincrementereclipse Aug 02 16:28:03 may be useful for someone Aug 02 16:29:19 i liked the old major.minor.build numbering scheme Aug 02 16:29:41 increment the build every time, but major/minor are explicitly set Aug 02 16:30:07 my ap pversion 1.0.3 has a version code of 1003 Aug 02 16:30:24 i guess i could pad it with a few zeros Aug 02 16:30:30 and let that thing increment it Aug 02 16:31:22 I have a sliding drawer that when opened spans the majority of the screen. When I drag it open a small bit, it goes back to closed. When I drag it a significant amount, it opens all the way. How do I make the drawer stay only as open or closed as I drag it to be? Aug 02 16:31:43 it's like I'm opening the drawer half way and it either opens all the way or closes. I want it to stay half way Aug 02 16:31:53 i used to use the same as version name butg with out dots Aug 02 16:32:04 but its useful to tell if the client doesn't have the same build Aug 02 16:32:19 you're more likely to update the version code after every test rather than the version name Aug 02 16:32:27 version name is for app store uploads imo Aug 02 16:35:09 someone knows a way to check if the title in the actionbar was ellipsised? Aug 02 16:41:35 is the zoombutton subclass of imageview what adds that little square (with arrows within it) in the corner of images that let you zoom in/out of images? Aug 02 16:46:19 CallumTaylor, i agree Aug 02 16:46:19 but Aug 02 16:46:35 i wnat to be able to instantly know what version im looking at, given an error report with a version code Aug 02 16:46:51 so i could see using MMmmbbb Aug 02 16:47:01 so 1.2 build 34 would be 0102034 Aug 02 16:47:15 the autoincrementing would work (as long as you dont have more than 1000 builds, then you need to add another digit) Aug 02 16:47:15 true, but unless you have versioning on all of your files, you wouldn't be able to track the specific build code Aug 02 16:47:40 i would never distribute a build to anyone without checking it into git Aug 02 16:47:44 in which case the version code would be there Aug 02 16:47:47 ah fair enough Aug 02 16:47:49 if you're using git Aug 02 16:47:56 you could modify the script Aug 02 16:48:05 to get the version name, and append what ever to it Aug 02 17:01:02 If I have an App running a thread and a MapActivity separately, how can I allow the thread to recognize when a maker is created in the map overlay Aug 02 17:01:36 Specifically, I have a thread that is doing a sort of communication (ROS, but method doesnt matter), and needs to send the list of points created in the map overlay Aug 02 17:01:55 how do i get ViewDebug.TRACE_HIERARCHY to be true? Aug 02 17:02:48 CallumTaylor: not using version control for anything released is... idiotic Aug 02 17:05:46 interesting way to encode version numbers is to write them in hex Aug 02 17:05:59 p_l|home: We have dropbox running in the office, but because I'm a lone developer, I'm behind on my git comits Aug 02 17:06:04 The emulator supports OpenGL ES 2.0 now? Aug 02 17:06:07 as soon as a new dev joins ill be on top of it Aug 02 17:06:14 only for 4.0.3 or even older versions? Aug 02 17:06:36 CallumTaylor, that's a bad philosophy Aug 02 17:06:41 yeah i know Aug 02 17:06:47 and i hate myself for it Aug 02 17:07:06 chances are you won't do it even if there's another dev now Aug 02 17:07:10 :| Aug 02 17:07:13 no i will Aug 02 17:07:17 I'm always good with my commits Aug 02 17:07:23 I git init before I start writing anything. Aug 02 17:07:24 that's what we all say D: Aug 02 17:07:34 nope, i am good with my commits Aug 02 17:07:44 .. your CVS commits. Aug 02 17:07:44 Then there wouldn't be a problem in commiting even now. Aug 02 17:07:55 gitx helps, i can commit specific line changes Aug 02 17:08:03 magit or IntelliJ, and committing becomes easy Aug 02 17:08:11 well apart from i don't need to because I'm the only one working on the project Aug 02 17:08:11 though recently my IntelliJ been complaining some Aug 02 17:08:17 sorry for the language, but FUCK intelliJ Aug 02 17:08:19 we use git for multiple devlopment Aug 02 17:08:24 Syzygy_: heh, why? Aug 02 17:08:29 we have dropbox for version control anyway Aug 02 17:08:32 anyone an idea why this doesn't work? ( http://pastebin.com/mJSJYkb9 8 lines of code ) trying to check if the actionbar title was ellipsed Aug 02 17:08:36 never worked for me and did some stupid shit. Aug 02 17:08:38 CallumTaylor: *blink* Aug 02 17:09:09 also tight deadlines don't help >.< had 2 weeks to build a complete app Aug 02 17:09:12 Syzygy_: compared to Eclipse it worked like a charm Aug 02 17:09:14 Syzygy_: I wonder why everyone else manages to use it Aug 02 17:09:20 (for me) Aug 02 17:09:39 i dunno, stuff usually magically breaks when I use it. Aug 02 17:09:42 Hi guys, sorry to my noob question Aug 02 17:09:59 but i'm using a sqlite database in my android app and i found a security fail, Aug 02 17:10:13 jalmeida: do tell? Aug 02 17:10:14 for example, if i access my smartfone with root user Aug 02 17:10:16 Syzygy_: so maybe you should, um, perform carnal acts on yourself, since you seem to be the breaking point :) Aug 02 17:10:24 and get a database file from device to my computer, Aug 02 17:10:33 I don't want to D: Aug 02 17:10:33 and modify it, will is possible upload it again with modified informations? Aug 02 17:10:38 Syzygy_: :) Aug 02 17:10:41 jalmeida: ... root removes all permissions checking Aug 02 17:10:43 Syzygy_: does Eclipse work for you? Aug 02 17:10:50 jalmeida: that's not a bug Aug 02 17:11:02 yes, although there was a time it didn't recompile java stuff when i told it to start my code. Aug 02 17:11:32 jalmeida: and yes, you can place it again. I had to do that several times when certain system components got stuck in bad state and couldn't open their sqlite dbs Aug 02 17:11:37 so i was trying for 2 hours to fix a bug only to notice that there are pritnln's I took out Aug 02 17:12:09 now it works fine for me though Aug 02 17:12:10 Syzygy_: That's very odd - because while android development can be "interesting" (so far, as a noob) I've found the tools pretty capable Aug 02 17:12:41 dreamreal, well, this was 2 years ago or so, and I coded normal java. Aug 02 17:12:59 Anyone familiar with how to access a list of points (listView or MapOverlay) from another thread. I start a thread from within my main that handles communication, but it needs to access the list and send the points. Is there a correct way to do this within Android?? Aug 02 17:13:09 so... you're blaming IDEA for a problem you had two years ago, when such problems were normal for you to experience? Aug 02 17:13:15 but if i have in this database prices of products, other user can modify this prices en buy the product with other price, correct? Aug 02 17:13:25 dreamreal, no, i'm blaming eclipse for this ;) Aug 02 17:13:42 back then I didn't have access (or knowledge of) intelliJ Aug 02 17:13:46 but you said to screw *idea*, not *eclipse*... Aug 02 17:13:56 Syzygy_: if it makes you feel any better, i don't like idea either Aug 02 17:14:13 p_l|home: is likely to occur Aug 02 17:14:14 bah, both of you are being silly now Aug 02 17:14:21 jalmeida: that's bad design on your part Aug 02 17:14:33 jalmeida: prices etc. should be checked outside of client control Aug 02 17:15:02 for example, in-app purchasing has prices validated etc. on external server Aug 02 17:15:23 dreamreal, when I used it half a year ago intelliJ was barely useable to me, admitedly i didn't read anything on it, but... I couldn't switch packets or even access the files I was working on. Aug 02 17:15:51 I tend to avoid software that is unintuitive. Aug 02 17:16:05 you're right Aug 02 17:16:08 The actual implementation is to use my tablet to send a robot waypoints generated via GoogleMaps. The interface is finished, however I need to now grab the points and send them to the vehicle Aug 02 17:16:13 vim is the best IDE Aug 02 17:16:16 notepad Aug 02 17:16:18 ftw Aug 02 17:16:33 Syzygy_: *nod* fair enough, although I have found intellij to be the most intuitive IDE personally by far Aug 02 17:16:33 I was trapped in vim for 2 hours once, I couldn't even alt tab out of it. Aug 02 17:16:40 I just cat > foo.java and write the code perfectly the first time Aug 02 17:16:47 no alt f4 Aug 02 17:16:48 nothing Aug 02 17:16:52 like, to the point where I might try something on a lark, just because it seems like it'd make sense, only to find IDEA was already there Aug 02 17:16:53 thanks, to answer my noob question Aug 02 17:16:54 i dislike vim Aug 02 17:16:56 Syzygy_: errrrrr Aug 02 17:16:56 much prefer nano Aug 02 17:17:00 =) Aug 02 17:17:06 Syzygy_: which OS? Aug 02 17:17:10 windows Aug 02 17:17:13 7 Aug 02 17:17:17 well, that explains that Aug 02 17:17:21 Syzygy_: well there's you're problem. Aug 02 17:17:23 ^ Aug 02 17:17:25 git forced me into it. Aug 02 17:17:33 git on windows is horrible Aug 02 17:17:41 CallumTaylor: can be not horrible Aug 02 17:17:44 i use git on windows regularly Aug 02 17:17:49 but you need to first setup cli properly Aug 02 17:17:55 windows is a lame dev platform Aug 02 17:17:56 every client i found for windows sucked Aug 02 17:18:03 I liked SFU/SUA, even if it was quirky Aug 02 17:18:06 i've never had an issue with it Aug 02 17:18:13 I don't know why people would develop on windows when fedora's free, unless they were developing *for* windows Aug 02 17:18:22 i use OSX Aug 02 17:18:25 Though now I know that MS internally uses (at least some windows devs do) Cygwin -_-; Aug 02 17:18:27 trackpad + gestures = awsumness Aug 02 17:18:41 anyway, VIM is the most unintuitive clusterfuck i've ever seen. if you have the 4000 page handbook next to you and you're willing to read it, it might be awesome. but without it you're quite fucked. Aug 02 17:18:47 dreamreal: people are shackled in the Microsoft garden Aug 02 17:18:48 i use windows Aug 02 17:18:50 and it works fine Aug 02 17:18:56 Syzygy_: press i Aug 02 17:18:58 type Aug 02 17:19:00 hit escape Aug 02 17:19:01 :wq Aug 02 17:19:02 done Aug 02 17:19:08 didn't work for some reason Aug 02 17:19:09 sounds complimicated Aug 02 17:19:19 nothing worked Aug 02 17:19:34 i couldn't quit out of it, with none of the commands people told me. Aug 02 17:19:36 dreamreal: well, Windows is a big market. The OS isn't that horrible by itself, but the environment it must support is (all the crappy VB6 apps!). VS2010 looks awesome though with some of the tools they include Aug 02 17:19:49 Syzygy_: were you actually running vim Aug 02 17:19:54 yes. Aug 02 17:19:58 in a CLI Aug 02 17:20:08 p_l|home: It's not a matter of "developing for windows is stupid" Aug 02 17:20:13 VS2010 is the best IDE I've ever used imho. Aug 02 17:20:20 it's that "developing for anything else *while on* windows is... suboptimal" Aug 02 17:20:27 Syzygy_: actually, even nipple is a learned interface Aug 02 17:20:30 and "much better alternatives are free" Aug 02 17:20:31 no even developing for windows is bad Aug 02 17:20:31 i dev for android on windows Aug 02 17:20:40 and it works fine Aug 02 17:20:45 danharibo: well, I work for RHT, so I agree although I'm clearly biased Aug 02 17:20:49 Syzygy_: your own pre-learned skills confused you in ViM Aug 02 17:20:51 i have much fewer problems than my colleagues who use mac Aug 02 17:20:51 The stuff you need to do for include paths Aug 02 17:20:56 that is possible. Aug 02 17:20:58 canadiancow|work: sure, it works... Aug 02 17:21:09 where as on Linux and friends, it's much simpler Aug 02 17:21:15 not to mention libraries auto-updating. Aug 02 17:21:17 but still, on any other text editor you push the keys and text appears. Aug 02 17:21:31 danharibo: IMHO mainly thanks to pkg-config, which, guess what, can be used on windows too :) Aug 02 17:21:32 Syzygy_: same in Vim, you just need to be in insert mode. Aug 02 17:21:41 p_l|home: It doesn't ship by default does it. Aug 02 17:21:41 when I pushed the keys i was writing in up to 4 different locations, even if i pushed only the same button Aug 02 17:21:58 Syzygy_: just be happy you didn't have to use TECO Aug 02 17:22:16 p_l|home: IPF and ISPF (IPF was the univac equivalent to ISPF) Aug 02 17:22:24 so when i pushed a 10 times, the aaaaa's appeared in 4 different locations Aug 02 17:22:29 Aug 02 17:22:35 p_l|home: hahaha Aug 02 17:22:37 vibrate program finished. :D Aug 02 17:22:42 okay, in that case, you win :) Aug 02 17:22:46 man, eclipse graphical layout organizing is hard Aug 02 17:22:52 dreamreal: I actually used ISPF. Worse, I even *have* it on my laptop :D Aug 02 17:23:07 anyway, I should get back to this OpenGL ES 2.0 tutorial Aug 02 17:23:08 dreamreal: it has *nothing* on TECO Aug 02 17:23:18 What do you think about eclipse? Aug 02 17:23:23 who? Aug 02 17:23:24 p_l|home: you... HAVE ISPF? Aug 02 17:23:34 people here Aug 02 17:23:34 * dreamreal begins to pity p_l|home Aug 02 17:23:36 dreamreal: shhh, don't let IBM hear Aug 02 17:23:41 eclipse is fine. Aug 02 17:23:59 afaik recommended platform by the android devs. Aug 02 17:23:59 the only way for me, actually. Aug 02 17:24:00 I actually did a lot of cool stuff with IPF, built a mailing system, messaging system, etc Aug 02 17:24:14 Syzygy_: if you had pushed i 10 times, you'd have 9 Is typed. Aug 02 17:24:14 but... horrors, horrors Aug 02 17:24:24 ipf? Aug 02 17:24:28 dreamreal: it's still better than TECO Aug 02 17:24:34 webczat, there are better IDEs, but none for java imho, at least none I know. Aug 02 17:24:55 eclipse w/ emacs+ plugin yo Aug 02 17:25:04 dreamreal: TECO comes from the fact that paper tape, while cheaper to make, was harder to edit than punched cards.. Aug 02 17:25:15 p_l|home: yes, I have used TECO, although thankfully very little Aug 02 17:25:22 what do they have java ides don't? Aug 02 17:25:23 is there a place to download the Droid Razr Device Configuration for Eclipse? Aug 02 17:25:51 ... I think I *had* TECO on a physical machine (preinstalled with OS!) till June Aug 02 17:26:09 brb Aug 02 17:26:14 ugh. Didn't it come with OS/2, mostly as proof that IBM had no clue? Aug 02 17:27:00 How can I change the title of each activity (screen)? Aug 02 17:27:17 I have tried setTitle(); Aug 02 17:27:36 well, crap, this stupid thing is not issuing an http post on schedule Aug 02 17:29:02 can overusing the vibrator brick the phone? :D Aug 02 17:29:14 or overrebooting Aug 02 17:29:36 and apropos, what's permission brick? Aug 02 17:30:45 it says that it allows disabling the phone buc actually... Aug 02 17:30:46 hmm, so my scrollTo works in the gridlayout, but that freezes the scroller in place, and doing it on the surrounding scrollview has no effect Aug 02 17:30:48 what should i do? Aug 02 17:31:27 webczat, just out of curiosity, what are you doing? Aug 02 17:32:42 I'm just learning. Actually I have the program that overvibrates the phone, the brick question was just because I've looked at permission list and seen that Aug 02 17:34:42 anyone familiar with scrollviews know? Aug 02 17:35:19 is there a site that shows examples of each R.layout option? Aug 02 17:38:18 webczat, I thought dildo app. Aug 02 17:38:27 anyway, what is overvibrating a phone? Aug 02 17:38:50 it's just turning the vibrator on and trying to make it on constantly Aug 02 17:38:57 until explicitly stopped Aug 02 17:39:14 souds like a dildo app to me ^^ Aug 02 17:39:31 what do you mean? Aug 02 17:40:04 one of those apps that women can use to pleasure themself with their phones.. Aug 02 17:40:11 lol Aug 02 17:40:22 actually no. it's just something like programming skilltest Aug 02 17:40:27 or because I was bored Aug 02 17:40:58 yeah, doing something similar, but with the accelerometer. Aug 02 17:41:08 trying to make some videogames, utilizing it Aug 02 17:41:22 You're probably lowering the lifetime of the vibrator significantly, depending on how long it's on Aug 02 17:41:32 hmm few minutes Aug 02 17:41:33 ^^ Aug 02 17:41:57 I don't want to make it work for few hours Aug 02 17:42:28 webczat is a quick worker, if you know what I mean. Aug 02 17:42:37 erm :D Aug 02 17:42:47 this discussion feels a bit perverted. Aug 02 17:42:50 continue. Aug 02 17:42:59 anyway what about the android permission BRICK? Aug 02 17:44:02 webczat: it is exactly what you think it is, but I don't think that anyone has actually implemented it yet. Aug 02 17:44:15 erm or maybe it's just native? Aug 02 17:44:15 I'm assuming that it's for devices where the administrator can remotely kill it Aug 02 17:45:30 and how should it work? initiating something that will try to incidentally brick the phone? Aug 02 17:46:34 it sounds very strange and hmm destructive :D Aug 02 17:47:31 webczat: not at all. Aug 02 17:47:43 so wtf? Aug 02 17:47:46 webczat: it's not really relevant for consumer devices, but consider devices distributed to employees, or to military officers Aug 02 17:48:02 :O:O:O Aug 02 17:48:17 most companies will already mandate that if a device can connect to their outlook network, their administrators need to be able to remotely wipe it, in case it's stolen Aug 02 17:48:21 which is a reasonable concern! Aug 02 17:48:38 wipe it or brick it? :D Aug 02 17:48:40 if someone steals your smartphone and then is able to pull highly sensitive information from the corporate infrastructure, that's A Bad Thing Aug 02 17:48:48 wiping, for now. Aug 02 17:48:54 However, bricking has its uses too Aug 02 17:49:02 lets say that I'm working on a pre-production device, and someone steals it Aug 02 17:49:15 I could wipe it, but then someone still has my pre-production device, just with a factory reset setup. Aug 02 17:49:24 I'd rather that the device is now bricked, so that no one is able to poke at what I'm doing Aug 02 17:49:26 is there a site that shows examples of each R.layout option? Aug 02 17:49:45 hip2p: they'll vary from version to version or even vendor to vendor Aug 02 17:49:49 hip2p: you could look in AOSP Aug 02 17:50:00 ah ok Aug 02 17:50:41 also, I have a Droid Razr that I'm testing my app on, but there's no default Droid Razr in the Eclipse Device Configuration. Is there a place where I can download new Device Configurations for the newest phones? Aug 02 17:50:49 or do I have to manually create each one Aug 02 17:51:21 I don't know; I assume you have to do it individually Aug 02 17:51:35 hmm Aug 02 17:51:44 lov, I would plant remote detonated explosives in that type of device :D Aug 02 17:51:52 rather than bricking it Aug 02 17:51:56 blowing it up :D Aug 02 17:52:03 Syzygy_: cute Aug 02 17:52:05 and then everyone will be happy \o/ Aug 02 17:52:26 Syzygy_: just the same, see incidents of apple remotely and intentionally bricking stolen/lost preprod devices Aug 02 17:52:31 and btw, how do you shutdown the device using an app? Aug 02 17:52:44 webczat: priviledged API calls Aug 02 17:52:59 (I'm just talking about firecrackers that would be enough to blow the device open and break stuff, but not enough to actually injure a person. Aug 02 17:53:00 e.g. the factory reset button in settings Aug 02 17:53:01 ) Aug 02 17:53:08 Syzygy_: enjoy your lawsuits Aug 02 17:53:32 hmm actually why an app can reboot the device at it's will but can't shut it down? Aug 02 17:54:06 Syzygy_: I need a guy in Iran who is good with that kind of stuff Aug 02 17:54:15 calls them IEDS I forget what it stands for Aug 02 17:54:24 let me look for his email address Aug 02 17:54:52 I don't need it. Aug 02 17:55:00 I think i have his adress too. Aug 02 17:55:03 info@cia.gov Aug 02 17:55:09 like I can probably put it in fastboot but not shutdown? Aug 02 17:55:10 ask him for any IEDs you need Aug 02 17:55:11 ^^ Aug 02 17:55:18 also supply your home adress for delivery reasons Aug 02 17:55:19 IED stands for incendiary explosive device if i'm not mistaken. Aug 02 17:55:23 13:52:52 < lov> webczat: priviledged API calls Aug 02 17:55:30 Syzygy_: whoosh Aug 02 17:55:45 I just sait that I don't really understand the reason for that Aug 02 17:56:13 and by privileged do you mean root? Aug 02 17:56:24 webcat its there to protect. Ever heard of TRAP calls?? Aug 02 17:56:29 can't a guy talk a bit about explosives on the internet without getting in trouble with law enforcement? T_T Aug 02 17:56:50 <16SABQ7YH> Anyone familiar with how to access a list of points (listView or MapOverlay) from another thread. I start a thread from within my main that handles communication, but it needs to access the list and send the points. Is there a correct way to do this within Android?? Aug 02 17:56:51 webczat: no Aug 02 17:56:59 webczat: API calls guarded by permissions checks Aug 02 17:57:16 is it power manager's reboot call? Aug 02 17:57:19 16SABQ7YH: no more so than in Java in general. Aug 02 17:57:29 webczat: probably, I don't know offhand. Aug 02 17:57:42 I don't know either. Aug 02 17:57:49 lov: I manged to get it to work. Thanks for the help btw :) Aug 02 17:58:05 16SABQ7YH, I assume you need a "storage" object that is synchronized accross threads. Aug 02 17:58:14 or rather a storage class. Aug 02 17:58:42 Use runOnUiThread Aug 02 17:59:02 Also use locks if shared resource Aug 02 17:59:12 which is why i said synchronized Aug 02 17:59:13 <16SABQ7YH> Syzygy_: basically. I will have a list of waypoints created in an itemizedOverlay. I then need to access them from another thread. Technically, this thread is a ROS thread that uses a Cancelableloop Aug 02 17:59:54 you probably need something non threaded to link those 2 threads together. Aug 02 18:00:12 <16SABQ7YH> I agree, just not sure of how to do it yet Aug 02 18:00:49 Drager: no problem Aug 02 18:01:15 16SABQ7YH: shove these items into a singleton, synchronize access to it./ Aug 02 18:01:17 <16SABQ7YH> Basically, my app generates multiple fragments (map, list, etc.) In the map fragment, multiple waypoints are generated to create a list. From the Main Activity, I also start a nodemanager (for ROS) which essentially creates a cancelableloop in a thread Aug 02 18:01:24 Have listeners if you're feeling saucy Aug 02 18:01:27 either both threads know of an object and can access the objects values (as in setValue(x); getValue(); but don't forget about synchronization) Aug 02 18:01:41 You just use a WriteLock whenever you write to the shared variable, ReadLock when reading Aug 02 18:01:48 avoid race conditions Aug 02 18:01:55 no storage object Aug 02 18:01:55 unsynchronized are threads bad. Aug 02 18:01:58 <16SABQ7YH> Syzygy_: Agreed, which is why I thought about a singleton (lov), but wasn't sure if there was another better way to handle it Aug 02 18:02:15 <16SABQ7YH> Syzygy_: Also, doesn't help that I haven't done singletons in like 7 years Aug 02 18:02:34 i'm pretty sure you're not looking for singletons. Aug 02 18:02:58 the keyword is synchronized Aug 02 18:03:20 as in public synchronized int getValue(); Aug 02 18:03:27 <16SABQ7YH> I follow you Aug 02 18:03:49 http://docs.oracle.com/javase/tutorial/essential/concurrency/locksync.html Aug 02 18:03:49 [14:02:15] <16SABQ7YH> Syzygy_: Also, doesn't help that I haven't done singletons in like 7 years Aug 02 18:03:51 i dont even Aug 02 18:04:01 7 years ago i had never heard of a singleton Aug 02 18:04:10 http://docs.oracle.com/javase/tutorial/essential/concurrency/syncmeth.html Aug 02 18:04:16 7 years ago i had never heard of a linked list though Aug 02 18:04:38 <16SABQ7YH> canadiancow|work: seriously, that is how you pipe in. Fine, say 4 years ago when dealling with embedded C. Exact enough for ya Aug 02 18:04:50 <16SABQ7YH> Syzygy_: thanks, I will check those out Aug 02 18:05:01 I was 15 7 years ago. I hadn't heard of anything Aug 02 18:05:01 might not be the best source, but it's "official" Aug 02 18:05:08 as in, those guys develop java. Aug 02 18:05:38 Syzygy_: no, I meant a Singleton. Aug 02 18:05:47 Obviously he'll need to synchronize / make threadsafe his implementation Aug 02 18:05:47 <16SABQ7YH> Syzygy_: thanks. Do you believe the links will also help me see the best way to access the MapActivity (or its itemizedlist) from the thread, or is it as simple as making an object call to it Aug 02 18:05:57 but I was suggesting that he could use a Singleton object to have his disparate items use Aug 02 18:06:17 I have no idea, I'm just getting started on android myself Aug 02 18:06:35 <16SABQ7YH> lov: it may still not be a bad idea. I actually need to access the list in three different locations: MapActivity, ListFragment, new Thread Aug 02 18:06:50 <16SABQ7YH> lov: I am just not sure of the best way to implement that Aug 02 18:07:07 16SABQ7YH: static final object :P Aug 02 18:07:10 16SABQ7YH, either wrap it in synchronized block or use Locks. Any mechanism to avoid race conditions. That's all that matters Aug 02 18:07:31 comedy option: pass a reference to the MapActivity to the thread, weep. Aug 02 18:07:36 as long as you know that its being accessed by one thread at a time Aug 02 18:07:56 <16SABQ7YH> I follow both of you Aug 02 18:08:25 <16SABQ7YH> however, in this case the singleton would be the better option so I only have one instance of the object created (correct??) Aug 02 18:08:37 I believe so Aug 02 18:08:44 GLSurfaceView.RENDERMODE_CONTINUOUSLY or RENDER_WHEN_DIRTY for a game? I'm tempted to use continuously. Aug 02 18:08:51 it depends on how your app is architected; you could want multiple instances of these collections and such Aug 02 18:09:34 e.g. multiple Map view fragments see different routes Aug 02 18:09:58 <16SABQ7YH> lov: I really do only want one instance of the list. I guess my current issue is then how should I generate the singleton. My main activity creates the MapActivity (through Fragments) which in turn creates the Overlay. I need a singleton of this list (from the overlay) so I could access it from the thread, listview, etc. Aug 02 18:10:38 <16SABQ7YH> lov: Do i generate the singleton when creating the map activity? Aug 02 18:11:23 hi just asked the same in #android before i realized i joined the wrong channel .. anyway, i have a PreferenceFragment subclass. it contains a screen with a list of what i call 'services'. when the user chooses a service, an instance of this service will be created. in the same moment a group in another screen will be created for the new instance for the user to configure. how can i 'transfer' the user to this other screen and scroll down Aug 02 18:11:24 to the group? Aug 02 18:12:39 I'm still wondering if I should use the continuous render mode or the other one :/ Aug 02 18:14:29 <16SABQ7YH> For instance, the one method I was turned to for sharing values was described in the answer here http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables Aug 02 18:14:55 I deleted my gen folder so R would refresh, but it wasn't recreated. Any suggestions? Aug 02 18:15:11 just clean and build again? Aug 02 18:15:21 ok Aug 02 18:15:54 nope clean and rebuild didn't do it Aug 02 18:16:08 16SABQ7YH: http://pastebin.com/eijKW41q Aug 02 18:16:19 Fix the compilation error, clean and build Aug 02 18:17:07 the compilation errors are related to the missing R.java Aug 02 18:17:12 you prob have a copilation error in your Java file Aug 02 18:17:18 comment out the last class you edited Aug 02 18:17:22 and clean project/build Aug 02 18:17:28 <16SABQ7YH> lov: thanks for the pastebin. I do remember the regular layout for the singleton. I then thought about adding my list and various functions into that file, however, is that the correct way to handle this Aug 02 18:17:42 <16SABQ7YH> then just create an object of the singleton class in both the mapactivity and the new thread to allow data pass Aug 02 18:17:45 How can I get a buttom at the bottom of the activity? Aug 02 18:17:46 know of an app to record screen cast for galaxy nexus? Aug 02 18:18:03 Drager: use a relative layout, alignParentBottom="true" Aug 02 18:18:03 <16SABQ7YH> lov: If so, then I have been wasting a lot of time trying to find an "Android" way of doing this Aug 02 18:18:07 Drager, Align parent bottom Aug 02 18:18:38 themirror: In the