**** BEGIN LOGGING AT Fri Mar 01 02:59:58 2013 Mar 01 04:04:53 anyone know a way to hide the box on a checkbox? Mar 01 04:05:54 don't use a checkbox? Mar 01 04:06:02 how would you know it's there? Mar 01 04:07:00 yeh i really just want to show a tick Mar 01 04:07:21 but ... then when it's off you see .... nothing? Mar 01 04:07:35 yeh its not interactive, when its off it wont even appear Mar 01 04:07:52 guess ill just draw a tick instead Mar 01 04:08:22 and manipulate the visibility Mar 01 04:09:10 yeh Mar 01 04:10:40 I wonder if I'm the first person to connect here from Puppy Linux. Mar 01 04:12:55 i wonder if anyone cares Mar 01 04:13:10 i wonder if anyone wonders if i wonder Mar 01 04:13:28 Precise Puppy Linux to be.... Well..... Precise. Mar 01 04:13:32 i just wonder Mar 01 04:13:55 had a dream last night i found a linux i liked :) Mar 01 04:14:30 Was it Android? Mar 01 04:14:36 nope Mar 01 04:14:48 it was like a good version of ubuntu if i recall :) Mar 01 04:15:08 Oh, 8.04 Mar 01 04:40:50 How's it going guys? Mar 01 04:41:21 not close enough to beer o'clock for my liking Mar 01 04:41:38 Haha, I feel you. Mar 01 04:41:55 do you? pervert .... Mar 01 04:42:28 :P Mar 01 04:42:45 How can I optimize this application I'm developing? Mar 01 04:42:51 So I'm working with multiple APIS Mar 01 04:42:51 write the code better Mar 01 04:43:19 Query 1 API, use results from that API to query Youtube API, then use results from that API to parse HTML from a page Mar 01 04:43:52 So counting, I'm executing 3 asynchronous tasks at once . . . all using HTTP clients of their own . . . Mar 01 04:56:58 ah, i start my first app with minSdk=ICS Mar 01 04:57:04 \o/ Mar 01 04:58:13 gingerbread man is sad Mar 01 04:58:54 fuck HC too :) Mar 01 04:59:04 who cares about HC? :) Mar 01 05:02:28 JesusFreke: i guess antlr v4 is out Mar 01 05:03:19 yeah, I haven't really looked at it Mar 01 05:03:27 dunno if I'll switch Mar 01 05:03:54 I probably won't, unless there's a good reason to Mar 01 05:04:39 g00s, min ICS???? Mar 01 05:04:45 your TARGET was froyo yesterday Mar 01 05:05:42 canadiancow: a new app, doing some stuff with mqtt Mar 01 05:06:17 emu should be fine Mar 01 05:06:26 are you using 14 or 15? Mar 01 05:06:30 as your min Mar 01 05:07:37 oh man, i didn't know there was a split between 4.0.x branches for 14/15 Mar 01 05:08:13 i guess 14? Mar 01 05:08:39 I don't think you have to worry about 14 Mar 01 05:08:57 i have an app with min of 14 and i only have 0.04% of users there. Mar 01 05:09:48 was it one of those stories like android 2.0 which everybody got migrated to 2.1 basically (and there was only one 2.0 phone) Mar 01 05:09:56 yea, I think so Mar 01 05:10:04 Hi again Mar 01 05:11:44 nice. it's pretty much evenly split between GB and ICS, for my penroser app Mar 01 05:12:14 they don't even have a category for api 14 in the stats on the play store developer console thingy Mar 01 05:12:55 i have a lot of catching up to do. i've been living in a land of froyo + compat lib Mar 01 05:13:14 or maybe that's only because I don't have any users in that category Mar 01 05:13:50 yeah i have 14 in the stats on the play store. i actually also see 15 devices on Android 2.3.3-2.3.7 even though this app never supported such (i imagine it's hacked play stores) and 1 under "Other" Mar 01 05:14:02 hah Mar 01 05:14:26 mine isn't popular enough to get the crazy stuff like that :p Mar 01 05:14:37 I only have ~1000 active installs or so Mar 01 05:14:37 kevinb: well, the good news is that your users are pretty committed :D Mar 01 05:15:32 true. too bad all their commitment won't help the app run on 2.3 though Mar 01 05:18:30 so, if i have an app on the store with targetSdk=8; and i decide i want to do a huge UI overhaul. probably a new apk for ICS+ folks. can i leave both apks on Play; the old one for foroy/gb and the second one for ICS+ ? Mar 01 05:18:43 hmm. I *think* so Mar 01 05:18:52 I think there's that alternate apk thingy Mar 01 05:19:04 where you can use different apks for different device characteristics Mar 01 05:20:06 yeah Mar 01 05:20:12 JesusFreke: ok; wonder if i need to change the old manifest to maxSdk=10 or something Mar 01 05:20:21 hey ron_frown Mar 01 05:20:28 oi Mar 01 05:20:36 g00s got a bunch of hardware on order =) Mar 01 05:20:38 haha Mar 01 05:20:45 I don't think so - I think you set the characteristics via the publisher site Mar 01 05:26:18 ron_frown: any lasers this time ? :D Mar 01 05:26:32 no no Mar 01 05:26:53 I got crapload of sensors and arduino stuff for now Mar 01 05:26:59 I can make due with that for now Mar 01 05:27:11 lasers are for later , huh Mar 01 05:30:17 g00s, i think im using 14 as a min Mar 01 05:30:35 but it wasnt really my decision and i dont care enough to think about it :P Mar 01 05:30:59 Q: I doubt this works, but is it possible to intercept a link click in a textview? Assuming that the textview's linksClickable="true" and it has some links in it Mar 01 05:35:49 ok so everyone I am linkedin tarded Mar 01 05:37:16 their UI keeps changing; they want to stuff media down everybody's throats now. Mar 01 05:37:30 I think the endorsements were good idea Mar 01 05:37:36 that way if someone says oh I know blah Mar 01 05:37:43 i disabled everything on my feeds, it was nuts Mar 01 05:37:47 and I know that to not be the case I can chose not to endorse Mar 01 05:37:56 I didnt realize I had absolutely 0 skills listed Mar 01 05:37:56 haha Mar 01 05:38:08 * g00s endorses your 0 skills Mar 01 05:39:37 gobs of it now Mar 01 06:00:55 romainguy_: quick q :| just installed LR for the first time today, and it asked me about a catalog. Do you have one, or did you split your somehow ? Mar 01 06:01:08 (into multiple) Mar 01 06:03:06 I have only one Mar 01 06:03:10 I'm thinking about splitting it Mar 01 06:03:16 One for family photos, one of the rest Mar 01 06:03:36 ah, ok. thought maybe i should have one per year maybe Mar 01 06:03:53 Bah there's no need to Mar 01 06:04:09 ok, phew. want things simple Mar 01 06:04:27 but also dont want to choose the wrong thing in the beginning and make trouble for myself ;) Mar 01 06:06:03 thx Mar 01 06:07:12 hm Mar 01 06:07:23 my problem from yesterday still exists :( Mar 01 06:07:33 http://pastebin.com/jd84byiU Mar 01 06:09:41 lines 48, 49, and 50 error with getOd() or getName(0 not existing for the GPSFlag type Mar 01 06:11:57 actually, I'll try bouncing the box Mar 01 06:16:56 g00s: you can't go wrong, it's easy to change things later on Mar 01 06:19:18 ok, thats good - cause i have no idea what i'm doing :P romainguy_ btw, have you seen any of Eliot Porter's stuff? I was taken back by not being able to recognize anything at all. no grand panoramas, identifiable spots. all intimate landscape Mar 01 06:21:18 everything is very subtle in tone; very little drama even. quite a contrast to what i often see today Mar 01 06:56:37 can anyone help with a problem im having with the repo program for managing android source? sorry if this is off topic Mar 01 07:09:21 what's your problem? Mar 01 07:09:52 romainguy_: if he's too slow I have a weird problem :) Mar 01 07:10:04 http://pastebin.com/sWFxj5QF Mar 01 07:10:24 hm, I'm having a really weird issue with some code, lines 48, 49, and 50 error complaining that there is no method getName() or getId() for the type GPSFlag Mar 01 07:10:46 hm, is it possible that the getView(int, View, ViewGroup) method is causing the problem? Mar 01 07:11:48 what's the compiler error exactly? Mar 01 07:12:26 The method getName() is undefined for the type GPSFlag Mar 01 07:12:31 or getId() Mar 01 07:12:43 No, please copy the exact output of the compiler Mar 01 07:13:07 (javac, not your IDE) Mar 01 07:13:10 oh um, how do I get the compiler output from eclipse? Mar 01 07:14:03 actually, look at this "Description Resource Path Location Type Mar 01 07:14:03 The type parameter GPSFlag is hiding the type GPSFlag GPSFlagAdapter.java /GPSFlag/src/com/shanehowearth/GPSFlag line 14 Java Problem Mar 01 07:14:09 shit, sorry Mar 01 07:14:39 the type parameter is hiding the type GPSFlag Mar 01 07:15:31 ok I see what's going on Mar 01 07:15:43 remove from your GPSFlagAdapter declaration Mar 01 07:15:51 leave it on ArrayAdapter though Mar 01 07:16:07 public class GPSFlagAdapter extends ArrayAdapter Mar 01 07:16:09 like this Mar 01 07:16:12 \o/ Mar 01 07:16:23 that's been a bugbear for a week!!!! Mar 01 07:16:28 thanks :) Mar 01 07:18:22 hi Mar 01 07:36:19 ok, so i 'm doing this: Mar 01 07:36:36 http://pastebin.com/3R76rMBJ Mar 01 07:36:51 how to add another button next to tv1 Button? Mar 01 07:37:12 in code Mar 01 07:37:14 not in xml Mar 01 07:39:13 * p_l ponders how much of the Android team's SWE are in Mountain View Mar 01 07:48:53 64% Mar 01 07:49:01 that is my uneducated guess. Mar 01 07:49:12 hokkaido: I was just going to say "suspiciously specific number" :> Mar 01 07:49:19 ;) Mar 01 07:49:25 happy to help Mar 01 08:03:19 can a fragment in a viewpager provide the title for viewpagerindicator? Mar 01 08:25:19 Good morning Mar 01 08:27:28 How would you guys create a dynamic Tab View? I need to delete Tabs and add Tabs which have Activities as content? Mar 01 08:30:35 hey guys, why is my directional light not behaving like a directional light? :| Mar 01 08:36:48 I think I drink too much Mar 01 08:37:15 I thought I lost 2 weeks worth of code, turns out I was looking at my GitHub repo rather than my BitBucket repo Mar 01 08:37:18 it's all there Mar 01 08:38:28 belgianguy: why not sync them up? :) Mar 01 08:38:41 you're from Belgium, what do you drink, beer? :) Mar 01 08:38:51 ESphynx, how'd I do that? Mar 01 08:39:04 ESphynx, beer, yes :) Mar 01 08:39:05 belgianguy: isn't there an import or export system ? Mar 01 08:39:14 between bitbucket and github Mar 01 08:39:23 ESphynx, ah, that I should investigate Mar 01 08:39:40 belgianguy bitbucket does git too right? Mar 01 08:39:53 ESphynx, yeah Mar 01 08:40:13 ESphynx, that'd be safer indeed Mar 01 08:40:22 If I pull another stunt like that :) Mar 01 08:40:47 why is the light only showing close around the viewer :S Mar 01 08:41:20 does float have a smaller range on Android? Mar 01 08:41:57 well the geometry displays fine :| Mar 01 08:45:16 ESphynx, in GL? Mar 01 08:46:29 belgianguy: Yeah , GL ES 1.1 on Android Mar 01 08:50:11 Can someone explain to me how I can deal with a asynctask that calls a networking function (which stays alive forever), and on an orientation change the progress dialog re-appears even though it's already been dismissed? Mar 01 08:51:38 thanks btw. Mar 01 08:51:48 ESphynx, ah, I've been looking into GLES2 lately, don't have much experience with 1.1 Mar 01 08:52:43 ah. :) Mar 01 08:52:49 doing fixed pipeline so... Mar 01 08:55:37 goatmaster: are you using fragments? Mar 01 08:56:19 hrnt: no Mar 01 08:56:38 too bad Mar 01 08:57:02 i assume what happens is that your activity is recreated when you rotate the screen and the original asynctask is lost (and another one is started) Mar 01 08:59:08 in general you should be using services if you are doing network functions which "stay alive forever", Mar 01 08:59:25 Yes, although there's not a lot going on once it's rotated Mar 01 08:59:45 goatmaster: what do you mean? Mar 01 09:01:19 My doInBackgroudn does not get called once I rotate Mar 01 09:01:41 perhaps this is because my initial parms are lost upon rotation? Mar 01 09:01:57 goatmaster: probably. how do you pass those initial parameters? Mar 01 09:02:49 At the end of my oncreate a call a function that starts my asynctasks Mar 01 09:02:52 (and where do you get them?) Mar 01 09:03:48 they dont essentially get anyhting they call networking commands that stay alive for the remainder of the program Mar 01 09:04:11 Hi, I'm making an application that will launch other apps. However, it'll not be a homescreen replacement. Getting the list of installed apps, is a major bottleneck in launch-speed. I am looking for a way of accessing the list of apps in a speedy matter. Anyone have suggestions ? Mar 01 09:04:14 do your networking in a service :/ Mar 01 09:04:50 g00s: I think that's the solution I need... Mar 01 09:05:06 IntentService ftw Mar 01 09:05:27 goatmaster: do you want that AsyncTask to restart every time the screen is rotated? Mar 01 09:05:36 hrnt: no Mar 01 09:05:39 if not, then basically you should be using a service Mar 01 09:05:42 Okay, Mar 01 09:05:44 thanks guys, Mar 01 09:05:44 there are some other ways around that Mar 01 09:05:50 but it is a bit tricky Mar 01 09:05:52 or hackish Mar 01 09:05:58 (if you are not using fragments) Mar 01 09:06:10 Going to get some sleep. I rather do a intentService and get it done the right way :0 Mar 01 09:06:13 :) Mar 01 09:06:35 How would you Guys create a 2-column-layout? LinearLyouts, Relative or Table? Mar 01 09:11:20 No idea? Mar 01 09:12:41 styler2go, linear maybe. You can use all three to get what you want Mar 01 09:13:01 hey guys... my lighting problem... on the X86 emulator it looks just fine :| Mar 01 09:15:06 hey Mar 01 09:20:30 Why am I only able to cancel the newest notification here? http://pastebin.com/Fx5p4qCK Mar 01 09:29:32 how do you cancel them? Mar 01 09:32:44 looks like it is not written there: http://developer.android.com/reference/android/app/FragmentTransaction.html Mar 01 09:33:01 but I can give transaction.setCustomAnimations(0, R.anim.myAnim); Mar 01 09:33:09 and it won't crash because of 0 Mar 01 09:34:47 I'd like to ask how strong is this assumption? :) Mar 01 09:35:35 heh... simpsons "tapped out" seems to ignore my volume settings Mar 01 09:35:42 4:30am... "WOOHOO, NEW BUILDING!" Mar 01 09:36:05 root66: just disable its notification compeltely Mar 01 09:36:23 doing that right now Mar 01 09:36:27 was the first thing i did when it bothered me with new building shit, and I couldn't seem an easy way to turn notifications out in the game Mar 01 09:36:27 pretty annoying Mar 01 09:36:37 so blacklist it for notifications Mar 01 09:36:54 you would almost think EA made this game or something ;) Mar 01 09:37:02 yeah since 4.0 better don't mess up with notifications :) Mar 01 09:37:18 you will never be able to send a notification to your user again Mar 01 09:37:24 isn't that just one of those games that nag you to death about paying for stuff in-game? Mar 01 09:37:43 appel1: notifications are mainly about.. everything in the game Mar 01 09:37:47 Hey again Mar 01 09:37:55 so far I only got asked to buy one thing that I would have needed real money for Mar 01 09:37:58 timroes: really awful design then :) Mar 01 09:38:04 early in the game, just to basically let me know it was an option Mar 01 09:38:06 Is there a good way to work with multiple people on one ecplise android project? Mar 01 09:38:06 at least from what i saw, since i blacklisted them directly after that just informed me for finished building processes Mar 01 09:38:19 yeah also the balancing of the game is really bad Mar 01 09:38:29 I do agree there Mar 01 09:38:30 have seen so much better building games, with better balancing Mar 01 09:38:45 this looks almost like a piece by piece rebuild of the men in black game Mar 01 09:38:56 was that made by ea? if so I say it's probably a reskin Mar 01 09:38:57 but it has (a) pretty lovely graphics and (b) ofc the charm of a simpsons city Mar 01 09:39:17 yeah it really does remind me what I used to like about simpsons Mar 01 09:39:22 but if you take the theme away its worse than most of the other building games I've played Mar 01 09:39:40 no one knows such a thing? :D Mar 01 09:39:45 styler2go: scm Mar 01 09:40:48 appel1: Any other idea? Mar 01 09:40:59 appel1: i mean, do you have any link or something? Mar 01 09:43:11 styler2go: you could google for: eclipse source control Mar 01 09:44:47 styler2go: grown ups use source control. it doesn't matter what language its in or what ide you are using. Mar 01 09:45:02 svn, git, pick your poison Mar 01 09:45:41 if you find that too difficult, share a dropbox login. it keeps backups of every single time a file is saved and has a windows context dialog for restoring them. Mar 01 09:46:11 i am searching something where you can edit one file with two people at the same time Mar 01 09:46:18 dude... Mar 01 09:46:24 I give up. Mar 01 09:46:30 team viewer Mar 01 09:46:31 and something integrated in eclipse, i dont want to get the "out of sync" error all time... Mar 01 09:47:42 I think go2meeting was made just for you Mar 01 09:47:59 <- dick Mar 01 09:49:22 styler2go: http://eclipse.org/ecf/ Mar 01 09:50:08 video of it in action here: http://www.vimeo.com/1195398 Mar 01 09:50:24 we tried this but.. yeah.. it is difficult to set up Mar 01 09:50:32 wait wait wait Mar 01 09:50:39 so you found the perfect answer, made by the people at eclipse Mar 01 09:50:42 but you want a different solution Mar 01 09:50:45 because it was too hard to set up Mar 01 09:51:11 * root66 smashes his coffee mug on the floor and points to the door Mar 01 09:51:42 not me Mar 01 09:51:46 my co worker Mar 01 09:52:17 * root66 shakes his arm with emphasis Mar 01 09:52:32 you are not funny ;) Mar 01 09:54:14 appel1: On line 3 I show the line that cancels the notifications Mar 01 09:54:23 sorry for the late respons Mar 01 09:57:03 Quacked: so you remove the runnable that updates the notification, is that what you mean with cancel? Mar 01 09:58:02 Hmm... yeah Mar 01 09:58:49 It works for the first notification but only on the newest if there are more than one Mar 01 09:59:08 I cant find any information about how to setup a ecf server, any idea for what i could search? Mar 01 09:59:35 Quacked: so you don't actually want to cancel the notification? Mar 01 10:00:30 Well I do, I've setDelteIntent to be that CancelAlarmReceiver which stops the runnable Mar 01 10:00:43 ah, ok Mar 01 10:00:48 At line 28 Mar 01 10:02:05 I converted from IntentService to Service and this problem showed up. It worked when each startService triggered an onHandleInvent instead of onStartCommand Mar 01 10:06:17 Quacked: no idea, but it seems a bit wasteful to have one runnable per alarm when you could just have a list of alarms to update and one runnable that updates all of them Mar 01 10:07:24 Quacked: unless you happen to get the same alarm id for multiple alarms? do you ensure they are unique somehow? Mar 01 10:07:27 heho Mar 01 10:07:52 appel1: they should be unique with the array.put(alarmId, t); Mar 01 10:08:10 a new alarmId is sent with putExtra for each startService Mar 01 10:08:24 Quacked: and you know that each alarmid is unique? Mar 01 10:09:01 yeah, in runNextTask the Notifications gets updated correctly even if there are more than one Mar 01 10:09:18 runNextTask takes alarmId as a parameter Mar 01 10:09:56 and so should setTimer() that has the taskHandler Mar 01 10:10:23 But I'm guessing the problem is in the setTimer and with alarmId as you say Mar 01 10:10:28 Quacked: and you get a different alarm id in CancelAlarmReceiver? do you delete the runnable from your list after you've called removeCallbacks ? Mar 01 10:10:54 well, i've finished my first app. and now i want to start 2 new apps, and there are 2 local businesses that want me to build apps for them. so i am going to build 4 apps in the next little while.. Mar 01 10:11:09 I am looking for pointers on architecture and software design for android apps that will help me get MAX reuse Mar 01 10:11:31 Quacked: easiest is probably to step through your code in the debugger to figure what goes wrong Mar 01 10:11:46 right now everything is in 1 project, a handful of packages, and it's not really setup nice. i imagine i should create a common/shared package or library, and use that for all the apps. but I neeed websites / books to help me plan it out upfront Mar 01 10:12:47 DanielBusan: have you read about library projects? http://developer.android.com/tools/projects/index.html Mar 01 10:13:22 I think so, on line 25 I do a putExtra that is retrieved in the CancelAlarmReceiver, but I'm now thinking that that variable gets "overwritten" when I do another startService Mar 01 10:13:35 That may actually be the cause.. hmm Mar 01 10:14:01 I don't delete the runnable after removeCallback. Do I need that? Mar 01 10:16:23 Quacked: oh, yes, you reuse the same Builder instance put do not update the intents so all your notifications gets updated to use intents for the newest alarm Mar 01 10:17:15 Quacked: if you don't delete it you will leak it Mar 01 10:17:35 Quacked: that is, it will remain in memory until the app process is destroyed Mar 01 10:18:56 I see Mar 01 10:18:59 Basically just NotificationService.array.delete(alarmId); ? Mar 01 10:19:23 Quacked: yes Mar 01 10:19:30 Thanks :) Mar 01 10:19:59 Also, I started an alarm that went on during the night for 8 hours, and I used another app that checked that it held the wakelock Mar 01 10:20:09 But when I started using my phone in the morning, the notification stopped (it froze) Mar 01 10:20:29 And the alarm did not go off either (my app is a countdown timer basically) Mar 01 10:21:09 I don't get why it froze while I was using the phone. I was expecting it to stop during the night :P Mar 01 10:21:24 But I guess the wakelock took care of holding it active during the night at least Mar 01 10:22:29 you shouldn't hold a wake lock :) and use a wakeup alarm with AlarmManager to wake the phone up if necessary when it's time to trigger the alarm. Mar 01 10:22:47 Yeah, I use AlarmManager to sound the alarm Mar 01 10:22:56 But I'm holding a wakeup to update Notification every second, hehe Mar 01 10:23:25 Maybe that is unnecessary? Mar 01 10:25:49 Quacked: if the screen is off and the user wants the device to be sleeping I doubt he'd appreciate if you held it awake to update something he can't see Mar 01 10:26:43 Should I do something that updates the Notification only if screen is on? Mar 01 10:27:29 Quacked: if you don't hold a wake lock that'll take care of itself Mar 01 10:27:48 Ok Mar 01 10:28:12 But I need to make it START_STICKY perhaps? So it's not removed by Android I mean Mar 01 10:28:44 well, that's so the service will get restarted if the app process is killed to make room for some other app. Mar 01 10:28:51 Yeah Mar 01 10:29:06 so you need to persist your alarms in a database or something Mar 01 10:29:21 Yeah, it would require some extra coding Mar 01 10:30:43 On my galaxy nexus your app would break if I started something that needed a lot of memory like Chrome, especially if update is greater than a few days because then there isn't all that much memory left for apps Mar 01 10:30:54 not update, uptime Mar 01 10:31:24 I see Mar 01 10:31:52 Quacked: and you ran into the same issue when your notifications "froze" Mar 01 10:32:04 Yeah, that's what I was thinking Mar 01 10:32:14 Quacked: they didn't actually freeze, it is just that your app process was restarted but your service didn't resume properly Mar 01 10:32:58 appel1: thx, looking at the library projects page now. Mar 01 10:34:00 heho Mar 01 10:35:11 i need to inject an additional group into a SimpleCursorTreeAdapter. that group is not represented in the underlying cursor (a SqliteCursor). i somehow need to create a "virtual shadow group", or whatever one might call it Mar 01 10:35:12 appel1: on the "you reuse the same Builder instance put do not update the intents so all your notifications gets updated to use intents for the newest alarm" note, do you have a suggestion for a fix? Mar 01 10:35:52 both injecting them in the SimpleCursorTreeAdapter, or into the SqliteCursor (i could just extend the SqliteCursor and overwrite a few methods...? maybe? but how/which?) could work for me Mar 01 10:36:37 Quacked: you could update the intents to match the alarm your updating for in the builder instance, or keep one builder for each alarm.. Mar 01 10:39:11 are most of you doing test driven android development? creating test classes and cases as you go for most of your methods, etc? Mar 01 10:40:18 appel1: how would I do the first? Mar 01 10:43:53 my brain is still sleeping :) Mar 01 10:44:18 Quacked: same way you set them in the first place :) Mar 01 10:47:20 Hmm.. simply moving them into the Runnable would work, wouldn't it? Mar 01 10:51:05 Maybe not :p Mar 01 10:53:20 http://imageupload.co.uk/files/w6e3ewuhpprbagpiisrb.jpg Mar 01 10:53:41 looks like they used negative margins to layout that text? Mar 01 10:54:37 or how Mar 01 10:56:48 hi, when i create an app in eclipse with tabs+swipe, i get an ugly icon an the top. How do i remove it but not the tabs? actionBar.hide() hides both. Mar 01 10:58:39 you mean you want to hide the actionbar but not the tabs? Mar 01 10:58:55 if so, don't even try to do it, sounds like you want to create some iOs shit Mar 01 11:01:02 naa, i dont want some ios crap. it's just that i got 5 tabs and icon and app-name takes 50% of the bar. and the tabs gets so pushed together. Mar 01 11:04:06 in the AVD it looks ok, the i get it in two rown, but on my flyer it is on one row Mar 01 11:04:58 yeah actionbar decides itself if there is enough space to leave the tabs inside the actionbar or pull it into the topbar Mar 01 11:05:40 and with 5 tabs I would already consider giving it another thought if you really want to use fixed tabs, (also style guides say, up to 5 tabs is okay) Mar 01 11:06:15 ohh, ok. so it is gonna look different on decive to device then. Mar 01 11:06:25 i could remove a tab or two i think Mar 01 11:06:50 cHarNe2: yeah ofc it does look different :) Mar 01 11:07:02 also on the actionbar is a bit higher than on smartphones Mar 01 11:07:13 i guess 56dp and 48dp (but not sure about that) Mar 01 11:07:17 ok Mar 01 11:07:32 then i might need an other device to try this on Mar 01 11:07:52 or use the emulator :) Mar 01 11:08:12 but to answer your actual question: http://developer.android.com/reference/android/app/ActionBar.html#setDisplayShowHomeEnabled%28boolean%29 you can use to hide the icon (and the method below in the docs to hide your title) Mar 01 11:08:24 but before you hide title or icon I would give the tabs another thought Mar 01 11:09:12 e.g. if they are linked together, so the user sees a clear link (e.g. google play: new apps, new paied apps, best app, best paied apps) you could consider using the viewpage indicator Mar 01 11:09:38 or scrollable tabs how its called in the official docs Mar 01 11:09:50 http://developer.android.com/design/patterns/actionbar.html -> Scrollable tabs Mar 01 11:10:04 ye, i got one funcion of the app in a seperate tab atm. Mar 01 11:10:09 but i can change that :) Mar 01 11:10:29 or you can think about using spinners (the paragraph below in the design docs) when its mostly about different views Mar 01 11:10:41 really highly depends on your use case :) Mar 01 11:10:49 scroll-tabs it what im using now Mar 01 11:10:55 they look and feel great Mar 01 11:11:04 scroll tabs? Mar 01 11:11:12 ye, i think so? Mar 01 11:11:15 i thought you are using fixed tabs Mar 01 11:11:52 no, these can slide from side to side Mar 01 11:12:15 http://i.stack.imgur.com/c0uIB.jpg Mar 01 11:12:18 that are scrollable tabs Mar 01 11:12:31 ye, like those Mar 01 11:12:33 http://developer.android.com/design/media/action_bar_pattern_default_tabs.png Mar 01 11:12:35 that are fixed tabs Mar 01 11:12:39 appel1: did you mean like this? Line 41 and 90: http://pastebin.com/WjzF6x4J Mar 01 11:12:47 okay but shouldn't these go to a second bar also on larger screen? Mar 01 11:13:07 hmm, they look like the black ones in your secont link Mar 01 11:13:14 baahh :P Mar 01 11:13:19 yeah thats fixed tabs :) Mar 01 11:13:40 mostly good if users will jump a lot between, and the content of the tabs isn't linked together very well Mar 01 11:13:41 ok, then i got fixed tabs that move :D Mar 01 11:13:48 Quacked: something like that yes Mar 01 11:13:59 yeah above 3 i guess they always beginn to "move" Mar 01 11:14:09 though i don;t like the behavior why I normally don't use it above 3 tabs Mar 01 11:16:14 If a button is pressed to launch a settings activity, will the activity in the background still be present? and if so, can i change variables in that background activity in the settings activity? Mar 01 11:17:16 appel1: goodie, now I need to think about getting the service to be "restartable". When you said every alarm into a database, what did you mean? What if I store the time remaining values of Notifications into getSharedPreferences and then just have onStartCommand start the notifications again? Mar 01 11:19:59 Quacked: either as a shared preference or a sqlite database :) Mar 01 11:20:41 Quacked: time remaining is probably a bad idea, better to store when the alarm should go off Mar 01 11:21:03 Yeah, obviously, hehe Mar 01 11:22:35 But AlarmManager is persistent right? It won't be cleared when Chrome etc is opened? Mar 01 11:23:04 Quacked: no, only when the device is restarted Mar 01 11:24:05 Good, thanks :) Mar 01 11:24:35 Able to resume from boot will be in the next version :P Mar 01 11:26:01 hi there Mar 01 11:34:29 How come that setImageURI(Uri.fromFile(fileInSdCard)) causes an OutOfMemory exception while setImageBitmap(bMap); with bMap containing the same picture doesn't? Mar 01 11:41:21 memoryleak: different decode options / scaling? Mar 01 12:00:25 jellow Mar 01 12:02:35 I am working with HttpURLConnection class. I am trying to understand how the connection works when in your request is attached some data Mar 01 12:04:11 I guess when you call openConnection() it should be alredy loaded the data you want to send wrapped in the stream provided by getoutputStream method Mar 01 12:04:20 is it correct? Mar 01 12:05:00 the other way, it is open the connection and then write in the output stream Mar 01 12:07:00 argh, anyone know what I should do when I get a "short read of block" when tryting to switch Git branches in Eclipse? Mar 01 12:07:12 seems that has become impossible Mar 01 12:21:14 can we as company manage more than one google play account (for our customers) ? Mar 01 12:21:43 is there an option? please :p Mar 01 12:26:04 just about to start a new android project. i've created an app before. but always looking to improve my style. Mar 01 12:26:28 Anyone have a favorite android tutorial to point to? mostly want to setup the project, packages, and initial MVC layout right Mar 01 12:26:41 getting MVC right, and setting up for reuse is something i want to spend a few days thinking aobut Mar 01 12:31:21 Hey Guys Mar 01 12:39:02 This Snapdragon BatterySafer app is so good.. incredible :D Mar 01 12:39:58 cool Mar 01 12:54:23 do you guys recommend setting up an Android Junit test project? Mar 01 12:59:33 i recommend writing flawless code instead Mar 01 13:14:47 Is there a way to print the Ui Designer in Eclipse? Mar 01 13:15:40 you mean take a screenshot ? Mar 01 13:16:47 hmm... i want to print it to mark things and talk about it.. thought there was an esier way than screenshot Mar 01 13:17:22 it is a very big screen so i will have to take 4 or 5 screenshots... thats why i asked Mar 01 13:19:44 styler2go: you can resize eclipse window? :p Mar 01 13:21:37 it has more than 100 views, i cant resize eclipse that big :D Mar 01 13:21:55 have anyone worked with Simple API to serialize xml? Mar 01 13:22:06 is it possible to use it with android? Mar 01 13:24:51 in the official website it states yes Mar 01 13:25:18 but I cannot put it working by now Mar 01 13:36:32 Ok Guys. How would you Gyus delete a Tab in a Tabwidget? Mar 01 13:37:03 styler2go: is it not driven by an adapter ? Mar 01 13:37:25 a Tabwidget? we add the tabs by TabWidget Mar 01 13:37:42 well is there no a remove ? Mar 01 13:38:47 just a removeView Mar 01 13:39:41 erm the docs say different Mar 01 13:39:47 hmm Mar 01 13:40:01 search time = 1.4 seconds Mar 01 13:40:03 :) Mar 01 13:40:06 w8 Mar 01 13:42:13 can you send me the link? i cant find any helpful Mar 01 13:42:47 http://developer.android.com/reference/android/view/ViewGroup.html#removeViewAt(int) Mar 01 13:43:27 http://developer.android.com/reference/android/widget/TabWidget.html Mar 01 13:44:20 ok then.. the other problem is.. i have this tabwidget and in eversy tab is one new activity and in this is a button. if i click this button it should close the tab. but hwo can i reach the tabwidget from the activity? Mar 01 13:45:29 not sure, but is that not one of the main selling points of fragments ? Mar 01 13:45:31 :) Mar 01 13:45:52 but a tabwidget with fragments...? Mar 01 13:46:23 tabwidget = viewGroup Mar 01 13:46:36 viewGroup with fragments ? how else ? Mar 01 13:46:55 oO Mar 01 13:49:35 hmm Mar 01 13:49:49 there is no other way to to this? Mar 01 13:50:23 never embedded activities in tabs b4 Mar 01 13:50:39 hmm ok :) Mar 01 13:50:41 but thank you! Mar 01 13:50:49 didnt even know you could Mar 01 13:50:57 but cant really think why you would either Mar 01 13:50:59 :) Mar 01 13:51:18 tabh.addTab(tabh.newTabSpec("Formular " + currtimeString).setIndicator(currtimeString).setContent(new Intent(this, ActivityFormularBericht.class))); Mar 01 13:51:21 simple as that Mar 01 13:51:38 but why an activity ? Mar 01 13:52:03 hmm... because the complete code is in this activity Mar 01 13:52:27 Hello. How should I go about drawing grid lines between the views in a GridLayout ? Mar 01 13:52:40 styler2go: well just had a thought Mar 01 13:53:19 there must be some callbacks you can attach to a tabwidget Mar 01 13:53:24 that allow for what your doing Mar 01 13:53:39 but would change to fragments if I were you Mar 01 13:53:43 sooo much easier Mar 01 13:54:16 we are under high time preaure Mar 01 13:54:24 it must be done until today 18 o'clock Mar 01 13:54:32 if we now change eveything to fragments.. i dont know Mar 01 13:54:51 it must be done "until <-- omit this" today 18 o'clock Mar 01 13:55:02 ? Mar 01 13:55:04 dont need the until in that sentence Mar 01 13:55:08 ok Mar 01 13:55:14 it must be done today Mar 01 13:55:30 hmmm, well fragments aint all that difficult Mar 01 13:55:38 your in Germany right ? Mar 01 13:55:41 yes Mar 01 13:55:44 4 hours Mar 01 13:55:55 3 Mar 01 13:56:02 oh yeah Mar 01 13:56:04 :) Mar 01 13:56:14 what happens if you just removeView(index) Mar 01 13:56:24 wont the activity crash ? Mar 01 13:56:49 and what happens if you call finish ? Mar 01 13:56:55 in the tab activity ? Mar 01 13:56:57 the bigger problem is how to call the removeView inside the activity of the tabhost Mar 01 13:57:02 no no Mar 01 13:57:15 those 2 questions are answerable Mar 01 13:57:29 how? Mar 01 13:57:41 call finish() on the activity inside a tab Mar 01 13:57:51 crash ? blank? Mar 01 13:59:31 lol Mar 01 13:59:37 why i didnt consired this.. Mar 01 13:59:40 wait i try Mar 01 13:59:41 :) Mar 01 14:00:14 this seen alot to get settings to work, what is the "proper" way to do it? http://android-er.blogspot.se/2012/07/example-of-using-preferencefragment.html http://developer.android.com/reference/android/preference/PreferenceFragment.html Mar 01 14:02:25 sting: finish() would close the complete activity, the parent activity too Mar 01 14:02:43 interesting Mar 01 14:03:02 so whats your id of the tab host ? Mar 01 14:03:16 and can it be found from the activity within the tab host ? Mar 01 14:04:00 odds are you maybe able to getParent() from root view of that tab activity Mar 01 14:04:14 then do something with the tabWidget Mar 01 14:04:23 this is all speculation and very hacky btw Mar 01 14:04:25 :) Mar 01 14:04:38 How should I go about drawing grid lines between the views in a GridLayout ? Mar 01 14:04:51 cHarNe2: the developer site has a guide on creating settings screens http://developer.android.com/guide/topics/ui/settings.html Mar 01 14:05:10 haqe17: http://developer.android.com/guide/topics/ui/layout/gridview.html Mar 01 14:05:12 this.getParent is a nice idea Mar 01 14:05:20 edman: thnx Mar 01 14:07:04 StingRay_: thats not what im after, I have a static grid of views, I just want to add some grid lines. Mar 01 14:07:30 overriding onDraw() doesnt do anything for some reason Mar 01 14:09:12 haqe17: so vert/horiz spacing and background of the gridView is not what your after ? Mar 01 14:09:18 no idea then Mar 01 14:10:28 k, thnx anyway Mar 01 14:18:47 Ok i have no other idea Mar 01 14:18:56 my coworker have to find a way, not my problem :D Mar 01 14:22:12 hiho Mar 01 14:22:41 Anyone here who can explain what Keystore and SecuritySettingsService are doing in context of the LockScreen? Mar 01 14:23:01 Nope! Enjoy your thesis! Mar 01 14:23:07 Both save the pattern/password right? Mar 01 14:23:12 :< Mar 01 14:23:20 (serious note: there aren't going to be a lot of platform hackers here; try #android-platform and the cyanogen dev channels) Mar 01 14:23:30 mkay thx Mar 01 14:23:47 (n.b.: #android-platform is MOSTLY dead.) Mar 01 14:23:55 ... just noticed Mar 01 14:24:06 awww yeah Mar 01 14:24:10 forever alone Mar 01 14:24:58 ಠ_ಠ Mar 01 14:25:46 but yes, they're probably going to live there in the context of ensuring that you've actually authenticated your way out of the lockscreen Mar 01 14:26:18 for shizzl Mar 01 14:26:19 what else Mar 01 14:26:38 idk its your thesis Mar 01 14:26:41 look for references! Mar 01 14:26:44 ;D Mar 01 14:26:53 awww yeah Mar 01 14:26:56 didnt think of that yet Mar 01 14:26:58 -.- Mar 01 14:28:34 is there any good GUI with file explorer for adb? Mar 01 14:28:55 not particularly. Mar 01 14:28:59 lrn2cmdline Mar 01 14:30:21 : Mar 01 14:30:23 :D* Mar 01 14:30:33 don't drool on me jeez Mar 01 14:30:59 ok so, is there any reason why i cant create a dir with adb shell? it tells me no permissions... but i want to create a dir on the sdcard? Mar 01 14:31:30 255|shell@android:/sdcard/hwTablet/httpdocs $ mkdir .backup Mar 01 14:32:18 ls -l -a Mar 01 14:32:34 you should be able to create a dir with no problems Mar 01 14:32:44 adb shell user should have sdcard write access by default Mar 01 14:32:59 http://pastebin.com/vuLS5i8H Mar 01 14:33:27 ugh christ worst sh implementation ._. Mar 01 14:33:34 cd ..; ls -l -a Mar 01 14:33:48 i'm creating an application where users create recipe objects. when they are done they save them. would it be best to save those objects in a sqlite database, or files? Mar 01 14:33:54 since everything is +w I'm assuming the parent is too but it's worth double checking Mar 01 14:34:08 also, is the sdcard mounted as FAT32? If so, there's no permissions checks at all outside of the "do you have read/write access to the card" check Mar 01 14:34:19 Eppo: I don't know, what would be best? Mar 01 14:34:26 drwxrwxr-x root sdcard_rw 2012-07-31 14:26 httpdocs Mar 01 14:34:36 hmph Mar 01 14:34:43 i'm just saying are there pro/cons to doing it either way? Mar 01 14:34:48 perhaps you're not in the sdcard_rw group? Mar 01 14:35:01 Eppo: yes, there certainly are. Consider meditating on the difference between flat files and relational databases. Mar 01 14:35:02 hmm Mar 01 14:35:05 how can i check this? Mar 01 14:35:23 styler2go: just a quick sanity check, this is you using 'adb shell' right? Mar 01 14:35:26 this isn't you using some console app? Mar 01 14:35:47 i am using adb shell Mar 01 14:35:59 from a windows console Mar 01 14:36:47 hmph, I'm not sure offhand what's happening. Mar 01 14:36:54 perhaps the sdcard is mounted as read-only? Mar 01 14:37:05 hm.. yes.. but why.. Mar 01 14:37:08 unlikely but possible; pastebin the output of 'mount' Mar 01 14:37:48 or not. Mar 01 14:39:08 Sorry.. accidently closed eclipse Mar 01 14:39:15 09:37:10 < styler2go> hm.. yes.. but why.. Mar 01 14:39:16 09:37:13 < lov> unlikely but possible; pastebin the output of 'mount' Mar 01 14:39:47 http://pastebin.com/12XARAn3 Mar 01 14:40:48 google not working for me wtffff Mar 01 14:41:07 yeah, it's rw, idk :( Mar 01 14:41:11 try asking for help in #android-root Mar 01 14:41:15 im dum lawl Mar 01 14:41:20 hmm ok thank you Mar 01 14:42:19 strange thing... Mar 01 14:43:55 styler2go: you cant write to sd from adb ? Mar 01 14:44:06 yes Mar 01 14:44:20 i cnt create a directory Mar 01 14:44:33 adb shell Mar 01 14:44:34 mount Mar 01 14:44:42 and see if it's mounted rw Mar 01 14:44:42 http://pastebin.com/12XARAn3 Mar 01 14:44:49 i already posted it for lov :) Mar 01 14:44:53 ah Mar 01 14:44:54 :) Mar 01 14:45:25 ls -l -a: http://pastebin.com/vuLS5i8H Mar 01 14:46:10 erm Mar 01 14:46:15 what device is this ???? Mar 01 14:46:33 galaxy tab Mar 01 14:46:37 2 Mar 01 14:48:03 i think it's a prob with mtp or something Mar 01 14:48:20 use a terminal on the device to do it Mar 01 14:48:26 and I bet it will be fine Mar 01 14:48:26 i will reboot it.. amybe its a wonder Mar 01 14:48:54 i have no right to install an app Mar 01 14:51:21 nope.. after reboot still the problem :D Mar 01 14:55:50 anyone ever use lync Mar 01 15:02:31 Hello Mar 01 15:02:42 I have question about android testing Mar 01 15:02:42 i'm trying to compile a program using the android ndk that uses the getline function, but it says "undefined reference to 'getline'" Mar 01 15:02:56 I want to test the pinch gesture on my main activity using ActivityInstrumentationTestCase2 I tested a lot of other features in my main activity but I still don't know how can I test the pinch gesture , How can I do that ? Mar 01 15:09:29 http://www.ustream.tv/channel/nasa-media-channel launch in 1 minute :) Mar 01 15:12:15 forsubhi: "pinch" is just multiple down touch events before multiple move events before multiple up events Mar 01 15:12:23 not sure whether that helps. Mar 01 15:13:08 where are they flying too, xorgate ? Mar 01 15:14:47 They have no money for a HD camera? :D Mar 01 15:15:41 iss Mar 01 15:16:39 xorgate: neat, I always forget that NASA TV is a thing. Mar 01 15:16:43 it's a rocket... it's going to space. Mar 01 15:17:12 haha Mar 01 15:21:29 our world is full of HD and they cant even put a 720p camera onto this? :D Mar 01 15:21:47 styler2go: it's probably a 4k camera Mar 01 15:22:04 so much more than hd Mar 01 15:22:07 styler2go: it's definitely an HD camera, it's just that the stream isn't necessarily going to be in HD. Mar 01 15:22:21 NASA actually has pretty obscene cameras Mar 01 15:22:47 but it would be much more impressive in HD, i think :) Mar 01 15:22:50 dont you thinK? Mar 01 15:23:05 well the cost of a 4k camera $80,000 probably the same price as a sticker on the side of the fuel housing Mar 01 15:23:07 if you'd like to pay for the bandwidth, I'm sure they'd be happy to take your money. Mar 01 15:23:26 lol its not such a big bandwith for hd... Mar 01 15:23:37 ok, go write nasa about this then. Mar 01 15:23:56 i mean, for the internet. not for the wireless communication to earth Mar 01 15:23:59 tell them that you're upset that the live video of rockets being sent into outer space isn't good enough for you. Mar 01 15:24:24 lov: and being broadcast globally for minimal cost Mar 01 15:24:51 $1 for th person who can tell me why a Lockscreen Pattern is saved in Keystore and with LockSettingsService? Mar 01 15:25:16 i dont think rockets are that impressive :D Mar 01 15:25:24 Tassilo: probably because it's confidential information Mar 01 15:25:27 styler2go: go build a few then Mar 01 15:25:28 styler2go: then you're a blithering idiot Mar 01 15:25:29 * lov shrugs Mar 01 15:25:43 yeah <3 hate me :D Mar 01 15:25:57 we all scrotum you too Mar 01 15:26:17 But both create a hash and save it.. I guess the Keystore downt save a file, but the Service does? Mar 01 15:26:24 no, really, there were some hd streams from NASA, why not again? Mar 01 15:26:25 doesnt Mar 01 15:26:50 Tassilo: you may actually be able to look at the history in git, honestly. Mar 01 15:37:38 is there a way to simply add an [x] button inside a edittext to delete the complete text inside it? Mar 01 15:37:52 maybe just a property of EditText? Mar 01 15:38:56 Hi all, can I create swipe detection that where that detect a swipe even when on top of a edittext/button and such ? but still alowing to button to work Mar 01 16:02:33 beginner quest: how to set my layout to accomodate two (or more) videoviews? Mar 01 16:11:32 If i want to use Daydream in my app, can i make it downward compatible so daydream is only there if it is android 4.2+? so that i dont have to make 2 apps Mar 01 16:12:08 yes Mar 01 16:12:12 <\monster\> is there a reputable place to sell ownership/rights of your app? Mar 01 16:12:29 Leeds: how? Mar 01 16:13:09 \monster\: probably not. Mar 01 16:13:58 styler2go: http://developer.android.com/guide/practices/screens_support.html#q=api compatibility Mar 01 16:14:06 <\monster\> hmm Mar 01 16:14:06 Thank you Mar 01 16:14:40 erm, not quite sure what that's a link to - but there's lots of stuff there if you search the blog and api docs Mar 01 16:14:42 lol.. but thats not what i am searching for, or? Mar 01 16:15:02 or what ? :) Mar 01 16:15:04 This would simply disable the app for older devices? :o Mar 01 16:15:12 go to the search, and search for "api compatibility" Mar 01 16:15:27 not sure if there's actually a way to *link* to a search on the snazzy ajax blah blah page Mar 01 16:15:29 http://developer.android.com/guide/practices/compatibility.html Mar 01 16:15:40 yes the search worked Mar 01 16:15:44 Daydream is a service, right? Then just add android:enabled="@bool/isThisEnabled" Mar 01 16:16:56 yes daydream si a service Mar 01 16:18:05 but i am thinking for the problem with the lint markers, they will probobly mark it as not usable cause my minsdk is too low Mar 01 16:18:45 So? Mar 01 16:18:58 so i would not be able to run it Mar 01 16:19:33 I'm sure you can change that somewhere Mar 01 16:19:49 i will look for it later when i am at home :) Mar 01 16:19:53 thank you :) Mar 01 16:20:11 Where do you get your android stuff translated? (app desc, xml files) Mar 01 16:20:23 gogole translator? :D Mar 01 16:20:25 google* Mar 01 16:20:27 no, thanks :D Mar 01 16:21:03 it is quite good Mar 01 16:21:14 combine it with leon maybe Mar 01 16:21:26 I'm ready to pay for the service, by the way. Mar 01 16:21:38 the google translator can also tranlsate your string xml Mar 01 16:22:06 http://translate.google.com/toolkit/docupload?hl=de Mar 01 16:22:44 this is a quite good way, you can also share the automated translates with other people and you can easily change them Mar 01 16:23:05 the xml-translate seems reasonable enough Mar 01 16:24:41 thank you Mar 01 16:25:10 :) Mar 01 16:25:53 by the way, your link was in german :P Mar 01 16:26:00 thus, you are german :> Mar 01 16:26:06 yes, why? :D Mar 01 16:26:56 no reason Mar 01 16:27:12 ok :) Mar 01 16:27:14 probably because you were born in Germany and/or to German parents... Mar 01 16:27:39 yes :) Mar 01 16:27:44 but why are you asking that Mar 01 16:29:14 anyone korean here? :p Mar 01 16:29:38 you wanna translate gangam style Mar 01 16:31:35 not exactly Mar 01 16:34:02 * lov dances gundam style Mar 01 16:34:52 I like MIT gangnam style :p Mar 01 16:35:03 http://www.youtube.com/watch?v=lJtHNEDnrnY Mar 01 16:49:13 I'm looking for an ImageView zoom implementation based on bitmapregiondecoder (similar to the Gallery3D app) Mar 01 16:52:54 Not sure the previous message got out: I'm looking for an ImageView zoom implementation based on bitmapregiondecoder (similar to the Gallery3D app) Mar 01 17:05:00 junit.framework tests ... looks like private methods whose name starts with "test" confuses things Mar 01 17:07:33 junit.framework.TestSuite$1: Failure in warning: junit.framework.AssertionFailedError: Test method isn't public: Mar 01 17:07:34 workwround is to rename the private method I guess .... checkFoo() vs testFoo() maybe Mar 01 17:08:55 capella: yeah, JUnit 3 limitation Mar 01 17:11:01 I'm wondering ... if instead of having public TestFoo() call checkFoo1() and checkFoo2() I can create public TestFoo1() and public TestFoo2() in the same TestFoo.java Mar 01 17:12:46 and have JUint execute them individually versus localizing each test in a seperate .java file (?) ... let's try that Mar 01 17:18:31 capella: what on earth are you trying to do? Mar 01 17:19:54 heh ... Two different but similar tests in one module to share common methods .... I wanted to clone the first test and write a second one but my reviewer likes this combined approach ... so now Im looking to see if it's possible / standard Mar 01 17:20:17 is it possible to have to videos playing at the same time in the same layout? Mar 01 17:20:21 two Mar 01 17:20:25 two* Mar 01 17:21:06 I mean "multiple" Mar 01 17:21:40 anyone used MediaPlayer or VideoView? Mar 01 17:24:42 damn, I'm usually a bit unlucky with my questions. I always feel like no one else is doing something similar Mar 01 17:25:08 Anyone have experience with OpenX? The android SDK seems to be hanging the main thread. Mar 01 17:26:07 jayd16, sorry... Mar 01 17:26:43 jayd16, do you have experience with any of the Media Playback APIs? Mar 01 17:28:34 gmag: hmmm I haven't tried it but I dont see why that wouldn't be possible. What trouble are you having? Mar 01 17:30:23 jayd16, well I'm trying some code I've seen on the internet to do this, but I get a popup message when I run the app "Can't play this video" Mar 01 17:30:53 http://ifidie.net hmmmz Mar 01 17:31:37 evanc: (see above) and ... I'm not married to any approach, just not familiar with JUnit enough to know the standard way ... not sure if my reviewer does either ... I think I'll just rename the private methods checkFoo#() vs testFoo#() and go with that Mar 01 17:31:42 gmag, can you get it to work with one video at a time? Mar 01 17:31:46 jayd16, on the other hand I can play the video with one videoview alone Mar 01 17:31:51 yup Mar 01 17:35:47 gmag: do the logs tell you anything interesting? Mar 01 17:49:47 sorry for a long question to solicit help to figure out where I've messed up. I'm loading a font at runtime, but it appears that a Button that contains the new font doesn't retain its size, despite what I thought are the correct styles. The relevant snippets from xml files/code are at: http://pastebin.com/wUu5kZjc The bad-sized button screencap from a 4.0 emulator is at http://postimage.org/image/x7ooodap1/ Mar 01 17:51:58 If i want to use DreamService which is available at API17, can i surpress the lint to make it downward compatible? Mar 01 17:53:27 Styler2go, are you looking for @SuppressLint("NewApi") Mar 01 17:53:43 @TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1) i thought htis Mar 01 17:57:03 Styler2go: yeah, use that Mar 01 17:57:28 so this is ok to use this? Mar 01 17:58:20 yeah, with if (android.os.Build.VERSION.SDK_INT => android.os.Build.VERSION_CODES.JELLY_BEAN_MR1) Mar 01 17:58:42 TargetApi tells lint that the class/method is only used on this api level or above Mar 01 17:58:46 Instead of using SuppressLint, I'd strongly recommend using the TargetApi annotation. Mar 01 17:58:51 So it won't warn you about it Mar 01 17:58:55 (and actually following through with the contract for TargetApi) Mar 01 17:59:21 ok :) thank you :) Mar 01 17:59:46 yeah, afaik SupressLint suppresses all warnings, TargetApi will still warn if you are using a feature that is >= jelly mean MR1 Mar 01 17:59:57 >, not >= :) Mar 01 18:03:39 hm wont work Mar 01 18:03:46 one side is bool, the other int Mar 01 18:04:15 which the difference between button's invisible state and gone state? Mar 01 18:04:25 nep1x: GONE does not take space, IIRC Mar 01 18:04:35 how fast :( :D Mar 01 18:04:40 [btw -- for anyone who might hit this -- my issue was an alignment problem rather than a size problem. Setting baselineAligned=false on the (horizontal) linearlayout was the solution.] Mar 01 18:05:24 it is basically like display: hidden and display: none in CSS Mar 01 18:05:31 visibility: hidden :P Mar 01 18:05:37 I have just read it. thanks! Mar 01 18:06:49 Styler2go: what do you mean with one side being bool and other int? Mar 01 18:08:08 Type mismatch: cannot convert from boolean to int Mar 01 18:08:49 from what line? Mar 01 18:08:53 I think he put the SDK_INT comparison in @TargetApi Mar 01 18:09:03 that is what i suspect as well Mar 01 18:09:03 yes :D Mar 01 18:09:13 yeah, don't put it there ;P Mar 01 18:09:22 oh... :D Mar 01 18:09:27 where then? :D Mar 01 18:09:51 well, where you do stuff with DreamService Mar 01 18:10:13 hmm Mar 01 18:10:50 for example, if you want to do foo() with android 2.2 and bar() with android 4.0, then (assuming bar() is only available in 4.0+) then you a) Mar 01 18:11:07 need @TargetApi to make the compiler shut up about using bar() in a program that has minSdk set to 2.2 Mar 01 18:11:33 and b) you need if (android build is 2.2) { foo(); } if (android build is 4.0+) { bar(); } Mar 01 18:11:39 because if you call bar() with android 2.2 then bad things happen Mar 01 18:11:59 you're gonna have a bad timee.. Mar 01 18:12:04 yepp but the dream is a service, so i have no real code for launching it or something like that :) Mar 01 18:12:28 yeah, well in that case you are probably fine Mar 01 18:12:37 would be great Mar 01 18:12:41 Styler2go: alternatively, just change Lint to only warn on new API violations Mar 01 18:12:45 instead of a fatal error Mar 01 18:13:57 http://img827.imageshack.us/img827/6344/climsyclipboardff.png yeah my first daydream! :D Mar 01 18:15:51 now i have to learn how to make a nice random gridview :D Mar 01 18:17:17 but i have to say, this DayDream is veeery easy to setup, nice work google. Most apps could add such a thing easily^^ Mar 01 18:23:20 Hey guys, I tried to mock gps location with Emulator Control but it seems not working. The Maps app still says location is not available. Any pointers? p/s: AVD is running 2.3.3 Mar 01 18:26:48 did you set up the device correctly? Mar 01 18:29:36 * Bleeptech giggles maniacally.. Mar 01 18:29:54 kaneda^: Hm what do you mean by that, I just choose WVGA 480x800 and Google API level 10 as target. That should be it? Mar 01 18:30:10 what about the emulated hw? Mar 01 18:30:20 Did you tried turning it off and on again? :D (no real suggestion!) :D Mar 01 18:30:36 kaneda^: There's nothing related to GPS Mar 01 18:31:07 hey guys, I was just wondering to write data to a tag do you have to use the same app which will read the data? Mar 01 18:31:10 Styler2go: It might works :) Don't try it yet, since it take a lot of time Mar 01 18:31:18 (NFC) Mar 01 18:32:09 kaneda^: I use Host GPU if it even matters. Mar 01 18:34:37 anyone? Mar 01 18:36:07 Styler2go: It does though Mar 01 18:38:02 ? Mar 01 18:40:39 someone ever made something with daydream? i have a strange problem Mar 01 18:40:40 You guys have any guesses on why when I import the HoloEverywhere library, it has the blue M for Maven I assume, and has a red X like there are errors in the project... yet when I expand the project, I don't see a red X on any of the other folders/items. Eclipse. Mar 01 18:41:30 look into "Problems" View? Mar 01 18:41:33 hi guys, anyone know much about NFC? Mar 01 18:41:40 Where's that? :) Mar 01 18:41:49 marco_: Someday i tried to do something with it Mar 01 18:42:14 pierpark: Window -> Show View -> Problems Mar 01 18:42:24 Styler2go: k. found it. didn't know that was there. let me look Mar 01 18:42:31 :) Mar 01 18:42:41 Styler2go: and then what happened? Mar 01 18:43:08 i tried to simply make a stowatch which starts / stops on nfc read Mar 01 18:43:14 nut i never completed it Mar 01 18:43:39 Styler2go: conversion to Dalvik failed with error 1. And two under it are: plugin execution not covered by lifecycle configuration: com.jayway.maven........ in pom.xml Mar 01 18:43:57 first try to clean the project.. Mar 01 18:44:35 is eclipse defacto for sdk ? Mar 01 18:44:47 or is it just as easy via commandline Mar 01 18:45:03 do i stick all these tools in my /usr/local/bin ? Mar 01 18:45:04 I love it.. Demo code from apache.org and I can't get it to find org.apache.http.entity.ContentType.. Mar 01 18:45:15 Cleaning took care of the conversion to Dalvik line. Left with the two others of: Maven Project Build Lifecycle Mapping Problem. Mar 01 18:45:34 maybe google it.. i never used HoloEverywhere Mar 01 18:45:39 and I thought I had installed Maven.. hmm Mar 01 18:45:52 okay thanks. that at least lets me know how to figure these things out!! ahh... Problems view :/ Mar 01 18:46:06 :) Mar 01 18:46:43 http://pastebin.com/7LsQVfxy does someone have an idea what the problem could be? Mar 01 18:46:52 this happens only if i touch the screen in DayDream Mar 01 18:47:18 NullPointerException Mar 01 18:47:25 it's getting nothing Mar 01 18:47:26 but why? Mar 01 18:47:31 when it expects something Mar 01 18:47:32 :) Mar 01 18:47:33 but why it is nothing Mar 01 18:47:50 the code looks like this wait... Mar 01 18:48:25 http://pastebin.com/fYhVRCKQ Mar 01 18:48:33 Tecan: nope, it's not de-facto, though it's commonly used. I myself just use emacs + ant. Mar 01 18:48:41 it is simply scrolling a scrollview by time... Mar 01 18:50:09 Styler2go: debug it and see whats null Mar 01 18:50:23 in the paste the 6. line is null Mar 01 18:50:38 ok then Mar 01 18:50:41 solved Mar 01 18:50:44 but, the timer is running all time, it is working. until i press the screen! :o Mar 01 18:52:05 Styler2go: did you not complete it cos you lost interest or was it too much? I was just wondering whether the code to write data should be in the same app that reads the tag? Mar 01 18:52:31 too much Mar 01 18:52:57 Styler2go: damn, i'm worried now Mar 01 18:53:04 dont be Mar 01 18:53:08 just try your luck! Mar 01 18:53:18 i am giving up way to fast :) Mar 01 18:53:21 or read up on NFC data Mar 01 18:53:30 NFC = communication Mar 01 18:53:37 not data standard ? Mar 01 18:53:42 StingRay_: any idea why its happening only if i touch the screen? Mar 01 18:53:46 Styler2go: it's a uni project i'm making an app to automatically sign people in to class so it will communicate with a database once data is read.. and you're a much more competent programmer Mar 01 18:53:54 so nfc data is whatever you want to read it as Mar 01 18:54:02 dunno there maybe standards Mar 01 18:54:32 marco_: why not using a nfc reader app and build your app to work with this reader Mar 01 18:54:42 Styler2go: you already said your null pointer at line 6 Mar 01 18:54:59 most nfc reader simply open a uri, register your device for this uri Mar 01 18:55:05 your app** Mar 01 18:55:14 StingRay_: Yes. but. why? Mar 01 18:55:22 and why only if i touch the screen? Mar 01 18:55:47 Styler2go: I guess I could, but it would mean everyone would have to purchase this reader app and it's making things even more simpler which would not get me the marks Mar 01 18:56:00 there are very good free reader apps Mar 01 18:56:26 Styler2go: i'll consider it if I feel like i'd have to give up making the reader app Mar 01 18:56:29 marco_: fwiw - why nfc versus qrcode? Just curious; qrcode-based data-exchange might make it available on more devices Mar 01 18:56:36 ok :) Mar 01 18:56:45 Styler2go: thanks :) Mar 01 18:56:49 np Mar 01 18:57:24 StingRay_: any idea? :D Mar 01 18:57:51 well find out what is null Mar 01 18:58:10 hmm.. how? Mar 01 18:58:29 debug it Mar 01 18:58:30 :) Mar 01 18:58:58 StingRay_ :( i know the line. i know what is null... but i dont know why because before i touch it it is not null :-/ Mar 01 18:59:09 what is null ? Mar 01 18:59:20 i would say: findViewById(R.id.scroller); Mar 01 18:59:41 you mean that returns null ? Mar 01 18:59:41 so i'm guessing i would have to use the same app to write and read? Mar 01 19:00:16 findVewById will not throw a nullpointer, it will pass null to the variable Mar 01 19:00:25 oh uhm Mar 01 19:00:25 if that id cant be found Mar 01 19:00:39 so find out whats null Mar 01 19:00:42 maybe the cast (HorizontalScrollView) findViewById(R.id.scroller) ? Mar 01 19:00:43 cause till you do Mar 01 19:00:54 pointless attempting to figure out why/how Mar 01 19:01:16 KELP! I am in weed of assistance.. Either I've got something majorly wrong with this install of Eclipse or I'm doing something really wrong.. Mar 01 19:01:29 Bleeptech: or both Mar 01 19:01:32 :) Mar 01 19:01:52 StingRay_: i changed the code to: View tryout = findViewById(R.id.scroller); HorizontalScrollView sView = (HorizontalScrollView) tryout; Mar 01 19:01:58 the error is still in the findView line Mar 01 19:02:39 maybe the dreamservice's findView can throw a nullpointer? Mar 01 19:02:45 sView.getChildAt(0).getMeasuredWidth(); <-- move that line down a few Mar 01 19:03:02 if you cant be arsed debuging it Mar 01 19:03:09 and see if the line error changes Mar 01 19:04:56 http://pastebin.com/PSzyVgFh Mar 01 19:05:46 line 144 is View tryout = .... Mar 01 19:05:57 D'Oh! .. Helps if I stick it in the libs dir instead of the src dir.. Mar 01 19:06:13 lin e118 is letitscroll(); Mar 01 19:06:25 Styler2go: hang on, what happens when you click screen in a daydream ? Mar 01 19:06:30 it ends ? Mar 01 19:06:36 normally yes Mar 01 19:06:43 well then the view is gone Mar 01 19:06:51 lol wait. Mar 01 19:06:54 and maybe there is nothing to hand findViewById from Mar 01 19:06:57 why the hell is this set to false. Mar 01 19:07:15 now it works xD Mar 01 19:07:24 setInteractive(true); was false... Mar 01 19:11:38 does anyone know a good tutorial on how to compile a custom rom for the epic4gtouch Mar 01 19:11:50 go to #android-root Mar 01 19:11:51 try #android-root Mar 01 19:11:59 tyty Mar 01 19:18:23 the videoplayer in android, cant play many videos or? Mar 01 19:18:33 (VideoView) Mar 01 19:19:04 Ah, looks like the social component of my app is finally showing some results... Mar 01 19:20:03 I had 2200 more installs then normal from France yesterday Mar 01 19:20:41 :D Mar 01 19:20:46 so much :( Mar 01 19:20:55 my app only gets 20 downloads per day Mar 01 19:21:12 you have more downloads in one day than i get in one monthi prefer mid or jungle Mar 01 19:22:36 If you're an OK programmer, I'm sure you can get more then 20 downloads a day with some work Mar 01 19:22:56 Styler2go, where are your apps on the store? Mar 01 19:22:58 my app is way too special i think. :) Mar 01 19:23:19 i think just searching for styler2go will give results.. 2... Mar 01 19:23:48 Styler2go, it is in German? Mar 01 19:24:10 yes.. and only german... Mar 01 19:25:45 Of the EFIGS languages (English language, French language, Italian, German, Spanish), German is the one I have the least of - 24820 active installs. My next lowest, Italian has 60,000 installs. Mar 01 19:26:04 wow :D Mar 01 19:26:15 Ologn: do you make a good living from those installs? Mar 01 19:26:56 b0nn, no. Maybe if I had ten times what I do now I would being doing OK. Mar 01 19:27:09 any idea how i could make a random grid view out of images? ( i mean random sizes, rows, sometimes a puctre is two rows big, someday only one and so on) Mar 01 19:27:31 ok, it's hard to make a living? Or this is mor eof a hobby? Mar 01 19:27:41 hobby :D Mar 01 19:29:10 If I were to take android programming on as a career, my guess is that the bulk of the income would come from contacting work? Mar 01 19:29:40 eg. wants an app to do and I code 80% for them Mar 01 19:29:50 b0nn, well, I'm working to make it so I make more. For the past three months I've made between $900 and $1400 a month. So I'd have to push that up an order of magnitude to do it full time. Mar 01 19:29:53 as a freelancer? Mar 01 19:29:56 b0nn: that's one way to go Mar 01 19:29:57 b0nn: no, not at all Mar 01 19:30:04 if you're a contractor yes ok Mar 01 19:30:11 but I work as a full time employee and I suspect most people here do too Mar 01 19:30:17 (excerpting students) Mar 01 19:30:21 ok Mar 01 19:30:21 so noone have an idea about my problem? Mar 01 19:30:37 there's a serious dearth of competent android developers, so companies are more than willing to hire you full time Mar 01 19:30:43 Styler2go: it's not a problem, its a design choice Mar 01 19:30:50 ^^ Mar 01 19:30:53 :D Mar 01 19:30:56 Styler2go: you do it by coding it,. Mar 01 19:30:58 Styler2go: and a research task Mar 01 19:31:00 :) Mar 01 19:31:11 ok i will do Mar 01 19:31:36 I'm thinking of focussing on droid coding, I enjoy it, although my skillset is graduate level atm Mar 01 19:31:55 b0nn: android, not droid. droid is a VZW marketing term. Mar 01 19:32:08 OK Mar 01 19:32:27 *Android Mar 01 19:32:44 -uhm Mar 01 19:33:08 I've got half a dozen apps in my mind, on my todo list, but I don't think any are killer apps Mar 01 19:33:09 Styler2go, extend the Gridview class and do one thing at a time Mar 01 19:33:17 *Android™ Mar 01 19:33:31 Styler2go, so first work on having all cells equal, which is default Mar 01 19:33:43 *Google® Android™ Mar 01 19:33:52 Styler2go, then work on having two cells extend to one another horizontally. Then vertically. Mar 01 19:34:32 Styler2go, then work on automatically resizing it. I wrote some code which might help you a little in that regard Mar 01 19:36:00 i will try.. :D Mar 01 19:36:04 Styler2go, This link http://goo.gl/PqLVq has a Gridview I extended and made it so it automatically resizes cells Mar 01 19:36:40 aemms to be a very big task :D Mar 01 19:36:51 Not that I recommend the code as best practices by any means...but "it works" Mar 01 19:37:43 Styler2go, and once you do all that, then work on the pseudo-randomization Mar 01 19:38:05 Styler2go, also, I have an idea of why you don't get many downloads Mar 01 19:38:17 why? :D Mar 01 19:38:38 Styler2go, an app name like "VBT Splash 2013" is not that good Mar 01 19:38:45 but it has Splash Mar 01 19:38:47 I like splashing Mar 01 19:38:56 it makes me think that I'm having a pool party on my phone Mar 01 19:39:06 what's wrong with pool parties Ologn? Mar 01 19:39:09 Styler2go, call it Video Battle Tunier Splash or something Mar 01 19:39:11 Do you not like water? Mar 01 19:39:21 but the tournament the app is created for is named VBT Splash Mar 01 19:39:29 Styler2go, oh OK Mar 01 19:39:33 wouldn't this be too long? Mar 01 19:40:37 Video Battle Turnier Splash 2013 would be 2 chars too much :D Mar 01 19:42:37 does anyone knows if video multistreaming is possible on android? Mar 01 19:46:25 no ideas? Mar 01 19:47:43 hmm maybe just try it Mar 01 19:47:52 gmag: what do you mean by multistreaming? Mar 01 19:47:59 you mean two VideoViews in one View? Mar 01 19:48:26 gmag: do you mean produce and transmit more than one video stream, or view two streams at once Mar 01 19:48:29 i doubt the chips/drivers support decoding more than one video in hardware at a time Mar 01 19:48:34 or encoding, for that matter Mar 01 19:50:34 b0nn, to view two or more streams at once Mar 01 19:51:19 zinx, my questiion is if the Java API imposes any restrictions or if it is solely a hardware/driver problem Mar 01 19:51:52 what kind of videos can be streamed by the VideoView? Mar 01 19:52:12 zinx, and yes, there is hardware that does that Mar 01 19:52:31 Styler2go, what do you mean by kind? File formats? Mar 01 19:52:50 Styler2go, these should be supported: http://developer.android.com/guide/appendix/media-formats.html Mar 01 19:53:23 Styler2go, VideoView, AFAIK is just a thin layer on top of MediaPlayer Mar 01 19:53:39 so i mean the MediaPlayer Mar 01 19:53:51 Baseline Profile mp4... Mar 01 19:53:53 gmag: there is certainly hardware that does it. just not hardware that you'd be likely to find in an Android device. Mar 01 19:53:57 H.264 Mar 01 19:54:11 zinx, I have that hardware Mar 01 19:54:21 gmag: why not try it out? :/ Mar 01 19:54:27 zinx, I am Mar 01 19:54:39 zinx, I am trying* Mar 01 19:54:58 whats the difference between en and decoder? decoder = play, encoder = convert? Mar 01 19:55:03 I get an error "Can't play this video" Mar 01 19:55:34 on both or even when trying just one? Mar 01 19:55:41 Styler2go, encoder turns video data into compressed version. Decoder does the opposite Mar 01 19:55:57 using XML, is it possible to change the background of a view according to the view state? Mar 01 19:56:11 Styler2go, you can think of decoded data as an RGB array Mar 01 19:56:21 I tried android:background with a stateList xml, which caused a crash Mar 01 19:56:51 zinx, with one I can play Mar 01 19:56:59 hmm Mar 01 19:57:17 now i have to find out how i have to convert a video to play it :D Mar 01 19:57:27 gmag: i expect that your hardware or drivers don't actually support more than one at a time :/ Mar 01 19:57:37 AlCapwn: I've used statelist drawables a few times without too much problems. exception/code pasted somewhere? Mar 01 19:57:52 ugh, it doesn't like @null being the drawable sourcre Mar 01 19:57:52 zinx, so from the point of view of the Java API there should be no restriction right? Mar 01 19:58:01 I wanted an invisible background until it's pressed Mar 01 19:58:08 gmag: Java, no. stagefright? not sure. Mar 01 19:58:18 gmag: hardware/hw drivers? absolutely. Mar 01 19:59:03 zinx, yeah but the hardware I have I am sure should decode multiple streams at the same time Mar 01 19:59:25 gmag: why? that would be very rare in a device Android typically runs on Mar 01 19:59:28 AlCapwn: ok. so unrelated to statelistdrawables :-) I use @android:color/transparent for similar situations Mar 01 19:59:31 I know definitively that the Nokia n900 has a hardware switch to select cameras Mar 01 19:59:51 it absolutely can't use both at once Mar 01 20:00:09 kbs: I'll try that, and if it doesn't work, I'll use a transparent image Mar 01 20:00:28 yay, it worked Mar 01 20:00:30 thanks kbs Mar 01 20:10:32 StingRay_: You awake? Mar 01 20:13:40 subjective Mar 01 20:13:46 maybe maybe not Mar 01 20:13:57 from my point of view, not very Mar 01 20:15:00 also about to take a cigarette break Mar 01 20:15:08 and some cold air Mar 01 20:19:57 StingRay_: Well when you get back would you look at http://hc.apache.org/httpcomponents-asyncclient-dev/httpasyncclient/examples/org/apache/http/examples/nio/client/ZeroCopyHttpExchange.java and let me know what the args are? Mar 01 20:20:09 Hi, there is a book for start developing android 4.2? Mar 01 20:20:14 hm, how does one find files on a device using adb? Mar 01 20:20:35 b0nn: http://developer.android.com/training/index.html Mar 01 20:20:42 m8: yes, http://d.android.com/ Mar 01 20:20:42 whoops, m8 ^ Mar 01 20:21:02 lov, there are step by step tutorials? Mar 01 20:21:10 http://developer.android.com/training/index.html Mar 01 20:21:14 b0nn: have you got busybox installed? Mar 01 20:21:24 http://stackoverflow.com/questions/3644124/finding-files-on-android-os Mar 01 20:21:58 lov, i can do steps in order? Mar 01 20:22:19 how could i convert a video for android? Mar 01 20:23:07 is it possible to use an xml defined integer in a layout_weight? I can't work out how to refer to it Mar 01 20:23:08 m8: I don't know, can you? Mar 01 20:23:09 b0nn: If you have busybox you can do " adb shell " then " find / -name "file" " Mar 01 20:23:18 Why don't you click the link and read for like 15 seconds? Mar 01 20:23:23 oh, I see Mar 01 20:24:03 I think I will pull everything to my desktop, then I get two for one, I get a backup of my files *and* searchable directory Mar 01 20:25:27 Yeah, Can't wait to root the bosses GT-5113.. Make life so much easier to have find/grep/etc. :) Mar 01 20:28:22 preds: https://developer.android.com/guide/topics/resources/more-resources.html#Integer Mar 01 20:28:37 hmm Mar 01 20:33:38 thanks kbs, it actually wasn't working due to a typo :) Mar 01 20:35:31 preds: Better than it working due to a typo.. Sucks when you fix a typo and break the code.. LOL Mar 01 20:37:20 reminds me of an entire project where I spelt the variable names incorrectly, consistently for the entire project Mar 01 20:37:43 .... and I just said entire project twice Mar 01 20:38:56 it was Premiere instead of Premier Mar 01 20:40:04 * Bleeptech pokes StingRay_ with a stick.. Mar 01 20:42:36 sup? Mar 01 20:44:40 http://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/examples/org/apache/http/examples/nio/client/ZeroCopyHttpExchange.java Mar 01 20:44:57 Lost trying to figure out the args. Mar 01 20:45:59 what about args[] ? Mar 01 20:48:07 Eclipse doesn't like it or ZCHE("file",upload) isn't the way it works. Mar 01 20:48:56 Bleeptech: er, that's not how it works at all Mar 01 20:49:07 you're not supposed to construct ZCHE (or use it) Mar 01 20:49:25 that's an example, showing how to use ZeroCopy* classes, as far as I can tell Mar 01 20:51:16 Hmm... I was trying to get it to run when a button is pressed. Mar 01 20:58:52 hey guys i have a question Mar 01 20:58:58 it's posted here Mar 01 20:59:02 http://www.reddit.com/r/androiddev/comments/19h8hp/nfc_tags/ Mar 01 20:59:37 (to save having to write it out again Mar 01 20:59:53 I have a ListView where I have custom views for messages I want to display. Is there a way to make it so I still get the distinctive blue colour when you press a message, as one sees in the rest of android? Mar 01 21:01:03 make the selector blue ? Mar 01 21:01:14 selectorDrawable Mar 01 21:02:39 That's what it is by default (when using the holo theme) Mar 01 21:02:44 So you don't really have to do anything Mar 01 21:04:01 an android noob needs help here. I'm confused with so many xml files here: http://stackoverflow.com/questions/9834882/how-to-play-multiple-video-files-simultaneously-in-one-layout-side-by-side-in-di This guy claims it is possible to play multiple videos at same time with this code. I am trying to copy-paste, but am not completely sure what to do to all those xml files. Please give me some hints Mar 01 21:04:29 Those are supposed to be two different applications, I'm trying to copy the second one Mar 01 21:05:40 by this guy I mean the guy that whose answer is on top Mar 01 21:06:22 SimonVT: ah, in practice nothing happens when you select an element for me… Mar 01 21:06:25 the two last xml snippets are confusing me Mar 01 21:06:49 SimonVT: I have a custom adapter, so that could be the issue, maybe? Mar 01 21:07:55 lfaraone: listView drawSelectorOnTop ? if you using items with backgrounds Mar 01 21:08:51 No, it's not the adapter.. It's probably the row layout Mar 01 21:09:04 What do you mean by "select" tho Mar 01 21:09:31 Do you want it to stay a color, or just while the click is happening Mar 01 21:11:30 StingRay_: ah, .setDrawSelectorOnTop(true); was what I wanted. Mar 01 21:11:31 pls some help mates Mar 01 21:12:14 SimonVT: just while the click is happening, but now it works :) Mar 01 21:15:36 :( Mar 01 21:15:39 gmag: ask a specific question, if some1 can answer, I'm sure they will Mar 01 21:16:03 cause the answer to what you have asked so far is "learn more till it doesnt" Mar 01 21:16:05 :) Mar 01 21:18:33 StingRay_, I should read more about this, you're right. But I thought I would be able to run that guy application and check if it really is possible to run multiple videos at same time as he claims. I'm just confused about two last snippets of xml text: "R.layout.multi_videos_activity_layout" and "R.layout.multi_videos_fragment_layout". Shouldnt these be in the same file? Mar 01 21:19:45 One is the activity layout, the other is the fragment layout Mar 01 21:19:50 It's even in the name Mar 01 21:20:11 if you're not sure what fragments and activities are, you should read up on that first Mar 01 21:20:17 Does anyone know how to enable NEON support for native code in the Eclipse SDK? Mar 01 21:20:55 SimonVT, ok, but can't you tell me in which folder I should put that fragment layout? :) Mar 01 21:21:06 this getLine1Number() is much deeper than I thought Mar 01 21:21:08 .. in the layout folder? Mar 01 21:21:18 :-o Mar 01 21:21:53 today I tried the app on a Note 2 and the number that the app got from the line itself wouldn't fit the function that I had for dealing with numbers and other ....things Mar 01 21:22:06 you think I should just force everyone to just enter their numbers upon entry? Mar 01 21:22:24 currently I have "if you can get it from SIM card, do; else ask for it" Mar 01 21:22:42 Sicp: whats the number for ? Mar 01 21:22:47 is the ndk the compiler ? Mar 01 21:22:51 it's an SMS app Mar 01 21:23:00 has that functionality as one of the cores Mar 01 21:23:08 so why do you need number ? Mar 01 21:23:20 cause I uninstall things like that, privacy etc Mar 01 21:23:32 so I can send the SMS and put the number along with it.. Mar 01 21:23:36 from, to, message.. Mar 01 21:23:49 from my number to yours, saying "HOWDY!" Mar 01 21:26:58 Sicp: not a chomp whatsapp thing is it ? Mar 01 21:27:10 no Mar 01 21:27:16 it is cheesy, but not to my area Mar 01 21:27:19 and not whatsapp Mar 01 21:27:28 cheesy :) Mar 01 21:27:58 it sends/receives encrypted SMS, working on it with someone who requested it Mar 01 21:28:01 thats a good name actually "CheesySMS" Mar 01 21:28:14 in this area they don't really go out to search for new apps, they depend heavily on word of mouth Mar 01 21:28:28 what area ? you mean country ? Mar 01 21:28:42 I didn't want to say country, but ok; Lebanon Mar 01 21:29:12 and because lately a lot of fuss has been taking place around people's SMS's and their "data" Mar 01 21:29:30 techly-ignorant government requesting for SMS "data" and "Facebook passwords" Mar 01 21:29:42 really really degenerate Mar 01 21:30:08 well I'm doing an encrypted sms app as we speak Mar 01 21:30:13 same Mar 01 21:30:16 let's see who wins Mar 01 21:30:21 and I dont need source number Mar 01 21:30:23 :) Mar 01 21:30:34 doesn't mean I don't either Mar 01 21:30:41 Hi, im really stuck on trying to get this gridlayout centred vertically. http://pastebin.com/gd0ZAauG Mar 01 21:30:56 out of curiosity -- how does the encryption work? public-keys exchanged beforehand/password/etc? Mar 01 21:31:11 * kbs is very interested in this area... Mar 01 21:31:40 I am using AES Mar 01 21:31:54 and 128 salting Mar 01 21:32:00 well sms/mms you can play with PDU Mar 01 21:32:07 how are you dealing with the character number Sting? Mar 01 21:32:08 as long as it's valid to send Mar 01 21:32:15 yes, but how do you use AES? ie, how does the client know what key to use to encrypt/decrypt? Mar 01 21:32:33 here with my algorithm, 110 characters in plain text produce 156/5/4/ characters encrypted; just under 1 SMS Mar 01 21:32:43 the value of how much is generated varies because of the salting Mar 01 21:32:57 you have to look up the code, kbs .. Mar 01 21:33:10 SMS char set is not ASCII Mar 01 21:33:19 it's 7 bits Mar 01 21:33:25 or is it 6 Mar 01 21:33:34 that doesn't make a whole lot of sense to me, but maybe I'm just slow :-) Mar 01 21:33:41 I don't know what you mean; when I log.d whatever I encrypted, I see another string Mar 01 21:33:55 and I send that. if you intercept it before it reaches destination, you get a string of gibberish Mar 01 21:34:10 Sicp: but how do you handle the encryption key? Mar 01 21:34:44 is it just a hardcoded key in the app? or maybe based on some shared password phrase that both parties know? Mar 01 21:35:12 or maybe some "out of band" exchange of public keys between the parties? Mar 01 21:35:13 hold for pastie Mar 01 21:35:26 http://pastie.org/6362500 Mar 01 21:35:50 this is directly from android-snippets Mar 01 21:35:53 almst Mar 01 21:35:54 I have a custom listview with custom rows, how can I make each layout of each row have this type of image as the container of whatever is being shown on the list view? Mar 01 21:35:59 http://sphotos-b.xx.fbcdn.net/hphotos-ash3/644332_10200764976349431_308981157_n.jpg Mar 01 21:36:02 Using SecureRandom for that is wrong Mar 01 21:36:08 the salt is from the user's phone number Mar 01 21:36:14 yo Mar 01 21:36:19 SecureRandom shouldn't be used when you need a deterministic random number Mar 01 21:36:39 How do you change the action bar's text color(Using ABS if that matters) Mar 01 21:36:50 Sicp: ah, ok. that's not all that secure though Mar 01 21:37:10 ah, so password == phone number... gotcha. Mar 01 21:37:10 how could I improve it? Mar 01 21:37:18 if the interceptor knows the phone number of the sender (or recipient, whichever you use), then they could decrypt Mar 01 21:37:44 I think You should be able to exchange public keys Mar 01 21:37:54 but they don't know that that's the source of the salt Mar 01 21:37:59 let alone the encryption before it Mar 01 21:38:10 Sicp: if they have the app, then they do Mar 01 21:38:13 how? Mar 01 21:38:23 it's trivial to reverse engineer an apk Mar 01 21:38:23 all you see is clear text when you receive the message Mar 01 21:38:31 but I did proguard obfuscation Mar 01 21:38:47 then it's slightly less trivial, but still trivial :) Mar 01 21:39:07 here they are really not that tech savvy at all, if you start including the need for a public key and things to be memorized... Mar 01 21:39:08 you can't rely on the fact that they don't know how it is encrypted Mar 01 21:39:25 the user doesn't have to know anything about it Mar 01 21:39:38 I know that it would be a much stronger standpoint for me to be able to have something that is difficult to fuck with even if you knew more information about it Mar 01 21:40:52 JesusFreke: out of curiosity, are you working on this area :-)? [I've been recently prototyping a few things (eg: https://prettyprivatelink.appspot.com/)] and would love to know if you have some project in the works. Mar 01 21:41:32 no, I'm not. I'm actually not all that knowledgable about cryptography, but I do at least know the basics Mar 01 21:41:46 close to zero knowledge here Mar 01 21:42:37 this is my second app, and again it wouldn't have been possible without this channel Mar 01 21:43:02 JesusFreke: modest as always :-) but ok (in case you had some project I could contribute if possible.) Mar 01 21:43:08 with the first app, it got to a point where I mentioned this channel in the source comments, haha Mar 01 21:43:09 Sicp: what was your 1st ? Mar 01 21:43:32 this, http://odaym.github.com/Cura/ Mar 01 21:43:33 Sicp: encrypted sms is an excellent idea. Seems somewhat paralell to textsecure I guess in some ways Mar 01 21:43:42 there are many out there, kbs Mar 01 21:43:58 Sicp: basically, you should (have the app) exchange public keys first. And then when you are sending a message from party A to party B, party A uses party B's public key to encrypt the message Mar 01 21:44:06 I know the people behind TExtSecure, kbs :) Mar 01 21:44:14 and this means that only party B can decrypt, using party b's private key Mar 01 21:44:26 yea, that part of encryption I'm familiar with Mar 01 21:44:56 but I had entered the project when this encryption was the only block that was fully complete Mar 01 21:45:16 although, typcially, you would actually encrypt a symmetric key, and use that to ecrypt the actual message Mar 01 21:45:38 Sicp: also, you should not be writing an encrypted-sms app if people's lives depend on that. crypto is HARD to do right and easy to f*ck up Mar 01 21:46:00 I don't agree Mar 01 21:46:09 it's up to people to look after their lives, not up to my app Mar 01 21:46:24 if you wish to drive it to such a drastic measure as "people's lives" Mar 01 21:46:28 Sicp: before starting such a project, you should have several years of crypto experience in non-lethal contexts Mar 01 21:46:41 I joined, didn't start Mar 01 21:46:49 I started the app linked above though Mar 01 21:47:14 Sicp: telling people "here is an encrypted sms replacement our government can not sniff" might actually be a life hazard Mar 01 21:47:23 it doesn't replace your SMS Mar 01 21:47:47 also, just give them gibberbot ;) Mar 01 21:48:00 alright, man Mar 01 21:49:35 Sicp: dont shake this off please Mar 01 21:50:13 what would you like to hear, Ge0rG ? Mar 01 21:51:41 Sicp: that you are going to pause development and read all books by bruce schneier, cover-to-cover, before you resume Mar 01 21:51:54 That you don't market this as encrypted/secure communication Mar 01 21:51:55 you've got it Mar 01 21:52:42 https://play.google.com/store/apps/details?id=com.cansel.sms4.pro#?t=W251bGwsMSwxLDIxMiwiY29tLmNhbnNlbC5zbXM0LnBybyJd Mar 01 21:53:09 that describes how it does it via key exchange Mar 01 21:54:07 thanks, I'll look into it seriously Mar 01 21:55:15 the nice folks from #guardianproject might want to assist with that as well Mar 01 21:55:26 yes I know them personally Mar 01 21:55:26 StingRay_: how does it handle mitm? Mar 01 21:55:43 met them in Tunis a couple of months ago Mar 01 21:55:50 Ge0rG: you cant Mar 01 21:55:54 or it cant Mar 01 21:56:09 but you need some serious structure to intercept Mar 01 21:56:14 StingRay_: thats bad, for military grade Mar 01 21:56:19 Ge0rG: are you involved with the guardianproject? Mar 01 21:56:23 well nothing is 100% secure Mar 01 21:56:28 there is only probablity Mar 01 21:56:33 probability* Mar 01 21:56:35 StingRay_: yeah, 2k usd for some bts equipment Mar 01 21:57:03 well I'm doing secure sms a slight twisty way :) Mar 01 21:57:13 kbs: not actually, Im just another xmpp client dev Mar 01 21:57:48 Ge0rG: :-) okay. Mar 01 21:57:55 StingRay_: there are means for mitm prevention, eg in otr v3 Mar 01 21:58:18 doubt there is a problem there Mar 01 21:58:24 kbs: are you? Mar 01 21:58:28 well from how I'm wanting to do it Mar 01 21:59:13 Ge0rG: nope -- but quite interested in the area. I'm prototyping a few ideas roughly along those lines; but simpler. In short, qr-codes to exchange public keys, followed by data exchange [location,pictures, etc.] Mar 01 21:59:46 kbs: secure federated social networks? count me in! Mar 01 22:00:43 kbs: but what if someone has the technology to mitm the photons bouncing off of the QR code? Mar 01 22:00:59 JesusFreke: then I'm screwed :-) Mar 01 22:01:04 hehe Mar 01 22:01:25 JesusFreke: there is such a technology already, it is called "stickers" Mar 01 22:02:12 What if someone makes a visual basic GUI to track the IP address? Mar 01 22:02:14 actually in vfx we have scientific photon based material scanners that do that Mar 01 22:02:26 Ge0rG: It might be a bit difficult to implement such technology in a nondetectable manner, when using a phone screen to display the QR code Mar 01 22:02:36 https://www.youtube.com/watch?v=hkDD03yeLnU Mar 01 22:02:55 for returning physical attributes like IOR, refractive index or even scatter coef. Mar 01 22:03:12 lol Mar 01 22:03:15 i just love that video Mar 01 22:03:20 +1 Mar 01 22:04:03 JesusFreke: there are transparent stickers as well... the rest is a question of the right timing and deception Mar 01 22:04:31 anyway; bbl Mar 01 22:06:08 what u guys think of black-to-grey-gradient buttons? as opposed to say google's blue gradient ones? Mar 01 22:06:22 I think I couldn't care less :) Mar 01 22:06:32 lulz Mar 01 22:06:33 boytoy, as long as it matches your app, go for it Mar 01 22:06:42 thanks canadiancow Mar 01 22:07:05 :^) Mar 01 22:07:19 canadiancow: i owe u one!! Mar 01 22:08:10 hmm... i have an ArrayList of ImageViews.. how can i add them to a gridview? o.O addView is not working... Mar 01 22:08:55 GridView gets its views from an adapter Mar 01 22:09:03 An arraylist of imageviews sounds horribly inefficient Mar 01 22:09:03 Styler2go: same way you would a listview Mar 01 22:09:11 hmm Mar 01 22:09:27 will i need a custom Adapter for that? :-/ Mar 01 22:10:03 yes Mar 01 22:10:09 hmm Mar 01 22:10:50 everytime the question "is it the work worth?"... do you know this in your own projects or do you do optional stuff anyway? Mar 01 22:12:06 I do what I have to do to make my app do what I want it to do Mar 01 22:12:30 but if you want to do new stuff which maybe noone will ever usw.. Mar 01 22:12:32 use* Mar 01 22:12:38 will you still do it? Mar 01 22:12:43 so what about this? https://www.google.com/reader/view/#stream/feed%2Fhttp%3A%2F%2Ffeeds.feedburner.com%2Fblogspot%2FhsDu Mar 01 22:13:03 or here it is, http://android-developers.blogspot.com/2013/02/using-cryptography-to-store-credentials.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+blogspot%2FhsDu+%28Android+Developers+Blog%29 Mar 01 22:14:58 Sounds like you're just implementing random features without much thought Mar 01 22:15:16 I didn't implement that Mar 01 22:15:21 Not you Mar 01 22:15:23 but it's a feed I just saw on Google Reader Mar 01 22:15:25 i am adding stuff which i think it would be cool Mar 01 22:15:27 he didn't either Mar 01 22:15:31 oh Mar 01 22:15:33 So add it Mar 01 22:15:50 i am learning new things this way Mar 01 22:16:43 I see it's in favor of SecureRandom Mar 01 22:28:11 Sicp: wait, what? Mar 01 22:28:27 hmm Mar 01 22:28:28 that article is saying you *shouldn't* use SecureRandom, when you need a deterministic random number Mar 01 22:28:54 (which seems to be what your use case it) Mar 01 22:28:56 is* Mar 01 22:29:10 if i have an ArrayList of DayDreamItem's cant i simply convert it to DayDreamItem[] ? Mar 01 22:29:21 at least, if you're still talking about generating a key based on the phone number Mar 01 22:30:10 Styler2go: http://developer.android.com/reference/java/util/ArrayList.html#toArray%28T[]%29 Mar 01 22:30:27 The important point is that you shouldn't rely on SecureRandom being deterministic Mar 01 22:30:37 DayDreamItem[] dd = null; arrayList.toArray(dd); Mar 01 22:30:42 like that? Mar 01 22:31:09 dd = new DayDreamItem[count]; Mar 01 22:31:14 initialize it Mar 01 22:31:14 ah Mar 01 22:31:15 ok :) Mar 01 22:31:20 Styler2go: if the array you give it isnt big enough, it will make another and return that Mar 01 22:31:28 but its better to just make the array the right size to begin with Mar 01 22:31:31 thanks ! Mar 01 23:00:58 what's a good active/total install ratio? Mar 01 23:01:10 1:1 ? :D Mar 01 23:02:08 Can I extend IntentService AND implement OnClickListener at the same time? Mar 01 23:02:15 Styler2go, :P Mar 01 23:02:31 Bleeptech: you know a service is headless Mar 01 23:02:37 what would you click on ? Mar 01 23:02:55 or a service is without UI i should say Mar 01 23:03:14 Bleeptech: have you gone through the android learning/starter stuff ? Mar 01 23:05:17 Bleeptech: ? Mar 01 23:05:19 hmpf. Mar 01 23:05:21 StingRay_: Some of it.. Some of it is just counter-intuitive to me.. Some of it like the network code won't make sense to me till I can make it work.. Mar 01 23:05:29 my list says empty :'( Mar 01 23:05:33 stays* Mar 01 23:05:44 Bleeptech: well you really should Mar 01 23:06:01 cause making it work relies a little on understanding it more Mar 01 23:06:56 can't a gridview be in a scrollview? can it scroll on its own? Mar 01 23:07:14 yes but wont work and yes Mar 01 23:07:22 i think Mar 01 23:07:23 :) Mar 01 23:07:52 so a gridview is more like a Listview than a "normal" view, right? Mar 01 23:07:59 yes Mar 01 23:08:09 So that's a "Try it and see.".. LOL Mar 01 23:08:09 just look at the class Mar 01 23:08:10 now its getting clear Mar 01 23:08:13 thank you :) Mar 01 23:08:14 it tells you all this Mar 01 23:08:20 as in the class docs Mar 01 23:08:56 can i let a listview scroll slightly on its own or is my selfwritten timer good? Mar 01 23:09:47 on it's own ? Mar 01 23:09:50 wha? Mar 01 23:10:17 mmh Mar 01 23:10:28 i want that the gridview automatically scrolls down slowly Mar 01 23:10:39 in a scrollview i made it manually with a timer etc. Mar 01 23:10:43 look at the class docs Mar 01 23:10:50 "scroll" stuff Mar 01 23:10:56 hm... Mar 01 23:11:04 hm.. indeed Mar 01 23:11:24 smoothscroll Mar 01 23:11:44 sounds veeery good Mar 01 23:31:32 will a black background color save more battery than a white? Mar 01 23:31:43 what the heck is lint ? Mar 01 23:32:09 lint is something cool Mar 01 23:32:37 Android Lint is a new tool introduced in ADT 16 (and Tools 16) which scans Android project sources for potential bugs. Mar 01 23:33:02 do you guys use eclipse ? Mar 01 23:33:10 im wondering how i compile this thing Mar 01 23:33:16 i am using reclipse at home and on work Mar 01 23:35:31 Styler2go: depends on the display technology, but potentially Mar 01 23:36:17 so its not that good to use a white background in Daydream which is designed as batterysaver, right? Mar 01 23:37:09 its got something checked that says build automatically but i cant find any packages anywhere Mar 01 23:37:26 Tecan: first time eclipse? Mar 01 23:37:31 yaa Mar 01 23:37:43 and what u used before eclipse? Mar 01 23:37:52 codeblocks Mar 01 23:38:04 notepad Mar 01 23:38:20 did you downloaded eclipse from the eclipse site or form android? Mar 01 23:38:34 from ubuntu repo's Mar 01 23:38:42 oh ubuntu :o Mar 01 23:38:52 then i probably cant help Mar 01 23:39:19 http://developer.android.com/sdk/index.html try this maybe Mar 01 23:39:33 "DOWNLOAD FOR OTHER PLATFORMS" has some linux downloads Mar 01 23:40:39 http://i.imgur.com/1cp16Kh.jpg Mar 01 23:40:55 oh Mar 01 23:41:01 ehm so.. whats your problem? Mar 01 23:41:43 besides your obvious color style awareness :) Mar 01 23:42:05 sorry, could not help it Mar 01 23:42:16 i cant find theeeee um package to put on my phone in /home/clayton/workspace/sadasd Mar 01 23:42:35 isnt eclipse doing all this for you? Mar 01 23:42:51 maybe Mar 01 23:43:06 where ? Mar 01 23:43:09 if you press the green button on the top? or, if you are in designer, the small arrow on the right of it Mar 01 23:44:22 awe sweet its working Mar 01 23:44:30 :) Mar 01 23:44:31 thats pretty harley Mar 01 23:44:46 harley? Mar 01 23:45:54 http://lolimage.com/img/ups/56830284821326229923.jpeg Mar 01 23:48:59 hmm Mar 01 23:49:07 can i give a text a gradient? Mar 01 23:49:46 there probably will be a way, but I think it's so not done as a design rule!! Mar 01 23:49:58 like really not done!!! Mar 01 23:50:03 :D Mar 01 23:50:05 really really! Mar 01 23:50:16 I accept this warning and want to continue *button press* Mar 01 23:51:46 then you have little style ...err...styler Mar 01 23:52:19 :D Mar 01 23:52:29 awww, you are calling my nick :D Mar 02 00:05:44 If, because it's a (security) requirement, I have to close my app when the user logs out and/or puts the App in the background, what approach should I use? Would a System.exit(0) suffice? Mar 02 00:06:10 finish() ? Mar 02 00:07:04 i am using this at work for a project and it is very secure in this way. i have set a global variable logged_in and if the app goes onPause() it sets this to false and, if necessary also finish(); Mar 02 00:07:30 finish() only closes the current Activity. Mar 02 00:07:42 "“Motorola reminds me of the Apple of 1998: a pioneer in its market segment, engineering-driven, and ripe for innovation. I believe that great products can change everything.” lol, how much did they pay Kawasaki Mar 02 00:07:43 Not the whole Activity Stack. Mar 02 00:08:05 kakazza: in the main activity it closes all acitivties? Mar 02 00:08:43 i am using this at work and it works very good so. i dont know... Mar 02 00:11:32 Will try, thanks. Mar 02 00:12:08 i haven't needed to do it, but in principle I can't think why system.exit would cause trouble, assuming your goal is essentially to immediately nuke all in-memory process information Mar 02 00:12:29 maybe some day they might decide system.exit is verboten, dunno Mar 02 00:12:45 system.exit is verboten? Mar 02 00:12:50 are you german? Mar 02 00:13:07 System.exit() is not a good idea. google is your friend. Mar 02 00:13:43 see above, for why "one day they might decide system.exit is verboten" :-) Mar 02 00:13:49 so.. how can i add a gradient to a textview? http://developer.android.com/reference/android/graphics/LinearGradient.html this keeps only one second color :( Mar 02 00:14:11 Styler2go: you would have to draw it yourself Mar 02 00:14:14 i would think Mar 02 00:15:00 (and i can see lots of reasons why a security-conscious app might think it's best to nuke itself right away.) Mar 02 00:15:05 i foudn an article where they say i can use LinearGradient and: textView.getPaint().setShader(LinearShader); Mar 02 00:15:48 Styler2go: 'verboten' can also be used in English. It comes from German, though. Mar 02 00:15:57 Styler2go: it's not a good idea Mar 02 00:15:59 wow. never known... Mar 02 00:16:01 at all Mar 02 00:16:06 ever Mar 02 00:16:14 what would be the best idea? Mar 02 00:16:16 cept maybe for some MASSIVE title text Mar 02 00:16:31 like apple do with the title horizon gradient Mar 02 00:16:46 but thats for print and huge spaces on the site Mar 02 00:16:59 and even that is a little ageing now Mar 02 00:17:21 ? Mar 02 00:17:42 Styler2go: easy way to look at it, show me an image with type on it that uses a gradient for text Mar 02 00:17:46 that looks good Mar 02 00:18:00 this shader and lineargradient is almost working.. but not the way i am expacting.. i dont know what floats it wants Mar 02 00:18:39 i just want a very decent gradient, like form dark to darkgrey Mar 02 00:18:58 000 to 333 or 555 :D Mar 02 00:18:59 you dont know what floats it wants ? Mar 02 00:19:03 they are all in the docs Mar 02 00:19:06 explained Mar 02 00:19:19 yes i am on the page Mar 02 00:19:45 but the start of what... the activity? the view? the textview? Mar 02 00:19:57 view bounds Mar 02 00:20:04 relative Mar 02 00:20:18 hmm Mar 02 00:20:46 secondTextView.setTextSize(30); my text is now 30 px big, now i can set y1 to 30, i think... Mar 02 00:21:19 hmm.. text stays blue. Mar 02 00:21:27 well, if you disregard, padding, any parent influence, text kerning etc Mar 02 00:21:34 if i put y0 to 30 and y1 to 0 it says green Mar 02 00:21:42 well kerning will have little to do with it tbh Mar 02 00:21:57 kerning? tbh? Mar 02 00:22:06 tbh = to be honest Mar 02 00:22:20 kerining? Mar 02 00:22:50 kerning = the relative spaces and positions of chars dependent on the font spec Mar 02 00:23:14 hmm Mar 02 00:23:17 hello Mar 02 00:23:26 from x0 to x1 the gradient is no problem Mar 02 00:23:31 but why on y... Mar 02 00:23:48 cause a lin gradient is directional Mar 02 00:23:55 http://pastebin.com/5HtckNW6 any idea why this code is working on android 4.1 and lower, but not on 4.2.*? Mar 02 00:23:56 x and y Mar 02 00:25:01 it seems that the value aren't stored on sharedpreferences Mar 02 00:25:06 values* Mar 02 00:25:41 lol StingRay_: the floats are percent values? Mar 02 00:25:57 what do i use to run mk files ? Mar 02 00:26:04 y0 0 and y1 100 is working very good... Mar 02 00:32:36 haha mk is for ndk Mar 02 00:35:39 hahaha Mar 02 00:35:45 This method was deprecated in API level 1. Mar 02 00:35:47 :D Mar 02 00:46:41 Styler2go, what method? Mar 02 00:47:04 Date.getHour() was it Mar 02 00:50:02 Styler2go: many alternatives though Mar 02 00:50:19 i know, it was just funny to see :) Mar 02 00:50:38 that's probably because of java, rather than android... Mar 02 00:51:13 why the hell my eclipse is so slow... Mar 02 00:51:23 where do i find gles ? Mar 02 00:51:39 styler, its java Mar 02 00:51:56 yeah but normally its really fast Mar 02 00:52:59 hmm Mar 02 00:53:12 any idea how i could edit the text of a textview inside a timer? Mar 02 00:53:22 (runonuithread not available) Mar 02 00:58:54 no idea? Mar 02 00:59:20 <[1]Trinity> does anyone still use windows xp? Mar 02 00:59:45 i would if it had better SATA / AHCI support... Mar 02 01:00:13 <[1]Trinity> what OS do you run on ATM? Mar 02 01:00:24 win8 :) Mar 02 01:00:39 <[1]Trinity> is there any difference between 8 and 7? Mar 02 01:00:45 <[1]Trinity> noticeable* Mar 02 01:01:08 the workflow is a bit different in opening programs, but only in the first days Mar 02 01:01:12 <[1]Trinity> seems like microsoft is just cranking out windows one after another Mar 02 01:01:36 the only thing i am misisng is the teansparent window (aero) Mar 02 01:01:42 <[1]Trinity> was just wondering cause my 3.2 alienware running xp is slower than my 2.4 laptop >_> Mar 02 01:02:09 windows 7 is faster for older laptops Mar 02 01:02:32 <[1]Trinity> i meant gHz Mar 02 01:02:45 <[1]Trinity> and my alienware has more ram though its DDR2 Mar 02 01:02:58 why not using win7? Mar 02 01:03:15 <[1]Trinity> i dont want to pirate a windows 7 :) not into pirating anymore Mar 02 01:03:20 <[1]Trinity> after i started deving for android Mar 02 01:03:33 i have no priate version <3 Mar 02 01:03:46 i am in education so i get all windows versions for free :D Mar 02 01:04:27 <[1]Trinity> Just waiting until april-may so I can buy a new laptop Mar 02 01:04:50 by the way, my win8 is running much better than my old win7, i had to reinstall win7 about every 2-4th month new :D win8 is now running since over a half year Mar 02 01:05:17 wuah why i cant access the ui threas Mar 02 01:05:19 thread* Mar 02 01:05:44 <[1]Trinity> I sort of want to just rewrite my laptop and make it a linux >_> Mar 02 01:05:58 why not? Mar 02 01:07:19 how can i access this textview.. damn.. someone here who could help? Mar 02 01:07:24 <[1]Trinity> too lazy to re-install android/eclipse. and im scared problems might occur with eclipse Mar 02 01:07:30 <[1]Trinity> paste bin it and ill try Mar 02 01:08:07 i want to set a text to a textvie winside a timer Mar 02 01:08:21 android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. is what i get Mar 02 01:08:41 indeed Mar 02 01:08:43 and i dont know how to get back from this thread :-/ Mar 02 01:10:20 Styler2go: try view.post()'ing a runnable. You'll still have to deal with configuration changes I'm betting, but save that joy for later ;-) Mar 02 01:10:38 ? Mar 02 01:10:58 file:///Users/kbs/android-sdk-macosx/docs/reference/android/view/View.html#post(java.lang.Runnable) Mar 02 01:11:00 ah Mar 02 01:11:07 <[1]Trinity> Loled Mar 02 01:11:20 :-) Mar 02 01:11:43 w8 Mar 02 01:11:47 <[1]Trinity> developer.android.com/reference/android/view/View.htmlView.html#post(java.lang.Runnable)View.html#post(java.lang.Runnable) Mar 02 01:11:49 this works Mar 02 01:12:05 thanks :) Mar 02 01:12:50 * kbs waits for the inevitable... but it breaks whe I re-orient my device Mar 02 01:13:22 Styler2go locks orientation and dont deal with silly things like config changes :) Mar 02 01:13:50 yes, why? :D Mar 02 01:14:20 ah. a cutter of the gordian knot of re-orientation (and postponer of other corner cases :-) Mar 02 01:14:24 cause your forcing the user to do something Mar 02 01:14:36 thats not really a great thing to do in almost all cases Mar 02 01:21:33 <[1]Trinity> any good open source projects out there? showcasing good design? Mar 02 01:21:44 <[1]Trinity> popular apps that are open source* Mar 02 01:22:19 try out Andlytics Mar 02 01:23:10 <[1]Trinity> mhmm will do, but also found a list of nice looking open source projects if anyone is interested Mar 02 01:23:10 <[1]Trinity> http://blog.interstellr.com/post/39321551640/14-great-android-apps-that-are-also-open-source Mar 02 01:23:21 * [1]Trinity finds it good to review other peoples codes :) Mar 02 01:23:50 Calendar now = Calendar.getInstance(); Formatter sf = new Formatter(); final String hour = sf.format("%tH", now).toString(); Mar 02 01:23:53 is this wrong? Mar 02 01:24:38 well whats that give you ? Mar 02 01:24:44 a string ref of the object ? Mar 02 01:24:59 actually... 02 Mar 02 01:25:03 so its correct Mar 02 01:25:11 never used formatter Mar 02 01:25:14 final String month = sf.format("%tm", now).toString(); Mar 02 01:25:23 this gives me val$month "022148Sa.0203" (id=830047484976) Mar 02 01:25:36 i dont know why Mar 02 01:25:37 thats what I asked Mar 02 01:25:44 string ref to the object Mar 02 01:25:46 :) Mar 02 01:25:54 ? Mar 02 01:26:01 oh wait Mar 02 01:26:06 maybe i found the problem Mar 02 01:26:13 .toString() Mar 02 01:26:15 :) Mar 02 01:26:51 maybe i should not use the same formatter again and again... Mar 02 01:27:07 yepp. this was the problem Mar 02 01:27:19 well no Mar 02 01:27:26 the problem was toString Mar 02 01:27:35 http://img199.imageshack.us/img199/1908/climsyclipboardo.png my daydream :D Mar 02 01:28:05 now i have to make this gridview looking good Mar 02 01:33:28 <[1]Trinity> ould you guys use another dialer app? Mar 02 01:33:37 no Mar 02 01:33:44 :) Mar 02 01:33:54 no too Mar 02 01:33:58 <[1]Trinity> why not? =[ Mar 02 01:34:05 too many already Mar 02 01:34:09 stock is good enough Mar 02 01:34:16 <[1]Trinity> but mine is different! LOL Mar 02 01:34:22 how so ? Mar 02 01:34:23 :D Mar 02 01:34:35 <[1]Trinity> speed dialer, basically swype with dialer Mar 02 01:34:36 <[1]Trinity> LOl Mar 02 01:34:52 most do that ? Mar 02 01:35:01 <[1]Trinity> which ones do? Mar 02 01:35:08 have a look on play store Mar 02 01:35:10 loads Mar 02 01:35:18 :D Mar 02 01:35:29 <[1]Trinity> way to crush genius idea =[ Mar 02 01:35:40 but there is no simple stopwatch which starts and stops on nfc tag scan Mar 02 01:37:34 <[1]Trinity> StingRay_: are you sure? just did a check so far 2 dont Mar 02 01:37:36 <[1]Trinity> and theyre the top 2 Mar 02 01:38:12 explain what you mean by "swipe" Mar 02 01:39:03 <[1]Trinity> do you know swype typing> Mar 02 01:39:21 like android 4.2 keyboard? Mar 02 01:39:38 <[1]Trinity> yea Mar 02 01:39:40 oh god, no1 actually dials numbers like that no more Mar 02 01:39:45 contacts no? Mar 02 01:40:04 I maybe ring 2 number per year that makes me use dial pad Mar 02 01:40:15 me too Mar 02 01:40:16 <[1]Trinity> ehh I dont store contacts Mar 02 01:40:29 then your the 0.1% Mar 02 01:40:32 :) Mar 02 01:40:55 I think it's a neat idea regardless, might be useful for other (perhaps niche) apps that need to enter numbers Mar 02 01:41:21 <[1]Trinity> yea :) thanks kbs Mar 02 01:41:31 ie -- do what you enjoy doing ;-) Mar 02 01:41:43 <[1]Trinity> I make games though, never ventured into app making except this one time Mar 02 01:41:53 <[1]Trinity> xml designing scares me Mar 02 01:42:07 you dont design in xml Mar 02 01:42:10 !!! Mar 02 01:42:15 you implement xml Mar 02 01:42:17 :) Mar 02 01:42:21 to match design Mar 02 01:42:28 >.< Mar 02 01:43:03 <[1]Trinity> semantics :/ Mar 02 01:43:06 anyone here use ndk on linux ? Mar 02 01:43:16 [1]Trinity: really no :) Mar 02 01:43:35 one thing that strikes me is part of what makes swype/etc work, is that they have a pool of "likely" words to associate the strokes. But, wonder how that might translate into essentially arbitrary numbers Mar 02 01:43:57 <[1]Trinity> kbs: theres a slight ms delay Mar 02 01:44:33 is it so difficult to set up this damn gridview.. oh god.. :D Mar 02 01:44:43 <[1]Trinity> for example typing 1 and then 3 would require you to pass through 2 but 1 would hold maybe 100 ms delay and 3 would hold a 100 ms delay vs 2 holding only 50 ms or less Mar 02 01:44:59 hey guys Mar 02 01:45:08 [1]Trinity: that seems like a fail right there Mar 02 01:45:15 frustrating and error prone Mar 02 01:45:23 eg Mar 02 01:45:35 easier to maybe lift my finger than mentally pause Mar 02 01:45:36 if I were to want to add a listview to a fragment, is there any change I should make to the listadapter adapter? Mar 02 01:45:36 :) Mar 02 01:45:48 <[1]Trinity> StingRay_: I wouldn't use absolutes Mar 02 01:46:06 <[1]Trinity> whether it be a 1 ms difference it would still be detected :) Mar 02 01:46:23 hmm...maybe then Mar 02 01:46:31 do a prototype and lets test :) Mar 02 01:46:41 <[1]Trinity> sure haha give me a couple of minutes :) Mar 02 01:46:52 is this a good place to ask about android kernel module compilation? Mar 02 01:47:04 HaDAk: this is app dev Mar 02 01:47:08 <[1]Trinity> #android-root Mar 02 01:47:49 so yeah, I'm implementings a listview in a fragment, but my listadapter is all red squiggly lol Mar 02 01:47:57 any changes or casting I need to do? Mar 02 01:48:02 no Mar 02 01:48:23 i will go to sleep. thanks again for helping me Mar 02 01:48:37 Styler2go: fix the info back!!! Mar 02 01:48:39 thanks guys. Mar 02 01:48:47 the info? Mar 02 01:48:47 because the code was working perfect as a standalone app, but now that I'm integrating it in to my app that contains fragment, the squgiglys appear :/ Mar 02 01:49:03 or I'm gonna post a right comment on your app ;) Mar 02 01:49:06 whats wrong with the info? Mar 02 01:49:08 right = bad! Mar 02 01:49:14 told you b4 Mar 02 01:49:22 huh? Mar 02 01:49:26 open your app Mar 02 01:49:35 and? Mar 02 01:49:36 press info Mar 02 01:49:45 http://img801.imageshack.us/img801/6369/climsyclipboardi.png Mar 02 01:49:49 now press the top left Mar 02 01:49:52 whats wrong? Mar 02 01:49:56 [1]Trinity: sounds like a fun project, good luck :-) I vaguely remember someone also doing some prototyping using swipe to move the cursor as well; maybe you have something that might become useful as a fast-entry number-pad. Mar 02 01:49:57 oh! Mar 02 01:49:59 that gives the indiaction to go back Mar 02 01:50:00 yes! Mar 02 01:50:01 !!!! Mar 02 01:50:09 oh god, how can this be wrong!!! Mar 02 01:50:10 and does......nothing Mar 02 01:50:13 i will fix this asap! Mar 02 01:50:18 told you days ago Mar 02 01:50:40 yes Mar 02 01:50:41 i forgot that Mar 02 01:50:48 i will do it right now! :D Mar 02 01:51:24 <[1]Trinity> StingRay = sleep robber Mar 02 01:51:32 ah, here it is -- if someone hasn't seen it before. https://www.youtube.com/watch?v=Ce-pbevEkls Mar 02 01:51:42 StingRay = ultimate tester Mar 02 01:51:49 ok sting, its added Mar 02 01:53:18 kbs: I like that Mar 02 01:53:25 aww yeah my app also works on 2.3.4 with daydream inside Mar 02 01:53:28 i like that Mar 02 01:54:03 yeah, it's a very creative idea indeed Mar 02 01:55:48 kbs: i want this for android? Mar 02 01:56:01 <[1]Trinity> I think Swype was purchased by Google or something Mar 02 01:56:10 <[1]Trinity> or licensed at least, its included in some builds Mar 02 01:56:15 <[1]Trinity> unless those were rooted builds Mar 02 01:56:26 <[1]Trinity> but its downloadable on the market Mar 02 01:59:11 just to make, you can have a listview inside a fragment right? Mar 02 02:00:09 A ListFragment class already exists, but you can have any view you like Mar 02 02:00:18 Inside a fragment Mar 02 02:00:52 okay cause initiall I have main extends Fragments Mar 02 02:00:58 and I've been receiving an erro for my adapter Mar 02 02:01:11 I just changed it to listfragment, but the error persists Mar 02 02:02:48 What's the error? Mar 02 02:03:40 this is my code http://pastebin.com/LCakdcxx Mar 02 02:03:44 and this is the error: Mar 02 02:03:58 The constructor SimpleAdapter(Gold_Visitor, ArrayList>, int, String[], int[]) is undefined Mar 02 02:06:40 The constructor you're calling doesn't exist for SimpleAdapter Mar 02 02:06:53 Check the docs to see what constructors you can use Mar 02 02:07:26 is it because I am trying to place it in a fragment? Mar 02 02:07:39 because the constructor worked in a standalone app that I tested Mar 02 02:10:00 No, that won't be why Mar 02 02:10:23 Check the docs just to make sure the constructor exists Mar 02 02:10:56 the javadocs? Mar 02 02:35:06 Hi there, I have a setContentView(R.layout.thing) inside thing there is a list android:id="@+id/listView_thing" and I do View o = findViewById(R.id.listView_citas); Mar 02 02:35:19 so... Im having null instead of the listview Mar 02 02:35:42 tyoc213, and if you look in R, is it there? Mar 02 02:35:51 if not, clean and rebuild Mar 02 02:35:55 testing findViewById(R.id.listView_thing) on a galaxy s3 work OK, but on emulator on a previous versions it doesnt work Mar 02 02:36:05 yes I hit F3 and it is there Mar 02 02:36:23 previous versions...is it a gridview or something only available from a certain api level on? Mar 02 02:36:46 it is a ListView the low api is 10 I think Mar 02 02:36:56 galaxy is 13 isn't? **** ENDING LOGGING AT Sat Mar 02 02:59:59 2013