**** BEGIN LOGGING AT Tue Nov 20 02:59:57 2012 Nov 20 03:00:02 tdignan: it works. thx for your help. Nov 20 03:01:10 jug6-n7: I rearranged it. It's working now. thanks Nov 20 03:01:36 Nice Nov 20 03:03:08 jug6-n7: Although, I do have a quick question. I am dynamically inflating the same view over and over and at any time I want to be able to get the values that the user inputs and perform a calculation, how would I get all the views in order to get the values to add up? Nov 20 03:03:59 Have to find each one Nov 20 03:04:21 jug6-n7: so set a unique id? Nov 20 03:04:23 Could cache a reference as you find them if that works into what your doing Nov 20 03:04:45 Just w/e I'd you give them Nov 20 03:05:24 just what? w/e? Nov 20 03:06:25 Bla sorry Nov 20 03:06:52 Just what ever id you give them Nov 20 03:07:00 In the layout Nov 20 03:11:52 are there any good protobuf rpc libraries for android out there? Nov 20 03:12:11 that work with app engine preferablly Nov 20 03:24:01 jug6-n7: ok, I finally understand what you mean exactly. How would you recommend I keep track of the parent views so I could ultimately access the children views? Is that where I should set a reference? Nov 20 03:25:35 Depends on what you are doing and going about finding the views. Just note that each look up is quite taxing Nov 20 03:27:51 Yeah, its just that the user must be able to click a add button and when that happens and new row is generated, and the user can change the content in the row that was generated, so at anytime I must calculate the values that the user put in to the row and it can have a different number of rows. I just don't see any other way of storing the values and calculating it other than doing a findView each time. Nov 20 03:31:42 Don't store the values solely in the views Nov 20 03:32:10 Keep an array or map that mirrors them and calculate from that Nov 20 03:32:37 As views get updated update array/map Nov 20 03:33:19 do it the other way aroud Nov 20 03:34:11 Que Nov 20 03:34:28 as the array/map gets updated, update the views Nov 20 03:35:07 healthier way of thinking Nov 20 03:36:40 Same difference. Which gets updated first depends on what the program is doing. Nov 20 03:57:17 an app i am working on includes 20megs of instructional video. should I package it with the apk or fetch it upon first run? (these vids are kind of non-optional for the user and must be followed) Nov 20 03:58:42 hmm myb a stupid question Nov 20 04:02:36 first run Nov 20 04:02:45 download in the background too, don't make the user wait Nov 20 04:02:59 20mb extra is enough to deter people from downloading your app Nov 20 04:03:08 ye thats what i thought Nov 20 04:03:56 tdignan, ok first run it is, i guess I can use Request-Range to resume the connection if the connection drops? Nov 20 04:04:13 resume the donwload* Nov 20 04:05:11 i've never used that before Nov 20 04:05:48 seems so, though Nov 20 04:06:06 for oauth authentication, am i supposed to store each users access token in my db and use it to authenticate them? Nov 20 04:06:15 cheers tdignan Nov 20 04:06:48 ye something like that whomp, oauth has a channel i think Nov 20 04:06:58 k ty Nov 20 04:09:34 whomp, i thin yu should use SharedPreferences instead Nov 20 04:10:11 yeah, but i need to make sure that they are who they say they are Nov 20 04:10:37 i need some identifier on my own server, whether its facebook or the user talking to it Nov 20 04:13:19 i meant save the access token to shared prefs instead of db, its just 3 lines of code Nov 20 04:13:45 that's fine, but every time they start it up i need to reestablish a session Nov 20 04:14:40 that means they send me their info, and i say ok, you can act as that user without authentication for X amount of time Nov 20 04:15:22 otherwise, they can tell me they're some random user and i would have to accept it Nov 20 04:15:58 hey, can I add a custom button to text box context menu? such as copy-to-my-app ? Nov 20 04:43:49 What would be a good layout to use when I have two views. One view at the bottom one at the top. THe bottom view is just a banner ad, the one at the top contains the rest of my application? Nov 20 04:45:30 what is "the rest of my application" Nov 20 04:46:57 A GL view Nov 20 04:47:05 doesnt really matter then Nov 20 04:47:08 id probably go for a linearlayout Nov 20 04:47:17 Rather, to smiplify, I just wantt two views. One on top, one on bottom Nov 20 04:47:27 I can specify the size of each Nov 20 04:48:10 Rather, i want the view on the bottom to take up a certain amount of space, then I want the view on top to just take the rest. Nov 20 04:48:31 I think what I'm doing now is occupying all the space of the top view, and then leaving no screen real estate for the bottom Nov 20 04:54:01 I'm trying to make an app that can use the data from and post to a forum's shoutbox. Reading and writing to it is simple enough, but it needs a session cookie. Would the best way to get that (without serverside code) be to give the user the actual forum's login page and just store the cookie it gives when they login? Nov 20 04:54:54 oi Nov 20 04:55:09 oi! Nov 20 04:55:33 Oil! Nov 20 04:55:44 * offby1 plays the theme from "The Beverly Hillbillies" Nov 20 04:56:27 good thing you're only off by 1 Nov 20 04:56:45 :) Nov 20 04:57:27 oy vey Nov 20 04:57:33 whats going on players Nov 20 04:57:44 g00s, no, no ant+ Nov 20 04:58:03 man I wish like fuck I could get my teamcity instance going with android projects Nov 20 04:58:06 ron_frown: kinda concerned there is anecdotal grumblings of BT being somewhat borked in 4.2 Nov 20 04:58:15 ? Nov 20 04:58:17 if true, i guess i should say maxSdk=16 Nov 20 04:58:22 I havent seen the grumbling Nov 20 04:58:38 hm, on android police hold on Nov 20 04:59:15 http://www.androidpolice.com/2012/11/19/android-4-2-gate-here-are-some-of-the-major-issues-plaguing-googles-newest-release/ Nov 20 04:59:31 since my app is all bt, all the time ;) Nov 20 04:59:45 dont want to get a bunch of shitty reviews yet Nov 20 05:00:15 my friends got a n7 and I know for a fact he uses bt stuff with it Nov 20 05:00:21 havent heard him complaining Nov 20 05:00:34 afaik BT only fucked up if you used private apis Nov 20 05:00:51 canadiancow: you mean through reflection or something ? Nov 20 05:00:57 infact a lot of those complaints I havent noticed Nov 20 05:00:58 i just stick to the public ones Nov 20 05:01:21 in 4.2, the whole bluetooth stack was replaced Nov 20 05:01:29 def no problems with camera shit, def no problems with lockscreen widgets, no battery probs, no slow charging Nov 20 05:01:48 no random reboots, no usability issues, no performance drop Nov 20 05:02:10 havent notcied brightness bugs but that may exist Nov 20 05:02:19 and I cant speak for bluetooth myself Nov 20 05:02:23 canadiancow: after installing 4.2, I did manage to get bluetooth Internet sharing working, exactly once Nov 20 05:02:24 now I am running it on a gn Nov 20 05:02:27 that's once more than with previous builds Nov 20 05:02:37 ive used bluetooth tethering several times Nov 20 05:04:54 the android police article has a bunch of links to forum posts, issue on b.android.com, etc - i dont see anything about private apis Nov 20 05:05:11 seems mostly bt audio Nov 20 05:06:08 they probably updated to latest bluez Nov 20 05:06:35 which is great... but I found aosp bt didnt work fantastically without a bit of massaging anyway Nov 20 05:07:33 http://code.google.com/p/android/issues/detail?id=39633 Nov 20 05:07:42 http://code.google.com/p/android/issues/detail?id=39637 Nov 20 05:08:39 "I set a timer on my Nexus 7 to cook a pizza the other night and it never went off (caught the pizza before it burnt) and on closer examination the tablet had rebooted during the 15 minutes I had put on the timer. Not cool Google. Not cool." Nov 20 05:08:53 :-( Nov 20 05:08:54 canadiancow: maybe your pizza delivery guy who was always late was using his android phone as a timer ! Nov 20 05:09:12 g00s honestly... those issues in the issue tracker are full of immature comments Nov 20 05:09:22 god forgive google releases a peice of software with a bug in it Nov 20 05:09:24 ron_frown: thats normal these days Nov 20 05:09:35 'me too!' Nov 20 05:09:44 'and my brother!' Nov 20 05:09:50 nevermind apple iphones right now have literally severely crippled text messaging if you have imessage turned on Nov 20 05:09:50 'my aunt has the same problem' Nov 20 05:10:09 rover is not happy Nov 20 05:10:32 kinda sad actually Nov 20 05:10:41 its not even contructive Nov 20 05:11:15 and I really dont think its 100% affected Nov 20 05:12:51 we found a bug on our hardware where backlight pwm was setup wrong and you could only see screen if values were between 100-255. Android has a safety of 10 Nov 20 05:13:00 so customer would dim it accidentally lower than 100 and bam Nov 20 05:13:06 cant see shit on the screen Nov 20 05:13:17 return the unit because we didnt have recovery mechanisms on that hardware Nov 20 05:14:07 oh lord Nov 20 05:14:15 let the influx of happy bday emails commense Nov 20 05:14:24 if they were offering me free this or that Nov 20 05:14:29 bring it on Nov 20 05:15:14 also wonder, with such cost cutting, whether its something like bad memory or something Nov 20 05:15:20 i mean, tight margins Nov 20 05:15:37 on n7 Nov 20 05:30:25 hip hip hooray Nov 20 05:30:39 i am getting better at developing android apps Nov 20 05:30:43 debugging my own apps Nov 20 05:30:48 and getting them up and running Nov 20 05:33:23 Can the current amplitude of 1 mp3 (played using MediaPlayer class) effect another that is playing simulatenously? I would like 1 mp3 to "duck" its volume when the other playing mp3 breaks silence Nov 20 05:33:33 is that kind of thing possible? if so where should I look? Nov 20 05:35:47 brx_: stalker! Nov 20 05:36:00 rly? :D Nov 20 05:40:03 do you guys use dialogs and create interfaces to pass event back to caller? Or just handle the action inside the dialog itself? Nov 20 05:40:28 has anybody resorted to creating cleaner COM or .NET style events out of the java interface mess? Nov 20 05:45:41 "Grubbs' countryman, Eric Cornell, who won the Nobel Prize in Physics in 2001, told Reuters: "I attribute essentially all my success to the very large amount of chocolate that I consume. ..." Nov 20 05:45:53 i'm hoping bacon does the same Nov 20 05:46:13 are you close to winning the nobel prize? Nov 20 05:46:47 dude Nov 20 05:46:55 I thikn my nephew who is like 2 and change Nov 20 05:47:05 said it best when he accidentally dumped daddys soda last night Nov 20 05:47:13 "....SHEEEEEEEIIIIIIIIIIIIIT..." Nov 20 05:50:35 Rep. Davis! Nov 20 05:50:53 er, Senator. Nov 20 05:54:36 guys what version of android is S2 on ? Nov 20 05:55:17 4.0 Nov 20 05:55:34 ok Nov 20 05:55:47 ty Nov 20 05:57:32 ron_frown: what version of android does your industrial control stuff use ? Nov 20 05:57:45 4.1.2 shit now Nov 20 05:57:59 I was going to go for 4.2 but I got a deadline to deliver huge fucking shipment Nov 20 05:57:59 so Nov 20 05:58:04 doesnt seem like the kind of gear that benefits from the latest and greatest os Nov 20 05:58:08 I'll release os update later if it actually ads benefit Nov 20 05:58:12 hey guys another question is there a way to scan your code and in the end it gives a list of what api lvl libs u use ? Nov 20 05:58:16 g00s actually in most cases its a problem Nov 20 05:58:17 honestly Nov 20 05:58:31 it took me like 10wk to get a stable build running Nov 20 05:58:42 because google would speed shit up, and head would ALWAYS have a shitton of bugs Nov 20 05:58:47 because its essentially dev Nov 20 05:59:38 is that a _metric_ shitton, or ... Nov 20 05:59:46 but 4.1.2 should be fine, once its working right? are the robots playing the newest version of angry birds ? Nov 20 06:00:08 seems like you can just leave it at 4.1.2 for … a long while Nov 20 06:02:45 so there I was able to install an app on my android old samsung galaxy s phone. the app references android.support.v4.app.dialogfragment. and it worked fine but showed old style dialog. is this kinda of backward compatibility expected from most APIs? Nov 20 06:02:49 there re things in 4.2 that would be beneficial Nov 20 06:03:01 eg, multiuser (which I might add works pretty good) Nov 20 06:04:39 ron_frown: multiuser for industrial control ? Nov 20 06:04:56 for some of what we do, it makes a lot of sense Nov 20 06:05:02 we already do it, but not os level Nov 20 06:05:23 user a needs to push recipe into machine Nov 20 06:05:29 user b should have no such permissions Nov 20 06:07:49 and user c can play angry birds Nov 20 06:08:18 and user d's porn stash is safe Nov 20 06:08:27 ha Nov 20 06:17:30 guys i tried to install the adt from the developer website but the eclipse is 3.8 Nov 20 06:17:42 is that an advisable build to run in mountain lion? Nov 20 06:18:38 any spanish ppl here atm? Nov 20 06:19:05 needed to ask how u say fixing in spanish :P Nov 20 06:19:24 you don't. Nov 20 06:19:38 tyl: i use 3.8.1 - works great Nov 20 06:19:46 you don't? Nov 20 06:20:04 still using mac 10.7.5, with java 6 ;) Nov 20 06:20:30 sounded like you meant as in the southern "fixing to do" slang. Nov 20 06:24:30 apparently they keep saying that 4.3 will solve some issues with mountain lion Nov 20 06:24:33 guys, I have an new_adapter extended from BaseAdapter. Used to populate a ListView (custom view). When I add a new item, I use ((new_adapter)getListAdapter()).notifyDataSetChanged(); but it doesn't force the list to update. Nov 20 06:25:05 it doesn't generate any errors either. runtime the getListAdapter() is not null. Nov 20 06:25:29 is there another way to force the list to update short of "setListAdapter(..)"? Nov 20 06:32:22 notifyDataSetChanged() will cause the list to refresh itself from the adapter Nov 20 06:32:32 chances are you did something wrong when implementing your adapter. Nov 20 06:32:46 or you didn't run notifyDataSetChanged() on the UI thread. Nov 20 06:32:57 tdignan: so you're saying save the cheerleader save the world? Nov 20 06:33:06 I mean fix the adapter, fix the notifyDataSetChanged()? Nov 20 06:33:19 maybe Nov 20 06:33:57 I do add, adapter.ReadList() (Log.i shows all new items), then notify multiple ways. Nov 20 06:34:11 just paste your adapter source Nov 20 06:34:47 it's a ListFragment same as before which embeds a ListView Nov 20 06:34:56 ok, let me find the darn adapter and a pastebin. Nov 20 06:35:53 http://pastebin.com/xrmKa6zL Nov 20 06:36:30 ignore the first 2 constructors. they're slated for deletion. Nov 20 06:39:31 well, this is probably not causing your problem, but getItem should return the TODO object, not the position Nov 20 06:40:23 tdignan: interesting. let me change to see how ti works. Nov 20 06:42:01 ok, that doesn't break anything. doesn't solve the other thing tho. like you said not causing the problem. Nov 20 06:42:49 you aren't using @Override annotations on your overridden methods Nov 20 06:43:02 that could have been done easily had you pulled them in using the IDE Nov 20 06:43:27 but - I don't think the problem is in the adapter anymore. Nov 20 06:43:30 tdignan: this was done when I first start and was a result of a copy of the adapter from online and then modification to fit my application. Nov 20 06:43:36 *started Nov 20 06:43:40 I think it might be in your DbTableToDo class. Nov 20 06:44:09 johny-b-goode: no need to defend yourself, the code is obviously a learning project. Nov 20 06:45:20 tdignan: cool. ok before I change the DbTableToDo, one thing to mention, I set the adapter in ListFragment using setListAdapter. so to update I then use the following two ways: Nov 20 06:45:31 Log.i("MainActivity", "Added value: "+Item.Title); Nov 20 06:45:48 lol, ((TodoAdapter)getListView().getAdapter()).notifyDataSetChanged(); Nov 20 06:45:59 didn't do anything. the second one: Nov 20 06:46:08 ((TodoAdapter)getListAdapter()).notifyDataSetChanged(); Nov 20 06:46:24 didn't do anything, i'd disagree. it told the list to refresh itself from the adapter Nov 20 06:46:35 the problem is most likely that you think you're updating your data source and you're not Nov 20 06:46:40 meaning, didn't do anything visually. Nov 20 06:47:03 honestly, you should have something like List mTodos; Nov 20 06:47:14 but you have this weird class. lets see it Nov 20 06:47:30 tdignan: ok, interestingly enough: the project has a pager with 4 tags. So if I swipe to the 4th tab, and then swipe back to the first, it's there. Nov 20 06:47:31 you know that there is a pre-built todo list right? in the api samples? Nov 20 06:47:53 meaning the setListAdapter in the onActivityCreated updates to show the new one. Nov 20 06:48:24 tdignan: well, it's supposed to teach me android while providing me with an app to keep track of my Todos which are calendar notifications at the moment. Nov 20 06:49:00 so I didn't use the list or the existing apps. 'coz this was the simplest I figured I could start and make it more complex. hence the expanding scope, lol. Nov 20 06:49:05 you would learn better if you followed the todo/notepad example in the API samples (Not sure if there is a fragment based one yet, though) -- and copied the style there. Nov 20 06:49:21 ah, now there's a good idea. Nov 20 06:49:39 this was mainly 'coz I was just curious how the pager works. and then I figure ok, now a simple list on here would do. Nov 20 06:50:08 so android is the only thing keeping me interesting in java this long. I have never coded in java this long before. Nov 20 06:51:13 unfortunately the notepad example in the api demos does not use fragments. Nov 20 06:51:26 I would try to look at some of the samples and emulate the java coding style there Nov 20 06:51:49 oh it's alright. this experiences has made me realize that if you read force close message long enough, there actually is a useful message in there. Nov 20 06:52:20 no matter how much the devs tried to hide it. under the stracktrace, lol. Nov 20 06:52:38 I think java is alright, it's the event notification using interfaces that just totally sucks. Nov 20 06:53:02 How would you implement it? Nov 20 06:53:52 oh, it's a framework thing, we're stuck using interfaces. but I much prefer the COM, .NET style .onClick+=blah. basically a function pointer. Nov 20 06:54:10 keeps all the interface whatever behind the scene so I don't have another file in the project to keep up to date. Nov 20 06:55:01 even like the java button.onclicklistener would be fine. just pass a function. Nov 20 06:55:03 just noticed this new presentation on infoq http://www.infoq.com/presentations/Android-Fragment Nov 20 06:55:21 johny-b-goode: i think java 8 will have first class functions Nov 20 06:55:38 lol, but who knows what google's plans with java are Nov 20 06:55:44 fragments, you say? I'm viewing it. Nov 20 06:56:27 g00s: the whole java idea of bashing MS while not updating anything useful in lang, it pretty old. if google hadn't come along with android, the java community wouldn't have had such a big boost. Nov 20 06:57:23 what i mean was, even if java 8 has first class functions, there is no telling when / if we would see it in android Nov 20 06:57:40 never Nov 20 06:57:51 never say never :) Nov 20 06:57:54 I'm liking android more, as I learn it. it's not as convoluted now. makes sense more. Nov 20 06:58:10 just imagine if google has chosen a leaner language. Nov 20 06:58:19 such as visual basic 6. Nov 20 06:58:24 lol Nov 20 06:58:26 ok, ok, that was just for laughs. Nov 20 06:58:31 lol. Nov 20 06:59:14 Java was the best possible language choice for android, other than maybe C#, which has now been executed properly. Nov 20 06:59:33 that is why google went through hell for it. Nov 20 06:59:43 executed? Nov 20 07:00:00 executed (n): done Nov 20 07:00:32 well, in coding well executed could mean another thing. so I figured just to clarify you didn't mean well executed by executed properly.... Nov 20 07:00:53 http://xamarin.com/ Nov 20 07:01:00 I still use it at work tho. no issues. working great. doesn't give any problems. Nov 20 07:01:23 i dont know if java was such a good decision if they weren't planning on licensing with sun & tracking its evolution Nov 20 07:01:50 the only app that I saw written in java that was a really good app and responsive is the thinkorswim (ameritrade) trading platform. Nov 20 07:01:57 most other apps are just blaoted. Nov 20 07:02:21 don't know about xamarin but their website is really cool. Nov 20 07:03:08 but you wonder if apple thougth their devs could learn object c, why didn't google have faith in devs. Nov 20 07:03:39 instead of forcing them to use java. which is finally catching up to not forcing you to call everyone in just to form a classpath for compiling.... Nov 20 07:05:15 johny-b-goode: jigsaw was scrapped until java 9; classpath lives on :) Nov 20 07:06:03 g00s: hmm, this is where you hear random developers screaming nooooo, with the camera zooming out to aerial view.... Nov 20 07:07:20 joking aside, java just has a different paradigm in coding. Once you're ok with that, it's fine. I'm ok using it for android now I'm used to it. Nov 20 07:07:38 eclipse is another story. DON'T PUT } FOR ME IN THE EDITOR!!!!!! Nov 20 07:08:01 is anyone else not able to buy music from the play website Nov 20 07:09:58 canadiancow: proxy to canada and try again :D Nov 20 07:10:27 i can buy in the app Nov 20 07:10:33 he shouldn't have to sneak into his own country like theives... Nov 20 07:10:40 its just annoying because im on the site, and i have to chrome2phone it Nov 20 07:11:21 fuck my new router has a big bright "cisco" on the front Nov 20 07:11:29 i dont want more light in my room :( Nov 20 07:12:02 i can turn off the port lights, but not the logo light ~_~ Nov 20 07:12:18 just use some opague tape Nov 20 07:12:33 or a sticker Nov 20 07:13:22 i have some black electircal tape i guess Nov 20 07:13:26 but it's dwonstairs :P Nov 20 07:14:35 johny-b-goode, check the settings. you can disable a load of the annoying stuff Nov 20 07:16:54 alex_PP: probably should. it's the dumb insistence of not being MS like on an MS OS just skipping the Tools, Options button. It's a questions of where they hide the options like FF under Edit? Or under another menu. Suppose google's best way to do. Nov 20 07:19:41 tdignan: figured it out, man. thanks for pointing me to the adapter. It was actually not updating the mTodo, which was it's own copy and not a reference to the other one. Nov 20 08:20:13 how to find element in list view? Nov 20 08:21:01 what do you mean by 'find elemtn in list view' what exactly would you like to have? an index of a special element, or the object iteself, for a givne index, ... ? Nov 20 08:21:21 Can someone point me to an easy-to-understand guide to making background processes in android (service, and broadcastreciever?). Nov 20 08:22:22 ProfOak_: http://www.vogella.com/articles/AndroidServices/article.html services Nov 20 08:22:49 http://www.vogella.com/articles/AndroidPerformance/article.html#androidbackground background processes Nov 20 08:23:42 Interesting, thanks, timroes Nov 20 08:24:11 timroes, I want to setSelection on specific item Nov 20 08:24:36 so you search the index for a specific object? Nov 20 08:24:51 yep Nov 20 08:26:06 what adapter are you using for your listview? Nov 20 08:26:46 I'm using it this way: lv = (ListView) findViewById(R.id.ListView01); Nov 20 08:27:20 No, what adapter are you using./ Nov 20 08:27:25 you will have set an adapter somewhere Nov 20 08:27:28 with setAdapter Nov 20 08:27:39 perhaps an own implementation of BaseAdapter a SimpleCursorAdapter? Nov 20 08:27:42 an ArrayAdapter Nov 20 08:28:00 bah. stuck into design problem. I have the SQL handling on separate class. So how to get the activity to realize sql tables got dropped&created on update(and then send request to server to get the information again) Nov 20 08:30:18 how can I position the text in a togglebutton? Nov 20 08:30:36 timroes, have tutorial on adapters? Nov 20 08:31:08 http://www.vogella.com/articles/AndroidListView/article.html Nov 20 08:31:35 Greets all, task for the day, tracking down memory leaks after 4 months of development, weeee :) Nov 20 08:35:16 timroes, ArrayAdapter Nov 20 08:36:19 then call on your adapter the methode getPosition(object) to find the position for `object` Nov 20 08:59:06 timroes, if (adapter.getItem(i).id.equals(selectedID)) { Nov 20 08:59:06 lv.setSelection(adapter.getPosition(adapter.getItem(i))); Nov 20 08:59:36 lol :D Nov 20 08:59:48 adapter.getPosition(adapter.getItem(i)) Nov 20 09:00:04 don't you think that might be a bit unnecessary? Nov 20 09:00:14 its inside for-loop iterating int i from 0.. to adapter.getCount() Nov 20 09:00:46 you said its getPosition :) Nov 20 09:00:57 yeah but when you already have the position in i, why the hell are you trying to get the item by its position and then get the position of that item again Nov 20 09:02:36 that line looks very calming Nov 20 09:03:18 lv.setSelection(adapter.getItem(i)); Nov 20 09:03:20 its error Nov 20 09:04:23 ah Nov 20 09:04:26 (: Nov 20 09:04:45 how about lv.setSelection(i)? Nov 20 09:05:54 http://pastebin.com/Ap8GZ3v5 Nov 20 09:06:09 yea, that exactly is what I was going to ask you Nov 20 09:06:19 do these positions match Nov 20 09:07:28 adapter.getItem(i) gets you the item at position i, adapter.getPosition(item) gives you the position of the item. So what would you expect if you get the position of an item, that you got at a specific position? Nov 20 09:07:29 as for java newbie my variant looks safe :) Nov 20 09:12:12 hmm can you create non-linear indexing for spinners and specify the index when you create? Nov 20 09:12:47 Thinking on how to identify each spinner row with it's entry in database. id would be handy if I could hide it there Nov 20 09:18:25 oh man, this is so annoying. activity contains listfragment. listfragment uses local vars in dialogfragment. Dialogfragment only posts to activity which knows nothing about data on listfragment created dynamically as part of a pager view.. Nov 20 09:37:00 Hi guys Has someone already used ZXing here ? Nov 20 09:37:57 niik00: best just ask your question, and see if anyone knows the answer Nov 20 09:39:28 Yeps. In fact, I read some tutorials to add ZXing directly into my app, but it doesn't work. Those tutorials are quite old so I'm wondering if there is something new to do. Nov 20 09:39:47 I'm a newbie android dev Nov 20 09:40:07 the prefered way is to use intents to scan a barcode with ZXing Nov 20 09:40:22 so you are not even related to ZXing, but any app that understand that intent, and can scan barcodes Nov 20 09:42:11 Yeah, with this method, I don't have to include ZXing to my app ? Nov 20 09:42:23 niik00: http://code.google.com/p/zxing/wiki/ScanningViaIntent I would use the IntentIntegrator (just a small misstake in the documentation, you need to copy ALL classes from the com.google.zxing.Integration.android package not only the two stated in the wiki Nov 20 09:43:27 you have only to include 4 classes or so from them, and then use the code, form that wiki page to start a scan. It will then check if the user has the barcode scanner installed, if not, it will show him a dialog that he hasn't installed it and bring him to the play store. if installed it will start the scanner and return the result to the onActivityResult method Nov 20 09:44:05 and you using Intents on android is always good, so if some other barcode scanner is installed, that listens to the scanning intent, also that one can be used Nov 20 09:45:04 timroes: Yeah, but I'm still a beginner and I thought it was better to use ZXing directly from my app (and then include all in it) Nov 20 09:45:37 it is not Nov 20 09:45:43 but i guess its also possible Nov 20 09:46:20 timroes: thanks for your answer :-) Nov 20 09:48:38 you're welcome Nov 20 09:51:04 you can also limit the barcodes, that should be scanned if you pass a constant to the integrator.inititatieScan() method. E.g.: integrator.initiateScan(IntentIntegrator.QR_CODE_TYPES); will only scan for qr codes Nov 20 09:59:47 Hi, anyone familiar with dpram on the galaxy nexus? Nov 20 10:06:18 timroes: still here ? Nov 20 10:06:26 yeah :) Nov 20 10:06:47 !fortune funny Nov 20 10:06:57 Hello, im guessing most of you are developers and not designers. how do you make you applications not look like crap? ..... i spent more time trying to make my app look nice than writing it's code, and it's still look like shit Nov 20 10:07:49 just a little question .. In your link , they say to add code to invoke the Intent. I guess I have to add it to MyActivity ? Or ? Nov 20 10:07:50 viran: (a) pay a designer Nov 20 10:08:36 (b) learn to design: read the android style guide, read Smashing Android UI, watch the weekly Android Design in Action Broadcast Nov 20 10:08:53 (c) eh actually I can't think anything else up, then making it self, or paying someone else to make it :D Nov 20 10:09:00 g'day Nov 20 10:09:14 timroes: It works. Ty you made my day :D Nov 20 10:09:30 niik00: you have to add it at the place, where you want the scanner to start, e.g. in an onClick method of a button Nov 20 10:10:06 http://pastebin.com/M4uQzn8U <---Any reason why this NPE would happen? Nov 20 10:10:14 https://groups.google.com/forum/?fromgroups#!topic/actionbarsherlock/MbPksZU7eUo Nov 20 10:10:17 same issue, no solution Nov 20 10:10:17 timroes: Yeah, I did it and pass this as paramater (dunno if it's the good method, but it works) Nov 20 10:11:30 Tee_Pee, line 5? the only thing there that could be null is searchView Nov 20 10:11:39 Log.d it out and see if it is Nov 20 10:13:30 alex_PP - that is the issue... it is null... but it shouldn't be... it seems to be a bug with ABS Nov 20 10:14:54 alex_PP: what api level are you testing on? Nov 20 10:15:18 http://stackoverflow.com/questions/7965261/action-bar-sherlock-action-item-view Nov 20 10:15:21 Tee_Pee, Nov 20 10:15:57 action view is null by default Nov 20 10:16:06 toy can set an alternative view with setactionview Nov 20 10:16:13 *you Nov 20 10:17:10 aye, but I do have android:actionViewClass="com.actionbarsherlock.widget.SearchView" in my xml Nov 20 10:17:30 that being said Nov 20 10:17:43 ABS does give an exception when trying to inflate that class Nov 20 10:17:51 so yeah, it's an ABS issue... jolly. Nov 20 10:18:05 in that case, i suspect the view is lazy loaded on the first layout / draw operation Nov 20 10:18:15 oh, i see Nov 20 10:18:20 nah, looking at it, known ABS issue. Nov 20 10:18:45 Cannot instantiate class: com.actionbarsherlock.widget.SearchView Nov 20 10:21:35 Hi Nov 20 10:21:42 Tee_Pee: https://github.com/JakeWharton/ActionBarSherlock/issues/70 Nov 20 10:21:56 Can anybody help me with the CaledarView Widget? Nov 20 10:22:18 If i drop it onto my xml layout i get the following error Nov 20 10:22:26 thanks timroes, looking at that now Nov 20 10:22:38 apparently there are contributors fixing the searchview on the dev branch on github Nov 20 10:22:47 will have to look into that as well Nov 20 10:23:10 Classes could not be found CalendarView Nov 20 10:24:21 The following classes could not be found: Nov 20 10:24:21 - CalendarView (Change to android.widget.CalendarView, Fix Build Path, Edit XML) Nov 20 10:32:48 LordBeppo: have you tried editing the xml and changing it to android.widget.CalendarView ? Nov 20 10:34:29 yes if i change it nothing is shown in the layout Nov 20 10:37:12 anyone packaged for playbook, its .bar right? client is asking for .zip, o is that to do with oublishing I recall making a zip somehow Nov 20 10:38:40 also one tester is getting INSTALL_FAILED_MISSING_SHARED_LIBRARY from my other app, is this to do with google maps, i thought every device could do google maps Nov 20 10:40:55 playbook is still around? Nov 20 10:51:16 hmm why would i have to build without the google apis Nov 20 10:51:19 its well annoying Nov 20 10:54:15 because they don't have the Google APIs, not being Google? Nov 20 10:59:14 ron_frown: yeah :) Nov 20 10:59:34 I'm being sarcastic Nov 20 10:59:43 interestingly, BB10 is supposed to have the best HTML5 compliant browser out there Nov 20 10:59:58 goos I am actually building my own app Nov 20 11:00:07 I dont know if there is a way to monetize it Nov 20 11:00:15 but at least it'd solve a problem I have Nov 20 11:00:22 cool :) Nov 20 11:00:35 webkit is pretty fucking compliant Nov 20 11:00:43 and chromium I'd imagine is even more so Nov 20 11:00:44 hmmm … not really Nov 20 11:00:53 they fail in a number of tests Nov 20 11:01:21 right now chromium is 97 of 100 Nov 20 11:01:38 what does bb10 use as a web browser Nov 20 11:01:47 I know they didnt write it themselves Nov 20 11:03:05 trying to remember Nov 20 11:04:35 there are a number of tests including http://rng.io/ Nov 20 11:04:47 the bb browser passes all of r1 Nov 20 11:05:08 mmmm Nov 20 11:05:09 … anyhow Nov 20 11:05:11 I love intellij =) Nov 20 11:05:16 stfu Nov 20 11:05:18 :D Nov 20 11:05:21 ya stfu nub Nov 20 11:05:25 :( Nov 20 11:05:29 sry Nov 20 11:05:40 hahaha Nov 20 11:05:42 nub Nov 20 11:06:37 havent laughed so hard and so long Nov 20 11:06:39 thanks Nov 20 11:06:43 so, about em androids... I'm currently writing some unit tests. The official documentation recommends nesting the entire test-project inside the project that is being tested, but the wizard flipps out if I try to place projects like that. What is a good approach? Nov 20 11:06:47 np :D Nov 20 11:07:27 when you find out let me know... my core shit is in a shared library which makes unit testing EASIER Nov 20 11:07:31 but still not that pleasant Nov 20 11:07:38 put all of your tests in a fragment Nov 20 11:07:45 >.> Nov 20 11:07:47 :D Nov 20 11:07:55 the async nature of how android WANTS you to do networkio etc Nov 20 11:08:00 makes testing a pita Nov 20 11:08:12 lots of countdown latches or other thread sync stuff Nov 20 11:08:38 i guess technically they say - if it touches the network or fs its not a unit test Nov 20 11:08:57 anyhow, i write that stuff so that threading is not at the level of abstraction to be tested Nov 20 11:09:05 if you are building a thin client, that makes it nearly impossible to test =) Nov 20 11:09:20 not really Nov 20 11:09:24 I mean I still manage Nov 20 11:09:39 but something like await in c# would be real handy for unit testing Nov 20 11:10:01 I guess my boss hired some random contractor to do IOS app, I am very interested to see how that turns out Nov 20 11:11:50 man I hate when my daughters electronic toys just start playing music and shit in the middle of the night Nov 20 11:11:59 sounds like a winning strategy (random contractors) Nov 20 11:12:13 wow that was new Nov 20 11:12:38 first time I pushed this test app to 4.2... would you like to verify all apps security? Nov 20 11:14:40 so anyone know how to avoid Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY] Nov 20 11:16:56 how about because the shared library dependency is not there? Nov 20 11:19:12 what does that mean tho Nov 20 11:19:17 andh ow do i fix :) Nov 20 11:22:12 What is this anyhow? An Android app for Playbook? Nov 20 11:22:35 sorry im on about 2 different things here, this one with this error is just an android app im doing, but client gets that error Nov 20 11:22:41 wont release this weeks pay til it works ;/ Nov 20 11:23:08 Pff start from the beginning. This is a regular android app built on maps api? Nov 20 11:23:19 yes Nov 20 11:23:25 What kind of device is he using? Nov 20 11:23:26 i need the maps api fo geopoint etc Nov 20 11:23:37 and a few other, ive just emailed him to ask but i think its a decent new one Nov 20 11:24:23 I dunno, it seems highly likely that he has some hackjob device not shipping with the google libs. Nov 20 11:24:34 yeh but he shouldnt do Nov 20 11:24:38 sounds that way tho somehow Nov 20 11:24:48 Either that, or there's an sdk version mismatch somewhere. Nov 20 11:25:04 works good on my n1 Nov 20 11:26:05 maybe im building too high, 4.0 but i doubt it Nov 20 11:26:46 "building too high" doesn't make sense, what is it in terms of min-sdk and target-sdk? Nov 20 11:28:19 2 secs eclipse is having a fit Nov 20 11:29:01 Nov 20 11:29:30 hey guys Nov 20 11:29:52 anyone there? Nov 20 11:30:11 yes Nov 20 11:30:19 <_Thomas> Does anyone here know if android has some display menu that can be enabled to configure hdmi out? Nov 20 11:30:24 <_Thomas> I see some ICS/JB builds with this, and some without (on devices with HDMI output) Nov 20 11:30:30 <_Thomas> I'm wondering if this is an option I can enable when I'm building the android os... Nov 20 11:31:00 Gaz`: should work I guess, I have a project that has min 7 and target 15 built no google apps. I'm really suspecting the device. Nov 20 11:31:07 Hey, I'm using some of post ICS style settings buttonBarStyle for one Nov 20 11:31:16 HDroid yeh very weird indeed. Nov 20 11:31:34 does I've to define style for each values-v14, values-v15, values-v16 etc Nov 20 11:31:47 or is there a smarter way to do it Nov 20 11:32:31 basically I want same style post ICS Nov 20 11:34:04 is it possible to simulate movement of a phone during debug process? Nov 20 11:35:00 romainguy: Why does the links in a textview only highlight occassionally and not always? Nov 20 11:40:01 hi all Nov 20 11:40:07 I have a question about webview Nov 20 11:40:30 is it true that when I call CookieSyncManager.getInstance().sync() Nov 20 11:40:42 the webview's cookies is copied to permanent storage? Nov 20 11:42:57 HAHAHA Nov 20 11:43:03 I love the caps tags feesh Nov 20 11:43:29 ... I feel silly irc client somewhere Nov 20 11:45:39 ron_frown: cheers Nov 20 11:45:48 I endeavour to bring the hilarity where ever I go Nov 20 11:45:58 how's it going ron_frown I haven't been around here for a while Nov 20 11:46:11 its goin Nov 20 11:46:18 its 345am Nov 20 11:46:21 and I'm on irc =) Nov 20 11:46:37 best time to be on IRC IIRC Nov 20 11:47:23 anyone know much about android gps shit? Nov 20 11:47:43 if I have gps turned on, will android passively update (without registering for locaton updates) Nov 20 11:47:49 getLastKnownLocation() Nov 20 11:48:11 or should I registerForUpdates, wait until I get some response, and then unregister? Nov 20 11:48:12 ron_frown: afaik yes Nov 20 11:48:24 ron_frown: if an application outside of yours requests permission, calling getLastKnownLocation will be updated Nov 20 11:48:33 see I knew that part Nov 20 11:48:48 but I want to experiment with something like those jogging trackers etc Nov 20 11:49:01 doesnt need to be super accurate Nov 20 11:49:03 I'd say register for updates Nov 20 11:49:29 just be sure to check the accuracy of the Location you get Nov 20 11:49:45 I believe it kind of passively updates, once it is turned on Nov 20 11:49:54 is it possible for an actionbar menu item to expand into a normal textview instead of a searchview? Nov 20 11:50:06 something like android:actionViewClass="android.widget.TextView" Nov 20 11:50:06 Ologn well I have to worry about wakelocks etc Nov 20 11:50:11 eg, if the device is in deep sleep Nov 20 11:50:18 Location is kind of like Intents - like, Intents do not launch, they request a launch. Location calls are kind of like that. Nov 20 11:50:22 (that doesn't work specifically as the button just disappears when I tap it) Nov 20 11:50:23 I'd imagine it wouldnt just stay running Nov 20 11:50:33 er not stay running Nov 20 11:50:46 but passive updates wouldnt occur unless I used alarm manager with a wakelock Nov 20 11:51:30 Well there's even GPS mode on the phone Nov 20 11:51:46 I usualy have GPS turned off as its a battery waster Nov 20 11:54:21 My experience is I turn GPS on on my phone, then have my app make a GPS request from a semi-enclosed location. Within 10-60 seconds depending, I get GPS coordinates. Then if I get in a car, they seem to update rather passively without even making calls. Somewhere in the OS the phone seems to update coordinates once the first request has been done. This is all based on experience, not looking at the code/documentation. Nov 20 11:54:37 yeahh Nov 20 11:54:53 I am pretty sure android gps doesnt do crap unless something is registered for updates Nov 20 11:59:12 Yaa, I'm registering my LocationListener with the location manager in my code Nov 20 12:17:01 why do package names begin with com. ? Nov 20 12:17:08 just out of curiousity Nov 20 12:17:28 They don't, necessarily. Nov 20 12:17:32 matthewt: package names should be unique, so that you can assure that, package names should be a domain you own, backwards Nov 20 12:17:54 Yes, what timroes says, though it is in no way enforced. Nov 20 12:18:19 ah i see. thanks Nov 20 12:18:21 as we can see with android. Nov 20 12:18:31 http://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html Nov 20 12:25:32 Hi guys Nov 20 12:25:37 Having trouble building SEAndroid Nov 20 12:25:48 $ make ARCH=arm CROSS_COMPILE=$PREFIX/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.6/bin/arm-eabi- Nov 20 12:25:51 arm-eabi-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found Nov 20 12:25:52 :( Nov 20 12:26:01 [building on OSX 10.8.2] Nov 20 12:29:33 wrong channel Nov 20 12:31:50 which would be more relevant? Nov 20 12:37:52 Hey Guys, I'm picking buttonBarStyle from iosched, but it only have style defined till values-v14 Nov 20 12:38:32 will I have to define styles for subsequent versions ? like values-v15 and values-v16 or am I looking at it all wrong? Nov 20 12:40:11 brickhead: it will also apply on higher versions Nov 20 12:40:32 cool thanks Nov 20 12:44:15 woohoo, found a workaround around ABS's lack of a SearchView Nov 20 12:44:22 (somewhat_ Nov 20 12:44:26 ) Nov 20 12:45:34 Tee_Pee: ABS do have a searchview, last time I check Nov 20 12:45:45 mrmrmrmrmr, i don't entirely think it's the wrong channel (i'm even glad to see someone trying to build SEAndroid). However you can try on #android-root too Nov 20 12:46:05 Ok Nov 20 12:46:06 Thanks Nov 20 12:46:11 brickhead - yes, except it never worked properly Nov 20 12:46:30 adq: do you know much about SEAndroid? Nov 20 12:46:50 well works for me, did you opened a ticket with Jake ? Nov 20 12:46:58 nop, alas :| Just I'm interested to try it, sooner or later Nov 20 12:47:11 and i lack of space to build it :/ Nov 20 12:47:27 yeah, I thought it would come with the Nexus 4 or 7 builds of 4.2 Nov 20 12:47:31 doesn't seem to though Nov 20 12:47:44 we really need a hardened Android :) Nov 20 12:48:44 brickhead - this issue was known already, but there was no concrete progress on it afaik... let me find what the exception was again... Nov 20 12:49:21 http://stackoverflow.com/questions/13018794/actionbarsherlock-searchview-in-menu-xml-gives-resourcesnotfoundexception Nov 20 12:49:24 that's the one Nov 20 12:50:00 SearchView searchView = (SearchView)menu.findItem(R.id.action_search).getActionView(); <----on this line of code Nov 20 12:55:33 great, my android emulator is telling me its battery is flat.. Nov 20 12:56:24 matthewt: did you try to plug it? :D you may be able to set it with ddms (android-sdk-home/tools/ddms) iirc Nov 20 12:56:47 hmmm ok i'll try that. thanks Nov 20 12:56:47 Tee_Pee: I've added a standard searchview to my actionbar here's the code, it seems to work as expected http://pastebin.com/9tY5cBGQ Nov 20 12:57:24 matthewt: `telnet localhost 5554` and then `power capacity 100` (for 100%) Nov 20 12:58:05 and `power ac on` to plug it in :) Nov 20 12:58:23 wow cool. thanks Nov 20 12:58:45 lol you can even shut it down that way :D Nov 20 12:58:49 power capacity 0 Nov 20 13:00:25 is there a list of commands i can send via telnet? Nov 20 13:01:06 help :) Nov 20 13:01:10 in telnet Nov 20 13:01:14 ahh Nov 20 13:01:26 and help command for any mpre special help Nov 20 13:01:40 help Nov 20 13:01:42 KO: unknown command, try 'help' Nov 20 13:02:20 hmm? perhaps you had already inserted something in front of that help accidentaly? Nov 20 13:02:48 not sure. something is a bit screwed up as telnet commands seem to crash the emulator Nov 20 13:13:50 how to simulate phone movement (for gps) ? Nov 20 13:14:35 with your hand Nov 20 13:14:38 squ: use `ddms` Nov 20 13:15:34 timroes, thank you! Nov 20 13:17:07 "location data spoofing" might be what I need Nov 20 13:18:15 darned hackers! Nov 20 13:18:49 squ: you have in your ddms a tab called Emulator Control. Down in that you will have Location Control where you can either set manual coordinates or using GPX or KML files to load tracks. Nov 20 13:25:38 Hey there! Nov 20 13:25:55 I'm afraid I haven't understood how notifications are meant to be used. Nov 20 13:26:06 NOT for advertisement :) Nov 20 13:27:42 See, I have this service that does something and when it's done it sends a "finished" notification and goes into background. However, going into background hides the notification (or maybe it's that the service gets killed by the system, I don't know). How to send the notification properly? Nov 20 13:28:18 I mean send it in such a way that it stays regardless of destroyed services or applications. The notification should stay and when the user taps it he opens a particular activity... Nov 20 13:28:53 Long question short: How to send a notification from a service that stays regardless of what happens to the service afterwards? Nov 20 13:31:05 UnbertKant: use NotificationManager.notify and don't cancel it when your service is stopped Nov 20 13:32:46 I use NotificationManager.notify and I don't cancel in when the service gets stopped. Nov 20 13:34:22 hi. Nov 20 13:34:53 high Nov 20 13:34:59 UnbertKant: are you crashing somehow? Nov 20 13:37:09 or calling cancelAll somewhere? Nov 20 13:38:00 hi i need help in publishing my free app Nov 20 13:38:33 superlinux-hp: whats your problem? Nov 20 13:38:57 UnbertKant: afaik only notifications shown using Service.startForeground is associated with service life cycle Nov 20 13:39:32 timroes, i did save it and pressed publish in the google play, but when i search for it's entry i just cannot see it in the search results Nov 20 13:39:50 timroes, is there another step that needs to be done? Nov 20 13:39:57 nope Nov 20 13:40:04 it just might take some time till it shows up in the search Nov 20 13:40:16 ah ok! i felt so Nov 20 13:40:22 timroes, thanks Nov 20 13:40:32 if it isn't visible after 24h i guess you should contact them Nov 20 13:40:42 ok Nov 20 13:40:45 sure Nov 20 13:40:56 I am not sure if its a more or less fixed time, but you should expect 3-5 hours Nov 20 13:41:04 ah ok Nov 20 13:41:50 Hm, so the default behaviour is that the notification stays and I'm messing it up somehow? Hm, will have to check my code again... Nov 20 13:42:11 UnbertKant: or there's some case I don't know about :\ Nov 20 13:42:44 does anyone have any hints on how i can get a SIP stack running on android using the new HE AAC codec? Nov 20 13:43:09 Well, what I do is that I start the "service is doing something" notification using startForeground, since I want that one to be only visible while the service is running. But I'm definitely launching the "finished" notification using NotificationManager.notify... Nov 20 13:44:03 UnbertKant: and you're using different ids? Nov 20 13:44:11 hm! Nov 20 13:45:08 Android will have default Go compilers? Anything i build with Go in desktop can be deployed in Android mobile? Nov 20 13:45:25 Yes, I am indeed using different ids. Nov 20 13:45:40 That's the correct way to do it, right? Nov 20 13:45:50 IamTrying: well... you can use Go with NDK if you got arm compiler for Go Nov 20 13:46:09 p_l, My problem is that, Specially i have desktop largest giant application which is using Gstreamer and C for the moment. How can i send it now to Android? Nov 20 13:49:01 replace gstreamer? Nov 20 13:49:18 Android != normal desktop environment Nov 20 13:49:43 depending on how it is structured internally, you might get away with little work in code itself, to complete rewrite Nov 20 13:50:11 UnbertKant: anyting odd in logcat? you could check with 'adb shell dumpsys notification' to see that the notifications really get different ids. Nov 20 13:53:07 p_l, Tizen gstreamer works, why Android does not ? Nov 20 13:53:22 IamTrying: maybe someone ported gstreamer Nov 20 13:53:30 p_l, Tizen even says Tizen == normal desktop environment Nov 20 13:53:52 IamTrying: then it's not android ;) Nov 20 13:54:28 p_l, Tizen is also Arm same as Android but allows everything. Nov 20 13:54:40 C, Python, Bash all allowed. Nov 20 13:54:46 Why Android not? Nov 20 13:56:38 Hm. I guess it's something silly. I'll work on something else for a few hours and go back to the notification problem then. Nov 20 13:56:41 Thanks for you help! Nov 20 13:59:08 IamTrying: because Android is not Tizen? And has a very specific runtime on top of linux kernel? Nov 20 14:00:35 android apps run in dalvik Nov 20 14:00:42 not directly on the system Nov 20 14:02:06 native apps on android don't work. Nov 20 14:02:15 p_l, ixc Then Tizen design/development method is the best. Android was not well designed, its killing developers to merge there 11 years old projects friendly to Android. Where Tizen anyone can bring old apps to compatible like in a minute. Nov 20 14:02:21 other than as pure terminal apps. Nov 20 14:02:41 they cannot open dialogs, or bring WiFi up, for example Nov 20 14:03:09 IamTrying: rather more than a minute for ui sanity Nov 20 14:03:15 but yes Nov 20 14:04:32 IamTrying: Android was designed with certain goals regarding user experience and security. Tizen seems going for Web apps... Nov 20 14:04:56 ? Nov 20 14:05:19 lol, it was a good message from dysonreturns :) Nov 20 14:05:23 p_l, Well Android is like Chromium OS, user land destroy, and remove the concept of oldish traditional Plano 9, Unix, Linux Nov 20 14:06:04 IamTrying: ... and Tizen looks like glorified web browser, so what? Nov 20 14:06:19 p_l, but creating developers nightmare, who already had nightmares. Tizen is caring and coming with something which Android, IPhone, Nokia all never cared about. Nov 20 14:06:21 also, biggest damage to good tested stuff is freedesktop Nov 20 14:06:27 GNOME et al ;) Nov 20 14:06:45 Jolla mobile sailfish os announce today. much of the team that made the n9 for Nokia Nov 20 14:06:47 p_l, Well Tizen comparing to Android, Android stand as evil. Nov 20 14:07:06 I have a simple custom dialog (layout: https://pastee.org/3fkr6), but it's not showing anything on the screen. Can someone elaborate on why this is broken? Nov 20 14:07:07 then go make some Tizen devices Nov 20 14:07:23 this is #android-dev and I'm grumpy ;) Nov 20 14:07:26 Where-as Tizen gives C, Python, Bash. Long live those tools, who invented everything. Nov 20 14:07:26 https://mobile.twitter.com/JollaMobile Nov 20 14:07:44 IamTrying: so how are those connected to the UI? Nov 20 14:08:26 HDroid: probably the same way Bash, python etc. can access it in Android ;) Nov 20 14:08:48 (that scripting thingy... whatwasitsname) Nov 20 14:09:00 p_l, Never mind, all i am trying to say is that today, Tizen is the hero for C / Python/Bash developers (desktop developers), where Android is EVIL (changing and giving nightmares to the developers who was proud once upon a time, but now not even willing to write a single apps for Android NDK nonsence). Nov 20 14:09:21 IamTrying: there are ways I'd do differently... but they wouldn't be Tizen ;> Nov 20 14:09:39 Guys, I am trying this here: http://stackoverflow.com/questions/9936486/android-how-to-check-to-see-if-animation-is-running-before-starting-new-animat Nov 20 14:09:49 But I have the exact problem described in the first comment of the answer Nov 20 14:10:00 if the animation hasn't run once already, that check will return false Nov 20 14:10:08 so I need something like Nov 20 14:10:18 p_l, Its like Asian or African politics, you can do it but illegally in Android. but Tizen is European you can do it legally already make sense? Nov 20 14:10:24 Jolla looks in principle more interesting than tizen. an android app conpatibikiy layer would be nice, but risks cannibalising the market. Nov 20 14:10:25 if(fadein.hasEnded() || isFirstTimeRunning()) Nov 20 14:11:59 IamTrying: you make as much sense as rms-worshipping teen on LSD Nov 20 14:12:23 is it the normal case that i have to manually remove a fragment from its layout to make it disapear even when i use a FragmentTransaction to remove it? Nov 20 14:12:41 p_l, i think Tizen with Samsung, Intel backup, will take-over Android very soon? Because Android and there NDK is really an EVIL concept, who ever designed that i dont like there method of doing. Nov 20 14:13:58 p_l, its like first time experience developers, does idiot projects, after some years later, they remember oops, i screwed, i will quite this job, and do better later. Android is one example. On other hand Tizen is showing what was supposed to be a mobile device. Nov 20 14:14:35 * SpeedEvil backs aware from IamTrying. Nov 20 14:15:00 Man this is boring Nov 20 14:15:21 IamTrying: you mean a glorified web browser with touchscreen? Because that's what I see after a cursory glance through the docs. Anyway, I'm off, I have a f^^#(%^! functional test to finish Nov 20 14:15:54 at best realistically, other phone OS's coming into the market are going to be niche for a while. this is unhealthy for the whole market Nov 20 14:16:19 competition is a performance driver, and a duopokly ish t good. Nov 20 14:17:03 well, we have a three-pole ;) Nov 20 14:17:22 p_l, never mind, enjoy. Android is like C++ the man EVIL Bjarne Stroustrup, where Tizen is like C the man Dennis Ritchie dreams are back. Nov 20 14:17:56 IamTrying has been eating too many RMS toenails Nov 20 14:18:36 what? Nov 20 14:18:55 I think this not really relevant to compare such technology, they are obviosly not design for the same things Nov 20 14:19:19 tizen is a good idea gone bad Nov 20 14:19:19 haha Nov 20 14:19:38 meego with c++ and clutter and mx was bitchin idea... I dont know how that morphed into Nov 20 14:19:46 LETS BUILD AN OS OUT OF A WEB BROWSER Nov 20 14:19:47 yay Nov 20 14:19:59 ron_frown: same thought here :D Nov 20 14:19:59 yeah... NOPE.AVI Nov 20 14:20:08 like nescape! Nov 20 14:20:29 we should port IE to android \o/ Nov 20 14:21:00 ron_frown: jollamobile is the inheritor of meego Nov 20 14:21:15 Developers always make a plan, and want to promote it even it sucks and idiot idea like Android did. They have again re-invented Windows 95 and DOS which is another name now as Android. Nov 20 14:21:43 Tizen was unix/linux the truth concept of Mobile. Nov 20 14:21:52 IamTrying: you really, really don't get android. Just saying. Neither you get Plan9, otherwise you'd notice certain similarities :P Nov 20 14:22:10 http://stackoverflow.com/questions/13467266/android-mediaplayer-playing-2-mp3s-and-having-one-duck-its-volume Nov 20 14:22:17 * p_l is off Nov 20 14:23:33 Any platform, does not care about C, should eventually die like Windows 8 loveless. So do Android would be in near future. But with hate. Tizen will remain with love because of C is there. Nov 20 14:23:55 :D Nov 20 14:24:02 yeah thats what ppl want, develop c Nov 20 14:24:08 wtf is Tizen Nov 20 14:24:14 dunno Nov 20 14:24:16 uhh you can write c to build android apps Nov 20 14:24:17 ivdorelian: i also had to look it up in wikipedia :D Nov 20 14:24:20 tizen is meego replacement Nov 20 14:24:27 nokia walked away from meego Nov 20 14:24:32 lol Nov 20 14:24:35 and I guess teh community came up with genius idea Nov 20 14:24:50 I am not going ot start a war saying web tech is shitty Nov 20 14:24:54 ron_frown: though i wouldn't say that nokia walking anywhere has to be any sign for good or bad anymore :D Nov 20 14:25:00 just that it fulfils a need that is not the os Nov 20 14:25:13 nokia would have been better off Nov 20 14:25:18 wp8 Nov 20 14:25:21 we'll see how that pans out Nov 20 14:26:19 i am still hoping they will do android phones sometime Nov 20 14:26:22 Tizen is backed by Intel, Samsung. Nov 20 14:26:33 The god of hardware intelligence Nov 20 14:26:54 all I am saying... look at chrome os Nov 20 14:26:56 Android is troll tech almost. if i am not wrong. Nov 20 14:26:57 nobody wants it Nov 20 14:27:08 what? Nov 20 14:27:22 trolltech is former qt, whos owned by nokia now Nov 20 14:27:54 in fact I recall apple's first go at custom apps was Nov 20 14:28:07 build web apps, with little js hooks Nov 20 14:28:17 and they were almost burned alive Nov 20 14:28:55 ron_frown: I'm not sur I agree with 'web' base os, Of course for now we have powerfull mobile device with standard connection and that's why web doesn't look like the best solution, but regarding the evolution of connection ( 4G comming ) and the evolution of computer OS (ubuntu, os X, Android, windows) we are about to reach a step where we will have the same stuff on computer then on mobile and here the web based stuff look Nov 20 14:28:55 relevant Nov 20 14:29:14 looks is not the key Nov 20 14:29:23 thats like saying app size doesnt matter, hds are cheap and huge Nov 20 14:29:30 or memory doesnt matter ram is cheap and big Nov 20 14:29:31 http://en.wikipedia.org/wiki/Jolla Nov 20 14:29:44 agreed with baptistem, convergence is ongoing Nov 20 14:29:48 ron_frown: or that there is no need for local storage Nov 20 14:30:15 my point is imo html5 + js + whatever should be a complement to nativ edesktop apps Nov 20 14:30:22 also in this convergence android is already on the way to take a place ( just look at asus transformer pad ) Nov 20 14:30:33 baptistem: it only looks relevant for a rather tunnel-vision PoV of good reception etc. Nov 20 14:31:02 p_l I don't get it, could you explain more please? Nov 20 14:32:38 I am not a android or nothing guy Nov 20 14:32:58 I've just been in the industry forever, and I dont think the web techs are suitable replacements Nov 20 14:33:03 oh I think I got it , I may mismatch cloud computing and web-based apps Nov 20 14:33:07 ron_frown, Actually i think Android is getting in to there own trap EVIL result will be loveless. Where Intel, Nokia, Samsung is silent waiting, to see how far Android and IPhone can run, because all will end up with limitations. Once they start messing then Tizen will come out by Intel, Samsung, Nokia. What will happen to poor Android? Nov 20 14:33:31 nothing Nov 20 14:33:34 tizen is out Nov 20 14:33:45 web based os for the mother fucking fail Nov 20 14:34:01 I even wish ms the best of luck on wp8, but i dont really have much confidence it'll take off Nov 20 14:34:04 ron_frown, no not yet how it sounds, Nokia is temporary using Windows to make mobile community fool. Nov 20 14:34:05 its too little too late Nov 20 14:34:07 baptistem: the belief in web apps seems to be heavily invested in people who a) have computers powerful enough to push the crap in accordance with good old words about making barn doors fly b) haven't encountered "problematic" networks for long c) Probably don't use mobile networks as much as they claim :D Nov 20 14:34:10 with a terribly shitty ui Nov 20 14:34:33 http://www.useit.com/alertbox/windows-8.html nice article from one of THE design experts about win8 ui Nov 20 14:35:30 ron_frown, Nokia is going to order 50 million devices of Tizen, where they want to jump like giant and wipe Android, IPhone, together with Intel, Samsung, Asus, Dell. Nov 20 14:35:36 i am btw also pretty sure, that nokia uses windows mobile just to fool ppl, and all the red numbers and loss they make. there is a really good plan behind this, why their ruining their company right now ;) Nov 20 14:35:51 p_l I see :) as I said I mismatch cloud computing and web-based app Nov 20 14:35:54 I'm all for innovation Nov 20 14:36:01 web as os is not innovation Nov 20 14:36:05 you wont convince me otherwise Nov 20 14:36:25 I think the UI on WinPhone isn't so bad... but MS shot themselves in the gonads by sudden discontinuation of WinMobile and dropping the crucial (for their market) functionality Nov 20 14:36:32 its like trying to stick a big fat elephant wang through a square hole Nov 20 14:36:41 p_l it had to happen Nov 20 14:36:56 I hate the ui... the technology stack is great, and dev tools... the best Nov 20 14:37:00 but still too little too late Nov 20 14:37:12 no one wants any wp8 device Nov 20 14:37:19 off to work Nov 20 14:37:20 boo Nov 20 14:37:22 cya Nov 20 14:37:33 p_l, see my question here please http://stackoverflow.com/questions/13467266/android-mediaplayer-playing-2-mp3s-and-having-one-duck-its-volume Nov 20 14:37:38 ouch that was a fast back to work Nov 20 14:37:40 how can i solve a problem like this Nov 20 14:37:53 brx_: can't help you now Nov 20 14:37:57 ok Nov 20 14:38:03 * p_l needs to pack *from* work now Nov 20 14:40:10 fired? Nov 20 14:40:19 nope, just going home for the night Nov 20 14:40:34 that Ingress is producing some buzz... anybody got invites? :D Nov 20 14:42:24 hello Nov 20 14:43:07 Hi keex Nov 20 14:43:20 i would like to customize a ListView in such way, that the item dividers are sometimes missing. any idea how to accomplish this? Nov 20 14:44:16 p_l, I am ordering one wallpaper guys, who wants som?? 1. Poor android little baby with ninja dress in fight mode 2. Opposite Intel, Samsung, Nokia, Microsoft, Sony fight with baby Android 3. Win is not for Android but of-course for Tizen (C language support in mobile) Nov 20 14:45:18 interesting, lol Nov 20 14:45:26 LOL Nov 20 14:45:27 mmh who is behind android? I don't remember :d Nov 20 14:45:48 I'm in front of Android and slightly to the left. Nov 20 14:45:59 Tizen vs Android - where Android is a little baby wearing Ninja black belt dress, and in fight mode. Nov 20 14:46:29 hmm, I have here a text that tells me to use Thread.stop(), but this is deprecated and (iirc) very unsafe Nov 20 14:46:32 i would again like to have a hell ban module for freenode :) Nov 20 14:46:47 it starts a Service which plays background music Nov 20 14:46:58 what would be the "good" way to terminate it? Nov 20 14:47:43 belgianguy: is you start a service, why you couldn't just stop the service as you are supposed? I may don't get it Nov 20 14:48:12 baptistem: I'm following a book, and there they create a seperate thread in which they then start a service Nov 20 14:48:33 when exiting, they call musicThread.stop(); Nov 20 14:48:42 ok Nov 20 14:48:57 yeah... just send it a die command and unbind. The die command should just call stopSelf. Nov 20 14:49:06 so that's not a service, as far as android defines them. That's just a thread. Nov 20 14:49:24 dragorn: yes, the exiting of the Thread is keeping me from exiting cleanly Nov 20 14:49:39 service in android is a specific thing. And you almost definitely want to implement an actual service Nov 20 14:49:47 (it doesn't shut off when I push exit, musicThread lives on and only turns off when device is turned off) Nov 20 14:49:52 not that user friendly Nov 20 14:50:13 unless you're really into that MIDI sound loop Nov 20 14:50:30 do this with a nyan cat, sell your app and start being rich? Nov 20 14:50:53 baptistem: that'd be an idea Nov 20 14:50:59 for the trollStore :p Nov 20 14:51:24 install on friends device, let them start it, ???, porblem? Nov 20 14:51:46 if you want to run a background music in a clean way you must create a service afaik, then stoping the service will be very easy (2 lines) if you really want something userfriendly you can put a sticky notification while the service is running Nov 20 14:52:11 baptistem: yeah, I was afraid it would come down to that Nov 20 14:52:33 this is not that hard and it's a very good start in order to learn how works services Nov 20 14:53:01 baptistem: I know how they work, and what their STICKY/NON_STICKY return values do Nov 20 14:53:08 the issue I have is with a thread Nov 20 14:53:12 oh ok Nov 20 14:53:39 I'll check if it throws exceptions Nov 20 14:56:41 as I thought, the stop() call throws java.lang.UnsupportedOperationException Nov 20 14:57:36 but all the Thread does is start a service, eg it doesn't loop, so I can'r control its execution with a volatile boolean Nov 20 14:58:16 but getting the Service to stop, that would presumably kill off said Thread as well Nov 20 14:58:26 I think so Nov 20 14:58:50 so I'd need a musicThread.stopService()? Nov 20 14:59:05 should I extend Thread or Runnable to be able to do that? Nov 20 14:59:19 and is this then a synchronized function? Nov 20 14:59:33 Fixed the notification disappearing bug: If you use the service as context in the notification builder the notification will disappear when the service goes into background even though you launched it with notify. Using the application context instead fixed the problem Nov 20 15:01:20 Hey there. I am currently having issues with maintaining session within a WebView that does a postback. Essentially I am loading the HTML down with an HTTP get and doing some manipulation of it and passing it to the webview. This works fine (and I can maintain session states with the CookieManager/CookieSync for normal navigation)... However postbacks seems to be killing the session. Any ideas? Nov 20 15:02:48 hi! I'm trying to set android:paddingLeft to three buttons in a horizontal row, but it doesn't work. Any hint? Nov 20 15:03:29 I meant paddingLeft Nov 20 15:07:55 Hey Guys, I'm calling few functions on onTabSelected() into my fragment Nov 20 15:08:17 the problem is, getActivity() is null few times when these functions executes Nov 20 15:09:12 you're probably calling it before onAttach (or after onDetach) Nov 20 15:12:03 failed to install MyApp on device foo : (null) \o/ Nov 20 15:13:23 Maurits_: I'm calling it from my activity when a onTabSelected() Nov 20 15:13:37 but it doesn't happen every time Nov 20 15:14:09 also the viewPager calls onResume of Fragments when it pleases him. Is it by design? Nov 20 15:17:42 anyone know if its possible to directly access gtalk message history? Nov 20 15:19:59 If it's possible I guess it has to do with the google account access permission Nov 20 15:21:25 Hi, have anyone got any experience with slide-in-menus? I'm trying out jfeinstein10's SlidingMenu but it's giving me ALOT of error messages with MATCH_PARENT and missing com.google.android.maps... Nov 20 15:22:50 brickhead: what's the point of calling getActivity when you're doing it from the activity? Nov 20 15:23:08 ie, 'this' being your activity instance Nov 20 15:23:11 UnbertKant as far as i can tell its not possible, ive spent a lot of time googling around to no avail Nov 20 15:23:59 If the user entered his password into your app you might be able to get the history directly via XMPP. Nov 20 15:24:12 Maurits_: I'm calling into the fragment corresponding to the selected tab, I'm basically refreshing its views Nov 20 15:24:33 Is there a way to lock/encrypt my apk file so it would not be unzipped? or maybe a different way to hide my layouts/styles ? Nov 20 15:25:37 brickhead: that's great, but what does that have to do with getActivity() on the fragment side? Nov 20 15:26:07 brickhead: if the fragment is doing something where getActivity() returns zero Nov 20 15:26:10 *null Nov 20 15:26:11 well when that functions called, I need the context I call getActivity() Nov 20 15:26:33 right, put Log.d() calls in onAttach and onDetach for that fragment Nov 20 15:26:51 so I've added checks against null, but was just curious about this behavior Nov 20 15:26:52 so you can see whether the instance you're talking to is actually attached to an activity at the time Nov 20 15:27:17 brickhead: i've had this issue a couple of times Nov 20 15:27:24 Maurits_: hmm.. Nov 20 15:27:37 it happens when I don't pay attention to the fragment lifecycle Nov 20 15:28:41 or accidentally talk to an old fragment that's not onscreen anymore Nov 20 15:29:36 socket: no. Nov 20 15:31:29 socket: you could build the layout or declare styles in java Nov 20 15:32:07 * Jug6ernaut doesnt want to wireshark gtalk :S Nov 20 15:32:58 socket: no one wants to steal your layouts, anyway. Nov 20 15:33:48 and if they wanted to, it'd be very trivial to do on a rooted device Nov 20 15:33:50 I want to! Nov 20 15:33:57 whether or not you encrypt or obfuscate Nov 20 15:37:21 is there any real tangible difference between developing for tablets and developing for something like Galaxy Note 2 and the likes? Nov 20 15:39:08 aren't I making apps that are already fit for Tablets just by providing the XHDPI images and the different res folders? Nov 20 15:40:56 Sicp: What do you use for a resource qualifier, say for your layouts for galaxy note? Nov 20 15:41:06 does SVN automatically merge files? Nov 20 15:41:15 I don't understand the question, uniquesupri Nov 20 15:41:39 what I do know is that I have the layout-land and layout-portrait stuff, plus all the different resolutions of all my images Nov 20 15:41:40 I use layout-large qualifier to target Galaxy note Nov 20 15:42:14 what I really mean to ask is..can someone be excellent at developing for mobile and be "not-so-much" when it comes to Tablets? Nov 20 15:42:20 I mean....it's the same thing Nov 20 15:42:49 Sicp: pardon my comprehension, I was digressing. Nov 20 15:43:12 Sicp: well, if you use fragments then you can more easily adapt your stuff to tablet layouts Nov 20 15:43:39 but there is no such thing as a developer who targets Android mobile phones and a developer that targets Android tablets Nov 20 15:43:47 I second Mautits_ on getting familiar with fragment based programming Nov 20 15:43:53 some guy sectioned them off while asking me about my skills on the mobiel Nov 20 15:43:55 mobile* Nov 20 15:44:16 Sicp: nope, google even recommends writing apps that run on both Nov 20 15:44:27 instead of having separate apps for tablets and phones Nov 20 15:44:43 exactly Nov 20 15:44:45 There's UI techniques that vary between them, but not code Nov 20 15:44:54 most android 'developers' still don't know how to build proper modern tablet-ready apps though Nov 20 15:45:05 ie, fragments, actionbar Nov 20 15:45:11 Maurits_: most android developers still don't know how to build proper modern [redacted] apps though Nov 20 15:45:13 Maurits_: :P Nov 20 15:46:06 Sicp: ie, you shouldn't scale up your phone layout to fill the screen when running on a 10" tablet screen in landscape Nov 20 15:46:14 like 99% of the apps out there Nov 20 15:51:34 10'' tablets mandate you redesign you app to make use of the extra real-estate, Iosched is a good example of it Nov 20 15:52:36 but I agree using ActionBar, fragments, viewpagers, I at least make sure it doesn't looked stretched or broken Nov 20 15:52:38 does anyone know why the android emulator crashes when i send it a command over telnet? Nov 20 15:54:30 the emu crashes? Nov 20 15:54:32 not your program? Nov 20 15:56:17 just the emulator. "emulator-arm.exe has stopped working" Nov 20 15:56:40 god damn, what're you sending it Nov 20 15:57:00 for example: power capacity 99 Nov 20 15:57:08 in fact any command that i've tried crashes it Nov 20 15:57:24 you're connected to 5554? Nov 20 15:58:16 this link (last answer) says it isn't advisable to connect to it through TCP/IP, do it with adb shell Nov 20 15:58:17 http://stackoverflow.com/questions/8357499/android-emulator-how-to-use-telnet-localhost-5554 Nov 20 15:58:23 5554 aye Nov 20 15:58:41 what is adb shell? :-) Nov 20 15:58:46 which is something that you could've Googled, so yea..I have no more information Nov 20 15:58:58 it's a tool that comes with your android SDK Nov 20 15:59:16 http://developer.android.com/tools/help/adb.html Nov 20 15:59:22 you must learn about adb Nov 20 15:59:46 okay, thanks Nov 20 16:19:07 * Jug6ernaut hates reverse engineering .class files Nov 20 16:19:08 :S Nov 20 16:44:29 hello/ Nov 20 16:58:12 http://www.youtube.com/watch?feature=player_embedded&v=UH0-9url3KY - interesting talk about free2play games Nov 20 17:05:04 pita to list files and folders from internal storage, why the hell.. Nov 20 17:07:28 Is it possible to add custom Locale and region settings in android? Nov 20 17:08:25 Hi! Does anybody used ThreeTen date-time lib in android? Nov 20 17:09:20 Your First F2P Game: Where You Will Go Wrong Nov 20 17:28:13 Hi guys, Im having some trouble with setItemClickListener/setOnItemLongClickListener, it throws this error "The method setOnItemClickListener(AdapterView.OnItemClickListener) in the type AdapterView is not applicable for the arguments (new AdapterView.OnItemClickListener(){})" Nov 20 17:28:19 do you know what could be wrong? Nov 20 17:28:26 I can paste some code here if it helps Nov 20 17:30:25 pastebin code Nov 20 17:30:27 paste it Nov 20 17:32:12 view.setOnItemClickListener(new OnItemClickListener() { @Override public void onClick(View v) { /*stuff*/ }}); Nov 20 17:32:19 repeating: s it possible to add custom Locale and region settings in android? Nov 20 17:32:54 uniquesupri, lemme know if you find the answer to that, i need to know if i can remove one Nov 20 17:33:06 odd ... is it normal for a recruiter to ask for your last 4 soc sec numbers? Nov 20 17:33:19 of course. Nov 20 17:33:40 yes? Nov 20 17:33:45 http://pastebin.com/iFuKSjzL Nov 20 17:34:01 errors on LView.setOnItemClickListener(new OnItemClickListener() { Nov 20 17:34:09 and LView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() { Nov 20 17:34:13 Komak57: why do you want to remove a Locale from the device? Nov 20 17:34:38 last 4 digits of your SSN won't help anyone steal your identity, and its a rather accurate way to ensure you're you? Nov 20 17:35:17 yah perhaps ... but i worry Nov 20 17:35:18 uniquesupri, my brother has 2 locale settings in his phone. One works, one doesnt. The one that doesn't work is always defaulted back to Nov 20 17:35:44 i thought that I imported something bad Nov 20 17:36:04 but looks like i didnt Nov 20 17:36:09 member:identifier:metalguru you use not correct OnItemClickListener() Nov 20 17:36:50 which should I use then? Nov 20 17:37:37 I think one from View.OnClickListener Nov 20 17:37:51 not from org.holoeverywhere.widget.AdapterView.OnItemClickListener; Nov 20 17:38:02 nuuu Nov 20 17:38:09 onclicklistener fails horribly XD Nov 20 17:38:23 https://github.com/ChristopheVersieux/HoloEverywhere/blob/master/library/src/org/holoeverywhere/widget/ListView.java Nov 20 17:38:44 It doesn't define its own setOnItemClickListener that takes holoeverywhere's AdapterView.OnItemClickListener Nov 20 17:38:51 So yeah, you did import the wrong class Nov 20 17:38:59 oh okay :D Nov 20 17:39:10 nice to see you guys again btw :D Nov 20 17:39:19 Also, wow.. HoloEverywhere is really turning into an abomination Nov 20 17:39:54 lol Nov 20 17:39:58 well, it was a pain in the ass even to install it... Nov 20 17:40:22 MetalGuru, you have the right code. I suggest you try outputting the size of ar Nov 20 17:41:14 what the... Nov 20 17:41:20 MetalGuru, and your onItemLongClick should return void Nov 20 17:41:24 now clipboard manager throws an error Nov 20 17:41:43 err... maybe ~tries some more Nov 20 17:42:17 nope, you had it right XD Nov 20 17:42:30 well looks like it throws no errors now Nov 20 17:42:32 gonna run it Nov 20 17:42:43 damn its slow as hell since i added holoeverywhere libs Nov 20 17:43:03 XD yeah, I noticed that too. Though with other libs Nov 20 17:43:25 so how about ThreeTen date-time lib? Does somebody used it on android? Nov 20 17:43:50 -shakes head- Just AmbilWarna lib Nov 20 17:44:01 awesome... now there are no errors in code Nov 20 17:44:15 and still - project contains errors Nov 20 17:44:21 BUT WHERE? :´( Nov 20 17:46:01 runnin eclipse right? Nov 20 17:46:06 Project -> Clean Nov 20 17:48:51 yeah i did that like zilion times... Nov 20 17:49:01 MetalGuru, line 86: LView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() { ... is LView not a ListView? change it to new ListView.OnItemLongClickListener() or just OnItemLongClickListener() Nov 20 17:49:28 LView is a ListView Nov 20 17:50:35 Jar mismatch! Fix your dependencies Nov 20 17:50:36 ~rambling while he runs through the code for possible errors~ I see I see, I just use OnItemLongClickListener(), didn't realise it was included in the AdapterView... Can I get the exact error log? Nov 20 17:50:42 this is being shown in console Nov 20 17:50:51 -blinks- which jar? Nov 20 17:50:58 idk :D Nov 20 17:50:59 wait Nov 20 17:51:07 Hi guys, got a question, I have a button with a custom background and also it needs to have an image on top of it and text, is that possible? or should I embed the image on the background and set the button background to that? Nov 20 17:51:08 Path: C:\Users\MetalGuru\Dropbox\workspace\ActionBarSherlock-4.2.0\library\libs\android-support-v4.jar Nov 20 17:51:12 Path: C:\Users\MetalGuru\Dropbox\workspace\Paster\libs\android-support-v4.jar Nov 20 17:51:17 hm...dafuq Nov 20 17:51:27 tried installing actionbar again Nov 20 17:51:32 but nothing changed Nov 20 17:51:41 The two jars need to be exactly the same Nov 20 17:51:47 Chances are they are not Nov 20 17:52:02 hm, so should i delete one of them Nov 20 17:52:07 and replace with the other one? Nov 20 17:52:35 Yep Nov 20 17:53:23 ouk :) one second Nov 20 17:53:38 god its so slow with holoeverywhere libs Nov 20 17:54:34 Stop using it then Nov 20 17:54:38 well app starts Nov 20 17:54:42 but throws force close Nov 20 17:54:47 gonna look into logcat Nov 20 17:55:20 well but its probably the easiest way to get android 4.0 theme on older android versions Nov 20 17:55:26 or is there any other way arond? Nov 20 17:55:28 *around Nov 20 17:57:05 Your mistake is that you think you need holo on old devices Nov 20 17:57:09 HM Nov 20 17:57:10 http://pastebin.com/yZJAjSw9 Nov 20 17:57:18 well I dont really need it Nov 20 17:57:24 but I uploaded my app yesterday Nov 20 17:57:31 sent it to few reddit forums Nov 20 17:57:50 In my opinion it doesn't make sense to style EVERYTHING holo, so the entire concept of the library is flawed Nov 20 17:57:51 and people were complaining about shitty design, they all wanted holo look Nov 20 17:58:03 so you wouldnt bother with that? Nov 20 17:58:54 Straight up holo looks shitty Nov 20 17:59:13 You better get some designer, and hi draw you screens of your app. Nov 20 17:59:20 *he Nov 20 17:59:28 I'd take some of the concepts of the holo look, and use that on old platforms Nov 20 17:59:34 I wouldn't want a complete holo backport Nov 20 18:00:14 well i will just focus on functionality for now and dont bother with look :) Nov 20 18:00:30 and probably contact my friend to help me with graphics later on Nov 20 18:00:31 And this is why people complain your design is shitty Nov 20 18:00:46 there's so much you can do with look and whatever you do someone will *hate* it anyway Nov 20 18:01:20 people always complain that something is shitty Nov 20 18:01:45 "And this is why people complain your design is shitty" - what do you mean? Nov 20 18:03:16 You said people were complaining about your design, and that you just focus on functionality Nov 20 18:03:59 Just using a holo theme isn't going to solve that Nov 20 18:04:24 well yes, for now. Problem is that I´ve never learned how to make custom edittexts, buttons etc. Nov 20 18:04:56 check out the asset studio Nov 20 18:05:08 http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html Nov 20 18:05:21 specifically, holo colors generator Nov 20 18:05:57 thanks :) Nov 20 18:06:02 gonan check it out Nov 20 18:06:05 *gonna Nov 20 18:06:51 You should learn how theming works in Android Nov 20 18:08:10 Hello, i've got a TextView with width by weight of 1. im having trouble setting the text size to be maximal in that view through different resolutions. i set the size with a dimen value for ldpi/mdpi/... but even in ldpi there are sevral resolutions which give the TextView different width. any idea how to solve that? Nov 20 18:12:52 speaking on ListViews... is there a way to set each item as a view, rather than text? Nov 20 18:13:29 Each item is a view Nov 20 18:14:09 ahhh, i see i see... i was using setAdapter() Nov 20 18:14:19 yes, the adapter supplies the view Nov 20 18:14:22 huh??? Nov 20 18:14:55 I guess he's using arrayadapter Nov 20 18:14:58 Instead of making his own Nov 20 18:15:07 i've used arrayadapter once Nov 20 18:15:15 i ended up overriding pretty much every method Nov 20 18:15:17 then i stopped using it Nov 20 18:15:54 XD Nov 20 18:16:08 Same story Nov 20 18:16:52 ArrayAdapter is pretty pointless Nov 20 18:17:04 Besides, it takes no time to implement your own adapter Nov 20 18:18:13 Watch the listview talk from google io.. it should be obligatory before using a listview at all Nov 20 18:19:45 man that was like the first io talk i ever saw Nov 20 18:19:50 i didnt even know who romainguy was back then Nov 20 18:20:03 Same Nov 20 18:20:07 Most useful one as well Nov 20 18:20:20 he asked the audience "who here has used listview", and i didnt even put up my hand :( Nov 20 18:20:52 hah Nov 20 18:21:35 awww.... :P Nov 20 18:22:16 i hear nexus 4's are shipping to people who didnt even get order confirmations Nov 20 18:22:27 canadiancow: yep, just got mine Nov 20 18:22:31 oh Nov 20 18:22:35 yes well Nov 20 18:22:38 well i had an order confirmation Nov 20 18:22:42 oh you did? Nov 20 18:22:45 ok then forget what i said Nov 20 18:22:47 not shipping or back order notice though Nov 20 18:22:51 * Ge0rG almost read that as "to people who didnt even order" Nov 20 18:23:15 Ge0rG: lol, that would be awesome Nov 20 18:23:24 canadiancow: do you happen to have spare ingress invitations? :D Nov 20 18:23:51 birbeck: indeed. I still need to convince my boss to order one for me... provided they are available Nov 20 18:24:14 i dont even understand ingress Nov 20 18:24:21 like i cant upgrade anything, even though i have stuff Nov 20 18:24:28 and i cant do enough damage to anything Nov 20 18:24:32 and all the portals are taken Nov 20 18:24:32 weakling Nov 20 18:24:40 heh Nov 20 18:24:53 0 invites remaining Nov 20 18:25:01 evancharlton, its not like the instructions were useful Nov 20 18:25:03 One of you should totally send me an invite Nov 20 18:25:19 they say you can upgrade resonators and stuff Nov 20 18:25:23 but then i go to do it, and i cant Nov 20 18:25:25 sending invites is a sure way to crowdsource understanding the game ;) Nov 20 18:26:20 cool ipv6 Nov 20 18:26:42 my god im on the wrong team for google Nov 20 18:27:00 When is IPv4 going to run out of internet IP address? Nov 20 18:27:18 define "run out" Nov 20 18:27:19 it already has, in a way Nov 20 18:27:25 ^^ Nov 20 18:27:45 no more Ip address left to distrubte. its called IPv4 exhaustion or something Nov 20 18:28:01 distribute by whom Nov 20 18:28:07 peak ip... Nov 20 18:28:08 my isp still has IPs Nov 20 18:28:18 my dedicated server has like 8 Nov 20 18:28:25 a professor explained it all to me. IPv6 will be able to support like 2^32 IP addressed or something Nov 20 18:28:26 "this is the last page of the internet. please turn around and browse elsewhere - lest you fall off the edge of the internet" Nov 20 18:28:27 * canadiancow hoards more Nov 20 18:28:31 no turb1ne247 Nov 20 18:28:36 not. even. close. Nov 20 18:28:40 lol Nov 20 18:28:52 v4 is 2^32 Nov 20 18:28:59 Im ready for my corrections today Nov 20 18:29:05 v6 is 2^64 Nov 20 18:29:09 ah, thats right Nov 20 18:29:20 that's like twice as many Nov 20 18:29:23 its been a few years since i talked about that lol Nov 20 18:29:30 its much more than twice Nov 20 18:29:31 why not use 2^128 instead? addresses are cheap :D Nov 20 18:29:44 yeah i was kidding Nov 20 18:29:53 i think 2^64 is enough for like one address per grain of sand on earth Nov 20 18:30:18 2^32 = 4294967296 Nov 20 18:30:20 I've got 2^64 addresses on my LAN. and then some in the colo Nov 20 18:30:56 2^642^64 = 1.8446744e+19 Nov 20 18:30:56 you could assign an ip address to every ton of matter which makes up pluto Nov 20 18:31:04 2^64* Nov 20 18:31:16 thats crazy Nov 20 18:32:09 is there any simple way of creating listview with 2 lines (now im using android.R.layout.simple_list_item_1 for only one line), or do I have to create my own ListView? Nov 20 18:32:30 2 lines, both are filled by edittext (Name, value) Nov 20 18:32:40 if you filled 1/9th of lake superior with rice, you could assign an ip address to each grain Nov 20 18:32:55 MetalGuru: there is a default listview row layout for two lines IIRC Nov 20 18:32:55 omg MetalGuru Nov 20 18:33:00 no stop Nov 20 18:33:06 you use a normal listview Nov 20 18:33:09 and make your own *adapter* Nov 20 18:33:17 with your own simple *view* Nov 20 18:33:21 that you return in getView() Nov 20 18:33:35 ok ok :) Nov 20 18:33:39 MetalGuru, go watch http://www.youtube.com/watch?v=wDBM6wVEO70 Nov 20 18:33:41 the whole thing Nov 20 18:33:43 and im not even joking Nov 20 18:33:44 btw, ipv6 is 4.8×10^28 Nov 20 18:33:57 if you're back in less than an hour... :P Nov 20 18:34:00 ok :) gonna watch that Nov 20 18:34:03 anyways Nov 20 18:34:17 will it help me with creating my own *adapter*? :) Nov 20 18:35:52 watch the video dammit Nov 20 18:35:58 these google io videos seem pretty interesting. lots of info Nov 20 18:36:13 watching, relax :D Nov 20 18:36:42 turb1ne247, attending in person is more fun :P Nov 20 18:37:16 lucky..where was it? Nov 20 18:38:09 it's always in san francisco Nov 20 18:38:27 is it every year? do the ever goto florida? lol Nov 20 18:38:32 yes, no Nov 20 18:38:41 got an Ingress invite! Nov 20 18:38:48 you work for google? Nov 20 18:38:50 how do you generate invites? Nov 20 18:38:51 woo Nov 20 18:38:59 my counter has been sitting at 0 since forever Nov 20 18:39:09 I dunno.. maybe through playing? building up XM and such? Nov 20 18:39:56 Anybody have the N4 yet? Getting reports USB OTG is not working at all ... Nov 20 18:40:12 really? Nov 20 18:40:18 i dont have an OTG cable :\ Nov 20 18:40:29 or rather, iu dont know where it is Nov 20 18:40:39 you have it already canadiancow Nov 20 18:40:49 Thing is, I'm not sure if it's *meant* to support OTG Nov 20 18:40:55 oh Nov 20 18:41:00 tnzr: got some invites left? :D Nov 20 18:41:00 im pretty sure it's supopsed to Nov 20 18:41:10 Ge0rG: I don't have any invites, I just meant I got invited Nov 20 18:41:21 like 3am last night, so far I haven't done anything in the game :) Nov 20 18:41:45 tnzr: ah... thought it might allow invite-replicating ;) Nov 20 18:42:14 nah ive had an account for days and still no invites Nov 20 18:42:26 canadiancow: do you play on foot? Nov 20 18:42:30 I'm hoping it works ok on scooter Nov 20 18:42:48 canadiancow> the only thing I hear back from users is that it doesn't work. no apps, no keyboards, no nothing. It'd be "hilarious" if Google botched it again. I think it took 4 updates on the GalNex for it to be enabled and working ... Nov 20 18:43:38 also does it work with your phone off? Nov 20 18:43:41 err, screen off Nov 20 18:43:47 tnzr, no, mostly at my desk :P Nov 20 18:44:47 can someone kind of explain this ingress game? i feel outta the loop but it looks cool.. Nov 20 18:45:06 turb1ne247: Google's ARG Nov 20 18:45:30 strongly dependant on sculpture-dense areas, I heard Nov 20 18:45:42 interesting.. Nov 20 18:46:02 alternate reality network? Nov 20 18:46:09 gaming network Nov 20 18:46:14 augmented/alternate reality *game* Nov 20 18:46:25 not so much sculpture-dense as "landmark"-dense Nov 20 18:46:31 briefly, what do you do Nov 20 18:46:35 in the game Nov 20 18:46:40 you capture portals Nov 20 18:46:44 and fight the other people Nov 20 18:46:47 and stuff Nov 20 18:46:48 i dunno Nov 20 18:46:51 ask evancharlton Nov 20 18:47:31 hahah well i requested an invite Nov 20 18:48:05 tnzr, canadiancow: did you get yours from google directly or from a friend? Nov 20 18:48:40 i got an email when it launched with a code Nov 20 18:48:49 i got mine from google Nov 20 18:49:00 I applied just a couple of hours after the announcement Nov 20 18:49:05 I saw it on Romain's twitter feed Nov 20 18:49:08 damn :D Nov 20 18:49:30 it doesn't work on my phone, so I didn't bother despite a friend having a free invitation Nov 20 18:49:42 P_1, what phone? Nov 20 18:50:22 samsung i5700 (galaxy spica), with custom alpha-quality rom to get it to 2.3 (2.1 is last official) Nov 20 18:50:46 my only complaint thus far (after not really playing at all) is that you can't browse around the map Nov 20 18:50:51 at least it doesn't seem like you can Nov 20 18:50:56 I want to see where the hotspots are in my hood Nov 20 18:51:06 damn..i have a samsung sch-i500 running 2.3.4. Its an orignal galaxy s series. I hope ingress works :/ Nov 20 18:51:20 I should install it on my nexus 7 Nov 20 18:51:23 I bet it looks awesome Nov 20 18:51:25 tnzr, http://www.ingress.com/intel Nov 20 18:51:26 probably the geo-db used to feed the game does not contain any entries some hundred miles around me :> Nov 20 18:52:40 canadiancow: can I use any google account to login to that or does it have to be the one I use ingress with? Nov 20 18:52:51 ingress account Nov 20 18:53:17 im probably going to take a stroll at lunch to see if i can hack some portals Nov 20 18:53:52 speaking of lunch ima go grab some Nov 20 18:54:01 what is the 'best' way to solve this problem http://stackoverflow.com/questions/13467266/android-mediaplayer-playing-2-mp3s-and-having-one-duck-its-volume Nov 20 18:54:05 for those of us without a bluetooth keyboard, i wonder if it's possible to pass input through adb by catting something in /dev? Nov 20 18:54:10 canadiancow; any idea at which point you find out or get to choose what team you're on? Nov 20 18:54:21 after the training Nov 20 18:54:25 sweet Nov 20 18:54:26 what team are you on? Nov 20 18:54:42 the blue one? Nov 20 18:54:43 :\ Nov 20 18:55:02 i think all of google is on the other team though Nov 20 18:55:13 yea im on the resistence Nov 20 18:55:21 google's campus seems to be all enlgitened Nov 20 18:55:30 except buildings 44 and 45 (android) Nov 20 18:57:18 canadiancow, please check my question :) Nov 20 18:58:02 hmm Nov 20 19:00:40 excuse me? Nov 20 19:00:52 canadiancow would there be anyone within your harassment-circle you can confirm with if OTG *should* work ? Because it really doesn't ... according to everyone who tried. Nov 20 19:01:04 ( http://support.google.com/nexus/bin/answer.py?hl=en&answer=2809827&topic=2809758&ctx=topic <-- implies it should work ) Nov 20 19:01:05 i tried asking as soon as you brought it up :P Nov 20 19:02:01 everyone hates my question, not one single answer :s Nov 20 19:02:03 it's definitely supposed to work Nov 20 19:02:37 lol ... GalNex all over again. Nov 20 19:03:13 will somebody look into it ? or should I report it elsewhere ? Nov 20 19:04:35 on GalNex, I harassed JBQ about it and he got it fixed, but isn't he on a sabbatical or something :) Nov 20 19:05:25 is there a bug filed on b.android.com? Nov 20 19:06:17 fwiw, otg worked fine for me with a usb mouse on my GN pertty much out of the box Nov 20 19:07:22 canadiancow it was fixed in the GalNex I think within two weeks of first release Nov 20 19:07:30 ah Nov 20 19:07:34 but the very first firmwares, it definitely did not work Nov 20 19:07:46 when i got mine, i had to order a otg cable :P Nov 20 19:07:51 so i guess it was fixed before it arrived Nov 20 19:07:52 I would have thought it impossible for Google to make the very same mistake again ... Nov 20 19:08:44 dont look at me, i'm just an app dev ;) Nov 20 19:09:18 I know ;) Nov 20 19:09:24 I can't find anything on b.a.c Nov 20 19:11:00 well, if there's no bug filed, i can pretty much guarantee it won't get fixed :P Nov 20 19:12:14 canadiancow: its not like you could guarantee anything more _if_ there is a bug report Nov 20 19:12:29 yes i could... Nov 20 19:12:35 i could guarantee someone would look at it Nov 20 19:12:46 I'm filing the report Nov 20 19:13:09 i've got a view that returns 0 on view.getHeight(), im thinking it's because im not setting height but using weight. how can i get it's size in pixels on runtime? Nov 20 19:13:35 ok i fixed my keyboard input problem Nov 20 19:13:35 https://gist.github.com/4120314 Nov 20 19:13:49 monkeyrunner is actually sorta slow for typing. i am disappointed. Nov 20 19:14:02 viran, wait until layout completes Nov 20 19:14:30 view.post(new Runnable() { public void run() { /* view.getHeight() is now accurate */ } }); Nov 20 19:15:06 * Ge0rG still has a bug report tagged as "unreproducible", regarding access to the radio log :'( Nov 20 19:15:11 canadiancow> http://code.google.com/p/android/issues/detail?id=40087&thanks=40087&ts=1353438883 plox guarantee somebody looks at it :P Nov 20 19:16:57 thanks canadiancow Nov 20 19:19:51 Chainfire, somebody is looking at it ;) Nov 20 19:20:21 Chainfire: does the dslr controller use BT ? Nov 20 19:20:32 so to implement a dialog that passes data back you have to implement an interface, correct? Nov 20 19:20:34 ..expect a fix in December ;^) Nov 20 19:22:23 g00s> USB :) Nov 20 19:22:34 thought so, ok thx Nov 20 19:22:56 kanzure: is this for testing, or for trying to type on your device from your computer? Nov 20 19:23:28 i.e. for actual usage, or just testing? Nov 20 19:30:49 anybody implementing dialogfragments? Nov 20 19:31:27 I'd imagine most people are Nov 20 19:32:03 me Nov 20 19:32:05 SimonVT: to get the dialog to send back the result, you have to implement an interface and have the dialogfragment implemtnation class call those. Nov 20 19:32:26 I know that Nov 20 19:32:58 so my question is, if I implement a class extending dialogfragment and calling a method on an interface to let the caller know, would you create different classes for different messages? Nov 20 19:33:13 delete confirmation, edit confirmation, xyz confirmation? Nov 20 19:33:39 different classes for different messages? Nov 20 19:33:41 http://developer.android.com/guide/components/fragments.html#CommunicatingWithActivity Nov 20 19:33:50 You could, but it seems easier to just have a single class and pass it a string to display Nov 20 19:33:50 id create one interface that has several methods Nov 20 19:34:03 oh Nov 20 19:34:32 right, I think I'm leaning toward just passing a result back somehow so the calling activity knows which confirmation it is. Nov 20 19:34:41 does that make sense? or is there a better way to do this? Nov 20 19:35:34 Yeah, you need a way to tell them apart if you use a single class Nov 20 19:36:14 right, I just didn't think implementing separate classes just for confirmations was a great way to go. maybe bundles.... Nov 20 19:36:48 hopefully java just introduces events sometime by stepping into the current century. Nov 20 19:37:27 interfaces are not only misused here but also an annoyance. Nov 20 19:38:08 on plus side, the android documentation has really gotten organize and useful. especially with examples. Nov 20 19:38:14 anyway, thanks guys. Nov 20 19:40:57 Hi! Does anyone know what could generate a massive log of "Failed to receive dispatch signal" in a native app on some devices? Nov 20 19:41:30 johny-b-goode: would something like guava-eventbus help you? there is a port from square if so; dont remember what it is called Nov 20 19:41:41 JesusFreke: for typing from my computer Nov 20 19:41:44 JesusFreke: not for testing Nov 20 19:42:09 g00s: hmm, I need to google it first. :) Nov 20 19:42:10 kanzure: https://play.google.com/store/apps/details?id=com.volosyukivan&hl=en Nov 20 19:42:11 :) Nov 20 19:42:13 are you using this, Tr4X? http://gitorious.org/rowboat/frameworks-base/blobs/8f6068e63ec93c671412bafee44e69fb73adecf6/core/jni/android_app_NativeActivity.cpp Nov 20 19:42:24 I've used that in the past, to be able to do that Nov 20 19:42:48 JesusFreke: huh? so it sets up a remote server, you http over to it and send POSTs? Nov 20 19:43:12 kanzure: basically. it has a little web server that serves a page Nov 20 19:43:20 you can browse to the page and type in the browser window Nov 20 19:43:35 JesusFreke: thanks, i'll install that. but honestly i would prefer a command line option more. Nov 20 19:43:36 or just manually send stuff via posts or whatever method it uses behind the scenes Nov 20 19:43:46 yeah, you should be able to script it from the command line Nov 20 19:43:55 i suppose this is nice because then i wont need adb Nov 20 19:43:56 using wget or something Nov 20 19:44:21 g00s: interestingly the button clicks in java do not require an interface to be implemented. Nov 20 19:44:22 JesusFreke: this is all stupid, why don't i go spend $20 on a bluetooth keyboard Nov 20 19:44:28 haha :) Nov 20 19:44:40 wow, this is cool. i wonder how long touch based interfaces will be around http://www.gizmag.com/electric-field-3d-motion-gesture-recognition-chip-microchip/25072/ Nov 20 19:44:50 g00s: that would be nice for all other components also, to just pass a function reference. Nov 20 19:44:51 kanzure: in my case, my keyboard is $500+, and doesn't come in bluetooth. so not really an option Nov 20 19:45:19 JesusFreke: i am also a keyboard freak, but mostly because i need speed.. http://www.seanwrona.com/typeracer/profile.php?username=kanzure Nov 20 19:45:20 500$ keyboard? Nov 20 19:45:42 kanzure: nice. better than me :). I'm 110-120 max Nov 20 19:45:48 did you lose some fingers? Nov 20 19:45:49 what gives Nov 20 19:46:24 153wpm? Nov 20 19:46:34 johny-b-goode: http://datahand.com/ Nov 20 19:46:38 johny-b-goode: 196 wpm Nov 20 19:46:43 oh you use the data hand! hah Nov 20 19:46:48 i was going to be facetious and ask if you used that Nov 20 19:46:52 but then i thought better of it Nov 20 19:46:56 heh :) Nov 20 19:46:58 best single race 196. dang. Nov 20 19:47:05 that's pretty cool. Nov 20 19:47:07 Sicp : yep I saw that one, but I'm kinda stuck trying to understand it... Nov 20 19:47:14 johny-b-goode: typing on the screen is misery Nov 20 19:47:15 I think do around 92 and then I stopped caring. Nov 20 19:47:25 i can't type 92 wpm on the screen Nov 20 19:47:42 Anyone here well acquainted with native heap growth and ultra-long (picture 1 year+) running applications? Nov 20 19:47:43 i think i am at 30-40 wpm which is unacceptable Nov 20 19:47:43 I assume it's because I'm not handling some events, but I don't know which ones Nov 20 19:47:50 oh the swipe is still slow. thumb pecking is argh!!! Nov 20 19:48:04 30-40 on screen is pretty dang good. (which is why i hate typing on screen) Nov 20 19:48:32 on the touch screen, I avoid typing. I swipe little but mostly avoid typing. Nov 20 19:48:57 I see constant but slow growth in the native heap. Nov 20 19:49:09 JesusFreke: maybe you have an idea for this, but i have this old twilio/sms system Nov 20 19:49:12 In our full application--- or even an empty one with nothing but a refresh handler. Nov 20 19:49:20 JesusFreke: basically, when long-running tasks are done, i send an sms to myself to remind myself wtf i was doing Nov 20 19:49:32 JesusFreke: ./super-long-script.sh; twilio sms "it's done you asshole" Nov 20 19:49:40 hah Nov 20 19:49:42 but i would prefer something that didn't have to go over sms Nov 20 19:49:49 originally i was using my system beep Nov 20 19:49:57 until i couldn't remember why i was beeping at myself Nov 20 19:50:03 maybe the cloud messaging stuff? Nov 20 19:50:10 or even email? Nov 20 19:50:10 or email? Nov 20 19:50:15 o/ Nov 20 19:50:18 o/ Nov 20 19:50:19 i would prefer something with sound, actually Nov 20 19:50:29 set a filter in gmail Nov 20 19:50:31 email is all the same to me Nov 20 19:50:36 and give that label a notification sound Nov 20 19:50:40 does the gmail android app play different sounds for .. oh Nov 20 19:50:41 alright then Nov 20 19:50:44 :) Nov 20 19:50:59 heh. didn't know you could do that :p Nov 20 19:51:19 you can actually do quite a bit Nov 20 19:51:20 canadiancow: thank you, you have made my life better Nov 20 19:51:26 that's my job! Nov 20 19:52:24 a voice synthesis thing would be bestest Nov 20 19:52:35 you could probably write an app to do that Nov 20 19:52:54 ./super-long-boring-task.sh; mail myself@gmail.com "the backup is complete" Nov 20 19:53:06 i think there's a thing called um, festival? Nov 20 19:53:20 i suppose i could run festival on my laptop, and then send the audio file to my phone Nov 20 19:57:36 kanzure: there's also flite Nov 20 19:57:45 gah this is so slow :( Nov 20 19:57:46 https://gist.github.com/4120314#file_androtyper.sh Nov 20 19:57:46 kanzure: festival lite, way easier to get going, which could port pretty easily to the phone Nov 20 19:58:03 kanzure: tho at that point, use the stock synth on the phone Nov 20 19:58:09 there's a stock synth? Nov 20 19:58:31 http://developer.android.com/reference/android/speech/tts/TextToSpeech.html Nov 20 19:58:32 JesusFreke: alright, turns out my bash script attempt is 1 character per second. i'll try com.volosyukivan instead. Nov 20 19:58:57 heh Nov 20 20:06:57 I'm using an AdMob view which has not width/height until it's ready to be displayed and then it expands. is there a way to get notified when that happens? i need to reorganize my layout whwhn that happanes Nov 20 20:09:10 JesusFreke: every time i try to go to a different app, wifikeyboard closes and kills the server. wtf? Nov 20 20:09:38 kanzure: weird. My recollection of it was that it was pretty much always on Nov 20 20:09:49 but I haven't used it in a while Nov 20 20:11:03 i'm not sure why the app is being killed Nov 20 20:13:47 JesusFreke: oh i see. i need to separately enable it each time i change to a text field. and for some reason < does not work. Nov 20 20:20:02 yey, google is bringing december back :) Nov 20 20:20:41 yay december! Nov 20 20:29:25 who wants to help me app? Nov 20 20:30:21 i love helping people app Nov 20 20:30:24 after yesterday I'm sure everybody can't wait Nov 20 20:30:54 who wants to help me fap? Nov 20 20:31:19 how do you guys handle creating fragments for your activities that require some programmatic construction? i've been just doing a add transaction in my actvityonCreate() Nov 20 20:31:39 activity's onCreate, but i'm realizing that this duplicates the fragment if configuration changes (keyboard, rotation, etc) Nov 20 20:32:06 you can test whether the activity was recreated due to a configuration change Nov 20 20:32:06 i can check to see if whatever fragment i'm going to create is already being carried over, but that seems unwieldy. Nov 20 20:32:10 or otherwise Nov 20 20:32:24 by testing if savedInstanceState==null Nov 20 20:32:39 that's the solution I see most often Nov 20 20:32:55 Just check if the fragment exists Nov 20 20:32:56 hm, kk Nov 20 20:33:49 SimonVT: btw, figure out the best way to handle the dialogfragment thing. Nov 20 20:35:02 just using a single method interface inside and then provide a setonoklistener() method where you can provide a method handler for a given instance (just like buttons). So you can have multiple dialogfragment descendents all over the code querying user for different things Nov 20 20:35:46 That's a pretty bad way of doing it Nov 20 20:35:51 lol Nov 20 20:35:57 SimonVT: lol. ok why is that? Nov 20 20:36:00 What happens on orientation change? Nov 20 20:36:15 Do you go through all possible dialogs, check if they exist, set a new listener? Nov 20 20:36:37 ah, interesting poitn. So on orientation change the dialog is recreated? Nov 20 20:37:11 or possibly recreated? Nov 20 20:37:29 Yes Nov 20 20:37:34 And so is your activity Nov 20 20:37:52 SimonVT: didn't know. Nov 20 20:37:52 And any other fragments (unless you retain them) Nov 20 20:38:01 glad to mention it here first. Nov 20 20:39:01 really understand the reason for recylcing views, etc. especially since most android devices are fairly responsive. But then again, you have 2G or ram now on phones. :) Nov 20 20:39:16 so back to doing it the other way. Nov 20 20:39:39 barking mad. Nov 20 20:39:50 now, if I have an object NOT extendeding DialogFragment, that contains references to DialogFragment, those might be invalid too, after a view recyle, correct? Nov 20 20:40:03 phones are about to hit the 32 bit limit Nov 20 20:40:51 You should never keep references to your fragments that can live longer than your activity Nov 20 20:41:13 imagine if an OS was written for phones in plain assembly/c/c++ and that didn't have segmentation faults. we could assume within reason that it would run really fast. Nov 20 20:41:40 SimonVT: ah, app and object lifecycle management is tricky in android development and nto to be taken lightly then. Nov 20 20:41:46 modern OSes don't really have segmentation faults Nov 20 20:41:50 legacy term Nov 20 20:42:26 Maurits_: as long as c has seg faults, if an os was written again in c by bad devs, you bet it would have segfaults. Nov 20 20:42:36 but my whole arguments rest on an "if". Nov 20 20:42:50 johny-b-goode: C also doesn't have segfaults, the unix signal is called SIGSEGV Nov 20 20:43:11 but that's a legacy term since it has nothing to do with segmentation support in the processor anymore Nov 20 20:43:26 Maurits_: my c/c++ both used to have segmentaion faults followed by core dumps few years ago when I was coding c/c++. Nov 20 20:43:26 also, segfaults aren't actually errors Nov 20 20:43:31 Anyway.. To attach the listener, have your activity/fragment implement it. If it's an activity, cast it in onAttach or something. Or just getActivity().. if it's a fragment, call DialogFragment#setTargetFragment(...).. And then ((YourInterface) getTargetFragment()).blah().. Nov 20 20:43:42 it's just that most C programs consider it an error Nov 20 20:44:14 And yeah, you have to pay attention to the lifecycle of activities, fragments, services, etc Nov 20 20:44:30 opengl es can't can't be run on the android emulator. is there a better way to develop your code than running it on a physical device Nov 20 20:44:55 Sculptor: there's a mode that calls to host's OpenGL implementation Nov 20 20:44:59 SimonVT: cool. I did that originally, however I didn't like that it would mean all instance would call the same method on the activity. but as we discussed it earlier, I could return a dialog code to differentiate which action was verified via the dialog. Nov 20 20:45:10 interesting, p_l Nov 20 20:45:33 johny-b-goode: You could have the identifier just be an int Nov 20 20:45:42 Pass it to the dialog at creation Nov 20 20:45:47 dang, my grammar between thinking and writing ends up having "transporter accidents". Nov 20 20:46:00 Whatever activity/fragment uses it will know what the int means when the callbacks passes it Nov 20 20:46:44 SimonVT: yeah, I was bundling it and sending it. and then I thought let me do it like the button. but now I'll just go back to sending the int identifier. Nov 20 20:46:53 Or, pass the dialogfragment in the callback.. It'll have a tag you could check Nov 20 20:47:00 But then you can't use switch() Nov 20 20:47:13 Anyway, you'll figure it out Nov 20 20:47:18 hi Nov 20 20:47:35 SimonVT: yeah, it's not biggie. thanks for mentioning the on orientation change before I change the entire project. Nov 20 20:47:42 *changed Nov 20 20:48:20 Sculptor: the support is hit and miss, though, and sometimes gets hilarious artefacts, but might be still better than nothing Nov 20 20:48:35 yeah, tx Nov 20 20:50:29 I bet many apps by new android developers fail as soon as an orientation change happens.. And then they add android:configChanges="orientation" :( Nov 20 20:50:57 hahaha Nov 20 20:51:29 SimonVT: sadly, that's so very true :-/ Nov 20 20:51:52 lol Nov 20 20:52:02 * johny-b-goode googles android:configChanges="orientation" Nov 20 20:52:04 *cough*zynga*cough* Nov 20 20:52:27 i added it to one app because recreating everything was taking too long and the layout didnt need to change Nov 20 20:52:48 oh, setRetainInstance !! Nov 20 20:52:57 I bet it would be bad on memory after a while. Nov 20 20:53:00 ? Nov 20 20:53:13 * SpeedEvil hates apps that won't work upside down. Nov 20 20:53:24 upside down... Nov 20 20:53:46 but if your device is upside down and you get upside down, then it works fine. Nov 20 20:53:51 gmail doesnt work in reverse portrait on my mako Nov 20 20:54:00 angry birds too Nov 20 20:54:21 It's fine to use android:configChanges, as long as you know what you're doing.. Using it cus your app crashes when an orientation change happens is what's bad Nov 20 20:54:31 lol Nov 20 20:54:33 most annoying is every android device has a different email client. or version of the client. Nov 20 20:54:42 It'd still crash if your process was reclaimed, and the app is later launched Nov 20 20:54:47 use gmail Nov 20 20:55:18 I'm curious now about what happens on orientation change on my app. Nov 20 20:55:31 Your activity is destroyed Nov 20 20:55:38 And a new one is created Nov 20 20:55:43 As in, a completely new instance Nov 20 20:55:53 phew, it worked fine. Nov 20 20:56:10 but then again, I assume if you only have a listview on the screen there isn't a whole lot that could crash.... Nov 20 20:56:34 so, what will happen to your fragments by default? Nov 20 20:56:35 or you're above the "barely competent" line Nov 20 20:56:43 so you wrote code that isn't horrible Nov 20 20:56:44 Maurits_: Same thing Nov 20 20:56:45 there's magic in the fragment logic that recreates them right? Nov 20 20:56:59 lol above barely competent. that's a resume worth skill as of late. Nov 20 20:57:01 or does that only happen if you setRetainInstance? Nov 20 20:57:09 worhty* Nov 20 20:57:17 The activity (or fragmentmanager) saves the state of all added fragments and puts it in a bundle Nov 20 20:57:43 Gets the bundle from savedInstanceState, and recreates them Nov 20 20:57:56 right, makes sense Nov 20 20:58:11 If you call setRetainInstance, the fragment object is retained Nov 20 20:59:02 As if you had returned it from Activity#onRetainNonConfigurationInstance (which is basically what happens).. It's the same object Nov 20 21:02:28 so bundle is recommended for passing values to dialogfragments, etc. Does that means all bundles are stored as well between activity instances? Nov 20 21:02:53 good evening Nov 20 21:03:20 I would like to make HTTP POST requests from my Android activity Nov 20 21:03:28 The arguments you set with Fragment#setArguments() is also saved between activity instances, yes Nov 20 21:03:50 I'm currently using Apache's HttpPost to do this, and wrapping it in an AsyncTask because Android complains about blocking the thread otherwise. Nov 20 21:03:58 cool. Nov 20 21:04:12 This however means that Android gets to decide when my posts happen, and sometimes it takes significantly longer than I would like. Nov 20 21:04:23 Is there a standard way of making POST requests in Android? Nov 20 21:06:07 well, the devs advocate HttpURLConnection, but I prefer apache's HttpClient Nov 20 21:06:14 preferably via android-async-http Nov 20 21:06:18 When it restores the fragment, it calls Fragment.instantiate(...) which uses reflection to create an instance of your class.. This is also why your fragment must have an empty constructor Nov 20 21:11:53 any ideas how I could avoid so many "new" in onDraw related to sweepGradient and radialGradient (because only the constructor is taking the int[]colors and int[]positions, i have no setters for that) - illustration: https://lh3.googleusercontent.com/-P_oMB0n1Fj8/UEvXTSVuvMI/AAAAAAAACgk/XV59Z123-6I/s130/knob_linear.gif Nov 20 21:11:56 ? Nov 20 21:12:25 (according to DDMS, it consumes lot of resources) Nov 20 21:12:52 you shouldn't have any "new"s in onDraw Nov 20 21:13:17 yes, totally agreed but if i move the "new"s outside, I cannot have a dynamic gradient/sweep Nov 20 21:13:33 adq: got a pastebin? Nov 20 21:13:35 it's maybe not obvious on this gif, but colors and position are moving Nov 20 21:13:40 evancharlton, nop ;( Nov 20 21:14:00 the colors don't move though Nov 20 21:14:00 I know i can sacrifice this subtil effect via using rotation Nov 20 21:14:06 you should create a single gradient and clip, perhaps Nov 20 21:14:08 adq: I don't know what you're expecting us to say, then Nov 20 21:14:41 wait you mean on the knob itself? Nov 20 21:14:51 yes the gray part Nov 20 21:15:02 adq: maintain the arrays and just update them Nov 20 21:15:05 if you look carefully, you will see that the dark and light is not constant Nov 20 21:15:11 like, hold onto a reference to the arrays Nov 20 21:15:34 though it looks like you could just use two drawables Nov 20 21:15:42 and rotate them at different speeds Nov 20 21:15:44 evancharlton, there are no setters, the array of color and int can only be set in the parameters of the constructor Nov 20 21:15:59 adq: is that the only time they're parsed, though? Nov 20 21:16:10 ah yes, but i'm am afraid using alpha could be worst Nov 20 21:16:13 but thx for the ideas Nov 20 21:16:58 evancharlton, yup, then i rotate (this is why on each tiny rotation which produces the effect of rotating the knob, i have so many news in ondraw) Nov 20 21:17:15 android.graphics.SweepGradient.SweepGradient(float cx, float cy, int[] colors, float[] positions) Nov 20 21:17:47 colors and float params of the constructor are the one i update when i do a tiny rotation Nov 20 21:18:27 a setter would have solve all my problems :) Nov 20 21:19:35 tdignan: You're a star; You wouldn't believe how many different libraries I've tried out over the past four days. Finally, one that a) works out of the box and b) does exactly what I want it to do. Nov 20 21:22:19 (implicitly, i want to avoid new to reduce the probability of having GC raising). I will try the superposition of drawables rotating at different speeds just to see. Thx evancharlton & JakeWharton (for ABS especially;)) Nov 20 21:24:47 Pingless: just remember to use a handler. onSuccess/onFailure do not run on the ui thread. Nov 20 21:25:15 tdignan: Do I need to use a handler if I'm just using Log.i() ? Nov 20 21:25:23 no Nov 20 21:25:30 only if you do ui stuff Nov 20 21:26:52 hello. Does anyone here have experience communicating with arduino via NFC? Nov 20 21:28:38 tdignan: thanks for your help Nov 20 21:28:46 np Nov 20 21:30:15 tdignan, im not sure i'd agree with that statement Nov 20 21:30:53 or rather, i'd clarify it that handlers have many other uses :P Nov 20 21:31:19 that would be a fair clarification Nov 20 21:31:21 do elaborate, canadiancow Nov 20 21:32:18 canadiancow: the reason I mentioned using a handler is because android-async-http lets you define classes that inherit from AsyncHttpHandler -- it gives people the false impession that they have a handler, and they don't. Nov 20 21:32:20 I haven't written much Android stuff and usually got round using Handlers by using AsyncTasks instead Nov 20 21:33:08 i'll be a happy man if I never use async task again. Nov 20 21:33:50 really? asynctask is so simple Nov 20 21:33:58 it has numerous problems Nov 20 21:34:21 first and foremost is that you can't run one twice without creating it again Nov 20 21:34:39 other than that I guess it's not that bad Nov 20 21:34:46 this is because under the hood it is using a FutureTask Nov 20 21:34:57 yes, execute is forbidden if there is not a new object ;( Nov 20 21:35:00 similar semantics to that Nov 20 21:35:41 AsyncTask is basically just a FutureTask, a preconfigured Executor, and a handler to put the result Nov 20 21:35:49 you can do all that stuff yourself Nov 20 21:36:25 if you need to tweak the behavior slightly, or whatever. its just a convenience , but for some reason i tend to never use ir Nov 20 21:36:27 *it Nov 20 21:36:28 i wrote my own stuff with executors once Nov 20 21:36:42 for downloading many tiny files from a server Nov 20 21:37:23 onPre, onPost and publishProgress called from doinbackground are really human readable for UI thread access, I think it helps clarifying the code Nov 20 21:37:28 (for the pro, not the cons) Nov 20 21:37:55 i found some code the other day that used a fixed thread pool of 20 threads just to read avatars from the media content provider Nov 20 21:37:59 ;P Nov 20 21:38:45 with handlers in //, I already reached the max (128) ;( Nov 20 21:40:44 adq: you scare me Nov 20 21:41:20 damn, look at the world :-) which part is scaring you? Nov 20 21:42:10 :| Nov 20 21:42:24 The native heap hates me. Nov 20 21:44:01 evilmushroom: I might have something of a solution for you Nov 20 21:44:02 get a new device :P Nov 20 21:44:06 are you allocating bitmaps on the native heap? Nov 20 21:44:16 if it's about the handlers, i was trying a lazy loading of images, and while scrolling fast (so many images to retrieve, despite most of the ones attempted to be retrieved in a respective handler to be displayed, they were not anymore visible but happening toofast that the handler could not be destroy before, etc...) i reach this limit, then I realized I did wrong, obviously. Nov 20 21:44:35 i dont think "lazy load" means what you think it means Nov 20 21:44:55 my english is scary :| Nov 20 21:45:05 but that's why you use an ExecutorService for that kind of stuff Nov 20 21:45:06 (he already told me that) Nov 20 21:45:21 you can set it to a max of like 5 threads, you can easily remove images from the queue, etc Nov 20 21:45:24 :) Nov 20 21:45:32 tdignan: and what would this solution be? :) Nov 20 21:45:36 * canadiancow should write a listview image loading library Nov 20 21:45:46 evilmushroom: i need more information before I recommend mine Nov 20 21:45:55 yes canadiancow Nov 20 21:45:55 tdignan: ah no-- it's not that particular problem Nov 20 21:45:58 what are you doing Nov 20 21:46:06 adq, i have a 5 hour flight on both thursday and sunday Nov 20 21:46:11 so we'll see ;) Nov 20 21:46:29 actually are there any open source lazy load listview libs? Nov 20 21:46:37 tdignan: our bitmaps are carefully released..... even if I take that code out.. very slowly over time our native heap grows Nov 20 21:46:48 libs idk, but snippets for sure (from google blog too i recall) Nov 20 21:46:53 aside from evancharlton's Nov 20 21:46:57 tdignan: our usecase for android is on certain set top boxes that run 24/7 all year round Nov 20 21:47:03 don't use mine Nov 20 21:47:13 evilmushroom: so it takes a long time for the leak to become noticable? Nov 20 21:47:31 tdignan: yes, it's a few k an hour. Nov 20 21:47:48 oh. yeah. I don't think i can help you on that one. Nov 20 21:48:05 you'll probably have to rewrite all the bitmap stuff yourself! Nov 20 21:48:21 tdignan: well it increases the same even if I have all of the bitmap stuff out. Nov 20 21:48:33 tdignan: do you know what else stores things in the native heap? Nov 20 21:48:57 bitmaps on <= 2.3 was all I was immediately aware of Nov 20 21:49:17 maybe there are bitmaps still being allocated indirectly Nov 20 21:49:45 tdignan: ah... all our devices are on ICS hmmm. Our bitmaps were a problem at first.. but now they don't appear to be leaking as we're carefully .releasing hmm Nov 20 21:50:08 canadiancow: aren't there a few lazy loading libraries laready :P Nov 20 21:50:34 i think our very own evancharlton had one of the original blog posts years ago :) Nov 20 21:50:53 his sucks though Nov 20 21:50:56 evilmushroom: well bitmaps in ics are on the vm heap Nov 20 21:51:00 canadiancow: haha Nov 20 21:51:01 s/sucks/is suboptimal" Nov 20 21:51:14 don't use mine Nov 20 21:51:17 i just used romain's code in shelves Nov 20 21:52:06 recent news about this topic: https://plus.google.com/u/0/113058165720861374515/posts/iTk4PjgeAWX (Android Protip to make lists with dynamically loaded images butter smooth) Nov 20 21:53:14 shit, found a great book on machine learning but it requires matlab which i dont have Nov 20 21:53:40 adq: cool, thanks Nov 20 21:54:35 i never find these articles buried in g+ Nov 20 21:54:45 tdignan: really?? we still native heap OOM if we don't release them Nov 20 21:56:10 hmm Nov 20 21:57:27 hey guys, can anyone recommend a library for rpc with protobuffers? Nov 20 21:57:37 for front and back Nov 20 21:57:41 protobuffs :) Nov 20 21:57:49 yes that :D Nov 20 21:58:15 http://code.google.com/p/protobuf/ Nov 20 21:58:44 use proto-lite or proto-micro on Android Nov 20 21:59:06 or serializes objects to json? Nov 20 22:01:07 tdignan: here is a picture from one of these box's metrics: http://i.imgur.com/2hdtG.png Nov 20 22:01:35 thanks Nov 20 22:01:45 anyone use cloud endpoints with android? Nov 20 22:01:45 tdignan: note the slanted line from oct 30 to nov 18 Nov 20 22:11:54 In Android 4.0, what can contribute to a steady increase in the native heap? Nov 20 22:13:31 evilmushroom: profile the app? Nov 20 22:23:42 I'm writing an app that streams audio from my server. Is there an api that I need to use to tell android to allow the app to continue running in the background Nov 20 22:24:11 At the moment the app gets unloaded from memory at times on my Galaxy Nexus Nov 20 22:24:40 read about Service in the docs Nov 20 22:25:21 devslash: an activity is not an app Nov 20 22:25:47 please read http://developer.android.com/guide/components/fundamentals.html Nov 20 22:26:01 the 'Application Components' section Nov 20 22:26:19 I know Nov 20 22:27:27 devslash: use a service if you need to run in the background, with no active UI Nov 20 22:27:43 evilmushroom: damn Nov 20 22:28:10 evilmushroom: i could be wrong Nov 20 22:30:31 "unified handling for bitmaps and bytebuffers" Nov 20 22:30:35 http://developer.android.com/about/versions/android-3.0.html Nov 20 22:35:01 hm, that line isn't related Nov 20 22:35:26 I find plenty of anecdotal evidence on SO to support my belief that bitmaps are stored in the vm heap after honeycomb Nov 20 22:35:36 but cannot find an authoritative resource Nov 20 22:48:10 hi Nov 20 22:48:30 is it possible to draw few bitmap in canvas and set onClickListener to it? Nov 20 22:49:38 i know i can get position of click and calculate which bitmap he clicked but it's very unsatisfactory Nov 20 22:49:40 finally got a n10 Nov 20 22:50:16 <[deXter]> congrats Nov 20 22:53:46 shajen: a View is the only thing that can receive click events, if you're manually drawing on a canvas then you have to calculate the hit targets yourself Nov 20 22:57:34 ok, so what is the right way to do this: i want to have buttons to controll my app, and canvas in the background to display my game Nov 20 22:57:58 how long does n10 take to boot the first time :S Nov 20 23:00:30 shajen: depends. you could but the buttons in front of a giant canvas Nov 20 23:00:39 they'd receive the touch events first Nov 20 23:01:08 ok, but how to do it :) Nov 20 23:01:27 Nov 20 23:03:34 ok, I'm assuming it isn't a good idea to update an item inside a customer list adapter, correct? Nov 20 23:05:11 the adapter is epanding a view and updating a "checkbox" image based on true/false flag. however, maybe a confirmatino dialog can post events back to main activity which can do the update and just notify the adapter. Nov 20 23:06:54 What services/settings are required for Youtube, Gmail, and Google Play to function? Nov 20 23:07:04 they are stuck at "loading" Nov 20 23:07:15 maybe DEVs have knowledge as to what is required Nov 20 23:07:51 what do you mean Nov 20 23:09:44 I know I should be asking this in #android-root but im getting no answer but can someone tell me a way around not being able to create a directory inside of root when my permissions are denied or am I hosed because I need to have su to get access to that directory Nov 20 23:10:15 you're hosed Nov 20 23:10:22 don't touch / Nov 20 23:11:58 don't touch or cant touch Nov 20 23:13:08 canadiancow: I may have disabled something. What would break those apps at the same time if you disabled it? Nov 20 23:13:21 has someone here used sqlcipher? If so, any quirks with it I need to watch out for? Nov 20 23:13:23 what apps are disabled? Nov 20 23:13:28 they should be at the bottom of the all apps list Nov 20 23:13:35 oh, let me check Nov 20 23:13:41 ICS by the way Nov 20 23:14:32 only calendar and calendar storage :( Nov 20 23:14:45 enable those and see what happens? Nov 20 23:14:57 they have been disabled for the life of the phone Nov 20 23:15:08 but I do have a firewall blocking some things Nov 20 23:16:21 Well, my app seems to be mostly stable. Few small bugs I need to clean up before moving on to the next project. My Widget executes my app with the flag Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED. I was hoping this would prevent stacked activity maps (Main > Conversation > Main > Conversation... etc) What am I missing? Nov 20 23:17:30 hmm, google framework service Nov 20 23:17:33 what is that for? Nov 20 23:18:13 I want to make the widget act like a shortcut with additional features :P Nov 20 23:19:56 oops i must have disabled internet access to the google framework service when I was drunk Nov 20 23:20:09 i'm getting an annoying error. android is not finding any of my R.id or R.layout resources, even though I've cleaned a few times, manually removed R.java, and looking in R.java, all the id's it says don't exist, are there. Nov 20 23:20:52 "package R does not exist". why yes, yes it does. Nov 20 23:21:34 ah, hmm. namespace issue maybe. Nov 20 23:21:38 sounds like a missing import; but if you're using Eclipse, then ho knows :) Nov 20 23:21:47 actually, that sounds like you're importing it. Nov 20 23:21:54 check your imports to make sure R isn't defined Nov 20 23:22:11 solved. Nov 20 23:22:42 the issue was R.java is com.foo.bar.baz.R, but the packages that were dying were com.foo.bar.baz.quux Nov 20 23:22:55 so, "import com.foo.bar.baz.R;" -> solved problem Nov 20 23:22:55 ergo, missing import :-) Nov 20 23:23:21 well, it seems it's implied if R is in the same ns as the class. in this case, it wasn't. Nov 20 23:23:40 right. the error messages are less than brilliant, for sure. Nov 20 23:24:02 it wasn't that bad. i read it literally "PACKAGE" does not exist, and since packages are ns qualified, i was like, oh, duh. Nov 20 23:25:01 hi guys Nov 20 23:25:19 i was wondering is it possible to register voice commands Nov 20 23:25:52 eg if i say a command it opens an app i made and runs a command Nov 20 23:26:00 like a button click etc Nov 20 23:26:10 confirmed working for those that care Nov 20 23:26:32 google framework service is needed for the single sign on, I'd assume Nov 20 23:28:16 is gtalk installed on every rom? Nov 20 23:28:20 ...android* Nov 20 23:28:22 device Nov 20 23:30:06 Jug6ernaut: not necessarily, but it's there often enough, I guess. Nov 20 23:30:20 "often" isnt good enough xD Nov 20 23:32:26 anyone know any "bad code smells" specific to Android? Nov 20 23:36:20 loads Nov 20 23:37:33 tophyr: I'm listening Nov 20 23:37:41 just to be wary of them Nov 20 23:37:44 alright, so Intent.FLAG_ACTIVITY_CLEAR_TOP will clear the history down to the intent before deciding to create it, but it doesn't seem to understand that the intent was created from the shortcut vs the widget... any documentation I can read on fixing this? Nov 20 23:38:05 Jug6ernaut: probably anything that comes from carriers does. but for example custom roms like CM probably do not Nov 20 23:41:07 belgianguy: globals in a static class or the Application object are one of my peeves.. hardcoded (programmatic) or duplicated (xml) layouts are another Nov 20 23:41:57 depends on how android-specific you want to guess.. a lot of the ones i'm thinking of could really be more generic than just android smells Nov 20 23:43:29 tophyr: any will do, as I'm just trying to avoid certain pitfalls which experience might not iron out Nov 20 23:44:24 how long does it really take to make an android app (a decent one). If I have basic experience with C and C++ but no real experience with java, and I've never done an android app before, could it be completed in 5 mos? Nov 20 23:44:38 5 monts is definitely enough time Nov 20 23:44:46 unless you mean 5 months of irc and 2 days of dev Nov 20 23:44:50 in which case nah Nov 20 23:45:11 is mos a new measurement of time ? Nov 20 23:45:15 tdignan: ha ha - yes, need to spend time wisely :() Nov 20 23:46:18 cool, maybe I could get some java skills, do some market research, design and have my first app up by the end of April 2013 Nov 20 23:46:32 i guess how long it takes to design an app depends on how quickly you learn how the framework works, and how clear your idea of the design is. Nov 20 23:46:54 and what the app does Nov 20 23:46:58 a lot of the 'process' is out of the picture when you are solo Nov 20 23:46:59 does anyone know of a nice guide regarding how to properly handle screen orientation change? It seems to be a thorn in my side for this feature and i'm having a hell of a time getting this working right Nov 20 23:47:10 right on Nov 20 23:47:11 a solo developer can develop an app faster than a team Nov 20 23:47:20 because he does not have all sorts of overheads Nov 20 23:47:30 makes sense Nov 20 23:47:34 that's if you can actually do all the things yourself, though Nov 20 23:47:42 he must be gfx savvy Nov 20 23:48:43 tnzr: the lifecycle Nov 20 23:48:57 know what dies, what lives on and what you need to get a reference to Nov 20 23:49:22 also, Fragments can persist an orientation change if they have setRetainInstance(true) or the deprecated way Nov 20 23:49:25 that's the big question: I'm just starting to learn many key things (uml, java, eclipse, working w/ mercurial better; and, while I think I'd do well/ be natual at market research, I haven't worked with it yet). Nov 20 23:49:40 uml Nov 20 23:49:46 ^ Nov 20 23:49:47 there's something i've used every day since leaving school Nov 20 23:49:51 uml rocks! Nov 20 23:49:51 wait...no Nov 20 23:50:04 ClientAlive: if you're just getting started, 5 mo might be a bit short Nov 20 23:50:04 learn git or hg really well Nov 20 23:50:13 the only way to learn git is to use it Nov 20 23:50:32 right on Nov 20 23:50:34 Jug6ernaut, gtalk is included in all devices that legally carry the name "Android" Nov 20 23:50:41 esp if you don't know the ins and outs of the IDE (get IntelliJ if you like having hair after 5mo) Nov 20 23:51:03 well I figure I'll do what I can and if I have to go dig ditches again this summer, so be it... :p Nov 20 23:51:17 OOP conventions, small details relating to Java, which may or may not also hold in Android Nov 20 23:51:40 just apply for an internship/job at google Nov 20 23:51:40 it really depends on your own work ethic Nov 20 23:51:55 if you're really smart and have a good work ethic, you could be up to speed in one month. Nov 20 23:52:30 ability to focus, work ethic, raw intelligence, all make these estimates subjective. Nov 20 23:52:44 I'm too much of a scatterbrain, but learn a lot from my mistakes Nov 20 23:53:35 if you're aware of that i'd hardly think so Nov 20 23:53:55 any tips to improve focus are also welcome, I can just be distracted by the dumbest things Nov 20 23:54:05 sure. I can offer sage advice Nov 20 23:54:10 do you use reddit? Nov 20 23:54:11 focus is useless Nov 20 23:54:12 :) Nov 20 23:54:52 tdignan: yes Nov 20 23:55:01 tdignan: how did you guess that Nov 20 23:55:11 I'm tempted to insert it into my hosts file Nov 20 23:55:17 we're both on irc, so that gives us each a -1 focus point Nov 20 23:55:26 you use reddit, so that puts you at -2 Nov 20 23:55:29 leech block is a good plugin for blocking sites Nov 20 23:55:33 i use hn though: so I'm at -2 Nov 20 23:56:04 tdignan: HN, too Nov 20 23:56:06 Slashdot Nov 20 23:56:09 Ars Technica Nov 20 23:56:28 start by clicking less links when you are on these sites Nov 20 23:56:28 tdignan, is there ever a positive focus in your scale? Nov 20 23:56:39 Zharf: not for anyone on irc Nov 20 23:56:52 I don't consider 0 positive Nov 20 23:57:05 so if irc is -1, what's netflix XDDD Nov 20 23:57:33 tdignan: I don't watch TV though, do I get a credit for that? Nov 20 23:57:36 i don't know, I just made it up. but I might have to further develop the idea now :) Nov 20 23:57:40 belgianguy: sure Nov 20 23:57:47 :) Nov 20 23:58:03 sto? Nov 20 23:58:13 I've tried Red Bull,Coffee, human sleeping schedule (8hrs) Nov 20 23:58:30 but still can't seem to keep my attention Nov 20 23:58:38 it's hard to focus on a single thing when you live in a world of infinite things Nov 20 23:58:41 * Komak57 tosses belgianguy 3 5 hour energy drinks Nov 20 23:58:46 the key is to get all the various things out of your brain Nov 20 23:58:53 try those back to back and see what happens ^.^ Nov 20 23:58:54 that you are constantly absorbing from all these news sites Nov 20 23:58:58 the key is to do something interesting Nov 20 23:59:04 ^ Nov 20 23:59:10 do a few narrow and interesting things. Nov 20 23:59:10 tdignan: true, they're interesting, but not relevant Nov 20 23:59:18 I've found myself at work after 12 hours without realising what time it was, multiple times Nov 20 23:59:23 and that tricks your brain in wasting energy on them Nov 20 23:59:25 when the problems were interesting enough Nov 20 23:59:44 do you not have the time on your desktop? Nov 21 00:00:24 i might take it off now that you mention it... but not if I'm on IRC. then it's definitely staying there. Nov 21 00:00:24 not in any place that I would look Nov 21 00:00:37 of course, I have timestamps in IRC as well. Nov 21 00:00:46 well yeah there's that Nov 21 00:01:13 I'm very interested, but easily led astray Nov 21 00:01:24 but all I need is good music and interesting problem to solve and I could be sitting there for days solving it Nov 21 00:01:55 I've stopped listening to music, too Nov 21 00:02:02 as that, too, distracts me Nov 21 00:02:12 mucking about in VLC or Grooveshark Nov 21 00:02:18 I can't do anything without music Nov 21 00:02:28 but then, I'm also a music player developer (xmms2) Nov 21 00:02:41 Zharf: a well then I can understand :) Nov 21 00:04:49 does anyone ahve skype installed on 4.2? Nov 21 00:05:56 i despise skype android > 3> Nov 21 00:06:20 I hate it too Nov 21 00:06:29 mainly because of lack of sound control Nov 21 00:06:34 it just bleeps bleeps bleeps Nov 21 00:07:06 I've been meaning to write some nasty feedback about it Nov 21 00:07:13 my phone doesn't let me send video feed from the back cam (only cam on the admire) Nov 21 00:09:07 Tango does, but nobody uses tango ._. Nov 21 00:09:20 Leech Block installed Nov 21 00:09:29 we'll see how long I can go without Nov 21 00:09:58 without what Nov 21 00:10:07 just don't start using chrome then :-D Nov 21 00:10:24 tho there's something similar in the chrome web store Nov 21 00:10:31 nanny for chrome or something Nov 21 00:14:47 for Chrome I just installed StayFocusd Nov 21 00:15:04 good thing I'm on Ubuntu, and don't have to configure IE Nov 21 00:17:32 technically I could run that in Wine, but if that should happen, I'm ready to be committed Nov 21 00:23:09 belgianguy, http://swizec.com/blog/why-programmers-work-at-night/swizec/3198 Nov 21 00:24:41 adq: very interesting link, with indeed a premise I already adhere to Nov 21 00:25:04 I'm the going to bed at 4am type Nov 21 00:25:07 intrinsec motivation is the {best|key} Nov 21 00:25:12 intrinsic* Nov 21 00:25:22 but I go to bed at around 8pm nowadays... and then code in bed until 4am Nov 21 00:25:39 ot, but does anyone know of any caches other than archive.org Nov 21 00:25:45 I want to try and find something I deleted in 2009 Nov 21 00:26:02 waybackmachine or something? Nov 21 00:26:11 not sure of the name Nov 21 00:26:26 yeah that's archive.org Nov 21 00:26:27 waybackmachine is part of archive.org Nov 21 00:26:41 in 2009 i started a little xmms2 gui client,I remembered since you mentioned you dev for that Nov 21 00:26:46 adq, oh :p Nov 21 00:26:51 it's really not a complete program, but it worked Nov 21 00:26:55 and it's gone :| Nov 21 00:27:14 :( Nov 21 00:27:27 its ok, I'm pretty sure I don't have any baby pictures of myself either. Nov 21 00:27:44 :) Nov 21 00:33:03 anyone know any sites where I can find sprite sheets (a spaceship if possible)? Nov 21 00:33:13 to use in OpenGL ES Nov 21 00:33:52 try opengameart.com Nov 21 00:35:12 ah, thanks tdignan! Nov 21 00:35:41 tdignan: belgianguy: I think you mean opengameart.org Nov 21 00:35:59 yep Nov 21 00:36:18 cweagans, is that you, google? Nov 21 00:38:06 well if you google for sprite sheets it doesn't really give me much :/ Nov 21 00:38:47 lots of sprites, yes, but not the sort I'm looking for (one sprite with "turning" moves) Nov 21 00:40:25 i don't think there's that much good stuff out there for free Nov 21 00:42:23 tdignan: yeah, but as it's just for a "getting to know OpenGL ES" I might make something myself Nov 21 00:42:35 In the end I could take a sprite and rotate it myself in GIMP Nov 21 00:42:45 and just save it as a 512x512 PNG Nov 21 00:45:04 a bit of tinkering with the perspective tools might even make it an acceptable solution Nov 21 00:47:42 2d sprite? Nov 21 00:51:45 tdignan: something that looks 3D "spaceship top view" seems to return some PNG files Nov 21 00:53:11 i'd make something in blender Nov 21 00:53:16 then you can take stills of it Nov 21 00:54:11 there's even a tutorial right here on making a spaceship http://www.blenderguru.com/videos/create-a-spaceship-part-1/ Nov 21 00:55:09 tdignan: if this project blossoms into something more than just trying, that is certainly something to look into Nov 21 00:55:46 I bet I can't resist "getting it just right" so I'll probably have to get to know Blender :p Nov 21 00:55:58 http://www.treysmithblog.com/700000-per-day/ Nov 21 00:56:14 if you get the spacehip done ou might make 700k per day Nov 21 00:57:00 oh days of 3DSMax and G?...Max, where art thou Nov 21 00:57:25 I can't remember the name of the last one, was a free 3D editor back in the day Nov 21 00:57:52 so maybe that modding games time might be good for something ;) Nov 21 00:59:57 tdignan: I wish I was that talented Nov 21 01:00:05 while I'm a creative person, I'm no artist Nov 21 01:00:18 you just get stuff and trace it Nov 21 01:00:27 it's not as hard as it seems Nov 21 01:00:37 i read "artist" as "racist" and got really confused Nov 21 01:01:23 because hitler Nov 21 01:01:26 canadiancow: well for a cow on IRC that's still acceptable :p Nov 21 01:03:12 tdignan: nice Godwin you have there Nov 21 01:03:32 yeah i wanted to cut to the chase Nov 21 01:13:20 is there a way to have clicking on a notification not close the drawer? Nov 21 01:23:24 hey guys, is it possible to spoof and application version? Nov 21 01:23:38 KaiKai: what do you mean by spoof? Nov 21 01:23:44 change the application code* Nov 21 01:24:08 im sending the application code to my servers via HTTPS, js making sure that malicious users can't change that application code Nov 21 01:25:04 to my understanding, everything client sided can be spoofed. but the application code should be integrated into the application right? Nov 21 01:27:36 can't find out how to grab the number given in android.intent.action.SENDTO intents from the contact book ._. anyone have this info? Nov 21 01:28:44 KaiKai: they can baksmali the apk if thats what you mean - defintelly use something like proguard to make that harder. I'm not sure whats a guartanteed way to protect your code Nov 21 01:31:26 KaiKai, everything client-side can be spoofed Nov 21 01:31:28 *everything* Nov 21 01:32:52 anyone here know how to read the contact info off a contacts.db? Nov 21 01:35:14 use the contentprovider Nov 21 01:37:17 I found it in the contentprovider directory. What do you mean by using it? Nov 21 01:38:04 therealGent: http://developer.android.com/guide/topics/providers/contacts-provider.html Nov 21 01:38:35 I don't want to write java code and have to deal with compiling it for android. I've never done this before and I bet I can find another way.. Nov 21 01:39:32 therealGent: so what do you want to do with it? if you know sql you can use that to read the databse Nov 21 01:40:08 f2prateek, I don't see the names stored along with the numbers. Nov 21 01:40:23 it's all "ids" and other junk. Nov 21 01:41:54 protip; try opening it with sqlite Nov 21 01:42:28 therealGent: what did you open it with? Nov 21 01:42:42 f2prateek, SQLite manager firefox plugin Nov 21 01:43:09 if you're not writing an android app, then why are you here therealGent Nov 21 01:43:13 the names are in there, they just won't be contiguous. Nov 21 01:43:38 due to how the system's content providers work (they define a column which determines entity type) Nov 21 01:43:38 canadiancow, trying to find at least one android related IRC that has the slightest of a clue on this because so far it's disastrous. Nov 21 01:43:53 this is a developer channel Nov 21 01:43:54 for developers Nov 21 01:43:57 tdignan, do you perhaps know of any utilities that will output this correctly? Nov 21 01:43:57 who are developing Nov 21 01:44:01 therealGent: i think maybe the one who needsa clue is you Nov 21 01:44:08 therealGent: use, write some java code. sheesh Nov 21 01:44:12 yes* Nov 21 01:46:21 high five! Nov 21 01:49:31 canadiancow: did you get your answer? Nov 21 01:49:31 um, on my device Nov 21 01:49:38 select * from raw_contacts; seems to do it Nov 21 01:51:11 what answer Nov 21 01:51:43 f2prateek: is there a way to check if an apk was signed by you or by someone else? Nov 21 01:52:03 canadiancow: for notifcation drawer not being closed on click Nov 21 01:52:14 oh. no. Nov 21 01:52:20 programically of course Nov 21 01:52:29 KaiKai, yes Nov 21 01:52:34 but taht can be spoofed Nov 21 01:52:42 you *cannot* trust anything that comes from the client Nov 21 01:52:43 oh Nov 21 01:52:43 period Nov 21 01:52:45 right Nov 21 01:56:58 hi all :-) question, im trying to build a new android app and i am trying to find a qualifer that will let me know if the screen is wide screen or not... im only allowing landscape orientation if that helps, i want to spread the ui out some on wider screen devices and perhaps use larger images but i cant seem to find a qualifer that works I tried ratio but while that was the keyword im looking for it seems to only care about if Nov 21 01:57:52 okay, so i know that its not good practice to make it so users HAVE to update their application but my application must implement that. I just want to know if my current method will make it significantly harder for malicious users to spoof the application and pretend an old version apk is a new version apk. Nov 21 01:58:32 in each version i'm creating a different random final String and checking on my PHP code to make sure that random string is indeeed correct Nov 21 01:59:10 so that way malicious users need to get through obfuscation twice in order to fraud the system Nov 21 01:59:14 is this solid? Nov 21 02:00:05 dblosevn: if this s for layouts and resources - use the density buckets Nov 21 02:00:29 KaiKai: unless your apps comunicates over ssl it can still be spoofed and even if it uses ssl but allows unverified ssl connections it still can be spoofed Nov 21 02:03:10 f2prateek: maybe im not getting it, just because one screen is more dense then another doesnt necesarily mean that it is a different aspect ratio, i already use dps to position everything, but the problem is that if i use images at 4:3 ratio then on 16:9 my backgrounds get streched out of proportion Nov 21 02:05:26 KaiKai: a packet sniffer attached to the network as an ssl proxy would let any user of the app see the actual communication with your remote service and they could spoof your salt or verification string Nov 21 02:08:23 if they load their own certs, it will authenticate right even Nov 21 02:08:26 f2prateek, i think i got it Nov 21 02:08:35 setAutoCancel(false), and then cancel it manually in code Nov 21 02:08:51 * canadiancow loves working with people who know android better than i do Nov 21 02:10:26 doesnt that still close the drawer - but just keeps the notifcation in the drawer ? Nov 21 02:11:46 f2prateek: I guess where im lacking is ... xhdpi is true for both 960dp x 720dp 1280dp×720dp Nov 21 02:12:08 and they are two different aspect ratios :-) Nov 21 02:12:36 dblosevn: yeah i understood what you needed - i'm not familiary of a way that would work - but it seems there should be one Nov 21 02:13:25 is there a way to mount the internal storage of a galaxy tab so it can be accessed via USB mass storage? Nov 21 02:13:35 :-( this is killing me this is a huge project and they are at my feet to tell them what sizes to render all the images and im at a loss at what to tell them Nov 21 02:13:49 f2prateek, you're right :( Nov 21 02:13:54 dblosevn, dpi is a DENSITY Nov 21 02:14:08 it is completely independent of resolution, aspect ratio, size, etc Nov 21 02:14:19 well maybe not "completely" indepdent... it's resolution/physicalsize Nov 21 02:14:40 but you can have 1280dp x 720dp that's mdpi Nov 21 02:14:47 or 1280x800 (like most older 10 inch tablets) Nov 21 02:15:29 ya i understand that, but how do i size my images so they dont get stretched my background are really the issue Nov 21 02:15:53 dont have backgrounds where stretching will make them ugly? Nov 21 02:16:09 if i use a 4:3 background on 16:9 its stretched, if i use a 16:9 background its shrunken and out of aspect on 4:3 Nov 21 02:16:46 if you download https://play.google.com/store/apps/details?id=com.fivemobile.cineplex and just take a look at the splash screen, i can show you how it was done Nov 21 02:16:46 and to make matters worse the background is an mp4 Nov 21 02:17:25 wait what? Nov 21 02:17:30 what exactly aer you trying to make your background Nov 21 02:17:34 can you show me the backgroudn? Nov 21 02:17:41 brb Nov 21 02:18:07 let me find a low quality rendering Nov 21 02:20:50 https://www.dropbox.com/s/ungxprfzaof0z4q/ipad-sample-bg.mp4 Nov 21 02:21:18 thats a 4:3 rendering Nov 21 02:21:34 at super low qualtiy Nov 21 02:21:52 pretty sure thats the one we use on the ipad Nov 21 02:22:38 for all the menu screens, the content screens dont have a background Nov 21 02:25:59 dblosevn: thanks :) glad i got that done already Nov 21 02:26:23 has anyone used this service before? Nov 21 02:26:23 http://www.perfectomobile.com/ Nov 21 02:26:44 so dblosevn, you have two options Nov 21 02:26:46 1. letterbox Nov 21 02:26:51 2. cut off pieces Nov 21 02:26:59 caterpillar isnt gonna like either of thoughs Nov 21 02:27:22 there going to want it to look the same on droid as it does the ipad Nov 21 02:27:30 the ipad is a DEVICE Nov 21 02:27:33 android is an OPERATING SYSTEM Nov 21 02:27:42 you can make it look the same on the nexus 10 as on ipad Nov 21 02:27:49 you cant make it look the same on android as on ipad Nov 21 02:28:08 i realize that, but i only have limited controll over what devices they use Nov 21 02:28:29 there making me require honeycomb + and that covers a huge range of tablets Nov 21 02:28:39 well is there a web version of this? Nov 21 02:28:43 yes Nov 21 02:28:44 how do they handle different monitor sizes? Nov 21 02:28:50 we dont Nov 21 02:29:00 16:9, 16:10, 4:3, 9"-30", etc Nov 21 02:29:00 1920x1080 and chrome is required Nov 21 02:29:08 what if i have 1920x1200 Nov 21 02:29:16 i controll the hardware for the web version Nov 21 02:29:25 they use what i tell them to and ship them Nov 21 02:29:34 why cant you do this for android? Nov 21 02:29:38 what is this? Nov 21 02:29:47 i dont understand how you can contrl the hardware for web, but not for mobile Nov 21 02:29:58 its not a public web site, its a localized web kiosk Nov 21 02:30:09 so why do you want android at all Nov 21 02:30:24 like i dont really understand why you need multiple platforms for a kiosk system Nov 21 02:30:36 i have a copy of it public on the web i can pm the link as i dont know if the channel logs publically Nov 21 02:30:43 dblosevn: in my experience most android games are letterboxed Nov 21 02:30:55 and it works pretty damn well Nov 21 02:30:55 KaiKai: this isnt a game Nov 21 02:31:04 lol Nov 21 02:31:05 well i understand its a video, but whats the problem with letterboxing? Nov 21 02:31:29 caterpillar is really really bitchy about looks Nov 21 02:31:32 i dont need to see it, so much as im just confused about the whole idea Nov 21 02:31:37 ok Nov 21 02:31:44 like why do you need android and ios Nov 21 02:31:48 or why cant you control the hardware Nov 21 02:31:54 the kiosk is huge its like 20 gb and they use that at tradeshows Nov 21 02:32:06 you *cannot* have pixel-perfection unless you control the hardware Nov 21 02:32:06 period Nov 21 02:32:10 well there really isn't any way to make it look the same on android. canadiancow stated the only two options you have Nov 21 02:32:35 the sales resps have ipads and android tablets of there own and they want to have an app the reps can install on there own hardware and walk around with Nov 21 02:32:45 ok so how about this Nov 21 02:32:51 in most cases the reps dont have internet when they are out and about Nov 21 02:32:59 you're already cutting off part of the west and the east Nov 21 02:33:11 so all the content is localized on the kiosks, ipad app and android app Nov 21 02:33:21 why not extend that out to 16:9, and then selectively cut it off on 4:3 Nov 21 02:33:41 mhmm that would work as well Nov 21 02:33:59 wouldn't be the same on all devices but it would give catepillar his looks haha Nov 21 02:34:01 on the video that would work as you really wouldnt be able to tell Nov 21 02:34:11 is there a way to crop it on 4:3 screens Nov 21 02:34:31 well you can do it trivially for static images in an ImageView Nov 21 02:34:34 im not sure about videos Nov 21 02:35:06 it's definitely possible, i just have no experiene Nov 21 02:36:02 grr that wont work either Nov 21 02:36:26 it may crop it vertically and i cant have that Nov 21 02:36:33 no it wont Nov 21 02:36:52 you tell it to match its parent in one direction, and center in the other Nov 21 02:37:00 maintaining aspect ratio Nov 21 02:37:02 i dont care about the horizonals it can chop as much off of them as it wants Nov 21 02:37:11 ah Nov 21 02:37:25 center parent width wrap_content Nov 21 02:37:43 height match_parent Nov 21 02:37:48 well not quite Nov 21 02:38:31 on an imageview, it really comes down to the scaleType Nov 21 02:39:13 and you'd want center_crop in this case Nov 21 02:39:21 but again, i dont nkow about videos Nov 21 02:39:31 not sure i can do that in VideoView though Nov 21 02:41:50 btw dblosevn: you mentioned the packetsniffer that can sniff out what im sending over to my server via ssl, it is to my knowledge that ssl encrypts the data being sent. are you saying that a malicious user could copy that salt im sending to my server in encrypted form and then spoof it on an invalid attempt? So basically what im asking is, does SSL encrypt differently each time or is it Nov 21 02:41:51 using the same private and public key? Nov 21 02:42:12 nothing from the client can be trusted Nov 21 02:42:20 any protection you think of can be bypassed one level lower Nov 21 02:42:29 KaiKai: read further they would have to have an ssl proxy between them and your remote server then they can read the packets in plantext Nov 21 02:42:35 *plaintext Nov 21 02:43:20 eg they force your app to use there ssl proxy they sniff the packets and forward them on to the remote server Nov 21 02:43:50 ahh, understood Nov 21 02:44:16 KaiKai: I do this a lot when i need to reverse engineer an api Nov 21 02:44:18 so it would still be a relatively timely task right? Nov 21 02:44:35 KaiKai: i could set up the environment in about 3 minutes Nov 21 02:44:40 bleh Nov 21 02:45:17 faster if i used a droid emulator Nov 21 02:45:30 so the sniffed packets are in plaintext?! Nov 21 02:45:40 ya if it goes through an ssl proxy Nov 21 02:45:42 wait nvmd Nov 21 02:45:44 since its client Nov 21 02:46:45 your app connects to ssl proxy -> sniffer attched to proxy -> sniffer reads and selectively can change packets -> sniffer reencrypts the packets and forwards them on to remote server Nov 21 02:47:18 so ssl is practically useless on a client level Nov 21 02:47:27 the only way to beat that is to encrypt the data before you send it out Nov 21 02:47:35 mmhmm Nov 21 02:47:38 so a double encryption Nov 21 02:48:07 i probally wouldnt worry about ssl if my data was already encrypted Nov 21 02:48:26 as long as your private keys are protected Nov 21 02:48:26 ssl = asymmetrical and from the application symmetrical Nov 21 02:48:32 or both asymmetrical? Nov 21 02:48:53 well the private keys would be in the apk wouldnt they? Nov 21 02:49:09 the problem is the app ::thinks:: it has an ssl connection but the implementation i described is knownb as a man in the middle attack Nov 21 02:49:20 yea Nov 21 02:49:28 thought ssl specifically guarded against man in the middle attacks Nov 21 02:49:29 so i was confused Nov 21 02:49:33 ya it does Nov 21 02:49:40 but the problem is Nov 21 02:49:43 the man in the middle is the client Nov 21 02:49:44 depending on how your app is configured Nov 21 02:50:17 if your app allows a connect when VERIFY_PEER is false man in the middle attacks are possible Nov 21 02:50:58 is STRICT_HOSTNAME_VERIFIER what youre speaking of? Nov 21 02:51:05 not sure on android Nov 21 02:51:21 but its a moot pint if they add there cert to the trusted certs Nov 21 02:51:25 *point Nov 21 02:51:50 js trying to make it take more than a month or so Nov 21 02:51:51 lol Nov 21 02:52:05 best security is a security thats worth more than the secured item Nov 21 02:52:16 worth more to beat* Nov 21 02:52:16 ssl is there to protect the client not you, the client has many options to circumvent that protection Nov 21 02:53:00 how much is an upgrade of this app? Nov 21 02:53:10 ? Nov 21 02:53:11 eg a man in the middle attack is not possible unless the client wants one Nov 21 02:53:14 or why wouldn't users upgrade? Nov 21 02:53:29 well its just a security issue of mine Nov 21 02:53:42 i need to make sure i can restrict access to an application if its deprecated Nov 21 02:53:46 SpeedEvil: generally game developer require upgrades when exploits have been found Nov 21 02:54:07 ex. angry birds in app billing being expoited Nov 21 02:54:15 change the protocol. Nov 21 02:54:20 thats what im trying to do Nov 21 02:54:27 every month a new version with different protocols Nov 21 02:54:33 if people still have the version that had the exploit and were able to spoof the new version of the app they could still utilize the exploit think xbox live Nov 21 02:54:49 yea, thats why im trying to make any exploit harder than 1 month Nov 21 02:54:52 you can teven connect if you have an older version of the api Nov 21 02:54:53 or whatever time i can get Nov 21 02:55:19 f2prateek, i ended up just using RemoteViews to set an onclickpendingintent Nov 21 02:55:24 and it worked Nov 21 02:55:53 WPE is a game developers nightmare lol Nov 21 02:56:04 so private key encryption in the class before the information is sent so it would require you to decompile the application first Nov 21 02:56:22 and change the private key every update, would that work? Nov 21 02:56:34 any 12yo with WPE and a couple hours can figure out a way to exploit pretty much any game lol Nov 21 02:56:36 it wouldn't work of course, but would it force a decompilation Nov 21 02:57:23 sure. Nov 21 02:57:26 ya rotating the public keys would work, they would have to decompile or at the minimum attach a debugger to the app to get the key Nov 21 02:57:44 mhmm kk Nov 21 02:58:06 you can still attatch a debugger even when the application explicably set debugging to false? Nov 21 02:58:11 haha Nov 21 02:58:17 hm, too bad therealgent left Nov 21 02:58:44 there is no magic bit that makes an application undebuggable in the CPU Nov 21 02:59:12 i know this is vague, but is there an average amount of time for decompilation after obfuscation? or debugging? Nov 21 02:59:13 it probably wont work on most devices. https://gist.github.com/4122747 Nov 21 02:59:16 setting debugging to false just makes it tougher to unjderstand what your seeing **** ENDING LOGGING AT Wed Nov 21 02:59:58 2012