**** BEGIN LOGGING AT Fri Jul 13 02:59:58 2012 Jul 13 03:01:18 Could it be because there are too many items in my view? Jul 13 03:05:08 Does anyone know if it is possible at all, to simulate the picture that the simulator is taking? Jul 13 03:06:38 what? Jul 13 03:07:04 I think he means can you plug a webcam into your app to see how the picture comes out Jul 13 03:07:43 Either a web cam or tell it to use a file. Jul 13 03:09:42 sorry i dont know Jul 13 03:11:50 guys a bunch of my items on my UI disappeared, i tried reverting the changes before they disappeared and theyre still gone :/ Jul 13 03:15:40 Does anyone know the maximum number of UI elements? Jul 13 03:16:52 it's a very bad sign that you are asking that Jul 13 03:19:46 haha Jul 13 03:19:51 i recognise that Jul 13 03:19:57 but its because my app has so many buttons Jul 13 03:20:01 and other things Jul 13 03:20:59 maybe 100 valve buttons each of which have approximately 2 buttons, an edit text and a TextView and a few nested layouts Jul 13 03:21:13 sounds like a nightmare Jul 13 03:21:19 and it is Jul 13 03:22:09 Belacan: set layout weight to 1 for each UI elements on your screen, and you might be able to see them! :D Jul 13 03:22:49 napster thanks for your reply, I was able to see them before i put the 3rd tab in, then 3/4 on my second tab disappeared Jul 13 03:23:04 of* Jul 13 03:23:37 I have four tabs, is it possible to split this UI into 4 somehow? Jul 13 03:23:46 Belacan: ok, so you use a tab activity? Jul 13 03:24:03 let me show yopu\ Jul 13 03:24:18 Belacan: I hate tab activity so I use viewflippers to create tabs Jul 13 03:24:40 ohh Jul 13 03:24:41 interesting Jul 13 03:24:47 this is what i use Jul 13 03:24:47 http://pastebin.com/E9x297Rx Jul 13 03:25:23 Does the tabhost load everything at once? Jul 13 03:25:34 and sets things invisible when theyre not used? Jul 13 03:25:37 something liek that? Jul 13 03:26:26 Belacan: Ah, you are using a TabHost without a TabActivity right? Jul 13 03:26:27 so before I added content into tab3 it was working fine Jul 13 03:26:46 You might be right? Jul 13 03:26:57 Should i put a TabActivity in there? Jul 13 03:27:09 One of the annoying things is all my XML is in one page Jul 13 03:27:15 if i could split it up that would be a lot easier Jul 13 03:27:36 if I use a non-uiThread to call UIThread.setContentView(id), why am I getting a CalledFromWrongThreadException? Jul 13 03:27:41 Belacan: Not necessarily, but you need to get the local activity manager and dispatch it, let me get you some code. Jul 13 03:29:58 I'm not sure this will help but take a look : https://gist.github.com/3102526 Jul 13 03:30:34 Cool, thanks very much napster! Jul 13 03:30:40 i am trying to profile my app. only the main thread is showing in traceview (i am using the Debug class to generate the trace file). I should see info from two other threads. whats up? Jul 13 03:30:42 its much appreciated Jul 13 03:31:24 So thats how you create a local activity manager Jul 13 03:31:43 what does it do? Jul 13 03:32:05 I just create it and it could help manage everything? Jul 13 03:34:14 I have Threads A (UIThread) and B. If B calls A.setContentView(id), why am I getting CalledFromWrongThreadException? Jul 13 03:35:24 Belacan: http://developer.android.com/reference/android/app/ActivityManager.html Jul 13 03:36:07 Belacan: http://developer.android.com/reference/android/app/LocalActivityManager.html Jul 13 03:36:54 themirror: calling a method on a Thread _object_ is not the same as having the method called _by that thread_. Jul 13 03:37:13 i don't think that's his issue Jul 13 03:37:20 you can only handle UI stuffo n the UI thread Jul 13 03:37:49 Belacan: This is exactly what you do :) - http://developer.android.com/reference/android/widget/TabHost.html#setup(android.app.LocalActivityManager) Jul 13 03:37:50 ryanm: i see. how can i get UI thread to change it on command of Thread B? Jul 13 03:38:18 or wait oh Jul 13 03:38:20 cool cool thanks! Jul 13 03:38:23 View.post or Activity.runOnUiThread would both work Jul 13 03:38:29 maybe he is calling it on the thread object Jul 13 03:39:58 yeah in your activity, themirror, define a method like callback(){ runOnUiThread(new Runnable { public void run() { ThisActivity.setContentView(id)l; } }); Jul 13 03:40:05 if A is an activity, you could do A.runOnUiThread(new Runnable() { public void run() { A.setContentView(id); }}); Jul 13 03:40:17 or that would also work Jul 13 03:40:20 ryanm: ok ill investigate that, thanks so far Jul 13 03:40:45 anyone? Jul 13 03:40:50 but call it on the instance of the activity actually Jul 13 03:41:01 A.this.setContentView(id) Jul 13 03:41:43 I was assuming A was an instance. Not sure if that was a correct assumption Jul 13 03:44:56 yeah hard to tell with the vague name and capitlization Jul 13 03:45:01 agreed Jul 13 03:45:08 and the way he posed the question Jul 13 03:46:26 that's one thing that is a little sketchy for newcomers, the fact that you don't instantiate activities and hold a reference to it.. a lot of people seem to get tripped by that Jul 13 03:46:39 don't realize there's an object instance of it living Jul 13 03:46:57 that, and the constant need for a Context Jul 13 03:48:59 yeah that is a little tricky cause a lot ofp eople default to using the activity as context and that can cause leaks Jul 13 03:55:19 so when using Debug to generate trace files for profiling, do i need to call Debug.startMethodTracing() in each thread? Jul 13 03:59:45 hey guys, kinda just starting out, and I was wondering how, in ADT, to create a new custom View. Is there a graphical way to do it, or do I just create a new class and hack together the xml files for it? Jul 13 04:03:13 i think i will hate java Jul 13 04:03:49 i shall develop C, and after that screw it, good night Jul 13 04:03:51 IsmAvatar: you have do it in java, but you can preview it in ADT, as far as I know Jul 13 04:05:33 i read an article about android, it was a few years old. are java applications still the norm? Jul 13 04:05:55 is there a new article i should read? Jul 13 04:06:10 i am a toolchain developer Jul 13 04:06:14 Yes, you should be developing in Jul 13 04:06:21 Java Jul 13 04:06:27 Read the docs: d.android.com Jul 13 04:08:18 i specialize is hardening the base system and toolchain, and that's a problem with java applications Jul 13 04:08:41 ashes, uh explain? Jul 13 04:09:06 ashes, hardening the base system? toolchain? Jul 13 04:09:29 sound big Jul 13 04:10:17 caverdude: position independent executables, stack protection, auditing, string fuction checking Jul 13 04:10:35 function Jul 13 04:10:54 like openbsd Jul 13 04:11:45 ashes ok, with java you are working inside a vm.. so no low level stuff, as far as I know on android, though java has a native interface, not sure if it can be used on android Jul 13 04:12:45 yes, android uses java, which has no C language protection options available to me. only options written in C Jul 13 04:12:53 although the android NDK pretty much gives you access to all the native stuff you need Jul 13 04:13:31 if application developers give C source code, then thing change for me Jul 13 04:15:23 mm Jul 13 04:16:15 i'm really talking about cyanogenmod, not android Jul 13 04:16:25 ashes: this isn't really the right place for that Jul 13 04:16:28 try #android-root Jul 13 04:16:34 ok Jul 13 04:16:35 this is for application development Jul 13 04:51:46 Hi all Jul 13 04:52:00 hey Jul 13 04:53:19 so when using Debug to generate trace files for profiling, do i need to call Debug.startMethodTracing() in each thread? presently, i am not, and only one thread is showing up in traceview Jul 13 04:57:17 Is it possible to make tabs start activities within a main activity? Jul 13 05:04:53 Belacan: if i understand that correctly, yes Jul 13 05:05:31 unless you mean having an activity displaying within another activity Jul 13 05:05:36 is it as simple as adding 'new Intent(this, Activity.class); in the line? Jul 13 05:05:39 yeah Jul 13 05:05:41 thats what i mean Jul 13 05:05:54 basically i have an interface with tabs Jul 13 05:06:01 I want the overall interface to remain the same Jul 13 05:06:03 in which case, you can't do that. You should look at Fragments to do that Jul 13 05:06:06 but the tabs to change activities Jul 13 05:06:31 Or would there be any downside in reproducing the overall interface in the different activities? Jul 13 05:06:32 no you can have the tab change to another activity Jul 13 05:07:19 while keeping some of the original activity running? Jul 13 05:07:27 Belacan: If I were you: http://viewpagerindicator.com/ Jul 13 05:07:44 i'll send you an apk, run it and see if thats the behaviour you want Jul 13 05:07:45 I stand corrected, you apparently can nest them Jul 13 05:07:57 Fragments and tabs supported across versions Jul 13 05:08:13 sweeeeeet Jul 13 05:08:23 thanks, much appreciated. Jul 13 05:09:18 Knossos: whats the difference between that and tabs? Jul 13 05:09:51 Compatible back to ~1.6, perhaps even lower Jul 13 05:10:29 Fragments are a 3.0 introduction Jul 13 05:10:33 Belacan: http://cl.ly/0c0Q1u0I0s112L0X3R3Q Jul 13 05:17:10 f2prateek: thats interesting Jul 13 05:17:17 but are there any nested tabs? Jul 13 05:17:23 *nested activities Jul 13 05:17:47 thers a tab host with two activities Jul 13 05:18:02 on clicking any category Jul 13 05:18:09 a new activity is launched Jul 13 05:18:14 then select the offer Jul 13 05:18:14 If you wanted to, could you add an interface around the tab host which didnt change? Jul 13 05:18:19 again new activity is launched Jul 13 05:18:35 interesting Jul 13 05:18:56 Yeah its something like that i suppose Jul 13 05:21:53 so you want nested tabs< like two tabs at the first level, and two tabs held in the first tab? Jul 13 05:22:35 yo dawg i heard you like tabs Jul 13 05:23:25 lol Jul 13 05:28:13 Okay, I've been fighting with this for a while: I am trying to make sure a layout (inflated) scales up (layout_height="match_parent") with a *specific* aspect ratio. Jul 13 05:29:02 the images are all scaleType="centerInside" and run the gamut of dimensions (cropped pages, everything from checks to receipts) Jul 13 05:29:27 And one of them is an xml-defined shape drawable. Jul 13 05:29:54 They're all appearing in a Gallery, but I can't seem to get reliable access to the sizes to scale them with. Jul 13 05:30:08 I feel like I'm missing something. Jul 13 05:45:21 Anyone heard of Skout.com? Jul 13 05:47:36 is set content view different from starting an activity? Jul 13 05:48:08 From what I understand setContentView() sets the layout Jul 13 05:48:15 an activity is started with an intent Jul 13 05:48:22 Belacan: Yes. All activities (that I've seen) must call setContentView as part of their own creation. Jul 13 05:48:42 but setContentView() doesn't start the activity Jul 13 05:48:49 It's just a necessary component to an activity Jul 13 05:48:54 If i were to use tabs to set different content views this means that the rest of the UI elements will be running within the activity right Jul 13 05:49:06 in the background Jul 13 05:55:17 I' Jul 13 05:55:30 I'm not sure what you're asking, but it sounds like a job for TabHost, FragmentActivity, and Fragments Jul 13 05:59:35 ` Jul 13 06:02:41 btw setContentView is not always necessary, only if the activity needs to show something to the user then it is Jul 13 06:03:35 I'll show you my user Jul 13 06:17:57 found a good tutorial on the problem here you go: http://www.androidhive.info/2011/08/android-tab-layout-tutorial/ Jul 13 06:18:06 if anyone else doesnt know and wants to.. Jul 13 06:18:12 thanks for your help chaps! Jul 13 06:38:17 sup everyone Jul 13 06:42:42 SUp f00l Jul 13 06:44:50 Is it possible to play two audio in parallel using the media framework? Jul 13 06:51:51 anyone know where i can get a question answered about the youtube API? Jul 13 06:52:55 quit Jul 13 06:52:57 forbex: have you tried stuff like #google or #googleapi / googleapis / google-api ... et ? Jul 13 06:52:59 lol Jul 13 06:56:04 How can find out what programs/packages are dependant on another one (doubleTwist, some media library database). I'm cleaning my sd card and wondering what's safe to remove. Perhaps everything i don't recognize is safe? Jul 13 07:07:14 I have match_parent in the width of my linear layout. It's a vertical one, it takes up the width of the whole screen. I have two edittexts too that both are match_parent, without any padding or margin but they are still not the width of the screen Jul 13 07:07:18 They are like 1/3 Jul 13 07:10:52 Is there an easy way to simulate an alpha-transition animation on a text view, in the custom view displaying that text through on draw? Jul 13 07:13:33 hey Jul 13 07:13:51 registeredservicescache seems to remove my service on reboot on 4.1.1 Jul 13 07:14:05 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/content/pm/RegisteredServicesCache.java the relevant part starts around line 322 Jul 13 07:14:10 how do I debug this? Jul 13 07:14:18 do I need to recompile android? Jul 13 07:14:48 I'd love to be able to set some breakpoints somewhere or even just get more verbose logging... Jul 13 07:21:22 Funny, the width of the edittext is larger when I build with ant compared to eclipse Jul 13 07:21:34 mots: you mean the service becomes unavailable after reboot? Jul 13 07:21:45 appel1: yes Jul 13 07:22:04 https://redmine.limun.org/issues/153#note-12 is the relevant logcat output Jul 13 07:25:52 appel1: any experience with these types of issues? Jul 13 07:26:20 mots: no, but I can reproduce it with haxsync on my gnex :\ Jul 13 07:27:13 oh well, that's something, I guess :D Jul 13 07:27:16 so can lots of others Jul 13 07:27:19 but not me Jul 13 07:27:25 which makes it hard to fix Jul 13 07:27:45 would you be willing to give me the logcat output of a few testing apks? Jul 13 07:29:08 mots: have you set it to prefer to install to external storage? Jul 13 07:29:46 I didn't set any preference so far, but I also suspected that this might somehow be relevant Jul 13 07:30:09 as some users reported getting "Could not install on USB storage or SD card" errors when trying to install on JB Jul 13 07:30:47 I now added android:installLocation="internalOnly" , but according to android doc this should be default anyways Jul 13 07:39:46 hi, on an android 4 avd, I see too many logcat lines like this: I/Choreographer(642): Skipped 31 frames! The application may be doing too much work on its main thread. Jul 13 07:40:01 the same code is working normally in 2.1 Jul 13 07:40:39 anyone has the same issue? what is all these 'Choreographer' stuff, is this ok to just let it there? Jul 13 07:41:50 I'd say the important message is the second half Jul 13 07:42:18 Android 4 tries harder to keep the UI responsive by pushing blocking operations off the UI thread Jul 13 07:42:21 they're all the same except the number of frames o.O Jul 13 07:42:39 you're doing something like network or file access on your UI thread Jul 13 07:43:21 LOLLLLLLLLLL Jul 13 07:43:29 has anyone here had one of those moments? Jul 13 07:43:53 so I need to scan for network/file io usage on UI Thread, anything else? I'd say the error message is not so helpful in this case Jul 13 07:44:30 these moments being? Jul 13 07:44:55 where you wake up naked next to a dead transexual prostitute? Jul 13 07:44:58 If so, then yes. Jul 13 07:45:04 One of those moments when you refactor your entire code, learning about different activity arrangements within tabs, spending literally six hours on this, when your code is just about to work again you realise what caused the problem in the first place. Using android:width = "match_parent" Jul 13 07:45:31 instead of "wrap_content" Jul 13 07:45:37 android i should never have doubted you :/ Jul 13 07:45:45 It happens to the best of us Jul 13 07:45:49 any developer goes through those Jul 13 07:45:55 s/any/all Jul 13 07:46:02 s/developer/developers Jul 13 07:46:13 lol Jul 13 07:46:15 s/goes/go Jul 13 07:46:22 should have just re-written that sentence Jul 13 07:46:29 lol im lost Jul 13 07:46:35 Is there a maximum width of an edittext or is my setup just buggy Jul 13 07:46:50 android has no bugs Jul 13 07:46:50 I have match_parent and the parent layout is the whole width but the edittext isnt Jul 13 07:46:52 take it from me Jul 13 07:46:57 lol Jul 13 07:47:01 ahh, s/word/replacementword is a vi command to look for an occurence of a string in a file and replace it Jul 13 07:47:03 dont doubt it Jul 13 07:47:15 very geeky Jul 13 07:47:18 yes Jul 13 07:47:25 zook Jul 13 07:47:30 are you sure its not within another layout? Jul 13 07:48:02 occurrence* Jul 13 07:48:12 I wish my Nexus 7 would HTFU Jul 13 07:48:19 anyone from Australia received one yet? Jul 13 07:48:21 Naish: more like ed - s// predates vi :) Jul 13 07:48:28 Ive got a galaxy tab 2 Jul 13 07:48:32 but it belongs to the company Jul 13 07:49:01 Before my time :D Jul 13 07:49:03 Naish: also, what's the tax/shipping like in .au? Jul 13 07:49:11 I paid $319 all up Jul 13 07:49:16 includes tax + shipping Jul 13 07:49:20 that's the 16GB one Jul 13 07:49:20 for 16GB? Jul 13 07:49:29 yeh Jul 13 07:50:09 romainguy: thought you might find it interesting all the different kinds of applications your android is being used in, im developing an app that will control various parts of an offshore cementing system used on drilling rigs Jul 13 07:50:10 presumably 250 or so without tax/shipping? Jul 13 07:50:23 any easy way for make a left panel in apps, like in google+? Jul 13 07:50:43 yeh Jul 13 07:52:04 oh, leftnavigationbar library; i will test it Jul 13 07:52:47 Belacan I am positive Jul 13 07:52:54 that's a lot of shipping, assuming 10% GST... Jul 13 07:53:11 Its a linear layout as the parent one. That one has a backgorund and covers the complete width Jul 13 07:53:19 edittext does however not Jul 13 07:54:41 Can you post your code pls :))) Jul 13 07:55:45 android is not buggy Jul 13 07:55:54 dont doubt it Jul 13 07:55:58 i just made that mistake Jul 13 08:00:14 Belacan you have pm :/ Jul 13 08:00:19 hmm Jul 13 08:00:20 i got it Jul 13 08:00:30 and what is the length of your parents width Jul 13 08:00:31 ;) Jul 13 08:01:11 match_parent Jul 13 08:01:20 so one of them is correct Jul 13 08:01:23 The gray part in the SS is the linearlayout parent Jul 13 08:01:24 and the other is too small Jul 13 08:01:34 ahh Jul 13 08:01:36 i cant access the ss Jul 13 08:01:54 the internet is blocked for that site Jul 13 08:02:05 ok try this Jul 13 08:02:09 go to your graphical layout Jul 13 08:02:17 click on your edittext Jul 13 08:02:22 where does the blue box extend to Jul 13 08:03:10 hum, in that interface it has the small size Jul 13 08:03:16 Trying to move it to match parent just snaps it back Jul 13 08:03:48 see what happens when you switch the order Jul 13 08:03:52 put the smaller one above Jul 13 08:04:28 they have the same size Jul 13 08:05:12 ixc: http://android.amberfog.com/?p=758 Jul 13 08:05:30 thanks Jul 13 08:05:51 Problem found Belacan Jul 13 08:05:59 The background of the linearlayout Jul 13 08:06:09 what about it Jul 13 08:06:16 Its a 9 patch Jul 13 08:06:22 If I removed the background it matches parent Jul 13 08:06:30 AHAH Jul 13 08:06:33 good job Jul 13 08:06:48 a word of advice Jul 13 08:06:54 never doubt android Jul 13 08:07:21 :) Jul 13 08:10:58 If somebody have a clue about my problem (javascript with webview) http://stackoverflow.com/questions/11448284/difference-between-loadurl-and-loaddata-with-javascript Jul 13 08:20:56 In a custom viewgroup extending linearlayout, I am adding some custom views programatically. I would like to space them apart equally (like layout weight) where should I go about doing this? Jul 13 08:41:20 hey Jul 13 08:41:50 Hello Jul 13 08:42:04 anyone else had this problem: i have a scroll view which i've subclassed and i've made it so you can swipe to view the next item, but because I'm overriding the onTouch to do this and returning true, on my galaxy s2 the over scroll fade gets stuck Jul 13 08:42:15 it's fine on every other device, just ICS on my S2 Jul 13 08:43:42 when i click on home key and then application icon at that time my application will start from first activity rather than last activity.can any body know how to open last activity which is running? Jul 13 08:46:50 is there a way to get a more sophisticated error message than: "android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed" Jul 13 08:47:02 hahahaha Jul 13 08:47:08 thats got to be the question of the day Jul 13 08:47:37 would you rather a talking paper clip pop out? Jul 13 08:47:49 Belacan: i would like to know which contraint failed ... Jul 13 08:48:07 i which row Jul 13 08:48:08 is there a big list of the error messages? Jul 13 08:48:13 usually you can get hints Jul 13 08:49:24 Belacan: are you reffering to the stacktrace? Jul 13 08:51:57 Belacan: the reason i am asking that is because sqlite provides better error messages Jul 13 08:52:12 it just seems that android handles all contraint violations the same way Jul 13 08:52:23 an that's just ooo Jul 13 08:54:16 "Error: column foo is not unique" for instance Jul 13 09:00:50 http://theoatmeal.com/blog/apps Jul 13 09:01:47 so true Jul 13 09:02:02 hello, when i click on home key and then application icon at that time my application will start from first activity rather than last activity.can any body know how to open last activity which is running? Jul 13 09:02:23 it should already Jul 13 09:02:34 do you have no_history set in the manifest? Jul 13 09:02:41 no Jul 13 09:03:06 is it require to set? Jul 13 09:03:17 no if you set it then it would do what you're saying Jul 13 09:03:30 you sure you don't have a setting set in your phones settings to always kill an app when its closed? Jul 13 09:03:48 i can layout child views of a custom parent in either onlayout or onmeasure? Jul 13 09:06:46 no i have not set to always kill in my phone Jul 13 09:07:46 I have searched about solve this issue from last one week but still i not got any solution please help me Jul 13 09:08:56 CallumTaylor:if i once exit the application and then open then it will work like open the application from last running activity on home key press and then application icon press Jul 13 09:09:27 hmm Jul 13 09:09:35 have you tried another device? Jul 13 09:09:39 ya Jul 13 09:09:45 same problem? Jul 13 09:09:49 ya Jul 13 09:10:34 i have tried on galaxy y,galaxy fit,and other also Jul 13 09:10:50 not sure.. Jul 13 09:10:53 try this http://stackoverflow.com/questions/3781089/android-home-button-not-resuming-last-activity Jul 13 09:11:33 if i run application in avd from eclipse then this issue is not come but if i install apk from gmail and run the application then this issue will come Jul 13 09:11:56 can't trust the emulator Jul 13 09:12:57 ya that is true and also if i run application in mobille from eclipse then also this issue will not come Jul 13 09:22:26 Trying to use ActionBarSherlock Jul 13 09:22:33 I've added it as a library Jul 13 09:22:42 but I can't get access to the styles Jul 13 09:26:16 what SDK are you compiling your app with? Jul 13 09:26:43 4.0.3 Jul 13 09:28:42 The ABS themes show up in the Layout Editor, but I can't set them using android:theme Jul 13 09:30:12 Hey Hi I was using JSON method to find out the longitude and latitude of a place Jul 13 09:30:32 but I am getting a error saying JSON Array can not be resolved as a type Jul 13 09:30:42 I had made all the imports Jul 13 09:31:10 try JSONArray Jul 13 09:32:07 Ivru, ? Jul 13 09:34:56 Ivru, actually earlier I was trying to do it by Geocoder but when ever I trying it in emulator it is saying Jul 13 09:35:02 service not available Jul 13 09:35:18 so I tried with json but still throwing runtime exceptions Jul 13 09:36:25 niteshnarayanlal: need the json string. Put in on a pastebin Jul 13 09:36:32 and the code you are using Jul 13 09:37:59 Ivru, http://fpaste.org/rTY3/ Jul 13 09:38:34 I can also access the ABS classes Jul 13 09:38:38 but I cannot set the theme Jul 13 09:38:41 this is very confusing Jul 13 09:38:54 Ivru, http://fpaste.org/DSdt/ :Logcat Jul 13 09:39:06 are you sure "results" is an array Jul 13 09:39:23 niteshnarayanlal: line 87 and 91 you are doing.getJSONObject(0) instead of getJSONArray Jul 13 09:39:45 that stack trace doesn't match with your problem Jul 13 09:40:07 yep Jul 13 09:40:30 if you want a JSONArray you must use getJSONArray et not a simple get or getJSONObject Jul 13 09:40:44 he is Jul 13 09:40:52 the initial get("results") is being casted to jsonarray Jul 13 09:41:26 I'm assuming the json looks like {"results":[{"geometry":{"location":{"lat", "lng"}}]} Jul 13 09:41:40 Ivru, I was following this http://stackoverflow.com/questions/5205650/geocoder-getfromlocation-throws-ioexception-on-android-emulator Jul 13 09:41:43 :P Jul 13 09:41:53 * niteshnarayanlal heads for some more research :) Jul 13 09:42:34 niteshnarayanlal: follow this one : http://developer.android.com/reference/org/json/package-summary.html Jul 13 09:46:34 What do I need to do to be able to have two versions of the same app installed at the same time? Change the name? Or the package-names? Jul 13 09:46:56 package name Jul 13 09:48:07 Ivru, the thing is getJSONArray takes integer as the parameter , but second time a string is been passed Jul 13 09:49:26 I mean lon = ((JSONArray)jsonObject.get("results")).getJSONArray(0) Jul 13 09:49:27 .getJSONArray("geometry").getJSONArray("location") Jul 13 09:49:27 .getDouble("lng"); Jul 13 09:49:50 will show the error as in second parameter I ma passing geometry which is a string Jul 13 09:49:55 niteshnarayanlal: i don't even know what does your json looks like Jul 13 09:50:36 Ivru, I am trying to find the longitude and latitude of a location entered by the user using google API Jul 13 09:50:36 XeruX: the package name Jul 13 09:50:40 it's most likely that the first getJSONArray should be getJSONObject Jul 13 09:50:51 JSONArray=[1,2,3] Jul 13 09:51:06 JSONObject = {"key": 42} Jul 13 09:51:45 might have gotten the JSON syntax wrong for the object Jul 13 09:51:48 but you know what I mean Jul 13 09:53:29 MDijkstra, http://fpaste.org/rTY3/ have a look at this please Jul 13 09:53:46 any simple way for manage sqlite database with multithread ? Jul 13 09:54:12 singleton + synchronizes? any better? Jul 13 09:55:03 niteshnarayanlal: ((JSONArray)jsonObject.get("results")) Jul 13 09:55:08 ^ that makes no sense Jul 13 09:55:23 it's either an array or an object Jul 13 09:55:29 you can't convert it by casting it Jul 13 09:55:54 or wait Jul 13 09:55:59 nevermind that :) Jul 13 09:56:09 oh ok actually I am trying this json for the first time so was referring blogs etc Jul 13 09:56:16 nah, that's correct Jul 13 09:56:18 I missed something Jul 13 09:56:24 ohok Jul 13 09:56:36 you should print out the raw json Jul 13 09:56:41 MDijkstra, http://fpaste.org/DSdt/ Jul 13 09:56:50 I am getting these runtime exceptions Jul 13 09:56:52 oh, lol Jul 13 09:57:05 niteshnarayanlal: you're blocking your main thread fetching the json over the network Jul 13 09:57:12 that's not allowed Jul 13 09:57:31 niteshnarayanlal: have a look at AsyncTask Jul 13 09:58:00 that will allow you to do it in the background so you don't get this exception Jul 13 09:59:43 the stack trace doesn't match with a json cast error Jul 13 10:00:44 CallumTaylor, MDijkstra I am totally confused right now :P Jul 13 10:17:45 hello? Jul 13 10:20:28 why do i keep ending up in situations where i find myself wanting to put fragments inside fragments Jul 13 10:21:35 mdpt: why u ctcp all channel? Jul 13 10:22:56 its an test Jul 13 10:23:03 sorry Jul 13 10:23:10 for that Jul 13 10:23:30 when u close a dialog, how can you let the activity behind it to knw it has closed? Jul 13 10:28:32 caseofinsani: ondismisslistener? Jul 13 10:29:56 ixc: thx Jul 13 10:29:57 when you finish an activity, how can you let the activity that started it to knw it has finished? Jul 13 10:30:51 why its need to know? Jul 13 10:31:17 if user going back, its run again from onresume; or u can start second activity for result Jul 13 10:32:19 ook, so if the activity ends, onresume will be called in the activity that started it Jul 13 10:32:57 onresume is call when u back to activity; even if second not end Jul 13 10:33:15 *is called Jul 13 10:33:20 im asking this cause i made an activity start another activity that performs a task. then the first activity has to update itself after Jul 13 10:33:56 start activity for result, and make a result with need update or no :) Jul 13 10:34:26 can you be specific about what that result is? Jul 13 10:34:30 i have no idea how to code that Jul 13 10:34:41 like how it can notify updates Jul 13 10:35:01 google: startactivityforresult Jul 13 10:35:25 ixc: oh haha thx very much Jul 13 10:48:00 if i want to access a sqlitedatabase via cursorloader, do i need a contentprovider? Jul 13 10:48:43 cursorloader needs a URI, is there a URI for a sqlitedatabase object? Jul 13 10:55:14 EmbSeb: i use this way: http://stackoverflow.com/questions/7182485/usage-cursorloader-without-contentprovider Jul 13 10:55:37 so, are there alternatives to the commercial http://slickdevlabs.com/slick-usb-2-serial-library/ lib for accessing usb-serial in host mode? Jul 13 10:58:19 thx ixc Jul 13 10:59:37 c_L Jul 13 11:01:42 dominating! Jul 13 11:10:13 Hi does anyone know how to scale down a canvas, from say 256x256 -> 128x128? Jul 13 11:10:39 i've searched the canvas documentation but havent come up with anything Jul 13 11:11:32 Hey, im fairly new to android app dev, can android apps be made to talk to each other? As in one app gives a serivce which another app uses :) Jul 13 11:11:54 WhereIsMySpoon: yes Jul 13 11:12:10 so you can share stuff to say twitter, Facebook, if the user has it installed Jul 13 11:12:21 look at Intent and Intent filters Jul 13 11:12:38 Callum - ok, i was looking at giving wps data which one app gives to another app Jul 13 11:12:44 i will look at intent Jul 13 11:12:51 https://gist.github.com/2469954 here's an example of share Jul 13 11:14:01 CallumTaylor: so that shares the 'message' string with the BECShareApp app? Jul 13 11:14:08 or do i have it wrong Jul 13 11:14:19 no this is just an activity in an app that shares Jul 13 11:14:28 what happens is, you set what you want to do I.E ACTION_SEND Jul 13 11:14:32 which is share Jul 13 11:14:43 then the intent.createchooser makes a list of apps which will let you do it Jul 13 11:15:04 ah and then it shares what its sharing with all those apps? Jul 13 11:15:15 with what ever one the user picks, yes Jul 13 11:15:32 that seems fairly simple Jul 13 11:15:45 thanks a lot callum :) Jul 13 11:15:50 np Jul 13 11:23:39 Did anyone try to ask active Youtube players to promote your game/apps? Jul 13 11:23:41 How was it? Jul 13 11:29:20 anyone had problems visiting a facebook page in a webview, seems like i have to visit it go away then come back to get the page to appear, grr Jul 13 11:32:19 is there anyway in eclipse to make the code sense filter by class when i press ctrl space? Jul 13 11:32:33 i only want to see methods in that direct class Jul 13 11:41:41 JakeWharton: when set the divider colour for action bar tab, theres a small gap left at the end of the tabs, how can I fix this, its realy bugging me Jul 13 11:44:26 JakeWharton: http://s.scruffyfox.me/i%202012-07-13%20at%2012.44.14.png Jul 13 11:44:30 setting android:gravity in a style doesn't seem to work, what am i doing wrong? Jul 13 11:44:48 try doing just gravity Jul 13 11:44:49 aswell Jul 13 11:44:55 without the android: Jul 13 11:45:17 doesn't even compile Jul 13 11:45:26 It most definitely is android:gravity Jul 13 11:45:27 really? thats weird Jul 13 11:45:58 i know with actionbarsherlock some of the styles you i have to do both because they work on one device but not another Jul 13 11:46:01 its weird Jul 13 11:46:42 I dunno, I've never used just gravity... then again I've stopped supporting 1.6 a few years ago. Jul 13 11:47:03 gravity isn't deprecated? Jul 13 11:49:10 * HDroid lifts his arm Jul 13 11:49:14 Nope doesn't look like it Jul 13 11:49:48 well that's super annoying Jul 13 11:50:32 stork: maybe give us some more context... I'm using android:gravity in some of my styles and it seems to work. Jul 13 11:51:09 Hi all Jul 13 11:51:26 Hi Jul 13 11:51:40 does anyone know how to add some XML to a specific place using java? Jul 13 11:51:46 like, inside a particular linear layout Jul 13 11:51:48 for example.. Jul 13 11:52:04 Layout inflater Belacan Jul 13 11:52:20 cool cool Jul 13 11:52:21 thanks Jul 13 11:52:31 this is why i love this chatroom haha Jul 13 11:54:37 okay it may have been because i was using textAppearance instead of styl Jul 13 11:54:37 e Jul 13 11:56:45 any other keywords Ivru? Jul 13 11:57:20 CallumTaylor Newton would be turning in his grave Jul 13 11:57:37 He would be floating in his grave, actually. Jul 13 11:57:42 hahaha Jul 13 11:57:42 stork: sounds plausible. Jul 13 11:57:51 good one Jul 13 11:57:55 :P Jul 13 11:58:16 i'm doing center_vertical|right in a style, the `right` part isn't working but the first one is Jul 13 11:58:52 Is your textview actually bigger than its contents, though? Jul 13 11:58:53 gaz`: wat Jul 13 11:59:08 you saying gravity is depreciated Jul 13 11:59:20 i was saying it wasn't Jul 13 11:59:24 the textview is bigger than the contents Jul 13 11:59:25 deprecated you mean? Jul 13 11:59:32 ah good hes back to turning in his grave HDroid Jul 13 11:59:37 gravity cant depreciate Jul 13 11:59:38 :p Jul 13 11:59:54 I no longer appreciate gravity! Jul 13 11:59:58 maybe in a worm hole it can Jul 13 12:00:05 stork: hard to say without more context. Jul 13 12:00:16 stork: the feature is not broken, I can say that much :) Jul 13 12:05:16 fuck sake, fucking galaxy s2 keeps restarting itself Jul 13 12:05:20 shitty buggy os Jul 13 12:05:45 must be a monday ex. Jul 13 12:06:30 get a nexus, i hear theyre good Jul 13 12:06:32 <_> Jul 13 12:06:46 s2 is good too Jul 13 12:07:23 get a nexus Jul 13 12:07:24 it is, its just samsung have rushed ICS and its so buggy Jul 13 12:07:38 mine is rock solid Jul 13 12:07:42 i hear the iphone is p awesome Jul 13 12:07:47 :p Jul 13 12:07:59 it takes 2 minutes just for an app to crash... Jul 13 12:08:06 o.o Jul 13 12:08:13 yours must be seriously defect Jul 13 12:11:15 I'd take it back and get it replaces Jul 13 12:11:17 d Jul 13 12:11:31 meh its an os problem Jul 13 12:11:36 it was fine when it was running 2.3.3 Jul 13 12:11:46 i could do a factory reset Jul 13 12:11:47 mine is still fine on ICS.. *shrugs* :P Jul 13 12:11:52 but then id have to use my htc Jul 13 12:11:54 and that's even worse Jul 13 12:12:06 Can't you install a different ROM Jul 13 12:12:23 well i tried cyanogen mod, but i had problems with shared library missing for maps Jul 13 12:13:01 CyanogenMod 9 is still in RC isn't it Jul 13 12:13:32 idk i installed it when samsung were taking too long releasing ICS cause i needed to test ics specific bugs Jul 13 12:14:32 so you're not on stock ICS then? Jul 13 12:14:40 or did you revert? Jul 13 12:14:41 I'm on samsung's ICS Jul 13 12:14:51 ill factory reset it the weekend, need to get all my contacts and shit off Jul 13 12:15:00 i need to re setup my lumia anyway Jul 13 12:30:34 hey guys, when I charge my phone and turn off the display, it shows a floating battery with the charge percentage underneath. what is this screen called? and can you program it? Jul 13 12:32:31 Hi, I've been trying to use the GPU emulation feature on an AVD (Platform 4.0.3 and API level 15) Jul 13 12:33:10 I have a GTX260 GPU (+dual display in case that affect anything) on Windows 7x64. Jul 13 12:33:38 I set GPU emulation to yes on the emulator and launched it to get a black screen. Jul 13 12:34:16 When I set it to no and launched, I still get a black screen - but I do see the 'android' boot graph. And once that's done, I see the batter indicator and time in the top corner of the AVD Jul 13 12:34:22 But the rest is all black Jul 13 12:37:15 progzer: i got that battery indicator/time and rest all black when i first started the emulator, i just turned the emulator on/off with the power button it has and i got the proper unlock screen Jul 13 12:37:27 not sure why that happened but that seemed to fix it Jul 13 12:39:38 Thanks WhereIsMySpoon, let me try that. Jul 13 12:39:46 np Jul 13 12:41:38 is MediaPlayer class ok for light uses like alarm notification? Jul 13 12:45:05 Anyone else that has tried to set a custom font for listView items and experienced scroll-lag/jank ? Jul 13 12:46:23 gah, now how do I send the sdk manager to the background so I can run a few more iterations till the updates download. Jul 13 12:48:25 Shouldn't have launched from within eclipse. Jul 13 12:52:34 Launched AVD from the command line Black screen with -gpu on Jul 13 12:52:50 doesn't seem to be that much talk about it on stackoverflow :( Jul 13 13:02:57 the gmail app ( ics ) has this actionbar title with dropdown list, some of the items are 2 lines and some only 1 and they even have a title in there ( if you configured multiple accounts ) what would be the best way to do that? Jul 13 13:08:49 hmmm.. click on drobdown an than have you the accounts, click one account. In the next view have you the default from the gmail app item in the drobdown box. I think that the best way. Jul 13 13:09:43 @ dzan Jul 13 13:10:44 MarcAurelio, think you understood me wrong :) Jul 13 13:10:48 i mean how to implement that Jul 13 13:10:55 is it the default actionbar navigation with a list Jul 13 13:11:01 if so how can they have different views for the items Jul 13 13:11:07 if not how did they do that Jul 13 13:12:28 hmmm does (data[index + 1] << 8) & 0x0FF00 == (data[index + 1] & 0x00FF) << 8 Jul 13 13:13:41 I'm trying to use a ViewPager Jul 13 13:14:09 but It seems like it's incompaable with the support library Jul 13 13:14:38 danharibo: Are you sure you have imported the correct package from suport lib ? Jul 13 13:14:57 does the support library include a viewpager? Jul 13 13:15:13 http://developer.android.com/design/get-started/ui-overview.html#app < dzan here have you infos. I hope that you this infos help. Jul 13 13:15:22 mikedg_: yes Jul 13 13:15:26 Yeah, pretty sure. We have it in our app which is for 2.2 and up Jul 13 13:15:41 I am looking at this page http://developer.android.com/reference/android/support/v4/view/ViewPager.html Jul 13 13:15:57 and the TabsAdapter doesn't seem to want to work Jul 13 13:16:05 danharibo: thanks Jul 13 13:16:06 MarcAurelio, i'm sorry it doesn't :) but thanks for helping! Jul 13 13:17:28 might it be because I have a SherlockFragmentActivity instead of a normal Activity Jul 13 13:19:49 dzan, the Adding the drobdown Navigation: http://developer.android.com/guide/topics/ui/actionbar.html#Dropdown Jul 13 13:20:07 MarcAurelio, I know, said so already Jul 13 13:20:15 the issue is having it use 2 different layouts Jul 13 13:20:20 and a non clickable header Jul 13 13:20:30 Oh... Jul 13 13:25:45 Anyone else experiencing issues between the Android SDK and Eclipse v. Juno? Jul 13 13:26:08 hi Jul 13 13:27:21 Hi xroberx Jul 13 13:28:14 which is the best way to filter by minimum screen resolution ? I guess the only way is to use compatible-screens, right ? Jul 13 13:30:11 Hi Jul 13 13:30:39 does anyone know how to make Java enter some XML into a specific layout in my main XML? Jul 13 13:31:13 I've seen some people put a notice in the description of the app, something like "Do not install this app if your screen resolution is lower than 480x800", but as we know most people don't have a clue what screen resolution their device has Jul 13 13:31:40 xroberx: Indeed, I'm not even sure what I have. Jul 13 13:32:50 Those people need to un-do what they did to fuck it up below those resolutions Jul 13 13:34:07 hello all Jul 13 13:35:02 SimonVT: ok, but sometimes (mostly for games) you can't just fit the bitmaps in low resolution screens Jul 13 13:35:20 Belacan what does "enter some XML" mean? Jul 13 13:35:32 umm Jul 13 13:35:36 well Jul 13 13:35:47 ideally add some XML into the existing main Jul 13 13:35:50 but if thats not possible Jul 13 13:36:03 then draw certain things within certain layouts and tabs etc Jul 13 13:36:05 I think you can do that with either merge or fragments Jul 13 13:36:07 Belacan: merge ... ? Jul 13 13:36:38 interesting Jul 13 13:36:40 Merge tag xml adds itself to parent Jul 13 13:36:52 romainguy has something on his blog/site about using it Jul 13 13:37:19 Belacan: you can also create an Android Library Project, which allows to merge xml Jul 13 13:37:48 interesting Jul 13 13:38:09 so if i am not mistaken, this merge of fragment will allow me to use java code to write XML? Jul 13 13:38:23 lets say i have an object called Valve Jul 13 13:38:32 each valve has buttons and what not associated with it Jul 13 13:38:47 when the Valve is created i want java to automatically draw it onto my main XML Jul 13 13:38:57 merge will help me do this? Jul 13 13:39:05 Belecan you should just put all your valves Jul 13 13:39:12 I would Jul 13 13:39:14 and then programmatically hide / show them as needed Jul 13 13:39:14 And i have Jul 13 13:39:26 Ive done that but this program needs to be dynamic Jul 13 13:39:32 setVisibility(View.GONE) and setVisibility(View.VISIBLE) Jul 13 13:39:34 where the user can add new valves and remove them etf Jul 13 13:39:57 or View.INVISIBLE if you still want it to take up the space but not be seen Jul 13 13:39:59 Belacan: http://developer.android.com/reference/android/view/ViewGroup.html#addView(android.view.View) Jul 13 13:40:16 It will be much easier Jul 13 13:40:18 Adding ALL the valves and toggling visibility is a horrible solution Jul 13 13:40:32 that it is Jul 13 13:40:33 If it's a list, use a listview Jul 13 13:41:24 interesting Jul 13 13:41:28 thanks for your replies Jul 13 13:41:30 Why is toggling visibility a horrible solution? Jul 13 13:41:38 its inefficient Jul 13 13:41:41 Because of the number of them? Jul 13 13:41:55 its not elegant Jul 13 13:42:01 simply Jul 13 13:42:17 and its not a very dynamic solution Jul 13 13:43:08 I think viewgroups is my answer Jul 13 13:43:09 thanks chaps Jul 13 13:43:14 / gals Jul 13 13:43:46 Remember, xml layouts are just inflated into java objects. After that, you just use the available APIs Jul 13 13:44:01 You don't modify xml layouts, you can't Jul 13 13:45:00 i see i see Jul 13 13:45:41 but theres no way to convert an existing XML group of views into a 'viewgroup' Jul 13 13:46:19 viewgroup is just a base class for linearlayout, relativelayout, etc Jul 13 13:46:30 It's all at the top of the javadoc Jul 13 13:49:33 This is unrelated, but does anyone know of a windows program I can dump my open chrome windows into so I can shutdown my computer and repopulate chrome with the urls after I reboot? Jul 13 13:50:03 chrome can just save your session Jul 13 13:50:25 how so? Jul 13 13:50:56 settings, at start, resume where I left off (or something) Jul 13 13:50:58 man i wish the documentation was more readable Jul 13 13:51:11 Belacan: reliable how? Jul 13 13:51:17 oops, readable Jul 13 13:51:18 Zider thanks! Jul 13 13:51:21 np Jul 13 13:51:30 ya the new android site is lame Jul 13 13:51:31 readable* Jul 13 13:51:35 haha Jul 13 13:51:46 But now I have to condense all my windows ! ;p Jul 13 13:51:47 I mean when i try to go to learn about a class lets say Jul 13 13:51:52 looks like but organizaiton sucks Jul 13 13:52:04 it spams my mind with methods that are proably irrelevant Jul 13 13:52:11 and the important ones are hidden somewhere Jul 13 13:52:14 i know its all there Jul 13 13:52:28 but i CBA to read and retain everything Jul 13 13:52:47 So you want it to be smart and figure out exactly what methods you need? Jul 13 13:52:56 No Jul 13 13:53:04 I want it to give me a break down Jul 13 13:53:06 tutorial style Jul 13 13:53:12 showing you how to get it up and running Jul 13 13:53:25 then once its working i can start reading about different things to do Jul 13 13:53:30 that makes more sense to me Jul 13 13:53:30 well its not really a tutorial -- its api documentation Jul 13 13:53:35 thats kinda how its supposed ot be Jul 13 13:53:36 bit off topic but, has jelly bean fixed keyboard mappings? Jul 13 13:53:45 like alt and ctrl as modifiers Jul 13 13:53:51 thats true i guess Jul 13 13:53:58 but why should it have to be like that Jul 13 13:54:06 atleast they can put a few paragraphs at the start Jul 13 13:54:09 or something Jul 13 13:54:11 there are tutorials on the d.android.com site but they kinda suck Jul 13 13:54:23 they leave a lot of assumptions for the user, if you're new... you're screwed Jul 13 13:54:30 the sun is up, my queue to hit the sac. adios amigos Jul 13 13:54:32 yeah, with the descriptions i guess Jul 13 13:54:38 A ViewGroup is a special view that can contain other views (called children.) The view group is the base class for layouts and views containers. This class also defines the ViewGroup.LayoutParams class which serves as the base class for layouts parameters. Jul 13 13:54:47 two lines doesnt cut it for me Jul 13 13:55:07 There are articles explaining how stuff like that works Jul 13 13:55:44 Read some in android training and api guides Jul 13 13:56:10 is there a "cooldown" period for MotionEvents? Jul 13 13:56:26 i'm working with a ViewPager that contains scrollable content Jul 13 13:56:50 i notice if i swipe horizontally, lift my finger, then quickly try to interact with the ScrollView, the ViewPager tends to want to keep looking at horizontal movement Jul 13 13:57:08 if, however, i swipe horizontally, lift my finger, and wait for maybe a second, vertical interaction on the ScrollView works as expected Jul 13 13:57:28 The viewpager has to settle at the new page before you can scroll the scrollview Jul 13 13:58:02 that's...annoying Jul 13 13:58:17 SimonVT: any possible optimizations? Jul 13 13:58:45 Write your own viewpager that doesn't Jul 13 13:59:24 But really, this is how it works in every single app that uses viewpager. Yours would be the odd one out Jul 13 13:59:37 fair Jul 13 13:59:44 i suppose in my testing i'm just interacting more quickly than the average user would Jul 13 14:00:11 You're being too much of a dev in your testing :p Jul 13 14:00:16 good to know that this isn't the fault of the MotionEvent, but the fault of the ViewPager Jul 13 14:00:18 yeah Jul 13 14:00:44 A user uses 50 apps with a viewpager, sees that behavior. Goes to your app, sees a viewpager, and expects the same behavior Jul 13 14:00:46 No issue Jul 13 14:01:52 Reason it happens is that the viewpager is intercepting the touch events when it's scrolling between pages Jul 13 14:01:59 They simply aren't being delivered to the scrollview Jul 13 14:02:27 ah so i could roll my own ScrollView that calls getParent().requestDisallowInterceptTouchEvent(true) Jul 13 14:02:35 (in scenarios of vertical scrolling) Jul 13 14:02:41 Then your viewpager would probably never scroll Jul 13 14:02:51 if (Math.abs(event.getY() - mCurrY) > Math.abs(event.getX() - mCurrX)) Jul 13 14:03:10 that's working well for my ViewPager at the moment (to allow vertical scrolling outside of the ViewPager) Jul 13 14:03:17 i.e. when the ViewPager is now a child of a ScrollView Jul 13 14:04:00 like you say, it's definitely not worth it now Jul 13 14:04:02 Sounds like hacky solutions to something that's not an issue :p Jul 13 14:04:06 yup Jul 13 14:04:29 i've got a sliding menu like the YouTube app, that's the only reason i rolled my own ViewPager Jul 13 14:04:42 it allows you to swipe right when you're on item 0, so you can still get to the menu Jul 13 14:06:19 Does anyone have any insight on how the MediaRouter APIs work, for instance, if you wanted to implement AirPlay? I kinda get the feeling I am not understanding where the actual audio streams come into play, but the documentation is virtually non-existent Jul 13 14:06:46 I'm trying to use multi-touch emulation with sdk controller app, I followed this: http://tools.android.com/tips/hardware-emulation but the real device stay in "waiting for connection" :/ Jul 13 14:06:56 I'm on Linux Jul 13 14:18:17 my 9 patch images are completely distorted on the GT 7", the GT 10.1", the droid pro and some others, but on pretty much every other device looks perfect. Any ideas?! Jul 13 14:25:42 on my htc one x i have a bottom bar with three vertical dots that does nothing in my app.. how do i hide it? Jul 13 14:26:15 http://developer.android.com/design/patterns/actionbar.html << looks like they call it a bottom bar Jul 13 14:26:17 funktronic: target the right platform Jul 13 14:26:33 which would be version api 16 at this point Jul 13 14:27:57 wongk: that fixed it ! thanks! Jul 13 14:27:59 not sure why though Jul 13 14:28:47 because your phone doesn't have a menu button so it assumed your app had an inaccessible menu Jul 13 14:28:54 and it corrected that for you Jul 13 14:28:59 ahh. i see. thanks! Jul 13 14:30:55 Hey guys.. I'm currently stress testing my app and am getting the following error: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. [in ListView(16908298, class android.widget.ListView) with Adapter(class android.widget.ArrayAdapter)] Jul 13 14:31:33 Not really sure why its happening but I think its to do with my refresh button (which downloads, parses, and populates arraylists). However.. I have it now so it starts a new intent once it gets the data again, as I thought that would fix it.. but sadly it hasnnt Jul 13 14:32:25 what is the best way to determine if root is required to access a file Jul 13 14:32:56 what is usually the culprit if I get GC during interaction with a list-view ? Jul 13 14:34:37 not recycling views correctly? Jul 13 14:39:35 havchr / Jug6ernaut: uh... is it a problem if the GC kicks in? Jul 13 14:39:50 of course it is Jul 13 14:40:27 why Jul 13 14:40:30 gc is constantly running Jul 13 14:40:31 I found my culprits with allocation tracker. I had some string formatting going on which formated dates etc.. Need to clean my data before sending it to the listview Jul 13 14:40:35 list views are always recycling views Jul 13 14:40:38 you cant stop it Jul 13 14:40:39 its how they work Jul 13 14:40:40 canadiancow|work: because it'll lag. Jul 13 14:40:57 CallumTaylor: recyclying properly avoids the gc Jul 13 14:41:00 there is only ever like 5 items in a list rendered at once, when you scroll, it recycles them Jul 13 14:41:18 in the list adapter you check if its null then inflate it, if it isn't null then you just reset the values Jul 13 14:42:08 CallumTaylor: in this case it was string operations in the viewHolder when publishing the data. Jul 13 14:43:59 String s = "s"; for (int i = 0; i < 1000; i++) { s += "s"; } Jul 13 14:44:02 just put that in your getView method Jul 13 14:44:04 it will fix everything Jul 13 14:45:16 canadiancow|work ofc lol Jul 13 14:45:25 I have to create a new datastructure and clean my data objects, because the stuff I get parsed from json needs processing. oh, boring :( need coffee for this Jul 13 14:45:37 i wonder if proguard would nuke a block like that Jul 13 14:45:42 wouldnt surprise me Jul 13 14:47:26 nuke what? Jul 13 14:47:38 [10:43:58] String s = "s"; for (int i = 0; i < 1000; i++) { s += "s"; } Jul 13 14:47:53 code that doesnt do anything Jul 13 14:48:15 but that code does do something Jul 13 14:48:18 techincally anyway Jul 13 14:48:19 yeah Jul 13 14:48:24 proguard wouldn't nuke that Jul 13 14:48:31 you sure? Jul 13 14:48:33 for (int index = 0; index < 100000; index++); Jul 13 14:48:33 variable is never read Jul 13 14:48:37 that's code that wouldn't do anything Jul 13 14:48:48 canadiancow|work: so? Jul 13 14:48:56 so its useless? Jul 13 14:49:00 proguard does a lot of stuff like that Jul 13 14:49:33 we know it's useless, but proguard isn't in a position to make that call Jul 13 14:49:48 whats the arrayadapter equivalent of setList() ? Jul 13 14:52:18 proguard can make that call Jul 13 14:52:29 s is never read, s += "s"; has no side effects Jul 13 14:52:32 so it can eliminate s Jul 13 14:52:34 then it has an empty loop Jul 13 14:52:43 Hey guys - I recently inherited an app code base from someone and pushed an update with a new APK and screenshots to the Play Store. The Dev console says as soon as I hit save the APK will be live on Google Play, but I neither see the new screenshots or the new app on the store front. In your experience, how long does it take for an app update to show up? Jul 13 14:52:55 a couple hours Jul 13 14:53:01 an hour or so Jul 13 14:53:27 ok thanks Jul 13 14:53:48 code/removal/advanced Jul 13 14:53:48 Removes dead code based on control flow analysis and data flow analysis. Jul 13 14:53:58 code/removal/variable Jul 13 14:53:58 Removes unused variables from the local variable frame. Jul 13 14:54:04 im sure a combination of all these optimizations would do it Jul 13 14:54:46 its almost like quantum particles Jul 13 14:54:56 you can't test for it because it will change the output Jul 13 14:55:09 so we'll never know Jul 13 14:55:19 probably could run sys trace and see if it eats up cpu time Jul 13 14:55:51 if you set it to a gigantic number should be pretty quantifiable no? Jul 13 14:55:59 you can test for it... Jul 13 14:56:02 you just check the bytecode Jul 13 14:56:09 or that Jul 13 14:56:29 you always have to ruin things for me Jul 13 14:56:30 I HATE YOU Jul 13 14:56:53 i wish i was never born Jul 13 14:59:13 lol Jul 13 15:00:44 Have you guys played with Jelly Bean yet? Anything cool from a dev perspective? Jul 13 15:01:36 the coolest thing i like about jelly bean is how no one will have it Jul 13 15:01:37 I never cared for Jelly Beans or Gummy Bears Jul 13 15:01:44 just like how only 18% of users have ICS Jul 13 15:01:59 what level do you guys code to? Jul 13 15:01:59 wow, it's up to 18% now? Jul 13 15:02:11 is it Jul 13 15:02:13 er Jul 13 15:02:15 probably Jul 13 15:02:22 I code to expert level Jul 13 15:02:33 it was at like 7% a few months back Jul 13 15:02:39 i saw 10% recently Jul 13 15:02:42 no, it's 10 Jul 13 15:02:46 ah Jul 13 15:02:49 still terrabad Jul 13 15:02:49 http://developer.android.com/about/dashboards/index.html Jul 13 15:02:52 ;) i mean API Level - naturally you're an expert Jul 13 15:03:01 ha Jul 13 15:03:15 fragmentation is so bad Jul 13 15:03:20 I'm still supporting 2.2 Jul 13 15:03:21 >.> Jul 13 15:03:43 maybe everyone will buy the SIII Jul 13 15:03:49 if i was rich Jul 13 15:03:50 I have a very weird problem Jul 13 15:03:53 i would buy everyone an S3 Jul 13 15:03:53 11 % is more accurate Jul 13 15:03:59 fuck the s3, get a gnex Jul 13 15:04:03 touchwiz bad android good Jul 13 15:04:11 or anything running iCS Jul 13 15:04:16 i hate samsungs ICS implementation Jul 13 15:04:26 seems like 4.1.1 installs to external storage by default Jul 13 15:04:31 one of my custom scroll views i override on touch, and because I return true, the over scroll fade gets stuck Jul 13 15:04:35 i don't know what it's like on the s3 but on the s2 it sucks Jul 13 15:04:35 only on my s2 Jul 13 15:04:40 is the S3 good for women? Jul 13 15:05:03 SoulBlade: ?? Jul 13 15:05:05 i fixed it by setting android:installLocation="internalOnly" Jul 13 15:05:14 why would you do that though Jul 13 15:05:14 trying to find a good phone for my wife Jul 13 15:05:20 now everything works as long as you install the apk manually Jul 13 15:05:22 and she doesnt want apple Jul 13 15:05:32 and i dont want to get her something pre 4.0 Jul 13 15:05:33 however, if you use the play store, it still installs onto external storage Jul 13 15:05:35 i have a test HTC device and theres 128mb internal storage Jul 13 15:05:36 which breaks my services Jul 13 15:05:38 rediculpous Jul 13 15:05:43 any ideas? Jul 13 15:07:51 bah i was wrong Jul 13 15:07:52 proguard wont nuke it Jul 13 15:09:17 Hello, im trying to layout a calcualtor program, basicly just a bunch of buttons, a lot of them, that should be in diffrent positions. i cant layout it properly. any pointers on how to do this kind of layout? Jul 13 15:10:04 what problems are you having Jul 13 15:11:17 first, should i be using grid layout? Jul 13 15:12:10 when i try to relocate something on the grid layout... to move a button. it changes everything.... (using the eclipse graphic editor) Jul 13 15:14:12 there's your mistake Jul 13 15:14:37 id use a relative layout tbh Jul 13 15:14:43 if the buttons are always the same Jul 13 15:14:49 or you could do it programically like a baws Jul 13 15:16:25 does anyone else experience issues on 4.1.1 with google play always installing apks to external storage? Jul 13 15:17:47 Is anyone familiar with Android Data Backup? Jul 13 15:17:59 CallumTaylor: what's the advantage of a relative layout here? Jul 13 15:18:09 you can specify what goes where Jul 13 15:18:17 More specifically, what kind of intervals I can expect backup to fire off? Jul 13 15:18:24 so you'd have like one button, then the next button you say, be to the right of the first button Jul 13 15:19:06 thanks, i'll try it Jul 13 15:19:28 http://developer.android.com/guide/topics/ui/declaring-layout.html Jul 13 15:33:31 http://i.imgur.com/Vo24I.png Jul 13 15:33:33 good job google Jul 13 15:35:20 nicee Jul 13 15:37:23 mots: even though they run gmail, you can never find their address Jul 13 15:37:39 which is awesome Jul 13 15:37:47 as their store is screwing up my app Jul 13 15:38:06 bastards Jul 13 15:38:08 how so? Jul 13 15:38:27 how is the play store messing up your app? Jul 13 15:38:29 my app mostly consists of a service, which needs to run from internal storage Jul 13 15:38:35 I bet they're doing it on purpose Jul 13 15:38:39 +1 Leeds Jul 13 15:38:55 I have android:installLocation="internalOnly" set in my apk Jul 13 15:39:03 that, and stopping me from buying an N7 Jul 13 15:39:08 as internal storage doesn't seem to be the default on JellyBean anymore Jul 13 15:39:17 in eclipse, when starting a new project, the application has a top bar with the androind icon and the app name. how do i remove it? Jul 13 15:39:17 when you manually install the apk, everything works fine Jul 13 15:39:26 however, the play store still installs it to external storage Jul 13 15:39:29 thus breaking my app Jul 13 15:41:05 the "play store" doesnt control that Jul 13 15:41:11 well Jul 13 15:41:17 all evidence points to the contrary Jul 13 15:41:28 mots: the device decides that at install time Jul 13 15:41:37 so your evidence to the contrary is contrary to the documentation Jul 13 15:42:05 the very same apk gets installed to internal storage when installed via apk, while it gets installed to external storage when installed via Google Play Jul 13 15:42:41 QubeZ: I strongly suspect the documentation isn't up-to-date, as it also claims "internalOnly" to be default while that also doesn't seem to be the case on 4.1.1 Jul 13 15:43:07 4.1 still showed behavior as described by doc Jul 13 15:43:28 do I care enough to ask to see the manifest? nah... Jul 13 15:44:01 I also have this behavior confirmed by at least one other developer Jul 13 15:44:30 hi, If I have a syncprovider and do int rows = mContentResolver.delete(uri, " 1 = 1 ", null); on the event table, will that delete all events, the events for this account only or will it throw an error? Jul 13 15:45:28 apollo13: why are you doing "1=1" anyway? just pass in null. Jul 13 15:45:35 apollo13: can't you pass null in? Jul 13 15:45:54 evancharlton, Rich787: yes, I was playing around a bit, but replace it with null, what's the outcome? Jul 13 15:46:04 it selects all entries Jul 13 15:46:10 I would guess it would delete all events Jul 13 15:46:20 basically removing the WHERE clause from your sql statement Jul 13 15:46:50 right, but I thought specifying that the uri is a sync provider + account name/type might limit that automatically Jul 13 15:46:59 Leeds, QubeZ: https://play.google.com/store/apps/details?id=org.dmfs.carddav.Sync and https://play.google.com/store/apps/details?id=org.mots.haxsync are both affected by this behavior Jul 13 15:47:01 [11:45:29] apollo13: why are you doing "1=1" anyway? just pass in null. Jul 13 15:47:01 this Jul 13 15:47:27 canadiancow|work: hmm? Jul 13 15:47:32 see also https://redmine.limun.org/issues/153 and https://groups.google.com/forum/?fromgroups#!topic/android-developers/RqO6NGdgYPY Jul 13 15:47:48 mots, it may be that setInstallLocation may be set to 2 on the system. Jul 13 15:48:22 clayjar: wouldn't that also affect installation by apk? Jul 13 15:48:53 apollo13: it may. I haven't used it before. Try using null and see what happens Jul 13 15:49:04 mots, not quite sure, but do those apks have android:installLocation defined ? Jul 13 15:50:07 Rich787: I currently just have one account, so I can't tell -- will test after the weekend in the office Jul 13 15:50:18 clayjar: yes, internalOnly Jul 13 15:50:39 mots, well that explains it. Jul 13 15:51:03 I'd double check the setInstallLocation variable on the system. Jul 13 15:51:41 clayjar: how does that explain it? Jul 13 15:52:30 sorry, my client broke Jul 13 15:55:29 pm get-install-location returns 0 on an affected user's device Jul 13 16:00:11 mots: what version are you running? sounds like a possible corruption w/in pm, if it isn't package-specific issue. Jul 13 16:00:43 clayjar: it seems to work on my phone, but I'm getting tons of reports (and one-star-reviews) from users running the 4.1.1 OTA update Jul 13 16:00:53 everything seemed to work with the 4.1 I/O leak Jul 13 16:00:57 good morning everyone, hopefully there's some intelligent life in *this* room... Jul 13 16:00:57 quick q: Verizon Galaxy Nexus connects to wifi with a hidden SSID just fine, but the GSM model of the GNex, and the Nexus 7 tablet, will not. If I turn on SSID broadcast, the GSM device and Nex7 both connect just fine, but if SSID is hidden, they do not. Any ideas? Jul 13 16:01:10 mots: tx. Jul 13 16:03:17 cormyn: this is android development, doubt you'll get any help here Jul 13 16:03:35 cormyn: that sounds like a question for the manufacturer. Jul 13 16:04:23 clayjar: just got this from a user: "As a sort of FYI... I installed it again from the market, backed up with Titanium, uninstalled it, then restored the backup and that works just fine too." Jul 13 16:04:33 cormyn: i have the same problem w/ an older CDMA model of LG Ally. I think you may want to troubleshoot it w/ a different router. It used to work and then it stopped working, so I'm thinking it may be a handshake issue. Try tinkering with channels. Jul 13 16:04:34 seems like it works with any source that isn't the play store Jul 13 16:04:38 i know it's the dev channel, the main #android room was too busy playing with some auto-answering bots, figured chatting with other devs might help Jul 13 16:05:15 I don't know enough about the specifics of android's package system to know why that would happen Jul 13 16:05:17 clayjar: this is a brand new router, just set it up yesterday, seems to be jelly bean related as the GSM GNex and Nex7 tablet are both stock JB, Verizon GNex is stock ICS Jul 13 16:05:25 just started sifting through its source today Jul 13 16:05:32 thanks all, for the replies, I'll go tinker some more Jul 13 16:06:48 hi have you seen the new First EVER NFC Unlock Screen Jul 13 16:06:49 https://plus.google.com/u/0/100982747564697008998/posts/QA9v4VXqMve Jul 13 16:13:10 clayjar: just got more confirmations that Google Play installs to /mnt/asec while the very same apk on the very same device is installed to /data/app when installed manually Jul 13 16:14:59 i am having troubles with proguard is there anybody that can help me out with it.. i keep getting an error saying proguard is not valid or present and i followed the instructions as described Jul 13 16:15:50 droidbuster: what does your project.properties look like? Jul 13 16:16:11 QubeZ: target=android-7 Jul 13 16:16:12 #proguard.config=proguard.cfg Jul 13 16:16:23 i just commented out the proguard to get it to compile Jul 13 16:16:53 thats the old style but ok... Jul 13 16:17:02 what does your proguard.cfg look like? pastebin it Jul 13 16:17:30 use the latest tools with the latest proguard config Jul 13 16:17:32 its much better than before Jul 13 16:17:48 clayjar: could activating copy protection help? that should force installation to internal memory, right? Jul 13 16:18:10 QubeZ: http://pastebin.com/hjkTbHqi Jul 13 16:18:20 and paste the exact error too Jul 13 16:18:49 and thats the method i saw in the pluralsite Jul 13 16:18:54 video Jul 13 16:20:40 well like canadiancow|work said, we think the best thing you can do here is updgrade your SDK to latest then project.properties would be: proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard.project.txt <-- the proguard.project.txt would be your app specific stuff Jul 13 16:22:48 i did update to the latest update awhile ago :/ Jul 13 16:24:09 if this is an old project i copied into a new one would it regen the proguard files if i delete the proguard.cfg Jul 13 16:24:16 then your proguard config needs to reflect the new way... update it Jul 13 16:24:55 ugh ? Jul 13 16:25:42 how would i do it for an existing project Jul 13 16:28:45 brb Jul 13 16:39:07 QubeZ: how do i update an existing projects proguard Jul 13 16:46:29 does anyone see anything wrong with my manifest? https://github.com/jab-aosp/jab-aosp/blob/master/default.xml Jul 13 16:49:36 hey, how do i remove that top part? http://postimage.org/image/i3zumkwd3/ Jul 13 16:50:56 adding false to your theme should do it Jul 13 16:51:19 thanks ryanm Jul 13 16:52:21 Leeds is batman! Jul 13 16:52:23 just found out Jul 13 16:53:05 gaz`: ever heard of a sekrit identity, dumbass? :) Jul 13 16:53:21 been waiting to uncover your secret for some time batman Jul 13 16:53:34 cool party! Jul 13 16:57:02 ryanm: do i add that to the manifest? Jul 13 16:57:44 you want to add it to your application theme - most likely it's in res/values/styles.xml Jul 13 16:57:57 thanks again Jul 13 16:58:01 no problem Jul 13 17:00:47 I have an action bar with drop down navigation, do I need to manually hide the active item in the dropdown? Jul 13 17:01:11 lets say 3 activities A, B and C if you'r on A then the title is titleA and the dropdown still contains titleA, titleB, titleC Jul 13 17:01:23 i want it to only have titleB and titleC since titleA is already the top one Jul 13 17:03:40 sounds like more trouble than it's worth Jul 13 17:04:05 does google do it in maps? Jul 13 17:04:06 or + Jul 13 17:04:10 or anything Jul 13 17:04:52 nothing is worse than changing positions for entries, depending on context Jul 13 17:05:16 i don't know that/nothing/ is worse Jul 13 17:06:21 wongk: then you need a game of UI whac-a-mole Jul 13 17:10:35 wongk, it's not :p Jul 13 17:10:46 canadiancow|work, yes they do Jul 13 17:10:52 i think Jul 13 17:10:56 i'll double check Jul 13 17:12:27 Does the emulator not respect keyboard input for anyone else since the newest ADT? Jul 13 17:12:43 Like from my external/mac keyboard. Jul 13 17:16:24 quick question do apps that you install on a test device via eclipse ddms count on your app install stats at all ? Jul 13 17:17:56 no Jul 13 17:18:56 CallumTaylor: That's an ICS bug. Jul 13 17:19:03 and you're not even here Jul 13 17:19:10 so when using Debug to generate trace files for profiling, do i need to call Debug.startMethodTracing() in each thread? presently, i am not, and only one thread is showing up in traceview Jul 13 17:19:48 evancharlton: thank you Jul 13 17:26:18 dzan, no Jul 13 17:26:21 in maps, it still has the full list Jul 13 17:26:23 no matter where you are Jul 13 17:29:18 canadiancow|work, indeed checked the others too they all have full lists Jul 13 17:29:27 i'll keep it like that :) just not the way i'd expect it Jul 13 17:33:17 fuck me.. trying to find out why my script fails.. osx uses / where windows uses \ Jul 13 17:37:10 QubeZ: I now have around 20 reports from users that their phone running 4.1.1 installs their app to /mnt/asec via Google Play, but installs the very same apk to /data/app via other methods Jul 13 17:37:20 any idea on how to fix this? Jul 13 17:43:22 i haven't even touched Jelly Bean yet man, sorry Jul 13 17:46:03 ok, no problem Jul 13 17:49:13 mots: what's blowing my mind is that you have 20 users on 4.1.1 Jul 13 17:49:29 lol ya that is shocking Jul 13 17:49:33 wongk: My main audience are early adopters Jul 13 17:49:41 I have hundreds of users on 4.1.1 Jul 13 17:49:55 i didn't know there were hundreds of users on that version Jul 13 17:50:16 say you wa writing a catalogue type app, is it best to assume the app is online and retrieve product info on the fly as the user brwoses products, or should i attempt to make all content available offline by using c2dm to send a message telling the app to download the latest database periodically? Jul 13 17:50:30 mots: im similar Jul 13 17:50:45 http://i.imgur.com/e4TNh.png doesn't include JB yet, but still says a lot about my audience ;) Jul 13 17:50:55 oh wow Jul 13 17:50:59 whats minsdkversion? Jul 13 17:51:52 14, I don't even know where the other 20% went Jul 13 17:52:34 what's the app? Jul 13 17:52:49 https://play.google.com/store/apps/details?id=org.mots.haxsync Jul 13 17:53:02 if your minsdkversion is 14, then having everyone on ICS isnt very impressive Jul 13 17:53:21 canadiancow|work: what's impressive is the 20% not on ICS Jul 13 17:53:22 :D Jul 13 17:53:24 i don't think he was tryig to impress us :P Jul 13 17:53:33 also that ;P Jul 13 17:53:45 I was just proving a point that JB support is vital for my app Jul 13 17:54:00 ah Jul 13 17:54:02 http://i.imgur.com/LkaDF.png Jul 13 17:54:08 my minsdkversion is 7 Jul 13 17:54:18 it used to be 3 Jul 13 17:54:21 hence the 1.5/1.6 Jul 13 17:54:38 i was actually surprised to see my ICS numbers Jul 13 17:54:43 wow so you've actually made some decent money on this app Jul 13 17:55:12 me? Jul 13 17:55:16 mots: Jul 13 17:55:27 yea i was gonna say... i have not :P Jul 13 17:55:32 yeah, it's my main source of income atm Jul 13 17:55:50 which is why I'm so nervous to get the issue with Google Play fixed Jul 13 17:57:44 apparently you have thate reboot / lost info users reported by people not on 4.1 too Jul 13 17:58:16 it may be a general issue with Google Play right now, though I haven't gotten any reports from ICS users yet Jul 13 17:58:35 no this is something else... reboot lost data? Jul 13 17:58:54 so does anyone know how to contact Google Play support? do I have to sacrifice a virgin or does a goat suffice? Jul 13 17:59:23 QubeZ: the problem is that Google Play installs haxsync to /mnt/asec instead of /data/app Jul 13 17:59:35 the service cache is refreshed before /mnt/asec is mounted Jul 13 17:59:42 but some of these reports are from people on 2.3 gingerbread Jul 13 17:59:51 => it doesn't find haxsync and removes the service, along with the account and all associated data Jul 13 17:59:59 haxsync doesn't even run on pre-4.0 Jul 13 18:00:06 mots: it's probably that JB encrypted apps thing Jul 13 18:00:42 mots: can you file a bug on b.android.com with repro steps? Jul 13 18:01:01 evancharlton: sure! Jul 13 18:01:05 ah yea Jul 13 18:01:13 cause play encrypts all paid apps on JB doesnt it Jul 13 18:02:10 this actually sounds sensible, thanks for the input evancharlton! Jul 13 18:02:26 but how are people supposed to write paid services if that's really the issue? Jul 13 18:02:36 seems like somebody didn't think everything through Jul 13 18:02:38 what's the actual issue? Jul 13 18:02:51 I've only been skimming the channel Jul 13 18:03:08 (that's partly why I asked for a bug report, so that all the information would be listed in one place) Jul 13 18:03:19 mots: disable support for intalling on SD card (i.e. "internalOnly") Jul 13 18:03:27 p_l|backup: already done Jul 13 18:03:35 evancharlton: should I just write the bug report and link you to it? Jul 13 18:04:03 mots: yeah Jul 13 18:04:08 just dump the link here in the channel Jul 13 18:04:48 mots: you might want to disable encryption for a time... it can always be broken, but it's easier (IMHO) to survive than angry users Jul 13 18:05:07 assuming Play still has the options to control copy protection Jul 13 18:05:17 p_l|backup: where can I do that? I don't believe in any form of DRM, so I always make sure to disable them Jul 13 18:05:31 in my opinion they only hurt paying users, pirates get drm-free versions anyways Jul 13 18:05:35 copy protection != encryption, p_l|backup (unless I missed something during the I/O keynote) Jul 13 18:06:17 "Starting with Android 4.1, Google Play will help protect application assets by encrypting all paid apps with a device-specific key before they are delivered and stored on a device." Jul 13 18:06:38 is the official description from http://developer.android.com/about/versions/jelly-bean.html Jul 13 18:06:57 evancharlton: yes, I assumed you'll be able to enable/disable it the way it was with previous copy-protection settings Jul 13 18:07:12 I don't see a switch for that in the developer console Jul 13 18:07:24 unfortunately, I don't have market account yet (nothing worth publishing outside...yet) Jul 13 18:09:26 is multiuser available ? Jul 13 18:10:34 multiuser... Jul 13 18:11:03 evancharlton: http://code.google.com/p/android/issues/detail?id=34880&thanks=34880&ts=1342203051 Jul 13 18:12:16 07-13 14:06:04.089: E/AndroidRuntime(5712): java.lang.IllegalStateException: Fragment XXXXXXFragment{40e02738} not attached to Activity <--- getting this in Fragment#onResume() Jul 13 18:12:19 does that make sense? Jul 13 18:12:35 mots: isn't /mnt/asec internal? /mnt/sdcard is "external" Jul 13 18:12:59 RunTimeExceptions FTW ! Jul 13 18:13:17 evancharlton: I'm not quite sure, without "internalOnly", the apk also seems to install to /mnt/asec Jul 13 18:13:41 (this is on a Galaxy Nexus, which doesn't have any "real" external storage anyways) Jul 13 18:14:30 is there a way to tell which filter called a broadcast receiver? Jul 13 18:15:12 I'm trying to reuse the same receiver if possible, which means I need to take different actions based on which intent-filter triggered the receiver Jul 13 18:15:35 or should I just make multiple receivers? Jul 13 18:17:18 canadiancow: did you get an answer? Jul 13 18:17:29 an answer? Jul 13 18:17:50 for the fragment stateexception thing Jul 13 18:18:08 no Jul 13 18:18:16 i dont understand how it oculd be not attached in onResume(0 Jul 13 18:18:29 yeah thats what made me wonder Jul 13 18:19:42 is it in the onResume of the activity? Jul 13 18:22:02 no Jul 13 18:22:04 the fragment Jul 13 18:22:13 i think i know why Jul 13 18:22:17 im doing some silly stuff Jul 13 18:23:51 is there a better way to do this? public static HashMap orderTypes = new HashMap(); Jul 13 18:23:51 static{ Jul 13 18:23:52 orderTypes.put("M", R.string.mystring); } Jul 13 18:25:02 noslen_ramingo: if you want to paste code, you're better off putting it in a pastebin (gists are my preference, but any work) Jul 13 18:25:27 ok Jul 13 18:26:05 pastebin'd Jul 13 18:26:06 http://pastebin.com/KE9cgKp1 Jul 13 18:26:42 just wonder if there is a more economical way to keep a list that i can access via a key Jul 13 18:26:44 noslen_ramingo: new HashMap(){{ put("M", R.string.mystring); }}; Jul 13 18:26:52 oh, that's what you were asking Jul 13 18:28:04 what do you do when you need to maintain a list and access it via an identifier? Jul 13 18:35:49 Hello. I'm having trouble with padding on different screen resolutions, hoping someone can shed some light on the issue. I've tried this technique posted in stack overflow but it's only working on my Android 2.3 device, not in an Android 4.0 simulator. http://stackoverflow.com/questions/2406449/does-setwidthint-pixels-use-dip-or-px Jul 13 18:45:00 Hello! I've got a general question to people who've tried to implement GCM into their apps. Has anyone had issues when testing where even the demo app will occasionally get MismatchSenderID when attempting to send messages to the Client application? Registration always succeeds, but when sending that key to id to to 'gcm/send' I still will get a mismatch call some of the time, even without any unregister/register calls happeni Jul 13 19:02:30 Squall410: have you registered with google? Jul 13 19:03:54 all of a sudden i go to export my application and it keeps exporting the apk without any icon. the icons are all valid i modified the file in question although i never had a problem exporting a project with out strict images... Jul 13 19:04:12 have rebuilt it numerous times and still no luck Jul 13 19:05:16 clean Jul 13 19:05:28 yes i meant i have cleaned it tons Jul 13 19:05:29 are your icon.png files in your drawables ? Jul 13 19:05:39 do the files names match? Jul 13 19:05:47 yes it runs on the emulator and test device Jul 13 19:05:56 and the icons are there? Jul 13 19:05:57 they have to be png now ? Jul 13 19:06:00 yes they are Jul 13 19:06:05 @drawable Jul 13 19:06:20 yes they should be .png Jul 13 19:06:34 it has always been that way Jul 13 19:06:59 but i have never ever used strict image sizes or file formats Jul 13 19:07:06 i use jpgs sometimes Jul 13 19:07:12 pngs... others Jul 13 19:07:16 do you have Top Developer status? Jul 13 19:07:18 then STFU Jul 13 19:07:21 and listen to me Jul 13 19:07:38 dantheman: Yes, I work at a studio with a registered developer account. We have C2DM support already in for the application in quetsion. Jul 13 19:07:42 o_O Jul 13 19:08:04 well C2DM doesn't exist anymore Jul 13 19:08:16 c2dm was the beta for gcm Jul 13 19:08:27 and now it's not in beta any more Jul 13 19:08:29 dantheman: No, you can't add it, but the old stuff still functions, the builds we have out didn't stop working. Jul 13 19:08:37 correct Jul 13 19:08:39 c2dm "exists" Jul 13 19:08:41 Squall410: it will stop working in the future; read the migration docs Jul 13 19:08:57 yeah I'm in the middle of redoing our shit for NBC Jul 13 19:09:18 C2DM works for apps already in the app store but it won't Jul 13 19:09:19 ctate: correct, which is why I'm trying to do the migration. dantheman: Have you had issue with mismatched Ids then? Jul 13 19:09:26 I haven't seen it yet Jul 13 19:09:32 I would file a bug report with google Jul 13 19:09:39 if it is repeatable Jul 13 19:09:46 otherwise you might have an issue with your back end Jul 13 19:09:54 the migration docs are simple Jul 13 19:10:11 if you already had C2DM working it is trivial to get the newer lib working Jul 13 19:10:14 you can use c2dm for new apps Jul 13 19:10:19 you just cant sign up for a new c2dm account Jul 13 19:10:22 or increase quotas Jul 13 19:10:23 dantheman: 100% The docs are easy, and the system seems flaky for the test app (run to spec) as well as testing with the apps. Jul 13 19:10:26 canadiancow: no you can't Jul 13 19:10:30 but if you, as a dev, already have c2dm, you can use it in new apps Jul 13 19:10:34 you absolutely can Jul 13 19:10:42 you know how i know? because i just did it Jul 13 19:10:43 no you absolutely cannot get a new token Jul 13 19:11:00 you dont need a new token for a new app Jul 13 19:11:01 because I was turned down for an NBC app the week they closed it Jul 13 19:11:08 [15:10:14] you can use c2dm for new apps Jul 13 19:11:08 [15:10:18] you just cant sign up for a new c2dm account Jul 13 19:11:24 anyone working on any spotify apps or interested? Jul 13 19:11:38 canadiancow you can use an older signup Jul 13 19:11:47 but you cannot register a new app with C2DM Jul 13 19:11:53 new app != new account Jul 13 19:11:56 trust me Jul 13 19:11:57 zynga has one c2dm account Jul 13 19:11:57 Thanks for the idea, I will plan to send a trouble ticket. Jul 13 19:12:02 we can use it on all current and future games Jul 13 19:12:05 NEW games Jul 13 19:12:07 that do not even exist yet Jul 13 19:12:14 yeah you are using the same token Jul 13 19:12:19 you can't get a new token Jul 13 19:12:40 and I'm not lazy like that Jul 13 19:13:10 you should use the new shit anyway Jul 13 19:13:11 it Jul 13 19:13:21 canadiancow|work: ... until c2dm quits working! Jul 13 19:13:31 payload increases from 1024 bytes to 4k Jul 13 19:13:43 I can send whole json and new screens Jul 13 19:13:46 :p Jul 13 19:13:49 I hope my Nexus 7 is in that first wave :3 Jul 13 19:14:04 I already have one and it is beautiful Jul 13 19:14:06 Using the ActionBarSherlock, is there a good way in onOptionsItemSelected to identify when the home button is pressed, I've enabled it and set it's logo, but not sure what to check for. Any thoughts? Jul 13 19:14:13 dantheman: I/O? Jul 13 19:14:18 yerp a derp Jul 13 19:14:20 i've had one for months SO THERE Jul 13 19:14:27 pssh Jul 13 19:14:34 congrats state you work at google Jul 13 19:14:36 I DON'T HAVE ONE :-( Jul 13 19:14:41 ctate* Jul 13 19:14:41 So there :( Jul 13 19:14:50 from back when e.g. the flash disk was derpy and would occasionally take 1.5 seconds to do a write Jul 13 19:14:51 you still managed to fuck up the GCM release Jul 13 19:14:52 I'm going to cry in a corner now Jul 13 19:14:53 fun times Jul 13 19:15:16 hey don't imagine that *i* have anything to do with GCM Jul 13 19:15:27 I wasn't able to download it for 24 hours and had someone hand me a flash drive at IO so I could update our system Jul 13 19:15:40 well I blame you Jul 13 19:16:02 I was blaming my friends that work netops here in NYC Jul 13 19:16:08 so don't take it personally Jul 13 19:16:13 developernotes: in onOptionsItemSelected(), do switch(item.getItemId()) and then case: android.R.id.home is what you want Jul 13 19:17:08 state so when am I gonna get Xocde support for the NDK Jul 13 19:17:17 ctate^^ Jul 13 19:17:29 *xcode Jul 13 19:17:36 signs point to "never" Jul 13 19:17:43 fuck that noise Jul 13 19:17:54 it would be pretty sweet to be able to build with clang though Jul 13 19:18:25 doogan: I don't have android.R.id.home - this is targetting pre honeycomb. Maybe ActionBarSherlock defines that value? Jul 13 19:18:59 no you want to target the newest API Jul 13 19:19:08 and then set minimum back to 7 or 8 or whatever Jul 13 19:19:31 state so then I just have to stick with VIM for NDK shit Jul 13 19:19:36 what about my auto complete Jul 13 19:19:40 I'm lazy Jul 13 19:20:17 ctate that is not state Jul 13 19:21:37 Why I can`t get my extras which I put in one intent and then I fired it with PendingIntent( alarm) Jul 13 19:22:07 huh? Jul 13 19:22:11 F1rstAid: english please Jul 13 19:22:29 you can't get the bundle? Jul 13 19:22:57 yep Jul 13 19:23:06 pastebin it Jul 13 19:23:07 And from there I can`t get my extras :( Jul 13 19:23:13 then google it on stackoverflow Jul 13 19:23:16 w Jul 13 19:23:41 you are probably doing something wrong Jul 13 19:27:35 Well i have action, I put all the extras. Obviosly I am doing something wrong either way I won`t ask Jul 13 19:38:43 https://developers.google.com/android/adc/ Jul 13 19:38:46 who's participating? Jul 13 19:40:00 5. CHALLENGE TIMELINE: All Entries must be submitted before the end of the Submission Period. The Submission Period ends at 11:59:59 P.M. Pacific Time (PT) Zone in the United States on August 31, 2009. Jul 13 19:40:28 not sure who was asking about disabling sound effects on clicks of views yesterday, but there is setSoundEffectsEnabled(boolean) in android.view.View..not sure it'll work on each device, but worth a shot Jul 13 19:40:52 yeah i saw that person ask that luxurymode , dont recall who tho Jul 13 19:41:11 yea Jul 13 19:41:18 are there logs of this room somewhere? Jul 13 19:43:35 i'm sure there are, couldn't tell you where tho. someone in here lurking probably has a dump also Jul 13 19:44:16 canadiancow|work, i think thats an old deadline hehe Jul 13 19:45:12 why do you think there's a new adc? Jul 13 19:45:37 oh wait, no you're right, winners are already listed. Jul 13 19:45:54 cause the guy posted a link nd the page sauid last updated april 2012 on the bottom Jul 13 19:47:13 If someone had a genius idea to share with android, but wished to monetize it, as it would be a game changer for android dev, who would he contact Jul 13 19:47:32 me Jul 13 19:48:08 heh Jul 13 19:48:23 If you're willing to pay me handsomely Jul 13 19:48:49 hello...I'm having a problem with my android application. I call sendBroadcast() in my Activity and expect a the onReceive() method of a BroadcastReceiver within a Service in the same application to get called, and it doesn't. any ideas what could be wrong? Jul 13 19:49:25 dantheman: there's NDK support for Eclipse now, and it supposedly works Jul 13 19:49:36 p_l|backup: I saw Jul 13 19:49:39 and I used it Jul 13 19:49:44 but it doesn't work for somethings Jul 13 19:50:00 dantheman: most awesome stuff requires custom stuff ;) Jul 13 19:50:07 yup Jul 13 19:50:20 and awesome stuff like openFrameworks requires something different Jul 13 19:50:41 like using the standalone-toolchain Jul 13 19:50:47 doesn't work with the NDK plugin Jul 13 19:50:53 armenb, did you register the service to receive broadcast in your manifest? Jul 13 19:51:30 rootlicker-work: do I need to do this in my manifest? In my service's onCreate(), I'm calling registerReceiver(). Jul 13 19:51:31 Is there any way to display an image in a gridview based on a direct url? Jul 13 19:52:09 bluezone, yes, but i would recommend loading the image asynchronously and using a callback to diplay it in the grid Jul 13 19:52:13 I've tried both calling IntentFilter() with no arguments as well as with arguments (i.e. using the same string that I create the Intent() with in my Activity Jul 13 19:52:35 armenb it will only work if it is registered Jul 13 19:52:48 otherwise it doesn't know what to listen to Jul 13 19:52:52 armenb, if i'm not mistaken you have to tell the manifest the name of yuor receiver class (with package name) Jul 13 19:52:56 one sec Jul 13 19:53:06 rootlicker-work: is correct Jul 13 19:56:28 Jul 13 19:56:28 Jul 13 19:56:28 Jul 13 19:56:28 Jul 13 19:56:42 something like that i believe, sorry for code in channel, my work blocks paste sites like a mug Jul 13 19:57:29 i modded that off an entry for an appwidget, which is basically a broadcast receiver, so i'm guessing it should be close Jul 13 19:57:48 rootlicker-work: use glist Jul 13 19:58:02 gist* Jul 13 19:58:12 if they block github then they are doing it wrong Jul 13 19:58:50 they do a ton wrong here but we aren't allowed to use any open source stuff Jul 13 19:59:00 lulz Jul 13 19:59:02 that sucks Jul 13 19:59:03 so Jul 13 19:59:03 som Jul 13 19:59:03 e Jul 13 19:59:11 what is taskprovider.apk for? Jul 13 19:59:39 sorry** lagging…..so no common ware stuff? Jul 13 19:59:49 you can't use the nice horizontal views Jul 13 19:59:52 it takes literally months of approval process to be able to use an open source library.. luckily though, once it's approved it's corporate wide... just the nature of a giant corp that does everything proprietary i guess Jul 13 20:00:00 lol Jul 13 20:00:12 i'm glad I work for a startup Jul 13 20:00:23 but we made the top 250 whatever whatever list Jul 13 20:00:24 yeah i do all my fun stuff on the side Jul 13 20:00:48 it's cool tho.. my work here reaches, well, millions :-) Jul 13 20:00:55 so does mine Jul 13 20:00:57 :p Jul 13 20:01:27 12 million reporting or something like that the last time I checked Jul 13 20:01:46 well yeah, we aren't exclusive to that privelage Jul 13 20:02:00 lol Jul 13 20:02:10 rootlicker-work: i'm not sure what you mean :P Jul 13 20:02:26 it helps that we develop most of stuff for a couple Jul 13 20:02:35 of our* Jul 13 20:02:46 yeah Jul 13 20:02:52 I don't get it. what's the point of registerReceiver() if I have to specify the receiver in my manifest? Jul 13 20:03:04 armenb, they are two different things Jul 13 20:04:03 armenb: one is telling your app what it does one is telling Android to let it do a thing Jul 13 20:04:13 rootlicker-work: what? Jul 13 20:04:21 no wait Jul 13 20:04:30 you should be able to just declare it in the manifest Jul 13 20:04:49 register|unregisterReceiver() allow you to dynamically, at runtime, reigster and unregister your broadcast receivers Jul 13 20:05:38 if you register in your manifest, you will always be subscribed to that broadcast (from what I can recall)... like in my app I register and unregistger a special receiver to check status of the user's network connectivity... once they are out of my app I dont care to receive any updates so I unregister before user leaves. Jul 13 20:05:52 some broadcasts are only sent to live, running code Jul 13 20:05:52 I'm actually trying to get away from putting stuff in the manifest :) I need the ability to change the filters dynamically. I suppose that can be tackled after I get some basic receiver behavior running though (and perhaps that's all I need the manifest entries for) Jul 13 20:06:12 by restrictinfg the broadcast to only receivers that have been explicitly registered via registerReceiver() Jul 13 20:06:29 other broadcasts will cause apps to be *launched* in order to process the broadcast payload Jul 13 20:06:35 armenb your board cast receiver what is it extending? Jul 13 20:06:42 based on receviers declared in the recipients' manifests Jul 13 20:06:59 lololololol http://www.angryredplanet.com/~hackbod/ Jul 13 20:07:06 the terms of art for the two cases are "registered receivers" and "manifest receivers" Jul 13 20:07:28 armenb: you can ebale and disable manifests components Jul 13 20:07:57 dantheman: actually, my service extends IntentService. I have a scoped class that extends BroadcastReceiver within my service, and I instantiate that and registerReceiver() it within my service. Or at least, this is what I think should work... Jul 13 20:08:17 i stand corrected actually - you don't have oto register in manaifest if you do it dynamically with registerReceiver() Jul 13 20:08:23 make sure to call it on the right context, tho Jul 13 20:08:33 is your service registered? Jul 13 20:08:39 yes it is Jul 13 20:08:49 and you've inited it correctly? Jul 13 20:09:40 anyone know of tutorials or even libraries to make creating 2d board games easier? I'm curious, from the start, how to generate the playing board. Jul 13 20:09:46 Silly question, actually: what does the prepended '.' mean in the android:name=".foo" attribute? Jul 13 20:10:20 ahh Jul 13 20:10:29 armenb: . implies your package but you should use fully qualified names Jul 13 20:10:46 QubeZ: ahh, gotcha. Jul 13 20:10:58 i.e. com.example.android.test.MyActivity = .MyActivity but you should use the full name, at least I do Jul 13 20:11:43 *facepalm*, I know what's wrong. Jul 13 20:11:51 armenb: that could be your problem Jul 13 20:11:54 armenb, in your manifest there is a packge name attribute, like "com.example.doofus" so if you have a class com.example.doofus.SomeClass, you can put .SomeClass Jul 13 20:12:29 eerr QubeZ beat me but yeah he is right, better to use fuly qualified name, just make sure to update if you refactor your pacakge names :-) Jul 13 20:12:52 my problem is that when I call startActivity(), my service's onCreate() gets called, and the startActivity() intent gets processed. The work queue is then empty, so onDestroy() gets called. Jul 13 20:12:54 rootlicker-work, pft, crappy ide if it doesn't refactor androidmanifest too Jul 13 20:12:56 and remember that if you change the package name declared in the manifest, suddenly it is *a different application* Jul 13 20:13:16 which may not be at all what you intend Jul 13 20:13:22 Zharf, huh? Jul 13 20:13:24 guess where I register and unregister my BroadcastReceiver :-) oops... Jul 13 20:13:50 Rebeccaforce: I'm in *your* system, making *your* life needlessly complicated. Jul 13 20:13:55 can my fragment xml contain complex layouts like linear layout etc? Jul 13 20:13:59 rootlicker-work, I don't know how to respond to that Jul 13 20:14:00 maybe adt 20 does it, but i've never seen any xml file refactor when i change a package/class name Jul 13 20:14:15 rootlicker-work, intellij idea does Jul 13 20:14:47 and vice versa.. if i change an id in an xml element, R updates but references break, and i just have to refactor them, all-in-one Jul 13 20:14:58 is there a reason why android makes it so difficult to start up a foreground service? Jul 13 20:15:02 ok good for you? Jul 13 20:15:15 foreground service is pretty easy Jul 13 20:15:17 armenb, difficult? Jul 13 20:15:43 just make a status notification Jul 13 20:16:16 I mean, how do I prevent onDestroy() from being called without having to create a new Notification? I just want the service running, I don't see why A Notification needs to be made... Jul 13 20:16:50 ok onDestory isn't automatically called Jul 13 20:17:00 so I've got an app using the dark holo theme with white icons in the actionbar, and it looks nice on 3.0 or higher. However on 2.2 the icons don't show up against the white menu background. Any ideas on how to solve this? Jul 13 20:19:20 a foreground service gets higher priority not to be killed, but is stil lsubject to it just like a background activity or service Jul 13 20:20:38 a started service is running until you call stopService, afaik, unless it's killed by system Jul 13 20:21:47 or crashes Jul 13 20:22:09 there's no way to prevent it truly.. it's just part of the platform. to reduce the odds you can foreground, you can reduce it's footprint,hmm thats about it Jul 13 20:22:37 if its immediately getting destroyed every time then you're doing something wrong Jul 13 20:24:10 tbh i've only implemented bound services, so i dunno.. Jul 13 20:25:54 Zharf: if it crashes it'll be restarted by the OS Jul 13 20:26:13 unless it crashes *a lot*, in which case the OS will decide it's just flaky and will stop running it Jul 13 20:26:20 yeah Jul 13 20:26:55 if you're starting a service and the process is getting killed immediately, there's somethign else going on Jul 13 20:27:04 either the device really is low on memory, or you're actually crashing or something Jul 13 20:27:08 in all cases, read the log! Jul 13 20:27:30 * Zharf nods Jul 13 20:27:45 anyone know where to find sdk r7 for android? Jul 13 20:27:49 yeah put some log.d in the service to verify it's starting and running also Jul 13 20:27:50 or will r20 work for older phones Jul 13 20:28:11 Nothing is crashing...I think things are getting complicated because I'm using IntentService. I'm going to try using straight-up Service and see how things go. Jul 13 20:28:27 arm i think you should only want, and be fine with, the latest version of sdk tools Jul 13 20:28:37 alright thanks root Jul 13 20:28:48 i'm not sure what you mean about older phones as the sdk is on the pc, not the phone. Jul 13 20:29:03 yeah, always use the latest tools Jul 13 20:29:15 Something that isn't quite obvious to me is why I'd want to subclass BroadcastReceiver as opposed to Service. Can I specify properties in the manifest for scoped classes? Jul 13 20:29:22 and just set your minSdkVersion appropriately Jul 13 20:29:47 armenb: services and broadcast receivers have very different lifecycles and purposes Jul 13 20:31:37 ctate is right, armenb. however, a broadcast receiver could send work to a service upon receiving a broadcast, i suppose Jul 13 20:31:45 sure Jul 13 20:32:15 armenb, what is it you are aiming to accomplish? Jul 13 20:32:17 but like i said, they're very different beasts Jul 13 20:32:28 broadcast receivers are the recipient end of a pubsub mechanism Jul 13 20:32:33 services are rather more :) Jul 13 20:33:02 a service does work "in the background" (i.e. not visible, not in a dif thread unless you manually make it to); a broadcast receiver responds to events broadcast by the system Jul 13 20:33:23 s/by the system/by whoever sends them/ Jul 13 20:33:47 yeah i guess it can be another app , yeah? Jul 13 20:33:55 I want to create an object that's persistent, receives broadcast intents from lots of different apps, and stores them to a file. Jul 13 20:34:09 but if an app sends a broadcast, is it not relyaed through "the system" then sent out to all registered receivers? Jul 13 20:34:51 seems like you could do that without a service... create a broadcast receiver, register it in the manifest, and viola Jul 13 20:36:23 ctate, i.e. is it sometimes point to point or is it always system-> point(s) || point->system->point(s) Jul 13 20:36:57 in the broadcast receivers onReceive method, write the file Jul 13 20:38:49 rootlicker-work: I want to add the additional constraint that my broadcastreceiver processes messages asynchronously. does the android intent system give me that for free? Jul 13 20:39:17 what do you mean process asynchronously? Jul 13 20:39:32 asyncronously from eachother, from the ui thread...? Jul 13 20:40:44 onReceive() { .... new Thread() { public void run() { doWork() } }.start(); } Jul 13 20:41:05 rootlicker-work: well, one asks the OS to send the broadcast Jul 13 20:41:07 I guess I'm really wondering if sendBroadcast() blocks, and I'd have that concern whether or not I was running as a service or running as a broadcastreceiver... Jul 13 20:41:16 Does SurfaceView not like being detached from the window in setContentView? Because my code doesn't get past that on the ui thread, but the threading is fine (used runOnUiThread) Jul 13 20:41:17 but anyone can send them and anyone can receive them Jul 13 20:41:29 I'll just assumeit doesn't at this point because I probably don't have much choice there :-) Jul 13 20:41:32 subject to both sender & recipient rules about permissions for specific content Jul 13 20:41:35 read the docs! :) Jul 13 20:41:48 easier to ask someone who has ;-p Jul 13 20:41:50 ctate: nod, sorry. :-) Jul 13 20:42:04 he's talking to me i think armenb lol, well both maybe Jul 13 20:42:20 yeah that was all to rootlicker-work :) Jul 13 20:42:26 armenb, is your app sending braodcasts or receiving? Jul 13 20:42:31 sendBroadcast() does not block Jul 13 20:42:35 almost nothign in Android blocks Jul 13 20:42:52 startActivity() also does not block Jul 13 20:42:55 etc Jul 13 20:42:59 lol careful how you phrase that ctate Jul 13 20:43:14 "wait nothing in android blocks???" kaboom Jul 13 20:43:22 * evancharlton runs network on the main thread Jul 13 20:43:26 "but ctate said it was okay!" Jul 13 20:43:38 ctate: cool! that's good to hear. It looks like Intents are basically like Android's MPI system. I wonder what happens when mailboxes get full. :) Yes, I'll read the docs :) Jul 13 20:43:46 rootlicker-work: look i said "almost nothing" Jul 13 20:44:07 they aren't mailboxes; internally there's an open-ended send queue Jul 13 20:44:22 i suppose you could probably DOS the system by sending a billion broadcasts in quick succession Jul 13 20:44:24 rootlicker-work: receiving. My application is going to act like a logger of sorts. I'm going to have an Activity where a user can control what they want logged, and a BroadcastReceiver that actually does the logging. Jul 13 20:44:26 so don't do that Jul 13 20:44:28 armenb, yeah most "system calls" re queued up n handled asynchronously Jul 13 20:46:46 Does SurfaceView not like being detached from the window in setContentView? Because my code doesn't get past that on the ui thread, but the threading is fine (used runOnUiThread) Jul 13 20:46:58 surfaceDestroyed is called Jul 13 20:47:19 themirror, sorry not sure. Jul 13 20:47:21 grr...wait. "A BroadcastReceiver object is only valid for the duration of the call to onReceive". <-- NOT music to my ears. Jul 13 20:47:37 armenb, whats' wrong? Jul 13 20:47:39 it worked before the surface was created Jul 13 20:47:39 I want my receiver to have persistent state like file handles Jul 13 20:48:12 make them static? Jul 13 20:48:34 that sounds like hackery... Jul 13 20:48:44 static singleton pattern Jul 13 20:49:35 a broadcast receiver shoudln't be doing things when it's not handling the reception of a broadcast Jul 13 20:49:54 use a service if you want background work Jul 13 20:50:10 or use a static singleton with yuor file handles Jul 13 20:51:29 is there a way to log which thread is making a method call? Jul 13 20:52:36 http://www.youtube.com/watch?v=i0hyfAKkNCY&feature=BFa&list=PLE08A97D36D5A255F watch this armenb Jul 13 20:52:52 http://www.youtube.com/watch?v=40btHqESpHM&feature=BFa&list=PLE08A97D36D5A255F and this Jul 13 20:55:45 Does the emulator not respect keyboard input for anyone else since the newest ADT? Jul 13 20:55:46 Like from my external/mac keyboard. Jul 13 20:55:54 yeah you have to manually set it Jul 13 20:56:07 open avd manager and go to the properties for your emulator(s) Jul 13 20:56:15 i've had a number of issues with the latest emulator Jul 13 20:56:19 add a new value in the custom params, select the one for keyboard supprot, and change the value to true Jul 13 20:56:31 if you create a new one, the keyboard that pops up i useless Jul 13 20:56:41 ^^ Jul 13 20:56:46 it has numbers and some kanji characters Jul 13 20:57:07 wnogk, hold the bottom left button with the A on it and optios for alternat onskreen keybaords will display Jul 13 20:57:44 meh, i've pretty much given up on it Jul 13 20:57:49 it may not have an A Jul 13 20:57:53 it keeps getting less and less useable Jul 13 20:57:56 heh, it's been that way forever Jul 13 20:58:50 makes me wonder how useable android-x86 is fo debugging Jul 13 20:59:12 it's a basic option on every device and phone Jul 13 20:59:16 hold down, change the input type Jul 13 20:59:33 yeah, that's not the only issue :P Jul 13 20:59:39 wongk: try it! Jul 13 20:59:43 srsly Jul 13 21:00:18 !!1? Jul 13 21:00:34 wow Jul 13 21:00:39 That's so weird Jul 13 21:00:44 by "the latest emulator" you mean the latest SDK release? Jul 13 21:01:04 yeah, that's the only emulator i am aware of Jul 13 21:01:05 did you get it, hwrd|work ? Jul 13 21:01:39 rootlicker-work: I assume I just set keyboard support to true as a prop? Jul 13 21:01:52 hwrd|work, yeah Jul 13 21:03:39 wongk: and just checking, you're seeing that when using the r20 toolset? Jul 13 21:03:49 ctate: yeah Jul 13 21:04:19 file a bug please? Jul 13 21:04:23 hwrd|work, you'll have to restart the emulator afterward Jul 13 21:04:29 whats the bug? Jul 13 21:04:34 the other major issue is: 2.x is slow, 4.x is terribley slow, and 4.1 is just forget about it slow Jul 13 21:04:42 rootlicker-work: Yeah, it's restarting now. Jul 13 21:04:47 have you not turned on hw acceleration, wongk ? Jul 13 21:05:01 yeah, that breaks it completely Jul 13 21:05:02 becuase that's increasingly mandatory Jul 13 21:05:07 it doesn't draw anything Jul 13 21:05:11 ah okay you have unsupported graphics hw Jul 13 21:05:21 try the x86 emulator then Jul 13 21:05:23 on 2 different machines, fwiw :P Jul 13 21:05:46 there is a lot of different graphics hw out there, most of which is still unsupported Jul 13 21:05:49 blame fragmentation. Jul 13 21:05:53 haha Jul 13 21:06:03 anyone know of tutorials out there on how to draw board games on canvas? I'm brand spanking new to game but wanted to explore it Jul 13 21:06:07 hi ctate Jul 13 21:06:41 yeah, i'm not aware of any virtualization technology that can handle 3d acceleration effectively Jul 13 21:06:59 it's still too difficult a problem Jul 13 21:07:02 afaik and in my experience the 4.x emulators run helal faster thanks to reduction i npure hw virtualization Jul 13 21:07:18 yeah. the x86 emulator may be fast enough in software rendering to be usable, though Jul 13 21:07:19 ^ ./agree Jul 13 21:07:23 since it isn't emulating the ARM system. Jul 13 21:07:27 i wish i had your experience! Jul 13 21:07:45 If you're on windows, make sure you have HAXM installed Jul 13 21:07:53 how do i display a Drawable in a GridView ? I've been trying too look for a built-in method but i can't find one Jul 13 21:07:55 one of my machines is windows Jul 13 21:08:00 It's under extras in the SDK Manager Jul 13 21:08:00 never heard of haxm Jul 13 21:08:06 oh Jul 13 21:08:12 im pretty sure i installed that Jul 13 21:08:31 Just making sure :) Jul 13 21:08:52 the part that still buggers me the most is that the x86 and arm images run at the same speed Jul 13 21:08:58 to rephrase: "just make sure" :) Jul 13 21:09:13 on both on windows and linux machines Jul 13 21:09:13 wongk: yow, interesting Jul 13 21:09:26 there's no noticeable increase Jul 13 21:09:32 once you file the bug for the emulator keyboard stuff, drop the link in channel Jul 13 21:09:49 I'll see if I can find some time to look at it Jul 13 21:10:25 i dn't think ti's a bug i think you need to select the correct input mode Jul 13 21:10:34 i'll try to convince myself to file it later Jul 13 21:10:39 mine are always japanese when i first create them Jul 13 21:10:48 rootlicker-work: you don't think that's a bug? Jul 13 21:10:51 wongk: okay, ping me when you do Jul 13 21:11:00 nobody knows? :( Jul 13 21:11:03 rootlicker-work: it probably should default to english :) Jul 13 21:11:37 that raises a philosphical question of "is an inconvenient default setting a bug?" Jul 13 21:11:48 especially when the localization setting on the emulator are english Jul 13 21:12:49 i guess since it's _always_ been that way for me, on multiple systems, and i've always easily changed it by holding down the button to select a different input type, i never considered it an issue Jul 13 21:13:08 hi! just tried starting an emulated instance of android 4.1. followed any guide i could find, but strangely, the emulator's window just doesn't open. i know it takes very long to boot, but the process has been sitting for 10min, eating all my cpu and displaying nothing. is that normal? Jul 13 21:13:30 i never saw it until r20 Jul 13 21:13:33 no don't think it is Jul 13 21:14:01 bluezone: take a look at the docs, its example is showing images in a gridview Jul 13 21:14:04 http://developer.android.com/guide/topics/ui/layout/gridview.html#example Jul 13 21:14:26 time to call it a week Jul 13 21:14:28 * wongk out Jul 13 21:16:39 pikaro: it can take awhile to boot, but 10 minutes seems like a long time. Jul 13 21:16:57 whats ur system pikaro ? cpu/ram Jul 13 21:17:18 but what people specify as 'boot time' is the time until the emulator window is displayed? not when it displays android's boot? Jul 13 21:17:33 uh 1,0 ghz core2duo, 2 gbyte ram Jul 13 21:17:39 ancient, i know Jul 13 21:18:09 yeah that might be an issue if you got lots of stuff running Jul 13 21:18:21 not really, just firefox and now xchat Jul 13 21:18:23 i would close _everything_, launch emulator alone, then open other stuff Jul 13 21:18:32 windows Jul 13 21:18:38 firefox is a memory hog Jul 13 21:18:53 windows? you might have background tasks and such, no telling Jul 13 21:18:58 linux Jul 13 21:19:02 ah Jul 13 21:19:07 which desktop? Jul 13 21:19:16 fluxbox Jul 13 21:19:27 cool Jul 13 21:19:33 so that should't be an issue Jul 13 21:19:38 yup Jul 13 21:19:50 it *might* still be booting, but it may also not work with your video card. getting all of the graphics emulation stuff right is hard Jul 13 21:19:55 i know that's kinda noob questions.. no offense, just htinking simple first Jul 13 21:20:14 none taken Jul 13 21:20:16 pikaro, what is your video card? Jul 13 21:20:20 mdwright, nvidia 9600m gt Jul 13 21:20:56 proprietary nvidia drivers Jul 13 21:20:56 pikaro: taking a look to see if we've seen any reports Jul 13 21:21:03 thanks :) Jul 13 21:21:06 mdwright: the problem is i'm getting the pictures from an outside website, i don't have them saved in the project directory Jul 13 21:21:15 bluezone you can do it Jul 13 21:21:22 but you need to do it asynchrounously Jul 13 21:21:51 and load the picture in a callback Jul 13 21:22:10 i do it in listview in a blogreader app Jul 13 21:22:24 rootlicker-work: hmm Jul 13 21:22:35 givem e a sec Jul 13 21:22:37 rootlicker-work: see, i'm not sure what you mean :D Jul 13 21:22:55 ok downloading n image is slow Jul 13 21:23:01 hah, interesting - when i close the terminal the emulator is started in, the window displays for a brief moment Jul 13 21:23:16 you can't download a bunch of images on UI thread - it will block it and lock up the UI, system will kill your activity Jul 13 21:23:39 also, it seems to shutdown cleanly, as there are no complaints about stuff being in /tmp when trying to start it again, other than when i kill -9 it Jul 13 21:23:50 rootlicker-work: all network/disk/etc. access should be done in a separate thread Jul 13 21:24:04 that's what i'm telling him, mdwright Jul 13 21:24:30 rootlicker-work: ah, missed you were responding to bluezone Jul 13 21:24:44 The UI thread is for UI only. That's how I understand it. Jul 13 21:24:49 *UI operations only Jul 13 21:24:52 np Jul 13 21:25:00 I dunno if that's right or wrong. Jul 13 21:25:05 thats pretty much right Jul 13 21:25:43 bluezone: you want to do the network access off the UI thread, then use BitmapFactory to parse the inputstream into a bitmap you can display Jul 13 21:25:58 http://code.google.com/p/iogallery/source/browse/#git%2Fsrc%2Fcom%2Fexample%2Fandroid%2Fiogallery does something similar to what you want, so I recommend you look at that project as an example Jul 13 21:25:59 bluezone i'm about to give u some code Jul 13 21:26:42 I'd also watch https://developers.google.com/events/io/sessions/gooio2012/103/ ASAP Jul 13 21:27:02 it's the talk at IO where the code I linked to comes from. it talks a lot about how you should be doing almost exactly what you're trying to do Jul 13 21:32:29 https://gist.github.com/3107656 there ou go bluezone Jul 13 21:32:47 kk ty im gonna look Jul 13 21:33:43 that's an async image fetcher. Jul 13 21:33:58 calls back with a Bitmap image Jul 13 21:35:01 what i do is set a default image for all the items in the list/grid (like "loading.." type image) Jul 13 21:35:23 then the image fetcher works, calls back the bitmap, and i set the bitmap in Jul 13 21:35:47 pikaro: can you confirm that you have 32-bit opengl drivers installed? Jul 13 21:35:56 i set the bitmap on the data object that it corresponds to, then call notifyDataSetChanged Jul 13 21:37:15 pikaro: on debian the packages are libgl1-nvidia-glx-ia32 and libgl1-nvidia-alternatives-ia32 I believe Jul 13 21:38:13 rootlicker-work: while you can use runnables, it's probably easier to just use AsyncTasks for that work Jul 13 21:38:23 re - sorry, random disconnect, rappy wifi Jul 13 21:38:38 took the chance to try kde with compiz, same behavior Jul 13 21:38:40 pikaro: no worries :) can you confirm you have 32bit libgl installed? Jul 13 21:38:47 maybe.. took me 5 minutes to write this when i did, hadn't learned async task at the time Jul 13 21:39:12 i'm no stranger to danger, if by danger i mean runnable ;p Jul 13 21:39:46 rootlicker-work: well, an AsyncTask gives you a built-in mechanism for doing things on the UI thread, like putting the bitmap on the screen Jul 13 21:40:15 anyways, you can do it with runnables, probably a lot less headaches if you use asynctasks is all Jul 13 21:40:26 yeah, this is pretty simple Jul 13 21:40:34 rootlicker-work: i seem to be missing some dependancies, "IImageFetcherClient cannot be resolved to a type" Jul 13 21:40:47 bluezone - it's just an interface with two methods Jul 13 21:41:05 hm, which packet would that likely be with debian? there are a lot that start with libgl... Jul 13 21:41:06 fetchImageSuccess(Bitmap b); and fetchImageFail(); Jul 13 21:41:54 a client implements that interface so that the ImageFetcher object can safely call back Jul 13 21:42:33 in my case, the activity is the client, so on each success callback it calls runOnUiThead(.... list.notifyDataSetChanged() ); to redraw the images in Jul 13 21:42:52 that may not be the most efficient way to draw them in when they load but it works Jul 13 21:43:21 i do have opengl 3.3.0 installed, and anything 3d-related runs well if that is what you ask Jul 13 21:45:46 anyway bluezone i don't wanna prescribe you to my implementation, just giving you help on the actual image pull and how to put it in a Bitmap object you can throw into your views Jul 13 21:47:15 thats all the itme ihave today guys, good luck to yas Jul 13 21:47:31 and i do have a /usr/lib/libgl.so.302.17 Jul 13 21:47:43 *libGL Jul 13 21:47:53 likely from nvidia drivers Jul 13 21:52:13 hm... SIGTERM will be ignored by the process, but if I close the governing xterm, the window still displays briefly O.o SIGKILL results in garbage being in /tmp. Jul 13 21:53:31 pikaro: I think the libs are libgl1-nvidia-glx-ia32 and libgl1-nvidia-alternatives-ia32 on debian Jul 13 21:55:06 hm... it will try to install MESA libs. i hope this will not break my 3D, i have set it up manually by running the install package, not through debian's packaging system. well, i'll try ^^ Jul 13 21:55:12 will be back Jul 13 21:59:25 and people talk about how Windows has problems. Jul 13 22:01:09 ctate, stuff like this is usually just a problem on extremely customized systems like min Jul 13 22:01:11 e Jul 13 22:02:38 http://stackoverflow.com/questions/7102042/create-spinner-options-from-json-data-array Jul 13 22:02:51 can someone tell me what DataCall is on the 4th line of the try? Jul 13 22:03:04 I know it's a jsonobject, but where is he declaring it? Jul 13 22:03:46 It's a class somewhere not in the code sample Jul 13 22:03:49 ok Jul 13 22:03:53 some static method Jul 13 22:04:00 thanks Jul 13 22:13:43 so you don't like slide-out nab huh Jul 13 22:13:44 nav Jul 13 22:14:43 Hey if I setContentView(id), does a new View get created for each xml defined element? Jul 13 22:15:09 themirror: pretty much Jul 13 22:15:22 for instance, i make a view i want to "keep" but change the layout, how do i keep that view Jul 13 22:15:26 visibility gone? Jul 13 22:15:37 or do i have to move it out of xml declaration Jul 13 22:15:49 set the visibility to gone Jul 13 22:17:48 I have native app(sshd) which I am starting from my background service. The problem is that if the screen is not turned on I can`t connect to the deamon. So I am wondering how I can solve this. Any ideas? Jul 13 22:18:49 I am thinking of to put my process to foreground and then aquare a lock because from the background thread it seems to be not working Jul 13 22:19:36 http://www.fiercedeveloper.com/story/report-app-price-most-important-factor-ios-android-users/2012-07-14 , study was done on games, but it would be interesting to see how this applies to other categories Jul 13 22:19:55 May not be right channel, anyone know of a xbox 360 app like the iOS version that allows you to control your xbox Jul 13 22:20:20 I need help finding out what I want... I want to create a simple android app that is a website in the app I guess is what to call it? Jul 13 22:21:07 jparkton, Do you want to host this online or just create it and use it on the android if so then you don't need any special application just use your browser to load the index file Jul 13 22:21:21 or if it's php there are numerous webserver apps out there Jul 13 22:21:26 romainguy: you might dig this http://www.wisdom.weizmann.ac.il/~vision/SingleImageSR.html Jul 13 22:21:50 StevenCodes22: I have the site and such I just need to know what to google to make it into an application, basicly buttons that open the html inside the app? Jul 13 22:22:11 button1=page1 etc Jul 13 22:22:24 jparkton make website. Host is somewhere. Make app that uses WebView. You can check for that in the android dev site Jul 13 22:22:39 http://android-journey.blogspot.co.uk/2010/01/android-webview.html Jul 13 22:22:41 ^^ Better idea Jul 13 22:22:42 here for some info Jul 13 22:23:18 using webview you can execute even java script on the site :) Jul 13 22:23:57 Alright well so there if there isn't anything to control the Xbox360 anyone else know some fun home automation tricks ? Jul 13 22:24:43 StevenCodes22 I am not sure there is. Maybe you can write one ;) Jul 13 22:25:10 It should not be a problem. If ther eis iOs app this means there is already API for that so you just have to use it Jul 13 22:25:17 F1rstAid, There is an iOS app that has an adroid version but yeah Jul 13 22:25:22 ^^ :p Jul 13 22:25:36 yeah they have an android version but doesn't come with controls Jul 13 22:26:18 g00s: it's fugly Jul 13 22:26:20 I have two spinners with the same options. How do I make it so both spinners cannot have the same option selected? So say the options are 1, 2, and 3. If spinner A is selected with option 1, then spinner B can only have options 2 and 3. And vice versa. Jul 13 22:26:22 For home automation there are a lot of apps as I know . It is the future actually Jul 13 22:26:25 F1rstAid: so android apps are basicly Java? Jul 13 22:26:44 jparkton they use java as core technology Jul 13 22:27:08 romainguy: it seems to get pretty painterly Jul 13 22:27:11 but they work in different way they have different lifecicle and a lot of limitations to save battery life Jul 13 22:27:16 Well i've got everything automated except 360 and TV and I could care less about the 360 if I can control the TV Jul 13 22:27:16 g00s: yep Jul 13 22:27:42 thought about making a 3.5mm audio infrared but as I hear they suck as in signal wwise Jul 13 22:53:56 Why I have to turn on my screen and keep it like that if I want to use my sshd demon on the android device? Can`t I just use the cpu all the time with partial wall lock? Jul 13 22:54:25 you can Jul 13 22:55:19 first, verify that you really are holding the device awake when you think you are. [you *are* declaring the right permission for that in your manifest, right?] Jul 13 22:58:43 ctate yes Jul 13 22:58:52 I tested few times Jul 13 22:59:01 holding only partial lock Jul 13 22:59:19 but no result. the service is starting but I can`t connect to the device Jul 13 22:59:30 when I touch the screen few seconds after that I can Jul 13 23:00:19 wifi or cellular data? Jul 13 23:00:40 wifi Jul 13 23:01:35 To be clear I am using GCM to start/stop sshd and after that I am connecting Jul 13 23:02:05 the problem is that either I have to use PowerManager.ACQUIRE_CAUSES_WAKEUP with full lock or I have to touch the screen so I can really connect Jul 13 23:02:21 if you send an SMS programticlly instead of through the built in message application, and you also have your own SMS Receiver, can the messages then go beyond 160 characters, since your receiver would be able to parse all the PDUs? Jul 13 23:02:24 try with cell data Jul 13 23:02:49 it's possible what's happening is that wifi is stepping down to a lower power mode when the screen goes off, and your router / network isn't happy and it drops Jul 13 23:03:22 also, are you using http://developer.android.com/reference/android/net/wifi/WifiManager.WifiLock.html ? Jul 13 23:03:33 ctate well I am still receiving commands from the internet it should not be a problem for the sshd too Jul 13 23:11:38 hey so... Jul 13 23:11:51 why has mapview not updated its API since, like, version 1? Jul 13 23:12:28 because, the API is really pretty crappy Jul 13 23:12:42 there's a lot of niceties it could do to catch up to MapKit on iOS Jul 13 23:12:57 like, oh, i dunno, a standard popup/callout Jul 13 23:14:15 Agreed Jul 13 23:15:02 i mean, when you look at the maps app, i'm very skeptical it's even implemented using mapview anymore Jul 13 23:15:04 Also, geez, get rid of the developer key to api key connection, or at least allow proper programmatic setting of the API key on an XML-instantiated MapView. Jul 13 23:16:13 huh. why? Jul 13 23:16:14 TheTrash: are you referring to this: http://stackoverflow.com/a/8091837 ? Jul 13 23:16:16 (re the keys) Jul 13 23:17:26 jasta: clever but still quite iffy Jul 13 23:18:15 oh man, my total nick count shows 666 Jul 13 23:18:20 I need to get out of here Jul 13 23:18:38 ok phew Jul 13 23:18:41 now dropped to 664 Jul 13 23:18:46 lol Jul 13 23:18:50 TheTrash: actually, it works really well. better than if you did it through code, it hink Jul 13 23:18:59 because you can use version control properly to ignore this file Jul 13 23:19:12 make sure devs don't accidentally do stupid shit and comment out/break the production key Jul 13 23:19:23 jasta: still, I use 3 machines regularly.. need to maintain 3 maps keys :/ Jul 13 23:19:36 TheTrash: i actually have this covered with a symlink Jul 13 23:19:52 so on all my projects on my machines i just symlink the values-v1 folder Jul 13 23:20:00 i work on lots of apps on lots of machines taht need this. it works well. Jul 13 23:20:12 Hmmm Jul 13 23:20:22 there are bigger problems with MapView though, to my earlier points. it's extremely primitive and lacks lots of features you expect even looking at iOS Jul 13 23:20:29 Yeah, I agree Jul 13 23:20:34 Anyone good with gadgets Jul 13 23:20:38 and there's no reason for it. it's a great "v1", as it was launched with android years ago Jul 13 23:20:40 I was baffled to not even find a default pin image or balloon. Jul 13 23:20:42 why hasn't it been freaking updated? Jul 13 23:21:03 you could do so much more with this thing... Jul 13 23:22:01 i think they want to keep maps as propietary as possible Jul 13 23:22:13 I think Apple is giving them an incentive now. I just hope Google can keep up after Apple moves the goalpost. Jul 13 23:22:47 cretin45: i can see some of that, but most of this shit is just obvious crap like providing a standard set of pins and callouts Jul 13 23:22:50 like, why fucking not? Jul 13 23:23:04 doesn't give you any competitive advantage not to, but it sure as hell makes it faster to get started developing Jul 13 23:23:14 the api is pre v1 garbage Jul 13 23:23:18 i know! Jul 13 23:23:20 Android is full of that, though. Jul 13 23:23:23 and even the documentation just looks like shit Jul 13 23:23:24 it's orphaned Jul 13 23:23:54 d.android.com looks so awesome. mapview, meh, like some college professor generated that shit from an old javadoc Jul 13 23:24:05 even javadoc at java 7 looks much nicer. what the hell? Jul 13 23:24:14 I mean, why can't I just colorize UI elements to make them match my products' UI style? Now I'm hacking all sorts of non-native-looking button drawables to get them to match. Jul 13 23:24:45 It's similar to the missing popups and pin images. Jul 13 23:24:53 not erally Jul 13 23:25:22 not wanting folks to butcher a rigidly defined look and feel is quite unlike requiring that they do it :) Jul 13 23:26:00 mapview requires that you just kind of got at it your own and do everything from scratch with no sense of standardization or convenience Jul 13 23:26:01 i can't even find a link to the maps docs on the new site Jul 13 23:26:03 Rigidly ugly up till Holo, though. Jul 13 23:26:18 the thing you mentioned is probably trying to force people to keep consistent or be divorced entirely Jul 13 23:26:37 TheTrash: yeah, ugly but im sure still someone defended it internally as being something they rigidly defined. Jul 13 23:26:48 i think the argument for these two things is very different Jul 13 23:27:52 jasta: possibly, but the effect is the same: I see iOS devs drag these default popups into maps, and I see them drag colorized buttons to their apps. In both cases, I'm hacking to get the same level of functionality. Jul 13 23:29:11 hehe, those ios guys have their own fair share of insanity though :) Jul 13 23:29:19 True! Jul 13 23:29:38 i think in the maps case, it's just a slam dunk. just allocate a resource, done. Jul 13 23:29:52 nobody needs to think too damn hard about doing some of this Jul 13 23:30:19 make the docs look nice, check. add niceties / default assets, check. easy Jul 13 23:30:35 Heh true, they could send some intern off to spend an afternoon on github to slap pieces of code together, even. Jul 13 23:31:41 i wonder how the OSM stuff is these days Jul 13 23:32:08 I've seen some implementations that look pretty. Jul 13 23:32:11 one might even be able to put it in a fragment :P Jul 13 23:32:21 But I've always wondered whether the map data is up to date. Jul 13 23:32:27 And complete. Jul 13 23:32:38 Heh yeah, that's also fairly preposterous. Jul 13 23:32:55 yeah, and that... Jul 13 23:33:01 MapActivity? i mean come on, fuck you google Jul 13 23:33:23 only one MapActivity per app process? no fragments? wtf. Jul 13 23:34:00 most "prettier" implementations embed a webview. fuck that Jul 13 23:34:13 yeah, iosched did that Jul 13 23:34:28 I'm using httpurlconnection and setting the Content-Type to application/json (which is required by our web server) but on older phones it seems to bug out. Has anyone run into this? Jul 13 23:34:31 Their own ffing app Jul 13 23:34:45 jayd16: "bug out" ey? Bugger Jul 13 23:34:55 then you have to write all that js binding shit Jul 13 23:35:36 TheTrash: well I dont really know. The server returns 500 "content type cannot be consumed" but it works on most phones Jul 13 23:36:18 jayd16: can you see the actual content type header that gets sent? Jul 13 23:37:39 Anyway, httpclient is safer on older devices. Jul 13 23:38:20 Whether it's feasible to use it as a replacement depends a bit on your code architecture. Jul 13 23:38:29 But it's worth testing. Jul 13 23:41:41 http://techcrunch.com/2012/07/13/google-mytracks-2-0/ Jul 13 23:42:47 thetrash: hmmm yeah its being set, but it looks like its not making a post, it stays set to GET? Jul 13 23:45:28 I dunno... the "setDoOutput" thing is kind of vague. Jul 13 23:45:39 It barely even implies a POST. Jul 13 23:46:03 DOes it dump your data over GET then? Jul 13 23:46:11 That would be some weird black magic. Jul 13 23:46:22 Not the normal kind of black magic at all. Jul 13 23:48:23 Android:: Specializing in weird black magic since 1863 Jul 13 23:49:21 I suppose it doesn't set method unless you explicitly set it Jul 13 23:49:25 which I guess makes sense Jul 13 23:49:39 since doOutput could in theory be a push or a put Jul 13 23:52:42 jayd16: are you explicitly setting post with setRequestMethod? Jul 13 23:53:00 thetrash: I am now, but it didn't seem to help Jul 13 23:53:38 this might require sniffing the http packets =/ Jul 13 23:54:14 would be nice if i could get the mytracks sources wo installing hg :/ Jul 14 00:08:47 AHA! Jul 14 00:08:55 no matter what i do my app is not exporting correctly i have resolved cleaned over ten times the issues but it is exporting with no app icon Jul 14 00:09:07 ive tried everything i know how with no luck Jul 14 00:09:07 Null value in header screws up httpurlconnection on older devices Jul 14 00:09:56 i have exported other apps daily the same way however this one file keeps giving errors Jul 14 00:25:37 I feel like this is something that *has* to have been done enough times before that there's got to be an easy way to do it without me re-inventing the wheel, but I can't seem to find anything on google that doesn't involve basically doing it from scratch. Is there an easy way to format an EditText field for currencies? Jul 14 00:29:00 also, is there an easy way to have font sizes change based on phone resolution? Jul 14 00:31:42 Someone with idea why I can`t read the output of my native apps? Jul 14 00:31:58 in my android apps Jul 14 00:33:29 "the output"? Jul 14 00:33:42 where are you (trying to) write the output? Jul 14 00:35:11 woo, JB change description published. http://www.android.com/about/jelly-bean/ Jul 14 00:38:18 ctate: hey, so it turns out you guys *weren't* just sitting around eating butter for 6 months :) Jul 14 00:38:37 .... did you just call us fat? Jul 14 00:38:46 nah we were slacking off Jul 14 00:39:24 ... maybe Jul 14 00:40:16 * Leeds goes to butter a muffin Jul 14 00:40:35 i'm upset that google went on the ubuntu path with naming scheme :( Jul 14 00:41:15 even if it does make it easy to remember the order :( Jul 14 00:41:48 lies! Jul 14 00:41:51 anyone? Jul 14 00:42:01 unbuntu calls its relases things like Breezy Badgert Jul 14 00:42:12 Google calls Android releases things like 4.1. Jul 14 00:42:30 teh whole CDEFetc thing is just for fun, working names along the way Jul 14 00:42:45 (i suppose Ubuntu technically has version numbers but nobody seems to use them) Jul 14 00:43:02 eclair, froyo, gingerbread, honeycomb, ice cream sandwich, jelly bean, next one starts witha k i bet ;) Jul 14 00:43:12 key lime pie Jul 14 00:43:19 or kifli Jul 14 00:43:20 or kulfi Jul 14 00:43:24 or koumiss Jul 14 00:43:27 or kvass Jul 14 00:43:29 those sound unamerican Jul 14 00:43:31 or kandy kane Jul 14 00:43:42 who knows?! Jul 14 00:43:56 Kannnnddyy Kannne.... Jul 14 00:43:57 "unamerican" like Petit-Four? Jul 14 00:43:59 fitzpantson: and we all know that Google doesn't admit to the existence of anything outside the US ;) Jul 14 00:44:03 (ubuntu releases also go in alphabetical order) Jul 14 00:44:05 [which is what we called 1.1 before it shipped] Jul 14 00:44:08 This is bah bah blacksheep Jul 14 00:44:20 hello? Jul 14 00:44:32 Hi Jul 14 00:44:36 kandy kane sounds like a stripper name Jul 14 00:44:40 Keta: good morning Jul 14 00:44:59 It's also the name the guys use on the movie "Joy Ride" before there almost brutally murdered Jul 14 00:45:01 can anybody at all help with the questions I asked? Jul 14 00:45:20 the ones that are three pages up? Jul 14 00:45:21 no Jul 14 00:45:26 ask again :) Jul 14 00:46:48 I feel like this is something that *has* to have been done enough times before that there's got to be an easy way to do it without me re-inventing the wheel, but I can't seem to find anything on google that doesn't involve basically doing it from scratch. Is there an easy way to format an EditText field for currencies? Jul 14 00:46:51 also, is there an easy way to have font sizes change based on phone resolution? Jul 14 00:48:49 You want the font to be bigger on larger screens? Jul 14 00:49:07 or the same size on higher-density screens? Jul 14 00:49:31 Hi Jul 14 00:49:38 The first one makes no sense, the second one: use sp instead of px Jul 14 00:49:40 this is what the 'sp' measurement is for, innit? Jul 14 00:49:46 Can you see my text ? Jul 14 00:49:47 never use px Jul 14 00:50:03 Sammy_Slade: of course Jul 14 00:50:43 bigger on larger screens Jul 14 00:52:21 right, breakfast done, time to head to local barcamp where I've signed up to talk about Android... check notes: fragmentation, patents, viruses, copycat devices, slow Java, no apps... check. Jul 14 00:53:22 I wish I was joking, but they're things I'll probably have to answer Jul 14 00:56:31 okay, using sp as units works for my second question. For my first question: There's a built-in input type for EditText fields for things like date and whatnot, but not for currency. The only thing that comes close is numberDecimal, but that's not really what I'm looking for. It doesn't limit to 2 digits after the decimal, and it doesn't keep a currency symbol in front of the value, for instance Jul 14 00:58:47 There's nothing built in for that afaik Jul 14 01:00:18 howdy Jul 14 01:03:02 uh, even using sp, my text is not scaling with screen size Jul 14 01:03:51 also, why is it that when I set the gravity of a radio button to center, only the text is centered, and the actual button remains way to the left? Jul 14 01:04:59 hello? Jul 14 01:06:12 Keta: despite irc being realtime answers are not Jul 14 01:08:36 Why do you want the text to be bigger Jul 14 01:08:52 Keta: are you using layout_gravity? Jul 14 01:08:54 Keta: also, I don't know what timezone your're in, but it's somewhere between beer o'clock on Friday and the middle of Saturday morning everywhere in the world - not exactly peak volunteer support time Jul 14 01:09:13 your're? ugh :) Jul 14 01:09:23 jhudgins: I've tried both gravity and layout_gravity Jul 14 01:09:42 That's a new one, Leeds :p Jul 14 01:09:48 Keta: i don't know then, layout_gravity should work Jul 14 01:09:59 yeah... anyway, time to go geek out Jul 14 01:10:08 Have fun Jul 14 01:10:12 have a good Friday night/Saturday, y'all Jul 14 01:11:43 changing layout_gravity doesn't seem to do *anything* at all Jul 14 01:17:16 Keta: what's the view that nests your radio button? Jul 14 01:39:08 alright guys this Infrared or Xbox360 Controller isn't happening I need more projects! Jul 14 01:40:14 How about.. project get me a Nexus 7 cuz mine didnt ship yet Jul 14 01:40:19 sounds fun? you bet it is! Jul 14 01:41:04 drpenguin, nah i'm set lol Jul 14 01:41:15 fine then, im sure someone else will take it up Jul 14 01:42:01 Yeah UPS man lol Jul 14 02:31:14 what is a good euphemism for a help / about button? Jul 14 02:31:36 lasserix, FAQ Jul 14 02:31:37 ? Jul 14 02:32:00 on a secondary action bar, need to specifiy something along the lines of "how to use this thing / what its about" Jul 14 02:32:33 Product Instructions Jul 14 02:32:40 Prodcut Usage Jul 14 02:32:47 usage is perfect, thanks! Jul 14 02:33:04 lasserix ;) Jul 14 02:33:53 put your head in the rabbit hole too long, the obvious becomes oblivous ;p Jul 14 02:35:17 I need an easy https post request tutorial please. By easy, I mean, I should only have to put in my URL and my arguments :) Jul 14 02:35:29 i think theres an in built numberformat for currency, not exactly the full thing you were looking for, but still not something you need to do from scratch Jul 14 02:35:40 Hi, Is there any way to use the android 3.0 PopupMenu on API 7 devices. I'm struggling to find a Backport Jul 14 02:35:42 oops wrong channel Jul 14 02:39:55 Hello Jul 14 02:40:26 hello Jul 14 02:45:30 Anyone know of an iOS Rom for android 2.x / Jul 14 02:45:36 BlakeLoring this might help http://code.google.com/p/simple-quickactions/ Jul 14 02:54:30 how do i use this: http://thinkandroid.wordpress.com/2009/12/31/creating-an-http-client-example/ Jul 14 02:55:46 to set up a working HTTP Client that will allow you to do all of your POST/GET calls or whatever it is you might be looking to do. Jul 14 02:57:46 yes, how do i do what you just said :) Jul 14 02:58:47 put that code in your program I assume Jul 14 02:59:02 * jparkton is not a app dev just yet **** ENDING LOGGING AT Sat Jul 14 02:59:58 2012